(function (document, window) { /* stats.js - http://github.com/mrdoob/stats.js Copyright (c) 2009-2016 stats.js authors MIT License This program uses code provided under the MIT License. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. howler.js v1.1.14 howlerjs.com (c) 2013, James Simpson of GoldFire Studios goldfirestudios.com pixi.js - v2.2.0 Copyright (c) 2012-2014, Mat Groves http://goodboydigital.com/ Compiled: 2018-10-08 pixi.js is licensed under the MIT License. http://www.opensource.org/licenses/mit-license.php Font.js v2012.01.25 (c) Mike "Pomax" Kamermans, 2012 Licensed under MIT ("expat" flavour) license. Hosted on http://github.com/Pomax/Font.js */ (function () { var a = a || {}; a.WEBGL_RENDERER = 0; a.CANVAS_RENDERER = 1; a.VERSION = "v2.2.0"; a.blendModes = { NORMAL: 0, ADD: 1, MULTIPLY: 2, SCREEN: 3, OVERLAY: 4, DARKEN: 5, LIGHTEN: 6, COLOR_DODGE: 7, COLOR_BURN: 8, HARD_LIGHT: 9, SOFT_LIGHT: 10, DIFFERENCE: 11, EXCLUSION: 12, HUE: 13, SATURATION: 14, COLOR: 15, LUMINOSITY: 16, }; a.scaleModes = { DEFAULT: 0, LINEAR: 0, NEAREST: 1 }; a._UID = 0; "undefined" != typeof Float32Array ? ((a.Float32Array = Float32Array), (a.Uint16Array = Uint16Array)) : ((a.Float32Array = Array), (a.Uint16Array = Array)); a.INTERACTION_FREQUENCY = 30; a.AUTO_PREVENT_DEFAULT = !0; a.PI_2 = 2 * Math.PI; a.RAD_TO_DEG = 180 / Math.PI; a.DEG_TO_RAD = Math.PI / 180; a.RETINA_PREFIX = "@2x"; a.dontSayHello = !0; a.defaultRenderOptions = { view: null, transparent: !1, antialias: !1, preserveDrawingBuffer: !1, resolution: 1, clearBeforeRender: !0, autoResize: !1 }; a.sayHello = function (a) {}; a.Point = function (a, d) { this.x = a || 0; this.y = d || 0; }; a.Point.prototype.clone = function () { return new a.Point(this.x, this.y); }; a.Point.prototype.set = function (a, d) { this.x = a || 0; this.y = d || (0 !== d ? this.x : 0); }; a.Point.prototype.constructor = a.Point; a.Rectangle = function (a, d, e, f) { this.x = a || 0; this.y = d || 0; this.width = e || 0; this.height = f || 0; }; a.Rectangle.prototype.clone = function () { return new a.Rectangle(this.x, this.y, this.width, this.height); }; a.Rectangle.prototype.contains = function (a, d) { if (0 >= this.width || 0 >= this.height) return !1; var e = this.x; return a >= e && a <= e + this.width && ((e = this.y), d >= e && d <= e + this.height) ? !0 : !1; }; a.Rectangle.prototype.constructor = a.Rectangle; a.EmptyRectangle = new a.Rectangle(0, 0, 0, 0); a.Polygon = function (b) { b instanceof Array || (b = Array.prototype.slice.call(arguments)); if (b[0] instanceof a.Point) { for (var d = [], e = 0, f = b.length; e < f; e++) d.push(b[e].x, b[e].y); b = d; } this.closed = !0; this.points = b; }; a.Polygon.prototype.clone = function () { var b = this.points.slice(); return new a.Polygon(b); }; a.Polygon.prototype.contains = function (a, d) { for (var e = !1, f = this.points.length / 2, g = 0, k = f - 1; g < f; k = g++) { var m = this.points[2 * g], n = this.points[2 * g + 1], p = this.points[2 * k], k = this.points[2 * k + 1]; n > d !== k > d && a < ((p - m) * (d - n)) / (k - n) + m && (e = !e); } return e; }; a.Polygon.prototype.constructor = a.Polygon; a.Circle = function (a, d, e) { this.x = a || 0; this.y = d || 0; this.radius = e || 0; }; a.Circle.prototype.clone = function () { return new a.Circle(this.x, this.y, this.radius); }; a.Circle.prototype.contains = function (a, d) { if (0 >= this.radius) return !1; var e = this.x - a, f = this.y - d, g = this.radius * this.radius; return e * e + f * f <= g; }; a.Circle.prototype.getBounds = function () { return new a.Rectangle(this.x - this.radius, this.y - this.radius, 2 * this.radius, 2 * this.radius); }; a.Circle.prototype.constructor = a.Circle; a.RoundedRectangle = function (a, d, e, f, g) { this.x = a || 0; this.y = d || 0; this.width = e || 0; this.height = f || 0; this.radius = g || 20; }; a.RoundedRectangle.prototype.clone = function () { return new a.RoundedRectangle(this.x, this.y, this.width, this.height, this.radius); }; a.RoundedRectangle.prototype.contains = function (a, d) { if (0 >= this.width || 0 >= this.height) return !1; var e = this.x; return a >= e && a <= e + this.width && ((e = this.y), d >= e && d <= e + this.height) ? !0 : !1; }; a.RoundedRectangle.prototype.constructor = a.RoundedRectangle; a.MultiRectangle = function (b) { this.type = a.Graphics.MRECT; this.points = b || []; }; a.MultiRectangle.prototype.constructor = a.MultiRectangle; a.Matrix = function () { this.a = 1; this.c = this.b = 0; this.d = 1; this.ty = this.tx = 0; }; a.Matrix.prototype.fromArray = function (a) { this.a = a[0]; this.b = a[1]; this.c = a[3]; this.d = a[4]; this.tx = a[2]; this.ty = a[5]; }; a.Matrix.prototype.toArray = function (b) { this.array || (this.array = new a.Float32Array(9)); var d = this.array; b ? ((d[0] = this.a), (d[1] = this.b), (d[2] = 0), (d[3] = this.c), (d[4] = this.d), (d[5] = 0), (d[6] = this.tx), (d[7] = this.ty)) : ((d[0] = this.a), (d[1] = this.c), (d[2] = this.tx), (d[3] = this.b), (d[4] = this.d), (d[5] = this.ty), (d[6] = 0), (d[7] = 0)); d[8] = 1; return d; }; a.Matrix.prototype.apply = function (b, d) { d = d || new a.Point(); d.x = this.a * b.x + this.c * b.y + this.tx; d.y = this.b * b.x + this.d * b.y + this.ty; return d; }; a.Matrix.prototype.applyInverse = function (b, d) { d = d || new a.Point(); var e = 1 / (this.a * this.d + this.c * -this.b); d.x = this.d * e * b.x + -this.c * e * b.y + (this.ty * this.c - this.tx * this.d) * e; d.y = this.a * e * b.y + -this.b * e * b.x + (-this.ty * this.a + this.tx * this.b) * e; return d; }; a.Matrix.prototype.translate = function (a, d) { this.tx += a; this.ty += d; return this; }; a.Matrix.prototype.scale = function (a, d) { this.a *= a; this.d *= d; this.c *= a; this.b *= d; this.tx *= a; this.ty *= d; return this; }; a.Matrix.prototype.rotate = function (a) { var d = Math.cos(a); a = Math.sin(a); var e = this.a, f = this.c, g = this.tx; this.a = e * d - this.b * a; this.b = e * a + this.b * d; this.c = f * d - this.d * a; this.d = f * a + this.d * d; this.tx = g * d - this.ty * a; this.ty = g * a + this.ty * d; return this; }; a.Matrix.prototype.append = function (a) { var d = this.a, e = this.b, f = this.c, g = this.d; this.a = a.a * d + a.b * f; this.b = a.a * e + a.b * g; this.c = a.c * d + a.d * f; this.d = a.c * e + a.d * g; this.tx = a.tx * d + a.ty * f + this.tx; this.ty = a.tx * e + a.ty * g + this.ty; return this; }; a.Matrix.prototype.identity = function () { this.a = 1; this.c = this.b = 0; this.d = 1; this.ty = this.tx = 0; return this; }; a.identityMatrix = new a.Matrix(); a.DisplayObject = function () { this._initialized = 0; this.position = new a.Point(); this.scale = new a.Point(1, 1); this.pivot = new a.Point(0, 0); this.rotation = 0; this.alpha = 1; this.visible = !0; this.hitArea = null; this.renderable = this.buttonMode = !1; this.stage = this.parent = null; this.worldAlpha = 1; this._interactive = !1; this.defaultCursor = "pointer"; this.worldTransform = new a.Matrix(); this._sr = 0; this._cr = 1; this.filterArea = null; this._bounds = new a.Rectangle(0, 0, 1, 1); this._mask = this._currentBounds = null; this._cacheIsDirty = this._cacheAsBitmap = !1; this._initialized = 1; }; a.DisplayObject.prototype.constructor = a.DisplayObject; Object.defineProperty(a.DisplayObject.prototype, "interactive", { get: function () { return this._interactive; }, set: function (a) { this._interactive = a; this.stage && (this.stage.dirty = !0); }, }); Object.defineProperty(a.DisplayObject.prototype, "worldVisible", { get: function () { var a = this; do { if (!a.visible) return !1; a = a.parent; } while (a); return !0; }, }); Object.defineProperty(a.DisplayObject.prototype, "mask", { get: function () { return this._mask; }, set: function (a) { this._mask && (this._mask.isMask = !1); if ((this._mask = a)) this._mask.isMask = !0; }, }); Object.defineProperty(a.DisplayObject.prototype, "filters", { get: function () { return this._filters; }, set: function (a) { if (a) { for (var d = [], e = 0; e < a.length; e++) for (var f = a[e].passes, g = 0; g < f.length; g++) d.push(f[g]); this._filterBlock = { target: this, filterPasses: d }; } this._filters = a; }, }); Object.defineProperty(a.DisplayObject.prototype, "cacheAsBitmap", { get: function () { return this._cacheAsBitmap; }, set: function (a) { this._cacheAsBitmap !== a && (a ? this._generateCachedSprite() : this._destroyCachedSprite(), (this._cacheAsBitmap = a)); }, }); a.DisplayObject.prototype.updateTransform = function () { var b = this.parent.worldTransform, d = this.worldTransform, e, f, g, k, m, n; if (this.rotation % a.PI_2 || (this.greentube_matrix_apply && this.greentube_matrix && 3 < this.greentube_matrix.length)) { if (this.rotation !== this.rotationCache || this._sr !== this._srCache || this._cr !== this._crCache) (this.rotationCache = this.rotation), (this._sr = Math.sin(this.rotation)), (this._cr = Math.cos(this.rotation)), (this._srCache = this._sr), (this._crCache = this._cr); this.greentube_matrix && 3 < this.greentube_matrix.length ? ((e = this.greentube_matrix[0]), (f = this.greentube_matrix[1]), (g = this.greentube_matrix[2]), (k = this.greentube_matrix[3]), this.gt_overridewidth_factor && ((e *= this.gt_overridewidth_factor), (g *= this.gt_overridewidth_factor)), this.gt_overrideheight_factor && ((f *= this.gt_overrideheight_factor), (k *= this.gt_overrideheight_factor))) : ((e = this._cr * this.scale.x), (f = this._sr * this.scale.x), (g = -this._sr * this.scale.y), (k = this._cr * this.scale.y)); m = this.position.x; n = this.position.y; if (this.pivot.x || this.pivot.y) (m -= this.pivot.x * e + this.pivot.y * g), (n -= this.pivot.x * f + this.pivot.y * k); d.a = e * b.a + f * b.c; d.b = e * b.b + f * b.d; d.c = g * b.a + k * b.c; d.d = g * b.b + k * b.d; } else (e = this.scale.x), (k = this.scale.y), (m = this.position.x - this.pivot.x * e), (n = this.position.y - this.pivot.y * k), (d.a = e * b.a), (d.b = e * b.b), (d.c = k * b.c), (d.d = k * b.d); d.tx = m * b.a + n * b.c + b.tx; d.ty = m * b.b + n * b.d + b.ty; this.worldAlpha = this.alpha * this.parent.worldAlpha; }; a.DisplayObject.prototype.displayObjectUpdateTransform = a.DisplayObject.prototype.updateTransform; a.DisplayObject.prototype.getBounds = function (b) { return a.EmptyRectangle; }; a.DisplayObject.prototype.getLocalBounds = function () { return this.getBounds(a.identityMatrix); }; a.DisplayObject.prototype.setStageReference = function (a) { this.stage = a; this._interactive && (this.stage.dirty = !0); }; a.DisplayObject.prototype.generateTexture = function (b, d, e) { var f = this.getLocalBounds(); b = new a.RenderTexture(f.width | 0, f.height | 0, e, d, b); a.DisplayObject._tempMatrix.tx = -f.x; a.DisplayObject._tempMatrix.ty = -f.y; b.render(this, a.DisplayObject._tempMatrix); return b; }; a.DisplayObject.prototype.updateCache = function () { this._generateCachedSprite(); }; a.DisplayObject.prototype.toGlobal = function (a) { this.updateTransform(); return this.worldTransform.apply(a); }; a.DisplayObject.prototype.toLocal = function (a, d) { d && (a = d.toGlobal(a)); this.updateTransform(); return this.worldTransform.applyInverse(a); }; a.DisplayObject.prototype._renderCachedSprite = function (b) { this._cachedSprite.worldAlpha = this.worldAlpha; b.gl ? a.Sprite.prototype._renderWebGL.call(this._cachedSprite, b) : a.Sprite.prototype._renderCanvas.call(this._cachedSprite, b); }; a.DisplayObject.prototype._generateCachedSprite = function () { this._cacheAsBitmap = !1; var b = this.getLocalBounds(); if (this._cachedSprite) this._cachedSprite.texture.resize(b.width | 0, b.height | 0); else { var d = new a.RenderTexture(b.width | 0, b.height | 0); this._cachedSprite = new a.Sprite(d); this._cachedSprite.worldTransform = this.worldTransform; } d = this._filters; this._filters = null; this._cachedSprite.filters = d; a.DisplayObject._tempMatrix.tx = -b.x; a.DisplayObject._tempMatrix.ty = -b.y; this._cachedSprite.texture.render(this, a.DisplayObject._tempMatrix); this._cachedSprite.anchor.x = -(b.x / b.width); this._cachedSprite.anchor.y = -(b.y / b.height); this._filters = d; this._cacheAsBitmap = !0; }; a.DisplayObject.prototype._destroyCachedSprite = function () { this._cachedSprite && (this._cachedSprite.texture.destroy(!0), (this._cachedSprite = null)); }; a.DisplayObject.prototype._renderWebGL = function (a) {}; a.DisplayObject.prototype._renderCanvas = function (a) {}; a.DisplayObject._tempMatrix = new a.Matrix(); Object.defineProperty(a.DisplayObject.prototype, "x", { get: function () { return this.position.x; }, set: function (a) { this.position.x = a; }, }); Object.defineProperty(a.DisplayObject.prototype, "y", { get: function () { return this.position.y; }, set: function (a) { this.position.y = a; }, }); a.DisplayObjectContainer = function () { a.DisplayObject.call(this); this.children = []; this.mustUpdateBounds = !0; }; a.DisplayObjectContainer.prototype = Object.create(a.DisplayObject.prototype); a.DisplayObjectContainer.prototype.constructor = a.DisplayObjectContainer; Object.defineProperty(a.DisplayObjectContainer.prototype, "width", { get: function () { return this._width && !this.mustUpdateBounds ? this._width : this.scale.x * this.getLocalBounds().width; }, set: function (a) { var d = this.getLocalBounds().width; this.scale.x = 0 !== d ? a / d : 1; this._width = a; }, }); Object.defineProperty(a.DisplayObjectContainer.prototype, "height", { get: function () { return this._height && !this.mustUpdateBounds ? this._height : this.scale.y * this.getLocalBounds().height; }, set: function (a) { var d = this.getLocalBounds().height; this.scale.y = 0 !== d ? a / d : 1; this._height = a; }, }); a.DisplayObjectContainer.prototype.addChild = function (a) { this.mustUpdateBounds = !0; return this.addChildAt(a, this.children.length); }; a.DisplayObjectContainer.prototype.addChildAt = function (a, d) { this.mustUpdateBounds = !0; if (0 <= d && d <= this.children.length) return a.parent && a.parent.removeChild(a), (a.parent = this), this.children.splice(d, 0, a), this.stage && a.setStageReference(this.stage), a; throw Error(a + "addChildAt: The index " + d + " supplied is out of bounds " + this.children.length); }; a.DisplayObjectContainer.prototype.swapChildren = function (a, d) { if (a !== d) { var e = this.getChildIndex(a), f = this.getChildIndex(d); if (0 > e || 0 > f) throw Error("swapChildren: Both the supplied DisplayObjects must be a child of the caller."); this.children[e] = d; this.children[f] = a; } }; a.DisplayObjectContainer.prototype.getChildIndex = function (a) { a = this.children.indexOf(a); if (-1 === a) throw Error("The supplied DisplayObject must be a child of the caller"); return a; }; a.DisplayObjectContainer.prototype.setChildIndex = function (a, d) { if (0 > d || d >= this.children.length) throw Error("The supplied index is out of bounds"); var e = this.getChildIndex(a); this.children.splice(e, 1); this.children.splice(d, 0, a); }; a.DisplayObjectContainer.prototype.getChildAt = function (a) { if (0 > a || a >= this.children.length) throw Error("getChildAt: Supplied index " + a + " does not exist in the child list, or the supplied DisplayObject must be a child of the caller"); return this.children[a]; }; a.DisplayObjectContainer.prototype.removeChild = function (a) { a = this.children.indexOf(a); if (-1 !== a) return this.removeChildAt(a); }; a.DisplayObjectContainer.prototype.removeChildAt = function (a) { this.mustUpdateBounds = !0; var d = this.getChildAt(a); this.stage && d.removeStageReference(); d.parent = void 0; this.children.splice(a, 1); return d; }; a.DisplayObjectContainer.prototype.removeChildren = function (a, d) { this.mustUpdateBounds = !0; var e = a || 0, f = "number" === typeof d ? d : this.children.length, g = f - e; if (0 < g && g <= f) { e = this.children.splice(e, g); for (f = 0; f < e.length; f++) (g = e[f]), this.stage && g.removeStageReference(), (g.parent = void 0); return e; } if (0 === g && 0 === this.children.length) return []; throw Error("removeChildren: Range Error, numeric values are outside the acceptable range"); }; a.DisplayObjectContainer.prototype.updateTransform = function () { if (!1 !== this.visible && (this.displayObjectUpdateTransform(), !this._cacheAsBitmap)) for (var a = 0, d = this.children.length; a < d; a++) this.children[a].updateTransform(); }; a.DisplayObjectContainer.prototype.displayObjectContainerUpdateTransform = a.DisplayObjectContainer.prototype.updateTransform; a.DisplayObjectContainer.prototype.getBounds = function () { if (0 === this.children.length) return a.EmptyRectangle; for (var b = Infinity, d = Infinity, e = -Infinity, f = -Infinity, g, k, m = !1, n = 0, p = this.children.length; n < p; n++) (k = this.children[n]) && k.visible && ((m = !0), (g = this.children[n].getBounds()), (b = b < g.x ? b : g.x), (d = d < g.y ? d : g.y), (k = g.width + g.x), (g = g.height + g.y), (e = e > k ? e : k), (f = f > g ? f : g)); if (!m) return a.EmptyRectangle; m = this._bounds; m.x = b; m.y = d; m.width = e - b; m.height = f - d; this.mustUpdateBounds = !1; return m; }; a.DisplayObjectContainer.prototype.getLocalBounds = function () { var b = this.worldTransform; this.worldTransform = a.identityMatrix; for (var d = 0, e = this.children.length; d < e; d++) this.children[d].updateTransform(); d = this.getBounds(); this.worldTransform = b; return d; }; a.DisplayObjectContainer.prototype.setStageReference = function (a) { this.stage = a; this._interactive && (this.stage.dirty = !0); for (var d = 0, e = this.children.length; d < e; d++) this.children[d].setStageReference(a); }; a.DisplayObjectContainer.prototype.removeStageReference = function () { for (var a = 0, d = this.children.length; a < d; a++) this.children[a].removeStageReference(); this._interactive && (this.stage.dirty = !0); this.stage = null; }; a.DisplayObjectContainer.prototype._renderWebGL = function (a) { if (!(!1 === this.visible || 0 >= this.alpha)) { var d = JSUTIL.GLUtil.currentParallaxDepth; -1e5 < this.parallaxDepth && (JSUTIL.GLUtil.currentParallaxDepth = this.parallaxDepth); if (this._cacheAsBitmap) this._renderCachedSprite(a), (JSUTIL.GLUtil.currentParallaxDepth = d); else if (!(1 > this.children.length)) { var e, f; if (this.maskdata) { e = this.maskdata; f = this.pivot.x; var g = this.pivot.y, k = e[2], m = e[3]; e = k * (1 - f); k *= -f; f = m * (1 - g); var g = m * -g, n = this.worldTransform, m = n.a, p = n.b, q = n.c, r = n.d, t = n.tx, n = n.ty; if (CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth) var u = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth, B = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth, t = t + u, n = n + B; u = m * k + q * g + t; k = r * g + p * k + n; JSUTIL.GLUtil.applyClip_4(u, k, m * e + q * g + t - u, r * f + p * e + n - k); } if (!this.maskdata || !JSUTIL.GLUtil.isClipEmpty_0()) { this._filters && (a.spriteBatch.flush(), a.filterManager.pushFilter(this._filterBlock)); this._mask && (a.spriteBatch.stop(), a.maskManager.pushMask(this.mask, a), a.spriteBatch.start()); e = 0; for (f = this.children.length; e < f; e++) this.children[e]._renderWebGL(a); if (this._mask || this._filters) a.spriteBatch.stop(), this._mask && a.maskManager.popMask(this._mask, a), this._filters && a.filterManager.popFilter(), a.spriteBatch.start(); } this.maskdata && JSUTIL.GLUtil.popClip_0(); JSUTIL.GLUtil.currentParallaxDepth = d; } } }; a.DisplayObjectContainer.prototype._renderCanvas = function (a) { if (!1 !== this.visible && 0 !== this.alpha) { var d = JSUTIL.GLUtil.currentParallaxDepth; -1e5 < this.parallaxDepth && (JSUTIL.GLUtil.currentParallaxDepth = this.parallaxDepth); if (this._cacheAsBitmap) this._renderCachedSprite(a); else { this._mask && a.maskManager.pushMask(this._mask, a); for (var e = 0, f = this.children.length; e < f; e++) this.children[e]._renderCanvas(a); this._mask && a.maskManager.popMask(a); } JSUTIL.GLUtil.currentParallaxDepth = d; } }; a.Sprite = function (b) { a.DisplayObjectContainer.call(this); this.anchor = new a.Point(); this.texture = b; this._height = this._width = 0; this.tint = 16777215; this.blendMode = a.blendModes.NORMAL; this.shader = null; if (b.baseTexture.hasLoaded) this.onTextureUpdate(); else this.texture.on("update", this.onTextureUpdate.bind(this)); this.renderable = !0; }; a.Sprite.prototype = Object.create(a.DisplayObjectContainer.prototype); a.Sprite.prototype.constructor = a.Sprite; Object.defineProperty(a.Sprite.prototype, "width", { get: function () { return this.scale.x * this.texture.frame.width; }, set: function (a) { this.scale.x = a / this.texture.frame.width; this._width = a; }, }); Object.defineProperty(a.Sprite.prototype, "height", { get: function () { return this.scale.y * this.texture.frame.height; }, set: function (a) { this.scale.y = a / this.texture.frame.height; this._height = a; }, }); a.Sprite.prototype.setTexture = function (a) { this.texture = a; this.cachedTint = 16777215; }; a.Sprite.prototype.onTextureUpdate = function () { this._width && (this.scale.x = this._width / this.texture.frame.width); this._height && (this.scale.y = this._height / this.texture.frame.height); }; a.Sprite.prototype.getBounds = function (a) { var d = this.texture ? this.texture.frame.width : 0, e = this.texture ? this.texture.frame.height : 0, f = d * (1 - this.anchor.x), g = d * -this.anchor.x, k = e * (1 - this.anchor.y), m = e * -this.anchor.y; a = a || this.worldTransform; var n = a.a, p = a.b, q = a.c, r = a.d, t = a.tx, u = a.ty; a = n * g + q * m + t; var e = r * m + p * g + u, d = n * f + q * m + t, m = r * m + p * f + u, B = n * f + q * k + t, f = r * k + p * f + u, n = n * g + q * k + t, g = r * k + p * g + u, p = (k = -Infinity), q = (r = Infinity), r = a < r ? a : r, r = d < r ? d : r, r = B < r ? B : r, r = n < r ? n : r, q = e < q ? e : q, q = m < q ? m : q, q = f < q ? f : q, q = g < q ? g : q, k = a > k ? a : k, k = d > k ? d : k, k = B > k ? B : k, p = e > p ? e : p, p = m > p ? m : p, p = f > p ? f : p; a = this._bounds; a.x = r; a.width = (n > k ? n : k) - r; a.y = q; a.height = (g > p ? g : p) - q; return (this._currentBounds = a); }; a.Sprite.prototype._renderWebGL = function (a) { if (this.visible && !(0 >= this.alpha) && this.texture && !this.texture.isDummyFrame) { var d, e, f = JSUTIL.GLUtil.currentParallaxDepth; -1e5 < this.parallaxDepth && (JSUTIL.GLUtil.currentParallaxDepth = this.parallaxDepth); if (this._mask || this._filters) { var g = a.spriteBatch; this._filters && (g.flush(), a.filterManager.pushFilter(this._filterBlock)); this._mask && (g.stop(), a.maskManager.pushMask(this.mask, a), g.start()); g.render(this); d = 0; for (e = this.children.length; d < e; d++) this.children[d]._renderWebGL(a); g.stop(); this._mask && a.maskManager.popMask(this._mask, a); this._filters && a.filterManager.popFilter(); g.start(); } else for (a.spriteBatch.render(this), d = 0, e = this.children.length; d < e; d++) this.children[d]._renderWebGL(a); JSUTIL.GLUtil.currentParallaxDepth = f; } }; a.Sprite.prototype._renderCanvas = function (b) { if (!(!1 === this.visible || 0 === this.alpha || !this.texture || this.texture.isDummyFrame || 0 >= this.texture.crop.width || 0 >= this.texture.crop.height)) { var d = JSUTIL.GLUtil.currentParallaxDepth; -1e5 < this.parallaxDepth && (JSUTIL.GLUtil.currentParallaxDepth = this.parallaxDepth); this.blendMode !== b.currentBlendMode && ((b.currentBlendMode = this.blendMode), (b.context.globalCompositeOperation = a.blendModesCanvas[b.currentBlendMode])); this._mask && b.maskManager.pushMask(this._mask, b); if (this.texture.valid) { var e = this.texture.baseTexture.resolution / b.resolution; b.context.globalAlpha = this.worldAlpha; var f = 0, g = 0; CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth && ((f = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth), (g = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth)); b.roundPixels ? b.context.setTransform( this.worldTransform.a, this.worldTransform.b, this.worldTransform.c, this.worldTransform.d, ((this.worldTransform.tx + f) * b.resolution) | 0, ((this.worldTransform.ty + g) * b.resolution) | 0 ) : b.context.setTransform(this.worldTransform.a, this.worldTransform.b, this.worldTransform.c, this.worldTransform.d, (this.worldTransform.tx + f) * b.resolution, (this.worldTransform.ty + g) * b.resolution); b.smoothProperty && b.scaleMode !== this.texture.baseTexture.scaleMode && ((b.scaleMode = this.texture.baseTexture.scaleMode), (b.context[b.smoothProperty] = b.scaleMode === a.scaleModes.LINEAR)); var f = this.texture.trim ? this.texture.trim.x - this.anchor.x * this.texture.trim.width : this.anchor.x * -this.texture.frame.width, g = this.texture.trim ? this.texture.trim.y - this.anchor.y * this.texture.trim.height : this.anchor.y * -this.texture.frame.height, k = !0 === this.horizontalFlip ? -1 : 1, m = !0 === this.verticalFlip ? -1 : 1; (!0 !== this.horizontalFlip && !0 !== this.verticalFlip) || b.context.scale(k, m); try { 16777215 !== this.tint ? (this.cachedTint !== this.tint && ((this.cachedTint = this.tint), (this.tintedTexture = a.CanvasTinter.getTintedTexture(this, this.tint))), b.context.drawImage(this.tintedTexture, 0, 0, this.texture.crop.width, this.texture.crop.height, f / e, g / e, (k * this.texture.crop.width) / e, (m * this.texture.crop.height) / e)) : b.context.drawImage( this.texture.baseTexture.source, this.texture.crop.x, this.texture.crop.y, this.texture.crop.width, this.texture.crop.height, f / e, g / e, (k * this.texture.crop.width) / e, (m * this.texture.crop.height) / e ); } catch (n) { console.log("Error: " + n.message); } (!0 !== this.horizontalFlip && !0 !== this.verticalFlip) || b.context.scale(k, m); } e = 0; for (f = this.children.length; e < f; e++) this.children[e]._renderCanvas(b); this._mask && b.maskManager.popMask(b); JSUTIL.GLUtil.currentParallaxDepth = d; } }; a.Sprite.fromFrame = function (b) { var d = a.TextureCache[b]; if (!d) throw Error('The frameId "' + b + '" does not exist in the texture cache' + this); return new a.Sprite(d); }; a.Sprite.fromImage = function (b, d, e) { b = a.Texture.fromImage(b, d, e); return new a.Sprite(b); }; a.SpriteBatch = function (b) { a.DisplayObjectContainer.call(this); this.textureThing = b; this.ready = !1; }; a.SpriteBatch.prototype = Object.create(a.DisplayObjectContainer.prototype); a.SpriteBatch.prototype.constructor = a.SpriteBatch; a.SpriteBatch.prototype.initWebGL = function (b) { this.fastSpriteBatch = new a.WebGLFastSpriteBatch(b); this.ready = !0; }; a.SpriteBatch.prototype.updateTransform = function () { a.DisplayObject.prototype.updateTransform.call(this); }; a.SpriteBatch.prototype._renderWebGL = function (a) { !this.visible || 0 >= this.alpha || !this.children.length || (this.ready || this.initWebGL(a.gl), a.spriteBatch.stop(), a.shaderManager.setShader(a.shaderManager.fastShader), this.fastSpriteBatch.begin(this, a), this.fastSpriteBatch.render(this), a.spriteBatch.start()); }; a.SpriteBatch.prototype._renderCanvas = function (b) { if (this.visible && !(0 >= this.alpha) && this.children.length) { var d = b.context; d.globalAlpha = this.worldAlpha; a.DisplayObject.prototype.updateTransform.call(this); for (var e = this.worldTransform, f = !0, g = 0; g < this.children.length; g++) { var k = this.children[g]; if (k.visible) { var m = k.texture, n = m.frame; d.globalAlpha = this.worldAlpha * k.alpha; if (0 === k.rotation % (2 * Math.PI)) f && (d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty), (f = !1)), d.drawImage( m.baseTexture.source, n.x, n.y, n.width, n.height, (k.anchor.x * -n.width * k.scale.x + k.position.x + 0.5) | 0, (k.anchor.y * -n.height * k.scale.y + k.position.y + 0.5) | 0, n.width * k.scale.x, n.height * k.scale.y ); else { f || (f = !0); a.DisplayObject.prototype.updateTransform.call(k); var p = k.worldTransform; b.roundPixels ? d.setTransform(p.a, p.b, p.c, p.d, p.tx | 0, p.ty | 0) : d.setTransform(p.a, p.b, p.c, p.d, p.tx, p.ty); d.drawImage(m.baseTexture.source, n.x, n.y, n.width, n.height, (k.anchor.x * -n.width + 0.5) | 0, (k.anchor.y * -n.height + 0.5) | 0, n.width, n.height); } } } } }; a.MovieClip = function (b) { a.Sprite.call(this, b[0]); this.textures = b; this.animationSpeed = 1; this.loop = !0; this.onComplete = null; this.currentFrame = 0; this.playing = !1; }; a.MovieClip.prototype = Object.create(a.Sprite.prototype); a.MovieClip.prototype.constructor = a.MovieClip; Object.defineProperty(a.MovieClip.prototype, "totalFrames", { get: function () { return this.textures.length; }, }); a.MovieClip.prototype.stop = function () { this.playing = !1; }; a.MovieClip.prototype.play = function () { this.playing = !0; }; a.MovieClip.prototype.gotoAndStop = function (a) { this.playing = !1; this.currentFrame = a; this.setTexture(this.textures[((this.currentFrame + 0.5) | 0) % this.textures.length]); }; a.MovieClip.prototype.gotoAndPlay = function (a) { this.currentFrame = a; this.playing = !0; }; a.MovieClip.prototype.updateTransform = function () { a.Sprite.prototype.updateTransform.call(this); if (this.playing) { this.currentFrame += this.animationSpeed; var b = (this.currentFrame + 0.5) | 0; this.currentFrame %= this.textures.length; if (this.loop || b < this.textures.length) this.setTexture(this.textures[b % this.textures.length]); else if (b >= this.textures.length && (this.gotoAndStop(this.textures.length - 1), this.onComplete)) this.onComplete(); } }; a.MovieClip.fromFrames = function (b) { for (var d = [], e = 0; e < b.length; e++) d.push(new a.Texture.fromFrame(b[e])); return new a.MovieClip(d); }; a.MovieClip.fromImages = function (b) { for (var d = [], e = 0; e < b.length; e++) d.push(new a.Texture.fromImage(b[e])); return new a.MovieClip(d); }; a.FilterBlock = function () { this.renderable = this.visible = !0; }; a.FilterBlock.prototype.constructor = a.FilterBlock; a.Text = function (b, d) { this.canvas = document.createElement("canvas"); this.context = this.canvas.getContext("2d"); this.resolution = 1; a.Sprite.call(this, a.Texture.fromCanvas(this.canvas)); this.setText(b); this.setStyle(d); }; a.Text.prototype = Object.create(a.Sprite.prototype); a.Text.prototype.constructor = a.Text; Object.defineProperty(a.Text.prototype, "width", { get: function () { this.dirty && (this.updateText(), (this.dirty = !1)); return this.scale.x * this.texture.frame.width; }, set: function (a) { this.scale.x = a / this.texture.frame.width; this._width = a; }, }); Object.defineProperty(a.Text.prototype, "height", { get: function () { this.dirty && (this.updateText(), (this.dirty = !1)); return this.scale.y * this.texture.frame.height; }, set: function (a) { this.scale.y = a / this.texture.frame.height; this._height = a; }, }); a.Text.prototype.setStyle = function (a) { a = a || {}; a.font = a.font || "bold 20pt Arial"; a.fill = a.fill || "black"; a.align = a.align || "left"; a.stroke = a.stroke || "black"; a.strokeThickness = a.strokeThickness || 0; a.wordWrap = a.wordWrap || !1; a.wordWrapWidth = a.wordWrapWidth || 100; a.dropShadow = a.dropShadow || !1; a.dropShadowAngle = a.dropShadowAngle || Math.PI / 6; a.dropShadowDistance = a.dropShadowDistance || 4; a.dropShadowColor = a.dropShadowColor || "black"; this.style = a; this.dirty = !0; }; a.Text.prototype.setText = function (a) { this.text = a.toString() || " "; this.dirty = !0; }; a.Text.prototype.updateText = function () { this.texture.baseTexture.resolution = this.resolution; this.context.font = this.style.font; var b = this.text; this.style.wordWrap && (b = this.wordWrap(this.text)); var b = b.split(/(?:\r\n|\r|\n)/), d = [], e = 0, f = null, g = 0, k = !0, m = null, n = JSUTIL.getOpenTypeCustomFont(this.style.name, this.style.bold, this.style.italic); if (null !== n) for (var k = !1, p = this.style.size, m = { kerning: !0 }, f = a.Text.prototype.determineFontProperties(this.style.font, n, p), q = 0; q < b.length; q++) { var r = b[q], t = 0, u = 0, B = 0; n.forEachGlyph(r, 0, 0, p, m, function (a, b, d, e) { t = b; B = a.advanceWidth; }); t += (1 / n.unitsPerEm) * B * p; g = u = t - 0; d[q] = g; e = Math.max(e, g); } if (!0 === k) for (f = a.Text.prototype.determineFontProperties(this.style.font), q = 0; q < b.length; q++) (g = this.context.measureText(b[q]).width), (d[q] = g), (e = Math.max(e, g)); g = f.fontSize; u = e + 2 * this.style.strokeThickness; this.style.dropShadow && (u += Math.abs(this.style.dropShadowDistance)); this.canvas.width = (u + this.context.lineWidth) * this.resolution + (0 <= this.style.font.indexOf_1("italic") ? 5 : 0); var g = g + this.style.strokeThickness, A = !0 === k ? 15 : 0, C = g * b.length; this.style.dropShadow && (C += Math.abs(this.style.dropShadowDistance)); this.canvas.height = C * this.resolution + A; !0 === k && f.leading < f.descent && (A += Math.floor(-f.leading + (4 * f.descent) / 3)); this.context.scale(this.resolution, this.resolution); navigator.isCocoonJS && this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); this.context.font = this.style.font; this.context.lineWidth = this.style.strokeThickness; this.context.textBaseline = "top"; var E; if (this.style.dropShadow) { this.context.fillStyle = this.style.dropShadowColor; this.context.strokeStyle = this.style.dropShadowColor; for (var F = Math.sin(this.style.dropShadowAngle) * this.style.dropShadowDistance, D = Math.cos(this.style.dropShadowAngle) * this.style.dropShadowDistance, q = 0; q < b.length; q++) if (((E = this.style.strokeThickness), (r = this.style.strokeThickness / 2 + q * g + A), "right" === this.style.align ? (E += e - d[q]) : "center" === this.style.align && (E += (e - d[q]) / 2), !0 === k)) this.style.stroke && this.style.strokeThickness && ((this.context.lineJoin = "round"), this.context.strokeText(b[q], E + F, r + D), (this.context.lineJoin = "miter")), this.style.fill && this.context.fillText(b[q], E + F, r + D); else { p = this.style.size; E += F; var H = r + f.ascent + D, r = b[q]; this.context.lineJoin = "round"; if (this.style.stroke && this.style.strokeThickness) { var I = n.getPath(r, E, H, p, m); I.fill = this.style.dropShadowColor; I.stroke = this.style.dropShadowColor; I.strokeWidth = 1.1 * this.style.strokeThickness; I.draw(this.context); } p = n.getPath(r, E, H, p, m); p.fill = this.style.dropShadowColor; p.stroke = null; p.strokeWidth = 1; p.draw(this.context); this.context.lineJoin = "miter"; } } F = null; if ("undefined" !== typeof this.style.gradient && null !== this.style.gradient) { var p = this.style.gradient, D = p.gradient.rotation, q = p.boxwidth, u = (u - q) / 2, F = Math.sin(D), D = Math.cos(D), I = 0.5 * q, L = 0.5 * C, r = 2 * Math.max(q, C); E = H = 0; E = D * r; var J = F * r, r = I - E, H = L - J, I = I + E - r, L = L + J - H, M = q, N = 0, P = 0, O = C, J = (-L * (r - M) + I * (H - N)) / (-P * L + I * O), M = (P * (H - N) - O * (r - M)) / (-P * L + I * O); E = 0 <= J && 1 >= J && 0 <= M && 1 >= M ? H + M * L : 0 < F ? C : 0; M = 0; N = C; P = q; O = 0; J = (-L * (r - M) + I * (H - N)) / (-P * L + I * O); M = (P * (H - N) - O * (r - M)) / (-P * L + I * O); H = 0 <= J && 1 >= J && 0 <= M && 1 >= M ? r + M * I : 0 < D ? q : 0; F = this.context.createLinearGradient(u + (q - H), C - E + A, u + H, E + A); for (q = 0; q < p.gradient.fractions.length; ++q) F.addColorStop(p.gradient.fractions[q], p.gradient.colors[q].getRGBString_0()); this.context.fillStyle = F; } else this.context.fillStyle = this.style.fill; this.context.strokeStyle = this.style.stroke; for (q = 0; q < b.length; q++) (E = this.style.strokeThickness), (r = this.style.strokeThickness / 2 + q * g + A), "right" === this.style.align ? (E += e - d[q]) : "center" === this.style.align && (E += (e - d[q]) / 2), !0 === k ? (this.style.stroke && this.style.strokeThickness && ((this.context.lineJoin = "round"), this.context.strokeText(b[q], E, r), (this.context.lineJoin = "miter")), this.style.fill && this.context.fillText(b[q], E, r)) : ((p = this.style.size), (H = r + f.ascent), (r = b[q]), (this.context.lineJoin = "round"), this.style.stroke && this.style.strokeThickness && ((I = n.getPath(r, E, H, p, m)), (I.fill = this.style.fill), (I.stroke = this.style.stroke), (I.strokeWidth = 1.1 * this.style.strokeThickness), I.draw(this.context)), (p = n.getPath(r, E, H, p, m)), (p.fill = null !== F ? F : this.style.fill), (p.stroke = null), (p.strokeWidth = 1), p.draw(this.context), (this.context.lineJoin = "miter")); this.updateTexture(); }; a.Text.prototype.updateTexture = function () { this.texture.baseTexture.width = this.canvas.width; this.texture.baseTexture.height = this.canvas.height; this.texture.crop.width = this.texture.frame.width = this.canvas.width; this.texture.crop.height = this.texture.frame.height = this.canvas.height; this._width = this.canvas.width; this._height = this.canvas.height; this.texture.baseTexture.dirty(); }; a.Text.prototype._renderWebGL = function (b) { this.dirty && ((this.resolution = b.resolution), this.updateText(), (this.dirty = !1)); a.Sprite.prototype._renderWebGL.call(this, b); }; a.Text.prototype._renderCanvas = function (b) { this.dirty && ((this.resolution = b.resolution), this.updateText(), (this.dirty = !1)); a.Sprite.prototype._renderCanvas.call(this, b); }; a.Text.getTextHeight = function (a, d, e, f, g) { a.fillStyle = "#f00"; a.fillRect(0, 0, e, f); a.fillStyle = "#000"; a.fillText(d, 0, 0); a = a.getImageData(0, 0, e, f).data; d = a.length; e *= 4; var k, m = 0, n = 0, p = !1; if (g) { for (g = 0; g < f; g++) { for (k = 0; k < e; k += 4) if (255 !== a[m + k]) { p = !0; break; } if (p) break; else m += e; } n = g; } m = d - e; p = !1; for (g = f; 0 < g; g--) { for (k = 0; k < e; k += 4) if (255 !== a[m + k]) { p = !0; break; } if (p) break; else m -= e; } return [n, g]; }; a.Text.prototype.determineFontProperties = function (b, d, e) { var f = "undefined" === typeof d, g = b + "_" + (f ? "ntiv" : "cstm"), k = a.Text.fontPropertiesCache[g]; if (!k) { k = {}; if (!0 === f) { var m = a.Text.fontPropertiesCanvas; d = a.Text.fontPropertiesContext; d.font = b; d.textBaseline = "top"; e = Math.ceil(d.measureText("Mg|").width); f = 3 * Math.ceil(d.measureText("M").width); m.width = e; m.height = f; d.font = b; d.textBaseline = "top"; m = a.Text.getTextHeight(d, "M", e, f, !0); b = m[0]; m = m[1]; d = a.Text.getTextHeight(d, "Mg|", e, f, !1)[1] - m; k.ascent = m; k.descent = d; k.leading = b; k.fontSize = b < d ? m - b + (7 / 3) * d : m + d; } else (b = (1 / d.unitsPerEm) * e), (k.ascent = d.ascender * b), (k.descent = Math.abs(d.descender) * b), (k.leading = 0), (k.fontSize = Math.ceil(k.ascent + k.descent)); a.Text.fontPropertiesCache[g] = k; } return k; }; a.Text.prototype.determineFontHeight = function (b) { var d = a.Text.heightCache[b]; if (!d) { var e = document.getElementsByTagName("body")[0], f = document.createElement("div"), d = document.createTextNode("M"); f.appendChild(d); f.setAttribute("style", b + ";position:absolute;top:0;left:0"); e.appendChild(f); d = f.offsetHeight; a.Text.heightCache[b] = d; e.removeChild(f); } return d; }; a.Text.prototype.wordWrap = function (a) { var d = ""; a = a.split("\n"); for (var e = 0; e < a.length; e++) { for (var f = this.style.wordWrapWidth, g = a[e].split(" "), k = 0; k < g.length; k++) { var m = this.context.measureText(g[k]).width, n = m + this.context.measureText(" ").width; 0 === k || n > f ? (0 < k && (d += "\n"), (d += g[k]), (f = this.style.wordWrapWidth - m)) : ((f -= n), (d += " " + g[k])); } e < a.length - 1 && (d += "\n"); } return d; }; a.Text.prototype.getBounds = function (b) { this.dirty && (this.updateText(), (this.dirty = !1)); return a.Sprite.prototype.getBounds.call(this, b); }; a.Text.prototype.destroy = function (a) { this.canvas = this.context = null; this.texture.destroy(void 0 === a ? !0 : a); }; a.Text.fontPropertiesCache = {}; a.Text.heightCache = {}; a.Text.fontPropertiesCanvas = document.createElement("canvas"); a.Text.fontPropertiesContext = a.Text.fontPropertiesCanvas.getContext("2d"); a.BitmapText = function (b, d) { a.DisplayObjectContainer.call(this); this.textHeight = this.textWidth = 0; this._pool = []; this.setText(b); this.setStyle(d); this.updateText(); this.dirty = !1; }; a.BitmapText.prototype = Object.create(a.DisplayObjectContainer.prototype); a.BitmapText.prototype.constructor = a.BitmapText; a.BitmapText.prototype.setText = function (a) { this.text = a || " "; this.dirty = !0; }; a.BitmapText.prototype.setStyle = function (b) { b = b || {}; b.align = b.align || "left"; this.style = b; var d = b.font.split(" "); this.fontName = d[d.length - 1]; this.fontSize = 2 <= d.length ? parseInt(d[d.length - 2], 10) : a.BitmapText.fonts[this.fontName].size; this.dirty = !0; this.tint = b.tint; }; a.BitmapText.prototype.updateText = function () { for (var b = a.BitmapText.fonts[this.fontName], d = new a.Point(), e = null, f = [], g = 0, k = [], m = 0, n = this.fontSize / b.size, p = 0; p < this.text.length; p++) { var q = this.text.charCodeAt(p); if (/(?:\r\n|\r|\n)/.test(this.text.charAt(p))) k.push(d.x), (g = Math.max(g, d.x)), m++, (d.x = 0), (d.y += b.lineHeight), (e = null); else { var r = b.chars[q]; r && (e && r.kerning[e] && (d.x += r.kerning[e]), f.push({ texture: r.texture, line: m, charCode: q, position: new a.Point(d.x + r.xOffset, d.y + r.yOffset) }), (d.x += r.xAdvance), (e = q)); } } k.push(d.x); g = Math.max(g, d.x); e = []; for (p = 0; p <= m; p++) (q = 0), "right" === this.style.align ? (q = g - k[p]) : "center" === this.style.align && (q = (g - k[p]) / 2), e.push(q); m = this.children.length; k = f.length; q = this.tint || 16777215; for (p = 0; p < k; p++) (r = p < m ? this.children[p] : this._pool.pop()) ? r.setTexture(f[p].texture) : (r = new a.Sprite(f[p].texture)), (r.position.x = (f[p].position.x + e[f[p].line]) * n), (r.position.y = f[p].position.y * n), (r.scale.x = r.scale.y = n), (r.tint = q), r.parent || this.addChild(r); for (; this.children.length > k; ) (f = this.getChildAt(this.children.length - 1)), this._pool.push(f), this.removeChild(f); this.textWidth = g * n; this.textHeight = (d.y + b.lineHeight) * n; }; a.BitmapText.prototype.updateTransform = function () { this.dirty && (this.updateText(), (this.dirty = !1)); a.DisplayObjectContainer.prototype.updateTransform.call(this); }; a.BitmapText.fonts = {}; a.InteractionManager = function () {}; a.InteractionManager.prototype.collectInteractiveSprite = function () {}; a.InteractionManager.prototype.setTarget = function () {}; a.InteractionManager.prototype.setTargetDomElement = function () {}; a.InteractionManager.prototype.removeEvents = function () {}; a.InteractionManager.prototype.update = function () {}; a.Stage = function (b) { a.DisplayObjectContainer.call(this); this.worldTransform = new a.Matrix(); this.interactive = !0; this.interactionManager = new a.InteractionManager(this); this.dirty = !0; this.stage = this; this.stage.hitArea = new a.Rectangle(0, 0, 1e5, 1e5); this.setBackgroundColor(b); }; a.Stage.prototype = Object.create(a.DisplayObjectContainer.prototype); a.Stage.prototype.constructor = a.Stage; a.Stage.prototype.setInteractionDelegate = function (a) { this.interactionManager.setTargetDomElement(a); }; a.Stage.prototype.updateTransform = function () { this.worldAlpha = 1; for (var a = 0, d = this.children.length; a < d; a++) this.children[a].updateTransform(); this.dirty && ((this.dirty = !1), (this.interactionManager.dirty = !0)); this.interactive && this.interactionManager.update(); }; a.Stage.prototype.setBackgroundColor = function (b) { this.backgroundColor = b || 0; this.backgroundColorSplit = a.hex2rgb(this.backgroundColor); b = this.backgroundColor.toString(16); b = "000000".substr(0, 6 - b.length) + b; this.backgroundColorString = "#" + b; }; a.Stage.prototype.getMousePosition = function () { return this.interactionManager.mouse.global; }; (function (a) { for (var d = 0, e = ["ms", "moz", "webkit", "o"], f = 0; f < e.length && !a.requestAnimationFrame; ++f) (a.requestAnimationFrame = a[e[f] + "RequestAnimationFrame"]), (a.cancelAnimationFrame = a[e[f] + "CancelAnimationFrame"] || a[e[f] + "CancelRequestAnimationFrame"]); a.requestAnimationFrame || (a.requestAnimationFrame = function (e) { var f = new Date().getTime(), m = Math.max(0, 16 - (f - d)), n = a.setTimeout(function () { e(f + m); }, m); d = f + m; return n; }); a.cancelAnimationFrame || (a.cancelAnimationFrame = function (a) { clearTimeout(a); }); a.requestAnimFrame = a.requestAnimationFrame; })(this); a.hex2rgb = function (a) { return [((a >> 16) & 255) / 255, ((a >> 8) & 255) / 255, (a & 255) / 255]; }; a.rgb2hex = function (a) { return ((255 * a[0]) << 16) + ((255 * a[1]) << 8) + 255 * a[2]; }; "function" !== typeof Function.prototype.bind && (Function.prototype.bind = (function () { return function (a) { function d() { for (var f = arguments.length, m = Array(f); f--; ) m[f] = arguments[f]; m = g.concat(m); return e.apply(this instanceof d ? this : a, m); } var e = this, f = arguments.length - 1, g = []; if (0 < f) for (g.length = f; f--; ) g[f] = arguments[f + 1]; if ("function" !== typeof e) throw new TypeError(); d.prototype = (function m(a) { a && (m.prototype = a); if (!(this instanceof m)) return new m(); })(e.prototype); return d; }; })()); a.AjaxRequest = function () { var a = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Microsoft.XMLHTTP"]; if (window.ActiveXObject) for (var d = 0; d < a.length; d++) try { return new window.ActiveXObject(a[d]); } catch (e) {} else return window.XMLHttpRequest ? new window.XMLHttpRequest() : !1; }; a.canUseNewCanvasBlendModes = function () { if ("undefined" === typeof document) return !1; var a = document.createElement("canvas"); a.width = 1; a.height = 1; a = a.getContext("2d"); a.fillStyle = "#000"; a.fillRect(0, 0, 1, 1); a.globalCompositeOperation = "multiply"; a.fillStyle = "#fff"; a.fillRect(0, 0, 1, 1); return 0 === a.getImageData(0, 0, 1, 1).data[0]; }; a.getNextPowerOfTwo = function (a) { if (0 < a && 0 === (a & (a - 1))) return a; for (var d = 1; d < a; ) d <<= 1; return d; }; a.EventTarget = { call: function (b) { b && ((b = b.prototype || b), a.EventTarget.mixin(b)); }, mixin: function (b) { b.listeners = function (a) { this._listeners = this._listeners || {}; return this._listeners[a] ? this._listeners[a].slice() : []; }; b.emit = b.dispatchEvent = function (b, e) { this._listeners = this._listeners || {}; "object" === typeof b && ((e = b), (b = b.type)); (e && !0 === e.__isEventObject) || (e = new a.Event(this, b, e)); if (this._listeners && this._listeners[b]) { var f = this._listeners[b].slice(0), g = f.length, k = f[0], m; for (m = 0; m < g; k = f[++m]) if ((k.call(this, e), e.stoppedImmediate)) return this; if (e.stopped) return this; } this.parent && this.parent.emit && this.parent.emit.call(this.parent, b, e); return this; }; b.on = b.addEventListener = function (a, b) { this._listeners = this._listeners || {}; (this._listeners[a] = this._listeners[a] || []).push(b); return this; }; b.once = function (a, b) { function f() { b.apply(g.off(a, f), arguments); } this._listeners = this._listeners || {}; var g = this; f._originalHandler = b; return this.on(a, f); }; b.off = b.removeEventListener = function (a, b) { this._listeners = this._listeners || {}; if (!this._listeners[a]) return this; for (var f = this._listeners[a], g = b ? f.length : 0; 0 < g--; ) (f[g] !== b && f[g]._originalHandler !== b) || f.splice(g, 1); 0 === f.length && delete this._listeners[a]; return this; }; b.removeAllListeners = function (a) { this._listeners = this._listeners || {}; if (!this._listeners[a]) return this; delete this._listeners[a]; return this; }; }, }; a.Event = function (a, d, e) { this.__isEventObject = !0; this.stoppedImmediate = this.stopped = !1; this.target = a; this.type = d; this.content = this.data = e; this.timeStamp = Date.now(); }; a.Event.prototype.stopPropagation = function () { this.stopped = !0; }; a.Event.prototype.stopImmediatePropagation = function () { this.stoppedImmediate = !0; }; a.autoDetectRenderer = function (b, d, e) { b || (b = 800); d || (d = 600); var f; try { var g = document.createElement("canvas"); g.width = 8; g.height = 8; var k = g.getContext("webgl", { stencil: !0 }) || g.getContext("experimental-webgl", { stencil: !0 }), m = !!window.WebGLRenderingContext && k; if (m) { var n = k.getContextAttributes(); if ((m = m && n.stencil)) { program = a.compileProgram(k, ["attribute vec2 a_position; void main(){gl_Position=vec4(a_position,0,1);}"], ["void main(){gl_FragColor=vec4(1,0,0,1);}"]); k.useProgram(program); var p = k.getAttribLocation(program, "a_position"), q = k.createBuffer(); k.bindBuffer(k.ARRAY_BUFFER, q); k.bufferData(k.ARRAY_BUFFER, new Float32Array([-1, -1, 0, -1, -1, 1, -1, 1, 0, -1, 0, 1]), k.STATIC_DRAW); k.enableVertexAttribArray(p); k.vertexAttribPointer(p, 2, k.FLOAT, !1, 0, 0); k.enable(k.STENCIL_TEST); k.clear(k.STENCIL_BUFFER_BIT); k.colorMask(!1, !1, !1, !1); k.stencilFunc(k.EQUAL, 0, 255); k.stencilOp(k.KEEP, k.KEEP, k.INCR); k.drawArrays(k.TRIANGLES, 0, 6); k.stencilFunc(k.EQUAL, 1, 255); k.colorMask(!0, !0, !0, !0); k.stencilOp(k.KEEP, k.KEEP, k.KEEP); k.bufferData(k.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), k.STATIC_DRAW); k.drawArrays(k.TRIANGLES, 0, 6); var r = new Uint8Array(256); k.readPixels(0, 0, 8, 8, k.RGBA, k.UNSIGNED_BYTE, r); m = 255 == r[132] && 0 == r[152]; } } f = m; } catch (t) { f = !1; } return f ? new a.WebGLRenderer(b, d, e) : new a.CanvasRenderer(b, d, e); }; a.autoDetectRecommendedRenderer = function (b, d, e) { b || (b = 800); d || (d = 600); var f; try { var g = document.createElement("canvas"); f = !!window.WebGLRenderingContext && (g.getContext("webgl") || g.getContext("experimental-webgl")); } catch (k) { f = !1; } g = /Android/i.test(navigator.userAgent); return f && !g ? new a.WebGLRenderer(b, d, e) : new a.CanvasRenderer(b, d, e); }; a.PolyK = {}; a.PolyK.Triangulate = function (b) { var d = !0, e = b.length >> 1; if (3 > e) return []; for (var f = [], g = [], k = 0; k < e; k++) g.push(k); for (var k = 0, m = e; 3 < m; ) { var n = g[(k + 0) % m], p = g[(k + 1) % m], q = g[(k + 2) % m], r = b[2 * n], t = b[2 * n + 1], u = b[2 * p], B = b[2 * p + 1], A = b[2 * q], C = b[2 * q + 1], E = !1; if (a.PolyK._convex(r, t, u, B, A, C, d)) for (var E = !0, F = 0; F < m; F++) { var D = g[F]; if (D !== n && D !== p && D !== q && a.PolyK._PointInTriangle(b[2 * D], b[2 * D + 1], r, t, u, B, A, C)) { E = !1; break; } } if (E) f.push(n, p, q), g.splice((k + 1) % m, 1), m--, (k = 0); else if (k++ > 3 * m) if (d) { f = []; g = []; for (k = 0; k < e; k++) g.push(k); k = 0; m = e; d = !1; } else return null; } f.push(g[0], g[1], g[2]); return f; }; a.PolyK._PointInTriangle = function (a, d, e, f, g, k, m, n) { m -= e; n -= f; g -= e; k -= f; a -= e; e = d - f; d = m * m + n * n; f = m * g + n * k; m = m * a + n * e; n = g * g + k * k; g = g * a + k * e; k = 1 / (d * n - f * f); n = (n * m - f * g) * k; m = (d * g - f * m) * k; return 0 <= n && 0 <= m && 1 > n + m; }; a.PolyK._convex = function (a, d, e, f, g, k, m) { return 0 <= (d - f) * (g - e) + (e - a) * (k - f) === m; }; a.initDefaultShaders = function () {}; a.CompileVertexShader = function (b, d) { return a._CompileShader(b, d, b.VERTEX_SHADER); }; a.CompileFragmentShader = function (b, d) { return a._CompileShader(b, d, b.FRAGMENT_SHADER); }; a._CompileShader = function (a, d, e) { d = d.join("\n"); e = a.createShader(e); a.shaderSource(e, d); a.compileShader(e); return a.getShaderParameter(e, a.COMPILE_STATUS) ? e : (window.console.log(a.getShaderInfoLog(e)), null); }; a.compileProgram = function (b, d, e) { e = a.CompileFragmentShader(b, e); d = a.CompileVertexShader(b, d); var f = b.createProgram(); b.attachShader(f, d); b.attachShader(f, e); b.linkProgram(f); b.getProgramParameter(f, b.LINK_STATUS) || window.console.log("Could not initialise shaders"); return f; }; a.PixiShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = ["precision lowp float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;", "}"]; this.textureCount = 0; this.dirty = this.firstRun = !0; this.attributes = []; this.init(); }; a.PixiShader.prototype.constructor = a.PixiShader; a.PixiShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc || a.PixiShader.defaultVertexSrc, this.fragmentSrc); b.useProgram(d); this.uSampler = b.getUniformLocation(d, "uSampler"); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.dimensions = b.getUniformLocation(d, "dimensions"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.aTextureCoord = b.getAttribLocation(d, "aTextureCoord"); this.colorAttribute = b.getAttribLocation(d, "aColor"); 0 > this.colorAttribute && ((this.colorAttribute = Math.max(this.aVertexPosition, this.aTextureCoord) + 1), (this.colorAttributeError = !0), console.log("Warning: Shader.colorAttribute location is wrong!")); this.attributes = [this.aVertexPosition, this.aTextureCoord, this.colorAttribute]; for (var e in this.uniforms) this.uniforms[e].uniformLocation = b.getUniformLocation(d, e); this.initUniforms(); this.program = d; }; a.PixiShader.prototype.initUniforms = function () { this.textureCount = 1; var a = this.gl, d, e; for (e in this.uniforms) { d = this.uniforms[e]; var f = d.type; "sampler2D" === f ? ((d._init = !1), null !== d.value && this.initSampler2D(d)) : "mat2" === f || "mat3" === f || "mat4" === f ? ((d.glMatrix = !0), (d.glValueLength = 1), "mat2" === f ? (d.glFunc = a.uniformMatrix2fv) : "mat3" === f ? (d.glFunc = a.uniformMatrix3fv) : "mat4" === f && (d.glFunc = a.uniformMatrix4fv)) : ((d.glFunc = a["uniform" + f]), (d.glValueLength = "2f" === f || "2i" === f ? 2 : "3f" === f || "3i" === f ? 3 : "4f" === f || "4i" === f ? 4 : 1)); } }; a.PixiShader.prototype.initSampler2D = function (a) { if (a.value && a.value.baseTexture && a.value.baseTexture.hasLoaded) { var d = this.gl; d.activeTexture(d["TEXTURE" + this.textureCount]); d.bindTexture(d.TEXTURE_2D, a.value.baseTexture._glTextures[d.id]); if (a.textureData) { var e = a.textureData, f = e.magFilter ? e.magFilter : d.LINEAR, g = e.minFilter ? e.minFilter : d.LINEAR, k = e.wrapS ? e.wrapS : d.CLAMP_TO_EDGE, m = e.wrapT ? e.wrapT : d.CLAMP_TO_EDGE, n = e.luminance ? d.LUMINANCE : d.RGBA; e.repeat && (m = k = d.REPEAT); d.pixelStorei(d.UNPACK_FLIP_Y_WEBGL, !!e.flipY); e.width ? d.texImage2D(d.TEXTURE_2D, 0, n, e.width ? e.width : 512, e.height ? e.height : 2, e.border ? e.border : 0, n, d.UNSIGNED_BYTE, null) : d.texImage2D(d.TEXTURE_2D, 0, n, d.RGBA, d.UNSIGNED_BYTE, a.value.baseTexture.source); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, f); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, g); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, k); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, m); } d.uniform1i(a.uniformLocation, this.textureCount); a._init = !0; this.textureCount++; } }; a.PixiShader.prototype.syncUniforms = function () { this.textureCount = 1; var b, d = this.gl, e; for (e in this.uniforms) (b = this.uniforms[e]), 1 === b.glValueLength ? !0 === b.glMatrix ? b.glFunc.call(d, b.uniformLocation, b.transpose, b.value) : b.glFunc.call(d, b.uniformLocation, b.value) : 2 === b.glValueLength ? b.glFunc.call(d, b.uniformLocation, b.value.x, b.value.y) : 3 === b.glValueLength ? b.glFunc.call(d, b.uniformLocation, b.value.x, b.value.y, b.value.z) : 4 === b.glValueLength ? b.glFunc.call(d, b.uniformLocation, b.value.x, b.value.y, b.value.z, b.value.w) : "sampler2D" === b.type && (b._init ? (d.activeTexture(d["TEXTURE" + this.textureCount]), b.value.baseTexture._dirty[d.id] ? a.instances[d.id].updateTexture(b.value.baseTexture) : d.bindTexture(d.TEXTURE_2D, b.value.baseTexture._glTextures[d.id]), d.uniform1i(b.uniformLocation, this.textureCount), this.textureCount++) : this.initSampler2D(b)); }; a.PixiShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attributes = this.gl = this.uniforms = null; }; a.PixiShader.defaultVertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "attribute vec4 aColor;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "const vec2 center = vec2(-1.0, 1.0);", "void main(void) {", "gl_Position = vec4( ((aVertexPosition + offsetVector) / projectionVector) + center , 0.0, 1.0);", "vTextureCoord = aTextureCoord;", "vec3 color = mod(vec3(aColor.y/65536.0, aColor.y/256.0, aColor.y), 256.0) / 256.0;", "vColor = vec4(color, aColor.x);", "if (aColor.x < 0. && aColor.y < 0.)", "vColor = vec4(1., 1., 1., 1.);", "}", ]; a.PixiFastShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = ["precision lowp float;", "varying vec2 vTextureCoord;", "varying float vColor;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;", "}"]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aPositionCoord;", "attribute vec2 aScale;", "attribute float aRotation;", "attribute vec2 aTextureCoord;", "attribute float aColor;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform mat3 uMatrix;", "varying vec2 vTextureCoord;", "varying float vColor;", "const vec2 center = vec2(-1.0, 1.0);", "void main(void) {", " vec2 v;", " vec2 sv = aVertexPosition * aScale;", " v.x = (sv.x) * cos(aRotation) - (sv.y) * sin(aRotation);", " v.y = (sv.x) * sin(aRotation) + (sv.y) * cos(aRotation);", " v = ( uMatrix * vec3(v + aPositionCoord , 1.0) ).xy ;", " gl_Position = vec4( ( v / projectionVector) + center , 0.0, 1.0);", " vTextureCoord = aTextureCoord;", " vColor = aColor;", "}", ]; this.textureCount = 0; this.init(); }; a.PixiFastShader.prototype.constructor = a.PixiFastShader; a.PixiFastShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.uSampler = b.getUniformLocation(d, "uSampler"); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.dimensions = b.getUniformLocation(d, "dimensions"); this.uMatrix = b.getUniformLocation(d, "uMatrix"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.aPositionCoord = b.getAttribLocation(d, "aPositionCoord"); this.aScale = b.getAttribLocation(d, "aScale"); this.aRotation = b.getAttribLocation(d, "aRotation"); this.aTextureCoord = b.getAttribLocation(d, "aTextureCoord"); this.colorAttribute = b.getAttribLocation(d, "aColor"); -1 === this.colorAttribute && (this.colorAttribute = 2); this.attributes = [this.aVertexPosition, this.aPositionCoord, this.aScale, this.aRotation, this.aTextureCoord, this.colorAttribute]; this.program = d; }; a.PixiFastShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attributes = this.gl = this.uniforms = null; }; a.StripShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "uniform float alpha;", "uniform sampler2D uSampler;", "void main(void) {", " gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * alpha;", "}", ]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "varying vec2 vTextureCoord;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);", " vTextureCoord = aTextureCoord;", "}", ]; this.init(); }; a.StripShader.prototype.constructor = a.StripShader; a.StripShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.uSampler = b.getUniformLocation(d, "uSampler"); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.colorAttribute = b.getAttribLocation(d, "aColor"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.aTextureCoord = b.getAttribLocation(d, "aTextureCoord"); this.attributes = [this.aVertexPosition, this.aTextureCoord]; this.translationMatrix = b.getUniformLocation(d, "translationMatrix"); this.alpha = b.getUniformLocation(d, "alpha"); this.program = d; }; a.StripShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attribute = this.gl = this.uniforms = null; }; a.PrimitiveShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = ["precision mediump float;", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}"]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec4 aColor;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform float alpha;", "uniform vec3 tint;", "uniform float hasColorMatrix;", "uniform mat4 colorMatrix;", "varying vec4 vColor;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);", " vec4 color = aColor * vec4(tint, alpha);", " if(hasColorMatrix > 0.)", " color *= colorMatrix;", " vColor = color;", "}", ]; this.init(); }; a.PrimitiveShader.prototype.constructor = a.PrimitiveShader; a.PrimitiveShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.tintColor = b.getUniformLocation(d, "tint"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.colorAttribute = b.getAttribLocation(d, "aColor"); this.attributes = [this.aVertexPosition, this.colorAttribute]; this.translationMatrix = b.getUniformLocation(d, "translationMatrix"); this.alpha = b.getUniformLocation(d, "alpha"); this.colorMatrix = b.getUniformLocation(d, "colorMatrix"); this.hasColorMatrix = b.getUniformLocation(d, "hasColorMatrix"); this.program = d; }; a.PrimitiveShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attributes = this.gl = this.uniforms = null; }; a.ComplexPrimitiveShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = ["precision mediump float;", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}"]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform vec3 tint;", "uniform float alpha;", "uniform vec3 color;", "varying vec4 vColor;", "void main(void) {", " vec3 v = translationMatrix * vec3(aVertexPosition , 1.0);", " v -= offsetVector.xyx;", " gl_Position = vec4( v.x / projectionVector.x -1.0, v.y / -projectionVector.y + 1.0 , 0.0, 1.0);", " vColor = vec4(color * alpha * tint, alpha);", "}", ]; this.init(); }; a.ComplexPrimitiveShader.prototype.constructor = a.ComplexPrimitiveShader; a.ComplexPrimitiveShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.tintColor = b.getUniformLocation(d, "tint"); this.color = b.getUniformLocation(d, "color"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.attributes = [this.aVertexPosition, this.colorAttribute]; this.translationMatrix = b.getUniformLocation(d, "translationMatrix"); this.alpha = b.getUniformLocation(d, "alpha"); this.program = d; }; a.ComplexPrimitiveShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attribute = this.gl = this.uniforms = null; }; a.ParticleContainerShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "varying vec3 vPos;", "uniform vec4 uClipRect;", "uniform sampler2D uSampler;", "uniform float hasColorMatrix;", "uniform mat4 colorMatrix;", "void main(void) {", " if (vColor.a == 0.0 || (uClipRect.z > 0.0 && (vPos.x < uClipRect.x || vPos.x > uClipRect.z || vPos.y < uClipRect.y || vPos.y > uClipRect.w))) discard;", " vec4 color = texture2D(uSampler, vTextureCoord);", " if (color.a == 0.0) discard;", " color = color * vColor;", " if(hasColorMatrix > 0.0) color = color * colorMatrix;", " gl_FragColor = color;", "}", ]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "attribute vec2 aPositionCoord;", "attribute vec2 aScale;", "attribute float aRotation;", "attribute float aAlpha;", "attribute vec4 aColor;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform float worldalpha;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "varying vec3 vPos;", "void main(void) {", " vec3 v = vec3(0.0, 0.0, 1.0);", " vec2 sv = aVertexPosition * aScale;", "\tif (aRotation == 0.0) {", " \tv.x = sv.x;", " \tv.y = sv.y;", "\t} else {", " \tv.x = sv.x * cos(aRotation) - sv.y * sin(aRotation);", " \tv.y = sv.x * sin(aRotation) + sv.y * cos(aRotation);", "\t}", " v += aPositionCoord.xyx;", "\tv.x *= translationMatrix[0][0];", "\tv.y *= translationMatrix[1][1];", "\tv.x += translationMatrix[2][0];", "\tv.y += translationMatrix[2][1];", " v -= offsetVector.xyx;", " gl_Position = vec4( (v.x / projectionVector.x - 1.0), (v.y / -projectionVector.y + 1.0), 0.0, 1.0);", " vTextureCoord = aTextureCoord;", " vColor = aColor;", " vColor.a *= worldalpha * aAlpha;", " vPos = v;", "}", ]; this.init(); }; a.ParticleContainerShader.prototype.constructor = a.ParticleContainerShader; a.ParticleContainerShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.uSampler = b.getUniformLocation(d, "uSampler"); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.aTextureCoord = b.getAttribLocation(d, "aTextureCoord"); this.aPositionCoord = b.getAttribLocation(d, "aPositionCoord"); this.aScale = b.getAttribLocation(d, "aScale"); this.aRotation = b.getAttribLocation(d, "aRotation"); this.aAlpha = b.getAttribLocation(d, "aAlpha"); this.aColor = b.getAttribLocation(d, "aColor"); this.attributes = [this.aVertexPosition, this.aTextureCoord, this.aPositionCoord, this.aScale, this.aRotation, this.aAlpha, this.aColor]; this.translationMatrix = b.getUniformLocation(d, "translationMatrix"); this.worldalpha = b.getUniformLocation(d, "worldalpha"); this.colorMatrix = b.getUniformLocation(d, "colorMatrix"); this.hasColorMatrix = b.getUniformLocation(d, "hasColorMatrix"); this.clipRect = b.getUniformLocation(d, "uClipRect"); this.program = d; }; a.ParticleContainerShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attribute = this.gl = this.uniforms = null; }; Object.defineProperty(a.ParticleContainerShader.prototype, "matrix", { get: function () { return this.uniforms.colorMatrix.value; }, set: function (a) { null != a ? ((this.uniforms.colorMatrix.value = a), (this.uniforms.hasColorMatrix.value = 1)) : ((this.uniforms.hasColorMatrix.value = 0), (this.uniforms.colorMatrix.value = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])); }, }); a.PolygonShader = function (b) { this._UID = a._UID++; this.gl = b; this.program = null; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "varying vec3 vPos;", "uniform sampler2D uSampler;", "uniform float hasColorMatrix;", "uniform mat4 colorMatrix;", "uniform vec4 uClipRect;", "void main(void) {", " if (vColor.a == 0.0 || (uClipRect.z > 0.0 && (vPos.x < uClipRect.x || vPos.x > uClipRect.z || vPos.y < uClipRect.y || vPos.y > uClipRect.w))) discard;", " vec4 color = texture2D(uSampler, vTextureCoord);", " if (color.a == 0.0) discard;", " color = color * vColor;", " if(hasColorMatrix > 0.0) color = color * colorMatrix;", " gl_FragColor = color;", "}", ]; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "attribute vec4 aColor;", "uniform mat3 translationMatrix;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform float worldalpha;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "varying vec3 vPos;", "void main(void) {", " vec3 v = vec3(aVertexPosition, 1.0);", "\tv.x *= translationMatrix[0][0];", "\tv.y *= translationMatrix[1][1];", "\tv.x += translationMatrix[2][0];", "\tv.y += translationMatrix[2][1];", " v -= offsetVector.xyx;", " gl_Position = vec4( (v.x / projectionVector.x - 1.0), (v.y / -projectionVector.y + 1.0), 0.0, 1.0);", " vTextureCoord = aTextureCoord;", " vColor = aColor;", " vColor.a *= worldalpha;", " vPos = v;", "}", ]; this.init(); }; a.PolygonShader.prototype.constructor = a.PolygonShader; a.PolygonShader.prototype.init = function () { var b = this.gl, d = a.compileProgram(b, this.vertexSrc, this.fragmentSrc); b.useProgram(d); this.uSampler = b.getUniformLocation(d, "uSampler"); this.projectionVector = b.getUniformLocation(d, "projectionVector"); this.offsetVector = b.getUniformLocation(d, "offsetVector"); this.aVertexPosition = b.getAttribLocation(d, "aVertexPosition"); this.aTextureCoord = b.getAttribLocation(d, "aTextureCoord"); this.aColor = b.getAttribLocation(d, "aColor"); this.attributes = [this.aVertexPosition, this.aTextureCoord, this.aColor]; this.translationMatrix = b.getUniformLocation(d, "translationMatrix"); this.worldalpha = b.getUniformLocation(d, "worldalpha"); this.colorMatrix = b.getUniformLocation(d, "colorMatrix"); this.hasColorMatrix = b.getUniformLocation(d, "hasColorMatrix"); this.clipRect = b.getUniformLocation(d, "uClipRect"); this.program = d; }; a.PolygonShader.prototype.destroy = function () { this.gl.deleteProgram(this.program); this.attribute = this.gl = this.uniforms = null; }; Object.defineProperty(a.PolygonShader.prototype, "matrix", { get: function () { return this.uniforms.colorMatrix.value; }, set: function (a) { null != a ? ((this.uniforms.colorMatrix.value = a), (this.uniforms.hasColorMatrix.value = 1)) : ((this.uniforms.hasColorMatrix.value = 0), (this.uniforms.colorMatrix.value = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])); }, }); a.WebGLGraphics = function () {}; a.WebGLGraphics.renderGraphics = function (b, d) { var e = d.gl, f = d.projection, g = d.offset, k = d.shaderManager.primitiveShader, m; b.clearDirty = !0; b.dirty = !0; b.dirty && a.WebGLGraphics.updateGraphics(b, e); for (var n = b._webGL[e.id], p = 0; p < n.data.length; p++) 1 === n.data[p].mode ? ((m = n.data[p]), d.stencilManager.pushStencil(b, m, d), e.drawElements(e.TRIANGLE_FAN, 4, e.UNSIGNED_SHORT, 2 * (m.indices.length - 4)), d.stencilManager.popStencil(b, m, d)) : ((m = n.data[p]), d.shaderManager.setShader(k), (k = d.shaderManager.primitiveShader), e.uniformMatrix3fv(k.translationMatrix, !1, b.worldTransform.toArray(!0)), e.uniform2f(k.projectionVector, f.x, -f.y), e.uniform2f(k.offsetVector, -g.x, -g.y), e.uniform3fv(k.tintColor, a.hex2rgb(b.tint)), e.uniform1f(k.alpha, b.worldAlpha), b.gt_colormatrix ? (e.uniformMatrix4fv(k.colorMatrix, !1, b.gt_colormatrix), e.uniform1f(k.hasColorMatrix, 1)) : e.uniform1f(k.hasColorMatrix, 0), e.bindBuffer(e.ARRAY_BUFFER, m.buffer), e.vertexAttribPointer(k.aVertexPosition, 2, e.FLOAT, !1, 24, 0), e.vertexAttribPointer(k.colorAttribute, 4, e.FLOAT, !1, 24, 8), e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, m.indexBuffer), e.drawElements(e.TRIANGLE_STRIP, m.indices.length, e.UNSIGNED_SHORT, 0)); }; a.WebGLGraphics.updateGraphics = function (b, d) { var e = b._webGL[d.id]; e || (e = b._webGL[d.id] = { lastIndex: 0, data: [], gl: d }); b.dirty = !1; var f; if (b.clearDirty) { b.clearDirty = !1; for (f = 0; f < e.data.length; f++) { var g = e.data[f]; g.reset(); a.WebGLGraphics.graphicsDataPool.push(g); } e.data = []; e.lastIndex = 0; } for (f = e.lastIndex; f < b.graphicsData.length; f++) { var k = b.graphicsData[f]; b.gradient && null != b.gradient && (k.gradient = b.gradient); k.type === a.Graphics.POLY ? ((k.points = k.shape.points.slice()), k.shape.closed && k.points[0] !== k.points[k.points.length - 2] && k.points[1] !== k.points[k.points.length - 1] && k.points.push(k.points[0], k.points[1]), k.fill && 6 <= k.points.length && (12 > k.points.length ? ((g = a.WebGLGraphics.switchMode(e, 0)), a.WebGLGraphics.buildPoly(k, g) || ((g = a.WebGLGraphics.switchMode(e, 1)), a.WebGLGraphics.buildComplexPoly(k, g))) : ((g = a.WebGLGraphics.switchMode(e, 1)), a.WebGLGraphics.buildComplexPoly(k, g))), 0 < k.lineWidth && ((g = a.WebGLGraphics.switchMode(e, 0)), a.WebGLGraphics.buildLine(k, g))) : ((g = a.WebGLGraphics.switchMode(e, 0)), k.type === a.Graphics.RECT ? a.WebGLGraphics.buildMaskAppliedRectangle(k, g, b) : k.type === a.Graphics.CIRC || k.type === a.Graphics.ELIP ? a.WebGLGraphics.buildCircle(k, g) : k.type === a.Graphics.RREC ? a.WebGLGraphics.buildRoundedRectangle(k, g) : k.type === a.Graphics.MRECT && a.WebGLGraphics.buildMultipleRectangles(k, g)); e.lastIndex++; } for (f = 0; f < e.data.length; f++) (g = e.data[f]), g.dirty && g.upload(); }; a.WebGLGraphics.switchMode = function (b, d) { var e; if (b.data.length) { if (((e = b.data[b.data.length - 1]), e.mode !== d || 1 === d)) (e = a.WebGLGraphics.graphicsDataPool.pop() || new a.WebGLGraphicsData(b.gl)), (e.mode = d), b.data.push(e); } else (e = a.WebGLGraphics.graphicsDataPool.pop() || new a.WebGLGraphicsData(b.gl)), (e.mode = d), b.data.push(e); e.dirty = !0; return e; }; a.WebGLGraphics.buildRectangle = function (b, d) { var e = b.shape, f = e.x, g = e.y, k = e.width, e = e.height; if (b.fill) { var m = a.hex2rgb(b.fillColor), n = b.fillAlpha, p = m[0] * n, q = m[1] * n, m = m[2] * n, r = d.points, t = d.indices, u = r.length / 6; r.push(f, g); r.push(p, q, m, n); r.push(f + k, g); r.push(p, q, m, n); r.push(f, g + e); r.push(p, q, m, n); r.push(f + k, g + e); r.push(p, q, m, n); t.push(u, u, u + 1, u + 2, u + 3, u + 3); } b.lineWidth && ((n = b.points), (b.points = [f, g, f + k, g, f + k, g + e, f, g + e, f, g]), a.WebGLGraphics.buildLine(b, d), (b.points = n)); }; a.WebGLGraphics.buildMaskAppliedRectangle = function (b, d, e) { var f = e.worldTransform, g = b.shape; e = g.x * f.a + f.tx; var k = e + g.width * f.a, m = g.y * f.d + f.ty, g = m + g.height * f.d, n = JSUTIL.GLUtil.getClip_0(); if (n.isAxisAlignedRect_0() && n.intersects_4(e, m, k, g)) { var p = GTObjPool.getTempRect_4(e, m, k, g); if (JSUTIL.clipper.clipRect_RRC_3(p, null, n)) { e = (p.x - f.tx) / f.a; k = e + p.width / f.a; m = (p.y - f.ty) / f.d; g = m + p.height / f.d; if (b.fill) { var q = a.hex2rgb(b.fillColor), f = b.fillAlpha, n = q[0] * f, r = q[1] * f, q = q[2] * f, t = d.points, u = d.indices, B = t.length / 6; t.push(e, m); t.push(n, r, q, f); t.push(k, m); t.push(n, r, q, f); t.push(e, g); t.push(n, r, q, f); t.push(k, g); t.push(n, r, q, f); u.push(B, B, B + 1, B + 2, B + 3, B + 3); } b.lineWidth && ((f = b.points), (b.points = [e, m, k, m, k, g, e, g, e, m]), a.WebGLGraphics.buildLine(b, d), (b.points = f)); } GTObjPool.recycleTempRect(p); } }; a.WebGLGraphics.buildMultipleRectangles = function (b, d) { for (var e = b.shape.points, f = 0; f < e.length; f += 4) { var g = e[f], k = e[f + 1], m = e[f + 2], n = e[f + 3]; if (b.fill) { var p = a.hex2rgb(b.fillColor), q = b.fillAlpha, r = p[0] * q, t = p[1] * q, p = p[2] * q, u = d.points, B = d.indices, A = u.length / 6; u.push(g, k); u.push(r, t, p, q); u.push(g + m, k); u.push(r, t, p, q); u.push(g, k + n); u.push(r, t, p, q); u.push(g + m, k + n); u.push(r, t, p, q); B.push(A, A, A + 1, A + 2, A + 3, A + 3); } b.lineWidth && ((q = b.points), (b.points = [g, k, g + m, k, g + m, k + n, g, k + n, g, k]), a.WebGLGraphics.buildLine(b, d), (b.points = q)); } }; a.WebGLGraphics.buildRoundedRectangle = function (b, d) { var e = b.shape, f = e.x, g = e.y, k = e.width, m = e.height, n = e.radius, e = []; e.push(f, g + n); e = e.concat(a.WebGLGraphics.quadraticBezierCurve(f, g + m - n, f, g + m, f + n, g + m)); e = e.concat(a.WebGLGraphics.quadraticBezierCurve(f + k - n, g + m, f + k, g + m, f + k, g + m - n)); e = e.concat(a.WebGLGraphics.quadraticBezierCurve(f + k, g + n, f + k, g, f + k - n, g)); e = e.concat(a.WebGLGraphics.quadraticBezierCurve(f + n, g, f, g, f, g + n)); if (b.fill) { for (var m = a.hex2rgb(b.fillColor), f = b.fillAlpha, g = m[0] * f, k = m[1] * f, m = m[2] * f, n = d.points, p = d.indices, q = n.length / 6, r = a.PolyK.Triangulate(e), t = 0, t = 0; t < r.length; t += 3) p.push(r[t] + q), p.push(r[t] + q), p.push(r[t + 1] + q), p.push(r[t + 2] + q), p.push(r[t + 2] + q); for (t = 0; t < e.length; t++) n.push(e[t], e[++t], g, k, m, f); } b.lineWidth && ((f = b.points), (b.points = e), a.WebGLGraphics.buildLine(b, d), (b.points = f)); }; a.WebGLGraphics.quadraticBezierCurve = function (a, d, e, f, g, k) { for (var m, n, p, q, r = [], t = 0, u = 0; 20 >= u; u++) (t = u / 20), (m = a + (e - a) * t), (n = d + (f - d) * t), (p = e + (g - e) * t), (q = f + (k - f) * t), (m += (p - m) * t), (n += (q - n) * t), r.push(m, n); return r; }; a.WebGLGraphics.buildCircle = function (b, d) { var e = b.shape, f = e.x, g = e.y, k; b.type === a.Graphics.CIRC ? (e = k = e.radius) : ((k = e.width), (e = e.height)); var m = (2 * Math.PI) / 40, n = 0; if (b.fill) { var n = a.hex2rgb(b.fillColor), p = b.fillAlpha, q = n[0] * p, r = n[1] * p, t = n[2] * p, u = d.points, B = d.indices, A = u.length / 6; B.push(A); for (n = 0; 41 > n; n++) u.push(f, g, q, r, t, p), u.push(f + Math.sin(m * n) * k, g + Math.cos(m * n) * e, q, r, t, p), B.push(A++, A++); B.push(A - 1); } if (b.lineWidth) { p = b.points; b.points = []; for (n = 0; 41 > n; n++) b.points.push(f + Math.sin(m * n) * k, g + Math.cos(m * n) * e); a.WebGLGraphics.buildLine(b, d); b.points = p; } }; a.WebGLGraphics.buildLine = function (b, d) { var e = 0, f = b.points; if (0 !== f.length) { if (b.lineWidth % 2) for (e = 0; e < f.length; e++) f[e] += 0.5; var g = new a.Point(f[0], f[1]), k = new a.Point(f[f.length - 2], f[f.length - 1]); if (g.x === k.x && g.y === k.y) { f = f.slice(); f.pop(); f.pop(); var k = new a.Point(f[f.length - 2], f[f.length - 1]), m = k.x + 0.5 * (g.x - k.x), g = k.y + 0.5 * (g.y - k.y); f.unshift(m, g); f.push(m, g); } var m = d.points, g = d.indices, k = f.length / 2, n = f.length, p = m.length / 6, q = b.lineWidth / 2, e = a.hex2rgb(b.lineColor), r = b.lineAlpha, t = e[0] * r, u = e[1] * r, B = e[2] * r, A, C, E, F, D, H, I, L, J, M, N, P, O; E = f[0]; F = f[1]; D = f[2]; H = f[3]; J = -(F - H); M = E - D; C = Math.sqrt(J * J + M * M); J = (J / C) * q; M = (M / C) * q; m.push(E - J, F - M, t, u, B, r); m.push(E + J, F + M, t, u, B, r); for (e = 1; e < k - 1; e++) (E = f[2 * (e - 1)]), (F = f[2 * (e - 1) + 1]), (D = f[2 * e]), (H = f[2 * e + 1]), (I = f[2 * (e + 1)]), (L = f[2 * (e + 1) + 1]), (J = -(F - H)), (M = E - D), (C = Math.sqrt(J * J + M * M)), (J /= C), (M /= C), (J *= q), (M *= q), (N = -(H - L)), (P = D - I), (C = Math.sqrt(N * N + P * P)), (N /= C), (P /= C), (N *= q), (P *= q), (C = -M + F - (-M + H)), (A = -J + D - (-J + E)), (E = (-J + E) * (-M + H) - (-J + D) * (-M + F)), (F = -P + L - (-P + H)), (O = -N + D - (-N + I)), (I = (-N + I) * (-P + H) - (-N + D) * (-P + L)), (L = C * O - F * A), 0.1 > Math.abs(L) ? (m.push(D - J, H - M, t, u, B, r), m.push(D + J, H + M, t, u, B, r)) : ((A = (A * I - O * E) / L), (C = (F * E - C * I) / L), (I = (A - D) * (A - D) + (C - H) + (C - H)), 19600 < I ? ((J -= N), (M -= P), (C = Math.sqrt(J * J + M * M)), (J /= C), (M /= C), (J *= q), (M *= q), m.push(D - J, H - M), m.push(t, u, B, r), m.push(D + J, H + M), m.push(t, u, B, r), m.push(D - J, H - M), m.push(t, u, B, r), n++) : (m.push(A, C), m.push(t, u, B, r), m.push(D - (A - D), H - (C - H)), m.push(t, u, B, r))); E = f[2 * (k - 2)]; F = f[2 * (k - 2) + 1]; D = f[2 * (k - 1)]; H = f[2 * (k - 1) + 1]; J = -(F - H); M = E - D; C = Math.sqrt(J * J + M * M); J /= C; M /= C; J *= q; M *= q; m.push(D - J, H - M); m.push(t, u, B, r); m.push(D + J, H + M); m.push(t, u, B, r); g.push(p); for (e = 0; e < n; e++) g.push(p++); g.push(p - 1); } }; a.WebGLGraphics.buildComplexPoly = function (b, d) { var e = b.points.slice(); if (!(6 > e.length)) { var f = d.indices; d.points = e; d.alpha = b.fillAlpha; d.color = a.hex2rgb(b.fillColor); for (var g = Infinity, k = -Infinity, m = Infinity, n = -Infinity, p, q, r = 0; r < e.length; r += 2) (p = e[r]), (q = e[r + 1]), (g = p < g ? p : g), (k = p > k ? p : k), (m = q < m ? q : m), (n = q > n ? q : n); e.push(g, m, k, m, k, n, g, n); e = e.length / 2; for (r = 0; r < e; r++) f.push(r); } }; a.WebGLGraphics.buildPoly = function (b, d) { var e = b.points; if (!(6 > e.length)) { var f = d.points, g = d.indices, k = e.length / 2, m = a.hex2rgb(b.fillColor), n = b.fillAlpha, p = m[0] * n, q = m[1] * n, m = m[2] * n, r = a.PolyK.Triangulate(e); if (!r) return !1; for (var t = f.length / 6, u = 0, u = 0; u < r.length; u += 3) g.push(r[u] + t), g.push(r[u] + t), g.push(r[u + 1] + t), g.push(r[u + 2] + t), g.push(r[u + 2] + t); g = 4 == k && b.gradient; for (u = 0; u < k; u++) if (g) { var B = b.gradient.colors[2 > u ? 0 : 1], r = B.getRed_0() / 255, t = B.getGreen_0() / 255, B = B.getBlue_0() / 255; f.push(e[2 * u], e[2 * u + 1], r, t, B, n); } else f.push(e[2 * u], e[2 * u + 1], p, q, m, n); return !0; } }; a.WebGLGraphics.graphicsDataPool = []; a.WebGLGraphicsData = function (a) { this.gl = a; this.color = [0, 0, 0]; this.points = []; this.indices = []; this.lastIndex = 0; this.buffer = a.createBuffer(); this.indexBuffer = a.createBuffer(); this.alpha = this.mode = 1; this.dirty = !0; }; a.WebGLGraphicsData.prototype.reset = function () { this.points = []; this.indices = []; this.lastIndex = 0; }; a.WebGLGraphicsData.prototype.upload = function () { var b = this.gl; this.glPoints = new a.Float32Array(this.points); b.bindBuffer(b.ARRAY_BUFFER, this.buffer); b.bufferData(b.ARRAY_BUFFER, this.glPoints, b.STATIC_DRAW); this.glIndicies = new a.Uint16Array(this.indices); b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.indexBuffer); b.bufferData(b.ELEMENT_ARRAY_BUFFER, this.glIndicies, b.STATIC_DRAW); this.dirty = !1; }; a.glContexts = []; a.instances = []; a.WebGLRenderer = function (b, d, e) { if (e) for (var f in a.defaultRenderOptions) "undefined" === typeof e[f] && (e[f] = a.defaultRenderOptions[f]); else e = a.defaultRenderOptions; a.defaultRenderer || (a.sayHello("webGL"), (a.defaultRenderer = this)); this.type = a.WEBGL_RENDERER; this.resolution = e.resolution; this.transparent = e.transparent; this.autoResize = e.autoResize || !1; this.preserveDrawingBuffer = e.preserveDrawingBuffer; this.clearBeforeRender = e.clearBeforeRender; this.width = b || 800; this.height = d || 600; this.view = e.view || document.createElement("canvas"); this.contextLostBound = this.handleContextLost.bind(this); this.contextRestoredBound = this.handleContextRestored.bind(this); this.view.addEventListener("webglcontextlost", this.contextLostBound, !1); this.view.addEventListener("webglcontextrestored", this.contextRestoredBound, !1); this._contextOptions = { alpha: this.transparent, antialias: e.antialias, premultipliedAlpha: this.transparent && "notMultiplied" !== this.transparent, stencil: !0, preserveDrawingBuffer: e.preserveDrawingBuffer }; this.projection = new a.Point(); this.offset = new a.Point(0, 0); this.shaderManager = new a.WebGLShaderManager(); this.spriteBatch = new a.WebGLSpriteBatch(); this.maskManager = new a.WebGLMaskManager(); this.filterManager = new a.WebGLFilterManager(); this.stencilManager = new a.WebGLStencilManager(); this.blendModeManager = new a.WebGLBlendModeManager(); this.renderSession = {}; this.renderSession.gl = this.gl; this.renderSession.drawCount = 0; this.renderSession.shaderManager = this.shaderManager; this.renderSession.maskManager = this.maskManager; this.renderSession.filterManager = this.filterManager; this.renderSession.blendModeManager = this.blendModeManager; this.renderSession.spriteBatch = this.spriteBatch; this.renderSession.stencilManager = this.stencilManager; this.renderSession.renderer = this; this.renderSession.resolution = this.resolution; this.initContext(); this.mapBlendModes(); }; a.WebGLRenderer.prototype.constructor = a.WebGLRenderer; a.WebGLRenderer.prototype.initContext = function () { var b = this.view.getContext("webgl", this._contextOptions) || this.view.getContext("experimental-webgl", this._contextOptions); this.gl = b; if (!b) throw Error("This browser does not support webGL. Try using the canvas renderer"); this.glContextId = b.id = a.WebGLRenderer.glContextId++; a.glContexts[this.glContextId] = b; a.instances[this.glContextId] = this; b.disable(b.DEPTH_TEST); b.disable(b.CULL_FACE); b.enable(b.BLEND); this.shaderManager.setContext(b); this.spriteBatch.setContext(b); this.maskManager.setContext(b); this.filterManager.setContext(b); this.blendModeManager.setContext(b); this.stencilManager.setContext(b); this.renderSession.gl = this.gl; this.resize(this.width, this.height); }; a.WebGLRenderer.prototype.render = function (a) { if (!this.contextLost) { this.__stage !== a && (a.interactive && a.interactionManager.removeEvents(), (this.__stage = a)); a.updateTransform(); var d = this.gl; a._interactive ? a._interactiveEventsAdded || ((a._interactiveEventsAdded = !0), a.interactionManager.setTarget(this)) : a._interactiveEventsAdded && ((a._interactiveEventsAdded = !1), a.interactionManager.setTarget(this)); d.viewport(0, 0, this.width, this.height); d.bindFramebuffer(d.FRAMEBUFFER, null); this.clearBeforeRender && (this.transparent ? d.clearColor(0, 0, 0, 0) : d.clearColor(a.backgroundColorSplit[0], a.backgroundColorSplit[1], a.backgroundColorSplit[2], 1), d.clear(d.COLOR_BUFFER_BIT)); this.renderDisplayObject(a, this.projection); } }; a.WebGLRenderer.prototype.renderDisplayObject = function (b, d, e) { this.renderSession.blendModeManager.setBlendMode(a.blendModes.NORMAL); this.renderSession.drawCount = 0; this.renderSession.projection = d; this.renderSession.offset = this.offset; this.spriteBatch.begin(this.renderSession); this.filterManager.begin(this.renderSession, e); b._renderWebGL(this.renderSession); this.spriteBatch.end(); }; a.WebGLRenderer.prototype.resize = function (a, d) { this.width = a * this.resolution; this.height = d * this.resolution; this.view.width = this.width; this.view.height = this.height; this.autoResize && ((this.view.style.width = this.width / this.resolution + "px"), (this.view.style.height = this.height / this.resolution + "px")); this.gl.viewport(0, 0, this.width, this.height); this.projection.x = this.width / 2 / this.resolution; this.projection.y = -this.height / 2 / this.resolution; }; a.WebGLRenderer.prototype.updateTexture = function (b) { if (b.hasLoaded) { var d = this.gl; b._glTextures[d.id] || (b._glTextures[d.id] = d.createTexture()); if (b.useMipMapping && (b._powerOf2 || (0 < b.width && !(b.width & (b.width - 1)) && 0 < b.height && !(b.height & (b.height - 1))))) { try { d.bindTexture(d.TEXTURE_2D, b._glTextures[d.id]), d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, b.premultipliedAlpha), d.texImage2D(d.TEXTURE_2D, 0, d.RGBA, d.RGBA, d.UNSIGNED_BYTE, b.source), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, b.scaleMode === a.scaleModes.LINEAR ? d.LINEAR : d.NEAREST), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, d.LINEAR_MIPMAP_LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.REPEAT), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, d.REPEAT), d.generateMipmap(d.TEXTURE_2D), (b._dirty[d.id] = !1); } catch (e) { "1" == CONFIG.get("debug") && console.log("ERROR! WebGLRenderer.updateTexture failed: " + e.message); } return b._glTextures[d.id]; } try { this.ensureCanvasRenderComplete || ((this.ensureCanvasRenderComplete = CONFIG.get("webglensurecanvasrendercomplete") ? parseInt(CONFIG.get("webglensurecanvasrendercomplete")) : 0), (this.ensureCanvasRenderCompleteCounter = 0)), 0 < this.ensureCanvasRenderComplete && (++this.ensureCanvasRenderCompleteCounter, this.ensureCanvasRenderCompleteCounter >= this.ensureCanvasRenderComplete && ((this.ensureCanvasRenderCompleteCounter = 0), b.source && b.source.getContext && b.source.getContext("2d").getImageData(0, 0, 1, 1))), d.bindTexture(d.TEXTURE_2D, b._glTextures[d.id]), d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, b.premultipliedAlpha), d.texImage2D(d.TEXTURE_2D, 0, d.RGBA, d.RGBA, d.UNSIGNED_BYTE, b.source), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, b.scaleMode === a.scaleModes.LINEAR ? d.LINEAR : d.NEAREST), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, b.scaleMode === a.scaleModes.LINEAR ? d.LINEAR : d.NEAREST), b._powerOf2 ? (d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.REPEAT), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, d.REPEAT)) : (d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.CLAMP_TO_EDGE), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, d.CLAMP_TO_EDGE)), (b._dirty[d.id] = !1); } catch (f) { "1" == CONFIG.get("debug") && console.log("ERROR! WebGLRenderer.updateTexture failed: " + f.message); } return b._glTextures[d.id]; } }; a.WebGLRenderer.prototype.handleContextLost = function (a) { a.preventDefault(); this.contextLost = !0; }; a.WebGLRenderer.prototype.handleContextRestored = function () { this.initContext(); for (var b in a.TextureCache) a.TextureCache[b].baseTexture._glTextures = []; this.contextLost = !1; }; a.WebGLRenderer.prototype.destroy = function () { this.view.removeEventListener("webglcontextlost", this.contextLostBound); this.view.removeEventListener("webglcontextrestored", this.contextRestoredBound); this.offset = this.projection = a.glContexts[this.glContextId] = null; this.shaderManager.destroy(); this.spriteBatch.destroy(); this.maskManager.destroy(); this.filterManager.destroy(); this.renderSession = this.gl = this.filterManager = this.maskManager = this.spriteBatch = this.shaderManager = null; }; a.WebGLRenderer.prototype.mapBlendModes = function () { var b = this.gl; a.blendModesWebGL || ((a.blendModesWebGL = []), (a.blendModesWebGL[a.blendModes.NORMAL] = [b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA, b.ONE, b.ONE]), (a.blendModesWebGL[a.blendModes.ADD] = [b.SRC_ALPHA, b.DST_ALPHA]), (a.blendModesWebGL[a.blendModes.ADD_INTENSIVE] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.MULTIPLY] = [b.DST_COLOR, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.SCREEN] = [b.SRC_ALPHA, b.ONE]), (a.blendModesWebGL[a.blendModes.OVERLAY] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.DARKEN] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.LIGHTEN] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.COLOR_DODGE] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.COLOR_BURN] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.HARD_LIGHT] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.SOFT_LIGHT] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.DIFFERENCE] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.EXCLUSION] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.HUE] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.SATURATION] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.COLOR] = [b.ONE, b.ONE_MINUS_SRC_ALPHA]), (a.blendModesWebGL[a.blendModes.LUMINOSITY] = [b.ONE, b.ONE_MINUS_SRC_ALPHA])); }; a.WebGLRenderer.glContextId = 0; a.WebGLBlendModeManager = function () { this.currentBlendMode = 99999; }; a.WebGLBlendModeManager.prototype.constructor = a.WebGLBlendModeManager; a.WebGLBlendModeManager.prototype.setContext = function (a) { this.gl = a; }; a.WebGLBlendModeManager.prototype.setBlendMode = function (b) { if (this.currentBlendMode === b) return !1; this.currentBlendMode = b; b = a.blendModesWebGL[this.currentBlendMode]; 4 == b.length ? this.gl.blendFuncSeparate(b[0], b[1], b[2], b[3]) : this.gl.blendFunc(b[0], b[1]); return !0; }; a.WebGLBlendModeManager.prototype.destroy = function () { this.gl = null; }; a.WebGLMaskManager = function () {}; a.WebGLMaskManager.prototype.constructor = a.WebGLMaskManager; a.WebGLMaskManager.prototype.setContext = function (a) { this.gl = a; }; a.WebGLMaskManager.prototype.pushMask = function (b, d) { var e = d.gl; b.dirty && a.WebGLGraphics.updateGraphics(b, e); b._webGL[e.id].data.length && d.stencilManager.pushStencil(b, b._webGL[e.id].data[0], d); }; a.WebGLMaskManager.prototype.popMask = function (a, d) { d.stencilManager.popStencil(a, a._webGL[this.gl.id].data[0], d); }; a.WebGLMaskManager.prototype.destroy = function () { this.gl = null; }; a.WebGLStencilManager = function () { this.stencilStack = []; this.reverse = !0; this.count = 0; }; a.WebGLStencilManager.prototype.setContext = function (a) { this.gl = a; }; a.WebGLStencilManager.prototype.pushStencil = function (a, d, e) { var f = this.gl; this.bindGraphics(a, d, e); 0 === this.stencilStack.length && (f.enable(f.STENCIL_TEST), f.clear(f.STENCIL_BUFFER_BIT), (this.reverse = !0), (this.count = 0)); this.stencilStack.push(d); a = this.count; f.colorMask(!1, !1, !1, !1); f.stencilFunc(f.ALWAYS, 0, 255); f.stencilOp(f.KEEP, f.KEEP, f.INVERT); 1 === d.mode ? (f.drawElements(f.TRIANGLE_FAN, d.indices.length - 4, f.UNSIGNED_SHORT, 0), this.reverse ? (f.stencilFunc(f.EQUAL, 255 - a, 255), f.stencilOp(f.KEEP, f.KEEP, f.DECR)) : (f.stencilFunc(f.EQUAL, a, 255), f.stencilOp(f.KEEP, f.KEEP, f.INCR)), f.drawElements(f.TRIANGLE_FAN, 4, f.UNSIGNED_SHORT, 2 * (d.indices.length - 4)), this.reverse ? f.stencilFunc(f.EQUAL, 255 - (a + 1), 255) : f.stencilFunc(f.EQUAL, a + 1, 255), (this.reverse = !this.reverse)) : (this.reverse ? (f.stencilFunc(f.EQUAL, a, 255), f.stencilOp(f.KEEP, f.KEEP, f.INCR)) : (f.stencilFunc(f.EQUAL, 255 - a, 255), f.stencilOp(f.KEEP, f.KEEP, f.DECR)), f.drawElements(f.TRIANGLE_STRIP, d.indices.length, f.UNSIGNED_SHORT, 0), this.reverse ? f.stencilFunc(f.EQUAL, a + 1, 255) : f.stencilFunc(f.EQUAL, 255 - (a + 1), 255)); f.colorMask(!0, !0, !0, !0); f.stencilOp(f.KEEP, f.KEEP, f.KEEP); this.count++; }; a.WebGLStencilManager.prototype.bindGraphics = function (b, d, e) { this._currentGraphics = b; var f = this.gl, g = e.projection, k = e.offset, m; 1 === d.mode ? ((m = e.shaderManager.complexPrimitiveShader), e.shaderManager.setShader(m), f.uniformMatrix3fv(m.translationMatrix, !1, b.worldTransform.toArray(!0)), f.uniform2f(m.projectionVector, g.x, -g.y), f.uniform2f(m.offsetVector, -k.x, -k.y), f.uniform3fv(m.tintColor, a.hex2rgb(b.tint)), f.uniform3fv(m.color, d.color), f.uniform1f(m.alpha, b.worldAlpha * d.alpha), f.bindBuffer(f.ARRAY_BUFFER, d.buffer), f.vertexAttribPointer(m.aVertexPosition, 2, f.FLOAT, !1, 8, 0)) : ((m = e.shaderManager.primitiveShader), e.shaderManager.setShader(m), f.uniformMatrix3fv(m.translationMatrix, !1, b.worldTransform.toArray(!0)), f.uniform2f(m.projectionVector, g.x, -g.y), f.uniform2f(m.offsetVector, -k.x, -k.y), f.uniform3fv(m.tintColor, a.hex2rgb(b.tint)), f.uniform1f(m.alpha, b.worldAlpha), f.bindBuffer(f.ARRAY_BUFFER, d.buffer), f.vertexAttribPointer(m.aVertexPosition, 2, f.FLOAT, !1, 24, 0), f.vertexAttribPointer(m.colorAttribute, 4, f.FLOAT, !1, 24, 8)); f.bindBuffer(f.ELEMENT_ARRAY_BUFFER, d.indexBuffer); }; a.WebGLStencilManager.prototype.popStencil = function (a, d, e) { var f = this.gl; this.stencilStack.pop(); this.count--; if (0 === this.stencilStack.length) f.disable(f.STENCIL_TEST); else { var g = this.count; this.bindGraphics(a, d, e); f.colorMask(!1, !1, !1, !1); 1 === d.mode ? ((this.reverse = !this.reverse) ? (f.stencilFunc(f.EQUAL, 255 - (g + 1), 255), f.stencilOp(f.KEEP, f.KEEP, f.INCR)) : (f.stencilFunc(f.EQUAL, g + 1, 255), f.stencilOp(f.KEEP, f.KEEP, f.DECR)), f.drawElements(f.TRIANGLE_FAN, 4, f.UNSIGNED_SHORT, 2 * (d.indices.length - 4)), f.stencilFunc(f.ALWAYS, 0, 255), f.stencilOp(f.KEEP, f.KEEP, f.INVERT), f.drawElements(f.TRIANGLE_FAN, d.indices.length - 4, f.UNSIGNED_SHORT, 0)) : (this.reverse ? (f.stencilFunc(f.EQUAL, g + 1, 255), f.stencilOp(f.KEEP, f.KEEP, f.DECR)) : (f.stencilFunc(f.EQUAL, 255 - (g + 1), 255), f.stencilOp(f.KEEP, f.KEEP, f.INCR)), f.drawElements(f.TRIANGLE_STRIP, d.indices.length, f.UNSIGNED_SHORT, 0)); this.reverse ? f.stencilFunc(f.EQUAL, g, 255) : f.stencilFunc(f.EQUAL, 255 - g, 255); f.colorMask(!0, !0, !0, !0); f.stencilOp(f.KEEP, f.KEEP, f.KEEP); } }; a.WebGLStencilManager.prototype.destroy = function () { this.gl = this.stencilStack = null; }; a.WebGLShaderManager = function () { this.maxAttibs = 10; this.attribState = []; this.tempAttribState = []; for (var a = 0; a < this.maxAttibs; a++) this.attribState[a] = !1; this.stack = []; }; a.WebGLShaderManager.prototype.constructor = a.WebGLShaderManager; a.WebGLShaderManager.prototype.setContext = function (b) { this.gl = b; this.primitiveShader = new a.PrimitiveShader(b); this.complexPrimitiveShader = new a.ComplexPrimitiveShader(b); this.defaultShader = new a.PixiShader(b); this.fastShader = new a.PixiFastShader(b); this.stripShader = new a.StripShader(b); this.particleContainerShader = new a.ParticleContainerShader(b); this.polygonShader = new a.PolygonShader(b); this.setShader(this.defaultShader); }; a.WebGLShaderManager.prototype.setAttribs = function (a) { var d; for (d = 0; d < this.tempAttribState.length; d++) this.tempAttribState[d] = !1; for (d = 0; d < a.length; d++) this.tempAttribState[a[d]] = !0; a = this.gl; for (d = 0; d < this.attribState.length; d++) this.attribState[d] !== this.tempAttribState[d] && ((this.attribState[d] = this.tempAttribState[d]), this.tempAttribState[d] ? a.enableVertexAttribArray(d) : a.disableVertexAttribArray(d)); }; a.WebGLShaderManager.prototype.setShader = function (a) { if (this._currentId === a._UID) return !1; this._currentId = a._UID; this.currentShader = a; this.gl.useProgram(a.program); this.setAttribs(a.attributes); return !0; }; a.WebGLShaderManager.prototype.destroy = function () { this.tempAttribState = this.attribState = null; this.primitiveShader.destroy(); this.complexPrimitiveShader.destroy(); this.defaultShader.destroy(); this.fastShader.destroy(); this.stripShader.destroy(); this.particleContainerShader.destroy(); this.polygonShader.destroy(); this.gl = null; }; a.WebGLSpriteBatch = function () { this.vertSize = 6; this.size = 2e3; var b = 6 * this.size; this.vertices = new a.Float32Array(4 * this.size * this.vertSize); this.indices = new a.Uint16Array(b); for (var d = (this.lastIndexCount = 0), e = 0; d < b; d += 6, e += 4) (this.indices[d + 0] = e + 0), (this.indices[d + 1] = e + 1), (this.indices[d + 2] = e + 2), (this.indices[d + 3] = e + 0), (this.indices[d + 4] = e + 2), (this.indices[d + 5] = e + 3); this.drawing = !1; this.currentBatchVerticiesSize = this.currentBatchSize = 0; this.currentBaseTexture = null; this.dirty = !0; this.textures = []; this.blendModes = []; this.shaders = []; this.sprites = []; this.defaultShader = new a.AbstractFilter([ DEVICE.ios ? "precision highp float;" : "precision lowp float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D uSampler;", "void main(void) {", "gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor;", "}", ]); }; a.WebGLSpriteBatch.prototype.setContext = function (b) { this.gl = b; this.vertexBuffer = b.createBuffer(); this.indexBuffer = b.createBuffer(); b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.indexBuffer); b.bufferData(b.ELEMENT_ARRAY_BUFFER, this.indices, b.DYNAMIC_DRAW); b.bindBuffer(b.ARRAY_BUFFER, this.vertexBuffer); b.bufferData(b.ARRAY_BUFFER, this.vertices, b.DYNAMIC_DRAW); this.currentBlendMode = 99999; var d = new a.PixiShader(b); d.fragmentSrc = this.defaultShader.fragmentSrc; d.uniforms = {}; d.init(); this.defaultShader.shaders[b.id] = d; }; a.WebGLSpriteBatch.prototype.begin = function (a) { this.renderSession = a; this.shader = this.renderSession.shaderManager.defaultShader; this.start(); }; a.WebGLSpriteBatch.prototype.end = function () { this.flush(); }; a.WebGLSpriteBatch.prototype.render = function (b) { var d = b.texture; this.currentBatchSize >= this.size && (this.flush(), (this.currentBaseTexture = d.baseTexture)); var e = d._uvs; if (e) { if (!0 === b.horizontalFlip || !0 === b.verticalFlip) { var f = !1; !0 === b.horizontalFlip && !0 === b.verticalFlip ? d._hfvfuvs ? (e = d._hfvfuvs) : ((d._hfvfuvs = new a.TextureUvs()), (e = d._hfvfuvs), (f = !0)) : !0 === b.horizontalFlip ? d._hfuvs ? (e = d._hfuvs) : ((d._hfuvs = new a.TextureUvs()), (e = d._hfuvs), (f = !0)) : d._vfuvs ? (e = d._vfuvs) : ((d._vfuvs = new a.TextureUvs()), (e = d._vfuvs), (f = !0)); !0 === f && (!0 === b.horizontalFlip ? ((e.x0 = d._uvs.x1), (e.x1 = d._uvs.x0), (e.x2 = d._uvs.x3), (e.x3 = d._uvs.x2)) : ((e.x0 = d._uvs.x0), (e.x1 = d._uvs.x1), (e.x2 = d._uvs.x2), (e.x3 = d._uvs.x3)), !0 === b.verticalFlip ? ((e.y0 = d._uvs.y3), (e.y1 = d._uvs.y2), (e.y2 = d._uvs.y1), (e.y3 = d._uvs.y0)) : ((e.y0 = d._uvs.y0), (e.y1 = d._uvs.y1), (e.y2 = d._uvs.y2), (e.y3 = d._uvs.y3))); } var g = b.worldAlpha, k = b.tint, f = this.vertices, m = b.anchor.x, n = b.anchor.y, p, q, r, t; if (d.trim) { var u = d.trim; q = u.x - m * u.width; p = q + d.crop.width; t = u.y - n * u.height; r = t + d.crop.height; } else (p = d.frame.width * (1 - m)), (q = d.frame.width * -m), (r = d.frame.height * (1 - n)), (t = d.frame.height * -n); var u = (n = this.currentBatchVerticiesSize), B = d.baseTexture.resolution, d = b.worldTransform, A = d.a / B, m = d.b / B, C = d.c / B, B = d.d / B, E = d.tx, F = d.ty; if (CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth) var d = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth, D = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth, E = E + d, F = F + D; d = n; f[n++] = A * q + C * t + E; f[n++] = B * t + m * q + F; f[n++] = e.x0; f[n++] = e.y0; f[n++] = g; f[n++] = k; f[n++] = A * p + C * t + E; f[n++] = B * t + m * p + F; f[n++] = e.x1; f[n++] = e.y1; f[n++] = g; f[n++] = k; f[n++] = A * p + C * r + E; f[n++] = B * r + m * p + F; f[n++] = e.x2; f[n++] = e.y2; f[n++] = g; f[n++] = k; f[n++] = A * q + C * r + E; f[n++] = B * r + m * q + F; f[n++] = e.x3; f[n++] = e.y3; f[n++] = g; f[n++] = k; p = JSUTIL.GLUtil.getClip_0(); q = !1; t = 1e5; A = -1e5; B = 1e5; E = -1e5; r = d; F = d + 24; for (D = 0; r < F; r += 6) t > f[r] && (t = f[r]), A < f[r] && (A = f[r]), (D = f[r + 1]), B > D && (B = D), E < D && (E = D); if (p.intersects_4(t, B, A, E)) { t = GTObjPool.getTempRect_4(t, B, A, E); e = GTObjPool.getTempRect_4(e.x0, e.y0, e.x2, e.y2); C = 0 != b.rotation || f[d] !== f[d + 18] || f[d + 1] !== f[d + 7] || (0 !== m && 0 !== C); r = G.isNotNullAndDefined(b.scale) && (0 > b.scale.x || 0 > b.scale.y); if (p.isAxisAlignedRect_0() && !1 === C && !1 === r) JSUTIL.clipper.clipRect_RRC_3(t, e, p) && ((n = d), (m = e.x), (C = e.y), (p = e.x + e.width), (q = e.y + e.height), (f[n++] = t.x), (f[n++] = t.y), (f[n++] = m), (f[n++] = C), (f[n++] = g), (f[n++] = k), (f[n++] = t.x + t.width), (f[n++] = t.y), (f[n++] = p), (f[n++] = C), (f[n++] = g), (f[n++] = k), (f[n++] = t.x + t.width), (f[n++] = t.y + t.height), (f[n++] = p), (f[n++] = q), (f[n++] = g), (f[n++] = k), (f[n++] = t.x), (f[n++] = t.y + t.height), (f[n++] = m), (f[n++] = q), (f[n++] = g), (f[n++] = k), (q = !0)); else if (((m = null), (m = !0 === C || !0 === r ? JSUTIL.clipper.clip_CAR_3(p, [f[d], f[d + 1], f[d + 6], f[d + 7], f[d + 12], f[d + 13], f[d + 18], f[d + 19]], e) : JSUTIL.clipper.clip_CRR_3(p, t, e)), null != m)) { n = d; C = m.length; for (r = 0; r < C; r++) (p = m[r]), (f[n++] = p.pos.x), (f[n++] = p.pos.y), (f[n++] = p.uv.x), (f[n++] = p.uv.y), (f[n++] = g), (f[n++] = k); q = !0; } GTObjPool.recycleTempRect(e); GTObjPool.recycleTempRect(t); } if (!0 !== q) { for (g = 0; g < n; ++g) f[d + g] = 0; n = d; } this.currentBatchVerticiesSize = n; b.verticesNumber = (n - u) / 6; 2 < b.verticesNumber && (this.sprites[this.currentBatchSize++] = b); } }; a.WebGLSpriteBatch.prototype.renderTilingSprite = function (b) { var d = b.tilingTexture; this.currentBatchSize >= this.size && (this.flush(), (this.currentBaseTexture = d.baseTexture)); b._uvs || (b._uvs = new a.TextureUvs()); var e = b._uvs; b.tilePosition.x %= d.baseTexture.width * b.tileScaleOffset.x; b.tilePosition.y %= d.baseTexture.height * b.tileScaleOffset.y; var f = b.tilePosition.x / (d.baseTexture.width * b.tileScaleOffset.x), g = b.tilePosition.y / (d.baseTexture.height * b.tileScaleOffset.y), k = b.width / d.baseTexture.width / (b.tileScale.x * b.tileScaleOffset.x), m = b.height / d.baseTexture.height / (b.tileScale.y * b.tileScaleOffset.y); e.x0 = 0 - f; e.y0 = 0 - g; e.x1 = 1 * k - f; e.y1 = 0 - g; e.x2 = 1 * k - f; e.y2 = 1 * m - g; e.x3 = 0 - f; e.y3 = 1 * m - g; var f = b.worldAlpha, g = b.tint, k = this.vertices, n = b.width, p = b.height, q = b.anchor.x, r = b.anchor.y, m = n * (1 - q), n = n * -q, q = p * (1 - r), p = p * -r, r = 4 * this.currentBatchSize * this.vertSize, t = d.baseTexture.resolution, u = b.worldTransform, d = u.a / t, B = u.b / t, A = u.c / t, t = u.d / t, C = u.tx, u = u.ty; k[r++] = d * n + A * p + C; k[r++] = t * p + B * n + u; k[r++] = e.x0; k[r++] = e.y0; k[r++] = f; k[r++] = g; k[r++] = d * m + A * p + C; k[r++] = t * p + B * m + u; k[r++] = e.x1; k[r++] = e.y1; k[r++] = f; k[r++] = g; k[r++] = d * m + A * q + C; k[r++] = t * q + B * m + u; k[r++] = e.x2; k[r++] = e.y2; k[r++] = f; k[r++] = g; k[r++] = d * n + A * q + C; k[r++] = t * q + B * n + u; k[r++] = e.x3; k[r++] = e.y3; k[r++] = f; k[r++] = g; this.sprites[this.currentBatchSize++] = b; }; a.WebGLSpriteBatch.prototype.flush = function () { if (0 !== this.currentBatchSize) { var b = this.gl, d; if (this.dirty) { this.dirty = !1; b.activeTexture(b.TEXTURE0); b.bindBuffer(b.ARRAY_BUFFER, this.vertexBuffer); b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.indexBuffer); d = this.defaultShader.shaders[b.id]; var e = 4 * this.vertSize; b.vertexAttribPointer(d.aVertexPosition, 2, b.FLOAT, !1, e, 0); b.vertexAttribPointer(d.aTextureCoord, 2, b.FLOAT, !1, e, 8); b.vertexAttribPointer(d.colorAttribute, 2, b.FLOAT, !1, e, 16); } e = "1" == CONFIG.webgluploadsubarray ? this.vertices.subarray(0, this.currentBatchVerticiesSize) : this.vertices; b.bufferSubData(b.ARRAY_BUFFER, 0, e); for (var f = 0, g = 0, k = (e = 0); e < this.currentBatchSize; e++) { f = this.sprites[e].verticesNumber; if (2 < f && ((this.indices[g++] = k + 0), (this.indices[g++] = k + 1), (this.indices[g++] = k + 2), 3 < f && ((this.indices[g++] = k + 0), (this.indices[g++] = k + 2), (this.indices[g++] = k + 3), 4 < f))) for (var m = 4; m < f; m++) (this.indices[g++] = k + 0), (this.indices[g++] = k + m - 1), (this.indices[g++] = k + m); k += f; } e = "1" == CONFIG.webgluploadsubarray ? this.indices.subarray(0, g) : this.indices; b.bufferSubData(b.ELEMENT_ARRAY_BUFFER, 0, e); for (var n, p, m = (g = f = 0), q = null, r = this.renderSession.blendModeManager.currentBlendMode, t = null, u = !1, B = !1, A, e = 0, k = this.currentBatchSize; e < k; e++) { A = this.sprites[e]; d = A.texture.baseTexture; n = A.blendMode; p = A.shader || this.defaultShader; var u = r !== n, B = t !== p, C = A.gt_colormatrix || A.gt_separatedAlpha || (G.isNotNullAndDefined(A.gt_shaderContrast) && 0 != A.gt_shaderContrast); C ? ((p = JSUTIL.webGLGlobalShader.getGlobalShader()), (B = !0)) : !B && t.shaders[b.id] && t.shaders[b.id].uniforms.matrix && (B = !0); if (q !== d || u || B) this.renderCustomBatch(q, g, m), (f = 0), (q = d), (m += g), (g = 0), u && ((r = n), this.renderSession.blendModeManager.setBlendMode(r)), B && ((t = p), (d = t.shaders[b.id]), d || ((d = new a.PixiShader(b)), (d.fragmentSrc = t.fragmentSrc), (d.uniforms = t.uniforms), d.init(), d.colorAttributeError && C && ((JSUTIL.webGLGlobalShader._globalshaderObj = null), (a.GreentubeGlobalShader.prototype.colorAttributeError = !0), (t = p = JSUTIL.webGLGlobalShader.getGlobalShader()), (d = new a.PixiShader(b)), (d.fragmentSrc = t.fragmentSrc), (d.uniforms = t.uniforms), d.init()), (t.shaders[b.id] = d)), d.uniforms.matrix && (A.gt_colormatrix ? ((d.uniforms.matrix.value = A.gt_colormatrix), (d.uniforms.hasMatrix.value = 1)) : ((d.uniforms.hasMatrix.value = 0), (d.uniforms.matrix.value = JSUTIL.webGLGlobalShader.getGlobalShaderDefaultColorTransformationMatrix()))), d.uniforms.hasSeparatedAlpha && (A.gt_separatedAlpha ? ((d.uniforms.paddingHalfHeight.value = (4 / A.texture.baseTexture.height) * 0.5), (d.uniforms.alphaseparateYfactor.value = 0.5 - d.uniforms.paddingHalfHeight.value), (d.uniforms.hasSeparatedAlpha.value = 1)) : ((d.uniforms.hasSeparatedAlpha.value = 0), (d.uniforms.paddingHalfHeight.value = 0), (d.uniforms.alphaseparateYfactor.value = 0))), d.uniforms.contrastFactor && (G.isNotNullAndDefined(A.gt_shaderContrast) && 0 != A.gt_shaderContrast ? (d.uniforms.contrastFactor.value = (259 * (A.gt_shaderContrast + 255)) / (255 * (259 - A.gt_shaderContrast))) : (d.uniforms.contrastFactor.value = 0)), this.renderSession.shaderManager.setShader(d), d.dirty && d.syncUniforms(), (C = this.renderSession.projection), b.uniform2f(d.projectionVector, C.x, C.y), (C = this.renderSession.offset), b.uniform2f(d.offsetVector, C.x, C.y)); g += 3 * (A.verticesNumber - 2); f++; } this.renderCustomBatch(q, g, m); this.currentBatchVerticiesSize = this.currentBatchSize = 0; } }; a.WebGLSpriteBatch.prototype.renderBatch = function (a, d, e) { if (0 !== d) { var f = this.gl; a._dirty[f.id] ? this.renderSession.renderer.updateTexture(a) : f.bindTexture(f.TEXTURE_2D, a._glTextures[f.id]); f.drawElements(f.TRIANGLES, 6 * d, f.UNSIGNED_SHORT, 12 * e); this.renderSession.drawCount++; } }; a.WebGLSpriteBatch.prototype.renderCustomBatch = function (a, d, e) { if (0 !== d) { var f = this.gl; a._dirty[f.id] ? this.renderSession.renderer.updateTexture(a) : f.bindTexture(f.TEXTURE_2D, a._glTextures[f.id]); f.drawElements(f.TRIANGLES, d, f.UNSIGNED_SHORT, 2 * e); this.renderSession.drawCount++; } }; a.WebGLSpriteBatch.prototype.stop = function () { this.flush(); this.dirty = !0; }; a.WebGLSpriteBatch.prototype.start = function () { this.dirty = !0; }; a.WebGLSpriteBatch.prototype.destroy = function () { this.indices = this.vertices = null; this.gl.deleteBuffer(this.vertexBuffer); this.gl.deleteBuffer(this.indexBuffer); this.gl = this.currentBaseTexture = null; }; a.WebGLFastSpriteBatch = function (b) { this.vertSize = 10; this.size = this.maxSize = 6e3; var d = 6 * this.maxSize; this.vertices = new a.Float32Array(4 * this.size * this.vertSize); this.indices = new a.Uint16Array(d); this.indexBuffer = this.vertexBuffer = null; for (var e = (this.lastIndexCount = 0), f = 0; e < d; e += 6, f += 4) (this.indices[e + 0] = f + 0), (this.indices[e + 1] = f + 1), (this.indices[e + 2] = f + 2), (this.indices[e + 3] = f + 0), (this.indices[e + 4] = f + 2), (this.indices[e + 5] = f + 3); this.drawing = !1; this.currentBatchSize = 0; this.currentBaseTexture = null; this.currentBlendMode = 0; this.matrix = this.shader = this.renderSession = null; this.setContext(b); }; a.WebGLFastSpriteBatch.prototype.constructor = a.WebGLFastSpriteBatch; a.WebGLFastSpriteBatch.prototype.setContext = function (a) { this.gl = a; this.vertexBuffer = a.createBuffer(); this.indexBuffer = a.createBuffer(); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.indexBuffer); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.indices, a.STATIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this.vertexBuffer); a.bufferData(a.ARRAY_BUFFER, this.vertices, a.DYNAMIC_DRAW); }; a.WebGLFastSpriteBatch.prototype.begin = function (a, d) { this.renderSession = d; this.shader = this.renderSession.shaderManager.fastShader; this.matrix = a.worldTransform.toArray(!0); this.start(); }; a.WebGLFastSpriteBatch.prototype.end = function () { this.flush(); }; a.WebGLFastSpriteBatch.prototype.render = function (a) { a = a.children; var d = a[0]; if (d.texture._uvs) { this.currentBaseTexture = d.texture.baseTexture; d.blendMode !== this.renderSession.blendModeManager.currentBlendMode && (this.flush(), this.renderSession.blendModeManager.setBlendMode(d.blendMode)); for (var d = 0, e = a.length; d < e; d++) this.renderSprite(a[d]); this.flush(); } }; a.WebGLFastSpriteBatch.prototype.renderSprite = function (a) { if (a.visible) { if (a.texture.baseTexture !== this.currentBaseTexture && (this.flush(), (this.currentBaseTexture = a.texture.baseTexture), !a.texture._uvs)) return; var d, e = this.vertices, f, g, k, m, n; d = a.texture._uvs; a.texture.trim ? ((k = a.texture.trim), (g = k.x - a.anchor.x * k.width), (f = g + a.texture.crop.width), (m = k.y - a.anchor.y * k.height), (k = m + a.texture.crop.height)) : ((f = a.texture.frame.width * (1 - a.anchor.x)), (g = a.texture.frame.width * -a.anchor.x), (k = a.texture.frame.height * (1 - a.anchor.y)), (m = a.texture.frame.height * -a.anchor.y)); n = 4 * this.currentBatchSize * this.vertSize; e[n++] = g; e[n++] = m; e[n++] = a.position.x; e[n++] = a.position.y; e[n++] = a.scale.x; e[n++] = a.scale.y; e[n++] = a.rotation; e[n++] = d.x0; e[n++] = d.y1; e[n++] = a.alpha; e[n++] = f; e[n++] = m; e[n++] = a.position.x; e[n++] = a.position.y; e[n++] = a.scale.x; e[n++] = a.scale.y; e[n++] = a.rotation; e[n++] = d.x1; e[n++] = d.y1; e[n++] = a.alpha; e[n++] = f; e[n++] = k; e[n++] = a.position.x; e[n++] = a.position.y; e[n++] = a.scale.x; e[n++] = a.scale.y; e[n++] = a.rotation; e[n++] = d.x2; e[n++] = d.y2; e[n++] = a.alpha; e[n++] = g; e[n++] = k; e[n++] = a.position.x; e[n++] = a.position.y; e[n++] = a.scale.x; e[n++] = a.scale.y; e[n++] = a.rotation; e[n++] = d.x3; e[n++] = d.y3; e[n++] = a.alpha; this.currentBatchSize++; this.currentBatchSize >= this.size && this.flush(); } }; a.WebGLFastSpriteBatch.prototype.flush = function () { if (0 !== this.currentBatchSize) { var a = this.gl; this.currentBaseTexture._glTextures[a.id] || this.renderSession.renderer.updateTexture(this.currentBaseTexture, a); a.bindTexture(a.TEXTURE_2D, this.currentBaseTexture._glTextures[a.id]); if (this.currentBatchSize > 0.5 * this.size) a.bufferSubData(a.ARRAY_BUFFER, 0, this.vertices); else { var d = this.vertices.subarray(0, 4 * this.currentBatchSize * this.vertSize); a.bufferSubData(a.ARRAY_BUFFER, 0, d); } a.drawElements(a.TRIANGLES, 6 * this.currentBatchSize, a.UNSIGNED_SHORT, 0); this.currentBatchSize = 0; this.renderSession.drawCount++; } }; a.WebGLFastSpriteBatch.prototype.stop = function () { this.flush(); }; a.WebGLFastSpriteBatch.prototype.start = function () { var a = this.gl; a.activeTexture(a.TEXTURE0); a.bindBuffer(a.ARRAY_BUFFER, this.vertexBuffer); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.indexBuffer); var d = this.renderSession.projection; a.uniform2f(this.shader.projectionVector, d.x, d.y); a.uniformMatrix3fv(this.shader.uMatrix, !1, this.matrix); d = 4 * this.vertSize; a.vertexAttribPointer(this.shader.aVertexPosition, 2, a.FLOAT, !1, d, 0); a.vertexAttribPointer(this.shader.aPositionCoord, 2, a.FLOAT, !1, d, 8); a.vertexAttribPointer(this.shader.aScale, 2, a.FLOAT, !1, d, 16); a.vertexAttribPointer(this.shader.aRotation, 1, a.FLOAT, !1, d, 24); a.vertexAttribPointer(this.shader.aTextureCoord, 2, a.FLOAT, !1, d, 28); a.vertexAttribPointer(this.shader.colorAttribute, 1, a.FLOAT, !1, d, 36); }; a.WebGLFilterManager = function () { this.filterStack = []; this.offsetY = this.offsetX = 0; }; a.WebGLFilterManager.prototype.constructor = a.WebGLFilterManager; a.WebGLFilterManager.prototype.setContext = function (a) { this.gl = a; this.texturePool = []; this.initShaderBuffers(); }; a.WebGLFilterManager.prototype.begin = function (a, d) { this.renderSession = a; this.defaultShader = a.shaderManager.defaultShader; var e = this.renderSession.projection; this.width = 2 * e.x; this.height = 2 * -e.y; this.buffer = d; }; a.WebGLFilterManager.prototype.pushFilter = function (b) { var d = this.gl, e = this.renderSession.projection, f = this.renderSession.offset; b._filterArea = b.target.filterArea || b.target.getBounds(); this.filterStack.push(b); var g = b.filterPasses[0]; this.offsetX += b._filterArea.x; this.offsetY += b._filterArea.y; var k = this.texturePool.pop(); k ? k.resize(this.width, this.height) : (k = new a.FilterTexture(this.gl, this.width, this.height)); d.bindTexture(d.TEXTURE_2D, k.texture); var m = b._filterArea, g = g.padding; m.x -= g; m.y -= g; m.width += 2 * g; m.height += 2 * g; 0 > m.x && (m.x = 0); m.width > this.width && (m.width = this.width); 0 > m.y && (m.y = 0); m.height > this.height && (m.height = this.height); d.bindFramebuffer(d.FRAMEBUFFER, k.frameBuffer); d.viewport(0, 0, m.width, m.height); e.x = m.width / 2; e.y = -m.height / 2; f.x = -m.x; f.y = -m.y; d.colorMask(!0, !0, !0, !0); d.clearColor(0, 0, 0, 0); d.clear(d.COLOR_BUFFER_BIT); b._glFilterTexture = k; }; a.WebGLFilterManager.prototype.popFilter = function () { var b = this.gl, d = this.filterStack.pop(), e = d._filterArea, f = d._glFilterTexture, g = this.renderSession.projection, k = this.renderSession.offset; if (1 < d.filterPasses.length) { b.viewport(0, 0, e.width, e.height); b.bindBuffer(b.ARRAY_BUFFER, this.vertexBuffer); this.vertexArray[0] = 0; this.vertexArray[1] = e.height; this.vertexArray[2] = e.width; this.vertexArray[3] = e.height; this.vertexArray[4] = 0; this.vertexArray[5] = 0; this.vertexArray[6] = e.width; this.vertexArray[7] = 0; b.bufferSubData(b.ARRAY_BUFFER, 0, this.vertexArray); b.bindBuffer(b.ARRAY_BUFFER, this.uvBuffer); this.uvArray[2] = e.width / this.width; this.uvArray[5] = e.height / this.height; this.uvArray[6] = e.width / this.width; this.uvArray[7] = e.height / this.height; b.bufferSubData(b.ARRAY_BUFFER, 0, this.uvArray); var m = this.texturePool.pop(); m || (m = new a.FilterTexture(this.gl, this.width, this.height)); m.resize(this.width, this.height); b.bindFramebuffer(b.FRAMEBUFFER, m.frameBuffer); b.clear(b.COLOR_BUFFER_BIT); b.disable(b.BLEND); for (var n = 0; n < d.filterPasses.length - 1; n++) { var p = d.filterPasses[n]; b.bindFramebuffer(b.FRAMEBUFFER, m.frameBuffer); b.activeTexture(b.TEXTURE0); b.bindTexture(b.TEXTURE_2D, f.texture); this.applyFilterPass(p, e, e.x, e.y, e.width, e.height); p = f; f = m; m = p; } b.enable(b.BLEND); this.texturePool.push(m); } m = d.filterPasses[d.filterPasses.length - 1]; this.offsetX -= e.x; this.offsetY -= e.y; var n = this.width, p = this.height, q = 0, r = 0, t = this.buffer, u = e.x, B = e.y; 0 === this.filterStack.length ? b.colorMask(!0, !0, !0, !0) : ((t = this.filterStack[this.filterStack.length - 1]), (e = t._filterArea), (n = e.width), (p = e.height), (q = e.x), (r = e.y), (t = t._glFilterTexture.frameBuffer), m instanceof a.Transform3DFilter && ((u -= e.x), (B -= e.y))); g.x = n / 2; g.y = -p / 2; k.x = q; k.y = r; e = d._filterArea; g = e.x - q; k = e.y - r; b.bindBuffer(b.ARRAY_BUFFER, this.vertexBuffer); this.vertexArray[0] = g; this.vertexArray[1] = k + e.height; this.vertexArray[2] = g + e.width; this.vertexArray[3] = k + e.height; this.vertexArray[4] = g; this.vertexArray[5] = k; this.vertexArray[6] = g + e.width; this.vertexArray[7] = k; b.bufferSubData(b.ARRAY_BUFFER, 0, this.vertexArray); b.bindBuffer(b.ARRAY_BUFFER, this.uvBuffer); this.uvArray[2] = e.width / this.width; this.uvArray[5] = e.height / this.height; this.uvArray[6] = e.width / this.width; this.uvArray[7] = e.height / this.height; b.bufferSubData(b.ARRAY_BUFFER, 0, this.uvArray); b.viewport(0, 0, n, p); b.bindFramebuffer(b.FRAMEBUFFER, t); this.renderSession.blendModeManager.setBlendMode(a.blendModes.ADD_INTENSIVE); b.activeTexture(b.TEXTURE0); b.bindTexture(b.TEXTURE_2D, f.texture); this.applyFilterPass(m, e, u, B, n, p); this.texturePool.push(f); d._glFilterTexture = null; }; a.WebGLFilterManager.prototype.applyFilterPass = function (b, d, e, f, g, k) { var m = this.gl, n = b.shaders[m.id]; n || ((n = new a.PixiShader(m)), (n.fragmentSrc = b.fragmentSrc), (n.uniforms = b.uniforms), b.vertexSrc && (n.vertexSrc = b.vertexSrc), n.init(), (b.shaders[m.id] = n)); this.renderSession.shaderManager.setShader(n); m.uniform2f(n.projectionVector, g / 2, -k / 2); m.uniform2f(n.offsetVector, 0, 0); b.uniforms.dimensions && ((b.uniforms.dimensions.value[0] = this.width), (b.uniforms.dimensions.value[1] = this.height), (b.uniforms.dimensions.value[2] = this.vertexArray[0]), (b.uniforms.dimensions.value[3] = this.vertexArray[5])); b.uniforms.aspectratio && ((g = Math.abs(this.vertexArray[6] - this.vertexArray[0])), (k = Math.abs(this.vertexArray[7] - this.vertexArray[1])), (b.aspectratio = g / k)); b.uniforms.halfUVSize && ((b.uniforms.halfUVSize.value[0] = 0.5 * Math.abs(this.uvArray[6] - this.uvArray[0])), (b.uniforms.halfUVSize.value[1] = 0.5 * Math.abs(this.uvArray[7] - this.uvArray[1]))); b.uniforms.filterArea && ((b.uniforms.filterArea.value[0] = e), (b.uniforms.filterArea.value[1] = f), (b.uniforms.filterArea.value[2] = d.width), (b.uniforms.filterArea.value[3] = d.height)); b.uniforms.normalMap && CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth && 0 != JSUTIL.GLUtil.currentParallaxDepth && ((e = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth), (f = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth), (b.uniforms.offset.value[0] = e / d.width), (b.uniforms.offset.value[1] = f / d.height), (b.offset = b.uniforms.offset.value)); b.uniforms.uvData && ((b.uniforms.uvData.value[0] = d.width / this.width), (b.uniforms.uvData.value[1] = d.height / this.height), (b.uniforms.uvData.value[2] = (1 / this.width) * b.direction.x * b.texelStep), (b.uniforms.uvData.value[3] = (1 / this.height) * b.direction.y * b.texelStep)); b.update && b.update(); n.syncUniforms(); m.bindBuffer(m.ARRAY_BUFFER, this.vertexBuffer); m.vertexAttribPointer(n.aVertexPosition, 2, m.FLOAT, !1, 0, 0); m.bindBuffer(m.ARRAY_BUFFER, this.uvBuffer); m.vertexAttribPointer(n.aTextureCoord, 2, m.FLOAT, !1, 0, 0); m.bindBuffer(m.ARRAY_BUFFER, this.colorBuffer); m.vertexAttribPointer(n.colorAttribute, 2, m.FLOAT, !1, 0, 0); m.bindBuffer(m.ELEMENT_ARRAY_BUFFER, this.indexBuffer); m.drawElements(m.TRIANGLES, 6, m.UNSIGNED_SHORT, 0); this.renderSession.drawCount++; }; a.WebGLFilterManager.prototype.initShaderBuffers = function () { var b = this.gl; this.vertexBuffer = b.createBuffer(); this.uvBuffer = b.createBuffer(); this.colorBuffer = b.createBuffer(); this.indexBuffer = b.createBuffer(); this.vertexArray = new a.Float32Array([0, 0, 1, 0, 0, 1, 1, 1]); b.bindBuffer(b.ARRAY_BUFFER, this.vertexBuffer); b.bufferData(b.ARRAY_BUFFER, this.vertexArray, b.STATIC_DRAW); this.uvArray = new a.Float32Array([0, 0, 1, 0, 0, 1, 1, 1]); b.bindBuffer(b.ARRAY_BUFFER, this.uvBuffer); b.bufferData(b.ARRAY_BUFFER, this.uvArray, b.STATIC_DRAW); this.colorArray = new a.Float32Array([1, 16777215, 1, 16777215, 1, 16777215, 1, 16777215]); b.bindBuffer(b.ARRAY_BUFFER, this.colorBuffer); b.bufferData(b.ARRAY_BUFFER, this.colorArray, b.STATIC_DRAW); b.bindBuffer(b.ELEMENT_ARRAY_BUFFER, this.indexBuffer); b.bufferData(b.ELEMENT_ARRAY_BUFFER, new Uint16Array([0, 1, 2, 1, 3, 2]), b.STATIC_DRAW); }; a.WebGLFilterManager.prototype.destroy = function () { var a = this.gl; this.filterStack = null; for (var d = (this.offsetY = this.offsetX = 0); d < this.texturePool.length; d++) this.texturePool[d].destroy(); this.texturePool = null; a.deleteBuffer(this.vertexBuffer); a.deleteBuffer(this.uvBuffer); a.deleteBuffer(this.colorBuffer); a.deleteBuffer(this.indexBuffer); }; a.FilterTexture = function (b, d, e, f) { this.gl = b; this.frameBuffer = b.createFramebuffer(); this.texture = b.createTexture(); f = f || a.scaleModes.DEFAULT; b.bindTexture(b.TEXTURE_2D, this.texture); b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MAG_FILTER, f === a.scaleModes.LINEAR ? b.LINEAR : b.NEAREST); b.texParameteri(b.TEXTURE_2D, b.TEXTURE_MIN_FILTER, f === a.scaleModes.LINEAR ? b.LINEAR : b.NEAREST); b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_S, b.CLAMP_TO_EDGE); b.texParameteri(b.TEXTURE_2D, b.TEXTURE_WRAP_T, b.CLAMP_TO_EDGE); b.bindFramebuffer(b.FRAMEBUFFER, this.frameBuffer); b.bindFramebuffer(b.FRAMEBUFFER, this.frameBuffer); b.framebufferTexture2D(b.FRAMEBUFFER, b.COLOR_ATTACHMENT0, b.TEXTURE_2D, this.texture, 0); this.renderBuffer = b.createRenderbuffer(); b.bindRenderbuffer(b.RENDERBUFFER, this.renderBuffer); b.framebufferRenderbuffer(b.FRAMEBUFFER, b.DEPTH_STENCIL_ATTACHMENT, b.RENDERBUFFER, this.renderBuffer); this.resize(d, e); }; a.FilterTexture.prototype.constructor = a.FilterTexture; a.FilterTexture.prototype.clear = function () { var a = this.gl; a.clearColor(0, 0, 0, 0); a.clear(a.COLOR_BUFFER_BIT); }; a.FilterTexture.prototype.resize = function (a, d) { if (this.width !== a || this.height !== d) { this.width = a; this.height = d; var e = this.gl; e.bindTexture(e.TEXTURE_2D, this.texture); e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, a, d, 0, e.RGBA, e.UNSIGNED_BYTE, null); e.bindRenderbuffer(e.RENDERBUFFER, this.renderBuffer); e.renderbufferStorage(e.RENDERBUFFER, e.DEPTH_STENCIL, a, d); } }; a.FilterTexture.prototype.destroy = function () { var a = this.gl; a.deleteFramebuffer(this.frameBuffer); a.deleteTexture(this.texture); this.texture = this.frameBuffer = null; }; a.CanvasBuffer = function (a, d) { this.width = a; this.height = d; this.canvas = document.createElement("canvas"); this.context = this.canvas.getContext("2d"); this.canvas.width = a; this.canvas.height = d; }; a.CanvasBuffer.prototype.constructor = a.CanvasBuffer; a.CanvasBuffer.prototype.clear = function () { this.context.setTransform(1, 0, 0, 1, 0, 0); this.context.clearRect(0, 0, this.width, this.height); }; a.CanvasBuffer.prototype.resize = function (a, d) { this.width = this.canvas.width = a; this.height = this.canvas.height = d; }; a.CanvasMaskManager = function () {}; a.CanvasMaskManager.prototype.constructor = a.CanvasMaskManager; a.CanvasMaskManager.prototype.pushMask = function (b, d) { var e = d.context; e.save(); var f = b.alpha, g = b.worldTransform, k = d.resolution, m = 0, n = 0; CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth && ((m = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth), (n = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth)); e.setTransform(g.a * k, g.b * k, g.c * k, g.d * k, (g.tx + m) * k, (g.ty + n) * k); a.CanvasGraphics.renderGraphicsMask(b, e); e.clip(); b.worldAlpha = f; }; a.CanvasMaskManager.prototype.popMask = function (a) { a.context.restore(); }; a.CanvasTinter = function () {}; a.CanvasTinter.getTintedTexture = function (b, d) { var e = b.texture; d = a.CanvasTinter.roundColor(d); var f = "#" + ("00000" + (d | 0).toString(16)).substr(-6); e.tintCache = e.tintCache || {}; if (e.tintCache[f]) return e.tintCache[f]; var g = a.CanvasTinter.canvas || document.createElement("canvas"); a.CanvasTinter.tintMethod(e, d, g); if (a.CanvasTinter.convertTintToImage) { var k = new Image(); k.src = g.toDataURL(); e.tintCache[f] = k; } else (e.tintCache[f] = g), (a.CanvasTinter.canvas = null); return g; }; a.CanvasTinter.tintWithMultiply = function (a, d, e) { var f = e.getContext("2d"), g = a.crop; e.width = g.width; e.height = g.height; f.fillStyle = "#" + ("00000" + (d | 0).toString(16)).substr(-6); f.fillRect(0, 0, g.width, g.height); f.globalCompositeOperation = "multiply"; f.drawImage(a.baseTexture.source, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height); f.globalCompositeOperation = "destination-atop"; f.drawImage(a.baseTexture.source, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height); }; a.CanvasTinter.tintWithOverlay = function (a, d, e) { var f = e.getContext("2d"), g = a.crop; e.width = g.width; e.height = g.height; f.globalCompositeOperation = "copy"; f.fillStyle = "#" + ("00000" + (d | 0).toString(16)).substr(-6); f.fillRect(0, 0, g.width, g.height); f.globalCompositeOperation = "destination-atop"; f.drawImage(a.baseTexture.source, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height); }; a.CanvasTinter.tintWithPerPixel = function (b, d, e) { var f = e.getContext("2d"), g = b.crop; e.width = g.width; e.height = g.height; f.globalCompositeOperation = "copy"; f.drawImage(b.baseTexture.source, g.x, g.y, g.width, g.height, 0, 0, g.width, g.height); e = a.hex2rgb(d); b = e[0]; d = e[1]; e = e[2]; for (var g = f.getImageData(0, 0, g.width, g.height), k = g.data, m = 0; m < k.length; m += 4) (k[m + 0] *= b), (k[m + 1] *= d), (k[m + 2] *= e); f.putImageData(g, 0, 0); }; a.CanvasTinter.roundColor = function (b) { var d = a.CanvasTinter.cacheStepsPerColorChannel; b = a.hex2rgb(b); b[0] = Math.min(255, (b[0] / d) * d); b[1] = Math.min(255, (b[1] / d) * d); b[2] = Math.min(255, (b[2] / d) * d); return a.rgb2hex(b); }; a.CanvasTinter.cacheStepsPerColorChannel = 8; a.CanvasTinter.convertTintToImage = !1; a.CanvasTinter.canUseMultiply = a.canUseNewCanvasBlendModes(); a.CanvasTinter.tintMethod = a.CanvasTinter.canUseMultiply ? a.CanvasTinter.tintWithMultiply : a.CanvasTinter.tintWithPerPixel; a.CanvasRenderer = function (b, d, e) { if (e) for (var f in a.defaultRenderOptions) "undefined" === typeof e[f] && (e[f] = a.defaultRenderOptions[f]); else e = a.defaultRenderOptions; a.defaultRenderer || (a.sayHello("Canvas"), (a.defaultRenderer = this)); this.type = a.CANVAS_RENDERER; this.resolution = e.resolution; this.clearBeforeRender = e.clearBeforeRender; this.transparent = e.transparent; this.autoResize = e.autoResize || !1; this.width = b || 800; this.height = d || 600; this.width *= this.resolution; this.height *= this.resolution; this.view = e.view || document.createElement("canvas"); this.context = this.view.getContext("2d", { alpha: this.transparent }); this.refresh = !0; this.view.width = this.width * this.resolution; this.view.height = this.height * this.resolution; this.count = 0; this.maskManager = new a.CanvasMaskManager(); this.renderSession = { context: this.context, maskManager: this.maskManager, scaleMode: null, smoothProperty: null, roundPixels: !1 }; this.mapBlendModes(); this.resize(b, d); "imageSmoothingEnabled" in this.context ? (this.renderSession.smoothProperty = "imageSmoothingEnabled") : "webkitImageSmoothingEnabled" in this.context ? (this.renderSession.smoothProperty = "webkitImageSmoothingEnabled") : "mozImageSmoothingEnabled" in this.context ? (this.renderSession.smoothProperty = "mozImageSmoothingEnabled") : "oImageSmoothingEnabled" in this.context ? (this.renderSession.smoothProperty = "oImageSmoothingEnabled") : "msImageSmoothingEnabled" in this.context && (this.renderSession.smoothProperty = "msImageSmoothingEnabled"); }; a.CanvasRenderer.prototype.constructor = a.CanvasRenderer; a.CanvasRenderer.prototype.render = function (b) { b.updateTransform(); this.context.setTransform(1, 0, 0, 1, 0, 0); this.context.globalAlpha = 1; this.renderSession.currentBlendMode = a.blendModes.NORMAL; this.context.globalCompositeOperation = a.blendModesCanvas[a.blendModes.NORMAL]; navigator.isCocoonJS && this.view.screencanvas && ((this.context.fillStyle = "black"), this.context.clear()); this.clearBeforeRender && (this.transparent ? this.context.clearRect(0, 0, this.width, this.height) : ((this.context.fillStyle = b.backgroundColorString), this.context.fillRect(0, 0, this.width, this.height))); this.renderDisplayObject(b); b.interactive && !b._interactiveEventsAdded && ((b._interactiveEventsAdded = !0), b.interactionManager.setTarget(this)); }; a.CanvasRenderer.prototype.destroy = function (a) { "undefined" === typeof a && (a = !0); a && this.view.parent && this.view.parent.removeChild(this.view); this.renderSession = this.maskManager = this.context = this.view = null; }; a.CanvasRenderer.prototype.resize = function (a, d) { this.width = a * this.resolution; this.height = d * this.resolution; this.view.width = this.width; this.view.height = this.height; this.autoResize && ((this.view.style.width = this.width / this.resolution + "px"), (this.view.style.height = this.height / this.resolution + "px")); }; a.CanvasRenderer.prototype.renderDisplayObject = function (a, d) { this.renderSession.context = d || this.context; this.renderSession.resolution = this.resolution; a._renderCanvas(this.renderSession); }; a.CanvasRenderer.prototype.mapBlendModes = function () { a.blendModesCanvas || ((a.blendModesCanvas = []), a.canUseNewCanvasBlendModes() ? ((a.blendModesCanvas[a.blendModes.NORMAL] = "source-over"), (a.blendModesCanvas[a.blendModes.ADD] = "lighter"), (a.blendModesCanvas[a.blendModes.ADD_INTENSIVE] = "lighter"), (a.blendModesCanvas[a.blendModes.MULTIPLY] = "multiply"), (a.blendModesCanvas[a.blendModes.SCREEN] = "screen"), (a.blendModesCanvas[a.blendModes.OVERLAY] = "overlay"), (a.blendModesCanvas[a.blendModes.DARKEN] = "darken"), (a.blendModesCanvas[a.blendModes.LIGHTEN] = "lighten"), (a.blendModesCanvas[a.blendModes.COLOR_DODGE] = "color-dodge"), (a.blendModesCanvas[a.blendModes.COLOR_BURN] = "color-burn"), (a.blendModesCanvas[a.blendModes.HARD_LIGHT] = "hard-light"), (a.blendModesCanvas[a.blendModes.SOFT_LIGHT] = "soft-light"), (a.blendModesCanvas[a.blendModes.DIFFERENCE] = "difference"), (a.blendModesCanvas[a.blendModes.EXCLUSION] = "exclusion"), (a.blendModesCanvas[a.blendModes.HUE] = "hue"), (a.blendModesCanvas[a.blendModes.SATURATION] = "saturation"), (a.blendModesCanvas[a.blendModes.COLOR] = "color"), (a.blendModesCanvas[a.blendModes.LUMINOSITY] = "luminosity")) : ((a.blendModesCanvas[a.blendModes.NORMAL] = "source-over"), (a.blendModesCanvas[a.blendModes.ADD] = "lighter"), (a.blendModesCanvas[a.blendModes.ADD_INTENSIVE] = "lighter"), (a.blendModesCanvas[a.blendModes.MULTIPLY] = "source-over"), (a.blendModesCanvas[a.blendModes.SCREEN] = "source-over"), (a.blendModesCanvas[a.blendModes.OVERLAY] = "source-over"), (a.blendModesCanvas[a.blendModes.DARKEN] = "source-over"), (a.blendModesCanvas[a.blendModes.LIGHTEN] = "source-over"), (a.blendModesCanvas[a.blendModes.COLOR_DODGE] = "source-over"), (a.blendModesCanvas[a.blendModes.COLOR_BURN] = "source-over"), (a.blendModesCanvas[a.blendModes.HARD_LIGHT] = "source-over"), (a.blendModesCanvas[a.blendModes.SOFT_LIGHT] = "source-over"), (a.blendModesCanvas[a.blendModes.DIFFERENCE] = "source-over"), (a.blendModesCanvas[a.blendModes.EXCLUSION] = "source-over"), (a.blendModesCanvas[a.blendModes.HUE] = "source-over"), (a.blendModesCanvas[a.blendModes.SATURATION] = "source-over"), (a.blendModesCanvas[a.blendModes.COLOR] = "source-over"), (a.blendModesCanvas[a.blendModes.LUMINOSITY] = "source-over"))); }; a.CanvasGraphics = function () {}; a.CanvasGraphics.renderGraphics = function (b, d) { for (var e = b.worldAlpha, f = b.gradient && null != b.gradient, g = 0; g < b.graphicsData.length; g++) { var k = b.graphicsData[g], m = k.shape; d.strokeStyle = "#" + ("00000" + (k.lineColor | 0).toString(16)).substr(-6); d.lineWidth = k.lineWidth; if (k.type === a.Graphics.POLY) { d.beginPath(); var n = m.points; d.moveTo(n[0], n[1]); for (var p = 1; p < n.length / 2; p++) d.lineTo(n[2 * p], n[2 * p + 1]); m.closed && d.lineTo(n[0], n[1]); n[0] === n[n.length - 2] && n[1] === n[n.length - 1] && d.closePath(); k.fill && ((d.globalAlpha = k.fillAlpha * e), (d.fillStyle = f ? b.gradient : "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), d.fill()); k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), d.stroke()); } else if (k.type === a.Graphics.RECT) { if (k.fillColor || 0 === k.fillColor) (d.globalAlpha = k.fillAlpha * e), (d.fillStyle = f ? b.gradient : "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), d.fillRect(m.x, m.y, m.width, m.height); k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), d.strokeRect(m.x, m.y, m.width, m.height)); } else if (k.type === a.Graphics.MRECT) { if (k.fillColor || 0 === k.fillColor) if (((d.globalAlpha = k.fillAlpha * e), (d.fillStyle = "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), (n = k.shape.points), d.fillRect(n[0], n[1], n[2], n[3]), 4 < n.length)) for (p = 4; p < n.length; p += 4) 0 < n[p + 2] && 0 < n[p + 3] && d.fillRect(n[p], n[p + 1], n[p + 2], n[p + 3]); if (k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), (n = k.shape.points), d.strokeRect(n[0], n[1], n[2], n[3]), 4 < n.length)) for (p = 4; p < n.length; p += 4) 0 < n[p + 2] && 0 < n[p + 3] && d.strokeRect(n[p], n[p + 1], n[p + 2], n[p + 3]); } else if (k.type === a.Graphics.CIRC) d.beginPath(), d.arc(m.x, m.y, m.radius, 0, 2 * Math.PI), d.closePath(), k.fill && ((d.globalAlpha = k.fillAlpha * e), (d.fillStyle = "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), d.fill()), k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), d.stroke()); else if (k.type === a.Graphics.ELIP) { var q = 2 * m.width, p = 2 * m.height, n = m.x - q / 2, m = m.y - p / 2; d.beginPath(); var r = (q / 2) * 0.5522848, t = (p / 2) * 0.5522848, u = n + q, B = m + p, q = n + q / 2, p = m + p / 2; d.moveTo(n, p); d.bezierCurveTo(n, p - t, q - r, m, q, m); d.bezierCurveTo(q + r, m, u, p - t, u, p); d.bezierCurveTo(u, p + t, q + r, B, q, B); d.bezierCurveTo(q - r, B, n, p + t, n, p); d.closePath(); k.fill && ((d.globalAlpha = k.fillAlpha * e), (d.fillStyle = "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), d.fill()); k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), d.stroke()); } else if (k.type === a.Graphics.RREC) { n = m.x; p = m.y; r = m.width; t = m.height; m = m.radius; u = (Math.min(r, t) / 2) | 0; m = m > u ? u : m; d.beginPath(); d.moveTo(n, p + m); d.lineTo(n, p + t - m); d.quadraticCurveTo(n, p + t, n + m, p + t); d.lineTo(n + r - m, p + t); d.quadraticCurveTo(n + r, p + t, n + r, p + t - m); d.lineTo(n + r, p + m); d.quadraticCurveTo(n + r, p, n + r - m, p); d.lineTo(n + m, p); d.quadraticCurveTo(n, p, n, p + m); d.closePath(); if (k.fillColor || 0 === k.fillColor) (d.globalAlpha = k.fillAlpha * e), (d.fillStyle = "#" + ("00000" + (k.fillColor | 0).toString(16)).substr(-6)), d.fill(); k.lineWidth && ((d.globalAlpha = k.lineAlpha * e), d.stroke()); } } }; a.CanvasGraphics.renderGraphicsMask = function (b, d) { var e = b.graphicsData.length; if (0 !== e) for (1 < e && window.console.log("Pixi.js warning: masks in canvas can only mask using the first path in the graphics object"), e = 0; 1 > e; e++) { var f = b.graphicsData[e], g = f.shape; if (f.type === a.Graphics.POLY) { d.beginPath(); f = g.points; d.moveTo(f[0], f[1]); for (var k = 1; k < f.length / 2; k++) d.lineTo(f[2 * k], f[2 * k + 1]); f[0] === f[f.length - 2] && f[1] === f[f.length - 1] && d.closePath(); } else if (f.type === a.Graphics.RECT) d.beginPath(), d.rect(g.x, g.y, g.width, g.height), d.closePath(); else if (f.type === a.Graphics.MRECT) { d.beginPath(); f = f.shape.points; d.rect(f[0], f[1], f[2], f[3]); if (4 < f.length) for (k = 4; k < f.length; k += 4) 0 < f[k + 2] && 0 < f[k + 3] && d.rect(f[k], f[k + 1], f[k + 2], f[k + 3]); d.closePath(); } else if (f.type === a.Graphics.CIRC) d.beginPath(), d.arc(g.x, g.y, g.radius, 0, 2 * Math.PI), d.closePath(); else if (f.type === a.Graphics.ELIP) { var m = 2 * g.width, k = 2 * g.height, f = g.x - m / 2, g = g.y - k / 2; d.beginPath(); var n = (m / 2) * 0.5522848, p = (k / 2) * 0.5522848, q = f + m, r = g + k, m = f + m / 2, k = g + k / 2; d.moveTo(f, k); d.bezierCurveTo(f, k - p, m - n, g, m, g); d.bezierCurveTo(m + n, g, q, k - p, q, k); d.bezierCurveTo(q, k + p, m + n, r, m, r); d.bezierCurveTo(m - n, r, f, k + p, f, k); d.closePath(); } else f.type === a.Graphics.RREC && ((p = g.points), (f = p[0]), (k = p[1]), (g = p[2]), (n = p[3]), (p = p[4]), (q = (Math.min(g, n) / 2) | 0), (p = p > q ? q : p), d.beginPath(), d.moveTo(f, k + p), d.lineTo(f, k + n - p), d.quadraticCurveTo(f, k + n, f + p, k + n), d.lineTo(f + g - p, k + n), d.quadraticCurveTo(f + g, k + n, f + g, k + n - p), d.lineTo(f + g, k + p), d.quadraticCurveTo(f + g, k, f + g - p, k), d.lineTo(f + p, k), d.quadraticCurveTo(f, k, f, k + p), d.closePath()); } }; a.Graphics = function () { a.DisplayObjectContainer.call(this); this.renderable = !0; this.fillAlpha = 1; this.lineColor = this.lineWidth = 0; this.graphicsData = []; this.tint = 16777215; this.blendMode = a.blendModes.NORMAL; this.currentPath = null; this._webGL = []; this.isMask = !1; this.boundsPadding = 0; this._localBounds = new a.Rectangle(0, 0, 1, 1); this.dirty = !0; this.cachedSpriteDirty = this.webGLDirty = !1; }; a.Graphics.prototype = Object.create(a.DisplayObjectContainer.prototype); a.Graphics.prototype.constructor = a.Graphics; Object.defineProperty(a.Graphics.prototype, "cacheAsBitmap", { get: function () { return this._cacheAsBitmap; }, set: function (a) { (this._cacheAsBitmap = a) ? this._generateCachedSprite() : (this.destroyCachedSprite(), (this.dirty = !0)); }, }); a.Graphics.prototype.lineStyle = function (b, d, e) { this.lineWidth = b || 0; this.lineColor = d || 0; this.lineAlpha = 3 > arguments.length ? 1 : e; if (this.currentPath) { if (this.currentPath.shape.points.length) return this.drawShape(new a.Polygon(this.currentPath.shape.points.slice(-2))), this; this.currentPath.lineWidth = this.lineWidth; this.currentPath.lineColor = this.lineColor; this.currentPath.lineAlpha = this.lineAlpha; } return this; }; a.Graphics.prototype.moveTo = function (b, d) { this.drawShape(new a.Polygon([b, d])); return this; }; a.Graphics.prototype.lineTo = function (a, d) { this.currentPath.shape.points.push(a, d); this.dirty = !0; return this; }; a.Graphics.prototype.quadraticCurveTo = function (a, d, e, f) { this.currentPath ? 0 === this.currentPath.shape.points.length && (this.currentPath.shape.points = [0, 0]) : this.moveTo(0, 0); var g, k, m = this.currentPath.shape.points; 0 === m.length && this.moveTo(0, 0); for (var n = m[m.length - 2], p = m[m.length - 1], q = 0, r = 1; 20 >= r; r++) (q = r / 20), (g = n + (a - n) * q), (k = p + (d - p) * q), m.push(g + (a + (e - a) * q - g) * q, k + (d + (f - d) * q - k) * q); this.dirty = !0; return this; }; a.Graphics.prototype.bezierCurveTo = function (a, d, e, f, g, k) { this.currentPath ? 0 === this.currentPath.shape.points.length && (this.currentPath.shape.points = [0, 0]) : this.moveTo(0, 0); for (var m, n, p, q, r, t = this.currentPath.shape.points, u = t[t.length - 2], B = t[t.length - 1], A = 0, C = 1; 20 >= C; C++) (A = C / 20), (m = 1 - A), (n = m * m), (p = n * m), (q = A * A), (r = q * A), t.push(p * u + 3 * n * A * a + 3 * m * q * e + r * g, p * B + 3 * n * A * d + 3 * m * q * f + r * k); this.dirty = !0; return this; }; a.Graphics.prototype.arcTo = function (a, d, e, f, g) { this.currentPath ? 0 === this.currentPath.shape.points.length && this.currentPath.shape.points.push(a, d) : this.moveTo(a, d); var k = this.currentPath.shape.points, m = k[k.length - 1] - d, n = k[k.length - 2] - a; f -= d; e -= a; var p = Math.abs(m * e - n * f); if (1e-8 > p || 0 === g) (k[k.length - 2] === a && k[k.length - 1] === d) || k.push(a, d); else { var q = m * m + n * n, r = f * f + e * e, t = m * f + n * e, k = (g * Math.sqrt(q)) / p, p = (g * Math.sqrt(r)) / p, q = (k * t) / q, u = (p * t) / r, r = k * e + p * n, t = k * f + p * m, B = e * (k + u), k = f * (k + u), p = Math.atan2(m * (p + q) - t, n * (p + q) - r), k = Math.atan2(k - t, B - r); this.arc(r + a, t + d, g, p, k, n * f > e * m); } this.dirty = !0; return this; }; a.Graphics.prototype.arc = function (a, d, e, f, g, k) { var m = a + Math.cos(f) * e, n = d + Math.sin(f) * e, p = this.currentPath.shape.points; 0 === p.length ? (this.moveTo(m, n), (p = this.currentPath.shape.points)) : (p[p.length - 2] === m && p[p.length - 1] === n) || p.push(m, n); if (f === g) return this; !k && g <= f ? (g += 2 * Math.PI) : k && f <= g && (f += 2 * Math.PI); g = k ? -1 * (f - g) : g - f; var q = (Math.abs(g) / (2 * Math.PI)) * 40; if (0 === g) return this; g /= 2 * q; k = 2 * g; for (var m = Math.cos(g), n = Math.sin(g), q = q - 1, r = (q % 1) / q, t = 0; t <= q; t++) { var u = g + f + k * (t + r * t), B = Math.cos(u), u = -Math.sin(u); p.push((m * B + n * u) * e + a, (m * -u + n * B) * e + d); } this.dirty = !0; return this; }; a.Graphics.prototype.beginFill = function (a, d) { this.filling = !0; this.fillColor = a || 0; this.fillAlpha = void 0 === d ? 1 : d; this.currentPath && ("undefined" == typeof this.currentPath.shape || 2 >= this.currentPath.shape.points.length) && ((this.currentPath.fill = this.filling), (this.currentPath.fillColor = this.fillColor), (this.currentPath.fillAlpha = this.fillAlpha)); return this; }; a.Graphics.prototype.beginFillGradient = function (a, d) { this.filling = !0; this.gradient = a; this.fillColor = 0; this.fillAlpha = void 0 === d ? 1 : d; this.currentPath && ("undefined" == typeof this.currentPath.shape || 2 >= this.currentPath.shape.points.length) && ((this.currentPath.fill = this.filling), (this.currentPath.fillColor = this.fillColor), (this.currentPath.fillAlpha = this.fillAlpha)); return this; }; a.Graphics.prototype.endFill = function () { this.filling = !1; this.fillColor = null; this.fillAlpha = 1; return this; }; a.Graphics.prototype.drawRect = function (b, d, e, f) { this.drawShape(new a.Rectangle(b, d, e, f)); return this; }; a.Graphics.prototype.drawMultiRects = function (b) { this.drawShape(new a.MultiRectangle(b)); return this; }; a.Graphics.prototype.drawRoundedRect = function (b, d, e, f, g) { this.drawShape(new a.RoundedRectangle(b, d, e, f, g)); return this; }; a.Graphics.prototype.drawMultipleRects = function (b) { this.currentPath = { lineWidth: this.lineWidth, lineColor: this.lineColor, lineAlpha: this.lineAlpha, fillColor: this.fillColor, fillAlpha: this.fillAlpha, fill: this.filling, points: b, type: a.Graphics.RECT }; this.graphicsData.push(this.currentPath); this.dirty = !0; return this; }; a.Graphics.prototype.drawCircle = function (b, d, e) { this.drawShape(new a.Circle(b, d, e)); return this; }; a.Graphics.prototype.drawEllipse = function (b, d, e, f) { this.drawShape(new a.Ellipse(b, d, e, f)); return this; }; a.Graphics.prototype.drawPolygon = function (b) { b instanceof Array || (b = Array.prototype.slice.call(arguments)); this.drawShape(new a.Polygon(b)); return this; }; a.Graphics.prototype.clear = function () { this.lineWidth = 0; this.filling = !1; this.clearDirty = this.dirty = !0; this.graphicsData = []; return this; }; a.Graphics.prototype.generateTexture = function (b, d) { b = b || 1; var e = this.getBounds(), f = new a.CanvasBuffer(e.width * b, e.height * b), g = a.Texture.fromCanvas(f.canvas, d); g.baseTexture.resolution = b; f.context.scale(b, b); f.context.translate(-e.x, -e.y); a.CanvasGraphics.renderGraphics(this, f.context); return g; }; a.Graphics.prototype._renderWebGL = function (b) { if (!1 !== this.visible && 0 !== this.alpha && !0 !== this.isMask) if ((CONFIG.STATS.PIXIGRAPHICS++, this._cacheAsBitmap)) { if (this.dirty || this.cachedSpriteDirty) this._generateCachedSprite(), this.updateCachedSpriteTexture(), (this.dirty = this.cachedSpriteDirty = !1); this._cachedSprite.worldAlpha = this.worldAlpha; a.Sprite.prototype._renderWebGL.call(this._cachedSprite, b); } else { b.spriteBatch.stop(); b.blendModeManager.setBlendMode(this.blendMode); this._mask && b.maskManager.pushMask(this._mask, b); this._filters && b.filterManager.pushFilter(this._filterBlock); if (this.blendMode !== b.spriteBatch.currentBlendMode) { b.spriteBatch.currentBlendMode = this.blendMode; var d = a.blendModesWebGL[b.spriteBatch.currentBlendMode]; b.spriteBatch.gl.blendFunc(d[0], d[1]); } this.webGLDirty && ((this.dirty = !0), (this.webGLDirty = !1)); a.WebGLGraphics.renderGraphics(this, b); if (this.children.length) { b.spriteBatch.start(); for (var d = 0, e = this.children.length; d < e; d++) this.children[d]._renderWebGL(b); b.spriteBatch.stop(); } this._filters && b.filterManager.popFilter(); this._mask && b.maskManager.popMask(this.mask, b); b.drawCount++; b.spriteBatch.start(); } }; a.Graphics.prototype._renderCanvas = function (b) { if (!1 !== this.visible && 0 !== this.alpha && !0 !== this.isMask) if (this._cacheAsBitmap) { if (this.dirty || this.cachedSpriteDirty) this._generateCachedSprite(), this.updateCachedSpriteTexture(), (this.dirty = this.cachedSpriteDirty = !1); this._cachedSprite.alpha = this.alpha; a.Sprite.prototype._renderCanvas.call(this._cachedSprite, b); } else { var d = JSUTIL.GLUtil.currentParallaxDepth; -1e5 < this.parallaxDepth && (JSUTIL.GLUtil.currentParallaxDepth = this.parallaxDepth); var e = b.context, f = this.worldTransform; this.blendMode !== b.currentBlendMode && ((b.currentBlendMode = this.blendMode), (e.globalCompositeOperation = a.blendModesCanvas[b.currentBlendMode])); this._mask && b.maskManager.pushMask(this._mask, b); var g = 0, k = 0; CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && -1e5 < JSUTIL.GLUtil.currentParallaxDepth && ((g = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getX_0() * JSUTIL.GLUtil.currentParallaxDepth), (k = CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.getY_0() * JSUTIL.GLUtil.currentParallaxDepth)); var m = b.resolution; e.setTransform(f.a * m, f.b * m, f.c * m, f.d * m, (f.tx + g) * m, (f.ty + k) * m); a.CanvasGraphics.renderGraphics(this, e); e = 0; for (f = this.children.length; e < f; e++) this.children[e]._renderCanvas(b); this._mask && b.maskManager.popMask(b); JSUTIL.GLUtil.currentParallaxDepth = d; } }; a.Graphics.prototype.getBounds = function (b) { if (this.isMask) return a.EmptyRectangle; this.dirty && (this.updateLocalBounds(), (this.cachedSpriteDirty = this.webGLDirty = !0), (this.dirty = !1)); var d = this._localBounds, e = d.x, f = d.width + d.x, g = d.y, k = d.height + d.y; b = b || this.worldTransform; var m = b.a, n = b.b, p = b.c, q = b.d, r = b.tx, t = b.ty, u = m * f + p * k + r, d = q * k + n * f + t; b = m * e + p * k + r; var k = q * k + n * e + t, B = m * e + p * g + r, e = q * g + n * e + t, m = m * f + p * g + r, f = q * g + n * f + t, g = u, n = d, u = b < u ? b : u, u = B < u ? B : u, u = m < u ? m : u, d = k < d ? k : d, d = e < d ? e : d, d = f < d ? f : d, g = b > g ? b : g, g = B > g ? B : g, n = k > n ? k : n, n = e > n ? e : n; this._bounds.x = u; this._bounds.width = (m > g ? m : g) - u; this._bounds.y = d; this._bounds.height = (f > n ? f : n) - d; return this._bounds; }; a.Graphics.prototype.updateLocalBounds = function () { var b = Infinity, d = -Infinity, e = Infinity, f = -Infinity; if (this.graphicsData.length) for (var g, k, m, n, p, q = 0; q < this.graphicsData.length; q++) if (((m = this.graphicsData[q]), (k = m.type), (p = m.lineWidth), (g = m.shape), k === a.Graphics.RECT || k === a.Graphics.RREC)) (k = g.x - p / 2), (m = g.y - p / 2), (n = g.width + p), (p = g.height + p), (b = k < b ? k : b), (d = k + n > d ? k + n : d), (e = m < e ? m : e), (f = m + p > f ? m + p : f); else if (k === a.Graphics.CIRC) (k = g.x), (m = g.y), (n = g.radius + p / 2), (p = g.radius + p / 2), (b = k - n < b ? k - n : b), (d = k + n > d ? k + n : d), (e = m - p < e ? m - p : e), (f = m + p > f ? m + p : f); else if (k === a.Graphics.ELIP) (k = g.x), (m = g.y), (n = g.width + p / 2), (p = g.height + p / 2), (b = k - n < b ? k - n : b), (d = k + n > d ? k + n : d), (e = m - p < e ? m - p : e), (f = m + p > f ? m + p : f); else for (g = g.points, n = 0; n < g.length; n += 2) (k = g[n]), (m = g[n + 1]), (b = k - p < b ? k - p : b), (d = k + p > d ? k + p : d), (e = m - p < e ? m - p : e), (f = m + p > f ? m + p : f); else f = e = d = b = 0; q = this.boundsPadding; this._localBounds.x = b - q; this._localBounds.width = d - b + 2 * q; this._localBounds.y = e - q; this._localBounds.height = f - e + 2 * q; }; a.Graphics.prototype._generateCachedSprite = function () { var b = this.getLocalBounds(), d = Math.ceil(b.width), e = Math.ceil(b.height); if (this._cachedSprite) this._cachedSprite.buffer.resize(d, e); else { var f = new a.CanvasBuffer(d, e), g = a.Texture.fromCanvas(f.canvas); this._cachedSprite = new a.Sprite(g); this._cachedSprite.buffer = f; this._cachedSprite.worldTransform = this.worldTransform; } this._cachedSprite.anchor.x = -(b.x / d); this._cachedSprite.anchor.y = -(b.y / e); this._cachedSprite.buffer.context.translate(-b.x, -b.y); b = this.worldAlpha; this.worldAlpha = 1; a.CanvasGraphics.renderGraphics(this, this._cachedSprite.buffer.context); this.worldAlpha = b; this._cachedSprite.alpha = this.alpha; }; a.Graphics.prototype.updateCachedSpriteTexture = function () { var a = this._cachedSprite, d = a.texture, e = a.buffer.canvas; d.baseTexture.width = e.width; d.baseTexture.height = e.height; d.crop.width = d.frame.width = e.width; d.crop.height = d.frame.height = e.height; a._width = e.width; a._height = e.height; d.baseTexture.dirty(); }; a.Graphics.prototype.destroyCachedSprite = function () { this._cachedSprite.texture.destroy(!0); this._cachedSprite = null; }; a.Graphics.prototype.drawShape = function (b) { this.currentPath && 2 >= this.currentPath.shape.points.length && this.graphicsData.pop(); this.currentPath = null; b = new a.GraphicsData(this.lineWidth, this.lineColor, this.lineAlpha, this.fillColor, this.fillAlpha, this.filling, b); this.graphicsData.push(b); b.type === a.Graphics.POLY && ((b.shape.closed = this.filling), (this.currentPath = b)); this.dirty = !0; return b; }; a.GraphicsData = function (a, d, e, f, g, k, m) { this.lineWidth = a; this.lineColor = d; this.lineAlpha = e; this.fillColor = f; this.fillAlpha = g; this.fill = k; this.shape = m; this.type = m.type; }; a.Graphics.POLY = 0; a.Graphics.RECT = 1; a.Graphics.CIRC = 2; a.Graphics.ELIP = 3; a.Graphics.RREC = 4; a.Graphics.MRECT = 150; a.Polygon.prototype.type = a.Graphics.POLY; a.Rectangle.prototype.type = a.Graphics.RECT; a.Circle.prototype.type = a.Graphics.CIRC; a.RoundedRectangle.prototype.type = a.Graphics.RREC; a.MultiRectangle.prototype.type = a.Graphics.MREC; a.Strip = function (b) { a.DisplayObjectContainer.call(this); this.texture = b; this.uvs = new a.Float32Array([0, 1, 1, 1, 1, 0, 0, 1]); this.verticies = new a.Float32Array([0, 0, 100, 0, 100, 100, 0, 100]); this.colors = new a.Float32Array([1, 1, 1, 1]); this.indices = new a.Uint16Array([0, 1, 2, 3]); this.dirty = !0; this.blendMode = a.blendModes.NORMAL; this.padding = 0; }; a.Strip.prototype = Object.create(a.DisplayObjectContainer.prototype); a.Strip.prototype.constructor = a.Strip; a.Strip.prototype._renderWebGL = function (a) { !this.visible || 0 >= this.alpha || (a.spriteBatch.stop(), this._vertexBuffer || this._initWebGL(a), a.shaderManager.setShader(a.shaderManager.stripShader), this._renderStrip(a), a.spriteBatch.start()); }; a.Strip.prototype._initWebGL = function (a) { a = a.gl; this._vertexBuffer = a.createBuffer(); this._indexBuffer = a.createBuffer(); this._uvBuffer = a.createBuffer(); this._colorBuffer = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, this._vertexBuffer); a.bufferData(a.ARRAY_BUFFER, this.verticies, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this._uvBuffer); a.bufferData(a.ARRAY_BUFFER, this.uvs, a.STATIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this._colorBuffer); a.bufferData(a.ARRAY_BUFFER, this.colors, a.STATIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this._indexBuffer); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.indices, a.STATIC_DRAW); }; a.Strip.prototype._renderStrip = function (a) { var d = a.gl, e = a.projection, f = a.offset, g = a.shaderManager.stripShader; a.blendModeManager.setBlendMode(this.blendMode); d.uniformMatrix3fv(g.translationMatrix, !1, this.worldTransform.toArray(!0)); d.uniform2f(g.projectionVector, e.x, -e.y); d.uniform2f(g.offsetVector, -f.x, -f.y); d.uniform1f(g.alpha, this.worldAlpha); this.dirty ? ((this.dirty = !1), d.bindBuffer(d.ARRAY_BUFFER, this._vertexBuffer), d.bufferData(d.ARRAY_BUFFER, this.verticies, d.STATIC_DRAW), d.vertexAttribPointer(g.aVertexPosition, 2, d.FLOAT, !1, 0, 0), d.bindBuffer(d.ARRAY_BUFFER, this._uvBuffer), d.bufferData(d.ARRAY_BUFFER, this.uvs, d.STATIC_DRAW), d.vertexAttribPointer(g.aTextureCoord, 2, d.FLOAT, !1, 0, 0), d.activeTexture(d.TEXTURE0), this.texture.baseTexture._dirty[d.id] ? a.renderer.updateTexture(this.texture.baseTexture) : d.bindTexture(d.TEXTURE_2D, this.texture.baseTexture._glTextures[d.id]), d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this._indexBuffer), d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.indices, d.STATIC_DRAW)) : (d.bindBuffer(d.ARRAY_BUFFER, this._vertexBuffer), d.bufferSubData(d.ARRAY_BUFFER, 0, this.verticies), d.vertexAttribPointer(g.aVertexPosition, 2, d.FLOAT, !1, 0, 0), d.bindBuffer(d.ARRAY_BUFFER, this._uvBuffer), d.vertexAttribPointer(g.aTextureCoord, 2, d.FLOAT, !1, 0, 0), d.activeTexture(d.TEXTURE0), this.texture.baseTexture._dirty[d.id] ? a.renderer.updateTexture(this.texture.baseTexture) : d.bindTexture(d.TEXTURE_2D, this.texture.baseTexture._glTextures[d.id]), d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this._indexBuffer)); d.drawElements(d.TRIANGLE_STRIP, this.indices.length, d.UNSIGNED_SHORT, 0); }; a.Strip.prototype._renderCanvas = function (a) { var d = a.context, e = this.worldTransform; a.roundPixels ? d.setTransform(e.a, e.b, e.c, e.d, e.tx | 0, e.ty | 0) : d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty); a = this.verticies; var e = this.uvs, f = a.length / 2; this.count++; for (var g = 0; g < f - 2; g++) { var k = 2 * g, m = a[k], n = a[k + 2], p = a[k + 4], q = a[k + 1], r = a[k + 3], t = a[k + 5]; if (0 < this.padding) var u = (m + n + p) / 3, B = (q + r + t) / 3, A = m - u, C = q - B, E = Math.sqrt(A * A + C * C), m = u + (A / E) * (E + 3), q = B + (C / E) * (E + 3), A = n - u, C = r - B, E = Math.sqrt(A * A + C * C), n = u + (A / E) * (E + 3), r = B + (C / E) * (E + 3), A = p - u, C = t - B, E = Math.sqrt(A * A + C * C), p = u + (A / E) * (E + 3), t = B + (C / E) * (E + 3); u = e[k] * this.texture.width; B = e[k + 2] * this.texture.width; A = e[k + 4] * this.texture.width; C = e[k + 1] * this.texture.height; E = e[k + 3] * this.texture.height; k = e[k + 5] * this.texture.height; d.save(); d.beginPath(); d.moveTo(m, q); d.lineTo(n, r); d.lineTo(p, t); d.closePath(); d.clip(); var F = u * E + C * A + B * k - E * A - C * B - u * k; d.transform( (m * E + C * p + n * k - E * p - C * n - m * k) / F, (q * E + C * t + r * k - E * t - C * r - q * k) / F, (u * n + m * A + B * p - n * A - m * B - u * p) / F, (u * r + q * A + B * t - r * A - q * B - u * t) / F, (u * E * p + C * n * A + m * B * k - m * E * A - C * B * p - u * n * k) / F, (u * E * t + C * r * A + q * B * k - q * E * A - C * B * t - u * r * k) / F ); d.drawImage(this.texture.baseTexture.source, 0, 0); d.restore(); } }; a.Strip.prototype.renderStripFlat = function (a) { var d = this.context; a = a.verticies; var e = a.length / 2; this.count++; d.beginPath(); for (var f = 1; f < e - 2; f++) { var g = 2 * f, k = a[g + 2], m = a[g + 4], n = a[g + 3], p = a[g + 5]; d.moveTo(a[g], a[g + 1]); d.lineTo(k, n); d.lineTo(m, p); } d.fillStyle = "#FF0000"; d.fill(); d.closePath(); }; a.Strip.prototype.onTextureUpdate = function () { this.updateFrame = !0; }; a.TilingSprite = function (b, d, e) { a.Sprite.call(this, b); this._width = d || 100; this._height = e || 100; this.tileScale = new a.Point(1, 1); this.tileScaleOffset = new a.Point(1, 1); this.tilePosition = new a.Point(0, 0); this.renderable = !0; this.tint = 16777215; this.blendMode = a.blendModes.NORMAL; }; a.TilingSprite.prototype = Object.create(a.Sprite.prototype); a.TilingSprite.prototype.constructor = a.TilingSprite; Object.defineProperty(a.TilingSprite.prototype, "width", { get: function () { return this._width; }, set: function (a) { this._width = a; }, }); Object.defineProperty(a.TilingSprite.prototype, "height", { get: function () { return this._height; }, set: function (a) { this._height = a; }, }); a.TilingSprite.prototype.setTexture = function (a) { this.texture !== a && ((this.texture = a), (this.refreshTexture = !0), (this.cachedTint = 16777215)); }; a.TilingSprite.prototype._renderWebGL = function (b) { if (!1 !== this.visible && 0 !== this.alpha) { var d, e; this._mask && (b.spriteBatch.stop(), b.maskManager.pushMask(this.mask, b), b.spriteBatch.start()); this._filters && (b.spriteBatch.flush(), b.filterManager.pushFilter(this._filterBlock)); !this.tilingTexture || this.refreshTexture ? (this.generateTilingTexture(!0), this.tilingTexture && this.tilingTexture.needsUpdate && (a.updateWebGLTexture(this.tilingTexture.baseTexture, b.gl), (this.tilingTexture.needsUpdate = !1))) : b.spriteBatch.renderTilingSprite(this); d = 0; for (e = this.children.length; d < e; d++) this.children[d]._renderWebGL(b); b.spriteBatch.stop(); this._filters && b.filterManager.popFilter(); this._mask && b.maskManager.popMask(this._mask, b); b.spriteBatch.start(); } }; a.TilingSprite.prototype._renderCanvas = function (b) { if (!1 !== this.visible && 0 !== this.alpha) { var d = b.context; this._mask && b.maskManager.pushMask(this._mask, d); d.globalAlpha = this.worldAlpha; var e = this.worldTransform, f = b.resolution; d.setTransform(e.a * f, e.c * f, e.b * f, e.d * f, e.tx * f, e.ty * f); if (!this.__tilePattern || this.refreshTexture) if ((this.generateTilingTexture(!1), this.tilingTexture)) this.__tilePattern = d.createPattern(this.tilingTexture.baseTexture.source, "repeat"); else return; this.blendMode !== b.currentBlendMode && ((b.currentBlendMode = this.blendMode), (d.globalCompositeOperation = a.blendModesCanvas[b.currentBlendMode])); e = this.tilePosition; f = this.tileScale; e.x %= this.tilingTexture.baseTexture.width; e.y %= this.tilingTexture.baseTexture.height; d.scale(f.x, f.y); d.translate(e.x + this.anchor.x * -this._width, e.y + this.anchor.y * -this._height); d.fillStyle = this.__tilePattern; d.fillRect(-e.x, -e.y, this._width / f.x, this._height / f.y); d.scale(1 / f.x, 1 / f.y); d.translate(-e.x + this.anchor.x * this._width, -e.y + this.anchor.y * this._height); this._mask && b.maskManager.popMask(b.context); d = 0; for (e = this.children.length; d < e; d++) this.children[d]._renderCanvas(b); } }; a.TilingSprite.prototype.getBounds = function () { var a = this._width, d = this._height, e = a * (1 - this.anchor.x), f = a * -this.anchor.x, g = d * (1 - this.anchor.y), k = d * -this.anchor.y, d = this.worldTransform, m = d.a, n = d.b, p = d.c, q = d.d, r = d.tx, t = d.ty, d = m * f + p * k + r, a = q * k + n * f + t, u = m * e + p * k + r, k = q * k + n * e + t, B = m * e + p * g + r, e = q * g + n * e + t, m = m * f + p * g + r, f = q * g + n * f + t, n = (g = -Infinity), p = (q = Infinity), q = d < q ? d : q, q = u < q ? u : q, q = B < q ? B : q, q = m < q ? m : q, p = a < p ? a : p, p = k < p ? k : p, p = e < p ? e : p, p = f < p ? f : p, g = d > g ? d : g, g = u > g ? u : g, g = B > g ? B : g, n = a > n ? a : n, n = k > n ? k : n, n = e > n ? e : n, d = this._bounds; d.x = q; d.width = (m > g ? m : g) - q; d.y = p; d.height = (f > n ? f : n) - p; return (this._currentBounds = d); }; a.TilingSprite.prototype.onTextureUpdate = function () {}; a.TilingSprite.prototype.generateTilingTexture = function (b) { if (this.texture.baseTexture.hasLoaded) { var d = this.originalTexture || this.texture, e = d.frame, f, g, k = e.width !== d.baseTexture.width || e.height !== d.baseTexture.height, m = !1; if (b) { if (((f = a.getNextPowerOfTwo(e.width)), (g = a.getNextPowerOfTwo(e.height)), e.width !== f || e.height !== g)) m = !0; } else k && ((f = e.width), (g = e.height), (m = !0)); m ? (this.tilingTexture && this.tilingTexture.isTiling ? ((b = this.tilingTexture.canvasBuffer), b.resize(f, g), (this.tilingTexture.baseTexture.width = f), (this.tilingTexture.baseTexture.height = g), (this.tilingTexture.needsUpdate = !0)) : ((b = new a.CanvasBuffer(f, g)), (this.tilingTexture = a.Texture.fromCanvas(b.canvas)), (this.tilingTexture.canvasBuffer = b), (this.tilingTexture.isTiling = !0)), b.context.drawImage(d.baseTexture.source, d.crop.x, d.crop.y, d.crop.width, d.crop.height, 0, 0, f, g), (this.tileScaleOffset.x = e.width / f), (this.tileScaleOffset.y = e.height / g)) : (this.tilingTexture && this.tilingTexture.isTiling && this.tilingTexture.destroy(!0), (this.tileScaleOffset.x = 1), (this.tileScaleOffset.y = 1), (this.tilingTexture = d)); this.refreshTexture = !1; this.originalTexture = this.texture; this.texture = this.tilingTexture; this.tilingTexture.baseTexture._powerOf2 = !0; } }; a.ParticleContainer = function (b, d, e, f, g, k, m, n, p) { a.DisplayObjectContainer.call(this); this.maxParticles = b; this.indicesPerParticle = 6; this.dataPerVertex = 2; this.particlesNumber = 0; this.colorDirty = this.uvDirty = this.alphaDirty = this.rotationDirty = this.scaleDirty = this.posDirty = this.vertexDirty = !0; this.forceFullUpdateStart = 0; var q = 4 * this.maxParticles * this.dataPerVertex; b = this.maxParticles * this.indicesPerParticle; var r = 8 * this.maxParticles, t = 8 * this.maxParticles, u = 8 * this.maxParticles, B = 4 * this.maxParticles, A = 4 * this.maxParticles, C = 16 * this.maxParticles; this.dynamicPosition = f; this.dynamicScale = g; this.dynamicRotation = k; this.dynamicUV = m; this.dynamicAlpha = n; this.dynamicColor = p; this.texture = d; this.texture.baseTexture.useMipMapping = e; this.uvs = new a.Float32Array(r); for (d = 0; d < r; d += 8) (this.uvs[d] = 0), (this.uvs[d + 1] = 0), (this.uvs[d + 2] = 1), (this.uvs[d + 3] = 0), (this.uvs[d + 4] = 1), (this.uvs[d + 5] = 1), (this.uvs[d + 6] = 0), (this.uvs[d + 7] = 1); this.verticies = new a.Float32Array(q); for (d = 0; d < q; d += 8) (this.verticies[d] = -0.5), (this.verticies[d + 1] = -0.5), (this.verticies[d + 2] = 0.5), (this.verticies[d + 3] = -0.5), (this.verticies[d + 4] = 0.5), (this.verticies[d + 5] = 0.5), (this.verticies[d + 6] = -0.5), (this.verticies[d + 7] = 0.5); this.indices = new a.Uint16Array(b); for (e = d = 0; d < b; d += 6, e += 4) (this.indices[d + 0] = e + 0), (this.indices[d + 1] = e + 1), (this.indices[d + 2] = e + 2), (this.indices[d + 3] = e + 0), (this.indices[d + 4] = e + 2), (this.indices[d + 5] = e + 3); this.positions = new a.Float32Array(t); for (d = 0; d < t; d += 2) (this.positions[d] = 0), (this.positions[d + 1] = 0); this.scales = new a.Float32Array(u); for (d = 0; d < u; d += 2) (this.scales[d] = 1), (this.scales[d + 1] = 1); this.rotations = new a.Float32Array(B); for (d = 0; d < B; d += 4) (this.rotations[d] = 0), (this.rotations[d + 1] = 0), (this.rotations[d + 2] = 0), (this.rotations[d + 3] = 0); this.alphas = new a.Float32Array(A); for (d = 0; d < A; d += 4) (this.alphas[d] = 1), (this.alphas[d + 1] = 1), (this.alphas[d + 2] = 1), (this.alphas[d + 3] = 1); this.colors = new a.Float32Array(C); for (d = 0; d < C; d += 16) (this.colors[d] = 1), (this.colors[d + 1] = 1), (this.colors[d + 2] = 1), (this.colors[d + 3] = 1), (this.colors[d + 4] = 1), (this.colors[d + 5] = 1), (this.colors[d + 6] = 1), (this.colors[d + 7] = 1), (this.colors[d + 8] = 1), (this.colors[d + 9] = 1), (this.colors[d + 10] = 1), (this.colors[d + 11] = 1), (this.colors[d + 12] = 1), (this.colors[d + 13] = 1), (this.colors[d + 14] = 1), (this.colors[d + 15] = 1); this.blendMode = a.blendModes.NORMAL; this.isDirty = this.dirty = !0; }; a.ParticleContainer.prototype = Object.create(a.DisplayObjectContainer.prototype); a.ParticleContainer.prototype.constructor = a.ParticleContainer; a.ParticleContainer.prototype.applyChanges = function (a) { this.isDirty = !1; this.particlesNumber = Math.min(a.size_0(), this.maxParticles); for (var d = a.getFirstElement_0(), e = 0; e < this.particlesNumber; ++e) { 0 < e && (d = a.getNextElement_1(d)); d.isForceFullUpdateStart_0() && (d.setForceFullUpdateStart_1(!1), (this.forceFullUpdateStart = e)); var f = -1 < this.forceFullUpdateStart && e >= this.forceFullUpdateStart; if (f || d.isDirty_0()) { d.isDirty_0() && d.resetDirty_0(); if (d.isRotationDirty_0() || f) { d.resetRotationDirty_0(); var g = 4 * e, k = -d.getRotation_0(); this.rotations[g] = k; this.rotations[g + 1] = k; this.rotations[g + 2] = k; this.rotations[g + 3] = k; this.rotationDirty || (this.rotationDirty = !0); } if (d.isAlphaDirty_0() || f) d.resetAlphaDirty_0(), (g = 4 * e), (k = d.getAlpha_0()), (this.alphas[g] = k), (this.alphas[g + 1] = k), (this.alphas[g + 2] = k), (this.alphas[g + 3] = k), this.alphaDirty || (this.alphaDirty = !0); if (d.isSizeDirty_0() || d.isAnchorDirty_0() || f) { d.resetSizeDirty_0(); d.resetAnchorDirty_0(); var g = 8 * e, k = d.getWidth_0() * CONFIG.SCALINGFACTOR, m = d.getHeight_0() * CONFIG.SCALINGFACTOR, n = d.getAnchorX_0(), p = d.getAnchorY_0(); this.verticies[g] = -k * n; this.verticies[g + 1] = -m * p; this.verticies[g + 2] = k * (1 - n); this.verticies[g + 3] = -m * p; this.verticies[g + 4] = k * (1 - n); this.verticies[g + 5] = m * (1 - p); this.verticies[g + 6] = -k * n; this.verticies[g + 7] = m * (1 - p); this.vertexDirty || (this.vertexDirty = !0); } if (d.isScaleDirty_0() || f) d.resetScaleDirty_0(), (g = 8 * e), (k = d.getScaleX_0()), (m = d.getScaleY_0()), (this.scales[g] = k), (this.scales[g + 1] = m), (this.scales[g + 2] = k), (this.scales[g + 3] = m), (this.scales[g + 4] = k), (this.scales[g + 5] = m), (this.scales[g + 6] = k), (this.scales[g + 7] = m), this.scaleDirty || (this.scaleDirty = !0); if (d.isPosDirty_0() || f) d.resetPosDirty_0(), (g = 8 * e), (k = d.getX_0() * CONFIG.SCALINGFACTOR), (m = d.getY_0() * CONFIG.SCALINGFACTOR), (this.positions[g] = k), (this.positions[g + 1] = m), (this.positions[g + 2] = k), (this.positions[g + 3] = m), (this.positions[g + 4] = k), (this.positions[g + 5] = m), (this.positions[g + 6] = k), (this.positions[g + 7] = m), this.posDirty || (this.posDirty = !0); if (d.isUVDirty_0() || f) d.resetUVDirty_0(), (g = 8 * e), (this.uvs[g] = d.getU0_0()), (this.uvs[g + 1] = d.getV0_0()), (this.uvs[g + 2] = d.getU1_0()), (this.uvs[g + 3] = d.getV1_0()), (this.uvs[g + 4] = d.getU2_0()), (this.uvs[g + 5] = d.getV2_0()), (this.uvs[g + 6] = d.getU3_0()), (this.uvs[g + 7] = d.getV3_0()), this.uvDirty || (this.uvDirty = !0); if (d.isColorDirty_0() || f) d.resetColorDirty_0(), (f = d.getColorR_0()), (k = d.getColorG_0()), (m = d.getColorB_0()), (n = d.getColorA_0()), (g = 16 * e), (this.colors[g] = f), (this.colors[g + 1] = k), (this.colors[g + 2] = m), (this.colors[g + 3] = n), (this.colors[g + 4] = f), (this.colors[g + 5] = k), (this.colors[g + 6] = m), (this.colors[g + 7] = n), (this.colors[g + 8] = f), (this.colors[g + 9] = k), (this.colors[g + 10] = m), (this.colors[g + 11] = n), (this.colors[g + 12] = f), (this.colors[g + 13] = k), (this.colors[g + 14] = m), (this.colors[g + 15] = n), this.colorDirty || (this.colorDirty = !0); } } this.forceFullUpdateStart = -1; }; a.ParticleContainer.prototype.setAlphaBlendMode = function (b) { this.blendMode = b === GT1323.prototype.ADD ? a.blendModes.ADD : b === GT1323.prototype.ADD_INTENSIVE ? a.blendModes.ADD_INTENSIVE : b === GT1323.prototype.MULTIPLY ? a.blendModes.MULTIPLY : b === GT1323.prototype.SCREEN ? a.blendModes.SCREEN : a.blendModes.NORMAL; }; a.ParticleContainer.prototype._renderWebGL = function (a) { !this.visible || 0 >= this.worldalpha || (a.spriteBatch.stop(), this._vertexBuffer || this._initWebGL(a), a.shaderManager.setShader(a.shaderManager.particleContainerShader), this._renderParticles(a), a.spriteBatch.start()); }; a.ParticleContainer.prototype._initWebGL = function (a) { a = a.gl; this._indexBuffer = a.createBuffer(); this._vertexBuffer = a.createBuffer(); this._uvBuffer = a.createBuffer(); this._positionBuffer = a.createBuffer(); this._scaleBuffer = a.createBuffer(); this._rotationBuffer = a.createBuffer(); this._alphaBuffer = a.createBuffer(); this._colorBuffer = a.createBuffer(); this._vertexBuffer_drawMode = this._indexBuffer_drawMode = a.STATIC_DRAW; this._uvBuffer_drawMode = this.dynamicUV ? a.STREAM_DRAW : a.STATIC_DRAW; this._positionBuffer_drawMode = this.dynamicPosition ? a.STREAM_DRAW : a.STATIC_DRAW; this._scaleBuffer_drawMode = this.dynamicScale ? a.STREAM_DRAW : a.STATIC_DRAW; this._rotationBuffer_drawMode = this.dynamicRotation ? a.STREAM_DRAW : a.STATIC_DRAW; this._alphaBuffer_drawMode = this.dynamicAlpha ? a.STREAM_DRAW : a.STATIC_DRAW; this._colorBuffer_drawMode = this.dynamicColor ? a.STREAM_DRAW : a.STATIC_DRAW; a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this._indexBuffer); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.indices, this._indexBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._vertexBuffer); a.bufferData(a.ARRAY_BUFFER, this.verticies, this._vertexBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._uvBuffer); a.bufferData(a.ARRAY_BUFFER, this.uvs, this._uvBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._positionBuffer); a.bufferData(a.ARRAY_BUFFER, this.positions, this._positionBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._scaleBuffer); a.bufferData(a.ARRAY_BUFFER, this.scales, this._scaleBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._rotationBuffer); a.bufferData(a.ARRAY_BUFFER, this.rotations, this._rotationBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._alphaBuffer); a.bufferData(a.ARRAY_BUFFER, this.alphas, this._alphaBuffer_drawMode); a.bindBuffer(a.ARRAY_BUFFER, this._colorBuffer); a.bufferData(a.ARRAY_BUFFER, this.colors, this._colorBuffer_drawMode); }; a.ParticleContainer.prototype._renderParticles = function (a) { if (this.particles && !(1 > this.particles.size_0())) { this.isDirty && this.applyChanges(this.particles); var d = a.gl, e = a.projection, f = a.offset, g = a.shaderManager.particleContainerShader; a.blendModeManager.setBlendMode(this.blendMode); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this._indexBuffer); this.dirty && ((this.dirty = !1), this.parent.getBounds(), d.bufferSubData(d.ARRAY_BUFFER, 0, this.indices)); d.uniformMatrix3fv(g.translationMatrix, !1, this.worldTransform.toArray(!0)); d.uniform2f(g.projectionVector, e.x, -e.y); d.uniform2f(g.offsetVector, -f.x, -f.y); d.uniform1f(g.worldalpha, this.worldAlpha); this.clippingEnabled ? d.uniform4f(g.clipRect, this.parent.worldTransform.tx, this.parent.worldTransform.ty, this.parent.worldTransform.tx + this.parent.width, this.parent.worldTransform.ty + this.parent.height) : d.uniform4f(g.clipRect, 0, 0, 0, 0); this.gt_colormatrix ? (d.uniformMatrix4fv(g.colorMatrix, !1, this.gt_colormatrix), d.uniform1f(g.hasColorMatrix, 1)) : this.parent.gt_colormatrix ? (d.uniformMatrix4fv(g.colorMatrix, !1, this.parent.gt_colormatrix), d.uniform1f(g.hasColorMatrix, 1)) : d.uniform1f(g.hasColorMatrix, 0); d.bindBuffer(d.ARRAY_BUFFER, this._rotationBuffer); this.rotationDirty && ((this.rotationDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.rotations)); d.vertexAttribPointer(g.aRotation, 1, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._scaleBuffer); this.scaleDirty && ((this.scaleDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.scales)); d.vertexAttribPointer(g.aScale, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._alphaBuffer); this.alphaDirty && ((this.alphaDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.alphas)); d.vertexAttribPointer(g.aAlpha, 1, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._positionBuffer); this.posDirty && ((this.posDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.positions)); d.vertexAttribPointer(g.aPositionCoord, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._colorBuffer); this.colorDirty && ((this.colorDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.colors)); d.vertexAttribPointer(g.aColor, 4, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._uvBuffer); this.uvDirty && ((this.uvDirty = !1), d.bufferSubData(d.ARRAY_BUFFER, 0, this.uvs)); d.vertexAttribPointer(g.aTextureCoord, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this._vertexBuffer); d.bufferSubData(d.ARRAY_BUFFER, 0, this.verticies); d.vertexAttribPointer(g.aVertexPosition, 2, d.FLOAT, !1, 0, 0); d.activeTexture(d.TEXTURE0); this.texture.baseTexture._dirty[d.id] ? a.renderer.updateTexture(this.texture.baseTexture) : d.bindTexture(d.TEXTURE_2D, this.texture.baseTexture._glTextures[d.id]); d.drawElements(d.TRIANGLES, this.particlesNumber * this.indicesPerParticle, d.UNSIGNED_SHORT, 0); } }; a.ParticleContainer.prototype._renderCanvas = function (b) { if (this.particles && !(1 > this.particles.size_0())) { this.isDirty && this.applyChanges(this.particles); var d = b.context, e = this.worldTransform; d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty); this.clippingEnabled && (d.save(), d.beginPath(), d.rect(0, 0, this.parent.width, this.parent.height), d.closePath(), d.clip()); this.blendMode !== b.currentBlendMode && ((b.currentBlendMode = this.blendMode), (b.context.globalCompositeOperation = a.blendModesCanvas[b.currentBlendMode])); b = !0; for (var f = this.verticies, g = this.uvs, k = 0; k < this.particlesNumber; k++) { var m = 4 * k, n = 2 * m; if (0 != this.worldAlpha && 0 != this.alphas[m]) { var p = f[n], q = f[n + 4], r = f[n + 1], t = f[n + 5], u = g[n + 4] < g[n], B = (u ? g[n + 4] : g[n]) * this.texture.width, A = g[n + 5] < g[n + 1], C = (A ? g[n + 5] : g[n + 1]) * this.texture.height, E = (u ? g[n] : g[n + 4]) * this.texture.width - B, F = (A ? g[n + 1] : g[n + 5]) * this.texture.height - C, D = Math.abs(q - p) * this.scales[n], H = Math.abs(t - r) * this.scales[n + 1], p = Math.abs(p / Math.abs(q - p)), r = Math.abs(r / Math.abs(t - r)), q = this.rotations[m], t = this.positions[n], n = this.positions[n + 1]; d.globalAlpha = this.worldAlpha * this.alphas[m]; 0 === q % (2 * Math.PI) ? b && ((b = !1), d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty)) : (b || (b = !0), (m = Math.cos(q)), (q = Math.sin(q)), d.setTransform(e.a, e.b, e.c, e.d, e.tx, e.ty), d.transform(m, q, -q, m, t, n), (n = t = 0)); d.scale(u ? -1 : 1, A ? -1 : 1); d.drawImage(this.texture.baseTexture.source, B, C, E, F, (u ? -t : t) - D * (u ? -p + 1 : p), (A ? -n : n) - H * (A ? -r + 1 : r), D, H); d.scale(u ? -1 : 1, A ? -1 : 1); } } this.clippingEnabled && d.restore(); d.globalAlpha = this.worldAlpha; } }; a.ParticleContainer.prototype.onTextureUpdate = function () { this.updateFrame = !0; }; a.GreentubeSpine = function () { a.DisplayObjectContainer.call(this); this.size = 2048; this.maxVerts = 8 * this.size; this.maxIndices = 6 * this.size; this.vertSize = 8; this.stride = 4 * this.vertSize; this.vertexPositionIndex = 0; this.vertexColorIndex = 8; this.vertexTextureCoordIndex = 24; this.vertices = new a.Float32Array(this.maxVerts); this.indices = new a.Uint16Array(this.maxIndices); this.numIndices = this.numVertices = 0; this.webGLTexture = null; this.verticesDoubleArray = new GT1176(this.maxVerts); this.clipper = new GT803(); this.tempVector = new GT1370(); this.tempVector2 = new GT1370(); this.tempColor1 = new GT1477(); this.tempColor2 = new GT1477(); this.tempColor3 = new GT1477(); this.tempColor4 = new GT1477(); this.vertexEffect = null; this.premultipliedAlpha = !1; this.dirty = !0; }; a.GreentubeSpine.prototype = Object.create(a.DisplayObjectContainer.prototype); a.GreentubeSpine.prototype.constructor = a.GreentubeSpine; a.GreentubeSpine.prototype.applyChanges = function (a) { var d = this._nativeSpinePlayer, e = d.getSkeleton_0(), f = !1; d.isHorizontallyFlipped_0() != e.getFlipX_0() && (e.setFlipX_1(d.isHorizontallyFlipped_0()), (f = !0)); d.isVerticallyFlipped_0() != e.getFlipY_0() && (e.setFlipY_1(d.isVerticallyFlipped_0()), (f = !0)); f && e.updateWorldTransform_0(); this.drawPolygonSpriteBatch(a, e); }; a.GreentubeSpine.prototype.drawPolygonSpriteBatch = function (b, d) { var e = this._nativeSpinePlayer.getOpenGLAlpha_0(), f = new GT1477(), g = this.tempVector, k = this.tempVector2, m = this.tempColor1, n = this.tempColor2, p = this.tempColor3, q = this.tempColor4, r = this.vertexEffect; null != r && r.begin_1(d); for ( var t = this.premultipliedAlpha, u = null, B = 0, A = null, C = null, E = null, F = null, D = d.getColor_0(), H = D.getRed_0(), I = D.getGreen_0(), L = D.getBlue_0(), D = D.getAlpha_0(), J = d.getDrawOrder_0(), M = 0, N = J.size; M < N; M++ ) { var P = J.get_1(M), O = null, K = this.clipper.isClipping_0() ? 2 : this.vertSize, Q = P.getAttachment_0(); if (instanceOf(Q, GT500)) (F = Q), (B = K << 2), (A = this.verticesDoubleArray.items), F.computeWorldVertices_4(P.getBone_0(), A, 0, K), (E = [0, 1, 2, 2, 3, 0]), (O = F.getRegion_0().getTexture_0()), (C = F.getUVs_0()), (F = F.getColor_0()); else if (instanceOf(Q, GT595)) (F = Q), (C = F.getWorldVerticesLength_0()), (B = (C >> 1) * K), (A = this.verticesDoubleArray.setSize_1(B)), F.computeWorldVertices_6(P, 0, C, A, 0, K), (E = F.getTriangles_0()), (O = F.getRegion_0().getTexture_0()), (C = F.getUVs_0()), (F = F.getColor_0()); else if (instanceOf(Q, GT403)) { this.clipper.clipStart_2(P, Q); continue; } else instanceOf(Q, GT404) && ((K = Q.getSkeleton_0()), null != K && this.drawPolygonSpriteBatch(b, K)); if (null != O) { var S = P.getColor_0(), T = D * S.getAlpha_0() * F.getAlpha_0() * 255, R = t ? T : 255, K = P.getData_0().getBlendMode_0(); K != u && (K == GT1478.prototype.additive && t && ((K = GT1478.prototype.normal), (T = 0)), (u = K), (K = u.name_0()), (K = K.equals_1("additive") ? a.blendModes.ADD : K.equals_1("multiply") ? a.blendModes.MULTIPLY : a.blendModes.NORMAL), this.appliedBlendingMode != K && (this._flush(b), this._setAlphaBlendMode(b, K, !1))); K = (H * S.getRed_0() * F.getRed_0() * R) / 255; Q = (I * S.getGreen_0() * F.getGreen_0() * R) / 255; S = (L * S.getBlue_0() * F.getBlue_0() * R) / 255; T /= 255; if (this.clipper.isClipping_0()) { this.clipper.clipTriangles_9(A, B, E, E.length, C, K, Q, S, T); var R = this.clipper.getClippedVertices_0(), V = this.clipper.getClippedTriangles_0(); null != r && this.applyVertexEffect(R.items, R.size, this.vertSize, K, Q, S, T, 0, 0, 0, 0); f.set_4(K, Q, S, T); this.webGLTexture && this.webGLTexture != O.texture && this._flush(b); this.webGLTexture = O.texture; this.drawSpinePolygon(R.items, V.items, V.size, Math.div(R.size, this.vertSize), e); } else { if (null != r) for (p.set_4(K, Q, S, T), q.set_4(0, 0, 0, 0), V = R = 0; R < B; R += this.vertSize, V += 2) (g.x = A[R]), (g.y = A[R + 1]), m.set_1(p), n.set_1(q), (k.x = C[V]), (k.y = C[V + 1]), r.transform_4(g, k, m, n), (A[R] = g.x), (A[R + 1] = g.y), (A[R + 2] = m.getRed_0()), (A[R + 3] = m.getGreen_0()), (A[R + 4] = m.getBlue_0()), (A[R + 5] = m.getAlpha_0()), (A[R + 6] = k.x), (A[R + 7] = k.y); else for (R = 2, V = 0; R < B; R += this.vertSize, V += 2) (A[R] = K), (A[R + 1] = Q), (A[R + 2] = S), (A[R + 3] = T), (A[R + 4] = C[V]), (A[R + 5] = C[V + 1]); this.webGLTexture && this.webGLTexture != O.texture && this._flush(b); this.webGLTexture = O.texture; this.drawSpinePolygon(A, E, E.length, Math.div(B, this.vertSize), e); } } this.clipper.clipEnd_1(P); } this.clipper.clipEnd_0(); null != r && r.end_0(); }; a.GreentubeSpine.prototype.applyVertexEffect = function (a, d, e, f, g, k, m, n, p, q, r) { var t = this.tempVector, u = this.tempVector2, B = this.tempColor1, A = this.tempColor2, C = this.tempColor3, E = this.tempColor4, F = this.vertexEffect; this.tempColor3.set_4(f, g, k, m); E.set_4(n, p, q, r); for (f = 0; f < d; f += e) (t.x = a[f]), (t.y = a[f + 1]), (u.x = a[f + 3]), (u.y = a[f + 4]), B.set_1(C), A.set_1(E), F.transform_4(t, u, B, A), (a[f] = t.x), (a[f + 1] = t.y), (a[f + 2] = B.getRed_0()), (a[f + 3] = B.getGreen_0()), (a[f + 4] = B.getBlue_0()), (a[f + 5] = B.getAlpha_0()), (a[f + 6] = u.x), (a[f + 7] = u.y); }; a.GreentubeSpine.prototype.drawSpinePolygon = function (a, d, e, f, g) { if (d && !(2 > f)) { (this.maxVerts - this.numVertices < f * this.vertSize || this.maxIndices - this.numIndices < e) && this._flush(); for ( var k = this._nativeSpinePlayer.getContentX_0(), m = this._nativeSpinePlayer.getContentY_0(), n = this._nativeSpinePlayer.getScaleX_0(), p = this._nativeSpinePlayer.getScaleY_0(), q = this.numVertices * this.vertSize, r = 0, t = 0; t < f; ++t ) (this.vertices[q++] = (a[r++] * n + k) * CONFIG.SCALINGFACTOR), (this.vertices[q++] = (a[r++] * p + m) * CONFIG.SCALINGFACTOR), (this.vertices[q++] = a[r++]), (this.vertices[q++] = a[r++]), (this.vertices[q++] = a[r++]), (this.vertices[q++] = a[r++] * g), (this.vertices[q++] = a[r++]), (this.vertices[q++] = a[r++]); r = this.numIndices; for (t = 0; t < e; ++t) this.indices[r++] = this.numVertices + d[t]; this.numVertices += f; this.numIndices += e; } }; a.GreentubeSpine.prototype._setAlphaBlendMode = function (a, d, e) { if (this.appliedBlendingMode !== d || e) (this.appliedBlendingMode = d), a.blendModeManager.setBlendMode(d); }; a.GreentubeSpine.prototype._initWebGL = function (a) { a = this.gl = a.gl; this._indexBuffer = a.createBuffer(); this._vertexBuffer = a.createBuffer(); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this._indexBuffer); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.indices, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this._vertexBuffer); a.bufferData(a.ARRAY_BUFFER, this.vertices, a.DYNAMIC_DRAW); }; a.GreentubeSpine.prototype._updateUniforms = function (a) { var d = a.gl, e = a.shaderManager.polygonShader; d.uniformMatrix3fv(e.translationMatrix, !1, this.worldTransform.toArray(!0)); d.uniform2f(e.projectionVector, a.projection.x, -a.projection.y); d.uniform2f(e.offsetVector, -a.offset.x, -a.offset.y); d.uniform1f(e.worldalpha, this.worldAlpha); var f = this.parent, g = f.parent, k = g.worldTransform.tx, m = g.worldTransform.ty, n = f.worldTransform.tx, p = f.worldTransform.ty; a = Math.max(n, k); var q = Math.max(p, m), k = Math.min(n + f.width * f.worldTransform.a, k + g.width * g.worldTransform.a), f = Math.min(p + f.height * f.worldTransform.d, m + g.height * g.worldTransform.d); d.uniform4f(e.clipRect, a, q, k, f); this.gt_colormatrix ? (d.uniformMatrix4fv(e.colorMatrix, !1, this.gt_colormatrix), d.uniform1f(e.hasColorMatrix, 1)) : this.parent.gt_colormatrix ? (d.uniformMatrix4fv(e.colorMatrix, !1, this.parent.gt_colormatrix), d.uniform1f(e.hasColorMatrix, 1)) : d.uniform1f(e.hasColorMatrix, 0); }; a.GreentubeSpine.prototype._flush = function (a) { var d = a.gl, e = a.shaderManager.polygonShader; this.dirty ? (d.bindBuffer(d.ARRAY_BUFFER, this._vertexBuffer), d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this._indexBuffer), d.vertexAttribPointer(e.aVertexPosition, 2, d.FLOAT, !1, this.stride, this.vertexPositionIndex), d.vertexAttribPointer(e.aColor, 4, d.FLOAT, !1, this.stride, this.vertexColorIndex), d.vertexAttribPointer(e.aTextureCoord, 2, d.FLOAT, !1, this.stride, this.vertexTextureCoordIndex), "1" == CONFIG.webgluploadsubarray ? ((e = this.vertices.subarray(0, this.numVertices * this.vertSize)), d.bufferSubData(d.ARRAY_BUFFER, 0, e), (e = this.indices.subarray(0, this.numIndices)), d.bufferSubData(d.ELEMENT_ARRAY_BUFFER, 0, e)) : (d.bufferSubData(d.ARRAY_BUFFER, 0, this.vertices), d.bufferSubData(d.ELEMENT_ARRAY_BUFFER, 0, this.indices))) : d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this._indexBuffer); d.activeTexture(d.TEXTURE0); this.webGLTexture.baseTexture._dirty[d.id] ? a.renderer.updateTexture(this.webGLTexture.baseTexture) : d.bindTexture(d.TEXTURE_2D, this.webGLTexture.baseTexture._glTextures[d.id]); d.drawElements(d.TRIANGLES, this.numIndices, d.UNSIGNED_SHORT, 0); this.numIndices = this.numVertices = 0; }; a.GreentubeSpine.prototype._renderWebGL = function (b) { !this.visible || !this._nativeSpinePlayer.canRenderer_0() || 0 >= this.worldalpha || (b.spriteBatch.stop(), this._vertexBuffer || this._initWebGL(b), b.shaderManager.setShader(b.shaderManager.polygonShader), this._setAlphaBlendMode(b, a.blendModes.NORMAL, !0), this._updateUniforms(b), this.dirty && this.applyChanges(b), this._flush(b), b.spriteBatch.start()); }; a.GreentubeSpine.prototype._renderCanvas = function (a) {}; a.GreentubeSpine.prototype.destroy = function () { this.indices = this.vertices = null; this.gl && (this.gl.deleteBuffer(this._vertexBuffer), this.gl.deleteBuffer(this._indexBuffer), (this.gl = null)); }; a.GreentubeSpine.prototype.onTextureUpdate = function () { this.updateFrame = !0; }; a.BaseTextureCache = {}; a.BaseTextureCacheIdGenerator = 0; a.BaseTexture = function (b, d) { this.resolution = 1; this.height = this.width = 100; this.scaleMode = d || a.scaleModes.DEFAULT; this.hasLoaded = !1; this.source = b; this._UID = a._UID++; this.premultipliedAlpha = !1; this._glTextures = []; this._dirty = [!0, !0, !0, !0]; if (b) { if ((this.source.complete || this.source.getContext) && this.source.width && this.source.height) (this.hasLoaded = !0), (this.width = this.source.naturalWidth || this.source.width), (this.height = this.source.naturalHeight || this.source.height), this.dirty(); else { var e = this; this.source.onload = function () { e.hasLoaded = !0; e.width = e.source.naturalWidth || e.source.width; e.height = e.source.naturalHeight || e.source.height; e.dirty(); e.dispatchEvent({ type: "loaded", content: e }); }; this.source.onerror = function () { e.source && e.dispatchEvent({ type: "error", content: e }); }; } this.imageUrl = null; this._powerOf2 = !1; } }; a.BaseTexture.prototype.constructor = a.BaseTexture; a.EventTarget.mixin(a.BaseTexture.prototype); a.BaseTexture.prototype.destroy = function () { this.imageUrl ? (delete a.BaseTextureCache[this.imageUrl], delete a.TextureCache[this.imageUrl], (this.imageUrl = null), navigator.isCocoonJS || (this.source.src = "")) : this.source && this.source._pixiId && delete a.BaseTextureCache[this.source._pixiId]; this.source = null; this.unloadFromGPU(); }; a.BaseTexture.prototype.updateSourceImage = function (a) { this.hasLoaded = !1; this.source.src = null; this.source.src = a; }; a.BaseTexture.prototype.dirty = function () { for (var a = 0; a < this._glTextures.length; a++) this._dirty[a] = !0; }; a.BaseTexture.prototype.unloadFromGPU = function () { this.dirty(); for (var b = this._glTextures.length - 1; 0 <= b; b--) { var d = this._glTextures[b], e = a.glContexts[b]; e && d && e.deleteTexture(d); } this._glTextures.length = 0; this.dirty(); }; a.BaseTexture.fromImage = function (b, d, e) { var f = a.BaseTextureCache[b]; void 0 === d && -1 === b.indexOf("data:") && (d = !0); f || ((f = new Image()), d && (f.crossOrigin = ""), (f.src = b), (f = new a.BaseTexture(f, e)), (f.imageUrl = b), (a.BaseTextureCache[b] = f), -1 !== b.indexOf(a.RETINA_PREFIX + ".") && (f.resolution = 2)); return f; }; a.BaseTexture.fromCanvas = function (b, d) { b._pixiId || (b._pixiId = "canvas_" + a.TextureCacheIdGenerator++); var e = a.BaseTextureCache[b._pixiId]; e || ((e = new a.BaseTexture(b, d)), (a.BaseTextureCache[b._pixiId] = e)); return e; }; a.TextureCache = {}; a.FrameCache = {}; a.TextureCacheIdGenerator = 0; a.Texture = function (b, d, e, f) { this.noFrame = !1; d || ((this.noFrame = !0), (d = new a.Rectangle(0, 0, 1, 1))); b instanceof a.Texture && (b = b.baseTexture); this.baseTexture = b; this.frame = d; this.trim = f; this.requiresUpdate = this.valid = !1; this._uvs = null; this.height = this.width = 0; this.crop = e || new a.Rectangle(0, 0, 1, 1); b.hasLoaded ? (this.noFrame && (d = new a.Rectangle(0, 0, b.width, b.height)), this.setFrame(d)) : b.addEventListener("loaded", this.onBaseTextureLoaded.bind(this)); }; a.Texture.prototype.constructor = a.Texture; a.EventTarget.mixin(a.Texture.prototype); a.Texture.prototype.onBaseTextureLoaded = function () { var b = this.baseTexture; b.removeEventListener("loaded", this.onLoaded); this.noFrame && (this.frame = new a.Rectangle(0, 0, b.width, b.height)); this.setFrame(this.frame); this.dispatchEvent({ type: "update", content: this }); }; a.Texture.prototype.destroy = function (a) { a && this.baseTexture.destroy(); this.valid = !1; }; a.Texture.prototype.setFrame = function (a) { this.noFrame = !1; this.frame = a; this.width = a.width; this.height = a.height; this.crop.x = a.x; this.crop.y = a.y; this.crop.width = a.width; this.crop.height = a.height; if (!this.trim && (a.x + a.width > this.baseTexture.width || a.y + a.height > this.baseTexture.height)) throw Error("Texture Error: frame does not fit inside the base Texture dimensions " + this); this.valid = a && a.width && a.height && this.baseTexture.source && this.baseTexture.hasLoaded; this.trim && ((this.width = this.trim.width), (this.height = this.trim.height), (this.frame.width = this.trim.width), (this.frame.height = this.trim.height)); this.valid && this._updateUvs(); }; a.Texture.prototype._updateUvs = function () { this._uvs || (this._uvs = new a.TextureUvs()); var b = this.crop, d = this.baseTexture.width, e = this.baseTexture.height; this._uvs.x0 = b.x / d; this._uvs.y0 = b.y / e; this._uvs.x1 = (b.x + b.width) / d; this._uvs.y1 = b.y / e; this._uvs.x2 = (b.x + b.width) / d; this._uvs.y2 = (b.y + b.height) / e; this._uvs.x3 = b.x / d; this._uvs.y3 = (b.y + b.height) / e; }; a.Texture.fromImage = function (b, d, e) { var f = a.TextureCache[b]; f || ((f = new a.Texture(a.BaseTexture.fromImage(b, d, e))), (a.TextureCache[b] = f)); return f; }; a.Texture.fromFrame = function (b) { var d = a.TextureCache[b]; if (!d) throw Error('The frameId "' + b + '" does not exist in the texture cache '); return d; }; a.Texture.fromCanvas = function (b, d) { var e = a.BaseTexture.fromCanvas(b, d); return new a.Texture(e); }; a.Texture.addTextureToCache = function (b, d) { a.TextureCache[d] = b; }; a.Texture.removeTextureFromCache = function (b) { var d = a.TextureCache[b]; delete a.TextureCache[b]; delete a.BaseTextureCache[b]; return d; }; a.TextureUvs = function () { this.y3 = this.x3 = this.y2 = this.x2 = this.y1 = this.x1 = this.y0 = this.x0 = 0; }; a.Texture.emptyTexture = new a.Texture(new a.BaseTexture()); a.RenderTexture = function (b, d, e, f, g) { this.width = b || 100; this.height = d || 100; this.resolution = g || 1; this.frame = new a.Rectangle(0, 0, this.width * this.resolution, this.height * this.resolution); this.crop = new a.Rectangle(0, 0, this.width * this.resolution, this.height * this.resolution); this.baseTexture = new a.BaseTexture(); this.baseTexture.width = this.width * this.resolution; this.baseTexture.height = this.height * this.resolution; this.baseTexture._glTextures = []; this.baseTexture.resolution = this.resolution; this.baseTexture.scaleMode = f || a.scaleModes.DEFAULT; this.baseTexture.hasLoaded = !0; a.Texture.call(this, this.baseTexture, new a.Rectangle(0, 0, this.width, this.height)); this.renderer = e || a.defaultRenderer; this.renderer.type === a.WEBGL_RENDERER ? ((b = this.renderer.gl), (this.baseTexture._dirty[b.id] = !1), (this.textureBuffer = new a.FilterTexture(b, this.width * this.resolution, this.height * this.resolution, this.baseTexture.scaleMode)), (this.baseTexture._glTextures[b.id] = this.textureBuffer.texture), (this.render = this.renderWebGL), (this.projection = new a.Point(0.5 * this.width, 0.5 * -this.height))) : ((this.render = this.renderCanvas), (this.textureBuffer = new a.CanvasBuffer(this.width * this.resolution, this.height * this.resolution)), (this.baseTexture.source = this.textureBuffer.canvas)); this.valid = !0; this._updateUvs(); }; a.RenderTexture.prototype = Object.create(a.Texture.prototype); a.RenderTexture.prototype.constructor = a.RenderTexture; a.RenderTexture.prototype.resize = function (b, d, e) { if (b !== this.width || d !== this.height) (this.valid = 0 < b && 0 < d), (this.width = this.frame.width = this.crop.width = b), (this.height = this.frame.height = this.crop.height = d), e && ((this.baseTexture.width = this.width), (this.baseTexture.height = this.height)), this.renderer.type === a.WEBGL_RENDERER && ((this.projection.x = this.width / 2), (this.projection.y = -this.height / 2)), this.valid && this.textureBuffer.resize(this.width * this.resolution, this.height * this.resolution); }; a.RenderTexture.prototype.clear = function () { this.valid && (this.renderer.type === a.WEBGL_RENDERER && this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER, this.textureBuffer.frameBuffer), this.textureBuffer.clear()); }; a.RenderTexture.prototype.renderWebGL = function (a, d, e) { if (this.valid) { var f = a.worldTransform; f.identity(); f.translate(0, 2 * this.projection.y); d && f.append(d); f.scale(1, -1); a.worldAlpha = 1; d = a.children; for (var f = 0, g = d.length; f < g; f++) d[f].updateTransform(); d = this.renderer.gl; d.viewport(0, 0, this.width * this.resolution, this.height * this.resolution); d.bindFramebuffer(d.FRAMEBUFFER, this.textureBuffer.frameBuffer); e && this.textureBuffer.clear(); this.renderer.spriteBatch.dirty = !0; this.renderer.renderDisplayObject(a, this.projection, this.textureBuffer.frameBuffer); this.renderer.spriteBatch.dirty = !0; } }; a.RenderTexture.prototype.renderCanvas = function (a, d, e) { if (this.valid) { var f = a.worldTransform; f.identity(); d && f.append(d); a.worldAlpha = 1; d = a.children; for (var f = 0, g = d.length; f < g; f++) d[f].updateTransform(); e && this.textureBuffer.clear(); e = this.textureBuffer.context; d = this.renderer.resolution; this.renderer.resolution = this.resolution; this.renderer.renderDisplayObject(a, e); this.renderer.resolution = d; } }; a.RenderTexture.prototype.getImage = function () { var a = new Image(); a.src = this.getBase64(); return a; }; a.RenderTexture.prototype.getBase64 = function () { return this.getCanvas().toDataURL(); }; a.RenderTexture.prototype.getCanvas = function () { if (this.renderer.type === a.WEBGL_RENDERER) { var b = this.renderer.gl, d = this.textureBuffer.width, e = this.textureBuffer.height, f = new Uint8Array(4 * d * e); b.bindFramebuffer(b.FRAMEBUFFER, this.textureBuffer.frameBuffer); b.readPixels(0, 0, d, e, b.RGBA, b.UNSIGNED_BYTE, f); b.bindFramebuffer(b.FRAMEBUFFER, null); b = new a.CanvasBuffer(d, e); d = b.context.getImageData(0, 0, d, e); d.data.set(f); b.context.putImageData(d, 0, 0); return b.canvas; } return this.textureBuffer.canvas; }; a.RenderTexture.tempMatrix = new a.Matrix(); a.VideoTexture = function (b, d) { if (!b) throw Error("No video source element specified."); (b.readyState === b.HAVE_ENOUGH_DATA || b.readyState === b.HAVE_FUTURE_DATA) && b.width && b.height && (b.complete = !0); a.BaseTexture.call(this, b, d); this.autoUpdate = !1; this.updateBound = this._onUpdate.bind(this); b.complete || ((this._onCanPlay = this.onCanPlay.bind(this)), b.addEventListener("canplay", this._onCanPlay), b.addEventListener("canplaythrough", this._onCanPlay), b.addEventListener("play", this.onPlayStart.bind(this)), b.addEventListener("pause", this.onPlayStop.bind(this))); }; a.VideoTexture.prototype = Object.create(a.BaseTexture.prototype); a.VideoTexture.constructor = a.VideoTexture; a.VideoTexture.prototype._onUpdate = function () {}; a.VideoTexture.prototype.onPlayStart = function () {}; a.VideoTexture.prototype.onPlayStop = function () {}; a.VideoTexture.prototype.onCanPlay = function (a) { "canplaythrough" === a.type && ((this.hasLoaded = !0), this.source && (this.source.removeEventListener("canplay", this._onCanPlay), this.source.removeEventListener("canplaythrough", this._onCanPlay), (this.width = this.source.videoWidth), (this.height = this.source.videoHeight), this.__loaded || ((this.__loaded = !0), this.dispatchEvent({ type: "loaded", content: this })))); }; a.VideoTexture.baseTextureFromVideo = function (b, d) { b._pixiId || (b._pixiId = "video_" + a.TextureCacheIdGenerator++); var e = a.BaseTextureCache[b._pixiId]; e || ((e = new a.VideoTexture(b, d)), (a.BaseTextureCache[b._pixiId] = e)); return e; }; a.VideoTexture.prototype.destroy = function () { this.source && this.source._pixiId && ((a.BaseTextureCache[this.source._pixiId] = null), delete a.BaseTextureCache[this.source._pixiId], (this.source._pixiId = null), delete this.source._pixiId); a.BaseTexture.prototype.destroy.call(this); }; a.VideoTexture.textureFromVideo = function (b, d) { var e = a.VideoTexture.baseTextureFromVideo(b, d); return new a.Texture(e); }; a.VideoTexture.fromUrl = function (b, d) { var e = document.createElement("video"); e.src = b; e.autoPlay = !0; e.play(); return a.VideoTexture.textureFromVideo(e, d); }; a.AssetLoader = function (b, d) { this.assetURLs = b; this.crossorigin = d; this.loadersByType = { jpg: a.ImageLoader, jpeg: a.ImageLoader, png: a.ImageLoader, gif: a.ImageLoader, webp: a.ImageLoader, json: a.JsonLoader, atlas: a.AtlasLoader, anim: a.SpineLoader, xml: a.BitmapFontLoader, fnt: a.BitmapFontLoader, }; }; a.EventTarget.mixin(a.AssetLoader.prototype); a.AssetLoader.prototype.constructor = a.AssetLoader; a.AssetLoader.prototype._getDataType = function (a) { if ("data:" === a.slice(0, 5).toLowerCase()) { a = a.slice(5); var d = a.indexOf(","); return -1 === d ? null : (a = a.slice(0, d).split(";")[0]) && "text/plain" !== a.toLowerCase() ? a.split("/").pop().toLowerCase() : "txt"; } return null; }; a.AssetLoader.prototype.load = function () { function a(b) { e.onAssetLoaded(b.data.content); } function d() { e.onAssetLoadingFailed(); } var e = this; this.loadCount = this.assetURLs.length; for (var f = 0; f < this.assetURLs.length; f++) { var g = this.assetURLs[f], k = this._getDataType(g); k || (k = g.split("?").shift().split(".").pop().toLowerCase()); var m = this.loadersByType[k]; if (!m) throw Error(k + " is an unsupported file type"); g = new m(g, this.crossorigin); g.on("loaded", a); g.on("error", d); g.load(); } }; a.AssetLoader.prototype.onAssetLoaded = function (a) { this.loadCount--; this.emit("onProgress", { content: this, loader: a }); if (this.onProgress) this.onProgress(a); if (!this.loadCount && (this.emit("onComplete", { content: this }), this.onComplete)) this.onComplete(); }; a.AssetLoader.prototype.onAssetLoadingFailed = function () { this.onLoadingFailed(); }; a.JsonLoader = function (a, d) { this.url = a; this.crossorigin = d; this.baseUrl = a.replace(/[^\/]*$/, ""); this.loaded = !1; }; a.JsonLoader.prototype.constructor = a.JsonLoader; a.EventTarget.mixin(a.JsonLoader.prototype); a.JsonLoader.prototype.load = function () { window.XDomainRequest && this.crossorigin ? ((this.ajaxRequest = new window.XDomainRequest()), (this.ajaxRequest.timeout = 3e3), (this.ajaxRequest.onerror = this.onError.bind(this)), (this.ajaxRequest.ontimeout = this.onError.bind(this)), (this.ajaxRequest.onprogress = function () {})) : (this.ajaxRequest = window.XMLHttpRequest ? new window.XMLHttpRequest() : new window.ActiveXObject("Microsoft.XMLHTTP")); this.ajaxRequest.onload = this.onJSONLoaded.bind(this); this.ajaxRequest.open("GET", this.url, !0); this.ajaxRequest.send(); }; a.JsonLoader.prototype.onJSONLoaded = function () { if (this.ajaxRequest.responseText) if (((this.json = JSON.parse(this.ajaxRequest.responseText)), this.json.frames && this.json.meta && this.json.meta.image)) { var b = new a.ImageLoader(this.baseUrl + this.json.meta.image, this.crossorigin), d = this.json.frames; this.texture = b.texture.baseTexture; b.addEventListener("loaded", this.onLoaded.bind(this)); b.addEventListener("error", this.onError.bind(this)); for (var e in d) { var f = d[e].frame; if (f) { var f = new a.Rectangle(f.x, f.y, f.w, f.h), g = f.clone(), k = null; if (d[e].trimmed) var k = d[e].sourceSize, m = d[e].spriteSourceSize, k = new a.Rectangle(m.x, m.y, k.w, k.h); a.TextureCache[e] = new a.Texture(this.texture, f, g, k); } } b.load(); } else this.json.bones && ((b = new spine.SkeletonJson().readSkeletonData(this.json)), (a.AnimCache[this.url] = b)), this.onLoaded(); else this.onError(); }; a.JsonLoader.prototype.onLoaded = function () { this.loaded = !0; this.dispatchEvent({ type: "loaded", content: this }); }; a.JsonLoader.prototype.onError = function () { this.dispatchEvent({ type: "error", content: this }); }; a.ImageLoader = function (b, d) { this.texture = a.Texture.fromImage(b, d); this.frames = []; }; a.ImageLoader.prototype.constructor = a.ImageLoader; a.EventTarget.mixin(a.ImageLoader.prototype); a.ImageLoader.prototype.load = function () { if (this.texture.baseTexture.hasLoaded) this.onLoaded(); else this.texture.baseTexture.on("loaded", this.onLoaded.bind(this)), this.texture.baseTexture.on("error", this.onLoadingFailed.bind(this)); }; a.ImageLoader.prototype.onLoaded = function () { this.emit("loaded", { content: this }); }; a.ImageLoader.prototype.onLoadingFailed = function () { this.emit("error", { content: this }); }; a.ImageLoader.prototype.loadFramedSpriteSheet = function (b, d, e) { this.frames = []; for (var f = Math.floor(this.texture.width / b), g = Math.floor(this.texture.height / d), k = 0, m = 0; m < g; m++) for (var n = 0; n < f; n++, k++) { var p = new a.Texture(this.texture.baseTexture, { x: n * b, y: m * d, width: b, height: d }); this.frames.push(p); e && (a.TextureCache[e + "-" + k] = p); } this.load(); }; a.BitmapFontLoader = function (a, d) { this.url = a; this.crossorigin = d; this.baseUrl = a.replace(/[^\/]*$/, ""); this.texture = null; }; a.BitmapFontLoader.prototype.constructor = a.BitmapFontLoader; a.EventTarget.mixin(a.BitmapFontLoader.prototype); a.BitmapFontLoader.prototype.load = function () { this.ajaxRequest = new a.AjaxRequest(); this.ajaxRequest.onreadystatechange = this.onXMLLoaded.bind(this); this.ajaxRequest.open("GET", this.url, !0); this.ajaxRequest.overrideMimeType && this.ajaxRequest.overrideMimeType("application/xml"); this.ajaxRequest.send(null); }; a.BitmapFontLoader.prototype.onXMLLoaded = function () { if (4 === this.ajaxRequest.readyState && (200 === this.ajaxRequest.status || -1 === window.location.protocol.indexOf("http"))) { var b = this.ajaxRequest.responseXML; if (!b || /MSIE 9/i.test(navigator.userAgent) || navigator.isCocoonJS) if ("function" === typeof window.DOMParser) b = new DOMParser().parseFromString(this.ajaxRequest.responseText, "text/xml"); else { var d = document.createElement("div"); d.innerHTML = this.ajaxRequest.responseText; b = d; } d = this.baseUrl + b.getElementsByTagName("page")[0].getAttribute("file"); d = new a.ImageLoader(d, this.crossorigin); this.texture = d.texture.baseTexture; var e = {}, f = b.getElementsByTagName("info")[0], g = b.getElementsByTagName("common")[0]; e.font = f.getAttribute("face"); e.size = parseInt(f.getAttribute("size"), 10); e.lineHeight = parseInt(g.getAttribute("lineHeight"), 10); e.chars = {}; g = b.getElementsByTagName("char"); for (f = 0; f < g.length; f++) { var k = parseInt(g[f].getAttribute("id"), 10), m = new a.Rectangle(parseInt(g[f].getAttribute("x"), 10), parseInt(g[f].getAttribute("y"), 10), parseInt(g[f].getAttribute("width"), 10), parseInt(g[f].getAttribute("height"), 10)); e.chars[k] = { xOffset: parseInt(g[f].getAttribute("xoffset"), 10), yOffset: parseInt(g[f].getAttribute("yoffset"), 10), xAdvance: parseInt(g[f].getAttribute("xadvance"), 10), kerning: {}, texture: (a.TextureCache[k] = new a.Texture(this.texture, m)), }; } b = b.getElementsByTagName("kerning"); for (f = 0; f < b.length; f++) (g = parseInt(b[f].getAttribute("first"), 10)), (k = parseInt(b[f].getAttribute("second"), 10)), (m = parseInt(b[f].getAttribute("amount"), 10)), (e.chars[k].kerning[g] = m); a.BitmapText.fonts[e.font] = e; d.addEventListener("loaded", this.onLoaded.bind(this)); d.load(); } }; a.BitmapFontLoader.prototype.onLoaded = function () { this.emit("loaded", { content: this }); }; a.AbstractFilter = function (a, d) { this.passes = [this]; this.shaders = []; this.dirty = !0; this.padding = 0; this.uniforms = d || {}; this.fragmentSrc = a || []; }; a.AbstractFilter.prototype.constructor = a.AbstractFilter; a.AbstractFilter.prototype.syncUniforms = function () { for (var a = 0, d = this.shaders.length; a < d; a++) this.shaders[a].dirty = !0; }; a.GreentubeGlobalShader = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { contrastFactor: { type: "1f", value: 0 }, hasSeparatedAlpha: { type: "1f", value: 0 }, paddingHalfHeight: { type: "1f", value: 0 }, alphaseparateYfactor: { type: "1f", value: 0 }, hasMatrix: { type: "1f", value: 0 }, matrix: { type: "mat4", value: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1] }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform float invert;", "uniform float paddingHalfHeight;", "uniform float alphaseparateYfactor;", "uniform float hasSeparatedAlpha;", "uniform float hasMatrix;", "uniform float contrastFactor;", "uniform mat4 matrix;", "uniform sampler2D uSampler;", "void main(void) {", "vec4 col;", "if(hasSeparatedAlpha > 0.) {", "vec2 newTC = vec2(vTextureCoord.x, vTextureCoord.y * alphaseparateYfactor);", "col = texture2D(uSampler, newTC);", "newTC.y = newTC.y + paddingHalfHeight + .5;", "col.a = texture2D(uSampler, newTC).r" + (DEVICE.chrome || DEVICE.opera || DEVICE.mozilla || DEVICE.msie ? "* 1.1;" : ";"), "if(col.a == 0.0)", "\tdiscard;", "col.a*=col.a;", "col.rgb*=col.a;", "} else {", "col = texture2D(uSampler, vTextureCoord);", "if(col.a == 0.0)", "\tdiscard;", "}", a.GreentubeGlobalShader.prototype.colorAttributeError ? "" : "col = col * vColor;", "if(hasMatrix > 0.)", "col = col * matrix;", "if(contrastFactor > 0.)", "col.rgb = contrastFactor * (col.rgb - .5) + .5;", "gl_FragColor = col;", "}", ]; }; a.GreentubeGlobalShader.prototype = Object.create(a.AbstractFilter.prototype); a.GreentubeGlobalShader.prototype.constructor = a.GreentubeGlobalShader; Object.defineProperty(a.GreentubeGlobalShader.prototype, "matrix", { get: function () { return this.uniforms.matrix.value; }, set: function (a) { null != a ? ((this.uniforms.matrix.value = a), (this.uniforms.hasMatrix.value = 1)) : ((this.uniforms.hasMatrix.value = 0), (this.uniforms.matrix.value = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1])); }, }); Object.defineProperty(a.GreentubeGlobalShader.prototype, "alphaSeparatedImagePaddingHeight", { get: function () { return this.uniforms.paddingHeight.value; }, set: function (a) { this.uniforms.paddingHeight.value = a; }, }); Object.defineProperty(a.GreentubeGlobalShader.prototype, "hasSeparatedAlpha", { get: function () { return this.uniforms.hasSeparatedAlpha.value; }, set: function (a) { this.uniforms.hasSeparatedAlpha.value = a; }, }); a.DisplacementFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, displacementMap: { type: "sampler2D", value: null }, scale: { type: "2f", value: { x: 30, y: 30 } }, offset: { type: "2f", value: { x: 0, y: 0 } }, mapDimensions: { type: "2f", value: { x: 1, y: 5112 } }, dimensions: { type: "4fv", value: [0, 0, 0, 0] }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D displacementMap;", "uniform sampler2D uSampler;", "uniform vec2 scale;", "uniform vec2 offset;", "uniform vec4 dimensions;", "uniform vec2 mapDimensions;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec2 mapCords = vTextureCoord.xy;", "mapCords += (dimensions.zw + offset)/ dimensions.xy ;", "mapCords.y *= -1.0;", "mapCords.y += 1.0;", "mapCords.x -= floor(mapCords.x);", "mapCords.y -= floor(mapCords.y);", "vec2 matSample = texture2D(displacementMap, mapCords).xy;", "matSample -= 0.5;", "matSample *= scale;", "matSample /= mapDimensions;", "vec2 newCoord = vec2(vTextureCoord.x + matSample.x, vTextureCoord.y + matSample.y);", "if(newCoord.x < 0.0 || newCoord.y < 0.0)", "discard;", "vec4 col = texture2D(uSampler, newCoord);", "if(col.a == 0.0)", "discard;", "gl_FragColor = col;", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "}", "}", ]; }; a.DisplacementFilter.prototype = Object.create(a.AbstractFilter.prototype); a.DisplacementFilter.prototype.constructor = a.DisplacementFilter; a.DisplacementFilter.prototype.onTextureLoaded = function () { this.uniforms.mapDimensions.value.x = this.uniforms.displacementMap.value.width; this.uniforms.mapDimensions.value.y = this.uniforms.displacementMap.value.height; this.uniforms.displacementMap.value.baseTexture.off("loaded", this.boundLoadedFunction); }; Object.defineProperty(a.DisplacementFilter.prototype, "map", { get: function () { return this.uniforms.displacementMap.value; }, set: function (a) { this.uniforms.displacementMap.value = a; this.uniforms.mapDimensions.value.x = this.uniforms.displacementMap.value.width; this.uniforms.mapDimensions.value.y = this.uniforms.displacementMap.value.height; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "scale", { get: function () { return this.uniforms.scale.value; }, set: function (a) { this.uniforms.scale.value = a; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "offset", { get: function () { return this.uniforms.offset.value; }, set: function (a) { this.uniforms.offset.value = a; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.DisplacementFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.PixelateFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, invert: { type: "1f", value: 0 }, dimensions: { type: "4fv", value: new a.Float32Array([1e4, 100, 10, 10]) }, pixelSize: { type: "2f", value: { x: 10, y: 10 } }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform vec2 testDim;", "uniform vec4 dimensions;", "uniform vec2 pixelSize;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec2 size = dimensions.xy/pixelSize;", "vec2 color = floor( ( vTextureCoord * size ) ) / size + pixelSize/dimensions.xy * 0.5;", "gl_FragColor = texture2D(uSampler, color);", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "}", "}", ]; }; a.PixelateFilter.prototype = Object.create(a.AbstractFilter.prototype); a.PixelateFilter.prototype.constructor = a.PixelateFilter; Object.defineProperty(a.PixelateFilter.prototype, "size", { get: function () { return this.uniforms.pixelSize.value; }, set: function (a) { this.dirty = !0; this.uniforms.pixelSize.value = a; }, }); Object.defineProperty(a.PixelateFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.PixelateFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.PixelateFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.PixelateFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.BlurXFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, blur: { type: "1f", value: 1 / 512 }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform float blur;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec4 sum = vec4(0.0);", "sum += texture2D(uSampler, vec2(vTextureCoord.x - 4.0*blur, vTextureCoord.y)) * 0.05;", "sum += texture2D(uSampler, vec2(vTextureCoord.x - 3.0*blur, vTextureCoord.y)) * 0.09;", "sum += texture2D(uSampler, vec2(vTextureCoord.x - 2.0*blur, vTextureCoord.y)) * 0.12;", "sum += texture2D(uSampler, vec2(vTextureCoord.x - blur, vTextureCoord.y)) * 0.15;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * 0.18;", "sum += texture2D(uSampler, vec2(vTextureCoord.x + blur, vTextureCoord.y)) * 0.15;", "sum += texture2D(uSampler, vec2(vTextureCoord.x + 2.0*blur, vTextureCoord.y)) * 0.12;", "sum += texture2D(uSampler, vec2(vTextureCoord.x + 3.0*blur, vTextureCoord.y)) * 0.09;", "sum += texture2D(uSampler, vec2(vTextureCoord.x + 4.0*blur, vTextureCoord.y)) * 0.05;", "gl_FragColor = sum;", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "}", "}", ]; }; a.BlurXFilter.prototype = Object.create(a.AbstractFilter.prototype); a.BlurXFilter.prototype.constructor = a.BlurXFilter; Object.defineProperty(a.BlurXFilter.prototype, "blur", { get: function () { return this.uniforms.blur.value / (1 / 7e3); }, set: function (a) { this.dirty = !0; this.uniforms.blur.value = (1 / 7e3) * a; }, }); Object.defineProperty(a.BlurXFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.BlurXFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.BlurXFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.BlurXFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.BlurYFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, blur: { type: "1f", value: 1 / 512 }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform float blur;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec4 sum = vec4(0.0);", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 4.0*blur)) * 0.05;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 3.0*blur)) * 0.09;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 2.0*blur)) * 0.12;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - blur)) * 0.15;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * 0.18;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + blur)) * 0.15;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 2.0*blur)) * 0.12;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 3.0*blur)) * 0.09;", "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 4.0*blur)) * 0.05;", "gl_FragColor = sum;", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "}", "}", ]; }; a.BlurYFilter.prototype = Object.create(a.AbstractFilter.prototype); a.BlurYFilter.prototype.constructor = a.BlurYFilter; Object.defineProperty(a.BlurYFilter.prototype, "blur", { get: function () { return this.uniforms.blur.value / (1 / 7e3); }, set: function (a) { this.uniforms.blur.value = (1 / 7e3) * a; }, }); Object.defineProperty(a.BlurYFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.BlurYFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.BlurYFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.BlurYFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.BlurFilter = function () { this.blurXFilter = new a.BlurXFilter(); this.blurYFilter = new a.BlurYFilter(); this.passes = [this.blurXFilter, this.blurYFilter]; }; a.BlurFilter.prototype = Object.create(a.AbstractFilter.prototype); a.BlurFilter.prototype.constructor = a.BlurFilter; Object.defineProperty(a.BlurFilter.prototype, "blur", { get: function () { return this.blurXFilter.blur; }, set: function (a) { this.blurXFilter.blur = this.blurYFilter.blur = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "blurX", { get: function () { return this.blurXFilter.blur; }, set: function (a) { this.blurXFilter.blur = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "blurY", { get: function () { return this.blurYFilter.blur; }, set: function (a) { this.blurYFilter.blur = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "maskTexture", { get: function () { return this.blurXFilter.maskTexture; }, set: function (a) { this.blurXFilter.maskTexture = a; this.blurYFilter.maskTexture = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "maskTextureInvert", { get: function () { return this.blurXFilter.maskTextureInvert; }, set: function (a) { this.blurXFilter.maskTextureInvert = a; this.blurYFilter.maskTextureInvert = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "maskTextureOffset", { get: function () { return this.blurXFilter.maskTextureOffset; }, set: function (a) { this.blurXFilter.maskTextureOffset = a; this.blurYFilter.maskTextureOffset = a; }, }); Object.defineProperty(a.BlurFilter.prototype, "maskTextureScale", { get: function () { return this.blurXFilter.maskTextureScale; }, set: function (a) { this.blurXFilter.maskTextureScale = a; this.blurYFilter.maskTextureScale = a; }, }); a.MotionBlurFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this._lowPassFilterFactor = this._blur = this.rawBlurBackup = 0; this._texelStep = 1 / 2048; this.direction = null; this.appliedBlur = -1; this.smoothedBlur = 0; this.uniforms = { blur: { type: "1f", value: 1 }, uvData: { type: "4fv", value: [0, 0, 0, 0] } }; this.fragmentSrcPart1 = "precision mediump float;}uniform sampler2D uSampler;}uniform float blur;}uniform vec4 uvData;}varying vec2 vTextureCoord;}varying vec4 vColor;}void main(void) {}vec2 texCoord = vTextureCoord;}vec2 texCoordNegative = texCoord.xy;}vec4 col = texture2D(uSampler, texCoord);}int len = int(blur * 0.5) - 1;}float countFloat = float(len + 1);}float count = 1.;}for(int i = 0; i < 1000; ++i) {}if(i > len)}break;".split( "}" ); this.fragmentSrcPart2_Horizontal = "texCoord.x += uvData.z;{if(texCoord.x <= uvData.y){col +=texture2D(uSampler, texCoord);{texCoordNegative.x -= uvData.z;{if(texCoordNegative.x >= 0.0){col += texture2D(uSampler, texCoordNegative);".split( "{" ); this.fragmentSrcPart2_Vertical = "texCoord.y += uvData.w;{if(texCoord.y <= uvData.y){col +=texture2D(uSampler, texCoord);{texCoordNegative.y -= uvData.w;{if(texCoordNegative.y >= 0.0){col += texture2D(uSampler, texCoordNegative);".split( "{" ); this.fragmentSrcPart2_DirectionVector = "texCoord.xy += uvData.zw;{if(texCoord.x >= 0.0 && texCoord.x <= uvData.x && texCoord.y >= 0.0 && texCoord.y <= uvData.y){col +=texture2D(uSampler, texCoord);{texCoordNegative.xy -= uvData.zw;{if(texCoordNegative.x >= 0.0 && texCoordNegative.x <= uvData.x && texCoordNegative.y >= 0.0 && texCoordNegative.y <= uvData.y){col += texture2D(uSampler, texCoordNegative);".split( "{" ); this.fragmentSrcPart3 = ["count += 2.;", "}", "gl_FragColor = col / count;", "}"]; this.fragmentSrc = null; this.update = function () { this.smoothedBlur += this._lowPassFilterFactor * (this.blur - this.smoothedBlur); this.smoothedBlur != this.appliedBlur && ((this.appliedBlur = this.smoothedBlur), (this.uniforms.blur.value = this.appliedBlur)); }; }; a.MotionBlurFilter.prototype = Object.create(a.AbstractFilter.prototype); a.MotionBlurFilter.prototype.constructor = a.MotionBlurFilter; Object.defineProperty(a.MotionBlurFilter.prototype, "blur", { get: function () { return this._blur; }, set: function (a) { this.rawBlurBackup = a; this._blur = a / this.texelStep; }, }); Object.defineProperty(a.MotionBlurFilter.prototype, "texelStep", { get: function () { return this._texelStep; }, set: function (a) { this._texelStep = a; 0 < this.rawBlurBackup && (this.blur = this.rawBlurBackup); }, }); Object.defineProperty(a.MotionBlurFilter.prototype, "motionBlurDirection", { get: function () { return this.direction; }, set: function (a) { this.direction = a; 0 != this.direction.y && (this.direction.y *= -1); 0 == this.direction.x && 0 != this.direction.y && (this.fragmentSrc = [].concat(this.fragmentSrcPart1).concat(this.fragmentSrcPart2_Vertical).concat(this.fragmentSrcPart3)); this.fragmentSrc = 0 != this.direction.x && 0 == this.direction.y ? [].concat(this.fragmentSrcPart1).concat(this.fragmentSrcPart2_Horizontal).concat(this.fragmentSrcPart3) : [].concat(this.fragmentSrcPart1).concat(this.fragmentSrcPart2_DirectionVector).concat(this.fragmentSrcPart3); }, }); Object.defineProperty(a.MotionBlurFilter.prototype, "lowPassFilterFactor", { get: function () { return this._lowPassFilterFactor; }, set: function (a) { this._lowPassFilterFactor = 1 - a; }, }); a.InvertFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, invert: { type: "1f", value: 1 }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform float invert;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "vec4 diffuse = texture2D(uSampler, vTextureCoord);", "gl_FragColor = diffuse;", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "gl_FragColor.rgb = mix( (vec3(1) - gl_FragColor.rgb) * gl_FragColor.a, gl_FragColor.rgb, 1.0 - invert);", "if(map < 1.0)", "gl_FragColor.rgb = gl_FragColor.rgb * map + (1.0 - map) * diffuse.rgb;", "}", "}", ]; }; a.InvertFilter.prototype = Object.create(a.AbstractFilter.prototype); a.InvertFilter.prototype.constructor = a.InvertFilter; Object.defineProperty(a.InvertFilter.prototype, "invert", { get: function () { return this.uniforms.invert.value; }, set: function (a) { this.uniforms.invert.value = a; }, }); Object.defineProperty(a.InvertFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.InvertFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.InvertFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.InvertFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.FishEyeFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, scaleX: { type: "1f", value: 1 }, scaleY: { type: "1f", value: 1 }, distortion: { type: "2f", value: { x: 0, y: 0 } }, aspectratio: { type: "1f", value: 1 }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform float aspectratio;", "uniform vec2 distortion;", "uniform float scaleX;", "uniform float scaleY;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "uniform vec2 halfUVSize;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "float rsq = 0.0;", "if (aspectratio < 1.0) {", "rsq = pow((vTextureCoord.x - halfUVSize.x) * aspectratio, 2.0) + pow(vTextureCoord.y - halfUVSize.y, 2.0);", "} else {", "rsq = pow(vTextureCoord.x - halfUVSize.x, 2.0) + pow((vTextureCoord.y - halfUVSize.y) / aspectratio, 2.0);", "}", "vec2 coord = vec2(halfUVSize.x + (vTextureCoord.x - halfUVSize.x) * (1.0 + distortion.x * rsq) / scaleX,", "halfUVSize.y + (vTextureCoord.y - halfUVSize.y) * (1.0 + distortion.y * rsq) / scaleY);", "if (coord.x >= 0.0 && coord.x <= 1.0 && coord.y >= 0.0 && coord.y <= 1.0) {", "gl_FragColor = texture2D(uSampler, coord);", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "} else if(map < 1.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord) * (1.0 - map);", "} else {", "discard;", "}", "}", "}", ]; }; a.FishEyeFilter.prototype = Object.create(a.AbstractFilter.prototype); a.FishEyeFilter.prototype.constructor = a.FishEyeFilter; Object.defineProperty(a.FishEyeFilter.prototype, "aspectratio", { get: function () { return this.uniforms.aspectratio.value; }, set: function (a) { this.uniforms.aspectratio.value = a; var d = 0, e = this.uniforms.distortion.value, d = 1 > a ? (Math.pow(0.5 * a, 2) + Math.pow(0.5, 2)) / (2 / a) : (Math.pow(0.5, 2) + Math.pow(0.5 / a, 2)) / (2 * a); scaleX = 0 > e.x ? (1 / (1 - e.x * d)) * this.scale.x : (1 + e.x * d) * this.scale.x; scaleY = 0 > e.y ? (1 / (1 - e.y * d)) * this.scale.y : (1 + e.y * d) * this.scale.y; this.uniforms.scaleX.value = scaleX; this.uniforms.scaleY.value = scaleY; this.dirty = !0; }, }); Object.defineProperty(a.FishEyeFilter.prototype, "distortion", { get: function () { return this.uniforms.distortion.value; }, set: function (a) { this.uniforms.distortion.value = a; this.dirty = !0; }, }); Object.defineProperty(a.FishEyeFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.FishEyeFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.FishEyeFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.FishEyeFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.ColorTransformFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, hasMatrix: { type: "1f", value: 0 }, matrix: { type: "mat4", value: [0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0, 0, 0, 1] }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform sampler2D uSampler;", "uniform float hasMatrix;", "uniform mat4 matrix;", "uniform sampler2D uMaskTexture;", "uniform vec2 halfUVSize;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "void main(void) {", "vec4 c = texture2D(uSampler, vTextureCoord);", "if(c.a == 0.0)", "discard;", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map > 0.0 && hasMatrix > 0.0) {", "gl_FragColor = c * matrix;", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + c * (1.0 - map);", "} else {", "gl_FragColor = c;", "}", "}", ]; }; a.ColorTransformFilter.prototype = Object.create(a.AbstractFilter.prototype); a.ColorTransformFilter.prototype.constructor = a.ColorTransformFilter; Object.defineProperty(a.ColorTransformFilter.prototype, "matrix", { get: function () { return this.uniforms.matrix.value; }, set: function (a) { null != a ? ((this.uniforms.matrix.value = a), (this.uniforms.hasMatrix.value = 1)) : ((this.uniforms.hasMatrix.value = 0), (this.uniforms.matrix.value = [0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0.33, 0.33, 0.33, 0, 0, 0, 0, 1])); }, }); Object.defineProperty(a.ColorTransformFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.ColorTransformFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.ColorTransformFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.ColorTransformFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.Transform3DFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { tMatrix: { type: "mat4", value: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] }, filterArea: { type: "4fv", value: new a.Float32Array([0, 0, 0, 0]) }, tMatrixIsFinal: { type: "1f", value: 0 } }; this.vertexSrc = [ "attribute vec2 aVertexPosition;", "attribute vec2 aTextureCoord;", "attribute vec4 aColor;", "uniform vec2 projectionVector;", "uniform vec2 offsetVector;", "uniform mat4 tMatrix;", "uniform vec4 filterArea;", "uniform float tMatrixIsFinal;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "const vec2 center = vec2(-1.0, 1.0);", "void main(void) {", "if(tMatrixIsFinal == 1.0) {", "gl_Position = tMatrix * vec4(aVertexPosition, 0.0, 1.0);", "} else {", "vec2 axisOffset = vec2((projectionVector.x - (filterArea.x + (filterArea.z * 0.5))) / (projectionVector.x * 2.0) * 2.0, -((-projectionVector.y - (filterArea.y + (filterArea.w * 0.5))) / (-projectionVector.y * 2.0) * 2.0));", "vec4 temp = tMatrix * vec4(((aVertexPosition + offsetVector) / projectionVector) + center + axisOffset, 0.0, 1.0);", "temp.xy -= axisOffset.xy;", "gl_Position = temp;", "}", "vTextureCoord = aTextureCoord;", "vec3 color = mod(vec3(aColor.y/65536.0, aColor.y/256.0, aColor.y), 256.0) / 256.0;", "vColor = vec4(color * aColor.x, aColor.x);", "}", ]; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform vec4 dimensions;", "uniform sampler2D uSampler;", "void main(void) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "}", ]; this.mat4_multiply = function (a, d, e) { var f = d[0], g = d[1], k = d[2], m = d[3], n = d[4], p = d[5], q = d[6], r = d[7], t = d[8], u = d[9], B = d[10], A = d[11], C = d[12], E = d[13], F = d[14]; d = d[15]; var D = e[0], H = e[1], I = e[2], L = e[3]; a[0] = D * f + H * n + I * t + L * C; a[1] = D * g + H * p + I * u + L * E; a[2] = D * k + H * q + I * B + L * F; a[3] = D * m + H * r + I * A + L * d; D = e[4]; H = e[5]; I = e[6]; L = e[7]; a[4] = D * f + H * n + I * t + L * C; a[5] = D * g + H * p + I * u + L * E; a[6] = D * k + H * q + I * B + L * F; a[7] = D * m + H * r + I * A + L * d; D = e[8]; H = e[9]; I = e[10]; L = e[11]; a[8] = D * f + H * n + I * t + L * C; a[9] = D * g + H * p + I * u + L * E; a[10] = D * k + H * q + I * B + L * F; a[11] = D * m + H * r + I * A + L * d; D = e[12]; H = e[13]; I = e[14]; L = e[15]; a[12] = D * f + H * n + I * t + L * C; a[13] = D * g + H * p + I * u + L * E; a[14] = D * k + H * q + I * B + L * F; a[15] = D * m + H * r + I * A + L * d; return a; }; this.mat4_project = function (a, d, e, f, g) { d = 1 / Math.tan_1(0.5 * d); g /= g - f; a[0] = d; a[1] = 0; a[2] = 0; a[3] = 0; a[4] = 0; a[5] = d / e; a[6] = 0; a[7] = 0; a[8] = 0; a[9] = 0; a[10] = g; a[11] = 1; a[12] = 0; a[13] = 0; a[14] = -g * f; a[15] = 0; return a; }; }; a.Transform3DFilter.prototype = Object.create(a.AbstractFilter.prototype); a.Transform3DFilter.prototype.constructor = a.Transform3DFilter; Object.defineProperty(a.Transform3DFilter.prototype, "fov", { get: function () { return this._fov; }, set: function (a) { this.dirty = !0; this._fov = a; this._transformMatrix && (this.transformMatrix = this._transformMatrix); }, }); Object.defineProperty(a.Transform3DFilter.prototype, "transformMatrix", { get: function () { return this._transformMatrix; }, set: function (a) { this.dirty = !0; this._transformMatrix = a; a = this._transformMatrix.slice(); if (this.preappliedProjectionMatrix) (this.uniforms.tMatrix.value = a), (this.uniforms.tMatrixIsFinal.value = 1); else { a[14] = 1; var d = this.uniforms.tMatrix.value || []; if (!this.projectMatrix || this._lastFov != this._fov) { var e = RENDERER.width / RENDERER.height; this._lastFov = this._fov; this.projectMatrix = this.mat4_project([], this._fov, 1 / e, 1e-4, 1e3); var f = Math.tan(0.5 * this._fov) * (1 / e); this.scaleMatrix = [f * e, 0, 0, 0, 0, f, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1]; } this.mat4_multiply(d, this.projectMatrix, a); this.mat4_multiply(d, d, this.scaleMatrix); this.uniforms.tMatrix.value = d; this.uniforms.tMatrixIsFinal.value = 0; } }, }); a.NormalMapFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { normalMap: { type: "sampler2D", value: null }, lightColor: { type: "4fv", value: [1, 1, 1, 1] }, ambientColor: { type: "4fv", value: [1, 1, 1, 0.4] }, offset: { type: "2fv", value: [0, 0] }, lightPos: { type: "3fv", value: [0.5, 0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, mapSet: { type: "1f", value: 0 }, mapRotation: { type: "1f", value: 0 }, }; this.fragmentSrc = [ "precision mediump float;", "uniform vec4 lightColor;", "uniform vec4 ambientColor;", "varying vec2 vTextureCoord;", "uniform sampler2D normalMap;", "uniform sampler2D uSampler;", "uniform vec2 halfUVSize;", "uniform vec2 offset;", "uniform vec3 lightPos;", "uniform float mapSet;", "uniform float mapRotation;", "const vec3 falloff = vec3(0.0, 1.0, 0.2);", "void main(void) {", "if(mapSet == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec2 mapCords = vTextureCoord.xy;", "vec4 color = texture2D(uSampler, vTextureCoord);", "vec3 nColor = texture2D(normalMap, vTextureCoord).rgb;", "mapCords = vec2(vTextureCoord.x / (halfUVSize.x * 2.0), 1.0-vTextureCoord.y / (halfUVSize.y * 2.0));", "float rsin = 0.0;", "float rcos = 0.0;", "if(mapRotation != 0.0) {", "rsin = sin(mapRotation);", "rcos = cos(mapRotation);", "float x = mapCords.x - 0.5;", "float y = mapCords.y - 0.5;", "mapCords.x = x * rcos - y * rsin + 0.5;", "mapCords.y = x * rsin + y * rcos + 0.5;", "}", "mapCords -= offset;", "vec3 NormalMap = texture2D(normalMap, mapCords).rgb;vec2 lightP = lightPos.xy;if(mapRotation != 0.0) {float x = lightP.x - 0.5;float y = lightP.y - 0.5;lightP.x = x * rcos - y * rsin + 0.5;lightP.y = x * rsin + y * rcos + 0.5;}vec4 diffuseColor = texture2D(uSampler, vTextureCoord);vec3 LightDir = vec3(lightP.x - mapCords.x, lightP.y - mapCords.y, lightPos.z);float D = length(LightDir);", "vec3 N = normalize(NormalMap * 2.0 - 1.0);", "vec3 L = normalize(LightDir);", "vec3 diffuse = (lightColor.rgb * lightColor.a) * max(dot(N, L), 0.0);", "vec3 ambient = ambientColor.rgb * ambientColor.a;", "float attenuation = 1.0 / ( falloff.x + (falloff.y*D) + (falloff.z*D*D) );", "vec3 intensity = ambient + diffuse * attenuation;", "vec3 FinalColor = diffuseColor.rgb * intensity;", "gl_FragColor = vec4(FinalColor, diffuseColor.a);", "}", "}", ]; }; a.NormalMapFilter.prototype = Object.create(a.AbstractFilter.prototype); a.NormalMapFilter.prototype.constructor = a.NormalMapFilter; Object.defineProperty(a.NormalMapFilter.prototype, "lightPos", { set: function (a) { this.uniforms.lightPos.value[0] = a[0]; this.uniforms.lightPos.value[1] = a[1]; this.uniforms.lightPos.value[2] = a[2]; this.dirty = !0; }, }); Object.defineProperty(a.NormalMapFilter.prototype, "lightColor", { set: function (a) { this.uniforms.lightColor.value[0] = a[0]; this.uniforms.lightColor.value[1] = a[1]; this.uniforms.lightColor.value[2] = a[2]; this.uniforms.lightColor.value[3] = a[3]; this.dirty = !0; }, }); Object.defineProperty(a.NormalMapFilter.prototype, "ambientColor", { set: function (a) { this.uniforms.ambientColor.value[0] = a[0]; this.uniforms.ambientColor.value[1] = a[1]; this.uniforms.ambientColor.value[2] = a[2]; this.uniforms.ambientColor.value[3] = a[3]; this.dirty = !0; }, }); Object.defineProperty(a.NormalMapFilter.prototype, "map", { set: function (a) { this.uniforms.normalMap.value = a; this.uniforms.mapSet.value = null != a ? 1 : 0; null != a ? ((this.mapDimensionsX = a.width), (this.mapDimensionsY = a.height)) : (this.mapDimensionsY = this.mapDimensionsX = 0); this.dirty = !0; }, }); Object.defineProperty(a.NormalMapFilter.prototype, "mapRotation", { set: function (a) { this.uniforms.mapRotation.value = a; this.dirty = !0; }, }); Object.defineProperty(a.NormalMapFilter.prototype, "offset", { set: function (a) { this.uniforms.offset.value[0] = a[0]; this.uniforms.offset.value[1] = a[1]; this.dirty = !0; }, }); a.TwistFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, radius: { type: "1f", value: 0.5 }, angle: { type: "1f", value: 5 }, offset: { type: "2f", value: { x: 0.5, y: 0.5 } }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform vec4 dimensions;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "uniform vec2 halfUVSize;", "uniform float radius;", "uniform float angle;", "uniform vec2 offset;", "void main(void) {", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord);", "} else {", "vec2 ofst = offset * halfUVSize * 2.0;", "vec2 coord = vTextureCoord - ofst;", "float distance = length(coord);", "if (distance < radius) {", "float ratio = (radius - distance) / radius;", "float angleMod = ratio * ratio * angle;", "float s = sin(angleMod);", "float c = cos(angleMod);", "coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);", "}", "if (coord.x + ofst.x >= 0.0 && coord.x + ofst.x <= 1.0 && coord.y + ofst.y >= 0.0 && coord.y + ofst.y <= 1.0) {", "gl_FragColor = texture2D(uSampler, coord + ofst);", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + texture2D(uSampler, vTextureCoord) * (1.0 - map);", "} else if(map < 1.0) {", "gl_FragColor = texture2D(uSampler, vTextureCoord) * (1.0 - map);", "} else {", "discard;", "}", "}", "}", ]; }; a.TwistFilter.prototype = Object.create(a.AbstractFilter.prototype); a.TwistFilter.prototype.constructor = a.TwistFilter; Object.defineProperty(a.TwistFilter.prototype, "offset", { get: function () { return this.uniforms.offset.value; }, set: function (a) { this.dirty = !0; this.uniforms.offset.value = a; }, }); Object.defineProperty(a.TwistFilter.prototype, "radius", { get: function () { return this.uniforms.radius.value; }, set: function (a) { this.dirty = !0; this.uniforms.radius.value = a; }, }); Object.defineProperty(a.TwistFilter.prototype, "angle", { get: function () { return this.uniforms.angle.value; }, set: function (a) { this.dirty = !0; this.uniforms.angle.value = a; }, }); Object.defineProperty(a.TwistFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.TwistFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.TwistFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.TwistFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); a.DotScreenFilter = function () { a.AbstractFilter.call(this); this.passes = [this]; this.uniforms = { uMaskTexture: { type: "sampler2D", value: null }, uMaskTextureSet: { type: "1f", value: 0 }, uMaskTextureInvert: { type: "1f", value: 0 }, uMaskTextureScale: { type: "2fv", value: [1, 1] }, uMaskTextureOffset: { type: "2fv", value: [0.5, 0.5] }, halfUVSize: { type: "2fv", value: [0, 0] }, scale: { type: "1f", value: 1.047 }, angle: { type: "1f", value: 5 }, dimensions: { type: "4fv", value: [0, 0, 0, 0] }, }; this.fragmentSrc = [ "precision mediump float;", "varying vec2 vTextureCoord;", "varying vec4 vColor;", "uniform vec4 dimensions;", "uniform sampler2D uSampler;", "uniform sampler2D uMaskTexture;", "uniform float uMaskTextureSet;", "uniform float uMaskTextureInvert;", "uniform vec2 uMaskTextureScale;", "uniform vec2 uMaskTextureOffset;", "uniform vec2 halfUVSize;", "uniform float angle;", "uniform float scale;", "float pattern() {", "float s = sin(angle), c = cos(angle);", "vec2 tex = vTextureCoord * dimensions.xy;", "vec2 point = vec2(", "c * tex.x - s * tex.y,", "s * tex.x + c * tex.y", ") * scale;", "return (sin(point.x) * sin(point.y)) * 4.0;", "}", "void main() {", "vec4 color = texture2D(uSampler, vTextureCoord);", "float map = 1.0;", "if(uMaskTextureSet == 1.0) {", "float mapRangeX = 1.0 / uMaskTextureScale.x;", "float mapLeft = (1.0 - mapRangeX) * 0.5;", "float mapRangeY = 1.0 / uMaskTextureScale.y;", "float mapTop = (1.0 - mapRangeY) * 0.5;", "map = texture2D(uMaskTexture, vec2(mapLeft - ((uMaskTextureOffset.x - 0.5) / uMaskTextureScale.x) + ((vTextureCoord.x / (halfUVSize.x * 2.0)) * mapRangeX), mapTop + ((uMaskTextureOffset.y - 0.5) / uMaskTextureScale.y) + ((vTextureCoord.y / (halfUVSize.y * 2.0)) * mapRangeY))).r;", "if(uMaskTextureInvert == 1.0) map = 1.0 - map;", "}", "if(map == 0.0) {", "gl_FragColor = color;", "} else {", "float average = (color.r + color.g + color.b) / 3.0;", "gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);", "if(map < 1.0)", "gl_FragColor = gl_FragColor * map + color * (1.0 - map);", "}", "}", ]; }; a.DotScreenFilter.prototype = Object.create(a.AbstractFilter.prototype); a.DotScreenFilter.prototype.constructor = a.DotScreenFilter; Object.defineProperty(a.DotScreenFilter.prototype, "scale", { get: function () { return this.uniforms.scale.value; }, set: function (a) { this.dirty = !0; this.uniforms.scale.value = Math.PI / a; }, }); Object.defineProperty(a.DotScreenFilter.prototype, "angle", { get: function () { return this.uniforms.angle.value; }, set: function (a) { this.dirty = !0; this.uniforms.angle.value = a; }, }); Object.defineProperty(a.DotScreenFilter.prototype, "maskTexture", { get: function () { return this.uniforms.uMaskTexture.value; }, set: function (a) { this.uniforms.uMaskTexture.value = a; this.uniforms.uMaskTextureSet.value = null != a ? 1 : 0; }, }); Object.defineProperty(a.DotScreenFilter.prototype, "maskTextureInvert", { get: function () { return this.uniforms.uMaskTextureInvert.value; }, set: function (a) { this.uniforms.uMaskTextureInvert.value = a; }, }); Object.defineProperty(a.DotScreenFilter.prototype, "maskTextureOffset", { get: function () { return this.uniforms.uMaskTextureOffset.value; }, set: function (a) { this.uniforms.uMaskTextureOffset.value = a; this.dirty = !0; }, }); Object.defineProperty(a.DotScreenFilter.prototype, "maskTextureScale", { get: function () { return this.uniforms.uMaskTextureScale.value; }, set: function (a) { this.uniforms.uMaskTextureScale.value = a; this.dirty = !0; }, }); "undefined" !== typeof exports ? ("undefined" !== typeof module && module.exports && (exports = module.exports = a), (exports.PIXI = a)) : "undefined" !== typeof define && define.amd ? define(a) : (this.PIXI = a); }.call(this)); (function (a) { function b() { this.fontFamily = "fjs" + ((999999 * Math.random()) | 0); } if (!Object.defineProperty) throw "Font.js requires Object.defineProperty, which this browser does not support."; if (!document.createElement("canvas").getContext) throw "Font.js requires and the Canvas2D API, which this browser does not support."; (function (a) { function b(a, d) { return this.slice(a, d); } function f(a, b) { var d, e = a.length; 2 > arguments.length && (b = 0); for (d = 0; d < e; ++d, ++b) this[b] = a[d] & 255; } function g(a) { var d, g; if ("number" === typeof a) for (d = Array(a), g = 0; g < a; ++g) d[g] = 0; else d = a.slice(0); d.subarray = b; d.buffer = d; d.byteLength = d.length; d.set = f; "object" === typeof a && a.buffer && (d.buffer = a.buffer); return d; } try { new Uint8Array(1); return; } catch (k) {} a.Uint8Array = g; a.Uint32Array = g; a.Int32Array = g; })(a); (function (a) { a.opera || "response" in XMLHttpRequest.prototype || "mozResponseArrayBuffer" in XMLHttpRequest.prototype || "mozResponse" in XMLHttpRequest.prototype || "responseArrayBuffer" in XMLHttpRequest.prototype || Object.defineProperty(XMLHttpRequest.prototype, "response", { get: a.VBArray ? function () { return new Uint8Array(new VBArray(this.responseBody).toArray()); } : function () { this.responseBody; }, }); })(a); a.btoa || (a.btoa = function (a) { var b, f, g, k, m = 0, n = 0, p = "", p = []; if (!a) return a; do (b = a.charCodeAt(m++)), (f = a.charCodeAt(m++)), (g = a.charCodeAt(m++)), (k = (b << 16) | (f << 8) | g), (b = (k >> 18) & 63), (f = (k >> 12) & 63), (g = (k >> 6) & 63), (k &= 63), (p[n++] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g) + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(k)); while (m < a.length); p = p.join(""); a = a.length % 3; return (a ? p.slice(0, a - 3) : p) + "===".slice(a || 3); }); b.prototype.url = ""; b.prototype.format = ""; b.prototype.data = ""; b.prototype.base64 = "AAEAAAAKAIAAAwAgT1MvMgAAAAAAAACsAAAAWGNtYXAAAAAAAAABBAAAACxnbHlmAAAAAAAAATAAAAAQaGVhZAAAAAAAAAFAAAAAOGhoZWEAAAAAAAABeAAAACRobXR4AAAAAAAAAZwAAAAIbG9jYQAAAAAAAAGkAAAACG1heHAAAAAAAAABrAAAACBuYW1lAAAAAAAAAcwAAAAgcG9zdAAAAAAAAAHsAAAAEAAEAAEAZAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAABAAMAAQAAAAwABAAgAAAABAAEAAEAAABB//8AAABB////wAABAAAAAAABAAAAAAAAAAAAAAAAMQAAAQAAAAAAAAAAAABfDzz1AAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAEAAgAAAAAAAAABAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAIAAAAAQAAAAIAAQABAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIAHgADAAEECQABAAAAAAADAAEECQACAAIAAAAAAAEAAAAAAAAAAAAAAAAAAA=="; b.prototype.metrics = { quadsize: 0, leading: 0, ascent: 0, descent: 0, weightclass: 400 }; b.prototype.systemfont = !1; b.prototype.loaded = !1; b.prototype.onload = function () {}; b.prototype.onerror = function () {}; b.prototype.canvas = !1; b.prototype.context = !1; b.prototype.validate = function (a, b, f, g, k) { if (!1 !== k && 0 > k) this.onerror("Requested system font '" + this.fontFamily + "' could not be loaded (it may not be installed)."); else 0 < getComputedStyle(a, null).getPropertyValue("width").replace("px", "") ? (document.head.removeChild(b), document.body.removeChild(a), (this.loaded = !0), this.onload()) : (console.log("timing out"), setTimeout(function () { g.validate(a, b, f, g, !1 === k ? !1 : k - 50); }, 1e3)); }; b.prototype.ondownloaded = function () { var a = this, b = function (a) { return String.fromCharCode(a); }, f = function (a) { if (256 > a) return b(0) + b(a); var d = a & 255; return b(a >> 8) + b(d); }, g = function (a, b) { var d = 1 === a >> 7, e; e = 256 * (a & 127) + b; return d ? e - 32768 : e; }, k = b(0) + b(1) + b(0) + b(0), m = this.data, n = b(m[0]) + b(m[1]) + b(m[2]) + b(m[3]), n = (k = n === k) ? !1 : "OTTO" === n; if (k) this.format = "truetype"; else if (n) this.format = "opentype"; else { a.onerror("Error: file at " + this.url + " cannot be interpreted as OpenType font."); return; } for (var n = 256 * m[4] + m[5], p = 12 + 16 * n, q = {}, k = 12; k < p; k += 16) (n = b(m[k]) + b(m[k + 1]) + b(m[k + 2]) + b(m[k + 3])), (q[n] = { name: n, checksum: 16777216 * m[k + 4] + 65536 * m[k + 5] + 256 * m[k + 6] + m[k + 7], offset: 16777216 * m[k + 8] + 65536 * m[k + 9] + 256 * m[k + 10] + m[k + 11], length: 16777216 * m[k + 12] + 65536 * m[k + 13] + 256 * m[k + 14] + m[k + 15], }); p = function (b) { return q[b] ? b : (a.onerror("Error: font is missing the required OpenType '" + b + "' table."), !1); }; n = p("head"); if (!1 !== n) { k = q[n].offset; q[n].version = "" + m[k] + m[k + 1] + m[k + 2] + m[k + 3]; var r = 256 * m[k + 18] + m[k + 19]; this.metrics.quadsize = r; n = p("hhea"); if ( !1 !== n && ((k = q[n].offset), (q[n].version = "" + m[k] + m[k + 1] + m[k + 2] + m[k + 3]), (this.metrics.ascent = g(m[k + 4], m[k + 5]) / r), (this.metrics.descent = g(m[k + 6], m[k + 7]) / r), (this.metrics.leading = g(m[k + 8], m[k + 9]) / r), (n = p("OS/2")), !1 !== n && ((k = q[n].offset), (q[n].version = "" + m[k] + m[k + 1]), (this.metrics.weightclass = 256 * m[k + 4] + m[k + 5]), (n = p("cmap")), !1 !== n)) ) { k = q[n].offset; q[n].version = "" + m[k] + m[k + 1]; for (var n = 256 * m[k + 2] + m[k + 3], t, u, p = !1, g = 0; g < n; g++) (t = k + 4 + 8 * g), (r = 256 * m[t] + m[t + 1]), (u = 256 * m[t + 2] + m[t + 3]), (t = 16777216 * m[t + 4] + 65536 * m[t + 5] + 256 * m[t + 6] + m[t + 7]), 3 === r && 1 === u && (p = t); g = "A"; if (!1 !== p && ((k += p), (n = 256 * m[k] + m[k + 1]), 4 === n)) { n = k + 14; p = k + 14 + ((256 * m[k + 6] + m[k + 7]) / 2) * 2; for (k = !1; n < p; n += 2) { k = 256 * m[n] + m[n + 1]; if (-1 === [9, 10, 11, 12, 13, 32, 133, 160, 5760, 6158, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288].indexOf(k)) break; k = !1; } 0 != k && ((g = String.fromCharCode(k)), (m = (-(k - 1) + 65536) % 65536), (f = b(0) + f(k) + f(65535) + f(0) + f(k) + f(65535) + f(m) + f(1)), (f = btoa(f)), (this.base64 = this.base64.substring(0, 380) + f + this.base64.substring(380 + f.length))); } this.bootstrapValidation(g, 150); } } }; b.prototype.bootstrapValidation = function (a, b) { var f = this.fontFamily + " testfont", g = document.createElement("style"); g.setAttribute("type", "text/css"); g.innerHTML = "@font-face {\n font-family: '" + f + "';\n src: url('data:application/x-font-ttf;base64," + this.base64 + "')\n format('truetype');}"; document.head.appendChild(g); var k = !1; this.systemfont || ((k = this.toStyleNode()), document.head.appendChild(k)); var m = document.createElement("p"); m.style.cssText = "position: absolute; top: 0; left: 0; opacity: 0;"; m.style.fontFamily = "'" + this.fontFamily + "', '" + f + "'"; m.innerHTML = a + a + a + a + a + a + a + a + a + a; document.body.appendChild(m); if ("undefined" === typeof getComputedStyle) this.onload(), error("Error: getComputedStyle is not supported by this browser.\nConsequently, Font.onload() cannot be trusted."); else { var f = this.systemfont ? 1e3 : this.metrics.quadsize, n = document.createElement("canvas"); n.width = f; n.height = f; this.canvas = n; n = n.getContext("2d"); n.font = "1em '" + this.fontFamily + "'"; n.fillStyle = "white"; n.fillRect(-1, -1, f + 2, f + 2); n.fillStyle = "black"; n.fillText("test text", 50, f / 2); this.context = n; var p = this; setTimeout( function () { p.validate(m, g, k, p, b); }, DEVICE.mobile ? 3e3 : 1e3 ); } }; b.prototype.processSystemFont = function () { this.systemfont = !0; this.metrics = !1; this.bootstrapValidation("A", 10); }; b.prototype.loadFont = function () { var a = this; if (-1 === this.url.indexOf(".")) setTimeout(function () { a.processSystemFont(); }, 10); else { var b = new XMLHttpRequest(); b.open("GET", a.url, !0); b.responseType = "arraybuffer"; b.onload = function (f) { if ((f = b.response)) (a.data = new Uint8Array(f)), a.ondownloaded(); else a.onerror("Error downloading font resource from " + a.url); }; b.send(null); } }; b.prototype.styleNode = !1; b.prototype.toStyleNode = function () { if (this.styleNode) return this.styleNode; this.styleNode = document.createElement("style"); this.styleNode.type = "text/css"; var a; a = "@font-face {\n" + (" font-family: '" + this.fontFamily + "';\n"); a += " src: url('" + this.url + "') format('" + this.format + "');\n"; this.styleNode.innerHTML = a + "}"; return this.styleNode; }; b.prototype.measureText = function (a, b) { if (!this.loaded) return this.onerror("measureText() was called while the font was not yet loaded"), !1; this.context.font = b + "px '" + this.fontFamily + "'"; var f = this.context.measureText(a); f.fontsize = b; f.ascent = 0; f.descent = 0; f.bounds = { minx: 0, maxx: f.width, miny: 0, maxy: 0 }; f.height = 0; var g = []; g.push(a); var k = g.length, m; for (m = 0; m < k; m++) this.measureSegment(g[m], b, f); return f; }; b.prototype.measureSegment = function (a, b, f) { var g, k = document.createElement("div"); k.style.position = "absolute"; k.style.opacity = 0; k.style.font = b + "px '" + this.fontFamily + "'"; k.innerHTML = a; for (g = 1; 10 > g; g++) k.innerHTML += "
" + a; document.body.appendChild(k); f.leading = 1.2 * b; g = document.defaultView.getComputedStyle(k, null).getPropertyValue("height"); g = g.replace("px", ""); g >= 10 * b && (f.leading = (g / 10) | 0); document.body.removeChild(k); if (/^\s*$/.test(a)) return f; g = this.context; var m = this.systemfont ? 1e3 : this.metrics.quadsize, k = m / 2, n = (m - f.width) / 2; n !== (n | 0) && (n |= 0); g.fillStyle = "white"; g.fillRect(-50, -50, m + 100, m + 100); g.fillStyle = "black"; g.fillText(a, n, k); a = (f.width + 50) | 0; var p = 4 * b; b = g.getImageData(n - 25, k - p / 2, a, p).data; k = g = 0; n = 4 * a; m = b.length; for (p /= 2; ++g < m && 255 === b[g]; ); var q = (g / n) | 0; for (g = m - 1; 0 < --g && 255 === b[g]; ); for (var r = (g / n) | 0, k = (g = 0); k < a && 255 === b[g]; ) (g += n), g >= m && (k++, (g = g - m + 4)); var t = k, u = 1; g = m - 3; for (k = 0; k < a && 255 === b[g]; ) (g -= n), 0 > g && (k++, (g = m - 3 - 4 * u++)); f.ascent = p - q; f.descent = r - p; f.bounds = { minx: t - 25, maxx: a - k - 25, miny: -f.descent, maxy: f.ascent }; f.height = 1 + (r - q); return f; }; Object.defineProperty(b.prototype, "src", { set: function (a) { this.url = a; this.loadFont(); }, }); "undefined" !== typeof define ? define(function () { return b; }) : (a.Font = b); })(window); function AppMeasurement() { var a = this; a.version = "1.3.2"; var b = window; b.s_c_in || ((b.s_c_il = []), (b.s_c_in = 0)); a._il = b.s_c_il; a._in = b.s_c_in; a._il[a._in] = a; b.s_c_in++; a._c = "s_c"; var d = b.ob; d || (d = null); var e = b, f, g; try { for (f = e.parent, g = e.location; f && f.location && g && "" + f.location != "" + g && e.location && "" + f.location != "" + e.location && f.location.host == g.host; ) (e = f), (f = e.parent); } catch (k) {} a.Za = function (a) { try { console.log(a); } catch (b) {} }; a.oa = function (a) { return "" + parseInt(a) == "" + a; }; a.replace = function (a, b, d) { return !a || 0 > a.indexOf(b) ? a : a.split(b).join(d); }; a.escape = function (b) { var d, e; if (!b) return b; b = encodeURIComponent(b); for (d = 0; 7 > d; d++) (e = "+~!*()'".substring(d, d + 1)), 0 <= b.indexOf(e) && (b = a.replace(b, e, "%" + e.charCodeAt(0).toString(16).toUpperCase())); return b; }; a.unescape = function (b) { if (!b) return b; b = 0 <= b.indexOf("+") ? a.replace(b, "+", " ") : b; try { return decodeURIComponent(b); } catch (d) {} return unescape(b); }; a.Qa = function () { var d = b.location.hostname, e = a.fpCookieDomainPeriods, f; e || (e = a.cookieDomainPeriods); if (d && !a.ha && !/^[0-9.]+$/.test(d) && ((e = e ? parseInt(e) : 2), (e = 2 < e ? e : 2), (f = d.lastIndexOf(".")), 0 <= f)) { for (; 0 <= f && 1 < e; ) (f = d.lastIndexOf(".", f - 1)), e--; a.ha = 0 < f ? d.substring(f) : d; } return a.ha; }; a.c_r = a.cookieRead = function (b) { b = a.escape(b); var d = " " + a.d.cookie, e = d.indexOf(" " + b + "="), f = 0 > e ? e : d.indexOf(";", e); b = 0 > e ? "" : a.unescape(d.substring(e + 2 + b.length, 0 > f ? d.length : f)); return "[[B]]" != b ? b : ""; }; a.c_w = a.cookieWrite = function (b, d, e) { var f = a.Qa(), g = a.cookieLifetime, k; d = "" + d; g = g ? ("" + g).toUpperCase() : ""; e && "SESSION" != g && "NONE" != g && ((k = "" != d ? parseInt(g ? g : 0) : -60) ? ((e = new Date()), e.setTime(e.getTime() + 1e3 * k)) : 1 == e && ((e = new Date()), (k = e.getYear()), e.setYear(k + 5 + (1900 > k ? 1900 : 0)))); return b && "NONE" != g ? ((a.d.cookie = b + "=" + a.escape("" != d ? d : "[[B]]") + "; path=/;" + (e && "SESSION" != g ? " expires=" + e.toGMTString() + ";" : "") + (f ? " domain=" + f + ";" : "")), a.cookieRead(b) == d) : 0; }; a.D = []; a.C = function (b, d, e) { if (a.ia) return 0; a.maxDelay || (a.maxDelay = 250); var f = 0, g = new Date().getTime() + a.maxDelay, k = a.d.mb, m = ["webkitvisibilitychange", "visibilitychange"]; k || (k = a.d.nb); if (k && "prerender" == k) { if (!a.V) for (a.V = 1, e = 0; e < m.length; e++) a.d.addEventListener(m[e], function () { var b = a.d.mb; b || (b = a.d.nb); "visible" == b && ((a.V = 0), a.delayReady()); }); f = 1; g = 0; } else e || (a.r("_d") && (f = 1)); f && (a.D.push({ m: b, a: d, t: g }), a.V || setTimeout(a.delayReady, a.maxDelay)); return f; }; a.delayReady = function () { var b = new Date().getTime(), d = 0, e; for (a.r("_d") && (d = 1); 0 < a.D.length; ) { e = a.D.shift(); if (d && !e.t && e.t > b) { a.D.unshift(e); setTimeout(a.delayReady, parseInt(a.maxDelay / 2)); break; } a.ia = 1; a[e.m].apply(a, e.a); a.ia = 0; } }; a.setAccount = a.sa = function (b) { var d, e; if (!a.C("setAccount", arguments)) if (((a.account = b), a.allAccounts)) for (d = a.allAccounts.concat(b.split(",")), a.allAccounts = [], d.sort(), e = 0; e < d.length; e++) (0 != e && d[e - 1] == d[e]) || a.allAccounts.push(d[e]); else a.allAccounts = b.split(","); }; a.foreachVar = function (b, d) { var e, f, g, k, m = ""; g = f = ""; if (a.lightProfileID) (e = a.H), (m = a.lightTrackVars) && (m = "," + m + "," + a.Y.join(",") + ","); else { e = a.c; if (a.pe || a.linkType) if (((m = a.linkTrackVars), (f = a.linkTrackEvents), a.pe && ((g = a.pe.substring(0, 1).toUpperCase() + a.pe.substring(1)), a[g]))) (m = a[g].lb), (f = a[g].kb); m && (m = "," + m + "," + a.A.join(",") + ","); f && m && (m += ",events,"); } d && (d = "," + d + ","); for (f = 0; f < e.length; f++) (g = e[f]), (k = a[g]) && (!m || 0 <= m.indexOf("," + g + ",")) && (!d || 0 <= d.indexOf("," + g + ",")) && b(g, k); }; a.J = function (b, d, e, f, g) { var k = "", m, A, C, E, F = 0; "contextData" == b && (b = "c"); if (d) { for (m in d) if (!(Object.prototype[m] || (g && m.substring(0, g.length) != g)) && d[m] && (!e || 0 <= e.indexOf("," + (f ? f + "." : "") + m + ","))) { C = !1; if (F) for (A = 0; A < F.length; A++) m.substring(0, F[A].length) == F[A] && (C = !0); if (!C && ("" == k && (k += "&" + b + "."), (A = d[m]), g && (m = m.substring(g.length)), 0 < m.length)) if (((C = m.indexOf(".")), 0 < C)) (A = m.substring(0, C)), (C = (g ? g : "") + A + "."), F || (F = []), F.push(C), (k += a.J(A, d, e, f, C)); else if (("boolean" == typeof A && (A = A ? "true" : "false"), A)) { if ("retrieveLightData" == f && 0 > g.indexOf(".contextData.")) switch (((C = m.substring(0, 4)), (E = m.substring(4)), m)) { case "transactionID": m = "xact"; break; case "channel": m = "ch"; break; case "campaign": m = "v0"; break; default: a.oa(E) && ("prop" == C ? (m = "c" + E) : "eVar" == C ? (m = "v" + E) : "list" == C ? (m = "l" + E) : "hier" == C && ((m = "h" + E), (A = A.substring(0, 255)))); } k += "&" + a.escape(m) + "=" + a.escape(A); } } "" != k && (k += "&." + b); } return k; }; a.Sa = function () { var b = "", d, e, f, g, k, m, A, C, E = "", F = "", D = (e = ""); if (a.lightProfileID) (d = a.H), (E = a.lightTrackVars) && (E = "," + E + "," + a.Y.join(",") + ","); else { d = a.c; if (a.pe || a.linkType) if (((E = a.linkTrackVars), (F = a.linkTrackEvents), a.pe && ((e = a.pe.substring(0, 1).toUpperCase() + a.pe.substring(1)), a[e]))) (E = a[e].lb), (F = a[e].kb); E && (E = "," + E + "," + a.A.join(",") + ","); F && ((F = "," + F + ","), E && (E += ",events,")); a.events2 && (D += ("" != D ? "," : "") + a.events2); } a.AudienceManagement && a.AudienceManagement.isReady() && (b += a.J("d", a.AudienceManagement.getEventCallConfigParams())); for (e = 0; e < d.length; e++) { g = d[e]; k = a[g]; f = g.substring(0, 4); m = g.substring(4); !k && "events" == g && D && ((k = D), (D = "")); if (k && (!E || 0 <= E.indexOf("," + g + ","))) { switch (g) { case "supplementalDataID": g = "sdid"; break; case "timestamp": g = "ts"; break; case "dynamicVariablePrefix": g = "D"; break; case "visitorID": g = "vid"; break; case "marketingCloudVisitorID": g = "mid"; break; case "analyticsVisitorID": g = "aid"; break; case "audienceManagerLocationHint": g = "aamlh"; break; case "audienceManagerBlob": g = "aamb"; break; case "pageURL": g = "g"; 255 < k.length && ((a.pageURLRest = k.substring(255)), (k = k.substring(0, 255))); break; case "pageURLRest": g = "-g"; break; case "referrer": g = "r"; break; case "vmk": case "visitorMigrationKey": g = "vmt"; break; case "visitorMigrationServer": g = "vmf"; a.ssl && a.visitorMigrationServerSecure && (k = ""); break; case "visitorMigrationServerSecure": g = "vmf"; !a.ssl && a.visitorMigrationServer && (k = ""); break; case "charSet": g = "ce"; break; case "visitorNamespace": g = "ns"; break; case "cookieDomainPeriods": g = "cdp"; break; case "cookieLifetime": g = "cl"; break; case "variableProvider": g = "vvp"; break; case "currencyCode": g = "cc"; break; case "channel": g = "ch"; break; case "transactionID": g = "xact"; break; case "campaign": g = "v0"; break; case "resolution": g = "s"; break; case "colorDepth": g = "c"; break; case "javascriptVersion": g = "j"; break; case "javaEnabled": g = "v"; break; case "cookiesEnabled": g = "k"; break; case "browserWidth": g = "bw"; break; case "browserHeight": g = "bh"; break; case "connectionType": g = "ct"; break; case "homepage": g = "hp"; break; case "plugins": g = "p"; break; case "events": D && (k += ("" != k ? "," : "") + D); if (F) for (m = k.split(","), k = "", f = 0; f < m.length; f++) (A = m[f]), (C = A.indexOf("=")), 0 <= C && (A = A.substring(0, C)), (C = A.indexOf(":")), 0 <= C && (A = A.substring(0, C)), 0 <= F.indexOf("," + A + ",") && (k += (k ? "," : "") + m[f]); break; case "events2": k = ""; break; case "contextData": b += a.J("c", a[g], E, g); k = ""; break; case "lightProfileID": g = "mtp"; break; case "lightStoreForSeconds": g = "mtss"; a.lightProfileID || (k = ""); break; case "lightIncrementBy": g = "mti"; a.lightProfileID || (k = ""); break; case "retrieveLightProfiles": g = "mtsr"; break; case "deleteLightProfiles": g = "mtsd"; break; case "retrieveLightData": a.retrieveLightProfiles && (b += a.J("mts", a[g], E, g)); k = ""; break; default: a.oa(m) && ("prop" == f ? (g = "c" + m) : "eVar" == f ? (g = "v" + m) : "list" == f ? (g = "l" + m) : "hier" == f && ((g = "h" + m), (k = k.substring(0, 255)))); } k && (b += "&" + g + "=" + ("pev" != g.substring(0, 3) ? a.escape(k) : k)); } "pev3" == g && a.g && (b += a.g); } return b; }; a.v = function (a) { var b = a.tagName; if ("undefined" != "" + a.sb || ("undefined" != "" + a.eb && "HTML" != ("" + a.eb).toUpperCase())) return ""; b = b && b.toUpperCase ? b.toUpperCase() : ""; "SHAPE" == b && (b = ""); b && (("INPUT" == b || "BUTTON" == b) && a.type && a.type.toUpperCase ? (b = a.type.toUpperCase()) : !b && a.href && (b = "A")); return b; }; a.ka = function (a) { var b = a.href ? a.href : "", d, e, f; d = b.indexOf(":"); e = b.indexOf("?"); f = b.indexOf("/"); b && (0 > d || (0 <= e && d > e) || (0 <= f && d > f)) && ((e = a.protocol && 1 < a.protocol.length ? a.protocol : l.protocol ? l.protocol : ""), (d = l.pathname.lastIndexOf("/")), (b = (e ? e + "//" : "") + (a.host ? a.host : l.host ? l.host : "") + ("/" != h.substring(0, 1) ? l.pathname.substring(0, 0 > d ? 0 : d) + "/" : "") + b)); return b; }; a.F = function (b) { var d = a.v(b), e, f, g = "", k = 0; return d && ((e = b.protocol), (f = b.onclick), !b.href || ("A" != d && "AREA" != d) || (f && e && !(0 > e.toLowerCase().indexOf("javascript"))) ? f ? ((g = a.replace(a.replace(a.replace(a.replace("" + f, "\r", ""), "\n", ""), "\t", ""), " ", "")), (k = 2)) : "INPUT" == d || "SUBMIT" == d ? (b.value ? (g = b.value) : b.innerText ? (g = b.innerText) : b.textContent && (g = b.textContent), (k = 3)) : b.src && "IMAGE" == d && (g = b.src) : (g = a.ka(b)), g) ? { id: g.substring(0, 100), type: k } : 0; }; a.pb = function (b) { for (var d = a.v(b), e = a.F(b); b && !e && "BODY" != d; ) if ((b = b.parentElement ? b.parentElement : b.parentNode)) (d = a.v(b)), (e = a.F(b)); (e && "BODY" != d) || (b = 0); b && ((d = b.onclick ? "" + b.onclick : ""), 0 <= d.indexOf(".tl(") || 0 <= d.indexOf(".trackLink(")) && (b = 0); return b; }; a.bb = function () { var d, e, f = a.linkObject, g = a.linkType, k = a.linkURL, m, B; a.Z = 1; f || ((a.Z = 0), (f = a.j)); if (f) { d = a.v(f); for (e = a.F(f); f && !e && "BODY" != d; ) if ((f = f.parentElement ? f.parentElement : f.parentNode)) (d = a.v(f)), (e = a.F(f)); (e && "BODY" != d) || (f = 0); if (f) { var A = f.onclick ? "" + f.onclick : ""; if (0 <= A.indexOf(".tl(") || 0 <= A.indexOf(".trackLink(")) f = 0; } } else a.Z = 1; !k && f && (k = a.ka(f)); k && !a.linkLeaveQueryString && ((m = k.indexOf("?")), 0 <= m && (k = k.substring(0, m))); if (!g && k) { var C = 0, E = 0, F; if (a.trackDownloadLinks && a.linkDownloadFileTypes) for ( A = k.toLowerCase(), m = A.indexOf("?"), B = A.indexOf("#"), 0 <= m ? 0 <= B && B < m && (m = B) : (m = B), 0 <= m && (A = A.substring(0, m)), m = a.linkDownloadFileTypes.toLowerCase().split(","), B = 0; B < m.length; B++ ) (F = m[B]) && A.substring(A.length - (F.length + 1)) == "." + F && (g = "d"); if ( a.trackExternalLinks && !g && ((A = k.toLowerCase()), a.na(A)) && (a.linkInternalFilters || (a.linkInternalFilters = b.location.hostname), (m = 0), a.linkExternalFilters ? ((m = a.linkExternalFilters.toLowerCase().split(",")), (C = 1)) : a.linkInternalFilters && (m = a.linkInternalFilters.toLowerCase().split(",")), m) ) { for (B = 0; B < m.length; B++) (F = m[B]), 0 <= A.indexOf(F) && (E = 1); E ? C && (g = "e") : C || (g = "e"); } } a.linkObject = f; a.linkURL = k; a.linkType = g; if (a.trackClickMap || a.trackInlineStats) if (((a.g = ""), f)) (g = a.pageName), (k = 1), (f = f.sourceIndex), g || ((g = a.pageURL), (k = 0)), b.s_objectID && ((e.id = b.s_objectID), (f = e.type = 1)), g && e && e.id && d && (a.g = "&pid=" + a.escape(g.substring(0, 255)) + (k ? "&pidt=" + k : "") + "&oid=" + a.escape(e.id.substring(0, 100)) + (e.type ? "&oidt=" + e.type : "") + "&ot=" + d + (f ? "&oi=" + f : "")); }; a.Ta = function () { var b = a.Z, d = a.linkType, e = a.linkURL, f = a.linkName; d && (e || f) && ((d = d.toLowerCase()), "d" != d && "e" != d && (d = "o"), (a.pe = "lnk_" + d), (a.pev1 = e ? a.escape(e) : ""), (a.pev2 = f ? a.escape(f) : ""), (b = 1)); a.abort && (b = 0); if (a.trackClickMap || a.trackInlineStats) { var d = {}, e = 0, g = a.cookieRead("s_sq"), k = g ? g.split("&") : 0, m, A, C, g = 0; if (k) for (m = 0; m < k.length; m++) (A = k[m].split("=")), (f = a.unescape(A[0]).split(",")), (A = a.unescape(A[1])), (d[A] = f); f = a.account.split(","); if (b || a.g) { b && !a.g && (g = 1); for (A in d) if (!Object.prototype[A]) for (m = 0; m < f.length; m++) for (g && ((C = d[A].join(",")), C == a.account && ((a.g += ("&" != A.charAt(0) ? "&" : "") + A), (d[A] = []), (e = 1))), k = 0; k < d[A].length; k++) (C = d[A][k]), C == f[m] && (g && (a.g += "&u=" + a.escape(C) + ("&" != A.charAt(0) ? "&" : "") + A + "&u=0"), d[A].splice(k, 1), (e = 1)); b || (e = 1); if (e) { g = ""; m = 2; !b && a.g && ((g = a.escape(f.join(",")) + "=" + a.escape(a.g)), (m = 1)); for (A in d) !Object.prototype[A] && 0 < m && 0 < d[A].length && ((g += (g ? "&" : "") + a.escape(d[A].join(",")) + "=" + a.escape(A)), m--); a.cookieWrite("s_sq", g); } } } return b; }; a.Ua = function () { if (!a.jb) { var b = new Date(), d = e.location, f, g, k, m = (f = ""), B = "", A = "", C = "1.2", E = a.cookieWrite("s_cc", "true", 0) ? "Y" : "N", F = "", D = "", H = 0; if (b.setUTCDate && ((C = "1.3"), H.toPrecision && ((C = "1.5"), (f = []), f.forEach))) { C = "1.6"; k = 0; g = {}; try { (k = new Iterator(g)), k.next && ((C = "1.7"), f.reduce && ((C = "1.8"), C.trim && ((C = "1.8.1"), Date.parse && ((C = "1.8.2"), Object.create && (C = "1.8.5"))))); } catch (I) {} } f = screen.width + "x" + screen.height; k = navigator.javaEnabled() ? "Y" : "N"; g = screen.pixelDepth ? screen.pixelDepth : screen.colorDepth; B = a.w.innerWidth ? a.w.innerWidth : a.d.documentElement.offsetWidth; A = a.w.innerHeight ? a.w.innerHeight : a.d.documentElement.offsetHeight; b = navigator.plugins; try { a.b.addBehavior("#default#homePage"), (F = a.b.qb(d) ? "Y" : "N"); } catch (L) {} try { a.b.addBehavior("#default#clientCaps"), (D = a.b.connectionType); } catch (J) {} if (b) for (; H < b.length && 30 > H; ) { if ((d = b[H].name)) (d = d.substring(0, 100) + ";"), 0 > m.indexOf(d) && (m += d); H++; } a.resolution = f; a.colorDepth = g; a.javascriptVersion = C; a.javaEnabled = k; a.cookiesEnabled = E; a.browserWidth = B; a.browserHeight = A; a.connectionType = D; a.homepage = F; a.plugins = m; a.jb = 1; } }; a.I = {}; a.loadModule = function (d, e) { var f = a.I[d]; if (!f) { f = b["AppMeasurement_Module_" + d] ? new b["AppMeasurement_Module_" + d](a) : {}; a.I[d] = a[d] = f; f.Ba = function () { return f.Ea; }; f.Fa = function (b) { if ((f.Ea = b)) (a[d + "_onLoad"] = b), a.C(d + "_onLoad", [a, f], 1) || b(a, f); }; try { Object.defineProperty ? Object.defineProperty(f, "onLoad", { get: f.Ba, set: f.Fa }) : (f._olc = 1); } catch (g) { f._olc = 1; } } e && ((a[d + "_onLoad"] = e), a.C(d + "_onLoad", [a, f], 1) || e(a, f)); }; a.r = function (b) { var d, e; for (d in a.I) if (!Object.prototype[d] && (e = a.I[d]) && (e._olc && e.onLoad && ((e._olc = 0), e.onLoad(a, e)), e[b] && e[b]())) return 1; return 0; }; a.Xa = function () { var b = Math.floor(1e13 * Math.random()), d = a.visitorSampling, e = a.visitorSamplingGroup, e = "s_vsn_" + (a.visitorNamespace ? a.visitorNamespace : a.account) + (e ? "_" + e : ""), f = a.cookieRead(e); if (d) { f && (f = parseInt(f)); if (!f) { if (!a.cookieWrite(e, b)) return 0; f = b; } if (f % 1e4 > v) return 0; } return 1; }; a.K = function (b, d) { var e, f, g, k, m, A; for (e = 0; 2 > e; e++) for (f = 0 < e ? a.ea : a.c, g = 0; g < f.length; g++) if (((k = f[g]), (m = b[k]) || b["!" + k])) { if (!d && ("contextData" == k || "retrieveLightData" == k) && a[k]) for (A in a[k]) m[A] || (m[A] = a[k][A]); a[k] = m; } }; a.wa = function (b, d) { var e, f, g, k; for (e = 0; 2 > e; e++) for (f = 0 < e ? a.ea : a.c, g = 0; g < f.length; g++) (k = f[g]), (b[k] = a[k]), d || b[k] || (b["!" + k] = 1); }; a.Pa = function (a) { var b, d, e, f, g, k = 0, m, C = "", E = ""; if ( a && 255 < a.length && ((b = "" + a), (d = b.indexOf("?")), 0 < d && ((m = b.substring(d + 1)), (b = b.substring(0, d)), (f = b.toLowerCase()), (e = 0), "http://" == f.substring(0, 7) ? (e += 7) : "https://" == f.substring(0, 8) && (e += 8), (d = f.indexOf("/", e)), 0 < d && ((f = f.substring(e, d)), (g = b.substring(d)), (b = b.substring(0, d)), 0 <= f.indexOf("google") ? (k = ",q,ie,start,search_key,word,kw,cd,") : 0 <= f.indexOf("yahoo.co") && (k = ",p,ei,"), k && m))) ) { if ((a = m.split("&")) && 1 < a.length) { for (e = 0; e < a.length; e++) (f = a[e]), (d = f.indexOf("=")), 0 < d && 0 <= k.indexOf("," + f.substring(0, d) + ",") ? (C += (C ? "&" : "") + f) : (E += (E ? "&" : "") + f); C && E ? (m = C + "&" + E) : (E = ""); } d = 253 - (m.length - E.length) - b.length; a = b + (0 < d ? g.substring(0, d) : "") + "?" + m; } return a; }; a.S = !1; a.O = !1; a.Da = function (b) { a.marketingCloudVisitorID = b; a.O = !0; a.l(); }; a.P = !1; a.L = !1; a.ya = function (b) { a.analyticsVisitorID = b; a.L = !0; a.l(); }; a.R = !1; a.N = !1; a.Aa = function (b) { a.audienceManagerLocationHint = b; a.N = !0; a.l(); }; a.Q = !1; a.M = !1; a.za = function (b) { a.audienceManagerBlob = b; a.M = !0; a.l(); }; a.isReadyToTrack = function () { var b = !0, d = a.visitor; d && d.isAllowed() && (!a.S && !a.marketingCloudVisitorID && d.getMarketingCloudVisitorID && ((a.S = !0), (a.marketingCloudVisitorID = d.getMarketingCloudVisitorID([a, a.Da])), a.marketingCloudVisitorID) && (a.O = !0), !a.P && !a.analyticsVisitorID && d.getAnalyticsVisitorID && ((a.P = !0), (a.analyticsVisitorID = d.getAnalyticsVisitorID([a, a.ya])), a.analyticsVisitorID) && (a.L = !0), !a.R && !a.audienceManagerLocationHint && d.getAudienceManagerLocationHint && ((a.R = !0), (a.audienceManagerLocationHint = d.getAudienceManagerLocationHint([a, a.Aa])), a.audienceManagerLocationHint) && (a.N = !0), !a.Q && !a.audienceManagerBlob && d.getAudienceManagerBlob && ((a.Q = !0), (a.audienceManagerBlob = d.getAudienceManagerBlob([a, a.za])), a.audienceManagerBlob) && (a.M = !0), (a.S && !a.O && !a.marketingCloudVisitorID) || (a.P && !a.L && !a.analyticsVisitorID) || (a.R && !a.N && !a.audienceManagerLocationHint) || (a.Q && !a.M && !a.audienceManagerBlob)) && (b = !1); return b; }; a.k = d; a.o = 0; a.callbackWhenReadyToTrack = function (b, e, f) { var g; g = {}; g.Ja = b; g.Ia = e; g.Ga = f; a.k == d && (a.k = []); a.k.push(g); 0 == a.o && (a.o = setInterval(a.l, 100)); }; a.l = function () { var b; if (a.isReadyToTrack() && (a.o && (clearInterval(a.o), (a.o = 0)), a.k != d)) for (; 0 < a.k.length; ) (b = a.k.shift()), b.Ia.apply(b.Ja, b.Ga); }; a.Ca = function (b) { var e, f, g = d, k = d; if (!a.isReadyToTrack()) { e = []; if (b != d) for (f in ((g = {}), b)) g[f] = b[f]; k = {}; a.wa(k, !0); e.push(g); e.push(k); a.callbackWhenReadyToTrack(a, a.track, e); return !0; } return !1; }; a.Ra = function () { var b = a.cookieRead("s_fid"), d = "", e = "", f; f = 8; var g = 4; if (!b || 0 > b.indexOf("-")) { for (b = 0; 16 > b; b++) (f = Math.floor(Math.random() * f)), (d += "0123456789ABCDEF".substring(f, f + 1)), (f = Math.floor(Math.random() * g)), (e += "0123456789ABCDEF".substring(f, f + 1)), (f = g = 16); b = d + "-" + e; } a.cookieWrite("s_fid", b, 1) || (b = 0); return b; }; a.t = a.track = function (d, f) { var g, k = new Date(), m = "s" + (Math.floor(k.getTime() / 108e5) % 10) + Math.floor(1e13 * Math.random()), u = k.getYear(), u = "t=" + a.escape(k.getDate() + "/" + k.getMonth() + "/" + (1900 > u ? u + 1900 : u) + " " + k.getHours() + ":" + k.getMinutes() + ":" + k.getSeconds() + " " + k.getDay() + " " + k.getTimezoneOffset()); !a.supplementalDataID && a.visitor && a.visitor.getSupplementalDataID && (a.supplementalDataID = a.visitor.getSupplementalDataID("AppMeasurement:" + a._in, a.expectSupplementalData ? !1 : !0)); a.r("_s"); a.C("track", arguments) || (a.Ca(d) || (f && a.K(f), d && ((g = {}), a.wa(g, 0), a.K(d)), a.Xa() && (a.analyticsVisitorID || a.marketingCloudVisitorID || (a.fid = a.Ra()), a.bb(), a.usePlugins && a.doPlugins && a.doPlugins(a), a.account && (a.abort || (a.trackOffline && !a.timestamp && (a.timestamp = Math.floor(k.getTime() / 1e3)), (k = b.location), a.pageURL || (a.pageURL = k.href ? k.href : k), a.referrer || a.xa || ((a.referrer = e.document.referrer), (a.xa = 1)), (a.referrer = a.Pa(a.referrer)), a.r("_g")), a.Ta() && !a.abort && (a.Ua(), (u += a.Sa()), a.ab(m, u), a.r("_t"), (a.referrer = "")))), d && a.K(g, 1)), (a.abort = a.supplementalDataID = a.timestamp = a.pageURLRest = a.linkObject = a.j = a.linkURL = a.linkName = a.linkType = b.rb = a.pe = a.pev1 = a.pev2 = a.pev3 = a.g = 0)); }; a.tl = a.trackLink = function (b, d, e, f, g) { a.linkObject = b; a.linkType = d; a.linkName = e; g && ((a.i = b), (a.q = g)); return a.track(f); }; a.trackLight = function (b, d, e, f) { a.lightProfileID = b; a.lightStoreForSeconds = d; a.lightIncrementBy = e; return a.track(f); }; a.clearVars = function () { var b, d; for (b = 0; b < a.c.length; b++) if ( ((d = a.c[b]), "prop" == d.substring(0, 4) || "eVar" == d.substring(0, 4) || "hier" == d.substring(0, 4) || "list" == d.substring(0, 4) || "channel" == d || "events" == d || "eventList" == d || "products" == d || "productList" == d || "purchaseID" == d || "transactionID" == d || "state" == d || "zip" == d || "campaign" == d) ) a[d] = void 0; }; a.ab = function (b, d) { var e, f = a.trackingServer; e = ""; var g = a.dc, k = "sc.", m = a.visitorNamespace; f ? a.trackingServerSecure && a.ssl && (f = a.trackingServerSecure) : (m || ((m = a.account), (f = m.indexOf(",")), 0 <= f && (m = m.substring(0, f)), (m = m.replace(/[^A-Za-z0-9]/g, ""))), e || (e = "2o7.net"), (g = g ? ("" + g).toLowerCase() : "d1"), "2o7.net" == e && ("d1" == g ? (g = "112") : "d2" == g && (g = "122"), (k = "")), (f = m + "." + g + "." + k + e)); e = a.ssl ? "https://" : "http://"; g = a.AudienceManagement && a.AudienceManagement.isReady(); e += f + "/b/ss/" + a.account + "/" + (a.mobile ? "5." : "") + (g ? "10" : "1") + "/JS-" + a.version + (a.ib ? "T" : "") + "/" + b + "?AQB=1&ndh=1&" + (g ? "callback=s_c_il[" + a._in + "].AudienceManagement.passData&" : "") + d + "&AQE=1"; a.Wa && (e = e.substring(0, 2047)); a.Na(e); a.W(); }; a.Na = function (b) { a.e || a.Va(); a.e.push(b); a.X = a.u(); a.va(); }; a.Va = function () { a.e = a.Ya(); a.e || (a.e = []); }; a.Ya = function () { var d, e; if (a.ba()) { try { (e = b.localStorage.getItem(a.$())) && (d = b.JSON.parse(e)); } catch (f) {} return d; } }; a.ba = function () { var d = !0; (a.trackOffline && a.offlineFilename && b.localStorage && b.JSON) || (d = !1); return d; }; a.la = function () { var b = 0; a.e && (b = a.e.length); a.z && b++; return b; }; a.W = function () { if (!a.z) if (((a.ma = d), a.aa)) a.X > a.G && a.ta(a.e), a.da(500); else { var b = a.Ha(); if (0 < b) a.da(b); else if ((b = a.ja())) (a.z = 1), a.$a(b), a.fb(b); } }; a.da = function (b) { a.ma || (b || (b = 0), (a.ma = setTimeout(a.W, b))); }; a.Ha = function () { var b; if (!a.trackOffline || 0 >= a.offlineThrottleDelay) return 0; b = a.u() - a.ra; return a.offlineThrottleDelay < b ? 0 : a.offlineThrottleDelay - b; }; a.ja = function () { if (0 < a.e.length) return a.e.shift(); }; a.$a = function (b) { if (a.debugTracking) { var d = "AppMeasurement Debug: " + b; b = b.split("&"); var e; for (e = 0; e < b.length; e++) d += "\n\t" + a.unescape(b[e]); a.Za(d); } }; a.fb = function (d) { var e, f, g; !e && a.d.createElement && a.AudienceManagement && a.AudienceManagement.isReady() && (e = a.d.createElement("SCRIPT")) && "async" in e && ((g = (g = a.d.getElementsByTagName("HEAD")) && g[0] ? g[0] : a.d.body) ? ((e.type = "text/javascript"), e.setAttribute("async", "async"), (f = 3)) : (e = 0)); e || ((e = new Image()), (e.alt = "")); e.ga = function () { try { a.ca && (clearTimeout(a.ca), (a.ca = 0)), e.timeout && (clearTimeout(e.timeout), (e.timeout = 0)); } catch (b) {} }; e.onload = e.hb = function () { e.ga(); a.Ma(); a.T(); a.z = 0; a.W(); }; e.onabort = e.onerror = e.Oa = function () { e.ga(); (a.trackOffline || a.aa) && a.z && a.e.unshift(a.La); a.z = 0; a.X > a.G && a.ta(a.e); a.T(); a.da(500); }; e.onreadystatechange = function () { 4 == e.readyState && (200 == e.status ? e.hb() : e.Oa()); }; a.ra = a.u(); if (1 == f) e.open("GET", d, !0), e.send(); else if (2 == f) e.open("GET", d), e.send(); else if (((e.src = d), 3 == f)) { if (a.pa) try { g.removeChild(a.pa); } catch (k) {} g.firstChild ? g.insertBefore(e, g.firstChild) : g.appendChild(e); a.pa = a.Ka; } e.abort && (a.ca = setTimeout(e.abort, 5e3)); a.La = d; a.Ka = b["s_i_" + a.replace(a.account, ",", "_")] = e; if ((a.useForcedLinkTracking && a.B) || a.q) a.forcedLinkTrackingTimeout || (a.forcedLinkTrackingTimeout = 250), (a.U = setTimeout(a.T, a.forcedLinkTrackingTimeout)); }; a.Ma = function () { if (a.ba() && !(a.qa > a.G)) try { b.localStorage.removeItem(a.$()), (a.qa = a.u()); } catch (d) {} }; a.ta = function (d) { if (a.ba()) { a.va(); try { b.localStorage.setItem(a.$(), b.JSON.stringify(d)), (a.G = a.u()); } catch (e) {} } }; a.va = function () { if (a.trackOffline) { if (!a.offlineLimit || 0 >= a.offlineLimit) a.offlineLimit = 10; for (; a.e.length > a.offlineLimit; ) a.ja(); } }; a.forceOffline = function () { a.aa = !0; }; a.forceOnline = function () { a.aa = !1; }; a.$ = function () { return a.offlineFilename + "-" + a.visitorNamespace + a.account; }; a.u = function () { return new Date().getTime(); }; a.na = function (a) { a = a.toLowerCase(); return 0 != a.indexOf("#") && 0 != a.indexOf("about:") && 0 != a.indexOf("opera:") && 0 != a.indexOf("javascript:") ? !0 : !1; }; a.setTagContainer = function (b) { var d, e, f; a.ib = b; for (d = 0; d < a._il.length; d++) if ((e = a._il[d]) && "s_l" == e._c && e.tagContainerName == b) { a.K(e); if (e.lmq) for (d = 0; d < e.lmq.length; d++) (f = e.lmq[d]), a.loadModule(f.n); if (e.ml) for (f in e.ml) if (a[f]) for (d in ((b = a[f]), (f = e.ml[f]), f)) !Object.prototype[d] && ("function" != typeof f[d] || 0 > ("" + f[d]).indexOf("s_c_il")) && (b[d] = f[d]); if (e.mmq) for (d = 0; d < e.mmq.length; d++) (f = e.mmq[d]), a[f.m] && ((b = a[f.m]), b[f.f] && "function" == typeof b[f.f] && (f.a ? b[f.f].apply(b, f.a) : b[f.f].apply(b))); if (e.tq) for (d = 0; d < e.tq.length; d++) a.track(e.tq[d]); e.s = a; break; } }; a.Util = { urlEncode: a.escape, urlDecode: a.unescape, cookieRead: a.cookieRead, cookieWrite: a.cookieWrite, getQueryParam: function (d, e, f) { var g; e || (e = a.pageURL ? a.pageURL : b.location); f || (f = "&"); return d && e && ((e = "" + e), (g = e.indexOf("?")), 0 <= g && ((e = f + e.substring(g + 1) + f), (g = e.indexOf(f + d + "=")), 0 <= g && ((e = e.substring(g + f.length + d.length + 1)), (g = e.indexOf(f)), 0 <= g && (e = e.substring(0, g)), 0 < e.length))) ? a.unescape(e) : ""; }, }; a.A = "supplementalDataID timestamp dynamicVariablePrefix visitorID marketingCloudVisitorID analyticsVisitorID audienceManagerLocationHint fid vmk visitorMigrationKey visitorMigrationServer visitorMigrationServerSecure charSet visitorNamespace cookieDomainPeriods fpCookieDomainPeriods cookieLifetime pageName pageURL referrer contextData currencyCode lightProfileID lightStoreForSeconds lightIncrementBy retrieveLightProfiles deleteLightProfiles retrieveLightData pe pev1 pev2 pev3 pageURLRest".split( " " ); a.c = a.A.concat("purchaseID variableProvider channel server pageType transactionID campaign state zip events events2 products audienceManagerBlob tnt".split(" ")); a.Y = "timestamp charSet visitorNamespace cookieDomainPeriods cookieLifetime contextData lightProfileID lightStoreForSeconds lightIncrementBy".split(" "); a.H = a.Y.slice(0); a.ea = "account allAccounts debugTracking visitor trackOffline offlineLimit offlineThrottleDelay offlineFilename usePlugins doPlugins configURL visitorSampling visitorSamplingGroup linkObject linkURL linkName linkType trackDownloadLinks trackExternalLinks trackClickMap trackInlineStats linkLeaveQueryString linkTrackVars linkTrackEvents linkDownloadFileTypes linkExternalFilters linkInternalFilters useForcedLinkTracking forcedLinkTrackingTimeout trackingServer trackingServerSecure ssl abort mobile dc lightTrackVars maxDelay expectSupplementalData AudienceManagement".split( " " ); for (f = 0; 75 >= f; f++) a.c.push("prop" + f), a.H.push("prop" + f), a.c.push("eVar" + f), a.H.push("eVar" + f), 6 > f && a.c.push("hier" + f), 4 > f && a.c.push("list" + f); f = "resolution colorDepth javascriptVersion javaEnabled cookiesEnabled browserWidth browserHeight connectionType homepage plugins".split(" "); a.c = a.c.concat(f); a.A = a.A.concat(f); a.ssl = 0 <= b.location.protocol.toLowerCase().indexOf("https"); a.charSet = "UTF-8"; a.contextData = {}; a.offlineThrottleDelay = 0; a.offlineFilename = "AppMeasurement.offline"; a.ra = 0; a.X = 0; a.G = 0; a.qa = 0; a.linkDownloadFileTypes = "exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx"; a.w = b; a.d = b.document; try { a.Wa = "Microsoft Internet Explorer" == navigator.appName; } catch (m) {} a.T = function () { a.U && (b.clearTimeout(a.U), (a.U = d)); a.i && a.B && a.i.dispatchEvent(a.B); a.q && ("function" == typeof a.q ? a.q() : a.i && a.i.href && (a.d.location = a.i.href)); a.i = a.B = a.q = 0; }; a.ua = function () { a.b = a.d.body; a.b ? ((a.p = function (d) { var e, f, g, k, m; if (!((a.d && a.d.getElementById("cppXYctnr")) || (d && d.cb))) { if (a.fa) if (a.useForcedLinkTracking) a.b.removeEventListener("click", a.p, !1); else { a.b.removeEventListener("click", a.p, !0); a.fa = a.useForcedLinkTracking = 0; return; } else a.useForcedLinkTracking = 0; a.j = d.srcElement ? d.srcElement : d.target; try { if (a.j && (a.j.tagName || a.j.parentElement || a.j.parentNode) && ((g = a.la()), a.track(), g < a.la() && a.useForcedLinkTracking && d.target)) { for (k = d.target; k && k != a.b && "A" != k.tagName.toUpperCase() && "AREA" != k.tagName.toUpperCase(); ) k = k.parentNode; if (k && ((m = k.href), a.na(m) || (m = 0), (f = k.target), d.target.dispatchEvent && m && (!f || "_self" == f || "_top" == f || "_parent" == f || (b.name && f == b.name)))) { try { e = a.d.createEvent("MouseEvents"); } catch (B) { e = new b.MouseEvent(); } if (e) { try { e.initMouseEvent("click", d.bubbles, d.cancelable, d.view, d.detail, d.screenX, d.screenY, d.clientX, d.clientY, d.ctrlKey, d.altKey, d.shiftKey, d.metaKey, d.button, d.relatedTarget); } catch (A) { e = 0; } e && ((e.cb = 1), d.stopPropagation(), d.gb && d.gb(), d.preventDefault(), (a.i = d.target), (a.B = e)); } } } } catch (C) {} a.j = 0; } }), a.b && a.b.attachEvent) ? a.b.attachEvent("onclick", a.p) : a.b && a.b.addEventListener && (navigator && ((0 <= navigator.userAgent.indexOf("WebKit") && a.d.createEvent) || (0 <= navigator.userAgent.indexOf("Firefox/2") && b.MouseEvent)) && ((a.fa = 1), (a.useForcedLinkTracking = 1), a.b.addEventListener("click", a.p, !0)), a.b.addEventListener("click", a.p, !1)) : setTimeout(a.ua, 30); }; a.ua(); } function s_gi(a) { var b, d = window.s_c_il, e, f, g = a.split(","), k, m, n = 0; if (d) for (e = 0; !n && e < d.length; ) { b = d[e]; if ("s_c" == b._c && (b.account || b.oun)) if (b.account && b.account == a) n = 1; else for (f = b.account ? b.account : b.oun, f = b.allAccounts ? b.allAccounts : f.split(","), k = 0; k < g.length; k++) for (m = 0; m < f.length; m++) g[k] == f[m] && (n = 1); e++; } n || (b = new AppMeasurement()); b.setAccount ? b.setAccount(a) : b.sa && b.sa(a); return b; } AppMeasurement.getInstance = s_gi; window.s_objectID || (window.s_objectID = 0); function s_pgicq() { var a = window, b = a.s_giq, d, e, f; if (b) for (d = 0; d < b.length; d++) (e = b[d]), (f = s_gi(e.oun)), f.setAccount(e.un), f.setTagContainer(e.tagContainerName); a.s_giq = 0; } s_pgicq(); var Stats = function () { function a(a) { e.appendChild(a.dom); return a; } function b(a) { for (var b = 0; b < e.children.length; b++) e.children[b].style.display = b === a ? "block" : "none"; d = a; } var d = 0, e = document.createElement("div"); e.style.cssText = "position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000"; e.addEventListener( "click", function (a) { a.preventDefault(); b(++d % e.children.length); }, !1 ); var f = Date.now(), g = f, k = 0, m = a(new Stats.Panel("FPS", "#0ff", "#002", !1)), n = a(new Stats.Panel("MS", "#0f0", "#020", !1)), p = a(new Stats.Panel("GUIObj.", "#0ff", "#002", !0)), q = a(new Stats.Panel("Pixels", "#0f0", "#020", !0)), r = a(new Stats.Panel("Sound length", "#0ff", "#002", !0)), t = a(new Stats.Panel("PGraphics", "#0f0", "#020", !0)); if (self.performance && self.performance.memory) var u = a(new Stats.Panel("MB", "#0ff", "#002", !0)); b(0); return { REVISION: 17, dom: e, addPanel: a, showPanel: b, begin: function () { f = Date.now(); }, end: function () { k++; var a = Date.now(); n.update(a - f, 200); if ( a > g + 1e3 && (2 === d && p.update(CONFIG.CLIENTSLOTAPPLET.getTopContainer_0().count_0(), 1200), q.update(CONFIG.STATS.PIXELS, 25e6), t.update(CONFIG.STATS.PIXIGRAPHICS, 100), r.update(CONFIG.STATS.SOUNDLENGTH, 200), m.update((1e3 * k) / (a - g), 100), (g = a), (k = 0), u) ) { var b = performance.memory; u.update(b.usedJSHeapSize / 1048576, b.jsHeapSizeLimit / 1048576); } return a; }, update: function () { f = this.end(); }, domElement: e, setMode: b, }; }; Stats.Panel = function (a, b, d, e) { var f = Infinity, g = 0, k = Math.round, m = k(window.devicePixelRatio || 1), n = null, p = 0, q = 120 * m, r = 55 * m, t = 3 * m, u = 2 * m, B = 3 * m, A = 15 * m, C = 114 * m, E = 37 * m, F = document.createElement("canvas"); F.width = q; F.height = r; F.style.cssText = "width:120px;height:55px"; var D = F.getContext("2d"); D.font = "bold " + 9 * m + "px Helvetica,Arial,sans-serif"; D.textBaseline = "top"; D.fillStyle = d; D.fillRect(0, 0, q, r); D.fillStyle = b; D.fillText(a, t, u); D.fillRect(B, A, C, E); D.fillStyle = d; D.globalAlpha = 0.9; D.fillRect(B, A, C, E); return { dom: F, update: function (r, I) { f = Math.min(f, r); g = Math.max(g, r); n = n || I; p = e ? Math.max(1.1 * g, n) : I; D.fillStyle = d; D.globalAlpha = 1; D.fillRect(0, 0, q, A); D.fillStyle = b; D.fillText(k(r) + " " + a + " (" + k(f) + "-" + k(g) + ")", t, u); n != p ? (D.drawImage(F, B + m, A, C - m, E, B, A + E * (1 - n / p), C - m, (E * n) / p), (D.fillStyle = d), D.fillRect(B, A, C - m, E * (1 - n / p)), (D.fillStyle = b), (n = p)) : D.drawImage(F, B + m, A, C - m, E, B, A, C - m, E); D.fillRect(B + C - m, A, m, E); D.fillStyle = d; D.globalAlpha = 0.9; D.fillRect(B + C - m, A, m, k((1 - r / p) * E)); }, }; }; var _rollbarConfig = { accessToken: "setByParameter", captureUncaught: !0, payload: { environment: "production" } }; initRollbar = function (a, b) { function d(b) { this.shimId = ++k; this.notifier = null; this.parentShim = b; this.logger = function () {}; a.console && void 0 === a.console.shimId && (this.logger = a.console.log); } function e(b) { return g(function () { if (this.notifier) return this.notifier[b].apply(this.notifier, arguments); var e = this, f = "scope" === b; f && (e = new d(this)); var g = Array.prototype.slice.call(arguments, 0); return a._rollbarShimQueue.push({ shim: e, method: b, args: g, ts: new Date() }), f ? e : void 0; }); } function f(a, b) { if (b.hasOwnProperty && b.hasOwnProperty("addEventListener")) { var d = b.addEventListener; b.addEventListener = function (b, e, f) { d.call(this, b, a.wrap(e), f); }; var e = b.removeEventListener; b.removeEventListener = function (a, b, d) { e.call(this, a, b && b._wrapped ? b._wrapped : b, d); }; } } function g(a, b) { return ( (b = b || this.logger), function () { try { return a.apply(this, arguments); } catch (d) { b("Rollbar internal error:", d); } } ); } var k = 0; d.init = function (b, e) { var k = e.globalAlias || "Rollbar"; if ("object" == typeof b[k]) return b[k]; b._rollbarShimQueue = []; b._rollbarWrappedError = null; e = e || {}; var m = new d(); return g(function () { if ((m.configure(e), e.captureUncaught)) { var d = b.onerror; b.onerror = function () { var b = Array.prototype.slice.call(arguments, 0); a._rollbarWrappedError && (b[4] || (b[4] = a._rollbarWrappedError), b[5] || (b[5] = a._rollbarWrappedError._rollbarContext), (a._rollbarWrappedError = null)); m.uncaughtError.apply(m, b); d && d.apply(a, b); }; var g, n, C = "EventTarget Window Node ApplicationCache AudioTrackList ChannelMergerNode CryptoOperation EventSource FileReader HTMLUnknownElement IDBDatabase IDBRequest IDBTransaction KeyOperation MediaController MessagePort ModalWindow Notification SVGElementInstance Screen TextTrack TextTrackCue TextTrackList WebSocket WebSocketWorker Worker XMLHttpRequest XMLHttpRequestEventTarget XMLHttpRequestUpload".split( " " ); for (g = 0; g < C.length; ++g) (n = C[g]), b[n] && b[n].prototype && f(m, b[n].prototype); } return (b[k] = m), m; }, m.logger)(); }; d.prototype.loadFull = function (a, b, d, e, f) { var k = g(function () { var a = b.createElement("script"), f = b.getElementsByTagName("script")[0]; a.src = e.rollbarJsUrl; a.async = !d; a.onload = m; f.parentNode.insertBefore(a, f); }, this.logger), m = g(function () { var b; if (void 0 === a._rollbarPayloadQueue) { var d, e, g; for (b = Error("rollbar.js did not load"); (d = a._rollbarShimQueue.shift()); ) for (d = d.args, g = 0; g < d.length; ++g) if (((e = d[g]), "function" == typeof e)) { e(b); break; } } "function" == typeof f && f(b); }, this.logger); g(function () { d ? k() : a.addEventListener ? a.addEventListener("load", k, !1) : a.attachEvent("onload", k); }, this.logger)(); }; d.prototype.wrap = function (b, d) { try { var e; if ( ((e = "function" == typeof d ? d : function () { return d || {}; }), "function" != typeof b) || b._isWrap ) return b; if (!b._wrapped) { b._wrapped = function () { try { return b.apply(this, arguments); } catch (d) { throw ((d._rollbarContext = e()), (d._rollbarContext._wrappedSource = b.toString()), (a._rollbarWrappedError = d), d); } }; b._wrapped._isWrap = !0; for (var f in b) b.hasOwnProperty(f) && (b._wrapped[f] = b[f]); } return b._wrapped; } catch (g) { return b; } }; for (var m = "log debug info warn warning error critical global configure scope uncaughtError".split(" "), n = 0; n < m.length; ++n) d.prototype[m[n]] = e(m[n]); _rollbarConfig.rollbarJsUrl = _rollbarConfig.rollbarJsUrl || "//d37gvrvc0wt4s1.cloudfront.net/js/v1.1/rollbar.min.js"; d.init(a, _rollbarConfig).loadFull(a, b, 1, _rollbarConfig); }; (function (a) { (a.__greentube_games && a.__greentube_games.SLOT) || (a.__greentube_games = { SLOT: {} }); })(window); "undefined" === typeof Promise && (function () { function a(a, b) { return function () { a.apply(b, arguments); }; } function b(b) { if ("object" !== typeof this) throw new TypeError("Promises must be constructed via new"); if ("function" !== typeof b) throw new TypeError("not a function"); this._value = this._state = null; this._deferreds = []; m(b, a(e, this), a(f, this)); } function d(a) { var b = this; null === this._state ? this._deferreds.push(a) : p(function () { var d = b._state ? a.onFulfilled : a.onRejected; if (null === d) (b._state ? a.resolve : a.reject)(b._value); else { var e; try { e = d(b._value); } catch (f) { a.reject(f); return; } a.resolve(e); } }); } function e(b) { try { if (b === this) throw new TypeError("A promise cannot be resolved with itself."); if (b && ("object" === typeof b || "function" === typeof b)) { var d = b.then; if ("function" === typeof d) { m(a(d, b), a(e, this), a(f, this)); return; } } this._state = !0; this._value = b; g.call(this); } catch (k) { f.call(this, k); } } function f(a) { this._state = !1; this._value = a; g.call(this); } function g() { for (var a = 0, b = this._deferreds.length; a < b; a++) d.call(this, this._deferreds[a]); this._deferreds = null; } function k(a, b, d, e) { this.onFulfilled = "function" === typeof a ? a : null; this.onRejected = "function" === typeof b ? b : null; this.resolve = d; this.reject = e; } function m(a, b, d) { var e = !1; try { a( function (a) { e || ((e = !0), b(a)); }, function (a) { e || ((e = !0), d(a)); } ); } catch (f) { e || ((e = !0), d(f)); } } var n; n = "object" === typeof window && window ? window : global; var p = n.setImmediate || function (a) { setTimeout(a, 1); }, q = Array.isArray || function (a) { return "[object Array]" === Object.prototype.toString.call(a); }; n.Promise = b; b.prototype["catch"] = function (a) { return this.then(null, a); }; b.prototype.then = function (a, e) { var f = this; return new b(function (b, g) { d.call(f, new k(a, e, b, g)); }); }; b.all = function () { var a = Array.prototype.slice.call(1 === arguments.length && q(arguments[0]) ? arguments[0] : arguments); return new b(function (b, d) { function e(g, k) { try { if (k && ("object" === typeof k || "function" === typeof k)) { var m = k.then; if ("function" === typeof m) { m.call( k, function (a) { e(g, a); }, d ); return; } } a[g] = k; 0 === --f && b(a); } catch (n) { d(n); } } if (0 === a.length) return b([]); for (var f = a.length, g = 0; g < a.length; g++) e(g, a[g]); }); }; b.resolve = function (a) { return a && "object" === typeof a && a.constructor === b ? a : new b(function (b) { b(a); }); }; b.reject = function (a) { return new b(function (b, d) { d(a); }); }; b.race = function (a) { return new b(function (b, d) { for (var e = 0, f = a.length; e < f; e++) a[e].then(b, d); }); }; })(); (function (a, b) { var d = function () { this._listeners = {}; }; d.prototype = { constructor: d, addListener: function (a, b) { "undefined" == typeof this._listeners[a] && (this._listeners[a] = []); this._listeners[a].push(b); }, isUndefined: function (a) { return void 0 === a; }, isDefined: function (a) { return void 0 !== a; }, isNotNullAndDefined: function (a) { return void 0 !== a && null !== a; }, fire: function (a) { "string" == typeof a && (a = { type: a }); a.target || (a.target = this); if (!a.type) throw Error("Event object missing 'type' property."); if (this._listeners[a.type] instanceof Array) for (var b = this._listeners[a.type], d = 0, e = b.length; d < e; d++) b[d].call(this, a); }, removeListener: function (a, b) { if (this._listeners[a] instanceof Array) for (var d = this._listeners[a], e = 0, n = d.length; e < n; e++) if (d[e] === b) { d.splice(e, 1); break; } }, }; new d(); var e = function (a, b) { this._window = a; this._document = b; this._body = this.query("body"); this._html = this.query("html"); this._eventStorage = []; var d = this; "Arguments Function String Number Date RegExp Error".split(" ").forEach(function (a) { d["is" + a] = function (b) { return Object.prototype.toString.call(b) === "[object " + a + "]"; }; }); }; e.prototype = new d(); e.prototype.constructor = e; e.prototype.body = function () { return this._body; }; e.prototype.isArray = function (a) { return ( Array.isArray || function (a) { return "[object Array]" === Object.prototype.toString.call(a); } )(a); }; e.prototype.isEmpty = function (a) { return null == a ? !0 : this.isArray(a) || this.isString(a) || this.isArguments(a) ? 0 === a.length : 0 === this.keys(a).length; }; e.prototype.isObject = function (a) { var b = typeof a; return "function" === b || ("object" === b && !!a); }; e.prototype.isElement = function (a) { return !(!a || 1 !== a.nodeType); }; e.prototype.has = function (a, b) { return null != a && hasOwnProperty.call(a, b); }; e.prototype.keys = function (a) { var b = Object.keys; if (!this.isObject(a)) return []; if (b) return b(a); var b = [], d; for (d in a) this.has(a, d) && b.push(d); return b; }; e.prototype.extend = function (a) { a = a || {}; for (var b = 1; b < arguments.length; b++) { var d = arguments[b]; if (d) for (var e in d) d.hasOwnProperty(e) && ("object" === typeof d[e] ? this.extend(a[e], d[e]) : (a[e] = d[e])); } return a; }; e.prototype.create = function (a, d) { var e = b.createElement(a), m; for (m in d) e[m] = d[m]; return e; }; e.prototype.parent = function (a) { return (a = a.parentNode) && 11 !== a.nodeType ? a : null; }; e.prototype.loadJSON = function (a) { return this.get(a); }; e.prototype.queryAllSelector = function (a) { return b.querySelectorAll(a); }; e.prototype.query = function (a) { a = this.queryAllSelector(a); return 0 != a.length ? a[0] : []; }; e.prototype.unbind = function () {}; e.prototype.trigger = function () {}; e.prototype.append = function (a, b) { "string" === typeof a ? this.query(a).appendChild(b) : a.appendChild(b); return this; }; e.prototype.remove = function (a, b) { b.removeChild(a); return this; }; e.prototype.addClass = function (a, b) { if (a) return (a.className += " " + b), a; }; e.prototype.css = function (a, b) { if (a && 3 !== a.nodeType && 8 !== a.nodeType && a.style) { var d = function (a) { return a.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function (a, b) { return b.toUpperCase(); }); }, e = function (a, b) { var d = ["Webkit", "O", "Moz", "ms"]; if (b in a) return b; for (var e = b[0].toUpperCase() + b.slice(1), f = b, g = d.length; g--; ) if (((b = d[g] + e), b in a)) return b; return f; }, n = a.style, p; for (p in b) if (b.hasOwnProperty(p)) { var q = d(p); n[e(n, q)] = b[p]; } return this; } }; e.prototype.offsetParent = function (a) { return this.offset(a.offsetParent); }; e.prototype.offset = function (a) { a = a.getBoundingClientRect(); return { top: a.top + b.body.scrollTop, left: a.left + b.body.scrollLeft }; }; e.prototype.scrollLeft = function () { var a = Array.prototype.slice.call(arguments, 0); a.push("scrollLeft"); return this.scrollTo.apply(this, a); }; e.prototype.scrollTop = function () { var a = Array.prototype.slice.call(arguments, 0); a.push("scrollTop"); return this.scrollTo.apply(this, a); }; e.prototype.scrollTo = function () { var a, b, d; 1 === arguments.length ? (d = arguments[0]) : 2 === arguments.length ? ((d = arguments[0]), "number" === typeof d && (b = d), "object" === typeof d && (a = d), (d = arguments[1])) : 3 === arguments.length && ((a = arguments[0]), (b = arguments[1]), (d = arguments[2])); i = { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }[d]; var e = "pageYOffset" === i; if (void 0 === b) return void 0 === a ? this._window[i] : a[d]; void 0 === a ? this._window.scrollTo(e ? this._window.pageXOffset : b, e ? b : this._window.pageYOffset) : (a[d] = b); }; e.prototype.bind = function (a, b, d) { b === this._window || b === this._body ? b.addEventListener(a, d.bind(this), !1) : "object" === typeof b && ((d = b.addEventListener(a, d.bind(this), !1)), this._eventStorage.push({ el: b, type: a, event: d })); }; e.prototype.ready = function () { var a = this; return "complete" !== b.readyState ? new Promise(function (b, d) { try { a.bind("load", a._window, function () { b(); }), a.bind("DOMContentLoaded", a._document, function () { b(); }); } catch (e) { d(e); } }) : new Promise(function (a, b) { a(); }); }; e.prototype.get = function (a) { return new Promise(function (b, d) { request = new XMLHttpRequest(); request.open("GET", a, !0); request.onload = function () { (200 <= this.status && 400 > this.status) || 0 == this.status ? b(this.responseText) : d(Error("Could not open " + a)); }; request.onerror = function () { d(Error("Could not open " + a)); }; request.send(); }); }; d = new e(a, b); d.isUndefined(a.__greentube_games) && (a.__greentube_games = { G: d }); a.G = d; })(window, document); (function (a, b) { var d = !1, e = !0, f = null, g = function (a) { return new Promise(function (b, d) { var f = new Image(); f.onload = function () { e = 0 < f.width && 0 < f.height; b(); }; f.onerror = function () { e = !1; b(); }; f.src = "data:image/webp;base64," + { lossy: "UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA", lossless: "UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==", alpha: "UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==", animation: "UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA", }[a]; }); }, d = (function () { try { var d = b.createElement("canvas"); d.width = 8; d.height = 8; var e = { stencil: !0, antialias: !1 }, g = d.getContext("webgl", e) || d.getContext("experimental-webgl", e), k = !!a.WebGLRenderingContext && g; if (k) { var r = g.getContextAttributes(); if ((k = k && r.stencil)) { var t = PIXI.compileProgram(g, ["attribute vec2 a_position; void main(){gl_Position=vec4(a_position,0,1);}"], ["void main(){gl_FragColor=vec4(1,0,0,1);}"]); g.useProgram(t); var u = g.getAttribLocation(t, "a_position"), B = g.createBuffer(); g.bindBuffer(g.ARRAY_BUFFER, B); g.bufferData(g.ARRAY_BUFFER, new Float32Array([-1, -1, 0, -1, -1, 1, -1, 1, 0, -1, 0, 1]), g.STATIC_DRAW); g.enableVertexAttribArray(u); g.vertexAttribPointer(u, 2, g.FLOAT, !1, 0, 0); g.enable(g.STENCIL_TEST); g.clear(g.STENCIL_BUFFER_BIT); g.colorMask(!1, !1, !1, !1); g.stencilFunc(g.EQUAL, 0, 255); g.stencilOp(g.KEEP, g.KEEP, g.INCR); g.drawArrays(g.TRIANGLES, 0, 6); g.stencilFunc(g.EQUAL, 1, 255); g.colorMask(!0, !0, !0, !0); g.stencilOp(g.KEEP, g.KEEP, g.KEEP); g.bufferData(g.ARRAY_BUFFER, new Float32Array([-1, -1, 1, -1, -1, 1, -1, 1, 1, -1, 1, 1]), g.STATIC_DRAW); g.drawArrays(g.TRIANGLES, 0, 6); var A = new Uint8Array(256); g.readPixels(0, 0, 8, 8, g.RGBA, g.UNSIGNED_BYTE, A); var k = 255 == A[132] && 0 == A[152], C = g.getExtension("WEBGL_debug_renderer_info"); C && (f = g.getParameter(C.UNMASKED_RENDERER_WEBGL)); } } return !0 === k; } catch (E) { return !1; } })(), k = function (b) { var d = this; this.pixelRatio = function (b) { return a.devicePixelRatio === b; }; this._screenSize = function (b, d) { return a.screen.height === b && a.screen.width === d; }; this._test = function (a, d) { return new RegExp(a, d || "i").test(b); }; this._match = function (a) { return b.match(a); }; this.devicePixelRatio = G.isNotNullAndDefined(a.devicePixelRatio) && 1 <= a.devicePixelRatio ? a.devicePixelRatio : 1; this.userAgent = b; this._webkit_minimum_webaudio = 535; this.settings = {}; this.regExAppleWebKit = new RegExp(/AppleWebKit\/([\d.]+)/); this.regExChromeVersion = this._match(/Chrome\/(.*?)\./); this.regExMozillaVersion = this._match(/Firefox\/(.*?)\./); this.resultAppleWebKitRegEx = this.regExAppleWebKit.exec(b); this.chromeVersion = null === this.regExChromeVersion ? 0 : parseInt(this.regExChromeVersion[1]); this.mozillaVersion = null === this.regExMozillaVersion ? 0 : parseInt(this.regExMozillaVersion[1]); this._webkit_version = 537; this.appleWebKitVersion = null === this.resultAppleWebKitRegEx ? null : parseFloat(this.regExAppleWebKit.exec(b)[1]); this.webkit = this._test("webkit"); this.opera = this._test("Opera|OPR", "g"); this.operaMobile = this._test("Opera Mobi"); this.msie = this._test("msie") || this._test("trident"); this.msieMobile = this._test("IEMobile"); this.msieVersion = function () { var a = this._match(/MSIE(?:[\/ ]([0-9.]+))?/i); !a && this._test("trident") && (a = this._match(/rv:([0-9]{1,}[\.0-9]{0,})/i)); return parseFloat(a[1]); }; this.msedge = this._test("edge"); this.mozilla = this._test("mozilla") && !this.msie && !this.webkit; var e = function (a) { return d._test("OS " + a + "_\\w*\\d like Mac OS X"); }, g = function (a) { return d._test("OS " + a + "_\\d(_d)? like Mac OS X"); }; this.ios = this._match(/(iphone|ipad|ipod)/i); this.phanthomjs = this._test("PhantomJS"); this.ios5 = e("[2-5]"); this.ios7 = e("7"); this.ios6 = e("6"); this.ios8 = e("8"); this.ios9 = e("9"); this.ios10 = e("10"); this.ios11 = e("11"); this.ios7_1 = this.ios && (g("7_1") || this._test("OS 7_1? like Mac OS X")); this.ios7_0 = this.ios && (g("7_0") || this._test("OS 7_0? like Mac OS X")); this.ios8_0 = this.ios && (g("8_0") || this._test("OS 8_0? like Mac OS X")); this.ios8_0_2 = this.ios && (g("8_0_2") || this._test("OS 8_0_2? like Mac OS X")); this.ios8_1 = this.ios && (g("8_1") || this._test("OS 8_1? like Mac OS X")); this.ios8_2 = this.ios && (g("8_2") || this._test("OS 8_2? like Mac OS X")); this.android = b.match(/(android)/i); this.androidVersion = function () { var a = this._match(/Android\s([0-9\.]*)/); if (a && 2 === a.length) return a[1]; }; this.iosVersion = function () { if (d.ios) return parseFloat( this._match(/(\d+)_(\d+)/)[0] .replace("_", ".") .trim() ); }; this.androidTablet = this.android && !this._find("Mobile"); this.androidMobile = this.android && (this._find("Mobile") || (this.opera && (this._find("Mobi") || this._find("Mini")))); this.stock = this.android && this.webkit && null !== this.appleWebKitVersion && (537 > this.appleWebKitVersion || 29 >= this.chromeVersion) && 29 >= this.chromeVersion; this.chrome = !0 !== this.msedge && this._test("chrome") && this.webkit && !this.stock && 31 <= this.chromeVersion; this.safari = !this.chrome && this._test("Safari"); this.androidchrome = this.android && this.chrome; this.mobile = null !== this.ios || null !== this.android || (this.msie && this.msieMobile) || (this.opera && this.operaMobile); this.ipad = this._match(/(ipad)/i); this.ipadmini = (null === this.ipad ? !1 : !0) && this.pixelRatio(1) && this._screenSize(1024, 768); this.iphone = this._match(/(iphone)/i); this.iphone6 = (null === this.iphone ? !1 : !0) && this.pixelRatio(2) && this._screenSize(667, 375); this.iphone6Plus = (null === this.iphone ? !1 : !0) && this.pixelRatio(3) && this._screenSize(736, 414); this.desktop = !this.mobile; this.gpuString = f; this.__e = function (a) { return void 0 !== a; }; this._visible(); }; k.prototype = { ready: function () { return Promise.all([g("alpha"), G.ready()]); }, version: function () { if (this.ios) return this.iosVersion(); if (this.stock) return this.androidVersion(); if (this.chrome) return this.chromeVersion; if (this.mozilla) return this.mozillaVersion; if (this.msie) return this.msieVersion(); }, isTouch: function () { return "ontouchstart" in a || 0 < navigator.MaxTouchPoints || 0 < navigator.msMaxTouchPoints; }, matchResolutions: function (b) { for (var d = 0, e = 0; e < b.length; e++) { var f = 10 * Math.floor(b[e] / this.devicePixelRatio / 10); if (a.matchMedia("(min-device-width: " + f + "px)").matches || a.matchMedia("(min-device-height: " + f + "px)").matches) d = b[e]; else break; } return d; }, screenSize: function () { return { width: a.innerWidth, height: a.innerHeight }; }, iPhoneSmallScreen: function () { var a = DEVICE.orientation("L"), b = DEVICE.screenSize(); return (a && 235 >= b.height) || (DEVICE.ios9 && a && 284 >= b.height); }, orientation: function (b) { var d = a.orientation; switch (b) { case "P": return 0 === d || 180 === d; case "L": return -90 === d || 90 === d; } }, webkitVersion: function () { return this.mozilla ? this.mozillaVersion : this.appleWebKitVersion; }, _find: function (a) { return -1 !== this.userAgent.indexOf(a); }, canIplay: function () { var a = b.createElement("audio"), d = {}; try { return ( (d.ogg = !(!a.canPlayType || !a.canPlayType('audio/ogg; codecs="vorbis"').replace(/no/, ""))), (d.mp3 = !(!a.canPlayType || !a.canPlayType("audio/mpeg;").replace(/no/, ""))), (d.wav = !(!a.canPlayType || !a.canPlayType('audio/wav; codecs="1"').replace(/^no$/, ""))), (d.m4a = !(!a.canPlayType || !(a.canPlayType("audio/x-m4a;") || a.canPlayType("audio/aac;")).replace(/^no$/, ""))), d ); } catch (e) { return console.error(e), {}; } }, webgl: function () { return d; }, fullscreen: function () { return b.exitFullscreen || b.webkitExitFullscreen || b.mozCancelFullScreen || (null != b.msExitFullscreen && (DEVICE.androidchrome || (DEVICE.mozilla && 34 <= DEVICE.version()))); }, webp: function () { return e; }, webaudio: function () { return ("webkitAudioContext" in a || "AudioContext" in a) && (null === this.appleWebKitVersion || this.appleWebKitVersion > this._webkit_minimum_webaudio); }, _visible: function () { var d; d = { b: null, q: b, p: void 0, prefixes: ["webkit", "ms", "moz", ""], props: ["visibilityState", "visibilitychange", "Hidden"], m: ["focus", "blur"], visibleCallbacks: [], hiddenCallbacks: [], _callbacks: [], visible: !0, visbilityStateSupported: !1, onVisible: function (a) { this.visibleCallbacks.push(a); }, onHidden: function (a) { this.hiddenCallbacks.push(a); }, isSupported: function () { for (var a = this.prefixes.length; a--; ) if (this._supports(a)) return (this.b = this.prefixes[a]); return !1; }, _supports: function (a) { var b = this.prefixes[a] + this.props[2] in this.q; b || (this.visbilityStateSupported = this.prefixes[a] + this.props[0] in this.q); return b || this.visbilityStateSupported; }, runCallbacks: function (a) { if (a) for (this._callbacks = 1 === a ? this.visibleCallbacks : this.hiddenCallbacks, a = 0; a < this._callbacks.length; a++) this._callbacks[a](); }, _visible: function () { this.visible = !0; d.runCallbacks(1); }, _hidden: function () { this.visible = !1; d.runCallbacks(2); }, _nativeSwitch: function () { this.visbilityStateSupported ? ("hidden" === this.q[this.b + this.props[0]] ? this._hidden() : this._visible()) : !0 === this.q[this.b + this.props[2]] ? this._hidden() : this._visible(); }, listen: function () { try { !1 === this.isSupported() ? b.addEventListener ? (a.addEventListener(this.m[0], this._visible, 1), a.addEventListener(this.m[1], this._hidden, 1)) : (this.q.attachEvent("onfocusin", this._visible), this.q.attachEvent("onfocusout", this._hidden)) : this.q.addEventListener( this.b + this.props[1], function () { d._nativeSwitch.apply(d, arguments); }, 1 ); } catch (e) {} }, init: function () { this.listen(); }, }; d.init(); this._visibly = d; }, visible: function () { return this._visibly; }, }; a.DETECTION = k; })(window, document); (function (a) { a.DEVICE = new a.DETECTION(navigator.userAgent); })(window); (function (a) { var b = a.__greentube_games, d = { MESSAGETARGET: "top", STATS: { PIXELS: 0, SOUNDLENGTH: 0, PIXIGRAPHICS: 0 }, SOUNDS: {}, fullscreen: !0, generate_containers: !1, fixedContainer: !1, IMAGES: {}, VIDEOS: {}, QUERY_URL: {}, SCALINGFACTOR: null, REQUESTAFID: null, CURRENTSOUND: null, TOPCONTAINEROFFSET: 100, BUILDTYPE: "EMBEDDED", FEATURELEVEL: "MOBILEFEATUREBUILD", CONTAINERS: { fullscreen: "fullscreen", container: "container", cheat_container: "d_cheat", audio_container: "splayer", fixedContainer: !1 }, SOUNDPLAYER: null, STARVEGAS: !1, CLIENTSLOTAPPLET: null, TARGETSYMBOLWIDTH: parseFloat("152.0"), APPLETNAME: "%APPLETNAME%", PACKAGE: "%PACKAGE%", featuresupport: { FILTERS: "OK", PARTICLES: "OK" }, }, e = {}, e = { get: function (a) { if (G.isNotNullAndDefined(a)) return "boolean" === typeof e[a] ? e[a] : "" === e[a] ? "" : "undefined" === typeof e[a] ? null : e[a]; }, is: function (a, b) { return a in CONFIG ? CONFIG.get(a) == b : !1; }, set: function (a, b) { G.isNotNullAndDefined(b) && (e[a] = b); }, merge: function (a) { if (a) for (var b in a) e[b] = a[b]; }, __init: function (a) { b.SLOT.PARAMS.initParams({}, a, b.SLOT.CONFIG); }, }, e = (function (a, b) { var d = {}, e; for (e in a) d[e] = a[e]; for (var n in b) d[n] = b[n]; return d; })(e, d); b.SLOT.CONFIG = e; a.CONFIG = e; })(window); (function (a, b) { var d, e = {}, f = null, g = function (a) { var d = {}; a = G.isDefined(a) ? a : b.location.href.substr(b.location.href.indexOf("?") + 1); if (!G.isEmpty(a)) { a = a.split("&"); for (var e = 0; e < a.length; e++) { var f = a[e].split("="); d[f[0]] = decodeURIComponent(f[1]); } return d; } return {}; }; __greentube_games.SLOT.PARAMS = d = { initParams: function (a, d, f) { var g = !1, q = function () { g = d.iphone || 400 > Math.min(d.screenSize().width, d.screenSize().height); f.set("devicetype", "handheld"); f.set("mobilegamble", "1"); f.set("hidecurrencysymbols", "1"); f.set("hidecurrencysymbolsongamblescreen", "1"); f.set("forceEnableClick", "0"); f.set("autopayin", "1"); f.set("nolobby", "1"); f.set("h265video", "0"); f.set("vectortext", "0"); f.set("maxvideodecoders", 5); d.mobile ? (f.set("notooltip", "1"), f.set("disablecursor", "1")) : f.set("simulatetouchevents", "1"); }; switch (f.FEATURELEVEL) { case "FULLFEATUREBUILD": g = !1; f.set("devicetype", "desktop"); f.set("h265video", "1"); f.set("vectortext", "1"); f.set("videoondemand", "1"); f.set("maxvideodecoders", 20); break; case "MOBILEFEATUREBUILDBIGBUTTONCONSOLE": q(); f.set("bigbutton", "1"); f.set("bigmenubutton", "1"); break; default: q(), f.set("onebutton", "1"), f.set("reducedsounds", "1"), f.set("reducedgraphics", "1"), f.set("improvedreadability", "1"); } "MOBILEWEB" === f.BUILDTYPE && f.set("button.touch2start.show", "1"); e = a || e; f.merge(e); f.set("screensize", g ? "small" : "large"); a = "desktop"; d.android ? (a = "android") : d.ios && (a = "ios"); f.set("operatingsystem", a); f.set("devicepixelratio", b.devicePixelRatio + ""); f.set("deviceres", d.matchResolutions(["800", "1280", "1920", "2048"]) + ""); f.set("stock", (1 == d.stock) + ""); f.set("chromeversion", d.chromeVersion + ""); f.set("gpu", d.gpuString + ""); f.set("iphone", d.iphone ? "1" : "0"); return f; }, stringURLParamsToObject: function (a) { return null === f || G.isDefined(a) ? (G.isString(a) ? g(a) : G.isUndefined(a) ? g() : a) : f; }, mergeGetParams: function (a, b) { var d = __greentube_games.SLOT.UTIL; f = G.isEmpty(b) ? f : this.stringURLParamsToObject(b); a.merge(f); a.set("webaudio", DEVICE.webaudio()); var e = DEVICE.webaudio() ? "1" : "0"; null === a.get("usingwebaudio") ? (e = null != f.usingwebaudio ? f.usingwebaudio : e) : "1" === a.get("usingwebaudio") && "1" === e ? (e = "1") : "0" === a.get("usingwebaudio") && (e = "0"); JSUTIL.noaudio() && (a.set("noaudio", "1"), "FULLFEATUREBUILD" === a.FEATURELEVEL && (a.set("button.music.show", "0"), a.set("button.sound.show", "0"))); a.set("usingwebaudio", 1 == e || 1 == a.get("slotparkaudio") ? "1" : "0"); "ios" === a.operatingsystem || (1 != JSUTIL.getParameter("webp") && null !== JSUTIL.getParameter("webp")) ? a.set("webp", !1) : a.set("webp", DEVICE.webp()); e = ("webgl" in f && 0 == f.webgl) || "0" === a.get("webgl") || !1 === DEVICE.webgl(); a.set("webgl", !0 === e ? "0" : "1"); a.set("canvasrenderer", !0 === e ? "1" : "0"); "1" == d.getParameter("starvegasmobile") && "FULLFEATUREBUILD" != a.FEATURELEVEL && (a.set("STARVEGAS", !0), a.set("bottominset", "1"), a.set("skin", a.get("skin") + ",starvegas")); 1 == f.showpayindialog && 1 != f.autopayin && a.set("autopayin", "0"); return a; }, setParams: function (a) { e = a; }, getParams: function () { return e; }, parseUrlToObject: g, }; f = d.stringURLParamsToObject(); })(window.__greentube_games, window); (function (a) { a.performance = a.performance || {}; var b = a.__greentube_games; basedir = null; var d = [], d = [], e = function (a, b) { if (null == a) return void 0 == b; if (null == b) return !1; if ("string" !== typeof b) return a instanceof b ? !0 : !1; if (void 0 !== a.interfaces) for (var d = 0, e = a.interfaces.length; d < e; ++d) if (a.interfaces[d] == b) return !0; return !1; }, f = function (a) { return G.isDefined(a); }, g = function (a, b, d) { if (a === b) return !0; if (!(a instanceof Object && b instanceof Object) || a.constructor !== b.constructor) return !1; for (var e in a) if (a.hasOwnProperty(e)) { if (!b.hasOwnProperty(e)) return !1; if (a[e] !== b[e] && "function" !== typeof a[e]) { if ("object" !== typeof a[e] || -1 !== d.indexOf(a[e])) return !1; d.push(a[e]); if (!g(a[e], b[e], d)) return !1; } } for (e in b) if (b.hasOwnProperty(e) && !a.hasOwnProperty(e)) return !1; return !0; }, k = function (a, b) { return CONFIG.get(a || null); }, m = function (a, b) { var d = new RegExp(a, "i"), e = b.userAgent.toLowerCase(); return d.test(e); }, n = function (a, b, d) { if (d[a]) return !0; if (void 0 === d[a]) return (a = m(a, d)) && f(b) && (a = a && !m(b, d)), a; }, p = function (a, b) { var d = new RegExp(a, "i"), e = b.gpuString.toLowerCase(); return d.test(e); }, q = function (a, b) { if (!a || 0 == a.length || "all" === a) return !0; var d = b.version(), e = a.indexOf("-"); if (0 > e) return a == d; var f = a.length; if (0 == e) return d <= parseFloat(a.substring(1, f)); if (e == f - 1) return d >= parseFloat(a.substring(0, e)); var g = parseFloat(a.substring(0, e)), e = parseFloat(a.substring(e + 1, f)); return d >= g && d <= e; }, r = function (a, b) { f(a.blacklisted) && (b.blacklisted = !0); f(a.whitelisted) && (b.whitelisted = !0); f(a.scrolltoy) && (b.scrollToY = a.scrolltoy); f(a.webp) && (b.webp = a.webp); f(a.smartrepaint) && (b.smartrepaint = a.smartrepaint); f(a.fullscreen) && (b.fullscreen = a.fullscreen); f(a.clearbeforerender) && (b.clearbeforerender = a.clearbeforerender); f(a.webgl) && (b.webgl = a.webgl); f(a.webglsmartrepaint) && (b.webglsmartrepaint = a.webglsmartrepaint); f(a.webglpreservebuffer) && (b.webglpreservebuffer = a.webglpreservebuffer); f(a.webglflush) && (b.webglflush = a.webglflush); f(a.webgluploadsubarray) && (b.webgluploadsubarray = a.webgluploadsubarray); f(a.webglensurecanvasrendercomplete) && (b.webglensurecanvasrendercomplete = a.webglensurecanvasrendercomplete); f(a.webgltransparentbg) && (b.webgltransparentbg = a.webgltransparentbg); f(a.streamvideo) && (b.streamvideoformat = a.streamvideo); f(a.sound) && (f(a.sound.audioformat) && (b.audioformat = a.sound.audioformat), f(a.sound.usingwebaudio) && (CONFIG.set("usingwebaudio", a.sound.usingwebaudio), CONFIG.set("webaudio", 1 == a.sound.usingwebaudio))); f(a.touchinterval) && (b.touchinterval = a.touchinterval); return b; }, t = function (a) { return ( "MOBILEFEATUREBUILD" == CONFIG.FEATURELEVEL && !CONFIG.is("swipeupanimation.show", 0) && (G.isDefined(a) ? a : !0) && (DEVICE.ios7_0 || ((DEVICE.ios11 || DEVICE.ios10 || DEVICE.ios9 || DEVICE.ios8) && !DEVICE.iphone6 && !DEVICE.iphone6Plus && null === DEVICE.ipad)) ); }, u = function () { for (var a = G.query("#dots-scrollup"), b = 0; 10 > b; b++) { var d = G.create("div", { id: "particleBorder000" + b }); G.addClass(d, "swipe_up_border"); var e = G.create("div", { id: "particleCore000" + b }); G.addClass(e, "swipe_up_dot"); G.append(a, e); G.append(a, d); } a = G.query("#finger-dots"); G.addClass(a, "scrollAnimationContainer scrollup_animation"); }, B = { scrollNode: null, scrollDotChilds: function () { return 0 < G.query("#dots-scrollup").childNodes.length; }, enabled: !1, createAnimations: u, disableAnimations: function () { var a = G.query("#dots-scrollup"); for (a.childNodes; a.firstChild; ) a.removeChild(a.firstChild); G.query("#finger-dots").className = ""; }, isScrollAnimatedEnabled: t, generateScrollAnimationBody: function (a) { if (t() && G.isElement(a)) { var b; b = G.query("#cover-scrollup"); var d; d = G.query("#cover-scrollup"); d = "[object Array]" === Object.prototype.toString.call(d) ? 0 < d.length : null !== d; b = d ? b : G.create("div", { id: "cover-scrollup" }); d = G.create("div", { id: "dots-scrollup" }); var e = G.create("div", { id: "scrollup" }); G.addClass(e, "scrollup"); G.css(d, { top: "22px", position: "absolute" }); var f = G.create("div", { id: "finger-dots" }); G.css(b, { visibility: "hidden" }); G.append(e, f); G.append(b, d); G.append(b, e); G.append(b, f); G.append(a, b); B.scrollNode = b; u(); } }, isReady: function () { return null !== B.scrollNode; }, }, A = { _globalshaderObjDefaultMatrix: [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], getGlobalShader: function () { A._globalshaderObj || (A._globalshaderObj = new PIXI.GreentubeGlobalShader()); return A._globalshaderObj; }, getGlobalShaderDefaultColorTransformationMatrix: function () { return A._globalshaderObjDefaultMatrix; }, convertToWebGLColorTransformationMatrix: function (a, b) { (G.isNotNullAndDefined(a) && 16 === a.length) || (a = Array(16)); a[0] = 0.01 * b.percentageRedFromRed; a[1] = 0.01 * b.percentageRedFromGreen; a[2] = 0.01 * b.percentageRedFromBlue; a[3] = b.offsetRed / 255; a[4] = 0.01 * b.percentageGreenFromRed; a[5] = 0.01 * b.percentageGreenFromGreen; a[6] = 0.01 * b.percentageGreenFromBlue; a[7] = b.offsetGreen / 255; a[8] = 0.01 * b.percentageBlueFromRed; a[9] = 0.01 * b.percentageBlueFromGreen; a[10] = 0.01 * b.percentageBlueFromBlue; a[11] = b.offsetBlue / 255; a[12] = 0; a[13] = 0; a[14] = 0; a[15] = 1; return a; }, hasColorTransformation: function (a) { for (; G.isNotNullAndDefined(a); ) { if (G.isNotNullAndDefined(a.colortransformation) || G.isNotNullAndDefined(a.intrinsiccolortransformation)) return !0; a = a.parent; } return !1; }, getFinalColorTransformation: function (a) { for ( var b = null, d = (GRA = BRA = ORA = RGA = GGA = BGA = OGA = RBA = GBA = BBA = OBA = -1), e = (GRB = BRB = ORB = RGB = GGB = BGB = OGB = RBB = GBB = BBB = OBB = -1), f = (GRT = BRT = ORT = RGT = GGT = BGT = OGT = RBT = GBT = BBT = OBT = -1); G.isNotNullAndDefined(a); ) { if ((b = G.isNotNullAndDefined(a.colortransformation)) || G.isNotNullAndDefined(a.intrinsiccolortransformation)) (b = b ? a.colortransformation : a.intrinsiccolortransformation), -1 === d ? ((f = d = b.percentageRedFromRed), (GRT = GRA = b.percentageGreenFromRed), (BRT = BRA = b.percentageBlueFromRed), (ORT = ORA = b.offsetRed), (RGT = RGA = b.percentageRedFromGreen), (GGT = GGA = b.percentageGreenFromGreen), (BGT = BGA = b.percentageBlueFromGreen), (OGT = OGA = b.offsetGreen), (RBT = RBA = b.percentageRedFromBlue), (GBT = GBA = b.percentageGreenFromBlue), (BBT = BBA = b.percentageBlueFromBlue), (OBT = OBA = b.offsetBlue)) : ((e = b.percentageRedFromRed), (GRB = b.percentageGreenFromRed), (BRB = b.percentageBlueFromRed), (ORB = b.offsetRed), (RGB = b.percentageRedFromGreen), (GGB = b.percentageGreenFromGreen), (BGB = b.percentageBlueFromGreen), (OGB = b.offsetGreen), (RBB = b.percentageRedFromBlue), (GBB = b.percentageGreenFromBlue), (BBB = b.percentageBlueFromBlue), (OBB = b.offsetBlue)), -1 !== d && -1 !== e && ((f = 0.01 * (e * d + RGB * GRA + RBB * BRA)), (GRT = 0.01 * (GRB * d + GGB * GRA + GBB * BRA)), (BRT = 0.01 * (BRB * d + BGB * GRA + BBB * BRA)), (ORT = 0.01 * (e * ORA + RGB * OGA + RBB * OBA) + ORB), (RGT = 0.01 * (e * RGA + RGB * GGA + RBB * BGA)), (GGT = 0.01 * (GRB * RGA + GGB * GGA + GBB * BGA)), (BGT = 0.01 * (BRB * RGA + BGB * GGA + BBB * BGA)), (OGT = 0.01 * (GRB * ORA + GGB * OGA + GBB * OBA) + OGB), (RBT = 0.01 * (e * RBA + RGB * GBA + RBB * BBA)), (GBT = 0.01 * (GRB * RBA + GGB * GBA + GBB * BBA)), (BBT = 0.01 * (BRB * RBA + BGB * GBA + BBB * BBA)), (OBT = 0.01 * (BRB * ORA + BGB * OGA + BBB * OBA) + OBB), (d = f), (GRA = GRT), (BRA = BRT), (ORA = ORT), (RGA = RGT), (GGA = GGT), (BGA = BGT), (OGA = OGT), (RBA = RBT), (GBA = GBT), (BBA = BBT), (OBA = OBT)); a = a.parent; } return (b = new GT1063(f, RGT, RBT, ORT, GRT, GGT, GBT, OGT, BRT, BGT, BBT, OBT)); }, updateObjectColorTransformation: function (a, b, d) { if (null !== a && "1" === CONFIG.webgl) { b = a._displayObject._cachedSprite ? a._displayObject._cachedSprite : a._graphicsDisplayObject && a._graphicsDisplayObject._cachedSprite ? a._graphicsDisplayObject._cachedSprite : a._displayObject; if (this.hasColorTransformation(a)) { var e = this.getFinalColorTransformation(a); b.gt_colormatrix = JSUTIL.webGLGlobalShader.convertToWebGLColorTransformationMatrix(b.gt_colormatrix, e); if (d) for (d = 0; d < b.children.length; ++d) b.children[d] && b.children[d] instanceof PIXI.Text && (b.children[d].gt_colormatrix = b.gt_colormatrix); } else if (((b.gt_colormatrix = null), d)) for (d = 0; d < b.children.length; ++d) b.children[d] && b.children[d] instanceof PIXI.Text && (b.children[d].gt_colormatrix = null); a.setAsDirtyArea_1(a); } }, }, C = { signedByte: new Int8Array(1), signedShort: new Int16Array(1), unsignedShort: new Uint16Array(1), signedInt: new Int32Array(1), castToByte: function (a) { return (this.signedByte[0] = a); }, castToShort: function (a) { return (this.signedShort[0] = a); }, castToInt: function (a) { return (this.signedInt[0] = a); }, castToChar: function (a) { return (this.unsignedShort[0] = a); }, }; b.SLOT.UTIL = { getBasedir: function () { if (null == basedir) { var a = k("basedir", !0); if (null === a) (a = b.SLOT.PARAMS.stringURLParamsToObject()), "basedir" in a ? ((basedir = a.basedir), CONFIG.set("basedir", basedir)) : (basedir = ""); else return a; } return basedir; }, addOpenTypeCustomFont: function (a, b, e, f) { d.length += 1; d[b + (e ? "_bold" : "_plain") + (f ? "_italic" : "_normal")] = a; }, getOpenTypeCustomFont: function (a, b, e) { return 0 < d.length && ((a = d[a + (b ? "_bold" : "_plain") + (e ? "_italic" : "_normal")]), G.isNotNullAndDefined(a)) ? a : null; }, e: f, setParams: function (a) { b.SLOT.PARAMS.setParams(a); }, webaudio: function () { return 0 != CONFIG.get("usingwebaudio") && DEVICE.webaudio(); }, noaudio: function () { return 0 == CONFIG.get("usingwebaudio") || !DEVICE.webaudio() || 1 == CONFIG.get("noaudio"); }, equals_2: function (a, b) { return g(a, b, []); }, merge: function (a, b) { var d = {}; G.extend(d, a, b); return d; }, loadCSS: function (a) { var b = G.create("style", { type: "text/css" }); b.innerHTML = "@import url(' " + a + " ');"; G.append(G.query("head"), b); }, load: function (a, b) { var d = {}, e; for (e in a.os) { var g = a.os[e]; if (n(g.fingerprint, g.negfingerprint, b) && (r(g, d), f(g.browser))) for (var k in g.browser) if (g.browser.hasOwnProperty(k)) { var m = g.browser[k]; if (n(m.fingerprint, m.negfingerprint, b) && q(m.browserversion, b)) { r(m, d); if (f(m.device)) for (var t in m.device) if (m.device.hasOwnProperty(t)) { var u = m.device[t]; n(u.fingerprint, u.negfingerprint, b) && r(u, d); } if (f(m.gpu)) for (t in m.gpu) if (m.gpu.hasOwnProperty(t)) { var u = m.gpu[t], B; var A = u.fingerprint; B = u.negfingerprint; var C = b; C[A] ? (B = !0) : void 0 === C[A] ? ((A = p(A, C)) && f(B) && (A = A && !p(B, C)), (B = A)) : (B = void 0); B && q(u.browserversion, b) && r(u, d); } } } } for (var Q in a.device) (e = a.device[Q]), f(e) && a.device.hasOwnProperty(Q) && n(e.fingerprint, e.negfingerprint, b) && r(e, d); if ("1" == CONFIG.get("debug")) for (var S in d) d.hasOwnProperty(S) && console.log("_settings: " + S + ": " + d[S]); return d; }, setupContainers: function (a, d) { CONFIG.CONTAINERS = JSUTIL.merge(CONFIG.CONTAINERS, a); var e = null, f = null, g = G.query("body"), k = null; CONFIG.get("autoload_style") && JSUTIL.loadCSS(JSUTIL.getBasedir() + "slot_style.css"); if (d) { G.query("html"); G.css({ height: "100%", width: "100%" }); G.css({ height: "auto", width: "100%" }); k = G.create("div", { id: CONFIG.CONTAINERS.fullscreen }); G.css(k, { "background-color": "rgb(0,0,0)", position: "absolute", left: "0px", top: "0px", width: "100%", height: "100%" }); 0 === k.length && CONFIG.get("fullscreen") && (console.warn("the fullscreen mode container is missing and the feature is enable, it'll be disable automatically"), CONFIG.set("fullscreen", !1)); var f = G.create("audio", { id: CONFIG.CONTAINERS.audio_container, preload: "auto" }), e = G.create("div", { id: CONFIG.CONTAINERS.container }), m = G.create("div", { id: CONFIG.CONTAINERS.cheat_container }); G.append(k, f); G.append(k, e); G.append(k, m); G.append(g, k); } e = G.query("div#" + CONFIG.CONTAINERS.container); G.css(e, { "background-color": "rgb(0,0,0)", position: "absolute" }); CONFIG.CONTAINERS.container = e; CONFIG.CONTAINERS.audio_container = G.query("audio#" + CONFIG.CONTAINERS.audio_container); CONFIG.CONTAINERS.cheat_container = G.query("div#" + CONFIG.CONTAINERS.cheat_container); e = function (a) { if (G.isElement(a)) return !1; if (G.isArray(a)) return G.isEmpty(a); }; e(CONFIG.CONTAINERS.audio_container) && console.error("audio container is missing, this could cause issues in old devices"); if (e(CONFIG.CONTAINERS.container)) throw (console.error("slot container is missing"), Error("slot container is missing")); f = b.SLOT.PARAMS.parseUrlToObject(); G.has(f, "debug") && "1" === f.debug && (e(CONFIG.CONTAINERS.cheat_container) ? console.warn("cheat container is missing") : G.css(CONFIG.CONTAINERS.cheat_container, { width: "250px", height: "75px", position: "absolute" })); CONFIG.CONTAINERS.fullscreen_container = G.query("div#" + CONFIG.CONTAINERS.fullscreen); G.isElement(CONFIG.CONTAINERS.fullscreen_container) || (console.info("fullscreen mode has been disabled, container is missing"), CONFIG.set("fullscreen", !1)); }, GLUtil: { mCurrentHierarchy: 0, mClip: [], checkArraySize_0: function () { var a = Math.max(64, this.mCurrentHierarchy + 1); if (this.mClip.length < a) { var b = this.mClip.length; for (this.mClip.length = a; b < a; b++) (this.mClip[b] = new ClipRegion()), 0 == b && this.updateMainClipRegion_0(); 128 < a && console.warn("ClipRegion stack is too large! length: " + a); } }, updateMainClipRegion_0: function () { null != this.mClip[0] && this.mClip[0].setClip_4(0, 0, RENDERER.width, RENDERER.height); }, pushClip_0: function () { ++this.mCurrentHierarchy; this.checkArraySize_0(); this.mClip[this.mCurrentHierarchy].set_1(this.mClip[this.mCurrentHierarchy - 1]); }, popClip_0: function () { --this.mCurrentHierarchy; 0 > this.mCurrentHierarchy && (this.mCurrentHierarchy = 0); }, getClip_0: function () { this.checkArraySize_0(); return this.mClip[this.mCurrentHierarchy]; }, applyClip_4: function (a, b, d, e) { this.pushClip_0(); a = GTObjPool.getTempRect_4(a, b, a + d, b + e); this.getClip_0().clip_1(a); GTObjPool.recycleTempRect(a); return null; }, isClipEmpty_0: function () { return this.getClip_0().isEmpty_0(); }, revertClip_1: function (a) { if (null == a || a instanceof ClipRegion) null != a ? this.getClip_0().set_1(a) : this.popClip_0(); }, }, MathUtil: C, not: function (a) { return G.isUndefined(a); }, getReplacedVideoName: function (a) { var b = a.substring_2(0, a.length - 4), d = !1; JSUTIL.e(CONFIG.VIDEOS[b]) && JSUTIL.e(CONFIG.VIDEOS[b].format) && ((a = a.replace(".flv", "." + CONFIG.VIDEOS[b].format)), (d = !0)); d || (a = a.replace(".flv", ".jpg")); return a; }, isArray: function (a) { return "[object Array]" === Object.prototype.toString.call(a); }, scrollAnimatorController: B, webGLGlobalShader: A, getAccurateTime: function () { performance.now = (function () { return ( performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow || function () { return new Date().getTime(); } ); })(); return performance.now(); }, instanceOf: e, setFullscreenMode: function (a) { if (a) { var b = CONFIG.get("CONTAINERS").fullscreen_container; b.requestFullscreen ? b.requestFullscreen() : b.mozRequestFullScreen ? b.mozRequestFullScreen() : b.webkitRequestFullScreen ? b.webkitRequestFullScreen() : b.msRequestFullScreen ? b.msRequestFullScreen() : b.msRequestFullscreen && b.msRequestFullscreen(); } else document.cancelFullscreen ? document.cancelFullscreen() : document.mozCancelFullScreen ? document.mozCancelFullScreen() : document.webkitCancelFullScreen ? document.webkitCancelFullScreen() : document.msCancelFullScreen ? document.msCancelFullScreen() : document.msExitFullscreen && document.msExitFullscreen(); null != CONFIG && null != CONFIG.OBSERVER && (CONFIG.OBSERVER.hasOwnProperty && CONFIG.OBSERVER.hasOwnProperty("requestFullScreenMode") ? CONFIG.OBSERVER.requestFullScreenMode(a) : console.warn("observer is set, but requestFullScreenMode function doesn't exist")); }, fullscreenActive: function () { return ( document.fullScreen || document.mozFullScreen || document.webkitIsFullScreen || (document.fullscreenElement && null != document.fullscreenElement) || (document.msFullscreenElement && null != document.msFullscreenElement) || !1 ); }, blockKey: function (b) { a.addEventListener("keydown", function (a) { for (var d = 0; d < b.length; d++) if (a.keyCode === b[d]) return a.preventDefault(), !1; }); }, getParameter: k, isSlot: function () { return "undefined" !== typeof GT1479 && (null == CONFIG.CLIENTSLOTAPPLET || e(CONFIG.CLIENTSLOTAPPLET, GT1479)); }, soundlazyloadingPossible: function () { return 1 == CONFIG.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds") && 1 != CONFIG.get("slotparkaudio") && !this.noaudio(); }, }; })(window); function initHowler() { var a = {}, b = null; "undefined" !== typeof AudioContext ? (b = new AudioContext()) : "undefined" !== typeof webkitAudioContext && (b = new webkitAudioContext()); var d = "undefined" === typeof b.createGain ? b.createGainNode() : b.createGain(); d.gain.value = 1; d.connect(b.destination); var e = function () { this._volume = 1; this._muted = !1; this.usingWebAudio = !0; this._howls = []; }; e.prototype = { volume: function (a) { return (a = parseFloat(a)) && 0 <= a && 1 >= a ? ((this._volume = a), (d.gain.value = a), this) : d.gain.value; }, mute: function () { this._setMuted(!0); return this; }, unmute: function () { this._setMuted(!1); return this; }, _setMuted: function (a) { this._muted = a; d.gain.value = a ? 0 : this._volume; }, }; var f = new e(), e = null, e = new Audio(), g = { mp3: !!e.canPlayType("audio/mpeg;").replace(/^no$/, ""), opus: !!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/, ""), ogg: !!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, ""), wav: !!e.canPlayType('audio/wav; codecs="1"').replace(/^no$/, ""), m4a: !!(e.canPlayType("audio/x-m4a;") || e.canPlayType("audio/aac;")).replace(/^no$/, ""), weba: !!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/, ""), }, e = function (a) { this._dataarray = a.dataarray || !1; this._autoplay = a.autoplay || !1; this._buffer = a.buffer || !1; this._duration = a.duration || 0; this._format = a.format || null; this._loop = a.loop || !1; this._loaded = !1; this._sprite = a.sprite || {}; this._src = a.src || ""; this._pos3d = a.pos3d || [0, 0, -0.5]; this._volume = a.volume || 1; this._urls = a.urls || []; this._rate = a.rate || 1; this._onload = [a.onload || function () {}]; this._onloaderror = [a.onloaderror || function () {}]; this._onend = [a.onend || function () {}]; this._onpause = [a.onpause || function () {}]; this._onplay = [a.onplay || function () {}]; this._onendTimer = []; this._audioNode = []; this._setupAudioNode(); f._howls.push(this); this.load(); }; e.prototype = { load: function () { for (var a = null, b = 0; b < this._urls.length; b++) { var d, e; if (this._format) d = this._format; else if (((e = this._urls[b].toLowerCase().split("?")[0]), (d = (d = e.match(/.+\.([^?]+)(\?|$)/)) && 2 <= d.length ? d : e.match(/data\:audio\/([^?]+);/)))) d = d[1]; else { this.on("loaderror"); return; } if (g[d]) { a = this._urls[b]; break; } } if (a) return (this._src = a), m(this, a), this; this.on("loaderror"); }, urls: function (a) { return a ? (this.stop(), (this._urls = "string" === typeof a ? [a] : a), (this._loaded = !1), this.load(), this) : this._urls; }, getContextState: function () { return b.state; }, getContext: function () { return b; }, getCache: function () { return a; }, play: function (a, d, e, f, g) { var k = this; "function" === typeof a && (d = a); (a && "function" !== typeof a) || (a = "_default"); if (!k._loaded) return ( k.on("load", function () { k.play(a, d); }), k ); if (!k._sprite[a]) return "function" === typeof d && d(), k; k._inactiveNode(function (m) { m._sprite = a; var n = 0 < m._pos ? m._pos : k._sprite[a][0] / 1e3 + g / 1e3, p = f / 1e3 - g / 1e3 - m._pos, H = !(!k._loop && !k._sprite[a][2]), I = "string" === typeof d ? d : Math.round(Date.now() * Math.random()) + "", L; (function () { L = setTimeout(function () { H || (k._nodeById(I).paused = !0); k.on("end", I); }, 1e3 * p); k._onendTimer.push(L); })(); var J = k._sprite[a][0] / 1e3, M = k._sprite[a][1] / 1e3; JSUTIL.e(e) && -1 < e && ((J = k._sprite[a][0] / 1e3 + e / 1e3), (M = f / 1e3 - e / 1e3)); m.id = I; m.paused = !1; q(k, [H, J, M], I); m = k._nodeById(I); k._playStart = b.currentTime; m.gain.value = k._volume; "undefined" === typeof m.bufferSource.start ? H ? m.bufferSource.noteGrainOn(0, k._sprite[a][0] / 1e3 + e / 1e3 + 0.015, f / 1e3 - e / 1e3 - 0.075) : k._loop ? m.bufferSource.noteGrainOn(0, n, p + 1e3) : m.bufferSource.noteGrainOn(0, n, p) : k._loop ? m.bufferSource.start(0, n, 86400) : m.bufferSource.start(0, n, p); k.on("play"); "function" === typeof d && d(I, L); return k; }); return k; }, pause: function (a, b) { var d = this; if (!d._loaded) return ( d.on("play", function () { d.pause(a); }), d ); d._clearEndTimer(b || 0); var e = a ? d._nodeById(a) : d._activeNode(); if (e) { e._pos = d.pos(null, a); if (!e.bufferSource) return d; e.paused = !0; if ("undefined" === typeof e.bufferSource.stop) e.bufferSource.noteOff(0); else try { e.bufferSource.stop(0); } catch (f) {} } d.on("pause"); return d; }, stop: function (a, b) { var d = this; if (!d._loaded) return ( d.on("play", function () { d.stop(a); }), d ); d._clearEndTimer(b || 0); var e = a ? d._nodeById(a) : d._activeNode(); if (e) { e._pos = 0; if (!e.bufferSource) return d; e.paused = !0; if ("undefined" === typeof e.bufferSource.stop) e.bufferSource.noteOff(0); else try { e.bufferSource.stop(0); } catch (f) {} } return d; }, mute: function (a) { var b = this; if (!b._loaded) return ( b.on("play", function () { b.mute(a); }), b ); var d = a ? b._nodeById(a) : b._activeNode(); d && (d.gain.value = 0); return b; }, unmute: function (a) { var b = this; if (!b._loaded) return ( b.on("play", function () { b.unmute(a); }), b ); var d = a ? b._nodeById(a) : b._activeNode(); d && (d.gain.value = b._volume); return b; }, volume: function (a, b) { var d = this; a = parseFloat(a); if (0 <= a && 1 >= a) { if (!d._loaded) return ( d.on("play", function () { d.volume(a, b); }), d ); var e = b ? d._nodeById(b) : d._activeNode(); e ? (e.gain.value = a) : (d._volume = a); return d; } return d._volume; }, loop: function (a) { return "boolean" === typeof a ? ((this._loop = a), this) : this._loop; }, sprite: function (a) { return "object" === typeof a ? ((this._sprite = a), this) : this._sprite; }, pos: function (a, d) { var e = this; if (!e._loaded) return ( e.on("load", function () { e.pos(a); }), "number" === typeof a ? e : e._pos || 0 ); a = parseFloat(a); var f = d ? e._nodeById(d) : e._activeNode(); if (f) return 0 <= a ? ((f._pos = a), e.pause(d).play(f._sprite, d), e) : f._pos + (b.currentTime - e._playStart); if (0 <= a) return e; for (f = 0; f < e._audioNode.length; f++) if (e._audioNode[f].paused && 4 === e._audioNode[f].readyState) return e._audioNode[f]._pos; }, pos3d: function (a, b, d, e) { var f = this; b = "undefined" !== typeof b && b ? b : 0; d = "undefined" !== typeof d && d ? d : -0.5; if (!f._loaded) return ( f.on("play", function () { f.pos3d(a, b, d, e); }), f ); if (0 <= a || 0 > a) { var g = e ? f._nodeById(e) : f._activeNode(); g && ((f._pos3d = [a, b, d]), g.panner.setPosition(a, b, d)); } else return f._pos3d; return f; }, fade: function (a, b, d, e, f) { a = Math.round(100 * a) / 100; var g = this, k = Math.abs(a - b), m = a > b ? "down" : "up", k = Math.round(k / 0.01), n = d / k; if (!g._loaded) return ( g.on("load", function () { g.fade(a, b, d, e, f); }), g ); g.volume(a, f); for (var p = 1; p <= k; p++) (function () { var d = Math.round(1e3 * (a + ("up" === m ? 0.01 : -0.01) * p)) / 1e3; setTimeout(function () { g.volume(d, f); d === b && e && e(); }, n * p); })(); }, fadeIn: function (a, b, d) { return this.volume(0).play().fade(0, a, b, d); }, fadeOut: function (a, b, d, e) { var f = this, g = null != f._nodeById(e) ? f._nodeById(e).gain.value : f._volume; return f.fade( g, a, b, function () { d && d(); f.pause(e); f.on("end"); }, e ); }, _nodeById: function (a) { for (var b = this._audioNode[0], d = 0; d < this._audioNode.length; d++) if (this._audioNode[d].id === a) { b = this._audioNode[d]; break; } return b; }, _activeNode: function () { for (var a = null, b = 0; b < this._audioNode.length; b++) if (!this._audioNode[b].paused) { a = this._audioNode[b]; break; } this._drainPool(); return a; }, _inactiveNode: function (a) { this._drainPool(); var b; b = this._setupAudioNode(); a(b); }, _drainPool: function () { var a = 0, b; for (b = 0; b < this._audioNode.length; b++) this._audioNode[b].paused && a++; for (b = this._audioNode.length - 1; 0 <= b && !(20 >= a); b--) this._audioNode[b].paused && (this._audioNode[b].disconnect(0), a--, this._audioNode.splice(b, 1)); }, _clearEndTimer: function (a) { a = this._onendTimer.indexOf(a); a = 0 <= a ? a : 0; this._onendTimer[a] && (clearTimeout(this._onendTimer[a]), this._onendTimer.splice(a, 1)); }, _setupAudioNode: function () { var a = this._audioNode, e = this._audioNode.length; a[e] = "undefined" === typeof b.createGain ? b.createGainNode() : b.createGain(); a[e].gain.value = this._volume; a[e].paused = !0; a[e]._pos = 0; a[e].readyState = 4; a[e].connect(d); a[e].panner = b.createPanner(); a[e].panner.setPosition(this._pos3d[0], this._pos3d[1], this._pos3d[2]); a[e].panner.connect(a[e]); return a[e]; }, on: function (a, b) { var d = this["_on" + a]; if ("function" === typeof b) d.push(b); else for (var e = 0; e < d.length; e++) b ? d[e].call(this, b) : d[e].call(this); return this; }, off: function (a, b) { for (var d = this["_on" + a], e = b.toString(), f = 0; f < d.length; f++) if (e === d[f].toString()) { d.splice(f, 1); break; } return this; }, unload: function () { CONFIG.STATS.SOUNDLENGTH -= this._duration; for (var b = this._audioNode, d = 0; d < this._audioNode.length; d++) this.stop(b[d].id), b[d].disconnect(0); (b = f._howls.indexOf(this)) && f._howls.splice(b, 1); delete a[this._src]; }, }; var k = 0, m = function (b, d) { if (d in a) (b._duration = a[d].duration), n(b); else if (b._dataarray) p(b._dataarray, d, b); else { var e = new XMLHttpRequest(); e.open("GET", d, !0); e.responseType = "arraybuffer"; e.onload = function () { var a = (e.status + "")[0]; if ("0" !== a && "2" !== a && "3" !== a) b.on("loaderror"); else p(e.response, d, b); }; e.onerror = function () { b._buffer = !0; b._audioNode = []; delete b._gainNode; 5 > k ? (k++, b.load()) : console.warn("it was not possible to retrieve the audio file"); }; try { e.send(); } catch (f) { e.onerror(); } } }, n = function (a, b) { a._duration = b ? b.duration : a._duration; CONFIG.STATS.SOUNDLENGTH += a._duration; 0 === Object.getOwnPropertyNames(a._sprite).length && (a._sprite = { _default: [0, 1e3 * a._duration] }); a._loaded || ((a._loaded = !0), a.on("load")); a._autoplay && a.play(); }, p = function (d, e, f) { b.decodeAudioData( d, function (b) { b && ((a[e] = b), f._dataarray && (f._dataarray = void 0), n(f, b)); }, function (a) { 10 > (f.decodingRetries || 0) ? (p(d, e, f), (f.decodingRetries = 1 + f.decodingRetries || 0)) : (console.warn("not possible to decode: " + e), f.on("load")); } ); }, q = function (e, f, g) { var k = e._nodeById(g); "undefined" === typeof this.contextCurrentTime && (this.contextCurrentTime = -1); "undefined" === typeof this.contextTimeStamp && (this.contextTimeStamp = Date.now()); if (this.contextCurrentTime == b.currentTime) { if (this.contextTimeStamp + 1e3 < Date.now()) { this.contextTimeStamp = Date.now(); console.log("AudioContext recreated"); if ("undefined" !== typeof b.close) try { b.close(); } catch (m) {} if ("undefined" !== typeof AudioContext) b = new AudioContext(); else if ("undefined" !== typeof webkitAudioContext) try { b = new webkitAudioContext(); } catch (n) { console.warn("Error: " + n); } k = "undefined" === typeof b.createGain ? b.createGainNode() : b.createGain(); k.gain.value = d.gain.value; k.connect(b.destination); d = k; for (var p = 0; p < e._audioNode.length; p++) { var q = e._audioNode[p], D = "undefined" === typeof b.createGain ? b.createGainNode() : b.createGain(); D.gain.value = q.gain.value; D.paused = q.paused; D._pos = q._pos; D.readyState = q.readyState; D.connect(k); "undefined" != typeof q.bufferSource && (D.bufferSource = q.bufferSource); var H = b.createPanner(); H.setPosition(e._pos3d[0], e._pos3d[1], e._pos3d[2]); H.connect(D); D.panner = H; "undefined" != typeof q.id && (D.id = q.id); e._audioNode[p] = D; } k = e._nodeById(g); } } else this.contextTimeStamp = Date.now(); this.contextCurrentTime = b.currentTime; k.bufferSource = b.createBufferSource(); k.bufferSource.buffer = a[e._src]; k.bufferSource.connect(k.panner); k.bufferSource.loop = f[0]; f[0] && ((k.bufferSource.loopStart = f[1]), (k.bufferSource.loopEnd = f[1] + f[2])); k.bufferSource.playbackRate.value = e._rate; }; window.Howler = f; window.Howl = e; } (function (a, b) { a.SLOT.EVENTS = { execute: function () { var a = 0, e = null, f = G.body(), g = DEVICE.screenSize().height, k = null; G.addListener("resize-game", function () { null !== CONFIG.CLIENTSLOTAPPLET && m(); }); var m = function (a) { a && a.preventDefault(); if (null !== CONFIG.CLIENTSLOTAPPLET) { var b = CONFIG.CLIENTSLOTAPPLET.getTopContainer_0(), d = function () { var a = CONFIG.CLIENTSLOTAPPLET.getSize_0(); if (null === k || k.width !== a.width || k.height !== a.height) (k = a), G.scrollLeft(0), b.setRealSize_2(a.width, a.height); }; null != b && (!0 === DEVICE.mozilla || !0 === DEVICE.desktop ? d() : ((a = !0 === DEVICE.stock ? 1500 : 1), null !== e && clearTimeout(e), (e = setTimeout(function () { d(); }, a)))); JSUTIL.scrollAnimatorController.isScrollAnimatedEnabled() && n(); } }, n = function () { if (JSUTIL.scrollAnimatorController.isReady()) { var a = JSUTIL.scrollAnimatorController.scrollNode; DEVICE.iPhoneSmallScreen() ? ((a.style.visibility = "visible"), JSUTIL.scrollAnimatorController.scrollDotChilds() || JSUTIL.scrollAnimatorController.createAnimations()) : ((a.style.visibility = "hidden"), JSUTIL.scrollAnimatorController.scrollDotChilds() && JSUTIL.scrollAnimatorController.disableAnimations()); } DEVICE.ios7 && setTimeout(function () { n(); }, 100); }; b.addEventListener( "gesturestart", function (b) { var e = new Date().getTime(); e - a < CONFIG.get("touchinterval") && b.preventDefault(); a = e; null !== DEVICE && (DEVICE.ios7_0 || (DEVICE.iphone6Plus && g > DEVICE.screenSize().height)) && (G.fire("resize-game"), (g = DEVICE.screenSize().height)); }, !1 ); b.addEventListener( "orientationchange", function (a) { m(a); }, !1 ); b.addEventListener( "resize", function (a) { (null !== DEVICE && DEVICE.mozilla && DEVICE.mobile) || G.fire("resize-game"); }, !1 ); b.addEventListener("blur", function () {}, !1); b.addEventListener( "focus", function () { null !== DEVICE && DEVICE.mozilla ? G.css(f, { height: "100%" }) : G.css(f, { height: "150%" }); null !== CONFIG.CLIENTSLOTAPPLET && CONFIG.CLIENTSLOTAPPLET.restartTimerLoopIfNeeded_0(); G.fire("resize-game"); }, !1 ); b.addEventListener( "mozfullscreenchange", function (a) { G.fire("resize-game"); }, !1 ); DEVICE.mobile || JSUTIL.blockKey([39, 9]); DEVICE.mozilla && !DEVICE.webkit && b.matchMedia("(orientation: portrait)").addListener(function () { m(); }); b.addEventListener("message", function (a) { if ("string" == typeof a.data) { var d = a.data.startsWith_1("!") ? a.data.substr(1) : a.data, e = ""; 0 < d.indexOf(":") && ((e = d.split(":")), GT1677.prototype.equalsIgnoreCaseAZ_2(e[0], GT697.prototype.KEY_OVERRIDE_MAXBET) && CONFIG.CLIENTSLOTAPPLET.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "message eventlistener (before checking source): " + a.data)); (a.source == b[CONFIG.MESSAGETARGET] && b[CONFIG.MESSAGETARGET] != b.self) || a.data.startsWith_1("!") ? "doStop" == d ? CONFIG.CLIENTSLOTAPPLET.doStop_0() : 0 < d.indexOf(":") && (GT1677.prototype.equalsIgnoreCaseAZ_2(e[0], GT697.prototype.KEY_OVERRIDE_MAXBET) && CONFIG.CLIENTSLOTAPPLET.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "message eventlistener: " + e[0] + "," + e[1]), CONFIG.CLIENTSLOTAPPLET.setProperty_2(e[0], e[1])) : a.source == b.self && ((e = a.data.split(":")), "GAMEGUICREATED" === e[0] && m()); } }); "FULLFEATUREBUILD" != CONFIG.FEATURELEVEL && (JSUTIL.scrollAnimatorController.enabled ? b.scrollTo(0, b.scrollY) : b.scrollTo(0, CONFIG.get("scrollToY")), setInterval(function () { JSUTIL.scrollAnimatorController.enabled ? b.scrollTo(0, b.scrollY) : b.scrollTo(0, CONFIG.get("scrollToY")); if ((DEVICE.iphone6Plus && 0 != b.orientation) || DEVICE.mozilla) g != DEVICE.screenSize().height && G.fire("resize-game"), (g = DEVICE.screenSize().height); }, 100)); DEVICE.ios7 && JSUTIL.scrollAnimatorController.isScrollAnimatedEnabled() && n(); }, }; })(window.__greentube_games, window); (function (a, b) { var d = G.body(), e = a.SLOT.CONFIG, f = b.DEVICE; b.JSUTIL = a.SLOT.UTIL; var g = function (a, d) { b[e.MESSAGETARGET].postMessage("!" + a + ":" + (d ? d : ""), "*"); }, k = { custom: function (a, b) { g(a); }, sound: function (a) { g("SOUND", a); }, spin: function () { g("STARTSPIN"); }, balance: function () { g("BALANCE"); }, collect: function () { g("COLLECT"); }, leave: function () { g("LEAVE_GAME"); }, auto: function () { return { toogle: function () { g("AUTOPLAYTOGGLE"); }, off: function () { g("AUTOPLAYOFF"); }, }; }, bet: function () { return { set: function (a) { g("BET", a); }, up: function () { g("BET_UP"); }, down: function () { g("BET_DOWN"); }, max: function () { g("MAXBET"); }, min: function () { g("MINBET"); }, }; }, paytable: function () { return { call: function () { g("PAYTABLE"); }, next: function () { g("PAYTABLE_NEXT"); }, }; }, line: function () { return { up: function () { g("LINE_UP"); }, down: function () { g("LINE_DOWN"); }, }; }, replay: function () { g("REPLAY"); }, override: function () { return { maxbet: function (a) { g("OVERRIDE_MAXBET", a); }, lines: function (a) { g("OVERRIDE_LINES", a); }, }; }, modalDialog: function (a) { g("MODAL_DIALOG", a); }, gamble: function () { return { start: function () { g("GAMBLE"); }, red: function () { g("GAMBLE_RED"); }, black: function () { g("GAMBLE_BLACK"); }, }; }, }, m = function () { var a = e.get("pregamewrapperurl"); if (a) { var b = document.createElement("script"); b.src = a + "/pregamewrapper.js"; document.head.appendChild(b); } }, n = function () { var b = e.get("pregamewrapperurls"); if (b) for (var d = b.split(","), b = 0; b < d.length; b++) { var f = document.createElement("script"); (function (b) { var e = d[b].substring(d[b].lastIndexOf("/") + 1, d[b].lastIndexOf(".")).toUpperCase(); f.onload = function () { a[e].init(d[b].substring(0, d[b].lastIndexOf("/"))); }; })(b); f.src = d[b]; document.head.appendChild(f); } }, p = function () { var d = JSUTIL.getBasedir(), g = function (a) { return G.get(a).then(JSON.parse); }, k = function (a, b) { Promise.all([ ("FULLFEATUREBUILD" == e.FEATURELEVEL && JSUTIL.webaudio()) || JSUTIL.noaudio() || 1 == JSUTIL.getParameter("slotparkaudio") || (1 == JSUTIL.getParameter("html5mobileseparatesounds") && JSUTIL.webaudio()) ? null : g(d + "sound" + e.get("soundfilesuffix") + ".json").then(function (a) { e.SOUNDS = a.sounds; }), g(d + "sound_multiple.json").then(function (a) { e.SOUNDSSEPARATE = a.sounds; }), g(d + (G.isDefined(e.IMAGE_SCALE) ? "images_" + e.IMAGE_SCALE + "/" : "") + "images.json").then(function (a) { e.IMAGES = a.images; }), g(d + (G.isDefined(e.VIDEO_SCALE) ? "videos_" + e.VIDEO_SCALE + "/" : "") + "video.json").then(function (a) { e.VIDEOS = a.videos; }), ]).then( function () { a(); }, function (a) { console.error(a); b(Error("An error while reading essential JSON files keeps the game from starting.")); } ); }; return new Promise(function (p, q) { g(d + "deviceconfig.json").then( function (r) { r = JSUTIL.load(r.config, f); e.merge(r); r = a.SLOT.PARAMS; e = r.mergeGetParams(e, r.getParams()); m(); n(); null != e.get("postmessagetarget") && ((e.MESSAGETARGET = e.get("postmessagetarget")), null == b[e.MESSAGETARGET] && (console.warn("postmessagetarget is set, but target doesn't exist"), (e.MESSAGETARGET = "top"))); JSUTIL.webaudio() || !JSUTIL.isSlot() || 1 == JSUTIL.getParameter("slotparkaudio") ? e.set("soundfilesuffix", "") : e.set("soundfilesuffix", "_small"); e.get("webp") && f.stock && JSUTIL.e(e.get("webp")) && !e.get("webp") && e.get("webp", !1); "MOBILEFEATUREBUILDBIGBUTTONCONSOLE" != e.FEATURELEVEL && (e.set("html5", "0"), e.set("bigbutton", "0"), e.set("bigmenubutton", "0")); "FULLFEATUREBUILD" === e.FEATURELEVEL && f.msie && !f.msieMobile && ((r = f.msieVersion()), 1 < r && 11 >= r && e.set("h265video", "0")); JSUTIL.scrollAnimatorController.generateScrollAnimationBody(e.CONTAINERS.fullscreen_container); g(d + "asset_scales.json") .then(function (a) { e.ASSET_SCALES = a; e.ASSET_SCALES.hasOwnProperty("images") && null != e.ASSET_SCALES.images && ("high" == e.get("assetsquality") && 0 < e.ASSET_SCALES.images.length ? (e.IMAGE_SCALE = e.ASSET_SCALES.images[1]) : (e.IMAGE_SCALE = e.ASSET_SCALES.images[0])); e.ASSET_SCALES.hasOwnProperty("videos") && null != e.ASSET_SCALES.images && ("high" == e.get("assetsquality") && 0 < e.ASSET_SCALES.videos.length ? (e.VIDEO_SCALE = e.ASSET_SCALES.videos[1]) : (e.VIDEO_SCALE = e.ASSET_SCALES.videos[0])); k(p, q); }) .catch(function () { console.log("This was just a check whether asset_scales.json even exists. Resuming non-multiscale loading..."); k(p, q); }); }, function (a) { console.error(a); q(Error("An error while reading essential JSON files keeps the game from starting.")); } ); }); }, q = function (a) { var b = f.canIplay().ogg, d = f.canIplay().mp3, g = JSUTIL.getParameter("audioformat"); if (f.opera && !f.mobile) return a + "." + g; 1 == e.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds") || "FULLFEATUREBUILD" == e.FEATURELEVEL ? (a = "oggandroid" == g ? a + ".ogg" : a + ".mp3") : JSUTIL.e(g) && f.canIplay()[g] ? (a = a + "." + g) : d ? (a += ".mp3") : b ? (a += ".ogg") : console.warn("mp3 and ogg not supported!"); return a; }, r = function () { var a = { _storage: [], events: function (b) { b.call(a); return this; }, add: function (a, b) { this._storage.push({ key: a, fn: b.bind(this) }); return this; }, get: function (a) { for (var b = 0; b < this._storage.length; b++) if (this._storage[b].key === a) return this._storage[b].fn; return function () {}; }, }; u.wrapper = JSUTIL.merge(a, k); b.addEventListener("message", function (b) { var d = b.data; if (0 !== d.indexOf("!")) { var e = d.indexOf(":"); b = d.substr(0, e); d = d.substr(e + 1); "GAME_MODE" === b ? a.get(d)(d) : a.get(b)(d); } }); }, t = function () { var g = a.SLOT.UTIL; g.getParameter("gamename") && (document.title = JSUTIL.getParameter("gamename")); f.ios6 ? G.css(d, { height: "auto" }) : f.mozilla ? G.css(d, { height: "100%" }) : G.css(d, { height: "150%" }); if (1 == g.getParameter("debug") && 0 != e.get("debugvisuals")) { var k = e.CONTAINERS.fullscreen_container; G.isElement(k) || (k = d); b.STATS = new Stats(); STATS.setMode(0); STATS.domElement.style.position = "absolute"; STATS.domElement.style.top = "0px"; G.append(k, STATS.domElement); } if (e.get("blacklisted")) alert("BLACKLISTED!"); else { e.get("whitelisted"); if (G.isDefined(e.IMAGE_SCALE)) { var k = parseFloat(e.IMAGE_SCALE), m = parseFloat(e.ASSET_SCALES.images[0]); e.SCALINGFACTOR = k + (k / m) * (e.TARGETSYMBOLWIDTH / 222 - m); } else e.SCALINGFACTOR = e.TARGETSYMBOLWIDTH / 222; e.CLIENTSLOTAPPLET = new com_greentube_slot_client_bookofradeluxe_BookOfRaDeluxeSlotApplet(); e.CLIENTSLOTAPPLET.setObserver(e.OBSERVER); e.CLIENTSLOTAPPLET.setViewConfiguration_1(new GT916()); 1 != g.getParameter("html5") || g.isSlot() || (e.TOPCONTAINEROFFSET = 0); e.CLIENTSLOTAPPLET.setGameWrapperInterface_1(u.gameWrapperInterface); k = g.getBasedir() + q("sound" + e.get("soundfilesuffix")); 1 == JSUTIL.getParameter("slotparkaudio") ? ((e.SOUNDS = e.SOUNDSSEPARATE), (e.SOUNDPLAYER = new SlotparkAudioController()), e.SOUNDPLAYER.setup(e.SOUNDS, { url: g.getBasedir() + "sounds_" + (f.ios ? "mp3" : "ogg") })) : JSUTIL.noaudio() ? ((e.SOUNDS = e.SOUNDSSEPARATE), (e.SOUNDPLAYER = new NoAudioController())) : JSUTIL.webaudio() && (initHowler(), 1 == e.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds") || 1 == e.CLIENTSLOTAPPLET.getParameter_1("html5mobilezipsounds") || "FULLFEATUREBUILD" == e.FEATURELEVEL ? ((e.SOUNDS = e.SOUNDSSEPARATE), (e.SOUNDPLAYER = new WebAudioControllerSeparateFiles(e.SOUNDS, { url: k }))) : (e.SOUNDPLAYER = new WebAudioController(e.SOUNDS, { url: k })), e.SOUNDPLAYER.setup()); 1 == e.CLIENTSLOTAPPLET.getParameter_1("videoondemand") && e.set("videoondemand", "1"); g = e.CLIENTSLOTAPPLET.getSize_0(); e.set("orientation", (g.width > g.height ? GT1371.prototype.ORIENTATION_LANDSCAPE : GT1371.prototype.ORIENTATION_PORTRAIT) + ""); setTimeout( function () { e.CLIENTSLOTAPPLET.start_0(); }, f.stock ? 2500 : 0 ); } }, u; b.SLOT = a.SLOT.core = u = { initializeGameWrapperInterface: function () { null == this.gameWrapperInterface && ((this.gameWrapperInterface = new GT306()), (this.gameWrapperInterface.fireWithoutListeners = !0)); }, start: function (d, g, k) { d.wrapper && r(); this.initializeGameWrapperInterface(); return f.ready().then(function () { return new Promise(function (m, n) { e = a.SLOT.PARAMS.initParams(g, f, e); b.JSUTIL = a.SLOT.UTIL; d = d || {}; d.__ignore_events || b.__greentube_games.SLOT.EVENTS.execute(); var q = a.SLOT.UTIL; d.FEATURES = d.features || d.FEATURES; e.set("features", d.FEATURES || {}); e.set("fullscreen", G.isDefined(e.get("features").fullscreen) ? e.get("features").fullscreen : !0); e.set("autoload_style", G.isDefined(e.get("features").autoload_style) ? e.get("features").autoload_style : !0); e.set("generate_containers", G.isDefined(e.get("features").generate_containers) ? e.get("features").generate_containers : !1); d.CONTAINERS = d.CONTAINERS || d.container || {}; e.set("CONTAINERS", q.merge(e.CONTAINERS, d.CONTAINERS)); e.set("fixedContainer", G.isDefined(d.CONTAINERS.fixedContainer) ? d.CONTAINERS.fixedContainer : !1); JSUTIL.setupContainers(e.CONTAINERS, e.get("generate_containers") || !1); e.OBSERVER = k; p().then(t).then(m, n); }); }); }, pauseRendering: function () { this.renderingPaused = !0; }, resumeRendering: function () { this.renderingPaused = !1; }, getReservedAreaCoordinates: function () { var a = { x: 0, y: 0, width: 0, height: 0 }; "undefined" != typeof GT1618 && (a = e.CLIENTSLOTAPPLET.getTopContainer_0().getNativeCoordinatesOfObject_1(GT1618.prototype.RESERVED_AREA_CONTAINER)); if (null == a || (0 == a.width && 0 == a.height)) a = e.CLIENTSLOTAPPLET.getTopContainer_0().getNativeCoordinatesOfObject_1(GT307.prototype.RESERVED_AREA_CONTAINER); return a; }, registerScreenSizeChangedEventHandler: function (a) { a.interfaces = GT961; e.CLIENTSLOTAPPLET.getEventDispatcher_0().registerHandler_2(GT1371.prototype.SCREENSIZE_CHANGED, a); }, doStop: function () { e.CLIENTSLOTAPPLET.doStop_0(); }, setProperty: function (a, b) { GT1677.prototype.equalsIgnoreCaseAZ_2(a, GT697.prototype.KEY_OVERRIDE_MAXBET) && e.CLIENTSLOTAPPLET.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "SLOT.setProperty(" + a + "," + b + ")"); e.CLIENTSLOTAPPLET.setProperty_2(a, b); }, }; })(window.__greentube_games, window); (function (a, b, d) { a.WebAudioController = a = function (a, b) { var d = this; this._initialized = !1; if (!Howl) throw Error("howler is not present"); this.onload = b.onload || function () {}; this.howl = new Howl({ urls: [b.url], sprite: this._createSprites(a), onload: function () { d._initialized = !0; d.onload(); }, }); }; a.prototype = { _createSprites: function (a) { var b = {}, d; for (d in a) if (a.hasOwnProperty(d)) { var k = a[d], m = 1e3 * k.start; b[d] = [m, 1e3 * k.end - m]; } return b; }, setup: function () {}, initialized: function () { return this._initialized; }, useMultipleSounds: function () { return !1; }, isReady: function () { var a = this.howl.getContextState(); return null == a ? this._initialized && (this._unlocked || !DEVICE.mobile) : this._initialized && "running" == a; }, getContext: function () { return this.howl; }, play: function (a, b, d, k, m) { try { this.howl.play(a, m || function () {}, b, d, k); } catch (n) {} }, volume: function (a, b) { this.howl.volume(a, b); }, mute: function () { Howler.mute(); }, unmute: function () { CONFIG.CLIENTSLOTAPPLET.getSoundPlayer_0().isActive_0() && Howler.unmute(); }, panning: function (a, b) { this.howl.pos3d(a, 0, 0, b); }, stop: function (a, b, d, k) { if (this.isReady()) try { a && (0 < k ? this.howl.fadeOut(0, k, null, a) : this.howl.stop(a, d)); } catch (m) {} }, }; })(window, document, JSUTIL); (function (a, b, d) { a.NoAudioController = a = function () {}; a.prototype = { initialized: function () { return !0; }, isReady: function () { return !0; }, play: function (a, b, d, k, m, n, p, q) { q && q(a); }, volume: function (a, b) {}, mute: function () {}, unmute: function () {}, stop: function (a, b, d, k) {}, }; })(window, document, JSUTIL); (function (a) { var b = function () { this._PixiTextObjectsPool = []; this._PixiTextObjectsCache = []; this._PixiTextObjectsCacheObjectLifeTime = 3e4; this._RectObjectsPool = []; this._PixiTextObjectsPoolMaxSize = 100; this._ClipRegionObjectsPool = []; this._Vec2ObjectsPool = []; this._StreamVideoObjectsPool = []; }; a.GTObjectsPool = b; b.prototype = { recycleStreamVideoObject: function (a) { 40 > this._StreamVideoObjectsPool.length && this._StreamVideoObjectsPool.push(a); }, getStreamVideoObject: function () { return 0 < this._StreamVideoObjectsPool.length ? this._StreamVideoObjectsPool.pop() : document.createElement("video"); }, recyclePixiTextObject: function (a) { var b = Date.now(), f = null; if (Object.values) f = Object.values(this._PixiTextObjectsCache); else var g = this, f = Object.keys(g._PixiTextObjectsCache).map(function (a) { return g._PixiTextObjectsCache[a]; }); for (var k = 0; k < f.length; ++k) { var m = f[k]; m && 0 < m.cacheDestroyTime && m.cacheDestroyTime < b && (delete this._PixiTextObjectsCache[m.cacheKey], this.addPixiTextObjectToPool(m)); } a.cacheDestroyTime = b + this._PixiTextObjectsCacheObjectLifeTime; this._PixiTextObjectsCache[a.cacheKey] ? this.addPixiTextObjectToPool(a) : (this._PixiTextObjectsCache[a.cacheKey] = a); }, addPixiTextObjectToPool: function (a) { this._PixiTextObjectsPool.length > this._PixiTextObjectsPoolMaxSize ? (GT1650.prototype.debugMode && console.log("PixiTextObjectsPool has reached the maximum size (" + this._PixiTextObjectsPoolMaxSize + ")! The passed object will be destroyed!"), a.destroy()) : ((a.canvas.width = 0), (a.canvas.height = 0), a.updateTexture(), (a.requiresUpdate = !1), (a.gt_colormatrix = null), (a.gt_separatedAlpha = !1), this._PixiTextObjectsPool.push(a)); }, getPixiTextObject_2: function (a, b) { var f = a + "#" + b.font + "#" + b.fill + "#" + b.strokeThickness + "#" + b.stroke + "#" + b.dropShadowDistance + "#" + b.dropShadowColor + "#" + b.dropShadowAngle; if (b.gradient) { for (var g = b.gradient.gradient, f = f + ("#" + g.getRotation_0()), k = 0; k < g.getColors_0().length; ++k) f += "#" + g.getColors_0()[k].getRGB_0(); for (k = 0; k < g.getFractions_0().length; ++k) f += "#" + g.getFractions_0()[k]; } if ((g = this._PixiTextObjectsCache[f])) return delete this._PixiTextObjectsCache[f], g; 0 < this._PixiTextObjectsPool.length ? ((g = this._PixiTextObjectsPool.pop()), g.setText(a), g.setStyle(b)) : (g = new PIXI.Text(a, b)); g.cacheKey = f; g.cacheDestroyTime = 0; return g; }, getTempRect: function () { return 0 < this._RectObjectsPool.length ? this._RectObjectsPool.pop() : new GT1553(0, 0, 0, 0); }, getTempRect_1: function (a) { return this.getTempRect_4(a.x, a.y, a.x + a.width, a.y + a.height); }, getTempRect_4: function (a, b, f, g) { if (0 < this._RectObjectsPool.length) { var k = this._RectObjectsPool.pop(); k.setBounds_4(a, b, f - a, g - b); return k; } return new GT1553(a, b, f - a, g - b); }, recycleTempRect: function (a) { 128 > this._RectObjectsPool.length && this._RectObjectsPool.push(a); }, getClipRegionObject: function () { return 0 < this._ClipRegionObjectsPool.length ? this._ClipRegionObjectsPool.pop() : new ClipRegion(); }, getClipRegionObject_1: function (a) { var b = getClipRegionObject(); b.set_1(a); return b; }, recycleClipRegionObject: function (a) { 32 < this._RectObjectsPool.length ? a.clear_0() : this._ClipRegionObjectsPool.push(a); }, getVec2Object: function () { return 0 < this._Vec2ObjectsPool.length ? this._Vec2ObjectsPool.pop() : new GT1631(); }, getVec2Object_1: function (a) { var b = this.getVec2Object(); b.set_1(a); return b; }, recycleVec2Object: function (a) { 32 > this._Vec2ObjectsPool.length && this._Vec2ObjectsPool.push(a); }, }; })(this); "undefined" === typeof window.GTObjPool && (window.GTObjPool = new GTObjectsPool()); "undefined" !== typeof Object.prototype.watch && (Object.prototype.watch = void 0); "undefined" !== typeof Object.prototype.unwatch && (Object.prototype.unwatch = void 0); Array.prototype.createArray = function (a) { var b = Array(a || 0); if (1 < arguments.length) for (var d = Array.prototype.slice.call(arguments, 1), e = 0; e < a; e++) b[e] = d && 0 < d.length && null !== d[0] ? Array.prototype.createArray.apply(this, d) : null; return b; }; Array.prototype.init = function (a) { for (var b = 0; b < this.length; b++) void 0 === this[b] ? (this[b] = a) : null !== this[b] && (this[b] = this[b].init(a)); return this; }; Array.prototype.equals_1 = function (a) { return this == a; }; Array.prototype.toString = function () { return "[" + this.join(); }; function instanceOf(a, b) { if (null == a) return void 0 == b; if (null == b) return !1; var d = b instanceof Array; if ("string" === typeof b || d) { if (void 0 !== a.interfaces) for (var e = 0, f = a.interfaces.length; e < f; ++e) if (a.interfaces[e] == (d ? b[0] : b)) return !0; return !1; } return a instanceof b ? !0 : !1; } (function () { var a = !1; Class = function () {}; Class.extend = function (b, d, e) { function f() { if (!a) { var b = "initialConstructor_" + arguments.length; this[b] && this[b].apply(this, arguments); } } var g = this.prototype; a = !0; var k = new this(); a = !1; for (var m in b) k[m] = b[m]; k.classname = d; k.interfaces = void 0 !== g.interfaces ? g.interfaces.slice() : null; if (null != e) for (k.interfaces || (k.interfaces = []), g = 0; g < e.length; ++g) k.interfaces = k.interfaces.concat(e[g]); f.prototype = k; f.prototype.constructor = f; f.extend = arguments.callee; return f; }; })(); Class.prototype.initialConstructor_0 = function () {}; var ClassName = Class.extend( { initialConstructor_1: function (a) { this.name = a; }, getName_0: function () { return this.name.replace_2("_", "."); }, }, "ClassName", [] ); function PrintStream() {} function Double() {} function Float() {} Class.prototype.getClass_0 = function () { return new ClassName(this.classname); }; Class.prototype.equals_1 = function (a) { return this == a; }; var GT1177 = ["GT1177"], GT1554 = ["GT1554"], GT1651 = ["GT1651"], GT1619 = ["GT1619"], GT1603 = ["GT1603"], GT1582 = ["GT1582"], GT804 = ["GT804"], GT452 = ["GT452"], GT860 = ["GT860"], GT596 = ["GT596"], GT1425 = ["GT1425"], GT1426 = ["GT1426"], GT1583 = ["GT1583"], GT698 = ["GT698"], GT337 = ["GT337", "GT1064"], GT405 = ["GT405"], GT917 = ["GT917"], GT918 = ["GT918"], GT263 = ["GT263"], GT264 = ["GT264"], GT754 = ["GT754"], GT1008 = ["GT1008"], GT1604 = ["GT1604"], GT1065 = ["GT1065"], GT919 = ["GT919"], GT805 = ["GT805", "GT1064"], GT1178 = ["GT1178"], GT1372 = ["GT1372"], GT1324 = ["GT1324"], GT755 = ["GT755"], GT806 = ["GT806"], GT1009 = ["GT1009"], GT1325 = ["GT1325"], GT1271 = ["GT1271"], GT1272 = ["GT1272"], GT962 = ["GT962", "GT1064"], GT1113 = ["GT1113"], GT1273 = ["GT1273", "GT1064"], GT1064 = ["GT1064"], GT453 = ["GT453", "GT1064"], GT920 = ["GT920", "GT1064"], GT597 = ["GT597", "GT1064"], GT1114 = ["GT1114", "GT1064"], GT1010 = ["GT1010", "GT1064"], GT1011 = ["GT1011", "GT1064"], GT756 = ["GT756", "GT1064"], GT961 = ["GT961", "GT1064"], GT1012 = ["GT1012", "GT1064"], GT231 = ["GT231", "GT1064"], GT1326 = ["GT1326"], GT861 = ["GT861"], GT862 = ["GT862"], GT1524 = ["GT1524"], GT1229 = "GT1229", GT1115 = ["GT1115"], GT963 = ["GT963"], GT1427 = ["GT1427"], GT1274 = ["GT1274"], GT699 = ["GT699"], GT1116 = ["GT1116"], GT1179 = ["GT1179"], GT1525 = ["GT1525"], GT1275 = ["GT1275"], GT863 = ["GT863"], GT1555 = ["GT1555"], GT646 = ["GT646"], GT205 = ["GT205"], GT1117 = ["GT1117"], GT1230 = ["GT1230"], GT1584 = ["GT1584"], GT1428 = ["GT1428"], GT1373 = ["GT1373"], GT1429 = ["GT1429"], GT1480 = ["GT1480"], GT1231 = ["GT1231"], GT864 = ["GT864"], GT807 = ["GT807"], GT1066 = ["GT1066"], GT757 = ["GT757"], GT123 = ["GT123"], GT700 = ["GT700"], GT921 = ["GT921"], GT1067 = ["GT1067"], GT308 = ["GT308"], GT1013 = ["GT1013"], GT808 = ["GT808"], GT501 = ["GT501"], GT1430 = ["GT1430", "GT1481"], GT1374 = ["GT1374"], GT1526 = ["GT1526"], GT1527 = ["GT1527"], GT1481 = ["GT1481"], GT1327 = ["GT1327"], GT1375 = ["GT1375"], GT454 = ["GT454"], GT1431 = ["GT1431"], GT1528 = ["GT1528"], GT1432 = ["GT1432"], GT1620 = ["GT1620"], GT1556 = ["GT1556"], GT1670 = ["GT1670"], GT1585 = ["GT1585"], GT1433 = ["GT1433"], GT1482 = ["GT1482"], GT1376 = ["GT1376"], GT1276 = ["GT1276"], GT865 = ["GT865"], GT1232 = ["GT1232"], GT1483 = ["GT1483"], GT1014 = ["GT1014"], GT1068 = ["GT1068"], GT758 = ["GT758"], GT809 = ["GT809"], GT964 = ["GT964"], GT1277 = ["GT1277"], GT1069 = ["GT1069"], GT1015 = ["GT1015"], GT1118 = ["GT1118"], GT701 = ["GT701"], GT1434 = ["GT1434"], GT1529 = ["GT1529"], GT1119 = ["GT1119"], GT1586 = ["GT1586"], GT810 = ["GT810"], GT124 = ["GT124"], GT174 = ["GT174"], GT455 = ["GT455"], GT139 = ["GT139"], GT647 = ["GT647"], GT547 = ["GT547"], GT265 = ["GT265"], GT811 = ["GT811"], GT1120 = ["GT1120"], GT702 = ["GT702"], GT759 = ["GT759"], GT1530 = ["GT1530"], GT1484 = ["GT1484"], GT1070 = ["GT1070"], GT922 = ["GT922"], GT548 = ["GT548"], GT549 = ["GT549"], GT550 = ["GT550"], GT760 = ["GT760"], GT364 = ["GT364"], GT1180 = ["GT1180"], GT923 = ["GT923", "GT1180", "GT760"], GT1071 = ["GT1071"], GT812 = ["GT812", "GT1071", "GT760"], GT1016 = ["GT1016", "GT1071"], GT965 = ["GT965", "GT1180"], GT966 = ["GT966"], GT703 = ["GT703", "GT549"], GT648 = ["GT648"], GT551 = ["GT551"], GT649 = ["GT649"], GT598 = ["GT598", "GT649", "GT703", "GT206"], GT599 = ["GT599", "GT649", "GT648"], GT704 = ["GT704", "GT649", "GT1180", "GT1071"], GT456 = ["GT456", "GT704", "GT812", "GT923"], GT206 = ["GT206", "GT364"], GT266 = ["GT266", "GT704"], GT41 = ["GT41", "GT456"], GT125 = ["GT125", "GT206"], GT924 = ["GT924"], GT365 = ["GT365"], GT1017 = ["GT1017", "GT1064"], GT1632 = ["GT1632"], GT1587 = ["GT1587"]; function java_awt_geom_AffineTransform() {} var java_awt_event_FocusListener = "java_awt_event_FocusListener", java_awt_image_ImageObserver = "java_awt_image_ImageObserver", java_awt_event_KeyListener = "java_awt_event_KeyListener", java_awt_event_MouseListener = "java_awt_event_MouseListener", java_awt_event_MouseMotionListener = "java_awt_event_MouseMotionListener", java_awt_event_MouseWheelListener = "java_awt_event_MouseWheelListener"; function PrintStream() {} PrintStream.println_1 = function (a) { (GT1650.prototype.debugMode || ("string" === typeof a && -1 == a.indexOf_1("Assertion failed"))) && console.log(a); }; PrintStream.println_0 = function () {}; PrintStream.print_1 = function (a) { (GT1650.prototype.debugMode || ("string" === typeof a && -1 == a.indexOf_1("Assertion failed"))) && console.log(a); }; PrintStream.flush_0 = function () {}; var java_io_Serializable = "java_io_Serializable"; Boolean.prototype.booleanValue_0 = function () { return this.valueOf(); }; Boolean.prototype.equals_1 = function (a) { return a instanceof Boolean ? this.valueOf() === a.booleanValue_0() : !1; }; Boolean.prototype.TRUE = new Boolean(!0); Boolean.prototype.FALSE = new Boolean(!1); Boolean.prototype.toString_1 = function (a) { return new Boolean(a).toString(); }; Boolean.prototype.valueOf_1 = function (a) { return new Boolean(a).valueOf(); }; var JavaScriptString = function () { var a = arguments; if (null != a[0] && a[0] instanceof Array) { var b = 0, d = arguments[0].length; "undefined" != typeof a[1] && (b = a[1]); "undefined" != typeof a[2] && (d = a[2]); for (var e = new StringBuffer(), f = 0; f < d; f++) e.append_1(String.fromCharCode(a[0][b + f])); a[0] = e.toString_0(); } this.value = String.apply(String, a); }; String.prototype.toCharArray_0 = function () { var a = this.split(""), b = 0; a.forEach(function (d) { a[b] = d.charCodeAt(); b++; }); return a; }; String.prototype.rtrim = function () { return this.length ? this.replace(/\s+$/g, "") : ""; }; String.prototype.ltrim = function () { return this.length ? this.replace(/^\s+/g, "") : ""; }; String.prototype.charAt_1 = function (a) { return this.charAt(a).charCodeAt(); }; String.prototype.compareTo_1 = function (a) { return this < a ? -1 : this > a ? 1 : 0; }; String.prototype.concat_1 = String.prototype.concat; String.prototype.endsWith_1 = function (a) { return -1 !== this.indexOf(a, this.length - a.length); }; String.prototype.equals_1 = function (a) { return this == (G.isNotNullAndDefined(a) && G.isNotNullAndDefined(a.value) ? a.value : a); }; String.prototype.toLowerCase_0 = String.prototype.toLowerCase; String.prototype.toUpperCase_0 = String.prototype.toUpperCase; String.prototype.equalsIgnoreCase_1 = function (a) { return this.toLowerCase() === (G.isNotNullAndDefined(a) && G.isNotNullAndDefined(a.value) ? a.value.toLowerCase() : a.toLowerCase()); }; String.prototype.indexOf_1 = function (a) { return "string" === typeof a ? this.indexOf(a) : a instanceof JavaScriptString ? this.indexOf(a.value) : this.indexOf(String.fromCharCode(a)); }; String.prototype.indexOf_2 = function (a, b) { return "string" === typeof a ? this.indexOf(a, b) : a instanceof JavaScriptString ? this.indexOf(a.value, b) : this.indexOf(String.fromCharCode(a), b); }; String.prototype.lastIndexOf_1 = function (a) { return "string" === typeof a ? this.lastIndexOf(a) : a instanceof JavaScriptString ? this.lastIndexOf(a.value) : this.lastIndexOf(String.fromCharCode(a)); }; String.prototype.lastIndexOf_2 = function (a, b) { return "string" === typeof a ? this.lastIndexOf(a, b) : a instanceof JavaScriptString ? this.lastIndexOf(a.value, b) : this.lastIndexOf(String.fromCharCode(a), b); }; String.prototype.length_0 = function () { return this.length; }; String.prototype.startsWith_1 = function (a) { return 0 === this.indexOf(a); }; String.prototype.substring_1 = String.prototype.substring; String.prototype.substring_2 = String.prototype.substring; String.prototype.trim_0 = String.prototype.trim; String.prototype.getBytes_0 = function (a) { return "getBytes_0 not supported"; }; String.prototype.replace_2 = function (a, b) { "number" === typeof a && (a = String.fromCharCode(a)); "number" === typeof b && (b = String.fromCharCode(b)); "." == a && (a = "\\."); return this.replace(new RegExp(a, "g"), b); }; String.valueOf_1 = function (a) { return String.fromCharCode(a); }; String.prototype.regionMatches_4 = function () { return !1; }; String.prototype.regionMatches_5 = function () { return !1; }; String.prototype.toString_0 = String.prototype.toString; String.prototype.isEmpty_0 = function () { return null == this ? !0 : 0 == this.length ? !0 : !1; }; JavaScriptString.prototype.toCharArray_0 = function () { return this.value.toCharArray_0(); }; JavaScriptString.prototype.rtrim = function () { return this.value.rtrim(); }; JavaScriptString.prototype.ltrim = function () { return this.value.ltrim(); }; JavaScriptString.prototype.charAt_1 = function (a) { return this.value.charAt_1(a); }; JavaScriptString.prototype.compareTo_1 = function (a) { return this.value.compareTo_1(a); }; JavaScriptString.prototype.concat_1 = function (a) { return this.value.concat_1(a); }; JavaScriptString.prototype.endsWith_1 = function (a) { return this.value.endsWith_1(a); }; JavaScriptString.prototype.equals_1 = function (a) { return this.value.equals_1(a); }; JavaScriptString.prototype.toLowerCase_0 = function () { return this.value.toLowerCase_0(); }; JavaScriptString.prototype.toUpperCase_0 = function () { return this.value.toUpperCase_0(); }; JavaScriptString.prototype.equalsIgnoreCase_1 = function (a) { return this.value.equalsIgnoreCase_1(a); }; JavaScriptString.prototype.indexOf_1 = function (a) { return this.value.indexOf_1(a); }; JavaScriptString.prototype.indexOf_2 = function (a, b) { return this.value.indexOf_2(a, b); }; JavaScriptString.prototype.lastIndexOf_1 = function (a) { return this.value.lastIndexOf_1(a); }; JavaScriptString.prototype.lastIndexOf_2 = function (a, b) { return this.value.lastIndexOf_2(a, b); }; JavaScriptString.prototype.length_0 = function () { return this.value.length_0(); }; JavaScriptString.prototype.startsWith_1 = function (a) { return this.value.startsWith_1(a); }; JavaScriptString.prototype.substring_1 = function (a) { return this.value.substring_1(a); }; JavaScriptString.prototype.substring_2 = function (a, b) { return this.value.substring_2(a, b); }; JavaScriptString.prototype.trim_0 = function () { return this.value.trim_0(); }; JavaScriptString.prototype.getBytes_0 = function () { return "getBytes_0 not supported"; }; JavaScriptString.prototype.replace_2 = function (a, b) { return this.value.replace_2(a, b); }; JavaScriptString.prototype.valueOf_1 = function (a) { return String.fromCharCode(a); }; JavaScriptString.prototype.regionMatches_4 = function () { return !1; }; JavaScriptString.prototype.regionMatches_5 = function () { return !1; }; JavaScriptString.prototype.toString_0 = function () { return this.value.toString(); }; JavaScriptString.prototype.toString = function () { return this.value.toString(); }; JavaScriptString.prototype.hashCode_0 = function () { for (var a = 0, b = 0, d = this.value.length; b < d; b++) a = (31 * a + this.value.charCodeAt(b)) << 0; return a; }; JavaScriptString.prototype.isEmpty_0 = function () { return this.value.isEmpty_0(); }; JavaScriptString.prototype.split = function (a, b) { return this.value.split(a, b); }; Math.div = function (a, b) { return (a - (a % b)) / b; }; Math.log10_1 = "function" === typeof Math.log10 ? Math.log10 : function (a) { a = Math.log(a) * Math.LOG10E; var b = Math.round(a); return 1e-14 > Math.abs(Math.round(a) - a) ? b : a; }; Math.abs_1 = Math.abs; Math.acos_1 = Math.acos; Math.asin_1 = Math.asin; Math.atan_1 = Math.atan; Math.atan2_2 = Math.atan2; Math.ceil_1 = Math.ceil; Math.cos_1 = Math.cos; Math.exp_1 = Math.exp; Math.floor_1 = Math.floor; Math.log_1 = Math.log; Math.max_2 = Math.max; Math.min_2 = Math.min; Math.round_1 = Math.round; Math.sin_1 = Math.sin; Math.sqrt_1 = Math.sqrt; Math.tan_1 = Math.tan; Math.pow_2 = Math.pow; var Runnable = "Runnable", GT1277 = "GT1277"; function java_lang_System() {} java_lang_System.prototype.out = PrintStream; java_lang_System.prototype.err = PrintStream; java_lang_System.prototype.currentTimeMillis_0 = function () { return Date.now(); }; java_lang_System.prototype.arraycopy_5 = function (a, b, d, e, f) { var g = a; a === d && (g = a.slice(0)); for (a = 0; a < f; a++) d[a + e] = g[a + b]; }; java_lang_System.prototype.getProperty_2 = function (a, b) {}; java_lang_System.prototype.exit_1 = function (a) { console.log("System exit"); }; Number.prototype.intValue_0 = function () { return this; }; Number.prototype.doubleValue_0 = function () { return this; }; var java_net_MalformedURLException = function (a) { console.error("java_net_MalformedURLException", a); }, java_util_Comparator = "java_util_Comparator"; function java_util_JavaScriptVector(a) { function b(a) { try { return this.data[a]; } catch (b) { return "Exception " + b + " occured when accessing " + a; } } function d(a) { this.size_0() == this.data.length && this.resize_0(); this.data[this.size++] = a; } function e(a, b) { if (null == a) return -1; for (var d = void 0 === b ? 0 : b; d < this.size_0(); d++) if (null != this.data[d] && this.data[d].equals_1(a)) return d; return -1; } function f(a, b) { if (null == a) return -1; for (var d = void 0 === b ? this.size_0() : b; 0 < d; d--) if (null != this.data[d] && null != a && this.data[d].equals_1(a)) return d; return -1; } if (0 >= a || void 0 === a) a = 50; this.data = Array(a); this.increment = a; this.size = 0; this.getCapacity_0 = function () { return this.data.length; }; this.size_0 = function () { return this.size; }; this.isEmpty_0 = function () { return 0 == this.size_0(); }; this.lastElement_0 = function () { if (null != this.data[this.size_0() - 1]) return this.data[this.size_0() - 1]; }; this.firstElement_0 = function () { if (null != this.data[0]) return this.data[0]; }; this.get_1 = this.elementAt_1 = b; this.add_1 = this.addElement_1 = d; this.add_2 = function (a, b) { try { this.size == this.data.length && this.resize_0(); for (var d = this.size_0(); d > a; d--) this.data[d] = this.data[d - 1]; this.data[a] = b; this.size++; } catch (e) { return "Invalid index " + d; } }; this.insertElementAt_2 = function (a, b) { try { this.size == this.data.length && this.resize_0(); for (var d = this.size_0(); d > b; d--) this.data[d] = this.data[d - 1]; this.data[b] = a; this.size++; } catch (e) { return "Invalid index " + d; } }; this.removeElement_1 = function (a) { if (null != a) { a = this.indexOf_1(a); if (0 <= a) { for (; a < this.size_0() - 1; a++) this.data[a] = this.data[a + 1]; this.data[this.size_0() - 1] = null; this.size--; return !0; } return !1; } }; this.removeElementAt_1 = function (a) { try { for (var b = a; b < this.size_0() - 1; b++) this.data[b] = this.data[b + 1]; this.data[this.size_0() - 1] = null; this.size--; } catch (d) { return "Invalid index " + a; } }; this.removeAllElements_0 = function () { this.size = 0; this.data.length = 0; }; this.indexOf_2 = this.indexOf_1 = e; this.lastIndexOf_2 = this.lastIndexOf_1 = f; this.contains_1 = function (a) { return 0 <= this.indexOf_1(a); }; this.resize_0 = function () { this.data.length += this.increment; }; this.toString = function () { for (var a = "[", b = 0; b < this.size; b++) (a += this.data[b]), b < this.size - 1 && (a += ", "); return a + "]"; }; this.sort_0 = function (a) { var b, d, e, f, q; for (b = 1; b < this.size_0(); b++) { f = this.data[b]; e = f[a]; d = b - 1; q = this.data[d]; for (q = q[a]; 0 <= d && q > e; ) (this.data[d + 1] = this.data[d]), d--, 0 <= d && ((q = this.data[d]), (q = q[a])); this.data[d + 1] = f; } }; this.trimToSize_0 = function () { for (var a = Array(this.size_0()), b = 0; b < this.size_0(); b++) a[b] = this.data[b]; this.data = a; }; this.toArray_0 = function () { for (var a = Array(this.size_0()), b = 0; b < this.size_0(); b++) a[b] = this.data[b]; return a; }; this.clone_0 = function () { 0 > this.size && console.log("inc: " + this.size); for (var a = new java_util_JavaScriptVector(this.size), b = 0; b < this.size; b++) a.addElement_1(this.data[b]); a.size = this.size; a.increment = this.increment; return a; }; this.setElementAt_2 = function (a, b) { this.data[b] = a; }; this.copyInto_1 = function (a) { for (var b = 0; b < a.length; b++) a[b] = this.elementAt_1(b); }; this.equals_1 = function (a) { return JSUTIL.equals_2(this, a); }; this.setSize_1 = function (a) { var b = a - this.size; if (0 !== b) if (0 == a) this.removeAllElements_0(); else if (0 < b) for (a = 0; a < b; a++) this.addElement_1(null); else this.size = this.data.length = a; }; this.clear_0 = function (a) { if (0 == a || void 0 === a) a = 100; this.data = Array(a); this.increment = a; this.size = 0; }; this.set_2 = function (a, b) { this.data[a] = b; }; } (function (a, b, d) { a.SlotparkAudioController = b = function () { this._initialized = !1; this.MAX_ID = 65535; this._idCounter = 0; this.spritesdata = {}; }; b.prototype = { setup: function (a, b) { this.spritesdata = a; var d = {}, k; for (k in a) if (a.hasOwnProperty(k)) { var m = a[k], n = 1e3 * m.start; d[k] = [n, 1e3 * m.end - n]; } this._postMessage({ action: "setup", url: b.url, sprites: d }); this._initialized = !0; }, loadFile: function (a, b) { b(); }, initialized: function () { return this._initialized; }, isReady: function () { return this._initialized; }, play: function (a, b, d, k, m, n, p, q) { if (this.isReady()) { var r = this._createId(a); this._postMessage({ action: "play", key: a, id: r, startpos: k, endpos: d, loop: m, restartpos: b, volume: n, pan: p, wavsourceformat: this.spritesdata.hasOwnProperty(a) && "wav" === this.spritesdata[a].sourceformat }); q(r); } }, volume: function (a, b) { this._postMessage({ action: "volume", id: b, volume: a }); }, mute: function () { void 0 != GT1377.prototype.STARTSOUNDTIMEOUT && null !== GT1377.prototype.STARTSOUNDTIMEOUT && clearTimeout(GT1377.prototype.STARTSOUNDTIMEOUT); }, unmute: function () {}, stop: function (a, b, d, k) { this.isReady() && this._postMessage({ action: "stop", id: a, fadeout: k }); }, _createId: function (a) { this._idCounter = (this._idCounter + 1) % this.MAX_ID; return a + ":" + this._idCounter; }, _postMessage: function (b) { b = "SPSP->" + JSON.stringify(b); a.top.postMessage(b, "*"); }, }; })(window, document, JSUTIL); (function (a, b, d) { a.WebAudioControllerSeparateFiles = a = function (a, b) { this.soundFormat = b.url.substring(b.url.lastIndexOf_1(".") + 1); this.soundPath = b.url.substring(0, b.url.lastIndexOf_1("/") + 1); var d = function (a, b, d, e) { a = { urls: a, sprite: b, onload: e || function () {} }; d && (a.dataarray = d); return new Howl(a); }; this.howlSounds = []; this.sounds = a; if (!Howl) throw Error("howler is not present"); var k = this, m = {}; this.finalEncoderDecoderDelay = 0; if ("mp3" === this.soundFormat && !CONFIG.get("slotparkaudio")) { var n = "FULLFEATUREBUILD" == CONFIG.FEATURELEVEL ? "44100" : "24000", p = []; p.mp3DelayTestSound = [0, 1e3]; var q = this.soundPath + "SilenceSounds/100ms_" + n + ".mp3", r = d([q], p, null, function () { for (var a = r.getCache()[q], b = a.getChannelData(0), d = 0; d < b.length; d++) if (0.3 < Math.abs(b[d])) { k.finalEncoderDecoderDelay = Math.floor((d / a.sampleRate) * 1e3); GT1650.prototype.debugMode && console.log("INFO: WebAudio context sample rate: " + a.sampleRate + "; first valid sample: " + d + "; final applied delay in milliseconds: " + k.finalEncoderDecoderDelay); break; } r.unload(); }); } if ("1" == CONFIG.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds")) this.sounds.hasOwnProperty("silence") && ((n = this.sounds.silence), (m.silence = [0, 1e3 * n.end - 1e3 * n.start]), (n = []), (n.silence = m.silence), (this.howlSounds.silence = d([this.soundPath + "sounds_" + this.soundFormat + "/silence." + this.soundFormat], n, null, null))); else { var t = new XMLHttpRequest(); t.open("GET", this.soundPath + "sounds_" + this.soundFormat + ".zip", !0); t.responseType = "arraybuffer"; var u = null; t.onload = function (a) { a = new Uint8Array(t.response); u = new JSUnzip(a); if (u.isZipFile()) { u.readEntries(); for (var b in k.sounds) if (k.sounds.hasOwnProperty(b)) { a = []; a[b] = [0]; for (var e = b, f = 0; f < u.entries.length; f++) { var m = u.entries[f]; if (m.fileName.substring(0, m.fileName.lastIndexOf(".")) === e) { e = !1; 0 === m.compressionMethod ? (e = m.data) : 8 === m.compressionMethod && (e = JSInflate.inflate(m.data)); if (e) { for (var m = new ArrayBuffer(e.length), f = new Uint8Array(m), n = 0, p = e.length; n < p; n++) f[n] = e.charCodeAt(n); k.howlSounds[b] = d([b + "." + k.soundFormat], a, m, null); } break; } } } } }; t.send(); } }; a.prototype = { loadFile: function (a, b, d) { a = a.substring(a.lastIndexOf("/") + 1, a.lastIndexOf(".")); if (this.sounds.hasOwnProperty(a)) { var k = this.sounds[a], m = []; m[a] = [0, 1e3 * k.end - 1e3 * k.start]; this.howlSounds[a] = new Howl({ urls: [this.soundPath + "sounds_" + this.soundFormat + "/" + a + "." + this.soundFormat], sprite: m, onload: b, onloaderror: d }); } else d(); }, setup: function () {}, useMultipleSounds: function () { return !0; }, isReady: function (a) { if (null == a) return !0; if (null == this.howlSounds[a] || 0 == this.howlSounds[a]._loaded) return !1; a = this.howlSounds[a].getContextState(); return null == a ? this._unlocked || !DEVICE.mobile : "running" == a; }, getContext: function (a) { return this.howlSounds[a]; }, play: function (a, b, d, k, m) { if (this.firstSoundAfterMuting) { this.firstSoundAfterMuting = !1; this.howlSounds.silence.play("silence", function () {}, -1, 100, 0); var n = this; setTimeout(function () { try { 0 < n.finalEncoderDecoderDelay && "wav" === n.sounds[a].sourceformat ? n.howlSounds[a].play(a, m || function () {}, b + n.finalEncoderDecoderDelay, d + n.finalEncoderDecoderDelay, k + n.finalEncoderDecoderDelay) : n.howlSounds[a].play(a, m || function () {}, b, d, k); } catch (p) {} }, 100); } else try { 0 < this.finalEncoderDecoderDelay && "wav" === this.sounds[a].sourceformat ? this.howlSounds[a].play(a, m || function () {}, b + this.finalEncoderDecoderDelay, d + this.finalEncoderDecoderDelay, k + this.finalEncoderDecoderDelay) : this.howlSounds[a].play(a, m || function () {}, b, d, k); } catch (p) {} }, volume: function (a, b, d) { this.howlSounds[d] && null != this.howlSounds[d] && this.howlSounds[d].volume(a, b); }, mute: function () { DEVICE.chrome && !Howler._muted && (this.firstSoundAfterMuting = !0); Howler.mute(); }, unmute: function () { this.firstSoundAfterMuting = !1; null != CONFIG.CLIENTSLOTAPPLET.getSoundPlayer_0() && CONFIG.CLIENTSLOTAPPLET.getSoundPlayer_0().isActive_0() && Howler.unmute(); }, panning: function (a, b, d) { this.howlSounds[d] && null != this.howlSounds[d] && this.howlSounds[d].pos3d(a, 0, 0, b); }, unload: function (a) { this.howlSounds[a] && null != this.howlSounds[a] && this.howlSounds[a].unload(); }, stop: function (a, b, d, k) { if (this.isReady(b)) try { a && (0 < k ? this.howlSounds[b].fadeOut(0, k, null, a) : this.howlSounds[b].stop(a, d)); } catch (m) {} }, }; })(window, document, JSUTIL); (function (a) { var b = a.DEVICE; a.__greentube_games.SLOT.SOUND = { init: function () { this.initPageSoundStopsEvents(); }, initPageSoundStopsEvents: function () { b.visible().onVisible(function () { if (CONFIG.SOUNDPLAYER && (CONFIG.SOUNDPLAYER.unmute(), !(CONFIG.SOUNDPLAYER instanceof NoAudioController) && CONFIG.CLIENTSLOTAPPLET)) { var a = CONFIG.CLIENTSLOTAPPLET.getSoundPlayer_0(); if (a && a.isActive_0() && a.activeStateListeners) for (var b = 0; b < a.activeStateListeners.size_0(); b++) a.activeStateListeners.elementAt_1(b) && a.activeStateListeners.elementAt_1(b).notifySoundPlayerActiveState_2(!0, a.getMasterVolume_0()); } G.fire("resize-game"); }); b.visible().onHidden(function () { if (CONFIG.SOUNDPLAYER && (CONFIG.SOUNDPLAYER.mute(), !(CONFIG.SOUNDPLAYER instanceof NoAudioController) && CONFIG.CLIENTSLOTAPPLET)) { var a = CONFIG.CLIENTSLOTAPPLET.getSoundPlayer_0(); if (a && a.isActive_0() && a.activeStateListeners) for (var b = 0; b < a.activeStateListeners.size_0(); b++) a.activeStateListeners.elementAt_1(b) && a.activeStateListeners.elementAt_1(b).notifySoundPlayerActiveState_2(!1, a.getMasterVolume_0()); } G.fire("resize-game"); }); if (b.ios6 || b.ios7 || b.ios7_1) a.addEventListener("pagehide", function (a) { CONFIG.SOUNDPLAYER && CONFIG.SOUNDPLAYER.mute(); }), a.addEventListener("pageshow", function (a) { CONFIG.SOUNDPLAYER && CONFIG.SOUNDPLAYER.unmute(); }); a.addEventListener( "blur", function () { null !== CONFIG.SOUNDPLAYER && b.mobile && CONFIG.SOUNDPLAYER.mute(); }, !1 ); a.addEventListener( "focus", function () { null !== CONFIG.SOUNDPLAYER && b.mobile && (CONFIG.SOUNDPLAYER.unmute(), JSUTIL.webaudio() && 1 != JSUTIL.getParameter("slotparkaudio") && CONFIG.SOUNDPLAYER.play("silence", -1, 400, 100)); }, !1 ); }, }; __greentube_games.SLOT.SOUND.init(); })(window); (function (a) { function b() { this.list = this.next = null; } function d() { this.n = this.b = this.e = 0; this.t = null; } function e(a, e, f, g, k, m) { this.BMAX = 16; this.N_MAX = 288; this.status = 0; this.root = null; this.m = 0; var n = Array(this.BMAX + 1), p, q, r, t, u, A, B, C = Array(this.BMAX + 1), D, E, F, H = new d(), I = Array(this.BMAX); t = Array(this.N_MAX); var J, K = Array(this.BMAX + 1), L, M, N; N = this.root = null; for (u = 0; u < n.length; u++) n[u] = 0; for (u = 0; u < C.length; u++) C[u] = 0; for (u = 0; u < I.length; u++) I[u] = null; for (u = 0; u < t.length; u++) t[u] = 0; for (u = 0; u < K.length; u++) K[u] = 0; p = 256 < e ? a[256] : this.BMAX; D = a; E = 0; u = e; do n[D[E]]++, E++; while (0 < --u); if (n[0] == e) (this.root = null), (this.status = this.m = 0); else { for (A = 1; A <= this.BMAX && 0 == n[A]; A++); B = A; m < A && (m = A); for (u = this.BMAX; 0 != u && 0 == n[u]; u--); r = u; m > u && (m = u); for (L = 1 << A; A < u; A++, L <<= 1) if (0 > (L -= n[A])) { this.status = 2; this.m = m; return; } if (0 > (L -= n[u])) (this.status = 2), (this.m = m); else { n[u] += L; K[1] = A = 0; D = n; E = 1; for (F = 2; 0 < --u; ) K[F++] = A += D[E++]; D = a; u = E = 0; do 0 != (A = D[E++]) && (t[K[A]++] = u); while (++u < e); e = K[r]; K[0] = u = 0; D = t; E = 0; t = -1; J = C[0] = 0; F = null; for (M = 0; B <= r; B++) for (a = n[B]; 0 < a--; ) { for (; B > J + C[1 + t]; ) { J += C[1 + t]; t++; M = (M = r - J) > m ? m : M; if ((q = 1 << (A = B - J)) > a + 1) for (q -= a + 1, F = B; ++A < M && !((q <<= 1) <= n[++F]); ) q -= n[F]; J + A > p && J < p && (A = p - J); M = 1 << A; C[1 + t] = A; F = Array(M); for (q = 0; q < M; q++) F[q] = new d(); N = null == N ? (this.root = new b()) : (N.next = new b()); N.next = null; N.list = F; I[t] = F; 0 < t && ((K[t] = u), (H.b = C[t]), (H.e = 16 + A), (H.t = F), (A = (u & ((1 << J) - 1)) >> (J - C[t])), (I[t - 1][A].e = H.e), (I[t - 1][A].b = H.b), (I[t - 1][A].n = H.n), (I[t - 1][A].t = H.t)); } H.b = B - J; E >= e ? (H.e = 99) : D[E] < f ? ((H.e = 256 > D[E] ? 16 : 15), (H.n = D[E++])) : ((H.e = k[D[E] - f]), (H.n = g[D[E++] - f])); q = 1 << (B - J); for (A = u >> J; A < M; A += q) (F[A].e = H.e), (F[A].b = H.b), (F[A].n = H.n), (F[A].t = H.t); for (A = 1 << (B - 1); 0 != (u & A); A >>= 1) u ^= A; for (u ^= A; (u & ((1 << J) - 1)) != K[t]; ) (J -= C[t]), t--; } this.m = C[1]; this.status = 0 != L && 1 != r ? 1 : 0; } } } function f(a) { for (; F < a; ) { var b = E, d; d = O.length == K ? -1 : O.charCodeAt(K++) & 255; E = b | (d << F); F += 8; } } function g(a) { return E & Q[a]; } function k(a) { E >>= a; F -= a; } function m(a, b, d) { var e, m, n; if (0 == d) return 0; for (n = 0; ; ) { f(N); m = J.list[g(N)]; for (e = m.e; 16 < e; ) { if (99 == e) return -1; k(m.b); e -= 16; f(e); m = m.t[g(e)]; e = m.e; } k(m.b); if (16 == e) (u &= 32767), (a[b + n++] = t[u++] = m.n); else { if (15 == e) break; f(e); I = m.n + g(e); k(e); f(P); m = M.list[g(P)]; for (e = m.e; 16 < e; ) { if (99 == e) return -1; k(m.b); e -= 16; f(e); m = m.t[g(e)]; e = m.e; } k(m.b); f(e); L = u - m.n - g(e); for (k(e); 0 < I && n < d; ) I--, (L &= 32767), (u &= 32767), (a[b + n++] = t[u++] = t[L++]); } if (n == d) return d; } D = -1; return n; } function n(a, b, d) { var n, p, q, r, t, u, A, B = Array(316); for (n = 0; n < B.length; n++) B[n] = 0; f(5); u = 257 + g(5); k(5); f(5); A = 1 + g(5); k(5); f(4); n = 4 + g(4); k(4); if (286 < u || 30 < A) return -1; for (p = 0; p < n; p++) f(3), (B[Z[p]] = g(3)), k(3); for (; 19 > p; p++) B[Z[p]] = 0; N = 7; p = new e(B, 19, 19, null, null, N); if (0 != p.status) return -1; J = p.root; N = p.m; r = u + A; for (n = q = 0; n < r; ) if ((f(N), (t = J.list[g(N)]), (p = t.b), k(p), (p = t.n), 16 > p)) B[n++] = q = p; else if (16 == p) { f(2); p = 3 + g(2); k(2); if (n + p > r) return -1; for (; 0 < p--; ) B[n++] = q; } else { 17 == p ? (f(3), (p = 3 + g(3)), k(3)) : (f(7), (p = 11 + g(7)), k(7)); if (n + p > r) return -1; for (; 0 < p--; ) B[n++] = 0; q = 0; } N = 9; p = new e(B, u, 257, S, T, N); 0 == N && (p.status = 1); if (0 != p.status) return -1; J = p.root; N = p.m; for (n = 0; n < A; n++) B[n] = B[n + u]; P = 6; p = new e(B, A, 0, R, V, P); M = p.root; P = p.m; return (0 == P && 257 < u) || 0 != p.status ? -1 : m(a, b, d); } function p() { null == t && (t = Array(65536)); F = E = u = 0; D = -1; H = !1; I = L = 0; J = null; } function q(a, b, d) { var p, q; for (p = 0; p < d && (!H || -1 != D); ) { if (0 < I) { if (0 != D) for (; 0 < I && p < d; ) I--, (L &= 32767), (u &= 32767), (a[b + p++] = t[u++] = t[L++]); else { for (; 0 < I && p < d; ) I--, (u &= 32767), f(8), (a[b + p++] = t[u++] = g(8)), k(8); 0 == I && (D = -1); } if (p == d) break; } if (-1 == D) { if (H) break; f(1); 0 != g(1) && (H = !0); k(1); f(2); D = g(2); k(2); J = null; I = 0; } switch (D) { case 0: q = a; var r = b + p, K = d - p, O = void 0, O = F & 7; k(O); f(16); O = g(16); k(16); f(16); if (O != (~E & 65535)) q = -1; else { k(16); I = O; for (O = 0; 0 < I && O < K; ) I--, (u &= 32767), f(8), (q[r + O++] = t[u++] = g(8)), k(8); 0 == I && (D = -1); q = O; } break; case 1: if (null != J) q = m(a, b + p, d - p); else a: { q = a; r = b + p; K = d - p; if (null == B) { for (var Q = void 0, O = Array(288), Q = void 0, Q = 0; 144 > Q; Q++) O[Q] = 8; for (; 256 > Q; Q++) O[Q] = 9; for (; 280 > Q; Q++) O[Q] = 7; for (; 288 > Q; Q++) O[Q] = 8; C = 7; Q = new e(O, 288, 257, S, T, C); if (0 != Q.status) { alert("HufBuild error: " + Q.status); q = -1; break a; } B = Q.root; C = Q.m; for (Q = 0; 30 > Q; Q++) O[Q] = 5; zip_fixed_bd = 5; Q = new e(O, 30, 0, R, V, zip_fixed_bd); if (1 < Q.status) { B = null; alert("HufBuild error: " + Q.status); q = -1; break a; } A = Q.root; zip_fixed_bd = Q.m; } J = B; M = A; N = C; P = zip_fixed_bd; q = m(q, r, K); } break; case 2: q = null != J ? m(a, b + p, d - p) : n(a, b + p, d - p); break; default: q = -1; } if (-1 == q) return H ? 0 : -1; p += q; } return p; } function r(a, b) { var d = q(b, 0, b.length); if (0 < d) { var e = ""; for (j = 0; j < d; j++) e += String.fromCharCode(b[j]); a.write(e); } return d; } var t, u, B = null, A, C, E, F, D, H, I, L, J, M, N, P, O, K, Q = [0, 1, 3, 7, 15, 31, 63, 127, 255, 511, 1023, 2047, 4095, 8191, 16383, 32767, 65535], S = [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, 0, 0], T = [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, 99, 99], R = [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], V = [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], Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], W = {}; if ("object" == typeof module) { module.exports = W; var ba = require("fs"); } else a.JSInflate = W; W.inflate = function (a) { var b, d, e; p(); O = a; K = 0; b = Array(1024); for (a = ""; 0 < (d = q(b, 0, b.length)); ) for (e = 0; e < d; e++) a += String.fromCharCode(b[e]); O = null; return a; }; W.inflateStream = function (a, b, d) { var e, f; p(); O = a; f = K = 0; var g = ba.createWriteStream(b); e = Array(1024); var k = 0; g.on("drain", function () { k = r(g, e); 0 < k ? (f += k) : ((O = null), d(f)); }); f += r(g, e); }; })(this); (function (a) { var b = function (a) { this.fileContents = new b.BigEndianBinaryStream(a); }; a.JSUnzip = b; b.MAGIC_NUMBER = 67324752; b.prototype = { readEntries: function () { if (!this.isZipFile()) throw Error("File is not a Zip file."); this.entries = []; for (var a = new b.ZipEntry(this.fileContents); "string" === typeof a.data; ) this.entries.push(a), (a = new b.ZipEntry(this.fileContents)); }, isZipFile: function () { return this.fileContents.getByteRangeAsNumber(0, 4) === b.MAGIC_NUMBER; }, }; b.ZipEntry = function (a) { this.signature = a.getNextBytesAsNumber(4); if (this.signature === b.MAGIC_NUMBER) { this.versionNeeded = a.getNextBytesAsNumber(2); this.bitFlag = a.getNextBytesAsNumber(2); this.compressionMethod = a.getNextBytesAsNumber(2); this.timeBlob = a.getNextBytesAsNumber(4); if (this.isEncrypted()) throw "File contains encrypted entry. Not supported."; if (this.isUsingUtf8()) throw "File is using UTF8. Not supported."; this.crc32 = a.getNextBytesAsNumber(4); this.compressedSize = a.getNextBytesAsNumber(4); this.uncompressedSize = a.getNextBytesAsNumber(4); if (this.isUsingZip64()) throw "File is using Zip64 (4gb+ file size). Not supported"; this.fileNameLength = a.getNextBytesAsNumber(2); this.extraFieldLength = a.getNextBytesAsNumber(2); this.fileName = a.getNextBytesAsString(this.fileNameLength); this.extra = a.getNextBytesAsString(this.extraFieldLength); this.data = a.getNextBytesAsString(this.compressedSize); this.isUsingBit3TrailingDataDescriptor() && ("undefined" !== typeof console && console.log("File is using bit 3 trailing data descriptor. Not supported."), a.getNextBytesAsNumber(16)); } }; b.ZipEntry.prototype = { isEncrypted: function () { return 1 === (this.bitFlag & 1); }, isUsingUtf8: function () { return 2048 === (this.bitFlag & 2048); }, isUsingBit3TrailingDataDescriptor: function () { return 8 === (this.bitFlag & 8); }, isUsingZip64: function () { 4294967295 === this.compressedSize || 4294967295 === this.uncompressedSize; }, }; b.BigEndianBinaryStream = function (a) { this.stream = a; this.resetByteIndex(); }; b.BigEndianBinaryStream.prototype = { resetByteIndex: function () { this.currentByteIndex = 0; }, getByteAt: function (a) { return this.stream[a]; }, getNextBytesAsNumber: function (a) { var b = this.getByteRangeAsNumber(this.currentByteIndex, a); this.currentByteIndex += a; return b; }, getNextBytesAsString: function (a) { var b = this.getByteRangeAsString(this.currentByteIndex, a); this.currentByteIndex += a; return b; }, getByteRangeAsNumber: function (a, b) { for (var f = 0, g = a + b - 1; g >= a; ) (f = (f << 8) + this.getByteAt(g)), g--; return f; }, getByteRangeAsString: function (a, b) { for (var f = "", g = a + b, k = a; k < g; ) { var m = this.getByteAt(k), f = f + String.fromCharCode(m), g = g - Math.floor(m / 256); k++; } return f; }, }; })(this); var Utf8 = { encode: function (a) { for (var b = "", d = 0; d < a.length; d++) { var e = a.charCodeAt(d); 128 > e ? (b += String.fromCharCode(e)) : (127 < e && 2048 > e ? (b += String.fromCharCode((e >> 6) | 192)) : ((b += String.fromCharCode((e >> 12) | 224)), (b += String.fromCharCode(((e >> 6) & 63) | 128))), (b += String.fromCharCode((e & 63) | 128))); } return b; }, decode: function (a) { for (var b = "", d, e, f, g = 0; g < a.length; ) (d = a.charCodeAt(g) & 255), 128 > d ? ((b += String.fromCharCode(d)), g++) : 191 < d && 224 > d ? ((e = a.charCodeAt(g + 1) & 255), (b += String.fromCharCode(((d & 31) << 6) | (e & 63))), (g += 2)) : ((e = a.charCodeAt(g + 1) & 255), (f = a.charCodeAt(g + 2) & 255), (b += String.fromCharCode(((d & 15) << 12) | ((e & 63) << 6) | (f & 63))), (g += 3)); return b; }, decode_3: function (a, b, d) { var e = "", f, g; d = b + d; for (var k = b; k < d; k++) (b = a[k] & 255), 128 > b ? (e += String.fromCharCode(b)) : 191 < b && 224 > b ? ((f = a[k + 1] & 255), (e += String.fromCharCode(((b & 31) << 6) | (f & 63))), k++) : ((f = a[k + 1] & 255), (g = a[k + 2] & 255), (e += String.fromCharCode(((b & 15) << 12) | ((f & 63) << 6) | (g & 63))), (k += 2)); return e; }, }, GT1531 = Class.extend( { initialConstructor_0: function () { this._complete = this._initialized = !1; this._onCompleteCallbacks = null; this._diff = this._previousFrame = 0; this._gfx = null; this._startTime = this._updateTime = 0; this._onCompleteCallbacks = new java_util_JavaScriptVector(); this._initialized = !1; this._previousFrame = -1; }, init_4: function (a, b, d, e) { this._updateTime = e; this._complete = !1; this._previousFrame = -1; this._gfx = a.getGraphics_0(); }, reset_0: function () { this._updateTime = 0; this._complete = !1; this._previousFrame = -1; }, update_1: function (a) { this._updateTime = a; this._initialized && this._initialized && ((this._diff = 0), -1 != this._previousFrame && (this._diff = Integer.truncate_1(a - this._previousFrame)), (this._previousFrame = a)); }, getFrameTimeDiffInMs_0: function () { return this._diff; }, getFrameTimeDiffInSeconds_0: function () { return this._diff / 1e3; }, getElapsedTime_0: function () { return this._updateTime - this._startTime; }, addAnimCallback_1: function (a) { this._onCompleteCallbacks.contains_1(a) || this._onCompleteCallbacks.add_1(a); }, removeAnimCallback_1: function (a) { this._onCompleteCallbacks.removeElement_1(a); }, render_1: function (a) { this._gfx = a; }, getGfx_0: function () { return this._gfx; }, setAnimationComplete_0: function () { if (!this._complete) { this._complete = !0; for (var a = 0; a < this._onCompleteCallbacks.size_0(); a++) this._onCompleteCallbacks.get_1(a).onAnimComplete_0(); } }, setInitialized_1: function (a) { if ((this._initialized = a)) this._startTime = this._updateTime; }, isInitialized_0: function () { return this._initialized; }, isComplete_0: function () { return this._complete; }, triggerAnimEvent_1: function (a) { for (var b = 0; b < this._onCompleteCallbacks.size_0(); b++) this._onCompleteCallbacks.get_1(b).onAnimEvent_1(a); }, }, "GT1531", [] ), GT1646 = Class.extend( { initialConstructor_0: function () { this._audio = this._gfx = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this._audio = this._gfx = null; this._gfx = a; this._audio = b; }, getGraphics_0: function () { return this._gfx; }, getAudio_0: function () { return this._audio; }, }, "GT1646", [] ), GT1588 = Class.extend( { initialConstructor_0: function () { this.sprite = null; this.endValue = this.startValue = this.duration = this.endTime = this.startTime = this.currentTime = 0; this.equation = this.onComplete = null; Class.prototype.initialConstructor_0.call(this); }, update_1: function (a) { var b = !1; this.currentTime += a; this.currentTime >= this.endTime && (this.apply_1(this.endValue), null != this.onComplete && this.onComplete.run_0(), (b = !0)); this.startTime <= this.currentTime && this.currentTime < this.endTime && ((a = Math.div(this.currentTime - this.startTime, this.duration)), null != this.equation && (a = this.equation.compute_1(a)), this.apply_1((this.endValue - this.startValue) * a + this.startValue)); return b; }, }, "GT1588", [] ), GT1435 = Class.extend( { initialConstructor_0: function () { this._toDelete = this._entries = null; this._entries = new java_util_JavaScriptVector(); this._toDelete = new java_util_JavaScriptVector(); }, tween_6: function (a, b, d, e, f, g) { this.tween_7(a, b, d, e, f, g, null); }, tween_7: function (a, b, d, e, f, g, k) { this.tween_8(a, b, d, e, f, g, k, null); }, tween_8: function (a, b, d, e, f, g, k, m) { var n = null; switch (a) { case GT1435.prototype.TYPE_ALPHA: n = new GT1378(); break; case GT1435.prototype.TYPE_ROTATION: n = new GT1233(); break; case GT1435.prototype.TYPE_WIDTH: n = new GT1379(); break; case GT1435.prototype.TYPE_HEIGHT: n = new GT1328(); break; case GT1435.prototype.TYPE_CUSTOM1: n = new GT1278(); break; case GT1435.prototype.TYPE_CUSTOM2: n = new GT1279(); } n.sprite = b; n.startTime = d; n.endTime = e; n.duration = e - d; n.startValue = f; n.endValue = g; n.currentTime = 0; n.onComplete = k; n.equation = m; this._entries.add_1(n); }, tweenMulti_4: function (a, b, d, e) { var f = new GT1380(); f.sprite = a; f.startTime = b; f.endTime = d; f.duration = d - b; f.currentTime = 0; f.onComplete = e; this._entries.add_1(f); return f; }, update_1: function (a) { for (var b = this._entries.size_0(), d = 0; d < b; d++) { var e = this._entries.get_1(d); e.update_1(a) && this._toDelete.add_1(e); } a = this._toDelete.size_0(); if (0 < a) { for (b = 0; b < a; b++) this._entries.removeElement_1(this._toDelete.get_1(b)); this._toDelete.clear_0(); } }, }, "GT1435", [] ), GT1378 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setAlpha_1(a); }, }, "GT1378", [] ), GT1233 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setRotation_1(a); }, }, "GT1233", [] ), GT1379 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setWidth_1(a); }, }, "GT1379", [] ), GT1328 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setHeight_1(a); }, }, "GT1328", [] ), GT1278 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setCustomValue1_1(a); }, }, "GT1278", [] ), GT1279 = GT1588.extend( { initialConstructor_0: function () { GT1588.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { this.sprite.setCustomValue2_1(a); }, }, "GT1279", [] ); GT1435.prototype.TYPE_ALPHA = 1; GT1435.prototype.TYPE_ROTATION = 2; GT1435.prototype.TYPE_WIDTH = 4; GT1435.prototype.TYPE_HEIGHT = 8; GT1435.prototype.TYPE_CUSTOM1 = 16; GT1435.prototype.TYPE_CUSTOM2 = 32; GT1435.prototype.TYPE_COUNT = 6; var GT1380 = GT1588.extend( { initialConstructor_0: function () { this.type = 0; this.endValues = this.startValues = null; GT1588.prototype.initialConstructor_0.call(this); }, log2_1: function (a) { GT1650.prototype.assertExp_2(0 < a, "Illegal argument. v must be > 0"); return 31 - GT1677.prototype.numberOfLeadingZeros_1(a); }, add_3: function (a, b, d) { this.type |= a; null == this.startValues && ((this.startValues = [].createArray(GT1435.prototype.TYPE_COUNT).init(0)), (this.endValues = [].createArray(GT1435.prototype.TYPE_COUNT).init(0))); this.startValues[this.log2_1(a)] = b; this.endValues[this.log2_1(a)] = d; return this; }, update_1: function (a) { var b = !1; this.currentTime += a; this.currentTime >= this.endTime && (this.apply_1(this.endValue), null != this.onComplete && this.onComplete.run_0(), (b = !0)); this.startTime <= this.currentTime && this.currentTime < this.endTime && this.applyAtTime_1(this.currentTime - this.startTime); return b; }, apply_1: function (a) {}, applyAtTime_1: function (a) { for (var b = 0; b < GT1435.prototype.TYPE_COUNT; ++b) { var d = 1 << b; if (0 != (d & this.type)) { var e = Math.div((this.endValues[b] - this.startValues[b]) * a, this.duration) + this.startValues[b]; switch (d) { case GT1435.prototype.TYPE_ALPHA: this.sprite.setAlpha_1(e); break; case GT1435.prototype.TYPE_ROTATION: this.sprite.setRotation_1(e); break; case GT1435.prototype.TYPE_WIDTH: this.sprite.setWidth_1(e); break; case GT1435.prototype.TYPE_HEIGHT: this.sprite.setHeight_1(e); break; case GT1435.prototype.TYPE_CUSTOM1: this.sprite.setCustomValue1_1(e); break; case GT1435.prototype.TYPE_CUSTOM2: this.sprite.setCustomValue2_1(e); } } } }, }, "GT1380", [] ), GT1659 = Class.extend( { initialConstructor_0: function () { this.height = this.width = 0; Class.prototype.initialConstructor_0.call(this); }, }, "GT1659", [] ), GT1621 = Class.extend( { initialConstructor_0: function () { this._tmp = this.trn = this.ay = this.ax = null; this.ax = new GT1631(1, 0); this.ay = new GT1631(0, 1); this.trn = new GT1631(); }, createTempMatrix_0: function () { null == this._tmp && (this._tmp = new GT1621()); }, setIdentity_0: function () { this.ax.set_1(new GT1631(1, 0)); this.ay.set_1(new GT1631(0, 1)); this.trn.set_2(0, 0); }, isIdentity_0: function () { return 1 != this.ax.x || 0 != this.ax.y || 0 != this.ay.x || 1 != this.ay.y || 0 != this.trn.x || 0 != this.trn.y ? !1 : !0; }, toString: function () { return "Matrix23{ax=" + this.ax + ", ay=" + this.ay + ", trn=" + this.trn + 125; }, set_3: function (a, b, d) { this.ax.set_1(a); this.ay.set_1(b); this.trn.set_1(d); }, setTranslation_2: function (a, b) { this.trn.set_2(a, b); }, set_1: function (a) { this.ax.set_1(a.ax); this.ay.set_1(a.ay); this.trn.set_1(a.trn); }, set_2: function (a, b) { this.ax.x = a[b++]; this.ax.y = a[b++]; this.ay.x = a[b++]; this.ay.y = a[b++]; this.trn.x = a[b++]; this.trn.y = a[b++]; }, store_1: function (a) { var b; b = this.ax; a[GT1621.prototype.AXIS_X][GT1621.prototype.AXIS_X] = b.x; a[GT1621.prototype.AXIS_X][GT1621.prototype.AXIS_Y] = b.y; b = this.ay; a[GT1621.prototype.AXIS_Y][GT1621.prototype.AXIS_X] = b.x; a[GT1621.prototype.AXIS_Y][GT1621.prototype.AXIS_Y] = b.y; b = this.trn; a[GT1621.prototype.AXIS_Z][GT1621.prototype.AXIS_X] = b.x; a[GT1621.prototype.AXIS_Z][GT1621.prototype.AXIS_Y] = b.y; }, toDoubleArray_1: function (a) { if (6 == a.length) { var b; b = this.ax; a[0] = b.x; a[1] = b.y; b = this.ay; a[2] = b.x; a[3] = b.y; b = this.trn; a[4] = b.x; a[5] = b.y; } else 9 == a.length && ((a[0] = this.ax.x), (a[1] = this.ay.x), (a[2] = this.trn.x), (a[3] = this.ax.y), (a[4] = this.ay.y), (a[5] = this.trn.y), (a[6] = 0), (a[7] = 0), (a[8] = 1)); }, blend_2: function (a, b) { this.ax.blend_2(a.ax, b); this.ay.blend_2(a.ay, b); this.trn.blend_2(a.trn, b); }, setRotation_2: function (a, b) { this.ax.x = a; this.ax.y = b; this.ay.x = -b; this.ay.y = a; this.trn.set_2(0, 0); }, setRotation_1: function (a) { this.setRotation_2(Math.cos_1(a), Math.sin_1(a)); }, addRotation_1: function (a) { this.createTempMatrix_0(); this._tmp.setRotation_1(a); this.append_1(this._tmp); }, setScale_2: function (a, b) { this.ax.set_2(a, 0); this.ay.set_2(0, b); }, setScale_1: function (a) { this.setScale_2(a, a); }, transform_1: function (a) { var b = a.x, d = a.y; a.x = b * this.ax.x + d * this.ay.x + this.trn.x; a.y = b * this.ax.y + d * this.ay.y + this.trn.y; }, append_1: function (a) { a.transform_1(this.ax); a.transform_1(this.ay); a.transform_1(this.trn); }, prepend_1: function (a) { this.createTempMatrix_0(); this._tmp.set_1(a); this._tmp.append_1(this); this.set_1(this._tmp); }, multiply_2: function (a, b) { this.ax.x = a.ax.x * b.ax.x + a.ay.x * b.ax.y; this.ay.x = a.ax.x * b.ay.x + a.ay.x * b.ay.y; this.trn.x = a.ax.x * b.trn.x + a.ay.x * b.trn.y + a.trn.x; this.ax.y = a.ax.y * b.ax.x + a.ay.y * b.ax.y; this.ay.y = a.ax.y * b.ay.x + a.ay.y * b.ay.y; this.trn.y = a.ax.y * b.trn.x + a.ay.y * b.trn.y + a.trn.y; }, multiply_1: function (a) { this.createTempMatrix_0(); this._tmp.set_1(this); this.multiply_2(this._tmp, a); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1621) && this.ax.equals_1(a.ax) && this.ay.equals_1(a.ay) && this.trn.equals_1(a.trn) ? !0 : !1; }, hashCode_0: function () { var a = this.ax.hashCode_0(), a = 31 * a + this.ay.hashCode_0(); return (a = 31 * a + this.trn.hashCode_0()); }, }, "GT1621", [GT1433] ); GT1621.prototype.AXIS_X = 0; GT1621.prototype.AXIS_Y = 1; GT1621.prototype.AXIS_Z = 2; var GT1329 = Class.extend( { initialConstructor_1: function (a) { this._tmp2 = this._tmp = this._matrix = null; this._matrix = a; this._matrix.setIdentity_0(); this._tmp = new GT1621(); this._tmp2 = new GT1621(); }, initialConstructor_0: function () { GT1329.prototype.initialConstructor_1.call(this, new GT1621()); }, init_0: function () { this._matrix.setIdentity_0(); return this; }, addRotation_1: function (a) { this._tmp.setRotation_1(a); this.apply_1(this._tmp); return this; }, addScale_2: function (a, b) { this._tmp.setScale_2(a, b); this._tmp.setTranslation_2(0, 0); this.apply_1(this._tmp); return this; }, addTranslation_2: function (a, b) { this._tmp.setScale_2(1, 1); this._tmp.setTranslation_2(a, b); this.apply_1(this._tmp); return this; }, apply_1: function (a) { this._tmp2.multiply_2(a, this._matrix); this._matrix.set_1(this._tmp2); }, get_0: function () { return this._matrix; }, }, "GT1329", [] ), GT1660 = Class.extend( { initialConstructor_0: function () { this.bottom = this.right = this.top = this.left = 0; }, initialConstructor_4: function (a, b, d, e) { this.bottom = this.right = this.top = this.left = 0; this.left = a; this.top = b; this.right = d; this.bottom = e; }, initialConstructor_1: function (a) { this.bottom = this.right = this.top = this.left = 0; null == a ? (this.left = this.top = this.right = this.bottom = 0) : ((this.left = a.left), (this.top = a.top), (this.right = a.right), (this.bottom = a.bottom)); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1660) ? this.left == a.left && this.top == a.top && this.right == a.right && this.bottom == a.bottom : !1; }, hashCode_0: function () { var a = this.left, a = 31 * a + this.top, a = 31 * a + this.right; return (a = 31 * a + this.bottom); }, isEmpty_0: function () { return this.left >= this.right || this.top >= this.bottom; }, getWidth_0: function () { return this.right - this.left; }, getHeight_0: function () { return this.bottom - this.top; }, centerX_0: function () { return (this.left + this.right) >> 1; }, centerY_0: function () { return (this.top + this.bottom) >> 1; }, exactCenterX_0: function () { return 0.5 * (this.left + this.right); }, exactCenterY_0: function () { return 0.5 * (this.top + this.bottom); }, setEmpty_0: function () { this.left = this.right = this.top = this.bottom = 0; }, set_4: function (a, b, d, e) { this.left = a; this.top = b; this.right = d; this.bottom = e; }, set_1: function (a) { this.left = a.left; this.top = a.top; this.right = a.right; this.bottom = a.bottom; }, offset_2: function (a, b) { this.left += a; this.top += b; this.right += a; this.bottom += b; }, offsetTo_2: function (a, b) { this.right += a - this.left; this.bottom += b - this.top; this.left = a; this.top = b; }, inset_2: function (a, b) { this.left += a; this.top += b; this.right -= a; this.bottom -= b; }, contains_2: function (a, b) { return this.left < this.right && this.top < this.bottom && a >= this.left && a < this.right && b >= this.top && b < this.bottom; }, contains_4: function (a, b, d, e) { return this.left < this.right && this.top < this.bottom && this.left <= a && this.top <= b && this.right >= d && this.bottom >= e; }, contains_1: function (a) { return this.left < this.right && this.top < this.bottom && this.left <= a.left && this.top <= a.top && this.right >= a.right && this.bottom >= a.bottom; }, intersect_4: function (a, b, d, e) { return this.left < d && a < this.right && this.top < e && b < this.bottom ? (this.left < a && (this.left = a), this.top < b && (this.top = b), this.right > d && (this.right = d), this.bottom > e && (this.bottom = e), !0) : !1; }, intersect_1: function (a) { return this.intersect_4(a.left, a.top, a.right, a.bottom); }, setIntersect_2: function (a, b) { return a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom ? ((this.left = Math.max_2(a.left, b.left)), (this.top = Math.max_2(a.top, b.top)), (this.right = Math.min_2(a.right, b.right)), (this.bottom = Math.min_2(a.bottom, b.bottom)), !0) : !1; }, intersects_4: function (a, b, d, e) { return this.left < d && a < this.right && this.top < e && b < this.bottom; }, scaleFromCenter_1: function (a) { if (1 != a) { var b = this.getWidth_0(), d = this.getHeight_0(), e = this.left + Math.div(b, 2), f = this.top + Math.div(d, 2), b = b * a; a *= d; this.left = Integer.truncate_1(e - Math.div(b, 2)); this.top = Integer.truncate_1(f - Math.div(a, 2)); this.right = Integer.truncate_1(e + Math.div(b, 2)); this.bottom = Integer.truncate_1(f + Math.div(a, 2)); } }, union_4: function (a, b, d, e) { a < d && b < e && (this.left < this.right && this.top < this.bottom ? (this.left > a && (this.left = a), this.top > b && (this.top = b), this.right < d && (this.right = d), this.bottom < e && (this.bottom = e)) : ((this.left = a), (this.top = b), (this.right = d), (this.bottom = e))); }, union_1: function (a) { this.union_4(a.left, a.top, a.right, a.bottom); }, union_2: function (a, b) { a < this.left ? (this.left = a) : a > this.right && (this.right = a); b < this.top ? (this.top = b) : b > this.bottom && (this.bottom = b); }, sort_0: function () { if (this.left > this.right) { var a = this.left; this.left = this.right; this.right = a; } this.top > this.bottom && ((a = this.top), (this.top = this.bottom), (this.bottom = a)); }, describeContents_0: function () { return 0; }, scale_1: function (a) { 1 != a && ((this.left = Integer.truncate_1(this.left * a + 0.5)), (this.top = Integer.truncate_1(this.top * a + 0.5)), (this.right = Integer.truncate_1(this.right * a + 0.5)), (this.bottom = Integer.truncate_1(this.bottom * a + 0.5))); }, scaleRoundIn_1: function (a) { 1 != a && ((this.left = Integer.truncate_1(Math.ceil_1(this.left * a))), (this.top = Integer.truncate_1(Math.ceil_1(this.top * a))), (this.right = Integer.truncate_1(Math.floor_1(this.right * a))), (this.bottom = Integer.truncate_1(Math.floor_1(this.bottom * a)))); }, }, "GT1660", [] ); GT1660.prototype.intersects_2 = function (a, b) { return a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom; }; var GT1652 = Class.extend( { initialConstructor_0: function () { this.bottom = this.right = this.top = this.left = 0; }, initialConstructor_4: function (a, b, d, e) { this.bottom = this.right = this.top = this.left = 0; this.left = a; this.top = b; this.right = d; this.bottom = e; }, initialConstructor_1: function (a) { this.bottom = this.right = this.top = this.left = 0; null == a ? (this.left = this.top = this.right = this.bottom = 0) : ((this.left = a.left), (this.top = a.top), (this.right = a.right), (this.bottom = a.bottom)); }, initialConstructor_1: function (a) { this.bottom = this.right = this.top = this.left = 0; null == a ? (this.left = this.top = this.right = this.bottom = 0) : ((this.left = a.left), (this.top = a.top), (this.right = a.right), (this.bottom = a.bottom)); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1652) ? this.left == a.left && this.top == a.top && this.right == a.right && this.bottom == a.bottom : !1; }, toString: function () { return "RectD(" + this.left + ", " + this.top + ", " + this.right + ", " + this.bottom + ")"; }, isEmpty_0: function () { return this.left >= this.right || this.top >= this.bottom; }, getWidth_0: function () { return this.right - this.left; }, getHeight_0: function () { return this.bottom - this.top; }, centerX_0: function () { return 0.5 * (this.left + this.right); }, centerY_0: function () { return 0.5 * (this.top + this.bottom); }, setEmpty_0: function () { this.left = this.right = this.top = this.bottom = 0; }, set_4: function (a, b, d, e) { this.left = a; this.top = b; this.right = d; this.bottom = e; }, set_1: function (a) { this.left = a.left; this.top = a.top; this.right = a.right; this.bottom = a.bottom; }, set_1: function (a) { this.left = a.left; this.top = a.top; this.right = a.right; this.bottom = a.bottom; }, offset_2: function (a, b) { this.left += a; this.top += b; this.right += a; this.bottom += b; }, offsetTo_2: function (a, b) { this.right += a - this.left; this.bottom += b - this.top; this.left = a; this.top = b; }, inset_2: function (a, b) { this.left += a; this.top += b; this.right -= a; this.bottom -= b; }, contains_2: function (a, b) { return this.left < this.right && this.top < this.bottom && a >= this.left && a < this.right && b >= this.top && b < this.bottom; }, contains_4: function (a, b, d, e) { return this.left < this.right && this.top < this.bottom && this.left <= a && this.top <= b && this.right >= d && this.bottom >= e; }, contains_1: function (a) { return this.left < this.right && this.top < this.bottom && this.left <= a.left && this.top <= a.top && this.right >= a.right && this.bottom >= a.bottom; }, intersect_4: function (a, b, d, e) { return this.left < d && a < this.right && this.top < e && b < this.bottom ? (this.left < a && (this.left = a), this.top < b && (this.top = b), this.right > d && (this.right = d), this.bottom > e && (this.bottom = e), !0) : !1; }, intersect_1: function (a) { return this.intersect_4(a.left, a.top, a.right, a.bottom); }, setIntersect_2: function (a, b) { return a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom ? ((this.left = Math.max_2(a.left, b.left)), (this.top = Math.max_2(a.top, b.top)), (this.right = Math.min_2(a.right, b.right)), (this.bottom = Math.min_2(a.bottom, b.bottom)), !0) : !1; }, intersects_4: function (a, b, d, e) { return this.left < d && a < this.right && this.top < e && b < this.bottom; }, round_1: function (a) { a.set_4(Integer.truncate_1(Math.round_1(this.left)), Integer.truncate_1(Math.round_1(this.top)), Integer.truncate_1(Math.round_1(this.right)), Integer.truncate_1(Math.round_1(this.bottom))); }, roundOut_1: function (a) { a.set_4(Integer.truncate_1(Math.floor_1(this.left)), Integer.truncate_1(Math.floor_1(this.top)), Integer.truncate_1(Math.ceil_1(this.right)), Integer.truncate_1(Math.ceil_1(this.bottom))); }, scaleFromCenter_1: function (a) { if (1 != a) { var b = this.getWidth_0(), d = this.getHeight_0(), e = this.left + Math.div(b, 2), f = this.top + Math.div(d, 2), b = b * a; a *= d; this.left = e - Math.div(b, 2); this.top = f - Math.div(a, 2); this.right = e + Math.div(b, 2); this.bottom = f + Math.div(a, 2); } }, union_4: function (a, b, d, e) { a < d && b < e && (this.left < this.right && this.top < this.bottom ? (this.left > a && (this.left = a), this.top > b && (this.top = b), this.right < d && (this.right = d), this.bottom < e && (this.bottom = e)) : ((this.left = a), (this.top = b), (this.right = d), (this.bottom = e))); }, union_1: function (a) { this.union_4(a.left, a.top, a.right, a.bottom); }, union_2: function (a, b) { a < this.left ? (this.left = a) : a > this.right && (this.right = a); b < this.top ? (this.top = b) : b > this.bottom && (this.bottom = b); }, sort_0: function () { if (this.left > this.right) { var a = this.left; this.left = this.right; this.right = a; } this.top > this.bottom && ((a = this.top), (this.top = this.bottom), (this.bottom = a)); }, describeContents_0: function () { return 0; }, }, "GT1652", [] ); GT1652.prototype.intersects_2 = function (a, b) { return a.left < b.right && b.left < a.right && a.top < b.bottom && b.top < a.bottom; }; var GT1661 = Class.extend( { initialConstructor_2: function (a, b) { this.height = this.width = 0; this.width = a; this.height = b; }, initialConstructor_0: function () { this.width = this.height = this.height = this.width = 0; }, toString: function () { return "Size{width=" + this.width + ", height=" + this.height + 125; }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1661) && this.width == a.width ? this.height == a.height : !1; }, hashCode_0: function () { var a = this.width; return (a = 31 * a + this.height); }, }, "GT1661", [] ), GT1622 = Class.extend( { initialConstructor_0: function () { this.acceleration = this.velocity = this.dampingK = this.springK = this.position = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.acceleration = this.velocity = this.dampingK = this.springK = this.position = 0; Class.prototype.initialConstructor_0.call(this); this.position = 0; this.springK = a; this.dampingK = b; this.velocity = 0; }, initialConstructor_1: function (a) { GT1622.prototype.initialConstructor_2.call(this, a, 2 * Math.sqrt_1(a)); }, update_2: function (a, b) { var d = this.position - a, d = d * -this.springK - this.velocity * this.dampingK; this.velocity += d * b; if (this.velocity < Double.MIN_VALUE || this.velocity > Double.MAX_VALUE) this.velocity = 0; this.position += this.velocity * b; java_lang_System.prototype.out.println_1("time: " + b); java_lang_System.prototype.out.println_1("pos: " + this.position); java_lang_System.prototype.out.println_1("vel: " + this.velocity); }, getDampingK_0: function () { return this.dampingK; }, setDampingK_1: function (a) { this.dampingK = a; }, getPosition_0: function () { return this.position; }, setPosition_1: function (a) { this.position = a; }, getSpringK_0: function () { return this.springK; }, setSpringK_1: function (a) { this.springK = a; }, getVelocity_0: function () { return this.velocity; }, setVelocity_1: function (a) { this.velocity = a; }, }, "GT1622", [] ), GT866 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT866", [] ); GT866.prototype.X = 1; GT866.prototype.Y = 2; GT866.prototype.WIDTH = 3; GT866.prototype.HEIGHT = 4; GT866.prototype.XYWH = 5; GT866.prototype.XY = 6; GT866.prototype.ALPHA = 7; GT866.prototype.ROTATION = 8; GT866.prototype.SCALE_X = 9; GT866.prototype.SCALE_Y = 10; GT866.prototype.SCALE = 11; GT866.prototype.CUSTOM1 = 12; GT866.prototype.CUSTOM2 = 13; GT866.prototype.CUSTOM3 = 14; GT866.prototype.CUSTOM4 = 15; var GT925 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, getValues_3: function (a, b, d) { return a.canHandleType_1(b) && b == GT866.prototype.ALPHA ? ((d[0] = a.getAlpha_0()), 1) : -1; }, setValues_3: function (a, b, d) { return a.canHandleType_1(b) && b == GT866.prototype.ALPHA ? (a.setAlpha_1(d[0]), !0) : !1; }, canHandle_1: function (a) { return null != a && GT867.prototype.ALPHA.equals_1(a); }, }, "GT925", [GT1425] ); GT925.prototype.canHandleType_1 = function (a) { return GT866.prototype.ALPHA == a; }; var GT552 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, getValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return -1; switch (b) { case GT866.prototype.CUSTOM1: return (d[0] = a.getCustomValue1_0()), 1; case GT866.prototype.CUSTOM2: return (d[0] = a.getCustomValue2_0()), 1; case GT866.prototype.CUSTOM3: return (d[0] = a.getCustomValue3_0()), 1; case GT866.prototype.CUSTOM4: return (d[0] = a.getCustomValue4_0()), 1; default: return -1; } }, setValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return !1; switch (b) { case GT866.prototype.CUSTOM1: return a.setCustomValue1_1(d[0]), !0; case GT866.prototype.CUSTOM2: return a.setCustomValue2_1(d[0]), !0; case GT866.prototype.CUSTOM3: return a.setCustomValue3_1(d[0]), !0; case GT866.prototype.CUSTOM4: return a.setCustomValue4_1(d[0]), !0; } return !1; }, canHandle_1: function (a) { return null != a && GT867.prototype.CUSTOM_FIELDS.equals_1(a); }, }, "GT552", [GT1425] ); GT552.prototype.canHandleType_1 = function (a) { return GT866.prototype.CUSTOM1 == a || GT866.prototype.CUSTOM2 == a || GT866.prototype.CUSTOM3 == a || GT866.prototype.CUSTOM4 == a; }; var GT967 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, getValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return -1; switch (b) { case GT866.prototype.X: return (d[0] = a.getX_0()), 1; case GT866.prototype.Y: return (d[0] = a.getY_0()), 1; case GT866.prototype.WIDTH: return (d[0] = a.getWidth_0()), 1; case GT866.prototype.HEIGHT: return (d[0] = a.getHeight_0()), 1; case GT866.prototype.XYWH: return (d[0] = a.getX_0()), (d[1] = a.getY_0()), (d[2] = a.getWidth_0()), (d[3] = a.getHeight_0()), 4; case GT866.prototype.XY: return (d[0] = a.getX_0()), (d[1] = a.getY_0()), 2; default: return -1; } }, setValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return !1; switch (b) { case GT866.prototype.X: return a.setX_1(d[0]), !0; case GT866.prototype.Y: return a.setY_1(d[0]), !0; case GT866.prototype.WIDTH: return a.setWidth_1(d[0]), !0; case GT866.prototype.HEIGHT: return a.setHeight_1(d[0]), !0; case GT866.prototype.XYWH: return a.setX_1(d[0]), a.setY_1(d[1]), a.setWidth_1(d[2]), a.setHeight_1(d[3]), !0; case GT866.prototype.XY: return a.setX_1(d[0]), a.setY_1(d[1]), !0; default: return !1; } }, canHandle_1: function (a) { return null != a && GT867.prototype.RECT.equals_1(a); }, }, "GT967", [GT1425] ); GT967.prototype.canHandleType_1 = function (a) { return GT866.prototype.X == a || GT866.prototype.Y == a || GT866.prototype.WIDTH == a || GT866.prototype.HEIGHT == a || GT866.prototype.XYWH == a || GT866.prototype.XY == a; }; var GT705 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, getValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return -1; switch (b) { case GT866.prototype.ROTATION: return (d[0] = a.getRotation_0()), 1; case GT866.prototype.SCALE: return (d[0] = a.getScaleX_0()), (d[1] = a.getScaleY_0()), 2; case GT866.prototype.SCALE_X: return (d[0] = a.getScaleX_0()), 1; case GT866.prototype.SCALE_Y: return (d[0] = a.getScaleY_0()), 1; default: return -1; } }, setValues_3: function (a, b, d) { if (!a.canHandleType_1(b)) return !1; switch (b) { case GT866.prototype.ROTATION: return a.setRotation_1(d[0]), !0; case GT866.prototype.SCALE: return a.setScaleX_1(d[0]), a.setScaleY_1(d[1]), !0; case GT866.prototype.SCALE_X: return a.setScaleX_1(d[0]), !0; case GT866.prototype.SCALE_Y: return a.setScaleY_1(d[0]), !0; } return !1; }, canHandle_1: function (a) { return null != a && GT867.prototype.TRANSFORM.equals_1(a); }, }, "GT705", [GT1425] ); GT705.prototype.canHandleType_1 = function (a) { return GT866.prototype.ROTATION == a || GT866.prototype.SCALE == a || GT866.prototype.SCALE_Y == a || GT866.prototype.SCALE_X == a; }; var GT867 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT867", [] ); GT867.prototype.RECT = "_tween_rect_"; GT867.prototype.TRANSFORM = "_tween_transform_"; GT867.prototype.ALPHA = "_tween_alpha_"; GT867.prototype.CUSTOM_FIELDS = "_tween_custom_fields_"; var GT1381 = Class.extend( { initialConstructor_0: function () { this.rotation = this.alpha = this.height = this.width = this.y = this.x = this.scaleY = this.scaleX = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.rotation = this.alpha = this.height = this.width = this.y = this.x = this.scaleY = this.scaleX = 0; this.set_4(a, b, d, e); this.alpha = this.scaleY = this.scaleX = 1; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, getWidth_0: function () { return this.width; }, setWidth_1: function (a) { this.width = a; }, getHeight_0: function () { return this.height; }, setHeight_1: function (a) { this.height = a; }, getAlpha_0: function () { return this.alpha; }, setAlpha_1: function (a) { this.alpha = a; }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { this.rotation = a; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleY_1: function (a) { this.scaleY = a; }, getScaleY_0: function () { return this.scaleY; }, set_4: function (a, b, d, e) { this.x = a; this.y = b; this.width = d; this.height = e; }, getTweenAccessorKeys_0: function () { return [GT867.prototype.RECT, GT867.prototype.TRANSFORM, GT867.prototype.ALPHA]; }, canHandleType_1: function (a) { return GT925.prototype.canHandleType_1(a) || GT705.prototype.canHandleType_1(a) || GT967.prototype.canHandleType_1(a); }, }, "GT1381", [GT860, GT804, GT596, GT1582] ), GT1280 = GT1381.extend( { initialConstructor_0: function () { this._custom4 = this._custom3 = this._custom2 = this._custom1 = 0; GT1381.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this._custom4 = this._custom3 = this._custom2 = this._custom1 = 0; GT1381.prototype.initialConstructor_4.call(this, a, b, d, e); }, getCustomValue1_0: function () { return this._custom1; }, setCustomValue1_1: function (a) { this._custom1 = a; }, getCustomValue2_0: function () { return this._custom2; }, setCustomValue2_1: function (a) { this._custom2 = a; }, getCustomValue3_0: function () { return this._custom3; }, setCustomValue3_1: function (a) { this._custom3 = a; }, getCustomValue4_0: function () { return this._custom4; }, setCustomValue4_1: function (a) { this._custom4 = a; }, getTweenAccessorKeys_0: function () { return [GT867.prototype.RECT, GT867.prototype.TRANSFORM, GT867.prototype.ALPHA, GT867.prototype.CUSTOM_FIELDS]; }, canHandleType_1: function (a) { return GT1381.prototype.canHandleType_1.call(this, a) || GT552.prototype.canHandleType_1(a); }, }, "GT1280", [GT452] ), GT1589 = Class.extend( { initialConstructor_0: function () { this.repeatCnt = this.step = 0; this.mIsYoyo = this.isIterationStep = !1; this.deltaTime = this.currentTime = this.repeatDelay = this.duration = this.mDelay = 0; this.mIsPaused = this.mIsKilled = this.mIsFinished = this.mIsInitialized = this.mIsStarted = !1; this.callback = null; this.callbackTriggers = 0; this.userData = null; this.isAutoStartEnabled = this.isAutoRemoveEnabled = !1; Class.prototype.initialConstructor_0.call(this); }, reset_0: function () { this.step = -2; this.repeatCnt = 0; this.isIterationStep = this.mIsYoyo = !1; this.mDelay = this.duration = this.repeatDelay = this.currentTime = this.deltaTime = 0; this.mIsStarted = this.mIsInitialized = this.mIsFinished = this.mIsKilled = this.mIsPaused = !1; this.callback = null; this.callbackTriggers = GT1181.prototype.COMPLETE; this.userData = null; this.isAutoRemoveEnabled = this.isAutoStartEnabled = !0; }, build_0: function () { return this; }, start_0: function () { this.build_0(); this.currentTime = 0; this.mIsStarted = !0; return this; }, start_1: function (a) { a.add_1(this); return this; }, delay_1: function (a) { this.mDelay += a; return this; }, kill_0: function () { this.mIsKilled = !0; }, free_0: function () {}, pause_0: function () { this.mIsPaused = !0; }, resume_0: function () { this.mIsPaused = !1; }, repeat_2: function (a, b) { this.mIsStarted && GT1650.prototype.assertFailed_1("You can't change the repetitions of a tween or timeline once it is started"); this.repeatCnt = a; this.repeatDelay = 0 <= b ? b : 0; this.mIsYoyo = !1; return this; }, repeatYoyo_2: function (a, b) { this.mIsStarted && GT1650.prototype.assertFailed_1("You can't change the repetitions of a tween or timeline once it is started"); this.repeatCnt = a; this.repeatDelay = 0 <= b ? b : 0; this.mIsYoyo = !0; return this; }, setCallback_1: function (a) { this.callback = a; return this; }, setCallbackTriggers_1: function (a) { this.callbackTriggers = a; return this; }, setUserData_1: function (a) { this.userData = a; return this; }, getDelay_0: function () { return this.mDelay; }, getDuration_0: function () { return this.duration; }, getRepeatCount_0: function () { return this.repeatCnt; }, getRepeatDelay_0: function () { return this.repeatDelay; }, getFullDuration_0: function () { return 0 > this.repeatCnt ? -1 : this.mDelay + this.duration + (this.repeatDelay + this.duration) * this.repeatCnt; }, getUserData_0: function () { return this.userData; }, getStep_0: function () { return this.step; }, getCurrentTime_0: function () { return this.currentTime; }, isStarted_0: function () { return this.mIsStarted; }, isInitialized_0: function () { return this.mIsInitialized; }, isFinished_0: function () { return this.mIsFinished || this.mIsKilled; }, isYoyo_0: function () { return this.mIsYoyo; }, isPaused_0: function () { return this.mIsPaused; }, initializeOverride_0: function () {}, updateOverride_4: function (a, b, d, e) {}, forceToStart_0: function () { this.currentTime = -this.mDelay; this.step = -1; this.isIterationStep = !1; this.isReverse_1(0) ? this.forceEndValues_0() : this.forceStartValues_0(); }, forceToEnd_1: function (a) { this.currentTime = a - this.getFullDuration_0(); this.step = 2 * this.repeatCnt + 1; this.isIterationStep = !1; this.isReverse_1(2 * this.repeatCnt) ? this.forceStartValues_0() : this.forceEndValues_0(); }, callCallback_1: function (a) { if (null != this.callback && 0 < (this.callbackTriggers & a)) this.callback.onEvent_2(a, this); }, isReverse_1: function (a) { return this.mIsYoyo && 2 == Math.abs_1(a % 4); }, isValid_1: function (a) { return (0 <= a && a <= 2 * this.repeatCnt) || 0 > this.repeatCnt; }, killTarget_1: function (a) { this.containsTarget_1(a) && this.kill_0(); }, killTarget_2: function (a, b) { this.containsTarget_2(a, b) && this.kill_0(); }, update_1: function (a) { !this.mIsStarted || this.mIsPaused || this.mIsKilled || ((this.deltaTime = a), this.mIsInitialized || this.initialize_0(), this.mIsInitialized && (this.testRelaunch_0(), this.updateStep_0(), this.testCompletion_0()), (this.currentTime += this.deltaTime), (this.deltaTime = 0)); }, initialize_0: function () { this.currentTime + this.deltaTime >= this.mDelay && (this.initializeOverride_0(), (this.isIterationStep = this.mIsInitialized = !0), (this.step = 0), (this.deltaTime -= this.mDelay - this.currentTime), (this.currentTime = 0), this.callCallback_1(GT1181.prototype.BEGIN), this.callCallback_1(GT1181.prototype.START)); }, testRelaunch_0: function () { if (!this.isIterationStep && 0 <= this.repeatCnt && 0 > this.step && 0 <= this.currentTime + this.deltaTime) { -1 != this.step && GT1650.prototype.assertFailed_1("step must be -1 or >= 0"); this.isIterationStep = !0; this.step = 0; var a = 0 - this.currentTime; this.deltaTime -= a; this.currentTime = 0; this.callCallback_1(GT1181.prototype.BEGIN); this.callCallback_1(GT1181.prototype.START); this.updateOverride_4(this.step, this.step - 1, this.isIterationStep, a); } else !this.isIterationStep && 0 <= this.repeatCnt && this.step > 2 * this.repeatCnt && 0 > this.currentTime + this.deltaTime && (this.step != 2 * this.repeatCnt + 1 && GT1650.prototype.assertFailed_1("step must be repeatCnt*2 + 1"), (this.isIterationStep = !0), (this.step = 2 * this.repeatCnt), (a = 0 - this.currentTime), (this.deltaTime -= a), (this.currentTime = this.duration), this.callCallback_1(GT1181.prototype.BACK_BEGIN), this.callCallback_1(GT1181.prototype.BACK_START), this.updateOverride_4(this.step, this.step + 1, this.isIterationStep, a)); }, updateStep_0: function () { for (; this.isValid_1(this.step); ) if (!this.isIterationStep && 0 >= this.currentTime + this.deltaTime) { this.isIterationStep = !0; --this.step; var a = 0 - this.currentTime; this.deltaTime -= a; this.currentTime = this.duration; this.isReverse_1(this.step) ? this.forceStartValues_0() : this.forceEndValues_0(); this.callCallback_1(GT1181.prototype.BACK_START); this.updateOverride_4(this.step, this.step + 1, this.isIterationStep, a); } else if (!this.isIterationStep && this.currentTime + this.deltaTime >= this.repeatDelay) (this.isIterationStep = !0), (this.step += 1), (a = this.repeatDelay - this.currentTime), (this.deltaTime -= a), (this.currentTime = 0), this.isReverse_1(this.step) ? this.forceEndValues_0() : this.forceStartValues_0(), this.callCallback_1(GT1181.prototype.START), this.updateOverride_4(this.step, this.step - 1, this.isIterationStep, a); else if (this.isIterationStep && 0 > this.currentTime + this.deltaTime) (this.isIterationStep = !1), --this.step, (a = 0 - this.currentTime), (this.deltaTime -= a), (this.currentTime = 0), this.updateOverride_4(this.step, this.step + 1, this.isIterationStep, a), this.callCallback_1(GT1181.prototype.BACK_END), 0 > this.step && 0 <= this.repeatCnt ? this.callCallback_1(GT1181.prototype.BACK_COMPLETE) : (this.currentTime = this.repeatDelay); else if (this.isIterationStep && this.currentTime + this.deltaTime > this.duration) (this.isIterationStep = !1), (this.step += 1), (a = this.duration - this.currentTime), (this.deltaTime -= a), (this.currentTime = this.duration), this.updateOverride_4(this.step, this.step - 1, this.isIterationStep, a), this.callCallback_1(GT1181.prototype.END), this.step > 2 * this.repeatCnt && 0 <= this.repeatCnt && this.callCallback_1(GT1181.prototype.COMPLETE), (this.currentTime = 0); else { this.isIterationStep ? ((a = this.deltaTime), (this.deltaTime -= a), (this.currentTime += a), this.updateOverride_4(this.step, this.step, this.isIterationStep, a)) : ((a = this.deltaTime), (this.deltaTime -= a), (this.currentTime += a)); break; } }, testCompletion_0: function () { this.mIsFinished = 0 <= this.repeatCnt && (this.step > 2 * this.repeatCnt || 0 > this.step); }, }, "GT1589", [] ), GT1281 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compute_3: function (a, b, d) { var e = Integer.truncate_1(Math.floor_1((d - 1) * a)), e = Math.max_2(e, 0), e = Math.min_2(e, d - 2); a = a * (d - 1) - e; return 0 == e ? this.catmullRomSpline_5(b[0], b[0], b[1], b[2], a) : e == d - 2 ? this.catmullRomSpline_5(b[d - 3], b[d - 2], b[d - 1], b[d - 1], a) : this.catmullRomSpline_5(b[e - 1], b[e], b[e + 1], b[e + 2], a); }, catmullRomSpline_5: function (a, b, d, e, f) { return b * (2 * f * f * f - 3 * f * f + 1) + d * (-2 * f * f * f + 3 * f * f) + 0.5 * (d - a) * (f * f * f - 2 * f * f + f) + 0.5 * (e - b) * (f * f * f - f * f); }, }, "GT1281", [GT1583] ), GT1485 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compute_3: function (a, b, d) { var e = Integer.truncate_1(Math.floor_1((d - 1) * a)), e = Math.max_2(e, 0), e = Math.min_2(e, d - 2); return b[e] + (a * (d - 1) - e) * (b[e + 1] - b[e]); }, }, "GT1485", [GT1583] ), GT1653 = Class.extend( { initialConstructor_0: function () { this.callback = this.objects = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.callback = this.objects = null; this.objects = new java_util_JavaScriptVector(); this.callback = b; }, get_0: function () { var a = this.objects.isEmpty_0() ? this.create_0() : this.objects.get_1(this.objects.size_0() - 1); this.objects.isEmpty_0() || this.objects.removeElementAt_1(this.objects.size_0() - 1); if (null != this.callback) this.callback.onUnPool_1(a); return a; }, free_1: function (a) { if (!this.objects.contains_1(a)) { if (null != this.callback) this.callback.onPool_1(a); this.objects.add_1(a); } }, clear_0: function () { this.objects.clear_0(); }, size_0: function () { return this.objects.size_0(); }, ensureCapacity_1: function (a) {}, }, "GT1653", [] ), GT868 = Class.extend( { initialConstructor_0: function () { this.value = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.value = 0; this.value = a; }, setValue_1: function (a) { this.value = a; }, intValue_0: function () { return Integer.truncate_1(this.value); }, doubleValue_0: function () { return this.value; }, getValues_3: function (a, b, d) { d[0] = a.value; return 1; }, setValues_3: function (a, b, d) { a.value = d[0]; return !0; }, canHandle_1: function (a) { return !1; }, }, "GT868", [GT1425] ), GT813 = Class.extend( { initialConstructor_0: function () { this.value = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.value = 0; this.value = a; }, setValue_1: function (a) { this.value = a; }, intValue_0: function () { return Integer.truncate_1(this.value); }, doubleValue_0: function () { return this.value; }, getValues_3: function (a, b, d) { d[0] = a.value; return 1; }, setValues_3: function (a, b, d) { a.value = Integer.truncate_1(d[0]); return !0; }, canHandle_1: function (a) { return !1; }, }, "GT813", [GT1425] ), GT1486 = GT1653.extend( { initialConstructor_0: function () { GT1653.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1653.prototype.initialConstructor_2.call(this, a, b); }, create_0: function () { return new GT1605(); }, }, "GT1486", [] ), GT1072 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, onPool_1: function (a) { a.reset_0(); }, onUnPool_1: function (a) { a.reset_0(); }, }, "GT1072", [GT1603] ), GT1181 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1181", [] ); GT1181.prototype.BEGIN = 1; GT1181.prototype.START = 2; GT1181.prototype.END = 4; GT1181.prototype.COMPLETE = 8; GT1181.prototype.BACK_BEGIN = 16; GT1181.prototype.BACK_START = 32; GT1181.prototype.BACK_END = 64; GT1181.prototype.BACK_COMPLETE = 128; GT1181.prototype.ANY_FORWARD = 15; GT1181.prototype.ANY_BACKWARD = 240; GT1181.prototype.ANY = 255; var GT1436 = Class.extend( { initialConstructor_0: function () {}, isValueOf_1: function (a) { return a.equals_1(this.toString()); }, }, "GT1436", [] ), GT1487 = Class.extend( { initialConstructor_0: function () { this.objects = null; this.mIsPaused = !1; this.objects = new java_util_JavaScriptVector(); this.mIsPaused = !1; }, add_1: function (a) { this.objects.contains_1(a) || this.objects.add_1(a); a.isAutoStartEnabled && a.start_0(); return this; }, containsTarget_1: function (a) { for (var b = 0; b < this.objects.size_0(); b++) if (this.objects.get_1(b).containsTarget_1(a)) return !0; return !1; }, containsTarget_2: function (a, b) { for (var d = 0; d < this.objects.size_0(); d++) if (this.objects.get_1(d).containsTarget_2(a, b)) return !0; return !1; }, containsTween_1: function (a) { return this.objects.contains_1(a); }, killAll_0: function () { for (var a = 0; a < this.objects.size_0(); a++) this.objects.get_1(a).kill_0(); }, killTarget_1: function (a) { for (var b = 0; b < this.objects.size_0(); b++) this.objects.get_1(b).killTarget_1(a); }, killTarget_2: function (a, b) { for (var d = 0; d < this.objects.size_0(); d++) this.objects.get_1(d).killTarget_2(a, b); }, ensureCapacity_1: function (a) {}, pause_0: function () { this.mIsPaused = !0; }, isPaused_0: function () { return this.mIsPaused; }, resume_0: function () { this.mIsPaused = !1; }, update_1: function (a) { for (var b = this.objects.size_0() - 1; 0 <= b; b--) { var d = this.objects.get_1(b); d.isFinished_0() && d.isAutoRemoveEnabled && (this.objects.removeElementAt_1(b), d.free_0()); } if (!this.mIsPaused) if (0 <= a) for (b = 0; b < this.objects.size_0(); b++) this.objects.get_1(b).update_1(a); else for (b = this.objects.size_0() - 1; 0 <= b; b--) this.objects.get_1(b).update_1(a); }, size_0: function () { return this.objects.size_0(); }, getRunningTweensCount_0: function () { return this.getTweensCount_1(this.objects); }, getRunningTimelinesCount_0: function () { return this.getTimelinesCount_1(this.objects); }, getObjects_0: function () { return this.objects; }, }, "GT1487", [] ); GT1487.prototype.getTimelinesCount_1 = function (a) { for (var b = 0, d = 0; d < a.size_0(); d++) { var e = a.get_1(d); instanceOf(e, GT1605) && (b += 1 + this.getTimelinesCount_1(e.getChildren_0())); } return b; }; GT1487.prototype.getTweensCount_1 = function (a) { for (var b = 0, d = 0; d < a.size_0(); d++) var e = a.get_1(d), b = instanceOf(e, GT1647) ? b + 1 : b + this.getTweensCount_1(e.getChildren_0()); return b; }; GT1487.prototype.setAutoStart_2 = function (a, b) { a.isAutoStartEnabled = b; }; GT1487.prototype.setAutoRemove_2 = function (a, b) { a.isAutoRemoveEnabled = b; }; var GT1557 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1557", [] ); GT1557.prototype.linear = new GT1485(); GT1557.prototype.catmullRom = new GT1281(); var GT1590 = GT1653.extend( { initialConstructor_0: function () { GT1653.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1653.prototype.initialConstructor_2.call(this, a, b); }, create_0: function () { return new GT1647(); }, }, "GT1590", [] ), GT1234 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, onPool_1: function (a) { a.reset_0(); }, onUnPool_1: function (a) { a.reset_0(); }, }, "GT1234", [GT1603] ), GT1558 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1558", [] ); GT1558.prototype.parseEasing_1 = function (a) { null == GT1558.prototype.easings && (GT1558.prototype.easings = [ GT1282.prototype.INOUT, GT1382.prototype.IN, GT1382.prototype.OUT, GT1382.prototype.INOUT, GT1330.prototype.IN, GT1330.prototype.OUT, GT1330.prototype.INOUT, GT1331.prototype.IN, GT1331.prototype.OUT, GT1331.prototype.INOUT, GT1332.prototype.IN, GT1332.prototype.OUT, GT1332.prototype.INOUT, GT1383.prototype.IN, GT1383.prototype.OUT, GT1383.prototype.INOUT, GT1384.prototype.IN, GT1384.prototype.OUT, GT1384.prototype.INOUT, GT1385.prototype.IN, GT1385.prototype.OUT, GT1385.prototype.INOUT, GT1386.prototype.IN, GT1386.prototype.OUT, GT1386.prototype.INOUT, GT1283.prototype.IN, GT1283.prototype.OUT, GT1283.prototype.INOUT, GT1235.prototype.IN, GT1235.prototype.OUT, GT1235.prototype.INOUT, ]); for (var b = 0; b < GT1558.prototype.easings.length; b++) if (a.equals_1(GT1558.prototype.easings[b].toString())) return GT1558.prototype.easings[b]; return null; }; GT1558.prototype.easings = null; var GT553 = Class.extend( { initialConstructor_0: function () { this.measurement = this.casinoapplet = null; this.flushinterval = 0; this.collectedevents = null; this.didPayinFullStake = this.didPlay = this.didWatch = !1; this.gameVariationName = this.playerID = this.usedMachineNumbers = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.measurement = this.casinoapplet = null; this.flushinterval = 0; this.collectedevents = null; this.didPayinFullStake = this.didPlay = this.didWatch = !1; this.gameVariationName = this.playerID = this.usedMachineNumbers = null; this.casinoapplet = a; this.measurement = new GT1333(a, a.getParameter_1("omnitureserver"), a.getParameter_1("omnitureaccount")); this.flushinterval = a.getIntParameter_2("omnitureinterval", GT553.prototype.DEFAULTFLUSHINTERVAL); this.collectedevents = new java_util_JavaScriptVector(); this.didPayinFullStake = this.didPlay = this.didWatch = !1; this.usedMachineNumbers = new java_util_JavaScriptVector(); this.playerID = a.getPlayerID_0(); this.gameVariationName = null; this.casinoapplet.getEventDispatcher_0().registerHandler_2(GT1387.prototype.BUTTON_CLICKED, this); this.addOmnitureEvent_1(1); this.addOmnitureEvent_1(2); }, close_0: function () { null != this.gameVariationName && this.flush_0(); this.casinoapplet.getEventDispatcher_0().unregisterHandler_1(this); this.measurement = this.casinoapplet = null; }, addOmnitureEvent_1: function (a) { this.collectedevents.size_0() <= a && this.collectedevents.setSize_1(a + 1); var b = this.collectedevents.elementAt_1(a); null == b && (b = new Integer(0)); this.collectedevents.setElementAt_2(new Integer(b.intValue_0() + 1), a); }, flush_0: function () { var a = new java_util_JavaScriptVector(); a.setSize_1(60); a.setElementAt_2("" + this.flushinterval, 50); a.setElementAt_2(this.didWatch ? (this.didPlay ? "PlayerAndWatcher" : "Watcher") : this.didPlay ? "Player" : "none", 51); a.setElementAt_2(this.didPayinFullStake ? "FullStake" : "NotFullStake", 52); for (var b = new StringBuffer(), d = 0; d < this.usedMachineNumbers.size_0(); d++) { 0 < b.length_0() && b.append_1(","); var e = "" + this.usedMachineNumbers.elementAt_1(d); b.append_1(e); } a.setElementAt_2(b.toString(), 53); a.setElementAt_2(this.playerID, 54); null != this.gameVariationName && a.setElementAt_2(this.gameVariationName, 55); b = 76 < this.collectedevents.size_0() && null != this.collectedevents.elementAt_1(76) && 0 < this.collectedevents.elementAt_1(76).intValue_0(); d = 81 < this.collectedevents.size_0() && null != this.collectedevents.elementAt_1(81) && 0 < this.collectedevents.elementAt_1(81).intValue_0(); a.setElementAt_2((b ? "Lines" : "") + (b && d ? "," : "") + (d ? "Bets" : ""), 56); a.setElementAt_2(0 == this.casinoapplet.getSessionCurrencySymbol_0().length_0() ? "VirtualGoods" : this.casinoapplet.getSessionCurrencySymbol_0(), 57); this.measurement.track_3(this.collectedevents, a, a); this.collectedevents.setSize_1(0); this.didPayinFullStake = this.didPlay = this.didWatch = !1; this.usedMachineNumbers.setSize_1(0); }, handleButtonEvent_1: function (a) { a = a.getSender_0(); if (instanceOf(a, GT1559)) { var b = a.getApplicationID_0(); b == GT307.prototype.ACTION_BUYTICKETS ? this.addOmnitureEvent_1(50) : b == GT307.prototype.ACTION_PAYIN ? this.addOmnitureEvent_1(51) : b == GT307.prototype.ACTION_PAYINACCOUNT2 ? this.addOmnitureEvent_1(52) : b == GT307.prototype.ACTION_PAYINACCOUNT ? this.addOmnitureEvent_1(53) : b == GT307.prototype.ACTION_ACCOUNT ? this.addOmnitureEvent_1(54) : b == GT554.prototype.ACTION_BTNACCOUNT ? this.addOmnitureEvent_1(55) : b == GT307.prototype.ACTION_HELP ? this.addOmnitureEvent_1(56) : b == GT554.prototype.ACTION_BTNHELP ? this.addOmnitureEvent_1(57) : b == GT554.prototype.ACTION_ENTERTABLE ? (this.addOmnitureEvent_1(58), (a = GT1672.prototype.stringToInt_1(a.getApplicationData_0().toString())), this.memorizeMachineNumber_1(a + 1)) : b == GT554.prototype.ACTION_PLAYNOW ? this.addOmnitureEvent_1(59) : b == GT307.prototype.ACTION_LEAVETABLE ? this.addOmnitureEvent_1(60) : b == GT554.prototype.ACTION_QUITPROGRAM ? this.addOmnitureEvent_1(61) : b == GT554.prototype.ACTION_SOUND_ON || b == GT554.prototype.ACTION_SOUND_OFF ? this.addOmnitureEvent_1(62) : b == GT307.prototype.ACTION_SOUNDON ? this.addOmnitureEvent_1(63) : b == GT307.prototype.ACTION_SOUNDOFF ? this.addOmnitureEvent_1(63) : b == GT307.prototype.ACTION_MUSICON ? this.addOmnitureEvent_1(64) : b == GT307.prototype.ACTION_MUSICOFF ? this.addOmnitureEvent_1(64) : b == GT554.prototype.ACTION_BTNFULLSCREEN ? this.addOmnitureEvent_1(65) : b == GT307.prototype.ACTION_FULLSCREEN && this.addOmnitureEvent_1(66); } return !1; }, run_0: function () { null != this.casinoapplet && null != this.measurement && (this.flush_0(), this.casinoapplet.getTimer_0().triggerCallbackAfter_2(this, 1e3 * this.flushinterval)); }, memorizeDidWatch_0: function () { this.didWatch = !0; }, memorizeDidPlay_0: function () { this.didPlay = !0; }, memorizeDidPayinFullStake_0: function () { this.didPayinFullStake = !0; }, memorizeMachineNumber_1: function (a) { a = new Integer(a); 0 > this.usedMachineNumbers.indexOf_1(a) && this.usedMachineNumbers.addElement_1(a); }, memorizeGameVariationName_1: function (a) { null != a && (null == this.gameVariationName && this.casinoapplet.getTimer_0().triggerCallbackAfter_2(this, 1), (this.gameVariationName = a)); }, }, "GT553", [GT962, Runnable] ); GT553.prototype.DEFAULTFLUSHINTERVAL = 60; var GT761 = Class.extend( { initialConstructor_0: function () { this.ticketsatstart = this.singlewin = this.losslimit = this.rounds = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.ticketsatstart = this.singlewin = this.losslimit = this.rounds = 0; this.rounds = a; this.losslimit = b; this.singlewin = d; this.ticketsatstart = e; }, getRoundsLeft_0: function () { return this.rounds; }, decRounds_0: function () { this.rounds--; }, getLossLimit_0: function () { return this.losslimit; }, getSingleWinLimit_0: function () { return this.singlewin; }, getTicketsAtStart_0: function () { return this.ticketsatstart; }, }, "GT761", [] ), GT175 = Class.extend( { initialConstructor_0: function () { this.applet = null; this.assertOnScreenDiff = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.applet = null; this.assertOnScreenDiff = !1; this.applet = a; this.assertOnScreenDiff = b; }, notifyEvent_1: function (a) { if (instanceOf(a, GT650)) this.applet.getEventDispatcher_0().raiseEvent_1(a.createMouseEvent_0()); else if (instanceOf(a, GT406)) this.applet.getEventDispatcher_0().raiseEvent_1(a.createMouseWheelEvent_0()); else if (instanceOf(a, GT651)) this.applet.getEventDispatcher_0().raiseEvent_1(a.createTouchEvent_0()); else if (instanceOf(a, GT407)) this.applet.keyPressed_3(null, a.getKeyname_0(), a.getModifiers_0()); else if (instanceOf(a, GT309)) this.applet.getConnection_0().processPackets_1(a.getPackets_0()); else if (instanceOf(a, GT338)) { var b = a.getKey_0(); a = a.getValue_0(); this.applet.setProperty_2(b, a); } else if (instanceOf(a, GT293)) (b = a.getWrapperEvent_0()), (a = this.applet.getGameWrapperInterface_0()), instanceOf(a, GT600) && a.fireActionImpl_1(b); else if (instanceOf(a, GT408) && this.assertOnScreenDiff) { b = this.applet.getScreenShot_0(); a = a.getImageData_0(); for (var d = 0; d < b.length; d++) b[d] != a[d] && GT1650.prototype.assertExp_2(!1, "Screenshots not matching"); } }, notifyFinished_2: function (a, b) { this.applet.getEventDispatcher_0().raiseEvent_1(new GT555(a, b)); }, }, "GT175", [GT365] ), GT409 = Class.extend({ initialConstructor_0: function () {} }, "GT409", []), GT207 = GT409.extend( { initialConstructor_0: function () { this.applet = null; GT409.prototype.initialConstructor_0.call(this); }, setApplet_1: function (a) { this.applet = a; }, showExitButtonInPayInDialog_0: function () { return null != this.applet && (!this.applet.hasOpenSession_0() || (this.applet.getTickets_0() < this.applet.getMinBuyIn_EuroCent_0() && this.applet.hasTooLittleMoneyToPlay_0())) ? !0 : !1; }, checkCustomPayInDialogCondition_0: function () { return !1; }, }, "GT207", [] ), GT706 = Class.extend( { initialConstructor_0: function () { this.oldnumplayers = this.numplayers = 0; this.payouttext = this.tableindex = this.nicknames = this.address = this.snapshot = null; this.useSpinAnim = this.useSwitchAnim = !1; this.numplayers = this.listpos = this.lastframe = this.timeOfLastTableInfo = 0; this.address = this.nicknames = this.snapshot = ""; this.lastframe = 0; }, getLastPayout_0: function () { for (var a = GT1677.prototype.tokenize_2(this.snapshot, ","), b = 0; b < a.length; b++) if (76 == a[b].charAt_1(0)) return a[b].substring_1(1); return ""; }, getLastPayoutTime_0: function () { for (var a = GT1677.prototype.tokenize_2(this.snapshot, ","), b = 0; b < a.length; b++) if (84 == a[b].charAt_1(0)) return GT1672.prototype.stringToInt_1(a[b].substring_1(1)); return 0; }, hasWinningUser_0: function () { return 0 <= this.snapshot.indexOf_1("W,"); }, getBetLevel_1: function (a) { var b = this.snapshot.indexOf_1("B"); if (0 > b) return 0; b = this.snapshot.charAt_1(b + 1) - 48; return b >= a ? a - 1 : b; }, }, "GT706", [] ), GT1121 = Class.extend( { initialConstructor_0: function () { GT1650.prototype.assertExp_2(!1, "static class - do not instanciate or subclass"); }, }, "GT1121", [] ); GT1121.prototype.STARTROOMINFO = 1; GT1121.prototype.FINISHROOMINFO = 2; GT1121.prototype.TABLEINFO = 3; GT1121.prototype.GAMESTATE = 6; GT1121.prototype.PLAYERATTRIBUTES = 7; GT1121.prototype.SERVERVERSION = 8; GT1121.prototype.UPDATETABLE = 9; GT1121.prototype.JACKPOTFACTOR = 10; GT1121.prototype.ROOMATTRIBUTES = 11; GT1121.prototype.CURRENCYSYMBOLS = 12; GT1121.prototype.ROUNDHISTORY = 13; GT1121.prototype.TIMESTAMPFORSTEP = 14; GT1121.prototype.DEMOMODEGAMECHANGE = 15; GT1121.prototype.CLIENTDATA = 16; GT1121.prototype.GAMEACTIONDATA = 17; GT1121.prototype.ENTERTABLE = 33; GT1121.prototype.SUBROOMINFO = 34; GT1121.prototype.SUBROOMUPDATE = 35; GT1121.prototype.JACKPOTFACTOR_MULTI = 36; GT1121.prototype.SERVER_RESPONSETIME = 37; GT1121.prototype.SHOW_SESSIONSETTINGS_DIALOG = 38; GT1121.prototype.SHOW_RESPONSIBLE_GAMING_INFO = 39; GT1121.prototype.SUBROOM_TABLEINFO = 40; GT1121.prototype.START_GAMESTATE = 41; GT1121.prototype.END_GAMESTATE = 48; GT1121.prototype.PART_GAMESTATE = 49; GT1121.prototype.START_ROUNDHISTORY = 42; GT1121.prototype.END_ROUNDHISTORY = 43; GT1121.prototype.PART_ROUNDHISTORY = 44; var GT814 = Class.extend( { initialConstructor_0: function () { this.symbolToCode = this.codeToSymbol = null; this.codeToSymbol = new java_util_JavaScriptHashtable(); this.symbolToCode = new java_util_JavaScriptHashtable(); }, add_2: function (a, b) { 0 < a.length_0() && 0 < b.length_0() && (this.codeToSymbol.put_2(a, b), this.symbolToCode.put_2(b, a)); }, getSymbol_1: function (a) { var b = this.codeToSymbol.get_1(a); return null != b ? b : a; }, getCode_1: function (a) { var b = this.symbolToCode.get_1(a); return null != b ? b : a; }, }, "GT814", [] ), GT968 = Class.extend( { initialConstructor_0: function () { this.applet = null; this.orientation = 0; this.screenRotationPossible = !1; this.orientationSensorManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.orientation = 0; this.screenRotationPossible = !1; this.orientationSensorManager = null; this.applet = a; this.screenRotationPossible = !0; }, getOrientation_0: function () { return this.orientation; }, setOrientation_1: function (a) { this.orientation = a; }, isScreenRotationPossible_0: function () { return this.screenRotationPossible; }, setScreenRotationPossible_1: function (a) { (this.screenRotationPossible = a) && this.applet.getTimer_0().triggerCallbackAfter_2(new GT556(this.applet), 1); }, setOrientationSensorManager_1: function (a) { this.orientationSensorManager = a; }, getOrientationSensorManager_0: function () { return this.orientationSensorManager; }, }, "GT968", [] ), GT556 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, run_0: function () { this.applet.switchLayout_0(); }, }, "GT556", [Runnable] ), GT457 = Class.extend( { initialConstructor_0: function () { this.timer = this.moveAnim = this.cntSubRooms = this.cntTablesPrev = this.cntTablesNext = this.cntTables = this.disp = this.cntLobby = null; this.tablesY = this.tablesX_prev = this.tablesX_next = this.tablesX = 0; this.tablesPrev = this.tablesNext = null; this.isLastSubRoom = this.isFirstSubRoom = !1; this.myroomid = 0; this.connection = null; this.blockEvents = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.timer = this.moveAnim = this.cntSubRooms = this.cntTablesPrev = this.cntTablesNext = this.cntTables = this.disp = this.cntLobby = null; this.tablesY = this.tablesX_prev = this.tablesX_next = this.tablesX = 0; this.tablesPrev = this.tablesNext = null; this.isLastSubRoom = this.isFirstSubRoom = !1; this.myroomid = 0; this.connection = null; this.blockEvents = !1; this.cntLobby = a; this.disp = b; this.timer = d; this.connection = e; }, init_3: function (a, b, d) { this.disp.registerHandler_2(GT1387.prototype.BUTTON_CLICKED, this); this.disp.registerHandler_2(GT1371.prototype.SCREENSIZE_CHANGED, this); this.disp.registerHandler_2(GT969.prototype.ID, this); this.disp.registerHandler_2(GT926.prototype.ID, this); this.disp.registerHandler_2(GT458.prototype.ID, this); this.disp.registerHandler_2(GT652.prototype.ID, this); this.disp.registerHandler_2(GT459.prototype.ID, this); this.cntTables = this.cntLobby.findDescendant_1(GT554.prototype.ID_CONTAINER_TABLEVIEW); this.cntSubRooms = this.cntLobby.findDescendant_1(GT554.prototype.ID_CONTAINER_SUBROOMVIEW); this.tablesX = this.cntTables.getX_0(); this.tablesY = this.cntTables.getY_0(); this.cntTablesNext = this.cntLobby.findDescendant_1(GT366.prototype.ID_TABLES_NEXT); this.cntTablesNext.setAllButtonsActive_1(!1); this.tablesNext = new java_util_JavaScriptVector(); for (var e = 0; 18 > e; e++) { var f = new GT706(); f.tableindex = new Integer(e); f.numplayers = 0; f.address = ""; this.tablesNext.addElement_1(f); } this.cntTablesNext.attachTablesVector_1(this.tablesNext); this.cntTablesNext.updateAllVisibleItems_0(); this.tablesX_next = this.cntTablesNext.getX_0(); this.cntTablesPrev = this.cntLobby.findDescendant_1(GT366.prototype.ID_TABLES_PREV); this.cntTablesPrev.setAllButtonsActive_1(!1); this.tablesPrev = new java_util_JavaScriptVector(); for (e = 0; 18 > e; e++) (f = new GT706()), (f.tableindex = new Integer(e)), (f.numplayers = 0), (f.address = ""), this.tablesPrev.addElement_1(f); this.cntTablesPrev.attachTablesVector_1(this.tablesPrev); this.cntTablesPrev.updateAllVisibleItems_0(); this.tablesX_prev = this.cntTablesPrev.getX_0(); this.myroomid = d; this.isFirstSubRoom = a; this.isLastSubRoom = b; this.isFirstSubRoom || this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SUBROOM_TABLES, ["" + (this.myroomid - 1)])); this.isLastSubRoom || this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SUBROOM_TABLES, ["" + (this.myroomid + 1)])); this.blockEvents = !1; }, reset_0: function () { this.cntTables.move_2(this.tablesX, this.tablesY); this.cntTablesNext.move_2(this.tablesX_next, this.tablesY); this.cntTablesPrev.move_2(this.tablesX_prev, this.tablesY); this.blockEvents = !1; }, updateSwipeFeature_3: function (a, b, d) { this.isFirstSubRoom = a; this.isLastSubRoom = b; this.myroomid = d; this.isFirstSubRoom || this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SUBROOM_TABLES, ["" + (this.myroomid - 1)])); this.isLastSubRoom || this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SUBROOM_TABLES, ["" + (this.myroomid + 1)])); }, switchToSubRoom_1: function (a) { if (!(0 > a)) { this.blockEvents = !0; var b = this.cntTables.getAdapter_0().getListElements_0(); b.setSize_1(0); if (a == this.myroomid + 1) for (var d = 0; d < this.tablesNext.size_0(); d++) b.addElement_1(this.tablesNext.elementAt_1(d)); else if (a == this.myroomid - 1) for (d = 0; d < this.tablesPrev.size_0(); d++) b.addElement_1(this.tablesPrev.elementAt_1(d)); this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SELECTSUBROOM, ["" + a, "0"])); this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SUBROOM_TABLES, ["" + a])); this.cntTables.setAllButtonsActive_1(!1); a = this.cntLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW); GT1560.prototype.isAlive_1(a) && a.setActive_1(!1); this.cntSubRooms.setAllButtonsActive_2(!1, !0); } }, receivedTables_2: function (a, b) { var d = GT1672.prototype.stringToInt_1(a[0]); if (d == this.myroomid) { this.cntTables.updateViewToNewData_1(!1); for (var e = this.cntTables.getAdapter_0().getListElements_0(), d = 1, f = 0; f < e.size_0() && d + 4 < a.length; f++) { var g = e.elementAt_1(f); 1 < a.length && ((g.oldnumplayers = g.numplayers), (g.numplayers = GT1672.prototype.stringToInt_1(a[d + 1]))); g.snapshot = a[d + 2]; g.address = a[d + 3]; b && (g.nicknames = a[d + 4]); d += 5; } this.reset_0(); this.cntTables.updateAllVisibleItems_0(); this.cntTables.setAllButtonsActive_1(!0); e = this.cntLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW); GT1560.prototype.isAlive_1(e) && e.setActive_1(!0); } else { e = null; d == this.myroomid + 1 ? (e = this.tablesNext) : d == this.myroomid - 1 && (e = this.tablesPrev); if (null != e) for (e.setSize_1(0), f = 1; f + 4 < a.length; f += 5) (g = new GT706()), (g.tableindex = new Integer(e.size_0())), (g.listpos = e.size_0()), (g.numplayers = GT1672.prototype.stringToInt_1(a[f + 1])), (g.snapshot = a[f + 2]), (g.address = a[f + 3]), (g.nicknames = a[f + 4]), e.addElement_1(g); d == this.myroomid + 1 ? (this.cntTablesNext.updateViewToNewData_1(!1), this.cntTablesNext.setAllButtonsActive_1(!1)) : d == this.myroomid - 1 && (this.cntTablesPrev.updateViewToNewData_1(!1), this.cntTablesPrev.setAllButtonsActive_1(!1)); } }, destroy_0: function () { this.disp.unregisterHandler_1(this); }, handleButtonEvent_1: function (a) { return a.getId_0() == GT1387.prototype.BUTTON_CLICKED && ((a = a.getSender_0()), a.getApplicationID_0() == GT366.prototype.ID_BUTTON_MENU) ? ((a = a.getParent_0().getParent_0().findDescendant_1(GT366.prototype.ID_CONTAINER_MENU)), GT1560.prototype.isAlive_1(a) && a.hide_1(!a.isHidden_0()), !0) : !1; }, handleScreenEvent_1: function (a) { this.alignContainers_2(a.getVisibleAreaX_0(), a.getVisibleAreaWidth_0()); return !1; }, alignContainers_2: function (a, b) { var d = this.cntLobby.findDescendant_1(GT366.prototype.ID_CONTAINER_RIGHTALIGN); GT1560.prototype.isAlive_1(d) && d.move_2(a + b - d.getWidth_0(), d.getY_0()); }, handleGestureEvent_1: function (a) { if ((null != this.moveAnim && this.moveAnim.isRunning_0()) || this.blockEvents) return !1; if (a.getId_0() == GT969.prototype.ID) { if (this.cntLobby.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0())) { var b = Math.abs_1(a.getUpEvent_0().getX_0() - a.getDownEvent_0().getX_0()), d = a.getVelocityX_0(); java_lang_System.prototype.out.println_1(b); java_lang_System.prototype.out.println_1(d); if (-1e3 > d && 200 < b && !this.isLastSubRoom) return ( this.switchToSubRoom_1(this.myroomid + 1), (this.moveAnim = new GT653(this.timer, this.cntTables, this.tablesX_prev, this.tablesY, 300, !0)), this.moveAnim.start_0(), new GT653(this.timer, this.cntTablesNext, this.tablesX, this.tablesY, 300, !0).start_0(), new GT653(this.timer, this.cntTablesPrev, this.tablesX_prev - this.cntTablesPrev.getWidth_0(), this.tablesY, 300, !0).start_0(), !0 ); 1e3 < a.getVelocityX_0() && 200 < b && !this.isFirstSubRoom && (this.switchToSubRoom_1(this.myroomid - 1), (this.moveAnim = new GT653(this.timer, this.cntTables, this.tablesX_next, this.tablesY, 300, !0)), this.moveAnim.start_0(), new GT653(this.timer, this.cntTablesPrev, this.tablesX, this.tablesY, 300, !0).start_0(), new GT653(this.timer, this.cntTablesNext, this.tablesX_next + this.cntTablesNext.getWidth_0(), this.tablesY, 300, !0).start_0()); } } else { if (a.getId_0() == GT926.prototype.ID || a.getId_0() == GT458.prototype.ID) return ( a.isLastEvent_0() ? this.cntTables.getX_0() - a.getDistanceX_0() <= this.tablesX && Math.abs_1(this.cntTablesNext.getX_0() - this.tablesX) < Math.div(this.cntTablesNext.getWidth_0(), 2) ? (this.switchToSubRoom_1(this.myroomid + 1), (this.moveAnim = new GT653(this.timer, this.cntTables, this.tablesX_prev, this.tablesY, 400, !0)), this.moveAnim.start_0(), new GT653(this.timer, this.cntTablesNext, this.tablesX, this.tablesY, 400, !0).start_0()) : this.cntTables.getX_0() - a.getDistanceX_0() >= this.tablesX && Math.abs_1(this.cntTablesPrev.getX_0() - this.tablesX) < Math.div(this.cntTablesPrev.getWidth_0(), 2) ? (this.switchToSubRoom_1(this.myroomid - 1), (this.moveAnim = new GT653(this.timer, this.cntTables, this.tablesX_next, this.tablesY, 400, !0)), this.moveAnim.start_0(), new GT653(this.timer, this.cntTablesPrev, this.tablesX, this.tablesY, 400, !0).start_0()) : ((this.moveAnim = new GT653(this.timer, this.cntTables, this.tablesX, this.tablesY, 400, !0)), this.moveAnim.start_0(), new GT653(this.timer, this.cntTablesNext, this.tablesX_next, this.tablesY, 400, !0).start_0(), new GT653(this.timer, this.cntTablesPrev, this.tablesX_prev, this.tablesY, 400, !0).start_0()) : ((b = this.cntTablesNext.getX_0() - this.cntTables.getX_0()), (d = this.cntTables.getX_0() - this.cntTablesPrev.getX_0()), this.cntTables.getX_0() - a.getDistanceX_0() >= this.tablesX + 50 && this.isFirstSubRoom ? this.cntTables.move_2(this.tablesX + 50, this.tablesY) : this.cntTables.getX_0() - a.getDistanceX_0() <= this.tablesX - 50 && this.isLastSubRoom ? this.cntTables.move_2(this.tablesX - 50, this.tablesY) : this.cntTables.move_2(this.cntTables.getX_0() - a.getDistanceX_0(), this.tablesY), this.cntTablesNext.move_2(this.cntTables.getX_0() + b, this.tablesY), this.cntTablesPrev.move_2(this.cntTables.getX_0() - d, this.tablesY)), !0 ); a.getId_0(); } return !1; }, }, "GT457", [GT962, GT961, GT920] ), GT460 = Class.extend( { initialConstructor_0: function () { this.timer = this.moveAnim = this.cntIntro = this.disp = null; this.currentIntroPage = 0; this.timeoutfinishedCallback = this.introTimeoutCallback = this.animVisCurrentPageNr = null; this.timeout = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.timer = this.moveAnim = this.cntIntro = this.disp = null; this.currentIntroPage = 0; this.timeoutfinishedCallback = this.introTimeoutCallback = this.animVisCurrentPageNr = null; this.timeout = 0; this.disp = a; this.timer = d; this.cntIntro = b; this.introTimeoutCallback = e; this.timeout = f; }, create_0: function () { this.disp.registerHandler_2(GT969.prototype.ID, this); this.disp.registerHandler_2(GT926.prototype.ID, this); this.disp.registerHandler_2(GT458.prototype.ID, this); this.disp.registerHandler_4(GT652.prototype.ID, null, this, -1); this.disp.registerHandler_2(GT1387.prototype.BUTTON_CLICKED, this); this.disp.registerHandler_2(GT1532.prototype.KEY_PRESS, this); this.showFirstIntroPage_0(); for (var a = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_INDICATOR), b = a.getChildCount_0() - 1; b > 2 * this.countIntroPages_0() - 1 && 0 <= b; b--) a.getChild_1(b).destroy_0(); a.reflow_0(); this.updateIndicator_0(); this.timeoutfinishedCallback = new GT267(this); this.timer.triggerCallbackAfter_2(this.timeoutfinishedCallback, this.timeout); }, destroy_0: function () { this.disp.unregisterHandler_1(this); this.disp = null; }, handleGestureEvent_1: function (a) { if (null != this.moveAnim && this.moveAnim.isRunning_0()) return !1; this.resetTimeout_0(); if (a.getId_0() == GT969.prototype.ID) { if (!this.cntIntro.isHidden_0()) { var b = this.countIntroPages_0(); if (this.cntIntro.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0())) { var d = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0()), e = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() + 1), f = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() - 1); null == e && 1 < b && (e = this.getIntroPageByIdx_1(0)); null != e && e.hide_1(!1); null == f && 1 < b && (f = this.getIntroPageByIdx_1(b - 1)); null != f && f.hide_1(!1); if (0 > a.getVelocityX_0() && null != e) return ( e.getX_0() < d.getWidth_0() && this.incCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, d, -d.getWidth_0(), 0, 300)), this.moveAnim.start_0(), e.move_2(d.getX_0() + d.getWidth_0(), d.getY_0()), new GT653(this.timer, e, 0, 0, 300).start_0(), null != f && f != e && new GT653(this.timer, f, -d.getWidth_0() - f.getWidth_0(), 0, 300).start_0(), !0 ); if (0 < a.getVelocityX_0() && null != f) return ( f.getX_0() > -f.getWidth_0() && this.decCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, d, f.getWidth_0(), 0, 300)), this.moveAnim.start_0(), f.move_2(d.getX_0() - f.getWidth_0(), d.getY_0()), new GT653(this.timer, f, 0, 0, 300).start_0(), null != e && e != f && new GT653(this.timer, e, f.getWidth_0() + d.getWidth_0(), 0, 300).start_0(), !0 ); } } } else if (a.getId_0() == GT926.prototype.ID || a.getId_0() == GT458.prototype.ID) { if (!this.cntIntro.isHidden_0()) return ( (b = this.countIntroPages_0()), (d = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0())), (e = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() + 1)), (f = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() - 1)), null == e && 1 < b && (e = this.getIntroPageByIdx_1(0)), null == f && 1 < b && (f = this.getIntroPageByIdx_1(b - 1)), null != e && (e.hide_1(!1), (0 >= d.getX_0() - a.getDistanceX_0() || f != e) && e.move_2(d.getX_0() + d.getWidth_0(), d.getY_0())), null != f && (f.hide_1(!1), (0 <= d.getX_0() - a.getDistanceX_0() || f != e) && f.move_2(d.getX_0() - f.getWidth_0(), d.getY_0())), a.isLastEvent_0() ? Math.abs_1(d.getX_0()) < Math.div(d.getWidth_0(), 2) ? ((this.moveAnim = new GT653(this.timer, d, 0, 0, 200)), this.moveAnim.start_0(), null != e && 0 > d.getX_0() && new GT653(this.timer, e, d.getWidth_0(), 0, 200).start_0(), null != f && 0 < d.getX_0() && new GT653(this.timer, f, -f.getWidth_0(), 0, 200).start_0()) : null != e && 0 >= d.getX_0() - a.getDistanceX_0() && e.getX_0() < Math.div(e.getWidth_0(), 2) ? ((e.getX_0() < e.getWidth_0() || 2 < b) && this.incCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, d, -d.getWidth_0(), 0, 200)), this.moveAnim.start_0(), new GT653(this.timer, e, 0, 0, 200).start_0(), null != f && f != e && new GT653(this.timer, f, -d.getWidth_0() - f.getWidth_0(), 0, 200).start_0()) : null != f && 0 <= d.getX_0() - a.getDistanceX_0() && f.getX_0() < Math.div(-f.getWidth_0(), 2) && ((f.getX_0() > -f.getWidth_0() || 2 < b) && this.decCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, d, f.getWidth_0(), 0, 200)), this.moveAnim.start_0(), new GT653(this.timer, f, 0, 0, 200).start_0(), null != e && e != f && new GT653(this.timer, e, f.getWidth_0() + d.getWidth_0(), 0, 200).start_0()) : ((0 <= d.getX_0() - a.getDistanceX_0() && null == f) || (0 >= d.getX_0() - a.getDistanceX_0() && null == e) ? d.move_2(0, 0) : d.move_2(d.getX_0() - a.getDistanceX_0(), d.getY_0()), (d.getX_0() > d.getWidth_0() || d.getX_0() < -d.getWidth_0()) && d.move_2(d.getX_0() > d.getWidth_0() ? d.getWidth_0() : -d.getWidth_0(), d.getY_0()), null != e && 0 >= d.getX_0() - a.getDistanceX_0() && e.move_2(d.getX_0() + d.getWidth_0(), d.getY_0()), null != f && 0 <= d.getX_0() - a.getDistanceX_0() && f.move_2(d.getX_0() - f.getWidth_0(), d.getY_0())), !0 ); } else a.getId_0() != GT652.prototype.ID || this.cntIntro.isHidden_0() || ((b = this.countIntroPages_0()), (d = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0())), (e = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() + 1)), (f = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() - 1)), null == e && 1 < b && (e = this.getIntroPageByIdx_1(0)), null == f && 1 < b && (f = this.getIntroPageByIdx_1(b - 1)), null != e && e.hide_1(!1), null != f && f.hide_1(!1), (this.moveAnim = new GT653(this.timer, d, 0, 0, 200)), this.moveAnim.start_0(), null != e && (0 > d.getX_0() ? new GT653(this.timer, e, d.getWidth_0(), 0, 200).start_0() : e != f && e.hide_1(!0)), null != f && (0 < d.getX_0() ? new GT653(this.timer, f, -f.getWidth_0(), 0, 200).start_0() : e != f && f.hide_1(!0))); return !1; }, moveToNextPage_0: function () { var a = this.countIntroPages_0(), b = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0()), d = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() - 1), e = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() + 1); null == e && 1 < a && (e = this.getIntroPageByIdx_1(0)); null != e && (e.hide_1(!1), e.move_2(b.getX_0() + b.getWidth_0(), b.getY_0()), this.incCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, b, -b.getWidth_0(), 0, 400)), this.moveAnim.start_0(), new GT653(this.timer, e, 0, 0, 400).start_0()); null == d && 1 < a && (d = this.getIntroPageByIdx_1(a - 1)); null != d && d != e && (d.hide_1(!1), d.move_2(b.getX_0() - d.getWidth_0(), b.getY_0()), new GT653(this.timer, d, -d.getWidth_0() - b.getWidth_0(), 0, 400).start_0()); }, moveToPrevPage_0: function () { var a = this.countIntroPages_0(), b = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0()), d = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() - 1), e = this.getIntroPageByIdx_1(this.getCurrentIntroPage_0() + 1); null == d && 1 < a && (d = this.getIntroPageByIdx_1(a - 1)); null != d && (d.hide_1(!1), d.move_2(b.getX_0() - d.getWidth_0(), b.getY_0()), this.decCurrentIntroPage_0(), this.updateIndicator_0(), (this.moveAnim = new GT653(this.timer, b, d.getWidth_0(), 0, 400)), this.moveAnim.start_0(), new GT653(this.timer, d, 0, 0, 400).start_0()); null == e && 1 < a && (e = this.getIntroPageByIdx_1(0)); null != e && e != d && (e.hide_1(!1), e.move_2(b.getX_0() + e.getWidth_0(), b.getY_0()), new GT653(this.timer, e, d.getWidth_0() + b.getWidth_0(), 0, 400).start_0()); }, handleButtonEvent_1: function (a) { a.getId_0() == GT1387.prototype.BUTTON_CLICKED && a.getSender_0().getApplicationID_0() == GT554.prototype.ID_INFOPAGES_CLOSE && (this.timer.removeCallback_2(this.timeoutfinishedCallback, !1), this.introTimeoutCallback.run_0()); if (null != this.moveAnim && this.moveAnim.isRunning_0()) return !1; a.getId_0() == GT1387.prototype.BUTTON_CLICKED && a.getSender_0().getApplicationID_0() == GT554.prototype.ID_INFOPAGES_PREV && (this.moveToPrevPage_0(), this.resetTimeout_0()); a.getId_0() == GT1387.prototype.BUTTON_CLICKED && a.getSender_0().getApplicationID_0() == GT554.prototype.ID_INFOPAGES_NEXT && (this.moveToNextPage_0(), this.resetTimeout_0()); return !1; }, handleKeyEvent_1: function (a) { if (null != this.moveAnim && this.moveAnim.isRunning_0()) return !1; a.getKeyName_0().equals_1("left") ? (this.moveToPrevPage_0(), this.resetTimeout_0()) : a.getKeyName_0().equals_1("right") && (this.moveToNextPage_0(), this.resetTimeout_0()); return !1; }, showFirstIntroPage_0: function () { var a = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_CONTENT); GT1560.prototype.isAlive_1(a) && ((this.currentIntroPage = 0), this.showPageOfIntro_2(a, this.currentIntroPage)); }, showNextIntroPage_0: function () { var a = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_CONTENT); GT1560.prototype.isAlive_1(a) && (this.incCurrentIntroPage_0(), this.showPageOfIntro_2(a, this.currentIntroPage)); }, incCurrentIntroPage_0: function () { this.currentIntroPage = (this.currentIntroPage + 1) % this.countIntroPages_0(); }, countIntroPages_0: function () { var a = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_CONTENT); if (!GT1560.prototype.isAlive_1(a)) return 0; for (var b = 0, d = 0; d < a.getChildCount_0(); d++) instanceOf(a.getChild_1(d), GT1437) && b++; return b; }, showPrevIntroPage_0: function () { var a = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_CONTENT); GT1560.prototype.isAlive_1(a) && (this.decCurrentIntroPage_0(), this.showPageOfIntro_2(a, this.currentIntroPage)); }, decCurrentIntroPage_0: function () { var a = this.countIntroPages_0(); this.currentIntroPage = (this.currentIntroPage - 1 + a) % a; }, getCurrentIntroPage_0: function () { return this.currentIntroPage; }, getIntroPageByIdx_1: function (a) { var b = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_CONTENT); if (!GT1560.prototype.isAlive_1(b) || 0 > a) return null; for (var d = 0; d < b.getChildCount_0(); d++) { var e = b.getChild_1(d); if (instanceOf(e, GT1437)) { if (0 == a) return e.hide_1(!1), e; a--; } } return null; }, showPageOfIntro_2: function (a, b) { if (!(0 > b)) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); e.hide_1(!0); } for (d = 0; d < a.getChildCount_0(); d++) { e = a.getChild_1(d); if (0 == b) { e.hide_1(!1); break; } b--; } } }, updateIndicator_0: function () { null != this.animVisCurrentPageNr && this.animVisCurrentPageNr.isRunning_0() && this.animVisCurrentPageNr.kill_0(); for (var a = this.getCurrentIntroPage_0(), b = this.cntIntro.findDescendant_1(GT554.prototype.ID_INFOPAGES_INDICATOR), d = 0, e = 0; e < b.getChildCount_0(); e++) { var f = b.getChild_1(e); instanceOf(f, GT1437) && 2 <= f.getChildCount_0() && (f.getChild_1(0).hide_1(d == a), f.getChild_1(1).hide_1(d != a), d++); } }, resetTimeout_0: function () { this.timer.removeCallback_2(this.timeoutfinishedCallback, !1); this.timer.triggerCallbackAfter_2(this.timeoutfinishedCallback, this.timeout); }, triggerTimeoutFinished_0: function () { 0 == this.getIntroPageByIdx_1(this.getCurrentIntroPage_0()).getX_0() ? this.introTimeoutCallback.run_0() : this.resetTimeout_0(); }, }, "GT460", [GT920, GT962, GT1114] ), GT267 = Class.extend( { initialConstructor_0: function () { this.intropageshandler = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.intropageshandler = null; this.intropageshandler = a; }, run_0: function () { this.intropageshandler.triggerTimeoutFinished_0(); }, }, "GT267", [Runnable] ), GT410 = Class.extend( { initialConstructor_0: function () { this.multiplier = null; this.maxBet_orig = this.maxBet_eff = 0; this.jackpotValueTexts = this.jackpotWins = null; this.triggerProbabilitySet = !1; this.maxBaseBet = this.maxBetMulti = this.minBetPrecise = 0; this.overrideBaseBets = this.overrideLines = this.lines = this.betMultiplier = null; this.currencyFactor = this.maxBet = this.minBet = this.independentSetting = 0; this.forceIntegerWinsAndBet = !1; this.allWinsGCD = 0; this.jackpotwinsString = null; this.jackpotContribution = 0; this.showJackpotContribution = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.multiplier = null; this.maxBet_orig = this.maxBet_eff = 0; this.jackpotValueTexts = this.jackpotWins = null; this.triggerProbabilitySet = !1; this.maxBaseBet = this.maxBetMulti = this.minBetPrecise = 0; this.overrideBaseBets = this.overrideLines = this.lines = this.betMultiplier = null; this.currencyFactor = this.maxBet = this.minBet = this.independentSetting = 0; this.forceIntegerWinsAndBet = !1; this.allWinsGCD = 0; this.jackpotwinsString = null; this.jackpotContribution = 0; this.showJackpotContribution = !1; this.jackpotWins = GT1678.prototype.deserializeList_1(q); this.currencyFactor = m; 1 == this.currencyFactor && (this.currencyFactor = 100); this.betMultiplier = a; this.lines = b; this.overrideLines = d; this.overrideBaseBets = e; this.independentSetting = f; this.minBet = g; this.maxBet = k; this.forceIntegerWinsAndBet = n; this.allWinsGCD = p; this.jackpotwinsString = q; this.jackpotContribution = r; this.showJackpotContribution = t; this.update_0(); }, determineValidMultiplier_3: function (a, b, d) { if (null == d) return a; for (var e = 0, f = 0; f < b.length; f++) for (var g = 0; g < d.length; g++) if (b[f] == d[g]) { e++; break; } for (var k = [].createArray(e).init(0), f = (e = 0); f < b.length; f++) for (g = 0; g < d.length; g++) if (b[f] == d[g]) { k[e] = a[f]; e++; break; } return k; }, setProgressive_2: function (a, b) { var d = this.getJackpots_1(a); if (null == d) return !1; for (var e = 0; e < d.length; e++) d[e].put_2("j", new Double(b * this.maxBet_orig)); return !0; }, calculateJackpotWin_1: function (a) { return this.calculateJackpotWin_3(GT1672.prototype.doubleToInt_1(this.maxBet_eff / this.maxBetMulti), this.maxBetMulti, a); }, calculateJackpotWin_2: function (a, b) { return this.calculateJackpotWin_4(GT1672.prototype.doubleToInt_1(this.maxBet_eff / this.maxBetMulti), this.maxBetMulti, a, b); }, calculateJackpotWin_3: function (a, b, d) { return this.calculateJackpotWin_4(a, b, d, this.getPercentage_1(0)); }, calculateJackpotWin_4: function (a, b, d, e) { d = this.getJackpot_2(d, e); return this.getJackpotWinFor_3(a, b, d); }, getJackpotWinFor_3: function (a, b, d) { if (null == d) return 0; var e = d.get_1("s").booleanValue_0(), f = d.get_1("b").doubleValue_0(), g = d.get_1("p").doubleValue_0(), k = d.get_1("t").doubleValue_0(); d = (100 * (null == d.get_1("j") ? 0 : d.get_1("j").doubleValue_0())) / this.currencyFactor; var m = (100 * this.maxBet_orig) / this.currencyFactor; return 0 < k ? f * this.minBetPrecise * GT1677.prototype.getRoundedValue_2(1 / k, 3) + d : Math.round_1((e ? a * b : a) * f + (g * a * b * d * 1) / m); }, getJackpots_1: function (a) { for (var b = 0, d = 0; d < this.jackpotWins.size_0(); d++) { var e = this.jackpotWins.get_1(d), f = e.get_1("n"); GT1677.prototype.equalsIgnoreCaseAZ_2(f, a) && b++; } if (0 == b) return null; for (var g = [].createArray(b), d = (b = 0); d < this.jackpotWins.size_0(); d++) (e = this.jackpotWins.get_1(d)), (f = e.get_1("n")), GT1677.prototype.equalsIgnoreCaseAZ_2(f, a) && ((g[b] = e), b++); return g; }, getJackpot_2: function (a, b) { for (var d = 0; d < this.jackpotWins.size_0(); d++) { var e = this.jackpotWins.get_1(d), f = e.get_1("n"), g = e.get_1("p").doubleValue_0(); if (GT1677.prototype.equalsIgnoreCaseAZ_2(f, a) && g == b) return e; } if ("" == a) for (d = 0; d < this.jackpotWins.size_0(); d++) if (((e = this.jackpotWins.get_1(d)), e.get_1("p").doubleValue_0() == b)) return e; return null; }, getPercentage_1: function (a) { if (a >= this.jackpotWins.size_0()) return 0; for (var b = [].createArray(this.jackpotWins.size_0()).init(0), d = 0; d < this.jackpotWins.size_0(); d++) { var e = this.jackpotWins.get_1(d); b[d] = e.get_1("p").doubleValue_0(); } GT1679.prototype.sortDoubleArray_2(b, !0); return b[a]; }, getEffectiveMaxBet_0: function () { return this.maxBet_eff; }, setCurrencyFactor_1: function (a) { this.currencyFactor = a; 1 == this.currencyFactor && (this.currencyFactor = 100); this.update_0(); }, getContribution_0: function () { return this.jackpotContribution; }, isShowJackpotContribution_0: function () { return this.showJackpotContribution; }, update_0: function () { this.minBetPrecise = (100 * this.minBet) / this.currencyFactor; this.multiplier = this.determineValidMultiplier_3(this.betMultiplier, this.lines, this.overrideLines); this.maxBetMulti = this.multiplier[0]; for (var a = this.multiplier[0], b = 1; b < this.multiplier.length; b++) this.multiplier[b] < a && (a = this.multiplier[b]), this.multiplier[b] > this.maxBetMulti && (this.maxBetMulti = this.multiplier[b]); var b = GT1672.prototype.doubleToInt_1((100 * this.minBet) / this.currencyFactor), d = GT1672.prototype.doubleToInt_1((100 * this.maxBet) / this.currencyFactor), a = new GT707(b, d, this.independentSetting, this.maxBetMulti, a); null != this.overrideBaseBets && a.setOverrideBets_1(this.overrideBaseBets); this.forceIntegerWinsAndBet && a.setForceIntegerValues_1(Math.div(100, this.allWinsGCD)); a.calculatePossibeBaseBets_0(); a = a.getPossiblebets_0(); this.maxBet_orig = this.maxBet; this.maxBet_eff = 0 == a.length ? 0 : this.maxBetMulti * a[a.length - 1]; }, calculateJackpotWin_5: function (a, b, d, e, f) { return this.calculateJackpotWin_4(a, b, d, e); }, generateJackpotValueTexts_1: function (a) { var b = this.jackpotWins.clone_0(); GT1679.prototype.sortVector_3(b, new GT708(), !0); this.jackpotValueTexts = new java_util_JavaScriptVector(); for (var d = !1, e = 0; e < b.size_0(); e++) { var f = b.get_1(e); f.get_1("n").equals_1("") || (d = !0); } for (var g = new java_util_JavaScriptVector(), e = 0; e < b.size_0(); e++) if (((f = b.get_1(e)), (!g.contains_1(f.get_1("n")) && !f.get_1("n").equals_1("") && d) || (!g.contains_1(f.get_1("b") + "" + f.get_1("p")) && !d))) { d ? g.add_1(f.get_1("n")) : g.add_1(f.get_1("b") + "" + f.get_1("p")); var k = f.get_1("b").doubleValue_0(), m = f.get_1("t").doubleValue_0(); 0 >= m ? ((f = f.get_1("s").booleanValue_0()), (k = Integer.truncate_1(f ? k : Math.div(k, this.maxBetMulti))), 0 < k && this.jackpotValueTexts.addElement_1(new Integer(k)), (this.triggerProbabilitySet = !1)) : ((this.triggerProbabilitySet = !0), (k = k * this.minBet * GT1677.prototype.getRoundedValue_2(1 / m, 3)), (f = a.getPlayerAttribute_2("NATIVEJACKPOTCURRENCY", null)), (m = GT1672.prototype.stringToDouble_1(a.getPlayerAttribute_2("NATIVEJACKPOTCURRENCYFACTOR", "100"))), null == f && ((f = "\u20ac"), null != a.getSkinManager_0().getParameter_1("nativejackpotcurrencyid") && (a.getSkinManager_0().getParameter_1("nativejackpotcurrencyid").equals_1("3") && (f = "\u00a3"), a.getSkinManager_0().getParameter_1("nativejackpotcurrencyid").equals_1("6") && (f = "Ft"), a.getPlayerAttribute_2("CURRENCY", "").equals_1("") && ((f = ""), (m = 1 == this.currencyFactor ? this.currencyFactor : m)))), 0 < k && this.jackpotValueTexts.addElement_1(a.getCurrencyMoneyString_5(this.roundDouble_1(k), f, m, !1, !0))); } }, roundDouble_1: function (a) { return Math.floor_1(a + 0.5); }, getJackpotValueTexts_0: function () { return this.jackpotValueTexts; }, isTriggerProbabilitySet_0: function () { return this.triggerProbabilitySet; }, }, "GT410", [GT698] ), GT708 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compare_2: function (a, b) { var d = a.get_1("b").doubleValue_0(), e = b.get_1("b").doubleValue_0(); return d < e ? -1 : d > e ? 1 : 0; }, }, "GT708", [java_util_Comparator] ), GT294 = Class.extend( { initialConstructor_0: function () { this.jackpotFactor = this.jackpotBaseWin = this.maxBet = 0; this.updateforclient = !1; this.maxBet_eff = this.maxLines = 0; this.averagePayout = null; this.payOnMinBet = 0; this.multiplyByLines = !1; this.percentages = null; this.jackpotMinBet = this.currencyFactor = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.jackpotFactor = this.jackpotBaseWin = this.maxBet = 0; this.updateforclient = !1; this.maxBet_eff = this.maxLines = 0; this.averagePayout = null; this.payOnMinBet = 0; this.multiplyByLines = !1; this.percentages = null; this.jackpotMinBet = this.currencyFactor = 0; this.updateforclient = !1; this.jackpotMinBet = b; this.jackpotBaseWin = g; this.jackpotFactor = k; this.maxBet = 1; b = 1 == f ? f : f / 100; f = 1; if (d) this.maxBet = e; else for (; f * b <= a; ) 1 * f * b <= a && (this.maxBet = 1 * f), 2 * f * b <= a && (this.maxBet = 2 * f), 3 * f * b <= a && (this.maxBet = 3 * f), 4 * f * b <= a && (this.maxBet = 4 * f), 5 * f * b <= a && (this.maxBet = 5 * f), 8 * f * b <= a && (this.maxBet = 8 * f), (f *= 10); this.maxBet_eff = this.maxBet; this.percentages = [1]; }, updateForClient_6: function (a, b, d, e, f, g) { this.updateforclient = !0; this.maxLines = f; this.maxBet_eff = g; this.averagePayout = a; this.payOnMinBet = b; this.multiplyByLines = d; this.percentages = e; }, setProgressive_2: function (a, b) { this.jackpotFactor = b; return !0; }, calculateJackpotWin_1: function (a) { return this.calculateJackpotWin_2(a, this.getPercentage_1(0)); }, calculateJackpotWin_2: function (a, b) { for (var d = !1, e = 0; e < this.percentages.length; e++) this.percentages[e] == b && (d = !0); return d ? this.updateforclient ? this.calculateJackpotWin_4(GT1672.prototype.doubleToInt_1(this.maxBet_eff / this.maxLines), this.maxLines, a, b) : Math.round_1(this.maxBet * this.jackpotFactor * b) + this.maxBet * this.jackpotBaseWin : 0; }, calculateJackpotWin_3: function (a, b, d) { return this.calculateJackpotWin_4(a, b, d, this.getPercentage_1(0)); }, getEffectiveMaxBet_0: function () { return this.maxBet_eff; }, calculateJackpotWin_4: function (a, b, d, e) { return this.calculateJackpotWin_5(a, b, d, e, this.multiplyByLines); }, calculateJackpotWin_5: function (a, b, d, e, f) { b *= a; if (0 < this.payOnMinBet) return Math.round_1(((100 * this.jackpotMinBet) / this.currencyFactor) * this.payOnMinBet) + this.maxBet * this.jackpotFactor; if (null == this.percentages || null == this.averagePayout) return 0; d = !1; for (var g = 0, k = 0; k < this.percentages.length; k++) this.percentages[k] == e && ((d = !0), (g = this.averagePayout[k])); return d ? b * this.jackpotFactor * e + g * (f ? b : a) : 0; }, setCurrencyFactor_1: function (a) { this.currencyFactor = a; }, getPercentage_1: function (a) { return a >= this.percentages.length ? 0 : this.percentages[a]; }, getContribution_0: function () { return 0; }, isShowJackpotContribution_0: function () { return !1; }, }, "GT294", [GT698] ), GT601 = Class.extend( { initialConstructor_0: function () { this.payindialog = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.payindialog = null; this.payindialog = a; }, sliderValueChanged_1: function (a) { this.payindialog.payInSliderValueChanged_0(); }, sliderDropped_1: function (a) { this.payindialog.payInSliderDropped_0(); }, }, "GT601", [GT1067] ), GT557 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, sliderValueChanged_1: function (a) { this.applet.replaySliderValueChanged_1(a.getValue_0()); }, sliderDropped_1: function (a) { this.applet.replaySliderDropped_1(a.getValue_0()); }, }, "GT557", [GT1067] ), GT1122 = Class.extend( { initialConstructor_0: function () { GT1650.prototype.assertExp_2(!1, "static class - do not instanciate or subclass"); }, }, "GT1122", [] ); GT1122.prototype.LOGON = 1; GT1122.prototype.JOINGAME = 2; GT1122.prototype.LEAVEGAME = 3; GT1122.prototype.STORECALLPARAMETER = 5; GT1122.prototype.RELOADATTRIBUTES = 6; GT1122.prototype.LOGON_JOINGAME = 7; GT1122.prototype.GETROUNDHISTORY = 9; GT1122.prototype.REPLAYROUND = 8; GT1122.prototype.GAMESTATE = 10; GT1122.prototype.LOGON_REPLAY = 11; GT1122.prototype.LOGON_DEMO = 12; GT1122.prototype.LEAVEGAME_AND_LOGOUT = 13; GT1122.prototype.STORERESPONSETIMING = 24; GT1122.prototype.PAYIN = 25; GT1122.prototype.REFRESHUSER = 27; GT1122.prototype.WATCHOTHERTABLE = 28; GT1122.prototype.PLAYNOW = 29; GT1122.prototype.SETDUMMYDBTICKETS = 30; GT1122.prototype.SELECTSUBROOM = 31; GT1122.prototype.WINTICKETS = 32; GT1122.prototype.CLIENTVERSION = 33; GT1122.prototype.ADDDUMMYPLAYERS = 34; GT1122.prototype.IMPATIENCE = 35; GT1122.prototype.SESSIONSETTINGS = 36; GT1122.prototype.SUBROOM_TABLES = 37; GT1122.prototype.MAX_WIN = 38; GT1122.prototype.DBSETTINGS = 39; GT1122.prototype.GETALLDATA = 40; GT1122.prototype.MYSTERY_PAYOUT_STEPS = 41; var GT558 = Class.extend( { initialConstructor_0: function () { this.decorationOrder = 0; this.decorationOrder = GT558.prototype.ORDER_GAME; }, initialConstructor_1: function (a) { this.decorationOrder = 0; this.decorationOrder = a; }, getDecorationOrder_0: function () { return this.decorationOrder; }, setDecorationOrder_1: function (a) { this.decorationOrder = a; }, }, "GT558", [] ); GT558.prototype.ORDER_BEFORE_GAME = 1e5; GT558.prototype.ORDER_GAME = 2e5; GT558.prototype.ORDER_AFTER_GAME = 3e5; GT558.prototype.ORDER_EXTERNAL = 4e5; var GT186 = GT558.extend( { initialConstructor_0: function () { GT558.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT558.prototype.initialConstructor_1.call(this, a); }, loadResources_1: function (a) {}, buttonMenuFullscreen_2: function (a, b) { return a; }, buttonMenuWindowed_2: function (a, b) { return a; }, buttonMenuSoundOn_2: function (a, b) { return a; }, buttonMenuSoundOff_2: function (a, b) { return a; }, buttonMenuMusicOn_2: function (a, b) { return a; }, buttonMenuMusicOff_2: function (a, b) { return a; }, buttonMenuWideAspect_2: function (a, b) { return a; }, buttonMenuNormalAspect_2: function (a, b) { return a; }, buttonMenuAccount_2: function (a, b) { return a; }, buttonMenuHelp_2: function (a, b) { return a; }, buttonMenuLeaveTable_2: function (a, b) { return a; }, buttonMenuPayIn_2: function (a, b) { return a; }, textTime_2: function (a, b) { return a; }, textSessionTime_2: function (a, b) { return a; }, textBalance_2: function (a, b) { return a; }, textRoundId_2: function (a, b) { return a; }, textAdminInfo_2: function (a, b) { return a; }, buttonOpenReplay_2: function (a, b) { return a; }, containerReplayDialog_2: function (a, b) { return a; }, containerSessionSummary_2: function (a, b) { return a; }, isReplayDialogModal_2: function (a, b) { return a; }, isSpectatorModeBlockingInput_2: function (a, b) { return a; }, containerPayInDialog_2: function (a, b) { return a; }, containerSessionSettingsDialog_2: function (a, b) { return a; }, containerRCSettingsDialog_2: function (a, b) { return a; }, containerAutoplaySettingsDialog_2: function (a, b) { return a; }, containerWatcherInfo_2: function (a, b) { return a; }, containerRealityCheckDialogIntervalTime_2: function (a, b) { return a; }, containerRealityCheckDialogLeavingGame_2: function (a, b) { return a; }, containerRealityCheckDialogIntervalRounds_2: function (a, b) { return a; }, containerErrorDialog_2: function (a, b) { return a; }, containerMaximumWinReachedDialog_2: function (a, b) { return a; }, containerResponsibleGamingInfoDialog_2: function (a, b) { return a; }, containerClientVersionInfo_2: function (a, b) { return a; }, hasReplayFeature_2: function (a, b) { return a; }, buttonOpenContextMenu_2: function (a, b) { return a; }, buttonCloseContextMenu_2: function (a, b) { return a; }, layoutSafeAreaHeightTop_2: function (a, b) { return a; }, containerGameMenu_2: function (a, b) { return a; }, containerGameMenuExtended_2: function (a, b) { return a; }, containerClock_2: function (a, b) { return a; }, containerPortraitModeOverlay_2: function (a, b) { return a; }, textClientVersion_2: function (a, b) { return a; }, containerDisableGamblingDialog_2: function (a, b) { return a; }, }, "GT186", [] ), GT339 = GT558.extend( { initialConstructor_0: function () { GT558.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT558.prototype.initialConstructor_1.call(this, a); }, loadResources_1: function (a) {}, buttonMenuAccount_2: function (a, b) { return a; }, buttonMenuFullscreen_2: function (a, b) { return a; }, buttonMenuHelp_2: function (a, b) { return a; }, buttonMenuNormalAspect_2: function (a, b) { return a; }, buttonMenuQuit_2: function (a, b) { return a; }, buttonMenuSoundOff_2: function (a, b) { return a; }, buttonMenuSoundOn_2: function (a, b) { return a; }, buttonMenuWideAspect_2: function (a, b) { return a; }, buttonMenuWindowed_2: function (a, b) { return a; }, buttonPlayNow_2: function (a, b) { return a; }, dropDownFilter_2: function (a, b) { return a; }, fontTooltip_2: function (a, b) { return a; }, imageBorder_2: function (a, b) { return a; }, imageJackpotLogo_2: function (a, b) { return a; }, imageLobbyBanner_2: function (a, b) { return a; }, containerLobbyBanner_2: function (a, b) { return a; }, layoutDesignedHeight_2: function (a, b) { return a; }, layoutDesignedWidth_2: function (a, b) { return a; }, layoutHorizontalAdjustment_2: function (a, b) { return a; }, layoutOverscanLeft_2: function (a, b) { return a; }, layoutOverscanRight_2: function (a, b) { return a; }, layoutOverscanTop_2: function (a, b) { return a; }, layoutOverscanBottom_2: function (a, b) { return a; }, layoutSafeAreaHeightTop_2: function (a, b) { return a; }, layoutWideAspect_2: function (a, b) { return a; }, lobbyJackpotBaseWin_2: function (a, b) { return a; }, maintenanceInfo_2: function (a, b) { return a; }, scrollBarTables_2: function (a, b) { return a; }, scrollBarRooms_2: function (a, b) { return a; }, showAspectButton_2: function (a, b) { return a; }, soundLobby_2: function (a, b) { return a; }, soundLobbyLoopEnd_2: function (a, b) { return a; }, soundLobbyLoopStart_2: function (a, b) { return a; }, subRoomView_2: function (a, b) { return a; }, tableView_2: function (a, b) { return a; }, tableViewBackColor_2: function (a, b) { return a; }, tableViewBackColor2_2: function (a, b) { return a; }, textJackpotMaxBetInfo_2: function (a, b) { return a; }, textJackpotMaxJackpotInfo_2: function (a, b) { return a; }, jackpotCounterReel_2: function (a, b) { return a; }, textPlayerAccount_2: function (a, b) { return a; }, containerErrorScreen_2: function (a, b) { return a; }, progressBar_2: function (a, b) { return a; }, disclaimer_2: function (a, b) { return a; }, textSplashScreen_2: function (a, b) { return a; }, containerInfoPages_2: function (a, b) { return a; }, containerInfoPagesToggleAndCloseButton_2: function (a, b) { return a; }, infoPagesTimeout_2: function (a, b) { return a; }, containerSplashScreen_2: function (a, b) { return a; }, containerCustomLoadingScreen_2: function (a, b) { return a; }, customLoadingScreenPostDelay_2: function (a, b) { return a; }, casinoProgressBar_2: function (a, b) { return a; }, containerDeveloperLogo_2: function (a, b) { return a; }, containerIntroVideo_2: function (a, b) { return a; }, buttonIntroVideoSkip_2: function (a, b) { return a; }, containerInfoPagesBackground_2: function (a, b) { return a; }, containerLobbyIndented_2: function (a, b) { return a; }, containerLobby_2: function (a, b) { return a; }, containerInfoPagesIndicators_2: function (a, b) { return a; }, buttonInfoPagesClose_2: function (a, b) { return a; }, buttonInfoPagesNext_2: function (a, b) { return a; }, buttonInfoPagesToggle_2: function (a, b) { return a; }, textInfoPagesToggleMessage_2: function (a, b) { return a; }, buttonInfoPagesPrev_2: function (a, b) { return a; }, containerOneInfoPageIndicator_2: function (a, b) { return a; }, }, "GT339", [] ), GT140 = Class.extend( { initialConstructor_0: function () { this.clock_show = this.button_contextmenu_show = this.field_currenttime_show = this.field_sessiontime_show = this.field_roundid_show = this.button_replay_show = this.button_fullscreen_show = this.button_widescreen_show = this.button_sound_show = this.button_music_show = this.field_balance_show = this.button_playnow_show = this.button_exit_show = this.button_help_show = this.button_payin_show = this.button_topup_show = this.isShowSessionTime = this.isShowingClock = this.smallScreen = this.useHtml5Lobby = this.noPayin = this.noGameMenuEnabled = this.isRecorderUsed = this.areTopButtonsEnabled = this.isDeepWalletUserSkinEnabled = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.isDeepWalletUserSkinEnabled = this.clock_show = this.button_contextmenu_show = this.field_currenttime_show = this.field_sessiontime_show = this.field_roundid_show = this.button_replay_show = this.button_fullscreen_show = this.button_widescreen_show = this.button_sound_show = this.button_music_show = this.field_balance_show = this.button_playnow_show = this.button_exit_show = this.button_help_show = this.button_payin_show = this.button_topup_show = this.isShowSessionTime = this.isShowingClock = this.smallScreen = this.useHtml5Lobby = this.noPayin = this.noGameMenuEnabled = this.isRecorderUsed = this.areTopButtonsEnabled = this.isDeepWalletUserSkinEnabled = !1; this.areTopButtonsEnabled = !0; this.isRecorderUsed = null != a.getParameter_1("playrecord") || null != a.getParameter_1("record"); this.noPayin = this.noGameMenuEnabled = !1; this.smallScreen = null != a.getParameter_1("screensize") && a.getParameter_1("screensize").equals_1("small"); var b = a.getParameter_1("html5lobby"); this.useHtml5Lobby = null != b && (b.equals_1("1") || b.equals_1("true")); this.hasSkinId_2(a, "deepwalletuser") || this.hasSkinId_2(a, "chartwell") ? (this.isDeepWalletUserSkinEnabled = !0) : this.hasSkinId_2(a, "notopbuttons") ? (this.areTopButtonsEnabled = !1) : this.hasSkinId_2(a, "nogamemenu") ? (this.noGameMenuEnabled = !0) : this.hasSkinId_2(a, "nopayinbutton") && (this.noPayin = !0); b = this.isShowParameterEnabled_3(a, "gamemenu.show", !this.noGameMenuEnabled); this.setShowClock_1(this.isParameterEnabled_2(a, "showclock")); this.setShowSessionTime_1(this.isParameterEnabled_2(a, "showsessiontime")); this.setTopUpButtonShow_1(this.isShowParameterEnabled_3(a, "button.topup.show", b && this.areTopButtonsEnabled)); this.setPayInButtonShow_1(this.isShowParameterEnabled_3(a, "button.payin.show", b && this.areTopButtonsEnabled && !this.noPayin)); this.setHelpButtonShow_1(this.isShowParameterEnabled_3(a, "button.help.show", b && this.areTopButtonsEnabled)); this.setExitButtonShow_1(this.isShowParameterEnabled_3(a, "button.exit.show", b && this.areTopButtonsEnabled)); this.isDeepWalletUserSkinEnabled && (this.setTopUpButtonShow_1(!1), this.setPayInButtonShow_1(!1), this.setHelpButtonShow_1(!1), this.setExitButtonShow_1(!1)); this.setPlayNowButtonShow_1(this.isShowParameterEnabled_3(a, "button.playnow.show", !0)); this.setBalanceFieldShow_1(this.isShowParameterEnabled_3(a, "field.balance.show", b)); this.setMusicButtonShow_1(this.isShowParameterEnabled_3(a, "button.music.show", b)); this.setSoundButtonShow_1(this.isShowParameterEnabled_3(a, "button.sound.show", b)); this.setWidescreenButtonShow_1(this.isShowParameterEnabled_3(a, "button.widescreen.show", b)); this.setFullscreenButtonShow_1(this.isShowParameterEnabled_3(a, "button.fullscreen.show", b)); this.isDeepWalletUserSkinEnabled && this.setFullscreenButtonShow_1(!1); this.setReplayButtonShow_1(this.isShowParameterEnabled_3(a, "button.replay.show", b)); this.setRoundIdFieldShow_1(this.isShowParameterEnabled_3(a, "field.roundid.show", b)); this.setSessionTimeFieldShow_1(this.isShowParameterEnabled_3(a, "field.sessiontime.show", !1) || this.isShowSessionTime); this.setCurrentTimeFieldShow_1(this.isShowParameterEnabled_3(a, "field.currenttime.show", b)); this.isRecorderUsed && (this.setSessionTimeFieldShow_1(!1), this.setCurrentTimeFieldShow_1(!1)); this.setContextMenuButtonShow_1(this.isShowParameterEnabled_3(a, "button.contextmenu.show", b)); this.setClockShow_1(this.isShowParameterEnabled_3(a, "clock.show", !1) || this.isShowingClock); }, hasSkinId_2: function (a, b) { var d = a.getParameter_1("skin"); if (null == d) return !1; for (var d = GT1677.prototype.tokenize_2(d, ",.:; "), e = 0; e < d.length; e++) if (GT1677.prototype.equalsIgnoreCaseAZ_2(d[e], b)) return !0; return !1; }, setShowSessionTime_1: function (a) { this.isShowSessionTime = a; }, setShowClock_1: function (a) { this.isShowingClock = a; }, setTopUpButtonShow_1: function (a) { this.button_topup_show = a; }, setPayInButtonShow_1: function (a) { this.button_payin_show = a; }, setHelpButtonShow_1: function (a) { this.button_help_show = a; }, setExitButtonShow_1: function (a) { this.button_exit_show = a; }, setPlayNowButtonShow_1: function (a) { this.button_playnow_show = a; }, setBalanceFieldShow_1: function (a) { this.field_balance_show = a; }, setMusicButtonShow_1: function (a) { this.button_music_show = a; }, setSoundButtonShow_1: function (a) { this.button_sound_show = a; }, setWidescreenButtonShow_1: function (a) { this.button_widescreen_show = a; }, setFullscreenButtonShow_1: function (a) { this.button_fullscreen_show = a; }, setReplayButtonShow_1: function (a) { this.button_replay_show = a; }, setRoundIdFieldShow_1: function (a) { this.field_roundid_show = a; }, setSessionTimeFieldShow_1: function (a) { this.field_sessiontime_show = a; }, setCurrentTimeFieldShow_1: function (a) { this.field_currenttime_show = a; }, setContextMenuButtonShow_1: function (a) { this.button_contextmenu_show = a; }, setClockShow_1: function (a) { this.clock_show = a; }, decorateCasinoGameOverlaySkin_1: function (a) { a.addDecorator_1( new GT42( Integer.MAX_VALUE, this.button_topup_show, this.button_payin_show, this.button_help_show, this.button_exit_show, this.field_balance_show, this.button_music_show, this.button_sound_show, this.button_widescreen_show, this.button_fullscreen_show, this.button_replay_show, this.field_roundid_show, this.field_sessiontime_show, this.field_currenttime_show, this.clock_show, this.button_contextmenu_show ) ); }, decorateCasinoLobbySkin_1: function (a) { this.useHtml5Lobby && a.addDecorator_1(new GT366(GT558.prototype.ORDER_AFTER_GAME, this.smallScreen)); a.addDecorator_1( new GT93( Integer.MAX_VALUE, this.button_topup_show, this.button_help_show, this.button_exit_show, this.button_playnow_show, this.field_balance_show, this.button_sound_show, this.button_widescreen_show, this.button_fullscreen_show ) ); }, }, "GT140", [] ); GT140.prototype.isShowParameterEnabled_3 = function (a, b, d) { return null != a.getParameter_1(b) ? this.isParameterEnabled_2(a, b) : d; }; GT140.prototype.isParameterEnabled_2 = function (a, b) { return 1 == GT1672.prototype.stringToInt_1(a.getParameter_1(b)); }; var GT49 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, buttonMenuFullscreen_2: function (a, b) { return null; }, buttonMenuWindowed_2: function (a, b) { return null; }, }, "GT49", [] ), GT109 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, buttonMenuPayIn_2: function (a, b) { return null; }, buttonMenuLeaveTable_2: function (a, b) { return null; }, buttonMenuAccount_2: function (a, b) { return null; }, buttonMenuHelp_2: function (a, b) { return null; }, }, "GT109", [] ), GT42 = GT186.extend( { initialConstructor_0: function () { this.showContextMenuButtons = this.showClock = this.showCurrentTime = this.showSessionTime = this.showRoundId = this.showReplayButton = this.showFullscreenButtons = this.showWidescreenButtons = this.showSoundButtons = this.showMusicButtons = this.showBalance = this.showExitButton = this.showHelpButton = this.showPayInButton = this.showTopUpButton = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_16: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A) { this.showContextMenuButtons = this.showClock = this.showCurrentTime = this.showSessionTime = this.showRoundId = this.showReplayButton = this.showFullscreenButtons = this.showWidescreenButtons = this.showSoundButtons = this.showMusicButtons = this.showBalance = this.showExitButton = this.showHelpButton = this.showPayInButton = this.showTopUpButton = !1; GT186.prototype.initialConstructor_1.call(this, a); this.showTopUpButton = b; this.showPayInButton = d; this.showHelpButton = e; this.showExitButton = f; this.showBalance = g; this.showMusicButtons = k; this.showSoundButtons = m; this.showWidescreenButtons = n; this.showFullscreenButtons = p; this.showReplayButton = q; this.showRoundId = r; this.showSessionTime = t; this.showCurrentTime = u; this.showClock = B; this.showContextMenuButtons = A; }, buttonMenuAccount_2: function (a, b) { return this.showTopUpButton ? a : null; }, buttonMenuPayIn_2: function (a, b) { return this.showPayInButton ? a : null; }, buttonMenuHelp_2: function (a, b) { return this.showHelpButton ? a : null; }, buttonMenuLeaveTable_2: function (a, b) { return this.showExitButton ? a : null; }, textBalance_2: function (a, b) { return this.showBalance ? a : null; }, buttonMenuMusicOff_2: function (a, b) { return this.showMusicButtons ? a : null; }, buttonMenuMusicOn_2: function (a, b) { return this.showMusicButtons ? a : null; }, buttonMenuSoundOff_2: function (a, b) { return this.showSoundButtons ? a : null; }, buttonMenuSoundOn_2: function (a, b) { return this.showSoundButtons ? a : null; }, buttonMenuWideAspect_2: function (a, b) { return this.showWidescreenButtons ? a : null; }, buttonMenuNormalAspect_2: function (a, b) { return this.showWidescreenButtons ? a : null; }, buttonMenuFullscreen_2: function (a, b) { return this.showFullscreenButtons ? a : null; }, buttonMenuWindowed_2: function (a, b) { return this.showFullscreenButtons ? a : null; }, buttonOpenReplay_2: function (a, b) { return this.showReplayButton ? a : null; }, hasReplayFeature_2: function (a, b) { return a; }, textRoundId_2: function (a, b) { return this.showRoundId ? a : null; }, textSessionTime_2: function (a, b) { return this.showSessionTime ? a : null; }, textTime_2: function (a, b) { return this.showCurrentTime ? a : null; }, containerClock_2: function (a, b) { return this.showClock ? a : null; }, buttonOpenContextMenu_2: function (a, b) { return this.showContextMenuButtons ? a : null; }, buttonCloseContextMenu_2: function (a, b) { return this.showContextMenuButtons ? a : null; }, }, "GT42", [] ), GT93 = GT339.extend( { initialConstructor_0: function () { this.showFullscreenButtons = this.showWidescreenButtons = this.showSoundButtons = this.showBalance = this.showPlayNowButton = this.showExitButton = this.showHelpButton = this.showTopUpButton = !1; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.showFullscreenButtons = this.showWidescreenButtons = this.showSoundButtons = this.showBalance = this.showPlayNowButton = this.showExitButton = this.showHelpButton = this.showTopUpButton = !1; GT339.prototype.initialConstructor_1.call(this, a); this.showTopUpButton = b; this.showHelpButton = d; this.showExitButton = e; this.showPlayNowButton = f; this.showBalance = g; this.showSoundButtons = k; this.showWidescreenButtons = m; this.showFullscreenButtons = n; }, buttonMenuAccount_2: function (a, b) { return this.showTopUpButton ? a : null; }, buttonMenuHelp_2: function (a, b) { return this.showHelpButton ? a : null; }, buttonMenuQuit_2: function (a, b) { return this.showExitButton ? a : null; }, textPlayerAccount_2: function (a, b) { return this.showBalance ? a : null; }, buttonMenuSoundOff_2: function (a, b) { return this.showSoundButtons ? a : null; }, buttonMenuSoundOn_2: function (a, b) { return this.showSoundButtons ? a : null; }, buttonMenuWideAspect_2: function (a, b) { return this.showWidescreenButtons ? a : null; }, buttonMenuNormalAspect_2: function (a, b) { return this.showWidescreenButtons ? a : null; }, buttonMenuFullscreen_2: function (a, b) { return this.showFullscreenButtons ? a : null; }, buttonMenuWindowed_2: function (a, b) { return this.showFullscreenButtons ? a : null; }, buttonPlayNow_2: function (a, b) { return this.showPlayNowButton ? a : null; }, }, "GT93", [] ), GT970 = Class.extend( { initialConstructor_0: function () { this.elements = this.tvc = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.elements = this.tvc = null; this.tvc = a; }, setListElements_1: function (a) { this.elements = a; for (a = 0; a < this.elements.size_0(); a++) this.elements.elementAt_1(a).listpos = a; this.tvc.updateViewToNewData_1(!0); }, getListElements_0: function () { return this.elements; }, createGUI_1: function (a) { var b = 150, d = 150; null != this.tvc.imageLobbyTable && ((b = this.tvc.imageLobbyTable.getWidth_0()), (d = this.tvc.imageLobbyTable.getHeight_0())); a = new GT1182(this.tvc, a, b, d); a.btnEnter = new GT1559(a, 0, 0, b, d); null != this.tvc.tablehighlight ? (new GT1437(a), new GT1591(a.btnEnter, 0, 0, this.tvc.imageLobbyTable), (b = new GT1437(a.btnEnter)), new GT1591(b, 0, 0, this.tvc.imageLobbyTable), b.setColorTransformation_1(this.tvc.tablehighlight), a.btnEnter.setChildForState_2(GT1236.prototype.DEFAULT, 0), a.btnEnter.setChildForState_2(GT1236.prototype.PRESSED, 1), a.btnEnter.setChildForState_2(GT1236.prototype.MOUSEOVER, 1), a.btnEnter.finishButton_0()) : new GT1591(a, 0, 0, this.tvc.imageLobbyTable); a.txtAddress = new GT1606( a, this.tvc.addressx, this.tvc.addressy, this.tvc.addressAlign | GT1606.prototype.VALIGN_TOP, "", this.tvc.fontAddress, this.tvc.colorAddress, this.tvc.outlineRadiusAddress, this.tvc.outlineColorAddress ); a.cntPayoutText = new GT1437(a); null != this.tvc.imageLobbyTableDetail && ((a.imgDetail = new GT1591(a, this.tvc.detailx, this.tvc.detaily, this.tvc.imageLobbyTableDetail, 0, 0)), (a.unhidecallback = new GT869(a.imgDetail, !1)), a.imgDetail.hide_1(!0)); a.cntUserPic = new GT1437(a); a.cntNicknames = new GT1437(a); if (null != this.tvc.imageTableOccupied) for (a.imgUserPics = [].createArray(this.tvc.imageTableOccupied.length), b = 0; b < a.imgUserPics.length; b++) (a.imgUserPics[b] = new GT1591(a.cntUserPic, this.tvc.occupiedx, this.tvc.occupiedy, this.tvc.imageTableOccupied[b])), a.imgUserPics[b].hide_1(!0); if (null != this.tvc.imageTableOccupiedWinning) for (a.imgUserPicsWinning = [].createArray(this.tvc.imageTableOccupiedWinning.length), b = 0; b < a.imgUserPicsWinning.length; b++) (a.imgUserPicsWinning[b] = new GT1591(a.cntUserPic, this.tvc.occupiedwinx, this.tvc.occupiedwiny, this.tvc.imageTableOccupiedWinning[b])), a.imgUserPicsWinning[b].hide_1(!0); var b = this.tvc.occupiedx, d = this.tvc.occupiedy, e = a.imgUserPics[0]; a.standupanim = new GT653(this.tvc.timer, e, b, d + 90, 500, !0); a.standupanim.addStartCallback_1(new GT870(e, b, d)); a.standupanim.addStartCallback_1(new GT869(e, !1)); a.standupanim.addFinishCallback_1(new GT869(e, !0)); a.standupanim.addFinishCallback_1(new GT870(e, b, d)); a.sitdownanim = new GT653(this.tvc.timer, e, b, d, 500, !0); a.sitdownanim.addStartCallback_1(new GT870(e, b, d + 90)); a.sitdownanim.addStartCallback_1(new GT869(e, !1)); a.sitdownanim.addFinishCallback_1(new GT870(e, b, d)); this.tvc.showlastpayout && ((a.txtPayout = new GT1123( a.cntPayoutText, this.tvc.detailx, this.tvc.detaily, this.tvc.imageLobbyTableDetail.getWidth_0(), Math.div(this.tvc.imageLobbyTableDetail.getHeight_0(), this.tvc.imageLobbyTableDetail.getRows_0()), this.tvc.fontPayout, this.tvc.colorPayout )), a.txtPayout.setHAlign_1(GT1488.prototype.CENTER), a.txtPayout.setVAlign_1(GT1489.prototype.CENTER), a.txtPayout.hide_1(!0)); return a; }, deactivateGUI_1: function (a) { a.cntNicknames.destroyChildren_0(); a.sitdownanim.reset_0(); a.standupanim.reset_0(); for (var b = 0; b < a.imgUserPics.length; b++) a.imgUserPics[b].hide_1(!0); if (null != a.imgUserPicsWinning) for (b = 0; b < a.imgUserPicsWinning.length; b++) a.imgUserPicsWinning[b].hide_1(!0); null != a.txtPayout && a.txtPayout.hide_1(!0); null != a.unhideanim && a.unhideanim.killAndTrigger_1(!1); this.tvc.tablebuttons.removeElement_1(a.btnEnter); null != a.switchanim && (a.switchanim.stop_0(), (a.switchanim = null)); }, activateGUI_2: function (a, b) { var d = this.elements.elementAt_1(b); null != a.switchanim && (a.switchanim.stop_0(), (a.switchanim = null)); 0 < a.tvc.numberOfDetailFrames_0() && ((a.switchanim = new GT187(a.tvc.timer, a.tvc.tableDetailSwitchRandom, d, a.tvc.numberOfDetailFrames_0(), this.tvc)), a.switchanim.start_0(), a.switchanim.setFrame_0()); a.txtAddress.setText_1(d.address); a.tvc.updateTablePayoutText_1(d); a.cntNicknames.destroyChildren_0(); 0 < d.numplayers && (null != a.imgUserPicsWinning && 0 < a.imgUserPicsWinning.length && d.hasWinningUser_0() ? a.imgUserPicsWinning[d.getBetLevel_1(a.imgUserPicsWinning.length)].hide_1(!1) : a.imgUserPics[d.getBetLevel_1(a.imgUserPics.length)].hide_1(!1), 0 < d.nicknames.length_0() && a.tvc.addNicknames_2(a.cntNicknames, d.nicknames)); a.btnEnter.setApplicationData_2(a.tvc.actionID, d.tableindex); a.btnEnter.setActive_1(!0); this.tvc.tablebuttons.addElement_1(a.btnEnter); d.useSpinAnim && a.imgDetail.setSourcePoint_2(0, a.imgDetail.getHeight_0() * d.lastframe); }, updateGUI_2: function (a, b) { var d = this.elements.elementAt_1(b); d.useSpinAnim = !1; d.useSwitchAnim = !1; if (null != a.tvc.imageLobbyTable) { a.tvc.updateTablePayoutText_1(d); a.cntNicknames.destroyChildren_0(); for (var e = 0; e < a.imgUserPics.length; e++) a.imgUserPics[e].hide_1(!0); if (null != a.imgUserPicsWinning) for (e = 0; e < a.imgUserPicsWinning.length; e++) a.imgUserPicsWinning[e].hide_1(!0); 0 < d.numplayers ? (d.hasWinningUser_0() ? null != a.imgUserPicsWinning && a.imgUserPicsWinning[d.getBetLevel_1(a.imgUserPicsWinning.length)].hide_1(!1) : 0 == d.oldnumplayers ? (a.standupanim.reset_0(), a.sitdownanim.start_0()) : a.imgUserPics[d.getBetLevel_1(a.imgUserPics.length)].hide_1(!1), 0 < d.nicknames.length_0() && ((d = a.tvc.addNicknames_2(a.cntNicknames, d.nicknames)), null != d && a.sitdownanim.isRunning_0() && (d.hide_1(!0), a.tvc.timer.triggerCallbackAfter_2(new GT869(d, !1), 400)))) : 0 == d.numplayers && 0 < d.oldnumplayers && (a.sitdownanim.reset_0(), a.standupanim.start_0()); } }, measureGUI_2: function (a, b) {}, getElementCount_0: function () { return this.elements.size_0(); }, getElement_1: function (a) { return this.elements.elementAt_1(a); }, isActiveElement_1: function (a) { return 0 >= this.elements.elementAt_1(a).numplayers || 1 != this.tvc.dropDownSelection; }, }, "GT970", [GT646] ), GT762 = Class.extend( { initialConstructor_0: function () { this.request = this.applet = null; this.timeout = 0; this.response = null; this.responseCode = 0; this.finished = this.running = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.request = this.applet = null; this.timeout = 0; this.response = null; this.responseCode = 0; this.finished = this.running = !1; this.applet = a; this.request = ""; this.timeout = 0; this.response = ""; this.responseCode = 0; this.finished = this.running = !1; }, setURLRequest_2: function (a, b) { this.running || ((this.request = a), (this.timeout = b), (this.finished = !1)); }, runURLRequest_0: function () { this.running || this.finished || this.applet.getURLRequester_1(this.timeout).request_3(this.request, null, this); }, urlRequestCompleted_2: function (a, b) { this.response = a; this.responseCode = b; this.running = !1; this.finished = !0; this.applet.urlRequestHelperCompleted_1(this); }, getRequest_0: function () { return this.request; }, getTimeout_0: function () { return this.timeout; }, getResponse_0: function () { return this.response; }, getResponseCode_0: function () { return this.responseCode; }, isRunning_0: function () { return this.running; }, isFinished_0: function () { return this.finished; }, }, "GT762", [GT865] ), GT697 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT697", [] ); GT697.prototype.KEY_LOADING_PROGRESS = "LOADING_PROGRESS"; GT697.prototype.KEY_ERROR_DESCRIPTION = "ERROR_DESCRIPTION"; GT697.prototype.VALUE_ERROR_DESCRIPTION_DISCONNECTED = "DISCONNECTED"; GT697.prototype.VALUE_ERROR_DESCRIPTION_NO_CONNECTION = "NO CONNECTION"; GT697.prototype.VALUEPREFIX_ERROR_DESCRIPTION_RESOURCE = "RESOURCE:"; GT697.prototype.KEY_KICK_REASON = "KICK_REASON"; GT697.prototype.VALUE_KICK_REASON_INACTIVITY = "1"; GT697.prototype.KEY_ERROR_CODE = "ERROR_CODE"; GT697.prototype.KEY_GAME_MODE = "GAME_MODE"; GT697.prototype.VALUE_GAME_MODE_READY = "READY"; GT697.prototype.VALUE_GAME_MODE_ERROR = "ERROR"; GT697.prototype.VALUE_GAME_MODE_LOBBY = "LOBBY"; GT697.prototype.VALUE_GAME_MODE_SPECTATOR = "SPECTATOR"; GT697.prototype.VALUE_GAME_MODE_SPINNING = "SPINNING"; GT697.prototype.VALUE_GAME_MODE_CLOSED = "CLOSED"; GT697.prototype.VALUE_GAME_MODE_LOADING = "LOADING"; GT697.prototype.VALUE_GAME_MODE_CONNECTING = "CONNECTING"; GT697.prototype.VALUE_GAME_MODE_PAYIN = "PAYIN"; GT697.prototype.VALUE_GAME_MODE_REPLAY = "REPLAY"; GT697.prototype.KEY_STATE = "STATE"; GT697.prototype.KEY_CLIENTVERSION = "CLIENTVERSION"; GT697.prototype.KEY_SERVERVERSION = "SERVERVERSION"; GT697.prototype.KEY_CLOSE = "CLOSE"; GT697.prototype.VALUE_CLOSE_ERR_LOGINFAILED = "ERR_LOGINFAILED"; GT697.prototype.VALUE_CLOSE_CommandID_SERVERVERSION = "CommandID.SERVERVERSION"; GT697.prototype.KEY_SOUND = "SOUND"; GT697.prototype.KEY_MUSIC = "MUSIC"; GT697.prototype.VALUE_TRUE = "TRUE"; GT697.prototype.VALUE_FALSE = "FALSE"; GT697.prototype.KEY_TOOLITTLEMONEY = "TOOLITTLEMONEY"; GT697.prototype.KEY_GAME_ID = "GAME_ID"; GT697.prototype.KEY_CURRENCY = "CURRENCY"; GT697.prototype.KEY_CURRENCYFACTOR = "CURRENCYFACTOR"; GT697.prototype.KEY_BALANCE = "BALANCE"; GT697.prototype.KEY_PAID = "PAID"; GT697.prototype.KEY_BET = "BET"; GT697.prototype.KEY_GAMEGUICREATED = "GAMEGUICREATED"; GT697.prototype.KEY_ENTITYSESSIONID = "ENTITYSESSIONID"; GT697.prototype.KEY_ENTITYPARTICIPATIONID = "ENTITYPARTICIPATIONID"; GT697.prototype.KEY_INCREASESTAKE = "INCREASESTAKE"; GT697.prototype.KEY_INCREASEWIN = "INCREASEWIN"; GT697.prototype.KEY_OPENSHOP = "OPENSHOP"; GT697.prototype.KEY_OPENHELP = "OPENHELP"; GT697.prototype.KEY_OPEN_STARVEGAS_AAMS = "OPEN_STARVEGAS_AAMS"; GT697.prototype.KEY_OPEN_STARVEGAS_AAMSTWO = "OPEN_STARVEGAS_AAMS2"; GT697.prototype.KEY_OPEN_STARVEGAS_EIGHTEENPLUS = "OPEN_STARVEGAS_EIGHTEENPLUS"; GT697.prototype.KEY_OPEN_STARVEGAS_RESPONSIBLEGAMING = "OPEN_STARVEGAS_MENU_RESPONSIBLEGAMING"; GT697.prototype.KEY_OPEN_STARVEGAS_PRIVACY = "OPEN_STARVEGAS_MENU_PRIVACY"; GT697.prototype.KEY_OPEN_STARVEGAS_AGB = "OPEN_STARVEGAS_MENU_AGB"; GT697.prototype.KEY_OPEN_RESPONSIBLEGAMING_DIALOG_MOREINFO = "OPEN_RESPONSIBLEGAMING_DIALOG_MOREINFO"; GT697.prototype.KEY_RECOVERABLE_ERROR_MESSAGE = "RECOVERABLE_ERROR_MESSAGE"; GT697.prototype.KEY_LEAVE_GAME = "LEAVE_GAME"; GT697.prototype.KEY_OVERRIDE_MAXBET = "OVERRIDE_MAXBET"; GT697.prototype.KEY_OVERRIDE_MINBET = "OVERRIDE_MINBET"; GT697.prototype.KEY_MINBET = "MINBET"; GT697.prototype.KEY_MAXBET = "MAXBET"; GT697.prototype.KEY_MAXIMUMROUNDWIN = "MAXIMUMROUNDWIN"; GT697.prototype.KEY_WAITINGFORSERVER = "WAITINGFORSERVER"; GT697.prototype.KEY_EXTERNALLOGGING = "EXTERNALLOGGING"; GT697.prototype.KEY_OPEN_PLURIUS_SETTINGS = "OPEN_PLURIUSSETTINGS"; GT697.prototype.KEY_JACKPOT_SERVICE_EVENT = "GJS"; GT697.prototype.WRAPPERV2_PROTOCOL_VERSION = "0.2"; GT697.prototype.IDENTIFIER_STATE = "state"; GT697.prototype.IDENTIFIER_EVENT = "event"; GT697.prototype.IDENTIFIER_ACTION = "action"; GT697.prototype.IDENTIFIER_ERROR = "error"; GT697.prototype.IDENTIFIER_CONFIG = "config"; GT697.prototype.ERROR_RESOURCELOADINGFAILED = "resourceLoadingFailed"; GT697.prototype.ERROR_ENTRY_DESCRIPTION = "description"; GT697.prototype.STATE_LOADING = "Loading"; GT697.prototype.STATE_LOBBY = "Lobby"; GT697.prototype.STATE_INIT = "Init"; GT697.prototype.STATE_BEFORESPIN = "BeforeSpin"; GT697.prototype.STATE_SPINNING = "Spinning"; GT697.prototype.STATE_WINANIMATIONS = "WinAnimations"; GT697.prototype.STATE_BEFOREGAMBLE = "BeforeGamble"; GT697.prototype.STATE_GAMBLE = "Gamble"; GT697.prototype.STATE_COLLECTWIN = "CollectWin"; GT697.prototype.STATE_FREEGAMESSTART = "FreeGamesStart"; GT697.prototype.STATE_FREEGAMESBEFORESPIN = "FreeGamesBeforeSpin"; GT697.prototype.STATE_FREEGAMESSPINNING = "FreeGamesSpinning"; GT697.prototype.STATE_FREEGAMESMORE = "FreeGamesMore"; GT697.prototype.STATE_FREEGAMESEND = "FreeGamesEnd"; GT697.prototype.STATE_COLLECTVISUALIZATION = "CollectVisualization"; GT697.prototype.STATE_SPECIALWINVISUALIZATION = "SpecialWinVisualization"; GT697.prototype.STATE_SUPERGAMES = "SuperGames"; GT697.prototype.STATE_UNDEFINED = "Undefined"; GT697.prototype.STATE_ENTRY_TOTALBET = "totalBet"; GT697.prototype.STATE_ENTRY_WIN = "win"; GT697.prototype.STATE_ENTRY_BALANCE = "balance"; GT697.prototype.STATE_ENTRY_AUTOPLAY = "autoplay"; GT697.prototype.STATE_ENTRY_FREESPINSWON = "freespinsWon"; GT697.prototype.STATE_ENTRY_FREESPINSPLAYED = "freespinsPlayed"; GT697.prototype.STATE_ENTRY_HASSPECIALWINVIS = "hasSpecialWinVisualization"; GT697.prototype.STATE_ENTRY_ISSPECTATOR = "isSpectator"; GT697.prototype.STATE_ENTRY_ISREPLAY = "isReplay"; GT697.prototype.STATE_ENTRY_TOOLITTLEMONEYTOPLAY = "hasTooLittleMoneyToPlay"; GT697.prototype.STATE_ENTRY_HASOPENROUND = "hasOpenRound"; GT697.prototype.STATE_ENTRY_GAMEMODE = "gameMode"; GT697.prototype.CONFIG_ENTRY_BALANCE = "balance"; GT697.prototype.CONFIG_ENTRY_TOTALBET = "totalBet"; GT697.prototype.CONFIG_ENTRY_MINBET = "minBet"; GT697.prototype.CONFIG_ENTRY_MAXBET = "maxBet"; GT697.prototype.CONFIG_ENTRY_MAXLINES = "maxLines"; GT697.prototype.CONFIG_ENTRY_LINES = "lines"; GT697.prototype.CONFIG_ENTRY_GAMEMODE = "gameMode"; GT697.prototype.CONFIG_ENTRY_BASEBET = "baseBet"; GT697.prototype.CONFIG_ENTRY_CURRENCY = "currency"; GT697.prototype.CONFIG_ENTRY_CURRENCYFACTOR = "currencyFactor"; GT697.prototype.CONFIG_ENTRY_HASJACKPOT = "hasJackpot"; GT697.prototype.CONFIG_ENTRY_VERSION = "version"; GT697.prototype.EVENT_LOADINGPROGRESS = "loadingProgress"; GT697.prototype.EVENT_BETCHANGE = "betChange"; GT697.prototype.EVENT_LINECHANGE = "linesChange"; GT697.prototype.EVENT_GAMEMODECHANGE = "gameModeChange"; GT697.prototype.EVENT_KICKEDBYSERVER = "kickedByServer"; GT697.prototype.EVENT_WAITINGFORSERVER = "waitingForServer"; GT697.prototype.EVENT_PAYTABLE = "paytable"; GT697.prototype.EVENT_PAYTABLE_UPDATE = "paytable_update"; GT697.prototype.EVENT_PAYTABLENEXTBUTTONPRESSED = "paytableNextButtonPressed"; GT697.prototype.EVENT_DISCONNECT = "disconnect"; GT697.prototype.EVENT_GAMBLEWIN = "gambleWin"; GT697.prototype.EVENT_GAMBLELOSS = "gambleLoss"; GT697.prototype.EVENT_GAMECLOSING = "gameClosing"; GT697.prototype.EVENT_OVERRIDEMAXBET = "overrideMaxbet"; GT697.prototype.EVENT_OVERRIDEMINBET = "overrideMinbet"; GT697.prototype.EVENT_TOOLITTLEMONEY = "tooLittleMoneyToPlay"; GT697.prototype.EVENT_ENTITYSESSIONID = "entitySessionId"; GT697.prototype.EVENT_ENTITYPARTICIPATIONID = "entityParticipationId"; GT697.prototype.EVENT_SESSIONTIME = "sessionTime"; GT697.prototype.EVENT_SESSIONSUMMARY = "sessionSummary"; GT697.prototype.EVENT_VIEWACCOUNTHISTORY = "viewAccountHistory"; GT697.prototype.EVENT_AUTOPLAY = "autoPlayValues"; GT697.prototype.EVENT_AUTOPLAYMETERCHANGE = "autoPlayMeterChange"; GT697.prototype.EVENT_AUTOPLAYMETERCANCELBUTTON = "autoPlayMeterCancelButton"; GT697.prototype.EVENT_GAMBLESTEPS = "gambleSteps"; GT697.prototype.EVENT_WAITFORCOLLECT = "waitForCollect"; GT697.prototype.EVENT_TOTALROUNDWINCHANGED = "totalRoundWinChanged"; GT697.prototype.EVENT_INGAMETRACKING = "inGameTracking"; GT697.prototype.EVENT_VIEWDATA = "viewdata"; GT697.prototype.EVENT_FREEROUNDSFINISHED = "freeSpinsFinished"; GT697.prototype.EVENT_REALITYCHECKSHOWN = "realityCheckShown"; GT697.prototype.EVENT_RECONNECTREQUESTED = "reconnectRequested"; GT697.prototype.EVENT_ENTRY_VALUE = "value"; GT697.prototype.EVENT_ENTRY_BASEBET = "baseBet"; GT697.prototype.EVENT_ENTRY_LINES = "lines"; GT697.prototype.EVENT_ENTRY_GAMEMODE = "gameMode"; GT697.prototype.EVENT_ENTRY_BETMULTIPLIER = "betMultiplier"; GT697.prototype.EVENT_ENTRY_WASMAXBETREQUESTED = "wasMaxBetRequested"; GT697.prototype.EVENT_ENTRY_WASMINBETREQUESTED = "wasMinBetRequested"; GT697.prototype.EVENT_ENTRY_KICKREASON = "kickReason"; GT697.prototype.EVENT_ENTRY_DESCRIPTION = "description"; GT697.prototype.EVENT_ENTRY_SHOWN = "shown"; GT697.prototype.EVENT_ENTRY_HIDDEN = "hidden"; GT697.prototype.EVENT_ENTRY_MOVEIN = "movein"; GT697.prototype.EVENT_ENTRY_MOVEOUT = "moveout"; GT697.prototype.EVENT_ENTRY_BALANCE = "balance"; GT697.prototype.EVENT_ENTRY_SUMSTAKES = "sumStakes"; GT697.prototype.EVENT_ENTRY_SUMWINNINGS = "sumWinnings"; GT697.prototype.EVENT_ENTRY_WINLOSSBALANCE = "winlossbalance"; GT697.prototype.EVENT_ENTRY_OLDPAGE = "oldPage"; GT697.prototype.EVENT_ENTRY_NEWPAGE = "newPage"; GT697.prototype.EVENT_ENTRY_TOTALPAGES = "totalPages"; GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLESTEPS = "possibleGambleSteps"; GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLEAMOUNT = "possibleGambleAmount"; GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLEWIN = "possibleGambleWin"; GT697.prototype.EVENT_ENTRY_NUMBEROFGAMBLEWINS = "numberOfGambleWins"; GT697.prototype.EVENT_ENTRY_GAMBLEHISTORY = "gambleHistory"; GT697.prototype.EVENT_ENTRY_ANIMATIONDURATION = "animationDuration"; GT697.prototype.EVENT_ENTRY_ROUNDID = "roundID"; GT697.prototype.EVENT_IGT_ID = "id"; GT697.prototype.EVENT_IGT_DATA = "data"; GT697.prototype.ACTION_NAME_OVERRIDEMAXBET = "overrideMaxbet"; GT697.prototype.ACTION_NAME_OVERRIDEMINBET = "overrideMinbet"; GT697.prototype.ACTION_NAME_PAYTABLE = "paytable"; GT697.prototype.ACTION_NAME_PAYTABLENEXT = "paytableNext"; GT697.prototype.ACTION_NAME_RECONNECT = "reconnect"; GT697.prototype.ACTION_NAME_AUTOPLAYON = "autoplayOn"; GT697.prototype.ACTION_NAME_AUTOPLAYOFF = "autoplayOff"; GT697.prototype.ACTION_NAME_AUTOPLAYMETER = "autoplayMeter"; GT697.prototype.ACTION_NAME_AUTOPLAYMETERRESET = "autoplayMeterReset"; GT697.prototype.ACTION_NAME_BET = "bet"; GT697.prototype.ACTION_NAME_GAMEMODE = "gameMode"; GT697.prototype.ACTION_NAME_DOSTOP = "doStop"; GT697.prototype.ACTION_NAME_PAUSERENDERING = "pauseRendering"; GT697.prototype.ACTION_NAME_RESUMERENDERING = "resumeRendering"; GT697.prototype.ACTION_NAME_REQUESTLEAVEGAME = "requestLeaveGame"; GT697.prototype.ACTION_NAME_RECONNECTWITHNEWLOGINTOKEN = "reconnectWithNewLoginToken"; GT697.prototype.ACTION_NAME_STOPAUTOPLAYATROUNDFINISH = "stopAutoplayAtRoundFinish"; GT697.prototype.ACTION_NAME_COLLECT = "collect"; GT697.prototype.ACTION_NAME_COLLECTCONFIRM = "collectConfirm"; GT697.prototype.ACTION_NAME_COLLECTHANDPAY = "collectHandpay"; GT697.prototype.ACTION_NAME_SOUND_OFF = "soundOff"; GT697.prototype.ACTION_NAME_SOUND_ON = "soundOn"; GT697.prototype.ACTION_NAME_MUSIC_OFF = "musicOff"; GT697.prototype.ACTION_NAME_MUSIC_ON = "musicOn"; GT697.prototype.ACTION_NAME_TOTALROUNDWIN = "totalRoundWin"; GT697.prototype.ACTION_ENTRY_VALUE = "value"; GT697.prototype.ACTION_ENTRY_BETMODE = "mode"; GT697.prototype.ACTION_ENTRY_LOGINTOKEN = "loginToken"; GT697.prototype.ACTION_ENTRY_TRANSACTIONTYPE = "transactionType"; var GT707 = Class.extend( { initialConstructor_0: function () { this.factor = 0; this.bets = null; this.minb = this.minbetmulti = this.maxbetmulti = this.independentSetting = this.maxTotalBet = this.minTotalBet = 0; this.possiblebasebet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.factor = 0; this.bets = null; this.minb = this.minbetmulti = this.maxbetmulti = this.independentSetting = this.maxTotalBet = this.minTotalBet = 0; this.possiblebasebet = null; this.minTotalBet = a; this.maxTotalBet = b; this.independentSetting = d; this.maxbetmulti = e; this.minbetmulti = f; this.minb = 0; this.possiblebasebet = null; this.factor = 1; this.bets = [ 1, 2, 3, 4, 5, 8, 10, 15, 20, 30, 40, 50, 80, 100, 150, 200, 300, 400, 500, 800, 1e3, 1500, 2e3, 3e3, 4e3, 5e3, 8e3, 1e4, 15e3, 2e4, 3e4, 4e4, 5e4, 8e4, 1e5, 15e4, 2e5, 3e5, 4e5, 5e5, 8e5, 1e6, 15e5, 2e6, 3e6, 4e6, 5e6, 8e6, 1e7, 15e6, 2e7, 3e7, 4e7, 5e7, 8e7, 1e8, 15e7, 2e8, 3e8, 4e8, 5e8, 8e8, 1e9, 15e8, 2e9, ]; }, setOverrideBets_1: function (a) { this.bets = a; }, setForceIntegerValues_1: function (a) { this.factor = a; }, calculatePossibeBaseBets_0: function () { var a = [].createArray(this.bets.length).init(0); java_lang_System.prototype.arraycopy_5(this.bets, 0, a, 0, this.bets.length); if (1 < this.factor) for (var b = 0; b < a.length; ) if (0 != a[b] % this.factor) { var d = [].createArray(a.length - 1).init(0); java_lang_System.prototype.arraycopy_5(a, 0, d, 0, b); java_lang_System.prototype.arraycopy_5(a, b + 1, d, b, a.length - b - 1); a = [].createArray(d.length).init(0); java_lang_System.prototype.arraycopy_5(d, 0, a, 0, d.length); } else b++; d = this.minb = 0; 0 == this.independentSetting ? ((this.minb = (1 * this.minTotalBet) / this.maxbetmulti), (d = (1 * this.maxTotalBet) / this.minbetmulti)) : ((this.minb = 1 == this.independentSetting ? (1 * this.minTotalBet) / this.minbetmulti : (1 * this.minTotalBet) / this.maxbetmulti), (d = (1 * this.maxTotalBet) / this.maxbetmulti)); for (var e = 0, b = 0; b < a.length; b++) { var f = a[b]; f >= this.minb && f <= d && e++; } this.possiblebasebet = [].createArray(e).init(0); for (b = e = 0; b < a.length; b++) (f = a[b]), f >= this.minb && f <= d && ((this.possiblebasebet[e] = Integer.truncate_1(f)), e++); }, getMinTotalBet_2: function (a, b) { if (null == this.possiblebasebet || 0 == this.possiblebasebet.length) return 0; var d = Integer.MAX_VALUE; if (1 < this.factor || 0 == a) { for (var e = 0; e < b.length; e++) for (var f = this.ggT_2(100, b[e]), g = 0; g < this.possiblebasebet.length; g++) { var k = this.possiblebasebet[g] * b[e]; ((0 == this.possiblebasebet[g] % f && 0 == k % 100) || 0 == a) && k < d && (2 == a || k >= this.minTotalBet) && (d = k); } return d; } return 0 == a ? Integer.truncate_1(Math.floor_1(this.possiblebasebet[0] * this.maxbetmulti)) : Integer.truncate_1(Math.floor_1(this.possiblebasebet[0] * this.minbetmulti)); }, getPossiblebets_0: function () { return this.possiblebasebet; }, ggT_2: function (a, b) { if (0 == a) return b; for (; 0 != b; ) a > b ? (a -= b) : (b -= a); return a; }, }, "GT707", [] ), GT709 = Class.extend( { initialConstructor_0: function () { this.topLeft = this.root = this.parent = null; this.borderThickness = this.cornerRadius = this.actualHeight = this.actualWidth = this.maxHeight = this.minHeight = this.maxWidth = this.minWidth = 0; this.concreteObject = null; this.factor = 0; this.name = null; this.componentSpacing = this.resizePriority = this.order = 0; this.soundResources = this.imageResources = this.listenedComponentKeys = this.placeHolder = null; this.placeholder = !1; this.clickArea = this.componentFactory = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.topLeft = this.root = this.parent = null; this.borderThickness = this.cornerRadius = this.actualHeight = this.actualWidth = this.maxHeight = this.minHeight = this.maxWidth = this.minWidth = 0; this.concreteObject = null; this.factor = 0; this.name = null; this.componentSpacing = this.resizePriority = this.order = 0; this.soundResources = this.imageResources = this.listenedComponentKeys = this.placeHolder = null; this.placeholder = !1; this.clickArea = this.componentFactory = null; this.name = a; this.topLeft = new GT1633(); this.imageResources = new java_util_JavaScriptVector(); this.soundResources = new java_util_JavaScriptVector(); this.borderThickness = 3; }, initialConstructor_3: function (a, b, d) { GT709.prototype.initialConstructor_1.call(this, a); this.parent = b; this.root = d; this.order = 0; }, requestLayout_0: function () { this.setComponentSize_2(this.getMaxWidth_0(), this.getMaxHeight_0()); }, getName_0: function () { return this.name; }, getTopLeft_0: function () { return this.topLeft; }, getComponentX_0: function () { return this.topLeft.x; }, setComponentX_1: function (a) { this.topLeft.x = a; null != this.concreteObject && this.concreteObject.setLocation_2(a, this.topLeft.y); return this; }, getComponentY_0: function () { return this.topLeft.y; }, setComponentY_1: function (a) { this.topLeft.y = a; null != this.concreteObject && this.concreteObject.setLocation_2(this.topLeft.x, a); return this; }, getMinWidth_0: function () { return this.minWidth; }, setMinWidth_1: function (a) { this.minWidth = a; return this; }, getMaxWidth_0: function () { return this.maxWidth; }, setMaxWidth_1: function (a) { this.maxWidth = a; return this; }, getMinHeight_0: function () { return this.minHeight; }, setMinHeight_1: function (a) { this.minHeight = a; return this; }, getMaxHeight_0: function () { return this.maxHeight; }, setMaxHeight_1: function (a) { this.maxHeight = a; return this; }, getFactor_0: function () { return this.factor; }, setFactor_1: function (a) { this.factor = a; }, getMinMaxWidth_0: function () { return new GT1438(this.minWidth, this.maxWidth); }, setComponentSize_2: function (a, b) { null == this.concreteObject || (this.actualHeight == b && this.actualWidth == a) || this.concreteObject.setSize_2(a, b); this.actualWidth = a; this.actualHeight = b; 0 == this.minWidth && 0 == this.maxWidth && (this.maxWidth = this.minWidth = a); 0 == this.minHeight && 0 == this.maxHeight && (this.maxHeight = this.minHeight = b); return this; }, getComponentHeight_0: function () { return this.actualHeight; }, getComponentWidth_0: function () { return this.actualWidth; }, setObject_1: function (a) { this.concreteObject = a; }, getObject_0: function () { return this.concreteObject; }, setParent_1: function (a) { this.parent = a; }, getParent_0: function () { return this.parent; }, setRoot_1: function (a) { this.root = a; }, getRoot_0: function () { return this.root; }, getDragArea_0: function () { if (null != this.concreteObject && null != this.concreteObject.getDragArea_0()) return this.concreteObject.getDragArea_0(); var a = this.getTopLeft_0().x, b = this.getTopLeft_0().y, d = this.getComponentWidth_0(), e = this.getComponentHeight_0(); return new GT1124([a, b, a + d, b, a + d, b + e, a, b + e]); }, getPlaceHolder_0: function () { return this.placeHolder; }, createPlaceHolder_0: function () { return (this.placeHolder = new GT815(this)); }, destroy_0: function () { null != this.concreteObject && (this.concreteObject.destroyObject_0(), (this.concreteObject = null)); }, getOrder_0: function () { return this.order; }, setOrder_1: function (a) { this.order = a; return this; }, getResizePriority_0: function () { return this.resizePriority; }, setResizePriority_1: function (a) { this.resizePriority = a; }, getComponentSpacing_0: function () { return this.componentSpacing; }, setComponentSpacing_1: function (a) { this.componentSpacing = a; return this; }, wrapNumber_1: function (a) { return new Double(a); }, generateSaveState_2: function (a, b) { var d = new java_util_JavaScriptHashtable(); d.put_2("order", this.wrapNumber_1(this.getOrder_0())); d.put_2("x", this.wrapNumber_1(this.topLeft.x)); d.put_2("y", this.wrapNumber_1(this.topLeft.y)); a.put_2("" + this.name, d); }, toString: function () { var a = "[".concat_1("ConsoleComponentImpl"), a = a.concat_1(", name=" + this.name), a = a .concat_1(", topLeft=(") .concat_1("" + this.topLeft.x) .concat_1(", ") .concat_1("" + this.topLeft.y) .concat_1(")"), a = a .concat_1(", minWidht=") .concat_1("" + this.minWidth) .concat_1(", minHeight=") .concat_1("" + this.minHeight), a = a .concat_1(", maxWidht=") .concat_1("" + this.maxWidth) .concat_1(", maxHeight=") .concat_1("" + this.maxHeight); return (a = a.concat_1(", order=" + this.order + ")")); }, notifyDragStart_0: function () { this.concreteObject.notifyDragStart_0(); GT1389.prototype.getInstance_0().removeMask_0(); }, notifyDragEnd_0: function () { this.concreteObject.notifyDragEnd_0(); }, isDropSupported_0: function () { return !1; }, notifyLayoutAreaLeave_0: function () { this.concreteObject.notifyLayoutAreaLeave_0(); }, notifyLayoutAreaEnter_0: function () { this.concreteObject.notifyLayoutAreaEnter_0(); }, setListenedComponentKeys_1: function (a) { this.listenedComponentKeys = a; return this; }, getListenedComponentKeys_0: function () { return null == this.listenedComponentKeys ? this.getName_0() : this.listenedComponentKeys; }, addImageResource_1: function (a) { GT1650.prototype.assertExp_2(null != a, "resource cannot be null"); this.imageResources.contains_1(a) || this.imageResources.addElement_1(a); return this; }, removeImageResource_1: function (a) { GT1650.prototype.assertExp_2(null != a, "resource cannot be null"); this.imageResources.contains_1(a) && this.imageResources.removeElement_1(a); return this; }, addSoundResource_1: function (a) { GT1650.prototype.assertExp_2(null != a, "resource cannot be null"); this.soundResources.addElement_1(a); return this; }, removeSoundResource_1: function (a) { GT1650.prototype.assertExp_2(null != a, "resource cannot be null"); this.soundResources.contains_1(a) && this.soundResources.removeElement_1(a); return this; }, getImageResources_0: function () { return this.imageResources.clone_0(); }, getSoundResources_0: function () { return this.soundResources.clone_0(); }, setPlaceholder_1: function (a) { this.placeholder = a; return this; }, isPlaceholder_0: function () { return this.placeholder; }, setCornerRadius_1: function (a) { this.cornerRadius = a; return this; }, getCornerRadius_0: function () { return this.cornerRadius; }, setBorderThickness_1: function (a) { this.borderThickness = a; return this; }, getBorderThickness_0: function () { return this.borderThickness; }, isAutoLayoutingSupported_0: function () { return !1; }, setComponentFactory_1: function (a) { this.componentFactory = a; return this; }, getComponentFactory_0: function () { return this.componentFactory; }, getClickArea_0: function () { return this.clickArea; }, setClickArea_1: function (a) { this.clickArea = a; }, }, "GT709", [GT918] ), GT1018 = GT709.extend( { initialConstructor_0: function () { this.closeButtonImage = this.pagingNextButtonImage = this.pagingBackButtonImage = this.backgroundImageFileFreeGames = this.backgroundImageFile = this.values = this.labels = null; GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.closeButtonImage = this.pagingNextButtonImage = this.pagingBackButtonImage = this.backgroundImageFileFreeGames = this.backgroundImageFile = this.values = this.labels = null; GT709.prototype.initialConstructor_1.call(this, a); this.labels = new java_util_JavaScriptVector(); this.values = new java_util_JavaScriptVector(); }, addLabel_1: function (a) { null == a || this.labels.contains_1(a) ? GT1650.prototype.assertFailed_1("Trying to insert null or duplicate label into ConsoleDisplay:" + a) : this.labels.addElement_1(a); return this; }, addValue_1: function (a) { null == a || this.values.contains_1(a) ? GT1650.prototype.assertFailed_1("Trying to insert null or duplicate value into ConsoleDisplay: " + a) : this.values.addElement_1(a); return this; }, getLabels_0: function () { return this.labels; }, getValues_0: function () { return this.values; }, setBackgroundImageFile_1: function (a) { this.backgroundImageFile = a; return this; }, getBackgroundImageFile_0: function () { return this.backgroundImageFile; }, setBackgroundImageFileFreeGames_1: function (a) { this.backgroundImageFileFreeGames = a; return this; }, getBackgroundImageFileFreeGames_0: function () { return this.backgroundImageFileFreeGames; }, setPagingBackButtonImage_1: function (a) { this.pagingBackButtonImage = a; return this; }, getPagingBackButtonImage_0: function () { return this.pagingBackButtonImage; }, setPagingNextButtonImage_1: function (a) { this.pagingNextButtonImage = a; return this; }, getPagingNextButtonImage_0: function () { return this.pagingNextButtonImage; }, setCloseButtonImage_1: function (a) { this.closeButtonImage = a; return this; }, getCloseButtonImage_0: function () { return this.closeButtonImage; }, getImageResources_0: function () { var a = GT709.prototype.getImageResources_0.call(this); a.addElement_1(this.backgroundImageFile); a.addElement_1(this.backgroundImageFileFreeGames); a.addElement_1(this.pagingBackButtonImage); a.addElement_1(this.pagingNextButtonImage); a.addElement_1(this.closeButtonImage); return a; }, }, "GT1018", [] ), GT1125 = Class.extend( { initialConstructor_0: function () { this.textAttributes = this.locationSizeAttributes = this.labelText = this.identifier = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.textAttributes = this.locationSizeAttributes = this.labelText = this.identifier = null; this.identifier = a; this.textAttributes = e; this.locationSizeAttributes = d; this.labelText = b; }, getTextAttributes_0: function () { return this.textAttributes; }, setTextAttributes_1: function (a) { this.textAttributes = a; return this; }, getLocationSizeAttributes_0: function () { return this.locationSizeAttributes; }, setLocationSizeAttributes_1: function (a) { this.locationSizeAttributes = a; return this; }, getLabelText_0: function () { return this.labelText; }, setLabelText_1: function (a) { this.labelText = a; return this; }, getIdentifier_0: function () { return this.identifier; }, setIdentifier_1: function (a) { this.identifier = a; return this; }, }, "GT1125", [] ), GT815 = GT709.extend( { initialConstructor_0: function () { this.forComponent = null; GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.forComponent = null; GT709.prototype.initialConstructor_1.call(this, a.getName_0().concat_1("'s placeholder")); this.forComponent = a; this.setComponentX_1(a.getComponentX_0()); this.setComponentY_1(a.getComponentY_0()); this.setComponentSize_2(a.getComponentWidth_0(), a.getComponentHeight_0()); this.setMaxWidth_1(a.getMinMaxWidth_0().getMax_0()); this.setMinWidth_1(a.getMinMaxWidth_0().getMin_0()); this.setParent_1(a.getParent_0()); this.setRoot_1(a.getRoot_0()); this.setResizePriority_1(a.getResizePriority_0()); a.setPlaceholder_1(!0); }, getForComponent_0: function () { return this.forComponent; }, setForComponent_1: function (a) { this.forComponent = a; }, setComponentSize_2: function (a, b) { GT709.prototype.setComponentSize_2.call(this, a, b); null != this.forComponent && this.forComponent.setComponentSize_2(a, b); return this; }, }, "GT815", [] ), GT502 = GT709.extend( { initialConstructor_0: function () { this.gambling = this.panelClose = this.soundAndMusic = this.soundOnly = this.soundOff = null; this.spacerY = this.spacerX = 0; GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gambling = this.panelClose = this.soundAndMusic = this.soundOnly = this.soundOff = null; this.spacerY = this.spacerX = 0; GT709.prototype.initialConstructor_1.call(this, a); }, getSoundOffButton_0: function () { return this.soundOff; }, setSoundOffButton_1: function (a) { this.soundOff = a; return this; }, getSoundOnlyButton_0: function () { return this.soundOnly; }, setSoundOnlyButton_1: function (a) { this.soundOnly = a; return this; }, getSoundAndMusicButton_0: function () { return this.soundAndMusic; }, setSoundAndMusicButton_1: function (a) { this.soundAndMusic = a; return this; }, getGamblingButton_0: function () { return this.gambling; }, setGamblingButton_1: function (a) { this.gambling = a; return this; }, getPanelCloseButton_0: function () { return this.panelClose; }, setPanelCloseButton_1: function (a) { this.panelClose = a; return this; }, getSpacerX_0: function () { return this.spacerX; }, setSpacerX_1: function (a) { this.spacerX = a; return this; }, getSpacerY_0: function () { return this.spacerY; }, setSpacerY_1: function (a) { this.spacerY = a; return this; }, getImageResources_0: function () { for (var a = GT709.prototype.getImageResources_0.call(this), b = this.getButtons_0(), d = 0; d < b.length; d++) null != b[d] && GT1533.prototype.vectorCopy_2(b[d].getImageResources_0(), a); return a; }, getSoundResources_0: function () { for (var a = GT709.prototype.getSoundResources_0.call(this), b = this.getButtons_0(), d = 0; d < b.length; d++) null != b[d] && GT1533.prototype.vectorCopy_2(b[d].getSoundResources_0(), a); return a; }, getButtons_0: function () { return [this.panelClose, this.soundAndMusic, this.soundOff, this.soundOnly, this.gambling]; }, }, "GT502", [] ), GT411 = GT502.extend( { initialConstructor_0: function () { this.layoutRight = this.layoutLeft = null; GT502.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.layoutRight = this.layoutLeft = null; GT502.prototype.initialConstructor_1.call(this, a); }, getLayoutLeftButton_0: function () { return this.layoutLeft; }, setLayoutLeftButton_1: function (a) { this.layoutLeft = a; return this; }, getLayoutRightButton_0: function () { return this.layoutRight; }, setLayoutRightButton_1: function (a) { this.layoutRight = a; return this; }, getImageResources_0: function () { var a = GT502.prototype.getImageResources_0.call(this); null != this.layoutLeft && GT1533.prototype.vectorCopy_2(this.layoutLeft.getImageResources_0(), a); null != this.layoutRight && GT1533.prototype.vectorCopy_2(this.layoutRight.getImageResources_0(), a); return a; }, getSoundResources_0: function () { var a = GT502.prototype.getSoundResources_0.call(this); null != this.layoutLeft && GT1533.prototype.vectorCopy_2(this.layoutLeft.getSoundResources_0(), a); null != this.layoutRight && GT1533.prototype.vectorCopy_2(this.layoutRight.getSoundResources_0(), a); return a; }, }, "GT411", [] ), GT1183 = GT709.extend( { initialConstructor_0: function () { GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT709.prototype.initialConstructor_1.call(this, a); }, }, "GT1183", [] ), GT1126 = Class.extend( { initialConstructor_0: function () { this.textAttributes = this.locationSizeAttributes = this.identifier = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.textAttributes = this.locationSizeAttributes = this.identifier = null; this.identifier = a; this.textAttributes = d; this.locationSizeAttributes = b; }, getTextAttributes_0: function () { return this.textAttributes; }, setTextAttributes_1: function (a) { this.textAttributes = a; return this; }, getLocationSizeAttributes_0: function () { return this.locationSizeAttributes; }, setLocationSizeAttributes_1: function (a) { this.locationSizeAttributes = a; return this; }, getIdentifier_0: function () { return this.identifier; }, setIdentifier_1: function (a) { this.identifier = a; return this; }, }, "GT1126", [] ), GT268 = Class.extend( { initialConstructor_0: function () { this.buttons = null; this.lastDown = this.lastClick = 0; this.mousedown = !1; this.idPrefix = null; this.keepChangedOnUp = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT268.prototype.initialConstructor_3.call(this, a, b, !1); }, initialConstructor_3: function (a, b, d) { this.buttons = null; this.lastDown = this.lastClick = 0; this.mousedown = !1; this.idPrefix = null; this.keepChangedOnUp = !1; this.buttons = a; this.idPrefix = b; this.keepChangedOnUp = d; }, mouseEnter_1: function (a) { this.mousedown && this.lastDown == a.getApplicationID_0() && this.setColorAndGradient_3(a.getApplicationID_0(), GT1634.prototype.black, null); }, mouseLeave_1: function (a) { this.mousedown && this.setColorAndGradient_3( a.getApplicationID_0(), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0().create_0(), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0() ); }, down_1: function (a) { this.mousedown = !0; this.lastDown = a.getApplicationID_0(); this.setColorAndGradient_3(a.getApplicationID_0(), GT1634.prototype.black, null); }, up_1: function (a) { this.mousedown = !1; (a.getApplicationID_0() == this.lastClick && this.keepChangedOnUp) || this.setColorAndGradient_3( a.getApplicationID_0(), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0().create_0(), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0() ); }, setColorAndGradient_3: function (a, b, d) { a = this.buttons.get_1(this.idPrefix + a); null != a && ((a = a.getGuiTextObject_0()), a.setColor_1(b), a.setGradient_1(d)); }, drag_1: function (a) {}, click_1: function (a) { this.lastClick = a.getApplicationID_0(); }, }, "GT268", [GT1066] ), GT188 = Class.extend( { initialConstructor_0: function () { this.mainContainer = this.componentFactory = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mainContainer = this.componentFactory = null; this.componentFactory = new GT189(a); this.mainContainer = a; }, createUIComponents_1: function (a) { a.setMinWidth_1(this.mainContainer.getWidth_0()); a.setMaxWidth_1(this.mainContainer.getWidth_0()); a.setMinHeight_1(this.mainContainer.getHeight_0()); a.setMaxHeight_1(this.mainContainer.getHeight_0()); var b = this.componentFactory.createConsoleTopContainer_1(a); this.convertContainer_2(b.getGUIObject_0(), a.getChildren_0()); a.requestLayout_0(); }, convertContainer_2: function (a, b) { for (var d = 0; d < b.size_0(); d++) { var e = b.get_1(d); if (instanceOf(e, GT461)) { if (instanceOf(e, GT412)) { var f = e; this.componentFactory.createLayoutAreaVisual_4(f.getComponentX_0(), f.getComponentY_0(), f.getComponentWidth_0(), f.getComponentHeight_0()); } else instanceOf(e, GT559) && ((f = e), this.componentFactory.createOverlayAreaVisual_4(f.getComponentX_0(), f.getComponentY_0(), f.getComponentWidth_0(), f.getComponentHeight_0())); this.convertContainer_2(a, e.getChildren_0()); } else this.createUIComponent_1(e); } }, createUIComponent_1: function (a) { instanceOf(a, GT816) ? this.componentFactory.createConsoleOverlayText_1(a) : instanceOf(a, GT1183) ? this.componentFactory.createConsoleText_1(a) : instanceOf(a, GT710) ? this.componentFactory.createConsoleOverlayButton_1(a) : instanceOf(a, GT1073) ? this.componentFactory.createConsoleButton_1(a) : instanceOf(a, GT1018) ? this.componentFactory.createConsoleDisplay_1(a) : instanceOf(a, GT502) ? this.componentFactory.createConsoleComponent_1(a) : instanceOf(a, GT269) && ((a = a.getAdaptee_0()), this.createUIComponent_1(a)); }, getFactory_0: function () { return this.componentFactory; }, }, "GT188", [GT263] ), GT367 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, updateUi_1: function (a) {}, notifyDragStart_0: function () {}, notifyDragEnd_0: function () {}, handleDragStartAnimationFinished_0: function () {}, notifyLayoutAreaEnter_0: function () {}, notifyLayoutAreaLeave_0: function () {}, updateUiTime_1: function (a) {}, setComponentActive_1: function (a) {}, drawMask_1: function (a) {}, getDragArea_0: function () { return null; }, }, "GT367", [GT754] ), GT340 = GT367.extend( { initialConstructor_0: function () { this.betItems = this.closePanel = this.betButtonConfig = this.betButton = this.betContainerBg = this.betContainer = null; this.height = this.width = 0; this.visibleArea = null; this.previousLineSetting = 0; this.previousBaseBets = null; this.betItemImageHeight = this.previousBaseBet = 0; this.betInfoContainer = null; this.previousBetMultiplier = 0; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.betItems = this.closePanel = this.betButtonConfig = this.betButton = this.betContainerBg = this.betContainer = null; this.height = this.width = 0; this.visibleArea = null; this.previousLineSetting = 0; this.previousBaseBets = null; this.betItemImageHeight = this.previousBaseBet = 0; this.betInfoContainer = null; this.previousBetMultiplier = 0; GT367.prototype.initialConstructor_0.call(this); this.betItems = new java_util_JavaScriptHashtable(); this.betButton = b; this.betButtonConfig = d; var e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_LARGE), f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0().create_0(); a = GT1389.prototype.getInstance_0().getDeviceStrategy_0(); var g = GT1533.prototype.getGradient_1(a.getConsoleTheme_0().getLabelGradient_0()); a = b.getX_0(); var k = b.getY_0(); this.betContainer = new GT1437(b.getParent_0(), a, k, 600, 100); this.height = a = 2 * d.getSpacerY_0(); this.width = d.getGridButtonCols_0() * (d.getGridButtonTemplate_0().getComponentWidth_0() + d.getSpacerX_0()) + 3 * d.getSpacerX_0(); this.height += this.addCaption_3(e, f, g); this.height += this.addBetElements_3(e, f, g); d = new GT1073(d.getPanelCloseButton_0().getName_0(), d.getPanelCloseButton_0()); e = d.getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()); f = this.width - e.getColumnWidth_0() - Math.div(3 * a, 2); g = Math.div(a, 2); d.setComponentX_1(f); d.setComponentY_1(g); d.setComponentSize_2(e.getColumnWidth_0() + a, e.getRowHeight_0() + a); d.setSuppressBackground_1(!0); this.closePanel = new GT413(this.betContainer, d); this.closePanel.getGuiButtonObject_0().addButtonClickListener_1(b); this.betContainer.resize_2(this.width, this.height); this.createBackground_0(); b = new GT1559(this.betContainer, 0, 0, this.width, this.height); b.setActive_1(!1); b.setConsumingMouseEventsWhenInactive_1(!0); b.reorderToPosition_1(0); this.moveToProperPlace_0(); this.betContainer.hide_1(!0); }, createBackground_0: function () { GT1560.prototype.destroyIfAlive_1(this.betContainerBg); var a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(); this.betContainerBg = new GT1439( this.betContainer, 0, 0, this.width, this.height, 1, a.getPopupRadius_0(), a.getPopupEdges_0(), a.getPopupBgColor_0().create_0(), a.getPopupBorderColor_0().create_0(), a.getPopupBgAlpha_0().create_0(), a.getPopupBorderAlpha_0().create_0() ); this.betContainerBg.reorderToPosition_1(0); }, addCaption_3: function (a, b, d) { var e = this.betButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(), f = this.betButtonConfig.getGridButtonTemplate_0().getComponentWidth_0(), g = e + this.betButtonConfig.getSpacerY_0(), k = new GT1437(this.betContainer, 2 * this.betButtonConfig.getSpacerX_0(), this.betButtonConfig.getSpacerY_0(), this.width - 4 * this.betButtonConfig.getSpacerX_0(), g); a = new GT1123(k, 0, 0, 3 * f, e, a, b); a.setGradient_1(d); a.setVAlign_1(GT1489.prototype.CENTER); a.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_TOTAL_BET)); this.betItems.put_2(GT340.prototype.CAPTION, a); return g; }, updateSizeFromImageAndPos_4: function (a, b, d, e) { a.setComponentX_1(d); a.setComponentY_1(e); null != b && a.setComponentSize_2(b.getColumnWidth_0(), b.getRowHeight_0()); return a; }, addBetElements_3: function (a, b, d) { var e = this.betButtonConfig.getSpacerX_0(), f = this.betButtonConfig.getSpacerY_0(), g = this.betButtonConfig.getGridButtonRows_0(), k = this.betButtonConfig.getGridButtonCols_0(), m = this.betButtonConfig.getGridButtonTemplate_0().getComponentWidth_0(), n = this.betButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(); this.betItemImageHeight = n; for ( var p = (g + 1) * (this.betItemImageHeight + f) + f, q = new GT1437(this.betContainer, 2 * e, this.height, this.width - 4 * e, p), r = new GT268(this.betItems, GT1607.prototype.BETMENU_BET, !0), t = 0, u = 0; u < g; u++ ) for (var B = 0; B < k; B++) { t = u * k + B; if (t >= this.betButtonConfig.getMaxNumberofGridButtons_0()) break; var A = GT1607.prototype.BETMENU_BET + t, C = this.updateSizeFromImageAndPos_4(this.betButtonConfig.getGridButtonTemplate_0(), null, B * (m + e), 0 + u * (n + f)); C.setFontKey_1(GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON); C.setButtonText_1(""); C.setTextAttributes_1(new GT817().insets_1(5)); C = new GT413(q, new GT1073(A, C)); C.getGuiTextObject_0().setBreakLines_1(!1); C.getGuiButtonObject_0().addButtonListener_1(r); C.getGuiButtonObject_0().setApplicationID_1(t); this.betItems.put_2(A, C); } this.betInfoContainer = new GT1437(q, 0, p - n - f, q.getWidth_0(), n); e = Integer.truncate_1(f); f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_DISPLAY); new GT1440(this.betInfoContainer, 0, 0, q.getWidth_0(), 2, GT1634.prototype.white).setAlpha_1(f.getActive_0().getBorderAlpha_0()); f = new GT1123(this.betInfoContainer, 0, e, Math.div(q.getWidth_0(), 2), n - 15, a, b); f.setGradient_1(d); f.setVAlign_1(GT1489.prototype.CENTER); this.betItems.put_2(GT340.prototype.TOTAL_BET, f); g = GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_TOTAL_BET); k = GT1389.prototype.getInstance_0().getFormatter_0(); instanceOf(k, GT414) && (k.getCurrencySymbol_0().isEmpty_0() || (g = g.concat_1(" (").concat_1(k.getCurrencySymbol_0()).concat_1(")"))); f.setText_1(g); this.isBaseBetDisplayNeeded_0() && ((f = Math.div(q.getWidth_0(), 2)), (a = new GT1123(this.betInfoContainer, f, e, Math.div(q.getWidth_0(), 2), n - 15, a, b)), a.setGradient_1(d), a.setVAlign_1(GT1489.prototype.CENTER), a.setHAlign_1(GT1488.prototype.RIGHT), this.betItems.put_2(GT340.prototype.BET_PER_LINE, a)); return p; }, isBaseBetDisplayNeeded_0: function () { return !0; }, ensureCommonTitleFonts_0: function () { for (var a = 0, b = [GT340.prototype.CAPTION, GT340.prototype.BET_PER_LINE, GT340.prototype.TOTAL_BET], d = 0; d < b.length; d++) { var e = this.betItems.get_1(b[d]); null != e && (a = Math.max_2(a, e.getUsedFontIndex_0())); } for (d = 0; d < b.length; d++) (e = this.betItems.get_1(b[d])), null != e && e.getUsedFontIndex_0() != a && e.setFontSearchStartIndex_1(a); }, moveToProperPlace_0: function () { var a = 0, b = 0; null == this.visibleArea && (this.visibleArea = new GT1553(this.betContainer.getParent_0().getWidth_0(), this.betContainer.getParent_0().getHeight_0())); a = Math.max_2(Math.div(this.visibleArea.width - this.betContainer.getWidth_0(), 2), 0); b = Math.max_2(Math.div(this.visibleArea.height - this.betContainer.getHeight_0(), 2), 0); this.betContainer.move_2(a, b); }, setLocation_2: function (a, b) {}, setSize_2: function (a, b) { GT1560.prototype.isAlive_1(this.betContainer) && this.betContainer.resize_2(a, b); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.betContainer); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.TRIGGERING_EVENT), d = a.getViewData_1(GT1184.prototype.KEEP_DIALOGS_OPEN); null == b || this.betContainer.isHidden_0() || b.getConsoleComponentKey_0().startsWith_1(GT1607.prototype.BETMENU_PREFIX) || (null != d && d.booleanValue_0()) || (b.getId_0() == GT1284.prototype.BET_MENU_BUTTON_PRESSED && (b.getId_0() != GT1284.prototype.BET_MENU_BUTTON_PRESSED || this.betButton == b.getSender_0())) || this.hide_0(); if (!this.betContainer.isHidden_0()) { GT1389.prototype.getInstance_0().enableCatcher_0(); this.visibleArea = a.getViewData_1(GT1184.prototype.VISIBLE_AREA); var e = a.getViewData_1(GT1184.prototype.NUMBER_OF_LINES), f = !1, g = 1; null != e && e.intValue_0() != this.previousLineSetting && ((f = !0), (this.previousLineSetting = e.intValue_0()), (b = a.getViewData_1(GT1184.prototype.PLAYLINES)), (g = b.get_1(b.size_0() - 1))); var k = a.getViewData_1(GT1184.prototype.BET_MULTIPLIERS).toArray_0(), m = GT1389.prototype.getInstance_0().getDeviceStrategy_0().isBetSettingsChangeGameMode_0(), b = m ? a.getViewData_1(GT1184.prototype.GAMEMODES) : a.getViewData_1(GT1184.prototype.BASE_BETS), d = a.getViewData_1(GT1184.prototype.BASE_BET).intValue_0(); a = a.getViewData_1(GT1184.prototype.BET_MULTIPLIER).intValue_0(); if (m) { var n = d, d = a; a = n; } var p = this.previousBaseBet != d, q = this.previousBetMultiplier != a; if (this.isBaseBetDisplayNeeded_0() && (p || q || f)) { var e = GT1389.prototype.getInstance_0().getBetInfo_4(this.betButtonConfig.getBetInfoType_0(), d, a, e.intValue_0()), n = this.betItems.get_1(GT340.prototype.BET_PER_LINE), r = this.betItems.get_1(GT340.prototype.TOTAL_BET); n.setText_1(e); e = Math.max_2(r.getUsedFontIndex_0(), n.getUsedFontIndex_0()); r.setFontSearchStartIndex_1(e); n.setFontSearchStartIndex_1(e); } if (null != b) { n = this.hasBaseBetsChanged_1(b); if ((f = f || n || q) || p) { g = f ? this.getSmallestCommonFont_2(g, b[b.length - 1]) : 0; for (p = 0; p < b.length; p++) if (((q = b[p]), m && (q = k[p]), (e = this.formatMoney_1((a * q) / 1)), (r = GT1607.prototype.BETMENU_BET + p), (r = this.betItems.get_1(r)), null != r)) { r.hide_1(!1); var t = r.getGuiTextObject_0(); null != t && (f && t.setText_1(null), d == q ? (t.setText_1(null), t.setGradient_1(null), t.setColor_1(GT1634.prototype.black)) : (this.previousBaseBet == q || n) && t.setGradient_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0()), f || d == q) && (t.setFontSearchStartIndex_1(g), t.setText_1(e)); e = r.getGuiButtonObject_0(); if (null != e) if (d == q) e.setChildForState_2(GT1236.prototype.INACTIVE, 2), e.setActive_1(!1); else if (this.previousBaseBet == q || n) e.setChildForState_2(GT1236.prototype.INACTIVE, 3), e.setActive_1(!0); } for (p = b.length; p < this.betButtonConfig.getMaxNumberofGridButtons_0(); p++) (r = GT1607.prototype.BETMENU_BET + p), (r = this.betItems.get_1(r)), null != r && r.hide_1(!0); n && 0 < b.length && 0 != d && ((k = null == this.previousBaseBets ? this.betButtonConfig.getMaxNumberofGridButtons_0() - 1 : this.previousBaseBets.length), (k = Math.div(k, this.betButtonConfig.getGridButtonCols_0()) - (0 == k % this.betButtonConfig.getGridButtonCols_0() ? 1 : 0)), (m = Math.div(b.length, this.betButtonConfig.getGridButtonCols_0()) - (0 == b.length % this.betButtonConfig.getGridButtonCols_0() ? 1 : 0)), (k -= m), 0 != k && ((k *= this.betItemImageHeight + this.betButtonConfig.getSpacerY_0()), (this.height -= k), this.betContainer.resize_2(this.width, this.height), this.moveObjectVertically_2(this.betInfoContainer, k), this.createBackground_0())); } this.previousBetMultiplier = a; this.previousBaseBet = d; this.previousBaseBets = [].createArray(b.length).init(0); java_lang_System.prototype.arraycopy_5(b, 0, this.previousBaseBets, 0, b.length); this.ensureCommonTitleFonts_0(); } } }, moveObjectVertically_2: function (a, b) { null != a && a.move_2(a.getX_0(), a.getY_0() - b); }, hasBaseBetsChanged_1: function (a) { if (null == a && null == this.previousBaseBets) return !1; if ((null != a && null == this.previousBaseBets) || (null == a && null != this.previousBaseBets) || a.length != this.previousBaseBets.length) return !0; for (var b = 0; b < a.length; b++) if (a[b] != this.previousBaseBets[b]) return !0; return !1; }, formatMoney_1: function (a) { return this.formatMoney_2(a, !1); }, formatMoney_2: function (a, b) { var d = GT1389.prototype.getInstance_0().getFormatter_0(); return instanceOf(d, GT414) ? d.format_3(a, GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO, b) : d.format_1(a); }, getSmallestCommonFont_2: function (a, b) { var d = "", d = (a * b) / 1, e = GT1389.prototype.getInstance_0().getFormatter_0(), d = instanceOf(e, GT414) ? e.format_3(d, GT711.prototype.OMIT_CENT_NEVER, !1) : e.format_1(d), e = this.betItems.get_1(GT1607.prototype.BETMENU_BET + 0), f = 0; if (null != e) { var g = e.getGuiTextObject_0(); null != g && (g.setText_1(d), (f = e.getGuiTextObject_0().getUsedFontIndex_0()), g.setText_1("")); } return f; }, toggle_0: function () { this.betContainer.hide_1(!this.betContainer.isHidden_0()); this.betContainer.isHidden_0() || this.betContainer.reorder_1(!0); }, hide_0: function () { this.betContainer.hide_1(!0); }, isVisible_0: function () { return !this.betContainer.isHidden_0(); }, drawMask_1: function (a) {}, }, "GT340", [] ); GT340.prototype.CAPTION = "caption"; GT340.prototype.BET_PER_LINE = "bet_per_line"; GT340.prototype.TOTAL_BET = "total_bet"; var GT310 = GT367.extend( { initialConstructor_0: function () { this.guiContainer = null; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.guiContainer = null; GT367.prototype.initialConstructor_0.call(this); 0 == e && 0 == f && ((e = a.getWidth_0()), (f = a.getHeight_0())); this.guiContainer = new GT1437(a, b, d, e, f); }, getGUIObject_0: function () { return this.guiContainer; }, setLocation_2: function (a, b) { GT1560.prototype.isAlive_1(this.guiContainer) && this.guiContainer.move_2(a, b); }, setSize_2: function (a, b) { GT1560.prototype.isAlive_1(this.guiContainer) && this.guiContainer.resize_2(a, b); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.guiContainer); }, isVisible_0: function () { return !this.guiContainer.isHidden_0(); }, drawMask_1: function (a) {}, }, "GT310", [] ), GT311 = GT367.extend( { initialConstructor_0: function () { this.lineItems = this.closePanel = this.lineButtonConfig = this.lineButton = this.lineContainerBg = this.customContainer = this.lineContainer = null; this.height = this.width = 0; this.visibleArea = null; this.lineItemImageHeight = this.previousBaseBet = 0; this.lineGroupPanel = this.previousPlayLines = null; this.offsetHasChanged = !1; this.lineButtonsContainers = null; this.borderSpacer = 0; this.lineInfoContainer = null; this.needToCreateButtons = this.resizeOnce = !1; this.changeTextColorListener = null; this.previousGameMode = this.previousBetMultiplier = 0; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.lineItems = this.closePanel = this.lineButtonConfig = this.lineButton = this.lineContainerBg = this.customContainer = this.lineContainer = null; this.height = this.width = 0; this.visibleArea = null; this.lineItemImageHeight = this.previousBaseBet = 0; this.lineGroupPanel = this.previousPlayLines = null; this.offsetHasChanged = !1; this.lineButtonsContainers = null; this.borderSpacer = 0; this.lineInfoContainer = null; this.needToCreateButtons = this.resizeOnce = !1; this.changeTextColorListener = null; this.previousGameMode = this.previousBetMultiplier = 0; GT367.prototype.initialConstructor_0.call(this); this.lineItems = new java_util_JavaScriptHashtable(); this.lineButton = b; this.lineButtonConfig = d; a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_LARGE); var e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0().create_0(), f = GT1389.prototype.getInstance_0().getDeviceStrategy_0(), f = GT1533.prototype.getGradient_1(f.getConsoleTheme_0().getLabelGradient_0()), g = b.getX_0(), k = b.getY_0(); this.lineContainer = new GT1437(b.getParent_0(), g, k, 600, 100); this.height = this.borderSpacer = this.getBorderSpacer_0(); this.width = d.getGridButtonCols_0() * (d.getGridButtonTemplate_0().getComponentWidth_0() + this.getSpacerX_0()) + 3 * this.getSpacerX_0(); g = new GT1073(d.getPanelCloseButton_0().getName_0(), d.getPanelCloseButton_0()); k = g.getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()); this.height += k.getRowHeight_0() + this.borderSpacer; this.height += this.addLineElements_0(); this.height += this.addCustomElements_3(this.lineContainer, this.width, this.height); this.lineGroupPanel = new GT190(this.lineContainer, this, d, this.lineItems, this.width, this.height); this.height += this.lineGroupPanel.getHeight_0(); this.height += this.makeInfoPanel_4(a, e, f, this.lineContainer); d = this.width - k.getColumnWidth_0() - Math.div(3 * this.borderSpacer, 2); var m = Math.div(this.borderSpacer, 2); g.setComponentX_1(d); g.setComponentY_1(m); g.setComponentSize_2(k.getColumnWidth_0() + this.borderSpacer, k.getRowHeight_0() + this.borderSpacer); g.setSuppressBackground_1(!0); this.closePanel = new GT413(this.lineContainer, g); this.closePanel.getGuiButtonObject_0().addButtonClickListener_1(b); b = new GT1123( this.lineContainer, this.borderSpacer, Math.div(this.borderSpacer, 2), 3 * this.lineButtonConfig.getGridButtonTemplate_0().getComponentWidth_0(), this.lineButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(), a, e ); b.setGradient_1(f); b.setVAlign_1(GT1489.prototype.CENTER); b.setText_1(GT1389.prototype.getInstance_0().getText_1(null == this.lineButtonConfig.getButtonText_0() ? GT1607.prototype.TT_LINES : this.lineButtonConfig.getButtonText_0())); this.lineItems.put_2(GT311.prototype.LINES_LABEL, b); this.lineContainer.resize_2(this.width, this.height); this.createBackground_2(this.width, this.height); b = new GT1559(this.lineContainer, 0, 0, this.width, this.height); b.setActive_1(!1); b.setConsumingMouseEventsWhenInactive_1(!0); b.reorderToPosition_1(0); this.moveToProperPlace_0(); this.lineContainer.hide_1(!0); this.needToCreateButtons = !0; }, createBackground_2: function (a, b) { GT1560.prototype.destroyIfAlive_1(this.lineContainerBg); var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(); this.lineContainerBg = new GT1439( this.lineContainer, 0, 0, a, b, 1, d.getPopupRadius_0(), d.getPopupEdges_0(), d.getPopupBgColor_0().create_0(), d.getPopupBorderColor_0().create_0(), d.getPopupBgAlpha_0().create_0(), d.getPopupBorderAlpha_0().create_0() ); this.lineContainerBg.reorderToPosition_1(0); }, updateSizeFromImageAndPos_4: function (a, b, d, e) { a.setComponentX_1(d); a.setComponentY_1(e); null != b && a.setComponentSize_2(b.getColumnWidth_0(), b.getRowHeight_0()); return a; }, getSpacerX_0: function () { return this.lineButtonConfig.getSpacerX_0(); }, getSpacerY_0: function () { return this.lineButtonConfig.getSpacerY_0(); }, getBorderSpacer_0: function () { return 2 * this.getSpacerY_0(); }, getLineItemImageHeight_0: function () { return this.lineItemImageHeight; }, getButtonByKey_1: function (a) { return this.lineItems.get_1(a); }, setButtonByKey_2: function (a, b) { GT1650.prototype.assertExp_2(null != a && null != b, "Parameters must be provided, cannot be null."); this.lineItems.put_2(a, b); }, addCustomElements_3: function (a, b, d) { return 0; }, addLineElements_0: function () { var a = this.getSpacerX_0(), b = this.getSpacerY_0(), d = this.lineButtonConfig.getGridButtonRows_0(), e = this.lineButtonConfig.getGridButtonCols_0(); this.lineItemImageHeight = this.lineButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(); var b = d * (this.lineItemImageHeight + b), f = new GT1437(this.lineContainer, 2 * a, this.height, this.width - 4 * a, b); this.changeTextColorListener = new GT268(this.lineItems, GT1607.prototype.LINEMENU_LINE); var g = this.calcMaxNumberOfContainers_0(); this.lineButtonsContainers = [].createArray(g); for (g = 0; g < this.lineButtonsContainers.length; g++) this.lineButtonsContainers[g] = new GT1437(f, 0, 0, this.width - 4 * a, b); this.createButtonArray_3(d, e, 1); return b; }, createButtonArray_3: function (a, b, d) { for ( var e = this.lineButtonConfig.getSpacerX_0(), f = this.lineButtonConfig.getSpacerY_0(), g = this.lineButtonConfig.getGridButtonTemplate_0().getComponentWidth_0(), k = this.lineButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(), m = 0, n = 0; n < a * d; n++ ) for (var p = 0; p < b; p++) { m = n * b + p; if (m >= GT311.prototype.MAX_LINE_BUTTONS) break; var q = GT1607.prototype.LINEMENU_LINE + m; if (!this.lineItems.containsKey_1(q)) { var r = Math.div(m, this.lineButtonConfig.getMaxNumberofGridButtons_0()), t = p * (g + e), u = 0 + (n - r * a) * (k + f); GT1650.prototype.assertExp_2(0 <= u, "Wrong configuration. Please check grid rows, columns and max settings."); m = this.makeGuiComponentButton_5(m, q, this.lineButtonsContainers[r], t, u); this.lineItems.put_2(q, m); } } }, makeGuiComponentButton_5: function (a, b, d, e, f) { e = this.updateSizeFromImageAndPos_4(this.lineButtonConfig.getGridButtonTemplate_0(), null, e, f); e.setFontKey_1(GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON); e.setButtonText_1(null); f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0().create_0(); e.setTextAttributes_1(new GT817().insets_1(5).color_1(f)); b = new GT413(d, new GT1073(b, e)); b.getGuiTextObject_0().setBreakLines_1(!1); b.getGuiButtonObject_0().addButtonListener_1(this.changeTextColorListener); b.getGuiButtonObject_0().setApplicationID_1(a); return b; }, makeInfoPanel_4: function (a, b, d, e) { var f = this.width - 4 * this.lineButtonConfig.getSpacerX_0(), g = this.lineItemImageHeight + Integer.truncate_1(1.5 * this.lineButtonConfig.getSpacerY_0()); this.lineInfoContainer = new GT1437(e, 2 * this.lineButtonConfig.getSpacerX_0(), this.height, f, g); e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_DISPLAY); new GT1440(this.lineInfoContainer, 0, 0, f, 2, GT1634.prototype.white).setAlpha_1(e.getActive_0().getBorderAlpha_0()); f = new GT1123(this.lineInfoContainer, 0, Math.div(this.lineButtonConfig.getSpacerY_0(), 2), Math.div(this.lineInfoContainer.getWidth_0(), 2), this.lineItemImageHeight, a, b); f.setGradient_1(d); f.setVAlign_1(GT1489.prototype.CENTER); this.lineItems.put_2(GT311.prototype.TOTAL_BET, f); e = GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_TOTAL_BET); f.setText_1(e); this.isBaseBetDisplayNeeded_0() && ((f = Math.div(this.lineInfoContainer.getWidth_0(), 2)), (e = Math.div(this.lineButtonConfig.getSpacerY_0(), 2)), (a = new GT1123(this.lineInfoContainer, f, e, Math.div(this.lineInfoContainer.getWidth_0(), 2), this.lineItemImageHeight, a, b)), a.setGradient_1(d), a.setVAlign_1(GT1489.prototype.CENTER), a.setHAlign_1(GT1488.prototype.RIGHT), this.lineItems.put_2(GT311.prototype.BET_PER_LINE, a)); return g; }, calcMaxNumberOfContainers_0: function () { return Math.div(Math.max_2(GT311.prototype.MAX_LINE_BUTTONS - 1, 0), this.lineButtonConfig.getMaxNumberofGridButtons_0()) + 1; }, isBaseBetDisplayNeeded_0: function () { return !0; }, ensureCommonTitleFonts_0: function () { for (var a = 0, b = [GT311.prototype.LINES_LABEL, GT311.prototype.BET_PER_LINE, GT311.prototype.TOTAL_BET], d = 0; d < b.length; d++) { var e = this.lineItems.get_1(b[d]); null != e && (a = Math.max_2(a, e.getUsedFontIndex_0())); } for (d = 0; d < b.length; d++) (e = this.lineItems.get_1(b[d])), null != e && e.getUsedFontIndex_0() != a && e.setFontSearchStartIndex_1(a); }, moveToProperPlace_0: function () { var a = 0, b = 0; null == this.visibleArea && (this.visibleArea = new GT1553(this.lineContainer.getParent_0().getWidth_0(), this.lineContainer.getParent_0().getHeight_0())); a = Math.max_2(Math.div(this.visibleArea.width - this.lineContainer.getWidth_0(), 2), 0); b = Math.max_2(Math.div(this.visibleArea.height - this.lineContainer.getHeight_0(), 2), 0); this.lineContainer.move_2(a, b); }, setLocation_2: function (a, b) {}, setSize_2: function (a, b) { GT1560.prototype.isAlive_1(this.lineContainer) && this.lineContainer.resize_2(a, b); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.lineContainer); }, shallBeHidden_1: function (a) { var b = a.getViewData_1(GT1184.prototype.TRIGGERING_EVENT), d = a.getViewData_1(GT1184.prototype.KEEP_DIALOGS_OPEN); a = a.getViewData_1(GT1184.prototype.UPDATE_REASON); return null != b && !this.lineContainer.isHidden_0() && ((!GT1607.prototype.UNDEFINED_KEY.equals_1(b.getConsoleComponentKey_0()) && (b.getId_0() != GT1284.prototype.LINE_MENU_BUTTON_PRESSED || (b.getId_0() == GT1284.prototype.LINE_MENU_BUTTON_PRESSED && this.lineButton != b.getSender_0()))) || (null != d && !d.booleanValue_0() && GT1184.prototype.UR_MODAL_OPEN.equals_1(a))) ? !0 : !1; }, updateUi_1: function (a) { a.getViewData_1(GT1184.prototype.TRIGGERING_EVENT); this.shallBeHidden_1(a) && this.hide_0(); if (!this.lineContainer.isHidden_0()) { GT1389.prototype.getInstance_0().enableCatcher_0(); this.visibleArea = a.getViewData_1(GT1184.prototype.VISIBLE_AREA); var b = a.getViewData_1(GT1184.prototype.NUMBER_OF_LINES), d = a.getViewData_1(GT1184.prototype.GAMEMODE), e = a.getViewData_1(GT1184.prototype.PLAYLINES); if (null != b && null != e) { var f = e.toArray_0(), g = a.getViewData_1(GT1184.prototype.GAMEMODES); if (this.needToCreateButtons) { var k = this.lineButtonConfig.getGridButtonRows_0(), m = this.lineButtonConfig.getGridButtonCols_0(); this.createButtonArray_3(k, m, Math.div(Math.max_2(f.length - 1, 0), this.lineButtonConfig.getMaxNumberofGridButtons_0()) + 1); this.needToCreateButtons = !1; } m = this.lineGroupPanel.isVisible_0(); this.lineGroupPanel.updateUi_1(a); k = this.lineGroupPanel.isVisible_0(); m != k && ((m = this.lineGroupPanel.getHeight_0() - this.lineButtonConfig.getSpacerY_0()), k ? (this.lineInfoContainer.move_2(this.lineInfoContainer.getX_0(), this.lineInfoContainer.getY_0() + m), this.lineContainer.resize_2(this.lineContainer.getWidth_0(), this.lineContainer.getHeight_0() + m)) : (this.lineInfoContainer.move_2(this.lineInfoContainer.getX_0(), this.lineInfoContainer.getY_0() - m), this.lineContainer.resize_2(this.lineContainer.getWidth_0(), this.lineContainer.getHeight_0() - m)), this.createBackground_2(this.lineContainer.getWidth_0(), this.lineContainer.getHeight_0())); m = a.getViewData_1(GT1184.prototype.BASE_BET).intValue_0(); a = a.getViewData_1(GT1184.prototype.BET_MULTIPLIER).intValue_0(); var b = b.intValue_0(), d = d.intValue_0(), n = this.previousBaseBet != m, k = this.previousBetMultiplier != a; if (this.isBaseBetDisplayNeeded_0() && (n || k)) { var k = GT1389.prototype.getInstance_0().getBetInfo_4(this.lineButtonConfig.getBetInfoType_0(), m, a, b), p = this.lineItems.get_1(GT311.prototype.BET_PER_LINE), q = this.lineItems.get_1(GT311.prototype.TOTAL_BET); p.setText_1(k); k = GT1389.prototype.getInstance_0().getBetInfo_4(GT1533.prototype.INFO_TOTAL_BET, m, a, b); q.setText_1(k); k = Math.max_2(q.getUsedFontIndex_0(), p.getUsedFontIndex_0()); q.setFontSearchStartIndex_1(k); p.setFontSearchStartIndex_1(k); } if (null != f) { if (n || this.offsetHasChanged) { this.offsetHasChanged = !1; for (n = m = 0; n < f.length; n++) (p = f[n]), (k = this.lineButton.getLineValueText_3(p, n, e)), p == b && (m = Math.div(n, this.lineButtonConfig.getMaxNumberofGridButtons_0())), (p = GT1607.prototype.LINEMENU_LINE + n), (p = this.lineItems.get_1(p)), null != p && (p.hide_1(!1), (q = p.getGuiTextObject_0()), null != q && (this.updateButtonState_5(p.getGuiButtonObject_0(), p.getGuiTextObject_0(), d, this.previousGameMode, g[n]), null == q.getText_0() && q.setText_1(k))); this.setGridVisible_1(m); 0 != Math.div(f.length, this.lineButtonConfig.getMaxNumberofGridButtons_0()) || this.resizeOnce || ((e = Math.div(this.lineButtonConfig.getMaxNumberofGridButtons_0() - f.length, this.lineButtonConfig.getGridButtonCols_0())), 0 < e && ((this.resizeOnce = !0), (e *= this.lineItemImageHeight + this.lineButtonConfig.getSpacerY_0()), this.lineInfoContainer.move_2(this.lineInfoContainer.getX_0(), this.lineInfoContainer.getY_0() - e), null != this.customContainer && this.customContainer.move_2(this.customContainer.getX_0(), this.customContainer.getY_0() - e), this.lineContainer.resize_2(this.lineContainer.getWidth_0(), this.lineContainer.getHeight_0() - e), this.lineContainer.move_2(this.lineContainer.getX_0(), this.lineContainer.getY_0() + Math.div(e, 2)), this.createBackground_2(this.lineContainer.getWidth_0(), this.lineContainer.getHeight_0()))); for (n = f.length; n < GT311.prototype.MAX_LINE_BUTTONS; n++) (p = GT1607.prototype.LINEMENU_LINE + n), (p = this.lineItems.get_1(p)), null != p && p.hide_1(!0); } this.previousGameMode = d; this.previousBetMultiplier = a; this.previousPlayLines = [].createArray(f.length).init(0); java_lang_System.prototype.arraycopy_5(f, 0, this.previousPlayLines, 0, f.length); this.ensureCommonTitleFonts_0(); } } } }, updateButtonState_5: function (a, b, d, e, f) { if (null != a) { if (e == f || -1 == e) a.setChildForState_2(GT1236.prototype.INACTIVE, 0), a.setActive_1(!0), null != b && b.setGradient_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0()); d == f && (a.setChildForState_2(GT1236.prototype.INACTIVE, 2), a.setActive_1(!1), null != b && ((a = b.getText_0()), b.setText_1(null), b.setGradient_1(null), b.setColor_1(GT1634.prototype.black), b.setText_1(a))); } }, toggle_0: function () { this.lineContainer.hide_1(!this.lineContainer.isHidden_0()); this.lineContainer.isHidden_0() || this.lineContainer.reorder_1(!0); }, hide_0: function () { this.lineContainer.hide_1(!0); }, isVisible_0: function () { return !this.lineContainer.isHidden_0(); }, drawMask_1: function (a) {}, switchGroupPanelTo_1: function (a) { this.offsetHasChanged = !0; this.lineGroupPanel.setLineGroupSelection_1(a); this.setGridVisible_1(a); }, setGridVisible_1: function (a) { for (var b = 0; b < this.lineButtonsContainers.length; b++) b == a ? this.lineButtonsContainers[b].hide_1(!1) : this.lineButtonsContainers[b].hide_1(!0); }, }, "GT311", [] ), GT190 = GT367.extend( { initialConstructor_0: function () { this.lineItems = this.lineButtonConfig = this.linePanel = this.lineGroupContainer = null; this.currentMaxGrid = this.lineGroupSelection = this.y_offset = this.height = this.width = 0; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.lineItems = this.lineButtonConfig = this.linePanel = this.lineGroupContainer = null; this.currentMaxGrid = this.lineGroupSelection = this.y_offset = this.height = this.width = 0; GT367.prototype.initialConstructor_0.call(this); this.lineItems = e; this.linePanel = b; this.lineButtonConfig = d; this.width = f; this.y_offset = g; this.height += this.addLineGroupElements_1(a); this.lineGroupSelection = -1; }, addLineGroupElements_1: function (a) { var b = this.lineButtonConfig.getGridButtonTemplate_0().getComponentHeight_0(), d = this.lineButtonConfig.getGridButtonTemplate_0().getComponentWidth_0(), b = b + 2 * this.lineButtonConfig.getSpacerY_0(), e = this.width - 4 * this.lineButtonConfig.getSpacerX_0(); this.lineGroupContainer = new GT1437(a, 2 * this.lineButtonConfig.getSpacerX_0(), this.y_offset + this.lineButtonConfig.getSpacerY_0(), e, b); a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_DISPLAY); new GT1440(this.lineGroupContainer, 0, 0, e, 2, GT1634.prototype.white).setAlpha_1(a.getActive_0().getBorderAlpha_0()); a = this.lineButtonConfig.getSpacerY_0() - 5; for (var e = this.calcMaxGrid_0(), f = 0; f < e; f++) { var g = Math.max_2(f - 1, 0) * this.lineButtonConfig.getMaxNumberofGridButtons_0() + 1, k = Math.max_2(f, 1) * this.lineButtonConfig.getMaxNumberofGridButtons_0(); this.makePagingButton_8(0, a, GT1607.prototype.LINEMENU_GROUP_BACK + f, this.lineButtonConfig.getButtonImagePagingBack_0(), GT1073.prototype.IMAGE_LEFT, g, k, Math.max_2(f - 1, 0)); g = Math.min_2(f + 1, e) * this.lineButtonConfig.getMaxNumberofGridButtons_0() + 1; k = Math.min_2(f + 2, e) * this.lineButtonConfig.getMaxNumberofGridButtons_0(); k = Math.min_2(GT311.prototype.MAX_LINE_BUTTONS, k); this.makePagingButton_8( this.width - 4 * this.lineButtonConfig.getSpacerX_0() - d, a, GT1607.prototype.LINEMENU_GROUP_NEXT + f, this.lineButtonConfig.getButtonImagePagingNext_0(), GT1073.prototype.IMAGE_RIGHT, g, k, Math.min_2(f + 1, e - 1) ); } return b; }, click_1: function (a) { a = a.getApplicationID_0(); this.linePanel.switchGroupPanelTo_1(a); }, makePagingButton_8: function (a, b, d, e, f, g, k, m) { var n = e.create_1(GT1389.prototype.getInstance_0().getResourceManager_0()), p = new GT1073(d, this.lineButtonConfig.getGridButtonTemplate_0()); p.setButtonImage_1(e); p.setImagePosition_1(f); p.setComponentX_1(a); p.setComponentY_1(b); p.setSuppressBackground_1(!0); p.setSuppressColorTransformation_1(!1); p.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_DEFAULT); p.setButtonText_1("" + g + "-" + k); a = f == GT1073.prototype.IMAGE_LEFT ? new GT817().insets_4(n.getColumnWidth_0(), 0, 0, 0) : new GT817().insets_4(0, n.getColumnWidth_0(), 0, 0); p.setTextAttributes_1(a); p = new GT413(this.lineGroupContainer, p); p.getGuiButtonObject_0().removeButtonClickListener_1(p); p.getGuiButtonObject_0().addButtonClickListener_1(this); p.getGuiButtonObject_0().setApplicationID_1(m); this.lineItems.put_2(d, p); }, calcMaxGrid_0: function () { return Math.div(GT311.prototype.MAX_LINE_BUTTONS, this.lineButtonConfig.getMaxNumberofGridButtons_0()); }, getHeight_0: function () { return this.height; }, setLineGroupSelection_1: function (a) { this.lineGroupSelection = a; for (a = 0; a < this.calcMaxGrid_0(); a++) this.updatePagingButtons_3(GT1607.prototype.LINEMENU_GROUP_BACK, a, 0 < this.lineGroupSelection), this.updatePagingButtons_3(GT1607.prototype.LINEMENU_GROUP_NEXT, a, this.lineGroupSelection < this.currentMaxGrid); }, updatePagingButtons_3: function (a, b, d) { a = this.lineItems.get_1(a + b); null != a && ((b = b != this.lineGroupSelection), a.hide_1(b), a.getGuiButtonObject_0().hide_1(b), a.setComponentActive_1(!b && d)); }, setLocation_2: function (a, b) {}, setSize_2: function (a, b) {}, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.lineGroupContainer); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.PLAYLINES); a = a.getViewData_1(GT1184.prototype.NUMBER_OF_LINES); if (null != b && null != a) if (((b = b.toArray_0()), (a = a.intValue_0()), b.length <= this.lineButtonConfig.getMaxNumberofGridButtons_0())) this.lineGroupContainer.hide_1(!0); else { this.lineGroupContainer.hide_1(!1); for (var d = 0, d = b.length - 1; 0 <= d && b[d] != a; d--); this.lineGroupSelection = Math.div(d, this.lineButtonConfig.getMaxNumberofGridButtons_0()); for (a = Math.div(b.length - 1, this.lineButtonConfig.getMaxNumberofGridButtons_0()) + 1; a <= Math.div(GT311.prototype.MAX_LINE_BUTTONS, this.lineButtonConfig.getMaxNumberofGridButtons_0()); a++) this.destroyButton_1(GT1607.prototype.LINEMENU_GROUP_BACK + a), this.destroyButton_1(GT1607.prototype.LINEMENU_GROUP_NEXT + a); for (a = 0; a <= Math.div(b.length - 1, this.lineButtonConfig.getMaxNumberofGridButtons_0()); a++) { var e = this.lineItems.get_1(GT1607.prototype.LINEMENU_GROUP_BACK + a), d = this.lineItems.get_1(GT1607.prototype.LINEMENU_GROUP_NEXT + a); if (null != e && null != d) { var e = (a + 1) * this.lineButtonConfig.getMaxNumberofGridButtons_0() + 1, f = (a + 2) * this.lineButtonConfig.getMaxNumberofGridButtons_0(); f > b.length && (a == Math.div(b.length - 1, this.lineButtonConfig.getMaxNumberofGridButtons_0()) && (e -= this.lineButtonConfig.getMaxNumberofGridButtons_0()), (f = b[b.length - 1]), (e = "" + e + "-" + f), e.equals_1(d.getGuiTextObject_0().getText_0()) || d.getGuiTextObject_0().setText_1(e), a == Math.div(b.length, this.lineButtonConfig.getMaxNumberofGridButtons_0()) && d.getGuiButtonObject_0().setApplicationID_1(a)); this.currentMaxGrid = Math.div(b.length - 1, this.lineButtonConfig.getMaxNumberofGridButtons_0()); this.updatePagingButtons_3(GT1607.prototype.LINEMENU_GROUP_BACK, a, 0 < this.lineGroupSelection); this.updatePagingButtons_3(GT1607.prototype.LINEMENU_GROUP_NEXT, a, this.lineGroupSelection < this.currentMaxGrid); } } } }, destroyButton_1: function (a) { a = this.lineItems.remove_1(a); GT1560.prototype.destroyIfAlive_1(a); }, isVisible_0: function () { return !this.lineGroupContainer.isHidden_0(); }, }, "GT190", [GT807] ); GT311.prototype.MAX_LINE_BUTTONS = 100; GT311.prototype.LINES_LABEL = "lines_label"; GT311.prototype.BET_PER_LINE = "bet_per_line"; GT311.prototype.TOTAL_BET = "total_bet"; var GT503 = GT367.extend( { initialConstructor_0: function () { this.menuItems = this.menuButton = this.menuContainerBg = this.menuContainer = this.versionNumber = null; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.menuItems = this.menuButton = this.menuContainerBg = this.menuContainer = this.versionNumber = null; GT367.prototype.initialConstructor_0.call(this); this.menuButton = b; a = b.getX_0(); var e = b.getY_0(); this.menuContainer = new GT1437(b.getParent_0(), a, e, 10, 10); a = this.getMenuItems_1(d); this.menuItems = new java_util_JavaScriptHashtable(); for (e = d = b = 0; e < a.length; e++) { var f = a[e]; 0 == b && (b = f.getWidth_0()); 0 == d && (d = f.getHeight_0()); f.move_2(10, 20 + e * (d + 10)); this.menuItems.put_2(f.getIdentifier_0(), f); } a = a.length * d + 10 * (a.length + 3); var e = b + 20, f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(), g = f.getConsoleFont_0().getFonts_1(GT1237.prototype.FCK_LABEL_VERSION); this.versionNumber = null; if ("1".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT503.prototype.PARAM_SHOW_VERSION)) && null != g) { var k = Math.min_2(g.length, 1); d = Math.div(d, 3); this.versionNumber = new GT1490(this.menuContainer, 10, a - Math.div(30, 2), b, d, g[k], f.getLabelColor_0().create_0()); this.versionNumber.setHAlign_1(GT1488.prototype.RIGHT); this.versionNumber.setVAlign_1(GT1489.prototype.TOP); a += d - 10; } this.menuContainer.resize_2(e, a); this.menuContainerBg = new GT1439( this.menuContainer, 0, 0, e, a, 1, f.getPopupRadius_0(), f.getPopupEdges_0(), f.getPopupBgColor_0().create_0(), f.getPopupBorderColor_0().create_0(), f.getPopupBgAlpha_0().create_0(), f.getPopupBorderAlpha_0().create_0() ); this.menuContainerBg.reorderToPosition_1(0); b = new GT1559(this.menuContainer, 0, 0, e, a); b.setActive_1(!1); b.setConsumingMouseEventsWhenInactive_1(!0); b.reorderToPosition_1(0); this.moveMenuToProperPlace_0(); this.menuContainer.hide_1(!0); }, moveMenuToProperPlace_0: function () { var a = 0, b = 0, a = this.menuButton.getX_0(), b = this.menuButton.getY_0(), a = a < Math.div(this.menuButton.getParent_0().getWidth_0(), 2) ? b > this.menuContainer.getHeight_0() ? a : a + this.menuButton.getWidth_0() : b > this.menuContainer.getHeight_0() ? a + this.menuButton.getWidth_0() - this.menuContainer.getWidth_0() : a - this.menuContainer.getWidth_0(), b = b > Math.div(this.menuButton.getParent_0().getHeight_0(), 2) ? b > this.menuContainer.getHeight_0() + 10 ? b - this.menuContainer.getHeight_0() - 10 : b + this.menuButton.getHeight_0() + 10 : b > this.menuContainer.getHeight_0() + 10 ? b - this.menuContainer.getHeight_0() - 10 : b; a + this.menuContainer.getWidth_0() > this.menuButton.getParent_0().getWidth_0() ? (a = this.menuButton.getParent_0().getWidth_0() - this.menuContainer.getWidth_0() - 10) : a < this.menuButton.getParent_0().getX_0() && (a = this.menuButton.getParent_0().getX_0() + 10); b + this.menuContainer.getHeight_0() > this.menuButton.getParent_0().getHeight_0() - 164 ? (b = this.menuButton.getParent_0().getHeight_0() - this.menuContainer.getHeight_0() - 10 - 164) : b < this.menuButton.getParent_0().getY_0() && (b = this.menuButton.getParent_0().getY_0() + 10); this.menuContainer.move_2(a, b); }, getMenuItems_1: function (a) { for (var b = [].createArray(a.size_0()), d = 0, e = 0; e < a.size_0(); e++) { var f = a.get_1(e), f = new GT413(this.menuContainer, f); b[e] = f; f = f.getGuiTextObject_0().getUsedFontIndex_0(); d < f && (d = f); } for (e = 0; e < b.length; e++) b[e].getGuiTextObject_0().setFontSearchStartIndex_1(d); return b; }, setLocation_2: function (a, b) { GT1560.prototype.isAlive_1(this.menuContainer) && this.moveMenuToProperPlace_0(); }, setSize_2: function (a, b) { GT1560.prototype.isAlive_1(this.menuContainer) && this.menuContainer.resize_2(a, b); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.menuContainer); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.TRIGGERING_EVENT), d = a.getViewData_1(GT1184.prototype.KEEP_DIALOGS_OPEN); if (null != b && !this.menuContainer.isHidden_0()) { var e = b.getConsoleComponentKey_0(), e = GT1607.prototype.MENUITEM_SETTINGS.equals_1(e); (b.getId_0() == GT1284.prototype.MENU_BUTTON_PRESSED && !e) || (null != d && d.booleanValue_0()) || this.hide_0(); } this.menuContainer.isHidden_0() || GT1389.prototype.getInstance_0().enableCatcher_0(); this.setMenuButtonState_2(GT1607.prototype.MENUITEM_EXIT, a.getRules_0().get_1(GT1185.prototype.VDR_EXIT_ALLOWED)); this.setMenuButtonState_2(GT1607.prototype.MENUITEM_REPLAY, a.getRules_0().get_1(GT1185.prototype.VDR_REPLAY_ALLOWED)); this.setMenuButtonState_2(GT1607.prototype.MENUITEM_DEPOSIT, a.getRules_0().get_1(GT1185.prototype.VDR_PAYIN_ALLOWED)); b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_PAYTABLE); this.setMenuButtonState_2(GT1607.prototype.MENUITEM_PAYTABLE, new Boolean(b.isActive_0())); this.updateVersionNumber_1(a); }, updateVersionNumber_1: function (a) { null != this.versionNumber && null == this.versionNumber.getText_0() && ((a = a.getViewData_1(GT1184.prototype.VERSION)), this.versionNumber.setText_1("v " + a)); }, setMenuButtonState_2: function (a, b) { if (null != b) { var d = this.menuItems.get_1(a); null != d && d.setActive_1(b.booleanValue_0()); } }, toggle_0: function () { this.menuContainer.hide_1(!this.menuContainer.isHidden_0()); this.menuContainer.isHidden_0() || this.menuContainer.reorder_1(!0); }, hide_0: function () { this.menuContainer.hide_1(!0); }, isVisible_0: function () { return !this.menuContainer.isHidden_0(); }, drawMask_1: function (a) {}, }, "GT503", [] ); GT503.prototype.PARAM_SHOW_VERSION = "clientversion.show"; var GT270 = GT367.extend( { initialConstructor_0: function () { this.nameTextFonts = this.name = this.borders = this.parent = this.guiObjectNameText = this.guiObject = null; this.padding = this.alpha = 0; this.toolTip = this.buttonText = this.buttonIcon = null; this.borderRight = this.borderLeft = !1; this.buttonTextWidth = this.buttonTextOffset = this.width = this.height = 0; this.colorSetKey = null; this.overlayImageOffset = this.overlayImagePosition = 0; this.suppressBackgorund = !1; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.nameTextFonts = this.name = this.borders = this.parent = this.guiObjectNameText = this.guiObject = null; this.padding = this.alpha = 0; this.toolTip = this.buttonText = this.buttonIcon = null; this.borderRight = this.borderLeft = !1; this.buttonTextWidth = this.buttonTextOffset = this.width = this.height = 0; this.colorSetKey = null; this.overlayImageOffset = this.overlayImagePosition = 0; this.suppressBackgorund = !1; GT367.prototype.initialConstructor_0.call(this); this.parent = a; this.name = b.getName_0(); this.colorSetKey = m; this.overlayImageOffset = p; this.overlayImagePosition = n; this.suppressBackgorund = q; this.alpha = 255; this.padding = b.getComponentSpacing_0(); this.borders = [].createArray(2); this.nameTextFonts = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_OVERLAY); this.buttonIcon = null != f ? f.create_1(GT1389.prototype.getInstance_0().getResourceManager_0()) : null; this.buttonText = GT1389.prototype.getInstance_0().getText_1(d); this.toolTip = GT1389.prototype.getInstance_0().getText_1(e); a = b.getComponentX_0(); d = b.getComponentY_0(); this.width = b.getComponentWidth_0(); this.height = b.getComponentHeight_0(); this.borderLeft = g; this.borderRight = k; this.createObject_4(a, d, this.width, this.height); this.createText_4(a + 4, d + 1, this.width - 8, this.height - 2); this.createBorders_4(a, d, b.getComponentWidth_0(), b.getParent_0().getParent_0().getComponentHeight_0()); }, getPaddingFactor_3: function (a, b, d) { var e = 0; a && (e += 0.39); b && (e += 0.22); d && (e += 0.39); a && b && d && (e = 1); return e; }, createText_4: function (a, b, d, e) { if (null != this.buttonText) { var f = Integer.truncate_1(this.padding * this.getPaddingFactor_3(!0, !0, !1)); this.buttonTextOffset = null == this.buttonIcon ? Math.div(this.padding, 2) : this.buttonIcon.getColumnWidth_0() + f; this.buttonTextWidth = null == this.buttonIcon ? d - this.padding : d - this.padding - this.buttonIcon.getColumnWidth_0(); this.guiObjectNameText = new GT1123( this.parent, a + this.buttonTextOffset, b, this.buttonTextWidth, e, this.nameTextFonts, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0().create_0() ); this.guiObjectNameText.setBreakLines_1(!1); this.guiObjectNameText.setHAlign_1(GT1488.prototype.CENTER); this.guiObjectNameText.setVAlign_1(GT1489.prototype.CENTER); a = this.getTextGradient_0(); this.guiObjectNameText.setGradient_1(a); this.guiObjectNameText.setInsets_4(2, 2, 2, 2); this.guiObjectNameText.setText_1(this.buttonText); this.guiObjectNameText.setAlpha_1(this.alpha); } }, createBorders_4: function (a, b, d, e) { this.borderLeft && (this.borders[0] = this.createBorder_4(a, b, 1, e)); this.borderRight && (this.borders[1] = this.createBorder_4(a + d - 1, b, 1, e)); }, createBorder_4: function (a, b, d, e) { a = new GT1440(this.parent, a, b, d, e, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getOverlayBorderColor_0().create_0()); a.setAlpha_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getOverlayBorderAlpha_0().create_0()); return a; }, setAlpha_1: function (a) { GT1560.prototype.isAlive_1(this.guiObject) && (this.setObjectAlpha_1(a), (this.alpha = a)); GT1560.prototype.isAlive_1(this.guiObjectNameText) && (this.guiObjectNameText.setAlpha_1(a), (this.alpha = a)); }, setLocation_2: function (a, b) { GT1560.prototype.isAlive_1(this.guiObject) && this.guiObject.move_2(a, b); GT1560.prototype.isAlive_1(this.borders[0]) && this.borders[0].move_2(a, b); GT1560.prototype.isAlive_1(this.borders[1]) && this.borders[1].move_2(a + this.width, b); GT1560.prototype.isAlive_1(this.guiObjectNameText) && this.guiObjectNameText.move_2(a + this.buttonTextOffset, b); }, setSize_2: function (a, b) { if (GT1560.prototype.isAlive_1(this.guiObject) && (a != this.guiObject.getWidth_0() || b != this.guiObject.getHeight_0())) { var d = this.guiObject.getX_0(), e = this.guiObject.getY_0(); null != this.guiObject && this.guiObject.destroy_0(); null != this.guiObjectNameText && this.guiObjectNameText.destroy_0(); this.width = a; this.height = b; this.createObject_4(d, e, a, b); this.createText_4(d, e, a, b); this.setAlpha_1(this.alpha); } }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.guiObject); GT1560.prototype.destroyIfAlive_1(this.guiObjectNameText); GT1560.prototype.destroyIfAlive_1(this.borders[0]); GT1560.prototype.destroyIfAlive_1(this.borders[1]); }, hide_1: function (a) { this.guiObject.hide_1(a); this.guiObjectNameText.hide_1(a); }, setText_1: function (a) { GT1560.prototype.isAlive_1(this.guiObjectNameText) && this.guiObjectNameText.setText_1(a); }, getMinLength_0: function () { var a = null != this.guiObjectNameText ? this.guiObjectNameText.getTextWidth_0() : 0, a = a + this.padding, a = a + (null != this.guiObjectNameText ? 4 : 0); null != this.buttonIcon && (a += this.buttonIcon.getColumnWidth_0()); return a; }, getWidth_0: function () { return null != this.guiObject ? this.guiObject.getWidth_0() : this.guiObjectNameText.getWidth_0(); }, getX_0: function () { return null != this.guiObject ? this.guiObject.getX_0() : this.guiObjectNameText.getX_0(); }, getY_0: function () { return null != this.guiObject ? this.guiObject.getY_0() : this.guiObjectNameText.getY_0(); }, isVisible_0: function () { return !this.guiObject.isHidden_0(); }, getClickIdentifier_0: function () { return this.name; }, }, "GT270", [] ), GT208 = GT270.extend( { initialConstructor_0: function () { this.buttonSound = null; this.buttonSoundLength = 0; GT270.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.buttonSound = null; this.buttonSoundLength = 0; GT270.prototype.initialConstructor_11.call( this, a, b, b.getButtonText_0(), b.getToolTip_0(), b.getButtonImage_0(), b.isBorderLeft_0(), b.isBorderRight_0(), b.getColorSetKey_0(), b.getImagePosition_0(), b.getImageOffset_0(), b.isSuppressBackground_0() ); this.buttonSound = b.getButtonSound_0(); this.buttonSoundLength = b.getButtonSoundLength_0(); }, createObject_4: function (a, b, d, e) { a = this.guiObject = new GT1559(this.parent, a, b, d, e); b = null == this.colorSetKey ? GT1019.prototype.CCK_BUTTON_DEFAULT : this.colorSetKey; null != this.buttonIcon && (4 == this.buttonIcon.getRows_0() ? (GT413.prototype.makeButton_13(a, this.buttonIcon, 0, 0, GT1236.prototype.INACTIVE, GT1073.prototype.BUTTON_SHAPE_RECT, b, !0, !0, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha), GT413.prototype.makeButton_13(a, this.buttonIcon, 1, 0, GT1236.prototype.DEFAULT, GT1073.prototype.BUTTON_SHAPE_RECT, b, !0, !0, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha), GT413.prototype.makeButton_13(a, this.buttonIcon, 2, 0, GT1236.prototype.PRESSED, GT1073.prototype.BUTTON_SHAPE_RECT, b, !0, !0, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha), GT413.prototype.makeButton_13(a, this.buttonIcon, 3, 0, GT1236.prototype.MOUSEOVER, GT1073.prototype.BUTTON_SHAPE_RECT, b, !0, !0, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha)) : (GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.INACTIVE, GT1073.prototype.BUTTON_SHAPE_RECT, b, this.suppressBackgorund, !1, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.DEFAULT, GT1073.prototype.BUTTON_SHAPE_RECT, b, this.suppressBackgorund, !1, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.PRESSED, GT1073.prototype.BUTTON_SHAPE_RECT, b, this.suppressBackgorund, !1, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.MOUSEOVER, GT1073.prototype.BUTTON_SHAPE_RECT, b, this.suppressBackgorund, !1, 0, this.overlayImagePosition, this.overlayImageOffset, this.alpha ))); a.addButtonClickListener_1(this); a.setToolTip_1(this.toolTip); a.setToolTipAlwaysOn_1(!0); a.finishButton_0(); }, setAlphaForButton_1: function (a) { for (var b = this.guiObject, d = 0; d < b.getChildCount_0(); d++) instanceOf(b.getChild_1(d), GT1480) && b.getChild_1(d).setAlpha_1(a); }, setObjectAlpha_1: function (a) { GT1560.prototype.isAlive_1(this.guiObject) && this.setAlphaForButton_1(a); }, playSound_0: function () { null != this.buttonSound && GT1389.prototype.getInstance_0().getSoundPlayer_0().start_4(this.buttonSound.create_1(GT1389.prototype.getInstance_0().getSkinManager_0()), null, 0, this.buttonSoundLength); }, click_1: function (a) { this.playSound_0(); }, addButtonClickListener_1: function (a) { this.guiObject.addButtonClickListener_1(a); }, getTextGradient_0: function () { return GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0(); }, }, "GT208", [GT807] ), GT141 = GT208.extend( { initialConstructor_0: function () { this.componentName = null; this.componentWidth = 0; GT208.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.componentName = null; this.componentWidth = 0; GT208.prototype.initialConstructor_2.call(this, a, b); this.componentName = b.getName_0(); this.componentWidth = b.getComponentWidth_0(); }, createObject_4: function (a, b, d, e) { a = this.guiObject = new GT1559(this.parent, a, b, d, e); null != this.buttonIcon && (4 == this.buttonIcon.getRows_0() ? (GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.INACTIVE, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !0, !0, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 1, 0, GT1236.prototype.DEFAULT, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !0, !0, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 2, 0, GT1236.prototype.PRESSED, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !0, !0, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 3, 0, GT1236.prototype.MOUSEOVER, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !0, !0, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha )) : (GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.INACTIVE, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !1, !1, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.DEFAULT, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !1, !1, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.PRESSED, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !1, !1, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ), GT413.prototype.makeButton_13( a, this.buttonIcon, 0, 0, GT1236.prototype.MOUSEOVER, GT1073.prototype.BUTTON_SHAPE_RECT, GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, !1, !1, 0, GT1073.prototype.IMAGE_CENTER, 0, this.alpha ))); a.addButtonClickListener_1(this); a.setToolTip_1(this.toolTip); a.setToolTipAlwaysOn_1(!0); a.finishButton_0(); }, click_1: function (a) { this.playSound_0(); a = GT1607.prototype.OVERLAY_SOUND_ONLY.equals_1(this.componentName) || GT1607.prototype.OVERLAY_SOUND_AND_MUSIC.equals_1(this.componentName); var b = GT1607.prototype.OVERLAY_SOUND_AND_MUSIC.equals_1(this.componentName); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT654(GT1284.prototype.SOUND_BUTTON_PRESSED, this, this.componentName, a, b)); }, updateUi_1: function (a) { GT208.prototype.updateUi_1.call(this, a); var b = a.getRules_0().get_1(GT1185.prototype.VDR_SOUNDPLAYER_ACTIVE); a = a.getRules_0().get_1(GT1185.prototype.VDR_MUSICPLAYER_ACTIVE); null != b && null != a && (GT1607.prototype.OVERLAY_SOUND_AND_MUSIC.equals_1(this.componentName) ? this.toggleState_1(b.booleanValue_0() && a.booleanValue_0()) : GT1607.prototype.OVERLAY_SOUND_ONLY.equals_1(this.componentName) ? this.toggleState_1(b.booleanValue_0() && !a.booleanValue_0()) : GT1607.prototype.OVERLAY_SOUND_OFF.equals_1(this.componentName) && this.toggleState_1(!b.booleanValue_0())); }, toggleState_1: function (a) { var b = this.guiObject; a ? (b.setChildForState_2(GT1236.prototype.INACTIVE, 2), b.setActive_1(!1)) : (b.setChildForState_2(GT1236.prototype.INACTIVE, 0), b.setActive_1(!0)); }, getMinLength_0: function () { return 0 == this.componentWidth ? GT208.prototype.getMinLength_0.call(this) : this.componentWidth; }, }, "GT141", [] ), GT271 = GT208.extend( { initialConstructor_0: function () { GT208.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT208.prototype.initialConstructor_2.call(this, a, b); }, click_1: function (a) { GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.EXIT_BUTTON_PRESSED, this, this.name)); }, updateUi_1: function (a) { GT208.prototype.updateUi_1.call(this, a); a.getRules_0().get_1(GT1185.prototype.VDR_EXIT_ALLOWED).booleanValue_0() ? (this.guiObject.setActive_1(!0), this.guiObjectNameText.setColorTransformation_1(null)) : (this.guiObject.setActive_1(!1), this.guiObjectNameText.setColorTransformation_1(GT1063.prototype.GrayOut)); }, }, "GT271", [] ), GT272 = GT270.extend( { initialConstructor_0: function () { this.y = this.iconOffsetY = this.iconOffsetX = 0; GT270.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.y = this.iconOffsetY = this.iconOffsetX = 0; GT270.prototype.initialConstructor_11.call(this, a, b, b.getText_0(), null, b.getIcon_0(), b.isBorderLeft_0(), b.isBorderRight_0(), null, 0, 0, !0); this.y = b.getComponentY_0(); }, createObject_4: function (a, b, d, e) { null != this.buttonIcon && ((this.iconOffsetX = null == this.buttonText ? Math.div(d - this.buttonIcon.getWidth_0(), 2) : Integer.truncate_1(this.padding * this.getPaddingFactor_3(!0, !1, !1))), (this.iconOffsetY = Math.div(e - this.buttonIcon.getHeight_0(), 2)), (this.guiObject = new GT1591(this.parent, a + this.iconOffsetX, b + this.iconOffsetY, this.buttonIcon.getWidth_0(), this.buttonIcon.getHeight_0(), this.buttonIcon, 0, 0, !1))); }, setObjectAlpha_1: function (a) { GT1560.prototype.isAlive_1(this.guiObject) && this.guiObject.setAlpha_1(a); }, getTextGradient_0: function () { return GT1533.prototype.getGradient_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0()); }, getWidth_0: function () { var a = null != this.guiObject ? this.guiObject.getWidth_0() : 0, a = a + (null != this.guiObjectNameText ? this.guiObjectNameText.getTextWidth_0() : 0); return (a += this.padding); }, getY_0: function () { return this.y; }, setLocation_2: function (a, b) { GT270.prototype.setLocation_2.call(this, a, b); GT1560.prototype.isAlive_1(this.guiObject) && this.guiObject.move_2(a + this.iconOffsetX, b + this.iconOffsetY); }, }, "GT272", [] ), GT126 = GT208.extend( { initialConstructor_0: function () { this.guiObjectToggled = null; GT208.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.guiObjectToggled = null; GT208.prototype.initialConstructor_2.call(this, a, b); var d = b.getToggledButtonImage_0(), e = b.getToggledButtonText_0(), f = b.getToggledToolTip_0(); b.setToggledButtonImage_1(b.getButtonImage_0()); b.setToggledButtonText_1(b.getButtonText_0()); b.setToggledToolTip_1(b.getToolTip_0()); b.setButtonImage_1(d); b.setButtonText_1(e); b.setToolTip_1(f); this.guiObjectToggled = new GT208(a, b); this.guiObjectToggled.addButtonClickListener_1(this); }, setLocation_2: function (a, b) { GT208.prototype.setLocation_2.call(this, a, b); this.guiObjectToggled.setLocation_2(a, b); }, setSize_2: function (a, b) { GT208.prototype.setSize_2.call(this, a, b); this.guiObjectToggled.setSize_2(a, b); this.guiObjectToggled.addButtonClickListener_1(this); }, destroyObject_0: function () { null != this.guiObjectToggled && (this.guiObjectToggled.destroyObject_0(), (this.guiObjectToggled = null)); GT208.prototype.destroyObject_0.call(this); }, click_1: function (a) { a = this.guiObjectToggled.guiObject == a ? this.getClickIdentifier_0() + "#toggled" : this.getClickIdentifier_0(); a = new GT1284(GT1284.prototype.GENERIC_CONSOLE_EVENT, this, a); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(a); }, getMinLength_0: function () { return Math.max_2(GT208.prototype.getMinLength_0.call(this), this.guiObjectToggled.getMinLength_0()); }, getWidth_0: function () { return Math.max_2(GT208.prototype.getWidth_0.call(this), this.guiObjectToggled.getWidth_0()); }, showToggledState_1: function (a) { a ? (GT208.prototype.hide_1.call(this, !0), this.guiObjectToggled.hide_1(!1)) : (GT208.prototype.hide_1.call(this, !1), this.guiObjectToggled.hide_1(!0)); }, }, "GT126", [] ), GT127 = GT126.extend( { initialConstructor_0: function () { GT126.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT126.prototype.initialConstructor_2.call(this, a, b); }, click_1: function (a) { GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.SCREEN_TOGGLE_BUTTON_PRESSED, this, this.getClickIdentifier_0())); }, updateUi_1: function (a) { a = a.getRules_0().get_1(GT1185.prototype.VDR_FULLSCREEN); null != a && this.showToggledState_1(!a.booleanValue_0()); }, }, "GT127", [] ), GT142 = GT126.extend( { initialConstructor_0: function () { GT126.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT126.prototype.initialConstructor_2.call(this, a, b); }, updateUi_1: function (a) { GT126.prototype.updateUi_1.call(this, a); a = a.getRules_0().get_1(GT1185.prototype.VDR_SOUNDPLAYER_ACTIVE); null != a && (a.booleanValue_0() ? (GT126.prototype.hide_1.call(this, !0), this.guiObjectToggled.hide_1(!1)) : (GT126.prototype.hide_1.call(this, !1), this.guiObjectToggled.hide_1(!0))); }, }, "GT142", [] ), GT602 = Class.extend( { initialConstructor_0: function () { this.overrideWith = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.overrideWith = null; this.overrideWith = a; }, isOverride_0: function () { return null != this.overrideWith; }, getOverride_0: function () { return this.overrideWith; }, toString: function () { return "StringOverride [override=" + this.overrideWith + "]"; }, }, "GT602", [] ), GT462 = Class.extend( { initialConstructor_0: function () { this.relativeHeight = this.relativeWidth = this.relativeY = this.relativeX = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.relativeHeight = this.relativeWidth = this.relativeY = this.relativeX = 0; this.relativeX = a; this.relativeY = b; this.relativeWidth = d; this.relativeHeight = e; }, getRelativeX_0: function () { return this.relativeX; }, getRelativeY_0: function () { return this.relativeY; }, getRelativeWidth_0: function () { return this.relativeWidth; }, getRelativeHeight_0: function () { return this.relativeHeight; }, }, "GT462", [] ), GT1438 = Class.extend( { initialConstructor_0: function () { this.max = this.min = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.max = this.min = 0; Class.prototype.initialConstructor_0.call(this); this.min = a; this.max = b; }, add_1: function (a) { return new GT1438(this.getMin_0() + a.getMin_0(), this.getMax_0() + a.getMax_0()); }, getMin_0: function () { return this.min; }, getMax_0: function () { return this.max; }, }, "GT1438", [] ), GT817 = Class.extend( { initialConstructor_0: function () { this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.alignH = this.alignV = null; this.shadowOffsetY = this.shadowOffsetX = 0; this.gradientObject = this.textColor = this.shadowColor = null; this.doBreakLines = !1; this.alignH = GT1488.prototype.CENTER; this.alignV = GT1489.prototype.CENTER; this.doBreakLines = !0; }, insets_1: function (a) { return this.insets_4(a, a, a, a); }, insets_2: function (a, b) { return this.insets_4(a, a, b, b); }, insets_4: function (a, b, d, e) { this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, vAlign_1: function (a) { this.alignV = a; return this; }, hAlign_1: function (a) { this.alignH = a; return this; }, getInsetTop_0: function () { return this.insetTop; }, getInsetBottom_0: function () { return this.insetBottom; }, getInsetLeft_0: function () { return this.insetLeft; }, getInsetRight_0: function () { return this.insetRight; }, getVAlign_0: function () { return this.alignV; }, getHAlign_0: function () { return this.alignH; }, shadow_3: function (a, b, d) { this.shadowOffsetX = a; this.shadowOffsetY = b; this.shadowColor = d; return this; }, gradient_1: function (a) { this.gradientObject = a; return this; }, getGradient_0: function () { return this.gradientObject; }, color_1: function (a) { this.textColor = a; return this; }, getColor_0: function () { return this.textColor; }, breakLines_1: function (a) { this.doBreakLines = a; return this; }, getBreakLines_0: function () { return this.doBreakLines; }, }, "GT817", [GT1008] ), GT1020 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compare_2: function (a, b) { return instanceOf(a, GT918) && instanceOf(b, GT918) ? a.getOrder_0() - b.getOrder_0() : 0; }, }, "GT1020", [java_util_Comparator] ), GT1534 = Class.extend( { initialConstructor_0: function () { this.highlighted_flag = this.active_flag = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.highlighted_flag = this.active_flag = !1; this.active_flag = a; this.highlighted_flag = b; }, isActive_0: function () { return this.active_flag; }, isHighlighted_0: function () { return this.highlighted_flag; }, toString: function () { return "ComponentState [active_flag=" + this.active_flag + ", highlighted_flag=" + this.highlighted_flag + "]"; }, hashCode_0: function () { var a; return (a = 31 + (this.active_flag ? 1 : 0) + (this.highlighted_flag ? 1 : 0)); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1534) && this.active_flag == a.active_flag && this.highlighted_flag == a.highlighted_flag ? !0 : !1; }, toJSON_0: function () { return '{"active":' + (this.active_flag ? "true" : "false") + ', "highlighted":' + (this.highlighted_flag ? "true" : "false") + "}"; }, }, "GT1534", [GT1585] ); GT1534.prototype.inactive_0 = function () { return new GT1534(!1, !1); }; GT1534.prototype.highlighted_0 = function () { return new GT1534(!0, !0); }; GT1534.prototype.active_0 = function () { return new GT1534(!0, !1); }; var GT603 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT603", [] ), GT712 = Class.extend( { initialConstructor_0: function () { this.clientEventHandler = this.eventDispatcher = this.consoleEventIDs = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.clientEventHandler = this.eventDispatcher = this.consoleEventIDs = null; Class.prototype.initialConstructor_0.call(this); this.eventDispatcher = a; this.consoleEventIDs = new java_util_JavaScriptVector(); this.clientEventHandler = d; for (d = 0; d < b.length; d++) a.registerHandler_4(b[d], null, this, -Integer.MAX_VALUE), this.consoleEventIDs.addElement_1(new Integer(b[d])); }, addConsoleEvent_1: function (a) { this.consoleEventIDs.contains_1(new Integer(a)) || this.consoleEventIDs.addElement_1(new Integer(a)); }, removeAllConsoleEvents_0: function () { this.eventDispatcher.unregisterHandler_1(this); this.consoleEventIDs.removeAllElements_0(); }, sendConsoleEventToClient_1: function (a) { null != this.clientEventHandler && this.clientEventHandler.handleEvent_1(a); }, }, "GT712", [GT805] ), GT655 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT655", [] ), GT1607 = Class.extend({ initialConstructor_0: function () {} }, "GT1607", []); GT1607.prototype.BETMENU = "betmenu_button"; GT1607.prototype.GAMBLE = "gamble_button"; GT1607.prototype.MAXBET = "maxbet_button"; GT1607.prototype.MENU = "menu_button"; GT1607.prototype.SPIN = "spin_button"; GT1607.prototype.AUTOPLAY = "autoplay_button"; GT1607.prototype.EXTRABET = "extrabet_button"; GT1607.prototype.SETTINGS_PANEL = "settings_panel"; GT1607.prototype.LINES = "line_button"; GT1607.prototype.PAYTABLE = "paytable_button"; GT1607.prototype.TOPCONTAINER = "top console"; GT1607.prototype.CONSOLECONTAINER = "layoutArea"; GT1607.prototype.MENUITEM_PREFIX = "menu#"; GT1607.prototype.MENUITEM_DEPOSIT = GT1607.prototype.MENUITEM_PREFIX + "deposit"; GT1607.prototype.MENUITEM_EXIT = GT1607.prototype.MENUITEM_PREFIX + "back_to_lobby"; GT1607.prototype.MENUITEM_PAYTABLE = GT1607.prototype.MENUITEM_PREFIX + "paytable&info"; GT1607.prototype.MENUITEM_REPLAY = GT1607.prototype.MENUITEM_PREFIX + "replay"; GT1607.prototype.MENUITEM_SETTINGS = GT1607.prototype.MENUITEM_PREFIX + "settings"; GT1607.prototype.MENUITEM_HELP = GT1607.prototype.MENUITEM_PREFIX + "help"; GT1607.prototype.PAYTABLE_PREFIX = "paytable#"; GT1607.prototype.PAYTABLE_BACK = GT1607.prototype.PAYTABLE_PREFIX + "back"; GT1607.prototype.PAYTABLE_NEXT = GT1607.prototype.PAYTABLE_PREFIX + "next"; GT1607.prototype.PAYTABLE_CLOSE = GT1607.prototype.PAYTABLE_PREFIX + "close"; GT1607.prototype.BETMENU_PREFIX = "betmenu#"; GT1607.prototype.BETMENU_DOWN = GT1607.prototype.BETMENU_PREFIX + "lines_down"; GT1607.prototype.BETMENU_UP = GT1607.prototype.BETMENU_PREFIX + "lines_up"; GT1607.prototype.BETMENU_BET = GT1607.prototype.BETMENU_PREFIX + "bet"; GT1607.prototype.BETMENU_CLOSE = GT1607.prototype.BETMENU_PREFIX + "close"; GT1607.prototype.LINEMENU_PREFIX = "linemenu#"; GT1607.prototype.LINEMENU_GROUP_BACK = GT1607.prototype.LINEMENU_PREFIX + "line_group_back"; GT1607.prototype.LINEMENU_GROUP_NEXT = GT1607.prototype.LINEMENU_PREFIX + "line_group_next"; GT1607.prototype.LINEMENU_LINE = GT1607.prototype.LINEMENU_PREFIX + "line"; GT1607.prototype.LINEMENU_CLOSE = GT1607.prototype.LINEMENU_PREFIX + "close"; GT1607.prototype.CREDIT_WIN_PREFIX = "credit_win#"; GT1607.prototype.CREDIT_WIN_BUTTON = GT1607.prototype.CREDIT_WIN_PREFIX + "button"; GT1607.prototype.OVERLAY_PREFIX = "overlay#"; GT1607.prototype.OVERLAY_EXIT = GT1607.prototype.OVERLAY_PREFIX + "exit"; GT1607.prototype.OVERLAY_SOUND = GT1607.prototype.OVERLAY_PREFIX + "sound"; GT1607.prototype.OVERLAY_SOUND_AND_MUSIC = GT1607.prototype.OVERLAY_PREFIX + "1sound1"; GT1607.prototype.OVERLAY_SOUND_ONLY = GT1607.prototype.OVERLAY_PREFIX + "2sound2"; GT1607.prototype.OVERLAY_SOUND_OFF = GT1607.prototype.OVERLAY_PREFIX + "3sound3"; GT1607.prototype.OVERLAY_SCREENMODE = GT1607.prototype.OVERLAY_PREFIX + "screen"; GT1607.prototype.OVERLAY_ROUNDID = GT1607.prototype.OVERLAY_PREFIX + "round_id"; GT1607.prototype.OVERLAY_CLOCK = GT1607.prototype.OVERLAY_PREFIX + "clock"; GT1607.prototype.OVERLAY_LOGO = GT1607.prototype.OVERLAY_PREFIX + "logo"; GT1607.prototype.OVERLAY_CONTAINER = GT1607.prototype.OVERLAY_PREFIX + "container"; GT1607.prototype.OVERLAY_LEFT_SIDE_CONTAINER = GT1607.prototype.OVERLAY_PREFIX + "left_side_container"; GT1607.prototype.OVERLAY_RIGHT_SIDE_CONTAINER = GT1607.prototype.OVERLAY_PREFIX + "right_side_container"; GT1607.prototype.SETTINGS_PREFIX = "settings#"; GT1607.prototype.SETTINGS_SOUND_AND_MUSIC = GT1607.prototype.SETTINGS_PREFIX + "1sound1"; GT1607.prototype.SETTINGS_SOUND_ONLY = GT1607.prototype.SETTINGS_PREFIX + "2sound2"; GT1607.prototype.SETTINGS_SOUND_OFF = GT1607.prototype.SETTINGS_PREFIX + "3sound3"; GT1607.prototype.SETTINGS_CLOSE = GT1607.prototype.SETTINGS_PREFIX + "close"; GT1607.prototype.SETTINGS_LAYOUT_LEFT = GT1607.prototype.SETTINGS_PREFIX + "layout_lft"; GT1607.prototype.SETTINGS_LAYOUT_RIGHT = GT1607.prototype.SETTINGS_PREFIX + "layout_rgt"; GT1607.prototype.SETTINGS_SWITCH_LAYOUT = GT1607.prototype.SETTINGS_PREFIX + "switch_layout"; GT1607.prototype.SETTINGS_SWITCH_LAYOUT_COMPLETED = GT1607.prototype.SETTINGS_SWITCH_LAYOUT + "#completed"; GT1607.prototype.SETTINGS_GAMBLING = GT1607.prototype.SETTINGS_PREFIX + "gambling"; GT1607.prototype.UNDEFINED_KEY = "undefined"; GT1607.prototype.CLICKED_ANYWHERE = "clicked_anywhere"; GT1607.prototype.TT_LINES = "${neon_console_label_lines}"; GT1607.prototype.TT_TOTAL_BET = "${neon_console_label_totalbet}"; GT1607.prototype.TT_TOTAL_BET_SPINNER = "${neon_console_label_totalbet_spinner}"; GT1607.prototype.TT_GAMBLE = "${neon_buttontext_gamble}"; GT1607.prototype.TT_CREDIT = "${neon_console_label_credit}"; GT1607.prototype.TT_MAXBET = "${neon_buttontext_maxbet}"; GT1607.prototype.TT_SPIN = "${neon_buttontext_start}"; GT1607.prototype.TT_BET_PER_LINE = "${neon_console_label_basebet}"; GT1607.prototype.TT_BASE_BET = "${neon_console_label_basebet_info}"; GT1607.prototype.TT_CHANGE_BET = "${neon_console_change_bet}"; GT1607.prototype.TT_EXTRA_BET = "${neon_console_label_extrabet}"; GT1607.prototype.TT_MENU = "${neon_buttontext_menu}"; GT1607.prototype.TT_AUTO = "${neon_buttontext_auto}"; GT1607.prototype.TT_MENU_PAYTABLE = "${neon_menu_paytable}"; GT1607.prototype.TT_PAYTABLE_SHORT = "${neon_paytable_short}"; GT1607.prototype.TT_MENU_DEPOSIT = "${neon_menu_deposit}"; GT1607.prototype.TT_MENU_SETTINGS = "${neon_menu_settings}"; GT1607.prototype.TT_MENU_REPLAY = "${neon_menu_replay}"; GT1607.prototype.TT_MENU_HELP = "${neon_menu_help}"; GT1607.prototype.TT_MENU_EXIT = "${neon_menu_exit}"; GT1607.prototype.TT_OVERLAY_SOUND = "${neon_overlay_sound}"; GT1607.prototype.TT_OVERLAY_FULLSCREEN = "${neon_overlay_fullscreen}"; GT1607.prototype.TT_OVERLAY_NORMALSCREEN = "${neon_overlay_normalscreen}"; GT1607.prototype.TT_OVERLAY_EXIT = "${neon_overlay_exit}"; GT1607.prototype.TT_SETTINGS_TITLE = "${neon_settings_title}"; GT1607.prototype.TT_SETTINGS_SOUND = "${neon_settings_sound}"; GT1607.prototype.TT_SETTINGS_LAYOUT = "${neon_settings_layout}"; GT1607.prototype.TT_SETTINGS_LAYOUT_WAITING = "${neon_switch_layout_wait}"; GT1607.prototype.TT_SETTINGS_GAMBLING = "${neon_settings_gambling}"; GT1607.prototype.TT_SETTINGS_GAMBLING_ON = "${neon_settings_on}"; GT1607.prototype.TT_SETTINGS_GAMBLING_OFF = "${neon_settings_off}"; GT1607.prototype.TOGGLE_DEFAULT_SUFFIX = "#off"; var GT1074 = GT339.extend( { initialConstructor_0: function () { this.theme = null; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.theme = null; GT339.prototype.initialConstructor_1.call(this, a); this.theme = b; }, containerErrorScreen_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT554.prototype.ID_ERRORSCREEN) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .id_1(GT554.prototype.ID_ERRORSCREENBOX) .position_2(0, 0) .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(510, 230)) .child_1( GT872.prototype .set_0() .id_1(GT554.prototype.TEXT_ERRORMSG) .position_2(0, 40) .size_2(510, 88) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .insets_4(40, 40, 0, 0) .addFont_1(this.getLabelFont_1(0)) .addFont_1(this.getLabelFont_1(2)) .addFont_1(this.getLabelFont_1(4)) .addFont_1(this.getLabelFont_1(6)) .addFont_1(this.getLabelFont_1(8)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.button_3("${alttext_limitstopbutton}", 210, 70).id_1(GT554.prototype.ACTION_CLOSEAFTERKICK).position_2(150, 135)) .child_1(this.button_3("${alttext_reconnect}", 210, 70).id_1(GT554.prototype.ACTION_RECONNECT).position_2(30, 135)) .child_1(this.button_3("${alttext_limitstopbutton}", 210, 70).id_1(GT554.prototype.ACTION_CLOSEAFTERKICK2).position_2(270, 135)) ) ); }, dialogBackGround_0: function () { return GT1187.prototype .set_0() .colorArea_1(this.theme.getPopupBgColor_0()) .colorBorder_1(this.theme.getPopupBorderColor_0()) .borderThickness_1(2) .outerRadius_1(this.theme.getPopupRadius_0()) .innerRadius_1(this.theme.getPopupRadius_0()) .transparencyArea_1(this.theme.getPopupBgAlpha_0()) .transparencyBorder_1(this.theme.getPopupBorderAlpha_0()); }, button_3: function (a, b, d) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.DEFAULT).state_2(1, GT1236.prototype.PRESSED).state_2(2, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .gradient_1(this.theme.getNormalButtonGradient_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.97, 0.97) .position_2(Integer.truncate_1((b - 0.97 * b) / 2), Integer.truncate_1((d - 0.97 * d) / 2)) .size_2(b, d) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .gradient_1(this.theme.getNormalButtonGradient_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .gradient_1(GT1238.prototype.invert_1(this.theme.getNormalButtonGradient_0())) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ); }, getLabelFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_LARGE, a); }, getButtonFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_SECONDARY_BUTTON, a); }, buttonInfoPagesPrev_2: function (a, b) { return this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/left-arr.png").overrideSize_2(27, 50), 120, 90, 10) .id_1(GT554.prototype.ID_INFOPAGES_PREV) .position_2(381 + b.layoutOverscanLeft_0(), 870); }, buttonInfoPagesNext_2: function (a, b) { return this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/right-arr.png").overrideSize_2(27, 50), 120, 90, 10) .id_1(GT554.prototype.ID_INFOPAGES_NEXT) .position_2(b.layoutOverscanLeft_0() + b.layoutDesignedWidth_0() - 519, 870); }, buttonInfoPagesClose_2: function (a, b) { return this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/infopage_skip.png").overrideSize_2(40, 50), 120, 90, 10) .id_1(GT554.prototype.ID_INFOPAGES_CLOSE) .position_2(b.layoutOverscanLeft_0() + b.layoutDesignedWidth_0() - 139, 870) .states_1(GT1021.prototype.set_0().state_2(4, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(120, 90) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(10) .innerRadius_1(10) .numberOfEdges_1(5) ) .child_1( GT818.prototype .set_0() .id_1(GT554.prototype.ID_INFOPAGES_LOADINGINDICATOR) .position_2(37, 22) .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/loading.png") .anchor_2(23, 23) .translation_2(23, 23) ) ); }, buttonIntroVideoSkip_2: function (a, b) { return this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/infopage_skip.png").overrideSize_2(40, 50), 120, 90, 10) .id_1(GT554.prototype.ID_INTROVIDEO_SKIP) .position_2(1320, 870) .states_1(GT1021.prototype.set_0().state_2(4, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(120, 90) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(10) .innerRadius_1(10) .numberOfEdges_1(5) ) .child_1( GT818.prototype .set_0() .id_1(GT554.prototype.ID_INTROVIDEO_LOADINGINDICATOR) .position_2(37, 22) .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/loading.png") .anchor_2(23, 23) .translation_2(23, 23) ) ); }, buttonInfoPagesToggle_2: function (a, b) { return GT873.prototype .set_0() .position_2(21 + b.layoutOverscanLeft_0(), 870) .id_1(GT554.prototype.ID_INFOPAGES_TOGGLE) .size_2(90, 90) .child_1( GT1187.prototype .set_0() .size_2(90, 90) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(10) .innerRadius_1(10) .numberOfEdges_1(5) ) .child_1( GT1186.prototype .set_0() .child_1( GT1187.prototype .set_0() .size_2(90, 90) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(10) .innerRadius_1(10) .numberOfEdges_1(5) ) .child_1(GT1392.prototype.set_0().position_2(15, 15).size_2(60, 60).image_1(GT1390.prototype.set_0().tiling_2(1, 1).file_1("/com/greentube/gameconsole/res/neon/checkmark.png"))) ) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT)); }, containerInfoPagesIndicators_2: function (a, b) { return a.position_2(0, 880); }, textInfoPagesToggleMessage_2: function (a, b) { return GT1239.prototype .set_0() .id_1(GT554.prototype.ID_INFOPAGES_TOGGLEMESSAGE) .position_2(121 + b.layoutOverscanLeft_0(), 870) .size_2(250, 90) .spacing_1(30) .adaptiveHeight_1(!0) .text_1("${realitycheckmessage3}") .font_1(this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_LARGE, 0)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, buttonIcon_4: function (a, b, d, e) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(e) .innerRadius_1(e) .numberOfEdges_1(Math.div(e, 2)) ) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.CENTER).child_1(GT1392.prototype.set_0().image_1(a))) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(e) .innerRadius_1(e) .numberOfEdges_1(Math.div(e, 2)) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0())) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(e) .innerRadius_1(e) .numberOfEdges_1(Math.div(e, 2)) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.9, 0.9) .position_2(Integer.truncate_1((b - 0.9 * b) / 2), Integer.truncate_1((d - 0.9 * d) / 2)) .size_2(b, d) .child_1( GT871.prototype .set_0() .size_2(b, d) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1392.prototype .set_0() .image_1(a) .colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getColorTransformation_0()) ) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(e) .innerRadius_1(e) .numberOfEdges_1(Math.div(e, 2)) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getColorTransformation_0())) ) ); }, buttonMenuWideAspect_2: function (a, b) { return null; }, buttonMenuSoundOff_2: function (a, b) { return a.position_2(1210 + b.layoutHorizontalAdjustment_0(), 35); }, buttonMenuSoundOn_2: function (a, b) { return a.position_2(1210 + b.layoutHorizontalAdjustment_0(), 35); }, }, "GT1074", [] ), GT463 = GT186.extend( { initialConstructor_0: function () { this.theme = null; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.theme = null; GT186.prototype.initialConstructor_0.call(this); this.theme = a; }, initialConstructor_3: function (a, b, d) { this.theme = null; GT186.prototype.initialConstructor_1.call(this, a); this.theme = b; }, containerWatcherInfo_2: function (a, b) { return GT1186.prototype .set_0() .position_2(575, 425) .size_2(900, 50) .child_1( GT1187.prototype .set_0() .id_1(GT307.prototype.BG_WATCHERINFO) .borderThickness_1(1) .colorArea_1(GT1391.prototype.set_0().black_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(70)) .transparencyBorder_1(GT1022.prototype.set_0().percent_1(90)) .borderThickness_1(3) .colorBorder_1(GT1391.prototype.set_0().yellow_0()) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_WATCHERINFO) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ROBOTO).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .text_1("") ); }, containerPayInDialog_2: function (a, b) { return a .modify_2(GT307.prototype.TEXT_PAYINDESC, GT1442.prototype.set_0().width_1(540)) .modify_2(GT307.prototype.TEXT_PAYINDESC, GT872.prototype.set_0().addFont_1(this.getDialogLabelFont_1(4)).addFont_1(this.getDialogLabelFont_1(6)).addFont_1(this.getDialogLabelFont_1(8)).breakLines_1(!1)) .modify_2(GT307.prototype.ID_PAYINSLIDERBACK, GT1240.prototype.set_0().moveX_1(20)) .modify_2(GT307.prototype.ACTION_PAYINSLIDER, GT1240.prototype.set_0().moveX_1(20)) .replace_2(GT307.prototype.ACTION_CLOSEPAYINDIALOG1, this.button_3("${neon_dialog_cancel}", 220, 75).position_2(20, 195).id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1)) .replace_2(GT307.prototype.ACTION_CLOSEPAYINDIALOG2, this.button_3("${neon_dialog_cancel}", 220, 75).position_2(20, 195).id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2)) .replace_2(GT307.prototype.ACTION_BUYTICKETS, this.button_3("${neon_alttext_buytickets}", 220, 75).position_2(260, 195).id_1(GT307.prototype.ACTION_BUYTICKETS)) .replace_2(GT307.prototype.ACTION_PAYINACCOUNT2, this.button_3("${neon_alttext_lobby_account}", 220, 75).position_2(260, 195).id_1(GT307.prototype.ACTION_PAYINACCOUNT2)) .replace_2( GT763.prototype.ID_DEPOSIT_INFO, GT871.prototype .set_0() .id_1(GT763.prototype.ID_DEPOSIT_INFO) .position_2(20, 285) .size_2(480, 100) .insets_4(0, 0, 5, 5) .vertical_0() .verticalAlignment_1(GT1489.prototype.TOP) .horizontalAlignment_1(GT1488.prototype.CENTER) .child_1( GT872.prototype .set_0() .insets_4(0, 0, 5, 5) .size_2(360, 30) .breakLines_1(!1) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1("${notenoughfunds}") .addFont_1(this.getDialogLabelFont_1(3)) .addFont_1(this.getDialogLabelFont_1(5)) .addFont_1(this.getDialogLabelFont_1(7)) .addFont_1(this.getDialogLabelFont_1(9)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).insets_4(0, 0, 5, 5).child_1(this.button_4("${depositnow}", 240, 46, 10).id_1(GT307.prototype.ACTION_PAYINACCOUNT))) ) .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(500, 395)); }, containerDisableGamblingDialog_2: function (a, b) { return GT186.prototype.containerDisableGamblingDialog_2 .call(this, a, b) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_TITLE, GT872.prototype.set_0().size_2(560, 68).insets_4(20, 20, 20, 0)) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_SEPARATOR, GT1188.prototype.set_0().size_2(520, 1).position_2(20, 70)) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_TEXT, GT1442.prototype.set_0().size_2(520, 115)) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_TEXT, GT1240.prototype.set_0().moveY_1(25)) .replace_2( GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG, GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG) .position_2(496, 20) .child_1(GT1392.prototype.set_0().size_2(44, 44).image_1(this.closeIcon_1(44)).colorTransformation_1(this.getConsoleColorTransformation_0())) ) .modify_2(GT307.prototype.IMG_GAMBLING_CARD, GT1240.prototype.set_0().x_1(Math.div(280, 2)).y_1(85)) .modify_2(GT307.prototype.IMG_GAMBLING_SINGLE, GT1240.prototype.set_0().x_1(Math.div(196, 2)).y_1(85)) .replace_2(GT307.prototype.ACTION_ENABLE_GAMBLING, this.toggleButton_4("${neon_settings_off}", 180, 92, !1).position_2(190, 383).id_1(GT307.prototype.ACTION_ENABLE_GAMBLING)) .replace_2(GT307.prototype.ACTION_DISABLE_GAMBLING, this.toggleButton_4("${neon_settings_on}", 180, 92, !0).position_2(190, 383).id_1(GT307.prototype.ACTION_DISABLE_GAMBLING)) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_SAVED, GT1442.prototype.set_0().width_1(520)) .modify_2(GT307.prototype.TEXT_GAMBLING_DIALOG_SAVED, GT1240.prototype.set_0().y_1(493)) .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(560, 583)); }, containerAutoplaySettingsDialog_2: function (a, b) { return a .modify_2(GT307.prototype.TEXT_APROUNDS_MSG, GT1442.prototype.set_0().width_1(550)) .modify_2(GT307.prototype.TEXT_APROUNDS_MSG, GT872.prototype.set_0().addFont_1(this.getDialogLabelFont_1(2)).addFont_1(this.getDialogLabelFont_1(4)).addFont_1(this.getDialogLabelFont_1(6))) .modify_2(GT307.prototype.ID_APROUNDS_SLIDERBACK, GT1442.prototype.set_0().width_1(520)) .modify_2(GT307.prototype.ID_APROUNDS_SLIDERBACK, GT1240.prototype.set_0().moveY_1(10)) .replace_2(GT307.prototype.ACTION_APROUNDS_SLIDER, GT763.prototype.slider_4(550, 6, 30, this.theme).position_2(15, 60).id_1(GT307.prototype.ACTION_APROUNDS_SLIDER).min_1(0).max_1(10)) .modify_2(GT307.prototype.TEXT_APROUNDS_VALUE, GT1240.prototype.set_0().moveY_1(10)) .modify_2(GT307.prototype.TEXT_APROUNDS_VALUE, GT1442.prototype.set_0().width_1(580)) .modify_2(GT307.prototype.TEXT_APLOSSLIMIT_MSG, GT1442.prototype.set_0().width_1(550)) .modify_2(GT307.prototype.TEXT_APLOSSLIMIT_MSG, GT1240.prototype.set_0().moveY_1(10)) .modify_2(GT307.prototype.TEXT_APLOSSLIMIT_MSG, GT872.prototype.set_0().addFont_1(this.getDialogLabelFont_1(2)).addFont_1(this.getDialogLabelFont_1(4)).addFont_1(this.getDialogLabelFont_1(6))) .modify_2(GT307.prototype.ID_APLOSSLIMIT_SLIDERBACK, GT1442.prototype.set_0().width_1(520)) .modify_2(GT307.prototype.ID_APLOSSLIMIT_SLIDERBACK, GT1240.prototype.set_0().moveY_1(20)) .replace_2(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER, GT763.prototype.slider_4(550, 6, 30, this.theme).position_2(15, 220).id_1(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER).min_1(0).max_1(10)) .modify_2(GT307.prototype.TEXT_APLOSSLIMIT_VALUE, GT1240.prototype.set_0().moveY_1(20)) .modify_2(GT307.prototype.TEXT_APLOSSLIMIT_VALUE, GT1442.prototype.set_0().width_1(580)) .modify_2(GT307.prototype.TEXT_APSINGLEWIN_MSG, GT1442.prototype.set_0().size_2(550, 75)) .modify_2(GT307.prototype.TEXT_APSINGLEWIN_MSG, GT1240.prototype.set_0().moveY_1(30)) .modify_2(GT307.prototype.TEXT_APSINGLEWIN_MSG, GT872.prototype.set_0().addFont_1(this.getDialogLabelFont_1(2)).addFont_1(this.getDialogLabelFont_1(4)).addFont_1(this.getDialogLabelFont_1(6))) .modify_2(GT307.prototype.ID_APSINGLEWIN_SLIDERBACK, GT1442.prototype.set_0().width_1(520)) .modify_2(GT307.prototype.ID_APSINGLEWIN_SLIDERBACK, GT1240.prototype.set_0().moveY_1(65)) .replace_2(GT307.prototype.ACTION_APSINGLEWIN_SLIDER, GT763.prototype.slider_4(550, 6, 30, this.theme).position_2(15, 415).id_1(GT307.prototype.ACTION_APSINGLEWIN_SLIDER).min_1(0).max_1(10)) .modify_2(GT307.prototype.TEXT_APSINGLEWIN_VALUE, GT1240.prototype.set_0().moveY_1(65)) .modify_2(GT307.prototype.TEXT_APSINGLEWIN_VALUE, GT1442.prototype.set_0().width_1(580)) .replace_2(GT307.prototype.ACTION_CLOSEAPSETTINGS, this.button_3("${neon_dialog_cancel}", Math.div(490, 2), 75).id_1(GT307.prototype.ACTION_CLOSEAPSETTINGS).position_2(30, 545)) .replace_2(GT307.prototype.ACTION_SETAPSETTINGS, this.button_3("${dialog_ok}", Math.div(490, 2), 75).id_1(GT307.prototype.ACTION_SETAPSETTINGS).position_2(Math.div(610, 2), 545)) .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(580, 645)); }, getDialogLabelFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_LARGE, a); }, containerSessionSettingsDialog_2: function (a, b) { return a .replace_2(GT307.prototype.ACTION_SENDSETTINGS, this.button_3("${dialog_ok}", 390, 75).id_1(GT307.prototype.ACTION_SENDSETTINGS).position_2(30, 565)) .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(450, 665)); }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.TOP) .child_1( GT1186.prototype .set_0() .size_2(1280, 1024) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-back.png").overrideSize_2(50, 50), 120, 120, 2) .id_1(GT307.prototype.ACTION_REWIND) .position_2(0, 700) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-play.png").overrideSize_2(50, 50), 120, 120, 2) .id_1(GT307.prototype.ACTION_PLAY) .position_2(145, 700) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-fw.png").overrideSize_2(50, 50), 120, 120, 2) .id_1(GT307.prototype.ACTION_FORWARD) .position_2(1015, 700) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(50, 50), 120, 120, 2) .id_1(GT307.prototype.ACTION_CLOSEREPLAY) .position_2(1160, 700) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(1065, 5) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(1065, 45) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) ) ); }, containerRealityCheckDialogIntervalRounds_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(530, 310)) .replace_2(GT307.prototype.ACTION_KEEPPLAYING, this.button_3("${alttext_realitycheckcontinue}", 470, 75).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 210)); }, containerRealityCheckDialogIntervalTime_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(530, 370)) .replace_2(GT307.prototype.ACTION_KEEPPLAYING, this.button_3("${alttext_realitycheckcontinue}", 220, 70).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 275)) .replace_2(GT307.prototype.ACTION_STOPGAME, this.button_3("${alttext_realitycheckstop}", 220, 70).id_1(GT307.prototype.ACTION_STOPGAME).position_2(280, 275)); }, containerErrorDialog_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(530, 280)) .modify_2(GT307.prototype.TEXT_ERRORMSG, GT872.prototype.set_0().size_2(530, 175)) .replace_2(GT307.prototype.ACTION_KEEPPLAYING, this.button_3("${alttext_limitcontinuebutton}", 470, 75).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 190)) .replace_2(GT307.prototype.ACTION_STOPGAME, this.button_3("${alttext_limitstopbutton}", 470, 75).id_1(GT307.prototype.ACTION_STOPGAME).position_2(30, 190)); }, containerRCSettingsDialog_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(450, 290)) .replace_2(GT307.prototype.ACTION_SETRCSETTINGS, this.button_3("${dialog_ok}", 390, 75).id_1(GT307.prototype.ACTION_SETRCSETTINGS).position_2(30, 190)); }, containerRealityCheckDialogLeavingGame_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(530, 340)) .replace_2(GT307.prototype.ACTION_STOPGAME, this.button_3("${alttext_realitycheckstop}", 460, 75).id_1(GT307.prototype.ACTION_STOPGAME).position_2(30, 240)); }, containerResponsibleGamingInfoDialog_2: function (a, b) { return a .modify_2(GT307.prototype.ID_DIALOG_BACKGROUND, GT1187.prototype.set_0().size_2(530, 390)) .modify_2(GT307.prototype.TEXT_ERRORMSG, GT872.prototype.set_0().size_2(530, 280)) .replace_2(GT307.prototype.ACTION_KEEPPLAYING, this.button_3("${alttext_limitcontinuebutton}", 220, 70).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 300)) .replace_2(GT307.prototype.ACTION_RESPONSIBLE_LINK, this.button_3("${moreinfo}", 220, 70).id_1(GT307.prototype.ACTION_RESPONSIBLE_LINK).position_2(280, 300)); }, button_3: function (a, b, d) { return this.button_4(a, b, d, 5); }, button_4: function (a, b, d, e) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .fontColor_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(e, e, e, e) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .gradient_1(this.theme.getNormalButtonGradient_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(e, e, e, e) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.97, 0.97) .position_2(Integer.truncate_1((b - 0.97 * b) / 2), Integer.truncate_1((d - 0.97 * d) / 2)) .size_2(b, d) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .gradient_1(this.theme.getNormalButtonGradient_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(e, e, e, e) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .gradient_1(GT1238.prototype.invert_1(this.theme.getNormalButtonGradient_0())) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(e, e, e, e) ) ); }, toggleButton_4: function (a, b, d, e) { var f = Math.div(b, 2), g = e ? 1 : f - 1, k = e ? f + 4 : 6, m = e ? GT1019.prototype.CCK_BUTTON_PRIMARY : GT1019.prototype.CCK_BUTTON_DEFAULT, m = this.theme.getConsoleColorSet_0().getButtonColorSet_1(m); e = e ? "/com/greentube/gameconsole/res/neon/mobile/on-icon.png" : "/com/greentube/gameconsole/res/neon/mobile/off-icon.png"; return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(m.getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getInactive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .fontColor_1(m.getInactive_0().getBorder_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getInactive_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getActive_0().getBackgroundAlpha_0())) .colorBorder_1(m.getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getActive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getActive_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(m.getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getPressed_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.97, 0.97) .position_2(Integer.truncate_1((b - 0.97 * b) / 2), Integer.truncate_1((d - 0.97 * d) / 2)) .size_2(b, d) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getPressed_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getHover_0().getBackgroundAlpha_0())) .colorBorder_1(m.getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getHover_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getHover_0().getColorTransformation_0())) ); }, buttonIcon_4: function (a, b, d, e) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(e) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.CENTER).child_1(GT1392.prototype.set_0().image_1(a))) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(e) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0())) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(e) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.9, 0.9) .position_2(Integer.truncate_1((b - 0.9 * b) / 2), Integer.truncate_1((d - 0.9 * d) / 2)) .size_2(b, d) .child_1( GT871.prototype .set_0() .size_2(b, d) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1392.prototype .set_0() .image_1(a) .colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getColorTransformation_0()) ) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(e) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getColorTransformation_0())) ) ); }, getButtonFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_SECONDARY_BUTTON, a); }, closeIcon_1: function (a) { return GT1390.prototype.set_0().tiling_2(1, 1).file_1("/com/greentube/gameconsole/res/neon/mobile/close-icon.png").overrideSize_2(a, a); }, getConsoleColorTransformation_0: function () { return this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0(); }, }, "GT463", [] ), GT209 = GT463.extend( { initialConstructor_0: function () { GT463.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT463.prototype.initialConstructor_3.call(this, a, b, d); }, containerWatcherInfo_2: function (a, b) { return GT463.prototype.containerWatcherInfo_2.call(this, a, b).position_2(275, 425); }, containerPayInDialog_2: function (a, b) { return GT463.prototype.containerPayInDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerAutoplaySettingsDialog_2: function (a, b) { return GT463.prototype.containerAutoplaySettingsDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.TOP) .child_1( GT1186.prototype .set_0() .size_2(1280, 1024) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-back.png").overrideSize_2(50, 50), 200, 200, 8) .id_1(GT307.prototype.ACTION_REWIND) .position_2(0, 610) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-play.png").overrideSize_2(50, 50), 200, 200, 8) .id_1(GT307.prototype.ACTION_PLAY) .position_2(225, 610) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-fw.png").overrideSize_2(50, 50), 200, 200, 8) .id_1(GT307.prototype.ACTION_FORWARD) .position_2(855, 610) ) .child_1( this.buttonIcon_4(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(50, 50), 200, 200, 8) .id_1(GT307.prototype.ACTION_CLOSEREPLAY) .position_2(1080, 610) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(1065, 5) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(1065, 45) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) ) ); }, getDialogLabelFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON, a); }, containerSessionSettingsDialog_2: function (a, b) { return GT463.prototype.containerSessionSettingsDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerRealityCheckDialogIntervalRounds_2: function (a, b) { return GT463.prototype.containerRealityCheckDialogIntervalRounds_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerRealityCheckDialogIntervalTime_2: function (a, b) { return GT463.prototype.containerRealityCheckDialogIntervalTime_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerErrorDialog_2: function (a, b) { return GT463.prototype.containerErrorDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerRCSettingsDialog_2: function (a, b) { return GT463.prototype.containerRCSettingsDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerRealityCheckDialogLeavingGame_2: function (a, b) { return GT463.prototype.containerRealityCheckDialogLeavingGame_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerResponsibleGamingInfoDialog_2: function (a, b) { return GT463.prototype.containerResponsibleGamingInfoDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, containerDisableGamblingDialog_2: function (a, b) { return GT463.prototype.containerDisableGamblingDialog_2.call(this, a, b).contentScaling_2(1.5, 1.5); }, }, "GT209", [] ), GT1535 = Class.extend( { initialConstructor_0: function () { this.background = this.border = null; this.backgroundAlpha = this.borderAlpha = 0; this.colorTransformation = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.background = this.border = null; this.backgroundAlpha = this.borderAlpha = 0; this.colorTransformation = null; Class.prototype.initialConstructor_0.call(this); this.border = b; this.background = d; this.borderAlpha = e; this.backgroundAlpha = f; }, initialConstructor_6: function (a, b, d, e, f, g) { GT1535.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.colorTransformation = g; }, getBorder_0: function () { return this.border; }, getBackground_0: function () { return this.background; }, getBorderAlpha_0: function () { return this.borderAlpha; }, getBackgroundAlpha_0: function () { return this.backgroundAlpha; }, getColorTransformation_0: function () { return this.colorTransformation; }, }, "GT1535", [] ), GT1241 = Class.extend( { initialConstructor_0: function () { this.pressed = this.hover = this.active = this.inactive = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.pressed = this.hover = this.active = this.inactive = null; Class.prototype.initialConstructor_0.call(this); this.inactive = b; this.active = d; this.hover = e; this.pressed = f; }, getInactive_0: function () { return this.inactive; }, getActive_0: function () { return this.active; }, getHover_0: function () { return this.hover; }, getPressed_0: function () { return this.pressed; }, }, "GT1241", [] ), GT1019 = Class.extend({ initialConstructor_0: function () {} }, "GT1019", []); GT1019.prototype.CCK_BUTTON_DEFAULT = "cck_button_default"; GT1019.prototype.CCK_BUTTON_BET_VALUE = "cck_button_bet_value"; GT1019.prototype.CCK_BUTTON_PRIMARY = "cck_button_primary"; GT1019.prototype.CCK_DISPLAY = "cck_display"; GT1019.prototype.CCK_BUTTON_ON_BLACK = "cck_button_on_black"; GT1019.prototype.CCK_BUTTON_SPINNER = "cck_button_spinner"; GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND = "cck_button_overlay_sound"; var GT971 = Class.extend( { initialConstructor_16: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A) { this.colorSets = null; this.primaryBgAlphaExtra = this.primaryBgAlphaNormal = this.normalBgAlphaExtra = this.normalBgAlphaNormal = this.primaryCtBlue = this.primaryCtGreen = this.primaryCtRed = this.ctBlue = this.ctGreen = this.ctRed = this.baseColorDisplay = this.primaryColor = this.bgColorLight = this.bgColor = this.inactiveColor = this.baseColor = 0; this.colorSets = new java_util_JavaScriptHashtable(); this.baseColor = a; this.inactiveColor = b; this.bgColor = d; this.bgColorLight = e; this.primaryColor = f; this.baseColorDisplay = g; this.ctRed = k; this.ctGreen = m; this.ctBlue = n; this.primaryCtRed = p; this.primaryCtGreen = q; this.primaryCtBlue = r; this.normalBgAlphaNormal = t; this.normalBgAlphaExtra = u; this.primaryBgAlphaNormal = B; this.primaryBgAlphaExtra = A; this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_DEFAULT, this.getDefaultButtonColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_BET_VALUE, this.getBetValueButtonColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_PRIMARY, this.getPrimaryButtonColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_DISPLAY, this.getDisplayColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_ON_BLACK, this.getButtonOnBlackColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, this.getButtonOverlaySoundColorSet_0()); this.addColorSetConfig_2(GT1019.prototype.CCK_BUTTON_SPINNER, this.getButtonSpinnerColorSet_0()); }, initialConstructor_0: function () { GT971.prototype.initialConstructor_16.call( this, GT971.prototype.BASE_COLOR_BUTTON, GT971.prototype.BASE_COLOR_INACTIVE, GT971.prototype.BASE_COLOR_BG, GT971.prototype.BASE_COLOR_BG_LIGHT, GT971.prototype.PRIMARY_COLOR, GT971.prototype.BASE_COLOR_DISPLAY, GT971.prototype.CT_RED_OFFSET, GT971.prototype.CT_GREEN_OFFSET, GT971.prototype.CT_BLUE_OFFSET, GT971.prototype.PRIMARY_CT_RED_OFFSET, GT971.prototype.PRIMARY_CT_GREEN_OFFSET, GT971.prototype.PRIMARY_CT_BLUE_OFFSET, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_EXTRA, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_EXTRA ); }, initialConstructor_4: function (a, b, d, e) { GT971.prototype.initialConstructor_16.call( this, GT971.prototype.BASE_COLOR_BUTTON, GT971.prototype.BASE_COLOR_INACTIVE, GT971.prototype.BASE_COLOR_BG, GT971.prototype.BASE_COLOR_BG_LIGHT, GT971.prototype.PRIMARY_COLOR, GT971.prototype.BASE_COLOR_DISPLAY, GT971.prototype.CT_RED_OFFSET, GT971.prototype.CT_GREEN_OFFSET, GT971.prototype.CT_BLUE_OFFSET, GT971.prototype.PRIMARY_CT_RED_OFFSET, GT971.prototype.PRIMARY_CT_GREEN_OFFSET, GT971.prototype.PRIMARY_CT_BLUE_OFFSET, a, b, d, e ); }, initialConstructor_2: function (a, b) { GT971.prototype.initialConstructor_16.call( this, a, GT971.prototype.BASE_COLOR_INACTIVE, GT971.prototype.BASE_COLOR_BG, GT971.prototype.BASE_COLOR_BG_LIGHT, b, GT971.prototype.BASE_COLOR_DISPLAY, ((a >> 16) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((a >> 8) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, (a & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((b >> 16) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((b >> 8) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, (b & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_EXTRA, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_EXTRA ); }, initialConstructor_6: function (a, b, d, e, f, g) { GT971.prototype.initialConstructor_16.call( this, a, GT971.prototype.BASE_COLOR_INACTIVE, GT971.prototype.BASE_COLOR_BG, GT971.prototype.BASE_COLOR_BG_LIGHT, b, GT971.prototype.BASE_COLOR_DISPLAY, ((a >> 16) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((a >> 8) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, (a & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((b >> 16) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, ((b >> 8) & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, (b & 255) - GT971.prototype.DEFAULT_GRAYSCALE_OFFSET, d, e, f, g ); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT971.prototype.initialConstructor_16.call( this, a, GT971.prototype.BASE_COLOR_INACTIVE, GT971.prototype.BASE_COLOR_BG, GT971.prototype.BASE_COLOR_BG_LIGHT, b, GT971.prototype.BASE_COLOR_DISPLAY, d, e, f, g, k, m, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.NORMAL_BUTTON_BG_ALPHA_EXTRA, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_NORMAL, GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_EXTRA ); }, getDefaultButtonColorSet_0: function () { var a = new GT1535( GT1019.prototype.CCK_BUTTON_DEFAULT.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 156, this.normalBgAlphaNormal, this.getDefaultColorTransformation_0() ), b = new GT1535( GT1019.prototype.CCK_BUTTON_DEFAULT.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, this.normalBgAlphaNormal, this.getInactiveColorTransformation_0() ), d = new GT1535( GT1019.prototype.CCK_BUTTON_DEFAULT.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 255, this.normalBgAlphaExtra, this.getHoverColorTransformation_0() ), e = new GT1535( GT1019.prototype.CCK_BUTTON_DEFAULT.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 255, this.normalBgAlphaExtra, this.getPressedColorTransformation_0() ); return new GT1241(GT1019.prototype.CCK_BUTTON_DEFAULT, b, a, d, e); }, getPrimaryButtonColorSet_0: function () { var a = new GT1535( GT1019.prototype.CCK_BUTTON_PRIMARY.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.primaryColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 156, this.primaryBgAlphaNormal, this.getPrimaryDefaultColorTransformation_0() ), b = new GT1535( GT1019.prototype.CCK_BUTTON_PRIMARY.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, this.primaryBgAlphaNormal, this.getPrimaryInactiveColorTransformation_0() ), d = new GT1535( GT1019.prototype.CCK_BUTTON_PRIMARY.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.primaryColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 255, this.primaryBgAlphaExtra, this.getPrimaryHoverColorTransformation_0() ), e = new GT1535( GT1019.prototype.CCK_BUTTON_PRIMARY.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.primaryColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 155, this.primaryBgAlphaExtra, this.getPrimaryPressedColorTransformation_0() ); return new GT1241(GT1019.prototype.CCK_BUTTON_PRIMARY, b, a, d, e); }, getBetValueButtonColorSet_0: function () { var a = new GT1535(GT1019.prototype.CCK_BUTTON_BET_VALUE.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, 180), b = new GT1535(GT1019.prototype.CCK_BUTTON_BET_VALUE.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, 180), d = new GT1535(GT1019.prototype.CCK_BUTTON_BET_VALUE.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 255, 210), e = new GT1535(GT1019.prototype.CCK_BUTTON_BET_VALUE.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.baseColor), 255, 255); return new GT1241(GT1019.prototype.CCK_BUTTON_BET_VALUE, b, a, d, e); }, getButtonOnBlackColorSet_0: function () { var a = new GT1535(GT1019.prototype.CCK_BUTTON_ON_BLACK.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, 240, this.getDefaultColorTransformation_0()), b = new GT1535( GT1019.prototype.CCK_BUTTON_ON_BLACK.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, 240, this.getInactiveColorTransformation_0() ), d = new GT1535( GT1019.prototype.CCK_BUTTON_ON_BLACK.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 255, 20, this.getHoverColorTransformation_0() ), e = new GT1535( GT1019.prototype.CCK_BUTTON_ON_BLACK.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 255, 35, this.getPressedColorTransformation_0() ); return new GT1241(GT1019.prototype.CCK_BUTTON_ON_BLACK, b, a, d, e); }, getButtonSpinnerColorSet_0: function () { var a = new GT1535(GT1019.prototype.CCK_BUTTON_SPINNER.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 0, 0, this.getDefaultColorTransformation_0()), b = new GT1535(GT1019.prototype.CCK_BUTTON_SPINNER.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 0, 0, this.getInactiveColorTransformation_0()), d = new GT1535(GT1019.prototype.CCK_BUTTON_SPINNER.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 156, 0, this.getHoverColorTransformation_0()), e = new GT1535( GT1019.prototype.CCK_BUTTON_SPINNER.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 255, 35, this.getPressedColorTransformation_0() ); return new GT1241(GT1019.prototype.CCK_BUTTON_SPINNER, b, a, d, e); }, getButtonOverlaySoundColorSet_0: function () { var a = new GT1535(GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.bgColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 12, 12, this.getDefaultColorTransformation_0()), b = new GT1535( GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.bgColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 240, 240, this.getInactiveColorTransformation_0() ), d = new GT1535( GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND.concat_1("#mouseover"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 255, 28, this.getHoverColorTransformation_0() ), e = new GT1535( GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND.concat_1("#pressed"), GT1391.prototype.set_0().rgb_1(this.baseColor), GT1391.prototype.set_0().rgb_1(this.bgColorLight), 178, 0, this.getPressedColorTransformation_0() ); return new GT1241(GT1019.prototype.CCK_BUTTON_OVERLAY_SOUND, b, a, d, e); }, getDisplayColorSet_0: function () { var a = new GT1535(GT1019.prototype.CCK_DISPLAY.concat_1("#default"), GT1391.prototype.set_0().rgb_1(this.baseColorDisplay), GT1391.prototype.set_0().rgb_1(this.bgColor), 40, this.normalBgAlphaNormal); return new GT1241(GT1019.prototype.CCK_DISPLAY, null, a, null, null); }, getDefaultColorTransformation_0: function () { return this.makeColorTransformation_3(this.ctRed, this.ctGreen, this.ctBlue); }, getInactiveColorTransformation_0: function () { return null; }, getHoverColorTransformation_0: function () { return this.makeColorTransformation_3(this.ctRed + GT971.prototype.HIGHLIGHT_OFFSET, this.ctGreen + GT971.prototype.HIGHLIGHT_OFFSET, this.ctBlue + GT971.prototype.HIGHLIGHT_OFFSET); }, getPressedColorTransformation_0: function () { return this.getHoverColorTransformation_0(); }, getPrimaryDefaultColorTransformation_0: function () { return this.makeColorTransformation_3(this.primaryCtRed, this.primaryCtGreen, this.primaryCtBlue); }, getPrimaryInactiveColorTransformation_0: function () { return null; }, getPrimaryHoverColorTransformation_0: function () { return this.makeColorTransformation_3(this.primaryCtRed + GT971.prototype.HIGHLIGHT_OFFSET, this.primaryCtGreen + GT971.prototype.HIGHLIGHT_OFFSET, this.primaryCtBlue + GT971.prototype.HIGHLIGHT_OFFSET); }, getPrimaryPressedColorTransformation_0: function () { return this.getPrimaryHoverColorTransformation_0(); }, makeColorTransformation_3: function (a, b, d) { return GT656.prototype.set_0().matrix_12(33, 33, 33, a, 33, 33, 33, b, 33, 33, 33, d); }, addColorSetConfig_2: function (a, b) { this.colorSets.put_2(a, b); return this; }, getButtonColorSet_1: function (a) { var b = this.colorSets.get_1(a); GT1650.prototype.assertExp_2(null != b, "Illegal use of colorSetConfigKey='" + a + "'"); return b; }, createAndAddCustomColorSetConfig_2: function (a, b) { GT1650.prototype.assertExp_2(null != a && "" != a, "String Name is empty or null."); var d = new GT1535(a.concat_1("#default"), b, GT1391.prototype.set_0().rgb_1(this.bgColor), 156, 160, this.getPrimaryDefaultColorTransformation_0()), e = new GT1535(a.concat_1("#inactive"), GT1391.prototype.set_0().rgb_1(this.inactiveColor), GT1391.prototype.set_0().rgb_1(this.bgColor), 178, 160, this.getPrimaryInactiveColorTransformation_0()), f = new GT1535(a.concat_1("#mouseover"), b, GT1391.prototype.set_0().rgb_1(this.bgColor), 255, 210, this.getPrimaryHoverColorTransformation_0()), g = new GT1535(a.concat_1("#pressed"), b, GT1391.prototype.set_0().rgb_1(this.bgColor), 155, 210, this.getPrimaryPressedColorTransformation_0()); this.addColorSetConfig_2(a, new GT1241(a, e, d, f, g)); }, }, "GT971", [GT1178] ); GT971.prototype.DEFAULT_GRAYSCALE_OFFSET = 127; GT971.prototype.BASE_COLOR_BUTTON = 16763904; GT971.prototype.BASE_COLOR_DISPLAY = 16777215; GT971.prototype.BASE_COLOR_INACTIVE = 8421504; GT971.prototype.BASE_COLOR_BG = 0; GT971.prototype.BASE_COLOR_BG_LIGHT = 16777215; GT971.prototype.PRIMARY_COLOR = 6484992; GT971.prototype.CT_RED_OFFSET = 128; GT971.prototype.CT_GREEN_OFFSET = 77; GT971.prototype.CT_BLUE_OFFSET = -127; GT971.prototype.PRIMARY_CT_RED_OFFSET = -34; GT971.prototype.PRIMARY_CT_GREEN_OFFSET = 103; GT971.prototype.PRIMARY_CT_BLUE_OFFSET = -103; GT971.prototype.HIGHLIGHT_OFFSET = 36; GT971.prototype.NORMAL_BUTTON_BG_ALPHA_NORMAL = 160; GT971.prototype.NORMAL_BUTTON_BG_ALPHA_EXTRA = 174; GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_NORMAL = 160; GT971.prototype.PRIMARY_BUTTON_BG_ALPHA_EXTRA = 210; var GT1189 = Class.extend( { initialConstructor_0: function () { this.fontConfigs = null; this.fontConfigs = new java_util_JavaScriptHashtable(); }, addFontConfig_2: function (a, b) { this.fontConfigs.put_2(a, b); return this; }, getFonts_1: function (a) { var b = this.fontConfigs.get_1(a); GT1650.prototype.assertExp_2(null != b, "Illegal use of fontConfigKey='" + a + "'"); a = [].createArray(b.getIterations_0()); for (var d = 0; d < a.length; d++) a[d] = GT1389.prototype .getInstance_0() .getSkinManager_0() .getResourceManager_0() .getFont_6(b.getName_0(), b.isBold_0(), b.isItalic_0(), 0, b.getStartWidth_0() + d * b.getStep_0(), 0); return a; }, getPFont_2: function (a, b) { var d = this.fontConfigs.get_1(a), e = GT1441.prototype.set_0(); e.name_1(GT1393.prototype.findFont_1(d.getName_0())); d.isBold_0() && e.bold_0(); d.isItalic_0() && e.italic_0(); e.size_1(d.getStartWidth_0() + b * d.getStep_0()); return e; }, getFontConfigs_0: function () { for (var a = this.fontConfigs.elements_0(), b = new java_util_JavaScriptVector(); a.hasMoreElements_0(); ) { var d = a.nextElement_0(); b.contains_1(d.getFontData_0()) || b.add_1(d.getFontData_0()); } a = [].createArray(b.size_0()); for (d = 0; d < b.size_0(); d++) a[d] = b.get_1(d); return a; }, }, "GT1189", [GT1372] ), GT972 = Class.extend( { initialConstructor_0: function () { this.consoleColorSet = this.consoleFont = null; this.featureColorOffset = this.primaryColorOffset = this.labelColorOffset = this.baseColorInverseOffset = this.baseColorOffset = this.statusColor = this.bgColor = this.featureColor = this.primaryColor = this.labelColor = this.baseColorInverse = this.baseColor = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT972.prototype.initialConstructor_14.call( this, a, b, GT972.prototype.BASE_COLOR, GT972.prototype.BASE_COLOR_INVERSE, GT972.prototype.BASE_LABEL_COLOR, GT972.prototype.BASE_STATUS_COLOR, GT972.prototype.BASE_PRIMARY_COLOR, GT972.prototype.BASE_PRIMARY_COLOR, GT972.prototype.BASE_BG_COLOR, GT972.prototype.BASE_COLOR_OFFSET, GT972.prototype.BASE_COLOR_INVERSE_OFFSET, GT972.prototype.LABEL_COLOR_OFFSET, GT972.prototype.PRIMARY_COLOR_OFFSET, GT972.prototype.PRIMARY_COLOR_OFFSET ); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT972.prototype.initialConstructor_14.call( this, a, b, d, GT972.prototype.BASE_COLOR_INVERSE, GT972.prototype.BASE_LABEL_COLOR, GT972.prototype.BASE_STATUS_COLOR, e, f, GT972.prototype.BASE_BG_COLOR, g, GT972.prototype.BASE_COLOR_INVERSE_OFFSET, GT972.prototype.LABEL_COLOR_OFFSET, k, m ); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { this.consoleColorSet = this.consoleFont = null; this.featureColorOffset = this.primaryColorOffset = this.labelColorOffset = this.baseColorInverseOffset = this.baseColorOffset = this.statusColor = this.bgColor = this.featureColor = this.primaryColor = this.labelColor = this.baseColorInverse = this.baseColor = 0; this.consoleFont = a; this.consoleColorSet = b; this.baseColor = d; this.baseColorInverse = e; this.labelColor = f; this.statusColor = g; this.primaryColor = k; this.featureColor = m; this.bgColor = n; this.baseColorOffset = p; this.baseColorInverseOffset = q; this.labelColorOffset = r; this.primaryColorOffset = t; this.featureColorOffset = u; }, getConsoleFont_0: function () { return this.consoleFont; }, getConsoleColorSet_0: function () { return this.consoleColorSet; }, getLabelColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.labelColor); }, getOverlayBorderColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.labelColor); }, getOverlayBorderAlpha_0: function () { return GT1022.prototype.set_0().alpha_1(38); }, getOverlayColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.bgColor); }, getOverlayAlpha_0: function () { return GT1022.prototype.set_0().alpha_1(178); }, getNormalButtonColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.baseColor); }, getNormalButtonGradient_0: function () { return GT1238.prototype .set_0() .addColor_2(GT1391.prototype.set_0().rgb_1(this.baseColor), 0.1) .addColor_2(GT1391.prototype.set_0().rgb_1(this.baseColor - this.baseColorOffset), 0.7) .rotation_1(Math.PI / 2); }, getNormalButtonInverseGradient_0: function () { return GT1238.prototype .set_0() .addColor_2(GT1391.prototype.set_0().rgb_1(this.baseColorInverse), 0.1) .addColor_2(GT1391.prototype.set_0().rgb_1(this.baseColorInverse - this.baseColorInverseOffset), 0.7) .rotation_1(Math.PI / 2); }, getPrimaryButtonColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.primaryColor); }, getPrimaryButtonGradient_0: function () { return GT1238.prototype .set_0() .addColor_2(GT1391.prototype.set_0().rgb_1(this.primaryColor), 48 / 255) .addColor_2(GT1391.prototype.set_0().rgb_1(this.primaryColor - this.primaryColorOffset), 207 / 255) .rotation_1(Math.PI / 2); }, getLabelGradient_0: function () { return null; }, getValueColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.labelColor); }, getFeatureColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.featureColor); }, getFeatureGradient_0: function () { return GT1238.prototype .set_0() .addColor_2(GT1391.prototype.set_0().rgb_1(this.featureColor), 48 / 255) .addColor_2(GT1391.prototype.set_0().rgb_1(this.featureColor - this.featureColorOffset), 207 / 255) .rotation_1(Math.PI / 2); }, getStatusColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.statusColor); }, getStatusGradient_0: function () { return null; }, getPopupBgColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.bgColor); }, getPopupBgAlpha_0: function () { return GT1022.prototype.set_0().alpha_1(240); }, getPopupRadius_0: function () { return 12; }, getPopupEdges_0: function () { return 32; }, getPopupBorderColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.labelColor); }, getPopupBorderAlpha_0: function () { return this.getOverlayBorderAlpha_0(); }, getModalOverlayColor_0: function () { return GT1391.prototype.set_0().rgb_1(this.bgColor); }, getModalOverlayAlpha_0: function () { return GT1022.prototype.set_0().alpha_1(151); }, }, "GT972", [GT1324] ); GT972.prototype.BASE_COLOR = 16774144; GT972.prototype.BASE_COLOR_INVERSE = 7368823; GT972.prototype.BASE_LABEL_COLOR = 16777215; GT972.prototype.BASE_STATUS_COLOR = 12632256; GT972.prototype.BASE_PRIMARY_COLOR = 7470848; GT972.prototype.BASE_BG_COLOR = 0; GT972.prototype.BASE_COLOR_OFFSET = 10752; GT972.prototype.BASE_COLOR_INVERSE_OFFSET = 3158067; GT972.prototype.LABEL_COLOR_OFFSET = 3750201; GT972.prototype.PRIMARY_COLOR_OFFSET = 2964480; var GT1443 = Class.extend( { initialConstructor_0: function () { this.fontData = null; this.iterations = this.step = this.startWidth = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.fontData = null; this.iterations = this.step = this.startWidth = 0; Class.prototype.initialConstructor_0.call(this); this.fontData = new GT1023(a, b, d); this.startWidth = e; this.step = f; this.iterations = g; }, getFontData_0: function () { return this.fontData; }, getName_0: function () { return this.fontData.getName_0(); }, isBold_0: function () { return this.fontData.isBold_0(); }, isItalic_0: function () { return this.fontData.isItalic_0(); }, getStartWidth_0: function () { return this.startWidth; }, getStep_0: function () { return this.step; }, getIterations_0: function () { return this.iterations; }, }, "GT1443", [] ), GT1023 = Class.extend( { initialConstructor_0: function () { this.name = null; this.italic = this.bold = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.name = null; this.italic = this.bold = !1; Class.prototype.initialConstructor_0.call(this); this.name = a; this.bold = b; this.italic = d; }, getName_0: function () { return this.name; }, isBold_0: function () { return this.bold; }, isItalic_0: function () { return this.italic; }, hashCode_0: function () { var a; a = 31 + (this.bold ? 1231 : 1237); a = 31 * a + (this.italic ? 1231 : 1237); return (a = 31 * a + (null == this.name ? 0 : this.name.length_0())); }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT1023) || this.bold != a.bold || this.italic != a.italic) return !1; if (null == this.name) { if (null != a.name) return !1; } else if (!this.name.equals_1(a.name)) return !1; return !0; }, toString: function () { return "FontConfigFontData [name=" + this.name + ", bold=" + this.bold + ", italic=" + this.italic + "]"; }, }, "GT1023", [] ), GT1237 = Class.extend({ initialConstructor_0: function () {} }, "GT1237", []); GT1237.prototype.FCK_LABEL_MEDIUM = "fck_label"; GT1237.prototype.FCK_LABEL_LARGE = "fck_label2"; GT1237.prototype.FCK_LABEL_EXTRA_LARGE = "fck_label_xl"; GT1237.prototype.FCK_LABEL_LARGE_BOLD = "fck_label2b"; GT1237.prototype.FCK_SECONDARY_BUTTON = "fck_secondary_button"; GT1237.prototype.FCK_PRIMARY_BUTTON = "fck_primary_button"; GT1237.prototype.FCK_MENUITEM = "fck_menuitem"; GT1237.prototype.FCK_OVERLAY = "fck_overlay"; GT1237.prototype.FCK_WIN = "fck_windisplay"; GT1237.prototype.FCK_STATUS = "fck_windisplay_status"; GT1237.prototype.FCK_CREDITS = "fck_windisplay_credits"; GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON = "fck_bet_lines_panel_button"; GT1237.prototype.FCK_LABEL_VERSION = "fck_label_version"; var GT819 = Class.extend( { initialConstructor_0: function () { this.currentTime = this.sessionTime = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.currentTime = this.sessionTime = null; Class.prototype.initialConstructor_0.call(this); this.sessionTime = a; this.currentTime = b; }, getSessionTime_0: function () { return this.sessionTime; }, getCurrentTime_0: function () { return this.currentTime; }, hashCode_0: function () { var a; a = 31 + (null == this.currentTime ? 0 : this.currentTime.length_0()); return (a = 31 * a + (null == this.sessionTime ? 0 : this.sessionTime.length_0())); }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT819)) return !1; if (null == this.currentTime) { if (null != a.currentTime) return !1; } else if (!this.currentTime.equals_1(a.currentTime)) return !1; if (null == this.sessionTime) { if (null != a.sessionTime) return !1; } else if (!this.sessionTime.equals_1(a.sessionTime)) return !1; return !0; }, toString: function () { return "GameConsoleTimeData [sessionTime=" + this.sessionTime + ", currentTime=" + this.currentTime + "]"; }, }, "GT819", [] ), GT820 = Class.extend( { initialConstructor_0: function () { this.viewDataOmittedForEquality = this.viewData = null; this.viewData = new java_util_JavaScriptHashtable(); this.viewDataOmittedForEquality = new java_util_JavaScriptHashtable(); }, addViewData_2: function (a, b) { GT1650.prototype.assertExp_2(null != a, "Key must not be null"); GT1650.prototype.assertExp_2(null != b, "Data must not be null"); GT1650.prototype.assertExp_2(!a.equals_1(GT1184.prototype.RULES), "Use addRules to add the rules!"); this.skipEquality_1(a) ? this.viewDataOmittedForEquality.put_2(a, b) : this.viewData.put_2(a, b); }, skipEquality_1: function (a) { return GT1184.prototype.TRIGGERING_EVENT.equals_1(a) || GT1184.prototype.TRIGGERING_TIME.equals_1(a) || GT1184.prototype.BASE_BETS.equals_1(a) ? !0 : !1; }, getViewData_1: function (a) { GT1650.prototype.assertExp_2(null != a, "Key must not be null"); var b = null, b = this.viewData.containsKey_1(a) ? this.viewData.get_1(a) : this.viewDataOmittedForEquality.containsKey_1(a) ? this.viewDataOmittedForEquality.get_1(a) : null, d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getViewDataTransformer_0(); return null != d ? d.transform_2(a, b) : b; }, addRules_1: function (a) { this.viewData.put_2(GT1184.prototype.RULES, a); }, getRules_0: function () { var a = this.viewData.get_1(GT1184.prototype.RULES); return null == a ? new java_util_JavaScriptHashtable() : a; }, keys_0: function () { var a = new java_util_JavaScriptVector(); this.copyEnumerationToVector_2(this.viewData.keys_0(), a); this.copyEnumerationToVector_2(this.viewDataOmittedForEquality.keys_0(), a); return a; }, copyEnumerationToVector_2: function (a, b) { for (; a.hasMoreElements_0(); ) b.add_1(a.nextElement_0()); }, toString: function () { return "GameConsoleViewData [viewData=" + this.printHashTable_1(this.viewData) + ", viewData omitted for equality check=" + this.printHashTable_1(this.viewDataOmittedForEquality) + "]"; }, printHashTable_1: function (a) { for (var b = a.keys_0(), d = "{ ", e = !0; b.hasMoreElements_0(); ) { var f = b.nextElement_0(); e ? (e = !1) : (d = d.concat_1(", ")); d = d.concat_1("'" + f + "': "); f = a.get_1(f); d = instanceOf(f, java_util_JavaScriptHashtable) ? d.concat_1(this.printHashTable_1(f)) : d.concat_1(f.toString()); } return d.concat_1(" }"); }, hashCode_0: function () { var a; return (a = 31 + (null == this.viewData ? 0 : this.viewData.size_0())); }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT820)) return !1; if (null == this.viewData) { if (null != a.viewData) return !1; } else if (!this.viewData.equals_1(a.viewData) || !this.same_2(this.viewDataOmittedForEquality.get_1(GT1184.prototype.BASE_BETS), a.viewDataOmittedForEquality.get_1(GT1184.prototype.BASE_BETS))) return !1; return !0; }, same_2: function (a, b) { if ((null != a && null == b) || (null == a && null != b)) return !1; if (null == a && null == b) return !0; if (a.length != b.length) return !1; for (var d = 0; d < a.length; d++) if (a[d] != b[d]) return !1; return !0; }, convertToWrapper_1: function (a) { var b = GT1242.prototype.getWrapperTables_2(GT697.prototype.EVENT_VIEWDATA, null), d = b.getValueTable_0(), e = this.keys_0(); null != a && d.put_2(GT1184.prototype.TARGETED_UPDATE_MARKER, a); for (a = 0; a < e.size_0(); a++) { var f = e.get_1(a); if (GT1184.prototype.VISIBLE_AREA.equals_1(f)) { var g = this.getViewData_1(f); d.put_2(f, "{x:" + g.x + ", y:" + g.y + ", w:" + g.width + ", h:" + g.height + "}"); } else GT1184.prototype.BASE_BETS.equals_1(f) || GT1184.prototype.GAMEMODES.equals_1(f) ? ((g = this.convertIntArrayToVector_1(this.getViewData_1(f))), d.put_2(f, g)) : d.put_2(f, this.getViewData_1(f)); } return b; }, convertIntArrayToVector_1: function (a) { for (var b = new java_util_JavaScriptVector(), d = 0; null != a && d < a.length; d++) b.add_1(new Integer(a[d])); return b; }, }, "GT820", [GT755] ); GT820.prototype.TRIGGER_TIME_ENTER = "ENTER"; GT820.prototype.TRIGGER_TIME_FINISH = "FINISH"; GT820.prototype.TRIGGER_TIME_EVENT = "EVENT"; var GT1185 = Class.extend({ initialConstructor_0: function () {} }, "GT1185", []); GT1185.prototype.VDR_MENU_ALLOWED = "MENU_ALLOWED"; GT1185.prototype.VDR_EXIT_ALLOWED = "EXIT_ALLOWED"; GT1185.prototype.VDR_PAYIN_ALLOWED = "PAYIN_ALLOWED"; GT1185.prototype.VDR_REPLAY_ALLOWED = "REPLAY_ALLOWED"; GT1185.prototype.VDR_SOUNDPLAYER_ACTIVE = "SOUND_ALLOWED"; GT1185.prototype.VDR_MUSICPLAYER_ACTIVE = "MUSIC_ALLOWED"; GT1185.prototype.VDR_FULLSCREEN = "FULLSCREEN"; GT1185.prototype.VDR_COLLECT_WIN = "VDR_COLLECT_WIN"; GT1185.prototype.VDR_GUISTATE_CONSOLE_ID = "VDR_GUISTATE_CONSOLE_ID"; GT1185.prototype.VDR_VR_GAMBLE = "VDR_VR_GAMBLE"; GT1185.prototype.VDR_VR_MENU = "VDR_VR_MENU"; GT1185.prototype.VDR_VR_BET = "VDR_VR_BET"; GT1185.prototype.VDR_VR_LINE = "VDR_VR_LINE"; GT1185.prototype.VDR_VR_MAXBET = "VDR_VR_MAXBET"; GT1185.prototype.VDR_VR_START = "VDR_VR_START"; GT1185.prototype.VDR_VR_PAYTABLE = "VDR_VR_PAYTABLE"; GT1185.prototype.VDR_VR_STOP = "VDR_VR_STOP"; GT1185.prototype.VDR_VR_COLLECT = "VDR_VR_COLLECT"; GT1185.prototype.VDR_VR_START_AUTO = "VDR_VR_START_AUTO"; GT1185.prototype.VDR_VR_STOP_AUTO = "VDR_VR_STOP_AUTO"; GT1185.prototype.VDR_VR_SPECTATOR_MODE = "VDR_VR_SPECTATOR"; GT1185.prototype.VDR_VR_GAME_ACTION_DISABLED = "VDR_VR_GAME_ACTION_DISABLED"; GT1185.prototype.VDR_VR_SETTINGS_DISABLE_GAMBLE = "VDR_VR_DISABLE_GAMBLE"; GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE = "VDR_VR_CST_OVERRIDE"; GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_ENFORCE = "VDR_VR_CST_OVERRIDE_ENFORCE"; GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_GRADIENT = "VDR_VR_CST_OVERRIDE_GRADIENT"; GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_FULLSIZE = "VDR_VR_CST_OVERRIDE_FULLSIZE"; GT1185.prototype.VDR_VR_CONSOLE_FREESPIN_TEXT_OVERRIDE = "VDR_VR_CFST_OVERRIDE"; GT1185.prototype.VDR_FREE_SPIN_OFFSET = "VDR_FREE_SPIN_OFFSET"; var GT1184 = Class.extend({ initialConstructor_0: function () {} }, "GT1184", []); GT1184.prototype.RULES = "VDT_RULES"; GT1184.prototype.TOTAL_BET = "VDT_TOTALBET"; GT1184.prototype.SERVER_STATE = "VDT_SERVERSTATE"; GT1184.prototype.ROUNDID = "VDT_ROUNDID"; GT1184.prototype.PAYTABLE_OPEN = "VDT_PAYTABLE_OPEN"; GT1184.prototype.NUMBER_OF_LINES = "VDT_NUMBEROFLINES"; GT1184.prototype.LAST_WIN = "VDT_LASTWIN"; GT1184.prototype.LAST_WIN_ANIMATION = "VDT_LASTWIN_ANIMATION"; GT1184.prototype.WIN = "VDT_WIN"; GT1184.prototype.WIN_ANIMATION = "VDT_WIN_ANIMATION"; GT1184.prototype.WIN_COUNT_UP = "VDT_WIN_COUNTUP"; GT1184.prototype.WIN_COUNT_UP_START = "VDT_WIN_COUNTUP_START"; GT1184.prototype.WIN_ANIMATION_CALLBACK = "VDT_WIN_ANIMATION_CALLBACK"; GT1184.prototype.WIN_ANIMATION_DURATION = "VDT_WIN_ANIMATION_DURATION"; GT1184.prototype.GAMEMODE = "VDT_GAMEMODE"; GT1184.prototype.GAMEMODES = "VDT_GAMEMODES"; GT1184.prototype.FREESPINS_RUNNING = "VDT_FSRUNNING"; GT1184.prototype.FREESPINS_PLAYED = "VDT_FSPLAYED"; GT1184.prototype.FREESPINS_WON = "VDT_FSWON"; GT1184.prototype.FREESPINS_WON_NOW = "VDT_FSWON_NOW"; GT1184.prototype.FREESPINS_WINNINGS = "VDT_FSTFW"; GT1184.prototype.CREDITS = "VDT_CREDIT"; GT1184.prototype.CREDITS_ANIMATION = "VDT_CREDIT_ANIMATION"; GT1184.prototype.CREDITS_ANIMATION_DURATION = "VDT_CREDIT_ANIMATION_DURATION"; GT1184.prototype.BASE_BET = "VDT_BASEBET"; GT1184.prototype.PLAYLINES = "VDT_PLAYLINES"; GT1184.prototype.BASE_BETS = "VDT_BASE_BETS"; GT1184.prototype.BET_MULTIPLIER = "VDT_BET_MULTIPLIER"; GT1184.prototype.BET_MULTIPLIERS = "VDT_BET_MULTIPLIERS"; GT1184.prototype.TRIGGERING_EVENT = "VDT_TRIGGERING_EVENT"; GT1184.prototype.TRIGGERING_TIME = "VDT_TRIGGERING_TIME"; GT1184.prototype.VISIBLE_AREA = "VDT_VISIBLE_AREA"; GT1184.prototype.AUTOPLAY_COUNTER = "VDT_AUTOPLAY_COUNTER"; GT1184.prototype.AUTOPLAY_RUNNING = "VDT_AUTOPLAY_RUNNING"; GT1184.prototype.KEEP_DIALOGS_OPEN = "VDT_KEEP_DIALOGS_OPEN"; GT1184.prototype.UPDATE_REASON = "VDT_UPDATE_REASON"; GT1184.prototype.VERSION = "VDT_VERSION"; GT1184.prototype.SUPERGAME_TEXT = "SUPERGAME_TEXT"; GT1184.prototype.UR_MODAL_OPEN = "MODAL_OPEN"; GT1184.prototype.TARGETED_UPDATE_MARKER = "TARGETED_UPDATE_FOR"; GT1184.prototype.GAMBLING_DISABLED = "VDT_GAMBLING_DISABLED"; GT1184.prototype.FREEROUNDS_WON = "VDT_FRWON"; GT1184.prototype.FREEROUNDS_PLAYED = "VDT_FRPLAYED"; GT1184.prototype.FREEROUNDS_WINNINGS = "VDT_FRTFW"; GT1184.prototype.LOADING_IN_PROGRESS = "VDT_LOADING_IN_PROGRESS"; var GT1608 = Class.extend( { initialConstructor_0: function () { this.imageCardset = this.imageCardshadow = this.imageCardblank = this.imageCardback = this.imageJoker = this.imageCardsByRank = this.resman = null; this.cardset_suitinrow = this.usecardset = !1; this.valuesincardset = this.suitmapping = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.imageCardset = this.imageCardshadow = this.imageCardblank = this.imageCardback = this.imageJoker = this.imageCardsByRank = this.resman = null; this.cardset_suitinrow = this.usecardset = !1; this.valuesincardset = this.suitmapping = null; this.resman = a; this.imageCardsByRank = [].createArray(GT1623.prototype.numRanks_1(GT1623.prototype.getSuitByIdx_1(0))); this.imageCardset = null; this.usecardset = !1; GT1650.prototype.assertExp_2(0 <= GT1623.prototype.numSuits_0(), "no suits"); this.suitmapping = [].createArray(GT1623.prototype.numSuits_0()).init(0); for (a = 0; a < this.suitmapping.length; a++) this.suitmapping[a] = a; }, getCardWidth_1: function (a) { return a.isJoker_0() ? this.imageJoker.getColumnWidth_0() : this.usecardset ? this.imageCardset.getColumnWidth_0() : 0 > a.id_0() ? 0 : this.imageCardsByRank[a.rank_0()].getColumnWidth_0(); }, getCardHeight_1: function (a) { return a.isJoker_0() ? this.imageJoker.getRowHeight_0() : this.usecardset ? this.imageCardset.getRowHeight_0() : 0 > a.id_0() ? 0 : this.imageCardsByRank[a.rank_0()].getRowHeight_0(); }, getCardBackWidth_0: function () { return null == this.imageCardback ? -1 : this.imageCardback.getWidth_0(); }, getCardBackHeight_0: function () { return null == this.imageCardback ? -1 : this.imageCardback.getHeight_0(); }, getImageCardsByRank_0: function () { return this.imageCardsByRank; }, getImageJoker_0: function () { return this.imageJoker; }, getImageCardback_0: function () { return this.imageCardback; }, getImageCardblank_0: function () { return this.imageCardblank; }, getImageCardshadow_0: function () { return this.imageCardshadow; }, getImageCardset_0: function () { return this.imageCardset; }, setSuitMapping_1: function (a) { GT1650.prototype.assertExp_2(a.length == GT1623.prototype.numSuits_0(), "wrong length"); for (var b = 0; b < a.length - 1; b++) for (var d = b + 1; d < a.length; d++) GT1650.prototype.assertExp_2(a[b] != a[d], "mapping has double values"); this.suitmapping = a; }, loadImages_1: function (a) { this.usecardset = a.useCompleteCardset_0(); this.cardset_suitinrow = a.isCompleteCardSetRotated_0(); if (this.usecardset) this.imageCardset = this.startLoadImage_1(a.getCompletCardSetPImage_0()); else for (var b = 0; b < GT1623.prototype.numRanks_1(GT1623.prototype.getSuitByIdx_1(0)); b++) this.imageCardsByRank[b] = this.startLoadImage_1(a.getCardRowByRank_1(b)); 0 < GT1623.prototype.numJokers_0() && (this.imageJoker = this.startLoadImage_1(a.getJokerPImage_0())); this.imageCardback = this.startLoadImage_1(a.getCardBackPImage_0()); this.imageCardblank = this.startLoadImage_1(a.getBlankCardPImage_0()); this.imageCardshadow = this.startLoadImage_1(a.getCardShadowPImage_0()); this.valuesincardset = a.getValuesInCompleteCardSet_0(); if (null == this.valuesincardset) for (this.valuesincardset = [].createArray(GT1623.prototype.numRanks_1(GT1623.prototype.getSuitByIdx_1(0))).init(0), b = 0; b < this.valuesincardset.length; b++) this.valuesincardset[b] = GT1623.prototype.getValue_2(b, GT1623.prototype.getSuitByIdx_1(0)).idx_0(); }, startLoadImage_1: function (a) { if (null == a) return this.resman.startLoadImage_4("", 0, 0, !1); a.load_1(this.resman); return a.create_1(this.resman); }, getPosInCardset_1: function (a) { for (var b = 0; b < this.valuesincardset.length; b++) if (this.valuesincardset[b] == a) return b; return -1; }, newCardBackImage_3: function (a, b, d) { return this.newCardBackImage_4(a, b, d, GT1669.prototype.BOTH); }, newCardBackImage_4: function (a, b, d, e) { if (null == this.imageCardback) return null; var f = this.imageCardback.getWidth_0(), g = this.imageCardback.getHeight_0(); e != GT1669.prototype.BOTH && (g = Math.div(g, 2)); var k = 0; e == GT1669.prototype.BOTTOM && (k = Math.div(this.imageCardback.getHeight_0() + 1, 2)); return new GT1591(a, b, d, f, g, this.imageCardback, 0, k, f, g, GT1608.prototype.usecachedscaling); }, newBlankCardImage_3: function (a, b, d) { return null == this.imageCardblank ? null : new GT1591(a, b, d, this.imageCardblank); }, newCardShadowImage_3: function (a, b, d) { return null == this.imageCardshadow ? null : new GT1591(a, b, d, this.imageCardshadow); }, newCardShadowImageTransformable_6: function (a, b, d, e, f, g) { if (null == this.imageCardshadow) return null; var k, m, n = this.imageCardshadow.getWidth_0(), p = this.imageCardshadow.getHeight_0(); k = this.imageCardshadow.getWidth_0(); m = this.imageCardshadow.getHeight_0(); var q = GT1672.prototype.doubleToInt_1(this.getVAlign_2(m, g)); a = new GT1075(a, b, d, n, p, this.imageCardshadow, GT1672.prototype.doubleToInt_1(this.getHAlign_2(k, f)), q, 0, 0, Integer.truncate_1(k), Integer.truncate_1(m)); a.setRotation_1(e); b = Math.abs_1(Math.sin_1(e) * n) + Math.abs_1(Math.cos_1(e) * p); e = Math.abs_1(Math.sin_1(e) * p) + Math.abs_1(Math.cos_1(e) * n); a.setTranslation_2(this.getHAlign_2(e, f), this.getVAlign_2(b, g)); a.resize_2(Integer.truncate_1(e), Integer.truncate_1(b)); return a; }, newCardBackImageTransformable_3: function (a, b, d) { return this.newCardBackImageTransformable_5(a, b, d, GT1669.prototype.BOTH, GT1654.prototype.ZERO); }, newCardBackImageTransformable_5: function (a, b, d, e, f) { return this.newCardBackImageTransformable_7(a, b, d, e, f, GT1488.prototype.CENTER, GT1489.prototype.CENTER); }, newCardBackImageTransformable_7: function (a, b, d, e, f, g, k) { if (null == this.imageCardback) return null; var m = this.imageCardback.getWidth_0(), n = this.imageCardback.getHeight_0(); e != GT1669.prototype.BOTH && (n = Math.div(n + 1, 2)); var p, q; p = this.imageCardback.getWidth_0(); q = this.imageCardback.getHeight_0(); var r = GT1672.prototype.doubleToInt_1(this.getVAlign_2(q, k)); e == GT1669.prototype.TOP && (r = GT1672.prototype.doubleToInt_1(this.getVAlign_2(q / 2, k))); e == GT1669.prototype.BOTTOM && (r += GT1672.prototype.doubleToInt_1(this.getVAlign_2(q / 2, k))); a = new GT1075( a, b, d, m, n, this.imageCardback, GT1672.prototype.doubleToInt_1(this.getHAlign_2(p, g)), r, 0, e == GT1669.prototype.BOTTOM ? Math.div(this.imageCardback.getHeight_0(), 2) : 0, this.imageCardback.getWidth_0(), e == GT1669.prototype.BOTH ? this.imageCardback.getHeight_0() : Math.div(this.imageCardback.getHeight_0() + 1, 2) ); a.setRotation_1(f); b = Math.abs_1(Math.sin_1(f) * m) + Math.abs_1(Math.cos_1(f) * n); f = Math.abs_1(Math.sin_1(f) * n) + Math.abs_1(Math.cos_1(f) * m); a.setTranslation_2(this.getHAlign_2(f, g), this.getVAlign_2(b, k)); a.resize_2(Integer.truncate_1(f), Integer.truncate_1(b)); return a; }, newCardImage_4: function (a, b, d, e) { return this.newCardImage_6(a, b, d, this.getCardWidth_1(e), this.getCardHeight_1(e), e); }, newCardImage_6: function (a, b, d, e, f, g) { if (null == g) return null; if (g.isJoker_0()) return new GT1591(a, b, d, e, f, this.imageJoker, 0, 0, this.imageJoker.getWidth_0(), this.imageJoker.getHeight_0(), GT1608.prototype.usecachedscaling); var k = g.rank_0(), m = g.suit_0(); if (m == GT1536.prototype.UNKNOWN || 0 > k || k >= GT1623.prototype.numRanks_1(m)) return null; if (!this.usecardset) return new GT1591(a, b, d, e, f, this.imageCardsByRank[k], this.suitmapping[m.idx_0()], 0, GT1608.prototype.usecachedscaling); var k = this.suitmapping[m.idx_0()], n = this.getPosInCardset_1(g.value_0().idx_0()); this.cardset_suitinrow && ((k = this.getPosInCardset_1(g.value_0().idx_0())), (n = this.suitmapping[m.idx_0()])); return new GT1591(a, b, d, e, f, this.imageCardset, k, n, GT1608.prototype.usecachedscaling); }, newCardImagePart_11: function (a, b, d, e, f, g, k, m, n, p, q) { if (null == g) return null; if (g.isJoker_0()) return new GT1591(a, b, d, e, f, this.imageJoker, k, m, n, p, !1, q); var r = g.rank_0(), t = g.suit_0(); if (t == GT1536.prototype.UNKNOWN || 0 > r || r >= GT1623.prototype.numRanks_1(t)) return null; if (!this.usecardset) return new GT1591(a, b, d, e, f, this.imageCardsByRank[r], k + this.imageCardsByRank[r].getColumnWidth_0() * this.suitmapping[t.idx_0()], m, n, p, !1, q); var r = this.suitmapping[t.idx_0()], u = this.getPosInCardset_1(g.value_0().idx_0()); this.cardset_suitinrow && ((r = this.getPosInCardset_1(g.value_0().idx_0())), (u = this.suitmapping[t.idx_0()])); return new GT1591(a, b, d, e, f, this.imageCardset, k + r * this.imageCardset.getColumnWidth_0(), m + u * this.imageCardset.getRowHeight_0(), n, p, !1, q); }, newCardImageTransformable_4: function (a, b, d, e) { return this.newCardImageTransformable_5(a, b, d, e, GT1654.prototype.ZERO); }, newCardImageTransformable_5: function (a, b, d, e, f) { return this.newCardImageTransformable_7(a, b, d, e, f, GT1488.prototype.CENTER, GT1489.prototype.CENTER); }, newCardImageTransformable_7: function (a, b, d, e, f, g, k) { if (null == e) return null; if (e.isJoker_0()) a = new GT1075(a, b, d, this.imageJoker.getWidth_0(), this.imageJoker.getHeight_0(), this.imageJoker, this.getHAlign_2(1, g), this.getVAlign_2(1, k), 0, 0); else { var m = e.rank_0(), n = e.suit_0(); if (n == GT1536.prototype.UNKNOWN || 0 > m || m >= GT1623.prototype.numRanks_1(n)) return null; if (this.usecardset) { var m = this.suitmapping[n.idx_0()], p = this.getPosInCardset_1(e.value_0().idx_0()); this.cardset_suitinrow && ((m = this.getPosInCardset_1(e.value_0().idx_0())), (p = this.suitmapping[n.idx_0()])); a = new GT1075(a, b, d, this.imageCardset.getColumnWidth_0(), this.imageCardset.getRowHeight_0(), this.imageCardset, this.getHAlign_2(1, g), this.getVAlign_2(1, k), m, p); } else a = new GT1075( a, b, d, this.imageCardsByRank[m].getColumnWidth_0(), this.imageCardsByRank[m].getRowHeight_0(), this.imageCardsByRank[m], this.getHAlign_2(1, g), this.getVAlign_2(1, k), this.suitmapping[n.idx_0()], 0 ); } a.setRotation_1(f); b = Math.abs_1(Math.sin_1(f) * a.getWidth_0()) + Math.abs_1(Math.cos_1(f) * a.getHeight_0()); f = Math.abs_1(Math.sin_1(f) * a.getHeight_0()) + Math.abs_1(Math.cos_1(f) * a.getWidth_0()); a.setTranslation_2(this.getHAlign_2(f, g), this.getVAlign_2(b, k)); a.resize_2(Integer.truncate_1(f), Integer.truncate_1(b)); return a; }, newEmptyCardButton_5: function (a, b, d, e, f) { if (null == e) return null; a = new GT1609(a, b, d, e); a.mark_0(); 0 <= f ? a.setApplicationData_2(f, null) : a.setActive_1(!1); return a; }, newCardButton_8: function (a, b, d, e, f, g, k, m) { if (null == e) return null; a = new GT1609(a, b, d, 0, 0, e); k ? (this.newCardImageTransformable_5(a, 0, 0, e, m), !g && 0 < f && (this.newCardImageTransformable_5(a, 0, 2, e, m), a.setChildForState_2(GT1236.prototype.DEFAULT, 0), a.setChildForState_2(GT1236.prototype.PRESSED, 1))) : (this.newCardImage_4(a, 0, 0, e), !g && 0 < f && (this.newCardImage_4(a, 0, 2, e), a.setChildForState_2(GT1236.prototype.DEFAULT, 0), a.setChildForState_2(GT1236.prototype.PRESSED, 1))); a.finishButton_0(); a.mark_0(); 0 <= f ? a.setApplicationData_2(f, null) : a.setActive_1(!1); a.resizeToContent_0(); g && a.setDragable_4(!0, !0, Math.div(a.getWidth_0(), 2), Math.div(a.getHeight_0(), 3)); return a; }, newCardButton_6: function (a, b, d, e, f, g) { return this.newCardButton_8(a, b, d, e, f, g, !1, GT1654.prototype.ZERO); }, newCardButton_5: function (a, b, d, e, f) { return this.newCardButton_8(a, b, d, e, f, !1, !1, GT1654.prototype.ZERO); }, newCardButton_4: function (a, b, d, e) { return this.newCardButton_8(a, b, d, e, -1, !1, !1, GT1654.prototype.ZERO); }, newCardBackButton_6: function (a, b, d, e, f, g) { a = new GT1559(a, b, d); g ? (this.newCardBackImageTransformable_5(a, 0, 0, GT1669.prototype.BOTH, GT1654.prototype.CW90), f || (this.newCardBackImageTransformable_5(a, 0, 2, GT1669.prototype.BOTH, GT1654.prototype.CW90), a.setChildForState_2(GT1236.prototype.DEFAULT, 0), a.setChildForState_2(GT1236.prototype.PRESSED, 1))) : (this.newCardBackImage_3(a, 0, 0), f || (this.newCardBackImage_3(a, 0, 2), a.setChildForState_2(GT1236.prototype.DEFAULT, 0), a.setChildForState_2(GT1236.prototype.PRESSED, 1))); a.finishButton_0(); 0 <= e ? a.setApplicationData_2(e, null) : a.setActive_1(!1); f && a.setDragable_4(!0, !0, Math.div(a.getWidth_0(), 2), Math.div(a.getHeight_0(), 3)); return a; }, newCardBackButton_5: function (a, b, d, e, f) { return this.newCardBackButton_6(a, b, d, e, f, !1); }, newCardBackButton_4: function (a, b, d, e) { return this.newCardBackButton_6(a, b, d, e, !1, !1); }, newCardBackButton_3: function (a, b, d) { return this.newCardBackButton_6(a, b, d, -1, !1, !1); }, }, "GT1608", [] ); GT1608.prototype.getVAlign_2 = function (a, b) { return b == GT1489.prototype.TOP ? 0 : b == GT1489.prototype.BOTTOM ? a : b == GT1489.prototype.CENTER ? a / 2 : 0; }; GT1608.prototype.getHAlign_2 = function (a, b) { return b == GT1488.prototype.LEFT ? 0 : b == GT1488.prototype.RIGHT ? a : b == GT1488.prototype.CENTER ? a / 2 : 0; }; GT1608.prototype.usecachedscaling = !0; var GT1669 = Class.extend( { initialConstructor_0: function () { this.val = 0; this.val = 2; }, initialConstructor_1: function (a) { this.val = 0; this.val = a; }, value_0: function () { return this.val; }, }, "GT1669", [] ); GT1669.prototype.TOP = new GT1669(0); GT1669.prototype.BOTTOM = new GT1669(1); GT1669.prototype.BOTH = new GT1669(2); var GT1654 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1654", [] ); GT1654.prototype.ZERO = 0; GT1654.prototype.CW90 = -Math.PI / 2; GT1654.prototype.CCW90 = Math.PI / 2; GT1654.prototype.TURN180 = Math.PI; var GT874 = Class.extend( { initialConstructor_0: function () { this.skin = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.skin = null; this.skin = a; }, getJokerPImage_0: function () { return this.skin.hasParameter_1("image_joker") && 1 < this.skin.getString_1("image_joker").length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1("image_joker")) : null; }, getCardBackPImage_0: function () { return this.skin.hasParameter_1("image_cardback") && 1 < this.skin.getString_1("image_cardback").length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1("image_cardback")) : null; }, getBlankCardPImage_0: function () { return this.skin.hasParameter_1("image_cardblank") && 1 < this.skin.getString_1("image_cardblank").length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1("image_cardblank")) : null; }, getCardShadowPImage_0: function () { return this.skin.hasParameter_1("image_cardshadow") && 1 < this.skin.getString_1("image_cardshadow").length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1("image_cardshadow")) : null; }, useCompleteCardset_0: function () { return this.skin.hasParameter_1("image_cardset") && 1 < this.skin.getString_1("image_cardset").length_0(); }, isCompleteCardSetRotated_0: function () { return this.skin.getBoolean_1("cardset_suitinrow"); }, getCompletCardSetPImage_0: function () { return this.skin.hasParameter_1("image_cardset") && 1 < this.skin.getString_1("image_cardset").length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1("image_cardset")) : null; }, getCardRowByRank_1: function (a) { a = "image_rank" + GT1623.prototype.getValue_2(a, GT1623.prototype.getSuitByIdx_1(0)).idx_0(); return this.skin.hasParameter_1(a) && 1 < this.skin.getString_1(a).length_0() ? GT1390.prototype.set_0().stringDescription_1(this.skin.getString_1(a)) : null; }, getValuesInCompleteCardSet_0: function () { this.skin.hasParameter_1("valuesincardset") && this.skin.getIntArray_1("valuesincardset"); return null; }, }, "GT874", [GT1009] ), GT1190 = Class.extend( { initialConstructor_0: function () { this.timer = null; this.animationinterval = 0; this.triggerCallbacks = this.wantpause = this.ispaused = this.finalizingInProgress = this.iskilled = this.isstarted = this.wantfaststart = this.blocking = !1; this.callbacktrigger = this.finishCallbacks = this.startCallbacks = null; this.timeofstart = 0; this.didCleanup = this.useFrameRateListener = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1190.prototype.initialConstructor_3.call(this, a, 1, !0); }, initialConstructor_2: function (a, b) { GT1190.prototype.initialConstructor_3.call(this, a, b, !1); }, initialConstructor_3: function (a, b, d) { this.timer = null; this.animationinterval = 0; this.triggerCallbacks = this.wantpause = this.ispaused = this.finalizingInProgress = this.iskilled = this.isstarted = this.wantfaststart = this.blocking = !1; this.callbacktrigger = this.finishCallbacks = this.startCallbacks = null; this.timeofstart = 0; this.didCleanup = this.useFrameRateListener = !1; this.timer = a; this.animationinterval = 0 >= b ? 1 : b; GT1650.prototype.assertExp_2(0 < b, "interval <=0"); this.blocking = d; this.ispaused = this.finalizingInProgress = this.iskilled = this.isstarted = this.wantfaststart = !1; this.startCallbacks = new java_util_JavaScriptVector(); this.finishCallbacks = new java_util_JavaScriptVector(); this.triggerCallbacks = !0; this.timeofstart = 0; this.useFrameRateListener = !1; }, resetImpl_0: function () { this.isRunning_0() && null != this.callbacktrigger && ((this.iskilled = !0), (this.ispaused = this.wantpause = this.triggerCallbacks = !1), this.finalizeAnimator_0()); this.wantpause = this.ispaused = this.finalizingInProgress = this.iskilled = this.isstarted = !1; this.triggerCallbacks = !0; this.timeofstart = 0; }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.addElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, addStartCallback_1: function (a) { null == a || this.startCallbacks.contains_1(a) || this.startCallbacks.addElement_1(a); }, removeStartCallback_1: function (a) { this.startCallbacks.removeElement_1(a); }, setUpdateEveryFrame_1: function (a) { GT1650.prototype.assertExp_2(!this.isstarted, "can't set setUpdateEveryFrame when animator is running"); this.useFrameRateListener = a; }, setFastStart_1: function (a) { this.wantfaststart = a; }, start_0: function () { if (!this.isstarted) { this.callbacktrigger = new GT560(this); this.isstarted = !0; this.didCleanup = !1; this.timeofstart = this.timer.currentTimeMillis_0(); this.blocking && this.timer.countActionBlockerAnimator_1(1); for (var a = this.startCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); this.useFrameRateListener ? (this.timer.addFramerateListener_1(this.callbacktrigger), this.wantfaststart && this.run_0()) : this.wantfaststart ? this.run_0() : this.timer.triggerCallbackAfter_2(this.callbacktrigger, 0); } }, isStarted_0: function () { return this.isstarted; }, isPaused_0: function () { return this.ispaused || this.wantpause; }, isRunning_0: function () { return this.isstarted && !this.iskilled && !this.finalizingInProgress; }, kill_0: function () { this.killAndTrigger_1(!0); }, killWithoutTriggers_0: function () { this.killAndTrigger_1(!1); }, killAndTrigger_1: function (a) { this.isRunning_0() && null != this.callbacktrigger && ((this.iskilled = !0), (this.triggerCallbacks = a), (this.ispaused = this.wantpause = !1), this.finalizeAnimator_0()); }, action_1: function (a) { return !1; }, interval_0: function () { return this.animationinterval; }, run_0: function () { this.run_impl_0(); }, run_impl_0: function () { if (this.wantpause) this.ispaused = !0; else if (this.iskilled) this.triggerFinalizeAnimatorAfter_1(1); else { var a = this.timer.currentTimeMillis_0(), b = this.action_1(a); GT1650.prototype.assertExp_2(!this.iskilled, "dont call kill() inside of action()"); b ? this.useFrameRateListener || this.timer.triggerCallback_2(this.callbacktrigger, a + this.interval_0()) : this.triggerFinalizeAnimatorAfter_1(1); } }, triggerFinalizeAnimatorAfter_1: function (a) { this.finalizingInProgress || ((this.finalizingInProgress = !0), this.timer.triggerCallbackAfter_2(new GT210(this), a)); }, finalizeAnimator_0: function () { if (this.didCleanup) GT1650.prototype.log_1("finalizeAnimator called twice"); else if ( (this.useFrameRateListener && this.timer.removeFramerateListener_1(this.callbacktrigger), (this.iskilled = !0), this.callbacktrigger.kill_0(), this.timer.removeCallback_2(this.callbacktrigger, !1), (this.callbacktrigger = null), this.blocking && this.timer.countActionBlockerAnimator_1(-1), (this.didCleanup = !0), this.triggerCallbacks) ) for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, pause_0: function () { !this.isstarted || this.iskilled || this.wantpause || this.finalizingInProgress || ((this.wantpause = !0), this.useFrameRateListener && this.timer.removeFramerateListener_1(this.callbacktrigger)); }, resume_0: function () { this.isstarted && !this.iskilled && this.wantpause && !this.finalizingInProgress && ((this.wantpause = !1), this.ispaused && ((this.ispaused = !1), this.run_0()), this.useFrameRateListener && this.timer.addFramerateListener_1(this.callbacktrigger)); }, getCurrentTimeMillis_0: function () { return this.timer.currentTimeMillis_0(); }, getStartTime_0: function () { return this.timeofstart; }, getTimer_0: function () { return this.timer; }, }, "GT1190", [] ), GT210 = Class.extend( { initialConstructor_0: function () { this.animatorBaseObj = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animatorBaseObj = null; this.animatorBaseObj = a; }, run_0: function () { null != this.animatorBaseObj && this.animatorBaseObj.finalizeAnimator_0(); }, }, "GT210", [Runnable] ), GT560 = Class.extend( { initialConstructor_0: function () { this.animtocall = null; this.killed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animtocall = null; this.killed = !1; this.animtocall = a; this.killed = !1; }, kill_0: function () { this.killed = !0; }, run_0: function () { !this.killed && null != this.animtocall && this.animtocall.isRunning_0() && this.animtocall.run_0(); }, }, "GT560", [Runnable] ), GT1127 = GT1190.extend( { initialConstructor_0: function () { this.invisibleTime = this.visibleTime = this.numHalfCycles = 0; this.hideInversion = this.objects = null; this.visible = !1; this.cyclesLeft = 0; this.cyclesInfinite = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.invisibleTime = this.visibleTime = this.numHalfCycles = 0; this.hideInversion = this.objects = null; this.visible = !1; this.cyclesLeft = 0; this.cyclesInfinite = !1; GT1190.prototype.initialConstructor_3.call(this, a, d, !1); this.numHalfCycles = f; this.visibleTime = d; this.invisibleTime = e; this.objects = [].createArray(b.length); java_lang_System.prototype.arraycopy_5(b, 0, this.objects, 0, b.length); this.hideInversion = [].createArray(b.length).init(0); this.initializeCyclesAndVisibility_0(); }, initializeCyclesAndVisibility_0: function () { this.visible = !0; 0 <= this.numHalfCycles ? ((this.cyclesLeft = this.numHalfCycles), (this.cyclesInfinite = !1)) : ((this.cyclesLeft = 0), (this.cyclesInfinite = !0)); }, start_0: function () { this.isStarted_0() || ((this.visible = !0), GT1190.prototype.start_0.call(this)); }, reset_0: function () { this.resetImpl_0(); this.initializeCyclesAndVisibility_0(); }, setHideInversion_1: function (a) { 0 <= a && a < this.objects.length && (this.hideInversion[a] = !0); }, interval_0: function () { return this.visible ? this.visibleTime : this.invisibleTime; }, action_1: function (a) { this.visible = !this.visible; a = !1; for (var b = 0; b < this.objects.length; b++) { var d = this.objects[b]; null != d && (d.isAlive_0() ? (this.hideInversion[b] ? d.hide_1(this.visible) : d.hide_1(!this.visible), (a = !0)) : (this.objects[b] = null)); } if (a && this.cyclesInfinite) return !0; if (a && 0 < this.cyclesLeft) return this.cyclesLeft--, !0; for (b = 0; b < this.objects.length; b++) null != this.objects[b] && this.objects[b].hide_1(!1); return !1; }, }, "GT1127", [GT1271] ), GT821 = GT1190.extend( { initialConstructor_0: function () { this.maxtime = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.maxtime = 0; GT1190.prototype.initialConstructor_3.call(this, a, 100, !0); this.maxtime = -1; }, initialConstructor_2: function (a, b) { this.maxtime = 0; GT1190.prototype.initialConstructor_3.call(this, a, Math.min_2(100, Math.max_2(Math.div(b, 10), 1)), !0); this.maxtime = b; }, start_0: function () { this.resetImpl_0(); GT1190.prototype.start_0.call(this); }, reset_0: function () { this.resetImpl_0(); }, action_1: function (a) { return a - this.getStartTime_0() < this.maxtime || 0 > this.maxtime; }, }, "GT821", [GT1271] ), GT1128 = GT1190.extend( { initialConstructor_0: function () { this.animator = null; this.cycles = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.animator = null; this.cycles = 0; GT1190.prototype.initialConstructor_2.call(this, a, 1e5); this.cycles = d; this.animator = b; b.addFinishCallback_1(new GT604(this)); }, initialConstructor_2: function (a, b) { GT1128.prototype.initialConstructor_3.call(this, a, b, -1); }, action_1: function (a) { return !0; }, killAndTrigger_1: function (a) { this.animator.killAndTrigger_1(!1); GT1190.prototype.killAndTrigger_1.call(this, a); }, restartAnimator_0: function () { 0 < this.cycles && this.cycles--; 0 != this.cycles ? (this.animator.isGUIObjectAlive_0() ? (instanceOf(this.animator, GT1271) && this.animator.reset_0(), this.animator.start_0()) : this.killAndTrigger_1(!0)) : this.killAndTrigger_1(!0); }, start_0: function () { GT1190.prototype.start_0.call(this); this.animator.start_0(); }, reset_0: function () { this.resetImpl_0(); null != this.animator && instanceOf(this.animator, GT1271) && this.animator.reset_0(); }, }, "GT1128", [GT1271] ), GT604 = Class.extend( { initialConstructor_0: function () { this.anim = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.anim = null; this.anim = a; }, run_0: function () { this.anim.restartAnimator_0(); }, }, "GT604", [Runnable] ), GT1129 = GT1190.extend( { initialConstructor_0: function () { this.initialDelay = 0; this.firstTime = !1; this.startTime = this.delay = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.initialDelay = 0; this.firstTime = !1; this.startTime = this.delay = 0; GT1190.prototype.initialConstructor_3.call(this, a, 0 == b ? 1 : b, d); this.firstTime = !0; this.initialDelay = this.delay = b; this.setFastStart_1(!0); }, interval_0: function () { return this.delay; }, getInitialDelay_0: function () { return this.initialDelay; }, getElapsedTime_0: function () { return this.getCurrentTimeMillis_0() - this.startTime; }, setNewDelay_1: function (a) { this.delay = a; this.firstTime = !0; this.killAndTrigger_1(!1); this.resetImpl_0(); this.start_0(); }, action_1: function (a) { return this.firstTime ? ((this.firstTime = !1), (a = this.getCurrentTimeMillis_0() - this.startTime), (this.delay -= a), (this.startTime = this.getCurrentTimeMillis_0()), !0) : !1; }, start_0: function () { this.startTime = this.getCurrentTimeMillis_0(); GT1190.prototype.start_0.call(this); }, pause_0: function () { var a = this.getCurrentTimeMillis_0() - this.startTime; this.delay -= a; GT1190.prototype.pause_0.call(this); }, resume_0: function () { this.firstTime = !0; this.startTime = this.getCurrentTimeMillis_0(); GT1190.prototype.resume_0.call(this); }, reset_0: function () { this.resetImpl_0(); this.firstTime = !0; this.delay = this.initialDelay; }, }, "GT1129", [GT1271] ), GT1191 = GT1190.extend( { initialConstructor_0: function () { this.condVariables = this.fadeData = this.transObj = null; this.lastTime = this.startTime = this.dataTime = this.dataPosition = 0; this.keepRunningWhenHidden = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.condVariables = this.fadeData = this.transObj = null; this.lastTime = this.startTime = this.dataTime = this.dataPosition = 0; this.keepRunningWhenHidden = !1; GT1190.prototype.initialConstructor_3.call(this, a, GT1191.prototype.INTERVAL_ANIM, d); this.transObj = b; this.condVariables = [].createArray(GT1191.prototype.MAX_CONDITIONAL_VARIABLES).init(0); this.dataTime = this.dataPosition = 0; this.lastTime = this.startTime = -1; this.initFadeData_1(e); }, initialConstructor_5: function (a, b, d, e, f) { GT1191.prototype.initialConstructor_4.call(this, a, b, d, null); a = [ [0, 0, 0, Integer.MAX_VALUE, -1, 0, -1, 0, f], [Math.div(e, 2), 0, 255], [Math.div(e, 2), 255, 0, 1, 0 <= f ? 0 : -1, -1, -1], ]; this.initFadeData_1(a); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1191.prototype.initialConstructor_4.call(this, a, b, d, null); a = [ [e, 0 < e ? 0 : 255, 255], [f, 255, 255], [this.notBelow0_1(g), 255, 0 <= g ? 0 : 255], ]; this.initFadeData_1(a); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1191.prototype.initialConstructor_4.call(this, a, b, d, null); a = [ [e, 0, 0], [f, 0, 255], [g, 255, 255], [this.notBelow0_1(k), 255, 0 <= k ? 0 : 255], ]; this.initFadeData_1(a); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1191.prototype.initialConstructor_4.call(this, a, b, d, null); a = [ [0, 0, 0, Integer.MAX_VALUE, -1, 0, -1, 0, k], [e, 0 < e ? 0 : 255, 255], [Math.div(f, 2), 255, g], [Math.div(f, 2), g, 255, 2, 0 <= k ? 0 : -1, -1, Integer.MAX_VALUE], [m, 255, 0], ]; this.initFadeData_1(a); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1191.prototype.initialConstructor_4.call(this, a, b, d, null); a = [ [0, 0, 0, Integer.MAX_VALUE, -1, 0, -1, 0, m], [e, 0 < e ? 0 : g, g], [Math.div(f, 2), g, k], [Math.div(f, 2), k, g, 2, 0 <= m ? 0 : -1, -1, Integer.MAX_VALUE], [n, g, 0], ]; this.initFadeData_1(a); }, getConditionalVariable_1: function (a) { return 0 <= a && a < GT1191.prototype.MAX_CONDITIONAL_VARIABLES ? this.condVariables[a] : 0; }, setConditionalVariable_2: function (a, b) { 0 <= a && a < GT1191.prototype.MAX_CONDITIONAL_VARIABLES && (this.condVariables[a] = b); }, notBelow0_1: function (a) { return 0 > a ? 0 : a; }, initFadeData_1: function (a) { this.fadeData = a; }, setInitialAlpha_0: function () { null == this.fadeData || null == this.transObj || (instanceOf(this.transObj, GT1560) && !this.transObj.isAlive_0()) || this.transObj.setAlpha_1(this.fadeData[this.dataPosition][1]); }, start_0: function () { this.setInitialAlpha_0(); GT1190.prototype.start_0.call(this); }, reset_0: function () { this.resetImpl_0(); this.dataTime = this.dataPosition = 0; this.lastTime = this.startTime = -1; }, action_1: function (a) { if (null == this.transObj || (instanceOf(this.transObj, GT1560) && (!this.transObj.isAlive_0() || (this.transObj.isHidden_0() && !this.keepRunningWhenHidden)))) return !1; 0 > this.startTime && (this.lastTime = this.startTime = a); for (this.dataTime += a - this.lastTime; this.dataTime >= this.fadeData[this.dataPosition][0]; ) { var b, d; if (4 <= this.fadeData[this.dataPosition].length) { if (((b = this.fadeData[this.dataPosition][3]), 7 <= this.fadeData[this.dataPosition].length)) { d = this.fadeData[this.dataPosition][4]; 0 <= d && d < GT1191.prototype.MAX_CONDITIONAL_VARIABLES && ((this.condVariables[d] += this.fadeData[this.dataPosition][5]), 0 >= this.condVariables[d] && (b = this.fadeData[this.dataPosition][6])); for (var e = 0; 2 * e + 9 <= this.fadeData[this.dataPosition].length; ++e) (d = this.fadeData[this.dataPosition][2 * e + 7]), 0 <= d && d < GT1191.prototype.MAX_CONDITIONAL_VARIABLES && (this.condVariables[d] = this.fadeData[this.dataPosition][2 * e + 8]); } } else b = Integer.MAX_VALUE; b >= this.fadeData.length && (b = this.dataPosition + 1); if (0 <= b && b < this.fadeData.length) (this.dataTime -= this.fadeData[this.dataPosition][0]), (this.dataPosition = b); else return this.transObj.setAlpha_1(this.fadeData[this.dataPosition][2]), !1; } this.transObj.setAlpha_1(this.fadeData[this.dataPosition][1] + Math.div((this.fadeData[this.dataPosition][2] - this.fadeData[this.dataPosition][1]) * this.dataTime, this.fadeData[this.dataPosition][0])); this.lastTime = a; return !0; }, setStartTime_1: function (a) { this.startTime = a; }, isKeepRunningWhenHidden_0: function () { return this.keepRunningWhenHidden; }, setKeepRunningWhenHidden_1: function (a) { this.keepRunningWhenHidden = a; }, }, "GT1191", [GT1271] ); GT1191.prototype.INTERVAL_ANIM = 50; GT1191.prototype.MAX_CONDITIONAL_VARIABLES = 10; var GT927 = GT1190.extend( { initialConstructor_0: function () { this.frametime = this.animationSequence = this.container = this.guiImage = this.image = null; this.alpha = this.endposition = this.startposition = this.restartposition = this.startWithIterations = this.iterations = this.currentframe = 0; this.destroyAtEnd = !1; this.h = this.w = this.y = this.x = 0; this.startHorizontal = this.cacheScaledVersion = !1; this.lastactiontime = 0; this.frameChangedCallbacks = null; this.elapsedRemainder = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.frametime = this.animationSequence = this.container = this.guiImage = this.image = null; this.alpha = this.endposition = this.startposition = this.restartposition = this.startWithIterations = this.iterations = this.currentframe = 0; this.destroyAtEnd = !1; this.h = this.w = this.y = this.x = 0; this.startHorizontal = this.cacheScaledVersion = !1; this.lastactiontime = 0; this.frameChangedCallbacks = null; this.elapsedRemainder = 0; GT1190.prototype.initialConstructor_3.call(this, a, 1e5, g); this.animationSequence = null; this.frameChangedCallbacks = new java_util_JavaScriptVector(); this.guiImage = null; this.alpha = 255; this.container = b; this.image = d; this.startWithIterations = this.iterations = f ? 1e5 : 1; this.startposition = this.restartposition = 0; this.destroyAtEnd = !1; this.y = this.x = 0; GT1650.prototype.assertExp_2(1 < this.image.getColumns_0() || 1 < this.image.getRows_0(), "Image segemtation not set for image."); 1 < this.image.getColumns_0() && 1 == this.image.getRows_0() ? (this.frametime = this.getArray_2(this.image.getColumns_0(), e)) : 1 < this.image.getRows_0() && 1 == this.image.getColumns_0() ? (this.frametime = this.getArray_2(this.image.getRows_0(), e)) : (this.frametime = this.getArray_2(this.image.getRows_0() * this.image.getColumns_0(), e)); this.endposition = -1; this.w = Math.div(this.image.getWidth_0(), this.image.getColumns_0()); this.h = Math.div(this.image.getHeight_0(), this.image.getRows_0()); this.cacheScaledVersion = !1; this.startHorizontal = !0; }, initialConstructor_5: function (a, b, d, e, f) { GT927.prototype.initialConstructor_6.call(this, a, b, d, e, f, !1); }, setStartHorizontal_1: function (a) { this.startHorizontal = a; }, setAnimationSequence_1: function (a) { this.setAnimationSequence_2(a, null); }, setAnimationSequence_2: function (a, b) { var d = a.length; GT1650.prototype.assertExp_2(null == b || b.length == a.length, "Wrong array size."); null == b ? (this.frametime = this.getArray_2(d, this.frametime[0])) : (b.length != this.frametime.length && (this.frametime = [].createArray(b.length).init(0)), java_lang_System.prototype.arraycopy_5(b, 0, this.frametime, 0, d)); this.animationSequence = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, 0, this.animationSequence, 0, d); }, setFrameTime_1: function (a) { GT1650.prototype.assertExp_2(a.length == this.frametime.length, "Wrong array size."); java_lang_System.prototype.arraycopy_5(a, 0, this.frametime, 0, a.length); }, addFrameChangedCallback_1: function (a) { null == a || this.frameChangedCallbacks.contains_1(a) || this.frameChangedCallbacks.addElement_1(a); }, removeFrameChangedCallback_1: function (a) { this.frameChangedCallbacks.removeElement_1(a); }, setIterations_1: function (a) { this.startWithIterations = this.iterations = a; }, setStartPosition_1: function (a) { this.startposition = a; }, setEndPosition_1: function (a) { this.endposition = a; }, setRestartPosition_1: function (a) { this.restartposition = a; }, setPosition_2: function (a, b) { this.x = a; this.y = b; }, setSize_2: function (a, b) { this.w = a; this.h = b; }, setCacheScaledVersion_1: function (a) { this.cacheScaledVersion = a; }, start_0: function () { GT1650.prototype.assertExp_2(!this.isRunning_0(), "Crash: Do not start an already running FilmStripAnimator"); this.lastactiontime = this.getCurrentTimeMillis_0(); this.elapsedRemainder = 0; null != this.container && this.container.isAlive_0() && (this.updateImage_1(this.currentframe), (this.currentframe = this.startposition - 1), GT1190.prototype.start_0.call(this)); }, interval_0: function () { return this.frametime[this.currentframe]; }, resume_0: function () { this.lastactiontime = this.getCurrentTimeMillis_0(); GT1190.prototype.resume_0.call(this); }, action_1: function (a) { if (!this.guiImage.isAlive_0() || !this.container.isAlive_0()) return !1; var b = a - this.lastactiontime + this.elapsedRemainder; for (this.lastactiontime = a; 0 > this.currentframe || b >= this.frametime[this.currentframe]; ) { 0 <= this.currentframe && (b -= this.frametime[this.currentframe]); this.currentframe++; if (this.currentframe >= this.frametime.length || (-1 != this.endposition && this.currentframe >= this.endposition)) if (((this.currentframe = this.restartposition), this.iterations--, 0 >= this.iterations)) return this.actionAtEnd_0(), !1; this.frameChanged_1(this.currentframe); } this.elapsedRemainder = b; return !0; }, updateImage_1: function (a) { var b = a; null != this.animationSequence && (b = this.animationSequence[a]); 1 < this.image.getColumns_0() && 1 == this.image.getRows_0() ? (this.guiImage = new GT1591(this.container, this.x, this.y, this.w, this.h, this.image, b, 0, this.cacheScaledVersion)) : 1 < this.image.getRows_0() && 1 == this.image.getColumns_0() ? (this.guiImage = new GT1591(this.container, this.x, this.y, this.w, this.h, this.image, 0, b, this.cacheScaledVersion)) : (this.startHorizontal ? ((a = b % this.image.getColumns_0()), (b = Math.div(b, this.image.getColumns_0()))) : ((a = Math.div(b, this.image.getRows_0())), (b %= this.image.getRows_0())), (this.guiImage = new GT1591(this.container, this.x, this.y, this.w, this.h, this.image, a, b, this.cacheScaledVersion))); this.guiImage.setAlpha_1(this.alpha); }, frameChanged_1: function (a) { null != this.guiImage && this.guiImage.isAlive_0() && this.guiImage.destroy_0(); this.updateImage_1(a); a = this.frameChangedCallbacks.clone_0(); for (var b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, actionAtEnd_0: function () { this.destroyAtEnd && null != this.guiImage && this.guiImage.isAlive_0() && this.guiImage.destroy_0(); }, isKeepingLastFrame_0: function () { return !this.destroyAtEnd; }, setKeepLastFrame_1: function (a) { this.destroyAtEnd = !a; }, jumpToEnd_0: function () { this.currentframe = this.frametime.length - 1; this.iterations = 0; }, getCurrentFrameIndex_0: function () { return this.currentframe; }, killAndTrigger_1: function (a) { GT1190.prototype.killAndTrigger_1.call(this, a); this.destroyAtEnd && GT1560.prototype.destroyIfAlive_1(this.guiImage); }, reset_0: function () { this.resetImpl_0(); this.iterations = this.startWithIterations; }, getFrameCount_0: function () { return null != this.frametime ? this.frametime.length : 0; }, setAlpha_1: function (a) { this.alpha = a; GT1560.prototype.isAlive_1(this.guiImage) && this.guiImage.setAlpha_1(a); }, getAlpha_0: function () { return this.alpha; }, }, "GT927", [GT1271, GT1480] ); GT927.prototype.getArray_2 = function (a, b) { for (var d = [].createArray(a).init(0), e = 0; e < a; e++) d[e] = b; return d; }; var GT1130 = GT1190.extend( { initialConstructor_0: function () { this.initialAbsoluteVelocity = 0; this.scrollhandle = null; this.lasttime = this.currentvalue = this.direction = this.absvelocity = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.initialAbsoluteVelocity = 0; this.scrollhandle = null; this.lasttime = this.currentvalue = this.direction = this.absvelocity = 0; GT1190.prototype.initialConstructor_3.call(this, a, 1, !0); this.scrollhandle = b; this.direction = 0 > d ? -1 : 1; this.initialAbsoluteVelocity = this.absvelocity = Math.abs_1(d); }, start_0: function () { GT1190.prototype.start_0.call(this); this.currentvalue = this.scrollhandle.getValue_0(); this.lasttime = -1; }, action_1: function (a) { if ( !GT1560.prototype.isAlive_1(this.scrollhandle) || 0 >= this.absvelocity || (0 >= this.currentvalue && 0 < this.direction) || (this.currentvalue >= this.scrollhandle.getTotalContent_0() - this.scrollhandle.getVisibleContent_0() && 0 > this.direction) ) return !1; -1 == this.lasttime && (this.lasttime = this.getStartTime_0()); var b = a - this.lasttime; this.lasttime = a; this.currentvalue -= GT1672.prototype.doubleToInt_1((this.absvelocity * this.direction * b) / 1e3); this.scrollhandle.setValue_1(this.currentvalue); this.absvelocity -= 2 * b; return !0; }, reset_0: function () { this.resetImpl_0(); this.absvelocity = this.initialAbsoluteVelocity; }, }, "GT1130", [GT1271] ), GT1131 = GT1190.extend( { initialConstructor_0: function () { this.frametime = this.guiimage = null; this.startposition = this.restartposition = this.iterations = this.currentframe = 0; this.reverse = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1131.prototype.initialConstructor_4.call(this, a, b, this.getArray_2(d, Math.div(e, d)), Math.div(f + e - 1, e)); }, initialConstructor_4: function (a, b, d, e) { GT1131.prototype.initialConstructor_7.call(this, a, b, d, e, 0, 0, !1); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.frametime = this.guiimage = null; this.startposition = this.restartposition = this.iterations = this.currentframe = 0; this.reverse = !1; GT1190.prototype.initialConstructor_3.call(this, a, 1e5, k); GT1650.prototype.assertExp_2(null != b, "guiimage is null"); this.guiimage = b; this.frametime = [].createArray(d.length).init(0); java_lang_System.prototype.arraycopy_5(d, 0, this.frametime, 0, d.length); this.iterations = e; this.restartposition = g; this.startposition = f; this.reverse = !1; }, reset_0: function () { this.resetImpl_0(); }, start_0: function () { this.guiimage.isAlive_0() && (this.guiimage.setSourcePoint_2(0, 0), (this.currentframe = this.startposition - 1), GT1190.prototype.start_0.call(this)); }, interval_0: function () { return this.frametime[this.currentframe]; }, action_1: function (a) { if (!this.guiimage.isAlive_0()) return !1; if (this.reverse) { if ((this.currentframe--, 0 >= this.currentframe && ((this.currentframe = this.restartposition), this.iterations--, 0 >= this.iterations))) return !1; } else if ((this.currentframe++, this.currentframe >= this.frametime.length && ((this.currentframe = this.restartposition), this.iterations--, 0 >= this.iterations))) return !1; this.frameChanged_1(this.currentframe); return !0; }, frameChanged_1: function (a) { var b = this.guiimage.getImage_0(), d = a % b.getColumns_0(); a = Math.div(a, b.getColumns_0()) % b.getRows_0(); var e = Math.div(b.getWidth_0(), b.getColumns_0()), b = Math.div(b.getHeight_0(), b.getRows_0()); this.guiimage.setSourcePoint_2(d * e, a * b); }, isReverse_0: function () { return this.reverse; }, setReverse_1: function (a) { this.reverse = a; }, }, "GT1131", [GT1271] ); GT1131.prototype.getArray_2 = function (a, b) { for (var d = [].createArray(a).init(0), e = 0; e < a; e++) d[e] = b; return d; }; var GT713 = GT1190.extend( { initialConstructor_0: function () { this.parent = this.listener = null; this.lasty = this.lastx = 0; this.isOutside = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.parent = this.listener = null; this.lasty = this.lastx = 0; this.isOutside = !1; GT1190.prototype.initialConstructor_3.call(this, a, 17, !1); GT1650.prototype.assertExp_2(null != d, "no listener"); GT1650.prototype.assertExp_2(null != b, "parent is null"); GT1650.prototype.assertExp_2(null != b && b.isAlive_0(), "parent not alive"); this.parent = b; this.listener = d; this.initializeMemberVariables_0(); }, initializeMemberVariables_0: function () { this.lasty = this.lastx = -1; this.isOutside = !1; }, action_1: function (a) { if (!this.parent.isAlive_0()) return !1; a = Integer.truncate_1(this.parent.getMouseX_0()); var b = Integer.truncate_1(this.parent.getMouseY_0()); 0 > a || 0 > b || a >= this.parent.getWidth_0() || b >= this.parent.getHeight_0() ? this.isOutside || ((this.isOutside = !0), this.listener.mouseIsOutside_1(this.parent)) : ((a != this.lastx || b != this.lasty || this.isOutside) && this.listener.mousePositionChanged_3(this.parent, a, b), (this.isOutside = !1), (this.lastx = a), (this.lasty = b)); return !0; }, reset_0: function () { this.resetImpl_0(); this.initializeMemberVariables_0(); }, }, "GT713", [GT1271] ), GT1192 = GT1190.extend( { initialConstructor_0: function () { this.obj = null; this.stopy = this.stopx = this.starty = this.startx = this.afteranimationdelay = this.animationtime = this.animationdelay = 0; this.followupanimators = this.motiongraph = null; this.finaldestroy = this.finalactivestate = this.finalactiveactive = this.initialactivestate = this.initialactiveactive = this.finalhidestate = this.finalhideactive = this.initialhidestate = this.initialhideactive = !1; this.sound = this.finishcallbacks = null; this.starttime = 0; this.willJumpToEnd = this.stopOnDeath = this.toStop = this.aftermiddle = this.afterbegin = !1; this.applet = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT1192.prototype.initialConstructor_10.call(this, a, b, d, 1, b.getAnchorX_0(), b.getAnchorY_0(), b.getAnchorX_0(), b.getAnchorY_0(), 1, !0); }, initialConstructor_5: function (a, b, d, e, f) { GT1192.prototype.initialConstructor_10.call(this, a, b, 0, d, b.getAnchorX_0(), b.getAnchorY_0(), e, f, 1, !0); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1192.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, 1, !0); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.obj = null; this.stopy = this.stopx = this.starty = this.startx = this.afteranimationdelay = this.animationtime = this.animationdelay = 0; this.followupanimators = this.motiongraph = null; this.finaldestroy = this.finalactivestate = this.finalactiveactive = this.initialactivestate = this.initialactiveactive = this.finalhidestate = this.finalhideactive = this.initialhidestate = this.initialhideactive = !1; this.sound = this.finishcallbacks = null; this.starttime = 0; this.willJumpToEnd = this.stopOnDeath = this.toStop = this.aftermiddle = this.afterbegin = !1; this.applet = null; GT1190.prototype.initialConstructor_3.call(this, a.getTimer_0(), n, p); this.applet = a; this.obj = b; this.animationdelay = Math.div(d * GT1192.prototype.globalTimeFactor, 100); this.animationtime = Math.div(e * GT1192.prototype.globalTimeFactor, 100); this.afteranimationdelay = 0; this.startx = f; this.starty = g; this.stopx = k; this.stopy = m; this.starttime = 0; this.motiongraph = null; this.willJumpToEnd = this.stopOnDeath = this.toStop = this.aftermiddle = this.afterbegin = !1; }, start_0: function () { GT1190.prototype.start_0.call(this); }, stop_0: function () { this.toStop = !0; }, setStopOnDeath_1: function (a) { this.stopOnDeath = a; }, getObject_0: function () { return this.obj; }, setFollowUpAnimator_1: function (a) { this.followupanimators = new java_util_JavaScriptVector(); this.followupanimators.addElement_1(a); }, addFollowUpAnimator_1: function (a) { null == this.followupanimators && (this.followupanimators = new java_util_JavaScriptVector()); this.followupanimators.addElement_1(a); }, hasFollowUpAnimators_0: function () { return null == this.followupanimators ? !1 : 0 < this.followupanimators.size_0(); }, setInitialHide_1: function (a) { this.initialhideactive = !0; this.initialhidestate = a; }, setFinalHide_1: function (a) { this.finalhideactive = !0; this.finalhidestate = a; }, setInitialActive_1: function (a) { this.initialactiveactive = !0; this.initialactivestate = a; }, setFinalActive_1: function (a) { this.finalactiveactive = !0; this.finalactivestate = a; }, setFinalDestroy_0: function () { this.finaldestroy = !0; }, addFinishCallback_1: function (a) { null == this.finishcallbacks && (this.finishcallbacks = new java_util_JavaScriptVector()); this.finishcallbacks.addElement_1(a); }, setSound_1: function (a) { this.sound = a; }, setAfterAnimationDelay_1: function (a) { this.afteranimationdelay = Math.div(a * GT1192.prototype.globalTimeFactor, 100); }, setMotionGraph_1: function (a) { this.motiongraph = a; }, action_1: function (a) { this.stopOnDeath && !this.obj.isAlive_0() && this.stop_0(); if (this.toStop) return !1; 0 == this.starttime && (this.starttime = a); a -= this.starttime; this.willJumpToEnd && ((a = this.animationdelay + this.animationtime - 0), (this.willJumpToEnd = !1)); if (!this.afterbegin) { if (a < this.animationdelay) return !0; this.afterbegin = !0; this.actionAtStart_0(); } if (this.afterbegin && !this.aftermiddle) { if (a < this.animationdelay + this.animationtime - 0) return this.actionInTheMiddle_2(a - this.animationdelay, this.animationtime), !0; this.aftermiddle = !0; this.actionInTheMiddle_2(this.animationtime, this.animationtime); this.actionAtEnd_0(); } return a < this.animationdelay + this.animationtime + this.afteranimationdelay - 0; }, computePositionX_1: function (a) { return this.startx + Integer.truncate_1((this.stopx - this.startx) * a) - 0; }, computePositionY_1: function (a) { return this.starty + Integer.truncate_1((this.stopy - this.starty) * a) - 0; }, computePositionX_2: function (a, b) { return 0; }, computePositionY_2: function (a, b) { return 0; }, actionAtStart_0: function () { this.obj.isAlive_0() && (instanceOf(this.obj, GT1559) && this.initialactiveactive && this.obj.setActive_1(this.initialactivestate), this.initialhideactive && this.obj.hide_1(this.initialhidestate), null != this.applet && null != this.sound && this.obj.isAlive_0() && this.applet.getSoundPlayer_0().start_1(this.sound)); }, actionInTheMiddle_2: function (a, b) { if (this.obj.isAlive_0()) { var d = 0 >= b ? 0 : (1 * a) / b; 0 > d && (d = 0); 1 < d && (d = 1); null != this.motiongraph && 0 < d && 1 > d && (d = this.motiongraph.computeWay_1(d)); var e = this.computePositionX_1(d), d = this.computePositionY_1(d); this.obj.moveAnchor_2(e, d); } }, actionAtEnd_0: function () { if (this.obj.isAlive_0()) { this.finalhideactive && this.obj.hide_1(this.finalhidestate); instanceOf(this.obj, GT1559) && this.finalactiveactive && this.obj.setActive_1(this.finalactivestate); this.finaldestroy && this.obj.destroy_0(); for (var a = 0; null != this.followupanimators && a < this.followupanimators.size_0(); a++) this.followupanimators.elementAt_1(a).start_0(); for (a = 0; null != this.finishcallbacks && a < this.finishcallbacks.size_0(); a++) this.finishcallbacks.elementAt_1(a).run_0(); } }, getTotalTime_0: function () { return this.animationdelay + this.animationtime + this.afteranimationdelay; }, jumpToEnd_0: function () { this.willJumpToEnd = !0; }, }, "GT1192", [] ); GT1192.prototype.setGlobalTimeFactor_1 = function (a) { GT1192.prototype.globalTimeFactor = a; }; GT1192.prototype.globalTimeFactor = 100; var GT1076 = GT1190.extend( { initialConstructor_0: function () { this.guiObject = null; this.killItWithoutTriggers = this.killWhenObjectDestroyed = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.guiObject = null; this.killItWithoutTriggers = this.killWhenObjectDestroyed = !1; GT1190.prototype.initialConstructor_3.call(this, a, d, e); GT1650.prototype.assertExp_2(null != b, "guiObject in ObjectAnimator is null"); this.guiObject = b; this.killWhenObjectDestroyed = !0; this.killItWithoutTriggers = !1; }, setKillWhenObjectIsDestroyed_2: function (a, b) { this.killWhenObjectDestroyed = a; this.killItWithoutTriggers = b; }, setKillWhenObjectIsDestroyed_1: function (a) { this.setKillWhenObjectIsDestroyed_2(a, !1); }, getObject_0: function () { return this.guiObject; }, run_0: function () { this.killWhenObjectDestroyed && !this.guiObject.isAlive_0() ? (this.killItWithoutTriggers ? this.killWithoutTriggers_0() : this.kill_0()) : GT1190.prototype.run_0.call(this); }, }, "GT1076", [] ), GT973 = GT1190.extend( { initialConstructor_0: function () { this.sensorManager = this.obj = null; this.autoCentering = this.lastAppliedMovementY = this.lastAppliedMovementX = this.objectDepth = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.sensorManager = this.obj = null; this.autoCentering = this.lastAppliedMovementY = this.lastAppliedMovementX = this.objectDepth = 0; GT1190.prototype.initialConstructor_3.call(this, a, b, !1); this.sensorManager = d; this.obj = e; this.objectDepth = f; this.lastAppliedMovementY = this.lastAppliedMovementX = 0; this.autoCentering = g; }, action_1: function (a) { if (this.obj.isAlive_0()) { a = Integer.truncate_1( (this.autoCentering == GT973.prototype.AUTOCENTERING_AUTO ? this.sensorManager.getX_0() : this.autoCentering == GT973.prototype.AUTOCENTERING_ON ? this.sensorManager.getAutoCenteringX_0() : this.sensorManager.getRawX_0()) * this.objectDepth ); var b = Integer.truncate_1( (this.autoCentering == GT973.prototype.AUTOCENTERING_AUTO ? this.sensorManager.getY_0() : this.autoCentering == GT973.prototype.AUTOCENTERING_ON ? this.sensorManager.getAutoCenteringY_0() : this.sensorManager.getRawY_0()) * this.objectDepth ); this.obj.move_2(this.obj.getX_0() - this.lastAppliedMovementX + a, this.obj.getY_0() - this.lastAppliedMovementY + b); this.lastAppliedMovementX = a; this.lastAppliedMovementY = b; return !0; } return !1; }, }, "GT973", [] ); GT973.prototype.AUTOCENTERING_AUTO = 0; GT973.prototype.AUTOCENTERING_ON = 1; GT973.prototype.AUTOCENTERING_OFF = 2; var GT605 = GT1190.extend( { initialConstructor_0: function () { this.path = null; this.targetPath = 0; this.speed = this.pos = this.v = this.container = this.frames = this.height = this.width = this.image = null; this.randomPositioningY = this.randomPositioningX = 0; this.frame = this.active = this.type = this.s = this.guiImage = null; this.maxParticles = this.currentParticle = this.steps = this.currentStep = this.newParticle = this.newParticleFactor = this.updateParticleFrame = this.particleUpdateFactor = 0; this.random = null; this.initialized = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.path = null; this.targetPath = 0; this.speed = this.pos = this.v = this.container = this.frames = this.height = this.width = this.image = null; this.randomPositioningY = this.randomPositioningX = 0; this.frame = this.active = this.type = this.s = this.guiImage = null; this.maxParticles = this.currentParticle = this.steps = this.currentStep = this.newParticle = this.newParticleFactor = this.updateParticleFrame = this.particleUpdateFactor = 0; this.random = null; this.initialized = !1; GT1190.prototype.initialConstructor_3.call(this, a, g, !1); this.path = d; this.image = f; this.container = b; this.speed = e; this.maxParticles = n; this.newParticleFactor = k; this.particleUpdateFactor = m; this.random = new GT1561(a.currentTimeMillis_0()); this.initialized = !1; this.init_0(); }, init_0: function () { GT1650.prototype.assertExp_2(1 < this.image[0].getColumns_0() || 1 < this.image[0].getRows_0(), "Image segemtation not set for image."); this.width = [].createArray(this.image.length).init(0); this.height = [].createArray(this.image.length).init(0); this.frames = [].createArray(this.image.length).init(0); for (var a = 0; a < this.image.length; a++) 1 < this.image[a].getColumns_0() && 1 == this.image[a].getRows_0() ? (this.frames[a] = this.image[a].getColumns_0()) : 1 < this.image[a].getRows_0() && 1 == this.image[a].getColumns_0() && (this.frames[a] = this.image[a].getRows_0()), (this.width[a] = Math.div(this.image[a].getWidth_0(), this.image[a].getColumns_0())), (this.height[a] = Math.div(this.image[a].getHeight_0(), this.image[a].getRows_0())); this.newParticle = this.updateParticleFrame = 0; this.currentParticle = 1; this.currentStep = this.steps = 0; this.targetPath = 1; this.randomPositioningY = this.randomPositioningX = 0.25; this.pos = new GT1631(this.path[0].x, this.path[0].y); this.v = new GT1631(); this.updateV_0(); this.guiImage = [].createArray(this.maxParticles); this.s = [].createArray(this.maxParticles); this.frame = [].createArray(this.maxParticles).init(0); this.type = [].createArray(this.maxParticles).init(0); this.active = [].createArray(this.maxParticles).init(0); for (a = 0; a < this.maxParticles; a++) this.type[a] = Integer.truncate_1(Math.round_1(this.random.nextDouble_0() * (this.image.length - 1))); this.initialized = !0; }, updateV_0: function () { var a = 0 > this.targetPath - 1 ? this.path.length - 1 : this.targetPath - 1, b = this.path[this.targetPath].distance_1(this.path[a]); this.v = new GT1631(((this.path[this.targetPath].x - this.path[a].x) / b) * this.speed.x, ((this.path[this.targetPath].y - this.path[a].y) / b) * this.speed.y); this.steps = Integer.truncate_1(Math.div(b, this.v.distance_0())); }, start_0: function () { null != this.path && null != this.image && null != this.container && (0 == this.initialized && this.init_0(), 0 != this.initialized && (this.isPaused_0() || GT1190.prototype.start_0.call(this))); }, action_1: function (a) { if (null == this.container || !this.container.isAlive_0()) return !1; this.pos.x += this.v.x; this.pos.y += this.v.y; this.currentStep++; this.currentStep > this.steps && ((this.currentStep = 0), (this.pos = new GT1631(this.path[this.targetPath].x, this.path[this.targetPath].y)), this.targetPath++, (this.targetPath %= this.path.length), this.updateV_0()); this.currentParticle > this.maxParticles && (this.currentParticle = 1); this.frame[this.currentParticle - 1] = 0; GT1560.prototype.destroyIfAlive_1(this.guiImage[this.currentParticle - 1]); for (a = 0; a < this.maxParticles; a++) if (this.frame[a] >= this.frames[this.type[a]]) this.active[a] = !1; else if (a < this.currentParticle || this.active[a]) null != this.guiImage[a] && this.guiImage[a].isAlive_0() ? this.guiImage[a].isAlive_0() && 0 == this.updateParticleFrame % this.particleUpdateFactor && this.changeFrame_2(this.frame[a], a) : 0 == this.newParticle % this.newParticleFactor && this.createParticle_1(a); 0 == this.updateParticleFrame % this.particleUpdateFactor && (this.updateParticleFrame = 0); 0 == this.newParticle % this.newParticleFactor && ((this.newParticle = 0), this.currentParticle++); this.updateParticleFrame++; this.newParticle++; return !0; }, createParticle_1: function (a) { this.s[a] = new GT1631( this.pos.x - Math.div(this.width[this.type[a]], 2) + (this.random.nextDouble_0() - 0.5) * this.width[this.type[a]] * this.randomPositioningX, this.pos.y - Math.div(this.height[this.type[a]], 2) + (this.random.nextDouble_0() - 0.5) * this.height[this.type[a]] * this.randomPositioningY ); this.guiImage[a] = new GT1591(this.container, Integer.truncate_1(this.s[a].x), Integer.truncate_1(this.s[a].y), this.width[this.type[a]], this.height[this.type[a]], this.image[this.type[a]], 0, 0, !1); this.active[a] = !0; }, changeFrame_2: function (a, b) { this.guiImage[b].destroy_0(); 1 < this.image[this.type[b]].getColumns_0() && 1 == this.image[this.type[b]].getRows_0() ? (this.guiImage[b] = new GT1591(this.container, Integer.truncate_1(this.s[b].x), Integer.truncate_1(this.s[b].y), this.width[this.type[b]], this.height[this.type[b]], this.image[this.type[b]], a, 0, !1)) : 1 < this.image[this.type[b]].getRows_0() && 1 == this.image[this.type[b]].getColumns_0() && (this.guiImage[b] = new GT1591(this.container, Integer.truncate_1(this.s[b].x), Integer.truncate_1(this.s[b].y), this.width[this.type[b]], this.height[this.type[b]], this.image[this.type[b]], 0, a, !1)); this.frame[b]++; }, setPath_1: function (a) { this.container.hide_1(!1); this.path.equals_1(a) || (this.pause_0(), (this.path = a), (this.newParticle = this.updateParticleFrame = this.currentStep = 0), (this.pos = new GT1631(a[0].x, a[0].y)), (this.targetPath = 1), this.updateV_0(), this.resume_0()); }, setRandomPositioningX_1: function (a) { 1 > a && (a = 0); this.randomPositioningX = a; }, setRandomPositioningY_1: function (a) { 1 > a && (a = 0); this.randomPositioningY = a; }, resume_0: function () { this.container.hide_1(!1); GT1190.prototype.resume_0.call(this); }, }, "GT605", [] ), GT464 = GT1190.extend( { initialConstructor_0: function () { this.containers = null; this.offsetBlue = this.intervalBlue = this.offsetGreen = this.intervalGreen = this.offsetRed = this.intervalRed = this.phaseOffset = this.timeinterval = this.startTime = 0; this.killedWhenEmpty = !1; this.initialContainer = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT464.prototype.initialConstructor_6.call(this, a, Math.div(b, GT464.prototype.TIME_INTERVAL_STEP_IN_MILLISECONDS), b, d, e, 0); }, initialConstructor_6: function (a, b, d, e, f, g) { this.containers = null; this.offsetBlue = this.intervalBlue = this.offsetGreen = this.intervalGreen = this.offsetRed = this.intervalRed = this.phaseOffset = this.timeinterval = this.startTime = 0; this.killedWhenEmpty = !1; this.initialContainer = null; GT1190.prototype.initialConstructor_3.call(this, a, b, !1); this.startTime = -1; this.timeinterval = d; this.phaseOffset = g; this.containers = new java_util_JavaScriptVector(); this.setValueIntervals_3(e, e, e); this.setOffsets_3(f, f, f); this.killedWhenEmpty = !0; }, initialConstructor_1: function (a) { GT464.prototype.initialConstructor_4.call(this, a, 1e3, 70, 70); }, initialConstructor_5: function (a, b, d, e, f) { GT464.prototype.initialConstructor_4.call(this, a, d, e, f); this.initialContainer = b; this.addGUIContainer_1(b); }, initialConstructor_2: function (a, b) { GT464.prototype.initialConstructor_1.call(this, a); this.initialContainer = b; this.addGUIContainer_1(b); }, setValueIntervals_3: function (a, b, d) { this.intervalRed = a; this.intervalGreen = b; this.intervalBlue = d; }, setOffsets_3: function (a, b, d) { this.offsetRed = a; this.offsetGreen = b; this.offsetBlue = d; }, addGUIObject_1: function (a) { this.addGUIContainer_1(a); }, addGUIContainer_1: function (a) { this.containers.addElement_1(a); }, removeGUIObject_1: function (a) { this.removeGUIContainer_1(a); }, removeGUIContainer_1: function (a) { a.isAlive_0() && a.setColorTransformation_1(null); this.containers.removeElement_1(a); }, action_1: function (a) { if (this.killedWhenEmpty && this.containers.isEmpty_0() && 0 == this.timeinterval) return !1; if (-1 == this.startTime) return (this.startTime = a), !0; var b = (a - this.startTime + this.phaseOffset) % this.timeinterval; a = Math.div(b * this.intervalRed * 2, this.timeinterval); var d = Math.div(b * this.intervalGreen * 2, this.timeinterval), b = Math.div(b * this.intervalBlue * 2, this.timeinterval); a = new GT1063(Math.abs_1(a - this.intervalRed) + this.offsetRed, 0, Math.abs_1(d - this.intervalGreen) + this.offsetGreen, 0, Math.abs_1(b - this.intervalBlue) + this.offsetBlue, 0); for (d = 0; d < this.containers.size_0(); d++) (b = this.containers.elementAt_1(d)), GT1560.prototype.isAlive_1(b) ? b.setColorTransformation_1(a) : (this.removeGUIContainer_1(b), d--); return !0; }, killAndTrigger_1: function (a) { GT1190.prototype.killAndTrigger_1.call(this, a); for (a = 0; a < this.containers.size_0(); a++) { var b = this.containers.elementAt_1(a); GT1560.prototype.isAlive_1(b) && b.setColorTransformation_1(null); } this.containers.removeAllElements_0(); }, isKilledWhenEmpty_0: function () { return this.killedWhenEmpty; }, setKilledWhenEmpty_1: function (a) { this.killedWhenEmpty = a; }, reset_0: function () { this.resetImpl_0(); this.startTime = -1; GT1560.prototype.isAlive_1(this.initialContainer) && this.containers.isEmpty_0() && this.addGUIContainer_1(this.initialContainer); }, }, "GT464", [GT1271] ); GT464.prototype.TIME_INTERVAL_STEP_IN_MILLISECONDS = 25; var GT1077 = GT1190.extend( { initialConstructor_0: function () { this.startHeight = this.startWidth = 0; this.objToResize = null; this.duration = this.heightDiff = this.widthDiff = this.endHeight = this.endWidth = 0; this.motionGraph = null; this.useGUIObjectDimensions = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.startHeight = this.startWidth = 0; this.objToResize = null; this.duration = this.heightDiff = this.widthDiff = this.endHeight = this.endWidth = 0; this.motionGraph = null; this.useGUIObjectDimensions = !1; GT1190.prototype.initialConstructor_3.call(this, a, 1, !1); GT1650.prototype.assertExp_2(null != b, "The object to resize mustn't be null!"); this.objToResize = b; this.endWidth = d; this.endHeight = e; this.useGUIObjectDimensions = !0; }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1077.prototype.initialConstructor_4.call(this, a, b, f, g); this.startWidth = d; this.widthDiff = f - d; this.startHeight = e; this.heightDiff = g - e; this.setDuration_1(k); this.useGUIObjectDimensions = !1; }, initialConstructor_5: function (a, b, d, e, f) { GT1077.prototype.initialConstructor_4.call(this, a, b, d, e); GT1650.prototype.assertExp_2(instanceOf(b, GT1560), "The object needs to be an instance of the GUIObject class!"); this.initializeValuesUsingGUIObject_1(b); this.setDuration_1(f); }, initializeValuesUsingGUIObject_1: function (a) { this.startWidth = a.getWidth_0(); this.startHeight = a.getHeight_0(); this.widthDiff = this.endWidth - this.startWidth; this.heightDiff = this.endHeight - this.startHeight; }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setMotionGraph_1: function (a) { this.motionGraph = a; }, action_1: function (a) { if (null == this.objToResize || (instanceOf(this.objToResize, GT1560) && !this.objToResize.isAlive_0())) return !1; var b = this.getStartTime_0(); a -= b; if (a <= this.duration) return ( (a /= this.duration), null != this.motionGraph && (a = this.motionGraph.computeWay_1(a)), this.objToResize.resize_2(this.startWidth + Integer.truncate_1(a * this.widthDiff), this.startHeight + Integer.truncate_1(a * this.heightDiff)), !0 ); this.objToResize.resize_2(this.endWidth, this.endHeight); return !1; }, reset_0: function () { this.resetImpl_0(); instanceOf(this.objToResize, GT1560) && null != this.objToResize && this.useGUIObjectDimensions && this.initializeValuesUsingGUIObject_1(this.objToResize); }, }, "GT1077", [GT1271] ), GT1078 = GT1190.extend( { initialConstructor_0: function () { this.obj = null; this.totalTime = this.stopRot = this.startRot = 0; this.mg = null; this.firstTime = this.usingShortestWay = !1; this.difference = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.obj = null; this.totalTime = this.stopRot = this.startRot = 0; this.mg = null; this.firstTime = this.usingShortestWay = !1; this.difference = 0; GT1190.prototype.initialConstructor_3.call(this, a, 10, g); this.obj = b; this.totalTime = f; this.startRot = d; this.stopRot = e; this.mg = null; this.usingShortestWay = this.firstTime = !0; }, reset_0: function () { this.resetImpl_0(); this.firstTime = !0; this.difference = 0; }, setUsingShortestWay_1: function (a) { this.usingShortestWay = a; }, setMotionGraph_1: function (a) { this.mg = a; }, isGUIObjectAlive_0: function () { return null != this.obj && instanceOf(this.obj, GT1560) ? this.obj.isAlive_0() : !1; }, action_1: function (a) { a -= this.getStartTime_0(); if (null == this.obj || (instanceOf(this.obj, GT1560) && !this.isGUIObjectAlive_0())) return !1; if (this.firstTime) { var b = Math.abs_1(this.stopRot - this.startRot); this.difference = this.usingShortestWay && b > 2 * Math.PI - b ? (this.stopRot < this.startRot ? 2 * Math.PI - b : 2 * -Math.PI + b) : this.stopRot - this.startRot; this.firstTime = !1; } b = this.computeRotation_2(a, this.totalTime); this.obj.setRotation_1(b); return a < this.totalTime; }, computeRotation_2: function (a, b) { if (0 < b && a < b) { if (null == this.mg) return this.startRot + (this.difference * a) / b; var d = this.mg.computeWay_1(a / b); return this.startRot + this.difference * d; } return this.stopRot; }, getRotatable_0: function () { return this.obj; }, }, "GT1078", [GT1271, GT1325] ), GT415 = GT1190.extend( { initialConstructor_0: function () { this.obj = null; this.totalTime = this.angle = 0; this.clockwise = !1; this.go2check = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.obj = null; this.totalTime = this.angle = 0; this.clockwise = !1; this.go2check = null; GT1190.prototype.initialConstructor_3.call(this, a, 10, k); this.obj = b; this.totalTime = f; this.angle = e; this.clockwise = g; this.go2check = d; }, initialConstructor_6: function (a, b, d, e, f, g) { this.obj = null; this.totalTime = this.angle = 0; this.clockwise = !1; this.go2check = null; GT1190.prototype.initialConstructor_3.call(this, a, 10, g); GT1650.prototype.assertExp_2(instanceOf(b, GT1560), "transformable is not a GUIObject. use other constructor."); this.obj = b; this.totalTime = e; this.angle = d; this.clockwise = f; this.go2check = b; }, action_1: function (a) { a -= this.getStartTime_0(); if ((null != this.go2check && !this.go2check.isAlive_0()) || null == this.obj) return !1; this.clockwise ? this.obj.setRotation_1(-(this.angle * a) / this.totalTime) : this.obj.setRotation_1((this.angle * a) / this.totalTime); a >= this.totalTime && (this.clockwise ? this.obj.setRotation_1(-this.angle) : this.obj.setRotation_1(this.angle)); return a < this.totalTime; }, reset_0: function () { this.resetImpl_0(); }, }, "GT415", [GT1271] ), GT1132 = GT1190.extend( { initialConstructor_0: function () { this.transformable = null; this.maxYScale = this.maxXScale = this.minYScale = this.minXScale = this.endYFactor = this.endXFactor = this.startYFactor = this.startXFactor = this.duration = this.pausedtime = this.startTime = this.currentCycle = this.cycles = 0; this.motionGraph = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.transformable = null; this.maxYScale = this.maxXScale = this.minYScale = this.minXScale = this.endYFactor = this.endXFactor = this.startYFactor = this.startXFactor = this.duration = this.pausedtime = this.startTime = this.currentCycle = this.cycles = 0; this.motionGraph = null; GT1190.prototype.initialConstructor_3.call(this, a, 20, n); this.transformable = b; this.cycles = d; this.startXFactor = f; this.endXFactor = g; this.minXScale = f < g ? f : g; this.maxXScale = f > g ? f : g; this.startYFactor = k; this.endYFactor = m; this.minYScale = k < m ? k : m; this.maxYScale = k > m ? k : m; this.setDuration_1(e); this.startTime = -1; this.currentCycle = 0; }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1132.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, !1); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1132.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, f, g, !1); }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setMotionGraph_1: function (a) { this.motionGraph = a; }, start_0: function () { this.startTime = this.getCurrentTimeMillis_0(); GT1190.prototype.start_0.call(this); }, action_1: function (a) { if (null == this.transformable || (instanceOf(this.transformable, GT1560) && !this.transformable.isAlive_0())) return !1; a -= this.startTime; var b = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > b ? (b = 0) : 1 < b && (b = 1); null != this.motionGraph && 0 < b && 1 > b && (b = this.motionGraph.computeWay_1(b)); var d = b * (this.endXFactor - this.startXFactor) + this.startXFactor, b = b * (this.endYFactor - this.startYFactor) + this.startYFactor; d < this.minXScale ? (d = this.minXScale) : d > this.maxXScale && (d = this.maxXScale); b < this.minYScale ? (b = this.minYScale) : b > this.maxYScale && (b = this.maxYScale); this.transformable.setScale_2(d, b); if (a > this.duration) if (++this.currentCycle < this.cycles || 0 == this.cycles) (this.startTime = this.getCurrentTimeMillis_0()), (a = this.startXFactor), (this.startXFactor = this.endXFactor), (this.endXFactor = a), (a = this.startYFactor), (this.startYFactor = this.endYFactor), (this.endYFactor = a); else return !1; return !0; }, reset_0: function () { this.resetImpl_0(); this.pausedtime = this.startTime = -1; this.currentCycle = 0; }, pause_0: function () { this.isRunning_0() && !this.isPaused_0() && (this.pausedtime = this.getTimer_0().currentTimeMillis_0()); GT1190.prototype.pause_0.call(this); }, resume_0: function () { if (this.isRunning_0() && this.isPaused_0()) { var a = this.pausedtime - this.startTime; this.startTime = this.getTimer_0().currentTimeMillis_0() - a; } GT1190.prototype.resume_0.call(this); }, getTransformable_0: function () { return this.transformable; }, }, "GT1132", [GT1271] ), GT822 = GT1190.extend( { initialConstructor_0: function () { this.endVolume = this.startVolume = this.factor = this.duration = this.startTime = 0; this.sound = this.player = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT822.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, !1); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.endVolume = this.startVolume = this.factor = this.duration = this.startTime = 0; this.sound = this.player = null; GT1190.prototype.initialConstructor_3.call(this, a, b, m); this.player = d; this.sound = e; this.startVolume = Math.min_2(Math.max_2(f, 0), 100); this.endVolume = Math.min_2(Math.max_2(g, 0), 100); this.factor = (g - f) / k; this.startTime = 0; this.duration = k; }, start_0: function () { 0 < this.duration ? ((this.startTime = this.getCurrentTimeMillis_0()), this.player.setVolume_2(this.sound, this.startVolume), GT1190.prototype.start_0.call(this)) : this.player.setVolume_2(this.sound, this.endVolume); }, action_1: function (a) { a -= this.startTime; var b = this.startVolume + Integer.truncate_1(this.factor * a), b = Math.min_2(b, 100), b = Math.max_2(b, 0); this.player.setVolume_2(this.sound, b); if (b != this.endVolume && a <= this.duration) return !0; this.player.setVolume_2(this.sound, this.endVolume); return !1; }, killAndTrigger_1: function (a) { this.player.setVolume_2(this.sound, this.endVolume); GT1190.prototype.killAndTrigger_1.call(this, a); }, }, "GT822", [] ), GT232 = GT1190.extend( { initialConstructor_0: function () { this.frametime = this.animationSequence = this.view = this.parent = this.skin = this.viewDesc = this.image = null; this.endposition = this.startposition = this.restartposition = this.iterations = this.currentframe = 0; this.startHorizontal = this.destroyAtEnd = !1; this.frameChangedCallBacks = null; this.elapsedRemainder = this.lastactiontime = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.frametime = this.animationSequence = this.view = this.parent = this.skin = this.viewDesc = this.image = null; this.endposition = this.startposition = this.restartposition = this.iterations = this.currentframe = 0; this.startHorizontal = this.destroyAtEnd = !1; this.frameChangedCallBacks = null; this.elapsedRemainder = this.lastactiontime = 0; GT1190.prototype.initialConstructor_3.call(this, a, 1e5, m); this.animationSequence = null; this.frameChangedCallBacks = new java_util_JavaScriptVector(); this.viewDesc = d; this.skin = f; this.parent = b; this.viewDesc.image_1(e); this.iterations = k ? 1e5 : 1; this.startposition = this.restartposition = 0; this.destroyAtEnd = !1; this.image = e.create_1(this.skin.getResourceManager_0()); GT1650.prototype.assertExp_2(1 < this.image.getColumns_0() || 1 < this.image.getRows_0(), "Image segemtation not set for image."); 1 < this.image.getColumns_0() && 1 == this.image.getRows_0() ? (this.frametime = this.getArray_2(this.image.getColumns_0(), g)) : 1 < this.image.getRows_0() && 1 == this.image.getColumns_0() ? (this.frametime = this.getArray_2(this.image.getRows_0(), g)) : (this.frametime = this.getArray_2(this.image.getRows_0() * this.image.getColumns_0(), g)); this.endposition = -1; this.startHorizontal = !0; }, setStartHorizontal_1: function (a) { this.startHorizontal = a; }, setAnimationSequence_1: function (a) { this.setAnimationSequence_2(a, null); }, setAnimationSequence_2: function (a, b) { var d = a.length; GT1650.prototype.assertExp_2(null == b || b.length == a.length, "Wrong array size."); null == b ? (this.frametime = this.getArray_2(d, this.frametime[0])) : java_lang_System.prototype.arraycopy_5(b, 0, this.frametime, 0, d); this.animationSequence = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, 0, this.animationSequence, 0, d); }, setFrameTime_1: function (a) { GT1650.prototype.assertExp_2(a.length == this.frametime.length, "Wrong array size."); java_lang_System.prototype.arraycopy_5(a, 0, this.frametime, 0, a.length); }, addFrameChangedCallback_1: function (a) { this.frameChangedCallBacks.contains_1(a) || this.frameChangedCallBacks.addElement_1(a); }, removeFrameChangedCallback_1: function (a) { this.frameChangedCallBacks.removeElement_1(a); }, setIterations_1: function (a) { this.iterations = a; }, setStartPosition_1: function (a) { this.startposition = a; }, setEndPosition_1: function (a) { this.endposition = a; }, setRestartPosition_1: function (a) { this.restartposition = a; }, start_0: function () { GT1560.prototype.isAlive_1(this.parent) && ((this.lastactiontime = this.getCurrentTimeMillis_0()), (this.elapsedRemainder = 0), GT1560.prototype.destroyIfAlive_1(this.view), (this.view = this.viewDesc.showTile_2(0, 0).create_2(this.parent, this.skin)), (this.currentframe = this.startposition - 1), GT1190.prototype.start_0.call(this)); }, interval_0: function () { return this.frametime[this.currentframe]; }, resume_0: function () { this.lastactiontime = this.getCurrentTimeMillis_0(); GT1190.prototype.resume_0.call(this); }, action_1: function (a) { if (!this.view.isAlive_0() || !this.parent.isAlive_0()) return !1; var b = a - this.lastactiontime + this.elapsedRemainder; for (this.lastactiontime = a; 0 > this.currentframe || b >= this.frametime[this.currentframe]; ) { 0 <= this.currentframe && (b -= this.frametime[this.currentframe]); this.currentframe++; if (this.currentframe >= this.frametime.length || (-1 != this.endposition && this.currentframe >= this.endposition)) if (((this.currentframe = this.restartposition), this.iterations--, 0 >= this.iterations)) return this.actionAtEnd_0(), !1; this.frameChanged_1(this.currentframe); } this.elapsedRemainder = b; return !0; }, frameChanged_1: function (a) { null != this.view && this.view.isAlive_0() && this.view.destroy_0(); var b = a; null != this.animationSequence && (b = this.animationSequence[a]); 1 < this.image.getColumns_0() && 1 == this.image.getRows_0() ? (this.view = this.viewDesc.showTile_2(b, 0).create_2(this.parent, this.skin)) : 1 < this.image.getRows_0() && 1 == this.image.getColumns_0() ? (this.view = this.viewDesc.showTile_2(0, b).create_2(this.parent, this.skin)) : (this.startHorizontal ? ((a = b % this.image.getColumns_0()), (b = Math.div(b, this.image.getColumns_0()))) : ((a = Math.div(b, this.image.getRows_0())), (b %= this.image.getRows_0())), (this.view = this.viewDesc.showTile_2(a, b).create_2(this.parent, this.skin))); b = this.frameChangedCallBacks.clone_0(); a = b.size_0(); for (var d = 0; d < a; d++) b.elementAt_1(d).run_0(); }, actionAtEnd_0: function () { this.destroyAtEnd && null != this.view && this.view.isAlive_0() && this.view.destroy_0(); }, isKeepingLastFrame_0: function () { return !this.destroyAtEnd; }, setKeepLastFrame_1: function (a) { this.destroyAtEnd = !a; }, jumpToEnd_0: function () { this.currentframe = this.frametime.length; this.iterations = 0; }, getCurrentFrameIndex_0: function () { return this.currentframe; }, }, "GT232", [] ); GT232.prototype.getArray_2 = function (a, b) { for (var d = [].createArray(a).init(0), e = 0; e < a; e++) d[e] = b; return d; }; var GT504 = GT1190.extend( { initialConstructor_0: function () { this.guiObject = null; this.duration = this.stopScale = this.stopY = this.stopX = this.startScale = this.startY = this.startX = 0; this.motionGraph = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.guiObject = null; this.duration = this.stopScale = this.stopY = this.stopX = this.startScale = this.startY = this.startX = 0; this.motionGraph = null; GT1190.prototype.initialConstructor_3.call(this, a, 1, p); GT1650.prototype.assertExp_2(null != b, "guiObject is null"); this.guiObject = b; this.startX = d; this.startY = e; this.startScale = k; this.stopX = f; this.stopY = g; this.stopScale = m; this.setDuration_1(n); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT504.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, n, !1); }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setMotionGraph_1: function (a) { this.motionGraph = a; }, action_1: function (a) { if (!GT1560.prototype.isAlive_1(this.guiObject)) return !1; a -= this.getStartTime_0(); var b = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > b ? (b = 0) : 1 < b && (b = 1); null != this.motionGraph && 0 < b && 1 > b && (b = this.motionGraph.computeWay_1(b)); var d = this.startX + (this.stopX - this.startX) * b, e = this.startY + (this.stopY - this.startY) * b, b = this.startScale + (this.stopScale - this.startScale) * b; instanceOf(this.guiObject, GT1429) && this.guiObject.setTranslation_2(d, e); instanceOf(this.guiObject, GT1373) && this.guiObject.setScale_2(b, b); return a >= this.duration ? (instanceOf(this.guiObject, GT1429) && this.guiObject.setTranslation_2(this.stopX, this.stopY), instanceOf(this.guiObject, GT1373) && this.guiObject.setScale_2(this.stopScale, this.stopScale), !1) : !0; }, reset_0: function () { this.resetImpl_0(); }, }, "GT504", [GT1271] ), GT875 = GT1190.extend( { initialConstructor_0: function () { this.textable = null; this.difference = 0; this.formatter = null; this.stepTime = this.steps = this.value = this.initialEndValue = this.initialStartValue = this.maxtime = 0; this.values = null; this.round = this.minimumNumberOfSteps = this.timeOfFirstStep = this.currentpos = 0; this.updatecallbacks = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.textable = null; this.difference = 0; this.formatter = null; this.stepTime = this.steps = this.value = this.initialEndValue = this.initialStartValue = this.maxtime = 0; this.values = null; this.round = this.minimumNumberOfSteps = this.timeOfFirstStep = this.currentpos = 0; this.updatecallbacks = null; GT1190.prototype.initialConstructor_3.call(this, a, d, !1); this.textable = b; this.maxtime = e; this.formatter = new GT1285(); this.minimumNumberOfSteps = 10; this.round = 0; this.initialEndValue = this.initialStartValue = -1; this.updatecallbacks = new java_util_JavaScriptVector(); }, init_2: function (a, b) { this.init_3(a, b, this.maxtime); }, init_3: function (a, b, d) { this.resetImpl_0(); this.initialStartValue = a; this.initialEndValue = b; this.difference = b - a; this.maxtime = d; this.currentpos = -1; this.value = a; this.steps = this.determineOptimumSteps_1(Math.div(this.maxtime, 50)); this.stepTime = Math.div(this.maxtime, this.steps); this.values = [].createArray(this.steps).init(0); for (d = 0; d < this.steps; d++) this.values[d] = b - (this.difference * (this.steps - d - 1)) / this.steps; if (0 != this.round) { var e = Integer.truncate_1(Math.pow_2(10, this.round)), f = 0 == Math.div(Math.div(Integer.truncate_1(this.difference), e), this.minimumNumberOfSteps); for (d = 0; d < this.steps - 1; d++) f ? 0 == Integer.truncate_1(this.values[d]) % e && (this.values[d] += 1) : (this.values[d] = Math.ceil_1(this.values[d] / e) * e), this.values[d] > Math.max_2(a, b) ? (this.values[d] = Math.max_2(a, b)) : this.values[d] < Math.min_2(a, b) && (this.values[d] = Math.min_2(a, b)); if (!f && 1 == this.minimumNumberOfSteps) if (((a = this.values[0]), (b = this.values[this.values.length - 1]), (f = Math.abs_1(Math.div(a - b, e))), 1 > f)) (this.values = [].createArray(2).init(0)), (this.values[0] = this.initialStartValue), (this.values[1] = this.initialEndValue), (this.stepTime = 0); else if (f < Math.div(this.maxtime, 50)) for (this.values = [].createArray(Integer.truncate_1(f)).init(0), d = 0; d < Math.floor_1(f); d++) this.values[d] = Math.ceil_1((a + ((d + 1) * (b - a) * 1) / f) / e) * e; else { e = [].createArray(this.values.length).init(0); java_lang_System.prototype.arraycopy_5(this.values, 0, e, 0, this.values.length); for (d = a = 1; d < e.length; d++) e[d - 1] != e[d] && a++; this.values = [].createArray(a).init(0); this.values[0] = e[0]; for (d = a = 1; d < e.length; d++) e[d - 1] != e[d] && ((this.values[a] = e[d]), a++); } } }, setFormatter_1: function (a) { this.formatter = a; }, getFormatter_0: function () { return this.formatter; }, setRoundDuringAnimation_1: function (a) { this.round = a; }, setMinimumNumberOfSteps_1: function (a) { this.minimumNumberOfSteps = a; }, addUpdateCallback_1: function (a) { null == a || this.updatecallbacks.contains_1(a) || this.updatecallbacks.addElement_1(a); }, removeUpdateCallback_1: function (a) { this.updatecallbacks.removeElement_1(a); }, removeAllUpdateCallbacks_0: function () { this.updatecallbacks.clear_0(); }, interval_0: function () { return this.stepTime; }, action_1: function (a) { if (instanceOf(this.textable, GT1560) && !this.textable.isAlive_0()) return (this.textable = null), !1; 0 > this.currentpos && (this.timeOfFirstStep = a); 0 == this.stepTime ? (this.currentpos = this.values.length - 1) : ((this.currentpos = Math.div(a - this.timeOfFirstStep, this.stepTime)), 0 > this.currentpos ? (this.currentpos = 0) : this.currentpos >= this.values.length && (this.currentpos = this.values.length - 1)); if (0 <= this.currentpos && ((a = "" + this.formatter.format_1(this.values[this.currentpos])), !a.equals_1(this.textable.getText_0()))) { this.value = this.values[this.currentpos]; this.textable.setText_1(a); a = this.updatecallbacks.size_0(); for (var b = 0; b < a; b++) this.updatecallbacks.elementAt_1(b).run_0(); } return this.currentpos == this.values.length - 1 ? !1 : !0; }, getValue_0: function () { return this.value; }, reset_0: function () { this.init_2(this.initialStartValue, this.initialEndValue); }, }, "GT875", [GT1271] ); GT875.prototype.determineOptimumSteps_1 = function (a) { return 100 <= a ? 100 * Math.div(a, 100) : 50 <= a ? 50 : 20 <= a ? 20 : 10 <= a ? 10 : 5 <= a ? 5 : 2; }; var GT657 = Class.extend( { initialConstructor_0: function () { this.guiButton = null; this.active = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.guiButton = null; this.active = !1; GT1650.prototype.assertExp_2(null != a, "guibutton is null"); this.guiButton = a; this.active = b; }, run_0: function () { this.guiButton.isAlive_0() && this.guiButton.setActive_1(this.active); }, }, "GT657", [Runnable] ), GT823 = Class.extend( { initialConstructor_0: function () { this.newState = this.state = null; this.index = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.newState = this.state = null; this.index = 0; this.state = a; this.newState = d; this.index = b; }, run_0: function () { this.state[this.index] = this.newState; }, }, "GT823", [Runnable] ), GT658 = Class.extend( { initialConstructor_0: function () { this.callback = this.timer = null; this.delay = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.callback = this.timer = null; this.delay = 0; this.timer = a; this.callback = b; this.delay = d; }, run_0: function () { this.timer.triggerCallbackAfter_2(this.callback, this.delay); }, }, "GT658", [Runnable] ), GT714 = Class.extend( { initialConstructor_0: function () { this.guiObject = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.guiObject = null; GT1650.prototype.assertExp_2(null != a, "guiobject is null"); this.guiObject = a; }, run_0: function () { this.guiObject.isAlive_0() && this.guiObject.destroy_0(); }, }, "GT714", [Runnable] ), GT869 = Class.extend( { initialConstructor_0: function () { this.guiObject = null; this.hide = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT869.prototype.initialConstructor_2.call(this, a, !0); }, initialConstructor_2: function (a, b) { this.guiObject = null; this.hide = !1; GT1650.prototype.assertExp_2(null != a, "guiObject is null"); this.guiObject = a; this.hide = b; }, init_0: function () { this.guiObject.isAlive_0() && this.guiObject.hide_1(!this.hide); }, run_0: function () { this.guiObject.isAlive_0() && this.guiObject.hide_1(this.hide); }, }, "GT869", [Runnable] ), GT764 = Class.extend( { initialConstructor_0: function () { this.animator = null; this.triggerCallbacks = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.animator = null; this.triggerCallbacks = !1; this.animator = a; this.triggerCallbacks = b; }, run_0: function () { this.animator.killAndTrigger_1(this.triggerCallbacks); }, }, "GT764", [Runnable] ), GT870 = Class.extend( { initialConstructor_0: function () { this.guiObject = null; this.y = this.x = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.guiObject = null; this.y = this.x = 0; GT1650.prototype.assertExp_2(null != a, "guiObject is null"); this.guiObject = a; this.x = b; this.y = d; }, initialConstructor_2: function (a, b) { this.guiObject = null; this.y = this.x = 0; GT1650.prototype.assertExp_2(null != a, "guiObject is null"); this.guiObject = a; this.x = b.x; this.y = b.y; }, run_0: function () { this.guiObject.isAlive_0() && this.guiObject.moveAnchor_2(this.x, this.y); }, }, "GT870", [Runnable] ), GT659 = Class.extend( { initialConstructor_0: function () { this.animator = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animator = null; this.animator = a; }, run_0: function () { null != this.animator && this.animator.pause_0(); }, }, "GT659", [Runnable] ), GT606 = Class.extend( { initialConstructor_0: function () { this.animator = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animator = null; this.animator = a; }, run_0: function () { null != this.animator && this.animator.resume_0(); }, }, "GT606", [Runnable] ), GT824 = Class.extend( { initialConstructor_0: function () { this.toScale = null; this.scaley = this.scalex = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.toScale = null; this.scaley = this.scalex = 0; GT1650.prototype.assertExp_2(instanceOf(a, GT1560), "Object to be scaled is either null or not a GUI object!"); this.toScale = a; this.scalex = b; this.scaley = d; }, initialConstructor_2: function (a, b) { GT824.prototype.initialConstructor_3.call(this, a, b, b); }, run_0: function () { instanceOf(this.toScale, GT1560) && this.toScale.isAlive_0() && this.toScale.setScale_2(this.scalex, this.scaley); }, }, "GT824", [Runnable] ), GT974 = Class.extend( { initialConstructor_0: function () { this.transparent = null; this.alpha = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.transparent = null; this.alpha = 0; this.transparent = a; this.alpha = b; }, run_0: function () { null != this.transparent && (instanceOf(this.transparent, GT1560) ? this.transparent.isAlive_0() && this.transparent.setAlpha_1(this.alpha) : this.transparent.setAlpha_1(this.alpha)); }, }, "GT974", [Runnable] ), GT660 = Class.extend( { initialConstructor_0: function () { this.animator = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animator = null; this.animator = a; }, run_0: function () { null != this.animator && this.animator.start_0(); }, }, "GT660", [Runnable] ), GT876 = Class.extend( { initialConstructor_0: function () { this.player = this.sound = null; this.loop = !1; this.volume = this.panning = this.loopRestart = this.loopEnd = this.loopStart = 0; this.guiObject = this.finishCallback = null; this.canceled = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT876.prototype.initialConstructor_3.call(this, a, b, !1); }, initialConstructor_3: function (a, b, d) { this.player = this.sound = null; this.loop = !1; this.volume = this.panning = this.loopRestart = this.loopEnd = this.loopStart = 0; this.guiObject = this.finishCallback = null; this.canceled = !1; this.player = a; this.sound = b; this.loop = d; this.panning = 0; this.finishCallback = null; this.setLoopPositions_3(-1, -1, -1); this.canceled = !1; this.volume = 100; }, initialConstructor_4: function (a, b, d, e) { GT876.prototype.initialConstructor_3.call(this, a, b, !1); this.panning = d; this.finishCallback = e; }, initialConstructor_5: function (a, b, d, e, f) { GT876.prototype.initialConstructor_4.call(this, a, b, d, e); this.guiObject = f; }, setPanning_1: function (a) { this.panning = a; }, setVolume_1: function (a) { this.volume = a; }, getGuiObject_0: function () { return this.guiObject; }, setGuiObject_1: function (a) { this.guiObject = a; }, setLoopPositions_3: function (a, b, d) { this.loopStart = a; this.loopEnd = b; this.loopRestart = d; }, setFinishCallback_1: function (a) { GT1650.prototype.assertExp_2(!this.loop, "Looping sounds can't have finish callbacks."); this.finishCallback = a; }, cancel_0: function () { this.canceled = !0; }, run_0: function () { this.canceled || (null != this.guiObject && !this.guiObject.isAlive_0()) || (this.loop ? 0 <= this.loopStart && 0 <= this.loopEnd && 0 <= this.loopRestart ? this.player.startLooped_6(this.sound, this.loopStart, this.loopEnd, this.loopRestart, this.volume, this.panning) : null != this.sound && this.player.startLooped_6(this.sound, 0, this.sound.getLength_0(), 0, this.volume, this.panning) : this.player.start_6(this.sound, this.finishCallback, 0, 0, this.volume, this.panning)); }, }, "GT876", [Runnable] ), GT561 = Class.extend( { initialConstructor_0: function () { this.videoPlayer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.videoPlayer = null; this.videoPlayer = a; }, run_0: function () { null != this.videoPlayer && this.videoPlayer.start_0(); }, }, "GT561", [Runnable] ), GT928 = Class.extend( { initialConstructor_0: function () { this.sound = this.player = null; this.fadeOutTime = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sound = this.player = null; this.fadeOutTime = 0; this.player = a; this.sound = b; }, initialConstructor_3: function (a, b, d) { GT928.prototype.initialConstructor_2.call(this, a, b); this.setFadeOutTime_1(d); }, setFadeOutTime_1: function (a) { this.fadeOutTime = a; }, run_0: function () { null != this.player && null != this.sound && this.player.stop_2(this.sound, this.fadeOutTime); }, }, "GT928", [Runnable] ), GT1236 = Class.extend( { initialConstructor_0: function () { this.index = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.index = 0; this.index = a; }, idx_0: function () { return this.index; }, }, "GT1236", [] ); GT1236.prototype.INACTIVE = new GT1236(0); GT1236.prototype.DEFAULT = new GT1236(1); GT1236.prototype.PRESSED = new GT1236(2); GT1236.prototype.MOUSEOVER = new GT1236(3); var GT1488 = Class.extend( { initialConstructor_0: function () { this.name = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.name = a; }, toString: function () { return this.name; }, getX_2: function (a, b) { return this == GT1488.prototype.CENTER ? a - Math.div(b, 2) : this == GT1488.prototype.RIGHT ? a - b : a; }, combinedFlags_1: function (a) { return (this == GT1488.prototype.CENTER ? 1 : this == GT1488.prototype.RIGHT ? 2 : 0) | (a == GT1489.prototype.CENTER ? 4 : a == GT1489.prototype.BOTTOM ? 8 : 0); }, }, "GT1488", [] ); GT1488.prototype.LEFT = new GT1488("left"); GT1488.prototype.CENTER = new GT1488("hcenter"); GT1488.prototype.RIGHT = new GT1488("right"); var GT929 = GT1236.extend( { initialConstructor_0: function () { GT1236.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1236.prototype.initialConstructor_1.call(this, a); }, }, "GT929", [] ); GT929.prototype.SELECTED_INACTIVE = new GT1236(4); GT929.prototype.SELECTED_DEFAULT = new GT1236(5); GT929.prototype.SELECTED_PRESSED = new GT1236(6); GT929.prototype.SELECTED_MOUSEOVER = new GT1236(7); var GT1489 = Class.extend( { initialConstructor_0: function () { this.name = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.name = a; }, toString: function () { return this.name; }, getY_2: function (a, b) { return this == GT1489.prototype.CENTER ? a - Math.div(b, 2) : this == GT1489.prototype.BOTTOM ? a - b : a; }, combinedFlags_1: function (a) { return (a == GT1488.prototype.CENTER ? 1 : a == GT1488.prototype.RIGHT ? 2 : 0) | (this == GT1489.prototype.CENTER ? 4 : this == GT1489.prototype.BOTTOM ? 8 : 0); }, }, "GT1489", [] ); GT1489.prototype.TOP = new GT1489("top"); GT1489.prototype.CENTER = new GT1489("vcenter"); GT1489.prototype.BOTTOM = new GT1489("bottom"); var GT715 = Class.extend( { initialConstructor_0: function () { this.coords = null; this.yScale = this.xScale = 0; this.coords = null; }, setCoordinates_1: function (a) { this.coords = a; return this; }, scaleFactor_2: function (a, b) { this.xScale = a; this.yScale = b; return this; }, create_0: function () { if (null != this.coords) for (var a = 0; a < this.coords.length; a += 2) 0 < this.xScale && (this.coords[a] = Integer.truncate_1(this.coords[a] * this.xScale)), 0 < this.yScale && (this.coords[a + 1] = Integer.truncate_1(this.coords[a + 1] * this.yScale)); a = new GT1124(); a.setCoordinates_1(this.coords); return a; }, }, "GT715", [] ); GT715.prototype.set_0 = function () { return new GT715(); }; var GT765 = Class.extend({ initialConstructor_0: function () {} }, "GT765", []), GT1334 = Class.extend( { initialConstructor_0: function () { this.heightSize = this.widthSize = this.yPos = this.xPos = this.appId = 0; this.initialHide = !1; this.appId = -1; this.initialHide = !1; }, createDummy_1: function (a) { return new GT1560(a, 0, 0, 0, 0); }, load_1: function (a) {}, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1334) && this.heightSize == a.heightSize && this.appId == a.appId && this.widthSize == a.widthSize && this.xPos == a.xPos && this.yPos == a.yPos ? !0 : !1; }, }, "GT1334", [] ), GT1133 = GT1334.extend( { initialConstructor_0: function () { GT1334.prototype.initialConstructor_0.call(this); }, create_2: function (a, b) { return new GT1560(a, this.xPos, this.yPos, this.widthSize, this.heightSize); }, }, "GT1133", [] ); GT1133.prototype.set_0 = function () { return new GT1133(); }; var GT1079 = GT1334.extend( { initialConstructor_0: function () { this.polyColor2 = this.polyColor1 = this.fontcolor = this.pfont = null; this.showPercent = this.showPoly2 = this.showPoly1 = this.hidePolysModified = this.positionmodified = this.hidePolys = this.polyColor2Set = this.polyColor1Set = this.fontcolorSet = !1; this.rotstep = this.zoom = 0; this.rotstepSet = this.zoomSet = this.showPercentSet = this.showPoly2Set = this.showPoly1Set = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.polyColor2 = this.polyColor1 = this.fontcolor = GT1634.prototype.white; this.hidePolys = !1; this.showPercent = this.showPoly2 = this.showPoly1 = !0; this.zoom = 1; this.rotstep = Math.PI / 24; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, position_2: function (a, b) { this.positionmodified = !0; this.xPos = a; this.yPos = b; return this; }, id_1: function (a) { this.appId = a; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, width_1: function (a) { this.widthSize = a; return this; }, height_1: function (a) { this.heightSize = a; return this; }, font_1: function (a) { this.pfont = a; return this; }, fontColor_1: function (a) { this.fontcolor = a.create_0(); this.fontcolorSet = !0; return this; }, polygonColor1_1: function (a) { this.polyColor1 = a.create_0(); this.polyColor1Set = !0; return this; }, polygonColor2_1: function (a) { this.polyColor2 = a.create_0(); this.polyColor2Set = !0; return this; }, hidePolygons_1: function (a) { this.hidePolys = a; this.hidePolysModified = !0; return this; }, showInnerPolygon_1: function (a) { this.showPoly1 = a; this.showPoly1Set = !0; return this; }, showOuterPolygon_1: function (a) { this.showPoly2 = a; this.showPoly2Set = !0; return this; }, showPercentage_1: function (a) { this.showPercent = a; this.showPercentSet = !0; return this; }, zoomFactor_1: function (a) { this.zoom = a; this.zoomSet = !0; return this; }, rotationStep_1: function (a) { this.rotstep = a; this.rotstepSet = !0; return this; }, create_2: function (a, b) { var d = this.pfont.create_1(b.getResourceManager_0()), d = new GT1286(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.fontcolor, d, this.polyColor1, this.polyColor2, this.hidePolys); d.setApplicationID_1(this.appId); d.setPartsShown_5(this.showPercent, this.showPoly1, this.showPoly2, this.zoom, this.rotstep); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { this.pfont.load_1(a.getResourceManager_0()); GT1334.prototype.load_1.call(this, a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1079); GT1650.prototype.assertExp_2(b, "Descriptor is no DProgressBar"); b && (this.positionmodified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.hidePolysModified && (a.hidePolys = this.hidePolys), null != this.pfont && (a.pfont = this.pfont), this.fontcolorSet && (a.fontcolor = this.fontcolor), this.polyColor1Set && (a.polyColor1 = this.polyColor1), this.polyColor2Set && (a.polyColor2 = this.polyColor2), this.showPoly1Set && (a.showPoly1 = this.showPoly1), this.showPoly2Set && (a.showPoly2 = this.showPoly2), this.showPercentSet && (a.showPercent = this.showPercent), this.zoomSet && (a.zoomSet = this.zoomSet), this.rotstepSet && (a.rotstep = this.rotstep)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1079", [GT1272] ); GT1079.prototype.set_0 = function () { return new GT1079(); }; var GT1187 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.borderthickness = 0; this.borderthicknessSet = !1; this.innerradius = this.outerradius = 0; this.innerradiusSet = this.outerradiusSet = !1; this.numedges = 0; this.numedgesSet = !1; this.colorborder = this.colorarea = null; this.alphaborder = this.alphaarea = 0; this.alphaborderSet = this.alphaareaSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.borderthickness = 0; this.numedges = this.outerradius = this.innerradius = -1; this.colorborder = this.colorarea = GT1634.prototype.black; this.alphaborder = this.alphaarea = 255; this.yPos = this.xPos = 0; this.heightSize = this.widthSize = -1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, borderThickness_1: function (a) { this.borderthickness = a; this.borderthicknessSet = !0; return this; }, outerRadius_1: function (a) { this.outerradius = a; this.outerradiusSet = !0; return this; }, innerRadius_1: function (a) { this.innerradius = a; this.innerradiusSet = !0; return this; }, numberOfEdges_1: function (a) { this.numedges = a; this.numedgesSet = !0; return this; }, colorArea_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.colorarea = null == a ? GT1634.prototype.black : a.create_0(); return this; }, colorBorder_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.colorborder = null == a ? GT1634.prototype.black : a.create_0(); return this; }, transparencyArea_1: function (a) { this.alphaarea = null == a ? 255 : a.create_0(); this.alphaareaSet = !0; return this; }, transparencyBorder_1: function (a) { this.alphaborder = null == a ? 255 : a.create_0(); this.alphaborderSet = !0; return this; }, load_1: function (a) {}, create_2: function (a, b) { -1 == this.widthSize && (this.widthSize = a.getWidth_0()); -1 == this.heightSize && (this.heightSize = a.getHeight_0()); -1 == this.outerradius && (this.outerradius = Math.div(this.heightSize, 2)); -1 == this.innerradius && (this.innerradius = this.outerradius - this.borderthickness); -1 == this.numedges && (this.numedges = 2 * this.outerradius); var d = new GT1439( a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.borderthickness, this.outerradius, this.innerradius, this.numedges, [this.colorarea], [this.colorborder], null, null, this.alphaarea, this.alphaborder ); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1187); GT1650.prototype.assertExp_2(b, "Descriptor is no DRoundRect"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.borderthicknessSet && (a.borderthickness = this.borderthickness), null != this.colorarea && (a.colorarea = this.colorarea), null != this.colorborder && (a.colorborder = this.colorborder), this.outerradiusSet && (a.outerradius = this.outerradius), this.innerradiusSet && (a.innerradius = this.innerradius), this.numedgesSet && (a.numedges = this.numedges), this.alphaareaSet && (a.alphaarea = this.alphaarea), this.alphaborderSet && (a.alphaborder = this.alphaborder)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1187", [GT1272] ); GT1187.prototype.set_0 = function () { return new GT1187(); }; var GT1193 = GT1334.extend( { initialConstructor_0: function () { this.hSet = this.wSet = this.posModified = !1; this.imagebackground = this.imagehandle = this.imagedown = this.imageup = null; this.scrollstep = 0; this.scrollstepSet = !1; this.minHandleSize = 0; this.noarrowbuttonsSet = this.ishorizontalSet = this.noarrowbuttons = this.ishorizontal = this.minHandleSizeSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.minHandleSize = -1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, imageUp_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imageup = a; return this; }, imageDown_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagedown = a; return this; }, imageHandle_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagehandle = a; return this; }, imageBackground_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagebackground = a; return this; }, height_1: function (a) { this.heightSize = a; this.hSet = !0; return this; }, width_1: function (a) { this.widthSize = a; this.wSet = !0; return this; }, horizontal_1: function (a) { this.ishorizontal = a; this.ishorizontalSet = !0; return this; }, noArrowButtons_1: function (a) { this.noarrowbuttons = a; this.noarrowbuttonsSet = !0; return this; }, minimumHandleSize_1: function (a) { this.minHandleSize = a; this.minHandleSizeSet = !0; return this; }, scrollStep_1: function (a) { this.scrollstep = a; this.scrollstepSet = !0; return this; }, create_2: function (a, b) { this.noarrowbuttons || (GT1650.prototype.assertExp_2(null != this.imageup, "imageup is null"), GT1650.prototype.assertExp_2(null != this.imagedown, "imagedown is null")); GT1650.prototype.assertExp_2(null != this.imagehandle, "imagehandle is null"); GT1650.prototype.assertExp_2(null != this.imagebackground, "imagebackground is null"); var d = this.noarrowbuttons ? null : this.imageup.create_1(b.getResourceManager_0()), e = this.noarrowbuttons ? null : this.imagedown.create_1(b.getResourceManager_0()), f = this.imagehandle.create_1(b.getResourceManager_0()), g = this.imagebackground.create_1(b.getResourceManager_0()), d = new GT1444( a, this.xPos, this.yPos, this.ishorizontal || this.noarrowbuttons || null == d ? this.widthSize : d.getColumnWidth_0(), this.ishorizontal && !this.noarrowbuttons && null != d ? d.getRowHeight_0() : this.heightSize, this.scrollstep, d, e, g, f, this.ishorizontal, this.noarrowbuttons ); -1 != this.minHandleSize && d.setMinHandleSize_1(this.minHandleSize); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { this.noarrowbuttons || (GT1650.prototype.assertExp_2(null != this.imageup, "imageup is null"), GT1650.prototype.assertExp_2(null != this.imagedown, "imagedown is null")); GT1650.prototype.assertExp_2(null != this.imagehandle, "imagehandle is null"); GT1650.prototype.assertExp_2(null != this.imagebackground, "imagebackground is null"); this.noarrowbuttons || (this.imageup.tiling_2(1, 4), this.imageup.load_1(a.getResourceManager_0()), this.imagedown.tiling_2(1, 4), this.imagedown.load_1(a.getResourceManager_0())); this.ishorizontal ? this.imagehandle.tiling_2(1, 3) : this.imagehandle.tiling_2(3, 1); this.imagehandle.load_1(a.getResourceManager_0()); this.imagebackground.tiling_2(1, 1); this.imagebackground.load_1(a.getResourceManager_0()); }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1193)) return !1; if (null == this.imagebackground) { if (null != a.imagebackground) return !1; } else if (!this.imagebackground.equals_1(a.imagebackground)) return !1; if (null == this.imagedown) { if (null != a.imagedown) return !1; } else if (!this.imagedown.equals_1(a.imagedown)) return !1; if (null == this.imagehandle) { if (null != a.imagehandle) return !1; } else if (!this.imagehandle.equals_1(a.imagehandle)) return !1; if (null == this.imageup) { if (null != a.imageup) return !1; } else if (!this.imageup.equals_1(a.imageup)) return !1; return this.minHandleSize != a.minHandleSize || this.scrollstep != a.scrollstep ? !1 : !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1193); GT1650.prototype.assertExp_2(b, "Descriptor is no DScrollBar"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.wSet && (a.widthSize = this.widthSize), this.hSet && (a.heightSize = this.heightSize), null != this.imagebackground && (a.imagebackground = this.imagebackground), null != this.imagedown && (a.imagedown = this.imagedown), null != this.imagehandle && (a.imagehandle = this.imagehandle), null != this.imageup && (a.imageup = this.imageup), this.scrollstepSet && (a.scrollstep = this.scrollstep), this.minHandleSizeSet && (a.minHandleSize = this.minHandleSize), this.ishorizontalSet && (a.ishorizontal = this.ishorizontal), this.noarrowbuttonsSet && (a.noarrowbuttons = this.noarrowbuttons)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1193", [GT1272] ); GT1193.prototype.set_0 = function () { return new GT1193(); }; var GT1335 = GT1334.extend( { initialConstructor_0: function () { this.hSet = this.wSet = this.posModified = !1; this.imagehandle = null; this.numhandlestates = 0; this.numhandlestatesSet = !1; this.minval = 0; this.minvalSet = !1; this.maxval = 0; this.maxvalSet = !1; this.orientationval = 0; this.orientationvalSet = !1; this.stepval = 0; this.stepvalSet = !1; this.debugAreaColor = this.buttonstates = this.dbackground = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.widthSize = 50; this.minval = 0; this.maxval = 100; this.numhandlestates = 4; this.stepval = 1; this.buttonstates = new java_util_JavaScriptVector(); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, imageHandle_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagehandle = a; return this; }, numHandleStates_1: function (a) { this.numhandlestates = a; this.numhandlestatesSet = !0; return this; }, sliderButtonState_2: function (a, b) { this.buttonstates.addElement_1([b, a]); return this; }, width_1: function (a) { this.widthSize = a; this.wSet = !0; return this; }, height_1: function (a) { this.heightSize = a; this.hSet = !0; return this; }, min_1: function (a) { this.minval = a; this.minvalSet = !0; return this; }, max_1: function (a) { this.maxval = a; this.maxvalSet = !0; return this; }, orientation_1: function (a) { this.orientationval = a; this.orientationvalSet = !0; return this; }, step_1: function (a) { this.stepval = a; this.stepvalSet = !0; return this; }, background_1: function (a) { this.dbackground = a; return this; }, create_2: function (a, b) { var d = null; if (null != this.imagehandle) (d = this.imagehandle.create_1(b.getResourceManager_0())), (d = new GT1562(a, d, this.xPos, this.yPos, this.widthSize, 0, this.minval, this.maxval)); else for (var d = new GT1562(a, null, this.xPos, this.yPos, this.widthSize, this.heightSize, this.minval, this.maxval), e = 0; e < this.buttonstates.size_0(); e++) { var f = this.buttonstates.elementAt_1(e), g = f[1]; f[0].create_2(d.getHandle_0(), b); d.getHandle_0().setChildForState_2(g, e); d.getHandle_0().finishButton_0(); } d.setApplicationID_1(this.appId); null != this.dbackground && ((e = this.dbackground.create_2(d, b)), e.reorder_1(!1), d.setBackground_1(e)); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { null != this.imagehandle && (this.imagehandle.tiling_2(1, this.numhandlestates), this.imagehandle.load_1(a.getResourceManager_0())); for (var b = 0; b < this.buttonstates.size_0(); b++) this.buttonstates.elementAt_1(b)[0].load_1(a); }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1335)) return !1; if (null == this.imagehandle) { if (null != a.imagehandle) return !1; } else if (!this.imagehandle.equals_1(a.imagehandle)) return !1; return this.maxval != a.maxval || this.minval != a.minval || this.numhandlestates != a.numhandlestates ? !1 : !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1335); GT1650.prototype.assertExp_2(b, "Descriptor is no DSlider"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.wSet && (a.widthSize = this.widthSize), this.hSet && (a.heightSize = this.heightSize), null != this.imagehandle && (a.imagehandle = this.imagehandle), this.numhandlestatesSet && (a.numhandlestates = this.numhandlestates), this.minvalSet && (a.minval = this.minval), this.maxvalSet && (a.maxval = this.maxval), this.orientationvalSet && (a.orientationval = this.orientationval), this.stepvalSet && (a.stepval = this.stepval)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1335", [GT1272] ); GT1335.prototype.set_0 = function () { return new GT1335(); }; var GT1024 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.sizeModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, create_2: function (a, b) { var d = 0, e = 0; this.sizeModified && ((d = this.widthSize), (e = this.heightSize)); d = new GT1560(a, this.xPos, this.yPos, d, e); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1024); GT1650.prototype.assertExp_2(b, "Descriptor is no DSpacerObject"); b && (this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos))); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1024", [GT1272] ); GT1024.prototype.set_0 = function () { return new GT1024(); }; var GT1025 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.imagename = null; this.imageFileModified = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.insetModified = !1; this.sourceHeight = this.sourceWidth = this.sourceY = this.sourceX = 0; this.alphaModified = this.repeatingBorderModified = this.repeatingborder = this.subImageModified = !1; this.alpha = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.sourceHeight = this.sourceWidth = this.sourceY = this.sourceX = this.heightSize = this.widthSize = this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = -1; this.alpha = 255; this.sizeModified = this.repeatingBorderModified = this.subImageModified = this.insetModified = this.alphaModified = this.imageFileModified = this.posModified = this.repeatingborder = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.posModified = !0; this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, transparency_1: function (a) { this.alphaModified = !0; this.alpha = null == a ? 255 : a.create_0(); return this; }, image_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagename = a; this.imageFileModified = !0; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.imageFileModified = !0; this.imagename = GT1390.prototype.set_0().file_1(a); return this; }, subimage_4: function (a, b, d, e) { this.subImageModified = !0; this.sourceX = a; this.sourceY = b; this.sourceWidth = d; this.sourceHeight = e; return this; }, insets_4: function (a, b, d, e) { this.insetModified = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, repeatingBorder_1: function (a) { this.repeatingBorderModified = !0; this.repeatingborder = a; return this; }, create_2: function (a, b) { var d = this.widthSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); var e = this.heightSize; -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); GT1650.prototype.assertExp_2(null != this.imagename, "image is not set"); var f = this.imagename.create_1(b.getResourceManager_0()), d = new GT1287(a, this.xPos, this.yPos, d, e); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); d.setRepeatingBorder_1(this.repeatingborder); d.setSubImage_4(this.sourceX, this.sourceY, this.sourceWidth, this.sourceHeight); d.setAlpha_1(this.alpha); d.setImage_1(f); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1025); GT1650.prototype.assertExp_2(b, "Descriptor is no DStretchImage"); b && (this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.imageFileModified && (a.imagename = this.imagename), this.alphaModified && (a.alpha = this.alpha), this.insetModified && ((a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)), this.subImageModified && ((a.sourceX = this.sourceX), (a.sourceY = this.sourceY), (a.sourceWidth = this.sourceWidth), (a.sourceHeight = this.sourceHeight)), this.repeatingBorderModified && (a.repeatingborder = this.repeatingborder)); }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.imagename, "image is not set"); this.imagename.load_1(a.getResourceManager_0()); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1025", [GT1272] ); GT1025.prototype.set_0 = function () { return new GT1025(); }; var GT1445 = GT1334.extend( { initialConstructor_0: function () { this.valign = this.halign = this.textstring = this.color = this.fontdescriptor = null; this.outlinethickness = 0; this.outlineColor = null; this.outlineSet = !1; this.shadowDy = this.shadowDx = 0; this.shadowColor = null; this.posModified = this.shadowSet = !1; this.trans = null; this.gradientSet = this.transSet = !1; this.debugAreaColor = this.gradientData = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.fontdescriptor = this.valign = this.halign = this.shadowColor = this.outlineColor = this.color = null; this.outlinethickness = -1; this.posModified = !1; this.shadowDy = this.shadowDx = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.posModified = !0; this.xPos = a; this.yPos = b; return this; }, text_1: function (a) { this.textstring = a; return this; }, font_1: function (a) { this.fontdescriptor = a; return this; }, fontColor_1: function (a) { this.color = null == a ? null : a.create_0(); return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : ((this.outlineColor = null), (this.outlinethickness = -1)); this.outlineSet = !0; return this; }, removeOutline_0: function () { this.outlinethickness = -1; this.outlineColor = null; this.outlineSet = !0; return this; }, shadow_3: function (a, b, d) { this.shadowSet = !0; this.shadowDx = a; this.shadowDy = b; null == d || (0 == this.shadowDx && 0 == this.shadowDy) ? ((this.shadowColor = null), (this.shadowDy = this.shadowDx = 0)) : (this.shadowColor = d.create_0()); return this; }, transparency_1: function (a) { this.transSet = !0; this.trans = a; return this; }, gradient_1: function (a) { this.gradientSet = !0; this.gradientData = null != a ? a.create_0() : null; return this; }, create_2: function (a, b) { var d = null == this.color ? GT1634.prototype.white : this.color, e = null == this.outlineColor ? GT1634.prototype.black : this.outlineColor, f = null == this.halign ? GT1488.prototype.LEFT : this.halign, g = null == this.valign ? GT1489.prototype.TOP : this.valign, k = null == this.textstring ? "" : b.getText_1(this.textstring), m = -1 == this.outlinethickness ? 0 : this.outlinethickness, n; n = null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0()) : this.fontdescriptor.create_1(b.getResourceManager_0()); d = new GT1606(a, this.xPos, this.yPos, f.combinedFlags_1(g), k, n, d); d.setOutline_2(m, e); null != this.shadowColor && d.setShadow_3(this.shadowDx, this.shadowDy, this.shadowColor); null != this.trans && d.setAlpha_1(this.trans.create_0()); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); null != this.gradientData && d.setGradient_1(this.gradientData); return d; }, load_1: function (a) { this.fontdescriptor.load_1(a.getResourceManager_0()); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1445); GT1650.prototype.assertExp_2(b, "Descriptor is no DText"); b && (-1 != this.widthSize && (a.widthSize = this.widthSize), -1 != this.heightSize && (a.heightSize = this.heightSize), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.color && (a.color = this.color), null != this.textstring && (a.textstring = this.textstring), null != this.halign && (a.halign = this.halign), null != this.valign && (a.valign = this.valign), this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)), this.shadowSet && ((a.shadowDx = this.shadowDx), (a.shadowDy = this.shadowDy), (a.shadowColor = this.shadowColor)), this.transSet && (a.trans = this.trans), this.gradientSet && (a.gradientData = this.gradientData)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1445", [GT1272] ); GT1445.prototype.set_0 = function () { return new GT1445(); }; var GT818 = GT1334.extend( { initialConstructor_0: function () { this.imagefile = null; this.showrow = this.showcolumn = this.sourceheight = this.sourcewidth = this.sourcey = this.sourcex = this.anchory = this.anchorx = 0; this.showTileSet = !1; this.msk = this.mat = null; this.alpha = this.translationy = this.translationx = this.rot = this.scaley = this.scalex = 0; this.sourceAreaModified = this.hModified = this.wModified = this.translationModified = this.rotationModified = this.scaleModified = this.anchorModified = this.posModified = this.initialHideSet = this.alphaSet = !1; this.blendMode = null; this.blendModeSet = !1; this.colortransformation = null; this.colortransformationSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.alpha = this.showrow = this.showcolumn = this.heightSize = this.widthSize = this.sourceheight = this.sourcewidth = this.sourcey = this.sourcex = -1; this.initialHideSet = this.translationModified = this.rotationModified = this.scaleModified = this.anchorModified = this.posModified = !1; this.debugAreaColor = this.msk = this.mat = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, hide_1: function (a) { this.initialHideSet = !0; this.initialHide = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, anchor_2: function (a, b) { this.anchorx = a; this.anchory = b; this.anchorModified = !0; return this; }, colorTransformation_1: function (a) { this.colortransformation = null == a ? null : a.create_0(); this.colortransformationSet = !0; return this; }, matrix_1: function (a) { var b = [].createArray(a.length).init(0); java_lang_System.prototype.arraycopy_5(a, 0, b, 0, a.length); this.mat = b; return this; }, mask_1: function (a) { var b = [].createArray(a.length).init(0); java_lang_System.prototype.arraycopy_5(a, 0, b, 0, a.length); this.msk = b; return this; }, scale_2: function (a, b) { this.scalex = a; this.scaley = b; this.scaleModified = !0; return this; }, rotation_1: function (a) { this.rot = a; this.rotationModified = !0; return this; }, translation_2: function (a, b) { this.translationx = a; this.translationy = b; this.translationModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.hModified = this.wModified = !0; return this; }, width_1: function (a) { this.widthSize = a; this.wModified = !0; return this; }, height_1: function (a) { this.heightSize = a; this.hModified = !0; return this; }, sourceArea_4: function (a, b, d, e) { this.sourcex = a; this.sourcey = b; this.sourcewidth = d; this.sourceheight = e; this.sourceAreaModified = !0; return this; }, image_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagefile = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.imagefile = GT1390.prototype.set_0().file_1(a); return this; }, showTile_2: function (a, b) { this.showcolumn = a; this.showrow = b; this.showTileSet = !0; return this; }, transparency_1: function (a) { this.alpha = null == a ? 255 : a.create_0(); this.alphaSet = !0; return this; }, alphaBlendMode_1: function (a) { this.blendMode = a; this.blendModeSet = !0; return this; }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.imagefile, "Can't load DTransformedImage without imagefile set!"); this.imagefile.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.imagefile, "imagefile is not set"); var d = this.imagefile.create_1(b.getResourceManager_0()); GT1650.prototype.assertExp_2(null != d && d.isLoaded_0(), "image " + this.imagefile + " wasn't loaded"); if (null == d) return new GT1560(a, this.xPos, this.yPos, 10, 10); var e = d.getColumnWidth_0(), f = d.getRowHeight_0(), g, k; g = -1 == this.widthSize ? e : this.widthSize; k = -1 == this.heightSize ? f : this.heightSize; var m = null, m = -1 != this.showcolumn && -1 != this.showrow ? new GT1075(a, this.xPos, this.yPos, g, k, d, this.anchorx / e, this.anchory / f, this.showcolumn, this.showrow) : new GT1075( a, this.xPos, this.yPos, g, k, d, this.anchorModified ? this.anchorx : 0, this.anchorModified ? this.anchory : 0, -1 != this.sourcex ? this.sourcex : 0, -1 != this.sourcey ? this.sourcey : 0, -1 != this.sourcewidth ? this.sourcewidth : e, -1 != this.sourceheight ? this.sourceheight : f ); null != this.blendMode && m.setAlphaBlendMode_1(this.blendMode); m.setApplicationID_1(this.appId); -1 != this.alpha && m.setAlpha_1(this.alpha); null != this.mat && m.setTransformation_1(this.mat); null != this.msk && m.setMask_1(this.msk); this.scaleModified && m.setScale_2(this.scalex, this.scaley); this.rotationModified && m.setRotation_1(this.rot); this.translationModified && m.setTranslation_2(this.translationx, this.translationy); null != this.colortransformation && m.setColorTransformation_1(this.colortransformation); null != this.debugAreaColor && m.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); m.hide_1(this.initialHide); return m; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT818); GT1650.prototype.assertExp_2(b, "Descriptor is no DTransformedImage"); b && (this.wModified && (a.widthSize = this.widthSize), this.hModified && (a.heightSize = this.heightSize), this.sourceAreaModified && ((a.sourcex = this.sourcex), (a.sourcey = this.sourcey), (a.sourcewidth = this.sourcewidth), (a.sourceheight = this.sourceheight)), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.anchorModified && ((a.anchorx = this.anchorx), (a.anchory = this.anchory)), this.scaleModified && ((a.scalex = this.scalex), (a.scaley = this.scaley)), this.rotationModified && (a.rot = this.rot), this.translationModified && ((a.translationx = this.translationx), (a.translationy = this.translationy)), null != this.mat && ((b = [].createArray(this.mat.length).init(0)), java_lang_System.prototype.arraycopy_5(this.mat, 0, b, 0, this.mat.length), (a.mat = b)), null != this.msk && ((b = [].createArray(this.msk.length).init(0)), java_lang_System.prototype.arraycopy_5(this.msk, 0, b, 0, this.msk.length), (a.msk = b)), this.initialHideSet && (a.initialHide = this.initialHide), this.alphaSet && (a.alpha = this.alpha), this.blendModeSet && (a.blendMode = this.blendMode), null != this.imagefile && (a.imagefile = this.imagefile), this.showTileSet && ((a.showcolumn = this.showcolumn), (a.showrow = this.showrow)), this.colortransformationSet && (a.colortransformation = this.colortransformation)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT818", [GT1272] ); GT818.prototype.set_0 = function () { return new GT818(); }; var GT877 = GT1334.extend( { initialConstructor_0: function () { this.gradientData = this.fontcolor = this.fontdescriptor = this.textstring = null; this.outlinethickness = 0; this.outlineColor = null; this.outlineModified = !1; this.anchory = this.anchorx = 0; this.matrix = null; this.linespacing = this.linebreakwidth = this.alpha = this.translationy = this.translationx = this.rot = this.scaley = this.scalex = 0; this.shadowColor = null; this.shadowY = this.shadowX = 0; this.shadowModified = this.alphaModified = this.fontcolorModified = this.linespacingModified = this.linebreakWithModified = this.hModified = this.wModified = this.translationModified = this.rotationModified = this.scaleModified = this.anchorModified = this.posModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.outlineColor = this.fontcolor = this.fontdescriptor = this.textstring = null; this.alpha = this.heightSize = this.widthSize = -1; this.linebreakwidth = this.outlinethickness = 0; this.linespacing = -1; this.translationModified = this.rotationModified = this.scaleModified = this.anchorModified = this.posModified = !1; this.shadowColor = null; this.shadowY = this.shadowX = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, anchor_2: function (a, b) { this.anchorx = a; this.anchory = b; this.anchorModified = !0; return this; }, scale_2: function (a, b) { this.scalex = a; this.scaley = b; this.scaleModified = !0; return this; }, rotation_1: function (a) { this.rot = a; this.rotationModified = !0; return this; }, translation_2: function (a, b) { this.translationx = a; this.translationy = b; this.translationModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.hModified = this.wModified = !0; return this; }, width_1: function (a) { this.widthSize = a; this.wModified = !0; return this; }, height_1: function (a) { this.heightSize = a; this.hModified = !0; return this; }, text_1: function (a) { this.textstring = a; return this; }, lineBreakWidth_1: function (a) { this.linebreakwidth = a; this.linebreakWithModified = !0; return this; }, spacing_1: function (a) { this.linespacing = a; this.linespacingModified = !0; return this; }, font_1: function (a) { this.fontdescriptor = a; return this; }, fontColor_1: function (a) { null != a && (this.fontcolor = a.create_0()); this.fontcolorModified = !0; return this; }, gradient_2: function (a, b) { this.gradientData = GT1238.prototype .set_0() .addColor_2(a, 48 / 255) .addColor_2(b, 207 / 255) .rotation_1(Math.PI / 2); return this; }, gradient_1: function (a) { this.gradientData = a; return this; }, outline_2: function (a, b) { null != b && ((this.outlineColor = b.create_0()), (this.outlinethickness = a)); this.outlineModified = !0; return this; }, transparency_1: function (a) { this.alpha = null == a ? 255 : a.create_0(); this.alphaModified = !0; return this; }, shadow_3: function (a, b, d) { null != d ? ((this.shadowColor = d.create_0()), (this.shadowX = a), (this.shadowY = b)) : (this.shadowColor = null); this.shadowModified = !0; return this; }, load_1: function (a) { GT1334.prototype.load_1.call(this, a); null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).load_1(a.getResourceManager_0()) : this.fontdescriptor.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = null == this.textstring ? "" : b.getText_1(this.textstring), e = null == this.fontcolor ? GT1634.prototype.white : this.fontcolor, f = -1 == this.widthSize ? a.getWidth_0() - this.xPos : this.widthSize, g = -1 == this.heightSize ? a.getHeight_0() - this.yPos : this.heightSize, k; k = null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0()) : this.fontdescriptor.create_1(b.getResourceManager_0()); d = new GT1134(a, this.xPos, this.yPos, f, g, d, k, e, this.anchorModified ? this.anchorx : 0, this.anchorModified ? this.anchory : 0, this.linebreakwidth); 0 < this.outlinethickness && null != this.outlineColor && d.setOutline_2(this.outlinethickness, this.outlineColor); d.setApplicationID_1(this.appId); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); -1 != this.alpha && d.setAlpha_1(this.alpha); null != this.matrix && d.setTransformation_1(this.matrix); this.scaleModified && d.setScale_2(this.scalex, this.scaley); this.rotationModified && d.setRotation_1(this.rot); this.translationModified && d.setTranslation_2(this.translationx, this.translationy); null != this.fontdescriptor && 0 < this.fontdescriptor.linespacing && d.setFontSpecificSpacing_1(this.fontdescriptor.linespacing); 0 < this.linespacing && d.setSpacing_1(this.linespacing); null != this.gradientData && d.setGradient_1(this.gradientData.create_0()); null != this.shadowColor && d.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT877); GT1650.prototype.assertExp_2(b, "Descriptor is no DTransformedText"); b && (this.wModified && (a.widthSize = this.widthSize), this.hModified && (a.heightSize = this.heightSize), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.anchorModified && ((a.anchorx = this.anchorx), (a.anchory = this.anchory)), this.scaleModified && ((a.scalex = this.scalex), (a.scaley = this.scaley)), this.rotationModified && (a.rot = this.rot), this.translationModified && ((a.translationx = this.translationx), (a.translationy = this.translationy)), null != this.matrix && ((b = [].createArray(this.matrix.length).init(0)), java_lang_System.prototype.arraycopy_5(this.matrix, 0, b, 0, this.matrix.length), (a.matrix = b)), this.alphaModified && (a.alpha = this.alpha), this.shadowModified && ((a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)), this.outlineModified && ((a.outlineColor = this.outlineColor), (a.outlinethickness = this.outlinethickness)), this.linebreakWithModified && (a.linebreakwidth = this.linebreakwidth), this.linespacingModified && (a.linespacing = this.linespacing), this.fontcolorModified && (a.fontcolor = this.fontcolor), null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.textstring && (a.textstring = this.textstring), null != this.gradientData && (a.gradientData = this.gradientData)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT877", [GT1272] ); GT877.prototype.set_0 = function () { return new GT877(); }; var GT1026 = GT1334.extend( { initialConstructor_0: function () { this.posModified = this.hideModified = this.anchorModified = !1; this.debugAreaAlpha = this.anchorY = this.anchorX = this.alpha = 0; this.polyLineVector = this.polygonVector = this.triangleVector = this.debugAreaColor = null; this.hidden = !1; GT1334.prototype.initialConstructor_0.call(this); this.anchorY = this.anchorX = this.alpha = this.heightSize = this.widthSize = -1; this.debugAreaAlpha = 0; this.debugAreaColor = null; this.posModified = this.hideModified = this.anchorModified = !1; this.triangleVector = new java_util_JavaScriptVector(); this.polygonVector = new java_util_JavaScriptVector(); this.polyLineVector = new java_util_JavaScriptVector(); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1026); GT1650.prototype.assertExp_2(b, "Descriptor is no DVectorCanvas"); b && (-1 != this.widthSize && (a.widthSize = this.widthSize), -1 != this.heightSize && (a.heightSize = this.heightSize), -1 != this.alpha && (a.alpha = this.alpha), this.anchorModified && ((a.anchorX = this.anchorX), (a.anchorY = this.anchorY)), this.hideModified && (a.hidden = this.hidden), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha), a.clearTriangleStrips_0(), this.addTriangleStrips_1(a), a.clearPolygons_0(), this.addPolygons_1(a), a.clearPolyLines_0(), this.addPolyLines_1(a)); }, create_2: function (a, b) { var d = -1 == this.widthSize ? a.getWidth_0() : this.widthSize, e = -1 == this.heightSize ? a.getHeight_0() : this.heightSize, d = new GT1288(a, this.xPos, this.yPos, d, e); this.anchorModified && d.setAnchor_2(this.anchorX, this.anchorY); -1 != this.alpha && d.setAlpha_1(this.alpha); d.setApplicationID_1(this.appId); this.hideModified && d.hide_1(this.hidden); this.addTriangleStrips_1(d); this.clearTriangleStrips_0(); this.addPolygons_1(d); this.clearPolygons_0(); this.addPolyLines_1(d); this.clearPolyLines_0(); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, hide_1: function (a) { this.hidden = a; this.hideModified = !0; return this; }, transparency_1: function (a) { this.alpha = null == a ? -1 : a.create_0(); return this; }, addTriangleStrip_4: function (a, b, d, e) { this.triangleVector.addElement_1(new GT562(a, b, d, e)); return this; }, addPolygon_4: function (a, b, d, e) { this.polygonVector.add_1(new GT562(a, b, d, e)); return this; }, addPolyLine_3: function (a, b, d) { this.polyLineVector.add_1(new GT505(a, b, d)); return this; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, clearTriangleStrips_0: function () { this.triangleVector.clear_0(); }, clearPolygons_0: function () { this.polygonVector.clear_0(); }, clearPolyLines_0: function () { this.polyLineVector.clear_0(); }, addTriangleStrips_1: function (a) { for (var b = 0; b < this.triangleVector.size_0(); b++) { var d = this.triangleVector.elementAt_1(b); GT1650.prototype.assertExp_2(instanceOf(d, GT562), "TriangleVector must be of type VectorPolygonPrimitive"); instanceOf(d, GT562) && (GT1650.prototype.assertExp_2(instanceOf(a, GT1026) || instanceOf(a, GT1288), "Canvas must be of type DVectorCanvas or GUIVectorCanvas"), instanceOf(a, GT1026) ? a.addTriangleStrip_4(d.corners, d.colors, d.gradientcoordinates, d.alpha) : instanceOf(a, GT1288) && a.addTriangleStrip_4(d.corners, d.colors, d.gradientcoordinates, d.alpha)); } }, addPolygons_1: function (a) { for (var b = 0; b < this.polygonVector.size_0(); b++) { var d = this.polygonVector.elementAt_1(b); GT1650.prototype.assertExp_2(instanceOf(d, GT562), "PolygonVector must be of type VectorPolygonPrimitive"); instanceOf(d, GT562) && (GT1650.prototype.assertExp_2(instanceOf(a, GT1026) || instanceOf(a, GT1288), "Canvas must be of type DVectorCanvas or GUIVectorCanvas"), instanceOf(a, GT1026) ? a.addPolygon_4(d.corners, d.colors, d.gradientcoordinates, d.alpha) : instanceOf(a, GT1288) && a.addPolygon_4(this.convertDoubleToIntArray_1(d.corners), d.colors, this.convertDoubleToIntArray_1(d.gradientcoordinates), d.alpha)); } }, addPolyLines_1: function (a) { for (var b = 0; b < this.polyLineVector.size_0(); b++) { var d = this.polyLineVector.elementAt_1(b); GT1650.prototype.assertExp_2(instanceOf(d, GT505), "PolyLineVector must be of type VectorPolyLinePrimitive"); instanceOf(d, GT505) && (GT1650.prototype.assertExp_2(instanceOf(a, GT1026) || instanceOf(a, GT1288), "Canvas must be of type DVectorCanvas or GUIVectorCanvas"), instanceOf(a, GT1026) ? a.addPolyLine_3(d.corners, d.thickness, d.color) : instanceOf(a, GT1288) && a.addPolyLine_3(d.corners, d.thickness, d.color)); } }, convertDoubleToIntArray_1: function (a) { for (var b = [].createArray(a.length).init(0), d = 0; d < b.length; d++) b[d] = Integer.truncate_1(a[d]); return b; }, }, "GT1026", [GT1272] ), GT562 = Class.extend( { initialConstructor_0: function () { this.gradientcoordinates = this.colors = this.corners = null; this.alpha = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.gradientcoordinates = this.colors = this.corners = null; this.alpha = 0; this.corners = a; this.colors = b; this.gradientcoordinates = null != d ? d : null; this.alpha = e; }, }, "GT562", [] ), GT505 = Class.extend( { initialConstructor_0: function () { this.corners = null; this.thickness = 0; this.color = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.corners = null; this.thickness = 0; this.color = null; this.corners = a; this.thickness = b; this.color = d; }, }, "GT505", [] ); GT1026.prototype.set_0 = function () { return new GT1026(); }; var GT1080 = GT1334.extend( { initialConstructor_0: function () { this.hideModified = this.sizeModified = this.posModified = !1; this.vid = null; this.numrepetitions = 0; this.numrepetitionsSet = !1; this.numrepeatstartposition = 0; this.streammodeSet = this.streammode = this.loadLazySet = this.loadLazy = this.autoresizeSet = this.autoresize = this.vFlipSet = this.vFlip = this.hFlipSet = this.hFlip = this.startoncreationSet = this.startoncreation = this.numrepeatstartpositionSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.numrepeatstartposition = this.numrepetitions = 0; this.startoncreation = !0; this.streammode = this.loadLazy = this.autoresize = this.initialHide = this.vFlip = this.hFlip = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, video_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.vid = a; return this; }, repetitions_1: function (a) { this.numrepetitions = a; this.numrepetitionsSet = !0; return this; }, horizontalFlip_1: function (a) { this.hFlip = a; this.hFlipSet = !0; return this; }, verticalFlip_1: function (a) { this.vFlip = a; this.vFlipSet = !0; return this; }, hide_1: function (a) { this.initialHide = a; this.hideModified = !0; return this; }, repeatstartposition_1: function (a) { this.numrepeatstartposition = a; this.numrepeatstartpositionSet = !0; return this; }, startOnCreation_1: function (a) { this.startoncreation = a; this.startoncreationSet = !0; return this; }, autoResize_1: function (a) { this.autoresizeSet = !0; this.autoresize = a; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.vid, "video isn't set"); var d = b.getResourceManager_0().getVideoClip_1(this.vid), d = new GT1336(a, this.xPos, this.yPos, this.widthSize, this.heightSize, d, this.numrepetitions, this.numrepeatstartposition, this.autoresize); d.setHorizontalFlip_1(this.hFlip); d.setVerticalFlip_1(this.vFlip); d.setApplicationID_1(this.appId); d.hide_1(this.initialHide); this.startoncreation && d.start_0(); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, lazyLoading_1: function (a) { this.loadLazy = a; this.loadLazySet = !0; return this; }, streamMode_1: function (a) { this.streammode = a; this.streammodeSet = !0; return this; }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.vid, "video isn't set"); a.getResourceManager_0().startLoadVideoClip_3(this.vid, this.loadLazy, this.streammode); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1080); GT1650.prototype.assertExp_2(b, "Descriptor is no DVideoPlayer"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.hideModified && (a.initialHide = this.initialHide), null != this.vid && (a.vid = this.vid), this.numrepetitionsSet && (a.numrepetitions = this.numrepetitions), this.numrepeatstartpositionSet && (a.numrepeatstartposition = this.numrepeatstartposition), this.startoncreationSet && (a.startoncreation = this.startoncreation), this.hFlipSet && (a.hFlip = this.hFlip), this.vFlipSet && (a.vFlip = this.vFlip), this.autoresizeSet && (a.autoresize = this.autoresize), this.loadLazySet && (a.loadLazy = this.loadLazy), this.streammodeSet && (a.streammode = this.streammode)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1080", [GT1272] ); GT1080.prototype.set_0 = function () { return new GT1080(); }; var GT975 = Class.extend( { initialConstructor_0: function () { this.idModified = !1; this.newId = 0; this.idModified = !1; }, id_1: function (a) { this.idModified = !0; this.newId = a; return this; }, modifyDescriptor_1: function (a) { this.idModified && (a.appId = this.newId); }, }, "GT975", [GT1272] ); GT975.prototype.set_0 = function () { return new GT975(); }; var GT1394 = Class.extend( { initialConstructor_0: function () { this.insetsBottomSet = this.insetsTopSet = this.insetsRightSet = this.insetsLeftSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.insetsBottomSet = this.insetsTopSet = this.insetsRightSet = this.insetsLeftSet = !1; }, insets_4: function (a, b, d, e) { this.insetsBottomSet = this.insetsTopSet = this.insetsRightSet = this.insetsLeftSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, left_1: function (a) { this.insetsLeftSet = !0; this.insetLeft = a; return this; }, right_1: function (a) { this.insetsRightSet = !0; this.insetRight = a; return this; }, top_1: function (a) { this.insetsTopSet = !0; this.insetTop = a; return this; }, bottom_1: function (a) { this.insetsBottomSet = !0; this.insetBottom = a; return this; }, modifyDescriptor_1: function (a) { instanceOf(a, GT825) && ((a.insetLeft = this.insetsLeftSet ? this.insetLeft : a.insetLeft), (a.insetRight = this.insetsRightSet ? this.insetRight : a.insetRight), (a.insetTop = this.insetsTopSet ? this.insetTop : a.insetTop), (a.insetBottom = this.insetsBottomSet ? this.insetBottom : a.insetBottom)); instanceOf(a, GT872) && ((a.insetLeft = this.insetsLeftSet ? this.insetLeft : a.insetLeft), (a.insetRight = this.insetsRightSet ? this.insetRight : a.insetRight), (a.insetTop = this.insetsTopSet ? this.insetTop : a.insetTop), (a.insetBottom = this.insetsBottomSet ? this.insetBottom : a.insetBottom)); instanceOf(a, GT871) && ((a.insetLeft = this.insetsLeftSet ? this.insetLeft : a.insetLeft), (a.insetRight = this.insetsRightSet ? this.insetRight : a.insetRight), (a.insetTop = this.insetsTopSet ? this.insetTop : a.insetTop), (a.insetBottom = this.insetsBottomSet ? this.insetBottom : a.insetBottom)); instanceOf(a, GT1025) && ((a.insetLeft = this.insetsLeftSet ? this.insetLeft : a.insetLeft), (a.insetRight = this.insetsRightSet ? this.insetRight : a.insetRight), (a.insetTop = this.insetsTopSet ? this.insetTop : a.insetTop), (a.insetBottom = this.insetsBottomSet ? this.insetBottom : a.insetBottom)); instanceOf(a, GT1135) && ((a.insetLeft = this.insetsLeftSet ? this.insetLeft : a.insetLeft), (a.insetRight = this.insetsRightSet ? this.insetRight : a.insetRight), (a.insetTop = this.insetsTopSet ? this.insetTop : a.insetTop), (a.insetBottom = this.insetsBottomSet ? this.insetBottom : a.insetBottom)); }, }, "GT1394", [GT1272] ); GT1394.prototype.set_0 = function () { return new GT1394(); }; var GT1240 = Class.extend( { initialConstructor_0: function () { this.yMoveModified = this.xMoveModified = this.yPosModified = this.xPosModified = !1; this.yMove = this.xMove = this.yPos = this.xPos = 0; this.yPosModified = this.xPosModified = !1; }, x_1: function (a) { this.xPosModified = !0; this.xPos = a; return this; }, y_1: function (a) { this.yPosModified = !0; this.yPos = a; return this; }, position_2: function (a, b) { this.yPosModified = this.xPosModified = !0; this.xPos = a; this.yPos = b; return this; }, moveX_1: function (a) { this.xMoveModified = !0; this.xMove = a; return this; }, moveY_1: function (a) { this.yMoveModified = !0; this.yMove = a; return this; }, move_2: function (a, b) { this.yMoveModified = this.xMoveModified = !0; this.xMove = a; this.yMove = b; return this; }, modifyDescriptor_1: function (a) { this.xPosModified && (a.xPos = this.xPos); this.yPosModified && (a.yPos = this.yPos); this.xMoveModified && (a.xPos += this.xMove); this.yMoveModified && (a.yPos += this.yMove); }, }, "GT1240", [GT1272] ); GT1240.prototype.set_0 = function () { return new GT1240(); }; var GT1442 = Class.extend( { initialConstructor_0: function () { this.heightSize = this.widthSize = 0; this.hModified = this.wModified = !1; this.heightSize = this.widthSize = -1; this.hModified = this.wModified = !1; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.hModified = this.wModified = !0; return this; }, width_1: function (a) { this.widthSize = a; this.wModified = !0; return this; }, height_1: function (a) { this.heightSize = a; this.hModified = !0; return this; }, modifyDescriptor_1: function (a) { this.wModified && (a.widthSize = this.widthSize); this.hModified && (a.heightSize = this.heightSize); }, }, "GT1442", [GT1272] ); GT1442.prototype.set_0 = function () { return new GT1442(); }; var GT1021 = GT765.extend( { initialConstructor_0: function () { this.buttonState = null; GT765.prototype.initialConstructor_0.call(this); this.buttonState = new java_util_JavaScriptVector(); }, state_2: function (a, b) { this.buttonState.size_0() <= a && this.buttonState.setSize_1(a + 1); this.buttonState.setElementAt_2(b, a); return this; }, create_0: function () { for (var a = this.buttonState.size_0(), b = [].createArray(a), d = 0; d < a; d++) b[d] = this.buttonState.elementAt_1(d); return b; }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT1021)) return !1; if (null == this.buttonState) { if (null != a.buttonState) return !1; } else if (!this.buttonState.equals_1(a.buttonState)) return !1; return !0; }, }, "GT1021", [] ); GT1021.prototype.set_0 = function () { return new GT1021(); }; var GT656 = GT765.extend( { initialConstructor_0: function () { this.colortrans = null; GT765.prototype.initialConstructor_0.call(this); }, fill_1: function (a) { this.colortrans = a; return this; }, percentage_1: function (a) { this.colortrans = new GT1063(a); return this; }, percentage_offset_2: function (a, b) { this.colortrans = new GT1063(a, b); return this; }, percentage_offset_RGB_6: function (a, b, d, e, f, g) { this.colortrans = new GT1063(a, b, d, e, f, g); return this; }, percentage_RGB_3: function (a, b, d) { this.colortrans = new GT1063(a, 0, b, 0, d, 0); return this; }, matrix_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.colortrans = new GT1063(a, b, d, e, f, g, k, m, n, p, q, r); return this; }, highlight_0: function () { this.colortrans = GT1063.prototype.Highlight; return this; }, grayOut_0: function () { this.colortrans = GT1063.prototype.GrayOut; return this; }, sepia_0: function () { this.colortrans = GT1063.prototype.Sepia; return this; }, create_0: function () { return this.colortrans; }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT656)) return !1; if (null == this.colortrans) { if (null != a.colortrans) return !1; } else if (!this.colortrans.isSame_1(a.colortrans)) return !1; return !0; }, }, "GT656", [] ); GT656.prototype.set_0 = function () { return new GT656(); }; var GT1337 = GT765.extend( { initialConstructor_0: function () { this.displacementMapTexture = this.filterMaskTexture = this.filter = null; GT765.prototype.initialConstructor_0.call(this); }, filterBlur_0: function () { this.filter = new GT1395(); return this; }, filterBlur_2: function (a, b) { var d = new GT1395(); d.setBlurParameter_2(a, b); this.filter = d; return this; }, filterBlurX_0: function () { this.filter = new GT1338(); return this; }, filterBlurX_1: function (a) { var b = new GT1338(); b.setBlurXParameter_1(a); this.filter = b; return this; }, filterBlurY_0: function () { this.filter = new GT1339(); return this; }, filterBlurY_1: function (a) { var b = new GT1339(); b.setBlurYParameter_1(a); this.filter = b; return this; }, filterDotScreen_0: function () { this.filter = new GT1136(); return this; }, filterDotScreen_2: function (a, b) { var d = new GT1136(); d.setAngleParameter_1(a); d.setScaleParameter_1(b); this.filter = d; return this; }, filterInvert_0: function () { this.filter = new GT1289(); return this; }, filterInvert_1: function (a) { var b = new GT1289(); b.setInvertParameter_1(a); this.filter = b; return this; }, filterPixelate_0: function () { this.filter = new GT1194(); return this; }, filterPixelate_2: function (a, b) { var d = new GT1194(); d.setPixelSizeParameter_2(a, b); this.filter = d; return this; }, filterColorTransform_0: function () { this.filter = new GT878(); return this; }, filterColorTransform_1: function (a) { var b = new GT878(); b.setColorTransformationParameter_1(a.create_0()); this.filter = b; return this; }, filterTwist_0: function () { this.filter = new GT1340(); return this; }, filterTwist_4: function (a, b, d, e) { var f = new GT1340(); f.setAngleParameter_1(d); f.setRadiusParameter_1(e); f.setOffsetParameter_2(a, b); this.filter = f; return this; }, filterFishEye_0: function () { this.filter = new GT1243(); return this; }, filterFishEye_4: function (a, b, d, e) { var f = new GT1243(); f.setDistortionParameter_2(a, b); f.setScaleParameter_2(d, e); this.filter = f; return this; }, filterDisplacement_1: function (a) { this.displacementMapTexture = a; this.filter = new GT976(); return this; }, filterDisplacement_5: function (a, b, d, e, f) { this.displacementMapTexture = a; a = new GT976(); a.setOffsetParameter_2(b, d); a.setScaleParameter_2(e, f); this.filter = a; return this; }, replace_1: function (a) { this.filter = a; return this; }, create_1: function (a) { null != this.filter && instanceOf(this.filter, GT976) && null != this.displacementMapTexture && this.filter.setDisplacementMapParameter_1(this.displacementMapTexture.create_1(a.getResourceManager_0())); return this.filter; }, load_1: function (a) { null != this.filter && instanceOf(this.filter, GT976) && null != this.displacementMapTexture && this.displacementMapTexture.load_1(a.getResourceManager_0()); }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT1337)) return !1; if (null == this.filter) { if (null != a.filter) return !1; } else if (!this.filter.isSame_1(a.filter)) return !1; return !0; }, }, "GT1337", [] ); GT1337.prototype.set_0 = function () { return new GT1337(); }; var GT1441 = GT765.extend( { initialConstructor_0: function () { this.fontname = null; this.italicfont = this.boldfont = !1; this.linespacing = this.fontsize = 0; GT765.prototype.initialConstructor_0.call(this); }, name_1: function (a) { this.fontname = a; return this; }, size_1: function (a) { this.fontsize = a; return this; }, bold_0: function () { this.boldfont = !0; return this; }, italic_0: function () { this.italicfont = !0; return this; }, spacing_1: function (a) { this.linespacing = a; return this; }, stringDescription_2: function (a, b) { var d = GT1677.prototype.toLowerCaseAZ_1(a), e = "arial", f = "plain", g = 0, k = this.first_2(d.indexOf_1(38), d.indexOf_1(63)), m = d; 0 <= k && ((e = d.substring_2(0, k)), (m = d.substring_1(k + 1))); for (; 0 < m.length_0(); ) (d = m), (k = this.first_2(m.indexOf_1(38), m.indexOf_1(63))), 0 <= k ? ((d = m.substring_2(0, k)), (m = m.substring_1(k + 1))) : (m = ""), d.startsWith_1("style=") ? (f = d.substring_1(6)) : d.startsWith_1("size=") ? (GT1650.prototype.assertExp_2(!1, "size used in font"), Integer.truncate_1(GT1672.prototype.stringToInt_2(d.substring_1(5), 10) * b)) : d.startsWith_1("width=") ? (g = Integer.truncate_1(GT1672.prototype.stringToInt_2(d.substring_1(6), 10) * b)) : d.startsWith_1("height=") && (GT1650.prototype.assertExp_2(!1, "height used in font"), Integer.truncate_1(GT1672.prototype.stringToInt_2(d.substring_1(7), 100) * b)); f = GT1677.prototype.toLowerCaseAZ_1(f); 0 <= f.indexOf_1("italic") && (this.italicfont = !0); 0 <= f.indexOf_1("bold") && 1 <= b && (this.boldfont = !0); this.fontsize = g; this.fontname = GT1393.prototype.findFont_1(e); return this; }, create_1: function (a) { GT1650.prototype.assertExp_2(null != this.fontname, "fontname is null"); var b = this.boldfont, d = this.fontname; this.fontname == GT1393.prototype.ARIAL_BLACK && ((d = GT1393.prototype.ARIAL), (b = !0)); return a.getFont_6(d.name_0(), b, this.italicfont, 0, this.fontsize, 0); }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.fontname, "fontname is null"); var b = this.boldfont, d = this.fontname; this.fontname == GT1393.prototype.ARIAL_BLACK && ((d = GT1393.prototype.ARIAL), (b = !0)); a.startLoadFont_3(d.name_0(), b, this.italicfont); }, toString: function () { return "Font name: " + this.fontname + ", bold: " + (this.boldfont ? "1" : "0") + ", italic: " + (this.italicfont ? "1" : "0") + ", size: " + this.fontsize + ", spacing: " + this.linespacing; }, }, "GT1441", [] ); GT1441.prototype.first_2 = function (a, b) { return 0 <= a && (a < b || 0 > b) ? a : b; }; GT1441.prototype.set_0 = function () { return new GT1441(); }; var GT1238 = GT765.extend( { initialConstructor_0: function () { this.fractions = this.gradientColors = null; this.rotationAngle = 0; GT765.prototype.initialConstructor_0.call(this); this.gradientColors = new java_util_JavaScriptVector(); this.fractions = new java_util_JavaScriptVector(); this.rotationAngle = 0; }, create_0: function () { GT1650.prototype.assertExp_2(2 <= this.gradientColors.size_0(), "the gradient requires at least 2 colors"); for (var a = [].createArray(this.gradientColors.size_0()), b = 0; b < a.length; b++) a[b] = this.gradientColors.elementAt_1(b).create_0(); for (var d = [].createArray(this.fractions.size_0()).init(0), b = 0; b < d.length; b++) d[b] = this.fractions.elementAt_1(b).doubleValue_0(); return new GT1592(a, d, this.rotationAngle); }, addColor_2: function (a, b) { GT1650.prototype.assertExp_2(null != a, "color is null"); GT1650.prototype.assertExp_2(this.fractions.isEmpty_0() ? !0 : this.fractions.lastElement_0().doubleValue_0() < b, "gradient fractions have to ascend with each color"); GT1650.prototype.assertExp_2(15 > this.gradientColors.size_0(), "the gradient is limited to 15 colors"); this.gradientColors.addElement_1(a); this.fractions.addElement_1(new Double(b)); return this; }, removeAllColors_0: function () { this.gradientColors.clear_0(); this.fractions.clear_0(); return this; }, rotation_1: function (a) { this.rotationAngle = a; return this; }, }, "GT1238", [] ); GT1238.prototype.invert_1 = function (a) { var b = GT1238.prototype.set_0(); b.rotationAngle = a.rotationAngle; for (var d = 0; d < a.fractions.size_0(); d++) b.fractions.addElement_1(a.fractions.elementAt_1(d)); for (d = 0; d < a.gradientColors.size_0(); d++) b.gradientColors.addElement_1(a.gradientColors.elementAt_1(a.gradientColors.size_0() - 1 - d)); return b; }; GT1238.prototype.set_0 = function () { return new GT1238(); }; var GT1390 = GT765.extend( { initialConstructor_0: function () { this.filename = null; this.columns = this.rows = 0; this.seperatealpharegion = !1; this.height = this.width = 0; GT765.prototype.initialConstructor_0.call(this); this.columns = this.rows = 1; this.height = this.width = -1; this.seperatealpharegion = !1; }, file_1: function (a) { this.filename = a; return this; }, tiling_2: function (a, b) { GT1650.prototype.assertExp_2(0 < a, "columns in imagetiling must be >0"); GT1650.prototype.assertExp_2(0 < b, "rows in imagetiling must be >0"); this.columns = a; this.rows = b; return this; }, overrideSize_2: function (a, b) { this.width = a; this.height = b; return this; }, separateAlphaRegion_1: function (a) { this.seperatealpharegion = a; return this; }, load_1: function (a) { a.startLoadImage_6(this.filename, this.columns, this.rows, this.seperatealpharegion, this.width, this.height); }, create_1: function (a) { return a.getImage_1(this.filename); }, stringDescription_1: function (a) { var b = [1, -1], d = [1, -1], e = !1, f = null, g = a.indexOf_1(91); 0 <= g && ((f = a.substring_1(g)), (a = a.substring_2(0, g)), (b = this.extractNumPartsAndSize_2(f, 0)), (d = this.extractNumPartsAndSize_2(f, 1))); 1 < a.length_0() && a.endsWith_1("!") && ((a = a.substring_2(0, a.length_0() - 1)), (e = !0)); this.file_1(a); this.tiling_2(b[0], d[0]); this.overrideSize_2(b[1], d[1]); this.separateAlphaRegion_1(e); return this; }, toString: function () { return "PImage:" + this.filename + "[" + this.columns + "(" + this.width + ")x" + this.rows + "(" + this.height + ")]"; }, }, "GT1390", [] ); GT1390.prototype.extractNumPartsAndSize_2 = function (a, b) { var d = a.indexOf_1(91); if (0 > d) return [1, -1]; var e = a.indexOf_2(93, d + 1); if (0 > e) return [1, -1]; if (0 < b) return this.extractNumPartsAndSize_2(a.substring_1(e + 1), b - 1); d = a.substring_2(d + 1, e).trim_0(); e = d.indexOf_1(47); return 0 > e ? [GT1672.prototype.stringToInt_1(d), -1] : [GT1672.prototype.stringToInt_1(d.substring_2(0, e)), GT1672.prototype.stringToInt_1(d.substring_1(e + 1))]; }; GT1390.prototype.set_0 = function () { return new GT1390(); }; var GT716 = GT765.extend( { initialConstructor_0: function () { this.quads = this.images = null; GT765.prototype.initialConstructor_0.call(this); this.images = new java_util_JavaScriptVector(); this.quads = new java_util_JavaScriptVector(); }, add_2: function (a, b) { return this.addAdvanced_2(GT1390.prototype.set_0().file_1(a), b); }, addAdvanced_2: function (a, b) { this.images.add_1(a); this.quads.add_1(b); return this; }, load_1: function (a) { for (var b = this.images.size_0(), d = 0; d < b; d++) this.images.elementAt_1(d).load_1(a); }, create_1: function (a) { for (var b = new GT1137(), d = 0; d < this.images.size_0(); d++) { var e = this.images.get_1(d); b.add_2(e.create_1(a), this.quads.get_1(d)); } return b; }, getImages_0: function () { return this.images; }, }, "GT716", [] ); GT716.prototype.set_0 = function () { return new GT716(); }; var GT506 = Class.extend( { initialConstructor_0: function () { this.sp = this.clickSound = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sp = this.clickSound = null; this.clickSound = a; this.sp = b; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { this.sp.start_1(this.clickSound); }, }, "GT506", [GT1066] ), GT1396 = Class.extend( { initialConstructor_0: function () { this.files = null; this.files = new java_util_JavaScriptHashtable(); }, file_1: function (a) { this.files.put_2("default", a); return this; }, fileForLanguage_2: function (a, b) { this.files.put_2(a, b); return this; }, load_1: function (a) { GT1650.prototype.assertExp_2(this.files.containsKey_1("default"), "no default sound set"); for (var b = this.files.get_1("default"), d = this.files.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0(); a.hasSkinId_1(e) && (b = this.files.get_1(e)); } a.getResourceManager_0().startLoadSound_1(b); for (d = this.files.keys_0(); d.hasMoreElements_0(); ) (e = d.nextElement_0()), b.equals_1(this.files.get_1(e)) || a.getResourceManager_0().startLoadSound_2(this.files.get_1(e), !0); }, create_1: function (a) { GT1650.prototype.assertExp_2(this.files.containsKey_1("default"), "no default sound set"); for (var b = this.files.get_1("default"), d = this.files.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0(); a.hasSkinId_1(e) && (b = this.files.get_1(e)); } return b.equals_1("") ? (GT1650.prototype.log_1("cannot create empty sound (file not set)"), null) : a.getResourceManager_0().getSound_1(b); }, }, "GT1396", [] ); GT1396.prototype.set_0 = function () { return new GT1396(); }; var GT1022 = Class.extend( { initialConstructor_0: function () { this.alphavalue = 0; this.alphavalue = 255; }, opaque_0: function () { this.alphavalue = 255; return this; }, transparent_0: function () { this.alphavalue = 0; return this; }, alpha_1: function (a) { this.alphavalue = 255 < a ? 255 : 0 > a ? 0 : a; return this; }, percent_1: function (a) { this.alphavalue = 100 < a ? 255 : 0 > a ? 0 : Math.div(255 * a, 100); GT1650.prototype.assertExp_2(0 <= this.alphavalue && 255 >= this.alphavalue, "alphavalue not in range"); return this; }, create_0: function () { return this.alphavalue; }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1022) ? this.alphavalue == a.alphavalue : !1; }, }, "GT1022", [] ); GT1022.prototype.set_0 = function () { return new GT1022(); }; var GT1491 = Class.extend({ initialConstructor_0: function () {} }, "GT1491", []), GT1610 = Class.extend( { initialConstructor_0: function () { this.id = 0; this.sender = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.id = 0; this.sender = null; this.id = a; this.sender = null; }, initialConstructor_2: function (a, b) { this.id = 0; this.sender = null; this.id = a; this.sender = b; }, dispatch_1: function (a) { return this.isHandlerCompatible_1(a) ? a.handleEvent_1(this) : !0; }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1273); }, getId_0: function () { return this.id; }, getSender_0: function () { return this.sender; }, toString: function () { return "Event[" + this.id + "]"; }, }, "GT1610", [] ), GT1195 = Class.extend( { initialConstructor_0: function () { this.eventDispatcher = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.eventDispatcher = null; this.eventDispatcher = a; a.registerHandlerForMultipleEvents_2([GT1532.prototype.KEY_PRESS], this); }, handleKeyEvent_1: function (a) { return a.getId_0() != GT1532.prototype.KEY_PRESS || (!a.getKeyName_0().equals_1("backspace") && GT1672.prototype.stringToInt_1(a.getKeyName_0()) != GT1138.prototype.KEYCODE_BACK) ? a.getId_0() == GT1532.prototype.KEY_PRESS && GT1672.prototype.stringToInt_1(a.getKeyName_0()) == GT1138.prototype.KEYCODE_MENU ? (this.eventDispatcher.raiseEvent_1(new GT1446(GT1446.prototype.TOGGLE_MENU)), !0) : !1 : (this.eventDispatcher.raiseEvent_1(new GT1446(GT1446.prototype.BACK)), !0); }, }, "GT1195", [GT1114] ), GT1341 = GT1610.extend( { initialConstructor_0: function () { GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1610.prototype.initialConstructor_2.call(this, a, b); }, dispatch_1: function (a) { return a.handleGestureEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT920); }, toString: function () { return "GestureEvent[" + this.id + "]"; }, }, "GT1341", [] ), GT507 = GT1341.extend( { initialConstructor_0: function () { this.currentMove = this.downEvent = null; this.distanceY = this.distanceX = 0; this.islast = this.isfirst = !1; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.currentMove = this.downEvent = null; this.distanceY = this.distanceX = 0; this.islast = this.isfirst = !1; GT1341.prototype.initialConstructor_2.call(this, a, b); GT1650.prototype.assertExp_2(null != d, "down-event is null in AbstractScrollEvent()"); GT1650.prototype.assertExp_2(null != e, "current-event is null in AbstractScrollEvent()"); this.distanceX = f; this.distanceY = g; this.downEvent = d; this.currentMove = e; this.isfirst = k; this.islast = m; }, getDownEvent_0: function () { return this.downEvent; }, getCurrentTouchEvent_0: function () { return this.currentMove; }, isFirstEvent_0: function () { return this.isfirst; }, isLastEvent_0: function () { return this.islast; }, getDistanceX_0: function () { return this.distanceX; }, getDistanceY_0: function () { return this.distanceY; }, toString: function () { return "ScrollEvent " + this.distanceX + " " + this.distanceY; }, }, "GT507", [] ), GT717 = Class.extend( { initialConstructor_0: function () { this.timer = this.disp = null; this.moveignoretime = this.DOUBLE_TAP_TIMEOUT = this.TAP_TIMEOUT = this.LONGPRESS_TIMEOUT = this.mMaximumFlingVelocity = this.mMinimumFlingVelocity = this.mDoubleTapSlopSquare = this.mDoubleTapTouchSlopSquare = this.mTouchSlopSquare = 0; this.mIsInnerScroll = this.mIsScrolling = this.mAlwaysInBiggerTapRegion = this.mAlwaysInTapRegion = this.mInLongPress = this.mDeferConfirmSingleTap = this.mStillDown = !1; this.mPreviousUpEvent = this.mCurrentDownEvent = null; this.mIsDoubleTapping = this.hasTap = !1; this.mInnerLastFocusY = this.mInnerLastFocusX = this.mDownFocusY = this.mDownFocusX = this.mLastFocusY = this.mLastFocusX = 0; this.mIsLongpressEnabled = !1; this.tapcallback = this.presscallback = this.longpresscallback = this.mVelocityTracker = null; this.ignoreCancel = !1; this.area = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.timer = this.disp = null; this.moveignoretime = this.DOUBLE_TAP_TIMEOUT = this.TAP_TIMEOUT = this.LONGPRESS_TIMEOUT = this.mMaximumFlingVelocity = this.mMinimumFlingVelocity = this.mDoubleTapSlopSquare = this.mDoubleTapTouchSlopSquare = this.mTouchSlopSquare = 0; this.mIsInnerScroll = this.mIsScrolling = this.mAlwaysInBiggerTapRegion = this.mAlwaysInTapRegion = this.mInLongPress = this.mDeferConfirmSingleTap = this.mStillDown = !1; this.mPreviousUpEvent = this.mCurrentDownEvent = null; this.mIsDoubleTapping = this.hasTap = !1; this.mInnerLastFocusY = this.mInnerLastFocusX = this.mDownFocusY = this.mDownFocusX = this.mLastFocusY = this.mLastFocusX = 0; this.mIsLongpressEnabled = !1; this.tapcallback = this.presscallback = this.longpresscallback = this.mVelocityTracker = null; this.ignoreCancel = !1; this.area = null; this.disp = a; this.timer = b; this.mVelocityTracker = new java_util_JavaScriptHashtable(); this.longpresscallback = new GT607(this); this.presscallback = new GT826(this); this.tapcallback = new GT930(this); a.registerHandler_4(GT1447.prototype.TOUCH_START, null, this, -1); a.registerHandler_4(GT1447.prototype.TOUCH_MOVE, null, this, -1); a.registerHandler_4(GT1447.prototype.TOUCH_CANCEL, null, this, -1); a.registerHandler_4(GT1447.prototype.TOUCH_END, null, this, -1); }, init_2: function (a, b) { this.mIsLongpressEnabled = !0; this.mIsInnerScroll = this.mIsScrolling = !1; this.mMinimumFlingVelocity = a.getMinFlingVelocity_0(); this.mMaximumFlingVelocity = a.getMaxFlingVelocity_0(); this.mTouchSlopSquare = a.getTouchSlop_0() * a.getTouchSlop_0(); this.mDoubleTapTouchSlopSquare = a.getDoubleTapTouchSlop_0() * a.getDoubleTapTouchSlop_0(); this.mDoubleTapSlopSquare = a.getDoubleTapSlop_0() * a.getDoubleTapSlop_0(); this.LONGPRESS_TIMEOUT = a.getLongPressTimeout_0(); this.TAP_TIMEOUT = a.getTapTimeout_0(); this.DOUBLE_TAP_TIMEOUT = a.getDoubleTapTimeout_0(); this.moveignoretime = a.getMoveIgnoreTime_0(); this.area = b; }, getVelocityTracker_1: function (a) { a = "" + a.getTouchId_0(); var b; this.mVelocityTracker.containsKey_1(a) ? (b = this.mVelocityTracker.get_1(a)) : ((b = new GT718()), this.mVelocityTracker.put_2(a, b)); return b; }, handleTouchEvent_1: function (a) { var b = a.getId_0(), d = 0 == a.getTouchId_0(); if (null != this.area && !this.area.contains_2(a.getX_0(), a.getY_0()) && b != GT1447.prototype.TOUCH_CANCEL) return this.cancelTouchEvents_1(!1), !1; var e = this.getVelocityTracker_1(a); b != GT1447.prototype.TOUCH_CANCEL && e.addMovement_1(a); var f = a.getX_0(), g = a.getY_0(), e = !1; if (b == GT1447.prototype.TOUCH_START) if (d) { if ((b = this.hasTap)) this.timer.removeCallback_2(this.tapcallback, !1), (this.hasTap = !1); null != this.mCurrentDownEvent && null != this.mPreviousUpEvent && b && this.isConsideredDoubleTap_3(this.mCurrentDownEvent, this.mPreviousUpEvent, a) ? ((this.mIsDoubleTapping = !0), this.disp.raiseEvent_1(new GT766(this, a)) && (e = !0)) : ((this.hasTap = !0), this.disp.raiseEvent_1(new GT767(this, a)), this.timer.triggerCallbackAfter_2(this.tapcallback, this.DOUBLE_TAP_TIMEOUT)); this.mDownFocusX = this.mLastFocusX = this.mInnerLastFocusX = f; this.mDownFocusY = this.mLastFocusY = this.mInnerLastFocusY = g; this.mCurrentDownEvent = a; this.mStillDown = this.mAlwaysInBiggerTapRegion = this.mAlwaysInTapRegion = !0; this.mDeferConfirmSingleTap = this.mInLongPress = !1; this.mIsLongpressEnabled && (this.timer.removeCallback_2(this.longpresscallback, !1), this.timer.triggerCallback_2(this.longpresscallback, this.mCurrentDownEvent.getEventTime_0() + this.TAP_TIMEOUT + this.LONGPRESS_TIMEOUT)); this.timer.triggerCallback_2(this.presscallback, this.mCurrentDownEvent.getEventTime_0() + this.TAP_TIMEOUT); } else (this.mDownFocusX = this.mLastFocusX = f), (this.mDownFocusY = this.mLastFocusY = g), this.cancelTaps_0(); else if (b == GT1447.prototype.TOUCH_MOVE) { if (this.mInLongPress || null == this.mCurrentDownEvent || a.getEventTime_0() - this.mCurrentDownEvent.getEventTime_0() < this.moveignoretime) return !1; b = this.mLastFocusX - f; d = this.mLastFocusY - g; if (!this.mIsDoubleTapping) if (this.mAlwaysInTapRegion) { var k = Integer.truncate_1(f - this.mDownFocusX), m = Integer.truncate_1(g - this.mDownFocusY), k = k * k + m * m; k > this.mTouchSlopSquare ? ((this.mIsInnerScroll = !1), this.disp.raiseEvent_1(new GT926(this, this.mCurrentDownEvent, a, b, d, !this.mIsScrolling, !1)) && ((e = !0), this.disp.raiseEvent_1(new GT459(this, this.mCurrentDownEvent, a)), (this.mAlwaysInTapRegion = !1)), (this.mLastFocusX = f), (this.mLastFocusY = g), (this.mIsScrolling = !0), this.timer.removeCallback_2(this.presscallback, !1), this.timer.removeCallback_2(this.longpresscallback, !1), this.timer.removeCallback_2(this.tapcallback, !1), (this.hasTap = !1)) : (this.disp.raiseEvent_1(new GT458(this, this.mCurrentDownEvent, a, this.mInnerLastFocusX - f, this.mInnerLastFocusY - g, !this.mIsInnerScroll)), (this.mIsInnerScroll = !0), (this.mInnerLastFocusX = f), (this.mInnerLastFocusY = g)); k > this.mDoubleTapTouchSlopSquare && (this.mAlwaysInBiggerTapRegion = !1); } else if (1 <= Math.abs_1(b) || 1 <= Math.abs_1(d)) this.disp.raiseEvent_1(new GT926(this, this.mCurrentDownEvent, a, b, d, !this.mIsScrolling, !1)) && (e = !0), (this.mIsScrolling = !0), (this.mLastFocusX = f), (this.mLastFocusY = g); } else if (b == GT1447.prototype.TOUCH_END) if (d) { this.mStillDown = !1; if (this.mIsDoubleTapping) this.disp.raiseEvent_1(new GT661(this, a)) && (e = !0); else if (this.mInLongPress) this.timer.removeCallback_2(this.tapcallback, !1), (this.mInLongPress = this.hasTap = !1); else if (this.mAlwaysInTapRegion) this.disp.raiseEvent_1(new GT652(this, a)) && (e = !0); else if ( ((g = this.getVelocityTracker_1(a)), g.computeCurrentVelocity_2(1e3, this.mMaximumFlingVelocity), (f = g.getYVelocity_0()), (g = g.getXVelocity_0()), Math.abs_1(f) > this.mMinimumFlingVelocity || Math.abs_1(g) > this.mMinimumFlingVelocity) ) { if (null == this.mCurrentDownEvent) return !1; this.disp.raiseEvent_1(new GT969(this, this.mCurrentDownEvent, a, g, f)) && (e = !0); } this.mIsScrolling && !e && this.disp.raiseEvent_1(new GT926(this, this.mCurrentDownEvent, a, 0, 0, !1, !0)) && (e = !0); this.mPreviousUpEvent = a; this.getVelocityTracker_1(a).clear_0(); this.mIsInnerScroll = this.mIsScrolling = this.mDeferConfirmSingleTap = this.mIsDoubleTapping = !1; this.timer.removeCallback_2(this.presscallback, !1); this.timer.removeCallback_2(this.longpresscallback, !1); e || null == this.mCurrentDownEvent || this.disp.raiseEvent_1(new GT459(this, this.mCurrentDownEvent, a)); this.mCurrentDownEvent = null; } else for ( this.mDownFocusX = this.mLastFocusX = f, this.mDownFocusY = this.mLastFocusY = g, g = this.getVelocityTracker_1(a), g.computeCurrentVelocity_2(1e3, this.mMaximumFlingVelocity), a = a.getTouchId_0(), f = g.getXVelocity_0(), g = g.getYVelocity_0(), b = 0; 10 > b; b++ ) { if (b != a && ((d = "" + b), this.mVelocityTracker.containsKey_1(d) && ((d = this.mVelocityTracker.get_1(d)), (k = f * d.getXVelocity_0()), (m = g * d.getYVelocity_0()), 0 > k + m))) { d.clear_0(); break; } } else b == GT1447.prototype.TOUCH_CANCEL && (this.ignoreCancel ? (this.ignoreCancel = !1) : (this.timer.removeCallback_2(this.presscallback, !1), this.timer.removeCallback_2(this.longpresscallback, !1), this.timer.removeCallback_2(this.tapcallback, !1), (this.hasTap = !1), this.getVelocityTracker_1(a).clear_0(), (this.mIsScrolling = this.mInLongPress = this.mDeferConfirmSingleTap = this.mAlwaysInBiggerTapRegion = this.mAlwaysInTapRegion = this.mStillDown = this.mIsDoubleTapping = !1), this.disp.raiseEvent_1(new GT459(this, this.mCurrentDownEvent, a)), (this.mCurrentDownEvent = null))); e && this.cancelTouchEvents_1(!0); return e; }, cancelTouchEvents_1: function (a) { null != this.disp && null != this.mCurrentDownEvent && ((this.ignoreCancel = a), this.disp.raiseEvent_1(new GT1447(GT1447.prototype.TOUCH_CANCEL, this.mCurrentDownEvent.getX_0(), this.mCurrentDownEvent.getY_0(), this.mCurrentDownEvent.getTouchId_0(), this.mCurrentDownEvent.getEventTime_0()))); }, isConsideredDoubleTap_3: function (a, b, d) { if (!this.mAlwaysInBiggerTapRegion || d.getEventTime_0() - b.getEventTime_0() > this.DOUBLE_TAP_TIMEOUT) return !1; b = Integer.truncate_1(a.getX_0()) - Integer.truncate_1(d.getX_0()); a = Integer.truncate_1(a.getY_0()) - Integer.truncate_1(d.getY_0()); return b * b + a * a < this.mDoubleTapSlopSquare; }, dispatchLongPress_0: function () { this.timer.removeCallback_2(this.tapcallback, !1); this.mDeferConfirmSingleTap = this.hasTap = !1; this.mInLongPress = this.disp.raiseEvent_1(new GT768(this, this.mCurrentDownEvent)); }, showPressEvent_0: function () { this.disp.raiseEvent_1(new GT977(this, this.mCurrentDownEvent)); }, dispatchTap_0: function () { this.mStillDown && (this.mDeferConfirmSingleTap = !0); }, cancelTaps_0: function () { this.timer.removeCallback_2(this.presscallback, !1); this.timer.removeCallback_2(this.longpresscallback, !1); this.timer.removeCallback_2(this.tapcallback, !1); this.mInLongPress = this.mDeferConfirmSingleTap = this.mAlwaysInBiggerTapRegion = this.mAlwaysInTapRegion = this.mIsDoubleTapping = !1; }, stop_0: function () { this.disp.unregisterHandler_1(this); this.tapcallback = this.presscallback = this.longpresscallback = this.disp = null; }, }, "GT717", [GT1012] ), GT607 = Class.extend( { initialConstructor_0: function () { this.gd = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gd = null; this.gd = a; }, run_0: function () { this.gd.dispatchLongPress_0(); }, }, "GT607", [Runnable] ), GT826 = Class.extend( { initialConstructor_0: function () { this.gd = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gd = null; this.gd = a; }, run_0: function () { this.gd.showPressEvent_0(); }, }, "GT826", [Runnable] ), GT930 = Class.extend( { initialConstructor_0: function () { this.gd = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gd = null; this.gd = a; }, run_0: function () { this.gd.dispatchTap_0(); }, }, "GT930", [Runnable] ), GT273 = Class.extend( { initialConstructor_0: function () { this.sc = this.flinganim = this.cnt = this.timer = this.disp = null; this.stopped = this.vertical = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.sc = this.flinganim = this.cnt = this.timer = this.disp = null; this.stopped = this.vertical = !1; GT1650.prototype.assertExp_2(null != d, "container is null"); GT1650.prototype.assertExp_2(null != e, "scrollbar is null"); this.disp = a; a.registerHandler_4(GT969.prototype.ID, null, this, -1); a.registerHandler_4(GT926.prototype.ID, null, this, -1); a.registerHandler_4(GT1196.prototype.MOUSE_WHEEL, null, this, -1); this.cnt = d; this.sc = e; this.vertical = !this.sc.isHorizontal_0(); this.timer = b; this.stopped = !1; }, handleGestureEvent_1: function (a) { if (this.stopped) return !1; if (this.cnt.isAlive_0() && this.sc.isAlive_0()) { if (!this.cnt.isHidden_0() && this.checkNoOtherInputReceiver_2(this.cnt, this.cnt.getParent_0())) if (a.getId_0() == GT926.prototype.ID) { if (this.cnt.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0()) && !this.sc.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0())) { null != this.flinganim && this.flinganim.isRunning_0() && this.flinganim.kill_0(); var b = this.sc.getScrollHandle_0(); b.setValue_2(b.getValue_0() + GT1672.prototype.doubleToInt_1(this.vertical ? a.getDistanceY_0() : a.getDistanceX_0()), !1); return !0; } } else if ( a.getId_0() == GT969.prototype.ID && this.cnt.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0()) && !this.sc.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0()) ) return (this.flinganim = new GT1130(this.timer, this.sc.getScrollHandle_0(), this.vertical ? a.getVelocityY_0() : a.getVelocityX_0())), this.flinganim.start_0(), !0; } else this.stop_0(); return !1; }, checkNoOtherInputReceiver_2: function (a, b) { return null == b ? !0 : null != b.getModalInputReceiver_0() ? b.getModalInputReceiver_0() == a : this.checkNoOtherInputReceiver_2(a, b.getParent_0()); }, stop_0: function () { this.stopped || (this.disp.unregisterHandler_1(this), this.disp.unregisterHandler_1(this), (this.sc = this.timer = this.cnt = this.disp = null), (this.stopped = !0)); }, handleMouseWheelEvent_1: function (a) { if (this.stopped) return !1; this.cnt.isAlive_0() && this.sc.isAlive_0() && this.cnt.isAbsPositionInside_2(a.getX_0(), a.getY_0()) && !this.sc.isAbsPositionInside_2(a.getX_0(), a.getY_0()) && ((a = a.getWheelRotation_0()), a == Integer.MAX_VALUE ? this.sc.initiateFastScroll_1(!1) : a == Integer.MIN_VALUE ? this.sc.initiateFastScroll_1(!0) : this.sc.initiateScroll_1(a)); return !1; }, }, "GT273", [GT920, GT756] ), GT718 = Class.extend( { initialConstructor_0: function () { this.mPastTime = this.mPastY = this.mPastX = null; this.mLastTouch = this.mXVelocity = this.mYVelocity = 0; this.clear_0(); }, clear_0: function () { this.mPastX = [].createArray(GT718.prototype.NUM_PAST).init(0); this.mPastY = [].createArray(GT718.prototype.NUM_PAST).init(0); this.mPastTime = [].createArray(GT718.prototype.NUM_PAST).init(0); for (var a = 0; a < GT718.prototype.NUM_PAST; a++) this.mPastTime[a] = Integer.MIN_VALUE; }, addMovement_1: function (a) { var b = (this.mLastTouch + 1) % GT718.prototype.NUM_PAST; this.mPastX[b] = a.getX_0(); this.mPastY[b] = a.getY_0(); this.mPastTime[b] = a.getEventTime_0(); this.mLastTouch = b; }, computeCurrentVelocity_1: function (a) { this.computeCurrentVelocity_2(a, Double.MAX_VALUE); }, computeCurrentVelocity_2: function (a, b) { var d = this.mPastX, e = this.mPastY, f = this.mPastTime, g = this.mLastTouch, k = g; if (f[g] != Integer.MIN_VALUE) for (var m = f[g] - GT718.prototype.LONGEST_PAST_TIME, n = (GT718.prototype.NUM_PAST + k - 1) % GT718.prototype.NUM_PAST; f[n] >= m && n != g; ) (k = n), (n = (GT718.prototype.NUM_PAST + k - 1) % GT718.prototype.NUM_PAST); var m = d[k], n = e[k], p = f[k], q = 0, r = 0, g = ((g - k + GT718.prototype.NUM_PAST) % GT718.prototype.NUM_PAST) + 1; 3 < g && g--; for (var t = 1; t < g; t++) { var u = (k + t) % GT718.prototype.NUM_PAST, B = Integer.truncate_1(f[u] - p); if (0 != B) var A = d[u] - m, A = (A / B) * a, q = 0 == q ? A : 0.5 * (q + A), A = e[u] - n, A = (A / B) * a, r = 0 == r ? A : 0.5 * (r + A); } this.mXVelocity = 0 > q ? Math.max_2(q, -b) : Math.min_2(q, b); this.mYVelocity = 0 > r ? Math.max_2(r, -b) : Math.min_2(r, b); }, getXVelocity_0: function () { return this.mXVelocity; }, getYVelocity_0: function () { return this.mYVelocity; }, }, "GT718", [] ); GT718.prototype.NUM_PAST = 10; GT718.prototype.LONGEST_PAST_TIME = 200; var GT1081 = Class.extend( { initialConstructor_0: function () { this.handler = this.sender = null; this.handlingOrder = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.handler = this.sender = null; this.handlingOrder = 0; this.sender = a; this.handler = b; this.handlingOrder = d; }, }, "GT1081", [] ), GT563 = Class.extend( { initialConstructor_0: function () {}, compare_2: function (a, b) { return a.handlingOrder - b.handlingOrder; }, }, "GT563", [java_util_Comparator] ), GT1397 = Class.extend( { initialConstructor_0: function () { this.maskTextureImage = this.nativeFilter = null; this.maskTextureInvert = this.maskTextureScaleY = this.maskTextureScaleX = this.maskTextureOffsetY = this.maskTextureOffsetX = 0; this.nativeFilter = new GT1290(this); this.init_0(); }, init_0: function () {}, getFilterType_0: function () { return -1; }, setMaskTextureImageParameter_1: function (a) { this.maskTextureImage != a && ((this.maskTextureImage = a), this.setParameter_1(GT1397.prototype.PARAMETER_MASK_TEXTURE_IMAGE)); }, getMaskTextureImageParameter_0: function () { return this.maskTextureImage; }, setMaskTextureOffsetParameter_2: function (a, b) { if (this.maskTextureOffsetX != a || this.maskTextureOffsetY != b) (this.maskTextureOffsetX = a), (this.maskTextureOffsetY = b), this.setParameter_1(GT1397.prototype.PARAMETER_MASK_TEXTURE_OFFSET); }, getMaskTextureOffsetXParameter_0: function () { return this.maskTextureOffsetX; }, getMaskTextureOffsetYParameter_0: function () { return this.maskTextureOffsetY; }, setMaskTextureScaleParameter_2: function (a, b) { if (this.maskTextureScaleX != a || this.maskTextureScaleY != b) (this.maskTextureScaleX = a), (this.maskTextureScaleY = b), this.setParameter_1(GT1397.prototype.PARAMETER_MASK_TEXTURE_SCALE); }, getMaskTextureScaleXParameter_0: function () { return this.maskTextureScaleX; }, getMaskTextureScaleYParameter_0: function () { return this.maskTextureScaleY; }, setMaskTextureInvertParameter_1: function (a) { this.maskTextureInvert != a && ((this.maskTextureInvert = a), this.setParameter_1(GT1397.prototype.PARAMETER_MASK_TEXTURE_INVERT)); }, getMaskTextureInvertParameter_0: function () { return this.maskTextureInvert; }, setParameter_1: function (a) { null != this.nativeFilter && this.nativeFilter.setParameter_1(a); }, getNativeFilter_0: function () { return this.nativeFilter; }, destroy_0: function () { null != this.nativeFilter && (this.nativeFilter.destroy_0(), (this.nativeFilter = null)); }, isSame_1: function (a) { return null != a && a.getFilterType_0() == this.getFilterType_0(); }, }, "GT1397", [] ); GT1397.prototype.FILTER_TYPE_BLUR = 0; GT1397.prototype.FILTER_TYPE_BLURX = 1; GT1397.prototype.FILTER_TYPE_BLURY = 2; GT1397.prototype.FILTER_TYPE_TWIST = 3; GT1397.prototype.FILTER_TYPE_INVERT = 4; GT1397.prototype.FILTER_TYPE_PIXELATE = 5; GT1397.prototype.FILTER_TYPE_DOTSCREEN = 6; GT1397.prototype.FILTER_TYPE_FISHEYE = 7; GT1397.prototype.FILTER_TYPE_COLORTRANSFORM = 8; GT1397.prototype.FILTER_TYPE_DISPLACEMENT = 9; GT1397.prototype.FILTER_TYPE_3DTRANSFORM = 10; GT1397.prototype.FILTER_TYPE_NORMALMAP = 11; GT1397.prototype.FILTER_TYPE_MOTION_BLUR = 12; GT1397.prototype.PARAMETER_MASK_TEXTURE_IMAGE = "maskTextureImage"; GT1397.prototype.PARAMETER_MASK_TEXTURE_OFFSET = "maskTextureOffset"; GT1397.prototype.PARAMETER_MASK_TEXTURE_SCALE = "maskTextureScale"; GT1397.prototype.PARAMETER_MASK_TEXTURE_INVERT = "maskTextureInvert"; var GT1395 = GT1397.extend( { initialConstructor_0: function () { this.blurY = this.blurX = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setBlurParameter_2(10, 10); }, getFilterType_0: function () { return GT1397.prototype.FILTER_TYPE_BLUR; }, setBlurParameter_2: function (a, b) { if (this.blurX != a || this.blurY != b) (this.blurX = a), (this.blurY = b), this.setParameter_1(GT1395.prototype.PARAMETER_BLURXY); }, getBlurXParameter_0: function () { return this.blurX; }, getBlurYParameter_0: function () { return this.blurY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getBlurXParameter_0() == this.blurX && a.getBlurYParameter_0() == this.blurY : !1; }, }, "GT1395", [] ); GT1395.prototype.PARAMETER_BLURXY = "blurXY"; var GT1338 = GT1397.extend( { initialConstructor_0: function () { this.blurX = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setBlurXParameter_1(10); }, getFilterType_0: function () { return this.FILTER_TYPE_BLURX; }, setBlurXParameter_1: function (a) { this.blurX != a && ((this.blurX = a), this.setParameter_1(GT1338.prototype.PARAMETER_BLURX)); }, getBlurXParameter_0: function () { return this.blurX; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getBlurXParameter_0() == this.blurX : !1; }, }, "GT1338", [] ); GT1338.prototype.PARAMETER_BLURX = "blurX"; var GT1339 = GT1397.extend( { initialConstructor_0: function () { this.blurY = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setBlurYParameter_1(10); }, getFilterType_0: function () { return this.FILTER_TYPE_BLURY; }, setBlurYParameter_1: function (a) { this.blurY != a && ((this.blurY = a), this.setParameter_1(GT1339.prototype.PARAMETER_BLURY)); }, getBlurYParameter_0: function () { return this.blurY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getBlurYParameter_0() == this.blurY : !1; }, }, "GT1339", [] ); GT1339.prototype.PARAMETER_BLURY = "blurY"; var GT878 = GT1397.extend( { initialConstructor_0: function () { this.colorTransform = null; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setColorTransformationParameter_1(GT1063.prototype.GrayOut); }, getFilterType_0: function () { return this.FILTER_TYPE_COLORTRANSFORM; }, setColorTransformationParameter_1: function (a) { (null != this.colorTransform && null != a && this.colorTransform.isSame_1(a)) || ((this.colorTransform = a), this.setParameter_1(GT878.prototype.PARAMETER_COLORTRANSFORM)); }, getColorTransformationParameter_0: function () { return this.colorTransform; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? null == this.colorTransform && null == a.getColorTransformationParameter_0() ? !0 : null != this.colorTransform && null != a.getColorTransformationParameter_0() && this.colorTransform.isSame_1(a.getColorTransformationParameter_0()) : !1; }, }, "GT878", [] ); GT878.prototype.PARAMETER_COLORTRANSFORM = "colorTransform"; var GT976 = GT1397.extend( { initialConstructor_0: function () { this.displacementMap = null; this.scaleY = this.scaleX = this.offsetY = this.offsetX = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setOffsetParameter_2(0, 0); this.setScaleParameter_2(30, 30); }, getFilterType_0: function () { return this.FILTER_TYPE_DISPLACEMENT; }, setDisplacementMapParameter_1: function (a) { this.displacementMap != a && ((this.displacementMap = a), this.setParameter_1(GT976.prototype.PARAMETER_DISPLACEMENTMAP)); }, getDisplacementMapParameter_0: function () { return this.displacementMap; }, setOffsetParameter_2: function (a, b) { if (this.offsetX != a || this.offsetY != b) (this.offsetX = a), (this.offsetY = b), this.setParameter_1(GT976.prototype.PARAMETER_OFFSET); }, getOffsetXParameter_0: function () { return this.offsetX; }, getOffsetYParameter_0: function () { return this.offsetY; }, setScaleParameter_2: function (a, b) { if (this.scaleX != a || this.scaleY != b) (this.scaleX = a), (this.scaleY = b), this.setParameter_1(GT976.prototype.PARAMETER_SCALE); }, getScaleXParameter_0: function () { return this.scaleX; }, getScaleYParameter_0: function () { return this.scaleY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getDisplacementMapParameter_0() == this.displacementMap && a.getScaleXParameter_0() == this.scaleX && a.getScaleYParameter_0() == this.scaleY && a.getOffsetXParameter_0() == this.offsetX && a.getOffsetYParameter_0() == this.offsetY : !1; }, }, "GT976", [] ); GT976.prototype.PARAMETER_DISPLACEMENTMAP = "displacementMap"; GT976.prototype.PARAMETER_OFFSET = "offset"; GT976.prototype.PARAMETER_SCALE = "scale"; var GT1136 = GT1397.extend( { initialConstructor_0: function () { this.scale = this.angle = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setAngleParameter_1(5); this.setScaleParameter_1(3); }, getFilterType_0: function () { return GT1397.prototype.FILTER_TYPE_DOTSCREEN; }, setAngleParameter_1: function (a) { this.angle != a && ((this.angle = a), this.setParameter_1(GT1136.prototype.PARAMETER_ANGLE)); }, getAngleParameter_0: function () { return this.angle; }, setScaleParameter_1: function (a) { this.scale != a && ((this.scale = a), this.setParameter_1(GT1136.prototype.PARAMETER_SCALE)); }, getScaleParameter_0: function () { return this.scale; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getScaleParameter_0() == this.scale && a.getAngleParameter_0() == this.angle : !1; }, }, "GT1136", [] ); GT1136.prototype.PARAMETER_ANGLE = "angle"; GT1136.prototype.PARAMETER_SCALE = "scale"; var GT1243 = GT1397.extend( { initialConstructor_0: function () { this.scaleY = this.scaleX = this.verticalDistortion = this.horizontalDistortion = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setDistortionParameter_2(5, 5); this.setScaleParameter_2(1, 1); }, getFilterType_0: function () { return this.FILTER_TYPE_FISHEYE; }, setDistortionParameter_2: function (a, b) { if (this.horizontalDistortion != a || this.verticalDistortion != b) (this.horizontalDistortion = a), (this.verticalDistortion = b), this.setParameter_1(GT1243.prototype.PARAMETER_DISTORTION); }, getHorizontalDistortionParameter_0: function () { return this.horizontalDistortion; }, getVerticalDistortionParameter_0: function () { return this.verticalDistortion; }, setScaleParameter_2: function (a, b) { if (this.scaleX != a || this.scaleY != b) (this.scaleX = a), (this.scaleY = b), this.setParameter_1(GT1243.prototype.PARAMETER_SCALE); }, getScaleXParameter_0: function () { return this.scaleX; }, getScaleYParameter_0: function () { return this.scaleY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getHorizontalDistortionParameter_0() == this.horizontalDistortion && a.getVerticalDistortionParameter_0() == this.verticalDistortion && a.getScaleXParameter_0() == this.scaleX && a.getScaleYParameter_0() == this.scaleY : !1; }, }, "GT1243", [] ); GT1243.prototype.PARAMETER_DISTORTION = "distortion"; GT1243.prototype.PARAMETER_SCALE = "scale"; var GT1289 = GT1397.extend( { initialConstructor_0: function () { this.invert = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setInvertParameter_1(1); }, getFilterType_0: function () { return this.FILTER_TYPE_INVERT; }, setInvertParameter_1: function (a) { this.invert != a && ((this.invert = a), this.setParameter_1(GT1289.prototype.PARAMETER_INVERT)); }, getInvertParameter_0: function () { return this.invert; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getInvertParameter_0() == this.invert : !1; }, }, "GT1289", [] ); GT1289.prototype.PARAMETER_INVERT = "invert"; var GT1082 = GT1397.extend( { initialConstructor_0: function () { this.direction = null; this.texelStep = this.lowPassFilterFactor = this.blur = 0; GT1397.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.direction = null; this.texelStep = this.lowPassFilterFactor = this.blur = 0; GT1397.prototype.initialConstructor_0.call(this); GT1650.prototype.assertExp_2(null != a, "Motion blur direction vector can not be null!"); this.direction = new GT1631(a.x, a.y); this.direction.normalize_0(); this.setParameter_1(GT1082.prototype.PARAMETER_DIRECTION); }, init_0: function () { this.setTextelStepParameter_1(3); this.setBlurParameter_1(30); this.setLowPassFilterFactorParameter_1(0.35); }, getFilterType_0: function () { return this.FILTER_TYPE_MOTION_BLUR; }, getDirectionParameter_0: function () { return this.direction; }, setBlurParameter_1: function (a) { this.blur != a && ((this.blur = a), this.setParameter_1(GT1082.prototype.PARAMETER_BLUR)); }, getBlurParameter_0: function () { return this.blur; }, setTextelStepParameter_1: function (a) { this.texelStep != a && ((this.texelStep = a), this.setParameter_1(GT1082.prototype.PARAMETER_TEXEL_STEP)); }, getTexelStepParameter_0: function () { return this.texelStep; }, setLowPassFilterFactorParameter_1: function (a) { this.lowPassFilterFactor != a && ((this.lowPassFilterFactor = a), this.setParameter_1(GT1082.prototype.PARAMETER_LOWPASS_FILTER)); }, getLowPassFilterFactorParameter_0: function () { return this.lowPassFilterFactor; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getBlurParameter_0() == this.blur && a.getLowPassFilterFactorParameter_0() == this.lowPassFilterFactor && a.getDirectionParameter_0().x == this.direction.x && a.getDirectionParameter_0().y == this.direction.y : !1; }, }, "GT1082", [] ); GT1082.prototype.PARAMETER_DIRECTION = "direction"; GT1082.prototype.PARAMETER_LOWPASS_FILTER = "lowpassfilter"; GT1082.prototype.PARAMETER_BLUR = "blur"; GT1082.prototype.PARAMETER_TEXEL_STEP = "texelstep"; var GT1139 = GT1397.extend( { initialConstructor_0: function () { this.normalMap = null; this.normalMapRotation = 0; this.ambientColor = this.lightColor = this.lightPos = null; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.lightPos = [].createArray(3).init(0); this.lightColor = [].createArray(4).init(0); this.ambientColor = [].createArray(4).init(0); this.setLightPositionParameter_3(0.5, 0.5, 0.5); this.setLightColorParameter_4(1, 1, 1, 1); this.setAmbientColorParameter_4(1, 1, 1, 0.4); }, getFilterType_0: function () { return this.FILTER_TYPE_NORMALMAP; }, setNormalMapParameter_1: function (a) { this.normalMap != a && ((this.normalMap = a), this.setParameter_1(GT1139.prototype.PARAMETER_NORMALMAP)); }, getNormalMapParameter_0: function () { return this.normalMap; }, setNormalMapRotationParameter_1: function (a) { this.normalMapRotation = a; this.setParameter_1(GT1139.prototype.PARAMETER_NORMALMAP_ROTATION); }, getNormalMapRotationParameter_0: function () { return this.normalMapRotation; }, setLightPositionParameter_3: function (a, b, d) { if (this.lightPos[0] != a || this.lightPos[1] != b || this.lightPos[2] != d) (this.lightPos[0] = a), (this.lightPos[1] = b), (this.lightPos[2] = d), this.setParameter_1(GT1139.prototype.PARAMETER_LIGHT_POS); }, getLightPositionParameter_0: function () { return this.lightPos; }, setLightColorParameter_4: function (a, b, d, e) { if (this.lightColor[0] != a || this.lightColor[1] != b || this.lightColor[2] != d || this.lightColor[3] != e) (this.lightColor[0] = a), (this.lightColor[1] = b), (this.lightColor[2] = d), (this.lightColor[3] = e), this.setParameter_1(GT1139.prototype.PARAMETER_LIGHT_COLOR); }, getLightColorParameter_0: function () { return this.lightColor; }, setAmbientColorParameter_4: function (a, b, d, e) { if (this.ambientColor[0] != a || this.ambientColor[1] != b || this.ambientColor[2] != d || this.ambientColor[3] != e) (this.ambientColor[0] = a), (this.ambientColor[1] = b), (this.ambientColor[2] = d), (this.ambientColor[3] = e), this.setParameter_1(GT1139.prototype.PARAMETER_AMBIENT_COLOR); }, getAmbientColorParameter_0: function () { return this.ambientColor; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getNormalMapParameter_0() == this.normalMap && a.getLightPositionParameter_0()[0] == this.lightPos[0] && a.getLightPositionParameter_0()[1] == this.lightPos[1] && a.getLightPositionParameter_0()[2] == this.lightPos[2] && a.getLightColorParameter_0()[0] == this.lightColor[0] && a.getLightColorParameter_0()[1] == this.lightColor[1] && a.getLightColorParameter_0()[2] == this.lightColor[2] && a.getLightColorParameter_0()[3] == this.lightColor[3] && a.getAmbientColorParameter_0()[0] == this.ambientColor[0] && a.getAmbientColorParameter_0()[1] == this.ambientColor[1] && a.getAmbientColorParameter_0()[2] == this.ambientColor[2] && a.getAmbientColorParameter_0()[3] == this.ambientColor[3] : !1; }, }, "GT1139", [] ); GT1139.prototype.PARAMETER_NORMALMAP = "normalMap"; GT1139.prototype.PARAMETER_NORMALMAP_ROTATION = "normalMapRotation"; GT1139.prototype.PARAMETER_LIGHT_POS = "lightPos"; GT1139.prototype.PARAMETER_LIGHT_COLOR = "lightColor"; GT1139.prototype.PARAMETER_AMBIENT_COLOR = "ambientColor"; var GT1194 = GT1397.extend( { initialConstructor_0: function () { this.pixelSizeY = this.pixelSizeX = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setPixelSizeParameter_2(10, 10); }, getFilterType_0: function () { return GT1397.prototype.FILTER_TYPE_PIXELATE; }, setPixelSizeParameter_2: function (a, b) { if (this.pixelSizeX != a || this.pixelSizeY != b) (this.pixelSizeX = a), (this.pixelSizeY = b), this.setParameter_1(GT1194.prototype.PARAMETER_PIXELSIZEXY); }, getPixelSizeXParameter_0: function () { return this.pixelSizeX; }, getPixelSizeYParameter_0: function () { return this.pixelSizeY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getPixelSizeXParameter_0() == this.pixelSizeX && a.getPixelSizeYParameter_0() == this.pixelSizeY : !1; }, }, "GT1194", [] ); GT1194.prototype.PARAMETER_PIXELSIZEXY = "pixelSizeXY"; var GT1340 = GT1397.extend( { initialConstructor_0: function () { this.offsetY = this.offsetX = this.angle = this.radius = 0; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.setRadiusParameter_1(0.5); this.setAngleParameter_1(5); this.setOffsetParameter_2(0.5, 0.5); }, getFilterType_0: function () { return this.FILTER_TYPE_TWIST; }, setRadiusParameter_1: function (a) { this.radius != a && ((this.radius = a), this.setParameter_1(GT1340.prototype.PARAMETER_RADIUS)); }, getRadiusParameter_0: function () { return this.radius; }, setAngleParameter_1: function (a) { this.angle != a && ((this.angle = a), this.setParameter_1(GT1340.prototype.PARAMETER_ANGLE)); }, getAngleParameter_0: function () { return this.angle; }, setOffsetParameter_2: function (a, b) { if (this.offsetX != a || this.offsetY != b) (this.offsetX = a), (this.offsetY = b), this.setParameter_1(GT1340.prototype.PARAMETER_OFFSET); }, getOffsetXParameter_0: function () { return this.offsetX; }, getOffsetYParameter_0: function () { return this.offsetY; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getAngleParameter_0() == this.angle && a.getRadiusParameter_0() == this.radius && a.getOffsetXParameter_0() == this.offsetX && a.getOffsetYParameter_0() == this.offsetY : !1; }, }, "GT1340", [] ); GT1340.prototype.PARAMETER_RADIUS = "radius"; GT1340.prototype.PARAMETER_ANGLE = "angle"; GT1340.prototype.PARAMETER_OFFSET = "offset"; var GT1290 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.filter = a; this.filterType = a.getFilterType_0(); this.filterType === GT1397.prototype.FILTER_TYPE_BLUR && (this.pixiFilter = new PIXI.BlurFilter()); this.filterType === GT1397.prototype.FILTER_TYPE_BLURX && (this.pixiFilter = new PIXI.BlurXFilter()); this.filterType === GT1397.prototype.FILTER_TYPE_BLURY ? (this.pixiFilter = new PIXI.BlurYFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_INVERT ? (this.pixiFilter = new PIXI.InvertFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_TWIST ? (this.pixiFilter = new PIXI.TwistFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_PIXELATE ? (this.pixiFilter = new PIXI.PixelateFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_DOTSCREEN ? (this.pixiFilter = new PIXI.DotScreenFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_FISHEYE ? (this.pixiFilter = new PIXI.FishEyeFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_COLORTRANSFORM ? (this.pixiFilter = new PIXI.ColorTransformFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_DISPLACEMENT ? (this.pixiFilter = new PIXI.DisplacementFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_3DTRANSFORM ? (this.pixiFilter = new PIXI.Transform3DFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_NORMALMAP ? (this.pixiFilter = new PIXI.NormalMapFilter()) : this.filterType === GT1397.prototype.FILTER_TYPE_MOTION_BLUR && (this.pixiFilter = new PIXI.MotionBlurFilter()); }, setParameter_1: function (a) { a === GT1397.prototype.PARAMETER_MASK_TEXTURE_IMAGE ? (this.pixiFilter.maskTexture = this.filter.getMaskTextureImageParameter_0().texture) : a === GT1397.prototype.PARAMETER_MASK_TEXTURE_OFFSET ? this.pixiFilter.maskTextureOffset ? ((this.pixiFilter.maskTextureOffset[0] = this.filter.getMaskTextureOffsetXParameter_0()), (this.pixiFilter.maskTextureOffset[1] = this.filter.getMaskTextureOffsetYParameter_0()), (this.pixiFilter.maskTextureOffset = this.pixiFilter.maskTextureOffset)) : (this.pixiFilter.maskTextureOffset = { x: this.filter.getMaskTextureOffsetXParameter_0(), y: this.filter.getMaskTextureOffsetYParameter_0() }) : a === GT1397.prototype.PARAMETER_MASK_TEXTURE_SCALE ? this.pixiFilter.maskTextureScale ? ((this.pixiFilter.maskTextureScale[0] = this.filter.getMaskTextureScaleXParameter_0()), (this.pixiFilter.maskTextureScale[1] = this.filter.getMaskTextureScaleYParameter_0()), (this.pixiFilter.maskTextureScale = this.pixiFilter.maskTextureScale)) : (this.pixiFilter.maskTextureScale = { x: this.filter.getMaskTextureScaleXParameter_0(), y: this.filter.getMaskTextureScaleYParameter_0() }) : a === GT1397.prototype.PARAMETER_MASK_TEXTURE_INVERT ? (this.pixiFilter.maskTextureInvert = this.filter.getMaskTextureInvertParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_BLUR ? a === GT1395.prototype.PARAMETER_BLURXY && ((this.pixiFilter.blurX = this.filter.getBlurXParameter_0()), (this.pixiFilter.blurY = this.filter.getBlurYParameter_0())) : this.filterType === GT1397.prototype.FILTER_TYPE_BLURX ? a === GT1338.prototype.PARAMETER_BLURX && (this.pixiFilter.blur = this.filter.getBlurXParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_BLURY ? a === GT1339.prototype.PARAMETER_BLURY && (this.pixiFilter.blur = this.filter.getBlurYParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_INVERT ? a === GT1289.prototype.PARAMETER_INVERT && (this.pixiFilter.invert = this.filter.getInvertParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_TWIST ? a === GT1340.prototype.PARAMETER_RADIUS ? (this.pixiFilter.radius = this.filter.getRadiusParameter_0()) : a === GT1340.prototype.PARAMETER_ANGLE ? (this.pixiFilter.angle = this.filter.getAngleParameter_0()) : a === GT1340.prototype.PARAMETER_OFFSET && (this.pixiFilter.offset ? ((this.pixiFilter.offset.x = this.filter.getOffsetXParameter_0()), (this.pixiFilter.offset.y = this.filter.getOffsetYParameter_0()), (this.pixiFilter.offset = this.pixiFilter.offset)) : (this.pixiFilter.offset = { x: this.filter.getOffsetXParameter_0(), y: this.filter.getOffsetYParameter_0() })) : this.filterType === GT1397.prototype.FILTER_TYPE_3DTRANSFORM ? a === GT1027.prototype.PARAMETER_FOV ? (this.pixiFilter.fov = this.filter.getFOVParameter_0()) : a === GT1027.prototype.PARAMETER_MATRIX && ((this.pixiFilter.preappliedProjectionMatrix = this.filter.isProjectionMatrixPreapplied_0()), (this.pixiFilter.transformMatrix = this.filter.getMatrixParameter_0())) : this.filterType === GT1397.prototype.FILTER_TYPE_NORMALMAP ? a === GT1139.prototype.PARAMETER_NORMALMAP ? (this.pixiFilter.map = this.filter.getNormalMapParameter_0().texture) : a === GT1139.prototype.PARAMETER_NORMALMAP_ROTATION ? (this.pixiFilter.mapRotation = this.filter.getNormalMapRotationParameter_0()) : a === GT1139.prototype.PARAMETER_LIGHT_POS ? (this.pixiFilter.lightPos = this.filter.getLightPositionParameter_0()) : a === GT1139.prototype.PARAMETER_LIGHT_COLOR ? (this.pixiFilter.lightColor = this.filter.getLightColorParameter_0()) : a === GT1139.prototype.PARAMETER_AMBIENT_COLOR && (this.pixiFilter.ambientColor = this.filter.getAmbientColorParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_PIXELATE ? a === GT1194.prototype.PARAMETER_PIXELSIZEXY && (this.pixiFilter.pixelSize ? ((this.pixiFilter.pixelSize.x = this.filter.getPixelSizeXParameter_0()), (this.pixiFilter.pixelSize.y = this.filter.getPixelSizeYParameter_0()), (this.pixiFilter.size = this.pixiFilter.pixelSize)) : (this.pixiFilter.size = { x: this.filter.getPixelSizeXParameter_0(), y: this.filter.getPixelSizeYParameter_0() })) : this.filterType === GT1397.prototype.FILTER_TYPE_DOTSCREEN ? a === GT1136.prototype.PARAMETER_ANGLE ? (this.pixiFilter.angle = this.filter.getAngleParameter_0()) : a === GT1136.prototype.PARAMETER_SCALE && (this.pixiFilter.scale = this.filter.getScaleParameter_0()) : this.filterType === GT1397.prototype.FILTER_TYPE_FISHEYE ? a === GT1243.prototype.PARAMETER_DISTORTION ? this.pixiFilter.distortion ? ((this.pixiFilter.distortion.x = this.filter.getHorizontalDistortionParameter_0()), (this.pixiFilter.distortion.y = this.filter.getVerticalDistortionParameter_0()), (this.pixiFilter.distortion = this.pixiFilter.distortion)) : (this.pixiFilter.distortion = { x: this.filter.getHorizontalDistortionParameter_0(), y: this.filter.getVerticalDistortionParameter_0() }) : a === GT1243.prototype.PARAMETER_SCALE && (this.pixiFilter.scale ? ((this.pixiFilter.scale.x = this.filter.getScaleXParameter_0()), (this.pixiFilter.scale.y = this.filter.getScaleYParameter_0()), (this.pixiFilter.scale = this.pixiFilter.scale)) : (this.pixiFilter.scale = { x: this.filter.getScaleXParameter_0(), y: this.filter.getScaleYParameter_0() })) : this.filterType === GT1397.prototype.FILTER_TYPE_COLORTRANSFORM ? a === GT878.prototype.PARAMETER_COLORTRANSFORM && (this.filter.getColorTransformationParameter_0() ? (this.pixiFilter.matrix = JSUTIL.webGLGlobalShader.convertToWebGLColorTransformationMatrix(this.pixiFilter.matrix, this.filter.getColorTransformationParameter_0())) : (this.pixiFilter.matrix = null)) : this.filterType === GT1397.prototype.FILTER_TYPE_DISPLACEMENT ? a === GT976.prototype.PARAMETER_DISPLACEMENTMAP ? (this.pixiFilter.map = this.filter.getDisplacementMapParameter_0().texture) : a === GT976.prototype.PARAMETER_OFFSET ? this.pixiFilter.offset ? ((this.pixiFilter.offset.x = this.filter.getOffsetXParameter_0()), (this.pixiFilter.offset.y = this.filter.getOffsetYParameter_0()), (this.pixiFilter.offset = this.pixiFilter.offset)) : (this.pixiFilter.offset = { x: this.filter.getOffsetXParameter_0(), y: this.filter.getOffsetYParameter_0() }) : a === GT976.prototype.PARAMETER_SCALE && (this.pixiFilter.scale ? ((this.pixiFilter.scale.x = this.filter.getScaleXParameter_0()), (this.pixiFilter.scale.y = this.filter.getScaleYParameter_0()), (this.pixiFilter.scale = this.pixiFilter.scale)) : (this.pixiFilter.scale = { x: this.filter.getScaleXParameter_0(), y: this.filter.getScaleYParameter_0() })) : this.filterType === GT1397.prototype.FILTER_TYPE_MOTION_BLUR && (a === GT1082.prototype.PARAMETER_BLUR ? (this.pixiFilter.blur = this.filter.getBlurParameter_0()) : a === GT1082.prototype.PARAMETER_LOWPASS_FILTER ? (this.pixiFilter.lowPassFilterFactor = this.filter.getLowPassFilterFactorParameter_0()) : a === GT1082.prototype.PARAMETER_DIRECTION ? (this.pixiFilter.motionBlurDirection = this.filter.getDirectionParameter_0()) : a === GT1082.prototype.PARAMETER_TEXEL_STEP && (this.pixiFilter.texelStep = this.filter.getTexelStepParameter_0())); CONFIG.CLIENTSLOTAPPLET.getTopContainer_0().addDirtyAreaRect(CONFIG.CLIENTSLOTAPPLET.getTopContainer_0()); }, destroy_0: function () {}, }, "GT1290", [] ), GT1323 = Class.extend({ initialConstructor_0: function () {} }, "GT1323", []); GT1323.prototype.NONE = new GT1323(); GT1323.prototype.ADD = new GT1323(); GT1323.prototype.ADD_INTENSIVE = new GT1323(); GT1323.prototype.MULTIPLY = new GT1323(); GT1323.prototype.SCREEN = new GT1323(); var GT931 = Class.extend( { initialConstructor_0: function () { this.applet = null; this.usedforskins = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.applet = null; this.usedforskins = !1; this.applet = a; this.usedforskins = b; }, resourceLoaded_3: function (a, b, d) { this.usedforskins ? this.applet.notifySkinLoaded_1(d >= b) : this.applet.notifyResourceLoaded_2(b, d); }, loadingFailed_3: function (a, b, d) { this.applet.notifyResourceLoadingFailed_1(a); }, }, "GT931", [GT863] ), GT1635 = Class.extend( { initialConstructor_0: function () { this.loadingListeners = this.resourceManager = null; this.lazyloading = !1; Class.prototype.initialConstructor_0.call(this); }, setResourceManager_1: function (a) { this.resourceManager = a; }, setLazyLoading_1: function (a) { this.lazyloading = a; }, isLazyLoading_0: function () { return this.lazyloading; }, addAssetLoadingListener_1: function (a) { null == this.loadingListeners && (this.loadingListeners = new java_util_JavaScriptVector()); this.loadingListeners.add_1(a); }, getAssetLoadingListeners_0: function () { return this.loadingListeners; }, triggerLoading_0: function () { this.triggerLoading_1(null); }, }, "GT1635", [] ), GT879 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, run_0: function () { this.applet.changedAnimatorBlockingState_0(); }, }, "GT879", [Runnable] ), Clipper = Class.extend( { initialConstructor_0: function () { this.__tmp_vertices = []; this.__tmp_outlist = []; this.__tmp_outlist2 = []; }, clipRect_RRC_3: function (a, b, d) { return d.isAxisAlignedRect_0() ? this.clipRect_RRR_3(a, b, d.getAxisAlignedRect_0()) : null; }, clipRect_RRR_3: function (a, b, d) { var e = d.x + d.width, f = d.y + d.height; if (a.x > e || a.y > f) return !1; var g = a.x + a.width, k = a.y + a.height; if (g < d.x || k < d.y) return !1; if (!d.contains_1(a)) { var m = GTObjPool.getTempRect_1(a), n = null != b ? GTObjPool.getTempRect_1(b) : null; a.x < d.x && (null != b && (n.x += ((d.x - a.x) / a.width) * b.width), (m.x = d.x)); if (g > e) { if (null != b) { var p = b.x + b.width, p = p - ((g - e) / a.width) * b.width; n.width = p - n.x; } m.width = e - m.x; } else a.x != m.x && (null != b && (n.width = b.x + b.width - n.x), (m.width = g - m.x)); a.y < d.y && (null != b && (n.y += ((d.y - a.y) / a.height) * b.height), (m.y = d.y)); k > f ? (null != b && ((d = b.y + b.height), (d -= ((k - f) / a.height) * b.height), (n.height = d - n.y)), (m.height = f - m.y)) : a.y != m.y && (null != b && (n.height = b.y + b.height - n.y), (m.height = k - m.y)); a.setBounds_1(m); n && b.setBounds_1(n); GTObjPool.recycleTempRect(m); n && GTObjPool.recycleTempRect(n); } return !0; }, clipRect_CRR_3: function (a, b, d) { if (!a.isAxisAlignedRect_0()) return this.clip_CRR_3(a, b, d); if (this.clipRect_RRR_3(b, d, a.getAxisAlignedRect_0())) { a = []; for (var e = 0; 4 > e; e++) a.push(new Vertex2D()); a[0].setPos_2(b.x, b.y); a[1].setPos_2(b.x + b.width, b.y); a[2].setPos_2(b.x + b.width, b.y + b.height); a[3].setPos_2(b.x, b.y + b.height); null != d && (a[0].setUv_2(d.x, d.y), a[1].setUv_2(d.x + d.width, d.y), a[2].setUv_2(d.x + d.width, d.y + d.height), a[3].setUv_2(d.x, d.y + d.height)); return a; } return null; }, clip_RRR_3: function (a, b, d) { d = GTObjPool.getTempRect_4(d.x, d.y, d.width, d.height); a = this.clipRect_RRR_3(a, b, d); GTObjPool.recycleTempRect(d); return a; }, clip_CRR_3: function (a, b, d) { if (a.isAxisAlignedRect_0()) return this.clipRect_CRR_3(a, b, d); if (0 === this.__tmp_vertices.length) { this.__tmp_vertices.length = 4; for (var e = 0; 4 > e; e++) this.__tmp_vertices[e] = new Vertex2D(); } this.__tmp_vertices[0].setPos_2(b.x, b.y); this.__tmp_vertices[1].setPos_2(b.x + b.width, b.y); this.__tmp_vertices[2].setPos_2(b.x + b.width, b.y + b.height); this.__tmp_vertices[3].setPos_2(b.x, b.y + b.height); null != d && (this.__tmp_vertices[0].setUv_2(d.x, d.y), this.__tmp_vertices[1].setUv_2(d.x + d.width, d.y), this.__tmp_vertices[2].setUv_2(d.x + d.width, d.y + d.height), this.__tmp_vertices[3].setUv_2(d.x, d.y + d.height)); return this.clip_2(a, this.__tmp_vertices); }, clip_CAR_3: function (a, b, d) { if (0 === this.__tmp_vertices.length) { this.__tmp_vertices.length = 4; for (var e = 0; 4 > e; e++) this.__tmp_vertices[e] = new Vertex2D(); } this.__tmp_vertices[0].setPos_2(b[0], b[1]); this.__tmp_vertices[1].setPos_2(b[2], b[3]); this.__tmp_vertices[2].setPos_2(b[4], b[5]); this.__tmp_vertices[3].setPos_2(b[6], b[7]); null != d && (this.__tmp_vertices[0].setUv_2(d.x, d.y), this.__tmp_vertices[1].setUv_2(d.x + d.width, d.y), this.__tmp_vertices[2].setUv_2(d.x + d.width, d.y + d.height), this.__tmp_vertices[3].setUv_2(d.x, d.y + d.height)); return this.clip_2(a, this.__tmp_vertices); }, clip_2: function (a, b) { var d = b.length; if (3 > d) return null; for (var e = this.__tmp_outlist, f = this.__tmp_outlist2, g = (e.length = 0); g < d; g++) e.push(b[g]); for (var d = a.isAxisAlignedRect_0() ? 4 : a.getNumPoints_0(), k = GTObjPool.getVec2Object(), m = GTObjPool.getVec2Object(), g = 0; g < d; g++) { a.isAxisAlignedRect_0() ? this.setPointsFromRect_4(g, a.getAxisAlignedRect_0(), k, m) : (k.set_1(a.getPoint_1(g)), m.set_1(a.getPoint_1((g + 1) % d))); var n = f, f = e, e = n; e.length = 0; for (var n = f.length, p = f[n - 1], q = 0; q < n; q++) { var r = f[q], t = p.pos.getSideOfLine_2(k, m), u = r.pos.getSideOfLine_2(k, m), t = 1 == t || 0 == t; 1 == u || 0 == u ? (t || ((u = new Vertex2D()), u.setIntersection_4(p, r, k, m), this.addToList_2(e, u)), this.addToList_2(e, r)) : t && ((u = new Vertex2D()), u.setIntersection_4(p, r, k, m), this.addToList_2(e, u)); p = r; } if (0 == e.length) break; } GTObjPool.recycleVec2Object(k); GTObjPool.recycleVec2Object(m); return 3 > e.length ? null : e; }, addToList_2: function (a, b) { (0 < a.length && a[a.length - 1].equals_1(b)) || a.push(b); }, setPointsFromRect_4: function (a, b, d, e) { var f = b.x + b.width, g = b.y + b.height; switch (a) { case 0: d.set_2(b.x, b.y); e.set_2(f, b.y); break; case 1: d.set_2(f, b.y); e.set_2(f, g); break; case 2: d.set_2(f, g); e.set_2(b.x, g); break; case 3: d.set_2(b.x, g), e.set_2(b.x, b.y); } }, }, "Clipper", [] ); "undefined" === typeof window.JSUTIL.clipper && (window.JSUTIL.clipper = new Clipper()); var ClipRegion = Class.extend( { initialConstructor_0: function () { this.mPoints = []; this.mIsAxisAlignedRect = !1; this.mRect = new GT1553(0, 0, 0, 0); }, set_1: function (a) { this.mPoints.length = 0; if (a.mIsAxisAlignedRect) this.mRect.setBounds_4(a.mRect.x, a.mRect.y, a.mRect.width, a.mRect.height); else { this.mRect.setBounds_4(0, 0, 0, 0); for (var b in a.mPoints) this.mPoints.push(b); } this.mIsAxisAlignedRect = a.mIsAxisAlignedRect; }, setClip_4: function (a, b, d, e) { this.mPoints.length = 0; this.mIsAxisAlignedRect = !0; this.mRect.setBounds_4(a, b, d - a, e - b); }, setClip_1: function (a) { this.mPoints.length = 0; this.mRect.setBounds_4(a.x, a.y, a.width, a.height); this.mIsAxisAlignedRect = !0; }, setClipPoints_1: function (a) { this.mPoints.length = 0; this.mIsAxisAlignedRect = !1; for (var b in a) this.mPoints.push(b); }, scale_2: function (a, b) { if (this.mIsAxisAlignedRect) (this.mRect.x *= a), (this.mRect.y *= b), (this.mRect.width *= a), (this.mRect.height *= b); else for (var d in this.mPoints) d.scale_2(a, b); }, offset_2: function (a, b) { if (this.mIsAxisAlignedRect) (this.mRect.x += a), (this.mRect.y += b); else for (var d in this.mPoints) d.add_2(a, b); }, applyMatrix_1: function (a) { this.convertRectToPoints_0(); var b = GTObjPool.getVec2Object(); b.set_2(Number.MAX_VALUE, Number.MAX_VALUE); var d = GTObjPool.getVec2Object(); d.set_2(Number.MIN_VALUE, Number.MIN_VALUE); for (var e in this.mPoints) e.set_2(a[0] * e.x + a[2] * e.y, a[1] * e.x + a[3] * e.y), b.setMin_2(b, e), d.setMax_2(d, e); this.checkIfRegionIsAxisAlignedRect_2(b, d); this.mIsAxisAlignedRect && (this.mRect.setBounds_4(b.x, b.y, d.x, d.y), (this.mPoints.length = 0)); GTObjPool.recycleVec2Object(b); GTObjPool.recycleVec2Object(d); }, checkIfRegionIsAxisAlignedRect_2: function (a, b) { var d = null != a && null != b; if (!d) { a = GTObjPool.getVec2Object(); a.set_2(Number.MAX_VALUE, Number.MAX_VALUE); b = GTObjPool.getVec2Object(); b.set_2(Number.MIN_VALUE, Number.MIN_VALUE); for (var e in this.mPoints) a.setMin_2(a, e), b.setMax_2(b, e); } var f = 0, g = 0, k = 0, m = 0; for (e in this.mPoints) e.x == a.x && f++, e.y == a.y && g++, e.x == b.x && k++, e.y == b.y && m++; this.mIsAxisAlignedRect = 2 == f && 2 == k && 2 == g && 2 == m; d || (GTObjPool.recycleVec2Object(a), GTObjPool.recycleVec2Object(b)); }, convertRectToPoints_0: function () { this.mPoints.length = 0; var a = this.mRect.x + this.mRect.width, b = this.mRect.y + this.mRect.height; this.mPoints.push(new GT1631(this.mRect.x, this.mRect.y)); this.mPoints.push(new GT1631(a, this.mRect.y)); this.mPoints.push(new GT1631(a, b)); this.mPoints.push(new GT1631(this.mRect.x, b)); this.mRect.setBounds_4(0, 0, 0, 0); }, clip_1: function (a) { if (this.mIsAxisAlignedRect) { var b = this.mRect.x + this.mRect.width, d = a.x + a.width, e = this.mRect.y + this.mRect.height, f = a.y + a.height; if (this.mRect.x < d && a.x < b && this.mRect.y < f && a.y < e) return this.mRect.x < a.x && (this.mRect.x = a.x), this.mRect.y < a.y && (this.mRect.y = a.y), (this.mRect.width = (b > d ? d : b) - this.mRect.x), (this.mRect.height = (e > f ? f : e) - this.mRect.y), !0; this.mRect.x = 0; this.mRect.y = 0; this.mRect.width = 0; this.mRect.height = 0; } return !1; }, isEmpty_0: function () { if (this.mIsAxisAlignedRect) return 0 == this.mRect.getWidth_0() || 0 == this.mRect.getHeight_0(); }, intersects_4: function (a, b, d, e) { if (this.mIsAxisAlignedRect) return this.mRect.intersects_4(a, b, d - a, e - b); var f = GTObjPool.getTempRect(); this.getBoundingRect_1(f); a = f.intersects_4(a, b, d - a, e - b); GTObjPool.recycleTempRect(f); return a; }, intersects_1: function (a) { if (this.mIsAxisAlignedRect) return this.mRect.intersects_1(a); var b = GTObjPool.getTempRect(); this.getBoundingRect_1(b); a = b.intersects_1(a); GTObjPool.recycleTempRect(b); return a; }, intersects_2: function (a, b) { var d = Number.MAX_VALUE, e = Number.MIN_VALUE, f = Number.MAX_VALUE, g = Number.MIN_VALUE, k; for (k in a) d > k && (d = k), e < k && (e = k); for (var m in b) f > m && (f = m), g < m && (g = m); return this.intersects_4(d, f, e, g); }, getNumPoints_0: function () { return this.mPoints.length; }, getPoint_1: function (a) { return this.mPoints[a]; }, isAxisAlignedRect_0: function () { return this.mIsAxisAlignedRect; }, getBoundingRect_1: function (a) { var b = Number.MAX_VALUE, d = Number.MAX_VALUE, e = Number.MIN_VALUE, f = Number.MIN_VALUE, g; for (g in this.mPoints) g.x < b && (b = g.x), g.y < d && (d = g.y), g.x > e && (e = g.x), g.y > f && (f = g.y); a.setBounds_4(b, d, e - b, f - d); }, clear_0: function () { this.mPoints.length = 0; }, getAxisAlignedRect_0: function () { return this.mRect; }, }, "ClipRegion", [] ), GT1636 = Class.extend( { initialConstructor_0: function () { this.reset_0(); this.updateCurrentTime_0(); }, reset_0: function () { this.timerTicksAtProgramStart = Date.now(); }, currentTimeMillis_0: function () { return this.currentTime; }, updateCurrentTime_0: function () { this.currentTime = Date.now() - this.timerTicksAtProgramStart; }, }, "GT1636", [] ), GT1634 = Class.extend( { initialConstructor_4: function (a, b, d, e) { this.value = ((a & 255) << 16) | ((b & 255) << 8) | ((d & 255) << 0); }, initialConstructor_3: function (a, b, d) { this.value = ((a & 255) << 16) | ((b & 255) << 8) | ((d & 255) << 0); }, initialConstructor_1: function (a) { this.value = a; }, toString: function () { return this.classname + "[r=" + this.getRed_0() + ",g=" + this.getGreen_0() + ",b=" + this.getBlue_0() + "]"; }, getRed_0: function () { return (this.value >> 16) & 255; }, getGreen_0: function () { return (this.value >> 8) & 255; }, getBlue_0: function () { return this.value & 255; }, getRGB_0: function () { return this.value & 16777215; }, getRGBString_0: function () { return "rgb(" + this.getRed_0() + "," + this.getGreen_0() + "," + this.getBlue_0() + ")"; }, getRGBAString_1: function (a) { return "rgba(" + this.getRed_0() + "," + this.getGreen_0() + "," + this.getBlue_0() + "," + a / 255 + ")"; }, }, "GT1634", [] ); GT1634.prototype.white = new GT1634(255, 255, 255); GT1634.prototype.lightGray = new GT1634(192, 192, 192); GT1634.prototype.gray = new GT1634(128, 128, 128); GT1634.prototype.darkGray = new GT1634(64, 64, 64); GT1634.prototype.black = new GT1634(0, 0, 0); GT1634.prototype.red = new GT1634(255, 0, 0); GT1634.prototype.pink = new GT1634(255, 175, 175); GT1634.prototype.orange = new GT1634(255, 200, 0); GT1634.prototype.yellow = new GT1634(255, 255, 0); GT1634.prototype.green = new GT1634(0, 255, 0); GT1634.prototype.magenta = new GT1634(255, 0, 255); GT1634.prototype.cyan = new GT1634(0, 255, 255); GT1634.prototype.blue = new GT1634(0, 0, 255); var GT1063 = Class.extend( { initialConstructor_1: function (a) { GT1063.prototype.initialConstructor_6.call(this, a, 0, a, 0, a, 0); 55 >= a && (this.workaroundwithdiv = !0); }, initialConstructor_2: function (a, b) { GT1063.prototype.initialConstructor_6.call(this, a, b, a, b, a, b); }, initialConstructor_6: function (a, b, d, e, f, g) { this.percentageRedFromRed = a; this.percentageRedFromBlue = this.percentageRedFromGreen = 0; this.offsetRed = b; this.percentageGreenFromRed = 0; this.percentageGreenFromGreen = d; this.percentageGreenFromBlue = 0; this.offsetGreen = e; this.percentageBlueFromGreen = this.percentageBlueFromRed = 0; this.percentageBlueFromBlue = f; this.offsetBlue = g; }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.percentageRedFromRed = a; this.percentageRedFromGreen = b; this.percentageRedFromBlue = d; this.offsetRed = e; this.percentageGreenFromRed = f; this.percentageGreenFromGreen = g; this.percentageGreenFromBlue = k; this.offsetGreen = m; this.percentageBlueFromRed = n; this.percentageBlueFromGreen = p; this.percentageBlueFromBlue = q; this.offsetBlue = r; }, getPercentageRedFromRed_0: function () { return this.percentageRedFromRed; }, getPercentageRedFromGreen_0: function () { return this.percentageRedFromGreen; }, getPercentageRedFromBlue_0: function () { return this.percentageRedFromBlue; }, getOffsetRed_0: function () { return this.offsetRed; }, getPercentageGreenFromRed_0: function () { return this.percentageGreenFromRed; }, getPercentageGreenFromGreen_0: function () { return this.percentageGreenFromGreen; }, getPercentageGreenFromBlue_0: function () { return this.percentageGreenFromBlue; }, getOffsetGreen_0: function () { return this.offsetGreen; }, getPercentageBlueFromRed_0: function () { return this.percentageBlueFromRed; }, getPercentageBlueFromGreen_0: function () { return this.percentageBlueFromGreen; }, getPercentageBlueFromBlue_0: function () { return this.percentageBlueFromBlue; }, getOffsetBlue_0: function () { return this.offsetBlue; }, isIdentic_1: function (a) { return a == this ? !0 : null == a ? !1 : a.percentageRedFromRed == this.percentageRedFromRed && a.percentageRedFromGreen == this.percentageRedFromGreen && a.percentageRedFromBlue == this.percentageRedFromBlue && a.offsetRed == this.offsetRed && a.percentageGreenFromRed == this.percentageGreenFromRed && a.percentageGreenFromGreen == this.percentageGreenFromGreen && a.percentageGreenFromBlue == this.percentageGreenFromBlue && a.offsetGreen == this.offsetGreen && a.percentageBlueFromRed == this.percentageBlueFromRed && a.percentageBlueFromGreen == this.percentageBlueFromGreen && a.percentageBlueFromBlue == this.percentageBlueFromBlue && a.offsetBlue == this.offsetBlue; }, add_1: function (a) { var b = this.percentageRedFromRed, d = this.percentageGreenFromRed, e = this.percentageBlueFromRed, f = this.percentageRedFromGreen, g = this.percentageGreenFromGreen, k = this.percentageBlueFromGreen, m = this.percentageRedFromBlue, n = this.percentageGreenFromBlue, p = this.percentageBlueFromBlue, q = this.offsetRed, r = this.offsetGreen, t = this.offsetBlue, u = a.percentageRedFromRed, B = a.percentageGreenFromRed, A = a.percentageBlueFromRed, C = a.percentageRedFromGreen, E = a.percentageGreenFromGreen, F = a.percentageBlueFromGreen, D = a.percentageRedFromBlue, H = a.percentageGreenFromBlue, I = a.percentageBlueFromBlue, L = a.offsetRed, J = a.offsetGreen; a = a.offsetBlue; return new GT1063( Math.div(u * b + C * d + D * e, 100), Math.div(u * f + C * g + D * k, 100), Math.div(u * m + C * n + D * p, 100), Math.div(u * q + C * r + D * t, 100) + L, Math.div(B * b + E * d + H * e, 100), Math.div(B * f + E * g + H * k, 100), Math.div(B * m + E * n + H * p, 100), Math.div(B * q + E * r + H * t, 100) + J, Math.div(A * b + F * d + I * e, 100), Math.div(A * f + F * g + I * k, 100), Math.div(A * m + F * n + I * p, 100), Math.div(A * q + F * r + I * t, 100) + a ); }, transform_1: function (a) { var b = a.getRed_0(), d = a.getGreen_0(), e = a.getBlue_0(); a = Math.div(b * this.percentageRedFromRed, 100) + Math.div(d * this.percentageRedFromGreen, 100) + Math.div(e * this.percentageRedFromBlue, 100) + this.offsetRed; var f = Math.div(b * this.percentageGreenFromRed, 100) + Math.div(d * this.percentageGreenFromGreen, 100) + Math.div(e * this.percentageGreenFromBlue, 100) + this.offsetGreen, b = Math.div(b * this.percentageBlueFromRed, 100) + Math.div(d * this.percentageBlueFromGreen, 100) + Math.div(e * this.percentageBlueFromBlue, 100) + this.offsetBlue; return new GT1634(0 > a ? 0 : 255 < a ? 255 : a, 0 > f ? 0 : 255 < f ? 255 : f, 0 > b ? 0 : 255 < b ? 255 : b); }, toString: function () { return ( "ColorTransformation: R[" + this.percentageRedFromRed + "," + this.percentageRedFromGreen + "," + this.percentageRedFromBlue + "," + this.offsetRed + "] G[" + this.percentageGreenFromRed + "," + this.percentageGreenFromGreen + "," + this.percentageGreenFromBlue + "," + this.offsetGreen + "] B[" + this.percentageBlueFromRed + "," + this.percentageBlueFromGreen + "," + this.percentageBlueFromBlue + "," + this.offsetBlue + "]" ); }, isSame_1: function (a) { return a == this ? !0 : null == a ? !1 : this.percentageRedFromRed == a.percentageRedFromRed && this.percentageRedFromGreen == a.percentageRedFromGreen && this.percentageRedFromBlue == a.percentageRedFromBlue && this.offsetRed == a.offsetRed && this.percentageGreenFromRed == a.percentageGreenFromRed && this.percentageGreenFromGreen == a.percentageGreenFromGreen && this.percentageGreenFromBlue == a.percentageGreenFromBlue && this.offsetGreen == a.offsetGreen && this.percentageBlueFromRed == a.percentageBlueFromRed && this.percentageBlueFromGreen == a.percentageBlueFromGreen && this.percentageBlueFromBlue == a.percentageBlueFromBlue && this.offsetBlue == a.offsetBlue; }, }, "GT1063", [] ); GT1063.prototype.Highlight = new GT1063(120, 30); GT1063.prototype.GrayOut = new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0); GT1063.prototype.Sepia = new GT1063(41, 40, 27, 25, 34, 33, 22, 25, 30, 29, 20, 20); var GT1537 = Class.extend( { initialConstructor_0: function () { this.index = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.index = 0; this.index = a; }, idx_0: function () { return this.index; }, }, "GT1537", [] ); GT1537.prototype.fromString_1 = function (a) { return GT1677.prototype.equalsIgnoreCaseAZ_2(a, "NONE") ? GT1537.prototype.NONE : GT1677.prototype.equalsIgnoreCaseAZ_2(a, "HAND") ? GT1537.prototype.HAND : GT1677.prototype.equalsIgnoreCaseAZ_2(a, "MOVE") ? GT1537.prototype.MOVE : GT1537.prototype.STANDARD; }; GT1537.prototype.NONE = new GT1537(0); GT1537.prototype.STANDARD = new GT1537(1); GT1537.prototype.HAND = new GT1537(2); GT1537.prototype.MOVE = new GT1537(3); GT1537.prototype.WAIT = new GT1537(4); GT1537.prototype.TEXT = new GT1537(5); var GT1492 = Class.extend( { initialConstructor_1: function (a) { this.font = a; }, initialConstructor_4: function (a, b, d, e) { this.name = GT1492.prototype._getFullName(a, d, e); this.size = b; this.weight = d; this.style = e; this.customFontHeight = this.height = -1; this.styleKey = (d ? "bold " : "") + (e ? "italic " : "") + b + "px " + a; }, getHeight_0: function () { var a = JSUTIL.getOpenTypeCustomFont(this.name, this.weight, this.style); if (null !== a) -1 === this.customFontHeight && (this.customFontHeight = this.height = PIXI.Text.prototype.determineFontProperties(this.styleKey, a, this.size).fontSize); else { if (-1 !== this.height) return this.height; this.height = PIXI.Text.prototype.determineFontProperties((this.weight ? "bold " : "") + (this.style ? "italic " : "") + this.size + "px " + this.name).fontSize; } return this.height; }, stringWidth_1: function (a) { return CONFIG.CLIENTSLOTAPPLET.getTopContainer_0().stringWidth_2(this, a); }, getAscent_0: function () { return 0; }, getLeading_0: function () { return 0; }, }, "GT1492", [] ); GT1492.prototype._getFullName = function (a, b, d) { if (0 != CONFIG.get("webfonts") && "1" != JSUTIL.getParameter("vectortext") && -1 == a.indexOf("arial") && -1 == a.indexOf("times") && -1 == a.indexOf("verdana") && -1 == a.indexOf("courier") && -1 == a.indexOf("georgia")) { if (b || d) a += "_"; b && (a += "bold"); d && (a += "italic"); } return a; }; var GT1398 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1398", [] ), GT1448 = Class.extend( { initialConstructor_0: function () { this.tagLength = this.position = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.tagLength = this.position = 0; this.position = a; this.tagLength = b; }, }, "GT1448", [] ), GT932 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compare_2: function (a, b) { return a.position < b.position ? -1 : a.position == b.position ? 0 : 1; }, }, "GT932", [java_util_Comparator] ); GT1398.prototype.removeUserLinkFromString_1 = function (a) { var b = a.indexOf_1("user:"); if (-1 == b) return a; var d = a.indexOf_2(":", b + 5); if (-1 == d) return a; a = "" + a.substring_2(0, b) + a.substring_2(b + 5, d) + a.substring_1(d + 1); return this.removeUserLinkFromString_1(a); }; GT1398.prototype.getTextBlockWidth_3 = function (a, b, d) { b = new GT1606(a.getParent_0(), 0, 0, d, b, GT1634.prototype.black); instanceOf(a, GT1449) && b.setOutline_2(a.getOutline_0(), GT1634.prototype.black); a = b.getWidth_0(); b.destroy_0(); return a; }; GT1398.prototype.stringWidthImplWithImages_5 = function (a, b, d, e, f) { d = this.removeUserLinkFromString_1(d); for (var g = new java_util_JavaScriptVector(), k = new java_util_JavaScriptVector(), m = 0, n = e.length - 1; 0 <= n; n--) { var p = e[n]; if (null != p) for (var q = d.indexOf_1(p); 0 <= q; ) if ((k.contains_1(new Integer(q)) || (g.add_1(new GT1448(q, p.length_0())), (m += f[n]), k.add_1(new Integer(q))), q + 1 < d.length_0())) q = d.indexOf_2(p, q + 1); else break; } if (0 == g.size_0()) return this.getTextBlockWidth_3(a, b, d) + m; GT1679.prototype.sortVector_3(g, new GT932(), !0); k = e = f = n = 0; k = g.get_1(0); 0 == k.position ? ((f = k.tagLength), (k = 1 < g.size_0() ? g.get_1(1).position : d.length_0()), (n = 1)) : (k = k.position); for (f < k && (e += this.getTextBlockWidth_3(a, b, d.substring_2(f, k))); n < g.size_0(); n++) (f = g.get_1(n)), (f = f.position + f.tagLength), n != g.size_0() - 1 ? ((k = k = g.get_1(n + 1)), (k = k.position)) : (k = d.length_0()), f < k && (e += this.getTextBlockWidth_3(a, b, d.substring_2(f, k))); return e + m; }; GT1398.prototype.computeWordWrapVectorWithImages_7 = function (a, b, d, e, f, g, k) { var m = new java_util_JavaScriptVector(); if (null == b) return m; if (1 > b.length_0()) return m.addElement_1(""), m; if (0 <= b.indexOf_1(10)) { b = GT1677.prototype.tokenize_3(b, "\n", !0); for (var n = 0; n < b.length; n++) for (var p = n, q = this.computeWordWrapVectorWithImages_7(a, b[p], d, e, f, g, k), r = 0; r < q.size_0(); r++) m.addElement_1(q.elementAt_1(r)); return m; } for (; null != b; ) { q = b.replace_2(JSUTIL.MathUtil.castToChar(160), JSUTIL.MathUtil.castToChar(32)); n = 0 == m.size_0() ? f : f - this.stringWidthImplWithImages_5(a, e, d, g, k); if (1 > q.length_0() || this.stringWidthImplWithImages_5(a, e, q, g, k) <= n) return (n = 0 == m.size_0() ? q : d.concat_1(q)), m.addElement_1(n), m; var t = this.countCharactersThatFitWithImages_6(a, q, e, n, g, k); 1 > t && (t = 1); p = 0; if (t < b.length_0() && 32 < b.charAt_1(t)) for (n = t - 1; 0 <= n; n--) { if (32 >= b.charAt_1(n)) { p = n + 1; break; } } else p = t; r = b.length_0(); t = 0 < p ? p : t; for (n = 0; n < g.length; n++) if (null != g[n]) for (p = b.indexOf_1(g[n]); 0 <= p; ) if ((t > p && t < p + g[n].length_0() && (t = p), p + 1 < b.length_0())) p = b.indexOf_2(g[n], p + 1); else break; for (n = t; 0 < n && b.charAt_1(n - 1) == JSUTIL.MathUtil.castToChar(32); ) n--; for (; t < r && b.charAt_1(t) == JSUTIL.MathUtil.castToChar(32); ) t++; n = q.substring_2(0, n); n = 0 == m.size_0() ? n : d.concat_1(n); m.addElement_1(n); b = b.substring_1(t); } return null; }; GT1398.prototype.computeWordWrapWithImages_7 = function (a, b, d, e, f, g, k) { a = this.computeWordWrapVectorWithImages_7(a, b, d, e, f, g, k); b = [].createArray(a.size_0()); for (d = 0; d < b.length; d++) b[d] = a.elementAt_1(d); return b; }; GT1398.prototype.computeWordWrapWithSmilies_7 = function (a, b, d, e, f, g, k) { for (var m = [].createArray(g.length).init(0), n = 0; n < m.length; ++n) m[n] = k; return this.computeWordWrapWithImages_7(a, b, d, e, f, g, m); }; GT1398.prototype.countCharactersThatFitWithImages_6 = function (a, b, d, e, f, g) { var k = this.stringWidthImplWithImages_5(a, d, b.substring_2(0, Math.min_2(b.length_0(), 20)), f, g) / Math.min_2(b.length_0(), 20), m = Integer.truncate_1(k * b.length_0()); if (m <= e && ((m = this.stringWidthImplWithImages_5(a, d, b, f, g)), m <= e)) return b.length_0(); for (var n = Math.min_2(e / m, 1), m = 0, p = b.length_0() + 1, n = Integer.truncate_1(Math.floor_1((p - m) * n + m)), q = this.stringWidthImplWithImages_5(a, d, b.substring_2(0, n), f, g); 0 <= m; ) if (((q = Integer.truncate_1(Math.floor_1((e - q) / k))), (n += q), n >= p ? (n = p - 1) : n <= m && (n = m + 1), (q = this.stringWidthImplWithImages_5(a, d, b.substring_2(0, n), f, g)), q > e ? (p = n) : (m = n), m == p - 1)) return m; return 0; }; GT1398.prototype.countCharactersThatFit_5 = function (a, b, d, e, f) { if (0 >= e) return 0; null != f && (f[0]++, (f[1] += Math.min_2(b.length_0(), 20))); var g = a.stringWidth_2(d, b.substring_2(0, Math.min_2(b.length_0(), 20))) / Math.min_2(b.length_0(), 20), k = Integer.truncate_1(g * b.length_0()); if (k <= e && (null != f && (f[0]++, (f[1] += b.length_0())), (k = a.stringWidth_2(d, b)), k <= e)) return b.length_0(); var m = Math.min_2(e / k, 1), k = 0, n = b.length_0() + 1, m = Integer.truncate_1(Math.floor_1((n - k) * m + k)); null != f && (f[0]++, (f[1] += m)); for (var p = a.stringWidth_2(d, b.substring_2(0, m)); 0 <= k; ) if ( ((p = Integer.truncate_1(Math.floor_1((e - p) / g))), (m += p), m >= n ? (m = n - 1) : m <= k && (m = k + 1), null != f && (f[0]++, (f[1] += m)), (p = a.stringWidth_2(d, b.substring_2(0, m))), p > e ? (n = m) : (k = m), k == n - 1) ) return k; return 0; }; GT1398.prototype.countCharactersThatFit_4 = function (a, b, d, e) { return this.countCharactersThatFit_5(a, b, d, e, null); }; GT1398.prototype.countCharactersThatFitOld_5 = function (a, b, d, e, f) { for (var g = 0, k = b.length_0(); 0 <= g; ) { if (g >= k) return g; var m = (g + k + 1) >> 1; f[0]++; f[1] += m; a.stringWidth_2(d, b.substring_2(0, m)) > e ? (k = m - 1) : (g = m); } return 0; }; GT1398.prototype.createShadowedText_9 = function (a, b, d, e, f, g, k, m, n) { if (null != m && 0 < n) { var p = null; switch (n) { case 3: p = [].createArray(17); p[0] = new GT1606(a, b - 3, d + 1, e, f, g, m); p[1] = new GT1606(a, b - 3, d + 0, e, f, g, m); p[2] = new GT1606(a, b - 3, d - 1, e, f, g, m); p[3] = new GT1606(a, b - 2, d - 2, e, f, g, m); p[4] = new GT1606(a, b - 1, d - 3, e, f, g, m); p[5] = new GT1606(a, b + 0, d - 3, e, f, g, m); p[6] = new GT1606(a, b + 1, d - 3, e, f, g, m); p[7] = new GT1606(a, b + 2, d - 2, e, f, g, m); p[8] = new GT1606(a, b + 3, d - 1, e, f, g, m); p[9] = new GT1606(a, b + 3, d + 0, e, f, g, m); p[10] = new GT1606(a, b + 3, d + 1, e, f, g, m); p[11] = new GT1606(a, b + 2, d + 2, e, f, g, m); p[12] = new GT1606(a, b + 1, d + 3, e, f, g, m); p[13] = new GT1606(a, b + 0, d + 3, e, f, g, m); p[14] = new GT1606(a, b - 1, d + 3, e, f, g, m); p[15] = new GT1606(a, b - 2, d + 2, e, f, g, m); break; case 2: p = [].createArray(9); p[0] = new GT1606(a, b - 2, d - 1, e, f, g, m); p[1] = new GT1606(a, b - 1, d - 2, e, f, g, m); p[2] = new GT1606(a, b + 1, d - 2, e, f, g, m); p[3] = new GT1606(a, b + 2, d - 1, e, f, g, m); p[4] = new GT1606(a, b + 2, d + 1, e, f, g, m); p[5] = new GT1606(a, b + 1, d + 2, e, f, g, m); p[6] = new GT1606(a, b - 1, d + 2, e, f, g, m); p[7] = new GT1606(a, b - 2, d + 1, e, f, g, m); break; default: (p = [].createArray(5)), (p[0] = new GT1606(a, b - 1, d - 1, e, f, g, m)), (p[1] = new GT1606(a, b + 1, d - 1, e, f, g, m)), (p[2] = new GT1606(a, b - 1, d + 1, e, f, g, m)), (p[3] = new GT1606(a, b + 1, d + 1, e, f, g, m)); } p[p.length - 1] = new GT1606(a, b, d, e, f, g, k); return p; } return [new GT1606(a, b, d, e, f, g, k)]; }; GT1398.prototype.createShadowedText_8 = function (a, b, d, e, f, g, k, m) { return this.createShadowedText_9(a, b, d, e, f, g, k, m, 1); }; GT1398.prototype.createCenteredText_8 = function (a, b, d, e, f, g, k, m) { a = new GT1437(a, 0, 0, a.getWidth_0(), a.getHeight_0()); b = this.createFormattedText_12(a, b, d, null, e, !1, !1, f, !1, g, k, m); for (d = 0; d < a.getChildCount_0(); ++d) (e = a.getChild_1(d)), e.move_2(e.getX_0() - Math.div(e.getWidth_0(), 2), e.getY_0()); return b; }; GT1398.prototype.createFormattedText_14 = function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { GT1650.prototype.assertExp_2(null != e, "tabstops is null"); if (null == e) return 0; var B = [].createArray(e.length + 1).init(0); B[0] = u ? b + e[e.length - 1] : b; for (var A = 1; A < B.length; A++) B[A] = u ? B[0] - e[A - 1] : b + e[A - 1]; var C = new java_util_JavaScriptVector(), E = new java_util_JavaScriptVector(), F = GT1677.prototype.tokenize_3(q, "\n", !0), D = !1; q = d; var H = !1, I = null; instanceOf(t, GT1634) ? (I = t) : instanceOf(t, Array) && (H = !0); for (A = 0; A < F.length; A++) { var L = F[A]; H && (I = t[A % t.length]); if (0 == L.length_0()) q += Math.div(f, 2); else if (L.equals_1("-") && null != e && 0 < e.length) { var J = new GT1440(a, b, q + Math.div(f, 2) - 0, e[e.length - 1], 1, I); C.addElement_1(J); E.addElement_1(new Boolean(!1)); q += f; } else { for (var J = 0, M = q, L = GT1677.prototype.tokenize_3(L, "\t", !0), N = [].createArray(L.length, null), P = [].createArray(L.length).init(0), O = [].createArray(L.length).init(0), K = 0; K < L.length; K++) { P[K] = B[0]; O[K] = Integer.MAX_VALUE; null != B && 0 < B.length && (1 == L.length ? (O[K] = B[B.length - 1]) : (0 < K && B.length >= K && (P[K] = B[K]), e.length > K && (O[K] = B[K + 1]))); if (u) { var Q = P[K]; P[K] = O[K]; O[K] = Q; } N[K] = this.computeWordWrap_5(a, L[K], "", r, O[K] - P[K]); J < N[K].length && (J = N[K].length); } for (K = 0; K < L.length; K++) for (var Q = !1, S = 0; S < N[K].length; S++) { var T; T = p ? q + (J - N[K].length + S) * f : q + S * f; T > M && (M = T); if ((Q = N[K][S].startsWith_1("\\c") || Q)) (D = Q), N[K][S].startsWith_1("\\c") && (N[K][S] = N[K][S].substring_1(2)); E.addElement_1(new Boolean(Q)); T = new GT1606(a, u ? O[K] : P[K], T, O[K] - P[K], Q ? GT1606.prototype.ALIGN_CENTER : u ? GT1606.prototype.ALIGN_RIGHT : GT1606.prototype.ALIGN_LEFT, N[K][S], r, I); C.addElement_1(T); } q = M + f; } } a = 0; n ? (a -= q - d) : m && (a = Math.div(-(q - d), 2)); m = 0; if ((g && !k) || D) for (A = 0; A < C.size_0(); A++) (n = C.elementAt_1(A)), (n = n.getX_0() + n.getWidth_0()), n > m && (m = n); for (A = 0; A < C.size_0(); A++) (n = C.elementAt_1(A)), (D = 0), E.get_1(A).booleanValue_0() && null != e ? (D = Math.div(e[e.length - 1] - n.getWidth_0(), 2) - n.getX_0() + b) : k ? (D = b - n.getWidth_0() - n.getX_0()) : g && (D = Math.div(-(m - b), 2)), n.move_2(n.getX_0() + D - 0, n.getY_0() + a - 0); GT1398.prototype.formattedTextElements = C; return q - d; }; GT1398.prototype.createFormattedText_13 = function (a, b, d, e, f, g, k, m, n, p, q, r, t) { return this.createFormattedText_14(a, b, d, e, f, g, k, m, n, p, q, r, t, !1); }; GT1398.prototype.createFormattedText_12 = function (a, b, d, e, f, g, k, m, n, p, q, r) { return this.createFormattedText_14(a, b, d, e, f, g, k, m, n, !1, p, q, r, !1); }; GT1398.prototype.createFormattedText_10 = function (a, b, d, e, f, g, k, m, n, p) { return this.createFormattedText_12(a, b, d, e, f, g, !1, k, !1, m, n, p); }; GT1398.prototype.createWordWrap_10 = function (a, b, d, e, f, g, k, m, n, p) { g = this.computeWordWrap_5(a, g, k, m, e); 0 != (p & GT1606.prototype.ALIGN_CENTER) ? (b = b + Math.div(e, 2) - 0) : 0 != (p & GT1606.prototype.ALIGN_RIGHT) && (b = b + e - 0); for (e = 0; e < g.length; e++) new GT1606(a, b, d, p, g[e], m, n), (d = d + f - 0); return f * g.length; }; GT1398.prototype.newWordWrappedText_9 = function (a, b, d, e, f, g, k, m, n) { f = GT1398.prototype.computeWordWrap_5(a, f, "", m, g); for (g = 0; g < f.length; ++g) new GT1606(a, b, d + k * g, e, f[g], m, n); }; GT1398.prototype.computeWordWrapVector_6 = function (a, b, d, e, f, g) { var k = new java_util_JavaScriptVector(); if (null == b) return k; if (1 > b.length_0()) return k.addElement_1(""), k; if (0 <= b.indexOf_1(10)) { b = GT1677.prototype.tokenize_3(b, "\n", !0); for (var m = 0; m < b.length; m++) for (var n = this.computeWordWrapVector_6(a, b[m], d, e, f, g), p = 0; p < n.size_0(); p++) k.addElement_1(n.elementAt_1(p)); return k; } for (; null != b; ) { n = b.replace_2(JSUTIL.MathUtil.castToChar(160), JSUTIL.MathUtil.castToChar(32)); m = 0 == k.size_0() ? f : f - a.stringWidth_2(e, d); if (1 > n.length_0() || a.stringWidth_2(e, n) <= m) return (n = 0 == k.size_0() ? n : d.concat_1(n)), k.addElement_1(n), k; var q = this.countCharactersThatFit_4(a, n, e, m); 1 > q && (q = 1); var r = 0; if (q < b.length_0() && 32 < b.charAt_1(q)) for (m = q - 1; 0 <= m; m--) { if (32 >= b.charAt_1(m)) { r = m + 1; break; } } else r = q; p = b.length_0(); if (!g && 0 == r) { for (m = q; m < p; m++) if (32 >= b.charAt_1(m)) { r = m; break; } 0 == r && (r = p - 1); } for (q = m = 0 < r ? r : q; 0 < q && b.charAt_1(q - 1) == JSUTIL.MathUtil.castToChar(32); ) q--; for (; m < p && b.charAt_1(m) == JSUTIL.MathUtil.castToChar(32); ) m++; n = n.substring_2(0, q); n = 0 == k.size_0() ? n : d.concat_1(n); k.addElement_1(n); b = b.substring_1(m); } return null; }; GT1398.prototype.computeWordWrap_6 = function (a, b, d, e, f, g) { a = this.computeWordWrapVector_6(a, b, d, e, f, g); b = [].createArray(a.size_0()); for (d = 0; d < b.length; d++) b[d] = a.elementAt_1(d); return b; }; GT1398.prototype.computeWordWrap_5 = function (a, b, d, e, f) { return this.computeWordWrap_6(a, b, d, e, f, !0); }; GT1398.prototype.formattedTextElements = null; var GT1083 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.currentqueue = this.timer = null; }, initialConstructor_2: function (a, b) { this.currentqueue = null; this.timer = a; this.currentqueue = b; }, run_0: function () { if (this.timer.framerateListeners == this.currentqueue && 0 != this.currentqueue.size_0()) { this.timer.triggerCallbackAfter_2(this, Math.div(500, GT1083.prototype.FRAMERATE)); for (var a = 0; a < this.timer.framerateListeners.size_0(); a++) this.timer.framerateListeners.elementAt_1(a).run_0(); } }, }, "GT1083", [Runnable] ); GT1083.prototype.FRAMERATE = 60; var GT1592 = Class.extend( { initialConstructor_0: function () { this.fractions = this.colors = null; this.rotation = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.fractions = this.colors = null; this.rotation = 0; GT1650.prototype.assertExp_2(null != a, "colors must not be null"); GT1650.prototype.assertExp_2(null != b, "fractions must not be null"); GT1650.prototype.assertExp_2(a.length == b.length, "there must be a fraction to each color and vice versa"); GT1650.prototype.assertExp_2(2 <= a.length && 15 >= a.length, "the gradient requires at least 2 and 15 colors at max"); this.colors = a; this.fractions = b; this.rotation = d; }, getColors_0: function () { return this.colors; }, getFractions_0: function () { return this.fractions; }, getRotation_0: function () { return this.rotation; }, equals_1: function (a) { if (null != a && instanceOf(a, GT1592)) { if (this.colors.length != a.colors.length) return !1; for (var b = 0; b < this.colors.length; b++) if (!this.colors[b].equals_1(a.colors[b])) return !1; if (this.fractions.length != a.fractions.length) return !1; for (b = 0; b < this.fractions.length; b++) if (this.fractions[b] != a.fractions[b]) return !1; return this.rotation != a.rotation ? !1 : !0; } return !1; }, }, "GT1592", [] ), GT933 = Class.extend( { initialConstructor_0: function () { this.menu = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.menu = null; this.menu = a; }, click_1: function (a) { this.menu.isAlive_0() && this.menu.handleClick_1(a); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, drag_1: function (a) {}, up_1: function (a) {}, }, "GT933", [GT1066] ), GT1560 = Class.extend( { initialConstructor_0: function () { this.applicationID = this.height = this.width = this.y = this.x = 0; this.parent = null; this.hidden = !1; this.maskh = this.maskw = this.masky = this.maskx = 0; }, initialConstructor_5: function (a, b, d, e, f) { GT1650.prototype.assertExp_2(a.isAlive_0(), "parent is not alive"); this.x = b; this.y = d; this.width = e; this.height = f; this.hidden = !1; this.parent = a; this.applicationID = 0; this.disableImmediateUpdate = !1; a.objects.addElement_1(this); this._createDisplayObject(); this.parent._displayObject.addChild(this._displayObject); this._updateDisplayObject(); }, _getFinalContentScalingX: function (a) { for (var b = 1; G.isNotNullAndDefined(a); ) G.isNotNullAndDefined(a.contentScaleX) && 1 !== a.contentScaleX && (b *= a.contentScaleX), (a = a.parent); return b; }, _getFinalContentScalingY: function (a) { for (var b = 1; G.isNotNullAndDefined(a); ) G.isNotNullAndDefined(a.contentScaleY) && 1 !== a.contentScaleY && (b *= a.contentScaleY), (a = a.parent); return b; }, _getDisplayObjectScaleX: function (a) { a = a instanceof PIXI.DisplayObjectContainer ? a : a._displayObject; for (var b = 1; G.isNotNullAndDefined(a) && a !== this._displayObject; ) 1 != a.scale.x && (b *= a.scale.x), (a = a.parent); return b; }, _getDisplayObjectScaleY: function (a) { a = a instanceof PIXI.DisplayObjectContainer ? a : a._displayObject; for (var b = 1; G.isNotNullAndDefined(a) && a !== this._displayObject; ) 1 != a.scale.y && (b *= a.scale.y), (a = a.parent); return b; }, _getDisplayObjectXInTopContainer: function (a) { a = a instanceof PIXI.DisplayObjectContainer ? a : a._displayObject; for (var b = 0; G.isNotNullAndDefined(a) && a !== this._displayObject; ) { var d = a.parent, b = G.isNotNullAndDefined(d) ? b + a.position.x * this._getDisplayObjectScaleX(d) : b + a.position.x; G.isNotNullAndDefined(a.anchor) && ((d = a.width), G.isNotNullAndDefined(a.texture) && (d = a.texture.frame.width), G.isNotNullAndDefined(d) && 0 != a.anchor.x && (b = 1 != a.scale.x ? b - a.anchor.x * d * this._getDisplayObjectScaleX(a) : b - a.anchor.x * d)); a = a.parent; } return b; }, _getDisplayObjectYInTopContainer: function (a) { a = a instanceof PIXI.DisplayObjectContainer ? a : a._displayObject; for (var b = 0; G.isNotNullAndDefined(a) && a !== this._displayObject; ) { var d = a.parent, b = G.isNotNullAndDefined(d) ? b + a.position.y * this._getDisplayObjectScaleY(d) : b + a.position.y; G.isNotNullAndDefined(a.anchor) && ((d = a.height), G.isNotNullAndDefined(a.texture) && (d = a.texture.frame.height), G.isNotNullAndDefined(d) && 0 != a.anchor.y && (b = 1 != a.scale.y ? b - a.anchor.y * d * this._getDisplayObjectScaleY(a) : b - a.anchor.y * d)); a = a.parent; } return b; }, _addMask: function (a) { if (!(!G.isNotNullAndDefined(a) || !G.isNotNullAndDefined(a.parent) || a instanceof GT1291 || 0 >= a.parent.getWidth_0() || 0 >= a.parent.getHeight_0())) { if (a instanceof GT1437 && 0 < a.getChildCount_0()) for (var b = 0; b < a.getChildCount_0(); ++b) this._addMask(a.getChild_1(b)); b = a instanceof GT1606 && "" === a.text; (("1" === CONFIG.webgl && G.isNotNullAndDefined(a._displayObject.maskdata)) || ("1" !== CONFIG.webgl && G.isNotNullAndDefined(a._displayObject.mask))) && this._addMaskToDisplayObject(null, a); if (b) this._deleteMaskOfDisplayObject(a.parent); else if (((b = a.parent), G.isNotNullAndDefined(b))) { var d = 0 > a.x || 0 > a.y || (G.isNotNullAndDefined(a.rotation) && 0 !== a.rotation); !d && ((G.isNotNullAndDefined(a.anchorx) && 0 > a.x + (G.isNotNullAndDefined(a.translationx) ? a.translationx : 0) - a.anchorx) || (G.isNotNullAndDefined(a.anchory) && 0 > a.y + (G.isNotNullAndDefined(a.translationy) ? a.translationy : 0) - a.anchory)) && (d = !0); if (!d) { var e = G.isNotNullAndDefined(b.contentScaleX) ? b.contentScaleX : 1, f = JSUTIL.e(b._scalex) ? b._scalex : CONFIG.SCALINGFACTOR, g = b.width * f, k = (JSUTIL.e(a._scalex) ? a._scalex : CONFIG.SCALINGFACTOR) * e; a instanceof GT1140 && G.isNotNullAndDefined(a.scalex) && (k *= a.scalex); 0 > k && (k = Math.abs(k)); var m = a.width * k, n = a.x * f * e; 0.9 < n + m - g && (d = !0); !d && a instanceof GT1140 && ((m = a._displayObject.getBounds()), (e *= a.translationx * f), (f = G.isNotNullAndDefined(a.anchorx) ? a.anchorx / m.width : 0), (m = m.width * k), 0.9 < n + e + m - m * f - g && (d = !0)); d || ((e = G.isNotNullAndDefined(b.contentScaleY) ? b.contentScaleY : 1), (f = JSUTIL.e(b._scaley) ? b._scaley : CONFIG.SCALINGFACTOR), (g = b.height * f), (k = (JSUTIL.e(a._scaley) ? a._scaley : CONFIG.SCALINGFACTOR) * e), a instanceof GT1140 && G.isNotNullAndDefined(a.scaley) && (k *= a.scaley), 0 > k && (k = Math.abs(k)), (m = a.height * k), (n = a.y * f * e), 0.9 < n + m - g && (d = !0), !d && a instanceof GT1140 && ((m = a._displayObject.getBounds()), (e *= a.translationy * f), (f = G.isNotNullAndDefined(a.anchory) ? a.anchory / m.height : 0), (m = m.height * k), 0.9 < n + e + m - m * f - g && (d = !0))); } if (d) this._addMaskToDisplayObject(a, b); else if (("1" === CONFIG.webgl && G.isNotNullAndDefined(b._displayObject.maskdata)) || ("1" !== CONFIG.webgl && G.isNotNullAndDefined(b._displayObject.mask))) (a.isMaskUser = !1), this._deleteMaskOfDisplayObject(b); } } }, _addMaskToDisplayObject: function (a, b) { if (!G.isNotNullAndDefined(b.maskCorners)) { var d = G.isNotNullAndDefined(a), e = G.isNotNullAndDefined(b.contentScaleX) ? b.contentScaleX : 1, f = G.isNotNullAndDefined(b.contentScaleY) ? b.contentScaleY : 1, e = Math.ceil(b.width * ((JSUTIL.e(b._scalex) ? b._scalex : CONFIG.SCALINGFACTOR) / e) - 0.5), g = Math.ceil(b.height * ((JSUTIL.e(b._scaley) ? b._scaley : CONFIG.SCALINGFACTOR) / f) - 0.5), k = "1" === CONFIG.webgl ? b._displayObject.maskdata : b._displayObject.mask, f = !G.isNotNullAndDefined(k), m = CONFIG.CLIENTSLOTAPPLET.getTopContainer_0(), m = e < Math.floor(m.getWidth_0() * CONFIG.SCALINGFACTOR) || g < Math.floor(m.getHeight_0() * CONFIG.SCALINGFACTOR) || 0 !== this._getDisplayObjectXInTopContainer(b) || 0 !== this._getDisplayObjectYInTopContainer(b), k = !f && k[0] === b.maskx && k[1] === b.masky && b.maskw === e && b.maskh === g; m ? (d && (a.isMaskUser = !0), k || ((b.maskx = 0), (b.masky = 0), (b.maskw = e), (b.maskh = g), (e = "1" === CONFIG.webgl ? b._displayObject.maskdata : b._displayObject.mask), f ? ("1" === CONFIG.webgl ? ((e = []), (e.length = 4)) : (e = new PIXI.Graphics())) : "1" !== CONFIG.webgl && e.clear(), "1" === CONFIG.webgl ? ((e[0] = b.maskx), (e[1] = b.masky), (e[2] = b.maskw), (e[3] = b.maskh), (b._displayObject.maskdata = e)) : (e.beginFill(), e.drawRect(b.maskx, b.masky, b.maskw, b.maskh), e.endFill(), (b._displayObject.mask = e), 0 > b._displayObject.children.indexOf(b._displayObject.mask) && b._displayObject.addChildAt(e, 0)))) : d && (a.isMaskUser = !1); !f && d && !1 === a.isMaskUser && this._deleteMaskOfDisplayObject(b); } }, _deleteMaskOfDisplayObject: function (a) { if (("1" === CONFIG.webgl && G.isNotNullAndDefined(a._displayObject.maskdata)) || ("1" !== CONFIG.webgl && G.isNotNullAndDefined(a._displayObject.mask))) { for (var b = !1, d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); if (G.isNotNullAndDefined(e) && !0 === e.isMaskUser) { b = !0; break; } } b || ("1" === CONFIG.webgl ? (a._displayObject.maskdata = null) : ((b = a._displayObject.children.indexOf(a._displayObject.mask)), -1 < b && a._displayObject.removeChildAt(b), (a._displayObject.mask = null)), (a.maskw = 0), (a.maskh = 0)); } }, _createDisplayObject: function () { this._displayObject = new PIXI.DisplayObjectContainer(); }, _updateDisplayObject: function () { this._displayObject.position.x = Math.ceil(this.x * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.position.y = Math.ceil(this.y * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.width = Math.ceil(this.width * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.height = Math.ceil(this.height * CONFIG.SCALINGFACTOR - 0.5); this._addMask(this); null == this.parent || this instanceof GT1291 || this.setAsDirtyArea_1(this); }, setAsDirtyArea_1: function (a) { CONFIG.CLIENTSLOTAPPLET.getTopContainer_0().addDirtyAreaRect(a); }, destroy_0: function () { null == this.parent ? this.destroyImpl_2(0, !0) : this.destroyImpl_2(this.parent.objects.indexOf_1(this), !0); }, getParent_0: function () { return this.parent; }, move_2: function (a, b) { GT1650.prototype.assertExp_2(this.isAlive_0() && this.parent.isAlive_0(), "object is not alive"); if (this.x != a || this.y != b) this.hidden || this.setAsDirtyArea_1(this), (this.x = a), (this.y = b), this._updateDisplayObject(); }, hide_1: function (a) { GT1650.prototype.assertExp_2(this.isAlive_0() && this.parent.isAlive_0(), "object is not alive"); a != this.hidden && ((this.hidden = a), (this._displayObject.visible = !a), G.isNotNullAndDefined(this._displayObject.mask) && (this._displayObject.mask.visible = this._displayObject.visible), a || this._showElement(), this.setAsDirtyArea_1(this)); }, _showElement: function () { if (instanceOf(this, GT1244)) for (var a = 0; a < this.getChildCount_0(); a++) this.getChild_1(a)._showElement(); }, _update: function () { if (instanceOf(this, GT1244)) for (var a = 0; a < this.getChildCount_0(); a++) this.getChild_1(a)._update(); }, reorder_1: function (a) { this.reorderToPosition_1(a ? this.parent.objects.size_0() - 1 : 0); }, reorderToPosition_1: function (a) { GT1650.prototype.assertExp_2(this.isAlive_0() && this.parent.isAlive_0(), "object is not alive"); var b = this.parent.objects, d = b.indexOf_1(this); if (d != a) { if (d < a) for (; d < a; d++) this.swapInVector_3(b, d, d + 1 - 0); else for (; d > a; d--) this.swapInVector_3(b, d, d - 1); this.parent._displayObject.removeChild(this._displayObject); this.parent._displayObject.addChildAt(this._displayObject, a + (null != this.parent._displayObject.mask ? 1 : 0)); this.hidden || this.setAsDirtyArea_1(this); } }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getWidth_0: function () { return this.width; }, getHeight_0: function () { return this.height; }, getDepth_0: function () { return this.parent.objects.indexOf_1(this); }, contains_2: function (a, b) { return a >= this.x && b >= this.y && a < this.x + this.width && b < this.y + this.height; }, isHidden_0: function () { return this.hidden; }, isClippingEnabled_0: function () { return !0; }, isSomehowHidden_0: function () { return this.hidden ? !0 : null == this.parent ? !1 : this.parent.isSomehowHidden_0(); }, isImmediateUpdateDisabled_0: function () { return this.disableImmediateUpdate ? !0 : null == this.parent ? !1 : this.parent.isImmediateUpdateDisabled_0(); }, isAlive_0: function () { return null != this.parent; }, setApplicationID_1: function (a) { this.applicationID = a; }, getApplicationID_0: function () { return this.applicationID; }, getImageWidth_1: function (a) { return a.getWidth_0(); }, getImageHeight_1: function (a) { return a.getHeight_0(); }, stringWidthImpl_2: function (a, b) { return null == this.parent ? a.stringWidth_1(b) : this.parent.stringWidthImpl_2(a, b); }, stringWidth_2: function (a, b) { return this.stringWidthImpl_2(a, b); }, print_2: function (a, b) { if (!(1 > b)) { for (var d = 0; d < a; d++) java_lang_System.prototype.out.print_1(" "); java_lang_System.prototype.out.println_1("" + this.x + "," + this.y + " " + this.width + "," + this.height + " " + GT1399.prototype.getClassName_1(this) + (this.hidden ? " (hidden)" : "")); } }, count_0: function () { return 1; }, getXInTopContainer_0: function () { return this.parent.getXInTopContainer_0() + this.x; }, getYInTopContainer_0: function () { return this.parent.getYInTopContainer_0() + this.y; }, adjustGUITextSize_0: function () {}, destroyImpl_2: function (a, b) { !0 !== b || this.hidden || this.setAsDirtyArea_1(this); "1" === CONFIG.webgl && (this._displayObject.shader = null); if (G.isNotNullAndDefined(this.parent)) { var d = this.parent.objects; -1 < a && d.removeElementAt_1(a); this.parent.getModalInputReceiver_0() == this && this.parent.setModalInputReceiver_1(null); this.parent._displayObject.removeChild(this._displayObject); this.parent = null; } }, getMouseX_0: function () { return null == this.parent ? (GT1650.prototype.assertExp_2(!1, "This line should never be reached"), 0) : this.parent.getMouseX_0() / this.parent.getContentScaleX_0() - this.x; }, getMouseY_0: function () { return null == this.parent ? (GT1650.prototype.assertExp_2(!1, "This line should never be reached"), 0) : this.parent.getMouseY_0() / this.parent.getContentScaleY_0() - this.y; }, getAnchorX_0: function () { return this.x; }, getAnchorY_0: function () { return this.y; }, moveAnchor_2: function (a, b) { this.move_2(this.x + (a - this.getAnchorX_0()), this.y + (b - this.getAnchorY_0())); }, _getAbsoluteXwithContentScale_0: function () { return null != this.parent ? this.x * this._getFinalContentScalingX(this.parent) + this.parent._getAbsoluteXwithContentScale_0() : this.x; }, _getAbsoluteYwithContentScale_0: function () { return null != this.parent ? this.y * this._getFinalContentScalingY(this.parent) + this.parent._getAbsoluteYwithContentScale_0() : this.y; }, getAbsoluteX_0: function () { return null != this.parent ? this.x + this.parent.getAbsoluteX_0() : this.x; }, getAbsoluteY_0: function () { return null != this.parent ? this.y + this.parent.getAbsoluteY_0() : this.y; }, }, "GT1560", [] ); GT1560.prototype.isAlive_1 = function (a) { return null != a && a.isAlive_0(); }; GT1560.prototype.isVisible_1 = function (a) { return null != a && a.isAlive_0() && !a.isHidden_0(); }; GT1560.prototype.destroyIfAlive_1 = function (a) { null != a && a.isAlive_0() && a.destroy_0(); }; GT1560.prototype.swapInVector_3 = function (a, b, d) { var e = a.elementAt_1(b), f = a.elementAt_1(d); a.setElementAt_2(e, d); a.setElementAt_2(f, b); }; GT1560.prototype.generateID_0 = function () { return GT1677.prototype.generateID_0(); }; var GT1141 = Class.extend( { initialConstructor_0: function () { this.parentsArray = this.guiObject = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.parentsArray = this.guiObject = null; this.guiObject = a; this.parentsArray = b; }, getGuiObject_0: function () { return this.guiObject; }, getParentsArray_0: function () { return this.parentsArray; }, }, "GT1141", [] ); GT1141.prototype.isEqual_2 = function (a, b) { var d = a.getParentsArray_0(), e = d.length; if (e != b.getParentsArray_0().length) return !1; for (var f = b.getParentsArray_0(), g = 0; g < e; ++g) if (d[g] != f[g]) return !1; return !0; }; var GT1084 = Class.extend( { initialConstructor_0: function () { this.scrollBar = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.scrollBar = null; this.scrollBar = a; }, drag_1: function (a) { a == this.scrollBar.getButtonHandle_0() && this.scrollBar.fireValueChangedEvent_0(); }, click_1: function (a) { a == this.scrollBar.getButtonScrollUp_0() ? (this.scrollBar.initiateScroll_1(-1), this.scrollBar.fireValueChangedEvent_0()) : a == this.scrollBar.getButtonScrollDown_0() ? (this.scrollBar.initiateScroll_1(1), this.scrollBar.fireValueChangedEvent_0()) : a == this.scrollBar.getButtonPageUp_0() ? (this.scrollBar.initiateFastScroll_1(!0), this.scrollBar.fireValueChangedEvent_0()) : a == this.scrollBar.getButtonPageDown_0() && (this.scrollBar.initiateFastScroll_1(!1), this.scrollBar.fireValueChangedEvent_0()); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, }, "GT1084", [GT1066] ), GT1197 = Class.extend( { initialConstructor_0: function () { this.spinnerListeners = this.spinner = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.spinnerListeners = this.spinner = null; this.spinner = a; this.spinnerListeners = b; }, destroy_0: function () { this.spinnerListeners = this.spinner = null; }, click_1: function (a) { for (var b = this.spinnerListeners.clone_0(), d = 0; d < b.size_0(); d++) b.elementAt_1(d).spinnerButtonClick_1(a); a == this.spinner.getButtonUp_0() ? this.spinner.setStepUp_0() : a == this.spinner.getButtonDown_0() && this.spinner.setStepDown_0(); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, }, "GT1197", [GT1066] ), GT1606 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.align = this.linebreakwidth = 0; this.color = this.fontMetrics = this.text = null; this.outlineRadius = this.alpha = 0; this.outlineColor = null; this.shadowY = this.shadowX = 0; this.brokentext = this.shadowColor = null; this.spacing = 0; this.textChanged = this.dirty = !1; }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.linebreakwidth = e; this.align = f; this.fontMetrics = k; null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) ? (this.text = g.replace_2(String.fromCharCode(8239), String.fromCharCode(160))) : (this.text = g); this.color = m; this.alpha = 255; this.outlineRadius = 0; this.outlineColor = null; this.shadowY = this.shadowX = 0; this.brokentext = this.shadowColor = null; this.spacing = k.getHeight_0(); this.textChanged = this.dirty = !1; 0 < e && (this.brokentext = this.computeWordWrap_4(this.text, this.fontMetrics, this.linebreakwidth, this)); GT1560.prototype.initialConstructor_5.call(this, a, b, d, 0, 0); this.recomputeSizeAndPosition_2(b, d); this.dirty = !0; this._updateDisplayObject(); }, _createDisplayObject: function () { GT1560.prototype._createDisplayObject.call(this); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this._displayObject.width = this.width; this._displayObject.height = this.height; this._displayObject.scale.x = CONFIG.SCALINGFACTOR; this._displayObject.scale.y = CONFIG.SCALINGFACTOR; if (!(null == this.text || ("" == this.text && !this.textChanged) || !this.dirty || this.isHidden_0() || this.isImmediateUpdateDisabled_0() || this.isSomehowHidden_0())) { for (var a = this._displayObject.children.length - 1; 0 <= a; a--) { var b = this._displayObject.children[a]; this._displayObject.removeChild(b); b instanceof PIXI.Text && GTObjPool.recyclePixiTextObject(b); } b = 0 - this.outlineRadius; null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) && (b -= 15); G.isNotNullAndDefined(this.gradient) ? (G.isNotNullAndDefined(this.html5Gradient) || (this.html5Gradient = []), (this.html5Gradient.gradient = this.gradient), (this.html5Gradient.boxwidth = this.width), (this.html5Gradient.boxheight = this.height)) : (this.html5Gradient = null); if (null == this.brokentext) { var d = GTObjPool.getPixiTextObject_2(this.text, this._getStyle()); d.position.x = this._getXPos(d.width); d.position.y = this.determineTopMargin_0() + b; RENDERER.type == PIXI.WEBGL_RENDERER && DEVICE.ios && RENDERER.updateTexture(d.texture.baseTexture); this._displayObject.addChild(d); } else for (var e = this.determineTopMargin_0(), a = 0; a < this.brokentext.length; a++) (d = GTObjPool.getPixiTextObject_2(this.brokentext[a], this._getStyle())), (d.position.x = Math.floor(this._getXPos(d.width))), (d.position.y = e + a * this.spacing + b), RENDERER.type == PIXI.WEBGL_RENDERER && DEVICE.ios && RENDERER.updateTexture(d.texture.baseTexture), this._displayObject.addChild(d); "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, null, !0); this.textChanged = this.dirty = !1; } this.hidden || this.setAsDirtyArea_1(this); }, _showElement: function () { GT1560.prototype._showElement.call(this); this._updateDisplayObject(); }, _update: function () { GT1560.prototype._update.call(this); this._updateDisplayObject(); }, _getStyle: function () { var a = Math.sqrt(this.shadowX * this.shadowX + this.shadowY * this.shadowY); return { font: (this.fontMetrics.weight ? "bold " : "") + (this.fontMetrics.style ? "italic " : "") + this.fontMetrics.size + "px " + this.fontMetrics.name, bold: this.fontMetrics.weight ? !0 : !1, italic: this.fontMetrics.style ? !0 : !1, name: this.fontMetrics.name, size: this.fontMetrics.size, fill: this.color.getRGBString_0(), gradient: this.html5Gradient, strokeThickness: 2 * this.outlineRadius, stroke: null != this.outlineColor ? this.outlineColor.getRGBString_0() : null, dropShadow: 0 < a, dropShadowColor: null != this.shadowColor ? this.shadowColor.getRGBString_0() : null, dropShadowAngle: Math.atan((-1 * this.shadowY) / this.shadowX) - Math.PI / 2, dropShadowDistance: a * (0 > this.shadowX ? 1 : -1), }; }, _getXPos: function (a) { a -= this.fontMetrics.style ? 5 : 0; var b = 0; return (b = 0 != (this.align & GT1606.prototype.ALIGN_CENTER) ? (this.width - this.determineLeftMargin_0() + this.determineRightMargin_0() - a) / 2 : 0 != (this.align & GT1606.prototype.ALIGN_RIGHT) ? this.width - this.determineRightMargin_0() - a + 2 * this.outlineRadius : this.determineLeftMargin_0() - 2 * this.outlineRadius); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1606.prototype.initialConstructor_8.call(this, a, b, d, 0, e, f, g, k); this.setOutline_2(m, n); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1606.prototype.initialConstructor_8.call(this, a, b, d, 0, e, f, g, k); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1606.prototype.initialConstructor_8.call(this, a, b, d, 0, GT1606.prototype.ALIGN_LEFT, e, f, g); }, setGradient_2: function (a, b) { this.setGradient_1(new GT1592([a, b], [48 / 255, 207 / 255], Math.PI / 2)); }, setGradient_1: function (a) { a.equals_1(this.gradient) || ((this.gradient = a), (this.dirty = !0), this._updateDisplayObject()); }, destroyImpl_2: function (a, b) { if (G.isNotNullAndDefined(this._displayObject)) { this.hidden || !0 !== b || this.setAsDirtyArea_1(this); for (var d = this._displayObject.children.length - 1; 0 <= d; d--) { var e = this._displayObject.children[d]; this._displayObject.removeChild(e); e instanceof PIXI.Text && GTObjPool.recyclePixiTextObject(e); } } GT1560.prototype.destroyImpl_2.call(this, a, !1); }, setText_1: function (a) { var b = this.getAnchorX_0(), d = this.getAnchorY_0(); a.equals_1(this.text) || (this.hidden || this.setAsDirtyArea_1(this), null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) ? (this.text = a.replace_2(String.fromCharCode(8239), String.fromCharCode(160))) : (this.text = a), 0 < this.linebreakwidth && (this.brokentext = this.computeWordWrap_4(this.text, this.fontMetrics, this.linebreakwidth, this)), this.recomputeSizeAndPosition_2(b, d), (this.dirty = this.textChanged = !0), this._updateDisplayObject()); }, updateDisplayObjectColorTransformation_1: function (a) { JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, null, !0); }, getText_0: function () { return this.text; }, setColor_1: function (a) { this.color.equals_1(a) || ((this.color = a), (this.dirty = !0), this._updateDisplayObject()); }, getColor_0: function () { return this.color; }, setOutline_2: function (a, b) { if (this.outlineRadius != a || this.outlineColor != b) { this.outlineColor = b; if (this.outlineRadius != a) { var d = this.getAnchorX_0(), e = this.getAnchorY_0(); this.outlineRadius = a; this.recomputeSizeAndPosition_2(d, e); } this.dirty = !0; this._updateDisplayObject(); } }, setShadow_3: function (a, b, d) { if (this.shadowX != a || this.shadowY != b || this.shadowColor != d) { this.shadowColor = d; if (this.shadowX != a || this.shadowY != b) { d = this.getAnchorX_0(); var e = this.getAnchorY_0(); this.shadowX = a; this.shadowY = b; this.recomputeSizeAndPosition_2(d, e); } this.dirty = !0; this._updateDisplayObject(); } }, setSpacing_1: function (a) { if (this.spacing != a) { var b = this.getAnchorX_0(), d = this.getAnchorY_0(); this.spacing = a; this.recomputeSizeAndPosition_2(b, d); this.dirty = !0; this._updateDisplayObject(); } }, setAlpha_1: function (a) { this.alpha != a && ((this.alpha = a), (this._displayObject.alpha = a / 255), (this.dirty = !0), this._updateDisplayObject()); }, getAlpha_0: function () { return this.alpha; }, getRightVisualEdge_0: function () { return this.x + this.width - this.determineRightMargin_0(); }, getAnchorX_0: function () { return 0 != (this.align & GT1606.prototype.ALIGN_CENTER) ? this.x + Math.div(this.determineLeftMargin_0() + this.width - this.determineRightMargin_0(), 2) : 0 != (this.align & GT1606.prototype.ALIGN_RIGHT) ? this.x + this.width - this.determineRightMargin_0() : this.x + this.determineLeftMargin_0(); }, getAnchorY_0: function () { return 0 != (this.align & GT1606.prototype.VALIGN_CENTER) ? this.y + Math.div(this.determineTopMargin_0() + this.height - this.determineBottomMargin_0(), 2) : 0 != (this.align & GT1606.prototype.VALIGN_BOTTOM) ? this.y + this.height - this.determineBottomMargin_0() : this.y + this.determineTopMargin_0(); }, adjustGUITextSize_0: function () {}, recomputeSizeAndPosition_2: function (a, b) { var d = this.determineLeftMargin_0() + this.determineRightMargin_0(), e = this.determineTopMargin_0() + this.determineBottomMargin_0(); 0 < this.linebreakwidth ? ((d += this.linebreakwidth), (e += this.fontMetrics.getHeight_0()), 0 < this.brokentext.length && (e += (this.brokentext.length - 1) * this.spacing)) : ((d += this.stringWidth_2(this.fontMetrics, this.text)), (e += this.fontMetrics.getHeight_0())); return d != this.width || e != this.height ? ((this.width = d), (this.height = e), this.moveAnchor_2(a, b), !0) : !1; }, determineLeftMargin_0: function () { return this.outlineRadius + (0 > this.shadowX ? -this.shadowX : 0) + this.fontDependentHorizontalMargin_1(this.fontMetrics); }, determineRightMargin_0: function () { return this.outlineRadius + (0 < this.shadowX ? this.shadowX : 0) + this.fontDependentHorizontalMargin_1(this.fontMetrics); }, determineTopMargin_0: function () { return this.outlineRadius + (0 > this.shadowY ? -this.shadowY : 0); }, determineBottomMargin_0: function () { return this.outlineRadius + (0 < this.shadowY ? this.shadowY : 0); }, cache: {}, }, "GT1606", [GT1480, GT1584] ); GT1606.prototype.computeWordWrap_4 = function (a, b, d, e) { var f = !0; null !== JSUTIL.getOpenTypeCustomFont(b.name, b.weight, b.style) && (f = !1); var f = b.name + b.size + b.weight + b.style + "|" + a + "|" + d + (f ? "ntiv" : "cstm"), g = this.cache[f]; if (G.isNotNullAndDefined(g)) return g; var g = new java_util_JavaScriptVector(), k = a.indexOf_1(10); if (0 > k) this.buildWordWrapNoNL_2(a, g, b, d, e); else { for (var m = -1; 0 <= k; ) this.buildWordWrapNoNL_2(a.substring_2(m + 1, k), g, b, d, e), (m = k), (k = a.indexOf_2(10, k + 1)); this.buildWordWrapNoNL_2(a.substring_1(m + 1), g, b, d, e); } a = [].createArray(g.size_0()); for (b = 0; b < a.length; b++) a[b] = g.elementAt_1(b); return (this.cache[f] = a); }; GT1606.prototype.buildWordWrapNoNL_2 = function (a, b, d, e, f) { for (;;) { var g = a.length_0(), k = 0 >= g ? 0 : f.stringWidth_2(d, a); if (0 >= k || k <= e) { b.addElement_1(a); break; } var m = Math.div(e * g, k); m > g && (m = g); for (var n = 0, k = g, p = !1, q = m; 0 < q; q--) if ((32 == a.charAt_1(q) && f.stringWidth_2(d, a.substring_2(0, q)) <= e) || (45 == a.charAt_1(q) && f.stringWidth_2(d, a.substring_2(0, Math.min(q + 1, g))) <= e)) { 45 == a.charAt_1(q) && (p = !0); n = q; break; } for (q = m + 1; q < g; q++) if (32 == a.charAt_1(q)) if (f.stringWidth_2(d, a.substring_2(0, q)) <= e) n = q; else { k = q; break; } else if (45 == a.charAt_1(q)) if (f.stringWidth_2(d, a.substring_2(0, Math.min(q + 1, g))) <= e) (p = !1), (n = q); else { k = q; break; } if (0 < n) p ? b.addElement_1(a.substring_2(0, Math.min(n + 1, g))) : b.addElement_1(a.substring_2(0, n)), (a = a.substring_1(n + 1)); else { g = 1; for (q = 2; q < k; q++) f.stringWidth_2(d, a.substring_2(0, q)) <= e && (g = q); 0 === a.substring_1(0, g).indexOf("-") && "-" !== a.slice(-1) && (g = 1); b.addElement_1(a.substring_2(0, g)); a = a.substring_1(g); if (0 == a.length_0()) break; } } }; GT1606.prototype.fontDependentHorizontalMargin_1 = function (a) { return a && a.style ? Math.div(a.getHeight_0(), 4) : 1; }; GT1606.prototype.ALIGN_LEFT = 0; GT1606.prototype.ALIGN_CENTER = 1; GT1606.prototype.ALIGN_RIGHT = 2; GT1606.prototype.VALIGN_TOP = 0; GT1606.prototype.VALIGN_CENTER = 4; GT1606.prototype.VALIGN_BOTTOM = 8; var GT1140 = GT1560.extend( { initialConstructor_0: function () { this.m2 = this.matrix = null; this.translationy = this.translationx = this.rotation = this.scaley = this.scalex = 0; }, initialConstructor_5: function (a, b, d, e, f) { this.m2 = this.matrix = null; this.scaley = this.scalex = 1; this.translationy = this.translationx = this.rotation = 0; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this._displayObject.rotation = -this.rotation; this._displayObject.scale.x = this.scalex; this._displayObject.scale.y = this.scaley; 1 === CONFIG.SCALINGFACTOR ? ((this._displayObject.position.x = this.x + this.translationx), (this._displayObject.position.y = this.y + this.translationy)) : ((this._displayObject.position.x = Math.ceil(this.x * CONFIG.SCALINGFACTOR - 0.5) + this.translationx * CONFIG.SCALINGFACTOR), (this._displayObject.position.y = Math.ceil(this.y * CONFIG.SCALINGFACTOR - 0.5) + this.translationy * CONFIG.SCALINGFACTOR)); this.hidden || this.setAsDirtyArea_1(this); }, hide_1: function (a) { GT1560.prototype.hide_1.call(this, a); a ? this.setAsDirtyArea_1(this) : this._updateDisplayObject(); }, resize_2: function (a, b) { if (this.width != a || this.height != b) this.hidden || this.setAsDirtyArea_1(this), (this.width = a), (this.height = b), this.hidden || this._updateDisplayObject(); }, setRotation_1: function (a) { this.rotation != a && (this.hidden || this.setAsDirtyArea_1(this), (this.rotation = a), (this.matrix = null), (this._displayObject.greentube_matrix = null), (0 > this.scalex || 0 > this.scaley) && this.buildM2_0()); this.hidden || this._updateDisplayObject(); }, setScaleAndRotation_2: function (a, b) { if (this.scalex != a || this.scaley != a || this.rotation != b) this.hidden || this.setAsDirtyArea_1(this), (this.scaley = this.scalex = a), (this.rotation = b), (this.matrix = null), (this._displayObject.greentube_matrix = null), (0 > this.scalex || 0 > this.scaley) && this.buildM2_0(), this.hidden || this._updateDisplayObject(); }, _updateMatrix_2: function (a, b) { var d = 0 < this._displayObject.children.length && this._displayObject.children[0] instanceof PIXI.Text ? CONFIG.SCALINGFACTOR : 1; if (null == this.matrix) this.matrix = [].createArray(4).init(0); else if ( (1 == d && this.matrix[0] == a[0] && this.matrix[1] == a[1] && this.matrix[2] == a[2] && this.matrix[3] == a[3]) || (1 != d && this.matrix[0] == a[0] * d && this.matrix[1] == a[1] * d && this.matrix[2] == a[2] * d && this.matrix[3] == a[3] * d) ) return; b && !this.hidden && this.setAsDirtyArea_1(this); for (var e = 0; 4 > e; ++e) this.matrix[e] = a[e]; if (1 != d) for (e = 0; 4 > e; ++e) this.matrix[e] *= CONFIG.SCALINGFACTOR; this._displayObject.greentube_matrix_apply = 0 !== this.rotation % PIXI.PI_2 || 0 !== Math.atan2(a[3], a[1]) % PIXI.PI_2; this._displayObject.greentube_matrix = this.matrix; }, setTransformation_1: function (a) { if (null == a) { if (null == this.matrix) return; this.matrix = null; this._displayObject.greentube_matrix = null; } else this._updateMatrix_2(a, !0), (this.scalex = Math.sqrt(this.matrix[0] * this.matrix[0] + this.matrix[2] * this.matrix[2])), (this.scaley = Math.sqrt(this.matrix[1] * this.matrix[1] + this.matrix[3] * this.matrix[3])), (this.rotation = Math.atan2(a[2], a[0])); this.hidden || this._updateDisplayObject(); }, setScale_2: function (a, b) { if (this.scalex != a || this.scaley != b) this.hidden || this.setAsDirtyArea_1(this), (this.scalex = a), (this.scaley = b), (this.matrix = null), (this._displayObject.greentube_matrix = null), (0 > this.scalex || 0 > this.scaley) && this.buildM2_0(); this.hidden || this._updateDisplayObject(); }, setTranslation_2: function (a, b) { if (this.translationx != a || this.translationy != b) this.hidden || this.setAsDirtyArea_1(this), (this.translationx = a), (this.translationy = b), this.hidden || this._updateDisplayObject(); }, buildM2_0: function () { var a; if (1 == this.scalex && 1 == this.scaley && 0 == this.rotation) a = null; else { a = 0; var b = 1; 0 != this.rotation && ((a = Math.sin_1(this.rotation)), (b = Math.cos_1(this.rotation))); a = [b * this.scalex, -a * this.scaley, a * this.scalex, b * this.scaley]; } this._updateMatrix_2(a, !1); }, getTransformationMatrix_0: function () { return null != this.matrix ? this.matrix : this.m2; }, getTranslationX_0: function () { return this.translationx; }, getTranslationY_0: function () { return this.translationy; }, getScaleX_0: function () { return this.scalex; }, getScaleY_0: function () { return this.scaley; }, getRotation_0: function () { return this.rotation; }, }, "GT1140", [GT1525, GT1555, GT1373, GT1429] ), GT1075 = GT1140.extend( { initialConstructor_0: function () { GT1140.prototype.initialConstructor_0.call(this); this.image = null; this.maskh = this.maskw = this.masky = this.maskx = this.alpha = this.sourceheight = this.sourcewidth = this.sourcey = this.sourcex = this.anchory = this.anchorx = 0; this.intrinsiccolortransformation = this.maskCorners = null; }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1075.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, 0, 0, g.getWidth_0(), g.getHeight_0()); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.image = g; this._scalex = g._scalex; this._scaley = g._scaley; this.sourcewidth = g.getColumnWidth_0(); this.sourceheight = g.getRowHeight_0(); this.sourcex = n * this.sourcewidth; this.sourcey = p * this.sourceheight; this.anchorx = this.sourcex + GT1672.prototype.doubleToInt_1(k * this.sourcewidth); this.anchory = this.sourcey + GT1672.prototype.doubleToInt_1(m * this.sourceheight); this.alpha = 255; GT1140.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.image = g; this._scalex = g._scalex; this._scaley = g._scaley; this.anchorx = k; this.anchory = m; this.sourcex = n; this.sourcey = p; this.sourcewidth = q; this.sourceheight = r; this.alpha = 255; k = g.getColumnWidth_0(); m = g.getRowHeight_0(); if (0 >= k || 0 >= m) GT1650.prototype.assertFailed_1("Encountered image without bitmap data: " + g.toString()); else { var t = Math.div(n, k), u = Math.div(p, m); (0 > n || 0 > p || t >= g.getColumns_0() || u >= g.getRows_0()) && GT1650.prototype.assertFailed_1("sourcex or sourcey outside image borders: " + n + "," + p + " " + g.toString()); (n + q > (t + 1) * k || p + r > (u + 1) * m) && GT1650.prototype.assertFailed_1("width or height extends beyond tile borders: " + g.toString()); } GT1140.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, _createDisplayObject: function () { this._createDisplayObjectInternal_1(!1); }, _createDisplayObjectInternal_1: function (a) { this.imageScalingFactorX = JSUTIL.e(this.image._imgscalex) ? this.image._imgscalex : this.image._scalex; this.imageScalingFactorY = JSUTIL.e(this.image._imgscaley) ? this.image._imgscaley : this.image._scaley; var b = this.sourcex, d = this.sourcey, e = this.sourcewidth, f = this.sourceheight; if (this.image.overridewidth || this.image.overrideheight) (e = this.image.texture.width / this.image.getColumns_0() / this.imageScalingFactorX), (f = this.image.texture.height / this.image.getRows_0() / this.imageScalingFactorY), (b = (this.sourcex / this.sourcewidth) * e), (d = (this.sourcey / this.sourceheight) * f); if (1 < this.image.numcolumns || 1 < this.image.numrows || 0 < b || 0 < d || b + e < this.image.getWidth_0() || d + f < this.image.getHeight_0()) { var g = this.image.pixitextureoriginalframe, b = g.x + b * this.imageScalingFactorX, d = g.y + d * this.imageScalingFactorY, f = f * this.imageScalingFactorY, e = new PIXI.Texture( this.image.texture.baseTexture, new PIXI.Rectangle(b, d, Math.min_2(e * this.imageScalingFactorX, this.image.texture.baseTexture.width - b), Math.min_2(f, this.image.texture.baseTexture.height - d)) ); !0 === a ? this._displayObject.setTexture(e) : (this._displayObject = new PIXI.Sprite(e)); } else !0 === a ? this._displayObject.setTexture(this.image.texture) : (this._displayObject = new PIXI.Sprite(this.image.texture)); }, _updateDisplayObject: function () { GT1140.prototype._updateDisplayObject.call(this); var a = (this.anchory - this.sourcey) / this.sourceheight; this._displayObject.anchor.x = (this.anchorx - this.sourcex) / this.sourcewidth; this._displayObject.anchor.y = a; this.image.overridewidth ? ((this._displayObject.gt_overridewidth_factor = this.sourcewidth / (this.image.texture.width / this.image.getColumns_0() / this.imageScalingFactorX)), (this._displayObject.scale.x = this.scalex * this._displayObject.gt_overridewidth_factor)) : (this._displayObject.gt_overridewidth_factor = 0); this.image.overrideheight ? ((this._displayObject.gt_overrideheight_factor = this.sourceheight / (this.image.texture.height / this.image.getRows_0() / this.imageScalingFactorY)), (this._displayObject.scale.y = this.scaley * this._displayObject.gt_overrideheight_factor)) : (this._displayObject.gt_overrideheight_factor = 0); this.updateDisplayObjectColorTransformation_1(null); this.hidden || this.setAsDirtyArea_1(this); }, destroyImpl_2: function (a, b) { GT1140.prototype.destroyImpl_2.call(this, a, b); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, getAlpha_0: function () { return this.alpha; }, setImage_1: function (a) { this.setImage_5(a, 0, 0, a.getWidth_0(), a.getHeight_0()); }, setImage_5: function (a, b, d, e, f) { (this.image.getHeight_0() == a.getHeight_0() && this.image.getWidth_0() == a.getWidth_0()) || GT1650.prototype.log_1("Image dimension changed compared to previous image used in GUITransformedImage!"); this.image = a; this.sourcex = b; this.sourcey = d; this.sourcewidth = e; this.sourceheight = f; this._createDisplayObjectInternal_1(!0); this._updateDisplayObject(); this.hidden || this.setAsDirtyArea_1(this); }, getImage_0: function () { return this.image; }, setMask_1: function (a) { if (G.isNotNullAndDefined(a)) { (G.isNotNullAndDefined(this.maskCorners) && this.maskCorners.length == a.length) || (this.maskCorners = []); for (var b = this._getFinalContentScalingX(this), d = this._getFinalContentScalingY(this), e = [], f = 0; f < a.length; ++f) e[f] = 0 == f % 2 ? Math.ceil(a[f] * (1 != d ? d : JSUTIL.e(this._scaley) ? this._scaley : CONFIG.SCALINGFACTOR) - 0.5) : Math.ceil(a[f] * (1 != b ? b : JSUTIL.e(this._scalex) ? this._scalex : CONFIG.SCALINGFACTOR) - 0.5); var b = -this.anchorx * this._scalex, d = -this.anchory * this._scaley, g = 0; a = a.length / 2; for (f = 0; f < a; f += 2) (this.maskCorners[g++] = b + e[2 * f]), (this.maskCorners[g++] = d + e[2 * f + 1]); for (f = 2 * Math.floor(a / 2) - 1; 0 < f; f -= 2) (this.maskCorners[g++] = b + e[2 * f]), (this.maskCorners[g++] = d + e[2 * f + 1]); e = this._displayObject.mask; G.isNotNullAndDefined(e) ? e.clear() : (e = new PIXI.Graphics()); e.beginFill("0x00ff00"); e.drawPolygon(this.maskCorners); e.endFill(); this._displayObject.mask = e; 0 > this._displayObject.children.indexOf(this._displayObject.mask) && this._displayObject.addChild(e); this.hidden || this.setAsDirtyArea_1(this); } else G.isNotNullAndDefined(this.maskCorners) && ((this.maskCorners = null), G.isNotNullAndDefined(this._displayObject.mask) && (-1 !== this._displayObject.children.indexOf(this._displayObject.mask) && this._displayObject.removeChild(this._displayObject.mask), (this._displayObject.mask = null)), this.hidden || this.setAsDirtyArea_1(this)); }, setColorTransformation_1: function (a) { this.intrinsiccolortransformation = a; this.updateDisplayObjectColorTransformation_1(a); }, getColorTransformation_0: function () { return this.intrinsiccolortransformation; }, updateDisplayObjectColorTransformation_1: function (a) { JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, set3DTransformation_3: function (a, b, d) {}, setAlphaBlendMode_1: function (a) { a === GT1323.prototype.ADD ? (this._displayObject.blendMode = PIXI.blendModes.ADD) : a === GT1323.prototype.ADD_INTENSIVE ? (this._displayObject.blendMode = PIXI.blendModes.ADD_INTENSIVE) : a === GT1323.prototype.MULTIPLY ? (this._displayObject.blendMode = PIXI.blendModes.MULTIPLY) : a === GT1323.prototype.SCREEN ? (this._displayObject.blendMode = PIXI.blendModes.SCREEN) : a === GT1323.prototype.NONE && (this._displayObject.blendMode = PIXI.blendModes.NORMAL); this.hidden || this.setAsDirtyArea_1(this); }, }, "GT1075", [GT1480, GT1326] ); GT1075.prototype.is3DTransformationSupported_0 = function () { return !1; }; var GT1134 = GT1140.extend( { initialConstructor_0: function () { GT1140.prototype.initialConstructor_0.call(this); this.color = this.fontMetrics = this.text = null; this.alpha = this.anchory = this.anchorx = 0; }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.fontMetrics = k; null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) ? (this.text = g.replace_2(String.fromCharCode(8239), String.fromCharCode(160))) : (this.text = g); this.color = m; this.anchorx = n; this.anchory = p; this.alpha = 255; this.outlineRadius = this.shadowY = this.shadowX = 0; this.linebreakwidth = q; this.spacing = this.fontMetrics.getHeight_0(); this.textChanged = this.dirty = !1; GT1140.prototype.initialConstructor_5.call(this, a, b, d, e, f); 0 < this.linebreakwidth ? (this.brokentext = GT1606.prototype.computeWordWrap_4(this.text, this.fontMetrics, this.linebreakwidth, this)) : (this.text = this.text.replace_2(String.fromCharCode(10), String.fromCharCode(32))); this.dirty = !0; this._updateDisplayObject(); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1134.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, k, m, n, p); }, _createDisplayObject: function () { GT1560.prototype._createDisplayObject.call(this); }, _updateDisplayObject: function () { GT1140.prototype._updateDisplayObject.call(this); this._displayObject.width = this.width; this._displayObject.height = this.height; this._displayObject.pivot.x = this.anchorx; this._displayObject.pivot.y = this.anchory; G.isNotNullAndDefined(this._displayObject.anchor) && ((this._displayObject.anchor.x = this.anchorx), (this._displayObject.anchor.y = this.anchory)); this._displayObject.scale.x = this.scalex * CONFIG.SCALINGFACTOR; this._displayObject.scale.y = this.scaley * CONFIG.SCALINGFACTOR; if (!(null == this.text || ("" == this.text && !this.textChanged) || !this.dirty || this.isHidden_0() || this.isImmediateUpdateDisabled_0() || this.isSomehowHidden_0())) { for (var a = this._displayObject.children.length - 1; 0 <= a; a--) { var b = this._displayObject.children[a]; this._displayObject.removeChild(b); b instanceof PIXI.Text && GTObjPool.recyclePixiTextObject(b); } a = 0 - this.outlineRadius; null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) && (a -= 15); G.isNotNullAndDefined(this.gradient) ? (G.isNotNullAndDefined(this.html5Gradient) || (this.html5Gradient = []), (this.html5Gradient.gradient = this.gradient), (this.html5Gradient.boxwidth = this.width), (this.html5Gradient.boxheight = this.height)) : (this.html5Gradient = null); if (G.isNotNullAndDefined(this.brokentext)) for (var d = -(this.fontMetrics.getHeight_0() + (this.brokentext.length - 1) * this.getSpacing_0()) / 2 + a, a = 0; a < this.brokentext.length; a++) (b = GTObjPool.getPixiTextObject_2(this.brokentext[a], this._getStyle())), (b.position.x = this._getXPos(b.width)), (b.position.y = d + a * this.getSpacing_0()), RENDERER.type == PIXI.WEBGL_RENDERER && DEVICE.ios && RENDERER.updateTexture(b.texture.baseTexture), this._displayObject.addChild(b); else (b = GTObjPool.getPixiTextObject_2(this.text, this._getStyle())), (b.position.x = -(2 * this.outlineRadius)), (b.position.y = a), RENDERER.type == PIXI.WEBGL_RENDERER && DEVICE.ios && RENDERER.updateTexture(b.texture.baseTexture), this._displayObject.addChild(b); "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, null, !0); this.textChanged = this.dirty = !1; } this.hidden || this.setAsDirtyArea_1(this); }, _getXPos: function (a) { a = a - (this.fontMetrics.style ? 5 : 0) - this.determineLeftMargin_0() - this.determineRightMargin_0(); return -a / 2; }, determineLeftMargin_0: function () { return (0 > this.shadowX ? -this.shadowX : 0) + GT1606.prototype.fontDependentHorizontalMargin_1(this.fontMetrics); }, determineRightMargin_0: function () { return (0 < this.shadowX ? this.shadowX : 0) + GT1606.prototype.fontDependentHorizontalMargin_1(this.fontMetrics); }, destroyImpl_2: function (a, b) { if (G.isNotNullAndDefined(this._displayObject)) { this.hidden || !0 !== b || this.setAsDirtyArea_1(this); for (var d = this._displayObject.children.length - 1; 0 <= d; d--) { var e = this._displayObject.children[d]; this._displayObject.removeChild(e); e instanceof PIXI.Text && GTObjPool.recyclePixiTextObject(e); } } GT1140.prototype.destroyImpl_2.call(this, a, !1); }, updateDisplayObjectColorTransformation_1: function (a) { JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, null, !0); }, setFontMetrics_1: function (a) { null == a || this.fontMetrics.equals_1(a) || ((this.fontMetrics = a), (this.dirty = !0), this._updateDisplayObject()); }, getFontMetrics_0: function () { return this.fontMetrics; }, setText_1: function (a) { this.text.equals_1(a) || (this.hidden || this.setAsDirtyArea_1(this), null == JSUTIL.getOpenTypeCustomFont(this.fontMetrics.name, this.fontMetrics.weight, this.fontMetrics.style) ? (this.text = a.replace_2(String.fromCharCode(8239), String.fromCharCode(160))) : (this.text = a), 0 < this.linebreakwidth ? (this.brokentext = GT1606.prototype.computeWordWrap_4(this.text, this.fontMetrics, this.linebreakwidth, this)) : (this.text = this.text.replace_2(String.fromCharCode(10), String.fromCharCode(32))), (this.textChanged = this.dirty = !0), this._updateDisplayObject()); }, setOutline_2: function (a, b) { if (this.outlineRadius != a || this.outlineColor != b) (this.outlineColor = b), this.outlineRadius != a && (this.outlineRadius = a), (this.dirty = !0), this._updateDisplayObject(); }, setShadow_3: function (a, b, d) { if (this.shadowX != a || this.shadowY != b || this.shadowColor != d) { this.shadowColor = d; if (this.shadowX != a || this.shadowY != b) (this.shadowX = a), (this.shadowY = b); this.dirty = !0; this._updateDisplayObject(); } }, _showElement: function () { GT1560.prototype._showElement.call(this); this._updateDisplayObject(); }, _update: function () { GT1560.prototype._update.call(this); this._updateDisplayObject(); }, _getStyle: function () { var a = Math.sqrt(this.shadowX * this.shadowX + this.shadowY * this.shadowY); return { font: (this.fontMetrics.weight ? "bold " : "") + (this.fontMetrics.style ? "italic " : "") + this.fontMetrics.size + "px " + this.fontMetrics.name, bold: this.fontMetrics.weight ? !0 : !1, italic: this.fontMetrics.style ? !0 : !1, name: this.fontMetrics.name, size: this.fontMetrics.size, fill: this.color.getRGBString_0(), gradient: this.html5Gradient, strokeThickness: 2 * this.outlineRadius, stroke: null != this.outlineColor ? this.outlineColor.getRGBString_0() : null, dropShadow: 0 < a, dropShadowColor: null != this.shadowColor ? this.shadowColor.getRGBString_0() : null, dropShadowAngle: Math.atan((-1 * this.shadowY) / this.shadowX) - Math.PI / 2, dropShadowDistance: a * (0 > this.shadowX ? 1 : -1), }; }, getText_0: function () { return this.text; }, getSpacing_0: function () { return 0 < this.fontSpecificSpacing ? this.fontSpecificSpacing : this.spacing; }, setFontSpecificSpacing_1: function (a) { this.fontSpecificSpacing != a && ((this.fontSpecificSpacing = a), (this.dirty = !0), this._updateDisplayObject()); }, setSpacing_1: function (a) { this.spacing != a && ((this.spacing = a), (this.dirty = !0), this._updateDisplayObject()); }, setGradient_2: function (a, b) { this.setGradient_1(new GT1592([a, b], [48 / 255, 207 / 255], Math.PI / 2)); }, setGradient_1: function (a) { a.equals_1(this.gradient) || ((this.gradient = a), (this.dirty = !0), this._updateDisplayObject()); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, getAlpha_0: function () { return this.alpha; }, setColor_1: function (a) { this.color.equals_1(a) || ((this.color = a), (this.dirty = !0), this._updateDisplayObject()); }, }, "GT1134", [GT1480, GT1584] ); GT1134.prototype.isContinuousScalingSupported_0 = function () { return !1; }; var GT1538 = Class.extend( { initialConstructor_0: function () { this.guiUpdaterCallbacks = this.timer = this.clock = this.topContainer = this.context = null; this.started = this.startingWithSound = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.guiUpdaterCallbacks = this.timer = this.clock = this.topContainer = this.context = null; this.started = this.startingWithSound = !1; this.context = a; this.startingWithSound = !0; this.clock = a.getClock_0(); this.timer = a.getTimer_0(); this.guiUpdaterCallbacks = new java_util_JavaScriptVector(); instanceOf(a.getTopContainer_0(), GT1428) ? (this.topContainer = a.getTopContainer_0()) : (this.topContainer = null); }, addGuiUpdaterCallback_1: function (a) { null == a || this.guiUpdaterCallbacks.contains_1(a) || this.guiUpdaterCallbacks.add_1(a); }, setStartingWithSound_1: function (a) { this.startingWithSound = a; }, getContext_0: function () { return this.context; }, isStarted_0: function () { return this.started; }, runUntilFinished_0: function () { for (this.start_0(); this.started; ) this.update_0(); }, start_0: function () { this.context.getSoundPlayer_0().setActive_1(this.startingWithSound); null != this.topContainer && this.topContainer.start_0(); this.started = !0; for (var a = 0; a < this.guiUpdaterCallbacks.size_0(); a++) this.guiUpdaterCallbacks.get_1(a).started_0(); }, update_0: function () { this.started && (null != this.clock && this.clock.updateCurrentTime_0(), null != this.timer && this.timer.tick_0(), null != this.topContainer && this.topContainer.update_0()); }, destroy_0: function () { this.started = !1; for (var a = 0; a < this.guiUpdaterCallbacks.size_0(); a++) this.guiUpdaterCallbacks.get_1(a).stopped_0(); this.context.getEventDispatcher_0().stop_0(); null != this.topContainer && (this.topContainer.setPointerStateProvider_1(null), this.topContainer.stop_0(), (this.topContainer = null)); this.context.getTopContainer_0().destroy_0(); this.context.getSoundPlayer_0().stopAll_0(); this.context.getResourceManager_0().cleanup_0(); this.guiUpdaterCallbacks.clear_0(); }, getTopContainer_0: function () { return this.topContainer; }, }, "GT1538", [] ), GT1593 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1593", [] ); GT1593.prototype.calcMouseExitCoordinate_4 = function (a, b, d, e) { var f = Math.min_2(a, d - a), g = Math.min_2(b, e - b), k = a, m = b; f < g ? (k = a < d - a ? -1 : d + 1) : (m = b < e - b ? -1 : e + 1); return new GT1633(k, m); }; var GT1288 = GT1140.extend( { initialConstructor_0: function () { GT1140.prototype.initialConstructor_0.call(this); this.alpha = 0; this.reusecache = this.primitives = null; }, initialConstructor_5: function (a, b, d, e, f) { this.alpha = 255; this.primitives = new java_util_JavaScriptVector(); this.reusecache = null; GT1140.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.initialConstructor_5(a, b, d, e, f); this._displayObject.pivot.x = g * CONFIG.SCALINGFACTOR; this._displayObject.pivot.y = k * CONFIG.SCALINGFACTOR; }, _createDisplayObject: function () { this._displayObject = new PIXI.DisplayObjectContainer(); this._graphicsDisplayObject = new PIXI.Graphics(); this._displayObject.addChild(this._graphicsDisplayObject); }, _createElement: function (a) { var b = !1; if (null != a.colors && 2 == a.colors.length) { if (a instanceof GT934 || a instanceof GT608) { var d = document .createElement("canvas") .getContext("2d") .createLinearGradient( a.gradientcoordinates[0] * CONFIG.SCALINGFACTOR, a.gradientcoordinates[1] * CONFIG.SCALINGFACTOR, a.gradientcoordinates[2] * CONFIG.SCALINGFACTOR, a.gradientcoordinates[3] * CONFIG.SCALINGFACTOR ); d.addColorStop(0, a.colors[0].getRGBAString_1(this.alpha)); d.addColorStop(1, a.colors[1].getRGBAString_1(this.alpha)); d.colors = a.colors; this._graphicsDisplayObject.beginFillGradient(d, (this.alpha / 255) * (null == a.alpha ? 1 : a.alpha / 255)); } } else a instanceof GT934 || a instanceof GT608 ? (this._graphicsDisplayObject.lineStyle(0), this._graphicsDisplayObject.beginFill(null == a.color ? a.colors[0].getRGB_0() : a.color.getRGB_0(), (this.alpha / 255) * (null == a.alpha ? 1 : a.alpha / 255))) : this._graphicsDisplayObject.lineStyle(a.thickness * CONFIG.SCALINGFACTOR, null == a.color ? a.colors[0].getRGB_0() : a.color.getRGB_0(), a.alpha / 255); this._graphicsDisplayObject.moveTo(a.cornerx[0] * CONFIG.SCALINGFACTOR, a.cornery[0] * CONFIG.SCALINGFACTOR); for (d = 1; d < a.cornerx.length; d++) if ((this._graphicsDisplayObject.lineTo(a.cornerx[d] * CONFIG.SCALINGFACTOR, a.cornery[d] * CONFIG.SCALINGFACTOR), 0 > a.cornerx[d] || a.cornerx[d] > this.width || 0 > a.cornery[d] || a.cornery[d] > this.height)) b = !0; a instanceof GT934 || a instanceof GT608 || (a.cornerx[0] === a.cornerx[a.cornerx.length - 1] && a.cornery[0] === a.cornery[a.cornery.length - 1] && 1 < a.cornery.length && this._graphicsDisplayObject.lineTo(a.cornerx[1] * CONFIG.SCALINGFACTOR, a.cornery[1] * CONFIG.SCALINGFACTOR)); this._graphicsDisplayObject.endFill(); "1" == CONFIG.webgl && ((this._graphicsDisplayObject.cachedSpriteDirty = !0), !0 !== this._graphicsDisplayObject.cacheAsBitmap && (this._graphicsDisplayObject.cacheAsBitmap = !0)); this.setAsDirtyArea_1(this); b && !this.maskAdded && (this._addMaskToDisplayObject(this._graphicsDisplayObject, this), (this.maskAdded = !0)); this.updateDisplayObjectColorTransformation_1(null); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, updateDisplayObjectColorTransformation_1: function (a) { null != this && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, setAnchor_2: function (a, b) { this._displayObject.pivot.x = a * CONFIG.SCALINGFACTOR; this._displayObject.pivot.y = b * CONFIG.SCALINGFACTOR; }, getAlpha_0: function () { return this.alpha; }, clear_0: function () { this.clear_1(!1); }, clear_1: function (a) { 0 != this.primitives.size_0() && (this.hidden || this.setAsDirtyArea_1(this), this.primitives.setSize_1(0), this._graphicsDisplayObject.clear(), !0 === a && !0 === this._graphicsDisplayObject.cacheAsBitmap && (this._graphicsDisplayObject.cacheAsBitmap = !1)); }, addPolyLine_3: function (a, b, d) { this.addPolyLine_4(a, b, d, 255); }, addPolyLine_4: function (a, b, d, e) { if (!(4 > a.length)) { for (var f = 0; null != this.reusecache && f < this.reusecache.size_0(); f++) { var g = this.reusecache.elementAt_1(f); if (instanceOf(g, GT880) && g.isIdentical_4(a, b, d, e)) { this.reusecache.removeElementAt_1(f); this.primitives.addElement_1(g); return; } } g = [].createArray(a.length).init(0); for (f = 0; f < g.length; f++) g[f] = a[f]; a = new GT880(g, b, d, e); this.primitives.addElement_1(a); this._createElement(a); } }, addTriangleStrip_3: function (a, b, d) { this.addTriangleStrip_4(a, b, d, 255); }, addTriangleStrip_4: function (a, b, d, e) { if (!(6 > a.length)) { for (var f = [].createArray(a.length).init(0), g = [].createArray(b.length), k = null, m = 0; m < f.length; m++) f[m] = a[m]; for (m = 0; m < g.length; m++) g[m] = b[m]; if (null != d) for (k = [].createArray(d.length).init(0), m = 0; m < k.length; m++) k[m] = d[m]; a = new GT608(f, g, k, e); this.primitives.addElement_1(a); this._createElement(a); } }, addPolygon_3: function (a, b, d) { this.addPolygon_4(a, b, d, 255); }, addPolygon_4: function (a, b, d, e) { if (!(6 > a.length)) { for (var f = 0; null != this.reusecache && f < this.reusecache.size_0(); f++) { var g = this.reusecache.elementAt_1(f); if (instanceOf(g, GT934) && g.isIdentical_4(a, b, d, e)) { this.reusecache.removeElementAt_1(f); this.primitives.addElement_1(g); return; } } for (var g = [].createArray(a.length).init(0), k = [].createArray(b.length), m = null, f = 0; f < g.length; f++) g[f] = a[f]; for (f = 0; f < k.length; f++) k[f] = b[f]; if (null != d) for (m = [].createArray(d.length).init(0), f = 0; f < m.length; f++) m[f] = d[f]; a = new GT934(g, k, m, e); this.primitives.addElement_1(a); this._createElement(a); } }, destroyImpl_2: function (a, b) { this.clear_1(!0); GT1140.prototype.destroyImpl_2.call(this, a, b); }, }, "GT1288", [GT1480] ), GT1292 = Class.extend( { initialConstructor_0: function () { this.rr = null; }, release_0: function () { null != this.rr && this.rr.release_0(); }, }, "GT1292", [] ), GT934 = GT1292.extend( { initialConstructor_0: function () { GT1292.prototype.initialConstructor_0.call(this); this.gradientcoordinates = this.colors = this.corners = null; }, initialConstructor_4: function (a, b, d, e) { GT1292.prototype.initialConstructor_0.call(this); var f = Math.div(a.length, 2); GT1650.prototype.assertExp_2(!(3 > f), "Too few corners for triangle strip"); GT1650.prototype.assertExp_2(!(1 > b.length), "Too few colors defined for triangle strip"); GT1650.prototype.assertExp_2(!(2 < b.length), "Too many colors defined for triangle strip"); GT1650.prototype.assertExp_2(!(1 < b.length && (null == d || 4 > d.length)), "Illegal number of coordinates for color gradient"); this.cornerx = [].createArray(f).init(0); this.cornery = [].createArray(f).init(0); for (var g = 0; g < f; g++) (this.cornerx[g] = a[2 * g]), (this.cornery[g] = a[2 * g + 1]); this.colors = b; this.gradientcoordinates = d; this.alpha = e; }, isIdentical_4: function (a, b, d, e) { if (a.length != this.corners.length) return !1; for (var f = 0; f < a.length; f++) if (a[f] != this.corners[f]) return !1; if (b.length != this.colors.length) return !1; for (f = 0; f < b.length; f++) if (!b[f].equals_1(this.colors[f])) return !1; if (d.length != this.gradientcoordinates.length) return !1; for (f = 0; f < d.length; f++) if (d[f] != this.gradientcoordinates[f]) return !1; return this.alpha != e ? !1 : !0; }, }, "GT934", [] ), GT880 = GT1292.extend( { initialConstructor_0: function () { GT1292.prototype.initialConstructor_0.call(this); this.corners = null; this.thickness = 0; this.colors = null; this.alpha = 0; this.computedcorners = null; }, initialConstructor_3: function (a, b, d) { GT880.prototype.initialConstructor_4.call(this, a, b, d, 255); }, initialConstructor_4: function (a, b, d, e) { GT1292.prototype.initialConstructor_0.call(this); var f = Math.div(a.length, 2); GT1650.prototype.assertExp_2(!(2 > f), "Too few corners for poly line"); this.thickness = b; this.colors = [d]; this.alpha = e; this.cornerx = [].createArray(f).init(0); this.cornery = [].createArray(f).init(0); for (b = 0; b < f; b++) (this.cornerx[b] = a[2 * b]), (this.cornery[b] = a[2 * b + 1]); }, isIdentical_4: function (a, b, d, e) { if (a.length != this.corners.length) return !1; for (var f = 0; f < a.length; f++) if (a[f] != this.corners[f]) return !1; return d.equals_1(this.colors[0]) && b == this.thickness && e == this.alpha ? !0 : !1; }, }, "GT880", [] ), GT608 = GT1292.extend( { initialConstructor_0: function () { GT1292.prototype.initialConstructor_0.call(this); this.gradientcoordinates = this.colors = this.corners = null; this.alpha = 0; }, initialConstructor_4: function (a, b, d, e) { GT1292.prototype.initialConstructor_0.call(this); var f = Math.div(a.length, 2); GT1650.prototype.assertExp_2(!(3 > f), "Too few corners for tringle strip"); GT1650.prototype.assertExp_2(!(1 > b.length), "Too few colors defined for triangle strip"); GT1650.prototype.assertExp_2(!(2 < b.length), "Too many colors defined for triangle strip"); GT1650.prototype.assertExp_2(!(1 < b.length && (null == d || 2 > d.length)), "Illegal number of coordinates for color gradient"); var g = 0, k = 0; this.cornerx = [].createArray(f).init(0); this.cornery = [].createArray(f).init(0); for (k = 0; k < f; k += 2) (this.cornerx[g] = a[2 * k]), (this.cornery[g] = a[2 * k + 1]), g++; for (k = (f / 2) * 2 - 1; 0 < k; k -= 2) (this.cornerx[g] = a[2 * k]), (this.cornery[g] = a[2 * k + 1]), g++; this.colors = b; this.gradientcoordinates = d; this.alpha = e; }, isIdentical_4: function (a, b, d, e) { if (a.length != this.corners.length) return !1; for (var f = 0; f < a.length; f++) if (a[f] != this.corners[f]) return !1; if (b.length != this.colors.length) return !1; for (f = 0; f < b.length; f++) if (!b[f].equals_1(this.colors[f])) return !1; if (d.length != this.gradientcoordinates.length) return !1; for (f = 0; f < d.length; f++) if (d[f] != this.gradientcoordinates[f]) return !1; return this.alpha != e ? !1 : !0; }, }, "GT608", [] ); GT880.prototype.eliminateIdenticalCorners_1 = function (a) { for (var b = Math.div(a.length, 2), d = 0, e = 1; e < b; e++) a[2 * e] == a[2 * e - 2] && a[2 * e + 1] == a[2 * e - 1] && d++; if (0 == d) return a; var d = [].createArray(2 * (b - d)).init(0), f = 0; d[0] = a[0]; d[1] = a[1]; for (e = 1; e < b; e++) if (a[2 * e] != d[f] || a[2 * e + 1] != d[f + 1]) (f += 2), (d[f] = a[2 * e]), (d[f + 1] = a[2 * e + 1]); return d; }; GT1288.prototype.MAXREUSECACHE = 100; GT880.prototype.emptyarray = []; var GT1637 = GT1635.extend( { initialConstructor_0: function () { this.filename = null; this.useseperatealpharegion = !1; this.numrows = this.numcolumns = 1; this.javascriptimage = null; this.rowheight = this.columnwidth = 0; this.cachedcolortransformation = this.cachedimage = null; this.overridewidth = this.overrideheight = !1; this.pixitextureoriginalframe = this.pixitextureframename = null; }, initialConstructor_1: function (a) { this.initialConstructor_0(); this.javascriptimage = a; this.filename = a.src; this.columnwidth = a.width; this.rowheight = a.height; this.overridewidth = this.overrideheight = !1; this.pixitextureoriginalframe = this.pixitextureframename = null; }, initialConstructor_2: function (a, b) { this.initialConstructor_0(); this.javascriptimage = new Image(a, b); this.columnwidth = a; this.rowheight = b; this.overridewidth = this.overrideheight = !1; this.pixitextureoriginalframe = this.pixitextureframename = null; }, initialConstructor_3: function (a, b, d) { this.initialConstructor_0(); this.columnwidth = b; this.rowheight = d; this.overridewidth = this.overrideheight = !1; var e = document.createElement("canvas"); e.width = b; e.height = d; var f = e.getContext("2d"); b = f.getImageData(0, 0, b, d); d = b.data; for (var g = 0, k = 0; k < d.length; k += 4) { var m = a[g]; d[k] = (m >> 16) & 255; d[k + 1] = (m >> 8) & 255; d[k + 2] = m & 255; d[k + 3] = (m >> 24) & 255; ++g; } f.putImageData(b, 0, 0); this.texture = PIXI.Texture.fromCanvas(e); this.pixitextureoriginalframe = new PIXI.Rectangle(this.texture.frame.x, this.texture.frame.y, this.texture.frame.width, this.texture.frame.height); this.pixitextureframename = "dymcImg_" + CONFIG.CLIENTSLOTAPPLET.getTimer_0().currentTimeMillis_0(); }, getWidth_0: function () { return !0 === this.overridewidth ? this.columnwidth * this.numcolumns : this._getSourceWidth_0(); }, _getSourceWidth_0: function () { var a = 0, a = this.pixitextureframename && null != this.pixitextureframename ? this.texture.width : this.javascriptimage.width; return Math.ceil(a / this._scalex - 0.5); }, getHeight_0: function () { return !0 === this.overrideheight ? this.rowheight * this.numrows : this._getSourceHeight_0(); }, _getSourceHeight_0: function () { var a = 0, a = this.pixitextureframename && null != this.pixitextureframename ? this.texture.height : this.javascriptimage.height; return Math.ceil(a / this._scaley - 0.5); }, getColumnWidth_0: function () { return this.columnwidth; }, getRowHeight_0: function () { return this.rowheight; }, getRows_0: function () { return this.numrows; }, getColumns_0: function () { return this.numcolumns; }, calculateImageValues_0: function () { var a = ""; if (this.pixitextureframename && null != this.pixitextureframename) { var b = this.pixitextureframename.lastIndexOf("/"), b = this.pixitextureframename.lastIndexOf("/", b - 1), b = this.pixitextureframename.lastIndexOf("/", b - 1), a = this.pixitextureframename.substring(b, this.pixitextureframename.length), b = a.lastIndexOf(".jpg.webp"); b == a.length - 9 ? (a = a.substring(0, b) + ".jpg") : ((b = a.lastIndexOf(".png.webp")), b == a.length - 9 && (a = a.substring(0, b) + ".png")); } else (this.texture = PIXI.Texture.fromImage(this.javascriptimage.src)), (a = this.javascriptimage.src.substring(this.javascriptimage.src.lastIndexOf("/", this.javascriptimage.src.lastIndexOf("/") - 1) + 1, this.javascriptimage.src.length).replace("/", "_")); JSUTIL.e(CONFIG.IMAGES[a]) ? ((this._scalex = CONFIG.IMAGES[a].xfactor), (this._scaley = CONFIG.IMAGES[a].yfactor)) : (this._scaley = this._scalex = CONFIG.SCALINGFACTOR); this.overridewidth && ((this._imgscalex = this._scalex), (this._scalex = Math.round(this.columnwidth * this._scalex) / this.columnwidth)); this.overrideheight && ((this._imgscaley = this._scaley), (this._scaley = Math.round(this.rowheight * this._scaley) / this.rowheight)); 1 > this.columnwidth && (this.columnwidth = this.getWidth_0() / this.numcolumns); 1 > this.rowheight && (this.rowheight = this.getHeight_0() / this.numrows); }, setBitmapData_2: function (a, b) { b && null != b ? ((this.pixitextureframename = b), (this.texture = PIXI.Texture.fromFrame(this.pixitextureframename)), (this.pixitextureoriginalframe = new PIXI.Rectangle(this.texture.frame.x, this.texture.frame.y, this.texture.frame.width, this.texture.frame.height)), (CONFIG.STATS.PIXELS += this.texture.frame.width * this.texture.frame.height)) : (this.javascriptimage = this.useseperatealpharegion ? this.createAlphaMergedImage_1(a) : a); this.calculateImageValues_0(); return !0; }, initBufferedImage_0: function () { var a = this.texture.frame; if (!this.RGBAData) { var b = document.createElement("canvas"); b.width = a.width; b.height = a.height; b = b.getContext("2d"); try { b.drawImage(this.texture.baseTexture.source, a.x, a.y, a.width, a.height, 0, 0, a.width, a.height), (this.RGBAData = b.getImageData(0, 0, a.width, a.height).data); } catch (d) { console.warn(d), console.warn("Security issue: because of cross-origin problem can not extract image data!"); } } }, releaseBufferedImage_0: function () { this.RGBAData = null; }, getRGB_2: function (a, b) { var d = this.texture.frame; return this.RGBAData ? ((d = 4 * (b * d.width + a)), (this.RGBAData[d + 3] << 24) | (this.RGBAData[d] << 16) | (this.RGBAData[d + 1] << 8) | this.RGBAData[d + 2]) : 0; }, disposeCachedVersion_0: function () { this.cachedcolortransformation = this.cachedimage = null; }, fillRect_5: function (a, b, d, e, f) {}, clearRect_4: function (a, b, d, e) {}, clearTriangle_6: function (a, b, d, e, f, g) {}, drawImage_9: function (a, b, d, e, f, g, k, m, n) {}, isLoaded_0: function () { return null != PIXI.TextureCache[this.pixitextureframename]; }, triggerLoading_0: function () { this.triggerLoading_1(null); }, triggerLoading_1: function (a) { this.addAssetLoadingListener_1(a); this.resourceManager.startLoadImage_7(this.javafilename, this.numcolumns, this.numrows, this.useseperatealpharegion, this.overridewidth, this.overrideheight, !1); }, isLoadingTriggered_0: function () { if (this.isLoaded_0()) return !0; var a = CONFIG.CLIENTSLOTAPPLET.getDefaultResourceManager_0().createPackageAbsoluteFilename_1(this.filename), b = a.substring(0, a.length - 4), a = a.substring(a.length - 4); !0 === this.useseperatealpharegion && ".jpg" === a && (a = ".png"); CONFIG.get("webp") && (".jpg" === a ? (a = ".jpg.webp") : ".png" === a && (a = ".png.webp")); a = b + a; return null != CONFIG.CLIENTSLOTAPPLET.getDefaultResourceManager_0().resourcesToBeLoaded.get_1(a) || (this.resourceManager && null != this.resourceManager.resourcesToBeLoaded.get_1(a)); }, unload_0: function () { PIXI.Texture.removeTextureFromCache(this.pixitextureframename) && (CONFIG.STATS.PIXELS -= this.texture.frame.width * this.texture.frame.height); this.disposeCachedVersion_0(); }, toString: function () { return this.javafilename; }, }, "GT1637", [GT1635] ); GT1637.prototype.createAlphaMergedImage_1 = function (a) {}; var GT1137 = Class.extend( { initialConstructor_0: function () { this.quads = this.images = null; this.images = new java_util_JavaScriptVector(); this.quads = new java_util_JavaScriptVector(); }, add_2: function (a, b) { this.images.add_1(a); this.quads.add_1(b); }, getQuadAt_1: function (a) { return a < this.quads.size_0() && 0 <= a ? this.quads.get_1(a) : null; }, getImageAt_1: function (a) { return a < this.images.size_0() && 0 <= a ? this.images.get_1(a) : null; }, getImageByQuad_1: function (a) { a = this.quads.indexOf_1(a); return this.getImageAt_1(a); }, getQuadByImage_1: function (a) { a = this.images.indexOf_1(a); return this.getQuadAt_1(a); }, removeByQuad_1: function (a) { a = this.quads.indexOf_1(a); return this.removeElementAt_1(a); }, removeByImage_1: function (a) { a = this.images.indexOf_1(a); return this.removeElementAt_1(a); }, removeElementAt_1: function (a) { return a < this.quads.size_0() && 0 <= a ? (this.quads.removeElementAt_1(a), this.images.removeElementAt_1(a), !0) : !1; }, clear_0: function () { this.quads.clear_0(); this.images.clear_0(); }, size_0: function () { return this.quads.size_0(); }, }, "GT1137", [] ), GT1539 = Class.extend( { initialConstructor_0: function () { this.data = null; }, getData_0: function () { return this.data; }, setData_1: function (a) { this.data = a; }, }, "GT1539", [] ), GT1450 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.supported = window.localStorage ? !0 : !1; }, isSupported_0: function () { return this.supported; }, setItem_2: function (a, b) { this.supported && window.localStorage.setItem(a, b); }, getItem_1: function (a) { return this.supported ? window.localStorage.getItem(a) : ""; }, }, "GT1450", [] ), GT1493 = Class.extend( { initialConstructor_0: function () { this.rand = this.sounds = null; this.currentsound = 0; this.player = null; this.runstopped = this.dorun = !1; this.starttime = 0; this.timer = null; this.pause = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.rand = this.sounds = null; this.currentsound = 0; this.player = null; this.runstopped = this.dorun = !1; this.starttime = 0; this.timer = null; this.pause = 0; GT1650.prototype.assertExp_2(0 <= f, "pause<0"); this.sounds = d; this.timer = b; this.rand = e; this.currentsound = -1; this.player = a; this.runstopped = !0; this.pause = f; }, start_0: function () { -1 == this.currentsound && this.startRun_0(); }, stop_0: function () { -1 != this.currentsound && (this.player.stop_1(this.sounds[this.currentsound]), (this.currentsound = -1), this.stopRun_0(), this.run_0()); }, startRun_0: function () { this.dorun || ((this.dorun = !0), this.runstopped && ((this.runstopped = !1), this.run_0())); }, stopRun_0: function () { this.dorun && ((this.dorun = !1), (this.runstopped = !0), this.timer.removeCallback_2(this, !1)); }, run_0: function () { this.dorun ? -1 != this.currentsound && 0 < this.pause ? ((this.currentsound = -1), this.timer.triggerCallbackAfter_2(this, this.pause)) : ((this.currentsound = this.rand.nextInt_1(this.sounds.length)), this.player.start_2(this.sounds[this.currentsound], this)) : (this.runstopped = !0); }, }, "GT1493", [Runnable] ), GT827 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.syncObject = this.eventDispatcher = null; }, initialConstructor_3: function (a, b, d) { this.syncObject = d; this.source = b; this.eventDispatcher = a; }, raiseEvent_2: function (a, b) { var d = GT827.prototype.keyModifierToName_1(b), e = this.keyCodeToName_1(b.keyCode); !0 === this.eventDispatcher.raiseEvent_1(new GT1532(a, e, d, b.sender || null)) && b.preventDefault(); }, keyTyped_1: function (a) { this.syncObject; this.raiseEvent_2(GT1532.prototype.KEY_TYPE, a); }, keyPressed_1: function (a) { this.syncObject; this.raiseEvent_2(GT1532.prototype.KEY_PRESS, a); }, keyReleased_1: function (a) { this.syncObject; this.raiseEvent_2(GT1532.prototype.KEY_RELEASE, a); }, stop_0: function () { this.syncObject; this.eventDispatcher = null; }, }, "GT827", [java_awt_event_KeyListener] ); GT827.prototype.keyCodeToName_1 = function (a) { switch (a) { case 112: return "f1"; case 113: return "f2"; case 114: return "f3"; case 115: return "f4"; case 117: return "f6"; case 118: return "f7"; case 119: return "f8"; case 120: return "f9"; case 121: return "f10"; case 122: return "f11"; case 123: return "f12"; case 9: return "tab"; case 17: return "control"; case 18: return "alt"; case 16: return "shift"; case 27: return "esc"; case 8: return "backspace"; case 33: return "pageup"; case 34: return "pagedown"; case 36: return "home"; case 35: return "end"; case 45: return "insert"; case 46: return "delete"; case 13: return "enter"; case 96: return "num0"; case 97: return "num1"; case 98: return "num2"; case 99: return "num3"; case 100: return "num4"; case 101: return "num5"; case 102: return "num6"; case 103: return "num7"; case 104: return "num8"; case 105: return "num9"; case 106: return "num*"; case 107: return "num+"; case 109: return "num-"; case 110: return "num,"; case 111: return "num/"; case 37: return "left"; case 38: return "up"; case 39: return "right"; case 40: return "down"; default: if (32 <= a && 255 >= a) return String.fromCharCode(a); } return ""; }; GT827.prototype.keyModifierToName_1 = function (a) { var b = ""; "function" === typeof a.getModifierState && (a.getModifierState("Alt") && (b += "alt"), a.getModifierState("Shift") && (b += "shift"), a.getModifierState("Control") && (b += "ctrl")); return b; }; var GT719 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.previousPos = this.currentPos = this.timer = this.transformer = this.eventDispatcher = null; }, initialConstructor_3: function (a, b, d) { this.transformer = this.eventDispatcher = null; this.timer = d; this.eventDispatcher = a; this.transformer = b; this.currentPos = null; }, innerRaiseEvent_2: function (a, b) { "1" != CONFIG.get("simulatetouchevents") ? this.eventDispatcher.raiseEvent_1(new GT1451(a, this.currentPos.x, this.currentPos.y, 0)) : this.eventDispatcher.raiseEvent_1(new GT1447(a, this.currentPos.x, this.currentPos.y, 0, this.timer.currentTimeMillis_0())); }, raiseEvent_2: function (a, b, d) { this.previousPos = this.currentPos; var e; (d && null != b.targetTouches) || (null != b.targetTouches ? ((d = (b.targetTouches[0].pageX - b.mousepos.left) / CONFIG.SCALINGFACTOR), (e = (b.targetTouches[0].pageY - b.mousepos.top) / CONFIG.SCALINGFACTOR)) : ((d = (b.pageX - b.mousepos.left) / CONFIG.SCALINGFACTOR), (e = (b.pageY - b.mousepos.top) / CONFIG.SCALINGFACTOR)), (this.currentPos = this.transformer.transformNativeToGUISpace_2(d, e))); this.innerRaiseEvent_2(a, b); }, mouseMoved_1: function (a) { "1" != CONFIG.get("simulatetouchevents") && this.raiseEvent_2(GT1451.prototype.MOUSE_MOVED, a); }, mouseDragged_1: function (a) { "1" != CONFIG.get("simulatetouchevents") ? this.raiseEvent_2(GT1451.prototype.MOUSE_MOVED, a) : this.raiseEvent_2(GT1447.prototype.TOUCH_MOVE, a); }, mouseClicked_1: function (a) { "1" != CONFIG.get("simulatetouchevents") && this.raiseEvent_2(GT1451.prototype.MOUSE_CLICKED, a); }, mousePressed_1: function (a) { "1" != CONFIG.get("simulatetouchevents") ? this.raiseEvent_2(GT1451.prototype.MOUSE_PRESSED, a) : this.raiseEvent_2(GT1447.prototype.TOUCH_START, a); }, mouseReleased_1: function (a) { "1" != CONFIG.get("simulatetouchevents") ? this.raiseEvent_2(GT1451.prototype.MOUSE_RELEASED, a, !0) : this.raiseEvent_2(GT1447.prototype.TOUCH_END, a, !0); }, mouseEntered_1: function (a) { "1" != CONFIG.get("simulatetouchevents") && this.raiseEvent_2(GT1451.prototype.MOUSE_MOVED, a); }, mouseExited_1: function (a) { if ("1" != CONFIG.get("simulatetouchevents")) { var b = this.transformer.getBounds_0(), d = this.currentPos; this.currentPos = GT1594.prototype.calcMouseExitCoordinate_4(d.x, d.y, b.width, b.height); this.innerRaiseEvent_2(GT1451.prototype.MOUSE_MOVED, a); } }, mouseWheelMoved_1: function (a) { a = window.event || a; a = 3 * -Math.max(-1, Math.min(1, a.wheelDelta || -a.detail)); this.eventDispatcher.raiseEvent_1(new GT1196(GT1196.prototype.MOUSE_WHEEL, this.currentPos.x, this.currentPos.y, GT1196.prototype.WHEEL_UNIT_SCROLL, a, a)); }, }, "GT719", [java_awt_event_MouseListener, java_awt_event_MouseMotionListener, java_awt_event_MouseWheelListener] ), GT508 = Class.extend( { initialConstructor_0: function () { this.eventDispatcher = null; this.orientationSensorSupported = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.eventDispatcher = a; this.orientationSensorSupported = window.DeviceMotionEvent && "desktop" !== CONFIG.operatingsystem ? !0 : !1; this.smoothnessFactor = 0.75; this.internalSmoothnessFactor = 1 - this.smoothnessFactor; this.threshold = 0.02; this.lastCalibratedZ = this.lastCalibratedY = this.lastCalibratedX = this.lastRawZ = this.lastRawY = this.lastRawX = 0; }, setSmoothnessFactor_1: function (a) { 0 <= a && 1 >= a && ((this.smoothnessFactor = a), (this.internalSmoothnessFactor = 1 - this.smoothnessFactor)); }, getSmoothnessFactor_0: function () { return this.smoothnessFactor; }, setThreshold_1: function (a) { 0 <= a && 1 >= a && (this.threshold = a); }, getThreshold_0: function () { return this.threshold; }, start_0: function () { if (this.orientationSensorSupported) { var a = this; this.eventListenerFunction = function (b) { a.sensorChanged_0(b); }; window.addEventListener("devicemotion", this.eventListenerFunction); } }, stop_0: function () { this.orientationSensorSupported && this.eventListenerFunction && (window.removeEventListener("devicemotion", this.eventListenerFunction), (this.eventListenerFunction = null)); }, sensorChanged_0: function (a) { if (this.eventDispatcher && a.accelerationIncludingGravity) { var b = -a.accelerationIncludingGravity.x, d = a.accelerationIncludingGravity.y, e = a.accelerationIncludingGravity.z; if (Math.abs(b - this.lastRawX) > this.threshold || Math.abs(d - this.lastRawY) > this.threshold || Math.abs(e - this.lastRawZ) > this.threshold) { this.lastRawX = b; this.lastRawY = d; this.lastRawZ = e; a = window.orientation ? window.orientation : 0; var f = 0; this.lastCalibratedX += this.internalSmoothnessFactor * (0.1 * b - this.lastCalibratedX); this.lastCalibratedY += this.internalSmoothnessFactor * (0.1 * d - this.lastCalibratedY); this.lastCalibratedZ += this.internalSmoothnessFactor * (0.1 * e - this.lastCalibratedZ); b = "ios" === CONFIG.operatingsystem ? -this.lastCalibratedX : this.lastCalibratedX; d = "ios" === CONFIG.operatingsystem ? -this.lastCalibratedY : this.lastCalibratedY; e = this.lastCalibratedZ; 0 === a ? ((d = -d), (b = -b)) : 90 === a ? ((f = d), (d = b), (b = -f)) : -90 === a && ((f = d), (d = -b), (b = f)); b = Math.min(Math.max(b, -1), 1); d = Math.min(Math.max(d, -1), 1); this.eventDispatcher.raiseEvent_1(new GT509(GT509.prototype.ORIENTATION_SENSOR, b, d, e, -1)); } } }, orientationSupported_0: function () { return this.orientationSensorSupported; }, }, "GT508", [] ), GT662 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.syncObject = this.transformer = this.eventDispatcher = null; }, initialConstructor_3: function (a, b, d) { this.eventDispatcher = a; this.transformer = b; this.syncObject = d; }, screenSizeChanged_1: function (a) { this.syncObject; if (null != this.eventDispatcher) { var b = this.transformer.getVisibleArea_0(); this.eventDispatcher.raiseEvent_1(new GT1371(GT1371.prototype.SCREENSIZE_CHANGED, b.x, b.y, b.width, b.height, a)); } }, }, "GT662", [GT1427] ), GT1198 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, initNative_0: function () { this._sprite = new PIXI.GreentubeSpine(); this._displayObject.addChild(this._sprite); this._sprite._nativeSpinePlayer = this; this.requestRepaint_0(); }, _createDisplayObject: function () { this._displayObject = new PIXI.DisplayObjectContainer(); this.updateDisplayObjectColorTransformation_1(null); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this.hidden || this.setAsDirtyArea_1(this); }, requestRepaint_0: function () { this.hidden || this.setAsDirtyArea_1(this); }, updateDisplayObjectColorTransformation_1: function (a) { null != this && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, destroyImpl_2: function (a, b) { this._sprite && ((this._sprite._nativeSpinePlayer = null), this._sprite.destroy()); GT1560.prototype.destroyImpl_2.call(this, a, b); this.hidden || this.setAsDirtyArea_1(this); }, }, "GT1198", [] ), GT720 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.previousPos = this.currentPos = this.syncObject = this.transformer = this.eventDispatcher = null; this.touchInProgress = !1; this.touchIDs = []; }, initialConstructor_4: function (a, b, d, e) { this.syncObject = this.transformer = this.eventDispatcher = null; this.syncObject = d; this.eventDispatcher = a; this.transformer = b; this.timer = e; this.currentPos = null; this.touchInProgress = !1; this.touchIDs = []; }, innerRaiseEvent_2: function (a, b) { this.eventDispatcher.raiseEvent_1(new GT1447(a, this.currentPos.x, this.currentPos.y, b, this.timer.currentTimeMillis_0())); }, raiseEvent_2: function (a, b, d) { if (null != b.changedTouches) { var e, f; for (d = 0; d < b.changedTouches.length; d++) a == GT1447.prototype.TOUCH_START && -1 == this.touchIDs.indexOf(b.changedTouches[d].identifier) && this.touchIDs.push(b.changedTouches[d].identifier), (e = (b.changedTouches[d].pageX - b.mousepos.left) / CONFIG.SCALINGFACTOR), (f = (b.changedTouches[d].pageY - b.mousepos.top) / CONFIG.SCALINGFACTOR), (this.currentPos = this.transformer.transformNativeToGUISpace_2(e, f)), (a == GT1447.prototype.TOUCH_END && 0 < b.targetTouches.length) || this.innerRaiseEvent_2(a, this.touchIDs.indexOf(b.changedTouches[d].identifier)), a == GT1447.prototype.TOUCH_END && ((e = this.touchIDs.indexOf(b.changedTouches[d].identifier)), -1 < e && this.touchIDs.splice(e, 1)); a === GT1447.prototype.TOUCH_END && 0 == b.targetTouches.length && (this.touchIDs = []); } }, mouseMoved_1: function (a) {}, mouseDragged_1: function (a) { this.syncObject; this.raiseEvent_2(GT1447.prototype.TOUCH_MOVE, a); }, mouseClicked_1: function (a) {}, mousePressed_1: function (a) { this.syncObject; this.raiseEvent_2(GT1447.prototype.TOUCH_START, a); }, mouseReleased_1: function (a) { this.syncObject; this.raiseEvent_2(GT1447.prototype.TOUCH_END, a, !0); }, mouseEntered_1: function (a) {}, mouseExited_1: function (a) {}, mouseWheelMoved_1: function (a) {}, }, "GT720", [java_awt_event_MouseListener, java_awt_event_MouseMotionListener, java_awt_event_MouseWheelListener] ), GT1199 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.clip = g; this.streamMode = !0 === this.clip.isStreamMode_0(); this.video_format = this.clip.video_format; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, init_0: function () {}, start_0: function () { this.timeBaseVideoFrame = 0; this.lastVideoUpdateTime = -1; "1" !== JSUTIL.getParameter("videoondemand") || !0 === this.clip.lazyloading || this.clip.isLoadingTriggered_0() || this.clip.loadVideo_1(!0); if (!0 === this.streamMode) { if (G.isNotNullAndDefined(this.clip.mp4video.seekDoneCallback)) { var a = this; this.clip.mp4video.seekDoneCallback = function () { G.isNotNullAndDefined(a.clip) && a.clip.mp4video.play(); }; } this.clip.isLoaded_0() && 0 < this.clip.mp4video.currentTime && (this.clip.mp4video.currentTime = 0); } else this._displayObject.gotoAndStop(0); }, stop_0: function () { this.timeBaseVideoFrame = 0; !0 === this.streamMode ? (G.isNotNullAndDefined(this.clip.mp4video) && (this.clip.mp4video.seekDoneCallback = null), !0 === this.clip.dynamicVideoTextureNeeded ? G.isNotNullAndDefined(this.clip._dynamicCTX) && (this.clip._dynamicCTX.clearRect(0, 0, this.clip._dynamicCanvas.width, this.clip._dynamicCanvas.height), this.clip._dynamicVideoTexture.baseTexture.dirty()) : G.isNotNullAndDefined(this.clip.mp4texture) && G.isNotNullAndDefined(this.clip.mp4texture.baseTexture) && this.clip.mp4texture.baseTexture.dirty()) : this._displayObject.stop(); this._displayObject.visible = !1; for (var a = 0; a < this.viewers.size_0(); a++) { var b = this.viewers.elementAt_1(a); null != b && b.isAlive_0() && (!0 !== this.streamMode && b._displayObject.stop(), b.hidden || this.setAsDirtyArea_1(b), (b._displayObject.visible = !1)); } }, prepareSeek_1: function (a) { if (!0 === this.streamMode) { var b = this; 1 === this.clip.mp4video._gtID ? ((this.clip.mp4video2.seekDoneCallback = function () { G.isNotNullAndDefined(b.clip) && b.clip.mp4video2.pause(); }), (this.clip.mp4video2.currentTime = 0.001 * a), this.clip.mp4video2.play()) : ((this.clip.mp4video1.seekDoneCallback = function () { G.isNotNullAndDefined(b.clip) && b.clip.mp4video1.pause(); }), (this.clip.mp4video1.currentTime = 0.001 * a), this.clip.mp4video1.play()); } }, seek_1: function (a) { this.timeBaseVideoFrame = a; this.lastVideoUpdateTime = this.clip.getTimer_0().currentTimeMillis_0(); if (!0 === this.streamMode) { if (this.clip.useTwoStreamVideoElements) { var b = 1 === this.clip.mp4video._gtID ? this.clip.mp4video2 : this.clip.mp4video1; Math.abs(b.currentTime - 0.001 * a) < 2 * this.clip.mp4FrameDuration ? (this.clip.hasIntegratedSound && ((b.muted = this.clip.mp4video.muted), (b.volume = this.clip.mp4video.volume)), (this.clip.mp4video = b), !0 !== this.clip.dynamicVideoTextureNeeded && ((this.clip.mp4texture.baseTexture.source = this.clip.mp4video), this.clip.mp4texture.baseTexture.dirty()), this.prepareSeek_1(a)) : (this.clip.mp4video.currentTime = 0.001 * a); } else this.clip.mp4video.currentTime = 0.001 * a; !this.paused && this.clip.mp4video.paused && this.clip.mp4video.play(); } }, pause_0: function () { if (!0 === this.streamMode && (!0 === this.clip.mp4video.mp4SeekingDone && this.clip.mp4video.pause(), G.isNotNullAndDefined(this.clip.mp4video.seekDoneCallback))) { var a = this; this.clip.mp4video.seekDoneCallback = function () { G.isNotNullAndDefined(a.clip) && a.clip.mp4video.pause(); }; } }, resume_0: function () { this.lastVideoUpdateTime = this.clip.getTimer_0().currentTimeMillis_0(); if (!0 === this.streamMode && (!0 === this.clip.mp4video.mp4SeekingDone && this.clip.mp4video.play(), G.isNotNullAndDefined(this.clip.mp4video.seekDoneCallback))) { var a = this; this.clip.mp4video.seekDoneCallback = function () { G.isNotNullAndDefined(a.clip) && a.clip.mp4video.play(); }; } }, resize_2: function (a, b) { this._updateDisplayObject(); }, setAlpha_1: function (a) { this._displayObject.alpha = a / 255; }, setHorizontalFlip_1: function (a) { this._displayObject.horizontalFlip = a; }, setVerticalFlip_1: function (a) { this._displayObject.verticalFlip = a; }, setVideoFinished_1: function (a) {}, canProceedNextFrame_0: function () { if (null == this.clip || null == this._displayObject) return !1; if (!0 === this.streamMode) { if (!this.clip.isLoaded_0() || this.clip.mp4video.seeking || !this.clip.mp4video.mp4SeekingDone) return !1; this.paused || this.videoFinished || this.clip.mp4video.play(); if (!(this.clip.mp4video.currentTime < this.clip.mp4VideoDuration + 7 * this.clip.mp4FrameDuration && 0 < this.clip.mp4video.currentTime)) return !1; this.clip.mp4texture.baseTexture.dirty(); } else for (var a = 0; a < this.viewers.size_0(); a++) { var b = this.viewers.elementAt_1(a); null != b && b.isAlive_0() && !b.isHidden_0() && G.isNotNullAndDefined(b._displayObject) && 0 == b._displayObject.visible && ((b._displayObject.visible = !0), G.isNotNullAndDefined(b._displayObject.mask) && (b._displayObject.mask.visible = !0)); } a = this.timeBaseVideoFrame; if (!this.paused) { b = !0 === this.streamMode ? 1e3 * this.clip.mp4video.currentTime : this.clip.getTimer_0().currentTimeMillis_0(); 0 > this.lastVideoUpdateTime && (this.lastVideoUpdateTime = b); var d = b - this.lastVideoUpdateTime; this.lastVideoUpdateTime = b; this.timeBaseVideoFrame = !0 === this.streamMode ? b : this.timeBaseVideoFrame + d; } this.curVidFrame = this.timeBaseVideoFrame * this.clip.fps * 0.001; this.curVidFrame >= this.clip.frames && (this.curVidFrame = this.clip.frames - 1); this.curVidFrame = 0.5 <= this.curVidFrame ? Math.round(this.curVidFrame - 0.5) : 0; b = !0; d = this.curVidFrame % this.clip.frames; !0 === this.streamMode ? G.isNotNullAndDefined(d) && Math.round(1e9 * this.clip.mp4video.currentTime) / 1e9 < Math.round(this.clip.mp4FrameDuration * d * 1e9) / 1e9 && (b = !1) : (b = this._displayObject.textures[(d + 0.5) | 0]); if (!b || !0 === b.isDummyFrame) return (this.timeBaseVideoFrame = a), !1; !0 === this.streamMode && (this.clip.mp4video.paused || this.clip.mp4video.currentTime !== this.mp4LastCurrentTime ? ((this.mp4LastUpdateTime = this.clip.getTimer_0().currentTimeMillis_0()), (this.mp4LastCurrentTime = this.clip.mp4video.currentTime)) : 1e3 < this.clip.getTimer_0().currentTimeMillis_0() - this.mp4LastUpdateTime && (console.warn("VideoClip reloaded because it was frozen! " + this.clip.mp4video.src), (this.clip.mp4CanPlayThrough = !1), this.clip.mp4video.load())); return !0; }, endReached_0: function () { return !this.paused && this.timeBaseVideoFrame * this.clip.fps * 0.001 >= this.clip.frames ? !0 : !1; }, handleFirstRun_0: function () { this.isHidden_0() || ((this._displayObject.visible = !0), G.isNotNullAndDefined(this._displayObject.mask) && (this._displayObject.mask.visible = !0)); for (var a = 0; a < this.viewers.size_0(); a++) { var b = this.viewers.elementAt_1(a); null != b && b.isAlive_0() && !b.isHidden_0() && ((b._displayObject.visible = !0), G.isNotNullAndDefined(b._displayObject.mask) && (b._displayObject.mask.visible = !0)); } }, getCurrentPlayheadPosition_0: function () { return this.timeBaseVideoFrame; }, isFrameChanged_1: function (a) { return a || this.timeBaseVideoFramePrevValue != this.timeBaseVideoFrame; }, handleFrameChange_0: function () { this.timeBaseVideoFramePrevValue = this.timeBaseVideoFrame; var a = this.videoFinished; !0 !== this.streamMode ? this._displayObject.gotoAndStop(this.curVidFrame) : !0 === this.clip.dynamicVideoTextureNeeded && this.clip.isLoaded_0() && 1 < this.clip.mp4video.readyState && !a && (this.clip._dynamicCTX.clearRect(0, 0, this.clip._dynamicCanvas.width, this.clip._dynamicCanvas.height), this.clip._dynamicCTX.drawImage(this.clip.mp4video, 0, 0, this.clip._dynamicCanvas.width, this.clip._dynamicCanvas.height), this.clip._dynamicVideoTexture.baseTexture.dirty()); if (!0 !== this.streamMode) for (a = 0; a < this.viewers.size_0(); a++) { var b = this.viewers.elementAt_1(a); null != b && b.isAlive_0() && b._displayObject.gotoAndStop(this.curVidFrame); } }, getCurrentFrameWidth_0: function () { return null != this.clip ? this.clip.originalWidth : -1; }, getCurrentFrameHeight_0: function () { return null != this.clip ? this.clip.originalHeight : -1; }, requestRepaint_0: function () { this.hidden || this.setAsDirtyArea_1(this); }, destroyImpl_2: function (a, b) { GT1560.prototype.destroyImpl_2.call(this, a, b); null != this._displayObject && (this._displayObject = null); }, _createDisplayObject: function () { G.isNotNullAndDefined(this.clip) && !G.isNotNullAndDefined(this._displayObject) && (!0 === this.streamMode ? ((this._displayObject = !0 === this.clip.dynamicVideoTextureNeeded ? new PIXI.Sprite(this.clip._dynamicVideoTexture) : new PIXI.Sprite(this.clip.mp4texture)), (this._displayObject.gt_separatedAlpha = this.clip.hasSeparatedAlpha)) : ((this._displayObject = new PIXI.MovieClip(this.clip.texturesarray)), (this._displayObject.animationSpeed = 0.01 * this.clip.fps))); this._displayObject.visible = !1; G.isNotNullAndDefined(this._displayObject.mask) && (this._displayObject.mask.visible = !1); }, _updateDisplayObject: function () { if (G.isNotNullAndDefined(this.clip) && G.isNotNullAndDefined(this._displayObject)) { var a = this._scalex ? this._scalex : CONFIG.SCALINGFACTOR, b = this._scaley ? this._scaley : CONFIG.SCALINGFACTOR; this._displayObject.width = Math.ceil(this.width * a - 0.5); this._displayObject.height = Math.ceil(this.height * b - 0.5); this._displayObject.position.x = Math.ceil(this.x * a - 0.5); this._displayObject.position.y = Math.ceil(this.y * b - 0.5); this._displayObject.horizontalFlip = this.horizontalFlip; this._displayObject.verticalFlip = this.verticalFlip; this.updateDisplayObjectColorTransformation_1(this.intrinsiccolortransformation); this._addMask(this); this.hidden || this.setAsDirtyArea_1(this); } }, updateDisplayObjectColorTransformation_1: function (a) { G.isNotNullAndDefined(this) && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, }, "GT1199", [] ), GT1200 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.player = g; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, resize_2: function (a, b) {}, setAlpha_1: function (a) { this._displayObject.alpha = a / 255; }, setHorizontalFlip_1: function (a) { this._displayObject.horizontalFlip = a; }, setVerticalFlip_1: function (a) { this._displayObject.verticalFlip = a; }, requestRepaint_0: function () { this.hidden || this.setAsDirtyArea_1(this); }, destroyImpl_2: function (a, b) { GT1560.prototype.destroyImpl_2.call(this, a, b); }, _createDisplayObject: function () { this.player && null == this.player.clip ? (this._displayObject = new PIXI.Graphics()) : (G.isNotNullAndDefined(this.player) && !G.isNotNullAndDefined(this._displayObject) && (!0 === this.player.streamMode ? ((this._displayObject = !0 === this.player.clip.dynamicVideoTextureNeeded ? new PIXI.Sprite(this.player.clip._dynamicVideoTexture) : new PIXI.Sprite(this.player.clip.mp4texture)), (this._displayObject.gt_separatedAlpha = this.player.clip.hasSeparatedAlpha)) : ((this._displayObject = new PIXI.MovieClip(this.player.clip.texturesarray)), (this._displayObject.animationSpeed = this.player.clip.fps / 100))), G.isNotNullAndDefined(this.player) ? this.player._displayObject.visible || this.player.running || ((this._displayObject.visible = !1), G.isNotNullAndDefined(this._displayObject.mask) && (this._displayObject.mask.visible = !1)) : this.hide_1(!0), G.isNotNullAndDefined(this.player) && !0 !== this.player.streamMode && G.isNotNullAndDefined(this.player._displayObject) && this._displayObject.gotoAndStop(this.player._displayObject.currentFrame)); }, _updateDisplayObject: function () { if (G.isNotNullAndDefined(this.player) && G.isNotNullAndDefined(this._displayObject)) { var a = this._scalex ? this._scalex : CONFIG.SCALINGFACTOR, b = this._scaley ? this._scaley : CONFIG.SCALINGFACTOR; this._displayObject.width = Math.ceil(this.width * a - 0.5); this._displayObject.height = Math.ceil(this.height * b - 0.5); this._displayObject.position.x = Math.ceil(this.x * a - 0.5); this._displayObject.position.y = Math.ceil(this.y * b - 0.5); this._displayObject.horizontalFlip = this.horizontalFlip; this._displayObject.verticalFlip = this.verticalFlip; this.updateDisplayObjectColorTransformation_1(this.intrinsiccolortransformation); this._addMask(this); this.hidden || this.setAsDirtyArea_1(this); } }, updateDisplayObjectColorTransformation_1: function (a) { G.isNotNullAndDefined(this) && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, }, "GT1200", [] ), GT935 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); this.OpenLinkButtonListener_linkUrl = null; }, initialConstructor_1: function (a) { this.OpenLinkButtonListener_linkUrl = null; this.OpenLinkButtonListener_linkUrl = a; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { loadUrl_newtab(this.OpenLinkButtonListener_linkUrl); }, }, "GT935", [GT1066] ), GT828 = Class.extend( { initialConstructor_0: function () { this.appletDependencies = this.timer = this.disp = this.topContainer = this.nativeSensorManager = null; this.autoCentering = this.isRunning = this.isMouseRegistered = this.isSensorRegistered = !1; this.threshold = this.smoothnessFactor = this.autoCenteringDurationUnit = this.autoCenteringDuration = this.autoCenteringZ = this.autoCenteringY = this.autoCenteringX = this.lastZAutoCenteringTime = this.lastYAutoCenteringTime = this.lastXAutoCenteringTime = this.rawZ = this.rawY = this.rawX = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.appletDependencies = this.timer = this.disp = this.topContainer = this.nativeSensorManager = null; this.autoCentering = this.isRunning = this.isMouseRegistered = this.isSensorRegistered = !1; this.threshold = this.smoothnessFactor = this.autoCenteringDurationUnit = this.autoCenteringDuration = this.autoCenteringZ = this.autoCenteringY = this.autoCenteringX = this.lastZAutoCenteringTime = this.lastYAutoCenteringTime = this.lastXAutoCenteringTime = this.rawZ = this.rawY = this.rawX = 0; this.topContainer = a; this.disp = b; this.timer = d; this.appletDependencies = e; this.smoothnessFactor = 0.75; this.threshold = 0.02; this.autoCenteringDuration = 1e3; this.autoCenteringDurationUnit = 1 / this.autoCenteringDuration; }, getX_0: function () { return this.autoCentering ? this.getAutoCenteringX_0() : this.getRawX_0(); }, getY_0: function () { return this.autoCentering ? this.getAutoCenteringY_0() : this.getRawY_0(); }, getZ_0: function () { return this.autoCentering ? this.getAutoCenteringZ_0() : this.getRawZ_0(); }, getRawX_0: function () { return this.rawX; }, getRawY_0: function () { return this.rawY; }, getRawZ_0: function () { return this.rawZ; }, getAutoCenteringX_0: function () { var a = this.timer.currentTimeMillis_0(); if (a > this.lastXAutoCenteringTime) { var b = a - this.lastXAutoCenteringTime; this.lastXAutoCenteringTime = a; this.autoCenteringX *= Math.max_2(1 - Math.min_2(b * this.autoCenteringDurationUnit, 1), 0); } return this.autoCenteringX; }, getAutoCenteringY_0: function () { var a = this.timer.currentTimeMillis_0(); if (a > this.lastYAutoCenteringTime) { var b = a - this.lastYAutoCenteringTime; this.lastYAutoCenteringTime = a; this.autoCenteringY *= Math.max_2(1 - Math.min_2(b * this.autoCenteringDurationUnit, 1), 0); } return this.autoCenteringY; }, getAutoCenteringZ_0: function () { var a = this.timer.currentTimeMillis_0(); if (a > this.lastZAutoCenteringTime) { var b = a - this.lastZAutoCenteringTime; this.lastZAutoCenteringTime = a; this.autoCenteringZ *= Math.max_2(1 - Math.min_2(b * this.autoCenteringDurationUnit, 1), 0); } return this.autoCenteringZ; }, setAutoCenteringDuration_1: function (a) { this.autoCenteringDuration = a; this.autoCenteringDurationUnit = 1 / this.autoCenteringDuration; }, getAutoCenteringDuration_0: function () { return this.autoCenteringDuration; }, setAutoCenteringEnabled_1: function (a) { this.autoCentering = a; }, isAutoCenteringEnabled_0: function () { return this.autoCentering; }, setSmoothnessFactor_1: function (a) { 0 <= a && 1 >= a && ((this.smoothnessFactor = a), this.isSensorRegistered && this.nativeSensorManager.setSmoothnessFactor_1(a)); }, getSmoothnessFactor_0: function () { return this.smoothnessFactor; }, setThreshold_1: function (a) { 0 <= a && 1 >= a && ((this.threshold = a), this.isSensorRegistered && this.nativeSensorManager.setThreshold_1(a)); }, getThreshold_0: function () { return this.threshold; }, register_0: function () { this.nativeSensorManager = new GT508(this.disp, this.appletDependencies); this.nativeSensorManager.orientationSupported_0() && !this.isSensorRegistered ? (this.disp.registerHandler_4(GT509.prototype.ORIENTATION_SENSOR, null, this, -1), this.nativeSensorManager.setSmoothnessFactor_1(this.smoothnessFactor), this.nativeSensorManager.setThreshold_1(this.threshold), this.nativeSensorManager.start_0(), (this.isSensorRegistered = !0)) : this.isMouseRegistered || ((this.nativeSensorManager = null), this.disp.registerHandler_4(GT1451.prototype.MOUSE_MOVED, null, this, -1), (this.isMouseRegistered = !0)); }, unregister_0: function () { this.isSensorRegistered ? (this.disp.unregisterHandler_1(this), this.nativeSensorManager.stop_0(), (this.nativeSensorManager = null), (this.isSensorRegistered = !1)) : this.isMouseRegistered && (this.disp.unregisterHandler_1(this), (this.isMouseRegistered = !1)); }, handleOrientationEvent_1: function (a) { this.autoCenteringX += a.getX_0() - this.rawX; this.autoCenteringY += a.getY_0() - this.rawY; this.autoCenteringZ += a.getZ_0() - this.rawZ; this.rawX = a.getX_0(); this.rawY = a.getY_0(); this.rawZ = a.getZ_0(); return !0; }, start_0: function () { this.register_0(); this.isRunning = !0; }, stop_0: function () { this.unregister_0(); this.isRunning = !1; }, isStarted_0: function () { return this.isRunning; }, handleMouseEvent_1: function (a) { a = this.topContainer.transformGuiSpaceToParallax_2(a.getX_0(), a.getY_0()); this.autoCenteringX += a.x - this.rawX; this.autoCenteringY += a.y - this.rawY; this.rawX = a.x; this.rawY = a.y; return !1; }, }, "GT828", [GT231, GT1011] ), GT1633 = Class.extend( { initialConstructor_0: function () { this.initialConstructor_2(0, 0); }, initialConstructor_1: function (a) { this.initialConstructor_2(a.x, a.y); }, initialConstructor_2: function (a, b) { this.x = a; this.y = b; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getLocation_0: function () { return new GT1633(this.x, this.y); }, setLocation_1: function (a) { this.setLocation_2(a.x, a.y); }, setLocation_2: function (a, b) { this.move_2(a, b); }, move_2: function (a, b) { this.x = a; this.y = b; }, translate_2: function (a, b) { this.x += a; this.y += b; }, equals_1: function (a) { return instanceOf(a, GT1633) ? this.x == a.x && this.y == a.y : Class.prototype.equals_1.call(this, a); }, toString: function () { return this.classname + "[x=" + this.x + ",y=" + this.y + "]"; }, }, "GT1633", [] ), GT1452 = Class.extend( { initialConstructor_0: function () { this.downButton = this.buttonCurrent = this.pointerId = null; this.mouseButtonDown = !1; this.previousPosition = this.currentPosition = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1452.prototype.initialConstructor_3.call(this, a, null, !1); }, initialConstructor_3: function (a, b, d) { this.downButton = this.buttonCurrent = this.pointerId = null; this.mouseButtonDown = !1; this.previousPosition = this.currentPosition = null; this.pointerId = a; this.buttonCurrent = b; this.mouseButtonDown = d; this.currentPosition = new GT1633(-1, -1); this.previousPosition = new GT1633(-1, -1); }, }, "GT1452", [] ), GT1553 = Class.extend( { initialConstructor_0: function () { this.initialConstructor_4(0, 0, 0, 0); }, initialConstructor_1: function (a) { this.initialConstructor_4(a.x, a.y, a.width, a.height); }, initialConstructor_4: function (a, b, d, e) { this.x = a; this.y = b; this.width = d; this.height = e; }, initialConstructor_2: function (a, b) { this.initialConstructor_4(0, 0, a, b); }, contains_1: function (a) { return 0 < this.width && 0 < this.height && this.x <= a.x && this.y <= a.y && this.x + this.width >= a.x + a.width && this.y + this.height >= a.y + a.height; }, contains_2: function (a, b) { return a >= this.x && a < this.x + this.width && b >= this.y && b < this.y + this.height; }, getX_0: function () { return this.x; }, isEmpty_0: function () { return 0 >= this.width || 0 >= this.height; }, setBounds_4: function (a, b, d, e) { this.x = a; this.y = b; this.width = d; this.height = e; }, setBounds_1: function (a) { this.x = a.x; this.y = a.y; this.width = a.width; this.height = a.height; }, add_2: function (a, b) { if (0 > (this.width | this.height)) (this.x = a), (this.y = b), (this.width = this.height = 0); else { var d = this.x, e = this.y, f = this.width, g = this.height, f = f + d, g = g + e; d > a && (d = a); e > b && (e = b); f < a && (f = a); g < b && (g = b); f -= d; g -= e; f > Integer.MAX_VALUE && (f = Integer.MAX_VALUE); g > Integer.MAX_VALUE && (g = Integer.MAX_VALUE); this.setBounds_4(d, e, f, g); } }, getY_0: function () { return this.y; }, getWidth_0: function () { return this.width; }, getHeight_0: function () { return this.height; }, getBounds_0: function () { return new GT1553(this.x, this.y, this.width, this.height); }, setSize_2: function (a, b) { this.width = a; this.height = b; }, setLocation_2: function (a, b) { this.x = a; this.y = b; }, toString: function () { return this.classname + "[x=" + this.x + ",y=" + this.y + ",width=" + this.width + ",height=" + this.height + "]"; }, add_1: function (a) { var b = Math.min(this.x, a.x), d = Math.max(this.x + this.width, a.x + a.width), e = Math.min(this.y, a.y); a = Math.max(this.y + this.height, a.y + a.height); this.x = b; this.y = e; this.width = d - b; this.height = a - e; }, intersects_4: function (a, b, d, e) { return 0 >= d || 0 >= e || 0 >= this.width || 0 >= this.height ? !1 : this.x < a + d && a < this.x + this.width && this.y < b + e && b < this.y + this.height; }, intersects_1: function (a) { return this.intersects_4(a.x, a.y, a.width, a.height); }, intersection_1: function (a) { var b = this.x, d = this.y, e = a.x, f = a.y, g; g = b + this.width; var k; k = d + this.height; var m; m = e + a.width; a = f + a.height; b < e && (b = e); d < f && (d = f); g > m && (g = m); k > a && (k = a); g -= b; k -= d; g < Integer.MIN_VALUE && (g = Integer.MIN_VALUE); k < Integer.MIN_VALUE && (k = Integer.MIN_VALUE); return new GT1553(b, d, g, k); }, }, "GT1553", [] ), GT1028 = Class.extend( { initialConstructor_2: function (a, b) { this.graphicsToolkit = b; this.resourceBase = a; this.fontCache = new java_util_JavaScriptHashtable(); }, cleanup_0: function () { this.fontCache.clear_0(); }, isResourceInCache_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); a.endsWith_1(".flv") ? (a = JSUTIL.getReplacedVideoName(a)) : (a.endsWith_1(".png") || a.endsWith_1(".jpg")) && CONFIG.get("webp") && ((a = a.replace(".jpg", ".jpg.webp")), (a = a.replace(".png", ".png.webp"))); return null != this.findExistingResource_1(a); }, getVideoClip_1: function (a) { var b = a.indexOf_1("#"); 0 < b && b < a.length_0() - 1 && (a = a.substring_2(0, b)); a = JSUTIL.getReplacedVideoName(this.createPackageAbsoluteFilename_1(a)); b = this.findExistingResource_1(a); GT1650.prototype.assertExp_2(null != b, "Video " + a + " wasn't triggered for loading."); return b; }, getTextDocument_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); var b = this.findExistingResource_1(a); GT1650.prototype.assertExp_2(null != b, "Text file " + a + " wasn't triggered for loading."); return b; }, getJSONObject_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); var b = this.findExistingResource_1(a); GT1650.prototype.assertExp_2(null != b, "JSON file " + a + " wasn't triggered for loading."); return b; }, getImage_1: function (a) { var b = this.createPackageAbsoluteFilename_1(a); CONFIG.get("webp") && ((b = b.replace(".jpg", ".jpg.webp")), (b = b.replace(".png", ".png.webp"))); var d = this.findExistingResource_1(b); null == d && ((d = this.findExistingResource_1(CONFIG.get("webp") ? b.replace(".jpg.webp", ".png.webp") : b.replace(".jpg", ".png"))), null == d && a.substring_2(a.lastIndexOf_1("/") + 1, a.length - 4)); GT1650.prototype.assertExp_2(null != d, "Image " + b + " wasn't triggered for loading."); return d; }, getSound_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); var b = this.findExistingResource_1(a); GT1650.prototype.assertExp_2(null != b, "Sound " + a + " wasn't triggered for loading."); return b; }, getFont_6: function (a, b, d, e, f, g) { var k, m; k = !0; m = JSUTIL.getOpenTypeCustomFont(a, b, d); null !== m && (k = !1); var n = "font:" + a + "_" + e + (b ? "b" : "-") + f + (d ? "i" : "-") + g + (!0 === k ? "ntiv" : "cstm"); if (this.fontCache.containsKey_1(n)) return this.fontCache.get_1(n); if (0 == f && 0 == g) return new GT1492(a, e, b, d); e = 0; if (!0 === k) for ( null == this.context && ((this.canvas = document.createElement("canvas")), (this.context = this.canvas.getContext("2d"))), m = 10, g = GT1492.prototype._getFullName(a, b, d), this.context.font = (b ? "bold " : "") + (d ? "italic " : "") + m + "px " + g, k = 0; ; k++ ) { e = this.context.measureText("Some words").width; if (e > f) { --m; this.context.font = (b ? "bold " : "") + (d ? "italic " : "") + m + "px " + g; e = this.context.measureText("Some words").width; e > f && --m; break; } m = 2 < f / e ? m * (Math.ceil(f / e) - 1) : m + 2; this.context.font = (b ? "bold " : "") + (d ? "italic " : "") + m + "px " + g; } else { var p = 0, q = 0; m.forEachGlyph("Some words", 0, 0, 10, { kerning: !0 }, function (a, b, d, e) { p = b; q = a.advanceWidth; }); e = p + (1 / m.unitsPerEm) * q * 10; m = Math.floor((f / e) * 10); } a = new GT1492(a, Math.round(m), b, d); this.fontCache.put_2(n, a); return a; }, createPackageAbsoluteFilename_1: function (a) { return a.startsWith_1("http") ? a : a.startsWith_1("/") ? this.canonifyFileName_1(a) : this.canonifyFileName_1(this.resourceBase.concat_1(a)); }, getResourceBase_0: function () { return this.resourceBase; }, getGraphicsToolkit_0: function () { return this.graphicsToolkit; }, findExistingResource_1: function (a) { return null; }, }, "GT1028", [] ); GT1028.prototype.canonifyFileName_1 = function (a) { for (var b = 0; ; ) if (a.indexOf_2("../", b) == b) b += 3; else break; for (var d = a.substring_2(0, b), e = a.substring_1(b); ; ) { var f = e.indexOf_2("../", b); if (0 > f) break; else if (1 > f) { d += "../"; e = e.substring_1(3); continue; } var g = e.lastIndexOf_2("/", f - 2); if (0 > g) { if (0 <= e.substring_2(0, f).indexOf_1(":") || 0 == e.indexOf_1("/../")) throw new IllegalArgumentException("Can't canonify " + a + ". Reference outside root."); e = e.substring_1(f + 3); } else e = e.substring_2(0, g + 1) + e.substring_1(f + 3); } return d + e; }; var GT1494 = Class.extend( { initialConstructor_0: function () { this.skinDescription = this.timer = this.soundPlayer = this.parameters = this.resourceManager = null; this.rtl = !1; this.eventDispatcher = this.skinIDs = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT1494.prototype.initialConstructor_5.call(this, a, b, d, null, null); }, initialConstructor_5: function (a, b, d, e, f) { this.skinDescription = this.timer = this.soundPlayer = this.parameters = this.resourceManager = null; this.rtl = !1; this.eventDispatcher = this.skinIDs = null; null == a && GT1650.prototype.log_1("ResourceManager is null"); null == b && GT1650.prototype.log_1("SoundPlayer is null"); null == d && GT1650.prototype.log_1("Timer is null"); this.resourceManager = a; this.skinDescription = null; this.soundPlayer = b; this.timer = d; this.parameters = e; this.eventDispatcher = f; }, getDeviceType_0: function () { var a = this.getParameter_1(GT1677.prototype.toLowerCaseAZ_1(GT1563.prototype.DEVICETYPE_APPLET_PARAMETER)); null == a && (a = this.getParameter_1(GT1677.prototype.toUpperCaseAZ_1(GT1563.prototype.DEVICETYPE_APPLET_PARAMETER))); null == a && 1 < GT1563.prototype.DEVICETYPE_APPLET_PARAMETER.length_0() && (a = this.getParameter_1( GT1677.prototype.toUpperCaseAZ_1(GT1563.prototype.DEVICETYPE_APPLET_PARAMETER.substring_2(0, 1)).concat_1(GT1677.prototype.toLowerCaseAZ_1(GT1563.prototype.DEVICETYPE_APPLET_PARAMETER.substring_1(1))) )); return null != a && 0 < a.length_0() ? a : GT1563.prototype.DEVICETYPE_DESKTOP; }, getResourceManager_0: function () { return this.resourceManager; }, setSkinDescription_1: function (a) { this.skinDescription = a; this.rtl = a.getBoolean_1("rtl"); }, setSkinIDs_1: function (a) { this.skinIDs = a; }, hasSkinId_1: function (a) { if (null != this.skinIDs) for (var b = 0; b < this.skinIDs.length; b++) if (GT1677.prototype.equalsIgnoreCaseAZ_2(this.skinIDs[b], a)) return !0; return !1; }, getSkinDescription_0: function () { return this.skinDescription; }, getSoundPlayer_0: function () { return this.soundPlayer; }, getTimer_0: function () { return this.timer; }, getText_1: function (a) { return null == a ? null : null == this.skinDescription ? a : this.skinDescription.performSubstitution_1(a); }, getParameter_1: function (a) { return null == this.parameters ? null : this.parameters.getParameter_1(a); }, isRTLLanguage_0: function () { return this.rtl; }, getEventDispatcher_0: function () { return this.eventDispatcher; }, destroy_0: function () { this.eventDispatcher = this.parameters = this.skinDescription = null; }, }, "GT1494", [] ), GT1638 = GT1635.extend( { initialConstructor_0: function () { this.cancelationCounter = 0; GT1635.prototype.initialConstructor_0.call(this); }, }, "GT1638", [] ), GT1495 = Class.extend( { initialConstructor_0: function () { this.activeStateListeners = this.allstartedsounds = this.timer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.activeStateListeners = this.allstartedsounds = this.timer = null; this.timer = a; this.allstartedsounds = new java_util_JavaScriptVector(); this.activeStateListeners = new java_util_JavaScriptVector(); }, start_6: function (a, b, d, e, f, g) { GT1650.prototype.assertExp_2(null != a, "sound is null"); GT1650.prototype.assertExp_2(0 <= d, "startposition < 0"); GT1650.prototype.assertExp_2(0 <= f && 100 >= f, "volume out of range"); GT1650.prototype.assertExp_2(-1 <= g && 1 >= g, "panning out of range"); GT1650.prototype.assertExp_2(0 == e || e > d, "endposition has illegal value (must be 0 or > startposition)"); null != a && ((e = 0 == e ? a.getLength_0() + 1 : e), e > d && (this.startImpl_6(a, d, e, -1, f, g), this.allstartedsounds.contains_1(a) || this.allstartedsounds.addElement_1(a)), null != b && this.timer.triggerCallbackAfter_2(new GT881(a, b), Integer.truncate_1(e - d))); }, start_4: function (a, b, d, e) { this.start_6(a, b, d, e, 100, 0); }, start_2: function (a, b) { this.start_6(a, b, 0, a.getLength_0(), 100, 0); }, start_1: function (a) { this.start_6(a, null, 0, a.getLength_0(), 100, 0); }, startLooped_6: function (a, b, d, e, f, g) { d = 0 == d ? a.getLength_0() + 1 : d; GT1650.prototype.assertExp_2(null != a, "sound is null"); GT1650.prototype.assertExp_2(0 <= b, "startposition < 0"); GT1650.prototype.assertExp_2(d > b, "endposition has illegal value (must be 0 or > startposition)"); GT1650.prototype.assertExp_2(0 <= e && e < d, "restartposition must be >=0 and < endposition"); GT1650.prototype.assertExp_2(0 <= f && 100 >= f, "volume out of range"); GT1650.prototype.assertExp_2(-1 <= g && 1 >= g, "panning out of range"); this.startImpl_6(a, b, d, e, f, g); this.allstartedsounds.contains_1(a) || this.allstartedsounds.addElement_1(a); }, startLooped_4: function (a, b, d, e) { this.startLooped_6(a, b, d, e, 100, 0); }, startLooped_1: function (a) { this.startLooped_6(a, 0, a.getLength_0(), 0, 100, 0); }, stop_2: function (a, b) { this.stopImpl_2(a, b); a.cancelationCounter++; }, stop_1: function (a) { this.stop_2(a, 0); }, stopAll_1: function (a) { for (var b = 0; b < this.allstartedsounds.size_0(); b++) this.stop_2(this.allstartedsounds.elementAt_1(b), a); }, stopAll_0: function () { this.stopAll_1(0); }, addActiveStateListener_1: function (a) { this.activeStateListeners.contains_1(a) || this.activeStateListeners.addElement_1(a); }, removeActiveStateListener_1: function (a) { this.activeStateListeners.contains_1(a) && this.activeStateListeners.removeElement_1(a); }, notifyActiveStateListeners_0: function () { for (var a = 0; a < this.activeStateListeners.size_0(); a++) this.activeStateListeners.elementAt_1(a).notifySoundPlayerActiveState_2(this.isActive_0(), this.getMasterVolume_0()); }, prepareSound_2: function (a, b) {}, cancelPreparation_2: function (a, b) {}, }, "GT1495", [] ), GT881 = Class.extend( { initialConstructor_0: function () { this.runnable = this.sound = null; this.cancelationCounter = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.runnable = this.sound = null; this.cancelationCounter = 0; this.sound = a; this.runnable = b; this.cancelationCounter = a.cancelationCounter; }, run_0: function () { this.sound.cancelationCounter == this.cancelationCounter && this.runnable.run_0(); }, }, "GT881", [Runnable] ), GT465 = Class.extend( { initialConstructor_0: function () { this.targetEventName = this.targetAnimationName = this.trackEntry = null; this.triggeredTrackIndex = this.targetTrackIndex = 0; this.triggeredEventName = this.triggeredAnimationName = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.targetEventName = this.targetAnimationName = this.trackEntry = null; this.triggeredTrackIndex = this.targetTrackIndex = 0; this.triggeredEventName = this.triggeredAnimationName = null; this.targetTrackIndex = a; this.targetAnimationName = b; this.targetEventName = d; this.triggeredTrackIndex = -1; this.trackEntry = this.triggeredEventName = this.triggeredAnimationName = null; }, getTargetAnimationTrackIndex_0: function () { return this.targetTrackIndex; }, getTargetAnimationName_0: function () { return this.targetAnimationName; }, getTargetAnimationEventName_0: function () { return this.targetEventName; }, getTriggeredAnimationTrackIndex_0: function () { return this.triggeredTrackIndex; }, getTriggeredAnimationName_0: function () { return this.triggeredAnimationName; }, getTriggeredTrackEntry_0: function () { return this.trackEntry; }, getTriggeredAnimationEventName_0: function () { return this.triggeredEventName; }, setTriggeredEventData_2: function (a, b) { this.trackEntry = a; this.triggeredTrackIndex = a.getTrackIndex_0(); this.triggeredAnimationName = a.toString(); null != b && (this.triggeredEventName = b.getData_0().getName_0()); }, }, "GT465", [Runnable] ), GT1453 = Class.extend( { initialConstructor_0: function () { this.lines = []; }, loadFromStream_1: function (a) { this.lines = []; new GT1342(a); this.lines = a.split("\n"); }, getNumberOfLines_0: function () { return this.lines.length; }, getLine_1: function (a) { return a >= this.lines.length ? (GT1650.prototype.assertExp_2(!1, "wrong line number " + a), "") : this.lines[a]; }, }, "GT1453", [] ), GT1400 = Class.extend( { initialConstructor_0: function () {}, preTickActions_1: function (a) {}, timeForCurrentTick_1: function (a) { return a; }, }, "GT1400", [] ), GT1343 = Class.extend( { initialConstructor_0: function () { this.maximumToolTipWidth = 0; this.consoleNeonEnabled = !1; this.currentTip = this.fontMetricsTip = this.buttonLayer = this.tipLayer = this.top = this.timer = null; this.lastTimeOfVisibleTip = this.startOfCurrentTip = 0; this.tipOnScreen = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.maximumToolTipWidth = 0; this.consoleNeonEnabled = !1; this.currentTip = this.fontMetricsTip = this.buttonLayer = this.tipLayer = this.top = this.timer = null; this.lastTimeOfVisibleTip = this.startOfCurrentTip = 0; this.tipOnScreen = null; this.timer = a; this.top = b; this.tipLayer = e; this.fontMetricsTip = f; this.buttonLayer = d; this.currentTip = null; this.lastTimeOfVisibleTip = this.startOfCurrentTip = 0; this.tipOnScreen = null; this.maximumToolTipWidth = g; this.consoleNeonEnabled = k; this.run_0(); }, run_0: function () { this.buttonLayer.isAlive_0() && this.tipLayer.isAlive_0() && (this.checkToolTips_0(), this.timer.triggerCallbackAfter_2(this, GT1343.prototype.TOOLTIPCHECKSPEED)); }, checkToolTips_0: function () { var a = this.timer.currentTimeMillis_0(), b = this.buttonLayer.getMouseX_0(), d = this.buttonLayer.getMouseY_0(), e = this.top.getVisibleArea_0(), f = GT1672.prototype.doubleToInt_1(e.width), g = GT1672.prototype.doubleToInt_1(e.height), k = GT1672.prototype.doubleToInt_1(e.x), e = GT1672.prototype.doubleToInt_1(e.y); if (this.tipLayer.getWidth_0() != f || this.tipLayer.getHeight_0() != g) this.tipLayer.move_2(k, e), this.tipLayer.resize_2(f, g); g = null; f = this.top.isMouseDown_0() ? null : GT1559.prototype.findButton_3(this.buttonLayer, b, d); if (null == f || !f.toolTipOffIfInactive || f.isActive_0()) null != f && f.toolTipAlwaysOn ? (g = f.toolTip) : ((g = null == f ? null : f.toolTip), this.sameString_2(g, this.currentTip) || ((this.currentTip = g), (this.startOfCurrentTip = this.lastTimeOfVisibleTip + GT1343.prototype.TOOLTIPREAPPEARTIME > a ? a - GT1343.prototype.TOOLTIPWAITTIME : a)), (g = this.currentTip), null != this.currentTip && (a < this.startOfCurrentTip + GT1343.prototype.TOOLTIPWAITTIME || a > this.startOfCurrentTip + this.getHideTime_1(this.currentTip) ? (g = null) : (this.lastTimeOfVisibleTip = a))); if (!this.sameString_2(g, this.tipOnScreen) && ((this.tipOnScreen = g), this.tipLayer.destroyChildren_0(), null != this.tipOnScreen)) { a = this.consoleNeonEnabled ? 6 : 5; g = this.consoleNeonEnabled ? 5 : 3; k = b - k + a; e = d + GT1343.prototype.DISTANCEFROMCURSORBELOW - e + g; b = new GT1606( this.tipLayer, k, e, this.maximumToolTipWidth, GT1606.prototype.ALIGN_LEFT | GT1606.prototype.VALIGN_TOP, this.tipOnScreen, this.fontMetricsTip, this.consoleNeonEnabled ? GT1634.prototype.yellow : GT1634.prototype.white ); b.getHeight_0() <= this.fontMetricsTip.getHeight_0() && (b.destroy_0(), (b = new GT1606( this.tipLayer, k, e, GT1606.prototype.ALIGN_LEFT | GT1606.prototype.VALIGN_TOP, this.tipOnScreen, this.fontMetricsTip, this.consoleNeonEnabled ? GT1634.prototype.yellow : GT1634.prototype.white ))); k = new GT1553(k - a, e - g, b.getWidth_0() + 2 * a, b.getHeight_0() + 2 * g); e = this.consoleNeonEnabled ? new GT1439(this.tipLayer, k.x, k.y, k.width, k.height, 1, 1, 1, GT1634.prototype.black, GT1634.prototype.white, 198, 48) : new GT1439(this.tipLayer, k.x, k.y, k.width, k.height, 1, 7, 5, GT1634.prototype.black, GT1634.prototype.white, 170, 170); e.reorder_1(!1); this.consoleNeonEnabled && 0 < f.y && k.y + k.height > f.y && (k.y -= k.y + k.height - f.y + 4); k.y + k.height > this.tipLayer.getHeight_0() && (k.y = d - k.height - GT1343.prototype.DISTANCEFROMCURSORABOVE); k.x + k.width > this.tipLayer.getWidth_0() && (k.x = this.tipLayer.getWidth_0() - k.width - 2); 0 > k.x && (k.x = 0); 0 > k.y && (k.y = 0); if (this.top.isBlockedScreenArea_1(k)) { for (d = new GT1553(k.x, k.y, k.width, k.height); this.top.isBlockedScreenArea_1(d); ) d.x -= 10; for (f = new GT1553(k.x, k.y, k.width, k.height); this.top.isBlockedScreenArea_1(f); ) f.y -= 10; k = k.x - d.x < k.y - f.y ? d : f; } e.move_2(k.x, k.y); b.move_2(k.x + a, k.y + g); } }, sameString_2: function (a, b) { return a == b ? !0 : null == a ? null == b : a.equals_1(b); }, }, "GT1343", [Runnable] ); GT1343.prototype.getHideTime_1 = function (a) { a = GT1343.prototype.TOOLTIPWAITTIME + 60 * a.length_0(); a = Math.max_2(a, GT1343.prototype.TOOLTIPMINHIDETIME); return (a = Math.min_2(a, GT1343.prototype.TOOLTIPMAXHIDETIME)); }; GT1343.prototype.TOOLTIPCHECKSPEED = 200; GT1343.prototype.TOOLTIPWAITTIME = 1200; GT1343.prototype.TOOLTIPMINHIDETIME = GT1343.prototype.TOOLTIPWAITTIME + 3e3; GT1343.prototype.TOOLTIPMAXHIDETIME = GT1343.prototype.TOOLTIPWAITTIME + 1e4; GT1343.prototype.TOOLTIPREAPPEARTIME = 300; GT1343.prototype.DISTANCEFROMCURSORBELOW = 20; GT1343.prototype.DISTANCEFROMCURSORABOVE = 5; var Vec4 = Class.extend( { initialConstructor_0: function () { this.w = this.z = this.y = this.x = 0; this.mLengthDirty = !0; this.mCachedLength = 0; }, toString_0: function () { return "Vec4{x=" + this.x + ", y=" + this.y + ", z=" + this.z + ", w=" + this.w + "}"; }, Vec4_1: function (a) { this.set(a); }, Vec4: function (a, b, d, e) { this.set(a, b, d, e); }, set_4: function (a, b, d, e) { this.x = a; this.y = b; this.z = d; this.w = e; this.mLengthDirty = !0; }, set_1: function (a) { this.x = a.x; this.y = a.y; this.z = a.z; this.w = a.w; this.mCachedLength = a.mCachedLength; this.mLengthDirty = a.mLengthDirty; }, setScaled_2: function (a, b) { this.x = a.x * b; this.y = a.y * b; this.z = a.z * b; this.w = a.w * b; this.mLengthDirty = !0; }, setDiff_vec4_2: function (a, b) { this.x = a.x - b.x; this.y = a.y - b.y; this.z = a.z - b.z; this.w = a.w - b.w; this.mLengthDirty = !0; }, setDiff_vec3_2: function (a, b) { this.x = a.x - b.x; this.y = a.y - b.y; this.z = a.z - b.z; this.w = 0; this.mLengthDirty = !0; }, setSum_vec4_2: function (a, b) { this.x = a.x + b.x; this.y = a.y + b.y; this.z = a.z + b.z; this.w = a.w + b.w; this.mLengthDirty = !0; }, setSum_vec3_2: function (a, b) { this.x = a.x + b.x; this.y = a.y + b.y; this.z = a.z + b.z; this.w = 0; this.mLengthDirty = !0; }, blend_2: function (a, b) { var d = 1 - b; this.x = this.x * b + a.x * d; this.y = this.y * b + a.y * d; this.z = this.z * b + a.z * d; this.w = this.w * b + a.w * d; this.mLengthDirty = !0; }, setBlend_3: function (a, b, d) { var e = 1 - d; this.x = a.x * e + b.x * d; this.y = a.y * e + b.y * d; this.z = a.z * e + b.z * d; this.w = a.w * e + b.w * d; this.mLengthDirty = !0; }, dot_1: function (a) { return this.x * a.x + this.y * a.y + this.z * a.z + this.w * a.w; }, dot_4: function (a, b, d, e) { return this.x * a + this.y * b + this.z * d + this.w * e; }, normalize_0: function () { var a = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); this.x /= a; this.y /= a; this.z /= a; this.w /= a; this.mLengthDirty = !0; }, add_1: function (a) { this.x += a.x; this.y += a.y; this.z += a.z; this.w += a.w; this.mLengthDirty = !0; }, addScaled_2: function (a, b) { this.x += a.x * b; this.y += a.y * b; this.z += a.z * b; this.w += a.w * b; this.mLengthDirty = !0; return this; }, add_4: function (a, b, d, e) { this.x += a; this.y += b; this.z += d; this.w += e; this.mLengthDirty = !0; }, sub_1: function (a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; this.w -= a.w; this.mLengthDirty = !0; }, subScaled: function (a, b) { this.x -= a.x * b; this.y -= a.y * b; this.z -= a.z * b; this.w -= a.w * b; this.mLengthDirty = !0; }, sub_4: function (a, b, d, e) { this.x -= a; this.y -= b; this.z -= d; this.w -= e; this.mLengthDirty = !0; }, scale_1: function (a) { this.x *= a; this.y *= a; this.z *= a; this.w *= a; this.mLengthDirty = !0; }, negate_0: function () { this.x = -x; this.y = -y; this.z = -z; this.w = -w; }, div_1: function (a) { this.x /= a; this.y /= a; this.z /= a; this.w /= a; this.mLengthDirty = !0; }, length_0: function () { this.mLengthDirty && ((this.mCachedLength = this.length_4(this.x, this.y, this.z, this.w)), (this.mLengthDirty = !1)); return this.mCachedLength; }, length_4: function (a, b, d, e) { return Math.sqrt(a * a + b * b + d * d + e * e); }, setLength_1: function (a) { var b = this.length_0(); 0 != b && b != a && this.scale_1(a / b); }, capLength_1: function (a) { var b = this.length_0(); 0 != b && b > a && this.scale_1(a / b); }, sqrLength_0: function () { return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w; }, min_1: function (a) { a.x < this.x && ((this.x = a.x), (this.mLengthDirty = !0)); a.y < this.y && ((this.y = a.y), (this.mLengthDirty = !0)); a.z < this.z && ((this.z = a.z), (this.mLengthDirty = !0)); a.w < this.w && ((this.w = a.w), (this.mLengthDirty = !0)); }, max_1: function (a) { a.x > this.x && ((this.x = a.x), (this.mLengthDirty = !0)); a.y > this.y && ((this.y = a.y), (this.mLengthDirty = !0)); a.z > this.z && ((this.z = a.z), (this.mLengthDirty = !0)); a.w > this.w && ((this.w = a.w), (this.mLengthDirty = !0)); }, distSquared_1: function (a) { var b = a.x - this.x, d = a.y - this.y, e = a.z - this.z; a = a.w - this.w; return b * b + d * d + e * e * a * a; }, dist_1: function (a) { return Math.sqrt(this.distSquared_1(a)); }, sqrDist_1: function (a) { var b = a.x - this.x, d = a.y - this.y, e = a.z - this.z; a = a.w - this.w; return b * b + d * d + e * e + a * a; }, sqrDist_2: function (a, b) { var d = b.x - a.x, e = b.y - a.y, f = b.z - a.z, g = b.w - a.w; return d * d + e * e + f * f + g * g; }, dist_2: function (a, b) { return Math.sqrt(this.sqrDist_2(a, b)); }, setCross_2: function (a, b) { var d = a.x, e = a.y, f = a.z, g = b.x, k = b.y, m = b.z; this.x = e * m - f * k; this.y = f * g - d * m; this.z = d * k - e * g; this.w = 0; this.mLengthDirty = !0; }, isAlmost_2: function (a, b) { return this.distSquared_1(a) <= b; }, isEqual_1: function (a) { return null == a || this.x != a.x || this.y != a.y || this.z != a.z ? !1 : !0; }, load_1: function (a) {}, newArray_1: function (a) { var b = []; b.length = a; for (var d = 0; d < a; d++) b[d] = new Vec4(); return b; }, new2DArray_2: function (a, b) { var d = []; d.length = a; for (var e = 0; e < a; e++) { d[e] = []; d[e].length = b; for (var f = 0; f < b; f++) d[e][f] = new Vec4(); } return d; }, setDirty_0: function () { this.mLengthDirty = !0; }, equals_1: function (a) { return null == a || a.w != this.w || a.x != this.x || a.y != this.y || a.z != this.z ? !1 : !0; }, hashCode_0: function () { return null; }, }, "Vec4", [] ), Vertex2D = Class.extend( { initialConstructor_0: function () { this.COLOR_USED = 2; this.UV_USED = 4; this.pos = new GT1631(); this.uv = new GT1631(); this.color = new Vec4(); this.mFormat = 0; }, initialConstructor_3: function (a, b, d) { this.initialConstructor_0(); this.setPos_1(a); this.setUv_1(b); this.setColor_1(d); }, set_3: function (a, b, d) { this.setPos_1(a); this.setUv_1(b); this.setColor_1(d); }, setPos_1: function (a) { null != a && this.pos.set_1(a); }, setPos_2: function (a, b) { this.pos.set_2(a, b); }, setColor_1: function (a) { null != a && ((this.mFormat |= this.COLOR_USED), this.color.set_1(a)); }, setColor_4: function (a, b, d, e) { this.mFormat |= this.COLOR_USED; this.color.set_4(a, b, d, e); }, setUv_1: function (a) { null != a && ((this.mFormat |= this.UV_USED), this.uv.set_1(a)); }, setUv_2: function (a, b) { this.mFormat |= this.UV_USED; this.uv.set_2(a, b); }, isUvUsed_0: function () { return 0 < (this.mFormat & this.UV_USED); }, isColorUsed_0: function () { return 0 < (this.mFormat & this.COLOR_USED); }, getVertexFormat_0: function () { return this.mFormat; }, setBlend_3: function (a, b, d) { this.pos.setBlend_3(a.pos, b.pos, d); a.isColorUsed_0() && b.isColorUsed_0() && this.color.setBlend_3(a.color, b.color, d); a.isUvUsed_0() && b.isUvUsed_0() && this.uv.setBlend_3(a.uv, b.uv, d); }, setIntersection_4: function (a, b, d, e) { var f = a.pos.x, g = a.pos.y, k = b.pos.x, m = b.pos.y, n = d.x; d = d.y; var p = e.x; e = e.y; var q = (f - k) * (d - e) - (g - m) * (n - p); 0 != q && (this.pos.set_2(((n - p) * (f * m - g * k) - (f - k) * (n * e - d * p)) / q, ((d - e) * (f * m - g * k) - (g - m) * (n * e - d * p)) / q), (f = GTObjPool.getVec2Object_1(this.pos)), (g = GTObjPool.getVec2Object_1(b.pos)), f.subtract_1(a.pos), g.subtract_1(a.pos), (k = 0), 0 < g.sqrLength_0() && (k = Math.abs(g.x) > Math.abs(g.y) ? f.x / g.x : f.y / g.y), GTObjPool.recycleVec2Object(f), GTObjPool.recycleVec2Object(g), a.isUvUsed_0() && this.uv.setBlend_3(a.uv, b.uv, k), a.isColorUsed_0() && this.color.setBlend_3(a.color, b.color, k), (this.mFormat = a.mFormat)); }, toString_0: function () { return "Vertex2D"; }, equals_1: function (a) { if (!(a instanceof Vertex2D && this.mFormat == a.mFormat && this.pos.equals_1(a.pos))) return !1; if (null != this.uv || null != a.uv) if (null == this.uv || !this.uv.equals_1(a.uv)) return !1; if (null != this.color || null != a.color) if (null == this.color || !this.color.equals_1(a.color)) return !1; return !0; }, hashCode_0: function () { return 17 + this.mFormat; }, }, "Vertex2D", [] ), GT1564 = GT1635.extend( { initialConstructor_0: function () { GT1635.prototype.initialConstructor_0.call(this); this.filename = ""; this.timer = null; }, initialConstructor_5: function (a, b, d, e, f) { this.initialConstructor_6(a, b, d, e, f, !1); }, initialConstructor_6: function (a, b, d, e, f, g) { g = a.substring_2(0, a.length_0() - 4); G.isNotNullAndDefined(CONFIG.VIDEOS[g]) || console.error(g + " is missing - check the raw folder"); this.preferred_video_format = G.isNotNullAndDefined(CONFIG.VIDEOS[g].preferred_format) ? CONFIG.VIDEOS[g].preferred_format : "default"; this.streamMode = !1; this.video_format = "filmstrip"; "FULLFEATUREBUILD" == CONFIG.FEATURELEVEL && ("default" === this.preferred_video_format ? (this.video_format = "1" === JSUTIL.getParameter("h265video") ? "h265" : "filmstrip") : "stream" === this.preferred_video_format && ((this.video_format = CONFIG.streamvideoformat), "mp4" === this.video_format || "webm" === this.video_format) && (this.streamMode = !0)); this.filename = a; this.javafilename = ""; this.toolkit = b; this.syncObject = e; this.timer = d; this.timeCached = "mp4" === this.video_format ? (DEVICE.msie ? 100 : -1) : 1e4; this.useTwoStreamVideoElements = this.streamMode && !0 !== DEVICE.msie; this.useStreamVideoPool = this.streamMode && DEVICE.msie; this.usersCount = 0; this.releaseTextureTimer = null; this.frameExtractingTriggered = this.fileLoadingTriggered = !1; this.javascriptimage = f; this.streamInUse = !1; GT1650.prototype.assertExp_2(void 0 !== CONFIG.VIDEOS[g], "Could not find videos.json entry for: " + g); this.frames = CONFIG.VIDEOS[g].frames; this.fps = CONFIG.VIDEOS[g].fps; this.hasSeparatedAlpha = "png" === CONFIG.VIDEOS[g].format; !0 === this.streamMode && !0 === this.hasSeparatedAlpha && "webm" === this.video_format && (DEVICE.chrome || DEVICE.opera) && (this.hasSeparatedAlpha = !1); G.isDefined(CONFIG.VIDEOS[g].atlases) && (this.atlases = CONFIG.VIDEOS[g].atlases); this.texturesarray = []; !0 === this.streamMode && ((this.hasIntegratedSound = 1 === CONFIG.VIDEOS[g].sound), (this.useTwoStreamVideoElements = !1)); }, init: function () { this.texturesarray || (this.texturesarray = []); var a = this.filename.substring_2(0, this.filename.length_0() - 4); this.width = CONFIG.VIDEOS[a].width; this.height = CONFIG.VIDEOS[a].height; a = this.filename.lastIndexOf("/"); a = this.filename.lastIndexOf("/", a - 1); a = this.filename.lastIndexOf("/", a - 1); a = this.filename.substring(a, this.filename.length); JSUTIL.e(CONFIG.IMAGES[a]) ? ((this.originalWidth = this.width / CONFIG.IMAGES[a].xfactor), (this.originalHeight = this.height / CONFIG.IMAGES[a].yfactor)) : ((this.originalWidth = this.width / CONFIG.SCALINGFACTOR), (this.originalHeight = this.height / CONFIG.SCALINGFACTOR)); this.dynamicVideoTextureNeeded = this.streamMode; this.texturesarray.length = this.frames; if (0 < this.frames) { if (!0 === this.streamMode) { if (!0 === this.dynamicVideoTextureNeeded) { this.downscaledMP4ForIE = !1; DEVICE.msie && !DEVICE.msieMobile && ((a = DEVICE.msieVersion()), 1 < a && 11 >= a && (this.downscaledMP4ForIE = !0)); this._dynamicCanvas = document.createElement("canvas"); a = 2048 < this.width && !0 === this.downscaledMP4ForIE ? 2048 : this.width; this._dynamicCanvas.width = a; var b = this.height; !0 === this.downscaledMP4ForIE && (!0 === this.hasSeparatedAlpha ? 542 < b && (b = 542) : 1088 < b && (b = 1088)); this._dynamicCanvas.height = b + (this.hasSeparatedAlpha ? b + 4 : 0); this._dynamicCTX = this._dynamicCanvas.getContext("2d"); this._dynamicVideoTexture = PIXI.Texture.fromCanvas(this._dynamicCanvas); CONFIG.STATS.PIXELS += this._dynamicVideoTexture.frame.width * this._dynamicVideoTexture.frame.height; this.downscaledMP4ForIE = a !== this.width || b !== this.height; } } else if ("h265" === this.video_format || "1" === JSUTIL.getParameter("videoondemand")) (a = document.createElement("canvas")), (a.width = this.width + ("h265" === this.video_format && 1 === this.width % 2 ? 1 : 0)), (a.height = this.height + ("h265" === this.video_format && 1 === this.height % 2 ? 1 : 0)), (this.texturesarray[0] = PIXI.Texture.fromCanvas(a)), (this.texturesarray[0].isDummyFrame = !0); "1" !== JSUTIL.getParameter("videoondemand") && !0 !== this.lazyloading && this._startLoadTextures_1(!0); } }, initTextures: function () { for (var a = this.filename.substring_2(1, this.filename.length_0()), b = this.frames, d = Math.max(b - 1, 0).toString().length, e = "", f = 0; f < b; f++) { var g = ("00000" + f).slice(-d), g = PIXI.Texture.fromFrame(a + "#" + g); e != g.baseTexture.imageUrl && ((e = g.baseTexture.imageUrl), (CONFIG.STATS.PIXELS += g.baseTexture.width * g.baseTexture.height)); if ("1" !== CONFIG.webgl && DEVICE.ios7) { var k = DEVICE.ios7 ? 1e-5 : 0, m = g.frame, n = document.createElement("canvas"); n.width = m.width; n.height = m.height; var p = n.getContext("2d"); try { p.drawImage(g.baseTexture.source, m.x, m.y, m.width, m.height, 0, 0, m.width + k, m.height + k); } catch (q) { console.warn(this.filename), console.warn(q); } k = PIXI.Texture.fromCanvas(n); 0 === f && this.texturesarray[f] && this.texturesarray[f].destroy(!0); this.texturesarray[f] = k; f == b - 1 ? ((g.baseTexture.source.onerror = null), g.destroy(!0)) : g.destroy(!1); } else this.texturesarray[f] = g; } }, setResourceUrl_1: function (a) { this.resourceurl = a; }, getFilename_0: function () { return this.filename; }, getTimer_0: function () { return this.timer; }, isStreamMode_0: function () { return this.streamMode; }, setStreamInUse_1: function (a) { GT1650.prototype.assertExp_2(!a || !this.streamInUse, "Stream mode video clips can't be used by more than one video player!"); this.streamInUse = a; this.hasIntegratedSound && this.mp4video && ((this.mp4video.muted = !a || !CONFIG.SOUNDPLAYER || CONFIG.SOUNDPLAYER instanceof NoAudioController || !this.soundPlayer.isActive_0()), (this.mp4video.volume = this.soundPlayer.mastervolume)); !a && this.mp4video && this.mp4video.pause(); }, isStreamModeAndInUse_0: function () { return this.streamMode && this.streamInUse; }, setSoundPlayer_1: function (a) { this.soundPlayer = a; this.hasIntegratedSound && !this.soundPlayerActiveStateListener && ((this.soundPlayerActiveStateListener = new GT274(this)), this.soundPlayer.addActiveStateListener_1(this.soundPlayerActiveStateListener)); }, getSoundPlayer_0: function () { return this.soundPlayer; }, notifySoundPlayerActiveState_2: function (a, b) { this.mp4video && ((this.mp4video.muted = !a || !CONFIG.SOUNDPLAYER || CONFIG.SOUNDPLAYER instanceof NoAudioController), (this.mp4video.volume = b)); }, notifyLoadingFinished_0: function () { if ("h265" === this.video_format || !0 === this.streamMode) (this.frameExtractor = null), this.scopeobject.setResourceAsLoaded_2(this.filename, this); }, increaseUsersCount_0: function () { this.usersCount += 1; 0 < this.usersCount && this._clearReleaseTextureTimer_0(); }, decreaseUsersCount_0: function () { 0 < this.usersCount && --this.usersCount; if (1 > this.usersCount && 0 <= this.timeCached && "1" === JSUTIL.getParameter("videoondemand") && !0 !== this.lazyloading) { var a = this; this._clearReleaseTextureTimer_0(); this.releaseTextureTimer = setTimeout(function () { a.releaseTextures_1(!1); }, this.timeCached); } }, _clearReleaseTextureTimer_0: function () { null !== this.releaseTextureTimer && (clearTimeout(this.releaseTextureTimer), (this.releaseTextureTimer = null)); }, _startLoadTextures_1: function (a) { this.fileLoadingTriggered = !0; if (!0 === this.streamMode) { if (!G.isNotNullAndDefined(this.mp4texture)) { this.frameExtractingTriggered = !0; var b = this; a = this.filename.substring_2(1, this.filename.length_0() - 4); var d = null, e = null; "mp4" === this.video_format ? ((d = JSUTIL.getBasedir() + a + (!0 === this.downscaledMP4ForIE ? ".ie.mp4" : ".mp4")), (e = "video/mp4")) : "webm" === this.video_format && ((d = JSUTIL.getBasedir() + a + (!0 === this.hasSeparatedAlpha ? ".sepalpha.webm" : ".webm")), (e = "video/webm")); var f = null != JSUTIL.getBasedir() && 0 < JSUTIL.getBasedir().length && 0 > JSUTIL.getBasedir().indexOf(location.origin), g = f && !DEVICE.chrome && !DEVICE.opera && !DEVICE.mozilla && !DEVICE.msedge; if (g && !this.streamLoadedAsArray) { var k = d; window.setTimeout(function () { var a = new XMLHttpRequest(); a.open("get", k, !0); a.responseType = "arraybuffer"; a.onload = function (d) { b.streamLoadedAsArray = !0; b.loadedArrayData = a.response; b.loadedArrayDataLength = a.response.byteLength; d = ""; for (var f = new Uint8Array(b.loadedArrayData), g = f.byteLength, k = 0; k < g; k++) d += String.fromCharCode(f[k]); b.streamB64Src = btoa(d); b.prefaceString = "data:" + e + ";base64,"; b.mp4video1 && (b.mp4video1.src = b.prefaceString + b.streamB64Src); b.mp4video2 && (b.mp4video2.src = b.prefaceString + b.streamB64Src); }; a.send(); }, 1); } this.mp4video1 = this.useStreamVideoPool ? GTObjPool.getStreamVideoObject() : document.createElement("video"); f && !g && (this.mp4video1.crossOrigin = "anonymous"); g ? this.streamB64Src && (this.mp4video1.src = this.prefaceString + this.streamB64Src) : (this.mp4video1.src = d); this.mp4video1.type = e; this.mp4video1.autoPlay = !1; this.mp4video1.muted = !0; this.mp4video1.mp4SeekingDone = !0; this.mp4video1.loadRetries = 0; this.mp4video1._gtID = 1; this.mp4video1.seekingFunction = function () { b.mp4video1 && ((b.mp4video1.mp4SeekingDone = !1), clearTimeout(b.seektimeout1), (b.seektimeout1 = setTimeout(function () { b.mp4video1.currentTime = b.mp4video1.currentTime; }, 3e3))); }; this.mp4video1.addEventListener("seeking", this.mp4video1.seekingFunction); this.mp4video1.seekedFunction = function () { b.mp4video1 && (clearTimeout(b.seektimeout1), (b.mp4video1.mp4SeekingDone = !0), G.isNotNullAndDefined(b.mp4video1.seekDoneCallback) && b.mp4video1.seekDoneCallback()); }; this.mp4video1.addEventListener("seeked", this.mp4video1.seekedFunction); this.mp4video1.canplaythroughFunction = function () { b.mp4video1 && !0 !== b.mp4CanPlayThrough && ((b.mp4CanPlayThrough = !0), b.notifyLoadingFinished_0()); }; this.mp4video1.addEventListener("canplaythrough", this.mp4video1.canplaythroughFunction); this.mp4video1.errorFunction = function () { b.mp4video1 && ((b.fileLoadingTriggered = !1), (b.frameExtractingTriggered = !1), console.warn("ERROR: Loading failed! File name: " + d), 20 > b.mp4video1.loadRetries && ((b.mp4video1.loadRetries += 1), b.mp4video1.load())); }; this.mp4video1.addEventListener("error", this.mp4video1.errorFunction); this.useTwoStreamVideoElements && ((this.mp4video2 = this.useStreamVideoPool ? GTObjPool.getStreamVideoObject(a) : document.createElement("video")), f && !g && (this.mp4video2.crossOrigin = "anonymous"), g ? this.streamB64Src && (this.mp4video2.src = this.prefaceString + this.streamB64Src) : (this.mp4video2.src = d), (this.mp4video2.type = e), (this.mp4video2.autoPlay = !1), (this.mp4video2.muted = !0), (this.mp4video2.mp4SeekingDone = !0), (this.mp4video2.loadRetries = 0), (this.mp4video2._gtID = 2), (this.mp4video2.seekingFunction = function () { b.mp4video2 && ((b.mp4video2.mp4SeekingDone = !1), clearTimeout(b.seektimeout1), (b.seektimeout1 = setTimeout(function () { b.mp4video2.currentTime = b.mp4video2.currentTime; }, 3e3))); }), this.mp4video2.addEventListener("seeking", this.mp4video2.seekingFunction), (this.mp4video2.seekedFunction = function () { b.mp4video2 && (clearTimeout(b.seektimeout1), (b.mp4video2.mp4SeekingDone = !0), G.isNotNullAndDefined(b.mp4video2.seekDoneCallback) && b.mp4video2.seekDoneCallback()); }), this.mp4video2.addEventListener("seeked", this.mp4video2.seekedFunction), (this.mp4video2.canplaythroughFunction = function () { b.mp4video2 && !0 !== b.mp4CanPlayThrough && ((b.mp4CanPlayThrough = !0), b.notifyLoadingFinished_0()); }), this.mp4video2.addEventListener("canplaythrough", this.mp4video2.canplaythroughFunction), (this.mp4video2.errorFunction = function () { b.mp4video2 && ((b.fileLoadingTriggered = !1), (b.frameExtractingTriggered = !1), console.warn("ERROR: Loading failed! File name: " + d), 20 > b.mp4video2.loadRetries && ((b.mp4video2.loadRetries += 1), b.mp4video2.load())); }), this.mp4video2.addEventListener("error", this.mp4video2.errorFunction)); this.mp4video = this.mp4video1; this.mp4texture = PIXI.VideoTexture.textureFromVideo(this.mp4video); this.mp4FrameDuration = 1 / this.fps; this.mp4VideoDuration = this.frames / this.fps; this.hasIntegratedSound && this.mp4video && ((this.mp4video.muted = !this.streamInUse || !CONFIG.SOUNDPLAYER || CONFIG.SOUNDPLAYER instanceof NoAudioController || !this.soundPlayer || !this.soundPlayer.isActive_0()), (this.mp4video.volume = this.soundPlayer ? this.soundPlayer.mastervolume : 0)); } } else if ("h265" === this.video_format) G.isNotNullAndDefined(this.frameExtractor) && this.frameExtractor.stop(), (this.frameExtractor = new VideoStreamFrameExtractor()), this.frameExtractor.init(this, this.filename, this.frames, this.fps, this.texturesarray), !1 !== a ? this.frameExtractor.startExtractingFrames() : this.frameExtractor.startLoadingFileOnly(); else { this.frameExtractingTriggered = !0; var m = new PIXI.AssetLoader(this.jsontoload, null != JSUTIL.getBasedir() && 0 < JSUTIL.getBasedir().length && 0 > JSUTIL.getBasedir().indexOf(location.origin)); (function (a) { m.onComplete = function () { a.initTextures(); a.scopeobject.setResourceAsLoaded_2(a.filename, a); "1" !== JSUTIL.getParameter("videoondemand") && !0 !== a.lazyloading && ((a.scopeobject = null), (a.processingelement = null)); }; m.onLoadingFailed = function () { a.scopeobject.resourcesToBeLoaded.remove_1(a.processingelement); a.scopeobject.notifyResourceLoadingFailed_2(a.filename, a); "1" !== JSUTIL.getParameter("videoondemand") && !0 !== a.lazyloading && ((a.scopeobject = null), (a.processingelement = null)); }; m.load(); })(this); } }, triggerLoading_0: function () { this.triggerLoading_2(null, !0); }, triggerLoading_1: function (a) { this.triggerLoading_2(a, !0); }, triggerLoading_2: function (a, b) { if (null != this.scopeobject || ("1" !== JSUTIL.getParameter("videoondemand") && !0 !== this.lazyloading)) "FULLFEATUREBUILD" == CONFIG.FEATURELEVEL || null == a || this.lazyloading ? null != a && this.addAssetLoadingListener_1(a) : a.resourceLoaded_3(this.javafilename, 1, 1), this.loadVideo_1(b); else { var d = this; setTimeout(function () { d.triggerLoading_2(a, b); }, 150); } }, loadVideo_1: function (a) { ("1" === JSUTIL.getParameter("videoondemand") || !0 === this.lazyloading) && 0 < this.frames && !1 === this.frameExtractingTriggered && (!1 !== a && (this.frameExtractingTriggered = !0), !1 !== a || !0 !== this.fileLoadingTriggered) && ((this.fileLoadingTriggered = !0), this._startLoadTextures_1(a)); }, releaseTextures_1: function (a) { if (1 > this.usersCount && (0 <= this.timeCached || !0 === a)) { "h265" === this.video_format && G.isNotNullAndDefined(this.frameExtractor) && (this.frameExtractor.stop(), (this.frameExtractor = null)); !0 === this.streamMode && G.isNotNullAndDefined(this.mp4texture) && ((this.mp4CanPlayThrough = this.fileLoadingTriggered = this.frameExtractingTriggered = !1), this.mp4texture.destroy(), delete this.mp4texture, delete this.mp4video, this.useStreamVideoPool ? (this.mp4video1 && (this.mp4video1.removeEventListener("seeking", this.mp4video1.seekingFunction), this.mp4video1.removeEventListener("seeked", this.mp4video1.seekedFunction), this.mp4video1.removeEventListener("canplaythrough", this.mp4video1.canplaythroughFunction), this.mp4video1.removeEventListener("error", this.mp4video1.errorFunction), (this.mp4video1.seekDoneCallback = null), (this.mp4video1.seekedFunction = null), (this.mp4video1.seekingFunction = null), (this.mp4video1.canplaythroughFunction = null), (this.mp4video1.errorFunction = null), this.hasIntegratedSound && (this.mp4video1.volume = 1), this.mp4video1.pause(), GTObjPool.recycleStreamVideoObject(this.mp4video1)), (this.mp4video1 = null), this.useTwoStreamVideoElements && (this.mp4video2 && (this.mp4video2.removeEventListener("seeking", this.mp4video2.seekingFunction), this.mp4video2.removeEventListener("seeked", this.mp4video2.seekedFunction), this.mp4video2.removeEventListener("canplaythrough", this.mp4video2.canplaythroughFunction), this.mp4video2.removeEventListener("error", this.mp4video2.errorFunction), (this.mp4video2.seekDoneCallback = null), (this.mp4video2.seekedFunction = null), (this.mp4video2.seekingFunction = null), (this.mp4video2.canplaythroughFunction = null), (this.mp4video2.errorFunction = null), this.hasIntegratedSound && (this.mp4video2.volume = 1), this.mp4video2.pause(), GTObjPool.recycleStreamVideoObject(this.mp4video2)), (this.mp4video2 = null))) : (this.mp4video1 && this.mp4video1.pause(), delete this.mp4video1, this.useTwoStreamVideoElements && (this.mp4video2 && this.mp4video2.pause(), delete this.mp4video2)), !0 === this.dynamicVideoTextureNeeded && G.isNotNullAndDefined(this._dynamicVideoTexture) && ((CONFIG.STATS.PIXELS -= this._dynamicVideoTexture.frame.width * this._dynamicVideoTexture.frame.height), this._dynamicVideoTexture.destroy(), delete this._dynamicVideoTexture, delete this._dynamicCTX, delete this._dynamicCanvas)); if (G.isNotNullAndDefined(this.texturesarray)) { var b = ""; for (a = 0; a < this.texturesarray.length; ++a) if (G.isNotNullAndDefined(this.texturesarray[a])) { if ("h265" === this.video_format || (null != this.texturesarray[a].baseTexture.imageUrl && b != this.texturesarray[a].baseTexture.imageUrl)) (b = this.texturesarray[a].baseTexture.imageUrl), (CONFIG.STATS.PIXELS -= this.texturesarray[a].baseTexture.width * this.texturesarray[a].baseTexture.height); this.texturesarray[a].destroy(!0); } var b = this.filename.substring_2(1, this.filename.length_0()), d = this.frames, e = 100 < d; for (a = 0; a < d; a++) { var f = b + "#" + ((e ? (10 > a ? "00" : 100 > a ? "0" : "") : 10 > a ? "0" : "") + a); delete PIXI.TextureCache[f]; delete PIXI.BaseTextureCache[f]; } this.texturesarray.length = 0; this.init(); this.frameExtractingTriggered = !1; } return !0; } return !1; }, createPlayInstance_0: function () { return null; }, getFrameRate_0: function () { return this.framerate; }, getTimeCached_0: function () { return this.timeCached; }, setTimeCached_1: function (a) { this.timeCached = a; }, isLoadingTriggered_0: function () { return !0 === this.frameExtractingTriggered || this.isLoaded_0(); }, isLoaded_0: function () { if (!0 === this.streamMode) { if (G.isNotNullAndDefined(this.mp4CanPlayThrough) && !0 === this.mp4CanPlayThrough && 0 < this.mp4video.readyState) return !0; } else if (G.isNotNullAndDefined(this.texturesarray) && this.texturesarray.length === this.frames && G.isNotNullAndDefined(this.texturesarray[this.frames - 1])) return !0; return !1; }, unload_0: function () { if (!1 === this.releaseTextures_1(!0)) { this._clearReleaseTextureTimer_0(); var a = this; this.releaseTextureTimer = setTimeout(function () { a.unload_0(); }, 1e3); } }, toString: function () { return this.filename + "_" + this.frames + "_" + this.fps; }, }, "GT1564", [GT1635] ); GT1564.prototype.toDouble_1 = function (a) { return java_nio_ByteBuffer.prototype.wrap_1(a).getDouble_0(); }; var GT274 = Class.extend( { initialConstructor_0: function () { this.videoClip = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.videoClip = null; this.videoClip = a; }, notifySoundPlayerActiveState_2: function (a, b) { this.videoClip.notifySoundPlayerActiveState_2(a, b); }, }, "GT274", [GT308] ), GT829 = Class.extend( { initialConstructor_0: function () {}, getTouchSlop_0: function () { return 15; }, getDoubleTapSlop_0: function () { return 100; }, getDoubleTapTouchSlop_0: function () { return 150; }, getMinFlingVelocity_0: function () { return 20; }, getMaxFlingVelocity_0: function () { return 2e3; }, getLongPressTimeout_0: function () { return 500; }, getTapTimeout_0: function () { return 180; }, getDoubleTapTimeout_0: function () { return 300; }, getMoveIgnoreTime_0: function () { return 0; }, }, "GT829", [GT1116] ), GT916 = Class.extend( { initialConstructor_0: function () {}, getTouchSlop_0: function () { return 55; }, getDoubleTapSlop_0: function () { return 100; }, getDoubleTapTouchSlop_0: function () { return 150; }, getMinFlingVelocity_0: function () { return 20; }, getMaxFlingVelocity_0: function () { return 2e3; }, getLongPressTimeout_0: function () { return 500; }, getTapTimeout_0: function () { return 180; }, getDoubleTapTimeout_0: function () { return 300; }, getMoveIgnoreTime_0: function () { return 0; }, }, "GT916", [GT1116] ), GT1401 = GT1638.extend( { initialConstructor_0: function () { GT1638.prototype.initialConstructor_0.call(this); this.frameSize = 0; this.decodedFormat = this.data = this.url = null; this.decodedLength = this.bytesPerSecond = 0; this.runningInstances = new java_util_JavaScriptVector(); this.startSoundTimeout = null; this.mastervolume = this.volume = -1; 1 == CONFIG.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds") ? (this.isLoaded = this.isLoadingTriggered = !1) : (this.isLoaded = this.isLoadingTriggered = !0); }, getLength_0: function () { return null == this.sound ? 1e3 : 1e3 * (this.sound.end - this.sound.start); }, load_1: function (a) { this.url = a; this.soundFile = this.url.substring_2(this.url.lastIndexOf_1("/") + 1, this.url.lastIndexOf_1(".")); this.sound = CONFIG.SOUNDS[this.soundFile]; return !0; }, start_6: function (a, b, d, e, f, g) { var k = this; -1 != this.mastervolume && (f = this.mastervolume); -1 != this.volume && (e = this.volume); 0 === f ? CONFIG.SOUNDPLAYER.mute() : 1 === f && DEVICE.visible().visible && CONFIG.SOUNDPLAYER.unmute(); CONFIG.SOUNDPLAYER.isReady(this.soundFile) ? null != this.sound && (-1 !== d ? CONFIG.SOUNDPLAYER.getContext(this.soundFile).loop(!0) : CONFIG.SOUNDPLAYER.getContext(this.soundFile).loop(!1), CONFIG.SOUNDPLAYER.play(this.soundFile, d, b, a, function (a, b) { k.runningInstances.addElement_1({ soundId: a, timerId: b }); CONFIG.SOUNDPLAYER.volume(e, a, k.soundFile); CONFIG.SOUNDPLAYER.panning(g, a, k.soundFile); })) : (null !== this.startSoundTimeout && clearTimeout(this.startSoundTimeout), -1 !== d && (this.startSoundTimeout = setTimeout(function () { k.start_6(a, b, d, e, f, g); }, 500))); }, stop_1: function (a) { null !== this.startSoundTimeout && clearTimeout(this.startSoundTimeout); for (var b = 0; b < this.runningInstances.size_0(); ++b) this.runningInstances.elementAt_1(b).soundId && CONFIG.SOUNDPLAYER.stop(this.runningInstances.elementAt_1(b).soundId, this.soundFile, this.runningInstances.elementAt_1(b).timerId, a); this.runningInstances.setSize_1(0); }, setVolume_1: function (a) { this.volume = a; if (CONFIG.SOUNDPLAYER.isReady(this.soundFile)) for (a = 0; a < this.runningInstances.size_0(); ++a) this.runningInstances.elementAt_1(a).soundId && CONFIG.SOUNDPLAYER.volume(this.volume, this.runningInstances.elementAt_1(a).soundId, this.soundFile); }, setPanning_1: function (a) { if (CONFIG.SOUNDPLAYER.isReady(this.soundFile)) for (var b = 0; b < this.runningInstances.size_0(); ++b) this.runningInstances.elementAt_1(b).soundId && CONFIG.SOUNDPLAYER.panning(a, this.runningInstances.elementAt_1(b).soundId, this.soundFile); }, setMasterVolume_1: function (a) { this.mastervolume = a; CONFIG.SOUNDPLAYER.isReady() && (1 == this.mastervolume ? CONFIG.SOUNDPLAYER.unmute() : 0 === this.mastervolume && CONFIG.SOUNDPLAYER.mute()); }, triggerLoading_0: function () { this.triggerLoading_1(null); }, triggerLoading_1: function (a) { this.isLoaded ? GT1650.prototype.assertExp_2(null == a, "WebAudioSound: ResourceManagerListener won't get called because sound is already loaded.") : (null != a && this.addAssetLoadingListener_1(a), this.isLoadingTriggered || this.resourceManager.startLoadSound_2(this.javafilename, !1), (this.isLoadingTriggered = !0)); }, isLoadingTriggered_0: function () { return this.isLoadingTriggered; }, isLoaded_0: function () { return this.isLoaded; }, unload_0: function () { 1 == CONFIG.CLIENTSLOTAPPLET.getParameter_1("html5mobileseparatesounds") && this.isLoaded && ((this.isLoaded = this.isLoadingTriggered = !1), CONFIG.SOUNDPLAYER.unload(this.soundFile)); }, toString: function () { return null !== this.url ? this.url.toString() : "Sound.url == null"; }, }, "GT1401", [] ), GT882 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, start_1: function (a) {}, interrupt_1: function (a) {}, end_1: function (a) {}, dispose_1: function (a) {}, complete_1: function (a) {}, event_2: function (a, b) {}, }, "GT882", [GT808] ), GT1029 = Class.extend( { initialConstructor_0: function () { this.tempKey = this.animationToMixTime = this.skeletonData = null; this.defaultMix = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.tempKey = this.animationToMixTime = this.skeletonData = null; this.defaultMix = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeletonData cannot be null."); this.skeletonData = a; this.animationToMixTime = new GT1293(); this.tempKey = new GT883(); }, getSkeletonData_0: function () { return this.skeletonData; }, setMix_3: function (a, b, d) { var e = this.skeletonData.findAnimation_1(a); null == e && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Animation not found: " + a); a = this.skeletonData.findAnimation_1(b); null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Animation not found: " + b); this.setMix_4(e, a, d, !0); }, setMix_4: function (a, b, d, e) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: from cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: to cannot be null."); e = new GT883(); e.a1 = a; e.a2 = b; this.animationToMixTime.put_2(e, d); }, getMix_2: function (a, b) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: from cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException : to cannot be null."); this.tempKey.a1 = a; this.tempKey.a2 = b; var d = this.animationToMixTime.get_1(this.tempKey); return null != d ? d : this.defaultMix; }, getDefaultMix_0: function () { return this.defaultMix; }, setDefaultMix_1: function (a) { this.defaultMix = a; }, }, "GT1029", [] ), GT883 = Class.extend( { initialConstructor_0: function () { this.a2 = this.a1 = null; Class.prototype.initialConstructor_0.call(this); }, hashCode_0: function () { return 31 * (31 + this.a1.hashCode_0()) + this.a2.hashCode_0(); }, equals_1: function (a) { if (this == a) return !0; if (null == a) return !1; if (null == this.a1) { if (null != a.a1) return !1; } else if (!this.a1.equals_1(a.a1)) return !1; if (null == this.a2) { if (null != a.a2) return !1; } else if (!this.a2.equals_1(a.a2)) return !1; return !0; }, toString: function () { return this.a1.name + "->" + this.a2.name; }, }, "GT883", [] ), GT312 = Class.extend( { initialConstructor_0: function () { this.atlas = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.atlas = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: atlas cannot be null."); this.atlas = a; }, newRegionAttachment_3: function (a, b, d) { a = this.atlas.findRegion_1(d); null == a && GT1650.prototype.assertExp_2(!1, "RuntimeException: Region not found in atlas: " + d + " (region attachment: " + b + ")"); b = new GT500(b); b.setRegion_1(a); return b; }, newMeshAttachment_3: function (a, b, d) { a = this.atlas.findRegion_1(d); null == a && GT1650.prototype.assertExp_2(!1, "RuntimeException: Region not found in atlas: " + d + " (mesh attachment: " + b + ")"); b = new GT595(b); b.setRegion_1(a); return b; }, newBoundingBoxAttachment_2: function (a, b) { return new GT313(b); }, newClippingAttachment_2: function (a, b) { return new GT403(b); }, newPathAttachment_2: function (a, b) { return new GT609(b); }, newPointAttachment_2: function (a, b) { return new GT564(b); }, }, "GT312", [GT501] ), GT830 = Class.extend( { initialConstructor_0: function () { this.name = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.name = a; }, getName_0: function () { return this.name; }, toString: function () { return this.getName_0(); }, }, "GT830", [] ), GT610 = Class.extend( { initialConstructor_0: function () { this.name = null; this.id = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.name = null; this.id = 0; this.name = a; this.id = b; }, getName_0: function () { return this.name; }, getId_0: function () { return this.id; }, }, "GT610", [] ); GT610.prototype.valueOf_1 = function (a) { for (var b = 0; b < GT610.prototype.values.length; ++b) if (GT610.prototype.values[b].name.equals_1(a)) return GT610.prototype.values[b]; return null; }; GT610.prototype.ID_REGION = 0; GT610.prototype.ID_BOUNDING_BOX = 1; GT610.prototype.ID_MESH = 2; GT610.prototype.ID_LINKED_MESH = 3; GT610.prototype.ID_PATH = 4; GT610.prototype.ID_POINT = 5; GT610.prototype.ID_CLIPPING = 6; GT610.prototype.region = new GT610("region", GT610.prototype.ID_REGION); GT610.prototype.boundingbox = new GT610("boundingbox", GT610.prototype.ID_BOUNDING_BOX); GT610.prototype.mesh = new GT610("mesh", GT610.prototype.ID_MESH); GT610.prototype.linkedmesh = new GT610("linkedmesh", GT610.prototype.ID_LINKED_MESH); GT610.prototype.path = new GT610("path", GT610.prototype.ID_PATH); GT610.prototype.point = new GT610("point", GT610.prototype.ID_POINT); GT610.prototype.clipping = new GT610("clipping", GT610.prototype.ID_CLIPPING); GT610.prototype.values = [GT610.prototype.region, GT610.prototype.boundingbox, GT610.prototype.mesh, GT610.prototype.linkedmesh, GT610.prototype.path, GT610.prototype.point, GT610.prototype.clipping]; var GT564 = GT830.extend( { initialConstructor_0: function () { this.rotation = this.y = this.x = 0; this.color = null; GT830.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.rotation = this.y = this.x = 0; this.color = null; GT830.prototype.initialConstructor_1.call(this, a); this.color = new GT1477(0.94, 0.94, 0, 1); }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { this.rotation = a; }, getColor_0: function () { return this.color; }, computeWorldPosition_2: function (a, b) { b.x = this.x * a.getA_0() + this.y * a.getB_0() + a.getWorldX_0(); b.y = this.x * a.getC_0() + this.y * a.getD_0() + a.getWorldY_0(); return b; }, computeWorldRotation_1: function (a) { var b = GT1294.prototype.cosDeg_1(this.rotation), d = GT1294.prototype.sinDeg_1(this.rotation), e = b * a.getA_0() + d * a.getB_0(); a = b * a.getC_0() + d * a.getD_0(); return Math.atan2_2(a, e) * GT1294.prototype.radDeg; }, }, "GT564", [] ), GT500 = GT830.extend( { initialConstructor_0: function () { this.path = this.region = null; this.height = this.width = this.rotation = this.scaleY = this.scaleX = this.y = this.x = 0; this.color = this.offset = this.uvs = null; GT830.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.path = this.region = null; this.height = this.width = this.rotation = this.scaleY = this.scaleX = this.y = this.x = 0; this.color = this.offset = this.uvs = null; GT830.prototype.initialConstructor_1.call(this, a); this.uvs = [].createArray(8).init(0); this.offset = [].createArray(8).init(0); this.color = new GT1477(1, 1, 1, 1); }, updateOffset_0: function () { var a = this.getWidth_0(), b = this.getHeight_0(), d = a / 2, e = b / 2, f = -d, g = -e; if (instanceOf(this.region, GT1201)) { var k = this.region; k.rotate ? ((f += (k.offsetX / k.originalWidth) * a), (g += (k.offsetY / k.originalHeight) * b), (d -= ((k.originalWidth - k.offsetX - k.packedHeight) / k.originalWidth) * a), (e -= ((k.originalHeight - k.offsetY - k.packedWidth) / k.originalHeight) * b)) : ((f += (k.offsetX / k.originalWidth) * a), (g += (k.offsetY / k.originalHeight) * b), (d -= ((k.originalWidth - k.offsetX - k.packedWidth) / k.originalWidth) * a), (e -= ((k.originalHeight - k.offsetY - k.packedHeight) / k.originalHeight) * b)); } var a = this.getScaleX_0(), b = this.getScaleY_0(), f = f * a, g = g * b, d = d * a, e = e * b, a = this.getRotation_0(), k = Math.cos_1(GT1294.prototype.degRad * a), m = Math.sin_1(GT1294.prototype.degRad * a), n = this.getX_0(), p = this.getY_0(), a = f * k + n, f = f * m, b = g * k + p, g = g * m, n = d * k + n, d = d * m, k = e * k + p, e = e * m, m = this.offset; m[GT500.prototype.BLX] = a - g; m[GT500.prototype.BLY] = b + f; m[GT500.prototype.ULX] = a - e; m[GT500.prototype.ULY] = k + f; m[GT500.prototype.URX] = n - e; m[GT500.prototype.URY] = k + d; m[GT500.prototype.BRX] = n - g; m[GT500.prototype.BRY] = b + d; }, setRegion_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: region cannot be null."); this.region = a; var b = this.uvs; instanceOf(a, GT1201) && a.rotate ? ((b[GT500.prototype.URX] = a.getU_0()), (b[GT500.prototype.URY] = a.getV2_0()), (b[GT500.prototype.BRX] = a.getU_0()), (b[GT500.prototype.BRY] = a.getV_0()), (b[GT500.prototype.BLX] = a.getU2_0()), (b[GT500.prototype.BLY] = a.getV_0()), (b[GT500.prototype.ULX] = a.getU2_0()), (b[GT500.prototype.ULY] = a.getV2_0())) : ((b[GT500.prototype.ULX] = a.getU_0()), (b[GT500.prototype.ULY] = a.getV2_0()), (b[GT500.prototype.URX] = a.getU_0()), (b[GT500.prototype.URY] = a.getV_0()), (b[GT500.prototype.BRX] = a.getU2_0()), (b[GT500.prototype.BRY] = a.getV_0()), (b[GT500.prototype.BLX] = a.getU2_0()), (b[GT500.prototype.BLY] = a.getV2_0())); }, getRegion_0: function () { null == this.region && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Region has not been set: " + this); return this.region; }, computeWorldVertices_4: function (a, b, d, e) { var f = this.offset, g = a.getWorldX_0(), k = a.getWorldY_0(), m = a.getA_0(), n = a.getB_0(), p = a.getC_0(); a = a.getD_0(); var q, r; q = f[GT500.prototype.BRX]; r = f[GT500.prototype.BRY]; b[d] = q * m + r * n + g; b[d + 1] = q * p + r * a + k; d += e; q = f[GT500.prototype.BLX]; r = f[GT500.prototype.BLY]; b[d] = q * m + r * n + g; b[d + 1] = q * p + r * a + k; d += e; q = f[GT500.prototype.ULX]; r = f[GT500.prototype.ULY]; b[d] = q * m + r * n + g; b[d + 1] = q * p + r * a + k; d += e; q = f[GT500.prototype.URX]; r = f[GT500.prototype.URY]; b[d] = q * m + r * n + g; b[d + 1] = q * p + r * a + k; }, getOffset_0: function () { return this.offset; }, getUVs_0: function () { return this.uvs; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleY_0: function () { return this.scaleY; }, setScaleY_1: function (a) { this.scaleY = a; }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { this.rotation = a; }, getWidth_0: function () { return this.width; }, setWidth_1: function (a) { this.width = a; }, getHeight_0: function () { return this.height; }, setHeight_1: function (a) { this.height = a; }, getColor_0: function () { return this.color; }, getPath_0: function () { return this.path; }, setPath_1: function (a) { this.path = a; }, }, "GT500", [] ); GT500.prototype.BLX = 0; GT500.prototype.BLY = 1; GT500.prototype.ULX = 2; GT500.prototype.ULY = 3; GT500.prototype.URX = 4; GT500.prototype.URY = 5; GT500.prototype.BRX = 6; GT500.prototype.BRY = 7; var GT404 = GT830.extend( { initialConstructor_0: function () { this.skeleton = null; GT830.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.skeleton = null; GT830.prototype.initialConstructor_1.call(this, a); }, getSkeleton_0: function () { return this.skeleton; }, setSkeleton_1: function (a) { this.skeleton = a; }, }, "GT404", [] ), GT1030 = Class.extend( { initialConstructor_0: function () { this.slotIndex = 0; this.attachmentNames = this.frames = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotIndex = 0; this.attachmentNames = this.frames = null; this.frames = [].createArray(a).init(0); this.attachmentNames = [].createArray(a); }, getPropertyId_0: function () { return (GT1344.prototype.attachment << 24) + this.slotIndex; }, getFrameCount_0: function () { return this.frames.length; }, setSlotIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.slotIndex = a; }, getSlotIndex_0: function () { return this.slotIndex; }, getFrames_0: function () { return this.frames; }, getAttachmentNames_0: function () { return this.attachmentNames; }, setFrame_3: function (a, b, d) { this.frames[a] = b; this.attachmentNames[a] = d; }, apply_7: function (a, b, d, e, f, g, k) { b = a.slots.get_1(this.slotIndex); k == GT1345.prototype.out && g == GT1565.prototype.setup ? ((d = b.data.attachmentName), b.setAttachment_1(null == d ? null : a.getAttachment_2(this.slotIndex, d))) : ((k = this.frames), d < k[0] ? g == GT1565.prototype.setup && ((d = b.data.attachmentName), b.setAttachment_1(null == d ? null : a.getAttachment_2(this.slotIndex, d))) : ((d = d >= k[k.length - 1] ? k.length - 1 : GT1496.prototype.binarySearch_2(k, d) - 1), (d = this.attachmentNames[d]), b.setAttachment_1(null == d ? null : a.getAttachment_2(this.slotIndex, d)))); }, }, "GT1030", [GT1527] ), GT1202 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1202", [] ); GT1202.prototype.GL_ONE = 0; GT1202.prototype.GL_SRC_ALPHA = 1; GT1202.prototype.GL_ONE_MINUS_SRC_ALPHA = 2; GT1202.prototype.GL_ONE_MINUS_SRC_COLOR = 3; GT1202.prototype.GL_DST_COLOR = 4; var GT1624 = Class.extend( { initialConstructor_0: function () { this.children = this.parent = this.skeleton = this.data = null; this.ashearY = this.ashearX = this.ascaleY = this.ascaleX = this.arotation = this.ay = this.ax = this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = 0; this.appliedValid = !1; this.worldY = this.d = this.c = this.worldX = this.b = this.a = 0; this.sorted = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.children = this.parent = this.skeleton = this.data = null; this.ashearY = this.ashearX = this.ascaleY = this.ascaleX = this.arotation = this.ay = this.ax = this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = 0; this.appliedValid = !1; this.worldY = this.d = this.c = this.worldX = this.b = this.a = 0; this.sorted = !1; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a; this.skeleton = b; this.parent = d; this.children = new GT1497(); this.setToSetupPose_0(); }, initialConstructor_4: function (a, b, d, e) { this.children = this.parent = this.skeleton = this.data = null; this.ashearY = this.ashearX = this.ascaleY = this.ascaleX = this.arotation = this.ay = this.ax = this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = 0; this.appliedValid = !1; this.worldY = this.d = this.c = this.worldX = this.b = this.a = 0; this.sorted = !1; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: bone cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.skeleton = b; this.parent = d; this.children = new GT1497(); this.data = a.data; this.x = a.x; this.y = a.y; this.rotation = a.rotation; this.scaleX = a.scaleX; this.scaleY = a.scaleY; this.shearX = a.shearX; this.shearY = a.shearY; }, update_0: function () { this.updateWorldTransform_7(this.x, this.y, this.rotation, this.scaleX, this.scaleY, this.shearX, this.shearY); }, updateWorldTransform_0: function () { this.updateWorldTransform_7(this.x, this.y, this.rotation, this.scaleX, this.scaleY, this.shearX, this.shearY); }, updateWorldTransform_7: function (a, b, d, e, f, g, k) { this.ax = a; this.ay = b; this.arotation = d; this.ascaleX = e; this.ascaleY = f; this.ashearX = g; this.ashearY = k; this.appliedValid = !0; var m = this.parent; if (null == m) { k = d + 90 + k; var m = GT1142.prototype.cosDeg_1(d + g) * e, n = GT1142.prototype.cosDeg_1(k) * f; e *= GT1142.prototype.sinDeg_1(d + g); f *= GT1142.prototype.sinDeg_1(k); var p = this.skeleton; p.flipX && ((a = -a), (m = -m), (n = -n)); p.flipY || ((b = -b), (e = -e), (f = -f)); this.a = m; this.b = n; this.c = e; this.d = f; this.worldX = a + p.x; this.worldY = b + p.y; } else { var p = m.a, q = m.b, r = m.c, t = m.d; this.worldX = p * a + q * b + m.worldX; this.worldY = r * a + t * b + m.worldY; switch (this.data.transformMode.getId_0()) { case GT1295.prototype.ID_NORMAL: k = d + 90 + k; m = GT1142.prototype.cosDeg_1(d + g) * e; n = GT1142.prototype.cosDeg_1(k) * f; e *= GT1142.prototype.sinDeg_1(d + g); f *= GT1142.prototype.sinDeg_1(k); this.a = p * m + q * e; this.b = p * n + q * f; this.c = r * m + t * e; this.d = r * n + t * f; return; case GT1295.prototype.ID_ONLY_TRANSLATION: k = d + 90 + k; this.a = GT1142.prototype.cosDeg_1(d + g) * e; this.b = GT1142.prototype.cosDeg_1(k) * f; this.c = GT1142.prototype.sinDeg_1(d + g) * e; this.d = GT1142.prototype.sinDeg_1(k) * f; break; case GT1295.prototype.ID_NO_ROTATION_OR_REFLECTION: m = p * p + r * r; 1e-4 < m ? ((m = Math.abs_1(p * t - q * r) / m), (q = r * m), (t = p * m), (m = GT1142.prototype.atan2_2(r, p) * GT1142.prototype.radDeg)) : ((r = p = 0), (m = 90 - GT1142.prototype.atan2_2(t, q) * GT1142.prototype.radDeg)); g = d + g - m; k = d + k - m + 90; m = GT1142.prototype.cosDeg_1(g) * e; n = GT1142.prototype.cosDeg_1(k) * f; e *= GT1142.prototype.sinDeg_1(g); f *= GT1142.prototype.sinDeg_1(k); this.a = p * m - q * e; this.b = p * n - q * f; this.c = r * m + t * e; this.d = r * n + t * f; break; case GT1295.prototype.ID_NO_SCALE: case GT1295.prototype.ID_NO_SCALE_OR_REFLECTION: m = GT1142.prototype.cosDeg_1(d); n = GT1142.prototype.sinDeg_1(d); d = p * m + q * n; a = r * m + t * n; m = Math.sqrt_1(d * d + a * a); 1e-5 < m && (m = 1 / m); d *= m; a *= m; m = Math.sqrt_1(d * d + a * a); n = GT1142.prototype.PI / 2 + GT1142.prototype.atan2_2(a, d); b = GT1142.prototype.cos_1(n) * m; var u = GT1142.prototype.sin_1(n) * m, m = GT1142.prototype.cosDeg_1(g) * e, n = GT1142.prototype.cosDeg_1(90 + k) * f; e *= GT1142.prototype.sinDeg_1(g); f *= GT1142.prototype.sinDeg_1(90 + k); if (this.data.transformMode != GT1295.prototype.noScaleOrReflection ? 0 > p * t - q * r : this.skeleton.flipX != !this.skeleton.flipY) (b = -b), (u = -u); this.a = d * m + b * e; this.b = d * n + b * f; this.c = a * m + u * e; this.d = a * n + u * f; return; } this.skeleton.flipX && ((this.a = -this.a), (this.b = -this.b)); this.skeleton.flipY || ((this.c = -this.c), (this.d = -this.d)); } }, setToSetupPose_0: function () { var a = this.data; this.x = a.x; this.y = a.y; this.rotation = a.rotation; this.scaleX = a.scaleX; this.scaleY = a.scaleY; this.shearX = a.shearX; this.shearY = a.shearY; }, getData_0: function () { return this.data; }, getSkeleton_0: function () { return this.skeleton; }, getParent_0: function () { return this.parent; }, getChildren_0: function () { return this.children; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, setPosition_2: function (a, b) { this.x = a; this.y = b; }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { this.rotation = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleY_0: function () { return this.scaleY; }, setScaleY_1: function (a) { this.scaleY = a; }, setScale_2: function (a, b) { this.scaleX = a; this.scaleY = b; }, setScale_1: function (a) { this.scaleY = this.scaleX = a; }, getShearX_0: function () { return this.shearX; }, setShearX_1: function (a) { this.shearX = a; }, getShearY_0: function () { return this.shearY; }, setShearY_1: function (a) { this.shearY = a; }, getAX_0: function () { return this.ax; }, setAX_1: function (a) { this.ax = a; }, getAY_0: function () { return this.ay; }, setAY_1: function (a) { this.ay = a; }, getARotation_0: function () { return this.arotation; }, setARotation_1: function (a) { this.arotation = a; }, getAScaleX_0: function () { return this.ascaleX; }, setAScaleX_1: function (a) { this.ascaleX = a; }, getAScaleY_0: function () { return this.ascaleY; }, setAScaleY_1: function (a) { this.ascaleY = a; }, getAShearX_0: function () { return this.ashearX; }, setAShearX_1: function (a) { this.ashearX = a; }, getAShearY_0: function () { return this.ashearY; }, setAShearY_1: function (a) { this.ashearY = a; }, isAppliedValid_0: function () { return this.appliedValid; }, setAppliedValid_1: function (a) { this.appliedValid = a; }, updateAppliedTransform_0: function () { this.appliedValid = !0; var a = this.parent; if (null == a) (this.ax = this.worldX), (this.ay = this.worldY), (this.arotation = GT1142.prototype.atan2_2(this.c, this.a) * GT1142.prototype.radDeg), (this.ascaleX = Math.sqrt_1(this.a * this.a + this.c * this.c)), (this.ascaleY = Math.sqrt_1(this.b * this.b + this.d * this.d)), (this.ashearX = 0), (this.ashearY = GT1142.prototype.atan2_2(this.a * this.b + this.c * this.d, this.a * this.d - this.b * this.c) * GT1142.prototype.radDeg); else { var b = a.a, d = a.b, e = a.c, f = a.d, g = 1 / (b * f - d * e), k = this.worldX - a.worldX, a = this.worldY - a.worldY; this.ax = k * f * g - a * d * g; this.ay = a * b * g - k * e * g; f *= g; b *= g; d *= g; g *= e; e = f * this.a - d * this.c; d = f * this.b - d * this.d; f = b * this.c - g * this.a; g = b * this.d - g * this.b; this.ashearX = 0; this.ascaleX = Math.sqrt_1(e * e + f * f); 1e-4 < this.ascaleX ? ((b = e * g - d * f), (this.ascaleY = b / this.ascaleX), (this.ashearY = GT1142.prototype.atan2_2(e * d + f * g, b) * GT1142.prototype.radDeg), (this.arotation = GT1142.prototype.atan2_2(f, e) * GT1142.prototype.radDeg)) : ((this.ascaleX = 0), (this.ascaleY = Math.sqrt_1(d * d + g * g)), (this.ashearY = 0), (this.arotation = 90 - GT1142.prototype.atan2_2(g, d) * GT1142.prototype.radDeg)); } }, getA_0: function () { return this.a; }, setA_1: function (a) { this.a = a; }, getB_0: function () { return this.b; }, setB_1: function (a) { this.b = a; }, getC_0: function () { return this.c; }, setC_1: function (a) { this.c = a; }, getD_0: function () { return this.d; }, setD_1: function (a) { this.d = a; }, getWorldX_0: function () { return this.worldX; }, setWorldX_1: function (a) { this.worldX = a; }, getWorldY_0: function () { return this.worldY; }, setWorldY_1: function (a) { this.worldY = a; }, getWorldRotationX_0: function () { return GT1142.prototype.atan2_2(this.c, this.a) * GT1142.prototype.radDeg; }, getWorldRotationY_0: function () { return GT1142.prototype.atan2_2(this.d, this.b) * GT1142.prototype.radDeg; }, getWorldScaleX_0: function () { return Math.sqrt_1(this.a * this.a + this.c * this.c); }, getWorldScaleY_0: function () { return Math.sqrt_1(this.b * this.b + this.d * this.d); }, getWorldTransform_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: worldTransform cannot be null."); var b = a.val; b[GT1402.prototype.M00] = this.a; b[GT1402.prototype.M01] = this.b; b[GT1402.prototype.M10] = this.c; b[GT1402.prototype.M11] = this.d; b[GT1402.prototype.M02] = this.worldX; b[GT1402.prototype.M12] = this.worldY; b[GT1402.prototype.M20] = 0; b[GT1402.prototype.M21] = 0; b[GT1402.prototype.M22] = 1; return a; }, worldToLocal_1: function (a) { var b = 1 / (this.a * this.d - this.b * this.c), d = a.x - this.worldX, e = a.y - this.worldY; a.x = d * this.d * b - e * this.b * b; a.y = e * this.a * b - d * this.c * b; return a; }, localToWorld_1: function (a) { var b = a.x, d = a.y; a.x = b * this.a + d * this.b + this.worldX; a.y = b * this.c + d * this.d + this.worldY; return a; }, worldToLocalRotation_1: function (a) { var b = GT1142.prototype.sinDeg_1(a); a = GT1142.prototype.cosDeg_1(a); return GT1142.prototype.atan2_2(this.a * b - this.c * a, this.d * a - this.b * b) * GT1142.prototype.radDeg; }, localToWorldRotation_1: function (a) { var b = GT1142.prototype.sinDeg_1(a); a = GT1142.prototype.cosDeg_1(a); return GT1142.prototype.atan2_2(a * this.c + b * this.d, a * this.a + b * this.b) * GT1142.prototype.radDeg; }, rotateWorld_1: function (a) { var b = GT1142.prototype.cosDeg_1(a); a = GT1142.prototype.sinDeg_1(a); this.a = b * this.a - a * this.c; this.b = b * this.b - a * this.d; this.c = a * this.a + b * this.c; this.d = a * this.b + b * this.d; this.appliedValid = !1; }, toString: function () { return this.data.name; }, }, "GT1624", [GT1481] ), GT1540 = Class.extend( { initialConstructor_0: function () { this.index = 0; this.parent = this.name = null; this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = this.boneLength = 0; this.color = this.transformMode = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.index = 0; this.parent = this.name = null; this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = this.boneLength = 0; this.color = this.transformMode = null; 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.index = a; this.name = b; this.parent = d; this.color = new GT1477(0.6, 0.6, 0.6, 1); this.transformMode = GT1295.prototype.normal; }, initialConstructor_2: function (a, b) { this.index = 0; this.parent = this.name = null; this.shearY = this.shearX = this.scaleY = this.scaleX = this.rotation = this.y = this.x = this.boneLength = 0; this.color = this.transformMode = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: bone cannot be null."); this.index = a.index; this.name = a.name; this.parent = b; this.color = new GT1477(0.6, 0.6, 0.6, 1); this.transformMode = GT1295.prototype.normal; this.boneLength = a.boneLength; this.x = a.x; this.y = a.y; this.rotation = a.rotation; this.scaleX = a.scaleX; this.scaleY = a.scaleY; this.shearX = a.shearX; this.shearY = a.shearY; }, getIndex_0: function () { return this.index; }, getName_0: function () { return this.name; }, getParent_0: function () { return this.parent; }, getLength_0: function () { return this.boneLength; }, setLength_1: function (a) { this.boneLength = a; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, setPosition_2: function (a, b) { this.x = a; this.y = b; }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { this.rotation = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleY_0: function () { return this.scaleY; }, setScaleY_1: function (a) { this.scaleY = a; }, setScale_2: function (a, b) { this.scaleX = a; this.scaleY = b; }, getShearX_0: function () { return this.shearX; }, setShearX_1: function (a) { this.shearX = a; }, getShearY_0: function () { return this.shearY; }, setShearY_1: function (a) { this.shearY = a; }, getTransformMode_0: function () { return this.transformMode; }, setTransformMode_1: function (a) { this.transformMode = a; }, getColor_0: function () { return this.color; }, toString: function () { return this.name; }, }, "GT1540", [] ), GT1296 = Class.extend( { initialConstructor_0: function () { this.curves = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.curves = null; 0 >= a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: frameCount must be > 0: " + a); this.curves = [].createArray((a - 1) * GT1296.prototype.BEZIER_SIZE).init(0); }, getFrameCount_0: function () { return Math.div(this.curves.length, GT1296.prototype.BEZIER_SIZE) + 1; }, setLinear_1: function (a) { this.curves[a * GT1296.prototype.BEZIER_SIZE] = GT1296.prototype.LINEAR; }, setStepped_1: function (a) { this.curves[a * GT1296.prototype.BEZIER_SIZE] = GT1296.prototype.STEPPED; }, getCurveType_1: function (a) { a *= GT1296.prototype.BEZIER_SIZE; if (a == this.curves.length) return GT1296.prototype.LINEAR; a = this.curves[a]; return a == GT1296.prototype.LINEAR ? GT1296.prototype.LINEAR : a == GT1296.prototype.STEPPED ? GT1296.prototype.STEPPED : GT1296.prototype.BEZIER; }, setCurve_5: function (a, b, d, e, f) { var g = 0.03 * (2 * -b + e), k = 0.03 * (2 * -d + f); e = 0.006 * (3 * (b - e) + 1); f = 0.006 * (3 * (d - f) + 1); var m = 2 * g + e, n = 2 * k + f; b = 0.3 * b + g + 0.16666667 * e; d = 0.3 * d + k + 0.16666667 * f; a *= GT1296.prototype.BEZIER_SIZE; k = this.curves; k[a++] = GT1296.prototype.BEZIER; for (var g = b, p = d, q = a + GT1296.prototype.BEZIER_SIZE - 1; a < q; a += 2) (k[a] = g), (k[a + 1] = p), (b += m), (d += n), (m += e), (n += f), (g += b), (p += d); }, getCurvePercent_2: function (a, b) { b = GT1294.prototype.clamp_3(b, 0, 1); var d = this.curves, e = a * GT1296.prototype.BEZIER_SIZE, f = d[e]; if (f == GT1296.prototype.LINEAR) return b; if (f == GT1296.prototype.STEPPED) return 0; e++; for (var f = 0, g = e, k = e + GT1296.prototype.BEZIER_SIZE - 1; e < k; e += 2) if (((f = d[e]), f >= b)) { if (e == g) return (d[e + 1] * b) / f; g = d[e - 2]; k = d[e - 1]; return k + ((d[e + 1] - k) * (b - g)) / (f - g); } d = d[e - 1]; return d + ((1 - d) * (b - f)) / (1 - f); }, }, "GT1296", [GT1527] ); GT1296.prototype.LINEAR = 0; GT1296.prototype.STEPPED = 1; GT1296.prototype.BEZIER = 2; GT1296.prototype.BEZIER_SIZE = 19; var GT1245 = GT1296.extend( { initialConstructor_0: function () { this.slotIndex = 0; this.frameVertices = this.frames = this.attachment = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotIndex = 0; this.frameVertices = this.frames = this.attachment = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a).init(0); this.frameVertices = [].createArray(a, null).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.deform << 27) + this.attachment.getId_0() + this.slotIndex; }, setSlotIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.slotIndex = a; }, getSlotIndex_0: function () { return this.slotIndex; }, setAttachment_1: function (a) { this.attachment = a; }, getAttachment_0: function () { return this.attachment; }, getFrames_0: function () { return this.frames; }, getVertices_0: function () { return this.frameVertices; }, setFrame_3: function (a, b, d) { this.frames[a] = b; this.frameVertices[a] = d; }, apply_7: function (a, b, d, e, f, g, k) { a = a.slots.get_1(this.slotIndex); var m = a.attachment; if (instanceOf(m, GT510) && m.applyDeform_1(this.attachment)) { b = a.getAttachmentVertices_0(); 0 == b.size && (f = 1); k = this.frameVertices; a = k[0].length; var n = this.frames; if (d < n[0]) switch (g) { case GT1565.prototype.setup: b.clear_0(); break; case GT1565.prototype.current: if (1 == f) { b.clear_0(); break; } b = b.setSize_1(a); if (null == m.getBones_0()) for (g = m.getVertices_0(), m = 0; m < a; m++) b[m] += (g[m] - b[m]) * f; else for (f = 1 - f, m = 0; m < a; m++) b[m] *= f; } else if (((b = b.setSize_1(a)), d >= n[n.length - 1])) if (((d = k[n.length - 1]), 1 == f)) java_lang_System.prototype.arraycopy_5(d, 0, b, 0, a); else if (g == GT1565.prototype.setup) if (null == m.getBones_0()) for (g = m.getVertices_0(), m = 0; m < a; m++) (n = g[m]), (b[m] = n + (d[m] - n) * f); else for (m = 0; m < a; m++) b[m] = d[m] * f; else for (m = 0; m < a; m++) b[m] += (d[m] - b[m]) * f; else { var p = GT1496.prototype.binarySearch_2(n, d); e = k[p - 1]; k = k[p]; var q = n[p]; d = this.getCurvePercent_2(p - 1, 1 - (d - q) / (n[p - 1] - q)); if (1 == f) for (m = 0; m < a; m++) (p = e[m]), (b[m] = p + (k[m] - p) * d); else if (g == GT1565.prototype.setup) if (null == m.getBones_0()) for (g = m.getVertices_0(), m = 0; m < a; m++) (p = e[m]), (n = g[m]), (b[m] = n + (p + (k[m] - p) * d - n) * f); else for (m = 0; m < a; m++) (p = e[m]), (b[m] = (p + (k[m] - p) * d) * f); else for (m = 0; m < a; m++) (p = e[m]), (b[m] += (p + (k[m] - p) * d - b[m]) * f); } } }, }, "GT1245", [] ), GT1085 = Class.extend( { initialConstructor_0: function () { this.drawOrders = this.frames = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.drawOrders = this.frames = null; this.frames = [].createArray(a).init(0); this.drawOrders = [].createArray(a, null).init(0); }, getPropertyId_0: function () { return GT1344.prototype.drawOrder << 24; }, getFrameCount_0: function () { return this.frames.length; }, getFrames_0: function () { return this.frames; }, getDrawOrders_0: function () { return this.drawOrders; }, setFrame_3: function (a, b, d) { this.frames[a] = b; this.drawOrders[a] = d; }, apply_7: function (a, b, d, e, f, g, k) { b = a.drawOrder; a = a.slots; if (k == GT1345.prototype.out && g == GT1565.prototype.setup) java_lang_System.prototype.arraycopy_5(a.items, 0, b.items, 0, a.size); else if (((k = this.frames), d < k[0])) g == GT1565.prototype.setup && java_lang_System.prototype.arraycopy_5(a.items, 0, b.items, 0, a.size); else if (((d = d >= k[k.length - 1] ? k.length - 1 : GT1496.prototype.binarySearch_2(k, d) - 1), (d = this.drawOrders[d]), null == d)) java_lang_System.prototype.arraycopy_5(a.items, 0, b.items, 0, a.size); else for (g = 0, k = d.length; g < k; g++) b.set_2(g, a.get_1(d[g])); }, }, "GT1085", [GT1527] ), GT1611 = Class.extend( { initialConstructor_0: function () { this.data = null; this.doubleValue = this.intValue = 0; this.stringValue = null; this.time = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.data = null; this.doubleValue = this.intValue = 0; this.stringValue = null; this.time = 0; null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); this.time = a; this.data = b; }, getInt_0: function () { return this.intValue; }, setInt_1: function (a) { this.intValue = a; }, getDouble_0: function () { return this.doubleValue; }, setDouble_1: function (a) { this.doubleValue = a; }, getString_0: function () { return this.stringValue; }, setString_1: function (a) { this.stringValue = a; }, getTime_0: function () { return this.time; }, getData_0: function () { return this.data; }, toString: function () { return this.data.name; }, }, "GT1611", [] ), GT1498 = Class.extend( { initialConstructor_0: function () { this.name = null; this.doubleValue = this.intValue = 0; this.stringValue = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.doubleValue = this.intValue = 0; this.stringValue = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.name = a; }, getInt_0: function () { return this.intValue; }, setInt_1: function (a) { this.intValue = a; }, getDouble_0: function () { return this.doubleValue; }, setDouble_1: function (a) { this.doubleValue = a; }, getString_0: function () { return this.stringValue; }, setString_1: function (a) { this.stringValue = a; }, getName_0: function () { return this.name; }, toString: function () { return this.name; }, }, "GT1498", [] ), GT1454 = Class.extend( { initialConstructor_0: function () { this.animationState = this.objects = null; this.drainDisabled = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animationState = this.objects = null; this.drainDisabled = !1; this.animationState = a; this.objects = new GT1497(); }, start_1: function (a) { this.objects.add_1(GT1499.prototype.start); this.objects.add_1(a); this.animationState.animationsChanged = !0; }, interrupt_1: function (a) { this.objects.add_1(GT1499.prototype.interrupt); this.objects.add_1(a); }, end_1: function (a) { this.objects.add_1(GT1499.prototype.end); this.objects.add_1(a); this.animationState.animationsChanged = !0; }, dispose_1: function (a) { this.objects.add_1(GT1499.prototype.dispose); this.objects.add_1(a); }, complete_1: function (a) { this.objects.add_1(GT1499.prototype.complete); this.objects.add_1(a); }, event_2: function (a, b) { this.objects.add_1(GT1499.prototype.event); this.objects.add_1(a); this.objects.add_1(b); }, drain_0: function () { if (!this.drainDisabled) { this.drainDisabled = !0; for (var a = this.objects, b = this.animationState.listeners, d = 0; d < a.size; d += 2) { var e = Integer.truncate_1(a.get_1(d)), f = a.get_1(d + 1); switch (e) { case GT1499.prototype.start: null != f.listener && f.listener.start_1(f); for (e = 0; e < b.size; e++) b.get_1(e).start_1(f); break; case GT1499.prototype.interrupt: null != f.listener && f.listener.interrupt_1(f); for (e = 0; e < b.size; e++) b.get_1(e).interrupt_1(f); break; case GT1499.prototype.end: null != f.listener && f.listener.end_1(f); for (e = 0; e < b.size; e++) b.get_1(e).end_1(f); null != f.listener && f.listener.dispose_1(f); for (e = 0; e < b.size; e++) b.get_1(e).dispose_1(f); this.animationState.trackEntryPool.free_1(f); break; case GT1499.prototype.dispose: null != f.listener && f.listener.dispose_1(f); for (e = 0; e < b.size; e++) b.get_1(e).dispose_1(f); this.animationState.trackEntryPool.free_1(f); break; case GT1499.prototype.complete: null != f.listener && f.listener.complete_1(f); for (e = 0; e < b.size; e++) b.get_1(e).complete_1(f); break; case GT1499.prototype.event: var g = a.get_1(d++ + 2); null != f.listener && f.listener.event_2(f, g); for (e = 0; e < b.size; e++) b.get_1(e).event_2(f, g); } } this.clear_0(); this.drainDisabled = !1; } }, clear_0: function () { this.objects.clear_0(); }, }, "GT1454", [] ), GT1297 = Class.extend( { initialConstructor_0: function () { this.events = this.frames = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.events = this.frames = null; this.frames = [].createArray(a).init(0); this.events = [].createArray(a); }, getPropertyId_0: function () { return GT1344.prototype.event << 24; }, getFrameCount_0: function () { return this.frames.length; }, getFrames_0: function () { return this.frames; }, getEvents_0: function () { return this.events; }, setFrame_2: function (a, b) { this.frames[a] = b.time; this.events[a] = b; }, apply_7: function (a, b, d, e, f, g, k) { if (null != e) { var m = this.frames, n = m.length; if (b > d) this.apply_7(a, b, Integer.MAX_VALUE, e, f, g, k), (b = -1); else if (b >= m[n - 1]) return; if (!(d < m[0])) { if (b < m[0]) a = 0; else for (a = GT1496.prototype.binarySearch_2(m, b), b = m[a]; 0 < a && m[a - 1] == b; ) a--; for (; a < n && d >= m[a]; a++) e.add_1(this.events[a]); } } }, }, "GT1297", [GT1527] ), GT1499 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1499", [] ); GT1499.prototype.start = 0; GT1499.prototype.interrupt = 1; GT1499.prototype.end = 2; GT1499.prototype.dispose = 3; GT1499.prototype.complete = 4; GT1499.prototype.event = 5; var GT1403 = Class.extend( { initialConstructor_0: function () { this.m12 = this.m11 = this.m10 = this.m02 = this.m01 = this.m00 = 0; this.m00 = 1; this.m10 = this.m02 = this.m01 = 0; this.m11 = 1; this.m12 = 0; }, initialConstructor_1: function (a) { this.m12 = this.m11 = this.m10 = this.m02 = this.m01 = this.m00 = 0; this.set_1(a); }, idt_0: function () { this.m00 = 1; this.m10 = this.m02 = this.m01 = 0; this.m11 = 1; this.m12 = 0; return this; }, set_1: function (a) { this.m00 = a.m00; this.m01 = a.m01; this.m02 = a.m02; this.m10 = a.m10; this.m11 = a.m11; this.m12 = a.m12; return this; }, set_2: function (a, b) { var d = a.val; this.m00 = d[GT1402.prototype.M00]; this.m01 = d[GT1402.prototype.M01]; this.m02 = d[GT1402.prototype.M02]; this.m10 = d[GT1402.prototype.M10]; this.m11 = d[GT1402.prototype.M11]; this.m12 = d[GT1402.prototype.M12]; return this; }, set_3: function (a, b, d) { a = a.val; this.m00 = a[GT1404.prototype.M00]; this.m01 = a[GT1404.prototype.M01]; this.m02 = a[GT1404.prototype.M03]; this.m10 = a[GT1404.prototype.M10]; this.m11 = a[GT1404.prototype.M11]; this.m12 = a[GT1404.prototype.M13]; return this; }, setToTranslation_2: function (a, b) { this.m00 = 1; this.m01 = 0; this.m02 = a; this.m10 = 0; this.m11 = 1; this.m12 = b; return this; }, setToTranslation_1: function (a) { return this.setToTranslation_2(a.x, a.y); }, setToScaling_2: function (a, b) { this.m00 = a; this.m10 = this.m02 = this.m01 = 0; this.m11 = b; this.m12 = 0; return this; }, setToScaling_1: function (a) { return this.setToScaling_2(a.x, a.y); }, setToRotation_1: function (a) { var b = GT1294.prototype.cosDeg_1(a); a = GT1294.prototype.sinDeg_1(a); this.m00 = b; this.m01 = -a; this.m02 = 0; this.m10 = a; this.m11 = b; this.m12 = 0; return this; }, setToRotationRad_1: function (a) { var b = GT1294.prototype.cos_1(a); a = GT1294.prototype.sin_1(a); this.m00 = b; this.m01 = -a; this.m02 = 0; this.m10 = a; this.m11 = b; this.m12 = 0; return this; }, setToRotation_2: function (a, b) { this.m00 = a; this.m01 = -b; this.m02 = 0; this.m10 = b; this.m11 = a; this.m12 = 0; return this; }, setToShearing_2: function (a, b) { this.m00 = 1; this.m01 = a; this.m02 = 0; this.m10 = b; this.m11 = 1; this.m12 = 0; return this; }, setToShearing_1: function (a) { return this.setToShearing_2(a.x, a.y); }, setToTrnRotScl_5: function (a, b, d, e, f) { this.m02 = a; this.m12 = b; 0 == d ? ((this.m00 = e), (this.m10 = this.m01 = 0), (this.m11 = f)) : ((a = GT1294.prototype.sinDeg_1(d)), (d = GT1294.prototype.cosDeg_1(d)), (this.m00 = d * e), (this.m01 = -a * f), (this.m10 = a * e), (this.m11 = d * f)); return this; }, setToTrnRotScl_3: function (a, b, d) { return this.setToTrnRotScl_5(a.x, a.y, b, d.x, d.y); }, setToTrnRotRadScl_5: function (a, b, d, e, f) { this.m02 = a; this.m12 = b; 0 == d ? ((this.m00 = e), (this.m10 = this.m01 = 0), (this.m11 = f)) : ((a = GT1294.prototype.sin_1(d)), (d = GT1294.prototype.cos_1(d)), (this.m00 = d * e), (this.m01 = -a * f), (this.m10 = a * e), (this.m11 = d * f)); return this; }, setToTrnRotRadScl_3: function (a, b, d) { return this.setToTrnRotRadScl_5(a.x, a.y, b, d.x, d.y); }, setToTrnScl_4: function (a, b, d, e) { this.m00 = d; this.m01 = 0; this.m02 = a; this.m10 = 0; this.m11 = e; this.m12 = b; return this; }, setToTrnScl_2: function (a, b) { return this.setToTrnScl_4(a.x, a.y, b.x, b.y); }, setToProduct_2: function (a, b) { this.m00 = a.m00 * b.m00 + a.m01 * b.m10; this.m01 = a.m00 * b.m01 + a.m01 * b.m11; this.m02 = a.m00 * b.m02 + a.m01 * b.m12 + a.m02; this.m10 = a.m10 * b.m00 + a.m11 * b.m10; this.m11 = a.m10 * b.m01 + a.m11 * b.m11; this.m12 = a.m10 * b.m02 + a.m11 * b.m12 + a.m12; return this; }, mul_1: function (a) { var b = this.m00 * a.m01 + this.m01 * a.m11, d = this.m00 * a.m02 + this.m01 * a.m12 + this.m02, e = this.m10 * a.m00 + this.m11 * a.m10, f = this.m10 * a.m01 + this.m11 * a.m11, g = this.m10 * a.m02 + this.m11 * a.m12 + this.m12; this.m00 = this.m00 * a.m00 + this.m01 * a.m10; this.m01 = b; this.m02 = d; this.m10 = e; this.m11 = f; this.m12 = g; return this; }, preMul_1: function (a) { var b = a.m00 * this.m01 + a.m01 * this.m11, d = a.m00 * this.m02 + a.m01 * this.m12 + a.m02, e = a.m10 * this.m00 + a.m11 * this.m10, f = a.m10 * this.m01 + a.m11 * this.m11, g = a.m10 * this.m02 + a.m11 * this.m12 + a.m12; this.m00 = a.m00 * this.m00 + a.m01 * this.m10; this.m01 = b; this.m02 = d; this.m10 = e; this.m11 = f; this.m12 = g; return this; }, translate_2: function (a, b) { this.m02 += this.m00 * a + this.m01 * b; this.m12 += this.m10 * a + this.m11 * b; return this; }, translate_1: function (a) { return this.translate_2(a.x, a.y); }, preTranslate_2: function (a, b) { this.m02 += a; this.m12 += b; return this; }, preTranslate_1: function (a) { return this.preTranslate_2(a.x, a.y); }, scale_2: function (a, b) { this.m00 *= a; this.m01 *= b; this.m10 *= a; this.m11 *= b; return this; }, scale_1: function (a) { return this.scale_2(a.x, a.y); }, preScale_2: function (a, b) { this.m00 *= a; this.m01 *= a; this.m02 *= a; this.m10 *= b; this.m11 *= b; this.m12 *= b; return this; }, preScale_1: function (a) { return this.preScale_2(a.x, a.y); }, rotate_1: function (a) { if (0 == a) return this; var b = GT1294.prototype.cosDeg_1(a); a = GT1294.prototype.sinDeg_1(a); var d = this.m00 * -a + this.m01 * b, e = this.m10 * b + this.m11 * a, f = this.m10 * -a + this.m11 * b; this.m00 = this.m00 * b + this.m01 * a; this.m01 = d; this.m10 = e; this.m11 = f; return this; }, rotateRad_1: function (a) { if (0 == a) return this; var b = GT1294.prototype.cos_1(a); a = GT1294.prototype.sin_1(a); var d = this.m00 * -a + this.m01 * b, e = this.m10 * b + this.m11 * a, f = this.m10 * -a + this.m11 * b; this.m00 = this.m00 * b + this.m01 * a; this.m01 = d; this.m10 = e; this.m11 = f; return this; }, preRotate_1: function (a) { if (0 == a) return this; var b = GT1294.prototype.cosDeg_1(a); a = GT1294.prototype.sinDeg_1(a); var d = b * this.m01 - a * this.m11, e = b * this.m02 - a * this.m12, f = a * this.m00 + b * this.m10, g = a * this.m01 + b * this.m11, k = a * this.m02 + b * this.m12; this.m00 = b * this.m00 - a * this.m10; this.m01 = d; this.m02 = e; this.m10 = f; this.m11 = g; this.m12 = k; return this; }, preRotateRad_1: function (a) { if (0 == a) return this; var b = GT1294.prototype.cos_1(a); a = GT1294.prototype.sin_1(a); var d = b * this.m01 - a * this.m11, e = b * this.m02 - a * this.m12, f = a * this.m00 + b * this.m10, g = a * this.m01 + b * this.m11, k = a * this.m02 + b * this.m12; this.m00 = b * this.m00 - a * this.m10; this.m01 = d; this.m02 = e; this.m10 = f; this.m11 = g; this.m12 = k; return this; }, shear_2: function (a, b) { var d = this.m00 + b * this.m01, e = this.m01 + a * this.m00; this.m00 = d; this.m01 = e; d = this.m10 + b * this.m11; e = this.m11 + a * this.m10; this.m10 = d; this.m11 = e; return this; }, shear_1: function (a) { return this.shear_2(a.x, a.y); }, preShear_2: function (a, b) { var d = this.m01 + a * this.m11, e = this.m02 + a * this.m12, f = this.m10 + b * this.m00, g = this.m11 + b * this.m01, k = this.m12 + b * this.m02; this.m00 += a * this.m10; this.m01 = d; this.m02 = e; this.m10 = f; this.m11 = g; this.m12 = k; return this; }, preShear_1: function (a) { return this.preShear_2(a.x, a.y); }, det_0: function () { return this.m00 * this.m11 - this.m01 * this.m10; }, getTranslation_1: function (a) { a.x = this.m02; a.y = this.m12; return a; }, isTranslation_0: function () { return 1 == this.m00 && 1 == this.m11 && 0 == this.m01 && 0 == this.m10; }, isIdt_0: function () { return 1 == this.m00 && 0 == this.m02 && 0 == this.m12 && 1 == this.m11 && 0 == this.m01 && 0 == this.m10; }, applyTo_1: function (a) { var b = a.x, d = a.y; a.x = this.m00 * b + this.m01 * d + this.m02; a.y = this.m10 * b + this.m11 * d + this.m12; }, toString: function () { return "[" + this.m00 + "|" + this.m01 + "|" + this.m02 + "]\n[" + this.m10 + "|" + this.m11 + "|" + this.m12 + "]\n[0.0|0.0|0.1]"; }, }, "GT1403", [] ), GT1497 = Class.extend( { initialConstructor_0: function () { GT1497.prototype.initialConstructor_2.call(this, !0, 16); }, initialConstructor_1: function (a) { GT1497.prototype.initialConstructor_2.call(this, !0, a); }, initialConstructor_2: function (a, b) { this.items = null; this.size = 0; this.ordered = !1; this.ordered = a; this.items = [].createArray(b); }, initialConstructor_3: function (a, b, d) { GT1497.prototype.initialConstructor_4.call(this, !0, a, 0, a.length); }, initialConstructor_4: function (a, b, d, e) { GT1497.prototype.initialConstructor_2.call(this, a, e); this.size = e; java_lang_System.prototype.arraycopy_5(b, d, this.items, 0, this.size); }, add_1: function (a) { var b = this.items; this.size == b.length && (b = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); b[this.size++] = a; }, add_2: function (a, b) { var d = this.items; this.size + 1 >= d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); d[this.size] = a; d[this.size + 1] = b; this.size += 2; }, add_3: function (a, b, d) { var e = this.items; this.size + 2 >= e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); e[this.size] = a; e[this.size + 1] = b; e[this.size + 2] = d; this.size += 3; }, add_4: function (a, b, d, e) { var f = this.items; this.size + 3 >= f.length && (f = this.resize_1(Math.max_2(8, Integer.truncate_1(1.8 * this.size)))); f[this.size] = a; f[this.size + 1] = b; f[this.size + 2] = d; f[this.size + 3] = e; this.size += 4; }, addAll_1: function (a) { this.addAll_3(a, 0, a.length); }, addAll_3: function (a, b, d) { var e = this.items, f = this.size + d; f > e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * f)))); java_lang_System.prototype.arraycopy_5(a, b, e, this.size, d); this.size += d; }, get_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); return this.items[a]; }, set_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] = b; }, insert_2: function (a, b) { a > this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be > size: " + a + " > " + this.size); var d = this.items; this.size == d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); this.ordered ? java_lang_System.prototype.arraycopy_5(d, a, d, a + 1, this.size - a) : (d[this.size] = d[a]); this.size++; d[a] = b; }, swap_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: first can't be >= size: " + a + " >= " + this.size); b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: second can't be >= size: " + b + " >= " + this.size); var d = this.items, e = d[a]; d[a] = d[b]; d[b] = e; }, contains_2: function (a, b) { var d = this.items, e = this.size - 1; if (b || null == a) for (; 0 <= e; ) { if (d[e--] == a) return !0; } else for (; 0 <= e; ) if (a.equals_1(d[e--])) return !0; return !1; }, indexOf_2: function (a, b) { var d = this.items; if (b || null == a) for (var e = 0, f = this.size; e < f; e++) { if (d[e] == a) return e; } else for (e = 0, f = this.size; e < f; e++) if (a.equals_1(d[e])) return e; return -1; }, lastIndexOf_2: function (a, b) { var d = this.items; if (b || null == a) for (var e = this.size - 1; 0 <= e; e--) { if (d[e] == a) return e; } else for (e = this.size - 1; 0 <= e; e--) if (a.equals_1(d[e])) return e; return -1; }, removeValue_2: function (a, b) { var d = this.items; if (b || null == a) for (var e = 0, f = this.size; e < f; e++) { if (d[e] == a) return this.removeIndex_1(e), !0; } else for (e = 0, f = this.size; e < f; e++) if (a.equals_1(d[e])) return this.removeIndex_1(e), !0; return !1; }, removeIndex_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); var b = this.items, d = b[a]; this.size--; this.ordered ? java_lang_System.prototype.arraycopy_5(b, a + 1, b, a, this.size - a) : (b[a] = b[this.size]); b[this.size] = null; return d; }, removeRange_2: function (a, b) { b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: end can't be >= size: " + b + " >= " + this.size); a > b && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: start can't be > end: " + a + " > " + b); var d = this.items, e = b - a + 1; if (this.ordered) java_lang_System.prototype.arraycopy_5(d, a + e, d, a, this.size - (a + e)); else for (var f = this.size - 1, g = 0; g < e; g++) d[a + g] = d[f - g]; this.size -= e; }, removeAll_2: function (a, b) { var d = this.size, e = d, f = this.items; if (b) for (var g = 0, k = a.size; g < k; g++) for (var m = a.get_1(g), n = 0; n < d; n++) { if (m == f[n]) { this.removeIndex_1(n); d--; break; } } else for (g = 0, k = a.size; g < k; g++) for (m = a.get_1(g), n = 0; n < d; n++) if (m.equals_1(f[n])) { this.removeIndex_1(n); d--; break; } return d != e; }, pop_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); --this.size; var a = this.items[this.size]; this.items[this.size] = null; return a; }, peek_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); return this.items[this.size - 1]; }, first_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); return this.items[0]; }, clear_0: function () { for (var a = this.items, b = 0, d = this.size; b < d; b++) a[b] = null; this.size = 0; }, shrink_0: function () { this.items.length != this.size && this.resize_1(this.size); return this.items; }, ensureCapacity_1: function (a) { a = this.size + a; a > this.items.length && this.resize_1(Math.max_2(8, a)); return this.items; }, setSize_1: function (a) { this.truncate_1(a); a > this.items.length && this.resize_1(Math.max_2(8, a)); this.size = a; return this.items; }, resize_1: function (a) { var b = this.items; a = [].createArray(a); java_lang_System.prototype.arraycopy_5(b, 0, a, 0, Math.min_2(this.size, a.length)); return (this.items = a); }, selectRanked_2: function (a, b) { 1 > b && GT1650.prototype.assertExp_2(!1, "nth_lowest must be greater than 0, 1 = first, 2 = second..."); return GT1455.prototype.instance_0().select_4(this.items, a, b, this.size); }, selectRankedIndex_2: function (a, b) { 1 > b && GT1650.prototype.assertExp_2(!1, "nth_lowest must be greater than 0, 1 = first, 2 = second..."); return GT1455.prototype.instance_0().selectIndex_4(this.items, a, b, this.size); }, reverse_0: function () { for (var a = this.items, b = 0, d = this.size - 1, e = Math.div(this.size, 2); b < e; b++) { var f = d - b, g = a[b]; a[b] = a[f]; a[f] = g; } }, shuffle_0: function () { for (var a = this.items, b = this.size - 1; 0 <= b; b--) { var d = GT1294.prototype.random_1(b), e = a[b]; a[b] = a[d]; a[d] = e; } }, truncate_1: function (a) { if (!(this.size <= a)) { for (var b = a; b < this.size; b++) this.items[b] = null; this.size = a; } }, random_0: function () { return 0 == this.size ? null : this.items[GT1294.prototype.random_2(0, this.size - 1)]; }, toArray_0: function () { var a = [].createArray(this.size); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, this.size); return a; }, hashcode_0: function () { for (var a = this.items, b = 1, d = 0, e = this.size; d < e; d++) { var b = 31 * b, f = a[d]; null != f && (b += f.hashCode_0()); } return b; }, equals_1: function (a) { if (a == this) return !0; if (!this.ordered || !instanceOf(a, GT1497) || !a.ordered) return !1; var b = this.size; if (b != a.size) return !1; var d = this.items; a = a.items; for (var e = 0; e < b; e++) { var f = d[e], g = a[e]; if (null == f ? null != g : !f.equals_1(g)) return !1; } return !0; }, toString: function () { if (0 == this.size) return "[]"; var a = this.items, b; b = "91" + a[0]; for (var d = 1; d < this.size; d++) (b += ", "), (b += a[d]); return (b += 93); }, toString_1: function (a) { if (0 == this.size) return ""; var b = this.items, d; d = "" + b[0]; for (var e = 1; e < this.size; e++) (d += a), (d += b[e]); return d; }, }, "GT1497", [] ), GT1086 = Class.extend( { initialConstructor_0: function () { this.array = null; this.allowRemove = !1; this.index = 0; this.valid = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1086.prototype.initialConstructor_2.call(this, a, !0); }, initialConstructor_2: function (a, b) { this.array = null; this.allowRemove = !1; this.index = 0; this.valid = !1; this.valid = !0; this.array = a; this.allowRemove = b; }, hasNext_0: function () { this.valid || GT1650.prototype.assertExp_2(!1, "#iterator() cannot be used nested."); return this.index < this.array.size; }, next_0: function () { this.index >= this.array.size && GT1650.prototype.assertExp_2(!1, "NoSuchElementException(" + this.index + ")"); this.valid || GT1650.prototype.assertExp_2(!1, "#iterator() cannot be used nested."); return this.array.items[this.index++]; }, remove_0: function () { this.allowRemove || GT1650.prototype.assertExp_2(!1, "Remove not allowed."); this.index--; this.array.removeIndex_1(this.index); }, reset_0: function () { this.index = 0; }, }, "GT1086", [] ), GT1087 = Class.extend( { initialConstructor_0: function () { this.array = null; this.allowRemove = !1; this.iterator2 = this.iterator1 = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1087.prototype.initialConstructor_2.call(this, a, !0); }, initialConstructor_2: function (a, b) { this.array = null; this.allowRemove = !1; this.iterator2 = this.iterator1 = null; this.array = a; this.allowRemove = b; }, }, "GT1087", [] ); GT1497.prototype.with_1 = function (a) { return new GT1497(a, !0, !0); }; var GT1143 = Class.extend( { initialConstructor_0: function () { GT1143.prototype.initialConstructor_2.call(this, !0, 16); }, initialConstructor_2: function (a, b) { this.items = null; this.size = 0; this.ordered = !1; this.ordered = a; this.items = [].createArray(b).init(0); }, initialConstructor_1: function (a) { GT1143.prototype.initialConstructor_4.call(this, !0, a, 0, a.length); }, initialConstructor_4: function (a, b, d, e) { GT1143.prototype.initialConstructor_2.call(this, a, e); this.size = e; java_lang_System.prototype.arraycopy_5(b, d, this.items, 0, e); }, add_1: function (a) { var b = this.items; this.size == b.length && (b = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); b[this.size++] = a; }, add_2: function (a, b) { var d = this.items; this.size + 1 >= d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); d[this.size] = a; d[this.size + 1] = b; this.size += 2; }, add_3: function (a, b, d) { var e = this.items; this.size + 2 >= e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); e[this.size] = a; e[this.size + 1] = b; e[this.size + 2] = d; this.size += 3; }, add_4: function (a, b, d, e) { var f = this.items; this.size + 3 >= f.length && (f = this.resize_1(Math.max_2(8, Integer.truncate_1(1.8 * this.size)))); f[this.size] = a; f[this.size + 1] = b; f[this.size + 2] = d; f[this.size + 3] = e; this.size += 4; }, addAll_1: function (a) { this.addAll_3(a, 0, a.length); }, addAll_3: function (a, b, d) { var e = this.items, f = this.size + d; f > e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * f)))); java_lang_System.prototype.arraycopy_5(a, b, e, this.size, d); this.size += d; }, get_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); return this.items[a]; }, set_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] = b; }, insert_2: function (a, b) { a > this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be > size: " + a + " > " + this.size); var d = this.items; this.size == d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); this.ordered ? java_lang_System.prototype.arraycopy_5(d, a, d, a + 1, this.size - a) : (d[this.size] = d[a]); this.size++; d[a] = b; }, swap_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: first can't be >= size: " + a + " >= " + this.size); b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: second can't be >= size: " + b + " >= " + this.size); var d = this.items, e = d[a]; d[a] = d[b]; d[b] = e; }, removeIndex_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); var b = this.items, d = b[a]; this.size--; this.ordered ? java_lang_System.prototype.arraycopy_5(b, a + 1, b, a, this.size - a) : (b[a] = b[this.size]); return d; }, removeRange_2: function (a, b) { b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: end can't be >= size: " + b + " >= " + this.size); a > b && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: start can't be > end: " + a + " > " + b); var d = this.items, e = b - a + 1; if (this.ordered) java_lang_System.prototype.arraycopy_5(d, a + e, d, a, this.size - (a + e)); else for (var f = this.size - 1, g = 0; g < e; g++) d[a + g] = d[f - g]; this.size -= e; }, removeAll_1: function (a) { for (var b = this.size, d = b, e = this.items, f = 0, g = a.size; f < g; f++) for (var k = a.get_1(f), m = 0; m < b; m++) if (k == e[m]) { this.removeIndex_1(m); b--; break; } return b != d; }, pop_0: function () { return this.items[--this.size]; }, peek_0: function () { return this.items[this.size - 1]; }, first_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); return this.items[0]; }, clear_0: function () { this.size = 0; }, shrink_0: function () { this.items.length != this.size && this.resize_1(this.size); return this.items; }, ensureCapacity_1: function (a) { a = this.size + a; a > this.items.length && this.resize_1(Math.max_2(8, a)); return this.items; }, setSize_1: function (a) { a > this.items.length && this.resize_1(Math.max_2(8, a)); this.size = a; return this.items; }, resize_1: function (a) { a = [].createArray(a).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, Math.min_2(this.size, a.length)); return (this.items = a); }, reverse_0: function () { for (var a = this.items, b = 0, d = this.size - 1, e = Math.div(this.size, 2); b < e; b++) { var f = d - b, g = a[b]; a[b] = a[f]; a[f] = g; } }, shuffle_0: function () { for (var a = this.items, b = this.size - 1; 0 <= b; b--) { var d = GT1294.prototype.random_1(b), e = a[b]; a[b] = a[d]; a[d] = e; } }, truncate_1: function (a) { this.size > a && (this.size = a); }, random_0: function () { return 0 == this.size ? !1 : this.items[GT1294.prototype.random_2(0, this.size - 1)]; }, toArray_0: function () { var a = [].createArray(this.size).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, this.size); return a; }, hashCode_0: function () { for (var a = this.items, b = 1, d = 0, e = this.size; d < e; d++) b = 31 * b + (a[d] ? 1231 : 1237); return b; }, equals_1: function (a) { if (a == this) return !0; if (!this.ordered || !instanceOf(a, GT1143) || !a.ordered) return !1; var b = this.size; if (b != a.size) return !1; var d = this.items; a = a.items; for (var e = 0; e < b; e++) if (d[e] != a[e]) return !1; return !0; }, toString: function () { if (0 == this.size) return "[]"; var a = this.items, b; b = "91" + a[0]; for (var d = 1; d < this.size; d++) (b += ", "), (b += a[d]); return (b += 93); }, toString_1: function (a) { if (0 == this.size) return ""; var b = this.items, d; d = "" + b[0]; for (var e = 1; e < this.size; e++) (d += a), (d += b[e]); return d; }, }, "GT1143", [] ); GT1143.prototype.with_1 = function (a) { return new GT1143(a); }; var GT1477 = Class.extend( { initialConstructor_0: function () { GT1477.prototype.initialConstructor_4.call(this, 0, 0, 0, 0); }, initialConstructor_1: function (a) { GT1477.prototype.initialConstructor_4.call(this, a.r, a.g, a.b, a.a); }, initialConstructor_4: function (a, b, d, e) { this.a = this.b = this.g = this.r = 0; this.r = a; this.g = b; this.b = d; this.a = e; }, set_1: function (a) { this.set_4(a.r, a.g, a.b, a.a); }, set_4: function (a, b, d, e) { this.r = a; this.g = b; this.b = d; this.a = e; }, add_4: function (a, b, d, e) { this.r += a; this.g += b; this.b += d; this.a += e; }, getRed_0: function () { return this.r; }, getGreen_0: function () { return this.g; }, getBlue_0: function () { return this.b; }, getAlpha_0: function () { return this.a; }, setRed_1: function (a) { this.r = a; }, setGreen_1: function (a) { this.g = a; }, setBlue_1: function (a) { this.b = a; }, setAlpha_1: function (a) { this.a = a; }, equals_1: function (a) { return instanceOf(a, GT1477) ? this.getRed_0() == a.getRed_0() && this.getGreen_0() == a.getGreen_0() && this.getBlue_0() == a.getBlue_0() : !1; }, }, "GT1477", [] ); GT1477.prototype.valueOf_1 = function (a) { a = 35 == a.charAt_1(0) ? a.substring_1(1) : a; var b = GT1672.prototype.hexToInt_1(a.substring_2(0, 2)), d = GT1672.prototype.hexToInt_1(a.substring_2(2, 4)), e = GT1672.prototype.hexToInt_1(a.substring_2(4, 6)); a = 8 != a.length_0() ? 255 : GT1672.prototype.hexToInt_1(a.substring_2(6, 8)); return new GT1477(b / 255, d / 255, e / 255, a / 255); }; var GT1176 = Class.extend( { initialConstructor_0: function () { GT1176.prototype.initialConstructor_2.call(this, !0, 16); }, initialConstructor_1: function (a) { GT1176.prototype.initialConstructor_2.call(this, !0, a); }, initialConstructor_2: function (a, b) { this.items = null; this.size = 0; this.ordered = !1; this.ordered = a; this.items = [].createArray(b).init(0); }, initialConstructor_3: function (a, b, d) { GT1176.prototype.initialConstructor_4.call(this, !0, a, 0, a.length); }, initialConstructor_4: function (a, b, d, e) { GT1176.prototype.initialConstructor_2.call(this, a, e); this.size = e; java_lang_System.prototype.arraycopy_5(b, d, this.items, 0, e); }, add_1: function (a) { var b = this.items; this.size == b.length && (b = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); b[this.size++] = a; }, add_2: function (a, b) { var d = this.items; this.size + 1 >= d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); d[this.size] = a; d[this.size + 1] = b; this.size += 2; }, add_3: function (a, b, d) { var e = this.items; this.size + 2 >= e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); e[this.size] = a; e[this.size + 1] = b; e[this.size + 2] = d; this.size += 3; }, add_4: function (a, b, d, e) { var f = this.items; this.size + 3 >= f.length && (f = this.resize_1(Math.max_2(8, Integer.truncate_1(1.8 * this.size)))); f[this.size] = a; f[this.size + 1] = b; f[this.size + 2] = d; f[this.size + 3] = e; this.size += 4; }, addAll_1: function (a) { this.addAll_3(a, 0, a.length); }, addAll_3: function (a, b, d) { var e = this.items, f = this.size + d; f > e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * f)))); java_lang_System.prototype.arraycopy_5(a, b, e, this.size, d); this.size += d; }, get_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); return this.items[a]; }, set_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] = b; }, incr_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] += b; }, mul_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] *= b; }, insert_2: function (a, b) { a > this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be > size: " + a + " > " + this.size); var d = this.items; this.size == d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); this.ordered ? java_lang_System.prototype.arraycopy_5(d, a, d, a + 1, this.size - a) : (d[this.size] = d[a]); this.size++; d[a] = b; }, swap_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: first can't be >= size: " + a + " >= " + this.size); b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: second can't be >= size: " + b + " >= " + this.size); var d = this.items, e = d[a]; d[a] = d[b]; d[b] = e; }, contains_1: function (a) { for (var b = this.size - 1, d = this.items; 0 <= b; ) if (d[b--] == a) return !0; return !1; }, indexOf_1: function (a) { for (var b = this.items, d = 0, e = this.size; d < e; d++) if (b[d] == a) return d; return -1; }, lastIndexOf_1: function (a) { for (var b = this.items, d = this.size - 1; 0 <= d; d--) if (b[d] == a) return d; return -1; }, removeValue_1: function (a) { for (var b = this.items, d = 0, e = this.size; d < e; d++) if (b[d] == a) return this.removeIndex_1(d), !0; return !1; }, removeIndex_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); var b = this.items, d = b[a]; this.size--; this.ordered ? java_lang_System.prototype.arraycopy_5(b, a + 1, b, a, this.size - a) : (b[a] = b[this.size]); return d; }, removeRange_2: function (a, b) { b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: end can't be >= size: " + b + " >= " + this.size); a > b && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: start can't be > end: " + a + " > " + b); var d = this.items, e = b - a + 1; if (this.ordered) java_lang_System.prototype.arraycopy_5(d, a + e, d, a, this.size - (a + e)); else for (var f = this.size - 1, g = 0; g < e; g++) d[a + g] = d[f - g]; this.size -= e; }, removeAll_1: function (a) { for (var b = this.size, d = b, e = this.items, f = 0, g = a.size; f < g; f++) for (var k = a.get_1(f), m = 0; m < b; m++) if (k == e[m]) { this.removeIndex_1(m); b--; break; } return b != d; }, pop_0: function () { return this.items[--this.size]; }, peek_0: function () { return this.items[this.size - 1]; }, first_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); return this.items[0]; }, clear_0: function () { this.size = 0; }, shrink_0: function () { this.items.length != this.size && this.resize_1(this.size); return this.items; }, ensureCapacity_1: function (a) { a = this.size + a; a > this.items.length && this.resize_1(Math.max_2(8, a)); return this.items; }, setSize_1: function (a) { a > this.items.length && this.resize_1(Math.max_2(8, a)); this.size = a; return this.items; }, resize_1: function (a) { a = [].createArray(a).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, Math.min_2(this.size, a.length)); return (this.items = a); }, reverse_0: function () { for (var a = this.items, b = 0, d = this.size - 1, e = Math.div(this.size, 2); b < e; b++) { var f = d - b, g = a[b]; a[b] = a[f]; a[f] = g; } }, shuffle_0: function () { for (var a = this.items, b = this.size - 1; 0 <= b; b--) { var d = GT1294.prototype.random_1(b), e = a[b]; a[b] = a[d]; a[d] = e; } }, truncate_1: function (a) { this.size > a && (this.size = a); }, random_0: function () { return 0 == this.size ? 0 : this.items[GT1294.prototype.random_2(0, this.size - 1)]; }, toArray_0: function () { var a = [].createArray(this.size).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, this.size); return a; }, equals_1: function (a) { if (a == this) return !0; if (!this.ordered || !instanceOf(a, GT1176) || !a.ordered) return !1; var b = this.size; if (b != a.size) return !1; var d = this.items; a = a.items; for (var e = 0; e < b; e++) if (d[e] != a[e]) return !1; return !0; }, equals_2: function (a, b) { if (a == this) return !0; if (!instanceOf(a, GT1176)) return !1; var d = this.size; if (d != a.size || !this.ordered || !a.ordered) return !1; for (var e = this.items, f = a.items, g = 0; g < d; g++) if (Math.abs_1(e[g] - f[g]) > b) return !1; return !0; }, toString: function () { if (0 == this.size) return "[]"; var a = this.items, b; b = "91" + a[0]; for (var d = 1; d < this.size; d++) (b += ", "), (b += a[d]); return (b += 93); }, toString_1: function (a) { if (0 == this.size) return ""; var b = this.items, d; d = "" + b[0]; for (var e = 1; e < this.size; e++) (d += a), (d += b[e]); return d; }, }, "GT1176", [] ); GT1176.prototype.with_1 = function (a) { return new GT1176(a, !0, !0); }; var GT1346 = Class.extend( { initialConstructor_0: function () { GT1346.prototype.initialConstructor_2.call(this, !0, 16); }, initialConstructor_1: function (a) { GT1346.prototype.initialConstructor_2.call(this, !0, a); }, initialConstructor_2: function (a, b) { this.items = null; this.size = 0; this.ordered = !1; this.ordered = a; this.items = [].createArray(b).init(0); }, initialConstructor_3: function (a, b, d) { GT1346.prototype.initialConstructor_4.call(this, !0, a, 0, a.length); }, initialConstructor_4: function (a, b, d, e) { GT1346.prototype.initialConstructor_2.call(this, a, e); this.size = e; java_lang_System.prototype.arraycopy_5(b, d, this.items, 0, e); }, add_1: function (a) { var b = this.items; this.size == b.length && (b = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); b[this.size++] = a; }, add_2: function (a, b) { var d = this.items; this.size + 1 >= d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); d[this.size] = a; d[this.size + 1] = b; this.size += 2; }, add_3: function (a, b, d) { var e = this.items; this.size + 2 >= e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); e[this.size] = a; e[this.size + 1] = b; e[this.size + 2] = d; this.size += 3; }, add_4: function (a, b, d, e) { var f = this.items; this.size + 3 >= f.length && (f = this.resize_1(Math.max_2(8, Integer.truncate_1(1.8 * this.size)))); f[this.size] = a; f[this.size + 1] = b; f[this.size + 2] = d; f[this.size + 3] = e; this.size += 4; }, addAll_1: function (a) { this.addAll_3(a, 0, a.length); }, addAll_3: function (a, b, d) { var e = this.items, f = this.size + d; f > e.length && (e = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * f)))); java_lang_System.prototype.arraycopy_5(a, b, e, this.size, d); this.size += d; }, get_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); return this.items[a]; }, set_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] = b; }, incr_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] += b; }, mul_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); this.items[a] *= b; }, insert_2: function (a, b) { a > this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be > size: " + a + " > " + this.size); var d = this.items; this.size == d.length && (d = this.resize_1(Math.max_2(8, Integer.truncate_1(1.75 * this.size)))); this.ordered ? java_lang_System.prototype.arraycopy_5(d, a, d, a + 1, this.size - a) : (d[this.size] = d[a]); this.size++; d[a] = b; }, swap_2: function (a, b) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: first can't be >= size: " + a + " >= " + this.size); b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: second can't be >= size: " + b + " >= " + this.size); var d = this.items, e = d[a]; d[a] = d[b]; d[b] = e; }, contains_1: function (a) { for (var b = this.size - 1, d = this.items; 0 <= b; ) if (d[b--] == a) return !0; return !1; }, indexOf_1: function (a) { for (var b = this.items, d = 0, e = this.size; d < e; d++) if (b[d] == a) return d; return -1; }, lastIndexOf_1: function (a) { for (var b = this.items, d = this.size - 1; 0 <= d; d--) if (b[d] == a) return d; return -1; }, removeValue_1: function (a) { for (var b = this.items, d = 0, e = this.size; d < e; d++) if (b[d] == a) return this.removeIndex_1(d), !0; return !1; }, removeIndex_1: function (a) { a >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: index can't be >= size: " + a + " >= " + this.size); var b = this.items, d = b[a]; this.size--; this.ordered ? java_lang_System.prototype.arraycopy_5(b, a + 1, b, a, this.size - a) : (b[a] = b[this.size]); return d; }, removeRange_2: function (a, b) { b >= this.size && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: end can't be >= size: " + b + " >= " + this.size); a > b && GT1650.prototype.assertExp_2(!1, "IndexOutOfBoundsException: start can't be > end: " + a + " > " + b); var d = this.items, e = b - a + 1; if (this.ordered) java_lang_System.prototype.arraycopy_5(d, a + e, d, a, this.size - (a + e)); else for (var f = this.size - 1, g = 0; g < e; g++) d[a + g] = d[f - g]; this.size -= e; }, removeAll_1: function (a) { for (var b = this.size, d = b, e = this.items, f = 0, g = a.size; f < g; f++) for (var k = a.get_1(f), m = 0; m < b; m++) if (k == e[m]) { this.removeIndex_1(m); b--; break; } return b != d; }, pop_0: function () { return this.items[--this.size]; }, peek_0: function () { return this.items[this.size - 1]; }, first_0: function () { 0 == this.size && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Array is empty."); return this.items[0]; }, clear_0: function () { this.size = 0; }, shrink_0: function () { this.items.length != this.size && this.resize_1(this.size); return this.items; }, ensureCapacity_1: function (a) { a = this.size + a; a > this.items.length && this.resize_1(Math.max_2(8, a)); return this.items; }, setSize_1: function (a) { a > this.items.length && this.resize_1(Math.max_2(8, a)); this.size = a; return this.items; }, resize_1: function (a) { a = [].createArray(a).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, Math.min_2(this.size, a.length)); return (this.items = a); }, reverse_0: function () { for (var a = this.items, b = 0, d = this.size - 1, e = Math.div(this.size, 2); b < e; b++) { var f = d - b, g = a[b]; a[b] = a[f]; a[f] = g; } }, shuffle_0: function () { for (var a = this.items, b = this.size - 1; 0 <= b; b--) { var d = GT1294.prototype.random_1(b), e = a[b]; a[b] = a[d]; a[d] = e; } }, truncate_1: function (a) { this.size > a && (this.size = a); }, random_0: function () { return 0 == this.size ? 0 : this.items[GT1294.prototype.random_2(0, this.size - 1)]; }, toArray_0: function () { var a = [].createArray(this.size).init(0); java_lang_System.prototype.arraycopy_5(this.items, 0, a, 0, this.size); return a; }, hashCode_0: function () { for (var a = this.items, b = 1, d = 0, e = this.size; d < e; d++) b = 31 * b + a[d]; return b; }, equals_1: function (a) { if (a == this) return !0; if (!this.ordered || !instanceOf(a, GT1346) || !a.ordered) return !1; var b = this.size; if (b != a.size) return !1; for (var d = 0; d < b; d++) if (this.items[d] != a.items[d]) return !1; return !0; }, toString: function () { if (0 == this.size) return "[]"; var a = this.items, b; b = "91" + a[0]; for (var d = 1; d < this.size; d++) (b += ", "), (b += a[d]); return (b += 93); }, toString_1: function (a) { if (0 == this.size) return ""; var b = this.items, d; d = "" + b[0]; for (var e = 1; e < this.size; e++) (d += a), (d += b[e]); return d; }, }, "GT1346", [] ); GT1346.prototype.with_1 = function (a) { return new GT1346(a, !0, !0); }; var GT1088 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, apply_3: function (a, b, d) { return a + (b - a) * this.apply_1(d); }, }, "GT1088", [] ), GT1402 = Class.extend( { initialConstructor_0: function () { this.tmp = this.val = null; this.val = [].createArray(9).init(0); this.tmp = [].createArray(9).init(0); this.idt_0(); }, initialConstructor_1: function (a) { this.tmp = this.val = null; this.val = [].createArray(9).init(0); this.tmp = [].createArray(9).init(0); this.set_1(a); }, idt_0: function () { var a = this.val; a[GT1402.prototype.M00] = 1; a[GT1402.prototype.M10] = 0; a[GT1402.prototype.M20] = 0; a[GT1402.prototype.M01] = 0; a[GT1402.prototype.M11] = 1; a[GT1402.prototype.M21] = 0; a[GT1402.prototype.M02] = 0; a[GT1402.prototype.M12] = 0; a[GT1402.prototype.M22] = 1; return this; }, mul_1: function (a) { var b = this.val, d = b[GT1402.prototype.M00] * a.val[GT1402.prototype.M01] + b[GT1402.prototype.M01] * a.val[GT1402.prototype.M11] + b[GT1402.prototype.M02] * a.val[GT1402.prototype.M21], e = b[GT1402.prototype.M00] * a.val[GT1402.prototype.M02] + b[GT1402.prototype.M01] * a.val[GT1402.prototype.M12] + b[GT1402.prototype.M02] * a.val[GT1402.prototype.M22], f = b[GT1402.prototype.M10] * a.val[GT1402.prototype.M00] + b[GT1402.prototype.M11] * a.val[GT1402.prototype.M10] + b[GT1402.prototype.M12] * a.val[GT1402.prototype.M20], g = b[GT1402.prototype.M10] * a.val[GT1402.prototype.M01] + b[GT1402.prototype.M11] * a.val[GT1402.prototype.M11] + b[GT1402.prototype.M12] * a.val[GT1402.prototype.M21], k = b[GT1402.prototype.M10] * a.val[GT1402.prototype.M02] + b[GT1402.prototype.M11] * a.val[GT1402.prototype.M12] + b[GT1402.prototype.M12] * a.val[GT1402.prototype.M22], m = b[GT1402.prototype.M20] * a.val[GT1402.prototype.M00] + b[GT1402.prototype.M21] * a.val[GT1402.prototype.M10] + b[GT1402.prototype.M22] * a.val[GT1402.prototype.M20], n = b[GT1402.prototype.M20] * a.val[GT1402.prototype.M01] + b[GT1402.prototype.M21] * a.val[GT1402.prototype.M11] + b[GT1402.prototype.M22] * a.val[GT1402.prototype.M21], p = b[GT1402.prototype.M20] * a.val[GT1402.prototype.M02] + b[GT1402.prototype.M21] * a.val[GT1402.prototype.M12] + b[GT1402.prototype.M22] * a.val[GT1402.prototype.M22]; b[GT1402.prototype.M00] = b[GT1402.prototype.M00] * a.val[GT1402.prototype.M00] + b[GT1402.prototype.M01] * a.val[GT1402.prototype.M10] + b[GT1402.prototype.M02] * a.val[GT1402.prototype.M20]; b[GT1402.prototype.M10] = f; b[GT1402.prototype.M20] = m; b[GT1402.prototype.M01] = d; b[GT1402.prototype.M11] = g; b[GT1402.prototype.M21] = n; b[GT1402.prototype.M02] = e; b[GT1402.prototype.M12] = k; b[GT1402.prototype.M22] = p; return this; }, mulLeft_1: function (a) { var b = this.val, d = a.val[GT1402.prototype.M00] * b[GT1402.prototype.M01] + a.val[GT1402.prototype.M01] * b[GT1402.prototype.M11] + a.val[GT1402.prototype.M02] * b[GT1402.prototype.M21], e = a.val[GT1402.prototype.M00] * b[GT1402.prototype.M02] + a.val[GT1402.prototype.M01] * b[GT1402.prototype.M12] + a.val[GT1402.prototype.M02] * b[GT1402.prototype.M22], f = a.val[GT1402.prototype.M10] * b[GT1402.prototype.M00] + a.val[GT1402.prototype.M11] * b[GT1402.prototype.M10] + a.val[GT1402.prototype.M12] * b[GT1402.prototype.M20], g = a.val[GT1402.prototype.M10] * b[GT1402.prototype.M01] + a.val[GT1402.prototype.M11] * b[GT1402.prototype.M11] + a.val[GT1402.prototype.M12] * b[GT1402.prototype.M21], k = a.val[GT1402.prototype.M10] * b[GT1402.prototype.M02] + a.val[GT1402.prototype.M11] * b[GT1402.prototype.M12] + a.val[GT1402.prototype.M12] * b[GT1402.prototype.M22], m = a.val[GT1402.prototype.M20] * b[GT1402.prototype.M00] + a.val[GT1402.prototype.M21] * b[GT1402.prototype.M10] + a.val[GT1402.prototype.M22] * b[GT1402.prototype.M20], n = a.val[GT1402.prototype.M20] * b[GT1402.prototype.M01] + a.val[GT1402.prototype.M21] * b[GT1402.prototype.M11] + a.val[GT1402.prototype.M22] * b[GT1402.prototype.M21], p = a.val[GT1402.prototype.M20] * b[GT1402.prototype.M02] + a.val[GT1402.prototype.M21] * b[GT1402.prototype.M12] + a.val[GT1402.prototype.M22] * b[GT1402.prototype.M22]; b[GT1402.prototype.M00] = a.val[GT1402.prototype.M00] * b[GT1402.prototype.M00] + a.val[GT1402.prototype.M01] * b[GT1402.prototype.M10] + a.val[GT1402.prototype.M02] * b[GT1402.prototype.M20]; b[GT1402.prototype.M10] = f; b[GT1402.prototype.M20] = m; b[GT1402.prototype.M01] = d; b[GT1402.prototype.M11] = g; b[GT1402.prototype.M21] = n; b[GT1402.prototype.M02] = e; b[GT1402.prototype.M12] = k; b[GT1402.prototype.M22] = p; return this; }, setToRotation_1: function (a) { return this.setToRotationRad_1(GT1294.prototype.degreesToRadians * a); }, setToRotationRad_1: function (a) { var b = Math.cos_1(a); a = Math.sin_1(a); var d = this.val; d[GT1402.prototype.M00] = b; d[GT1402.prototype.M10] = a; d[GT1402.prototype.M20] = 0; d[GT1402.prototype.M01] = -a; d[GT1402.prototype.M11] = b; d[GT1402.prototype.M21] = 0; d[GT1402.prototype.M02] = 0; d[GT1402.prototype.M12] = 0; d[GT1402.prototype.M22] = 1; return this; }, setToRotation_2: function (a, b) { return this.setToRotation_3(a, GT1294.prototype.cosDeg_1(b), GT1294.prototype.sinDeg_1(b)); }, setToRotation_3: function (a, b, d) { var e = this.val, f = 1 - b; e[GT1402.prototype.M00] = f * a.x * a.x + b; e[GT1402.prototype.M10] = f * a.x * a.y - a.z * d; e[GT1402.prototype.M20] = f * a.z * a.x + a.y * d; e[GT1402.prototype.M01] = f * a.x * a.y + a.z * d; e[GT1402.prototype.M11] = f * a.y * a.y + b; e[GT1402.prototype.M21] = f * a.y * a.z - a.x * d; e[GT1402.prototype.M02] = f * a.z * a.x - a.y * d; e[GT1402.prototype.M12] = f * a.y * a.z + a.x * d; e[GT1402.prototype.M22] = f * a.z * a.z + b; return this; }, setToTranslation_2: function (a, b) { var d = this.val; d[GT1402.prototype.M00] = 1; d[GT1402.prototype.M10] = 0; d[GT1402.prototype.M20] = 0; d[GT1402.prototype.M01] = 0; d[GT1402.prototype.M11] = 1; d[GT1402.prototype.M21] = 0; d[GT1402.prototype.M02] = a; d[GT1402.prototype.M12] = b; d[GT1402.prototype.M22] = 1; return this; }, setToTranslation_1: function (a) { var b = this.val; b[GT1402.prototype.M00] = 1; b[GT1402.prototype.M10] = 0; b[GT1402.prototype.M20] = 0; b[GT1402.prototype.M01] = 0; b[GT1402.prototype.M11] = 1; b[GT1402.prototype.M21] = 0; b[GT1402.prototype.M02] = a.x; b[GT1402.prototype.M12] = a.y; b[GT1402.prototype.M22] = 1; return this; }, setToScaling_2: function (a, b) { var d = this.val; d[GT1402.prototype.M00] = a; d[GT1402.prototype.M10] = 0; d[GT1402.prototype.M20] = 0; d[GT1402.prototype.M01] = 0; d[GT1402.prototype.M11] = b; d[GT1402.prototype.M21] = 0; d[GT1402.prototype.M02] = 0; d[GT1402.prototype.M12] = 0; d[GT1402.prototype.M22] = 1; return this; }, setToScaling_1: function (a) { var b = this.val; b[GT1402.prototype.M00] = a.x; b[GT1402.prototype.M10] = 0; b[GT1402.prototype.M20] = 0; b[GT1402.prototype.M01] = 0; b[GT1402.prototype.M11] = a.y; b[GT1402.prototype.M21] = 0; b[GT1402.prototype.M02] = 0; b[GT1402.prototype.M12] = 0; b[GT1402.prototype.M22] = 1; return this; }, toString: function () { var a = this.val; return ( "[" + a[GT1402.prototype.M00] + "|" + a[GT1402.prototype.M01] + "|" + a[GT1402.prototype.M02] + "]\n[" + a[GT1402.prototype.M10] + "|" + a[GT1402.prototype.M11] + "|" + a[GT1402.prototype.M12] + "]\n[" + a[GT1402.prototype.M20] + "|" + a[GT1402.prototype.M21] + "|" + a[GT1402.prototype.M22] + "]" ); }, det_0: function () { var a = this.val; return ( a[GT1402.prototype.M00] * a[GT1402.prototype.M11] * a[GT1402.prototype.M22] + a[GT1402.prototype.M01] * a[GT1402.prototype.M12] * a[GT1402.prototype.M20] + a[GT1402.prototype.M02] * a[GT1402.prototype.M10] * a[GT1402.prototype.M21] - a[GT1402.prototype.M00] * a[GT1402.prototype.M12] * a[GT1402.prototype.M21] - a[GT1402.prototype.M01] * a[GT1402.prototype.M10] * a[GT1402.prototype.M22] - a[GT1402.prototype.M02] * a[GT1402.prototype.M11] * a[GT1402.prototype.M20] ); }, inv_0: function () { var a = this.det_0(); 0 == a && GT1650.prototype.assertExp_2(!1, "Can't invert a singular matrix"); var a = 1 / a, b = this.tmp, d = this.val; b[GT1402.prototype.M00] = d[GT1402.prototype.M11] * d[GT1402.prototype.M22] - d[GT1402.prototype.M21] * d[GT1402.prototype.M12]; b[GT1402.prototype.M10] = d[GT1402.prototype.M20] * d[GT1402.prototype.M12] - d[GT1402.prototype.M10] * d[GT1402.prototype.M22]; b[GT1402.prototype.M20] = d[GT1402.prototype.M10] * d[GT1402.prototype.M21] - d[GT1402.prototype.M20] * d[GT1402.prototype.M11]; b[GT1402.prototype.M01] = d[GT1402.prototype.M21] * d[GT1402.prototype.M02] - d[GT1402.prototype.M01] * d[GT1402.prototype.M22]; b[GT1402.prototype.M11] = d[GT1402.prototype.M00] * d[GT1402.prototype.M22] - d[GT1402.prototype.M20] * d[GT1402.prototype.M02]; b[GT1402.prototype.M21] = d[GT1402.prototype.M20] * d[GT1402.prototype.M01] - d[GT1402.prototype.M00] * d[GT1402.prototype.M21]; b[GT1402.prototype.M02] = d[GT1402.prototype.M01] * d[GT1402.prototype.M12] - d[GT1402.prototype.M11] * d[GT1402.prototype.M02]; b[GT1402.prototype.M12] = d[GT1402.prototype.M10] * d[GT1402.prototype.M02] - d[GT1402.prototype.M00] * d[GT1402.prototype.M12]; b[GT1402.prototype.M22] = d[GT1402.prototype.M00] * d[GT1402.prototype.M11] - d[GT1402.prototype.M10] * d[GT1402.prototype.M01]; d[GT1402.prototype.M00] = a * b[GT1402.prototype.M00]; d[GT1402.prototype.M10] = a * b[GT1402.prototype.M10]; d[GT1402.prototype.M20] = a * b[GT1402.prototype.M20]; d[GT1402.prototype.M01] = a * b[GT1402.prototype.M01]; d[GT1402.prototype.M11] = a * b[GT1402.prototype.M11]; d[GT1402.prototype.M21] = a * b[GT1402.prototype.M21]; d[GT1402.prototype.M02] = a * b[GT1402.prototype.M02]; d[GT1402.prototype.M12] = a * b[GT1402.prototype.M12]; d[GT1402.prototype.M22] = a * b[GT1402.prototype.M22]; return this; }, setMatrix3_1: function (a) { java_lang_System.prototype.arraycopy_5(a.val, 0, this.val, 0, this.val.length); return this; }, setAffine2_1: function (a) { var b = this.val; b[GT1402.prototype.M00] = a.m00; b[GT1402.prototype.M10] = a.m10; b[GT1402.prototype.M20] = 0; b[GT1402.prototype.M01] = a.m01; b[GT1402.prototype.M11] = a.m11; b[GT1402.prototype.M21] = 0; b[GT1402.prototype.M02] = a.m02; b[GT1402.prototype.M12] = a.m12; b[GT1402.prototype.M22] = 1; return this; }, setMatrix4_1: function (a) { var b = this.val; b[GT1402.prototype.M00] = a.val[GT1404.prototype.M00]; b[GT1402.prototype.M10] = a.val[GT1404.prototype.M10]; b[GT1402.prototype.M20] = a.val[GT1404.prototype.M20]; b[GT1402.prototype.M01] = a.val[GT1404.prototype.M01]; b[GT1402.prototype.M11] = a.val[GT1404.prototype.M11]; b[GT1402.prototype.M21] = a.val[GT1404.prototype.M21]; b[GT1402.prototype.M02] = a.val[GT1404.prototype.M02]; b[GT1402.prototype.M12] = a.val[GT1404.prototype.M12]; b[GT1402.prototype.M22] = a.val[GT1404.prototype.M22]; return this; }, set_1: function (a) { java_lang_System.prototype.arraycopy_5(a, 0, this.val, 0, this.val.length); return this; }, trnVector2_1: function (a) { this.val[GT1402.prototype.M02] += a.x; this.val[GT1402.prototype.M12] += a.y; return this; }, trn_2: function (a, b) { this.val[GT1402.prototype.M02] += a; this.val[GT1402.prototype.M12] += b; return this; }, trnVector3_1: function (a) { this.val[GT1402.prototype.M02] += a.x; this.val[GT1402.prototype.M12] += a.y; return this; }, translate_2: function (a, b) { var d = this.val; this.tmp[GT1402.prototype.M00] = 1; this.tmp[GT1402.prototype.M10] = 0; this.tmp[GT1402.prototype.M20] = 0; this.tmp[GT1402.prototype.M01] = 0; this.tmp[GT1402.prototype.M11] = 1; this.tmp[GT1402.prototype.M21] = 0; this.tmp[GT1402.prototype.M02] = a; this.tmp[GT1402.prototype.M12] = b; this.tmp[GT1402.prototype.M22] = 1; this.mul_2(d, this.tmp); return this; }, translate_1: function (a) { var b = this.val; this.tmp[GT1402.prototype.M00] = 1; this.tmp[GT1402.prototype.M10] = 0; this.tmp[GT1402.prototype.M20] = 0; this.tmp[GT1402.prototype.M01] = 0; this.tmp[GT1402.prototype.M11] = 1; this.tmp[GT1402.prototype.M21] = 0; this.tmp[GT1402.prototype.M02] = a.x; this.tmp[GT1402.prototype.M12] = a.y; this.tmp[GT1402.prototype.M22] = 1; this.mul_2(b, this.tmp); return this; }, rotate_1: function (a) { return this.rotateRad_1(GT1294.prototype.degreesToRadians * a); }, rotateRad_1: function (a) { if (0 == a) return this; var b = Math.cos_1(a); a = Math.sin_1(a); var d = this.tmp; d[GT1402.prototype.M00] = b; d[GT1402.prototype.M10] = a; d[GT1402.prototype.M20] = 0; d[GT1402.prototype.M01] = -a; d[GT1402.prototype.M11] = b; d[GT1402.prototype.M21] = 0; d[GT1402.prototype.M02] = 0; d[GT1402.prototype.M12] = 0; d[GT1402.prototype.M22] = 1; this.mul_2(this.val, d); return this; }, scale_2: function (a, b) { var d = this.tmp; d[GT1402.prototype.M00] = a; d[GT1402.prototype.M10] = 0; d[GT1402.prototype.M20] = 0; d[GT1402.prototype.M01] = 0; d[GT1402.prototype.M11] = b; d[GT1402.prototype.M21] = 0; d[GT1402.prototype.M02] = 0; d[GT1402.prototype.M12] = 0; d[GT1402.prototype.M22] = 1; this.mul_2(this.val, d); return this; }, scale_1: function (a) { var b = this.tmp; b[GT1402.prototype.M00] = a.x; b[GT1402.prototype.M10] = 0; b[GT1402.prototype.M20] = 0; b[GT1402.prototype.M01] = 0; b[GT1402.prototype.M11] = a.y; b[GT1402.prototype.M21] = 0; b[GT1402.prototype.M02] = 0; b[GT1402.prototype.M12] = 0; b[GT1402.prototype.M22] = 1; this.mul_2(this.val, b); return this; }, getValues_0: function () { return this.val; }, getTranslation_1: function (a) { a.x = this.val[GT1402.prototype.M02]; a.y = this.val[GT1402.prototype.M12]; return a; }, getScale_1: function (a) { var b = this.val; a.x = Math.sqrt_1(b[GT1402.prototype.M00] * b[GT1402.prototype.M00] + b[GT1402.prototype.M01] * b[GT1402.prototype.M01]); a.y = Math.sqrt_1(b[GT1402.prototype.M10] * b[GT1402.prototype.M10] + b[GT1402.prototype.M11] * b[GT1402.prototype.M11]); return a; }, getRotation_0: function () { return GT1294.prototype.radiansToDegrees * Math.atan2_2(this.val[GT1402.prototype.M10], this.val[GT1402.prototype.M00]); }, getRotationRad_0: function () { return Math.atan2_2(this.val[GT1402.prototype.M10], this.val[GT1402.prototype.M00]); }, scl_1: function (a) { this.val[GT1402.prototype.M00] *= a; this.val[GT1402.prototype.M11] *= a; return this; }, sclVector2_1: function (a) { this.val[GT1402.prototype.M00] *= a.x; this.val[GT1402.prototype.M11] *= a.y; return this; }, sclVector3_1: function (a) { this.val[GT1402.prototype.M00] *= a.x; this.val[GT1402.prototype.M11] *= a.y; return this; }, transpose_0: function () { var a = this.val, b = a[GT1402.prototype.M20], d = a[GT1402.prototype.M01], e = a[GT1402.prototype.M21], f = a[GT1402.prototype.M02], g = a[GT1402.prototype.M12]; a[GT1402.prototype.M01] = a[GT1402.prototype.M10]; a[GT1402.prototype.M02] = b; a[GT1402.prototype.M10] = d; a[GT1402.prototype.M12] = e; a[GT1402.prototype.M20] = f; a[GT1402.prototype.M21] = g; return this; }, }, "GT1402", [] ); GT1402.prototype.mul_2 = function (a, b) { var d = a[GT1402.prototype.M00] * b[GT1402.prototype.M01] + a[GT1402.prototype.M01] * b[GT1402.prototype.M11] + a[GT1402.prototype.M02] * b[GT1402.prototype.M21], e = a[GT1402.prototype.M00] * b[GT1402.prototype.M02] + a[GT1402.prototype.M01] * b[GT1402.prototype.M12] + a[GT1402.prototype.M02] * b[GT1402.prototype.M22], f = a[GT1402.prototype.M10] * b[GT1402.prototype.M00] + a[GT1402.prototype.M11] * b[GT1402.prototype.M10] + a[GT1402.prototype.M12] * b[GT1402.prototype.M20], g = a[GT1402.prototype.M10] * b[GT1402.prototype.M01] + a[GT1402.prototype.M11] * b[GT1402.prototype.M11] + a[GT1402.prototype.M12] * b[GT1402.prototype.M21], k = a[GT1402.prototype.M10] * b[GT1402.prototype.M02] + a[GT1402.prototype.M11] * b[GT1402.prototype.M12] + a[GT1402.prototype.M12] * b[GT1402.prototype.M22], m = a[GT1402.prototype.M20] * b[GT1402.prototype.M00] + a[GT1402.prototype.M21] * b[GT1402.prototype.M10] + a[GT1402.prototype.M22] * b[GT1402.prototype.M20], n = a[GT1402.prototype.M20] * b[GT1402.prototype.M01] + a[GT1402.prototype.M21] * b[GT1402.prototype.M11] + a[GT1402.prototype.M22] * b[GT1402.prototype.M21], p = a[GT1402.prototype.M20] * b[GT1402.prototype.M02] + a[GT1402.prototype.M21] * b[GT1402.prototype.M12] + a[GT1402.prototype.M22] * b[GT1402.prototype.M22]; a[GT1402.prototype.M00] = a[GT1402.prototype.M00] * b[GT1402.prototype.M00] + a[GT1402.prototype.M01] * b[GT1402.prototype.M10] + a[GT1402.prototype.M02] * b[GT1402.prototype.M20]; a[GT1402.prototype.M10] = f; a[GT1402.prototype.M20] = m; a[GT1402.prototype.M01] = d; a[GT1402.prototype.M11] = g; a[GT1402.prototype.M21] = n; a[GT1402.prototype.M02] = e; a[GT1402.prototype.M12] = k; a[GT1402.prototype.M22] = p; }; GT1402.prototype.M00 = 0; GT1402.prototype.M01 = 3; GT1402.prototype.M02 = 6; GT1402.prototype.M10 = 1; GT1402.prototype.M11 = 4; GT1402.prototype.M12 = 7; GT1402.prototype.M20 = 2; GT1402.prototype.M21 = 5; GT1402.prototype.M22 = 8; var GT1293 = Class.extend( { initialConstructor_0: function () { this.table = null; this.table = new java_util_JavaScriptVector(); }, put_2: function (a, b) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: key cannot be null."); var d = this.remove_1(a); this.table.addElement_1(new GT769(a, b)); return d; }, get_1: function (a) { for (var b = 0; b < this.table.size_0(); ++b) { var d = this.table.elementAt_1(b); if (d.getKey_0().hashCode_0() == a.hashCode_0()) return d.getValue_0(); } return null; }, get_2: function (a, b) { var d = this.get_1(a); return null != d ? d : b; }, remove_1: function (a) { for (var b = null, d = 0; d < this.table.size_0(); ++d) { var e = this.table.elementAt_1(d); if (e.getKey_0().hashCode_0() == a.hashCode_0()) { b = e.getValue_0(); this.table.removeElement_1(e); break; } } return b; }, clear_0: function () { this.table.clear_0(); }, getTable_0: function () { return this.table; }, }, "GT1293", [] ), GT769 = Class.extend( { initialConstructor_0: function () { this.value = this.key = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.value = this.key = null; this.key = a; this.value = b; }, getKey_0: function () { return this.key; }, getValue_0: function () { return this.value; }, }, "GT769", [] ), GT1541 = Class.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_2.call(this, 16, Integer.MAX_VALUE); }, initialConstructor_1: function (a) { GT1541.prototype.initialConstructor_2.call(this, a, Integer.MAX_VALUE); }, initialConstructor_2: function (a, b) { this.peak = this.max = 0; this.freeObjects = null; this.freeObjects = new GT1497(!1, a); this.max = b; }, obtain_0: function () { return 0 == this.freeObjects.size ? this.newObject_0() : this.freeObjects.pop_0(); }, free_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: object cannot be null."); this.freeObjects.size < this.max && (this.freeObjects.add_1(a), (this.peak = Math.max_2(this.peak, this.freeObjects.size))); this.reset_1(a); }, reset_1: function (a) { instanceOf(a, GT1526) && a.reset_0(); }, freeAll_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: objects cannot be null."); for (var b = this.freeObjects, d = this.max, e = 0; e < a.size; e++) { var f = a.get_1(e); null != f && (b.size < d && b.add_1(f), this.reset_1(f)); } this.peak = Math.max_2(this.peak, b.size); }, clear_0: function () { this.freeObjects.clear_0(); }, getFree_0: function () { return this.freeObjects.size; }, }, "GT1541", [] ), GT1246 = Class.extend( { initialConstructor_4: function (a, b, d, e) { this.w = this.z = this.y = this.x = 0; this.set_4(a, b, d, e); }, initialConstructor_0: function () { this.w = this.z = this.y = this.x = 0; this.idt_0(); }, initialConstructor_1: function (a) { this.w = this.z = this.y = this.x = 0; this.set_1(a); }, initialConstructor_2: function (a, b) { this.w = this.z = this.y = this.x = 0; this.set_2(a, b); }, set_4: function (a, b, d, e) { this.x = a; this.y = b; this.z = d; this.w = e; return this; }, set_1: function (a) { return this.set_4(a.x, a.y, a.z, a.w); }, set_2: function (a, b) { return this.setFromAxis_4(a.x, a.y, a.z, b); }, cpy_0: function () { return new GT1246(this); }, len_0: function () { return Math.sqrt_1(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); }, toString: function () { return "[" + this.x + "|" + this.y + "|" + this.z + "|" + this.w + "]"; }, setEulerAngles_3: function (a, b, d) { return this.setEulerAnglesRad_3(a * GT1294.prototype.degreesToRadians, b * GT1294.prototype.degreesToRadians, d * GT1294.prototype.degreesToRadians); }, setEulerAnglesRad_3: function (a, b, d) { var e = 0.5 * d; d = Math.sin_1(e); var e = Math.cos_1(e), f = 0.5 * b; b = Math.sin_1(f); var f = Math.cos_1(f), g = 0.5 * a; a = Math.sin_1(g); var k = Math.cos_1(g), g = k * b, m = a * f, f = k * f; b *= a; this.x = g * e + m * d; this.y = m * e - g * d; this.z = f * d - b * e; this.w = f * e + b * d; return this; }, getGimbalPole_0: function () { var a = this.y * this.x + this.z * this.w; return 0.499 < a ? 1 : -0.499 > a ? -1 : 0; }, getRollRad_0: function () { var a = this.getGimbalPole_0(); return 0 == a ? GT1294.prototype.atan2_2(2 * (this.w * this.z + this.y * this.x), 1 - 2 * (this.x * this.x + this.z * this.z)) : 2 * a * GT1294.prototype.atan2_2(this.y, this.w); }, getRoll_0: function () { return this.getRollRad_0() * GT1294.prototype.radiansToDegrees; }, getPitchRad_0: function () { var a = this.getGimbalPole_0(); return 0 == a ? Math.asin_1(GT1294.prototype.clamp_3(2 * (this.w * this.x - this.z * this.y), -1, 1)) : a * GT1294.prototype.PI * 0.5; }, getPitch_0: function () { return this.getPitchRad_0() * GT1294.prototype.radiansToDegrees; }, getYawRad_0: function () { return 0 == this.getGimbalPole_0() ? GT1294.prototype.atan2_2(2 * (this.y * this.w + this.x * this.z), 1 - 2 * (this.y * this.y + this.x * this.x)) : 0; }, getYaw_0: function () { return this.getYawRad_0() * GT1294.prototype.radiansToDegrees; }, len2_0: function () { return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w; }, nor_0: function () { var a = this.len2_0(); 0 == a || GT1294.prototype.isEqual_2(a, 1) || ((a = Math.sqrt_1(a)), (this.w /= a), (this.x /= a), (this.y /= a), (this.z /= a)); return this; }, conjugate_0: function () { this.x = -this.x; this.y = -this.y; this.z = -this.z; return this; }, transform_1: function (a) { GT1246.prototype.tmp2.set_1(this); GT1246.prototype.tmp2.conjugate_0(); GT1246.prototype.tmp2.mulLeft_1(GT1246.prototype.tmp1.set_4(a.x, a.y, a.z, 0)).mulLeft_1(this); a.x = GT1246.prototype.tmp2.x; a.y = GT1246.prototype.tmp2.y; a.z = GT1246.prototype.tmp2.z; return a; }, mul_1: function (a) { var b = this.w * a.y + this.y * a.w + this.z * a.x - this.x * a.z, d = this.w * a.z + this.z * a.w + this.x * a.y - this.y * a.x, e = this.w * a.w - this.x * a.x - this.y * a.y - this.z * a.z; this.x = this.w * a.x + this.x * a.w + this.y * a.z - this.z * a.y; this.y = b; this.z = d; this.w = e; return this; }, mul_4: function (a, b, d, e) { var f = this.w * b + this.y * e + this.z * a - this.x * d, g = this.w * d + this.z * e + this.x * b - this.y * a, k = this.w * e - this.x * a - this.y * b - this.z * d; this.x = this.w * a + this.x * e + this.y * d - this.z * b; this.y = f; this.z = g; this.w = k; return this; }, mulLeft_1: function (a) { var b = a.w * this.y + a.y * this.w + a.z * this.x - a.x * this.z, d = a.w * this.z + a.z * this.w + a.x * this.y - a.y * this.x, e = a.w * this.w - a.x * this.x - a.y * this.y - a.z * this.z; this.x = a.w * this.x + a.x * this.w + a.y * this.z - a.z * this.y; this.y = b; this.z = d; this.w = e; return this; }, mulLeft_4: function (a, b, d, e) { var f = e * this.y + b * this.w + d * this.x - a * this.z, g = e * this.z + d * this.w + a * this.y - b * this.x, k = e * this.w - a * this.x - b * this.y - d * this.z; this.x = e * this.x + a * this.w + b * this.z - d * this.y; this.y = f; this.z = g; this.w = k; return this; }, add_1: function (a) { this.x += a.x; this.y += a.y; this.z += a.z; this.w += a.w; return this; }, add_4: function (a, b, d, e) { this.x += a; this.y += b; this.z += d; this.w += e; return this; }, toMatrix_1: function (a) { var b = this.x * this.x, d = this.x * this.y, e = this.x * this.z, f = this.x * this.w, g = this.y * this.y, k = this.y * this.z, m = this.y * this.w, n = this.z * this.z, p = this.z * this.w; a[GT1404.prototype.M00] = 1 - 2 * (g + n); a[GT1404.prototype.M01] = 2 * (d - p); a[GT1404.prototype.M02] = 2 * (e + m); a[GT1404.prototype.M03] = 0; a[GT1404.prototype.M10] = 2 * (d + p); a[GT1404.prototype.M11] = 1 - 2 * (b + n); a[GT1404.prototype.M12] = 2 * (k - f); a[GT1404.prototype.M13] = 0; a[GT1404.prototype.M20] = 2 * (e - m); a[GT1404.prototype.M21] = 2 * (k + f); a[GT1404.prototype.M22] = 1 - 2 * (b + g); a[GT1404.prototype.M23] = 0; a[GT1404.prototype.M30] = 0; a[GT1404.prototype.M31] = 0; a[GT1404.prototype.M32] = 0; a[GT1404.prototype.M33] = 1; }, idt_0: function () { return this.set_4(0, 0, 0, 1); }, isIdentity_0: function () { return GT1294.prototype.isZero_1(this.x) && GT1294.prototype.isZero_1(this.y) && GT1294.prototype.isZero_1(this.z) && GT1294.prototype.isEqual_2(this.w, 1); }, isIdentity_1: function (a) { return GT1294.prototype.isZero_2(this.x, a) && GT1294.prototype.isZero_2(this.y, a) && GT1294.prototype.isZero_2(this.z, a) && GT1294.prototype.isEqual_3(this.w, 1, a); }, setFromAxis_2: function (a, b) { return this.setFromAxis_4(a.x, a.y, a.z, b); }, setFromAxisRad_2: function (a, b) { return this.setFromAxisRad_4(a.x, a.y, a.z, b); }, setFromAxis_4: function (a, b, d, e) { return this.setFromAxisRad_4(a, b, d, e * GT1294.prototype.degreesToRadians); }, setFromAxisRad_4: function (a, b, d, e) { var f = GT1405.prototype.len_3(a, b, d); if (0 == f) return this.idt_0(); var f = 1 / f, g = 0 > e ? GT1294.prototype.PI2 - (-e % GT1294.prototype.PI2) : e % GT1294.prototype.PI2; e = Math.sin_1(g / 2); g = Math.cos_1(g / 2); return this.set_4(f * a * e, f * b * e, f * d * e, g).nor_0(); }, setFromMatrix4_2: function (a, b) { return this.setFromAxes_10( a, b.val[GT1404.prototype.M00], b.val[GT1404.prototype.M01], b.val[GT1404.prototype.M02], b.val[GT1404.prototype.M10], b.val[GT1404.prototype.M11], b.val[GT1404.prototype.M12], b.val[GT1404.prototype.M20], b.val[GT1404.prototype.M21], b.val[GT1404.prototype.M22] ); }, setFromMatrix4_1: function (a) { return this.setFromMatrix4_2(!1, a); }, setFromMatrix3_2: function (a, b) { return this.setFromAxes_10( a, b.val[GT1402.prototype.M00], b.val[GT1402.prototype.M01], b.val[GT1402.prototype.M02], b.val[GT1402.prototype.M10], b.val[GT1402.prototype.M11], b.val[GT1402.prototype.M12], b.val[GT1402.prototype.M20], b.val[GT1402.prototype.M21], b.val[GT1402.prototype.M22] ); }, setFromMatrix3_1: function (a) { return this.setFromMatrix3_2(!1, a); }, setFromAxes_9: function (a, b, d, e, f, g, k, m, n) { return this.setFromAxes_10(!1, a, b, d, e, f, g, k, m, n); }, setFromAxes_10: function (a, b, d, e, f, g, k, m, n, p) { if (a) { a = 1 / GT1405.prototype.len_3(b, d, e); var q = 1 / GT1405.prototype.len_3(f, g, k), r = 1 / GT1405.prototype.len_3(m, n, p); b *= a; d *= a; e *= a; f *= q; g *= q; k *= q; m *= r; n *= r; p *= r; } a = b + g + p; 0 <= a ? ((b = Math.sqrt_1(a + 1)), (this.w = 0.5 * b), (b = 0.5 / b), (this.x = (n - k) * b), (this.y = (e - m) * b), (this.z = (f - d) * b)) : b > g && b > p ? ((b = Math.sqrt_1(1 + b - g - p)), (this.x = 0.5 * b), (b = 0.5 / b), (this.y = (f + d) * b), (this.z = (e + m) * b), (this.w = (n - k) * b)) : g > p ? ((b = Math.sqrt_1(1 + g - b - p)), (this.y = 0.5 * b), (b = 0.5 / b), (this.x = (f + d) * b), (this.z = (n + k) * b), (this.w = (e - m) * b)) : ((b = Math.sqrt_1(1 + p - b - g)), (this.z = 0.5 * b), (b = 0.5 / b), (this.x = (e + m) * b), (this.y = (n + k) * b), (this.w = (f - d) * b)); return this; }, setFromCross_2: function (a, b) { var d = GT1294.prototype.clamp_3(a.dot_1(b), -1, 1), d = Math.acos_1(d); return this.setFromAxisRad_4(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x, d); }, setFromCross_6: function (a, b, d, e, f, g) { var k = GT1294.prototype.clamp_3(GT1405.prototype.dot_6(a, b, d, e, f, g), -1, 1), k = Math.acos_1(k); return this.setFromAxisRad_4(b * g - d * f, d * e - a * g, a * f - b * e, k); }, slerp_2: function (a, b) { var d = this.x * a.x + this.y * a.y + this.z * a.z + this.w * a.w, e = 0 > d ? -d : d, f = 1 - b, g = b; 0.1 < 1 - e && ((e = Math.acos_1(e)), (g = 1 / Math.sin_1(e)), (f = Math.sin_1((1 - b) * e) * g), (g *= Math.sin_1(b * e))); 0 > d && (g = -g); this.x = f * this.x + g * a.x; this.y = f * this.y + g * a.y; this.z = f * this.z + g * a.z; this.w = f * this.w + g * a.w; return this; }, slerp_1: function (a) { var b = 1 / a.length; this.set_1(a[0]).exp_1(b); for (var d = 1; d < a.length; d++) this.mul_1(GT1246.prototype.tmp1.set_1(a[d]).exp_1(b)); this.nor_0(); return this; }, slerp_3: function (a, b, d) { this.set_1(a[0]).exp_1(b[0]); for (d = 1; d < a.length; d++) this.mul_1(GT1246.prototype.tmp1.set_1(a[d]).exp_1(b[d])); this.nor_0(); return this; }, exp_1: function (a) { var b = this.len_0(), d = Math.pow_2(b, a), e = Math.acos_1(this.w / b), f = 0, f = 0.001 > Math.abs_1(e) ? (d * a) / b : (d * Math.sin_1(a * e)) / (b * Math.sin_1(e)); this.w = d * Math.cos_1(a * e); this.x *= f; this.y *= f; this.z *= f; this.nor_0(); return this; }, hashCode_0: function () { var a; a = 31 + GT1672.prototype.doubleToInt_1(65536 * this.w); a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.x); a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.y); return (a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.z)); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT1246) ? GT1672.prototype.doubleToInt_1(65536 * this.w) == GT1672.prototype.doubleToInt_1(65536 * a.w) && GT1672.prototype.doubleToInt_1(65536 * this.x) == GT1672.prototype.doubleToInt_1(65536 * a.x) && GT1672.prototype.doubleToInt_1(65536 * this.y) == GT1672.prototype.doubleToInt_1(65536 * a.y) && GT1672.prototype.doubleToInt_1(65536 * this.z) == GT1672.prototype.doubleToInt_1(65536 * a.z) : !1; }, dot_1: function (a) { return this.x * a.x + this.y * a.y + this.z * a.z + this.w * a.w; }, dot_4: function (a, b, d, e) { return this.x * a + this.y * b + this.z * d + this.w * e; }, mul_2: function (a, b) { this.x *= a; this.y *= a; this.z *= a; this.w *= a; return this; }, getAxisAngle_1: function (a) { return this.getAxisAngleRad_1(a) * GT1294.prototype.radiansToDegrees; }, getAxisAngleRad_1: function (a) { 1 < this.w && this.nor_0(); var b = 2 * Math.acos_1(this.w), d = Math.sqrt_1(1 - this.w * this.w); d < GT1294.prototype.FLOAT_ROUNDING_ERROR ? ((a.x = this.x), (a.y = this.y), (a.z = this.z)) : ((a.x = this.x / d), (a.y = this.y / d), (a.z = this.z / d)); return b; }, getAngleRad_0: function () { return 2 * Math.acos_1(1 < this.w ? this.w / this.len_0() : this.w); }, getAngle_0: function () { return this.getAngleRad_0() * GT1294.prototype.radiansToDegrees; }, getSwingTwist_5: function (a, b, d, e, f) { var g = GT1405.prototype.dot_6(this.x, this.y, this.z, a, b, d); f.set_4(a * g, b * g, d * g, this.w).nor_0(); 0 > g && f.mul_2(-1, !0); e.set_1(f).conjugate_0().mulLeft_1(this); }, getSwingTwist_3: function (a, b, d) { this.getSwingTwist_5(a.x, a.y, a.z, b, d); }, getAngleAroundRad_3: function (a, b, d) { var e = GT1405.prototype.dot_6(this.x, this.y, this.z, a, b, d); a = GT1246.prototype.len2_4(a * e, b * e, d * e, this.w); return GT1294.prototype.isZero_1(a) ? 0 : 2 * Math.acos_1(GT1294.prototype.clamp_3((0 > e ? -this.w : this.w) / Math.sqrt_1(a), -1, 1)); }, getAngleAroundRad_1: function (a) { return this.getAngleAroundRad_3(a.x, a.y, a.z); }, getAngleAround_3: function (a, b, d) { return this.getAngleAroundRad_3(a, b, d) * GT1294.prototype.radiansToDegrees; }, getAngleAround_1: function (a) { return this.getAngleAround_3(a.x, a.y, a.z); }, }, "GT1246", [] ); GT1246.prototype.dot_8 = function (a, b, d, e, f, g, k, m) { return a * f + b * g + d * k + e * m; }; GT1246.prototype.len2_4 = function (a, b, d, e) { return a * a + b * b + d * d + e * e; }; GT1246.prototype.len_4 = function (a, b, d, e) { return Math.sqrt_1(a * a + b * b + d * d + e * e); }; GT1246.prototype.tmp1 = new GT1246(0, 0, 0, 0); GT1246.prototype.tmp2 = new GT1246(0, 0, 0, 0); var GT1203 = Class.extend( { initialConstructor_0: function () { this.comp = this.array = null; Class.prototype.initialConstructor_0.call(this); }, select_4: function (a, b, d, e) { this.array = a; this.comp = b; return this.recursiveSelect_3(0, e - 1, d); }, partition_3: function (a, b, d) { var e = this.array[d]; this.swap_2(b, d); for (d = a; a < b; a++) 0 > this.comp.compare_2(this.array[a], e) && (this.swap_2(d, a), d++); this.swap_2(b, d); return d; }, recursiveSelect_3: function (a, b, d) { if (a == b) return a; var e = this.medianOfThreePivot_2(a, b), e = this.partition_3(a, b, e), f = e - a + 1; return f == d ? e : d < f ? this.recursiveSelect_3(a, e - 1, d) : this.recursiveSelect_3(e + 1, b, d - f); }, medianOfThreePivot_2: function (a, b) { var d = this.array[a], e = Math.div(a + b, 2), f = this.array[e], g = this.array[b]; return 0 < this.comp.compare_2(d, f) ? (0 < this.comp.compare_2(f, g) ? e : 0 < this.comp.compare_2(d, g) ? b : a) : 0 < this.comp.compare_2(d, g) ? a : 0 < this.comp.compare_2(f, g) ? b : e; }, swap_2: function (a, b) { var d = this.array[a]; this.array[a] = this.array[b]; this.array[b] = d; }, }, "GT1203", [] ), GT1298 = Class.extend( { initialConstructor_0: function () { this.height = this.width = this.y = this.x = 0; }, initialConstructor_4: function (a, b, d, e) { this.height = this.width = this.y = this.x = 0; this.x = a; this.y = b; this.width = d; this.height = e; }, initialConstructor_1: function (a) { this.height = this.width = this.y = this.x = 0; this.x = a.x; this.y = a.y; this.width = a.width; this.height = a.height; }, set_4: function (a, b, d, e) { this.x = a; this.y = b; this.width = d; this.height = e; return this; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; return this; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; return this; }, getWidth_0: function () { return this.width; }, setWidth_1: function (a) { this.width = a; return this; }, getHeight_0: function () { return this.height; }, setHeight_1: function (a) { this.height = a; return this; }, getPosition_1: function (a) { return a.set_2(this.x, this.y); }, setPosition_1: function (a) { this.x = a.x; this.y = a.y; return this; }, setPosition_2: function (a, b) { this.x = a; this.y = b; return this; }, setSize_2: function (a, b) { this.width = a; this.height = b; return this; }, setSize_1: function (a) { this.height = this.width = a; return this; }, getSize_1: function (a) { return a.set_2(this.width, this.height); }, contains_2: function (a, b) { return this.x <= a && this.x + this.width >= a && this.y <= b && this.y + this.height >= b; }, contains_1: function (a) { return this.contains_2(a.x, a.y); }, containsRectangle_1: function (a) { var b = a.x, d = b + a.width, e = a.y; a = e + a.height; return b > this.x && b < this.x + this.width && d > this.x && d < this.x + this.width && e > this.y && e < this.y + this.height && a > this.y && a < this.y + this.height; }, overlaps_1: function (a) { return this.x < a.x + a.width && this.x + this.width > a.x && this.y < a.y + a.height && this.y + this.height > a.y; }, set_1: function (a) { this.x = a.x; this.y = a.y; this.width = a.width; this.height = a.height; return this; }, mergeRectangle_1: function (a) { var b = Math.min_2(this.x, a.x), d = Math.max_2(this.x + this.width, a.x + a.width); this.x = b; this.width = d - b; b = Math.min_2(this.y, a.y); a = Math.max_2(this.y + this.height, a.y + a.height); this.y = b; this.height = a - b; return this; }, merge_2: function (a, b) { var d = Math.min_2(this.x, a), e = Math.max_2(this.x + this.width, a); this.x = d; this.width = e - d; d = Math.min_2(this.y, b); e = Math.max_2(this.y + this.height, b); this.y = d; this.height = e - d; return this; }, mergeVector2_1: function (a) { return this.merge_2(a.x, a.y); }, merge_1: function (a) { for (var b = this.x, d = this.x + this.width, e = this.y, f = this.y + this.height, g = 0; g < a.length; ++g) var k = a[g], b = Math.min_2(b, k.x), d = Math.max_2(d, k.x), e = Math.min_2(e, k.y), f = Math.max_2(f, k.y); this.x = b; this.width = d - b; this.y = e; this.height = f - e; return this; }, getCenter_1: function (a) { a.x = this.x + this.width / 2; a.y = this.y + this.height / 2; return a; }, setCenter_2: function (a, b) { this.setPosition_2(a - this.width / 2, b - this.height / 2); return this; }, setCenter_1: function (a) { this.setPosition_2(a.x - this.width / 2, a.y - this.height / 2); return this; }, toString: function () { return "[" + this.x + "," + this.y + "," + this.width + "," + this.height + "]"; }, area_0: function () { return this.width * this.height; }, perimeter_0: function () { return 2 * (this.width + this.height); }, hashCode_0: function () { var a; a = 31 + GT1672.prototype.doubleToInt_1(65536 * this.height); a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.width); a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.x); return (a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.y)); }, equals_1: function (a) { return this == a ? !0 : null == a || GT1672.prototype.doubleToInt_1(65536 * this.height) != GT1672.prototype.doubleToInt_1(65536 * a.height) || GT1672.prototype.doubleToInt_1(65536 * this.width) != GT1672.prototype.doubleToInt_1(65536 * a.width) || GT1672.prototype.doubleToInt_1(65536 * this.x) != GT1672.prototype.doubleToInt_1(65536 * a.x) || GT1672.prototype.doubleToInt_1(65536 * this.y) != GT1672.prototype.doubleToInt_1(65536 * a.y) ? !1 : !0; }, }, "GT1298", [] ); GT1298.prototype.tmp = new GT1298(); GT1298.prototype.tmp2 = new GT1298(); var GT1455 = Class.extend( { initialConstructor_0: function () { this.quickSelect = null; Class.prototype.initialConstructor_0.call(this); }, select_4: function (a, b, d, e) { b = this.selectIndex_4(a, b, d, e); return a[b]; }, selectIndex_4: function (a, b, d, e) { 1 > e ? GT1650.prototype.assertExp_2(!1, "cannot select from empty array (size < 1)") : d > e && GT1650.prototype.assertExp_2(!1, "Kth rank is larger than size. k: " + d + ", size: " + e); 1 == d ? (a = this.fastMin_3(a, b, e)) : d == e ? (a = this.fastMax_3(a, b, e)) : (null == this.quickSelect && (this.quickSelect = new GT1203()), (a = this.quickSelect.select_4(a, b, d, e))); return a; }, fastMin_3: function (a, b, d) { for (var e = 0, f = 1; f < d; f++) 0 > b.compare_2(a[f], a[e]) && (e = f); return e; }, fastMax_3: function (a, b, d) { for (var e = 0, f = 1; f < d; f++) 0 < b.compare_2(a[f], a[e]) && (e = f); return e; }, }, "GT1455", [] ); GT1455.prototype.instance_0 = function () { null == GT1455.prototype.instnc && (GT1455.prototype.instnc = new GT1455()); return GT1455.prototype.instnc; }; GT1455.prototype.instnc = null; var GT1089 = Class.extend( { initialConstructor_0: function () { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; }, initialConstructor_1: function (a) { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: texture cannot be null."); this.texture = a; this.setRegion_4(0, 0, a.getWidth_0(), a.getHeight_0()); }, initialConstructor_3: function (a, b, d) { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; this.texture = a; this.setRegion_4(0, 0, b, d); }, initialConstructor_5: function (a, b, d, e, f) { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; this.texture = a; this.setRegion_4(b, d, e, f); }, initialConstructor_6: function (a, b, d, e, f, g) { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; this.texture = a; this.setRegion_5(b, d, e, f, !1); }, initialConstructor_2: function (a, b) { this.texture = null; this.regionHeight = this.regionWidth = this.v2 = this.u2 = this.v = this.u = 0; this.setRegion_1(a); }, setRegion_2: function (a, b) { this.texture = a; this.setRegion_4(0, 0, a.getWidth_0(), a.getHeight_0()); }, setRegion_4: function (a, b, d, e) { var f = 1 / this.texture.getWidth_0(), g = 1 / this.texture.getHeight_0(); this.setRegion_5(a * f, b * g, (a + d) * f, (b + e) * g, !1); this.regionWidth = Math.abs_1(d); this.regionHeight = Math.abs_1(e); }, setRegion_5: function (a, b, d, e, f) { var g = this.texture.getWidth_0(); f = this.texture.getHeight_0(); this.regionWidth = Integer.truncate_1(Math.round_1(Math.abs_1(d - a) * g)); this.regionHeight = Integer.truncate_1(Math.round_1(Math.abs_1(e - b) * f)); 1 == this.regionWidth && 1 == this.regionHeight && ((g = 0.25 / g), (a += g), (d -= g), (f = 0.25 / f), (b += f), (e -= f)); this.u = a; this.v = b; this.u2 = d; this.v2 = e; }, setRegion_1: function (a) { this.texture = a.texture; this.setRegion_5(a.u, a.v, a.u2, a.v2, !1); }, setRegionTextureRegion_5: function (a, b, d, e, f) { this.texture = a.texture; this.setRegion_4(a.getRegionX_0() + b, a.getRegionY_0() + d, e, f); }, getTexture_0: function () { return this.texture; }, setTexture_1: function (a) { this.texture = a; }, getU_0: function () { return this.u; }, setU_1: function (a) { this.u = a; this.regionWidth = Integer.truncate_1(Math.round_1(Math.abs_1(this.u2 - a) * this.texture.getWidth_0())); }, getV_0: function () { return this.v; }, setV_1: function (a) { this.v = a; this.regionHeight = Integer.truncate_1(Math.round_1(Math.abs_1(this.v2 - a) * this.texture.getHeight_0())); }, getU2_0: function () { return this.u2; }, setU2_1: function (a) { this.u2 = a; this.regionWidth = Integer.truncate_1(Math.round_1(Math.abs_1(a - this.u) * this.texture.getWidth_0())); }, getV2_0: function () { return this.v2; }, setV2_1: function (a) { this.v2 = a; this.regionHeight = Integer.truncate_1(Math.round_1(Math.abs_1(a - this.v) * this.texture.getHeight_0())); }, getRegionX_0: function () { return Integer.truncate_1(Math.round_1(this.u * this.texture.getWidth_0())); }, setRegionX_1: function (a) { this.setU_1(a / this.texture.getWidth_0()); }, getRegionY_0: function () { return Integer.truncate_1(Math.round_1(this.v * this.texture.getHeight_0())); }, setRegionY_1: function (a) { this.setV_1(a / this.texture.getHeight_0()); }, getRegionWidth_0: function () { return this.regionWidth; }, setRegionWidth_1: function (a) { this.isFlipX_0() ? this.setU_1(this.u2 + a / this.texture.getWidth_0()) : this.setU2_1(this.u + a / this.texture.getWidth_0()); }, getRegionHeight_0: function () { return this.regionHeight; }, setRegionHeight_1: function (a) { this.isFlipY_0() ? this.setV_1(this.v2 + a / this.texture.getHeight_0()) : this.setV2_1(this.v + a / this.texture.getHeight_0()); }, flip_2: function (a, b) { if (a) { var d = this.u; this.u = this.u2; this.u2 = d; } b && ((d = this.v), (this.v = this.v2), (this.v2 = d)); }, isFlipX_0: function () { return this.u > this.u2; }, isFlipY_0: function () { return this.v > this.v2; }, scroll_2: function (a, b) { if (0 != a) { var d = (this.u2 - this.u) * this.texture.getWidth_0(); this.u = (this.u + a) % 1; this.u2 = this.u + d / this.texture.getWidth_0(); } 0 != b && ((d = (this.v2 - this.v) * this.texture.getHeight_0()), (this.v = (this.v + b) % 1), (this.v2 = this.v + d / this.texture.getHeight_0())); }, split_2: function (a, b) { for (var d = this.getRegionX_0(), e = this.getRegionY_0(), f = this.regionWidth, g = Math.div(this.regionHeight, b), f = Math.div(f, a), k = d, m = [].createArray(g, f), n = 0; n < g; n++, e += b) for (var d = k, p = 0; p < f; p++, d += a) m[n][p] = new GT1089(this.texture, d, e, a, b); return m; }, }, "GT1089", [] ); GT1089.prototype.split_3 = function (a, b, d) { return new GT1089(a).split_2(b, d); }; var GT1370 = Class.extend( { initialConstructor_0: function () { this.y = this.x = 0; }, initialConstructor_2: function (a, b) { this.y = this.x = 0; this.x = a; this.y = b; }, initialConstructor_1: function (a) { this.y = this.x = 0; this.set_1(a); }, cpy_0: function () { return new GT1370(this); }, len_0: function () { return Math.sqrt_1(this.x * this.x + this.y * this.y); }, len2_0: function () { return this.x * this.x + this.y * this.y; }, set_1: function (a) { this.x = a.x; this.y = a.y; return this; }, set_2: function (a, b) { this.x = a; this.y = b; return this; }, sub_1: function (a) { this.x -= a.x; this.y -= a.y; return this; }, sub_2: function (a, b) { this.x -= a; this.y -= b; return this; }, nor_0: function () { var a = this.len_0(); 0 != a && ((this.x /= a), (this.y /= a)); return this; }, add_1: function (a) { this.x += a.x; this.y += a.y; return this; }, add_2: function (a, b) { this.x += a; this.y += b; return this; }, dot_1: function (a) { return this.x * a.x + this.y * a.y; }, dot_2: function (a, b) { return this.x * a + this.y * b; }, scl_1: function (a) { this.x *= a; this.y *= a; return this; }, scl_2: function (a, b) { this.x *= a; this.y *= b; return this; }, sclVector_1: function (a) { this.x *= a.x; this.y *= a.y; return this; }, mulAdd_2: function (a, b) { this.x += a.x * b; this.y += a.y * b; return this; }, mulAddVector_2: function (a, b) { this.x += a.x * b.x; this.y += a.y * b.y; return this; }, dst_1: function (a) { var b = a.x - this.x; a = a.y - this.y; return Math.sqrt_1(b * b + a * a); }, dst_2: function (a, b) { var d = a - this.x, e = b - this.y; return Math.sqrt_1(d * d + e * e); }, dst2_1: function (a) { var b = a.x - this.x; a = a.y - this.y; return b * b + a * a; }, dst2_2: function (a, b) { var d = a - this.x, e = b - this.y; return d * d + e * e; }, limit_1: function (a) { return this.limit2_1(a * a); }, limit2_1: function (a) { var b = this.len2_0(); return b > a ? this.scl_1(Math.sqrt_1(a / b)) : this; }, clamp_2: function (a, b) { var d = this.len2_0(); if (0 == d) return this; var e = b * b; if (d > e) return this.scl_1(Math.sqrt_1(e / d)); e = a * a; return d < e ? this.scl_1(Math.sqrt_1(e / d)) : this; }, setLength_1: function (a) { return this.setLength2_1(a * a); }, setLength2_1: function (a) { var b = this.len2_0(); return 0 == b || b == a ? this : this.scl_1(Math.sqrt_1(a / b)); }, toString: function () { return "(" + this.x + "," + this.y + ")"; }, mul_1: function (a) { var b = this.x * a.val[1] + this.y * a.val[4] + a.val[7]; this.x = this.x * a.val[0] + this.y * a.val[3] + a.val[6]; this.y = b; return this; }, crs_1: function (a) { return this.x * a.y - this.y * a.x; }, crs_2: function (a, b) { return this.x * b - this.y * a; }, angle_0: function () { var a = Math.atan2_2(this.y, this.x) * GT1294.prototype.radiansToDegrees; 0 > a && (a += 360); return a; }, angle_1: function (a) { return Math.atan2_2(this.crs_1(a), this.dot_1(a)) * GT1294.prototype.radiansToDegrees; }, angleRad_0: function () { return Math.atan2_2(this.y, this.x); }, angleRad_1: function (a) { return Math.atan2_2(this.crs_1(a), this.dot_1(a)); }, setAngle_1: function (a) { return this.setAngleRad_1(a * GT1294.prototype.degreesToRadians); }, setAngleRad_1: function (a) { this.set_2(this.len_0(), 0); this.rotateRad_1(a); return this; }, rotate_1: function (a) { return this.rotateRad_1(a * GT1294.prototype.degreesToRadians); }, rotateRad_1: function (a) { var b = Math.cos_1(a); a = Math.sin_1(a); var d = this.x * a + this.y * b; this.x = this.x * b - this.y * a; this.y = d; return this; }, rotate90_1: function (a) { var b = this.x; 0 <= a ? ((this.x = -this.y), (this.y = b)) : ((this.x = this.y), (this.y = -b)); return this; }, lerp_2: function (a, b) { var d = 1 - b; this.x = this.x * d + a.x * b; this.y = this.y * d + a.y * b; return this; }, interpolate_3: function (a, b, d) { return this.lerp_2(a, d.apply_1(b)); }, setToRandomDirection_0: function () { var a = GT1294.prototype.randomDouble_2(0, GT1294.prototype.PI2); return this.set_2(GT1294.prototype.cos_1(a), GT1294.prototype.sin_1(a)); }, hashCode_0: function () { var a; a = 31 + GT1672.prototype.doubleToInt_1(65536 * this.x); return (a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.y)); }, equals_1: function (a) { return this == a ? !0 : null == a || GT1672.prototype.doubleToInt_1(65536 * this.x) != GT1672.prototype.doubleToInt_1(65536 * a.x) || GT1672.prototype.doubleToInt_1(65536 * this.y) != GT1672.prototype.doubleToInt_1(65536 * a.y) ? !1 : !0; }, epsilonEquals_2: function (a, b) { return null == a || Math.abs_1(a.x - this.x) > b || Math.abs_1(a.y - this.y) > b ? !1 : !0; }, epsilonEquals_3: function (a, b, d) { return Math.abs_1(a - this.x) > d || Math.abs_1(b - this.y) > d ? !1 : !0; }, epsilonEqualsVector2_1: function (a) { return this.epsilonEquals_2(a, GT1294.prototype.FLOAT_ROUNDING_ERROR); }, epsilonEqualsDoubles_2: function (a, b) { return this.epsilonEquals_3(a, b, GT1294.prototype.FLOAT_ROUNDING_ERROR); }, isUnit_0: function () { return this.isUnit_1(1e-9); }, isUnit_1: function (a) { return Math.abs_1(this.len2_0() - 1) < a; }, isZero_0: function () { return 0 == this.x && 0 == this.y; }, isZero_1: function (a) { return this.len2_0() < a; }, isOnLine_1: function (a) { return GT1294.prototype.isZero_1(this.x * a.y - this.y * a.x); }, isOnLine_2: function (a, b) { return GT1294.prototype.isZero_2(this.x * a.y - this.y * a.x, b); }, isCollinear_2: function (a, b) { return this.isOnLine_2(a, b) && 0 < this.dot_1(a); }, isCollinear_1: function (a) { return this.isOnLine_1(a) && 0 < this.dot_1(a); }, isCollinearOpposite_2: function (a, b) { return this.isOnLine_2(a, b) && 0 > this.dot_1(a); }, isCollinearOpposite_1: function (a) { return this.isOnLine_1(a) && 0 > this.dot_1(a); }, isPerpendicular_1: function (a) { return GT1294.prototype.isZero_1(this.dot_1(a)); }, isPerpendicular_2: function (a, b) { return GT1294.prototype.isZero_2(this.dot_1(a), b); }, hasSameDirection_1: function (a) { return 0 < this.dot_1(a); }, hasOppositeDirection_1: function (a) { return 0 > this.dot_1(a); }, setZero_0: function () { this.y = this.x = 0; return this; }, }, "GT1370", [GT1374] ); GT1370.prototype.dst2_4 = function (a, b, d, e) { a = d - a; b = e - b; return a * a + b * b; }; GT1370.prototype.dst_4 = function (a, b, d, e) { a = d - a; b = e - b; return Math.sqrt_1(a * a + b * b); }; GT1370.prototype.dot_4 = function (a, b, d, e) { return a * d + b * e; }; GT1370.prototype.len2_2 = function (a, b) { return a * a + b * b; }; GT1370.prototype.len_2 = function (a, b) { return Math.sqrt_1(a * a + b * b); }; GT1370.prototype.X = new GT1370(1, 0); GT1370.prototype.Y = new GT1370(0, 1); GT1370.prototype.Zero = new GT1370(0, 0); var GT1405 = Class.extend( { initialConstructor_0: function () { this.z = this.y = this.x = 0; }, initialConstructor_3: function (a, b, d) { this.z = this.y = this.x = 0; this.set_3(a, b, d); }, initialConstructor_1: function (a) { this.z = this.y = this.x = 0; this.set_1(a); }, initialConstructor_2: function (a, b) { this.z = this.y = this.x = 0; this.set_3(a.x, a.y, b); }, set_3: function (a, b, d) { this.x = a; this.y = b; this.z = d; return this; }, set_1: function (a) { return this.set_3(a.x, a.y, a.z); }, set_2: function (a, b) { return this.set_3(a.x, a.y, b); }, setFromSpherical_2: function (a, b) { var d = GT1294.prototype.cos_1(b), e = GT1294.prototype.sin_1(b), f = GT1294.prototype.cos_1(a), g = GT1294.prototype.sin_1(a); return this.set_3(f * e, g * e, d); }, setToRandomDirection_0: function () { var a = GT1294.prototype.random_0(), b = GT1294.prototype.random_0(), a = GT1294.prototype.PI2 * a, b = Math.acos_1(2 * b - 1); return this.setFromSpherical_2(a, b); }, cpy_0: function () { return new GT1405(this); }, add_1: function (a) { return this.add_3(a.x, a.y, a.z); }, add_3: function (a, b, d) { return this.set_3(this.x + a, this.y + b, this.z + d); }, addDouble_1: function (a) { return this.set_3(this.x + a, this.y + a, this.z + a); }, sub_1: function (a) { return this.sub_3(a.x, a.y, a.z); }, sub_3: function (a, b, d) { return this.set_3(this.x - a, this.y - b, this.z - d); }, scl_1: function (a) { return this.set_3(this.x * a, this.y * a, this.z * a); }, sclVector_1: function (a) { return this.set_3(this.x * a.x, this.y * a.y, this.z * a.z); }, scl_3: function (a, b, d) { return this.set_3(this.x * a, this.y * b, this.z * d); }, mulAdd_2: function (a, b) { this.x += a.x * b; this.y += a.y * b; this.z += a.z * b; return this; }, mulAddVector_2: function (a, b) { this.x += a.x * b.x; this.y += a.y * b.y; this.z += a.z * b.z; return this; }, len_0: function () { return Math.sqrt_1(this.x * this.x + this.y * this.y + this.z * this.z); }, len2_0: function () { return this.x * this.x + this.y * this.y + this.z * this.z; }, idt_1: function (a) { return this.x == a.x && this.y == a.y && this.z == a.z; }, dst_1: function (a) { var b = a.x - this.x, d = a.y - this.y; a = a.z - this.z; return Math.sqrt_1(b * b + d * d + a * a); }, dst_3: function (a, b, d) { a -= this.x; b -= this.y; d -= this.z; return Math.sqrt_1(a * a + b * b + d * d); }, dst2_1: function (a) { var b = a.x - this.x, d = a.y - this.y; a = a.z - this.z; return b * b + d * d + a * a; }, dst2_3: function (a, b, d) { a -= this.x; b -= this.y; d -= this.z; return a * a + b * b + d * d; }, nor_0: function () { var a = this.len2_0(); return 0 == a || 1 == a ? this : this.scl_1(1 / Math.sqrt_1(a)); }, dot_1: function (a) { return this.x * a.x + this.y * a.y + this.z * a.z; }, dot_3: function (a, b, d) { return this.x * a + this.y * b + this.z * d; }, crs_1: function (a) { return this.set_3(this.y * a.z - this.z * a.y, this.z * a.x - this.x * a.z, this.x * a.y - this.y * a.x); }, crs_3: function (a, b, d) { return this.set_3(this.y * d - this.z * b, this.z * a - this.x * d, this.x * b - this.y * a); }, mul4x3_1: function (a) { return this.set_3(this.x * a[0] + this.y * a[3] + this.z * a[6] + a[9], this.x * a[1] + this.y * a[4] + this.z * a[7] + a[10], this.x * a[2] + this.y * a[5] + this.z * a[8] + a[11]); }, mul_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M01] + this.z * a[GT1404.prototype.M02] + a[GT1404.prototype.M03], this.x * a[GT1404.prototype.M10] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M12] + a[GT1404.prototype.M13], this.x * a[GT1404.prototype.M20] + this.y * a[GT1404.prototype.M21] + this.z * a[GT1404.prototype.M22] + a[GT1404.prototype.M23] ); }, traMulMatrix4_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M10] + this.z * a[GT1404.prototype.M20] + a[GT1404.prototype.M30], this.x * a[GT1404.prototype.M01] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M21] + a[GT1404.prototype.M31], this.x * a[GT1404.prototype.M02] + this.y * a[GT1404.prototype.M12] + this.z * a[GT1404.prototype.M22] + a[GT1404.prototype.M32] ); }, mulMatrix3_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1402.prototype.M00] + this.y * a[GT1402.prototype.M01] + this.z * a[GT1402.prototype.M02], this.x * a[GT1402.prototype.M10] + this.y * a[GT1402.prototype.M11] + this.z * a[GT1402.prototype.M12], this.x * a[GT1402.prototype.M20] + this.y * a[GT1402.prototype.M21] + this.z * a[GT1402.prototype.M22] ); }, traMulMatrix3_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1402.prototype.M00] + this.y * a[GT1402.prototype.M10] + this.z * a[GT1402.prototype.M20], this.x * a[GT1402.prototype.M01] + this.y * a[GT1402.prototype.M11] + this.z * a[GT1402.prototype.M21], this.x * a[GT1402.prototype.M02] + this.y * a[GT1402.prototype.M12] + this.z * a[GT1402.prototype.M22] ); }, mulQuaternion_1: function (a) { return a.transform_1(this); }, prj_1: function (a) { a = a.val; var b = 1 / (this.x * a[GT1404.prototype.M30] + this.y * a[GT1404.prototype.M31] + this.z * a[GT1404.prototype.M32] + a[GT1404.prototype.M33]); return this.set_3( (this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M01] + this.z * a[GT1404.prototype.M02] + a[GT1404.prototype.M03]) * b, (this.x * a[GT1404.prototype.M10] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M12] + a[GT1404.prototype.M13]) * b, (this.x * a[GT1404.prototype.M20] + this.y * a[GT1404.prototype.M21] + this.z * a[GT1404.prototype.M22] + a[GT1404.prototype.M23]) * b ); }, rot_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M01] + this.z * a[GT1404.prototype.M02], this.x * a[GT1404.prototype.M10] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M12], this.x * a[GT1404.prototype.M20] + this.y * a[GT1404.prototype.M21] + this.z * a[GT1404.prototype.M22] ); }, unrotate_1: function (a) { a = a.val; return this.set_3( this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M10] + this.z * a[GT1404.prototype.M20], this.x * a[GT1404.prototype.M01] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M21], this.x * a[GT1404.prototype.M02] + this.y * a[GT1404.prototype.M12] + this.z * a[GT1404.prototype.M22] ); }, untransform_1: function (a) { a = a.val; this.x -= a[GT1404.prototype.M03]; this.y -= a[GT1404.prototype.M03]; this.z -= a[GT1404.prototype.M03]; return this.set_3( this.x * a[GT1404.prototype.M00] + this.y * a[GT1404.prototype.M10] + this.z * a[GT1404.prototype.M20], this.x * a[GT1404.prototype.M01] + this.y * a[GT1404.prototype.M11] + this.z * a[GT1404.prototype.M21], this.x * a[GT1404.prototype.M02] + this.y * a[GT1404.prototype.M12] + this.z * a[GT1404.prototype.M22] ); }, rotate_4: function (a, b, d, e) { return this.mul_1(GT1347.prototype.tmpMat.setToRotation_4(b, d, e, a)); }, rotateRad_4: function (a, b, d, e) { return this.mul_1(GT1347.prototype.tmpMat.setToRotationRad_4(b, d, e, a)); }, rotate_2: function (a, b) { GT1347.prototype.tmpMat.setToRotation_2(a, b); return this.mul_1(GT1347.prototype.tmpMat); }, rotateRad_2: function (a, b) { GT1347.prototype.tmpMat.setToRotationRad_2(a, b); return this.mul_1(GT1347.prototype.tmpMat); }, isUnit_0: function () { return this.isUnit_1(1e-9); }, isUnit_1: function (a) { return Math.abs_1(this.len2_0() - 1) < a; }, isZero_0: function () { return 0 == this.x && 0 == this.y && 0 == this.z; }, isZero_1: function (a) { return this.len2_0() < a; }, isOnLine_2: function (a, b) { return this.len2_3(this.y * a.z - this.z * a.y, this.z * a.x - this.x * a.z, this.x * a.y - this.y * a.x) <= b; }, isOnLine_1: function (a) { return this.len2_3(this.y * a.z - this.z * a.y, this.z * a.x - this.x * a.z, this.x * a.y - this.y * a.x) <= GT1294.prototype.FLOAT_ROUNDING_ERROR; }, isCollinear_2: function (a, b) { return this.isOnLine_2(a, b) && this.hasSameDirection_1(a); }, isCollinear_1: function (a) { return this.isOnLine_1(a) && this.hasSameDirection_1(a); }, isCollinearOpposite_2: function (a, b) { return this.isOnLine_2(a, b) && this.hasOppositeDirection_1(a); }, isCollinearOpposite_1: function (a) { return this.isOnLine_1(a) && this.hasOppositeDirection_1(a); }, isPerpendicular_1: function (a) { return GT1294.prototype.isZero_1(this.dot_1(a)); }, isPerpendicular_2: function (a, b) { return GT1294.prototype.isZero_2(this.dot_1(a), b); }, hasSameDirection_1: function (a) { return 0 < this.dot_1(a); }, hasOppositeDirection_1: function (a) { return 0 > this.dot_1(a); }, lerp_2: function (a, b) { this.x += b * (a.x - this.x); this.y += b * (a.y - this.y); this.z += b * (a.z - this.z); return this; }, interpolate_3: function (a, b, d) { return this.lerp_2(a, d.apply_3(0, 1, b)); }, slerp_2: function (a, b) { var d = this.dot_1(a); if (0.9995 < d || -0.9995 > d) return this.lerp_2(a, b); var e = Math.acos_1(d) * b, f = Math.sin_1(e), g = a.x - this.x * d, k = a.y - this.y * d, d = a.z - this.z * d, m = g * g + k * k + d * d, f = f * (1e-4 > m ? 1 : 1 / Math.sqrt_1(m)); return this.scl_1(Math.cos_1(e)) .add_3(g * f, k * f, d * f) .nor_0(); }, toString: function () { return "(" + this.x + "," + this.y + "," + this.z + ")"; }, limit_1: function (a) { return this.limit2_1(a * a); }, limit2_1: function (a) { var b = this.len2_0(); b > a && this.scl_1(Math.sqrt_1(a / b)); return this; }, setLength_1: function (a) { return this.setLength2_1(a * a); }, setLength2_1: function (a) { var b = this.len2_0(); return 0 == b || b == a ? this : this.scl_1(Math.sqrt_1(a / b)); }, clamp_2: function (a, b) { var d = this.len2_0(); if (0 == d) return this; var e = b * b; if (d > e) return this.scl_1(Math.sqrt_1(e / d)); e = a * a; return d < e ? this.scl_1(Math.sqrt_1(e / d)) : this; }, hashCode_0: function () { var a; a = 31 + GT1672.prototype.doubleToInt_1(65536 * this.x); a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.y); return (a = 31 * a + GT1672.prototype.doubleToInt_1(65536 * this.z)); }, equals_1: function (a) { return this == a ? !0 : null == a || GT1672.prototype.doubleToInt_1(65536 * this.x) != GT1672.prototype.doubleToInt_1(65536 * a.x) || GT1672.prototype.doubleToInt_1(65536 * this.y) != GT1672.prototype.doubleToInt_1(65536 * a.y) || GT1672.prototype.doubleToInt_1(65536 * this.z) != GT1672.prototype.doubleToInt_1(65536 * a.z) ? !1 : !0; }, epsilonEquals_2: function (a, b) { return null == a || Math.abs_1(a.x - this.x) > b || Math.abs_1(a.y - this.y) > b || Math.abs_1(a.z - this.z) > b ? !1 : !0; }, epsilonEquals_4: function (a, b, d, e) { return Math.abs_1(a - this.x) > e || Math.abs_1(b - this.y) > e || Math.abs_1(d - this.z) > e ? !1 : !0; }, epsilonEqualsVector3_1: function (a) { return this.epsilonEquals_2(a, GT1294.prototype.FLOAT_ROUNDING_ERROR); }, epsilonEquals_3: function (a, b, d) { return this.epsilonEquals_4(a, b, d, GT1294.prototype.FLOAT_ROUNDING_ERROR); }, setZero_0: function () { this.z = this.y = this.x = 0; return this; }, }, "GT1405", [GT1374] ); GT1405.prototype.dot_6 = function (a, b, d, e, f, g) { return a * e + b * f + d * g; }; GT1405.prototype.dst2_6 = function (a, b, d, e, f, g) { a = e - a; b = f - b; d = g - d; return a * a + b * b + d * d; }; GT1405.prototype.dst_6 = function (a, b, d, e, f, g) { a = e - a; b = f - b; d = g - d; return Math.sqrt_1(a * a + b * b + d * d); }; GT1405.prototype.len2_3 = function (a, b, d) { return a * a + b * b + d * d; }; GT1405.prototype.len_3 = function (a, b, d) { return Math.sqrt_1(a * a + b * b + d * d); }; GT1405.prototype.X = new GT1405(1, 0, 0); GT1405.prototype.Y = new GT1405(0, 1, 0); GT1405.prototype.Z = new GT1405(0, 0, 1); GT1405.prototype.Zero = new GT1405(0, 0, 0); var GT1348 = Class.extend( { initialConstructor_0: function () { this.target = this.bones = this.data = null; this.bendDirection = this.mix = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.target = this.bones = this.data = null; this.bendDirection = this.mix = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a; this.mix = a.mix; this.bendDirection = a.bendDirection; this.bones = new GT1497(a.bones.size); for (var d = 0; d < a.bones.size; ++d) { var e = a.bones.get_1(d); this.bones.add_1(b.findBone_1(e.name)); } this.target = b.findBone_1(a.target.name); }, initialConstructor_3: function (a, b, d) { this.target = this.bones = this.data = null; this.bendDirection = this.mix = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraint cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a.data; this.bones = new GT1497(a.bones.size); for (d = 0; d < a.bones.size; ++d) { var e = a.bones.get_1(d); this.bones.add_1(b.bones.get_1(e.data.index)); } this.target = b.bones.get_1(a.target.data.index); this.mix = a.mix; this.bendDirection = a.bendDirection; }, apply_0: function () { this.update_0(); }, update_0: function () { var a = this.target, b = this.bones; switch (b.size) { case 1: this.apply_4(b.first_0(), a.worldX, a.worldY, this.mix); break; case 2: this.apply_6(b.first_0(), b.get_1(1), a.worldX, a.worldY, this.bendDirection, this.mix); } }, getOrder_0: function () { return this.data.order; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { this.target = a; }, getMix_0: function () { return this.mix; }, setMix_1: function (a) { this.mix = a; }, getBendDirection_0: function () { return this.bendDirection; }, setBendDirection_1: function (a) { this.bendDirection = a; }, getData_0: function () { return this.data; }, toString: function () { return this.data.name; }, }, "GT1348", [GT1430] ); GT1348.prototype.apply_6 = function (a, b, d, e, f, g) { if (0 == g) b.updateWorldTransform_0(); else { a.appliedValid || a.updateAppliedTransform_0(); b.appliedValid || b.updateAppliedTransform_0(); var k = a.ax, m = a.ay, n = a.ascaleX, p = a.ascaleY, q = b.ascaleX, r, t, u; 0 > n ? ((n = -n), (r = 180), (u = -1)) : ((r = 0), (u = 1)); 0 > p && ((p = -p), (u = -u)); 0 > q ? ((q = -q), (t = 180)) : (t = 0); var B = b.ax, A, C, E, F = a.a, D = a.b, H = a.c, I = a.d, L = 1e-4 >= Math.abs_1(n - p); L ? ((A = b.ay), (C = F * B + D * A + a.worldX), (E = H * B + I * A + a.worldY)) : ((A = 0), (C = F * B + a.worldX), (E = H * B + a.worldY)); var J = a.parent, F = J.a, D = J.b, H = J.c, I = J.d, M = 1 / (F * I - D * H); d -= J.worldX; e -= J.worldY; var N = (d * I - e * D) * M - k, P = (e * F - d * H) * M - m; d = C - J.worldX; e = E - J.worldY; D = (d * I - e * D) * M - k; F = (e * F - d * H) * M - m; d = Math.sqrt_1(D * D + F * F); D = b.data.boneLength * q; e = C = 0; E = !1; if (L) (D *= n), (F = (N * N + P * P - d * d - D * D) / (2 * d * D)), -1 > F ? (F = -1) : 1 < F && (F = 1), (e = Math.acos_1(F) * f), (F = d + D * F), (D *= GT1142.prototype.sin_1(e)), (C = GT1142.prototype.atan2_2(P * F - N * D, N * F + P * D)); else if ( ((F = n * D), (D *= p), (q = F * F), (M = D * D), (L = N * N + P * P), (N = GT1142.prototype.atan2_2(P, N)), (H = M * d * d + q * L - q * M), (P = -2 * M * d), (J = M - q), (I = P * P - 4 * J * H), 0 <= I && ((I = Math.sqrt_1(I)), 0 > P && (I = -I), (I = -(P + I) / 2), (P = I / J), (H /= I), (H = Math.abs_1(P) < Math.abs_1(H) ? P : H), H * H <= L && ((e = Math.sqrt_1(L - H * H) * f), (C = N - GT1142.prototype.atan2_2(e, H)), (e = GT1142.prototype.atan2_2(e / p, (H - d) / n)), (E = !0))), !E) ) { n = GT1142.prototype.PI; C = d - F; var P = C * C, p = (E = 0), J = d + F, O = J * J, K = 0, H = (-F * d) / (q - M); -1 <= H && 1 >= H && ((H = Math.acos_1(H)), (d = F * GT1142.prototype.cos_1(H) + d), (e = D * GT1142.prototype.sin_1(H)), (I = d * d + e * e), I < P && ((n = H), (P = I), (C = d), (E = e)), I > O && ((p = H), (O = I), (J = d), (K = e))); L <= (P + O) / 2 ? ((C = N - GT1142.prototype.atan2_2(E * f, C)), (e = n * f)) : ((C = N - GT1142.prototype.atan2_2(K * f, J)), (e = p * f)); } f = GT1142.prototype.atan2_2(A, B) * u; F = a.arotation; C = (C - f) * GT1142.prototype.radDeg + r - F; 180 < C ? (C -= 360) : -180 > C && (C += 360); a.updateWorldTransform_7(k, m, F + C * g, a.ascaleX, a.ascaleY, 0, 0); F = b.arotation; e = ((e + f) * GT1142.prototype.radDeg - b.ashearX) * u + t - F; 180 < e ? (e -= 360) : -180 > e && (e += 360); b.updateWorldTransform_7(B, A, F + e * g, b.ascaleX, b.ascaleY, b.ashearX, b.ashearY); } }; GT1348.prototype.apply_4 = function (a, b, d, e) { a.appliedValid || a.updateAppliedTransform_0(); var f = a.parent, g = 1 / (f.a * f.d - f.b * f.c); b -= f.worldX; d -= f.worldY; f = GT1142.prototype.atan2_2((d * f.a - b * f.c) * g - a.ay, (b * f.d - d * f.b) * g - a.ax) * GT1142.prototype.radDeg - a.ashearX - a.arotation; 0 > a.ascaleX && (f += 180); 180 < f ? (f -= 360) : -180 > f && (f += 360); a.updateWorldTransform_7(a.ax, a.ay, a.arotation + f * e, a.ascaleX, a.ascaleY, a.ashearX, a.ashearY); }; var GT1144 = Class.extend( { initialConstructor_0: function () { this.name = null; this.order = 0; this.target = this.bones = null; this.mix = this.bendDirection = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.order = 0; this.target = this.bones = null; this.mix = this.bendDirection = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.name = a; this.bones = new GT1497(); this.mix = this.bendDirection = 1; }, getName_0: function () { return this.name; }, getOrder_0: function () { return this.order; }, setOrder_1: function (a) { this.order = a; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: target cannot be null."); this.target = a; }, getBendDirection_0: function () { return this.bendDirection; }, setBendDirection_1: function (a) { this.bendDirection = a; }, getMix_0: function () { return this.mix; }, setMix_1: function (a) { this.mix = a; }, toString: function () { return this.name; }, }, "GT1144", [] ), GT936 = GT1296.extend( { initialConstructor_0: function () { this.ikConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.ikConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT936.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.ikConstraint << 24) + this.ikConstraintIndex; }, setIkConstraintIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.ikConstraintIndex = a; }, getIkConstraintIndex_0: function () { return this.ikConstraintIndex; }, getFrames_0: function () { return this.frames; }, setFrame_4: function (a, b, d, e) { a *= GT936.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT936.prototype.MIX] = d; this.frames[a + GT936.prototype.BEND_DIRECTION] = e; }, apply_7: function (a, b, d, e, f, g, k) { a = a.ikConstraints.get_1(this.ikConstraintIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.mix = a.data.mix; a.bendDirection = a.data.bendDirection; break; case GT1565.prototype.current: (a.mix += (a.data.mix - a.mix) * f), (a.bendDirection = a.data.bendDirection); } else if (d >= b[b.length - GT936.prototype.ENTRIES]) g == GT1565.prototype.setup ? ((a.mix = a.data.mix + (b[b.length + GT936.prototype.PREV_MIX] - a.data.mix) * f), (a.bendDirection = k == GT1345.prototype.out ? a.data.bendDirection : Integer.truncate_1(b[b.length + GT936.prototype.PREV_BEND_DIRECTION]))) : ((a.mix += (b[b.length + GT936.prototype.PREV_MIX] - a.mix) * f), k == GT1345.prototype.inxxx && (a.bendDirection = Integer.truncate_1(b[b.length + GT936.prototype.PREV_BEND_DIRECTION]))); else { e = GT1496.prototype.binarySearch_3(b, d, GT936.prototype.ENTRIES); var m = b[e + GT936.prototype.PREV_MIX], n = b[e]; d = this.getCurvePercent_2(Math.div(e, GT936.prototype.ENTRIES) - 1, 1 - (d - n) / (b[e + GT936.prototype.PREV_TIME] - n)); g == GT1565.prototype.setup ? ((a.mix = a.data.mix + (m + (b[e + GT936.prototype.MIX] - m) * d - a.data.mix) * f), (a.bendDirection = k == GT1345.prototype.out ? a.data.bendDirection : Integer.truncate_1(b[e + GT936.prototype.PREV_BEND_DIRECTION]))) : ((a.mix += (m + (b[e + GT936.prototype.MIX] - m) * d - a.mix) * f), k == GT1345.prototype.inxxx && (a.bendDirection = Integer.truncate_1(b[e + GT936.prototype.PREV_BEND_DIRECTION]))); } }, }, "GT936", [] ); GT936.prototype.ENTRIES = 3; GT936.prototype.PREV_TIME = -3; GT936.prototype.PREV_MIX = -2; GT936.prototype.PREV_BEND_DIRECTION = -1; GT936.prototype.MIX = 1; GT936.prototype.BEND_DIRECTION = 2; var GT1345 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1345", [] ); GT1345.prototype.inxxx = 0; GT1345.prototype.out = 1; var GT1565 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1565", [] ); GT1565.prototype.setup = 0; GT1565.prototype.current = 1; GT1565.prototype.currentLayered = 2; var GT1247 = Class.extend( { initialConstructor_0: function () { this.target = this.bones = this.data = null; this.translateMix = this.rotateMix = this.spacing = this.position = 0; this.segments = this.lengths = this.curves = this.world = this.positions = this.spaces = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.target = this.bones = this.data = null; this.translateMix = this.rotateMix = this.spacing = this.position = 0; this.segments = this.lengths = this.curves = this.world = this.positions = this.spaces = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.spaces = new GT1176(); this.positions = new GT1176(); this.world = new GT1176(); this.curves = new GT1176(); this.lengths = new GT1176(); this.segments = [].createArray(10).init(0); this.data = a; this.bones = new GT1497(a.bones.size); for (var d = 0; d < a.bones.size; ++d) { var e = a.bones.get_1(d); this.bones.add_1(b.findBone_1(e.name)); } this.target = b.findSlot_1(a.target.name); this.position = a.position; this.spacing = a.spacing; this.rotateMix = a.rotateMix; this.translateMix = a.translateMix; }, initialConstructor_3: function (a, b, d) { this.target = this.bones = this.data = null; this.translateMix = this.rotateMix = this.spacing = this.position = 0; this.segments = this.lengths = this.curves = this.world = this.positions = this.spaces = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraint cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.spaces = new GT1176(); this.positions = new GT1176(); this.world = new GT1176(); this.curves = new GT1176(); this.lengths = new GT1176(); this.segments = [].createArray(10).init(0); this.data = a.data; this.bones = new GT1497(a.bones.size); for (d = 0; d < a.bones.size; ++d) { var e = a.bones.get_1(d); this.bones.add_1(b.bones.get_1(e.data.index)); } this.target = b.slots.get_1(a.target.data.index); this.position = a.position; this.spacing = a.spacing; this.rotateMix = a.rotateMix; this.translateMix = a.translateMix; }, apply_0: function () { this.update_0(); }, update_0: function () { var a = this.target.attachment; if (instanceOf(a, GT609)) { var b = this.rotateMix, d = this.translateMix, e = 0 < b; if (0 < d || e) { var f = this.data, g = f.spacingMode, k = GT1406.prototype.TYPE_LENGTH.equals_1(g), m = f.rotateMode, n = GT1456.prototype.TYPE_TANGENT.equals_1(m), p = GT1456.prototype.TYPE_CHAINSCALE.equals_1(m), q = this.bones.size, r = n ? q : q + 1, t = this.bones.items, u = this.spaces.setSize_1(r), B = null, A = this.spacing; if (p || k) { p && (B = this.lengths.setSize_1(q)); for (var C = 0, E = r - 1; C < E; ) { var F = t[C], D = F.data.boneLength; if (D < GT1247.prototype.epsilon) p && (B[C] = 0), (u[++C] = 0); else { var H = D * F.a, I = D * F.c, L = Math.sqrt_1(H * H + I * I); p && (B[C] = L); u[++C] = ((k ? D + A : A) * L) / D; } } } else for (C = 1; C < r; C++) u[C] = A; a = this.computeWorldPositions_5(a, r, n, GT1349.prototype.TYPE_PERCENT.equals_1(f.positionMode), GT1406.prototype.TYPE_PERCENT.equals_1(g)); L = a[0]; g = a[1]; f = f.offsetRotation; 0 == f ? (m = GT1456.prototype.TYPE_CHAIN.equals_1(m)) : ((m = !1), (k = this.target.bone), (f *= 0 < k.a * k.d - k.b * k.c ? GT1142.prototype.degRad : -GT1142.prototype.degRad)); C = 0; for (k = 3; C < q; C++, k += 3) { F = t[C]; F.worldX += (L - F.worldX) * d; F.worldY += (g - F.worldY) * d; H = a[k]; I = a[k + 1]; r = H - L; A = I - g; p && ((L = B[C]), L >= GT1247.prototype.epsilon && ((L = (Math.sqrt_1(r * r + A * A) / L - 1) * b + 1), (F.a *= L), (F.c *= L))); L = H; g = I; if (e) { var H = F.a, I = F.b, E = F.c, D = F.d, J, M, N; J = n ? a[k - 1] : u[C + 1] < GT1247.prototype.epsilon ? a[k + 2] : Math.atan2_2(A, r); J -= Math.atan2_2(E, H); if (m) { M = Math.cos_1(J); N = Math.sin_1(J); var P = F.data.boneLength, L = L + (P * (M * H - N * E) - r) * b, g = g + (P * (N * H + M * E) - A) * b; } else J += f; J > GT1142.prototype.PI ? (J -= GT1142.prototype.PI2) : J < -GT1142.prototype.PI && (J += GT1142.prototype.PI2); J *= b; M = Math.cos_1(J); N = Math.sin_1(J); F.a = M * H - N * E; F.b = M * I - N * D; F.c = N * H + M * E; F.d = N * I + M * D; } F.appliedValid = !1; } } } }, computeWorldPositions_5: function (a, b, d, e, f) { var g = this.target, k = this.position, m = this.spaces.items, n = this.positions.setSize_1(3 * b + 2), p, q = a.getClosed_0(), r = a.getWorldVerticesLength_0(), t = Math.div(r, 6), u = GT1247.prototype.NONE; if (!a.getConstantSpeed_0()) { var B = a.getLengths_0(), t = t - (q ? 1 : 2), A = B[t]; e && (k *= A); if (f) for (var C = 0; C < b; C++) m[C] *= A; p = this.world.setSize_1(8); for (f = e = C = 0; C < b; C++, e += 3) { var E = m[C], F = (k += E); if (q) (F %= A), 0 > F && (F += A), (f = 0); else if (0 > F) { u != GT1247.prototype.BEFORE && ((u = GT1247.prototype.BEFORE), a.computeWorldVertices_6(g, 2, 4, p, 0, 2)); this.addBeforePosition_5(F, p, 0, n, e); continue; } else if (F > A) { u != GT1247.prototype.AFTER && ((u = GT1247.prototype.AFTER), a.computeWorldVertices_6(g, r - 6, 4, p, 0, 2)); this.addAfterPosition_5(F - A, p, 0, n, e); continue; } for (; ; f++) { var D = B[f]; if (!(F > D)) { if (0 == f) F /= D; else var H = B[f - 1], F = (F - H) / (D - H); break; } } f != u && ((u = f), q && f == t ? (a.computeWorldVertices_6(g, r - 4, 4, p, 0, 2), a.computeWorldVertices_6(g, 0, 4, p, 4, 2)) : a.computeWorldVertices_6(g, 6 * f + 2, 8, p, 0, 2)); this.addCurvePosition_12(F, p[0], p[1], p[2], p[3], p[4], p[5], p[6], p[7], n, e, d || (0 < C && E < GT1247.prototype.epsilon)); } return n; } q ? ((r += 2), (p = this.world.setSize_1(r)), a.computeWorldVertices_6(g, 2, r - 4, p, 0, 2), a.computeWorldVertices_6(g, 0, 2, p, r - 4, 2), (p[r - 2] = p[0]), (p[r - 1] = p[1])) : (t--, (r -= 4), (p = this.world.setSize_1(r)), a.computeWorldVertices_6(g, 2, r, p, 0, 2)); a = this.curves.setSize_1(t); for (var A = 0, g = p[0], B = p[1], I = 0, L = 0, J = 0, M = 0, N = 0, P = 0, O, K, Q, S, C = 0, E = 2; C < t; C++, E += 6) (I = p[E]), (L = p[E + 1]), (J = p[E + 2]), (M = p[E + 3]), (N = p[E + 4]), (P = p[E + 5]), (O = 0.1875 * (g - 2 * I + J)), (K = 0.1875 * (B - 2 * L + M)), (D = 0.09375 * (3 * (I - J) - g + N)), (H = 0.09375 * (3 * (L - M) - B + P)), (Q = 2 * O + D), (S = 2 * K + H), (O = 0.75 * (I - g) + O + 0.16666667 * D), (K = 0.75 * (L - B) + K + 0.16666667 * H), (A += Math.sqrt_1(O * O + K * K)), (O += Q), (K += S), (Q += D), (S += H), (A += Math.sqrt_1(O * O + K * K)), (O += Q), (K += S), (A += Math.sqrt_1(O * O + K * K)), (O += Q + D), (K += S + H), (A += Math.sqrt_1(O * O + K * K)), (a[C] = A), (g = N), (B = P); e && (k *= A); if (f) for (C = 0; C < b; C++) m[C] *= A; var t = this.segments, T = 0; for (Q = f = e = C = 0; C < b; C++, e += 3) { E = m[C]; F = k += E; if (q) (F %= A), 0 > F && (F += A), (f = 0); else if (0 > F) { this.addBeforePosition_5(F, p, 0, n, e); continue; } else if (F > A) { this.addAfterPosition_5(F - A, p, r - 4, n, e); continue; } for (; ; f++) if (((D = a[f]), !(F > D))) { 0 == f ? (F /= D) : ((H = a[f - 1]), (F = (F - H) / (D - H))); break; } if (f != u) { var u = f, R = 6 * f, g = p[R], B = p[R + 1], I = p[R + 2], L = p[R + 3], J = p[R + 4], M = p[R + 5], N = p[R + 6], P = p[R + 7]; O = 0.03 * (g - 2 * I + J); K = 0.03 * (B - 2 * L + M); D = 0.006 * (3 * (I - J) - g + N); H = 0.006 * (3 * (L - M) - B + P); Q = 2 * O + D; S = 2 * K + H; O = 0.3 * (I - g) + O + 0.16666667 * D; K = 0.3 * (L - B) + K + 0.16666667 * H; T = Math.sqrt_1(O * O + K * K); t[0] = T; for (R = 1; 8 > R; R++) (O += Q), (K += S), (Q += D), (S += H), (T += Math.sqrt_1(O * O + K * K)), (t[R] = T); O += Q; K += S; T += Math.sqrt_1(O * O + K * K); t[8] = T; O += Q + D; K += S + H; T += Math.sqrt_1(O * O + K * K); t[9] = T; Q = 0; } for (F *= T; ; Q++) if (((D = t[Q]), !(F > D))) { 0 == Q ? (F /= D) : ((H = t[Q - 1]), (F = Q + (F - H) / (D - H))); break; } this.addCurvePosition_12(0.1 * F, g, B, I, L, J, M, N, P, n, e, d || (0 < C && E < GT1247.prototype.epsilon)); } return n; }, addBeforePosition_5: function (a, b, d, e, f) { var g = b[d], k = b[d + 1]; b = Math.atan2_2(b[d + 3] - k, b[d + 2] - g); e[f] = g + a * Math.cos_1(b); e[f + 1] = k + a * Math.sin_1(b); e[f + 2] = b; }, addAfterPosition_5: function (a, b, d, e, f) { var g = b[d + 2], k = b[d + 3]; b = Math.atan2_2(k - b[d + 1], g - b[d]); e[f] = g + a * Math.cos_1(b); e[f + 1] = k + a * Math.sin_1(b); e[f + 2] = b; }, addCurvePosition_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { if (a < GT1247.prototype.epsilon || a != a) a = GT1247.prototype.epsilon; var t = a * a, u = t * a, B = 1 - a, A = B * B, C = A * B, E = B * a, F = 3 * E, B = B * F; a *= F; m = b * C + e * B + g * a + m * u; n = d * C + f * B + k * a + n * u; p[q] = m; p[q + 1] = n; r && (p[q + 2] = Math.atan2_2(n - (d * A + f * E * 2 + k * t), m - (b * A + e * E * 2 + g * t))); }, getOrder_0: function () { return this.data.order; }, getPosition_0: function () { return this.position; }, setPosition_1: function (a) { this.position = a; }, getSpacing_0: function () { return this.spacing; }, setSpacing_1: function (a) { this.spacing = a; }, getRotateMix_0: function () { return this.rotateMix; }, setRotateMix_1: function (a) { this.rotateMix = a; }, getTranslateMix_0: function () { return this.translateMix; }, setTranslateMix_1: function (a) { this.translateMix = a; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { this.target = a; }, getData_0: function () { return this.data; }, toString: function () { return this.data.name; }, }, "GT1247", [GT1430] ); GT1247.prototype.NONE = -1; GT1247.prototype.BEFORE = -2; GT1247.prototype.AFTER = -3; GT1247.prototype.epsilon = 1e-5; var GT1031 = Class.extend( { initialConstructor_0: function () { this.name = null; this.order = 0; this.rotateMode = this.spacingMode = this.positionMode = this.target = this.bones = null; this.translateMix = this.rotateMix = this.spacing = this.position = this.offsetRotation = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.order = 0; this.rotateMode = this.spacingMode = this.positionMode = this.target = this.bones = null; this.translateMix = this.rotateMix = this.spacing = this.position = this.offsetRotation = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.bones = new GT1497(); this.name = a; }, getName_0: function () { return this.name; }, getOrder_0: function () { return this.order; }, setOrder_1: function (a) { this.order = a; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { this.target = a; }, getPositionMode_0: function () { return this.positionMode; }, setPositionMode_1: function (a) { this.positionMode = a; }, getSpacingMode_0: function () { return this.spacingMode; }, setSpacingMode_1: function (a) { this.spacingMode = a; }, getRotateMode_0: function () { return this.rotateMode; }, setRotateMode_1: function (a) { this.rotateMode = a; }, getOffsetRotation_0: function () { return this.offsetRotation; }, setOffsetRotation_1: function (a) { this.offsetRotation = a; }, getPosition_0: function () { return this.position; }, setPosition_1: function (a) { this.position = a; }, getSpacing_0: function () { return this.spacing; }, setSpacing_1: function (a) { this.spacing = a; }, getRotateMix_0: function () { return this.rotateMix; }, setRotateMix_1: function (a) { this.rotateMix = a; }, getTranslateMix_0: function () { return this.translateMix; }, setTranslateMix_1: function (a) { this.translateMix = a; }, toString: function () { return this.name; }, }, "GT1031", [] ), GT663 = GT1296.extend( { initialConstructor_0: function () { this.pathConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.pathConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT663.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.pathConstraintMix << 24) + this.pathConstraintIndex; }, setPathConstraintIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.pathConstraintIndex = a; }, getPathConstraintIndex_0: function () { return this.pathConstraintIndex; }, getFrames_0: function () { return this.frames; }, setFrame_4: function (a, b, d, e) { a *= GT663.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT663.prototype.ROTATE] = d; this.frames[a + GT663.prototype.TRANSLATE] = e; }, apply_7: function (a, b, d, e, f, g, k) { a = a.pathConstraints.get_1(this.pathConstraintIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.rotateMix = a.data.rotateMix; a.translateMix = a.data.translateMix; break; case GT1565.prototype.current: (a.rotateMix += (a.data.rotateMix - a.rotateMix) * f), (a.translateMix += (a.data.translateMix - a.translateMix) * f); } else { if (d >= b[b.length - GT663.prototype.ENTRIES]) (e = b[b.length + GT663.prototype.PREV_ROTATE]), (k = b[b.length + GT663.prototype.PREV_TRANSLATE]); else { var m = GT1496.prototype.binarySearch_3(b, d, GT663.prototype.ENTRIES); e = b[m + GT663.prototype.PREV_ROTATE]; k = b[m + GT663.prototype.PREV_TRANSLATE]; var n = b[m]; d = this.getCurvePercent_2(Math.div(m, GT663.prototype.ENTRIES) - 1, 1 - (d - n) / (b[m + GT663.prototype.PREV_TIME] - n)); e += (b[m + GT663.prototype.ROTATE] - e) * d; k += (b[m + GT663.prototype.TRANSLATE] - k) * d; } g == GT1565.prototype.setup ? ((a.rotateMix = a.data.rotateMix + (e - a.data.rotateMix) * f), (a.translateMix = a.data.translateMix + (k - a.data.translateMix) * f)) : ((a.rotateMix += (e - a.rotateMix) * f), (a.translateMix += (k - a.translateMix) * f)); } }, }, "GT663", [] ); GT663.prototype.ENTRIES = 3; GT663.prototype.PREV_TIME = -3; GT663.prototype.PREV_ROTATE = -2; GT663.prototype.PREV_TRANSLATE = -1; GT663.prototype.ROTATE = 1; GT663.prototype.TRANSLATE = 2; var GT416 = GT1296.extend( { initialConstructor_0: function () { this.pathConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.pathConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT416.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.pathConstraintPosition << 24) + this.pathConstraintIndex; }, setPathConstraintIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.pathConstraintIndex = a; }, getPathConstraintIndex_0: function () { return this.pathConstraintIndex; }, getFrames_0: function () { return this.frames; }, setFrame_3: function (a, b, d) { a *= GT416.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT416.prototype.VALUE] = d; }, apply_7: function (a, b, d, e, f, g, k) { a = a.pathConstraints.get_1(this.pathConstraintIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.position = a.data.position; break; case GT1565.prototype.current: a.position += (a.data.position - a.position) * f; } else { if (d >= b[b.length - GT416.prototype.ENTRIES]) e = b[b.length + GT416.prototype.PREV_VALUE]; else { k = GT1496.prototype.binarySearch_3(b, d, GT416.prototype.ENTRIES); e = b[k + GT416.prototype.PREV_VALUE]; var m = b[k]; d = this.getCurvePercent_2(Math.div(k, GT416.prototype.ENTRIES) - 1, 1 - (d - m) / (b[k + GT416.prototype.PREV_TIME] - m)); e += (b[k + GT416.prototype.VALUE] - e) * d; } a.position = g == GT1565.prototype.setup ? a.data.position + (e - a.data.position) * f : a.position + (e - a.position) * f; } }, }, "GT416", [] ); GT416.prototype.ENTRIES = 2; GT416.prototype.PREV_TIME = -2; GT416.prototype.PREV_VALUE = -1; GT416.prototype.VALUE = 1; var GT466 = GT416.extend( { initialConstructor_0: function () { GT416.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT416.prototype.initialConstructor_1.call(this, a); }, getPropertyId_0: function () { return (GT1344.prototype.pathConstraintSpacing << 24) + this.pathConstraintIndex; }, apply_7: function (a, b, d, e, f, g, k) { a = a.pathConstraints.get_1(this.pathConstraintIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.spacing = a.data.spacing; break; case GT1565.prototype.current: a.spacing += (a.data.spacing - a.spacing) * f; } else { if (d >= b[b.length - this.ENTRIES]) e = b[b.length + this.PREV_VALUE]; else { k = GT1496.prototype.binarySearch_3(b, d, this.ENTRIES); e = b[k + this.PREV_VALUE]; var m = b[k]; d = this.getCurvePercent_2(Math.div(k, this.ENTRIES) - 1, 1 - (d - m) / (b[k + this.PREV_TIME] - m)); e += (b[k + this.VALUE] - e) * d; } a.spacing = g == GT1565.prototype.setup ? a.data.spacing + (e - a.data.spacing) * f : a.spacing + (e - a.spacing) * f; } }, }, "GT466", [] ), GT1349 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1349", [] ); GT1349.prototype.TYPE_FIXED = "fixed"; GT1349.prototype.TYPE_PERCENT = "percent"; var GT1456 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1456", [] ); GT1456.prototype.TYPE_TANGENT = "tangent"; GT1456.prototype.TYPE_CHAIN = "chain"; GT1456.prototype.TYPE_CHAINSCALE = "chainScale"; var GT1248 = GT1296.extend( { initialConstructor_0: function () { this.boneIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.boneIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a << 1).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.rotate << 24) + this.boneIndex; }, setBoneIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.boneIndex = a; }, getBoneIndex_0: function () { return this.boneIndex; }, getFrames_0: function () { return this.frames; }, setFrame_3: function (a, b, d) { a <<= 1; this.frames[a] = b; this.frames[a + GT1248.prototype.ROTATION] = d; }, apply_7: function (a, b, d, e, f, g, k) { a = a.bones.get_1(this.boneIndex); e = this.frames; if (d < e[0]) switch (g) { case GT1565.prototype.setup: a.rotation = a.data.rotation; break; case GT1565.prototype.current: (e = a.data.rotation - a.rotation), (e -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - e / 360))), (a.rotation += e * f); } else if (d >= e[e.length - GT1248.prototype.ENTRIES]) g == GT1565.prototype.setup ? (a.rotation = a.data.rotation + e[e.length + GT1248.prototype.PREV_ROTATION] * f) : ((e = a.data.rotation + e[e.length + GT1248.prototype.PREV_ROTATION] - a.rotation), (e -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - e / 360))), (a.rotation += e * f)); else { k = GT1496.prototype.binarySearch_3(e, d, GT1248.prototype.ENTRIES); b = e[k + GT1248.prototype.PREV_ROTATION]; var m = e[k]; d = this.getCurvePercent_2((k >> 1) - 1, 1 - (d - m) / (e[k + GT1248.prototype.PREV_TIME] - m)); e = e[k + GT1248.prototype.ROTATION] - b; e -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - e / 360)); e = b + e * d; g == GT1565.prototype.setup ? ((e -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - e / 360))), (a.rotation = a.data.rotation + e * f)) : ((e = a.data.rotation + e - a.rotation), (e -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - e / 360))), (a.rotation += e * f)); } }, }, "GT1248", [] ); GT1248.prototype.ENTRIES = 2; GT1248.prototype.PREV_TIME = -2; GT1248.prototype.PREV_ROTATION = -1; GT1248.prototype.ROTATION = 1; var GT1542 = Class.extend( { initialConstructor_0: function () { this.color = this.skin = this.updateCacheReset = this.updateCacheArray = this.pathConstraints = this.transformConstraints = this.ikConstraints = this.drawOrder = this.slots = this.bones = this.data = null; this.time = 0; this.flipY = this.flipX = !1; this.y = this.x = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.color = this.skin = this.updateCacheReset = this.updateCacheArray = this.pathConstraints = this.transformConstraints = this.ikConstraints = this.drawOrder = this.slots = this.bones = this.data = null; this.time = 0; this.flipY = this.flipX = !1; this.y = this.x = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); this.data = a; this.updateCacheArray = new GT1497(); this.updateCacheReset = new GT1497(); this.bones = new GT1497(a.bones.size); for (var b = 0; b < a.bones.size; ++b) { var d = a.bones.get_1(b); if (null == d.parent) d = new GT1624(d, this, null); else { var e = this.bones.get_1(d.parent.index), d = new GT1624(d, this, e); e.children.add_1(d); } this.bones.add_1(d); } this.slots = new GT1497(a.slots.size); this.drawOrder = new GT1497(a.slots.size); for (b = 0; b < a.slots.size; ++b) (e = a.slots.get_1(b)), (d = this.bones.get_1(e.boneData.index)), (d = new GT1625(e, d)), this.slots.add_1(d), this.drawOrder.add_1(d); this.ikConstraints = new GT1497(a.ikConstraints.size); for (b = 0; b < a.ikConstraints.size; ++b) this.ikConstraints.add_1(new GT1348(a.ikConstraints.get_1(b), this)); this.transformConstraints = new GT1497(a.transformConstraints.size); for (b = 0; b < a.transformConstraints.size; ++b) this.transformConstraints.add_1(new GT978(a.transformConstraints.get_1(b), this)); this.pathConstraints = new GT1497(a.pathConstraints.size); for (b = 0; b < a.pathConstraints.size; ++b) this.pathConstraints.add_1(new GT1247(a.pathConstraints.get_1(b), this)); this.color = new GT1477(1, 1, 1, 1); this.updateCache_0(); }, initialConstructor_2: function (a, b) { this.color = this.skin = this.updateCacheReset = this.updateCacheArray = this.pathConstraints = this.transformConstraints = this.ikConstraints = this.drawOrder = this.slots = this.bones = this.data = null; this.time = 0; this.flipY = this.flipX = !1; this.y = this.x = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a.data; this.updateCacheArray = new GT1497(); this.updateCacheReset = new GT1497(); this.bones = new GT1497(a.bones.size); for (var d = 0; d < a.bones.size; ++d) { var e = a.bones.get_1(d); if (null == e.parent) e = new GT1624(e, this, null, !0); else { var f = this.bones.get_1(e.parent.data.index), e = new GT1624(e, this, f, !0); f.children.add_1(e); } this.bones.add_1(e); } this.slots = new GT1497(a.slots.size); for (d = 0; d < a.slots.size; ++d) (f = a.slots.get_1(d)), (e = this.bones.get_1(f.bone.data.index)), this.slots.add_1(new GT1625(f, e, !0)); this.drawOrder = new GT1497(this.slots.size); for (d = 0; d < a.drawOrder.size; ++d) this.drawOrder.add_1(this.slots.get_1(a.drawOrder.get_1(d).data.index)); this.ikConstraints = new GT1497(a.ikConstraints.size); for (d = 0; d < a.ikConstraints.size; ++d) this.ikConstraints.add_1(new GT1348(a.ikConstraints.get_1(d), this, !0)); this.transformConstraints = new GT1497(a.transformConstraints.size); for (d = 0; d < a.transformConstraints.size; ++d) this.transformConstraints.add_1(new GT978(a.transformConstraints.get_1(d), this, !0)); this.pathConstraints = new GT1497(a.pathConstraints.size); for (d = 0; d < a.pathConstraints.size; ++d) this.pathConstraints.add_1(new GT1247(a.pathConstraints.get_1(d), this, !0)); this.skin = a.skin; this.color = new GT1477(a.color); this.time = a.time; this.flipX = a.flipX; this.flipY = a.flipY; this.updateCache_0(); }, updateCache_0: function () { this.updateCacheArray.clear_0(); this.updateCacheReset.clear_0(); for (var a = this.bones, b = 0, d = a.size; b < d; b++) a.get_1(b).sorted = !1; for (var d = this.ikConstraints, e = this.transformConstraints, f = this.pathConstraints, g = d.size, k = e.size, m = f.size, n = g + k + m, b = 0; b < n; b++) { for (var p = !1, q = 0; q < g; q++) { var r = d.get_1(q); if (r.data.order == b) { this.sortIkConstraint_1(r); p = !0; break; } } for (q = 0; !p && q < k; q++) if (((r = e.get_1(q)), r.data.order == b)) { this.sortTransformConstraint_1(r); p = !0; break; } for (q = 0; !p && q < m; q++) if (((r = f.get_1(q)), r.data.order == b)) { this.sortPathConstraint_1(r); break; } } b = 0; for (d = a.size; b < d; b++) this.sortBone_1(a.get_1(b)); }, sortIkConstraint_1: function (a) { this.sortBone_1(a.target); var b = a.bones, d = b.first_0(); this.sortBone_1(d); if (1 < b.size) { var e = b.peek_0(); this.updateCacheArray.contains_2(e, !0) || this.updateCacheReset.add_1(e); } this.updateCacheArray.add_1(a); this.sortReset_1(d.children); b.peek_0().sorted = !0; }, sortPathConstraint_1: function (a) { var b = a.target, d = b.getData_0().index, e = b.bone; null != this.skin && this.sortPathConstraintAttachment_3(this.skin, d, e); null != this.data.defaultSkin && this.data.defaultSkin != this.skin && this.sortPathConstraintAttachment_3(this.data.defaultSkin, d, e); for (var f = 0, g = this.data.skins.size; f < g; f++) this.sortPathConstraintAttachment_3(this.data.skins.get_1(f), d, e); b = b.attachment; instanceOf(b, GT609) && this.sortPathConstraintAttachment_2(b, e); e = a.bones; b = e.size; for (d = 0; d < b; d++) this.sortBone_1(e.get_1(d)); this.updateCacheArray.add_1(a); for (d = 0; d < b; d++) this.sortReset_1(e.get_1(d).children); for (d = 0; d < b; d++) e.get_1(d).sorted = !0; }, sortTransformConstraint_1: function (a) { this.sortBone_1(a.target); var b = a.bones, d = b.size; if (a.data.local) for (var e = 0; e < d; e++) { var f = b.get_1(e); this.sortBone_1(f.parent); this.updateCacheArray.contains_2(f, !0) || this.updateCacheReset.add_1(f); } else for (e = 0; e < d; e++) this.sortBone_1(b.get_1(e)); this.updateCacheArray.add_1(a); for (e = 0; e < d; e++) this.sortReset_1(b.get_1(e).children); for (e = 0; e < d; e++) b.get_1(e).sorted = !0; }, sortPathConstraintAttachment_3: function (a, b, d) { a = a.attachments.getTable_0(); for (var e = 0; e < a.size_0(); ++e) { var f = a.elementAt_1(e); f.getKey_0().slotIndex == b && this.sortPathConstraintAttachment_2(f.getValue_0(), d); } }, sortPathConstraintAttachment_2: function (a, b) { if (instanceOf(a, GT609)) { var d = a.getBones_0(); if (null == d) this.sortBone_1(b); else for (var e = this.bones, f = 0, g = d.length; f < g; ) for (var k = d[f++], k = k + f; f < k; ) this.sortBone_1(e.get_1(d[f++])); } }, sortBone_1: function (a) { if (!a.sorted) { var b = a.parent; null != b && this.sortBone_1(b); a.sorted = !0; this.updateCacheArray.add_1(a); } }, sortReset_1: function (a) { for (var b = 0, d = a.size; b < d; b++) { var e = a.get_1(b); e.sorted && this.sortReset_1(e.children); e.sorted = !1; } }, updateWorldTransform_0: function () { for (var a = this.updateCacheReset, b = 0, d = a.size; b < d; b++) { var e = a.get_1(b); e.ax = e.x; e.ay = e.y; e.arotation = e.rotation; e.ascaleX = e.scaleX; e.ascaleY = e.scaleY; e.ashearX = e.shearX; e.ashearY = e.shearY; e.appliedValid = !0; } a = this.updateCacheArray; b = 0; for (d = a.size; b < d; b++) a.get_1(b).update_0(); }, updateWorldTransform_1: function (a) { for (var b = this.updateCacheReset, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); f.ax = f.x; f.ay = f.y; f.arotation = f.rotation; f.ascaleX = f.scaleX; f.ascaleY = f.scaleY; f.ashearX = f.shearX; f.ashearY = f.shearY; f.appliedValid = !0; } var b = this.getRootBone_0(), d = a.a, e = a.b, f = a.c, g = a.d; b.worldX = d * this.x + e * this.y + a.worldX; b.worldY = f * this.x + g * this.y + a.worldY; var k = b.rotation + 90 + b.shearY; a = GT1142.prototype.cosDeg_1(b.rotation + b.shearX) * b.scaleX; var m = GT1142.prototype.cosDeg_1(k) * b.scaleY, n = GT1142.prototype.sinDeg_1(b.rotation + b.shearX) * b.scaleX, k = GT1142.prototype.sinDeg_1(k) * b.scaleY; b.a = d * a + e * n; b.b = d * m + e * k; b.c = f * a + g * n; b.d = f * m + g * k; this.flipY || ((b.a = -b.a), (b.b = -b.b)); this.flipX && ((b.c = -b.c), (b.d = -b.d)); f = this.updateCacheArray; d = 0; for (e = f.size; d < e; d++) (g = f.get_1(d)), g != b && g.update_0(); }, setToSetupPose_0: function () { this.setBonesToSetupPose_0(); this.setSlotsToSetupPose_0(); }, setBonesToSetupPose_0: function () { for (var a = this.bones, b = 0, d = a.size; b < d; b++) a.get_1(b).setToSetupPose_0(); for (var e = this.ikConstraints, b = 0, d = e.size; b < d; b++) (a = e.get_1(b)), (a.bendDirection = a.data.bendDirection), (a.mix = a.data.mix); for (var f = this.transformConstraints, b = 0, d = f.size; b < d; b++) (a = f.get_1(b)), (e = a.data), (a.rotateMix = e.rotateMix), (a.translateMix = e.translateMix), (a.scaleMix = e.scaleMix), (a.shearMix = e.shearMix); f = this.pathConstraints; b = 0; for (d = f.size; b < d; b++) (a = f.get_1(b)), (e = a.data), (a.position = e.position), (a.spacing = e.spacing), (a.rotateMix = e.rotateMix), (a.translateMix = e.translateMix); }, setSlotsToSetupPose_0: function () { var a = this.slots; java_lang_System.prototype.arraycopy_5(a.items, 0, this.drawOrder.items, 0, a.size); for (var b = 0, d = a.size; b < d; b++) a.get_1(b).setToSetupPose_0(); }, getData_0: function () { return this.data; }, getBones_0: function () { return this.bones; }, getUpdateCache_0: function () { return this.updateCacheArray; }, getRootBone_0: function () { return 0 == this.bones.size ? null : this.bones.first_0(); }, findBone_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: boneName cannot be null."); for (var b = this.bones, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.data.name.equals_1(a)) return f; } return null; }, getSlots_0: function () { return this.slots; }, findSlot_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotName cannot be null."); for (var b = this.slots, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.data.name.equals_1(a)) return f; } return null; }, getDrawOrder_0: function () { return this.drawOrder; }, setDrawOrder_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: drawOrder cannot be null."); this.drawOrder = a; }, getSkin_0: function () { return this.skin; }, setSkin_1: function (a) { var b = this.data.findSkin_1(a); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Skin not found: " + a); this.setSkin_2(b, !1); }, setSkin_2: function (a, b) { if (null != a) if (null != this.skin) a.attachAll_2(this, this.skin); else for (var d = this.slots, e = 0, f = d.size; e < f; e++) { var g = d.get_1(e), k = g.data.attachmentName; null != k && ((k = a.getAttachment_2(e, k)), null != k && g.setAttachment_1(k)); } this.skin = a; }, getAttachment_3: function (a, b, d) { d = this.data.findSlot_1(a); null == d && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Slot not found: " + a); return this.getAttachment_2(d.getIndex_0(), b); }, getAttachment_2: function (a, b) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: attachmentName cannot be null."); if (null != this.skin) { var d = this.skin.getAttachment_2(a, b); if (null != d) return d; } return null != this.data.defaultSkin ? this.data.defaultSkin.getAttachment_2(a, b) : null; }, setAttachment_2: function (a, b) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotName cannot be null."); var d = this.findSlot_1(a); null == d && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Slot not found: " + a); var e = null; null != b && ((e = this.getAttachment_2(d.data.index, b)), null == e && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Attachment not found: " + b + ", for slot: " + a)); d.setAttachment_1(e); }, getIkConstraints_0: function () { return this.ikConstraints; }, findIkConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.ikConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.data.name.equals_1(a)) return f; } return null; }, getTransformConstraints_0: function () { return this.transformConstraints; }, findTransformConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.transformConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.data.name.equals_1(a)) return f; } return null; }, getPathConstraints_0: function () { return this.pathConstraints; }, findPathConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.pathConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.data.name.equals_1(a)) return f; } return null; }, getBounds_3: function (a, b, d) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: offset cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: size cannot be null."); for (var e = this.drawOrder, f = Integer.MAX_VALUE, g = Integer.MAX_VALUE, k = Integer.MIN_VALUE, m = Integer.MIN_VALUE, n = 0, p = e.size; n < p; n++) { var q = e.get_1(n), r = 0, t = null, u = q.attachment; instanceOf(u, GT500) ? ((r = 8), (t = d.setSize_1(8)), u.computeWorldVertices_4(q.getBone_0(), t, 0, 2)) : instanceOf(u, GT595) && ((r = u.getWorldVerticesLength_0()), (t = d.setSize_1(r)), u.computeWorldVertices_6(q, 0, r, t, 0, 2)); if (null != t) for (q = 0; q < r; q += 2) var u = t[q], B = t[q + 1], f = Math.min_2(f, u), g = Math.min_2(g, B), k = Math.max_2(k, u), m = Math.max_2(m, B); } a.set_2(f, g); b.set_2(k - f, m - g); }, getColor_0: function () { return this.color; }, setColor_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: color cannot be null."); this.color.set_1(a); }, getFlipX_0: function () { return this.flipX; }, setFlipX_1: function (a) { this.flipX = a; }, getFlipY_0: function () { return this.flipY; }, setFlipY_1: function (a) { this.flipY = a; }, setFlip_2: function (a, b) { this.flipX = a; this.flipY = b; }, getX_0: function () { return this.x; }, setX_1: function (a) { this.x = a; }, getY_0: function () { return this.y; }, setY_1: function (a) { this.y = a; }, setPosition_2: function (a, b) { this.x = a; this.y = b; }, getTime_0: function () { return this.time; }, setTime_1: function (a) { this.time = a; }, update_1: function (a) { this.time += a; }, toString: function () { return null != this.data.name ? this.data.name : Class.prototype.toString.call(this); }, }, "GT1542", [] ), GT1249 = Class.extend( { initialConstructor_0: function () { this.maxY = this.maxX = this.minY = this.minX = 0; this.polygonPool = this.polygons = this.boundingBoxes = null; this.boundingBoxes = new GT1497(); this.polygons = new GT1497(); this.polygonPool = new GT1407(); }, update_2: function (a, b) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); var d = this.boundingBoxes, e = this.polygons, f = a.slots, g = f.size; d.clear_0(); this.polygonPool.freeAll_1(e); e.clear_0(); for (var k = 0; k < g; k++) { var m = f.get_1(k), n = m.attachment; if (instanceOf(n, GT313)) { d.add_1(n); var p = this.polygonPool.obtain_0(); e.add_1(p); n.computeWorldVertices_6(m, 0, n.getWorldVerticesLength_0(), p.setSize_1(n.getWorldVerticesLength_0()), 0, 2); } } b ? this.aabbCompute_0() : ((this.minY = this.minX = Integer.MIN_VALUE), (this.maxY = this.maxX = Integer.MAX_VALUE)); }, aabbCompute_0: function () { for (var a = Integer.MAX_VALUE, b = Integer.MAX_VALUE, d = Integer.MIN_VALUE, e = Integer.MIN_VALUE, f = this.polygons, g = 0, k = f.size; g < k; g++) for (var m = f.get_1(g), n = m.items, p = 0, m = m.size; p < m; p += 2) var q = n[p], r = n[p + 1], a = Math.min_2(a, q), b = Math.min_2(b, r), d = Math.max_2(d, q), e = Math.max_2(e, r); this.minX = a; this.minY = b; this.maxX = d; this.maxY = e; }, aabbContainsPoint_2: function (a, b) { return a >= this.minX && a <= this.maxX && b >= this.minY && b <= this.maxY; }, aabbIntersectsSegment_4: function (a, b, d, e) { var f = this.minX, g = this.minY, k = this.maxX, m = this.maxY; if ((a <= f && d <= f) || (b <= g && e <= g) || (a >= k && d >= k) || (b >= m && e >= m)) return !1; d = (e - b) / (d - a); e = d * (f - a) + b; if (e > g && e < m) return !0; e = d * (k - a) + b; if (e > g && e < m) return !0; g = (g - b) / d + a; if (g > f && g < k) return !0; g = (m - b) / d + a; return g > f && g < k ? !0 : !1; }, aabbIntersectsSkeleton_1: function (a) { return this.minX < a.maxX && this.maxX > a.minX && this.minY < a.maxY && this.maxY > a.minY; }, containsPoint_2: function (a, b) { for (var d = this.polygons, e = 0, f = d.size; e < f; e++) if (this.containsPoint_3(d.get_1(e), a, b)) return this.boundingBoxes.get_1(e); return null; }, containsPoint_3: function (a, b, d) { var e = a.items; a = a.size; for (var f = a - 2, g = !1, k = 0; k < a; k += 2) { var m = e[k + 1], n = e[f + 1]; if ((m < d && n >= d) || (n < d && m >= d)) { var p = e[k]; p + ((d - m) / (n - m)) * (e[f] - p) < b && (g = !g); } f = k; } return g; }, intersectsSegment_4: function (a, b, d, e) { for (var f = this.polygons, g = 0, k = f.size; g < k; g++) if (this.intersectsSegment_5(f.get_1(g), a, b, d, e)) return this.boundingBoxes.get_1(g); return null; }, intersectsSegment_5: function (a, b, d, e, f) { var g = a.items; a = a.size; for (var k = b - e, m = d - f, n = b * f - d * e, p = g[a - 2], q = g[a - 1], r = 0; r < a; r += 2) { var t = g[r], u = g[r + 1], B = p * u - q * t, A = p - t, C = q - u, E = k * C - m * A, A = (n * A - k * B) / E; if (((A >= p && A <= t) || (A >= t && A <= p)) && ((A >= b && A <= e) || (A >= e && A <= b)) && ((p = (n * C - m * B) / E), ((p >= q && p <= u) || (p >= u && p <= q)) && ((p >= d && p <= f) || (p >= f && p <= d)))) return !0; p = t; q = u; } return !1; }, getMinX_0: function () { return this.minX; }, getMinY_0: function () { return this.minY; }, getMaxX_0: function () { return this.maxX; }, getMaxY_0: function () { return this.maxY; }, getWidth_0: function () { return this.maxX - this.minX; }, getHeight_0: function () { return this.maxY - this.minY; }, getBoundingBoxes_0: function () { return this.boundingBoxes; }, getPolygons_0: function () { return this.polygons; }, getPolygon_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: boundingBox cannot be null."); a = this.boundingBoxes.indexOf_2(a, !0); return -1 == a ? null : this.polygons.get_1(a); }, }, "GT1249", [] ), GT1407 = GT1541.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_0.call(this); }, newObject_0: function () { return new GT1176(); }, }, "GT1407", [] ), GT1350 = Class.extend( { initialConstructor_0: function () { this.pathConstraints = this.transformConstraints = this.ikConstraints = this.animations = this.events = this.defaultSkin = this.skins = this.slots = this.bones = this.name = null; this.height = this.width = 0; this.hash = this.version = null; this.fps = 0; this.imagesPath = null; this.bones = new GT1497(); this.slots = new GT1497(); this.skins = new GT1497(); this.events = new GT1497(); this.animations = new GT1497(); this.ikConstraints = new GT1497(); this.transformConstraints = new GT1497(); this.pathConstraints = new GT1497(); this.fps = 30; }, getBones_0: function () { return this.bones; }, findBone_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: boneName cannot be null."); for (var b = this.bones, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getSlots_0: function () { return this.slots; }, findSlot_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotName cannot be null."); for (var b = this.slots, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getDefaultSkin_0: function () { return this.defaultSkin; }, setDefaultSkin_1: function (a) { this.defaultSkin = a; }, findSkin_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skinName cannot be null."); for (var b = 0; b < this.skins.size; ++b) { var d = this.skins.get_1(b); if (d.name.equals_1(a)) return d; } return null; }, getSkins_0: function () { return this.skins; }, findEvent_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: eventDataName cannot be null."); for (var b = 0; b < this.events.size; ++b) { var d = this.events.get_1(b); if (d.name.equals_1(a)) return d; } return null; }, getEvents_0: function () { return this.events; }, getAnimations_0: function () { return this.animations; }, findAnimation_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: animationName cannot be null."); for (var b = this.animations, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getIkConstraints_0: function () { return this.ikConstraints; }, findIkConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.ikConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getTransformConstraints_0: function () { return this.transformConstraints; }, findTransformConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.transformConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getPathConstraints_0: function () { return this.pathConstraints; }, findPathConstraint_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraintName cannot be null."); for (var b = this.pathConstraints, d = 0, e = b.size; d < e; d++) { var f = b.get_1(d); if (f.name.equals_1(a)) return f; } return null; }, getName_0: function () { return this.name; }, setName_1: function (a) { this.name = a; }, getWidth_0: function () { return this.width; }, setWidth_1: function (a) { this.width = a; }, getHeight_0: function () { return this.height; }, setHeight_1: function (a) { this.height = a; }, getVersion_0: function () { return this.version; }, setVersion_1: function (a) { this.version = a; }, getHash_0: function () { return this.hash; }, setHash_1: function (a) { this.hash = a; }, getImagesPath_0: function () { return this.imagesPath; }, setImagesPath_1: function (a) { this.imagesPath = a; }, getFps_0: function () { return this.fps; }, setFps_1: function (a) { this.fps = a; }, toString: function () { return null != this.name ? this.name : Class.prototype.toString.call(this); }, }, "GT1350", [] ), GT1351 = Class.extend( { initialConstructor_0: function () { this.attachmentLoader = null; this.scale = 0; this.linkedMeshes = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.attachmentLoader = null; this.scale = 0; this.linkedMeshes = null; this.scale = 1; this.linkedMeshes = new GT1497(); this.attachmentLoader = new GT312(a); }, initialConstructor_2: function (a, b) { this.attachmentLoader = null; this.scale = 0; this.linkedMeshes = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: attachmentLoader cannot be null."); this.scale = 1; this.linkedMeshes = new GT1497(); this.attachmentLoader = a; }, getScale_0: function () { return this.scale; }, setScale_1: function (a) { this.scale = a; }, getHashtable_3: function (a, b, d) { return null != a && ((a = a.get_1(b)), null != a && instanceOf(a, java_util_JavaScriptHashtable)) ? a : d; }, getString_3: function (a, b, d) { return null != a && ((a = a.get_1(b)), null != a && "string" === typeof a) ? a : d; }, getInt_3: function (a, b, d) { return null != a && ((a = a.get_1(b)), null != a) ? Integer.truncate_1(a.doubleValue_0()) : d; }, getDouble_3: function (a, b, d) { return null != a && ((a = a.get_1(b)), null != a) ? a.doubleValue_0() : d; }, getBoolean_3: function (a, b, d) { return null != a && ((a = a.get_1(b)), null != a && instanceOf(a, Boolean)) ? a.booleanValue_0() : d; }, asDoubleArray_2: function (a, b) { var d = a.get_1(b); if (instanceOf(d, java_util_JavaScriptVector)) { for (var e = [].createArray(d.size_0()).init(0), f = 0; f < e.length; ++f) { var g = d.elementAt_1(f); "string" === typeof g ? (e[f] = GT1672.prototype.stringToDouble_1(g)) : instanceOf(g, Boolean) ? (e[f] = g.booleanValue_0() ? 1 : 0) : (e[f] = g.doubleValue_0()); } return e; } return null; }, asIntegerArray_2: function (a, b) { var d = a.get_1(b); if (instanceOf(d, java_util_JavaScriptVector)) { for (var e = [].createArray(d.size_0()).init(0), f = 0; f < e.length; ++f) { var g = d.elementAt_1(f); "string" === typeof g ? (e[f] = GT1672.prototype.stringToInt_1(g)) : instanceOf(g, Boolean) ? (e[f] = g.booleanValue_0() ? 1 : 0) : (e[f] = Integer.truncate_1(g.doubleValue_0())); } return e; } return null; }, asInt_2: function (a, b) { var d = a.get_1(b); return "string" === typeof d ? GT1672.prototype.stringToInt_1(d) : instanceOf(d, Boolean) ? (d ? 1 : 0) : Integer.truncate_1(d); }, asDouble_2: function (a, b) { var d = a.get_1(b); return "string" === typeof d ? GT1672.prototype.stringToDouble_1(d) : instanceOf(d, Boolean) ? (d ? 1 : 0) : d; }, has_2: function (a, b) { return null != a.get_1(b); }, readSkeletonData_2: function (a, b) { var d = this.scale, e = new GT1350(); e.name = a; var f = b.getData_0(); null != a && 0 < a.length_0() && (f = f.get_1(a)); var g = f.get_1("skeleton"); g.get_1("spine"); g.get_1("width"); g = this.getHashtable_3(f, "skeleton", null); null != g && ((e.hash = this.getString_3(g, "hash", null)), (e.version = this.getString_3(g, "spine", null)), (e.width = this.getDouble_3(g, "width", 0)), (e.height = this.getDouble_3(g, "height", 0)), (e.fps = this.getDouble_3(g, "fps", 30)), (e.imagesPath = this.getString_3(g, "images", null))); var k = f.get_1("bones"); if (null != k) for (g = 0; g < k.size_0(); ++g) { var m = k.elementAt_1(g), n = null, p = this.getString_3(m, "parent", null); null != p && ((n = e.findBone_1(p)), null == n && GT1650.prototype.assertExp_2(!1, "SerializationException: Parent bone not found: " + p)); n = new GT1540(e.bones.size, this.getString_3(m, "name", null), n); n.boneLength = this.getDouble_3(m, "length", 0) * d; n.x = this.getDouble_3(m, "x", 0) * d; n.y = this.getDouble_3(m, "y", 0) * d; n.rotation = this.getDouble_3(m, "rotation", 0); n.scaleX = this.getDouble_3(m, "scaleX", 1); n.scaleY = this.getDouble_3(m, "scaleY", 1); n.shearX = this.getDouble_3(m, "shearX", 0); n.shearY = this.getDouble_3(m, "shearY", 0); n.transformMode = GT1295.prototype.valueOf_1(this.getString_3(m, "transform", GT1295.prototype.normal.getName_0())); var q = this.getString_3(m, "color", null); null != q && n.getColor_0().set_1(GT1477.prototype.valueOf_1(q)); e.bones.add_1(n); } m = f.get_1("slots"); if (null != m) for (g = 0; g < m.size_0(); ++g) (p = m.elementAt_1(g)), (n = this.getString_3(p, "name", null)), (k = this.getString_3(p, "bone", null)), (q = e.findBone_1(k)), null == q && GT1650.prototype.assertExp_2(!1, "SerializationException: Slot bone not found: " + k), (n = new GT1543(e.slots.size, n, q)), (q = this.getString_3(p, "color", null)), null != q && n.getColor_0().set_1(GT1477.prototype.valueOf_1(q)), (k = this.getString_3(p, "dark", null)), null != k && n.setDarkColor_1(GT1477.prototype.valueOf_1(k)), (n.attachmentName = this.getString_3(p, "attachment", null)), (n.blendMode = GT1478.prototype.valueOf_1(this.getString_3(p, "blend", GT1478.prototype.normal.name_0()))), e.slots.add_1(n); var r = f.get_1("ik"); if (null != r) for (g = 0; g < r.size_0(); ++g) { m = r.elementAt_1(g); n = new GT1144(this.getString_3(m, "name", null)); n.order = this.getInt_3(m, "order", 0); p = m.get_1("bones"); for (q = 0; q < p.size_0(); ++q) { var k = p.elementAt_1(q), t = e.findBone_1(k); null == t && GT1650.prototype.assertExp_2(!1, "SerializationException: IK bone not found: " + k); n.bones.add_1(t); } k = this.getString_3(m, "target", null); n.target = e.findBone_1(k); null == n.target && GT1650.prototype.assertExp_2(!1, "SerializationException: IK target bone not found: " + k); n.bendDirection = this.getBoolean_3(m, "bendPositive", !0) ? 1 : -1; n.mix = this.getDouble_3(m, "mix", 1); e.ikConstraints.add_1(n); } r = f.get_1("transform"); if (null != r) for (g = 0; g < r.size_0(); ++g) { m = r.elementAt_1(g); n = new GT770(this.getString_3(m, "name", null)); n.order = this.getInt_3(m, "order", 0); p = m.get_1("bones"); for (q = 0; q < p.size_0(); ++q) (k = p.elementAt_1(q)), (t = e.findBone_1(k)), null == t && GT1650.prototype.assertExp_2(!1, "SerializationException: Transform constraint bone not found: " + k), n.bones.add_1(t); k = this.getString_3(m, "target", null); n.target = e.findBone_1(k); null == n.target && GT1650.prototype.assertExp_2(!1, "SerializationException: Transform constraint target bone not found: " + k); n.local = this.getBoolean_3(m, "local", !1); n.relative = this.getBoolean_3(m, "relative", !1); n.offsetRotation = this.getDouble_3(m, "rotation", 0); n.offsetX = this.getDouble_3(m, "x", 0) * d; n.offsetY = this.getDouble_3(m, "y", 0) * d; n.offsetScaleX = this.getDouble_3(m, "scaleX", 0); n.offsetScaleY = this.getDouble_3(m, "scaleY", 0); n.offsetShearY = this.getDouble_3(m, "shearY", 0); n.rotateMix = this.getDouble_3(m, "rotateMix", 1); n.translateMix = this.getDouble_3(m, "translateMix", 1); n.scaleMix = this.getDouble_3(m, "scaleMix", 1); n.shearMix = this.getDouble_3(m, "shearMix", 1); e.transformConstraints.add_1(n); } r = f.get_1("path"); if (null != r) for (g = 0; g < r.size_0(); ++g) { m = r.elementAt_1(g); n = new GT1031(this.getString_3(m, "name", null)); n.order = this.getInt_3(m, "order", 0); p = m.get_1("bones"); for (q = 0; q < p.size_0(); ++q) (k = p.elementAt_1(q)), (t = e.findBone_1(k)), null == t && GT1650.prototype.assertExp_2(!1, "SerializationException: Path bone not found: " + k), n.bones.add_1(t); k = this.getString_3(m, "target", null); n.target = e.findSlot_1(k); null == n.target && GT1650.prototype.assertExp_2(!1, "SerializationException: Path target slot not found: " + k); n.positionMode = this.getString_3(m, "positionMode", "percent"); n.spacingMode = this.getString_3(m, "spacingMode", "length"); n.rotateMode = this.getString_3(m, "rotateMode", "tangent"); n.offsetRotation = this.getDouble_3(m, "rotation", 0); n.position = this.getDouble_3(m, "position", 0); GT1349.prototype.TYPE_FIXED.equals_1(n.positionMode) && (n.position *= d); n.spacing = this.getDouble_3(m, "spacing", 0); if (GT1406.prototype.TYPE_LENGTH.equals_1(n.spacingMode) || GT1406.prototype.TYPE_FIXED.equals_1(n.spacingMode)) n.spacing *= d; n.rotateMix = this.getDouble_3(m, "rotateMix", 1); n.translateMix = this.getDouble_3(m, "translateMix", 1); e.pathConstraints.add_1(n); } n = f.get_1("skins"); if (null != n) for (g = n.keys_0(); g.hasMoreElements_0(); ) { d = g.nextElement_0(); k = n.get_1(d); d = new GT1626(d); for (m = k.keys_0(); m.hasMoreElements_0(); ) for (q = m.nextElement_0(), p = e.findSlot_1(q), null == p && GT1650.prototype.assertExp_2(!1, "SerializationException: Slot not found: " + q), q = k.get_1(q), t = q.keys_0(); t.hasMoreElements_0(); ) { var r = t.nextElement_0(), u = q.get_1(r), u = this.readAttachment_5(u, d, p.index, r, e); null != u && d.addAttachment_3(p.index, r, u); } e.skins.add_1(d); d.name.equals_1("default") && (e.defaultSkin = d); } g = 0; for (k = this.linkedMeshes.size; g < k; g++) (m = this.linkedMeshes.get_1(g)), (d = null == m.skin ? e.getDefaultSkin_0() : e.findSkin_1(m.skin)), null == d && GT1650.prototype.assertExp_2(!1, "SerializationException: Skin not found: " + m.skin), (n = d.getAttachment_2(m.slotIndex, m.parent)), null == n && GT1650.prototype.assertExp_2(!1, "SerializationException: Parent mesh not found: " + m.parent), m.mesh.setParentMesh_1(n), m.mesh.updateUVs_0(); this.linkedMeshes.clear_0(); k = f.get_1("events"); if (null != k) for (g = k.keys_0(); g.hasMoreElements_0(); ) (d = g.nextElement_0()), (m = k.get_1(d)), (n = new GT1498(d)), (n.intValue = this.getInt_3(m, "int", 0)), (n.doubleValue = this.getDouble_3(m, "float", 0)), (n.stringValue = this.getString_3(m, "string", "")), e.events.add_1(n); f = f.get_1("animations"); if (null != f) for (g = f.keys_0(); g.hasMoreElements_0(); ) (d = g.nextElement_0()), (n = f.get_1(d)), this.readAnimation_3(n, d, e); e.bones.shrink_0(); e.slots.shrink_0(); e.skins.shrink_0(); e.events.shrink_0(); e.animations.shrink_0(); e.ikConstraints.shrink_0(); return e; }, readAttachment_5: function (a, b, d, e, f) { var g = this.scale; e = this.getString_3(a, "name", e); var k = this.getString_3(a, "type", GT610.prototype.region.getName_0()); switch (GT610.prototype.valueOf_1(k).getId_0()) { case GT610.prototype.ID_REGION: f = this.getString_3(a, "path", e); d = this.attachmentLoader.newRegionAttachment_3(b, e, f); if (null == d) break; d.setPath_1(f); d.setX_1(this.getDouble_3(a, "x", 0) * g); d.setY_1(this.getDouble_3(a, "y", 0) * g); d.setScaleX_1(this.getDouble_3(a, "scaleX", 1)); d.setScaleY_1(this.getDouble_3(a, "scaleY", 1)); d.setRotation_1(this.getDouble_3(a, "rotation", 0)); d.setWidth_1(this.getDouble_3(a, "width", 0) * g); d.setHeight_1(this.getDouble_3(a, "height", 0) * g); b = this.getString_3(a, "color", null); null != b && d.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); d.updateOffset_0(); return d; case GT610.prototype.ID_BOUNDING_BOX: g = this.attachmentLoader.newBoundingBoxAttachment_2(b, e); if (null == g) break; this.readVertices_3(a, g, this.getInt_3(a, "vertexCount", 0) << 1); b = this.getString_3(a, "color", null); null != b && g.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); return g; case GT610.prototype.ID_MESH: case GT610.prototype.ID_LINKED_MESH: f = this.getString_3(a, "path", e); e = this.attachmentLoader.newMeshAttachment_3(b, e, f); if (null == e) break; e.setPath_1(f); b = this.getString_3(a, "color", null); null != b && e.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); e.setWidth_1(this.getDouble_3(a, "width", 0) * g); e.setHeight_1(this.getDouble_3(a, "height", 0) * g); g = this.getString_3(a, "parent", null); if (null != g) return e.setInheritDeform_1(this.getBoolean_3(a, "deform", !0)), this.linkedMeshes.add_1(new GT1457(e, this.getString_3(a, "skin", null), d, g)), e; g = this.asDoubleArray_2(a, "uvs"); this.readVertices_3(a, e, g.length); e.setTriangles_1(this.asIntegerArray_2(a, "triangles")); e.setRegionUVs_1(g); e.updateUVs_0(); this.has_2(a, "hull") && e.setHullLength_1(2 * this.asInt_2(a, "hull")); this.has_2(a, "edges") && e.setEdges_1(this.asIntegerArray_2(a, "edges")); return e; case GT610.prototype.ID_PATH: f = this.attachmentLoader.newPathAttachment_2(b, e); if (null == f) break; f.setClosed_1(this.getBoolean_3(a, "closed", !1)); f.setConstantSpeed_1(this.getBoolean_3(a, "constantSpeed", !0)); d = this.getInt_3(a, "vertexCount", 0); this.readVertices_3(a, f, d << 1); d = [].createArray(Math.div(d, 3)).init(0); b = this.asDoubleArray_2(a, "lengths"); if (null != b) for (e = 0; e < b.length; ++e) d[e] = b[e] * g; f.setLengths_1(d); b = this.getString_3(a, "color", null); null != b && f.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); return f; case GT610.prototype.ID_POINT: f = this.attachmentLoader.newPointAttachment_2(b, e); if (null == f) break; f.setX_1(this.getDouble_3(a, "x", 0) * g); f.setY_1(this.getDouble_3(a, "y", 0) * g); f.setRotation_1(this.getDouble_3(a, "rotation", 0)); b = this.getString_3(a, "color", null); null != b && f.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); return f; case GT610.prototype.ID_CLIPPING: g = this.attachmentLoader.newClippingAttachment_2(b, e); if (null == g) break; d = this.getString_3(a, "end", null); null != d && ((f = f.findSlot_1(d)), null == f && GT1650.prototype.assertExp_2(!1, "SerializationException: Clipping end slot not found: " + d), g.setEndSlot_1(f)); this.readVertices_3(a, g, this.getInt_3(a, "vertexCount", 0) << 1); b = this.getString_3(a, "color", null); null != b && g.getColor_0().set_1(GT1477.prototype.valueOf_1(b)); return g; } return null; }, readVertices_3: function (a, b, d) { b.setWorldVerticesLength_1(d); a = this.asDoubleArray_2(a, "vertices"); if (d == a.length) { if (1 != this.scale) { d = 0; for (var e = a.length; d < e; d++) a[d] *= this.scale; } b.setVertices_1(a); } else { var f = new GT1176(9 * d), g = new GT1346(3 * d); d = 0; for (e = a.length; d < e; ) { var k = Integer.truncate_1(a[d++]); g.add_1(k); for (k = d + 4 * k; d < k; d += 4) g.add_1(Integer.truncate_1(a[d])), f.add_1(a[d + 1] * this.scale), f.add_1(a[d + 2] * this.scale), f.add_1(a[d + 3]); } b.setBones_1(g.toArray_0()); b.setVertices_1(f.toArray_0()); } }, readAnimation_3: function (a, b, d) { var e = this.scale, f = new GT1497(), g = 0, k = null, m = a.get_1("slots"); if (null != m) for (k = m.keys_0(); k.hasMoreElements_0(); ) { var n = k.nextElement_0(), p = m.get_1(n), q = d.findSlot_1(n); null == q && GT1650.prototype.assertExp_2(!1, "SerializationException(: Slot not found: " + n); for (var r = p.keys_0(); r.hasMoreElements_0(); ) { var t = r.nextElement_0(), u = p.get_1(t); if (t.equals_1("attachment")) { t = new GT1030(u.size_0()); t.slotIndex = q.index; for (var B = 0, A = 0; A < u.size_0(); ++A) { var C = u.elementAt_1(A); t.setFrame_3(B++, this.getDouble_3(C, "time", 0), this.getString_3(C, "name", "")); } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[t.getFrameCount_0() - 1]); } else if (t.equals_1("color")) { t = new GT1299(u.size_0()); t.slotIndex = q.index; for (A = B = 0; A < u.size_0(); ++A) { var C = u.elementAt_1(A), E = GT1477.prototype.valueOf_1(this.getString_3(C, "color", "")); t.setFrame_6(B, this.getDouble_3(C, "time", 0), E.getRed_0(), E.getGreen_0(), E.getBlue_0(), E.getAlpha_0()); this.readCurve_3(C, t, B); B++; } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT1299.prototype.ENTRIES]); } else if (t.equals_1("twoColor")) { t = new GT1145(u.size_0()); t.slotIndex = q.index; for (A = B = 0; A < u.size_0(); ++A) { var C = u.elementAt_1(A), E = GT1477.prototype.valueOf_1(this.getString_3(C, "light", "")), F = GT1477.prototype.valueOf_1(this.getString_3(C, "dark", "")); t.setFrame_9(B, this.getDouble_3(C, "time", 0), E.getRed_0(), E.getGreen_0(), E.getBlue_0(), E.getAlpha_0(), F.getRed_0(), F.getGreen_0(), F.getBlue_0()); this.readCurve_3(C, t, B); B++; } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT1145.prototype.ENTRIES]); } else GT1650.prototype.assertExp_2(!1, "RuntimeException: Invalid timeline type for a slot: " + t + " (" + n + ")"); } } p = a.get_1("bones"); if (null != p) for (k = p.keys_0(); k.hasMoreElements_0(); ) for (n = k.nextElement_0(), m = p.get_1(n), E = d.findBone_1(n), null == E && GT1650.prototype.assertExp_2(!1, "SerializationException: Bone not found: " + n), r = m.keys_0(); r.hasMoreElements_0(); ) if (((t = r.nextElement_0()), (u = m.get_1(t)), t.equals_1("rotate"))) { t = new GT1248(u.size_0()); t.boneIndex = E.index; for (A = B = 0; A < u.size_0(); ++A) (C = u.elementAt_1(A)), t.setFrame_3(B, this.getDouble_3(C, "time", 0), this.getDouble_3(C, "angle", 0)), this.readCurve_3(C, t, B), B++; f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT1248.prototype.ENTRIES]); } else if (t.equals_1("translate") || t.equals_1("scale") || t.equals_1("shear")) { q = 1; t.equals_1("scale") ? (t = new GT1300(u.size_0())) : t.equals_1("shear") ? (t = new GT1301(u.size_0())) : ((t = new GT1090(u.size_0())), (q = e)); t.boneIndex = E.index; for (A = B = 0; A < u.size_0(); ++A) { var C = u.elementAt_1(A), F = this.getDouble_3(C, "x", 0), D = this.getDouble_3(C, "y", 0); t.setFrame_4(B, this.getDouble_3(C, "time", 0), F * q, D * q); this.readCurve_3(C, t, B); B++; } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT1090.prototype.ENTRIES]); } else GT1650.prototype.assertExp_2(!1, "RuntimeException: Invalid timeline type for a bone: " + t + " (" + n + ")"); k = a.get_1("ik"); if (null != k) for (r = k.keys_0(); r.hasMoreElements_0(); ) { t = r.nextElement_0(); p = k.get_1(t); B = d.findIkConstraint_1(t); t = new GT936(p.size_0()); t.ikConstraintIndex = d.getIkConstraints_0().indexOf_2(B, !0); for (A = B = 0; A < p.size_0(); ++A) (C = p.elementAt_1(A)), t.setFrame_4(B, this.getDouble_3(C, "time", 0), this.getDouble_3(C, "mix", 1), this.getBoolean_3(C, "bendPositive", !0) ? 1 : -1), this.readCurve_3(C, t, B), B++; f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT936.prototype.ENTRIES]); } r = a.get_1("transform"); if (null != r) for (k = r.keys_0(); k.hasMoreElements_0(); ) { n = k.nextElement_0(); p = r.get_1(n); B = d.findTransformConstraint_1(n); t = new GT565(p.size_0()); t.transformConstraintIndex = d.getTransformConstraints_0().indexOf_2(B, !0); for (A = B = 0; A < p.size_0(); ++A) (C = p.elementAt_1(A)), t.setFrame_6(B, this.getDouble_3(C, "time", 0), this.getDouble_3(C, "rotateMix", 1), this.getDouble_3(C, "translateMix", 1), this.getDouble_3(C, "scaleMix", 1), this.getDouble_3(C, "shearMix", 1)), this.readCurve_3(C, t, B), B++; f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT565.prototype.ENTRIES]); } m = a.get_1("paths"); if (null != m) for (k = m.keys_0(); k.hasMoreElements_0(); ) for ( n = k.nextElement_0(), p = m.get_1(n), E = d.findPathConstraint_1(n), null == E && GT1650.prototype.assertExp_2(!1, "SerializationException: Path constraint not found: " + n), n = d.pathConstraints.indexOf_2(E, !0), r = p.keys_0(); r.hasMoreElements_0(); ) if (((F = r.nextElement_0()), (u = p.get_1(F)), F.equals_1("position") || F.equals_1("spacing"))) { q = 1; if (F.equals_1("spacing")) { if (((t = new GT466(u.size_0())), GT1406.prototype.TYPE_LENGTH.equals_1(E.spacingMode) || GT1406.prototype.TYPE_FIXED.equals_1(E.spacingMode))) q = e; } else (t = new GT416(u.size_0())), GT1349.prototype.TYPE_FIXED.equals_1(E.positionMode) && (q = e); t.pathConstraintIndex = n; for (A = B = 0; A < u.size_0(); ++A) (C = u.elementAt_1(A)), t.setFrame_3(B, this.getDouble_3(C, "time", 0), this.getDouble_3(C, F, 0) * q), this.readCurve_3(C, t, B), B++; f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT416.prototype.ENTRIES]); } else if (F.equals_1("mix")) { t = new GT663(u.size_0()); t.pathConstraintIndex = n; for (A = B = 0; A < u.size_0(); ++A) (C = u.elementAt_1(A)), t.setFrame_4(B, this.getDouble_3(C, "time", 0), this.getDouble_3(C, "rotateMix", 1), this.getDouble_3(C, "translateMix", 1)), this.readCurve_3(C, t, B), B++; f.add_1(t); g = Math.max_2(g, t.getFrames_0()[(t.getFrameCount_0() - 1) * GT663.prototype.ENTRIES]); } m = a.get_1("deform"); if (null != m) for (k = m.keys_0(); k.hasMoreElements_0(); ) for (n = k.nextElement_0(), E = m.get_1(n), F = d.findSkin_1(n), null == F && GT1650.prototype.assertExp_2(!1, "SerializationException: Skin not found: " + n), r = E.keys_0(); r.hasMoreElements_0(); ) for (t = r.nextElement_0(), p = E.get_1(t), q = d.findSlot_1(t), null == q && GT1650.prototype.assertExp_2(!1, "SerializationException: Slot not found: " + t), D = p.keys_0(); D.hasMoreElements_0(); ) { t = D.nextElement_0(); u = p.get_1(t); B = F.getAttachment_2(q.index, t); null == B && GT1650.prototype.assertExp_2(!1, "SerializationException: Deform attachment not found: " + t); var H = null != B.getBones_0(), I = B.getVertices_0(), L = H ? 2 * Math.div(I.length, 3) : I.length, t = new GT1245(u.size_0()); t.slotIndex = q.index; t.attachment = B; for (n = B = 0; n < u.size_0(); ++n) { var C = u.elementAt_1(n), J, M = this.asDoubleArray_2(C, "vertices"); if (null == M) J = H ? [].createArray(L).init(0) : I; else { J = [].createArray(L).init(0); A = this.getInt_3(C, "offset", 0); java_lang_System.prototype.arraycopy_5(M, 0, J, A, M.length); if (1 != e) for (M = A + M.length; A < M; A++) J[A] *= e; if (!H) for (A = 0; A < L; A++) J[A] += I[A]; } t.setFrame_3(B, this.getDouble_3(C, "time", 0), J); this.readCurve_3(C, t, B); B++; } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[t.getFrameCount_0() - 1]); } e = a.get_1("drawOrder"); null == e && (e = a.get_1("draworder")); if (null != e) { t = new GT1085(e.size_0()); k = d.slots.size; for (n = B = 0; n < e.size_0(); ++n) { r = e.elementAt_1(n); u = null; C = r.get_1("offsets"); if (null != C) { u = [].createArray(k).init(0); for (A = k - 1; 0 <= A; A--) u[A] = -1; p = [].createArray(k - C.size_0()).init(0); for (A = E = m = 0; A < C.size_0(); ++A) { F = C.elementAt_1(A); q = d.findSlot_1(this.getString_3(F, "slot", "")); for (null == q && GT1650.prototype.assertExp_2(!1, "SerializationException: Slot not found: " + this.getString_3(F, "slot", "")); m != q.index; ) p[E++] = m++; u[m + this.getInt_3(F, "offset", 0)] = m++; } for (; m < k; ) p[E++] = m++; for (A = k - 1; 0 <= A; A--) -1 == u[A] && (u[A] = p[--E]); } t.setFrame_3(B++, this.getDouble_3(r, "time", 0), u); } f.add_1(t); g = Math.max_2(g, t.getFrames_0()[t.getFrameCount_0() - 1]); } a = a.get_1("events"); if (null != a) { t = new GT1297(a.size_0()); for (A = B = 0; A < a.size_0(); ++A) (e = a.elementAt_1(A)), (k = d.findEvent_1(this.getString_3(e, "name", ""))), null == k && GT1650.prototype.assertExp_2(!1, "SerializationException: Event not found: " + this.getString_3(e, "name", "")), (r = new GT1611(this.getDouble_3(e, "time", 0), k)), (r.intValue = this.getInt_3(e, "int", k.getInt_0())), (r.doubleValue = this.getDouble_3(e, "float", k.getDouble_0())), (r.stringValue = this.getString_3(e, "string", k.getString_0())), t.setFrame_2(B++, r); f.add_1(t); g = Math.max_2(g, t.getFrames_0()[t.getFrameCount_0() - 1]); } f.shrink_0(); d.animations.add_1(new GT1496(b, f, g)); }, readCurve_3: function (a, b, d) { var e = a.get_1("curve"); null != e && ("string" === typeof e && e.equals_1("stepped") ? b.setStepped_1(d) : instanceOf(e, java_util_JavaScriptVector) && ((a = this.asDoubleArray_2(a, "curve")), b.setCurve_5(d, a[0], a[1], a[2], a[3]))); }, }, "GT1351", [] ), GT1457 = Class.extend( { initialConstructor_0: function () { this.skin = this.parent = null; this.slotIndex = 0; this.mesh = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.skin = this.parent = null; this.slotIndex = 0; this.mesh = null; this.mesh = a; this.skin = b; this.slotIndex = d; this.parent = e; }, }, "GT1457", [] ), GT1625 = Class.extend( { initialConstructor_0: function () { this.attachment = this.darkColor = this.color = this.bone = this.data = null; this.attachmentTime = 0; this.attachmentVertices = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.attachment = this.darkColor = this.color = this.bone = this.data = null; this.attachmentTime = 0; this.attachmentVertices = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: bone cannot be null."); this.data = a; this.bone = b; this.attachmentVertices = new GT1176(); this.color = new GT1477(0, 0, 0, 0); this.darkColor = null == a.darkColor ? null : new GT1477(0, 0, 0, 0); this.setToSetupPose_0(); }, initialConstructor_3: function (a, b, d) { this.attachment = this.darkColor = this.color = this.bone = this.data = null; this.attachmentTime = 0; this.attachmentVertices = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slot cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: bone cannot be null."); this.data = a.data; this.bone = b; this.attachmentVertices = new GT1176(); this.color = new GT1477(0, 0, 0, 0); this.color.set_1(a.color); this.darkColor = null == a.darkColor ? null : new GT1477(a.darkColor); this.attachment = a.attachment; this.attachmentTime = a.attachmentTime; }, getData_0: function () { return this.data; }, getBone_0: function () { return this.bone; }, getSkeleton_0: function () { return this.bone.skeleton; }, getColor_0: function () { return this.color; }, getDarkColor_0: function () { return this.darkColor; }, getAttachment_0: function () { return this.attachment; }, setAttachment_1: function (a) { this.attachment != a && ((this.attachment = a), (this.attachmentTime = this.bone.skeleton.time), this.attachmentVertices.clear_0()); }, getAttachmentTime_0: function () { return this.bone.skeleton.time - this.attachmentTime; }, setAttachmentTime_1: function (a) { this.attachmentTime = this.bone.skeleton.time - a; }, getAttachmentVertices_0: function () { return this.attachmentVertices; }, setAttachmentVertices_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: attachmentVertices cannot be null."); this.attachmentVertices = a; }, setToSetupPose_0: function () { this.color.set_1(this.data.color); null != this.darkColor && this.darkColor.set_1(this.data.darkColor); null == this.data.attachmentName ? this.setAttachment_1(null) : ((this.attachment = null), this.setAttachment_1(this.bone.skeleton.getAttachment_2(this.data.index, this.data.attachmentName))); }, toString: function () { return this.data.name; }, }, "GT1625", [] ), GT1543 = Class.extend( { initialConstructor_0: function () { this.index = 0; this.blendMode = this.attachmentName = this.darkColor = this.color = this.boneData = this.name = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.index = 0; this.blendMode = this.attachmentName = this.darkColor = this.color = this.boneData = this.name = null; 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); null == d && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: boneData cannot be null."); this.index = a; this.name = b; this.boneData = d; this.color = new GT1477(1, 1, 1, 1); }, getIndex_0: function () { return this.index; }, getName_0: function () { return this.name; }, getBoneData_0: function () { return this.boneData; }, getColor_0: function () { return this.color; }, getDarkColor_0: function () { return this.darkColor; }, setDarkColor_1: function (a) { this.darkColor = a; }, setAttachmentName_1: function (a) { this.attachmentName = a; }, getAttachmentName_0: function () { return this.attachmentName; }, getBlendMode_0: function () { return this.blendMode; }, setBlendMode_1: function (a) { this.blendMode = a; }, toString: function () { return this.name; }, }, "GT1543", [] ), GT1406 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1406", [] ); GT1406.prototype.TYPE_LENGTH = "length"; GT1406.prototype.TYPE_FIXED = "fixed"; GT1406.prototype.TYPE_PERCENT = "percent"; var GT1344 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1344", [] ); GT1344.prototype.rotate = 0; GT1344.prototype.translate = 1; GT1344.prototype.scale = 2; GT1344.prototype.shear = 3; GT1344.prototype.attachment = 4; GT1344.prototype.color = 5; GT1344.prototype.deform = 6; GT1344.prototype.event = 7; GT1344.prototype.drawOrder = 8; GT1344.prototype.ikConstraint = 9; GT1344.prototype.transformConstraint = 10; GT1344.prototype.pathConstraintPosition = 11; GT1344.prototype.pathConstraintSpacing = 12; GT1344.prototype.pathConstraintMix = 13; GT1344.prototype.twoColor = 14; var GT1458 = Class.extend( { initialConstructor_0: function () { this.listener = this.mixingFrom = this.next = this.animation = null; this.trackIndex = 0; this.loop = !1; this.totalAlpha = this.interruptAlpha = this.mixDuration = this.mixTime = this.alpha = this.timeScale = this.trackEnd = this.nextTrackLast = this.trackLast = this.trackTime = this.delay = this.nextAnimationLast = this.animationLast = this.animationEnd = this.animationStart = this.drawOrderThreshold = this.attachmentThreshold = this.eventThreshold = 0; this.timelinesRotation = this.timelineDipMix = this.timelineData = null; this.timelineData = new GT1346(); this.timelineDipMix = new GT1497(); this.timelinesRotation = new GT1176(); }, reset_0: function () { this.listener = this.animation = this.mixingFrom = this.next = null; this.timelineData.clear_0(); this.timelineDipMix.clear_0(); this.timelinesRotation.clear_0(); }, setTimelineData_3: function (a, b, d) { null != a && b.add_1(a); var e = null != this.mixingFrom ? this.mixingFrom.setTimelineData_3(this, b, d) : this; null != a && b.pop_0(); var f = b.items; b = b.size - 1; var g = this.animation.timelines.items, k = this.animation.timelines.size, m = this.timelineData.setSize_1(k); this.timelineDipMix.clear_0(); for (var n = this.timelineDipMix.setSize_1(k), p = 0; p < k; p++) { var q = !1, r = g[p].getPropertyId_0(); if (d.add_1(r)) if (null != a && a.hasTimeline_1(r)) { for (var t = b; !q && 0 <= t; t--) { var u = f[t]; if (!u.hasTimeline_1(r)) { 0 < u.mixDuration && ((m[p] = GT1250.prototype.DIP_MIX), (n[p] = u), (q = !0)); break; } } q || (m[p] = GT1250.prototype.DIP); } else m[p] = GT1250.prototype.FIRST; else m[p] = GT1250.prototype.SUBSEQUENT; } return e; }, hasTimeline_1: function (a) { for (var b = this.animation.timelines.items, d = 0, e = this.animation.timelines.size; d < e; d++) if (b[d].getPropertyId_0() == a) return !0; return !1; }, getTrackIndex_0: function () { return this.trackIndex; }, getAnimation_0: function () { return this.animation; }, setAnimation_1: function (a) { this.animation = a; }, getLoop_0: function () { return this.loop; }, setLoop_1: function (a) { this.loop = a; }, getDelay_0: function () { return this.delay; }, setDelay_1: function (a) { this.delay = a; }, getTrackTime_0: function () { return this.trackTime; }, setTrackTime_1: function (a) { this.trackTime = a; }, getTrackEnd_0: function () { return this.trackEnd; }, setTrackEnd_1: function (a) { this.trackEnd = a; }, getAnimationStart_0: function () { return this.animationStart; }, setAnimationStart_1: function (a) { this.animationStart = a; }, getAnimationEnd_0: function () { return this.animationEnd; }, setAnimationEnd_1: function (a) { this.animationEnd = a; }, getAnimationLast_0: function () { return this.animationLast; }, setAnimationLast_1: function (a) { this.nextAnimationLast = this.animationLast = a; }, getAnimationTime_0: function () { if (this.loop) { var a = this.animationEnd - this.animationStart; return 0 == a ? this.animationStart : (this.trackTime % a) + this.animationStart; } return Math.min_2(this.trackTime + this.animationStart, this.animationEnd); }, getTimeScale_0: function () { return this.timeScale; }, setTimeScale_1: function (a) { this.timeScale = a; }, getListener_0: function () { return this.listener; }, setListener_1: function (a) { this.listener = a; }, getAlpha_0: function () { return this.alpha; }, setAlpha_1: function (a) { this.alpha = a; }, getEventThreshold_0: function () { return this.eventThreshold; }, setEventThreshold_1: function (a) { this.eventThreshold = a; }, getAttachmentThreshold_0: function () { return this.attachmentThreshold; }, setAttachmentThreshold_1: function (a) { this.attachmentThreshold = a; }, getDrawOrderThreshold_0: function () { return this.drawOrderThreshold; }, setDrawOrderThreshold_1: function (a) { this.drawOrderThreshold = a; }, getNext_0: function () { return this.next; }, isComplete_0: function () { return this.trackTime >= this.animationEnd - this.animationStart; }, getMixTime_0: function () { return this.mixTime; }, setMixTime_1: function (a) { this.mixTime = a; }, getMixDuration_0: function () { return this.mixDuration; }, setMixDuration_1: function (a) { this.mixDuration = a; }, getMixingFrom_0: function () { return this.mixingFrom; }, resetRotationDirections_0: function () { this.timelinesRotation.clear_0(); }, toString: function () { return null == this.animation ? "" : this.animation.name; }, }, "GT1458", [GT1526] ), GT1251 = GT1541.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_0.call(this); }, newObject_0: function () { return new GT1458(); }, }, "GT1251", [] ), GT978 = Class.extend( { initialConstructor_0: function () { this.target = this.bones = this.data = null; this.shearMix = this.scaleMix = this.translateMix = this.rotateMix = 0; this.temp = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.target = this.bones = this.data = null; this.shearMix = this.scaleMix = this.translateMix = this.rotateMix = 0; this.temp = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a; this.temp = new GT1370(); this.rotateMix = a.rotateMix; this.translateMix = a.translateMix; this.scaleMix = a.scaleMix; this.shearMix = a.shearMix; this.bones = new GT1497(a.bones.size); for (var d = 0; d < a.bones.size; ++d) this.bones.add_1(b.findBone_1(a.bones.get_1(d).name)); this.target = b.findBone_1(a.target.name); }, initialConstructor_3: function (a, b, d) { this.target = this.bones = this.data = null; this.shearMix = this.scaleMix = this.translateMix = this.rotateMix = 0; this.temp = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: constraint cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.data = a.data; this.temp = new GT1370(); this.bones = new GT1497(a.bones.size); for (d = 0; d < a.bones.size; ++d) this.bones.add_1(b.bones.get_1(a.bones.get_1(d).data.index)); this.target = b.bones.get_1(a.target.data.index); this.rotateMix = a.rotateMix; this.translateMix = a.translateMix; this.scaleMix = a.scaleMix; this.shearMix = a.shearMix; }, apply_0: function () { this.update_0(); }, update_0: function () { this.data.local ? (this.data.relative ? this.applyRelativeLocal_0() : this.applyAbsoluteLocal_0()) : this.data.relative ? this.applyRelativeWorld_0() : this.applyAbsoluteWorld_0(); }, applyAbsoluteWorld_0: function () { for ( var a = this.rotateMix, b = this.translateMix, d = this.scaleMix, e = this.shearMix, f = this.target, g = f.a, k = f.b, m = f.c, n = f.d, p = 0 < g * n - k * m ? GT1142.prototype.degRad : -GT1142.prototype.degRad, q = this.data.offsetRotation * p, p = this.data.offsetShearY * p, r = this.bones, t = 0, u = r.size; t < u; t++ ) { var B = r.get_1(t), A = !1; if (0 != a) { var C = B.a, A = B.b, E = B.c, F = B.d, D = GT1142.prototype.atan2_2(m, g) - GT1142.prototype.atan2_2(E, C) + q; D > GT1142.prototype.PI ? (D -= GT1142.prototype.PI2) : D < -GT1142.prototype.PI && (D += GT1142.prototype.PI2); var D = D * a, H = GT1142.prototype.cos_1(D), D = GT1142.prototype.sin_1(D); B.a = H * C - D * E; B.b = H * A - D * F; B.c = D * C + H * E; B.d = D * A + H * F; A = !0; } 0 != b && ((A = this.temp), f.localToWorld_1(A.set_2(this.data.offsetX, this.data.offsetY)), (B.worldX += (A.x - B.worldX) * b), (B.worldY += (A.y - B.worldY) * b), (A = !0)); 0 < d && ((A = Math.sqrt_1(B.a * B.a + B.c * B.c)), 0 != A && (A = (A + (Math.sqrt_1(g * g + m * m) - A + this.data.offsetScaleX) * d) / A), (B.a *= A), (B.c *= A), (A = Math.sqrt_1(B.b * B.b + B.d * B.d)), 0 != A && (A = (A + (Math.sqrt_1(k * k + n * n) - A + this.data.offsetScaleY) * d) / A), (B.b *= A), (B.d *= A), (A = !0)); 0 < e && ((A = B.b), (F = B.d), (C = GT1142.prototype.atan2_2(F, A)), (D = GT1142.prototype.atan2_2(n, k) - GT1142.prototype.atan2_2(m, g) - (C - GT1142.prototype.atan2_2(B.c, B.a))), D > GT1142.prototype.PI ? (D -= GT1142.prototype.PI2) : D < -GT1142.prototype.PI && (D += GT1142.prototype.PI2), (D = C + (D + p) * e), (A = Math.sqrt_1(A * A + F * F)), (B.b = GT1142.prototype.cos_1(D) * A), (B.d = GT1142.prototype.sin_1(D) * A), (A = !0)); A && (B.appliedValid = !1); } }, applyRelativeWorld_0: function () { for ( var a = this.rotateMix, b = this.translateMix, d = this.scaleMix, e = this.shearMix, f = this.target, g = f.a, k = f.b, m = f.c, n = f.d, p = 0 < g * n - k * m ? GT1142.prototype.degRad : -GT1142.prototype.degRad, q = this.data.offsetRotation * p, p = this.data.offsetShearY * p, r = this.bones, t = 0, u = r.size; t < u; t++ ) { var B = r.get_1(t), A = !1; if (0 != a) { var A = B.a, C = B.b, E = B.c, F = B.d, D = GT1142.prototype.atan2_2(m, g) + q; D > GT1142.prototype.PI ? (D -= GT1142.prototype.PI2) : D < -GT1142.prototype.PI && (D += GT1142.prototype.PI2); var D = D * a, H = GT1142.prototype.cos_1(D), D = GT1142.prototype.sin_1(D); B.a = H * A - D * E; B.b = H * C - D * F; B.c = D * A + H * E; B.d = D * C + H * F; A = !0; } 0 != b && ((A = this.temp), f.localToWorld_1(A.set_2(this.data.offsetX, this.data.offsetY)), (B.worldX += A.x * b), (B.worldY += A.y * b), (A = !0)); 0 < d && ((A = (Math.sqrt_1(g * g + m * m) - 1 + this.data.offsetScaleX) * d + 1), (B.a *= A), (B.c *= A), (A = (Math.sqrt_1(k * k + n * n) - 1 + this.data.offsetScaleY) * d + 1), (B.b *= A), (B.d *= A), (A = !0)); 0 < e && ((D = GT1142.prototype.atan2_2(n, k) - GT1142.prototype.atan2_2(m, g)), D > GT1142.prototype.PI ? (D -= GT1142.prototype.PI2) : D < -GT1142.prototype.PI && (D += GT1142.prototype.PI2), (C = B.b), (F = B.d), (D = GT1142.prototype.atan2_2(F, C) + (D - GT1142.prototype.PI / 2 + p) * e), (A = Math.sqrt_1(C * C + F * F)), (B.b = GT1142.prototype.cos_1(D) * A), (B.d = GT1142.prototype.sin_1(D) * A), (A = !0)); A && (B.appliedValid = !1); } }, applyAbsoluteLocal_0: function () { var a = this.rotateMix, b = this.translateMix, d = this.scaleMix, e = this.shearMix, f = this.target; f.appliedValid || f.updateAppliedTransform_0(); for (var g = this.bones, k = 0, m = g.size; k < m; k++) { var n = g.get_1(k); n.appliedValid || n.updateAppliedTransform_0(); var p = n.arotation; if (0 != a) var q = f.arotation - p + this.data.offsetRotation, q = q - 360 * (16384 - Integer.truncate_1(16384.499999999996 - q / 360)), p = p + q * a; var r = n.ax, t = n.ay; 0 != b && ((r += (f.ax - r + this.data.offsetX) * b), (t += (f.ay - t + this.data.offsetY) * b)); var u = n.ascaleX, B = n.ascaleY; 0 < d && (0 != u && (u = (u + (f.ascaleX - u + this.data.offsetScaleX) * d) / u), 0 != B && (B = (B + (f.ascaleY - B + this.data.offsetScaleY) * d) / B)); var A = n.ashearY; 0 < e && ((q = f.ashearY - A + this.data.offsetShearY), (q -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - q / 360))), (n.shearY += q * e)); n.updateWorldTransform_7(r, t, p, u, B, n.ashearX, A); } }, applyRelativeLocal_0: function () { var a = this.rotateMix, b = this.translateMix, d = this.scaleMix, e = this.shearMix, f = this.target; f.appliedValid || f.updateAppliedTransform_0(); for (var g = this.bones, k = 0, m = g.size; k < m; k++) { var n = g.get_1(k); n.appliedValid || n.updateAppliedTransform_0(); var p = n.arotation; 0 != a && (p += (f.arotation + this.data.offsetRotation) * a); var q = n.ax, r = n.ay; 0 != b && ((q += (f.ax + this.data.offsetX) * b), (r += (f.ay + this.data.offsetY) * b)); var t = n.ascaleX, u = n.ascaleY; 0 < d && ((t *= (f.ascaleX - 1 + this.data.offsetScaleX) * d + 1), (u *= (f.ascaleY - 1 + this.data.offsetScaleY) * d + 1)); var B = n.ashearY; 0 < e && (B += (f.ashearY + this.data.offsetShearY) * e); n.updateWorldTransform_7(q, r, p, t, u, n.ashearX, B); } }, getOrder_0: function () { return this.data.order; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { this.target = a; }, getRotateMix_0: function () { return this.rotateMix; }, setRotateMix_1: function (a) { this.rotateMix = a; }, getTranslateMix_0: function () { return this.translateMix; }, setTranslateMix_1: function (a) { this.translateMix = a; }, getScaleMix_0: function () { return this.scaleMix; }, setScaleMix_1: function (a) { this.scaleMix = a; }, getShearMix_0: function () { return this.shearMix; }, setShearMix_1: function (a) { this.shearMix = a; }, getData_0: function () { return this.data; }, toString: function () { return this.data.name; }, }, "GT978", [GT1430] ), GT770 = Class.extend( { initialConstructor_0: function () { this.name = null; this.order = 0; this.target = this.bones = null; this.offsetShearY = this.offsetScaleY = this.offsetScaleX = this.offsetY = this.offsetX = this.offsetRotation = this.shearMix = this.scaleMix = this.translateMix = this.rotateMix = 0; this.local = this.relative = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.name = null; this.order = 0; this.target = this.bones = null; this.offsetShearY = this.offsetScaleY = this.offsetScaleX = this.offsetY = this.offsetX = this.offsetRotation = this.shearMix = this.scaleMix = this.translateMix = this.rotateMix = 0; this.local = this.relative = !1; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.name = a; this.bones = new GT1497(); }, getName_0: function () { return this.name; }, getOrder_0: function () { return this.order; }, setOrder_1: function (a) { this.order = a; }, getBones_0: function () { return this.bones; }, getTarget_0: function () { return this.target; }, setTarget_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: target cannot be null."); this.target = a; }, getRotateMix_0: function () { return this.rotateMix; }, setRotateMix_1: function (a) { this.rotateMix = a; }, getTranslateMix_0: function () { return this.translateMix; }, setTranslateMix_1: function (a) { this.translateMix = a; }, getScaleMix_0: function () { return this.scaleMix; }, setScaleMix_1: function (a) { this.scaleMix = a; }, getShearMix_0: function () { return this.shearMix; }, setShearMix_1: function (a) { this.shearMix = a; }, getOffsetRotation_0: function () { return this.offsetRotation; }, setOffsetRotation_1: function (a) { this.offsetRotation = a; }, getOffsetX_0: function () { return this.offsetX; }, setOffsetX_1: function (a) { this.offsetX = a; }, getOffsetY_0: function () { return this.offsetY; }, setOffsetY_1: function (a) { this.offsetY = a; }, getOffsetScaleX_0: function () { return this.offsetScaleX; }, setOffsetScaleX_1: function (a) { this.offsetScaleX = a; }, getOffsetScaleY_0: function () { return this.offsetScaleY; }, setOffsetScaleY_1: function (a) { this.offsetScaleY = a; }, getOffsetShearY_0: function () { return this.offsetShearY; }, setOffsetShearY_1: function (a) { this.offsetShearY = a; }, getRelative_0: function () { return this.relative; }, setRelative_1: function (a) { this.relative = a; }, getLocal_0: function () { return this.local; }, setLocal_1: function (a) { this.local = a; }, toString: function () { return this.name; }, }, "GT770", [] ), GT565 = GT1296.extend( { initialConstructor_0: function () { this.transformConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.transformConstraintIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT565.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.transformConstraint << 24) + this.transformConstraintIndex; }, setTransformConstraintIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.transformConstraintIndex = a; }, getTransformConstraintIndex_0: function () { return this.transformConstraintIndex; }, getFrames_0: function () { return this.frames; }, setFrame_6: function (a, b, d, e, f, g) { a *= GT565.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT565.prototype.ROTATE] = d; this.frames[a + GT565.prototype.TRANSLATE] = e; this.frames[a + GT565.prototype.SCALE] = f; this.frames[a + GT565.prototype.SHEAR] = g; }, apply_7: function (a, b, d, e, f, g, k) { a = a.transformConstraints.get_1(this.transformConstraintIndex); var m = this.frames; if (d < m[0]) switch (((d = a.data), g)) { case GT1565.prototype.setup: a.rotateMix = d.rotateMix; a.translateMix = d.translateMix; a.scaleMix = d.scaleMix; a.shearMix = d.shearMix; break; case GT1565.prototype.current: (a.rotateMix += (d.rotateMix - a.rotateMix) * f), (a.translateMix += (d.translateMix - a.translateMix) * f), (a.scaleMix += (d.scaleMix - a.scaleMix) * f), (a.shearMix += (d.shearMix - a.shearMix) * f); } else { var n; if (d >= m[m.length - GT565.prototype.ENTRIES]) (d = m.length), (b = m[d + GT565.prototype.PREV_ROTATE]), (e = m[d + GT565.prototype.PREV_TRANSLATE]), (k = m[d + GT565.prototype.PREV_SCALE]), (n = m[d + GT565.prototype.PREV_SHEAR]); else { var p = GT1496.prototype.binarySearch_3(m, d, GT565.prototype.ENTRIES); b = m[p + GT565.prototype.PREV_ROTATE]; e = m[p + GT565.prototype.PREV_TRANSLATE]; k = m[p + GT565.prototype.PREV_SCALE]; n = m[p + GT565.prototype.PREV_SHEAR]; var q = m[p]; d = this.getCurvePercent_2(Math.div(p, GT565.prototype.ENTRIES) - 1, 1 - (d - q) / (m[p + GT565.prototype.PREV_TIME] - q)); b += (m[p + GT565.prototype.ROTATE] - b) * d; e += (m[p + GT565.prototype.TRANSLATE] - e) * d; k += (m[p + GT565.prototype.SCALE] - k) * d; n += (m[p + GT565.prototype.SHEAR] - n) * d; } g == GT1565.prototype.setup ? ((d = a.data), (a.rotateMix = d.rotateMix + (b - d.rotateMix) * f), (a.translateMix = d.translateMix + (e - d.translateMix) * f), (a.scaleMix = d.scaleMix + (k - d.scaleMix) * f), (a.shearMix = d.shearMix + (n - d.shearMix) * f)) : ((a.rotateMix += (b - a.rotateMix) * f), (a.translateMix += (e - a.translateMix) * f), (a.scaleMix += (k - a.scaleMix) * f), (a.shearMix += (n - a.shearMix) * f)); } }, }, "GT565", [] ); GT565.prototype.ENTRIES = 5; GT565.prototype.PREV_TIME = -5; GT565.prototype.PREV_ROTATE = -4; GT565.prototype.PREV_TRANSLATE = -3; GT565.prototype.PREV_SCALE = -2; GT565.prototype.PREV_SHEAR = -1; GT565.prototype.ROTATE = 1; GT565.prototype.TRANSLATE = 2; GT565.prototype.SCALE = 3; GT565.prototype.SHEAR = 4; var GT1295 = Class.extend( { initialConstructor_0: function () { this.name = null; this.id = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.name = null; this.id = 0; this.name = a; this.id = b; }, getName_0: function () { return this.name; }, getId_0: function () { return this.id; }, }, "GT1295", [] ); GT1295.prototype.valueOf_1 = function (a) { for (var b = 0; b < GT1295.prototype.values.length; ++b) if (GT1295.prototype.values[b].name.equals_1(a)) return GT1295.prototype.values[b]; return null; }; GT1295.prototype.ID_NORMAL = 0; GT1295.prototype.ID_ONLY_TRANSLATION = 1; GT1295.prototype.ID_NO_ROTATION_OR_REFLECTION = 2; GT1295.prototype.ID_NO_SCALE = 3; GT1295.prototype.ID_NO_SCALE_OR_REFLECTION = 4; GT1295.prototype.normal = new GT1295("normal", GT1295.prototype.ID_NORMAL); GT1295.prototype.onlyTranslation = new GT1295("onlyTranslation", GT1295.prototype.ID_ONLY_TRANSLATION); GT1295.prototype.noRotationOrReflection = new GT1295("noRotationOrReflection", GT1295.prototype.ID_NO_ROTATION_OR_REFLECTION); GT1295.prototype.noScale = new GT1295("noScale", GT1295.prototype.ID_NO_SCALE); GT1295.prototype.noScaleOrReflection = new GT1295("noScaleOrReflection", GT1295.prototype.ID_NO_SCALE_OR_REFLECTION); GT1295.prototype.values = [GT1295.prototype.normal, GT1295.prototype.onlyTranslation, GT1295.prototype.noRotationOrReflection, GT1295.prototype.noScale, GT1295.prototype.noScaleOrReflection]; var GT1090 = GT1296.extend( { initialConstructor_0: function () { this.boneIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.boneIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT1090.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.translate << 24) + this.boneIndex; }, setBoneIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.boneIndex = a; }, getBoneIndex_0: function () { return this.boneIndex; }, getFrames_0: function () { return this.frames; }, setFrame_4: function (a, b, d, e) { a *= GT1090.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT1090.prototype.X] = d; this.frames[a + GT1090.prototype.Y] = e; }, apply_7: function (a, b, d, e, f, g, k) { a = a.bones.get_1(this.boneIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.x = a.data.x; a.y = a.data.y; break; case GT1565.prototype.current: (a.x += (a.data.x - a.x) * f), (a.y += (a.data.y - a.y) * f); } else { if (d >= b[b.length - GT1090.prototype.ENTRIES]) (e = b[b.length + GT1090.prototype.PREV_X]), (k = b[b.length + GT1090.prototype.PREV_Y]); else { var m = GT1496.prototype.binarySearch_3(b, d, GT1090.prototype.ENTRIES); e = b[m + GT1090.prototype.PREV_X]; k = b[m + GT1090.prototype.PREV_Y]; var n = b[m]; d = this.getCurvePercent_2(Math.div(m, GT1090.prototype.ENTRIES) - 1, 1 - (d - n) / (b[m + GT1090.prototype.PREV_TIME] - n)); e += (b[m + GT1090.prototype.X] - e) * d; k += (b[m + GT1090.prototype.Y] - k) * d; } g == GT1565.prototype.setup ? ((a.x = a.data.x + e * f), (a.y = a.data.y + k * f)) : ((a.x += (a.data.x + e - a.x) * f), (a.y += (a.data.y + k - a.y) * f)); } }, }, "GT1090", [] ); GT1090.prototype.ENTRIES = 3; GT1090.prototype.PREV_TIME = -3; GT1090.prototype.PREV_X = -2; GT1090.prototype.PREV_Y = -1; GT1090.prototype.X = 1; GT1090.prototype.Y = 2; var GT1145 = GT1296.extend( { initialConstructor_0: function () { this.slotIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT1145.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.twoColor << 24) + this.slotIndex; }, setSlotIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.slotIndex = a; }, getSlotIndex_0: function () { return this.slotIndex; }, getFrames_0: function () { return this.frames; }, setFrame_9: function (a, b, d, e, f, g, k, m, n) { a *= GT1145.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT1145.prototype.R] = d; this.frames[a + GT1145.prototype.G] = e; this.frames[a + GT1145.prototype.B] = f; this.frames[a + GT1145.prototype.A] = g; this.frames[a + GT1145.prototype.R2] = k; this.frames[a + GT1145.prototype.G2] = m; this.frames[a + GT1145.prototype.B2] = n; }, apply_7: function (a, b, d, e, f, g, k) { a = a.slots.get_1(this.slotIndex); var m = this.frames; if (d < m[0]) switch (g) { case GT1565.prototype.setup: a.color.set_1(a.data.color); a.darkColor.set_1(a.data.darkColor); break; case GT1565.prototype.current: (d = a.color), (m = a.darkColor), (g = a.data.color), (a = a.data.darkColor), d.add_4((g.getRed_0() - d.getRed_0()) * f, (g.getGreen_0() - d.getGreen_0()) * f, (g.getBlue_0() - d.getBlue_0()) * f, (g.getAlpha_0() - d.getAlpha_0()) * f), m.add_4((a.getRed_0() - m.getRed_0()) * f, (a.getGreen_0() - m.getGreen_0()) * f, (a.getBlue_0() - m.getBlue_0()) * f, 0); } else { var n, p, q, r; if (d >= m[m.length - GT1145.prototype.ENTRIES]) (d = m.length), (b = m[d + GT1145.prototype.PREV_R]), (e = m[d + GT1145.prototype.PREV_G]), (k = m[d + GT1145.prototype.PREV_B]), (n = m[d + GT1145.prototype.PREV_A]), (p = m[d + GT1145.prototype.PREV_R2]), (q = m[d + GT1145.prototype.PREV_G2]), (r = m[d + GT1145.prototype.PREV_B2]); else { var t = GT1496.prototype.binarySearch_3(m, d, GT1145.prototype.ENTRIES); b = m[t + GT1145.prototype.PREV_R]; e = m[t + GT1145.prototype.PREV_G]; k = m[t + GT1145.prototype.PREV_B]; n = m[t + GT1145.prototype.PREV_A]; p = m[t + GT1145.prototype.PREV_R2]; q = m[t + GT1145.prototype.PREV_G2]; r = m[t + GT1145.prototype.PREV_B2]; var u = m[t]; d = this.getCurvePercent_2(Math.div(t, GT1145.prototype.ENTRIES) - 1, 1 - (d - u) / (m[t + GT1145.prototype.PREV_TIME] - u)); b += (m[t + GT1145.prototype.R] - b) * d; e += (m[t + GT1145.prototype.G] - e) * d; k += (m[t + GT1145.prototype.B] - k) * d; n += (m[t + GT1145.prototype.A] - n) * d; p += (m[t + GT1145.prototype.R2] - p) * d; q += (m[t + GT1145.prototype.G2] - q) * d; r += (m[t + GT1145.prototype.B2] - r) * d; } 1 == f ? (a.color.set_4(b, e, k, n), a.darkColor.set_4(p, q, r, 1)) : ((d = a.color), (m = a.darkColor), g == GT1565.prototype.setup && (d.set_1(a.data.color), m.set_1(a.data.darkColor)), d.add_4((b - d.getRed_0()) * f, (e - d.getGreen_0()) * f, (k - d.getBlue_0()) * f, (n - d.getAlpha_0()) * f), m.add_4((p - m.getRed_0()) * f, (q - m.getGreen_0()) * f, (r - m.getBlue_0()) * f, 0)); } }, }, "GT1145", [] ); GT1145.prototype.ENTRIES = 8; GT1145.prototype.PREV_TIME = -8; GT1145.prototype.PREV_R = -7; GT1145.prototype.PREV_G = -6; GT1145.prototype.PREV_B = -5; GT1145.prototype.PREV_A = -4; GT1145.prototype.PREV_R2 = -3; GT1145.prototype.PREV_G2 = -2; GT1145.prototype.PREV_B2 = -1; GT1145.prototype.R = 1; GT1145.prototype.G = 2; GT1145.prototype.B = 3; GT1145.prototype.A = 4; GT1145.prototype.R2 = 5; GT1145.prototype.G2 = 6; GT1145.prototype.B2 = 7; var GT803 = Class.extend( { initialConstructor_0: function () { this.clippingPolygons = this.clipAttachment = this.scratch = this.clippedTriangles = this.clippedVertices = this.clipOutput = this.clippingPolygon = this.triangulator = null; this.triangulator = new GT1032(); this.clippingPolygon = new GT1176(); this.clipOutput = new GT1176(128); this.clippedVertices = new GT1176(128); this.clippedTriangles = new GT1346(128); this.scratch = new GT1176(); }, clipStart_2: function (a, b) { if (null != this.clipAttachment) return 0; var d = b.getWorldVerticesLength_0(); if (6 > d) return 0; this.clipAttachment = b; var e = this.clippingPolygon.setSize_1(d); b.computeWorldVertices_6(a, 0, d, e, 0, 2); this.makeClockwise_1(this.clippingPolygon); d = this.triangulator.triangulate_1(this.clippingPolygon); this.clippingPolygons = this.triangulator.decompose_2(this.clippingPolygon, d); for (d = 0; d < this.clippingPolygons.size; ++d) (e = this.clippingPolygons.get_1(d)), this.makeClockwise_1(e), e.add_1(e.items[0]), e.add_1(e.items[1]); return this.clippingPolygons.size; }, clipEnd_1: function (a) { null != this.clipAttachment && this.clipAttachment.getEndSlot_0() == a.getData_0() && this.clipEnd_0(); }, clipEnd_0: function () { null != this.clipAttachment && ((this.clippingPolygons = this.clipAttachment = null), this.clippedVertices.clear_0(), this.clippedTriangles.clear_0(), this.clippingPolygon.clear_0()); }, isClipping_0: function () { return null != this.clipAttachment; }, clipTriangles_9: function (a, b, d, e, f, g, k, m, n) { b = this.clipOutput; var p = this.clippedVertices, q = this.clippedTriangles, r = this.clippingPolygons.items, t = this.clippingPolygons.size, u = 0; p.clear_0(); q.clear_0(); for (var B = 0; B < e; B += 3) for ( var A = d[B] << 1, C = a[A], E = a[A + 1], F = f[A], D = f[A + 1], A = d[B + 1] << 1, H = a[A], I = a[A + 1], L = f[A], J = f[A + 1], A = d[B + 2] << 1, M = a[A], N = a[A + 1], P = f[A], A = f[A + 1], O = 0; O < t; O++ ) { var K = p.size; if (this.clip_8(C, E, H, I, M, N, r[O], b)) { var Q = b.size; if (0 != Q) { for (var S = I - N, T = M - H, R = C - M, V = N - E, Z = 1 / (S * R + T * (E - N)), W = Q >> 1, ba = b.items, U = p.setSize_1(K + 8 * W), X = 0; X < Q; X += 2) { var Y = ba[X], aa = ba[X + 1]; U[K] = Y; U[K + 1] = aa; U[K + 2] = g; U[K + 3] = k; U[K + 4] = m; U[K + 5] = n; var K = K + 6, Y = Y - M, ca = aa - N, aa = (S * Y + T * ca) * Z, Y = (V * Y + R * ca) * Z, ca = 1 - aa - Y; U[K] = F * aa + L * Y + P * ca; U[K + 1] = D * aa + J * Y + A * ca; K += 2; } K = q.size; Q = q.setSize_1(K + 3 * (W - 2)); W--; for (X = 1; X < W; X++) (Q[K] = u), (Q[K + 1] = Integer.truncate_1(u + X)), (Q[K + 2] = Integer.truncate_1(u + X + 1)), (K += 3); u += W + 1; } } else { U = p.setSize_1(K + 24); U[K] = C; U[K + 1] = E; U[K + 2] = g; U[K + 3] = k; U[K + 4] = m; U[K + 5] = n; U[K + 6] = F; U[K + 7] = D; U[K + 8] = H; U[K + 9] = I; U[K + 10] = g; U[K + 11] = k; U[K + 12] = m; U[K + 13] = n; U[K + 14] = L; U[K + 15] = J; U[K + 16] = M; U[K + 17] = N; U[K + 18] = g; U[K + 19] = k; U[K + 20] = m; U[K + 21] = n; U[K + 22] = P; U[K + 23] = A; K = q.size; Q = q.setSize_1(K + 3); Q[K] = u; Q[K + 1] = Integer.truncate_1(u + 1); Q[K + 2] = Integer.truncate_1(u + 2); u += 3; break; } } }, clip_8: function (a, b, d, e, f, g, k, m) { var n = m, p = !1, q = null; 2 <= k.size % 4 ? ((q = m), (m = this.scratch)) : (q = this.scratch); q.clear_0(); q.add_1(a); q.add_1(b); q.add_1(d); q.add_1(e); q.add_1(f); q.add_1(g); q.add_1(a); q.add_1(b); m.clear_0(); a = k.items; k = k.size - 4; for (b = 0; ; b += 2) { d = a[b]; e = a[b + 1]; f = a[b + 2]; g = a[b + 3]; for (var r = d - f, t = e - g, u = q.items, B = q.size - 2, A = m.size, C = 0; C < B; C += 2) { var E = u[C], F = u[C + 1], D = u[C + 2], H = u[C + 3], I = 0 < r * (H - g) - t * (D - f); if (0 < r * (F - g) - t * (E - f)) { if (I) { m.add_1(D); m.add_1(H); continue; } p = H - F; I = D - E; p = (I * (e - F) - p * (d - E)) / (p * (f - d) - I * (g - e)); m.add_1(d + (f - d) * p); m.add_1(e + (g - e) * p); } else I && ((p = H - F), (I = D - E), (p = (I * (e - F) - p * (d - E)) / (p * (f - d) - I * (g - e))), m.add_1(d + (f - d) * p), m.add_1(e + (g - e) * p), m.add_1(D), m.add_1(H)); p = !0; } if (A == m.size) return n.clear_0(), !0; m.add_1(m.items[0]); m.add_1(m.items[1]); if (b == k) break; d = m; m = q; m.clear_0(); q = d; } n != m ? (n.clear_0(), n.addAll_3(m.items, 0, m.size - 2)) : n.setSize_1(n.size - 2); return p; }, getClippedVertices_0: function () { return this.clippedVertices; }, getClippedTriangles_0: function () { return this.clippedTriangles; }, }, "GT803", [] ); GT803.prototype.makeClockwise_1 = function (a) { var b = a.items, d = a.size, e = b[d - 2] * b[1] - b[0] * b[d - 1], f, g, k, m; a = 0; for (var n = d - 3; a < n; a += 2) (f = b[a]), (g = b[a + 1]), (k = b[a + 2]), (m = b[a + 3]), (e += f * m - k * g); if (!(0 > e)) for (a = 0, e = d - 2, n = d >> 1; a < n; a += 2) (d = b[a]), (f = b[a + 1]), (g = e - a), (b[a] = b[g]), (b[a + 1] = b[g + 1]), (b[g] = d), (b[g + 1] = f); }; var GT1033 = GT1541.extend( { initialConstructor_0: function () { this.skeletonData = null; GT1541.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.skeletonData = null; GT1541.prototype.initialConstructor_0.call(this); this.skeletonData = a; }, initialConstructor_2: function (a, b) { this.skeletonData = null; GT1541.prototype.initialConstructor_1.call(this, b); this.skeletonData = a; }, initialConstructor_3: function (a, b, d) { this.skeletonData = null; GT1541.prototype.initialConstructor_2.call(this, b, d); this.skeletonData = a; }, newObject_0: function () { return new GT1542(this.skeletonData); }, }, "GT1033", [] ), GT1142 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1142", [] ); GT1142.prototype.atan2_2 = function (a, b) { return Math.atan2_2(a, b); }; GT1142.prototype.sin_1 = function (a) { return Math.sin_1(a); }; GT1142.prototype.cos_1 = function (a) { return Math.cos_1(a); }; GT1142.prototype.sinDeg_1 = function (a) { return Math.sin_1(a * GT1142.prototype.degRad); }; GT1142.prototype.cosDeg_1 = function (a) { return Math.cos_1(a * GT1142.prototype.degRad); }; GT1142.prototype.PI = 3.1415927; GT1142.prototype.PI2 = 2 * GT1142.prototype.PI; GT1142.prototype.radiansToDegrees = 180 / GT1142.prototype.PI; GT1142.prototype.radDeg = GT1142.prototype.radiansToDegrees; GT1142.prototype.degreesToRadians = GT1142.prototype.PI / 180; GT1142.prototype.degRad = GT1142.prototype.degreesToRadians; var GT1032 = Class.extend( { initialConstructor_0: function () { this.polygonIndicesPool = this.polygonPool = this.triangles = this.isConcaveArray = this.indicesArray = this.convexPolygonsIndices = this.convexPolygons = null; this.convexPolygons = new GT1497(); this.convexPolygonsIndices = new GT1497(); this.indicesArray = new GT1346(); this.isConcaveArray = new GT1143(); this.triangles = new GT1346(); this.polygonPool = new GT1091(); this.polygonIndicesPool = new GT721(); }, triangulate_1: function (a) { var b = a.items; a = a.size >> 1; var d = this.indicesArray; d.clear_0(); for (var e = d.setSize_1(a), f = 0; f < a; f++) e[f] = f; for (var g = this.isConcaveArray, k = g.setSize_1(a), f = 0, m = a; f < m; ++f) k[f] = this.isConcave_4(f, a, b, e); m = this.triangles; m.clear_0(); for (m.ensureCapacity_1(Math.max_2(0, a - 2) << 2); 3 < a; ) { for (var n = a - 1, f = 0, p = 1; ; ) { var q = !1; if (!k[f]) { for (var r = e[n] << 1, t = e[f] << 1, u = e[p] << 1, B = b[r], r = b[r + 1], A = b[t], t = b[t + 1], C = b[u], u = b[u + 1], E = (p + 1) % a; !q && E != n; E = (E + 1) % a) if (k[E]) { var F = e[E] << 1, D = b[F], F = b[F + 1]; if (this.positiveArea_6(C, u, B, r, D, F) && this.positiveArea_6(B, r, A, t, D, F) && this.positiveArea_6(A, t, C, u, D, F)) { q = !0; break; } } if (!q) break; } if (0 == p) { do { if (!k[f]) break; f--; } while (0 < f); break; } n = f; f = p; p = (p + 1) % a; } m.add_1(e[(a + f - 1) % a]); m.add_1(e[f]); m.add_1(e[(f + 1) % a]); d.removeIndex_1(f); g.removeIndex_1(f); a--; n = (a + f - 1) % a; f = f == a ? 0 : f; k[n] = this.isConcave_4(n, a, b, e); k[f] = this.isConcave_4(f, a, b, e); } 3 == a && (m.add_1(e[2]), m.add_1(e[0]), m.add_1(e[1])); return m; }, decompose_2: function (a, b) { var d = a.items, e = this.convexPolygons; this.polygonPool.freeAll_1(e); e.clear_0(); var f = this.convexPolygonsIndices; this.polygonIndicesPool.freeAll_1(f); f.clear_0(); var g = this.polygonIndicesPool.obtain_0(); g.clear_0(); var k = this.polygonPool.obtain_0(); k.clear_0(); for (var m = -1, n = 0, p = b.items, q = 0, r = b.size; q < r; q += 3) { var t = p[q] << 1, u = p[q + 1] << 1, B = p[q + 2] << 1, A = d[t], C = d[t + 1], E = d[u], F = d[u + 1], D = d[B], H = d[B + 1], I = !1; if (m == t) { var L = k.size - 4, J = k.items, L = this.winding_6(J[L], J[L + 1], J[L + 2], J[L + 3], D, H), J = this.winding_6(D, H, J[0], J[1], J[2], J[3]); L == n && J == n && (k.add_1(D), k.add_1(H), g.add_1(B), (I = !0)); } I || (0 < k.size ? (e.add_1(k), f.add_1(g)) : (this.polygonPool.free_1(k), this.polygonIndicesPool.free_1(g)), (k = this.polygonPool.obtain_0()), k.clear_0(), k.add_1(A), k.add_1(C), k.add_1(E), k.add_1(F), k.add_1(D), k.add_1(H), (g = this.polygonIndicesPool.obtain_0()), g.clear_0(), g.add_1(t), g.add_1(u), g.add_1(B), (n = this.winding_6(A, C, E, F, D, H)), (m = t)); } 0 < k.size && (e.add_1(k), f.add_1(g)); q = 0; for (r = e.size; q < r; q++) if (((g = f.get_1(q)), 0 != g.size)) for ( d = g.get_1(0), m = g.get_1(g.size - 1), k = e.get_1(q), L = k.size - 4, J = k.items, n = J[L], p = J[L + 1], t = J[L + 2], u = J[L + 3], B = J[0], A = J[1], C = J[2], E = J[3], F = this.winding_6(n, p, t, u, B, A), I = 0; I < r; I++ ) if (I != q) { var M = f.get_1(I); if (3 == M.size) { var L = M.get_1(0), J = M.get_1(1), N = M.get_1(2), P = e.get_1(I), D = P.get_1(P.size - 2), H = P.get_1(P.size - 1); L == d && J == m && ((L = this.winding_6(n, p, t, u, D, H)), (J = this.winding_6(D, H, B, A, C, E)), L == F && J == F && (P.clear_0(), M.clear_0(), k.add_1(D), k.add_1(H), g.add_1(N), (n = t), (p = u), (t = D), (u = H), (I = 0))); } } for (q = e.size - 1; 0 <= q; q--) (k = e.get_1(q)), 0 == k.size && (e.removeIndex_1(q), this.polygonPool.free_1(k), (g = f.removeIndex_1(q)), this.polygonIndicesPool.free_1(g)); return e; }, }, "GT1032", [] ), GT1091 = GT1541.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_0.call(this); }, newObject_0: function () { return new GT1176(16); }, }, "GT1091", [] ), GT721 = GT1541.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_0.call(this); }, newObject_0: function () { return new GT1346(16); }, }, "GT721", [] ); GT1032.prototype.winding_6 = function (a, b, d, e, f, g) { d -= a; e -= b; return 0 <= f * e - g * d + d * b - a * e ? 1 : -1; }; GT1032.prototype.positiveArea_6 = function (a, b, d, e, f, g) { return 0 <= a * (g - e) + d * (b - g) + f * (e - b); }; GT1032.prototype.isConcave_4 = function (a, b, d, e) { var f = e[(b + a - 1) % b] << 1, g = e[a] << 1; a = e[(a + 1) % b] << 1; return !this.positiveArea_6(d[f], d[f + 1], d[g], d[g + 1], d[a], d[a + 1]); }; var GT611 = Class.extend( { initialConstructor_0: function () { this.y = this.x = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.y = this.x = 0; this.x = a; this.y = b; }, begin_1: function (a) {}, transform_4: function (a, b, d, e) { a.x += GT1294.prototype.randomTriangular_2(-this.x, this.y); a.y += GT1294.prototype.randomTriangular_2(-this.x, this.y); }, end_0: function () {}, setJitter_2: function (a, b) { this.x = a; this.y = b; }, setJitterX_1: function (a) { this.x = a; }, setJitterY_1: function (a) { this.y = a; }, }, "GT611", [GT1327] ), GT664 = Class.extend( { initialConstructor_0: function () { this.angle = this.radius = this.worldY = this.worldX = 0; this.interpolation = null; this.centerY = this.centerX = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.angle = this.radius = this.worldY = this.worldX = 0; this.interpolation = null; this.centerY = this.centerX = 0; this.interpolation = GT1034.prototype.pow2Out; this.radius = a; }, begin_1: function (a) { this.worldX = a.getX_0() + this.centerX; this.worldY = a.getY_0() + this.centerY; }, transform_4: function (a, b, d, e) { b = a.x - this.worldX; d = a.y - this.worldY; e = Math.sqrt_1(b * b + d * d); if (e < this.radius) { var f = this.interpolation.apply_3(0, this.angle, (this.radius - e) / this.radius); e = GT1142.prototype.cos_1(f); f = GT1142.prototype.sin_1(f); a.x = e * b - f * d + this.worldX; a.y = f * b + e * d + this.worldY; } }, end_0: function () {}, setRadius_1: function (a) { this.radius = a; }, setCenter_2: function (a, b) { this.centerX = a; this.centerY = b; }, setCenterX_1: function (a) { this.centerX = a; }, setCenterY_1: function (a) { this.centerY = a; }, setAngle_1: function (a) { this.angle = a * GT1294.prototype.degRad; }, getInterpolation_0: function () { return this.interpolation; }, setInterpolation_1: function (a) { this.interpolation = a; }, }, "GT664", [GT1327] ), GT771 = Class.extend( { initialConstructor_0: function () { this.mInternalFinishNotificationCallBack = this.mFinishNotifications = this.mStartNotifications = this.mVideoViewers = this.mVideoPlayers = this.mTimer = null; this.mRepetitions = this.mVideoRepeatStartPosition = this.mVideoStartPosition = 0; this.mDestroyed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mInternalFinishNotificationCallBack = this.mFinishNotifications = this.mStartNotifications = this.mVideoViewers = this.mVideoPlayers = this.mTimer = null; this.mRepetitions = this.mVideoRepeatStartPosition = this.mVideoStartPosition = 0; this.mDestroyed = !1; this.mTimer = a; this.mVideoPlayers = new java_util_JavaScriptVector(); this.mVideoViewers = new java_util_JavaScriptVector(); this.mStartNotifications = new java_util_JavaScriptVector(); this.mFinishNotifications = new java_util_JavaScriptVector(); this.mVideoRepeatStartPosition = this.mVideoStartPosition = 0; this.mRepetitions = 1; }, addVideo_6: function (a, b, d, e, f, g) { for (var k = null, m = 0; m < this.mVideoPlayers.size_0(); ++m) if (null != this.mVideoPlayers.elementAt_1(m) && this.mVideoPlayers.elementAt_1(m).getClip_0().equals_1(b)) { k = this.mVideoPlayers.elementAt_1(m); break; } null == k ? ((a = new GT1336(a, d, e, f, g, b, this.mRepetitions, 0, !1)), this.mVideoPlayers.add_1(a)) : this.mVideoViewers.add_1(new GT1352(a, d, e, k)); }, setStartPosition_1: function (a) { this.mVideoStartPosition = a; }, setRepeatStartPosition_1: function (a) { this.mVideoRepeatStartPosition = a; }, setRepetitions_1: function (a) { this.mRepetitions = a; }, addStartNotification_1: function (a) { this.mStartNotifications.addElement_1(a); }, addFinishNotification_1: function (a) { this.mFinishNotifications.addElement_1(a); }, start_0: function () { this.mDestroyed = !1; this.mInternalFinishNotificationCallBack = new GT665(this, this.mVideoPlayers.size_0(), this.mRepetitions); for (var a = 0; a < this.mVideoPlayers.size_0(); ++a) if (null != this.mVideoPlayers.elementAt_1(a)) { var b = this.mVideoPlayers.elementAt_1(a); b.addStartNotification_1(new GT722(this, b)); b.addFinishNotification_1(this.mInternalFinishNotificationCallBack); b.start_0(); } }, destroy_0: function () { this.mDestroyed = !0; this.mVideoPlayers.clear_0(); this.mVideoViewers.clear_0(); this.mStartNotifications.clear_0(); this.mFinishNotifications.clear_0(); this.mVideoViewers = this.mVideoPlayers = this.mFinishNotifications = this.mStartNotifications = null; }, fireStartNotification_0: function () { for (var a = 0; !this.mDestroyed && a < this.mStartNotifications.size_0(); a++) this.mStartNotifications.elementAt_1(a).run_0(); }, handleStartNotificationCallback_1: function (a) { if (!this.mDestroyed) { for (var b = 0, d = this.mVideoPlayers.size_0(), e = this.mVideoViewers.size_0(), f = 0; f < d; ++f) this.mVideoPlayers.elementAt_1(f).isHidden_0() && b++; if (null != a && a.isAlive_0()) { for (f = 0; f < e; ++f) { var g = this.mVideoViewers.elementAt_1(f); g.getPlayer_0() == a && g.hide_1(!0); } 0 < this.mVideoStartPosition && a.seek_1(this.mVideoStartPosition); a.pause_0(); a.hide_1(!0); } if (b >= d - 1) { this.fireStartNotification_0(); for (f = 0; f < e; ++f) (a = this.mVideoViewers.elementAt_1(f)), a.isHidden_0() && a.hide_1(!1); for (f = 0; f < d; ++f) (e = this.mVideoPlayers.elementAt_1(f)), e.hide_1(!1), e.resume_0(); } } }, fireFinishedNotification_0: function () { for (var a = 0; !this.mDestroyed && a < this.mFinishNotifications.size_0(); a++) this.mFinishNotifications.elementAt_1(a).run_0(); }, handleSingleRepetitionFinished_0: function () { for (var a = 0; !this.mDestroyed && a < this.mVideoPlayers.size_0(); ++a) if (null != this.mVideoPlayers.elementAt_1(a)) { var b = this.mVideoPlayers.elementAt_1(a); b.pause_0(); b.seek_1(this.mVideoRepeatStartPosition); b.resume_0(); b.seek_1(this.mVideoRepeatStartPosition); } }, getCurrentTime_0: function () { return this.mTimer.currentTimeMillis_0(); }, }, "GT771", [] ), GT722 = Class.extend( { initialConstructor_0: function () { this.mVideoPlayer = this.mParent = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.mVideoPlayer = this.mParent = null; this.mParent = a; this.mVideoPlayer = b; }, run_0: function () { this.mParent.handleStartNotificationCallback_1(this.mVideoPlayer); }, }, "GT722", [Runnable] ), GT665 = Class.extend( { initialConstructor_0: function () { this.mParent = null; this.mLastUpdateTime = this.mDoneRepetitions = this.mRepetition = this.mFinishedVideoPlayers = this.mVideoPlayersNumber = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.mParent = null; this.mLastUpdateTime = this.mDoneRepetitions = this.mRepetition = this.mFinishedVideoPlayers = this.mVideoPlayersNumber = 0; this.mParent = a; this.mVideoPlayersNumber = b; this.mFinishedVideoPlayers = 0; this.mRepetition = d; this.mDoneRepetitions = 0; }, run_0: function () { if (1 < this.mRepetition) { var a = this.mParent.getCurrentTime_0(); if (60 > a - this.mLastUpdateTime) return; this.mLastUpdateTime = a; } ++this.mFinishedVideoPlayers; 1 < this.mRepetition ? (++this.mDoneRepetitions, this.mDoneRepetitions == this.mRepetition ? this.mParent.fireFinishedNotification_0() : this.mDoneRepetitions < this.mRepetition && this.mParent.handleSingleRepetitionFinished_0()) : this.mFinishedVideoPlayers == this.mVideoPlayersNumber && this.mParent.fireFinishedNotification_0(); }, }, "GT665", [Runnable] ), GT1285 = Class.extend( { initialConstructor_0: function () {}, format_1: function (a) { return GT1672.prototype.doubleToStringRounded_2(a, "."); }, }, "GT1285", [] ), GT1544 = Class.extend({ initialConstructor_0: function () {} }, "GT1544", []), GT1673 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1673", [] ); GT1673.prototype.decode_1 = function (a) { for (var b = a.length_0(); 0 < b && 61 == a.charAt_1(b - 1); ) b--; for (var d = b % 4, d = [].createArray(3 * Math.div(b, 4) + (2 > d ? 0 : d - 1)).init(0), e = 0, f = 0, g = 0, k = 0; k < b; k++) { var m = GT1673.prototype.table.indexOf_1(a.charAt_1(k)); 0 > m && (m = 0); f = (f << 6) | m; g += 6; 8 <= g && ((g -= 8), (d[e++] = JSUTIL.MathUtil.castToByte((f >> g) & 255))); } return d; }; GT1673.prototype.encode_1 = function (a) { for (var b = 3 * Math.div(a.length + 2, 3), d = [].createArray(4 * Math.div(b, 3)).init(0), e = 0, f = 0, g = 0, k = 0; k < b; k++) for (f = (f << 8) | (k >= a.length ? 0 : Integer.truncate_1(a[k]) & 255), g += 8; 6 <= g; ) (g -= 6), (d[e++] = GT1673.prototype.table.charAt_1((f >> g) & 63)); for (k = 0; k < b - a.length; k++) d[e - 1 - k] = 61; return new JavaScriptString(d); }; GT1673.prototype.table = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; var GT831 = Class.extend( { initialConstructor_0: function () { this.callbackHandler = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.callbackHandler = null; this.callbackHandler = a; }, run_0: function () { this.callbackHandler.actionCompleted_0(); }, }, "GT831", [Runnable] ), GT1500 = Class.extend( { initialConstructor_0: function () { this.cards = null; this.cards = new java_util_JavaScriptVector(); }, initialConstructor_1: function (a) { GT1500.prototype.initialConstructor_0.call(this); for (var b = 0; b < a.length; b++) this.addCard_1(a[b]); }, getVector_0: function () { return this.cards; }, copy_1: function (a) { a.clearStack_0(); for (var b = 0; b < this.size_0(); b++) a.cards.addElement_1(this.cards.elementAt_1(b)); }, clearStack_0: function () { this.cards.setSize_1(0); this.modified_0(); }, modified_0: function () {}, size_0: function () { return this.cards.size_0(); }, generateFullStack_2: function (a, b) { this.cards.setSize_1(0); for (var d = 0; d < a; d++) for (var e = 0; e < GT1623.prototype.numCardsInSet_0() && (!b || e != GT1623.prototype.jokerOffset_0()); e++) this.cards.addElement_1(new GT1623(d * GT1623.prototype.numCardsInSet_0() + e)); this.modified_0(); }, generateFullStack_1: function (a) { this.generateFullStack_2(a, !1); }, generateOneCardset_2: function (a, b) { GT1650.prototype.assertExp_2(0 <= a, "setnr <0"); this.cards.setSize_1(0); for (var d = 0; d < GT1623.prototype.numCardsInSet_0() && (!b || d != GT1623.prototype.jokerOffset_0()); d++) this.cards.addElement_1(new GT1623(a * GT1623.prototype.numCardsInSet_0() + d)); this.modified_0(); }, generateOneCardset_1: function (a) { this.generateOneCardset_2(a, !1); }, transferAll_1: function (a) { this.transferTopCards_2(a, this.cards.size_0()); }, transferTopCard_1: function (a) { this.transferTopCards_2(a, 1); }, transferCard_2: function (a, b) { this.containsCard_1(b) && (this.removeCard_1(b), a.addCard_1(b)); }, transferAnyCard_3: function (a, b, d) { d = this.getAllCardsWithThisSuit_1(d); return null != d && ((b = d.getAllCardsWithThisValue_1(b)), null != b) ? (this.removeCard_1(b.getCard_1(0)), a.addCard_1(b.getCard_1(0)), !0) : !1; }, transferAnyJoker_1: function (a) { var b = this.getAllJokers_0(); return 0 < b.size_0() ? (this.removeCard_1(b.getCard_1(0)), a.addCard_1(b.getCard_1(0)), !0) : !1; }, transferTopCards_2: function (a, b) { for (var d = 0; d < b; d++) a.cards.addElement_1(this.cards.elementAt_1(this.size_0() + d - b)); this.cards.setSize_1(this.cards.size_0() - b); this.modified_0(); a.modified_0(); }, copyTopCards_2: function (a, b) { for (var d = 0; d < b; d++) a.cards.addElement_1(this.cards.elementAt_1(this.size_0() + d - b)); this.modified_0(); }, getCard_1: function (a) { return this.cards.elementAt_1(a); }, topCard_0: function () { return 0 == this.size_0() ? null : this.getCard_1(this.size_0() - 1); }, replaceTopCard_1: function (a) { this.cards.setElementAt_2(a, this.size_0() - 1); this.modified_0(); }, removeTopCard_0: function () { if (0 < this.size_0()) { var a = this.topCard_0(); this.cards.setSize_1(this.size_0() - 1); this.modified_0(); return a; } return null; }, removeTopCards_1: function (a) { 0 > a || a > this.size_0() || (this.cards.setSize_1(this.size_0() - a), this.modified_0()); }, removeCardAt_1: function (a) { var b = this.getCard_1(a); this.cards.removeElementAt_1(a); this.modified_0(); return b; }, addCard_1: function (a) { this.cards.addElement_1(a); this.modified_0(); }, addCards_1: function (a) { for (var b = 0; b < a.cards.size_0(); b++) this.cards.addElement_1(a.cards.elementAt_1(b)); this.modified_0(); }, insertCard_2: function (a, b) { this.cards.insertElementAt_2(a, b); this.modified_0(); }, removeCard_1: function (a) { (a = this.cards.removeElement_1(a)) && this.modified_0(); return a; }, removeCards_1: function (a) { for (var b = !1, d = 0; d < a.size_0(); d++) var e = this.removeCard_1(a.getCard_1(d)), b = b || e; return b; }, getCardIndex_1: function (a) { if (null == a) return -1; for (var b = 0; b < this.size_0(); b++) { var d = this.getCard_1(b); if (a.equals_1(d)) return b; } return -1; }, containsCard_1: function (a) { return -1 != this.getCardIndex_1(a); }, containsAnyCard_1: function (a) { for (var b = 0; b < a.size_0(); b++) if (-1 != this.getCardIndex_1(a.getCard_1(b))) return !0; return !1; }, containsAllCards_1: function (a) { for (var b = 0; b < a.size_0(); b++) if (-1 == this.getCardIndex_1(a.getCard_1(b))) return !1; return !0; }, containsCard_3: function (a, b, d) { a = GT1623.prototype.calculateId_3(a, b, d); for (b = 0; b < this.size_0(); b++) if (((d = this.getCard_1(b)), null != d && d.id_0() == a)) return !0; return !1; }, containsCard_2: function (a, b) { var d = this.getCards_2(a, b); return null != d && 0 < d.size_0(); }, getCards_2: function (a, b) { var d = this.getAllCardsWithThisSuit_1(a); if (null == d) return null; d = d.getAllCardsWithThisValue_1(b); return null == d ? null : d; }, containsCardOfValue_1: function (a) { for (var b = 0; b < this.size_0(); b++) { var d = this.getCard_1(b); if (null != d && !d.isJoker_0() && d.value_0() == a) return !0; } return !1; }, containsCardOfSuit_1: function (a) { for (var b = 0; b < this.size_0(); b++) { var d = this.getCard_1(b); if (null != d && !d.isJoker_0() && d.suit_0() == a) return !0; } return !1; }, containsJoker_0: function () { for (var a = 0; a < this.size_0(); a++) { var b = this.getCard_1(a); if (null != b && b.isJoker_0()) return !0; } return !1; }, moveCard_2: function (a, b) { if (!(0 > a || 0 > b || a >= this.size_0() || b >= this.size_0()) && a != b) { var d = this.getCard_1(a); this.cards.removeElementAt_1(a); this.cards.insertElementAt_2(d, b); this.modified_0(); } }, swapCards_2: function (a, b) { if (!(0 > a || a >= this.size_0() || 0 > b || b >= this.size_0() || a == b)) { if (a > b) { var d = a; a = b; b = d; } GT1650.prototype.assertExp_2(b > a, "second index must be higher"); var d = this.removeCardAt_1(b), e = this.removeCardAt_1(a); this.insertCard_2(d, a); this.insertCard_2(e, b); } }, countSuit_1: function (a) { for (var b = 0, d = 0; d < this.size_0(); d++) { var e = this.getCard_1(d); null == e || e.isJoker_0() || (e.suit_0() == a && b++); } return b; }, countValue_1: function (a) { for (var b = 0, d = 0; d < this.size_0(); d++) { var e = this.getCard_1(d); null == e || e.isJoker_0() || (e.value_0() == a && b++); } return b; }, sortByRank_0: function () { this.sortByRank_1(!0); }, sortByRank_1: function (a) { for (var b = 1; b < this.size_0(); b++) { for (var d = 0, e = this.getCard_1(b); d < b; d++) { var f = this.getCard_1(d); if (e.isJoker_0()) if (f.isJoker_0()) { if (e.id_0() < f.id_0()) break; } else break; if (!f.isJoker_0()) if (a) { if (e.rank_0() < f.rank_0()) break; if (e.rank_0() == f.rank_0() && GT1623.prototype.getSuitIdx_1(e.suit_0()) < GT1623.prototype.getSuitIdx_1(f.suit_0())) break; if (e.rank_0() == f.rank_0() && e.suit_0() == f.suit_0() && e.set_0() < f.set_0()) break; } else { if (e.rank_0() > f.rank_0()) break; if (e.rank_0() == f.rank_0() && GT1623.prototype.getSuitIdx_1(e.suit_0()) > GT1623.prototype.getSuitIdx_1(f.suit_0())) break; if (e.rank_0() == f.rank_0() && e.suit_0() == f.suit_0() && e.set_0() > f.set_0()) break; } } d != b && (this.cards.removeElementAt_1(b), this.cards.insertElementAt_2(e, d)); } this.modified_0(); }, sortBySuit_0: function () { this.sortBySuit_1(GT1623.prototype.suits); }, subStack_2: function (a, b) { for (var d = new GT1500(), e = a; e < b; e++) d.addCard_1(this.getCard_1(e)); return d; }, subStack_1: function (a) { return this.subStack_2(a, this.size_0()); }, hasSameCards_1: function (a) { if (a.size_0() != this.size_0()) return !1; for (var b = 0; b < this.size_0(); b++) if (!a.containsCard_1(this.getCard_1(b))) return !1; return !0; }, sortBySuit_1: function (a) { this.sortBySuit_2(a, !1); }, sortBySuit_2: function (a, b) { if (null != a && a.length == GT1623.prototype.numSuits_0()) { for (var d = 1; d < this.size_0(); d++) { for (var e = this.getCard_1(d), f = 0; f < d; f++) { var g = this.getCard_1(f); if (e.isJoker_0()) if (g.isJoker_0()) { if (e.id_0() < g.id_0()) break; } else break; if (!g.isJoker_0()) { if (e.suit_0() == g.suit_0()) { if (b && e.rank_0() < g.rank_0()) break; if (!b && e.rank_0() > g.rank_0()) break; } if (this.findSuit_2(a, e.suit_0()) < this.findSuit_2(a, g.suit_0())) break; } } f != d && (this.cards.removeElementAt_1(d), this.cards.insertElementAt_2(e, f)); } this.modified_0(); } }, internalAsString_1: function (a) { for (var b = "", d = 0; d < this.size_0(); d++) var e = this.getCard_1(d), b = a || null == e ? b + "?" : "" + b + e.asString_0(); return b; }, asString_1: function (a) { return this.internalAsString_1(a); }, asString_0: function () { return this.internalAsString_1(!1); }, fromString_1: function (a) { this.clearStack_0(); for (var b = 0; b < a.length_0(); b++) if (this.charIsNr_1(a.charAt_1(b))) { var d = GT1623.prototype.createFromString_1(a.substring_2(b, b + 2)); if (null == d) return; this.addCard_1(d); b++; } else 63 == a.charAt_1(b) ? this.addCard_1(new GT1623(-1)) : ((d = GT1623.prototype.createFromString_1(a.substring_2(b, b + 1))), this.addCard_1(d)); this.internalAsString_1(!1).equals_1(a) || GT1650.prototype.assertFailed_1("asstring(" + this.internalAsString_1(!1) + ") != fromstring (" + a + ") - " + this.toString() + " (Maybe different parameters in 'Card.setCardStackInfo(...) on client&server"); }, toString: function () { if (0 == this.size_0()) return "[]"; for (var a = "[", b = 0; b < this.size_0(); b++) a = b == this.size_0() - 1 ? a + (this.cards.elementAt_1(b) + "]") : a + ("" + this.cards.elementAt_1(b)); return a; }, getAllCardsWithThisValue_1: function (a) { for (var b = null, d = 0; d < this.size_0(); d++) { var e = this.getCard_1(d); e.isJoker_0() || e.value_0() != a || (null == b && (b = new GT1500()), b.addCard_1(e)); } return b; }, getAllCardsWithThisSuit_1: function (a) { for (var b = null, d = 0; d < this.size_0(); d++) { var e = this.getCard_1(d); e.isJoker_0() || e.suit_0() != a || (null == b && (b = new GT1500()), b.addCard_1(e)); } return b; }, getAllJokers_0: function () { for (var a = null, b = 0; b < this.size_0(); b++) { var d = this.getCard_1(b); d.isJoker_0() && (null == a && (a = new GT1500()), a.addCard_1(d)); } return a; }, }, "GT1500", [] ); GT1500.prototype.charIsNr_1 = function (a) { a -= 48; return 0 <= a && 9 >= a; }; GT1500.prototype.findSuit_2 = function (a, b) { for (var d = 0; d < a.length; d++) if (a[d] == b) return d; return a.length; }; GT1500.prototype.merge_2 = function (a, b) { var d = new GT1500(); a.copy_1(d); b.copyTopCards_2(d, b.size_0()); return d; }; var GT1536 = Class.extend( { initialConstructor_0: function () { this.index = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.index = 0; this.index = a; }, idx_0: function () { return this.index; }, }, "GT1536", [] ); GT1536.prototype.UNKNOWN = new GT1536(-1); var GT1501 = Class.extend( { initialConstructor_0: function () { this.index = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.index = 0; this.index = a; }, idx_0: function () { return this.index; }, }, "GT1501", [] ); GT1501.prototype.UNKNOWN = new GT1501(-1); var GT1408 = GT1536.extend( { initialConstructor_0: function () { GT1536.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1536.prototype.initialConstructor_1.call(this, a); }, toString: function () { return GT1408.prototype.readableSuits[this.idx_0()]; }, toLongString_0: function () { return this == GT1408.prototype.DIAMONDS ? "diamonds" : this == GT1408.prototype.HEARTS ? "hearts" : this == GT1408.prototype.SPADES ? "spades" : this == GT1408.prototype.CLUBS ? "clubs" : "unkown"; }, }, "GT1408", [] ); GT1408.prototype.fromString_1 = function (a) { switch (a.charAt_1(0)) { case 68: return GT1408.prototype.DIAMONDS; case 72: return GT1408.prototype.HEARTS; case 83: return GT1408.prototype.SPADES; case 67: return GT1408.prototype.CLUBS; case 100: return GT1408.prototype.DIAMONDS; case 104: return GT1408.prototype.HEARTS; case 115: return GT1408.prototype.SPADES; case 99: return GT1408.prototype.CLUBS; } return GT1536.prototype.UNKNOWN; }; GT1408.prototype.DIAMONDS = new GT1408(0); GT1408.prototype.HEARTS = new GT1408(1); GT1408.prototype.SPADES = new GT1408(2); GT1408.prototype.CLUBS = new GT1408(3); GT1408.prototype.Suits = [GT1408.prototype.DIAMONDS, GT1408.prototype.HEARTS, GT1408.prototype.SPADES, GT1408.prototype.CLUBS]; GT1408.prototype.SCHELLEN = GT1408.prototype.DIAMONDS; GT1408.prototype.LAUB = GT1408.prototype.SPADES; GT1408.prototype.EICHEL = GT1408.prototype.CLUBS; GT1408.prototype.COIN = GT1408.prototype.DIAMONDS; GT1408.prototype.CUP = GT1408.prototype.HEARTS; GT1408.prototype.SWORD = GT1408.prototype.SPADES; GT1408.prototype.readableSuits = ["D", "H", "S", "C"]; var GT1353 = GT1501.extend( { initialConstructor_0: function () { GT1501.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1501.prototype.initialConstructor_1.call(this, a); }, toString: function () { return GT1353.prototype.readableValues[this.idx_0()]; }, }, "GT1353", [] ); GT1353.prototype.fromString_1 = function (a) { switch (a.charAt_1(0)) { case 49: return GT1353.prototype.ACE; case 50: return GT1353.prototype.V2; case 51: return GT1353.prototype.V3; case 52: return GT1353.prototype.V4; case 53: return GT1353.prototype.V5; case 54: return GT1353.prototype.V6; case 55: return GT1353.prototype.V7; case 56: return GT1353.prototype.V8; case 57: return GT1353.prototype.V9; case 84: return GT1353.prototype.V10; case 74: return GT1353.prototype.JACK; case 81: return GT1353.prototype.QUEEN; case 75: return GT1353.prototype.KING; case 65: return GT1353.prototype.ACE; case 116: return GT1353.prototype.V10; case 106: return GT1353.prototype.JACK; case 113: return GT1353.prototype.QUEEN; case 107: return GT1353.prototype.KING; case 97: return GT1353.prototype.ACE; case 120: return GT1353.prototype.V10; case 88: return GT1353.prototype.V10; } return GT1501.prototype.UNKNOWN; }; GT1353.prototype.V2 = new GT1353(0); GT1353.prototype.V3 = new GT1353(1); GT1353.prototype.V4 = new GT1353(2); GT1353.prototype.V5 = new GT1353(3); GT1353.prototype.V6 = new GT1353(4); GT1353.prototype.V7 = new GT1353(5); GT1353.prototype.V8 = new GT1353(6); GT1353.prototype.V9 = new GT1353(7); GT1353.prototype.V10 = new GT1353(8); GT1353.prototype.JACK = new GT1353(9); GT1353.prototype.QUEEN = new GT1353(10); GT1353.prototype.KING = new GT1353(11); GT1353.prototype.ACE = new GT1353(12); GT1353.prototype.readableValues = "23456789TJQKA".split(""); var GT1672 = Class.extend({}, "GT1672", []); GT1672.prototype.multiplyAndMod_3 = function (a, b, d) { return Integer.truncate_1((a * b) % d); }; GT1672.prototype.stringToInt_2 = function (a, b) { if (null == a || 0 == a.length_0() || 63 == a.charAt_1(0)) return b; try { return a.startsWith_1("+") ? this.parseInt_1(a.substring_1(1).trim_0()) : this.parseInt_1(a); } catch (d) {} return b; }; GT1672.prototype.stringToInt_1 = function (a) { return this.stringToInt_2(a, 0); }; GT1672.prototype.stringToDouble_1 = function (a) { return this.stringToDouble_2(a, 0); }; GT1672.prototype.stringToDouble_2 = function (a, b) { if (null == a) return b; try { a.startsWith_1("+") && (a = a.substring_1(1).trim_0()); var d; if (a.equals_1("NaN") || a.equals_1("Infinity") || a.equals_1("")) return b; d = +a; return isNaN(d) ? b : d; } catch (e) {} return b; }; GT1672.prototype.stringToLong_1 = function (a) { return GT1672.prototype.stringToLong_2(a, 0); }; GT1672.prototype.stringToLong_2 = function (a, b) { return a.equals_1("NaN") || a.equals_1("Infinity") ? b : parseInt(a) || b; }; GT1672.prototype.stringToBoolean_1 = function (a) { return null == a ? !1 : a.equalsIgnoreCase_1("true"); }; GT1672.prototype.stringToInt_4 = function (a, b, d, e) { return a.length_0() < b + d ? e : this.stringToInt_2(a.substring_2(b, b + d), e); }; GT1672.prototype.stringToInt_3 = function (a, b, d) { return this.stringToInt_4(a, b, d, 0); }; GT1672.prototype.charToString_1 = function (a) { return String.valueOf_1(a); }; GT1672.prototype.doubleToInt_1 = function (a) { return Integer.truncate_1(0 <= a ? a + 0.5 : a - 0.5); }; GT1672.prototype.hexToInt_1 = function (a) { return /^(\-)?[0-9a-f]+$/i.test(a) ? ((a = Integer.valueOf_2(a, 16)), isNaN(a) ? 0 : a) : 0; }; GT1672.prototype.binaryToInt_1 = function (a) { return /^(\-)?[0-1]+$/.test(a) ? ((a = Integer.valueOf_2(a, 2)), isNaN(a) ? 0 : a) : 0; }; GT1672.prototype.doubleToStringRounded_1 = function (a) { return this.doubleToStringRounded_2(a, ""); }; GT1672.prototype.doubleToStringRounded_2 = function (a, b) { return 0 > a ? "-" + this.printNonnegativeIntegralDouble_2(Math.round_1(-a), b) : this.printNonnegativeIntegralDouble_2(Math.round_1(a), b); }; GT1672.prototype.printNonnegativeIntegralDouble_2 = function (a, b) { if (!(1e3 <= a && 1e100 > a)) return "" + Integer.truncate_1(a); for (var d = Math.floor_1(a / 1e3), e = "" + Integer.truncate_1(a - 1e3 * d); 3 > e.length_0(); ) e = "0" + e; return this.printNonnegativeIntegralDouble_2(d, b) + b + e; }; GT1672.prototype.parseInt_1 = function (a) { if (null == a) throw "NumberFormatException null"; var b = 0, d = !1, e = 0, f = a.length_0(), g, k, m; if (0 < f) { 45 == a.charAt_1(0) ? ((d = !0), (g = Integer.MIN_VALUE), e++) : (g = -Integer.MAX_VALUE); k = Math.div(g, 10); if (e < f) { m = this.decimaldigit_1(a.charAt_1(e++)); if (0 > m) throw "NumberFormatException unknown digit in " + a; b = -m; } for (; e < f; ) { m = this.decimaldigit_1(a.charAt_1(e++)); if (0 > m) throw "NumberFormatException unnknown digit in " + a; if (b < k) throw "NumberFormatException parse error in " + a; b *= 10; if (b < g + m) throw "NumberFormatException parse error in " + a; b -= m; } } else throw "NumberFormatException parse error in " + a; if (d) { if (1 < e) return b; throw "NumberFormatException parse error in " + a; } return -b; }; GT1672.prototype.decimaldigit_1 = function (a) { return 48 <= a && 57 >= a ? a - 48 : -1; }; var GT1409 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) {}, writeError_1: function (a) { java_lang_System.prototype.err.println_1(a); }, }, "GT1409", [] ), GT1627 = Class.extend( { initialConstructor_0: function () { this.trace = this.verbose = this.info = !1; this.printLineNumber = 0; this.setLevel_2(GT1627.prototype.LEVEL_NONE, 0); }, setLevel_2: function (a, b) { this.info = a >= GT1627.prototype.LEVEL_INFO; this.verbose = a >= GT1627.prototype.LEVEL_VERBOSE; this.trace = a >= GT1627.prototype.LEVEL_TRACE; this.printLineNumber = b; }, log_1: function (a) { this.log_impl_1(a); }, logRemote_2: function (a, b) { this.remotelog_impl_2(a, b); }, i_1: function (a) { this.info && this.log_impl_1(a); }, v_1: function (a) { this.verbose && this.log_impl_1(a); }, t_1: function (a) { this.trace && this.log_impl_1(a); }, t_0: function () { this.trace && this.log_impl_1(null); }, isPrintingLineNumber_0: function () { return 0 < this.printLineNumber; }, log_impl_1: function (a) { if (0 < this.printLineNumber || null == a) { for (var b = GT1302.prototype.getPrintableStackTrace_2(3, this.printLineNumber), d = new StringBuffer(), e = b.length - 1; 0 <= e; e--) { var f = b[e], g = f.indexOf_1(40); 0 < g && (f = f.substring_1(g)); d.append_1(f); 0 != e && d.append_1(" -> "); } d.append_1(null == a ? "" : " " + a); GT1650.prototype.log_impl_2(d.toString(), !1); } else GT1650.prototype.log_impl_2(a, !1); }, remotelog_impl_2: function (a, b) { if (0 < this.printLineNumber || null == a) { var d = GT1302.prototype.getPrintableStackTrace_2(3, 1); if (1 <= d.length) { var d = d[0], e = d.indexOf_1(40); 0 < e && (d = d.substring_1(e)); GT1650.prototype.logRemote_3(d + (null == a ? "" : " " + a), b, !1); } else null != a && GT1650.prototype.logRemote_3(a, b, !1); } else GT1650.prototype.logRemote_3(a, b, !1); }, }, "GT1627", [] ); GT1627.prototype.LEVEL_NONE = 0; GT1627.prototype.LEVEL_INFO = 1; GT1627.prototype.LEVEL_VERBOSE = 2; GT1627.prototype.LEVEL_TRACE = 3; var GT1502 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1502", [] ); GT1502.prototype.err_1 = function (a) { null != GT1502.prototype.sLogger && GT1502.prototype.sLogger.err_1(a); }; GT1502.prototype.log_1 = function (a) { null != GT1502.prototype.sLogger && GT1502.prototype.sLogger.log_1(a); }; GT1502.prototype.setInstance_1 = function (a) { GT1502.prototype.sLogger = a; }; GT1502.prototype.sLogger = null; var GT1503 = Class.extend( { initialConstructor_0: function () {}, initialConstructor_1: function (a) { _rollbarConfig.accessToken = a; initRollbar(window, document); }, addAttributes_1: function (a) { Rollbar.configure({ payload: { person: { id: a.get_1("playerID") }, client: { roomid: a.get_1("roomID"), version: a.get_1("version"), platform: "html5" } } }); }, _isNumeric: function (a) { return !isNaN(parseFloat(a)) && isFinite(a); }, log_2: function (a, b) { if (null != b) { for (var d = {}, e = 0; e + 1 < b.length; e += 2) this._isNumeric(b[e + 1]) && (b[e + 1] = parseFloat(b[e + 1])), (d[b[e]] = b[e + 1]); Rollbar.warning(a, d); } else Rollbar.warning(a); }, }, "GT1503", [GT1528] ), GT1302 = Class.extend({}, "GT1302", []); GT1302.prototype.getPrintableStackTrace_2 = function () { return ""; }; GT1302.prototype.shutdownSystemAfterError_0 = function () { console.error("System has encountered an error!"); }; var GT1566 = Class.extend( { initialConstructor_0: function () {}, compare_2: function (a, b) { if (instanceOf(a, Integer)) { if (instanceOf(b, Integer)) { var d = a.intValue_0(), e = b.intValue_0(); return d < e ? -1 : d > e ? 1 : 0; } return -1; } return "string" === typeof a ? "string" === typeof b ? a.compareTo_1(b) : instanceOf(b, Integer) ? 1 : -1 : instanceOf(a, Double) ? instanceOf(b, Double) ? ((d = a.doubleValue_0()), (e = b.doubleValue_0()), d < e ? -1 : d > e ? 1 : 0) : -1 : "string" === typeof b || instanceOf(b, Integer) || instanceOf(b, Double) ? 1 : 0; }, }, "GT1566", [java_util_Comparator] ), GT1655 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1655", [] ); GT1655.prototype.ERROR_POLICY_STRICT = 0; GT1655.prototype.ERROR_POLICY_SOFT = 1; var GT1504 = Class.extend( { initialConstructor_0: function () { this.doubles = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.doubles = null; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.doubles = [].createArray(0).init(0)); else { this.doubles = [].createArray(a.size_0()).init(0); for (var d = 0; d < this.doubles.length; d++) { var e = a.get_1(d); instanceOf(e, Double) ? (this.doubles[d] = e.doubleValue_0()) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } }, initialConstructor_1: function (a) { this.doubles = null; null == a ? (GT1650.prototype.assertFailed_1("double array is null"), (this.doubles = [].createArray(0).init(0))) : ((this.doubles = [].createArray(a.length).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, this.doubles, 0, a.length)); }, get_1: function (a) { return this.doubles[a]; }, size_0: function () { return this.doubles.length; }, toArray_0: function () { var a = [].createArray(this.doubles.length).init(0); java_lang_System.prototype.arraycopy_5(this.doubles, 0, a, 0, this.doubles.length); return a; }, toString: function () { var a = "["; 0 < this.doubles.length && (a = a + "" + this.doubles[0]); for (var b = 1; b < this.doubles.length; b++) a = a + ", " + this.doubles[b]; return a + "]"; }, }, "GT1504", [] ); GT1504.prototype.fromVector_1 = function (a) { return new GT1504(a, !0); }; var GT1595 = Class.extend( { initialConstructor_0: function () { this.ints = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.ints = null; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.ints = [].createArray(0).init(0)); else { this.ints = [].createArray(a.size_0()).init(0); for (var d = 0; d < this.ints.length; d++) { var e = a.get_1(d); instanceOf(e, Integer) ? (this.ints[d] = e.intValue_0()) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } }, initialConstructor_1: function (a) { this.ints = null; null == a ? (GT1650.prototype.assertFailed_1("int array is null"), (this.ints = [].createArray(0).init(0))) : ((this.ints = [].createArray(a.length).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, this.ints, 0, a.length)); }, get_1: function (a) { return this.ints[a]; }, size_0: function () { return this.ints.length; }, toArray_0: function () { var a = [].createArray(this.ints.length).init(0); java_lang_System.prototype.arraycopy_5(this.ints, 0, a, 0, this.ints.length); return a; }, toString: function () { var a = "["; 0 < this.ints.length && (a = a + "" + this.ints[0]); for (var b = 1; b < this.ints.length; b++) a = a + ", " + this.ints[b]; return a + "]"; }, toJSON_0: function () { return this.toString(); }, }, "GT1595", [GT1585] ); GT1595.prototype.fromVector_1 = function (a) { return new GT1595(a, !0); }; var GT1505 = Class.extend( { initialConstructor_0: function () { this.strings = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.strings = null; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.strings = [].createArray(0)); else { this.strings = [].createArray(a.size_0()); for (var d = 0; d < this.strings.length; d++) { var e = a.get_1(d); "string" === typeof e ? (this.strings[d] = e) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } }, initialConstructor_1: function (a) { this.strings = null; null == a ? (GT1650.prototype.assertFailed_1("int array is null"), (this.strings = [].createArray(0))) : ((this.strings = [].createArray(a.length)), java_lang_System.prototype.arraycopy_5(a, 0, this.strings, 0, a.length)); }, get_1: function (a) { return this.strings[a]; }, size_0: function () { return this.strings.length; }, toArray_0: function () { var a = [].createArray(this.strings.length); java_lang_System.prototype.arraycopy_5(this.strings, 0, a, 0, this.strings.length); return a; }, toString: function () { var a = "["; 0 < this.strings.length && (a = a + "" + this.strings[0]); for (var b = 1; b < this.strings.length; b++) a = a + ", " + this.strings[b]; return a + "]"; }, }, "GT1505", [] ); GT1505.prototype.fromVector_1 = function (a) { return new GT1505(a, !0); }; var GT1678 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1678", [] ), GT1662 = Class.extend( { initialConstructor_0: function () { this.json = null; this.thischaracter = this.positionofthis = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.json = null; this.thischaracter = this.positionofthis = 0; this.json = a; this.positionofthis = -1; this.readNextPrintable_0(); }, hasReachedEnd_0: function () { return 0 > this.thischaracter; }, readNextCharacter_0: function () { this.positionofthis + 1 <= this.json.length_0() && this.positionofthis++; this.positionofthis < this.json.length_0() ? (this.thischaracter = this.json.charAt_1(this.positionofthis)) : (this.thischaracter = -1); }, readNextPrintable_0: function () { for (this.readNextCharacter_0(); 0 <= this.thischaracter && 32 >= this.thischaracter; ) this.readNextCharacter_0(); }, readUntilPrintable_0: function () { 0 <= this.thischaracter && 32 >= this.thischaracter && this.readNextPrintable_0(); }, readNext_1: function (a) { var b = this.json.indexOf_2(JSUTIL.MathUtil.castToChar(a), this.positionofthis + 1); 0 > b ? (this.thischaracter = -1) : ((this.positionofthis = b), (this.thischaracter = a)); }, parseValue_0: function () { switch (this.thischaracter) { case 34: var a = this.parseString_0(); return null == a ? GT1662.prototype.INVALIDVALUE : a; case 123: return (a = this.parseObject_0()), null == a ? GT1662.prototype.INVALIDVALUE : a; case 91: return (a = this.parseList_0()), null == a ? GT1662.prototype.INVALIDVALUE : a; case 110: return this.parseKeyword_1("null") ? null : GT1662.prototype.INVALIDVALUE; case 116: return this.parseKeyword_1("true") ? Boolean.prototype.TRUE : GT1662.prototype.INVALIDVALUE; case 102: return this.parseKeyword_1("false") ? Boolean.prototype.FALSE : GT1662.prototype.INVALIDVALUE; } a = this.parseNumber_0(); return null == a ? GT1662.prototype.INVALIDVALUE : a; }, parseObject_0: function () { if (!this.parseKeyword_1("{")) return null; var a = new java_util_JavaScriptHashtable(); if (125 == this.thischaracter) return this.readNextPrintable_0(), a; for (;;) { var b = this.parseString_0(); if (null == b || !this.parseKeyword_1(":")) return null; var d = this.parseValue_0(); if (d == GT1662.prototype.INVALIDVALUE) return null; null != d && a.put_2(b, d); if (125 == this.thischaracter) { this.readNextPrintable_0(); break; } if (!this.parseKeyword_1(",")) return null; if (125 == this.thischaracter) { this.readNextPrintable_0(); break; } } return a; }, parseList_0: function () { if (!this.parseKeyword_1("[")) return null; if (93 == this.thischaracter) return this.readNextPrintable_0(), new java_util_JavaScriptVector(); for (var a = new java_util_JavaScriptVector(); ; ) { var b = this.parseValue_0(); if (b == GT1662.prototype.INVALIDVALUE) return null; a.addElement_1(b); if (93 == this.thischaracter) { this.readNextPrintable_0(); break; } if (!this.parseKeyword_1(",")) return null; if (93 == this.thischaracter) { this.readNextPrintable_0(); break; } } return a; }, parseString_0: function () { if (34 != this.thischaracter) return null; for (var a = this.positionofthis; ; ) { this.readNext_1(34); if (34 != this.thischaracter) return null; if (92 != this.json.charAt_1(this.positionofthis - 1)) break; for (var b = 1; 92 == this.json.charAt_1(this.positionofthis - b - 1); ) b++; if (0 == (b & 1)) break; } b = this.positionofthis; this.readNextPrintable_0(); return this.unescape_1(this.json.substring_2(a + 1, b)); }, parseNumber_0: function () { var a = this.positionofthis; 45 == this.thischaracter && this.readNextCharacter_0(); if (48 == this.thischaracter) this.readNextCharacter_0(); else if (49 <= this.thischaracter && 57 >= this.thischaracter) for (this.readNextCharacter_0(); 48 <= this.thischaracter && 57 >= this.thischaracter; ) this.readNextCharacter_0(); else return null; if (46 == this.thischaracter) for (this.readNextCharacter_0(); 48 <= this.thischaracter && 57 >= this.thischaracter; ) this.readNextCharacter_0(); if (101 == this.thischaracter || 69 == this.thischaracter) { this.readNextCharacter_0(); (43 != this.thischaracter && 45 != this.thischaracter) || this.readNextCharacter_0(); if (!(48 <= this.thischaracter && 57 >= this.thischaracter)) return null; for (; 48 <= this.thischaracter && 57 >= this.thischaracter; ) this.readNextCharacter_0(); } a = this.json.substring_2(a, this.positionofthis); this.readUntilPrintable_0(); return new Double(GT1672.prototype.stringToDouble_1(a)); }, parseKeyword_1: function (a) { for (var b = 0; b < a.length_0(); b++) { if (this.thischaracter != a.charAt_1(b)) return !1; this.readNextCharacter_0(); } this.readUntilPrintable_0(); return !0; }, }, "GT1662", [] ); GT1662.prototype.decodeHEX_1 = function (a) { return 48 <= a && 57 >= a ? a - 48 : 65 <= a && 70 >= a ? 10 + (a - 65) : 97 <= a && 102 >= a ? 10 + (a - 97) : -1; }; GT1662.prototype.unescape_1 = function (a) { var b = a.indexOf_1(92); if (0 > b) return a; var d = new StringBuffer(); for (0 < b && d.append_1(a.substring_2(0, b)); 0 <= b; ) { switch (a.charAt_1(b + 1)) { case 34: d.append_1('"'); break; case 92: d.append_1("\\"); break; case 47: d.append_1("/"); break; case 98: d.append_1("\b"); break; case 102: d.append_1("\f"); break; case 110: d.append_1("\n"); break; case 114: d.append_1("\r"); break; case 116: d.append_1("\t"); break; case 117: if (b + 5 < a.length_0()) { for (var e = 0, f = 0; 4 > f; f++) { var g = this.decodeHEX_1(a.charAt_1(b + 2 + f)); if (0 > g) return null; e = 16 * e + g; } d.append_1(new JavaScriptString([JSUTIL.MathUtil.castToChar(e)])); b += 4; } else return null; break; default: return null; } e = a.indexOf_2(92, b + 2); 0 <= e ? d.append_1(a.substring_2(b + 2, e)) : d.append_1(a.substring_1(b + 2)); b = e; } return d.toString(); }; GT1678.prototype.isAllowedXMLTag_1 = function (a) { if (1 > a.length_0()) return !1; for (var b = a.length_0() - 1; 0 <= b; b--) { var d = a.charAt_1(b); if (!((65 <= d && 90 >= d) || (97 <= d && 122 >= d) || 95 == d || (0 < b && (46 == d || 45 == d || 58 == d || (48 <= d && 57 >= d))))) return !1; } return !0; }; GT1678.prototype.couldbeMistakenForDouble_1 = function (a) { a = a.charAt_1(0); return 45 == a || (48 <= a && 57 >= a); }; GT1678.prototype.buildXMLString_2 = function (a, b) { for (var d = 0; d < b.length_0(); d++) { var e = b.charAt_1(d); 60 == e ? a.append_1("<") : 62 == e ? a.append_1(">") : 38 == e ? a.append_1("&") : 32 <= e && 126 >= e ? a.append_1(b.substring_2(d, d + 1)) : (a.append_1("&#"), a.append_1("" + Integer.truncate_1(e)), a.append_1(";")); } }; GT1678.prototype.buildXMLValue_3 = function (a, b, d) { var e = this.isAllowedXMLTag_1(b); a.append_1("<"); e ? a.append_1(b) : (a.append_1('_ tag="'), this.buildXMLString_2(a, b), a.append_1('"')); if (null == d) a.append_1(">null"); else if (instanceOf(d, Double)) a.append_1(">"), this.buildDouble_2(a, d.doubleValue_0()); else if (instanceOf(d, Boolean)) a.append_1(">"), a.append_1(d.booleanValue_0() ? "true" : "false"); else if ("string" === typeof d) 0 == d.length_0() || d.equals_1("null") || d.equals_1("true") || d.equals_1("false") || this.couldbeMistakenForDouble_1(d) ? a.append_1(' type="string">') : a.append_1(">"), this.buildXMLString_2(a, d); else if (instanceOf(d, java_util_JavaScriptVector)) { a.append_1(' type="array">'); for (var f = 0; f < d.size_0(); f++) this.buildXMLValue_3(a, "_", d.elementAt_1(f)); } else if (instanceOf(d, java_util_JavaScriptHashtable)) { a.append_1(">"); for (var g = new java_util_JavaScriptVector(), f = d.keys_0(); f.hasMoreElements_0(); ) { var k = f.nextElement_0(); if (null == k || "string" !== typeof k) return !1; g.addElement_1(k); } GT1679.prototype.sortVector_2(g, !0); for (f = 0; f < g.size_0(); f++) { var k = g.elementAt_1(f), m = d.get_1(k); if (!this.buildXMLValue_3(a, k, m)) return !1; } } else return !1; a.append_1(""); return !0; }; GT1678.prototype.buildDouble_2 = function (a, b) { var d = Integer.truncate_1(b); d == b ? a.append_1("" + d) : a.append_1("" + b); }; GT1678.prototype.buildString_2 = function (a, b) { if (b.equals_1("null")) a.append_1("null"); else { a.append_1('"'); for (var d = b.length_0(), e = 0, f = 0; f < d; f++) { var g = b.charAt_1(f); if (32 > g || 126 < g || 92 == g || 34 == g) if ((e < f && a.append_1(b.substring_2(e, f)), (e = f + 1), 34 == g)) a.append_1('\\"'); else if (92 == g) a.append_1("\\\\"); else { a.append_1("\\u"); for (var g = Integer.toHexString_1(g), k = g.length_0(); 4 > k; k++) a.append_1("0"); a.append_1(g); } } e < d && a.append_1(b.substring_2(e, d)); a.append_1('"'); } }; GT1678.prototype.buildValue_2 = function (a, b) { if (null == b) return a.append_1("null"), !0; if (instanceOf(b, GT1585)) return a.append_1(b.toJSON_0()), !0; if (instanceOf(b, Integer)) return this.buildDouble_2(a, b.intValue_0()), !0; if (instanceOf(b, Double)) return this.buildDouble_2(a, b.doubleValue_0()), !0; if (instanceOf(b, Boolean)) return a.append_1(b.booleanValue_0() ? "true" : "false"), !0; if ("string" === typeof b) return this.buildString_2(a, b), !0; if (instanceOf(b, java_util_JavaScriptVector)) { a.append_1("["); for (var d = 0; d < b.size_0(); d++) if ((0 != d && a.append_1(","), !this.buildValue_2(a, b.elementAt_1(d)))) return !1; a.append_1("]"); return !0; } return instanceOf(b, java_util_JavaScriptHashtable) ? this.buildObject_2(a, b) : !1; }; GT1678.prototype.buildObject_2 = function (a, b) { a.append_1("{"); for (var d = !1, e = b.keys_0(); e.hasMoreElements_0(); ) { d && a.append_1(","); var d = !0, f = e.nextElement_0(); if (null == f || "string" !== typeof f) return !1; this.buildString_2(a, f); a.append_1(":"); if (!this.buildValue_2(a, b.get_1(f))) return !1; } a.append_1("}"); return !0; }; GT1678.prototype.deserializeAny_1 = function (a) { if (null == a) return null; a = new GT1662(a); var b = a.parseValue_0(); return a.hasReachedEnd_0() && b != GT1662.prototype.INVALIDVALUE ? b : null; }; GT1678.prototype.deserializeList_1 = function (a) { a = this.deserializeAny_1(a); return null != a && instanceOf(a, java_util_JavaScriptVector) ? a : null; }; GT1678.prototype.deserialize_1 = function (a) { return this.deserializeObject_1(a); }; GT1678.prototype.deserializeObject_1 = function (a) { return this.deserializeAny_1(a); }; GT1678.prototype.serializeToXML_2 = function (a, b) { var d = new StringBuffer(); return this.buildXMLValue_3(d, a, b) ? d.toString() : null; }; GT1678.prototype.serialize_1 = function (a) { var b = new StringBuffer(); return this.buildValue_2(b, a) ? b.toString() : null; }; GT1662.prototype.INVALIDVALUE = {}; var GT1663 = Class.extend( { initialConstructor_0: function () { this.mLastElement = this.mFirstElement = null; this.mSize = 0; this.removeAllElements_0(); }, removeAllElements_0: function () { this.mLastElement = this.mFirstElement = null; this.mSize = 0; }, size_0: function () { return this.mSize; }, getFirstElement_0: function () { return this.mFirstElement; }, getLastElement_0: function () { return this.mLastElement; }, getPreviousElement_1: function (a) { return a.getPreviousElement_0(); }, getNextElement_1: function (a) { return a.getNextElement_0(); }, push_1: function (a) { var b = null; instanceOf(a, GT1567) ? ((b = a), b.setPreviousElement_1(0 == this.mSize ? null : this.mLastElement), b.setNextElement_1(null)) : (b = new GT1567(a, 0 == this.mSize ? null : this.mLastElement, null)); null != this.mLastElement && this.mLastElement.setNextElement_1(b); this.mLastElement = b; 0 == this.mSize && (this.mFirstElement = this.mLastElement); ++this.mSize; }, insertElementAfter_2: function (a, b) { var d = null; instanceOf(b, GT1567) ? ((d = b), d.setPreviousElement_1(a), d.setNextElement_1(a.getNextElement_0())) : (d = new GT1567(b, a, a.getNextElement_0())); a.setNextElement_1(d); null == d.getNextElement_0() && (this.mLastElement = d); ++this.mSize; }, insertElementBefore_2: function (a, b) { var d = null; instanceOf(b, GT1567) ? ((d = b), d.setPreviousElement_1(a.getPreviousElement_0()), d.setNextElement_1(a)) : (d = new GT1567(b, a.getPreviousElement_0(), a)); a.setPreviousElement_1(d); null == d.getPreviousElement_0() && (this.mFirstElement = d); ++this.mSize; }, insertAt_2: function (a, b) { GT1650.prototype.assertExp_2(b <= this.mSize, "Passed index: " + b + " exceeds the elements size: " + this.mSize); if (b == this.mSize) this.push_1(a); else if (0 == b) { var d = null; instanceOf(a, GT1567) ? ((d = a), d.setPreviousElement_1(null), d.setNextElement_1(this.mFirstElement)) : (d = new GT1567(a, null, this.mFirstElement)); this.mFirstElement.setPreviousElement_1(d); this.mFirstElement = d; ++this.mSize; } else (d = this.getElementAtIndex_1(b)), this.insertElementBefore_2(d, a); }, pop_0: function () { if (0 < this.mSize) { var a = this.mLastElement; this.remove_1(this.mLastElement); return a; } return null; }, remove_1: function (a) { 0 < this.mSize && (null != a.getPreviousElement_0() ? a.getPreviousElement_0().setNextElement_1(a.getNextElement_0()) : (this.mFirstElement = a.getNextElement_0()), null != a.getNextElement_0() ? a.getNextElement_0().setPreviousElement_1(a.getPreviousElement_0()) : (this.mLastElement = a.getPreviousElement_0()), a.setPreviousElement_1(null), a.setNextElement_1(null), --this.mSize); }, removeElementAt_1: function (a) { GT1650.prototype.assertExp_2(a < this.mSize, "Passed index: " + a + " exceeds the elements size: " + this.mSize); a = this.getElementAtIndex_1(a); null != a && this.remove_1(a); }, getElementAtIndex_1: function (a) { var b = null; if (0 == a) b = this.mFirstElement; else if (a == this.mSize - 1) b = this.mLastElement; else if (a < Math.div(this.mSize, 2)) for (var d = 0, b = this.mFirstElement; d < a; ) (b = b.getNextElement_0()), ++d; else for (d = this.mSize - 1, b = this.mLastElement; d > a; ) (b = b.getPreviousElement_0()), --d; return b; }, }, "GT1663", [] ), GT1567 = Class.extend( { initialConstructor_0: function () { this.mElementData = this.mNextElement = this.mPreviousElement = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.mElementData = this.mNextElement = this.mPreviousElement = null; this.mPreviousElement = b; this.mElementData = a; this.mNextElement = d; }, setElementData_1: function (a) { this.mElementData = a; }, getElementData_0: function () { return this.mElementData; }, setPreviousElement_1: function (a) { this.mPreviousElement = a; }, getPreviousElement_0: function () { return this.mPreviousElement; }, setNextElement_1: function (a) { this.mNextElement = a; }, getNextElement_0: function () { return this.mNextElement; }, }, "GT1567", [] ), GT1639 = Class.extend( { initialConstructor_0: function () { this.m = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.m = null; this.m = [a, b, d, e]; }, initialConstructor_1: function (a) { this.m = null; this.m = [].createArray(a.length).init(0); for (var b = 0; b < this.m.length; b++) this.m[b] = a[b]; }, getArray_0: function () { return this.m; }, m00_0: function () { return this.m[0]; }, m01_0: function () { return this.m[1]; }, m10_0: function () { return this.m[2]; }, m11_0: function () { return this.m[3]; }, transformVector_1: function (a) { var b = new GT1631(); b.x = this.m[0] * a.x + this.m[2] * a.y; b.y = this.m[1] * a.x + this.m[3] * a.y; return b; }, }, "GT1639", [] ); GT1639.prototype.invert_1 = function (a) { a = a.getArray_0(); var b = a[0] * a[3] - a[1] * a[2]; return new GT1639(Math.div(a[3], b), Math.div(-a[2], b), Math.div(-a[1], b), Math.div(a[0], b)); }; GT1639.prototype.identity_0 = function () { return new GT1639(1, 0, 0, 1); }; GT1639.prototype.transformVector_2 = function (a, b) { var d = new GT1631(); d.x = b.m[0] * a.x + b.m[2] * a.y; d.y = b.m[1] * a.x + b.m[3] * a.y; return d; }; GT1639.prototype.shearMatrix_2 = function (a, b) { return new GT1639(1, a, b, 1); }; GT1639.prototype.scaleMatrix_2 = function (a, b) { return new GT1639(a, 0, 0, b); }; GT1639.prototype.rotMatrix_1 = function (a) { return new GT1639(Math.cos_1(a), -Math.sin_1(a), Math.sin_1(a), Math.cos_1(a)); }; GT1639.prototype.multiply_2 = function (a, b) { return new GT1639(a.m[0] * b.m[0] + a.m[1] * b.m[2], a.m[0] * b.m[1] + a.m[1] * b.m[3], a.m[2] * b.m[0] + a.m[3] * b.m[2], a.m[2] * b.m[1] + a.m[3] * b.m[3]); }; var GT1640 = Class.extend( { initialConstructor_0: function () { this.m33 = this.m32 = this.m31 = this.m30 = this.m23 = this.m22 = this.m21 = this.m20 = this.m13 = this.m12 = this.m11 = this.m10 = this.m03 = this.m02 = this.m01 = this.m00 = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_16: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A) { this.m33 = this.m32 = this.m31 = this.m30 = this.m23 = this.m22 = this.m21 = this.m20 = this.m13 = this.m12 = this.m11 = this.m10 = this.m03 = this.m02 = this.m01 = this.m00 = 0; this.m00 = a; this.m01 = b; this.m02 = d; this.m03 = e; this.m10 = f; this.m11 = g; this.m12 = k; this.m13 = m; this.m20 = n; this.m21 = p; this.m22 = q; this.m23 = r; this.m30 = t; this.m31 = u; this.m32 = B; this.m33 = A; }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1640.prototype.initialConstructor_16.call(this, a, b, d, 0, e, f, g, 0, k, m, n, 0, 0, 0, 0, 1); }, getX_0: function () { return this.m30; }, getY_0: function () { return this.m31; }, getZ_0: function () { return this.m32; }, transformVector_1: function (a) { return this.transformVector_2(a, this); }, toString: function () { return ( "[" + this.m00 + ", " + this.m01 + ", " + this.m02 + ", " + this.m03 + "\n" + this.m10 + ", " + this.m11 + ", " + this.m12 + ", " + this.m13 + "\n" + this.m20 + ", " + this.m21 + ", " + this.m22 + ", " + this.m23 + "\n" + this.m30 + ", " + this.m31 + ", " + this.m32 + ", " + this.m33 + "]" ); }, getM00_0: function () { return this.m00; }, getM01_0: function () { return this.m01; }, getM02_0: function () { return this.m02; }, getM03_0: function () { return this.m03; }, getM10_0: function () { return this.m10; }, getM11_0: function () { return this.m11; }, getM12_0: function () { return this.m12; }, getM13_0: function () { return this.m13; }, getM20_0: function () { return this.m20; }, getM21_0: function () { return this.m21; }, getM22_0: function () { return this.m22; }, getM23_0: function () { return this.m23; }, getM30_0: function () { return this.m30; }, getM31_0: function () { return this.m31; }, getM32_0: function () { return this.m32; }, getM33_0: function () { return this.m33; }, getArray_0: function () { return [this.m00, this.m01, this.m02, this.m03, this.m10, this.m11, this.m12, this.m13, this.m20, this.m21, this.m22, this.m23, this.m30, this.m31, this.m32, this.m33]; }, }, "GT1640", [] ); GT1640.prototype.invert_1 = function (a) { var b = a.m00 * a.m11 * a.m22 + a.m10 * a.m21 * a.m02 + a.m20 * a.m01 * a.m12 - a.m00 * a.m21 * a.m12 - a.m10 * a.m01 * a.m22 - a.m20 * a.m11 * a.m02; return new GT1640( (a.m11 * a.m22 - a.m21 * a.m12) / b, (a.m21 * a.m02 - a.m01 * a.m22) / b, (a.m01 * a.m12 - a.m11 * a.m02) / b, (a.m20 * a.m12 - a.m10 * a.m22) / b, (a.m00 * a.m22 - a.m02 * a.m20) / b, (a.m10 * a.m02 - a.m00 * a.m12) / b, (a.m10 * a.m21 - a.m20 * a.m11) / b, (a.m20 * a.m01 - a.m00 * a.m21) / b, (a.m00 * a.m11 - a.m01 * a.m10) / b ); }; GT1640.prototype.identity_0 = function () { return new GT1640(1, 0, 0, 0, 1, 0, 0, 0, 1); }; GT1640.prototype.shadowMatrix_2 = function (a, b) { var d, e; e = b.pntOnPlane; var f = GT1641.prototype.scale_2(b.normal, 1); d = GT1641.prototype.dot_2(f, a); e = GT1641.prototype.dot_2(e, f) - d; return new GT1640(a.x * f.x + e, f.y * a.x, f.z * a.x, -a.x * e - a.x * d, f.x * a.y, a.y * f.y + e, f.z * a.y, -a.y * e - a.y * d, f.x * a.z, f.y * a.z, a.z * f.z + e, -a.z * e - a.z * d, f.x, f.y, f.z, -d); }; GT1640.prototype.translationMatrix_3 = function (a, b, d) { return new GT1640(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, a, b, d, 1); }; GT1640.prototype.transformVector_2 = function (a, b) { var d = b.m03 * a.x + b.m13 * a.y + b.m23 * a.z + b.m33, e = new GT1641(); e.x = (b.m00 * a.x + b.m10 * a.y + b.m20 * a.z + b.m30) / d; e.y = (b.m01 * a.x + b.m11 * a.y + b.m21 * a.z + b.m31) / d; e.z = (b.m02 * a.x + b.m12 * a.y + b.m22 * a.z + b.m32) / d; return e; }; GT1640.prototype.rotAxisMatrix_2 = function (a, b) { var d = Math.cos_1(a), e = Math.sin_1(a); return new GT1640( d + b.x * b.x * (1 - d), b.x * b.y * (1 - d) + b.z * e, b.x * b.z * (1 - d) - b.y * e, b.x * b.y * (1 - d) - b.z * e, d + b.y * b.y * (1 - d), b.y * b.z * (1 - d) + b.x * e, b.x * b.z * (1 - d) + b.y * e, b.y * b.z * (1 - d) - b.x * e, d + b.z * b.z * (1 - d) ); }; GT1640.prototype.rotZMatrix_1 = function (a) { return new GT1640(Math.cos_1(a), Math.sin_1(a), 0, -Math.sin_1(a), Math.cos_1(a), 0, 0, 0, 1); }; GT1640.prototype.rotYMatrix_1 = function (a) { return new GT1640(Math.cos_1(a), 0, -Math.sin_1(a), 0, 1, 0, Math.sin_1(a), 0, Math.cos_1(a)); }; GT1640.prototype.rotXMatrix_1 = function (a) { return new GT1640(1, 0, 0, 0, Math.cos_1(a), Math.sin_1(a), 0, -Math.sin_1(a), Math.cos_1(a)); }; GT1640.prototype.lookAt_3 = function (a, b, d) { b = GT1641.prototype.subtract_2(b, a); b.normalize_0(); d = GT1641.prototype.cross_2(d, b); d.normalize_0(); var e = GT1641.prototype.cross_2(b, d); return new GT1640(d.x, e.x, b.x, 0, d.y, e.y, b.y, 0, d.z, e.z, b.z, 0, -GT1641.prototype.dot_2(d, a), -GT1641.prototype.dot_2(e, a), -GT1641.prototype.dot_2(b, a), 1); }; GT1640.prototype.projectMatrix_2 = function (a, b) { return GT1640.prototype.multiply_2(this.projectMatrix_4(a, 1, 1, 2), GT1640.prototype.scaleMatrix_3(b / 2, b / 2, 1)); }; GT1640.prototype.projectMatrix_4 = function (a, b, d, e) { GT1650.prototype.assertExp_2(0 < a, "fov <=0"); GT1650.prototype.assertExp_2(0 < b, "aspect<=0"); GT1650.prototype.assertExp_2(0 < d, "znear<=0"); GT1650.prototype.assertExp_2(e > d, "zfar<=znear"); a = 1 / Math.tan_1(0.5 * a); e /= e - d; return new GT1640(a, 0, 0, 0, 0, a / b, 0, 0, 0, 0, e, 1, 0, 0, -e * d, 0); }; GT1640.prototype.multiply_2 = function (a, b) { return new GT1640( a.m00 * b.m00 + a.m01 * b.m10 + a.m02 * b.m20 + a.m03 * b.m30, a.m00 * b.m01 + a.m01 * b.m11 + a.m02 * b.m21 + a.m03 * b.m31, a.m00 * b.m02 + a.m01 * b.m12 + a.m02 * b.m22 + a.m03 * b.m32, a.m00 * b.m03 + a.m01 * b.m13 + a.m02 * b.m23 + a.m03 * b.m33, a.m10 * b.m00 + a.m11 * b.m10 + a.m12 * b.m20 + a.m13 * b.m30, a.m10 * b.m01 + a.m11 * b.m11 + a.m12 * b.m21 + a.m13 * b.m31, a.m10 * b.m02 + a.m11 * b.m12 + a.m12 * b.m22 + a.m13 * b.m32, a.m10 * b.m03 + a.m11 * b.m13 + a.m12 * b.m23 + a.m13 * b.m33, a.m20 * b.m00 + a.m21 * b.m10 + a.m22 * b.m20 + a.m23 * b.m30, a.m20 * b.m01 + a.m21 * b.m11 + a.m22 * b.m21 + a.m23 * b.m31, a.m20 * b.m02 + a.m21 * b.m12 + a.m22 * b.m22 + a.m23 * b.m32, a.m20 * b.m03 + a.m21 * b.m13 + a.m22 * b.m23 + a.m23 * b.m33, a.m30 * b.m00 + a.m31 * b.m10 + a.m32 * b.m20 + a.m33 * b.m30, a.m30 * b.m01 + a.m31 * b.m11 + a.m32 * b.m21 + a.m33 * b.m31, a.m30 * b.m02 + a.m31 * b.m12 + a.m32 * b.m22 + a.m33 * b.m32, a.m30 * b.m03 + a.m31 * b.m13 + a.m32 * b.m23 + a.m33 * b.m33 ); }; GT1640.prototype.shearMatrix_6 = function (a, b, d, e, f, g) { return new GT1640(1, a, b, d, 1, e, f, g, 1); }; GT1640.prototype.scaleMatrix_3 = function (a, b, d) { return new GT1640(a, 0, 0, 0, b, 0, 0, 0, d); }; var GT1506 = Class.extend( { initialConstructor_0: function () { this.pts = null; this.pts = new java_util_JavaScriptVector(); }, addPoint_2: function (a, b) { this.pts.addElement_1(new GT1631(a, b)); }, addPoints_1: function (a) { GT1650.prototype.assertExp_2(0 == a.length % 2, "coordinates not paired"); for (var b = 0; b + 1 < a.length; b += 2) this.addPoint_2(a[b], a[b + 1]); }, clearPoints_0: function () { this.pts.setSize_1(0); }, getPoint_1: function (a) { return this.pts.elementAt_1(a); }, getXarray_0: function () { for (var a = [].createArray(this.pts.size_0()).init(0), b = 0; b < a.length; b++) a[b] = Integer.truncate_1(Math.round_1(this.getPoint_1(b).x)); return a; }, getYarray_0: function () { for (var a = [].createArray(this.pts.size_0()).init(0), b = 0; b < a.length; b++) a[b] = Integer.truncate_1(Math.round_1(this.getPoint_1(b).y)); return a; }, calcNaturalCubic_1: function (a) { var b = a.length - 1, d = [].createArray(b + 1).init(0), e = [].createArray(b + 1).init(0), f = [].createArray(b + 1).init(0), g; d[0] = 0.5; for (g = 1; g < b; g++) d[g] = 1 / (4 - d[g - 1]); d[b] = 1 / (2 - d[b - 1]); e[0] = 3 * (a[1] - a[0]) * d[0]; for (g = 1; g < b; g++) e[g] = (3 * (a[g + 1] - a[g - 1]) - e[g - 1]) * d[g]; e[b] = (3 * (a[b] - a[b - 1]) - e[b - 1]) * d[b]; f[b] = e[b]; for (g = b - 1; 0 <= g; g--) f[g] = e[g] - d[g] * f[g + 1]; d = [].createArray(b, 4).init(0); for (g = 0; g < b; g++) (d[g][0] = a[g]), (d[g][1] = f[g]), (d[g][2] = 3 * (a[g + 1] - a[g]) - 2 * f[g] - f[g + 1]), (d[g][3] = 2 * (a[g] - a[g + 1]) + f[g] + f[g + 1]); return d; }, getSplinePoints_0: function () { return this.getSplinePoints_1(10); }, getSplinePoints_1: function (a) { if (2 > this.pts.size_0()) return null; var b = this.calcNaturalCubic_1(this.getXarray_0()), d = this.calcNaturalCubic_1(this.getYarray_0()), e = new java_util_JavaScriptVector(); a = 1 / a; for (var f, g, k = 0; k < b.length; k += a) { GT1650.prototype.assertExp_2(0 <= k, "u2 is minus:" + k); g = Integer.truncate_1(k); var m = k - g; f = this.evaluateCubic_5(b[g][0], b[g][1], b[g][2], b[g][3], m); g = this.evaluateCubic_5(d[g][0], d[g][1], d[g][2], d[g][3], m); e.addElement_1(new GT1631(f, g)); } g = b.length - 1; f = this.evaluateCubic_5(b[g][0], b[g][1], b[g][2], b[g][3], 1); g = this.evaluateCubic_5(d[g][0], d[g][1], d[g][2], d[g][3], 1); e.addElement_1(new GT1631(f, g)); return e; }, }, "GT1506", [] ); GT1506.prototype.vec2array_1 = function (a) { for (var b = [].createArray(2 * a.size_0()).init(0), d = 0, e = 0; e < a.size_0(); e++) { var f = a.elementAt_1(e); b[d] = Integer.truncate_1(Math.round_1(f.x)); d++; b[d] = Integer.truncate_1(Math.round_1(f.y)); d++; } return b; }; GT1506.prototype.evaluateCubic_5 = function (a, b, d, e, f) { return ((e * f + d) * f + b) * f + a; }; var GT1612 = Class.extend( { initialConstructor_0: function () { this.numBitsInBuffer = this.bitBuffer = 0; this.resetInternalBitBuffer_0(); }, resetInternalBitBuffer_0: function () { this.numBitsInBuffer = this.bitBuffer = 0; }, hasRandomBufferUnderrun_0: function () { return !1; }, nextInt_0: function () { for (var a = 0, b = 0; 4 > b; b++) var d = Integer.truncate_1(this.nextByte_0()) & 255, a = a << 8, a = a | d; return a; }, nextBit_0: function () { 0 >= this.numBitsInBuffer && ((this.bitBuffer = this.nextByte_0() & 255), (this.numBitsInBuffer = 8)); var a = this.bitBuffer & 1; this.bitBuffer >>= 1; this.numBitsInBuffer--; return a; }, nextInt_1: function (a) { if (1 >= a) return 0; for (; 1073741823 < a; ) { var b = this.nextInt_0() & 2147483647; if (b < a) return b; } for (var b = this.nextBit_0(), d = 2; ; ) { for (; d < a; ) 1 == this.nextBit_0() && (b += d), (d *= 2); if (b < a) break; b -= a; d -= a; } return b; }, nextInt_2: function (a, b) { var d = this.nextInt_1(a); null != b && b.addElement_1([a, d]); return d; }, nextBool_1: function (a) { for (; 0 < a; ) { if (1 <= a) return !0; if (0.5 >= a) { if (0 == this.nextBit_0()) break; a *= 2; } else { if (1 == this.nextBit_0()) return !0; a = 2 * (a - 0.5); } } return !1; }, nextDouble_0: function () { return ((this.nextInt_0() & 67108863) + 67108864 * (this.nextInt_0() & 67108863)) / 4503599627370496; }, mix_1: function (a) { for (var b = a.size_0(), d = 0; d < b - 1; d++) { var e = d + this.nextInt_1(b - d); if (d != e) { var f = a.elementAt_1(d), g = a.elementAt_1(e); a.setElementAt_2(f, e); a.setElementAt_2(g, d); } } }, mixArray_1: function (a) { for (var b = a.length, d = 0; d < b - 1; d++) { var e = d + this.nextInt_1(b - d); if (d != e) { var f = a[e]; a[e] = a[d]; a[d] = f; } } }, extractRandomElement_2: function (a, b) { if (null == a || 0 >= a.size_0()) return null; var d = this.nextInt_2(a.size_0(), b), e = a.elementAt_1(d); a.removeElementAt_1(d); return e; }, selectWeightedChoice_2: function (a, b) { for (var d = 0, e = 0; e < a.length; e++) 0 < a[e] && (d += a[e]); if (0 < d) for (d = this.nextInt_2(d, b), e = 0; e < a.length; e++) if (0 < a[e] && ((d -= a[e]), 0 > d)) return e; return 0; }, hasAtLeastXBytes_1: function (a) { return !0; }, canDisableGamePlay_0: function () { return !1; }, }, "GT1612", [] ), GT1631 = Class.extend( { initialConstructor_0: function () { this.y = this.x = this.y = this.x = 0; }, initialConstructor_2: function (a, b) { this.y = this.x = 0; this.set_2(a, b); }, set_2: function (a, b) { this.x = a; this.y = b; }, set_1: function (a) { this.x = a.x; this.y = a.y; }, setScaled_2: function (a, b) { this.x = a.x * b; this.y = a.y * b; }, setDiff_2: function (a, b) { this.x = a.x - b.x; this.y = a.y - b.y; }, initialConstructor_1: function (a) { this.y = this.x = 0; this.set_1(a); }, distance_0: function () { return Math.sqrt_1(this.x * this.x + this.y * this.y); }, distance_1: function (a) { if (null == a) return this.distance_0(); var b = this.x - a.x; a = this.y - a.y; return Math.sqrt_1(b * b + a * a); }, sqrLength_0: function () { return this.x * this.x + this.y * this.y; }, sqrDistance_1: function (a) { if (null == a) return this.sqrLength_0(); var b = this.x - a.x; a = this.y - a.y; return b * b + a * a; }, angle_0: function () { var a, b; a = this.x; b = this.y; var d = Math.sqrt_1(a * a + b * b); return Math.acos_1(a / d) * (0 <= b ? 1 : -1); }, add_1: function (a) { this.x += a.x; this.y += a.y; }, addScaled_2: function (a, b) { this.x += a.x * b; this.y += a.y * b; }, add_2: function (a, b) { this.x += a; this.y += b; }, subtract_1: function (a) { this.x -= a.x; this.y -= a.y; }, subtract_2: function (a, b) { this.x -= a; this.y -= b; }, subScaled_2: function (a, b) { this.x -= a.x * b; this.y -= a.y * b; }, transform_1: function (a) { var b; b = a.m[0] * this.x + a.m[2] * this.y; a = a.m[1] * this.x + a.m[3] * this.y; this.x = b; this.y = a; }, fromAngleDistance_2: function (a, b) { this.x = Math.cos_1(a) * b; this.y = Math.sin_1(a) * b; }, scale_1: function (a) { this.x *= a; this.y *= a; }, blend_2: function (a, b) { var d = 1 - b; this.x = this.x * d + a.x * b; this.y = this.y * d + a.y * b; }, setBlend_3: function (a, b, d) { var e = 1 - d, f = a.y * e + b.y * d; this.x = a.x * e + b.x * d; this.y = f; }, dot_1: function (a) { return this.x * a.x + this.y * a.y; }, normalize_0: function () { var a = Math.sqrt_1(this.x * this.x + this.y * this.y); GT1650.prototype.assertExp_2(0 < a, "ERROR> Normalising zero length vector"); this.x = GT1677.prototype.division_2(this.x, a); this.y = GT1677.prototype.division_2(this.y, a); }, getSideOfLine_2: function (a, b) { var d = (b.x - a.x) * (this.y - a.y) - (b.y - a.y) * (this.x - a.x); return 0 > d ? -1 : 0 < d ? 1 : 0; }, toString: function () { return "[x:" + this.x + " y:" + this.y + "]"; }, isEqual_2: function (a, b) { return this.equals_1(a) || this.distance_1(a) < b ? !0 : !1; }, equals_1: function (a) { return instanceOf(a, GT1631) && a.x == this.x && a.y == this.y ? !0 : !1; }, }, "GT1631", [] ); GT1631.prototype.intersect_4 = function (a, b, d, e) { var f = null, g = b.x - a.x; b = b.y - a.y; var k = e.x - d.x, m = e.y - d.y; e = (-b * (a.x - d.x) + g * (a.y - d.y)) / (-k * b + g * m); d = (k * (a.y - d.y) - m * (a.x - d.x)) / (-k * b + g * m); 0 <= e && 1 >= e && 0 <= d && 1 >= d && (f = new GT1631(a.x + d * g, a.y + d * b)); return f; }; GT1631.prototype.createFromAngleDistance_2 = function (a, b) { var d = new GT1631(); d.fromAngleDistance_2(a, b); return d; }; GT1631.prototype.merge_2 = function (a, b) { return new GT1631(a.x + b.x, a.y + b.y); }; var GT1641 = Class.extend( { initialConstructor_0: function () { this.z = this.y = this.x = this.z = this.y = this.x = 0; }, initialConstructor_3: function (a, b, d) { this.z = this.y = this.x = 0; this.x = a; this.y = b; this.z = d; }, initialConstructor_1: function (a) { this.z = this.y = this.x = 0; this.x = a.x; this.y = a.y; this.z = a.z; }, add_1: function (a) { this.x += a.x; this.y += a.y; this.z += a.z; }, subtract_1: function (a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; }, distance_0: function () { var a = this.x * this.x + this.y * this.y + this.z * this.z; return 1 == a ? 1 : Math.sqrt_1(a); }, toString: function () { return "[x:" + this.x + " y:" + this.y + " z:" + this.z + "]"; }, normalize_0: function () { var a = this.distance_0(); this.x /= a; this.y /= a; this.z /= a; }, scale_1: function (a) { this.x *= a; this.y *= a; this.z *= a; }, }, "GT1641", [] ); GT1641.prototype.main_1 = function (a) { a = new GT1641(2, 1, 0); var b = new GT1641(-1, 1, 0); this.reflect_2(a, b); this.reflect_2(b, a); }; GT1641.prototype.reflect_2 = function (a, b) { return GT1641.prototype.subtract_2(a, GT1641.prototype.scale_2(b, 2 * this.dot_2(a, b))); }; GT1641.prototype.scale_2 = function (a, b) { return new GT1641(a.x * b, a.y * b, a.z * b); }; GT1641.prototype.cross_2 = function (a, b) { return new GT1641(a.y * b.z - a.z * b.y, a.z * b.x - a.x * b.z, a.x * b.y - a.y * b.x); }; GT1641.prototype.cosAlpha_2 = function (a, b) { return this.dot_2(a, b) / (a.distance_0() * b.distance_0()); }; GT1641.prototype.dot_2 = function (a, b) { return a.x * b.x + a.y * b.y + a.z * b.z; }; GT1641.prototype.add_2 = function (a, b) { return new GT1641(a.x + b.x, a.y + b.y, a.z + b.z); }; GT1641.prototype.subtract_2 = function (a, b) { return new GT1641(a.x - b.x, a.y - b.y, a.z - b.z); }; GT1641.prototype.ZERO = new GT1641(0, 0, 0); GT1641.prototype.XAXIS = new GT1641(1, 0, 0); GT1641.prototype.YAXIS = new GT1641(0, 1, 0); GT1641.prototype.ZAXIS = new GT1641(0, 0, 1); var GT1656 = Class.extend({}, "GT1656", []); GT1656.prototype.tokenize_3 = function (a, b, d) { if (!a || 1 > a.length_0()) return []; if (!b || 1 > b.length_0()) return [a]; this._delimitersCache || (this._delimitersCache = []); var e = this._delimitersCache[b]; if (!e) { for (var f = b.length, e = "[", g = "", k = 0; k < f; ++k) (g = b.charCodeAt(k).toString(16)), (e += (2 > g.length ? "\\x0" : "\\x") + g); e = new RegExp(e + "]", "g"); this._delimitersCache[b] = e; } this._regExFilterFunction || (this._regExFilterFunction = function (a) { return 0 != a.length; }); return d ? a.split(e) : a.split(e).filter(this._regExFilterFunction); }; var GT1568 = Class.extend( { initialConstructor_0: function () { this.theNull = this.ht = null; this.ht = new java_util_JavaScriptHashtable(); this.theNull = {}; }, clear_0: function () { this.ht.clear_0(); }, containsKey_1: function (a) { return null != this.ht.get_1(a); }, get_1: function (a) { a = this.ht.get_1(a); return a == this.theNull ? null : a; }, isEmpty_0: function () { return this.ht.isEmpty_0(); }, keys_0: function () { return this.ht.keys_0(); }, put_2: function (a, b) { var d = this.ht.put_2(a, null == b ? this.theNull : b); return d == this.theNull ? null : d; }, remove_1: function (a) { a = this.ht.remove_1(a); return a == this.theNull ? null : a; }, size_0: function () { return this.ht.size_0(); }, }, "GT1568", [] ), GT1507 = Class.extend( { initialConstructor_0: function () { this.sortDouble = this.obj = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sortDouble = this.obj = null; this.obj = a; this.sortDouble = b; }, }, "GT1507", [] ), GT979 = Class.extend( { initialConstructor_0: function () {}, compare_2: function (a, b) { if (instanceOf(a, GT1507) && instanceOf(b, GT1507)) { var d = a.sortDouble.doubleValue_0() - b.sortDouble.doubleValue_0(); return 0 < d ? 1 : 0 == d ? 0 : -1; } return 0; }, }, "GT979", [java_util_Comparator] ), GT1596 = Class.extend( { initialConstructor_0: function () { this.obj = null; this.sortInt = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.obj = null; this.sortInt = 0; this.obj = a; this.sortInt = b; }, }, "GT1596", [] ); GT1596.prototype.sortByInt_3 = function (a, b, d) { var e = a.length; if (!(2 > e || e > b.length)) { for (var f = [].createArray(e), g = 0; g < e; g++) f[g] = new GT1596(a[g], b[g]); GT1679.prototype.sortArray_3(f, new GT1146(), d); for (g = 0; g < e; g++) a[g] = f[g].obj; } }; var GT1146 = Class.extend( { initialConstructor_0: function () {}, compare_2: function (a, b) { return instanceOf(a, GT1596) && instanceOf(b, GT1596) ? a.sortInt - b.sortInt : 0; }, }, "GT1146", [java_util_Comparator] ), GT1508 = Class.extend( { initialConstructor_0: function () { this.sortString = this.obj = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sortString = this.obj = null; this.obj = a; this.sortString = b; }, getObj_0: function () { return this.obj; }, getSortString_0: function () { return this.sortString; }, }, "GT1508", [] ); GT1508.prototype.sortByString_3 = function (a, b, d) { var e = a.length; if (!(2 > e || e > b.length)) { for (var f = [].createArray(e), g = 0; g < e; g++) f[g] = new GT1508(a[g], b[g]); GT1679.prototype.sortArray_3(f, new GT980(), d); for (g = 0; g < e; g++) a[g] = f[g].obj; } }; var GT980 = Class.extend( { initialConstructor_0: function () {}, compare_2: function (a, b) { return instanceOf(a, GT1508) && instanceOf(b, GT1508) ? a.sortString.compareTo_1(b.sortString) : 0; }, }, "GT980", [java_util_Comparator] ), GT1509 = Class.extend( { initialConstructor_0: function () { this.parameter = this.runnable = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.parameter = this.runnable = null; this.runnable = a; this.parameter = b; }, run_0: function () { this.runnable.run_1(this.parameter); }, }, "GT1509", [Runnable] ), GT1569 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1569", [] ); GT1569.prototype.getThousandSeparator_0 = function () { return String.fromCharCode(160); }; GT1569.prototype.reloadWebPageIOS5_0 = function () { DEVICE.ios5 && location.reload(); return !1; }; GT1569.prototype.canConnectToAnyMUX_0 = function () { return !1; }; var GT1679 = Class.extend( { initialConstructor_0: function () { GT1650.prototype.assertExp_2(!1, "this class shall never be instanciated"); }, }, "GT1679", [] ); GT1679.prototype.mergesort_6 = function (a, b, d, e, f, g) { if (2 == d) 0 < e.compare_2(a[b], a[b + 1]) * f && ((d = a[b]), (a[b] = a[b + 1]), (a[b + 1] = d)); else if (3 == d) 0 < e.compare_2(a[b], a[b + 1]) * f && ((d = a[b]), (a[b] = a[b + 1]), (a[b + 1] = d)), 0 < e.compare_2(a[b + 1], a[b + 2]) * f && (0 < e.compare_2(a[b], a[b + 2]) * f ? ((d = a[b + 2]), (a[b + 2] = a[b + 1]), (a[b + 1] = a[b]), (a[b] = d)) : ((d = a[b + 1]), (a[b + 1] = a[b + 2]), (a[b + 2] = d))); else if (4 <= d) { var k = Math.div(d, 2); this.mergesort_6(a, b, k, e, f, g); this.mergesort_6(a, b + k, d - k, e, f, g); if (!(0 >= e.compare_2(a[b + k - 1], a[b + k]) * f)) { java_lang_System.prototype.arraycopy_5(a, b, g, 0, k); for (var m = 0, n = b + k, p = b; m < k; ) { if (n >= b + d) { java_lang_System.prototype.arraycopy_5(g, m, a, p, k - m); break; } 0 < e.compare_2(g[m], a[n]) * f ? ((a[p] = a[n]), n++) : ((a[p] = g[m]), m++); p++; } } } }; GT1679.prototype.sortArray_3 = function (a, b, d) { if (!(2 > a.length)) { var e = a.length; this.mergesort_6(a, 0, e, b, d ? 1 : -1, 4 <= e ? [].createArray(Math.div(e, 2)) : null); } }; GT1679.prototype.sortVector_3 = function (a, b, d) { var e = a.size_0(); if (!(2 > e)) { var f = a.toArray_0(); this.sortArray_3(f, b, d); for (b = 0; b < e; b++) a.setElementAt_2(f[b], b); } }; GT1679.prototype.sortArray_2 = function (a, b) { this.sortArray_3(a, GT1679.prototype.defaultComparator, b); }; GT1679.prototype.sortVector_2 = function (a, b) { this.sortVector_3(a, GT1679.prototype.defaultComparator, b); }; GT1679.prototype.sortDoubleArray_2 = function (a, b) { for (var d = [].createArray(a.length), e = 0; e < a.length; e++) d[e] = new Double(a[e]); this.sortArray_2(d, b); for (e = 0; e < a.length; e++) a[e] = d[e].doubleValue_0(); }; GT1679.prototype.sortIntArray_2 = function (a, b) { for (var d = [].createArray(a.length), e = 0; e < a.length; e++) d[e] = new Integer(a[e]); this.sortArray_2(d, b); for (e = 0; e < a.length; e++) a[e] = d[e].intValue_0(); }; GT1679.prototype.defaultComparator = new GT1566(); var GT1035 = Class.extend( { initialConstructor_0: function () { this.customHttpHeaders = this.contentType = this.body = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.customHttpHeaders = this.contentType = this.body = null; this.body = a; this.contentType = b; this.customHttpHeaders = null; }, initialConstructor_3: function (a, b, d) { this.customHttpHeaders = this.contentType = this.body = null; this.body = a; this.contentType = b; this.customHttpHeaders = d; }, getBody_0: function () { return this.body; }, getContentType_0: function () { return this.contentType; }, getCustomHttpHeaders_0: function () { return this.customHttpHeaders; }, }, "GT1035", [] ); GT1035.prototype.JSON = "application/json"; GT1035.prototype.FORM_URLENCODED = "application/x-www-form-urlencoded"; var GT1677 = Class.extend( { initialConstructor_0: function () { GT1650.prototype.assertExp_2(!1, "this class shall never be instanciated"); }, }, "GT1677", [] ); GT1677.prototype.getRoundedValue_2 = function (a, b) { var d = Math.pow_2(10, b); return this.division_2(Math.round_1(d * a), d); }; GT1677.prototype.determineSliderValues_4 = function (a, b, d, e) { var f = new java_util_JavaScriptVector(); for (d = b > d ? e : 1; a < b; a += d) f.addElement_1(new Integer(a)); a = f.lastElement_0().intValue_0(); if (d == e && b != a + d) for (e = a + 1; e < b; ++e) f.addElement_1(new Integer(e)); f.addElement_1(new Integer(b)); b = [].createArray(f.size_0()).init(0); for (e = 0; e < b.length; e++) b[e] = f.elementAt_1(e).intValue_0(); return b; }; GT1677.prototype.getMetaValues_1 = function (a) { var b = new java_util_JavaScriptHashtable(); a = GT1677.prototype.tokenize_2(a, "\n"); for (var d = 0; d < a.length; ++d) { var e = a[d]; -1 != e.indexOf_1(61) && 35 != e.charAt_1(0) && ((e = GT1677.prototype.tokenize_2(e, "=")), 2 == e.length && b.put_2(e[0], e[1])); } return b; }; GT1677.prototype.bitCount_1 = function (a) { a -= (a >> 1) & 1431655765; a = (a & 858993459) + ((a >> 2) & 858993459); return (16843009 * ((a + (a >> 4)) & 252645135)) >> 24; }; GT1677.prototype.numberOfLeadingZeros_1 = function (a) { a |= a >>> 1; a |= a >>> 2; a |= a >>> 4; a |= a >>> 8; return this.bitCount_1(~(a | (a >>> 16))); }; GT1677.prototype.computeAlpha_1 = function (a) { var b = 0 <= a && 1 >= a; GT1650.prototype.assertExp_2(b, "Alpha value " + a + " needs to be between 0.0 and 1.0, but isn't."); return b ? Integer.truncate_1(Math.ceil_1(255 * a)) : 128; }; GT1677.prototype.formatMoneyString_6 = function (a, b, d, e, f, g) { var k = ""; 0 > a && ((a = -a), (k = "-")); var m = a, n = 0; b && ((m = Math.floor_1(a / 100)), (n = Integer.truncate_1(a - 100 * m))); return !b || (d && 0 == n) ? "" + e + k + GT1672.prototype.doubleToStringRounded_2(m, g) : "" + e + k + GT1672.prototype.doubleToStringRounded_2(m, g) + f + (10 <= n ? "" + n : "0" + n); }; GT1677.prototype.isEqual_2 = function (a, b) { return null == a ? null == b : a.equals_1(b); }; GT1677.prototype.canonifyFileName_1 = function (a) { for (var b = 0; ; ) if (a.indexOf_2("../", b) == b) b += 3; else break; for (var d = a.substring_2(0, b), e = a.substring_1(b), f = e.indexOf_1("/./"); 0 < f; ) (e = e.substring_2(0, f) + "/" + e.substring_1(f + 3)), (f = e.indexOf_1("/./")); for (;;) { f = e.indexOf_2("../", b); if (0 > f) break; else if (1 > f) { d += "../"; e = e.substring_1(3); continue; } var g = e.lastIndexOf_2(47, f - 2); 0 > g ? ((0 <= e.substring_2(0, f).indexOf_1(":") || 0 == e.indexOf_1("/../")) && GT1650.prototype.assertExp_2(!1, "Can't canonify " + a + ". Reference outside root."), (e = e.substring_1(f + 3) + "")) : (e = e.substring_2(0, g + 1) + "" + e.substring_1(f + 3)); } return d + "" + e; }; GT1677.prototype.generateID_0 = function () { 2155124 != GT1677.prototype.applicationIDInitialized && ((GT1677.prototype.applicationIDInitialized = 2155124), (GT1677.prototype.applicationIDCounter = 1e9)); return ++GT1677.prototype.applicationIDCounter; }; GT1677.prototype.isCompatibleVersion_4 = function (a, b, d, e) { if (!a.equals_1(d)) return !1; a = b.indexOf_1(46); if (0 > a) return !1; a = b.indexOf_2(46, a + 1); if (0 > a) return !1; a += 1; return b.length_0() < a || e.length_0() < a ? !1 : b.substring_2(0, a).equals_1(e.substring_2(0, a)); }; GT1677.prototype.isSameOrHigherVersion_2 = function (a, b) { var d, e, f, g, k, m; k = a.indexOf_1("."); if (0 <= k) if (((d = GT1672.prototype.stringToInt_1(a.substring_2(0, k))), (m = a.indexOf_2(".", k + 1)), m > k)) if (((e = GT1672.prototype.stringToInt_1(a.substring_2(k + 1, m))), a.length_0() > m)) (m = a.substring_1(m + 1)), 0 <= m.indexOf_1(46) && (m = m.substring_2(0, m.indexOf_1(46))), (f = GT1672.prototype.stringToInt_1(m)); else return !1; else return !1; else return !1; k = b.indexOf_1("."); if (0 <= k) if (((g = GT1672.prototype.stringToInt_1(b.substring_2(0, k))), (m = b.indexOf_2(".", k + 1)), m > k)) if (((k = GT1672.prototype.stringToInt_1(b.substring_2(k + 1, m))), b.length_0() > m)) (m = b.substring_1(m + 1)), 0 <= m.indexOf_1(46) && (m = m.substring_2(0, m.indexOf_1(46))), (m = GT1672.prototype.stringToInt_1(m)); else return !1; else return !1; else return !1; return this.isSameOrHigherVersion_6(d, e, f, g, k, m); }; GT1677.prototype.isSameOrHigherVersion_6 = function (a, b, d, e, f, g) { var k = !1; a > e ? (k = !0) : a == e && (b > f ? (k = !0) : b == f && d >= g && (k = !0)); return k; }; GT1677.prototype.getCurrencyValueFromCent_2 = function (a, b) { return (a * (1 != b ? 100 : 1)) / b; }; GT1677.prototype.getCentFromCurrencyValue_2 = function (a, b) { var d = b; 1 != d && (d /= 100); return a * d; }; GT1677.prototype.division_2 = function (a, b) { return a / b; }; GT1677.prototype.gcd_2 = function (a, b) { if (0 >= a || 0 >= b) return 1; if (a < b) { var d = a; a = b; b = d; } d = a % b; return 0 == d ? b : this.gcd_2(b, d); }; GT1677.prototype.mergeIntArrays_2 = function (a, b) { var d = [].createArray(a.length + b.length).init(0); java_lang_System.prototype.arraycopy_5(a, 0, d, 0, a.length); java_lang_System.prototype.arraycopy_5(b, 0, d, a.length, b.length); return d; }; GT1677.prototype.equalsIgnoreCaseAZ_2 = function (a, b) { if (null == a || null == b) return a == b; var d = a.length_0(); if (d != b.length_0()) return !1; for (var e = 0; e < d; e++) { var f = a.charAt_1(e), g = b.charAt_1(e); 97 <= f && 122 >= f && (f -= 32); 97 <= g && 122 >= g && (g -= 32); if (f != g) return !1; } return !0; }; GT1677.prototype.toUpperCaseAZ_1 = function (a) { var b = a; a = a.length_0(); for (var d = 0; d < a; d++) { var e = b.charAt_1(d); 97 <= e && 122 >= e && (b = b.replace_2(JSUTIL.MathUtil.castToChar(e), JSUTIL.MathUtil.castToChar(e - 32))); } return b; }; GT1677.prototype.toLowerCaseAZ_1 = function (a) { var b = a; a = a.length_0(); for (var d = 0; d < a; d++) { var e = b.charAt_1(d); 65 <= e && 90 >= e && (b = b.replace_2(JSUTIL.MathUtil.castToChar(e), JSUTIL.MathUtil.castToChar(e + 32))); } return b; }; GT1677.prototype.replaceAllInString_3 = function (a, b, d) { for (var e = ""; !e.equals_1(a); ) (e = a), (a = this.replaceInString_3(e, b, d)); return e; }; GT1677.prototype.replaceInString_3 = function (a, b, d) { var e = a.indexOf_1(b); return 0 > e ? a : "" + a.substring_2(0, e) + d + a.substring_1(e + b.length_0()); }; GT1677.prototype.padString_4 = function (a, b, d, e) { b -= a.length_0(); if (1 > b) return a; if (10 >= b && 48 == d) return e ? GT1677.prototype.padzeroes[b].concat_1(a) : a.concat_1(GT1677.prototype.padzeroes[b]); d = GT1672.prototype.charToString_1(d); for (var f = 0; f < b; f++) a = e ? d.concat_1(a) : a.concat_1(d); return a; }; GT1677.prototype.getFromSemicolonSeperatedList_2 = function (a, b) { return this.getFromSeperatedList_3(a, b, 59); }; GT1677.prototype.getDoubleFromCommaSeperatedList_2 = function (a, b) { return GT1672.prototype.stringToDouble_1(this.getFromCommaSeperatedList_2(a, b)); }; GT1677.prototype.getIntFromCommaSeperatedList_2 = function (a, b) { return GT1672.prototype.stringToInt_1(this.getFromCommaSeperatedList_2(a, b)); }; GT1677.prototype.getFromCommaSeperatedList_2 = function (a, b) { return this.getFromSeperatedList_3(a, b, 44); }; GT1677.prototype.getIntFromSeperatedList_3 = function (a, b, d) { return GT1672.prototype.stringToInt_1(this.getFromSeperatedList_3(a, b, d)); }; GT1677.prototype.getFromSeperatedList_3 = function (a, b, d) { if (null == a) return ""; for (var e = -1, f = a.length_0(), g = 0, k = 0; k < a.length_0() && f == a.length_0(); k++) a.charAt_1(k) == d && (g == b && (f = k), g++, g == b && (e = k)); return 0 > e && 0 != b ? "" : a.substring_2(e + 1, f); }; GT1677.prototype.interpolate_5 = function (a, b, d, e, f) { return b + Math.div((f - a) * (e - b), d - a); }; GT1677.prototype.timeBySpeed_5 = function (a, b, d, e, f) { b -= e; d -= f; d = Math.sqrt_1(b * b + d * d); return Integer.truncate_1(Math.div(d, a)); }; GT1677.prototype.doubleToInt_1 = function (a) { return Integer.truncate_1(0 <= a ? a + 0.5 : a - 0.5); }; GT1677.prototype.concat_1 = function (a) { if (null == a || 1 > a.length) return ""; for (var b = a[0], d = 1; d < a.length; d++) b = b.concat_1(a[d]); return b; }; GT1677.prototype.tokenizeInt_3 = function (a, b, d) { a = this.tokenize_3(a, b, d); b = [].createArray(a.length).init(0); for (d = 0; d < a.length; ++d) b[d] = GT1672.prototype.stringToInt_1(a[d].trim_0()); return b; }; GT1677.prototype.tokenize_3 = function (a, b, d) { return GT1656.prototype.tokenize_3(a, b, d); }; GT1677.prototype.tokenize_2 = function (a, b) { return this.tokenize_3(a, b, !1); }; GT1677.prototype.tokenize_1 = function (a) { return this.tokenize_3(a, " \n\t", !1); }; GT1677.prototype.stringToInt_1 = function (a) { var b = 0, d, e = 0, f = 0 == a.charAt_1(0) - 45; if (f) { if (11 < a.length_0()) return 0; } else if (10 < a.length_0()) return 0; for (var g = f ? 1 : 0; g < a.length_0(); g++) { d = a.charAt_1(g) - 48; if (0 > d || 9 < d) return 0; 0 < e && (b *= 10); b += d; e++; } return Integer.truncate_1(f ? -1 * b : b); }; GT1677.prototype.createCoordinatesArray_4 = function (a, b, d, e) { for (var f = [].createArray(2 * d * e).init(0), g = 0; g < d; g++) for (var k = 0; k < e; k++) (f[2 * (g * e + k)] = a + g), (f[2 * (g * e + k) + 1] = b + k); return f; }; GT1677.prototype.applicationIDInitialized = 2155124; GT1677.prototype.applicationIDCounter = 1e9; GT1677.prototype.padzeroes = " 0 00 000 0000 00000 000000 0000000 00000000 000000000 0000000000".split(" "); var GT772 = Class.extend( { initialConstructor_0: function (a) { this.syncObject = a; console.warn("created GT772"); }, connect_5: function (a, b, d, e, f) { return (this.connection = new NativeWebSocket(a, b, d, e, { onConnect: function () { f.onSocketConnected_0(); }, onClose: function () { f.onSocketDisconnected_0(); }, onMessage: function (a) { f.receivedBinary_1(a); }, onError: function (a) { f.onSocketNotConnected_1(a); }, })); }, }, "GT772", [GT1014] ); (function (a) { var b = function (b, e, f, g, k) { var m = this; this.listeners = k; null != a.WebSocket ? (this.connection = new WebSocket("wss://" + b + ":" + e + f)) : null != a.MozWebSocket && (this.connection = new MozWebSocket("wss://" + b + ":" + e + f)); this.connection.binaryType = "arraybuffer"; this.connection.onopen = function () { m.listeners.onConnect(); }; this.connection.onerror = function (a) { console.log("WebSocket Error " + a); m.listeners.onError(); }; this.connection.onmessage = function (a) { a = a.data; if (a instanceof ArrayBuffer) { a = new Int8Array(a); a = Array.prototype.slice.call(a); var b = new Uint8Array(a); Array.prototype.slice.call(b); } m.listeners.onMessage(a); }; this.connection.onclose = function (a) { m.listeners.onClose(); }; }; b.prototype = { sendText: function (a) {}, sendBinary_1: function (a) { a = new Uint8Array(a); this.connection.send(a.buffer); }, close_0: function () { this.connection.close(); }, isClosed: function () {}, }; a.NativeWebSocket = b; })(window); var GT832 = Class.extend( { initialConstructor_0: function () { this.errorEventListeners = this.consoleEventListeners = this.stateEventListeners = null; this.fireWithoutListeners = !1; this.actionListeners = null; this.stateEventListeners = new java_util_JavaScriptVector(); this.consoleEventListeners = new java_util_JavaScriptVector(); this.errorEventListeners = new java_util_JavaScriptVector(); this.actionListeners = new java_util_JavaScriptVector(); this.fireWithoutListeners = !1; }, clearActionListeners_0: function () { this.actionListeners = new java_util_JavaScriptVector(); }, addStateEventListener_1: function (a) { null == a || this.stateEventListeners.contains_1(a) || this.stateEventListeners.addElement_1(a); }, addConsoleEventListener_1: function (a) { null == a || this.consoleEventListeners.contains_1(a) || this.consoleEventListeners.addElement_1(a); }, addErrorEventListener_1: function (a) { null == a || this.errorEventListeners.contains_1(a) || this.errorEventListeners.addElement_1(a); }, addActionListener_1: function (a) { null == a || this.actionListeners.contains_1(a) || this.actionListeners.addElement_1(a); }, fireActionImpl_1: function (a) { if (null != a) for (var b = 0; b < this.actionListeners.size_0(); b++) this.actionListeners.get_1(b).notifyAction_1(a); }, fireStateEvent_1: function (a) { for (var b = 0; b < this.stateEventListeners.size_0(); b++) this.fireStateEventImpl_2(this.stateEventListeners.get_1(b), a); this.fireWithoutListeners && this.fireStateEventImpl_2(null, a); }, fireConsoleEvent_1: function (a) { for (var b = 0; b < this.consoleEventListeners.size_0(); b++) this.fireConsoleEventImpl_2(this.consoleEventListeners.get_1(b), a); this.fireWithoutListeners && this.fireConsoleEventImpl_2(null, a); }, fireErrorEvent_1: function (a) { for (var b = 0; b < this.errorEventListeners.size_0(); b++) this.fireErrorEventImpl_2(this.errorEventListeners.get_1(b), a); this.fireWithoutListeners && this.fireErrorEventImpl_2(null, a); }, }, "GT832", [] ), GT511 = Class.extend( { initialConstructor_0: function () { this.wrapperInterface = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.wrapperInterface = null; this.wrapperInterface = a; }, fireStateEvent_1: function (a) { this.wrapperInterface.fireStateEvent_1(a); }, fireConsoleEvent_1: function (a) { this.wrapperInterface.fireConsoleEvent_1(a); }, fireErrorEvent_1: function (a) { this.wrapperInterface.fireErrorEvent_1(a); }, }, "GT511", [] ), GT306 = GT832.extend( { initialConstructor_0: function () { GT832.prototype.initialConstructor_0.call(this); var a = this; window.addEventListener("message", function (b) { "string" === typeof b.data && a.fireAction(b.data); }); }, fireStateEventImpl_2: function (a, b) { this.fireEventToListener_2(a, b); }, fireConsoleEventImpl_2: function (a, b) { this.fireEventToListener_2(a, b); }, fireErrorEventImpl_2: function (a, b) { this.fireEventToListener_2(a, b); }, fireEventToListener_2: function (a, b) { var d = GT1678.prototype.serialize_1(b); null != d && null != a && "function" === typeof a.notifyEvent && a.notifyEvent(d); null != d && null == a && window[CONFIG.MESSAGETARGET].postMessage(d, "*"); }, fireAction: function (a) { this.fireActionImpl_1(GT1678.prototype.deserialize_1(a)); }, }, "GT306", [] ), GT1036 = Class.extend( { initialConstructor_0: function () { this.valueTable = this.mainTable = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.valueTable = this.mainTable = null; Class.prototype.initialConstructor_0.call(this); this.mainTable = a; this.valueTable = b; }, getMainTable_0: function () { return this.mainTable; }, getValueTable_0: function () { return this.valueTable; }, }, "GT1036", [] ), GT1242 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1242", [] ); GT1242.prototype.fireWrapperConsoleEvent_2 = function (a, b) { null != a && null != b && a.fireConsoleEvent_1(b); }; GT1242.prototype.fireWrapperErrorEvent_2 = function (a, b) { null != a && null != b && a.fireErrorEvent_1(b); }; GT1242.prototype.fireWrapperStateEvent_2 = function (a, b) { null != a && null != b && a.fireStateEvent_1(b); }; GT1242.prototype.getWrapperTables_2 = function (a, b) { if (null != a) { var d = new java_util_JavaScriptHashtable(), e = new java_util_JavaScriptHashtable(); null != b && e.put_2("name", b); d.put_2(a, e); return new GT1036(d, e); } return null; }; GT1242.prototype.getWrapperErrorEventTables_1 = function (a) { return this.getWrapperTables_2(GT697.prototype.IDENTIFIER_ERROR, a); }; GT1242.prototype.getWrapperStateEventTables_1 = function (a) { return this.getWrapperTables_2(GT697.prototype.IDENTIFIER_STATE, a); }; GT1242.prototype.getWrapperEventTables_1 = function (a) { return this.getWrapperTables_2(GT697.prototype.IDENTIFIER_EVENT, a); }; var GT723 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, containerCustomLoadingScreen_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().compRGB_3(0, 0, 30))) .child_1(b.casinoProgressBar_0()); }, casinoProgressBar_2: function (a, b) { return a.position_2(0, 385).mainColor_1(GT1391.prototype.set_0().compRGB_3(151, 208, 69)).fontColor_1(GT1391.prototype.set_0().compRGB_3(151, 208, 69)); }, containerDeveloperLogo_2: function (a, b) { return GT884.prototype .set_0() .postDelay_1(500) .sound_1(GT1396.prototype.set_0().file_1("/com/greentube/loader/client/res/audio/preloader_sound.mp3")) .postDelay_1(0) .backgroundColor_1(GT1391.prototype.set_0().compRGB_3(0, 0, 30)); }, containerSplashScreen_2: function (a, b) { return b.defaultSplashScreen_0(); }, }, "GT723", [] ), GT1388 = Class.extend( { initialConstructor_2: function (a, b) { this.loglevel = a; this.cryptoKey = b; this.lastSendTime = java_lang_System.prototype.currentTimeMillis_0(); this.isclosed = !1; this.syncObject = {}; this.syncReadObject = {}; this.syncWriteObject = {}; }, isClosed_0: function () { this.syncObject; return this.isclosed; }, getLastSendTime_0: function () { this.syncObject; return this.lastSendTime; }, startPingThread_0: function () { new Thread(this, "PingThread").start_0(); }, logClosed_0: function () { 1 > this.loglevel || java_lang_System.prototype.out.println_1("CLOSED"); }, }, "GT1388", [Runnable] ); GT1388.prototype.CONNECTIONRETRYTIMEOUT = 12e4; GT1388.prototype.CONNECTIONTIMEOUT = 3e4; GT1388.prototype.CONNECTIONRETRIES = 5; GT1388.prototype.RECEIVETIMEOUT = 6e4; GT1388.prototype.OPENHTTPDELAY = 4e3; GT1388.prototype.OPENTCPDELAY = 0; GT1388.prototype.MAXSENDPACKETSIZE = 1024; GT1388.prototype.PINGINTERVALL = 3e4; GT1388.prototype.loglinesize = 16; GT1388.prototype.hexdigits = "0123456789ABCDEF"; GT1388.prototype.activeclosepacket = [-1, -1]; GT1388.prototype.randombytes = null; GT1388.prototype.logIO_3 = function (a, b, d) { this.logIO_4(a, b, d, d.length); }; GT1388.prototype.logIO_4 = function (a, b, d, e) { for (var f = 0; f < e; f += GT1388.prototype.loglinesize) { var g = new StringBuffer(); 0 == f ? g.append_1(a) : g.append_1(b); for (var k = f; k < f + GT1388.prototype.loglinesize; k++) if (k >= e) g.append_1(" "); else { var m = d[k]; " " <= m && 255 >= m ? g.append_1(m) : g.append_1("."); } g.append_1(" "); for (k = f; k < f + GT1388.prototype.loglinesize; k++) k >= e ? g.append_1(" ") : ((m = d[k] & 255), g.append_1(hexdigits.charAt_1(Math.div(m, 16))), g.append_1(hexdigits.charAt_1(m % 16))), 3 == k % 4 && g.append_1(" "); java_lang_System.prototype.out.println_1(g.toString()); } }; GT1388.prototype.composePacketArr_2 = function (a, b) { var d = []; d.push(a); if (0 != b.length) if (1 == b.length && 0 == b[0].length_0()) d.push(-2); else for (var e = 0; e < b.length; e++) { 0 != e && d.push(-1); for (var f = Utf8.encode(b[e]), g = 0; g < f.length; g++) { var k = f.charCodeAt(g) & 255; d.push(128 > k ? k : k - 256); } } return d; }; GT1388.prototype.composePacket_2 = function (a, b) { if (void 0 === b.size_0) return this.composePacketArr_2(a, b); for (var d = [].createArray(b.size_0()), e = 0; e < d.length; e++) d[e] = b.elementAt_1(e).toString(); return this.composePacketArr_2(a, d); }; GT1388.prototype.decomposePacket_1 = function (a) { var b = a.length; if (2 > b) return [].createArray(0); if (2 == b && -2 == a[1]) return [""]; for (var d = 1, e = 1; e < b; e++) -1 == a[e] && d++; for (var f = [].createArray(d), d = 0, g = 1, e = 1; e < b; e++) -1 == a[e] && ((f[d++] = Utf8.decode_3(a, g, e - g)), (g = e + 1)); f[d] = Utf8.decode_3(a, g, b - g); return f; }; var GT1510 = Class.extend( { initialConstructor_4: function (a, b, d, e) { this.listeners = [a]; this.hostName = b; this.serverIndex = d; this.logLevel = e; this.connectionid = null; this.sendretrycounter = this.retrycounter = this.receivecounter = this.sendcounter = 0; this.sendrunning = !1; this.outqueue = []; this.retrycounter = this.numcurrentlysending = 0; this.triggerconnection(); }, addListener_1: function (a) { var b = [].createArray(this.listeners.length + 1); java_lang_System.prototype.arraycopy_5(this.listeners, 0, b, 0, this.listeners.length); b[this.listeners.length] = a; this.listeners = b; }, kill_0: function () { this.connectionid = null; }, close_0: function () { var a = this; null != this.connectionid && (http_request("https://" + this.hostName + "/mxm?close=" + this.connectionid, function (b) { a.connectionclosefinished(); }), (this.connectionid = null)); }, sendPacket_1: function (a) { null != this.connectionid && (this.outqueue.push(a), this.triggersend()); }, triggerconnection: function () { var a = this; http_request("https://" + this.hostName + "/mxm?open=" + this.serverIndex + "_" + java_lang_System.prototype.currentTimeMillis_0(), function (b) { a.connectionrequestfinished(b); }); }, connectionrequestfinished: function (a) { if (null == a && (this.retrycounter++, 5 > this.retrycounter)) { this.triggerconnection(); return; } if (null == a || 0 != a.indexOf("open")) for (a = 0; a < this.listeners.length; a++) this.listeners[a].connectionNotEstablished_0(); else for (this.connectionid = a.substr(4), this.retrycounter = 0, this.triggerlongpoll(), a = 0; a < this.listeners.length; a++) this.listeners[a].connectionEstablished_0(); }, connectionclosefinished: function () { for (var a = 0; a < this.listeners.length; a++) this.listeners[a].connectionLost_0(); }, triggerlongpoll: function () { if (null != this.connectionid) { var a = this; http_request("https://" + this.hostName + "/mxm?receive=" + this.connectionid + "_" + this.receivecounter + "_1_" + this.retrycounter, function (b) { a.longpollingfinished(b); }); this.retrycounter++; } }, longpollingfinished: function (a) { if (null != this.connectionid) { if (null == a && (this.retrycounter++, 5 > this.retrycounter)) { this.triggerlongpoll(); return; } if (null == a || 0 != a.indexOf("data")) for (this.connectionid = null, a = 0; a < this.listeners.length; a++) this.listeners[a].connectionLost_0(); else { for (var b = new java_util_JavaScriptVector(), d = 4, e = a.length; d + 2 < e; ) { var f = (a.charCodeAt(d) & 255) + 256 * (a.charCodeAt(d + 1) & 255); if (d + 2 + f > e) break; b.add_1(extractpacketfromstring(a, d + 2, f)); d = d + 2 + f; } this.receivecounter += b.size_0(); for (a = 0; a < this.listeners.length; a++) this.listeners[a].processPackets_1(b); this.retrycounter = 0; this.triggerlongpoll(); } } }, triggersend: function () { if (!(null == this.connectionid || 0 < this.numcurrentlysending || 0 >= this.outqueue.length)) { for (var a = "https://" + this.hostName + "/mxm?send=" + this.connectionid + "_" + this.sendcounter + "_", b = 0; b < this.outqueue.length; b++) (a = a + "*" + encodebase64(this.outqueue[b])), this.numcurrentlysending++; if (0 < this.numcurrentlysending) { var d = this; http_request(a, function (a) { d.sendfinished(a); }); } } }, sendfinished: function (a) { if (null == a && (this.sendretrycounter++, 5 > this.sendretrycounter)) { this.numcurrentlysending = 0; this.triggersend(); return; } if (null == a || 0 != a.indexOf("ok")) for (this.connectionid = null, a = 0; a < this.listeners.length; a++) this.listeners[a].connectionLost_0(); else this.outqueue.splice(0, this.numcurrentlysending), (this.sendcounter += this.numcurrentlysending), (this.sendretrycounter = this.numcurrentlysending = 0), this.triggersend(); }, }, "GT1510", [] ); function http_onreadystatechange(a, b) { if (a.readyState == XMLHttpRequest.OPENED) a.send(); else if (a.readyState == XMLHttpRequest.DONE) { var d = a.responseXML; null == d ? b(null) : ((d = d.documentElement), null == d ? b(null) : b(d.textContent)); } } function http_request(a, b) { var d = new XMLHttpRequest(); d.onreadystatechange = function () { http_onreadystatechange(d, b); }; d.open("GET", a, !0); } var _keyStr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-"; function encodebase64(a) { for (var b = "", d, e, f, g, k = 0; k < a.length; ) k + 2 < a.length ? ((d = a[k] & 255), (e = a[k + 1] & 255), (f = a[k + 2] & 255), (k += 3), (g = d >> 2), (d = ((d & 3) << 4) | (e >> 4)), (e = ((e & 15) << 2) | (f >> 6)), (f &= 63), (b = b + _keyStr.charAt(g) + _keyStr.charAt(d) + _keyStr.charAt(e) + _keyStr.charAt(f))) : k + 1 < a.length ? ((d = a[k] & 255), (e = a[k + 1] & 255), (k += 2), (g = d >> 2), (d = ((d & 3) << 4) | (e >> 4)), (e = (e & 15) << 2), (b = b + _keyStr.charAt(g) + _keyStr.charAt(d) + _keyStr.charAt(e))) : ((d = a[k] & 255), k++, (g = d >> 2), (d = (d & 3) << 4), (b = b + _keyStr.charAt(g) + _keyStr.charAt(d))); return b; } function extractpacketfromstring(a, b, d) { if (0 >= d) return []; var e = new java_util_JavaScriptVector(), f = a.charCodeAt(b); e.add_1(new java_lang_Byte(128 <= f ? f - 256 : f)); if (1 >= d) e.add_1([]); else if (2 == d && 254 == a.charCodeAt(b + 1)) e.add_1([""]); else { a = a.substr(b + 1, d - 1).split("\u00ff"); for (b = 0; b < a.length; b++) a[b] = Utf8.decode(a[b]); e.add_1(a); } return e; } var GT417 = Class.extend( { initialConstructor_0: function () { this.syncObject = null; this.logLevel = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.syncObject = null; this.logLevel = 0; this.syncObject = a; }, setLogLevel_1: function (a) { this.logLevel = a; }, createNonBlockingConnection_5: function (a, b, d, e, f) { return new GT833(a, b, d, this.logLevel, e, f, this.syncObject); }, }, "GT417", [GT701] ), GT1657 = Class.extend( { initialConstructor_0: function () { this.slotGame = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGame = null; this.slotGame = a; }, fetchHigherBet_0: function () { return this.fetchHigherBet_2(this.slotGame.getSlotState_0().getBaseBet_0(), !0); }, fetchHigherBet_2: function (a, b) { var d = this.slotGame.getSlotState_0().getBaseBets_0(); if (null != d && 1 <= d.length) { if (a < d[0]) return d[0]; for (var e = d.length - 1; 0 <= e; e--) if (a >= d[e]) return e == d.length - 1 ? (b ? d[0] : d[d.length - 1]) : d[e + 1]; } return -1; }, fetchLowerBet_0: function () { return this.fetchLowerBet_2(this.slotGame.getSlotState_0().getBaseBet_0(), !0); }, fetchLowerBet_2: function (a, b) { var d = this.slotGame.getSlotState_0().getBaseBets_0(); if (null != d && 1 <= d.length) { if (a > d[d.length - 1]) return d[d.length - 1]; for (var e = 0; e < d.length; e++) if (a <= d[e]) return 0 == e ? (b ? d[d.length - 1] : d[0]) : d[e - 1]; } return -1; }, betAvailable_1: function (a) { var b = this.slotGame.getSlotState_0().getBaseBets_0(); if (null != b) for (var d = 0; d < b.length; d++) if (a == b[d]) return !0; return !1; }, fetchClosestBet_2: function (a, b) { if (this.betAvailable_1(a)) return a; var d = this.fetchLowerBet_2(a, b), e = this.fetchHigherBet_2(a, b); return Math.abs_1(a - d) <= Math.abs_1(e - a) ? d : e; }, fetchNextGameMode_0: function () { return this.fetchNextGameMode_1(!0); }, fetchNextGameMode_1: function (a) { var b = this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0(), d = this.slotGame.getSlotState_0().getGameMode_0(), e = -1; if (null != b) { for (var f = 0; f < b.size_0(); f++) d == b.get_1(f) && (f == b.size_0() - 1 && 0 < b.size_0() ? (e = a ? b.get_1(0) : b.get_1(b.size_0() - 1)) : b.size_0() > f + 1 && (e = b.get_1(f + 1))); -1 == e && 1 <= b.size_0() && (e = b.get_1(0)); } return e; }, fetchPreviousGameMode_0: function () { return this.fetchPreviousGameMode_1(!0); }, fetchPreviousGameMode_1: function (a) { var b = this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0(), d = this.slotGame.getSlotState_0().getGameMode_0(), e = -1; if (null != b) { for (var f = 0; f < b.size_0(); f++) d == b.get_1(f) && (e = 0 == f ? (a ? b.get_1(b.size_0() - 1) : b.get_1(0)) : b.get_1(f - 1)); -1 == e && 1 <= b.size_0() && (e = b.get_1(b.size_0() - 1)); } return e; }, fetchMoreLines_0: function () { var a = this.slotGame.getSlotState_0().getDefinition_0().getPlayLines_0(), b = this.slotGame.getSlotState_0().getNumberOfLines_0(), d = -1; if (null != a) { for (var e = 0; e < a.size_0(); e++) b == a.get_1(e) && (d = e == a.size_0() - 1 ? a.get_1(0) : a.get_1(e + 1)); -1 == d && 1 <= a.size_0() && (d = a.get_1(0)); } return d; }, fetchFewerLines_0: function () { var a = this.slotGame.getSlotState_0().getDefinition_0().getPlayLines_0(), b = this.slotGame.getSlotState_0().getNumberOfLines_0(), d = -1; if (null != a) { for (var e = 0; e < a.size_0(); e++) b == a.get_1(e) && (d = 0 == e ? a.get_1(a.size_0() - 1) : a.get_1(e - 1)); -1 == d && (d = 1 <= a.size_0() ? a.get_1(a.size_0() - 1) : 1); } return d; }, fetchMaxLines_0: function () { var a = this.slotGame.getSlotState_0().getDefinition_0().getPlayLines_0(), b = -1; null != a && (b = 1 <= a.size_0() ? a.get_1(a.size_0() - 1) : 1); return b; }, }, "GT1657", [] ), GT1628 = Class.extend( { initialConstructor_0: function () {}, getJackPotFactor_0: function () { return 0; }, hasJackpot_0: function () { return !1; }, getJackpotMinBet_0: function () { return this.getMinTotalBet_0(); }, getJackpotMaxBet_0: function () { return this.getMaxTotalBet_0(); }, isActionAllowed_0: function () { return !0; }, isDeepWalletPlayer_0: function () { return !1; }, }, "GT1628", [] ), GT1147 = Class.extend( { initialConstructor_0: function () { this.slotGame = null; this.firstStateAfterInit = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGame = null; this.firstStateAfterInit = !1; this.slotGame = a; }, isFirstStateAfterInit_0: function () { return this.firstStateAfterInit; }, setFirstStateAfterInit_1: function (a) { this.firstStateAfterInit = a; }, getSlotGame_0: function () { return this.slotGame; }, getConnection_0: function () { return this.slotGame.getConnection_0(); }, getSlotState_0: function () { return this.slotGame.getSlotState_0(); }, changeState_1: function (a) { this.slotGame.getClientStateMachine_0().changeState_1(a); }, changeState_2: function (a, b) { this.slotGame.getClientStateMachine_0().changeState_2(a, b); }, changeGuiState_1: function (a) { this.slotGame.getGuiStateMachine_0().changeState_1(a); }, changeGuiState_2: function (a, b) { this.slotGame.getGuiStateMachine_0().changeState_2(a, b); }, changeGuiState_3: function (a, b, d) { this.slotGame.getGuiStateMachine_0().changeState_3(a, b, d); }, requestFinishGuiState_0: function () { this.slotGame.getGuiStateMachine_0().requestFinish_0(); }, notifySessionTicketsUpdated_0: function () {}, notifyRoundFinished_0: function () {}, setGameStateForWrapper_1: function (a) { a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMEMODE, a); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); }, }, "GT1147", [] ), GT724 = Class.extend( { initialConstructor_0: function () { this.slotState = this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.slotState = this.slotEventManager = null; this.slotEventManager = a; this.slotState = b; }, getTag_0: function () { return 71; }, decode_1: function (a) { if (2 <= a.length) { var b = GT1672.prototype.stringToInt_1(a[0]), d = GT1672.prototype.stringToInt_1(a[1]), e = -1; 3 <= a.length && (e = GT1672.prototype.stringToInt_1(a[2])); b != this.slotState.getBaseBet_0() && this.slotEventManager.fireSlotEvent_1(new GT982(b, !1)); -1 != e && e != this.slotState.getGameMode_0() && this.slotEventManager.fireSlotEvent_1(new GT937(e)); d != this.slotState.getNumberOfLines_0() && this.slotEventManager.fireSlotEvent_1(new GT773(GT1354.prototype.NUMLINES, d)); } }, }, "GT724", [GT810] ), GT666 = Class.extend( { initialConstructor_0: function () { this.slotState = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; this.slotState = a; }, getTag_0: function () { return 81; }, decode_1: function (a) { 1 == a.length && this.slotState.setClientInfo_1(a[0]); }, }, "GT666", [GT810] ), GT512 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 68; }, decode_1: function (a) { 4 <= a.length && this.slotEventManager.fireSlotEvent_1(new GT667(a[0], a[2], a[3])); }, }, "GT512", [GT810] ), GT566 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 66; }, decode_1: function (a) { null != a && 1 == a.length ? this.slotEventManager.fireSlotEvent_1(new GT983(GT1672.prototype.stringToInt_1(a[0]))) : this.slotEventManager.fireSlotEvent_1(new GT983()); }, }, "GT566", [GT810] ), GT368 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 73; }, decode_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.HALF_COLLECT)); }, }, "GT368", [GT810] ), GT612 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 67; }, decode_1: function (a) { 0 < a.length && ((a = a[0].charAt_1(0)), 66 == a || 98 == a ? this.slotEventManager.fireSlotEvent_1(new GT1037(GT1354.prototype.GAMBLE_BLACK, a)) : 82 == a || 114 == a ? this.slotEventManager.fireSlotEvent_1(new GT1037(GT1354.prototype.GAMBLE_RED, a)) : this.slotEventManager.fireSlotEvent_1(new GT1037(GT1354.prototype.GAMBLE, a))); }, }, "GT612", [GT810] ), GT513 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 69; }, decode_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)); }, }, "GT513", [GT810] ), GT668 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 65; }, decode_1: function (a) { null != a && 1 == a.length ? this.slotEventManager.fireSlotEvent_1(new GT885(GT1354.prototype.STARTSPIN, GT885.prototype.TRIGGER_BUTTON, !1, GT1672.prototype.stringToInt_1(a[0]))) : this.slotEventManager.fireSlotEvent_1(new GT885(GT885.prototype.TRIGGER_BUTTON, !1)); }, }, "GT668", [GT810] ), GT369 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 70; }, decode_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.GAMBLE)); }, }, "GT369", [GT810] ), GT341 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, getTag_0: function () { return 72; }, decode_1: function (a) { 1 == a.length && this.slotEventManager.fireSlotEvent_1(new GT467(GT1672.prototype.stringToInt_1(a[0]))); }, }, "GT341", [GT810] ), GT191 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutDesignedWidth_2: function (a, b) { return 1229; }, layoutDesignedHeight_2: function (a, b) { return 768; }, layoutOverscanLeft_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanRight_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanTop_2: function (a, b) { return 768; }, }, "GT191", [] ), GT147 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutDesignedWidth_2: function (a, b) { return 1229; }, layoutDesignedHeight_2: function (a, b) { return 768; }, layoutOverscanLeft_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanRight_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanTop_2: function (a, b) { return 768; }, layoutOverscanBottom_2: function (a, b) { return 768; }, }, "GT147", [] ), GT1597 = Class.extend( { initialConstructor_0: function () { this.winMeter = this.freeSpinWinnings = this.nextSpinReelset = this.prevWinMultiplier = this.winMultiplier = this.freeSpinsPlayed = this.freeSpinsWonNow = this.freeSpinsWon = 0; this.stopAutoplayAfterFreeGames = this.forceAutoplayInFreeGames = !1; this.stopAutoplayAfterFreeGames = !0; }, getFreeSpinsWon_0: function () { return this.freeSpinsWon; }, getFreeSpinsWonNow_0: function () { return this.freeSpinsWonNow; }, setFreeSpinsWonNow_1: function (a) { this.freeSpinsWonNow = a; }, setFreeSpinsWon_1: function (a) { this.freeSpinsWon = a; }, getFreeSpinsPlayed_0: function () { return this.freeSpinsPlayed; }, getWinMultiplier_0: function () { return this.winMultiplier; }, getPreviousWinMultiplier_0: function () { return this.prevWinMultiplier; }, setFreeSpinsPlayed_1: function (a) { this.freeSpinsPlayed = a; }, setWinMultiplier_1: function (a) { this.winMultiplier = a; }, setPreviousWinMultiplier_1: function (a) { this.prevWinMultiplier = a; }, getNextSpinReelset_0: function () { return this.nextSpinReelset; }, setNextSpinReelset_1: function (a) { this.nextSpinReelset = a; }, getFreeSpinWinnings_0: function () { return this.freeSpinWinnings; }, setFreeSpinWinnings_1: function (a) { this.freeSpinWinnings = a; }, getWinMeter_0: function () { return this.winMeter; }, setWinMeter_1: function (a) { this.winMeter = a; }, isFreeSpinsRunning_0: function () { return 0 < this.freeSpinsWon; }, hasFreeSpinsWon_0: function () { return 0 < this.freeSpinsWonNow; }, isBeforeFirstFreeSpin_0: function () { return this.isFreeSpinsRunning_0() && 0 == this.freeSpinsPlayed; }, isAtLastFreeSpin_0: function () { return this.isFreeSpinsRunning_0() && this.freeSpinsPlayed == this.freeSpinsWon; }, isForceAutoplayInFreeGames_0: function () { return this.forceAutoplayInFreeGames; }, isStopAutoplayAfterFreeGames_0: function () { return this.stopAutoplayAfterFreeGames; }, setForceAutoplayInFreeGames_1: function (a) { this.forceAutoplayInFreeGames = a; }, setStopAutoplayAfterFreeGames_1: function (a) { this.stopAutoplayAfterFreeGames = a; }, }, "GT1597", [] ), GT1629 = Class.extend( { initialConstructor_0: function () { this.history = this.superGameWins = this.wins = this.possibleSuperGameGambleSteps = this.possibleGambleSteps = this.filter = null; this.isluckyloser = !1; this.numberOfHalfCollects = 0; }, setFilter_1: function (a) { this.filter = a; }, getNumberOfPossibleGambleSteps_0: function () { return this.getPossibleGambleSteps_0().size_0(); }, getPossibleGambleStep_1: function (a) { return this.getPossibleGambleSteps_0().get_1(a); }, setPossibleGambleSteps_1: function (a) { this.possibleGambleSteps = a; }, getPossibleGambleSteps_0: function () { return null != this.filter ? this.filter.getPossibleGambleSteps_1(this.possibleGambleSteps) : this.possibleGambleSteps; }, getPossibleSuperGameGambleStep_1: function (a) { return this.getPossibleSuperGameGambleSteps_0().get_1(a); }, setPossibleSuperGameGambleSteps_1: function (a) { this.possibleSuperGameGambleSteps = a; }, getPossibleSuperGameGambleSteps_0: function () { return null != this.filter ? this.filter.getPossibleSuperGameGambleSteps_1(this.possibleSuperGameGambleSteps) : this.possibleSuperGameGambleSteps; }, getWin_1: function (a) { return this.getWins_0().get_1(a); }, setWins_1: function (a) { this.wins = a; }, getWins_0: function () { return null != this.filter ? this.filter.getWins_1(this.wins) : this.wins; }, getSuperGameWins_0: function () { return null != this.filter ? this.filter.getSuperGameWins_1(this.superGameWins) : this.superGameWins; }, setSuperGameWins_1: function (a) { this.superGameWins = a; }, getHistory_0: function () { return null != this.filter ? this.filter.getHistory_1(this.history) : this.history; }, setHistory_1: function (a) { this.history = a; }, isLuckyLoser_0: function () { return this.isluckyloser; }, setLuckyLoser_1: function (a) { this.isluckyloser = a; }, getNumberOfWins_0: function () { return this.getWins_0().size_0(); }, isMoreGamblePossible_0: function () { return this.getNumberOfPossibleGambleSteps_0() > this.getNumberOfWins_0(); }, getNumberOfHalfCollects_0: function () { return this.numberOfHalfCollects; }, setNumberOfHalfCollects_1: function (a) { this.numberOfHalfCollects = a; }, }, "GT1629", [] ), GT1459 = Class.extend( { initialConstructor_0: function () {}, getPossibleGambleSteps_1: function (a) { return a; }, getPossibleSuperGameGambleSteps_1: function (a) { return a; }, getWins_1: function (a) { return a; }, getSuperGameWins_1: function (a) { return a; }, getHistory_1: function (a) { return a; }, }, "GT1459", [] ), GT314 = Class.extend( { initialConstructor_0: function () { this.previousActive = this.gameConsole = null; Class.prototype.initialConstructor_0.call(this); }, addConsoleListener_1: function (a) {}, removeConsoleListener_1: function (a) {}, init_1: function (a) {}, load_1: function (a) {}, setActive_1: function (a) { null == this.gameConsole || (null != this.previousActive && this.previousActive.booleanValue_0() == a) || (this.gameConsole.setActive_1(a), (this.previousActive = new Boolean(a))); }, setHideCreditValue_3: function (a, b, d) {}, setCurrencyFormatter_6: function (a, b, d, e, f, g) {}, setHideValueFields_1: function (a) {}, setState_2: function (a, b) {}, setPossibleLineNumbers_2: function (a, b) {}, setPossibleGameModes_2: function (a, b) {}, setPossibleBetPerLine_2: function (a, b) {}, setBetMultiplier_1: function (a) {}, setNumberOfLines_1: function (a) {}, setGameMode_1: function (a) {}, setBetPerLine_1: function (a) {}, setCreditsAnimation_3: function (a, b, d) {}, setCredits_1: function (a) {}, setLastWin_1: function (a) {}, setBalance_1: function (a) {}, setLastWinAvailable_1: function (a) {}, setPossibleNumberOfAutoplays_2: function (a, b) {}, setAutoplayCounter_1: function (a) {}, accelerateSuperGameCounters_0: function () {}, setSuperGames_6: function (a, b, d, e, f, g) {}, setFreeGames_2: function (a, b) {}, setWinAnimation_3: function (a, b, d) { GT1389.prototype.getInstance_0().getDeviceStrategy_0().isValueCountActive_0() && this.checkIfWinUpdate_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_5(a, !0, null, !0, b); }, setWin_1: function (a) { var b = GT514.prototype.getInstance_0().getSlotGui_0().getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0(); this.checkIfWinUpdate_0() && ("GambleShowLost".equals_1(b) || "GambleShowWin".equals_1(b)) && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_2(a, !0); }, checkIfWinUpdate_0: function () { var a = !1; null != GT514.prototype.getInstance_0() && null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && (a = !0); return a; }, setWinSuperGames_4: function (a, b, d, e) {}, setStatusText_1: function (a) {}, setHighlightStatusText_1: function (a) {}, setHighlightBackgroundStatusText_1: function (a) {}, destroy_0: function () { this.gameConsole = null; }, setGameConsole_1: function (a) { GT1650.prototype.assertExp_2(null != a, "GameConsole must not be null."); this.gameConsole = a; this.previousActive = null; }, }, "GT314", [GT174] ), GT1204 = Class.extend( { initialConstructor_0: function () { this.em = this.disp = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.em = this.disp = null; this.disp = a; this.em = b; }, handleGestureEvent_1: function (a) { this.em.fireSlotEvent_1(new GT984(a)); return !1; }, stop_0: function () { this.disp.unregisterHandler_1(this); this.em = this.disp = null; }, }, "GT1204", [GT920] ), GT75 = Class.extend( { initialConstructor_0: function () { this.slotState = this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.slotState = this.slotEventManager = null; this.slotEventManager = a; this.slotState = b; }, changeBet_1: function (a) { var b = a != this.slotState.getBaseBet_0(); this.slotEventManager.fireSlotEvent_1(new GT982(GT1354.prototype.BASEBET, a, !1)); b && this.slotEventManager.fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + a, !0)); }, changeLines_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT773(GT1354.prototype.NUMLINES, a)); }, changeGameMode_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT937(GT1354.prototype.GAMEMODE, a)); }, startSpin_2: function (a, b) { this.slotEventManager.fireSlotEvent_1(new GT885(GT1354.prototype.STARTSPIN, a ? GT885.prototype.TRIGGER_EXTERNAL : GT885.prototype.TRIGGER_BUTTON, b)); }, collect_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.COLLECT)); }, gamble_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.GAMBLE)); }, gambleBlack_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.GAMBLE_BLACK)); }, gambleRed_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.GAMBLE_RED)); }, gambleHalfCollect_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.HALF_COLLECT)); }, paytable_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)); }, paytableNext_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_NEXT)); }, paytablePrevious_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_PREVIOUS)); }, paytableClose_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)); }, autoplay_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAY)); }, autostop_0: function () { this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOSTOP)); }, changeAutoplayCount_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT370(GT1354.prototype.AUTOPLAY_COUNT, a)); }, }, "GT75", [GT124] ), GT166 = Class.extend( { initialConstructor_0: function () { this.stateId = this.allowedActions = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.stateId = this.allowedActions = null; this.allowedActions = a; this.stateId = b; }, getStateId_0: function () { return this.stateId; }, isAllowed_1: function (a) { if (null == this.allowedActions || null == a) return !1; for (var b = !1, d = 0; d < this.allowedActions.length; d++) if (this.allowedActions[d].equals_1(a)) { b = !0; break; } return b; }, getAllowedActions_0: function () { return this.allowedActions; }, }, "GT166", [] ); GT166.prototype.CONSOLESTATE_BEFORESPIN = "state_beforespin"; GT166.prototype.CONSOLESTATE_BEFORESPIN_CHANGEBET = "state_beforespin_changebet"; GT166.prototype.CONSOLESTATE_BEFOREFREESPIN = "state_beforefreespin"; GT166.prototype.CONSOLESTATE_BEFOREFREESPIN_NOAUTOSTART = "state_beforefreespin"; GT166.prototype.CONSOLESTATE_INACTIVE = "state_inactive"; GT166.prototype.CONSOLESTATE_FASTSTOP = "state_faststop"; GT166.prototype.CONSOLESTATE_FASTCOLLECT = "state_fastcollect"; GT166.prototype.CONSOLESTATE_SKIPCOLLECT = "state_skipcollect"; GT166.prototype.CONSOLESTATE_FASTSPIN = "state_fastspin"; GT166.prototype.CONSOLESTATE_GAMBLE = "state_gamble"; GT166.prototype.CONSOLESTATE_BEFOREGAMBLE = "state_beforegamble"; GT166.prototype.CONSOLESTATE_BEFOREGAMBLE_GAMBLEINACTIVE = "state_beforegamble_gambleinactive"; GT166.prototype.CONSOLESTATE_GAMBLE_COLLECTHALF = "state_gamble_collecthalf"; GT166.prototype.CONSOLESTATE_GAMBLE_REDBLACK = "state_gambleredblack"; GT166.prototype.CONSOLESTATE_AUTOSPIN = "state_autospin"; GT166.prototype.CONSOLESTATE_AUTOSPIN_SKIPWIN = "state_autospin_skipwin"; GT166.prototype.CONSOLESTATE_AUTOSPIN_STOPSPIN = "state_autospin_stopspin"; GT166.prototype.CONSOLESTATE_PAYTABLE = "state_paytable"; GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN = "state_paytable_freespin"; GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN_NOAUTOSTART = "state_paytable_freespin_noautostart"; GT166.prototype.CONSOLESTATE_PAYTABLE_CHANGEBET = "state_paytable_changebet"; GT166.prototype.CONSOLESTATE_PAYTABLE_ONLY = "state_paytable_only"; GT166.prototype.CONSOLESTATE_FEATURE = "state_feature"; GT166.prototype.CONSOLESTATE_FEATURE_NOAUTOSPIN = "state_feature_noautospin"; GT166.prototype.ACTION_STARTSPIN = "action_start"; GT166.prototype.ACTION_STOPSPIN = "action_stop"; GT166.prototype.ACTION_COLLECT = "action_collect"; GT166.prototype.ACTION_FASTCOLLECT = "action_fastcollect"; GT166.prototype.ACTION_AUTOPLAY = "action_autoplay"; GT166.prototype.ACTION_AUTOSTOP = "action_autostop"; GT166.prototype.ACTION_CHANGEBET = "action_changebet"; GT166.prototype.ACTION_PAYTABLE = "action_paytable"; GT166.prototype.ACTION_CHANGE_PAYTABLE = "action_changepaytable"; GT166.prototype.ACTION_GAMBLE = "action_gamble"; GT166.prototype.ACTION_GAMBLE_REDBLACK = "action_gambleredblack"; GT166.prototype.ACTION_GAMBLE_SINGLE = "action_gamblesingle"; GT166.prototype.ACTION_GAMBLE_HALFCOLLECT = "action_gamblehalfcollect"; var GT76 = Class.extend( { initialConstructor_0: function () { this.states = this.gsm = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.states = this.gsm = null; this.gsm = a; this.states = new java_util_JavaScriptHashtable(); this.states.put_2( GT166.prototype.CONSOLESTATE_BEFORESPIN, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_CHANGEBET, GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_BEFORESPIN) ); this.states.put_2(GT166.prototype.CONSOLESTATE_BEFORESPIN_CHANGEBET, new GT166([GT166.prototype.ACTION_CHANGEBET, GT166.prototype.ACTION_PAYTABLE], GT166.prototype.CONSOLESTATE_BEFORESPIN_CHANGEBET)); this.states.put_2( GT166.prototype.CONSOLESTATE_BEFOREFREESPIN, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_BEFOREFREESPIN) ); this.states.put_2(GT166.prototype.CONSOLESTATE_BEFOREFREESPIN_NOAUTOSTART, new GT166([GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_BEFOREFREESPIN_NOAUTOSTART)); this.states.put_2(GT166.prototype.CONSOLESTATE_INACTIVE, new GT166([], GT166.prototype.CONSOLESTATE_INACTIVE)); this.states.put_2(GT166.prototype.CONSOLESTATE_FASTSTOP, new GT166([GT166.prototype.ACTION_STOPSPIN], GT166.prototype.CONSOLESTATE_FASTSTOP)); this.states.put_2(GT166.prototype.CONSOLESTATE_FASTCOLLECT, new GT166([GT166.prototype.ACTION_COLLECT], GT166.prototype.CONSOLESTATE_FASTCOLLECT)); this.states.put_2(GT166.prototype.CONSOLESTATE_SKIPCOLLECT, new GT166([GT166.prototype.ACTION_FASTCOLLECT], GT166.prototype.CONSOLESTATE_SKIPCOLLECT)); this.states.put_2(GT166.prototype.CONSOLESTATE_FASTSPIN, new GT166([GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_FASTSPIN)); this.states.put_2(GT166.prototype.CONSOLESTATE_GAMBLE, new GT166([GT166.prototype.ACTION_COLLECT, GT166.prototype.ACTION_GAMBLE], GT166.prototype.CONSOLESTATE_GAMBLE)); this.states.put_2(GT166.prototype.CONSOLESTATE_BEFOREGAMBLE, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_COLLECT, GT166.prototype.ACTION_GAMBLE], GT166.prototype.CONSOLESTATE_BEFOREGAMBLE)); this.states.put_2(GT166.prototype.CONSOLESTATE_BEFOREGAMBLE_GAMBLEINACTIVE, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_COLLECT], GT166.prototype.CONSOLESTATE_BEFOREGAMBLE_GAMBLEINACTIVE)); this.states.put_2( GT166.prototype.CONSOLESTATE_GAMBLE_COLLECTHALF, new GT166([GT166.prototype.ACTION_COLLECT, GT166.prototype.ACTION_GAMBLE, GT166.prototype.ACTION_GAMBLE_HALFCOLLECT], GT166.prototype.CONSOLESTATE_GAMBLE_COLLECTHALF) ); this.states.put_2(GT166.prototype.CONSOLESTATE_GAMBLE_REDBLACK, new GT166([GT166.prototype.ACTION_COLLECT, GT166.prototype.ACTION_GAMBLE_REDBLACK], GT166.prototype.CONSOLESTATE_GAMBLE_REDBLACK)); this.states.put_2(GT166.prototype.CONSOLESTATE_AUTOSPIN, new GT166([GT166.prototype.ACTION_AUTOSTOP], GT166.prototype.CONSOLESTATE_AUTOSPIN)); this.states.put_2(GT166.prototype.CONSOLESTATE_AUTOSPIN_SKIPWIN, new GT166([GT166.prototype.ACTION_AUTOSTOP, GT166.prototype.ACTION_FASTCOLLECT], GT166.prototype.CONSOLESTATE_AUTOSPIN_SKIPWIN)); this.states.put_2(GT166.prototype.CONSOLESTATE_AUTOSPIN_STOPSPIN, new GT166([GT166.prototype.ACTION_AUTOSTOP, GT166.prototype.ACTION_STOPSPIN], GT166.prototype.CONSOLESTATE_AUTOSPIN_STOPSPIN)); this.states.put_2( GT166.prototype.CONSOLESTATE_PAYTABLE, new GT166( [GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_CHANGE_PAYTABLE, GT166.prototype.ACTION_CHANGEBET, GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_PAYTABLE ) ); this.states.put_2( GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_CHANGE_PAYTABLE, GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN) ); this.states.put_2( GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN_NOAUTOSTART, new GT166([GT166.prototype.ACTION_CHANGE_PAYTABLE, GT166.prototype.ACTION_PAYTABLE, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN_NOAUTOSTART) ); this.states.put_2( GT166.prototype.CONSOLESTATE_PAYTABLE_CHANGEBET, new GT166([GT166.prototype.ACTION_CHANGE_PAYTABLE, GT166.prototype.ACTION_CHANGEBET, GT166.prototype.ACTION_PAYTABLE], GT166.prototype.CONSOLESTATE_PAYTABLE_CHANGEBET) ); this.states.put_2(GT166.prototype.CONSOLESTATE_PAYTABLE_ONLY, new GT166([GT166.prototype.ACTION_CHANGE_PAYTABLE, GT166.prototype.ACTION_PAYTABLE], GT166.prototype.CONSOLESTATE_PAYTABLE_ONLY)); this.states.put_2(GT166.prototype.CONSOLESTATE_FEATURE, new GT166([GT166.prototype.ACTION_AUTOPLAY, GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_FEATURE)); this.states.put_2(GT166.prototype.CONSOLESTATE_FEATURE_NOAUTOSPIN, new GT166([GT166.prototype.ACTION_STARTSPIN], GT166.prototype.CONSOLESTATE_FEATURE_NOAUTOSPIN)); }, getCustomState_1: function (a) { var b = ""; a == GT725.prototype.BEFORE_SPIN || a == GT725.prototype.BEFORE_SPIN_CHANGE_BET ? (b = GT166.prototype.CONSOLESTATE_BEFORESPIN) : a == GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET || a == GT725.prototype.BEFORE_SPIN_ZERO_CREDITS ? (b = GT166.prototype.CONSOLESTATE_BEFORESPIN_CHANGEBET) : a == GT725.prototype.BEFORE_FREESPIN ? (b = GT166.prototype.CONSOLESTATE_BEFOREFREESPIN) : a == GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART ? (b = GT166.prototype.CONSOLESTATE_BEFOREFREESPIN_NOAUTOSTART) : a == GT725.prototype.INACTIVE ? (b = GT166.prototype.CONSOLESTATE_INACTIVE) : a == GT725.prototype.FASTSTOP ? (b = GT166.prototype.CONSOLESTATE_FASTSTOP) : a == GT725.prototype.FASTCOLLECT || a == GT725.prototype.GAMBLE_MAXWIN || a == GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE || a == GT725.prototype.GAMBLE_REDBLACK_MAXWIN ? (b = GT166.prototype.CONSOLESTATE_FASTCOLLECT) : a == GT725.prototype.SKIPCOLLECT ? (b = GT166.prototype.CONSOLESTATE_SKIPCOLLECT) : a == GT725.prototype.FASTSPIN ? (b = GT166.prototype.CONSOLESTATE_FASTSPIN) : a == GT725.prototype.FASTCOLLECTORGAMBLE || a == GT725.prototype.GAMBLE || a == GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE ? (b = GT166.prototype.CONSOLESTATE_GAMBLE) : a == GT725.prototype.BEFORE_GAMBLE ? (b = GT166.prototype.CONSOLESTATE_BEFOREGAMBLE) : a == GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE ? (b = GT166.prototype.CONSOLESTATE_BEFOREGAMBLE_GAMBLEINACTIVE) : a == GT725.prototype.GAMBLE_COLLECTHALF ? (b = GT166.prototype.CONSOLESTATE_GAMBLE_COLLECTHALF) : a == GT725.prototype.GAMBLE_REDBLACK ? (b = GT166.prototype.CONSOLESTATE_GAMBLE_REDBLACK) : a == GT725.prototype.AUTO_SPIN ? (b = GT166.prototype.CONSOLESTATE_AUTOSPIN) : a == GT725.prototype.AUTO_SPIN_SKIP_WIN ? (b = GT166.prototype.CONSOLESTATE_AUTOSPIN_SKIPWIN) : a == GT725.prototype.AUTO_SPIN_STOP_SPIN ? (b = GT166.prototype.CONSOLESTATE_AUTOSPIN_STOPSPIN) : a == GT725.prototype.PAYTABLE ? (b = GT166.prototype.CONSOLESTATE_PAYTABLE) : a == GT725.prototype.PAYTABLE_FREESPIN ? (b = GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN) : a == GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART ? (b = GT166.prototype.CONSOLESTATE_PAYTABLE_FREESPIN_NOAUTOSTART) : a == GT725.prototype.PAYTABLE_MUST_CHANGE_BET || a == GT725.prototype.PAYTABLE_ZERO_CREDITS ? (b = GT166.prototype.CONSOLESTATE_PAYTABLE_CHANGEBET) : a == GT725.prototype.PAYTABLE_ONLY ? (b = GT166.prototype.CONSOLESTATE_PAYTABLE_ONLY) : a == GT725.prototype.SUPERGAME || a == GT725.prototype.FEATURE ? (b = GT166.prototype.CONSOLESTATE_FEATURE) : a == GT725.prototype.FEATURE_NO_AUTOSTART && (b = GT166.prototype.CONSOLESTATE_FEATURE_NOAUTOSPIN); return this.states.containsKey_1(b) ? this.states.get_1(b) : null; }, getGuiStateConsoleIdentifier_0: function () { return this.gsm.getCurrentStateConsoleIdentifier_0(); }, }, "GT76", [] ), GT233 = Class.extend( { initialConstructor_0: function () { this.handler = this.timer = this.winFieldFormatter = this.currencyFormatter = this.container = null; this.winSuperGames = this.win = this.betPerLine = this.gameMode = this.numberOfLines = this.betMultiplier = 0; this.winSuperGameCounter = this.superGameCounter = this.colorHighlightStatusTextAndWin = this.colorWinDefault = this.colorTextInactive = this.colorStatusTextDefault = this.colorGG = this.colorMG = this.colorSG = this.colorSGDefault = this.statusHighlighter = null; this.showTotalBetForBetSpinner = this.neverHideWinField = this.hideCreditValue = this.lastWinAvailable = this.hideLineSpinnerIfLinesAreFixed = this.showStatusHighlightBackground = this.hideStatusBackgroundIfNoText = !1; this.consoleListener = this.formatterBetSpinner = this.formatterCurrencyFields = this.formatterCreditAndBalanceField = this.hideMoneyAnimator = null; this.active = this.useAutoplayCounter = !1; this.slotGui = this.currentState = this.currentGuiState = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = this.timer = this.winFieldFormatter = this.currencyFormatter = this.container = null; this.winSuperGames = this.win = this.betPerLine = this.gameMode = this.numberOfLines = this.betMultiplier = 0; this.winSuperGameCounter = this.superGameCounter = this.colorHighlightStatusTextAndWin = this.colorWinDefault = this.colorTextInactive = this.colorStatusTextDefault = this.colorGG = this.colorMG = this.colorSG = this.colorSGDefault = this.statusHighlighter = null; this.showTotalBetForBetSpinner = this.neverHideWinField = this.hideCreditValue = this.lastWinAvailable = this.hideLineSpinnerIfLinesAreFixed = this.showStatusHighlightBackground = this.hideStatusBackgroundIfNoText = !1; this.consoleListener = this.formatterBetSpinner = this.formatterCurrencyFields = this.formatterCreditAndBalanceField = this.hideMoneyAnimator = null; this.active = this.useAutoplayCounter = !1; this.slotGui = this.currentState = this.currentGuiState = null; this.slotGui = a; this.timer = a.getTimer_0(); this.consoleListener = new java_util_JavaScriptVector(); this.active = this.lastWinAvailable = !0; this.currencyFormatter = new GT94("", 1, "", "", "", ""); this.colorSG = new GT1634(255, 0, 0); this.colorMG = new GT1634(50, 150, 255); this.colorGG = new GT1634(222, 0, 255); this.formatterCreditAndBalanceField = new GT77(this.currencyFormatter, GT94.prototype.OMIT_CENT_NEVER); this.formatterCurrencyFields = new GT77(this.currencyFormatter, GT94.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO); this.formatterBetSpinner = new GT77(this.currencyFormatter, GT94.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO); this.formatterBetSpinner.setShowCurrency_1(!1); var b = a.getSkinManager_0().getText_1("${console_wintext}"), d = b.indexOf_1("#0"); -1 != d ? ((a = b.substring_2(0, d)), (b = b.substring_2(d + 2, b.length_0()))) : ((a = ""), (b = " " + b)); this.neverHideWinField = !1; this.winFieldFormatter = new GT50(this.currencyFormatter, a, b); this.winFieldFormatter.setHideWhenValueIsZero_1(!1); this.handler = new GT128(this, this.consoleListener); }, addConsoleListener_1: function (a) { this.consoleListener.contains_1(a) || this.consoleListener.add_1(a); }, removeConsoleListener_1: function (a) { this.consoleListener.contains_1(a) && this.consoleListener.removeElement_1(a); }, init_1: function (a) { this.container = new GT1437(a, 0, 0, a.getWidth_0(), a.getHeight_0()); GT167.prototype.console_0().create_2(this.container, this.slotGui.getSkinManager_0()); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); null != a && instanceOf(a, GT1410) && (this.colorStatusTextDefault = a.getColor_0()); this.addSpinnerListener_2(this.container.findDescendant_1(GT834.prototype.ID_SPINNER_LINES), this.handler); this.addSpinnerListener_2(this.container.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES), this.handler); this.addSpinnerListener_2(this.container.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE), this.handler); this.addSpinnerListener_2(this.container.findDescendant_1(GT834.prototype.ID_SPINNER_AUTOPLAY), this.handler); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCreditAndBalanceField); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCreditAndBalanceField); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN); null != a && instanceOf(a, GT1410) && (a.setFormatter_1(this.winFieldFormatter), (this.colorWinDefault = a.getColor_0())); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT); null != a && (a.hide_1(!0), instanceOf(a, GT1449) && (this.colorSGDefault = a.getColor_0())); this.setNumberOfLines_1(0); this.setGameMode_1(0); this.setBetPerLine_1(0); this.setSuperGames_6(0, 0, "", !0, !1, null); var b = this.container.getChild_1(0); a = b.getChildCount_0(); for (var d = 0; d < a; d++) instanceOf(b.getChild_1(d), GT1559) && b.getChild_1(d).addButtonListener_1(this.handler); b = this.container.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); if (null != b) for (a = b.getChildCount_0(), d = 0; d < a; d++) instanceOf(b.getChild_1(d), GT1559) && b.getChild_1(d).addButtonListener_1(this.handler); b = this.container.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); if (null != b) for (a = b.getChildCount_0(), d = 0; d < a; d++) instanceOf(b.getChild_1(d), GT1559) && b.getChild_1(d).addButtonListener_1(this.handler); a = this.container.findDescendant_1(GT834.prototype.ID_OBJECT_LASTWIN_NA); null != a && a.hide_1(!0); a = this.container.findDescendant_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS); d = this.container.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE); b = this.container.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS); if (null != a && a.isAlive_0()) { var e = null; null != d && d.isAlive_0() && instanceOf(d, GT1559) && ((e = d), e.setDragable_4(!0, !1, 0, 0), e.setDragArea_4(0, 0, a.getWidth_0() - d.getWidth_0(), 0)); null != b && b.isAlive_0() && instanceOf(b, GT1559); } }, load_1: function (a) {}, addSpinnerListener_2: function (a, b) { null != a && instanceOf(a, GT1230) && a.addSpinnerListener_1(b); }, setCurrencyFormatter_6: function (a, b, d, e, f, g) { this.currencyFormatter = new GT94(a, b, d, e, f, g); this.formatterCreditAndBalanceField.setCurrencyFormatter_1(this.currencyFormatter); this.formatterCurrencyFields.setCurrencyFormatter_1(this.currencyFormatter); this.formatterBetSpinner.setCurrencyFormatter_1(this.currencyFormatter); this.showTotalBetForBetSpinner && this.formatterBetSpinner.setMultiplier_1(this.betMultiplier); this.winFieldFormatter.setCurrencyFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCreditAndBalanceField); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCreditAndBalanceField); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterBetSpinner); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields); a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields); }, setHideValueFields_1: function (a) { this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT), a); this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE), a); this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE), a); this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET), a); this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_LINES), a); this.setHideText_2(this.container.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN), !this.lastWinAvailable); }, setHideText_2: function (a, b) { null != a && instanceOf(a, GT1449) && a.setHideText_1(b); }, setActive_1: function (a) { this.active = a; this.applyState_3(this.container.getChild_1(0), this.currentState, this.currentGuiState); }, setState_2: function (a, b) { if (this.currentState != a || this.currentGuiState != b) (this.currentState = a), (this.currentGuiState = b), this.applyState_3(this.container.getChild_1(0), a, b); }, applyState_3: function (a, b, d) { a.getApplicationID_0() != GT834.prototype.ID_AREA_AUTOPLAY_SELECT || this.useAutoplayCounter || a.hide_1(!0); for (var e = a.getChildCount_0(), f = 0; f < e; f++) { var g = a.getChild_1(f), k = g.getApplicationID_0(); if (-1 != k) { var m = !1, n = !1; !b.isAllowed_1(GT166.prototype.ACTION_AUTOPLAY) || (g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOPLAY && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOPLAY_S && g.getApplicationID_0() != GT834.prototype.ID_SPINNER_AUTOPLAY) || (m = !0); !b.isAllowed_1(GT166.prototype.ACTION_AUTOSTOP) || (g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOSTOP && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOSTOP_S) || (m = !0); b.isAllowed_1(GT166.prototype.ACTION_CHANGE_PAYTABLE) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT && (m = !0); !b.isAllowed_1(GT166.prototype.ACTION_CHANGEBET) || (g.getApplicationID_0() != GT834.prototype.ID_SPINNER_BETPERLINE && g.getApplicationID_0() != GT834.prototype.ID_SPINNER_GAME_MODES && g.getApplicationID_0() != GT834.prototype.ID_SPINNER_LINES) || (m = !0); b.isAllowed_1(GT166.prototype.ACTION_COLLECT) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECT && ((m = !0), d.equals_1("GambleScreenOpen") || d.equals_1("DecideGamble")) && (n = !0); b.isAllowed_1(GT166.prototype.ACTION_FASTCOLLECT) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_SKIP_COLLECT && (m = !0); (b.isAllowed_1(GT166.prototype.ACTION_GAMBLE) || b.isAllowed_1(GT166.prototype.ACTION_GAMBLE_SINGLE)) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE && ((m = !0), d.equals_1("GambleScreenOpen") || d.equals_1("DecideGamble")) && (n = !0); b.isAllowed_1(GT166.prototype.ACTION_GAMBLE_HALFCOLLECT) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECTHALF && ((m = !0), d.equals_1("GambleScreenOpen") && (n = !0)); !b.isAllowed_1(GT166.prototype.ACTION_GAMBLE_REDBLACK) || (g.getApplicationID_0() != GT834.prototype.ID_BUTTON_GAMBLE_BLACK && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_GAMBLE_RED) || ((m = !0), d.equals_1("GambleScreenOpen") && (n = !0)); !b.isAllowed_1(GT166.prototype.ACTION_PAYTABLE) || (g.getApplicationID_0() != GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_PAYTABLE) || (m = !0); b.isAllowed_1(GT166.prototype.ACTION_STARTSPIN) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_START && ((m = !0), d.equals_1("BeforeSpin") || b.getStateId_0() == GT166.prototype.CONSOLESTATE_FEATURE || b.getStateId_0() == GT166.prototype.CONSOLESTATE_FEATURE_NOAUTOSPIN) && (n = !0); b.isAllowed_1(GT166.prototype.ACTION_STOPSPIN) && g.getApplicationID_0() == GT834.prototype.ID_BUTTON_STOP && (m = !0); this.active || (n = m = !1); instanceOf(g, GT1230) && (g.setActive_1(m), k == GT834.prototype.ID_SPINNER_LINES && this.hideLineSpinnerIfLinesAreFixed && 2 > g.getNumberOfValues_0() && g.hide_1(!0)); null != this.colorTextInactive && instanceOf(g, GT1449) && (m ? g.setColor_1(this.colorStatusTextDefault) : g.setColor_1(this.colorTextInactive)); instanceOf(g, GT1559) && (g.setActive_1(m), g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOPLAY && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_AUTOPLAY_S && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_PAYTABLE && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_GAMBLE && g.getApplicationID_0() != GT834.prototype.ID_BUTTON_START && g.hide_1(!m), instanceOf(g, GT515) && (n && g.hide_1(!1), g.setHighlighted_1(n))); !instanceOf(g, GT1437) || (k != GT834.prototype.ID_AREA_AUTOPLAY_SELECT && k != GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) || this.applyState_3(g, b, d); } } }, setPossibleLineNumbers_2: function (a, b) { var d = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_LINES); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.numberOfLines = b); this.setNumberOfLines_1(b); this.updateTotalBet_0(); }, setPossibleGameModes_2: function (a, b) { var d = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.gameMode = b); this.setGameMode_1(b); this.updateTotalBet_0(); }, setPossibleBetPerLine_2: function (a, b) { var d = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.betPerLine = b); this.setBetPerLine_1(b); this.updateTotalBet_0(); }, setBetMultiplier_1: function (a) { if (this.showTotalBetForBetSpinner && this.betMultiplier != a) { this.formatterBetSpinner.setMultiplier_1(a); var b = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != b && instanceOf(b, GT1231) && b.setFormatter_1(this.formatterBetSpinner); } this.betMultiplier = a; this.updateTotalBet_0(); }, setNumberOfLines_1: function (a) { this.numberOfLines = a; var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_LINES); null != b && instanceOf(b, GT1584) && b.setText_1("" + a); b = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_LINES); null != b && instanceOf(b, GT1230) && b.setValue_1(a); this.updateTotalBet_0(); }, setGameMode_1: function (a) { this.gameMode = a; var b = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES); null != b && instanceOf(b, GT1230) && b.setValue_1(a); this.updateTotalBet_0(); }, setBetPerLine_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE); null != b && instanceOf(b, GT1410) && (0 < this.betMultiplier && 0 < this.numberOfLines && this.betMultiplier != this.numberOfLines ? b.setValue_2((this.betMultiplier / this.numberOfLines) * a, !0) : b.setValue_2(a, !0)); b = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != b && instanceOf(b, GT1230) && b.setValue_1(a); this.updateTotalBet_0(); }, setCreditsAnimation_3: function (a, b, d) { var e = this.container.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); if (null != e && instanceOf(e, GT1410)) { if (null != this.currencyFormatter && instanceOf(this.currencyFormatter, GT94)) { var f = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT94.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || f) e.setRoundDuringAnimation_1(2), f && e.setMinimumNumberOfSteps_1(1); } 0 <= b && e.setDuration_1(b); e.addFinishCallback_1(new GT129(this.timer, e, d)); e.setValue_2(a, !1); } }, setCredits_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); if (null != b && instanceOf(b, GT1410)) { if (null != this.currencyFormatter && instanceOf(this.currencyFormatter, GT94)) { var d = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT94.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || d) b.setRoundDuringAnimation_1(2), d && b.setMinimumNumberOfSteps_1(1); } b.setValue_2(a, !0); } }, setLastWin_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); }, setBalance_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); }, setLastWinAvailable_1: function (a) { if (this.lastWinAvailable != a) { this.lastWinAvailable = a; var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != b && instanceOf(b, GT1449) && b.setHideText_1(!a); b = this.container.findDescendant_1(GT834.prototype.ID_OBJECT_LASTWIN_NA); null != b && b.hide_1(a); } }, setPossibleNumberOfAutoplays_2: function (a, b) { var d = this.container.findDescendant_1(GT834.prototype.ID_SPINNER_AUTOPLAY); null != d && instanceOf(d, GT1230) && d.setValues_2(a, b); this.setAutoplayCounter_1(b); -1 < b ? ((this.useAutoplayCounter = !0), (d = this.container.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT))) : ((this.useAutoplayCounter = !1), (d = this.container.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT))); null != d && d.hide_1(!0); }, setAutoplayCounter_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); null != b && b.isAlive_0() && instanceOf(b, GT1437) && !b.isSomehowHidden_0() && this.setAPCounter_2(b, a); }, setAPCounter_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); e.isAlive_0() && e.getApplicationID_0() == GT834.prototype.ID_FIELD_AUTOPLAYS && instanceOf(e, GT1584) ? e.setText_1("" + b) : instanceOf(e, GT1437) && this.setAPCounter_2(e, b); } }, accelerateSuperGameCounters_0: function () { null != this.superGameCounter && this.superGameCounter.setTurbo_1(!0); null != this.winSuperGameCounter && this.winSuperGameCounter.setTurbo_1(!0); }, setSuperGames_6: function (a, b, d, e, f, g) { var k = this.container.findDescendant_1(GT834.prototype.ID_FIELD_SUPERGAMES); null != k && instanceOf(k, GT1584) && (e ? (null != this.superGameCounter && this.superGameCounter.stop_0(), k.setText_1("" + b + " " + d), k.hide_1(0 == b)) : ((e = this.slotGui.getSkinManager_0().getResourceManager_0().getSound_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3")), (this.superGameCounter = new GT58(this, this.timer, a, b, null, null, k, d, f, e, this.slotGui.getSoundPlayer_0(), g)), this.superGameCounter.run_0()), instanceOf(k, GT1449) && ((a = this.colorSGDefault), null != this.colorSG && "SG".equals_1(d) ? (a = this.colorSG) : null != this.colorMG && "MG".equals_1(d) ? (a = this.colorMG) : null != this.colorGG && (a = this.colorGG), null != a && k.setColor_1(a))); }, setWinAnimation_3: function (a, b, d) { this.win = a; var e = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN); if (null != e && instanceOf(e, GT1410)) { if (null != this.currencyFormatter && instanceOf(this.currencyFormatter, GT94)) { var f = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT94.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || f) e.setRoundDuringAnimation_1(2), f && e.setMinimumNumberOfSteps_1(1); } 0 <= b && e.setDuration_1(b); this.neverHideWinField || e.hide_1(!1); this.updateBackgrounds_0(); e.addFinishCallback_1(new GT129(this.timer, e, d)); e.setValue_2(a, !1); } }, setWin_1: function (a) { this.win = a; var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN); if (null != b && instanceOf(b, GT1410)) { if (null != this.currencyFormatter && instanceOf(this.currencyFormatter, GT94)) { var d = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT94.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || d) b.setRoundDuringAnimation_1(2), d && b.setMinimumNumberOfSteps_1(1); } this.neverHideWinField || (0 == this.win && 0 == this.winSuperGames ? b.hide_1(!0) : b.hide_1(!1)); this.updateBackgrounds_0(); b.setValue_2(a, !0); } }, setWinSuperGames_4: function (a, b, d, e) { var f = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN); java_lang_System.prototype.err.println_1("set win super game: " + a + " " + d); d ? (null != this.winSuperGameCounter && this.winSuperGameCounter.stop_0(), 0 != a ? this.winFieldFormatter.setSuperGameText_1(" + " + a + " " + b) : this.winFieldFormatter.setSuperGameText_1(""), null != f && (f.hide_1(0 == this.win && 0 == a && !this.neverHideWinField), instanceOf(f, GT1410) && f.refresh_0())) : ((this.winSuperGameCounter = new GT58(this, this.timer, this.winSuperGames, a, this.winFieldFormatter, f, null, b, e, null, null, null)), this.winSuperGameCounter.run_0()); this.updateBackgrounds_0(); this.winSuperGames = a; }, setStatusText_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); null != b && (instanceOf(b, GT1584) && b.setText_1(a), b.hide_1(null == a || a.equals_1("")), this.updateBackgrounds_0()); }, setHighlightStatusText_1: function (a) { var b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); a ? null == this.statusHighlighter && null != b && b.isAlive_0() && instanceOf(b, GT1437) && ((this.statusHighlighter = new GT464(this.timer, b)), this.statusHighlighter.start_0()) : null != this.statusHighlighter && (this.statusHighlighter.kill_0(), (this.statusHighlighter = null)); }, setHighlightBackgroundStatusText_1: function (a) { this.showStatusHighlightBackground = a; this.updateBackgrounds_0(); }, getWin_0: function () { return this.win; }, getWinSuperGames_0: function () { return this.winSuperGames; }, getGameMode_0: function () { return this.gameMode; }, getNumberOfLines_0: function () { return this.numberOfLines; }, getBetPerLine_0: function () { return this.betPerLine; }, updateTextColors_0: function () { if (null != this.colorHighlightStatusTextAndWin) { var a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_STATUS), b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN); null != a && instanceOf(a, GT1410) && a.setColor_1(this.showStatusHighlightBackground ? this.colorHighlightStatusTextAndWin : this.colorStatusTextDefault); null != b && instanceOf(b, GT1410) && b.setColor_1(this.showStatusHighlightBackground ? this.colorHighlightStatusTextAndWin : this.colorWinDefault); } }, updateBackgrounds_0: function () { var a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_STATUS), b = this.container.findDescendant_1(GT834.prototype.ID_FIELD_WIN), a = (null == a || a.isHidden_0()) && (null == b || b.isHidden_0()), b = this.container.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUS); null != b && this.hideStatusBackgroundIfNoText && b.hide_1(a); null == b && this.hideStatusBackgroundIfNoText && null != this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET) && this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET).hide_1(!a || this.showStatusHighlightBackground); b = this.container.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT); null != b && b.hide_1(!this.showStatusHighlightBackground); this.updateTextColors_0(); }, updateTotalBet_0: function () { var a = this.container.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET); null != a && instanceOf(a, GT1410) && a.setValue_2(this.betPerLine * this.betMultiplier, !0); }, setHideCreditValue_3: function (a, b, d) { this.hideCreditValue != a && ((this.hideCreditValue = a), this.updateHideMoneyBarrier_3(!a, b, d)); }, updateHideMoneyBarrier_3: function (a, b, d) { var e = this.container.findDescendant_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS), f = e.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE); if (null != e && e.isAlive_0() && null != f && f.isAlive_0()) { var g = GT834.prototype.HIDE_MONEY_BARRIER_TIME, k = 0, k = a ? e.getWidth_0() - f.getWidth_0() : 0; k == f.getX_0() ? f.setClickableAreaShape_1(GT9.prototype.clickAreaShapeForDragableCoverCreditsButton_1(a)) : 0 != g && b ? (null != this.hideMoneyAnimator && this.hideMoneyAnimator.isRunning_0() && this.hideMoneyAnimator.killWithoutTriggers_0(), (this.hideMoneyAnimator = new GT653(this.timer, f, k, f.getY_0(), g, !1)), this.hideMoneyAnimator.addFinishCallback_1(d), this.hideMoneyAnimator.addFinishCallback_1(new GT9(f, a)), this.hideMoneyAnimator.start_0()) : f.move_2(k, f.getY_0()); } }, setFreeGames_2: function (a, b) {}, }, "GT233", [GT174] ), GT58 = Class.extend( { initialConstructor_0: function () { this.timer = null; this.value = this.countTo = 0; this.superGameLabel = this.console = this.superGamesField = this.winField = this.winFieldFormatter = null; this.totalcounter = 0; this.turbo = this.stopped = !1; this.finishCallback = this.soundPlayer = this.soundSuperGameCounter = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.timer = null; this.value = this.countTo = 0; this.superGameLabel = this.console = this.superGamesField = this.winField = this.winFieldFormatter = null; this.totalcounter = 0; this.turbo = this.stopped = !1; this.finishCallback = this.soundPlayer = this.soundSuperGameCounter = null; this.timer = b; this.value = d; this.countTo = e; this.winFieldFormatter = f; this.superGamesField = k; this.winField = g; this.console = a; this.superGameLabel = m; this.turbo = n; this.soundSuperGameCounter = p; this.soundPlayer = q; this.finishCallback = r; this.totalcounter = 0; this.stopped = !1; }, stop_0: function () { this.stopped = !0; null != this.finishCallback && this.timer.triggerCallbackImmediately_1(this.finishCallback); }, setTurbo_1: function (a) { this.turbo = a; }, run_0: function () { if (!this.stopped) { this.countTo > this.value ? this.value++ : this.value--; null != this.winFieldFormatter && (this.winFieldFormatter.setSuperGameText_1(" + " + this.value + " " + this.superGameLabel), null != this.winField && instanceOf(this.winField, GT1410) && this.winField.refresh_0()); null != this.superGamesField && (this.superGamesField.setText_1("" + this.value + " " + this.superGameLabel), null != this.soundSuperGameCounter && null != this.soundPlayer && this.soundPlayer.start_1(this.soundSuperGameCounter)); if (this.value != this.countTo) { var a = 100 + (this.turbo ? 0 : 400 * Math.exp_1((this.totalcounter * Math.log_1(0.5)) / 2)); this.totalcounter++; this.timer.triggerCallbackAfter_2(this, Integer.truncate_1(Math.round_1(a))); } else null != this.winField && this.winField.hide_1(0 == this.console.getWin_0() && 0 == this.console.getWinSuperGames_0()), null != this.winFieldFormatter && this.winFieldFormatter.setSuperGameText_1(""), this.stop_0(); null != this.superGamesField && instanceOf(this.superGamesField, GT1560) && this.superGamesField.hide_1(0 == this.value); this.console.updateBackgrounds_0(); } }, }, "GT58", [Runnable] ), GT50 = GT1285.extend( { initialConstructor_0: function () { this.superGameText = this.suffix = this.prefix = this.currencyFormatter = null; this.hideIfZero = !1; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.superGameText = this.suffix = this.prefix = this.currencyFormatter = null; this.hideIfZero = !1; GT1285.prototype.initialConstructor_0.call(this); this.currencyFormatter = a; this.prefix = b; this.suffix = d; this.superGameText = ""; }, format_1: function (a) { var b = "", b = this.hideIfZero ? (0 == a ? "" : this.currencyFormatter.format_1(a)) : this.currencyFormatter.format_1(a); return "" + this.prefix + b + this.superGameText + this.suffix; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, setPrefix_1: function (a) { this.prefix = a; }, setSuffix_1: function (a) { this.suffix = a; }, setSuperGameText_1: function (a) { this.superGameText = a; }, setHideWhenValueIsZero_1: function (a) { this.hideIfZero = a; }, }, "GT50", [] ), GT77 = GT1285.extend( { initialConstructor_0: function () { this.currencyFormatter = null; this.omitCentPolicy = 0; this.showCurrency = !1; this.multiplier = 0; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.currencyFormatter = null; this.omitCentPolicy = 0; this.showCurrency = !1; this.multiplier = 0; GT1285.prototype.initialConstructor_0.call(this); this.currencyFormatter = a; this.omitCentPolicy = b; this.showCurrency = !0; this.multiplier = 1; }, setOmitCentPolicy_1: function (a) { this.omitCentPolicy = a; }, getOmitCentPolicy_0: function () { return this.omitCentPolicy; }, setMultiplier_1: function (a) { this.multiplier = a; }, setShowCurrency_1: function (a) { this.showCurrency = a; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, format_1: function (a) { return instanceOf(this.currencyFormatter, GT94) ? this.currencyFormatter.format_3(a * this.multiplier, this.omitCentPolicy, this.showCurrency) : this.currencyFormatter.format_1(a * this.multiplier); }, }, "GT77", [] ), GT9 = Class.extend( { initialConstructor_0: function () { this.button = null; this.movingRight = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.button = null; this.movingRight = !1; this.button = a; this.movingRight = b; }, run_0: function () { null != this.button && this.button.isAlive_0() && this.button.setClickableAreaShape_1(this.clickAreaShapeForDragableCoverCreditsButton_1(this.movingRight)); }, }, "GT9", [Runnable] ), GT129 = Class.extend( { initialConstructor_0: function () { this.finishCallback = this.field = this.timer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.finishCallback = this.field = this.timer = null; this.timer = a; this.field = b; this.finishCallback = d; }, run_0: function () { this.field.removeFinishCallback_1(this); null != this.finishCallback && this.timer.triggerCallbackImmediately_1(this.finishCallback); }, }, "GT129", [Runnable] ), GT295 = Class.extend( { initialConstructor_0: function () { this.highlighted = this.inactive = this.active = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.highlighted = this.inactive = this.active = null; this.active = a; this.inactive = b; this.highlighted = d; }, isActive_1: function (a) { for (var b = 0; b < this.active.length; b++) if (this.active[b] == a) return !0; return !1; }, isInactive_1: function (a) { for (var b = 0; b < this.inactive.length; b++) if (this.inactive[b] == a) return !0; return !1; }, isHighlighted_1: function (a) { for (var b = 0; b < this.highlighted.length; b++) if (this.highlighted[b] == a) return !0; return !1; }, }, "GT295", [] ); GT9.prototype.clickAreaShapeForDragableCoverCreditsButton_1 = function (a) { var b = new GT1124(); a ? b.setCoordinates_1([0, 0, 50, 0, 50, 60, 0, 60]) : b.setCoordinates_1([0, 0, 270, 0, 270, 60, 0, 60]); return b; }; var GT94 = GT1285.extend( { initialConstructor_0: function () { this.currency = null; this.currencyfactor = 0; this.tsep = this.csep = this.cursymbolwithNoBreakingSpace = this.currencySymbol = null; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.currency = null; this.currencyfactor = 0; this.tsep = this.csep = this.cursymbolwithNoBreakingSpace = this.currencySymbol = null; GT1285.prototype.initialConstructor_0.call(this); this.currency = a; this.currencyfactor = b; this.currencySymbol = d; this.cursymbolwithNoBreakingSpace = e; this.csep = f; this.tsep = g; }, format_1: function (a) { a = this.format_2(a, GT94.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO); java_lang_System.prototype.err.println_1("form: " + a); return a; }, format_2: function (a, b) { var d = this.format_3(a, b, 0 != this.currencySymbol.length_0()); java_lang_System.prototype.err.println_1("form 2: " + d); return d; }, format_3: function (a, b, d) { var e = !1; b == GT94.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO ? (e = 1 > this.currencyfactor) : b == GT94.prototype.OMIT_CENT_IF_ZERO ? (e = !0) : GT1650.prototype.assertExp_2(b == GT94.prototype.OMIT_CENT_NEVER, "Wrong omitCentPolicy"); if (null == this.currency) return ""; b = this.formatMoneyString_6(a, 1 != this.currencyfactor, e, d && 1 <= this.currency.length_0() ? this.cursymbolwithNoBreakingSpace : "", this.csep, this.tsep); java_lang_System.prototype.err.println_1("form 3: " + b + " show: " + d); java_lang_System.prototype.err.println_1("values: " + a + " " + (1 != this.currencyfactor) + " " + e + " " + (d && 1 <= this.currency.length_0() ? this.cursymbolwithNoBreakingSpace : "") + " " + this.csep + " " + this.tsep); return b; }, isWeakCurrency_0: function () { return 1 > this.currencyfactor; }, }, "GT94", [] ); GT94.prototype.formatMoneyString_6 = function (a, b, d, e, f, g) { var k = ""; 0 > a && ((a = -a), (k = "-")); var m = a, n = 0; b && ((m = Math.floor_1(a / 100)), (n = Integer.truncate_1(a - 100 * m))); return !b || (d && 0 == n) ? "" + e + k + GT1672.prototype.doubleToStringRounded_2(m, g) : "" + e + k + GT1672.prototype.doubleToStringRounded_2(m, g) + f + (10 <= n ? "" + n : "0" + n); }; GT94.prototype.OMIT_CENT_NEVER = 0; GT94.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO = 1; GT94.prototype.OMIT_CENT_IF_ZERO = 3; var GT128 = Class.extend( { initialConstructor_0: function () { this.consoleListener = this.console = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.consoleListener = this.console = null; this.console = a; this.consoleListener = b; }, spinnerValueChanged_1: function (a) { var b = null; null != a && instanceOf(a, GT1560) && (b = a); if (GT1560.prototype.isAlive_1(b)) if (b.getApplicationID_0() == GT834.prototype.ID_SPINNER_LINES) { if (this.console.getNumberOfLines_0() != a.getValue_0()) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).changeLines_1(a.getValue_0()); } else if (b.getApplicationID_0() == GT834.prototype.ID_SPINNER_GAME_MODES) { if (this.console.getGameMode_0() != a.getValue_0()) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).changeGameMode_1(a.getValue_0()); } else if (b.getApplicationID_0() == GT834.prototype.ID_SPINNER_BETPERLINE) { if (this.console.getBetPerLine_0() != a.getValue_0()) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).changeBet_1(a.getValue_0()); } else if (b.getApplicationID_0() == GT834.prototype.ID_SPINNER_AUTOPLAY) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).changeAutoplayCount_1(a.getValue_0()); }, spinnerButtonClick_1: function (a) {}, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAY || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAY_S) for (var b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).autoplay_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOSTOP || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOSTOP_S) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).autostop_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECT || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_SKIP_COLLECT) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).collect_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).gamble_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE_BLACK) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).gambleBlack_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE_RED) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).gambleRed_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).paytable_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).paytableClose_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).paytableNext_0(); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_START || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_STOP) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).startSpin_2(!1, a.getApplicationID_0() == GT834.prototype.ID_BUTTON_STOP); else if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECTHALF) for (b = 0; b < this.consoleListener.size_0(); b++) instanceOf(this.consoleListener.get_1(b), GT124) && this.consoleListener.get_1(b).gambleHalfCollect_0(); }, }, "GT128", [GT1066, GT1013] ), GT167 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT167", [] ); GT167.prototype.autoplayCountField_0 = function () { return GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .size_2(171, 74) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(32, 10, 25, 0); }; GT167.prototype.autoplayText_0 = function () { return GT872.prototype .set_0() .size_2(171, 74) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .breakLines_1(!1) .insets_4(32, 10, 0, 15); }; GT167.prototype.defaultDynamicTextAreaButton_0 = function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 7, 7) .breakLines_1(!1); }; GT167.prototype.defaultDynamicTextAreaBig_0 = function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .outline_2(1, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().yellow_0()); }; GT167.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 3); }; GT167.prototype.defaultBigValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }; GT167.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }; GT167.prototype.console_0 = function () { return GT1186.prototype .set_0() .position_2(414, 838) .size_2(1220, 170) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_STATUS) .position_2(220, 0) .size_2(780, 85) .child_1(GT1025.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUS).imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .child_1(GT1025.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT).imageFile_1("/com/greentube/slot/client/res/info_highlight_freegames.png").insets_4(15, 15, 15, 15).position_2(5, 5).size_2(770, 75)) .child_1(GT167.prototype.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_STATUS).fontColor_1(GT1391.prototype.set_0().yellow_0()).outline_2(2, GT1391.prototype.set_0().black_0())) .child_1(GT167.prototype.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_WIN).outline_2(2, GT1391.prototype.set_0().black_0()).duration_1(3e3)) ) .child_1( GT1025.prototype .set_0() .id_1(GT834.prototype.ID_BACKGROUND_INFORMATION) .position_2(360, 96) .size_2(500, 17) .imageFile_1("/com/greentube/slot/client/res/infoback_small.png") .insets_4(10, 10, 10, 10) .transparency_1(GT1022.prototype.set_0().alpha_1(230)) ) .child_1( GT167.prototype .defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .position_2(0, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .duration_1(3e3) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT167.prototype .defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .position_2(1005, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(1005, 0) .size_2(215, 85) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(15, 15, 30, 10) .text_1("${console_lastwin_na}") ) ) .child_1( GT167.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .position_2(1005, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT1186.prototype .set_0() .position_2(1005, 0) .size_2(215, 85) .child_1( GT167.prototype .defaultDynamicTextAreaBig_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(225)) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) .insets_4(5, 5, 5, 5) ) ) .child_1( GT167.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .insets_4(7, 7, 5, 5) .position_2(403, 118) .size_2(61, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground2.png").insets_4(10, 10, 10, 10)) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(360, 118) .size_2(147, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(100, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1( GT167.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_BETPERLINE) .insets_4(7, 7, 5, 5) .position_2(563, 118) .size_2(121, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground2.png").insets_4(10, 10, 10, 10)) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(520, 118) .size_2(207, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(160, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1( GT167.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .insets_4(6, 7, 5, 5) .position_2(740, 118) .size_2(120, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground.png").insets_4(10, 10, 10, 10)) ) .child_1( GT167.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .position_2(0, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1( GT167.prototype.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_LINES).position_2(360, 96).size_2(147, 17).vAlign_1(GT1489.prototype.CENTER).hAlign_1(GT1488.prototype.CENTER).text_1("${console_label_lines}") ) .child_1(GT167.prototype.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_BETPERLINE).position_2(520, 96).size_2(207, 17).text_1("${console_label_betperline}")) .child_1(GT167.prototype.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_BET).position_2(740, 96).size_2(120, 17).vAlign_1(GT1489.prototype.CENTER).hAlign_1(GT1488.prototype.CENTER).text_1("${console_label_bet}")) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_paytable.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_PAYTABLE).text_1("${buttontext_paytable}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(869, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(869, 96) .imageFile_1("/com/greentube/slot/client/res/b_paytable.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_paytablenext}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_START).text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_skip.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_STOP).text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_skip.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .position_2(0, 96) .size_2(171, 74) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(0, 0) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(0, 0) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .position_2(0, 96) .size_2(171, 74) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .size_2(171, 74) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( GT167.prototype .autoplayText_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAY) .fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1("${buttontext_autoplay}") ) .child_1(GT167.prototype.autoplayCountField_0().fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)).outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150))) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(GT167.prototype.autoplayCountField_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(GT167.prototype.autoplayCountField_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(GT167.prototype.autoplayCountField_0()) ) ) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .size_2(171, 74) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( GT167.prototype .autoplayText_0() .id_1(GT834.prototype.ID_TEXT_AUTOSTOP) .fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1("${buttontext_autostop}") ) .child_1(GT167.prototype.autoplayCountField_0().fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)).outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150))) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(GT167.prototype.autoplayCountField_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(GT167.prototype.autoplayCountField_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1(GT167.prototype.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(GT167.prototype.autoplayCountField_0()) ) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .size_2(171, 74) .buttonUp_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/b_auto_plus.png") .text_1( GT1239.prototype .set_0() .text_1("+") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(8, 5, 10, 5) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) .buttonDown_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/b_auto_minus.png") .text_1( GT1239.prototype .set_0() .text_1("-") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(8, 5, 5, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 37) ) ) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble_black.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_gambleblack}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(0, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble_red.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamblered}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble.png") .text_1(GT167.prototype.defaultDynamicTextAreaButton_0().text_1("${buttontext_collecthalf}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ); }; var GT211 = Class.extend( { initialConstructor_0: function () { this.slotGui = this.slotGame = this.timer = null; this.betperline = this.lines = 0; this.possibleBetPerLines = this.possibleLines = null; this.active = !1; this.consoleListener = this.currentState = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.slotGui = this.slotGame = this.timer = null; this.betperline = this.lines = 0; this.possibleBetPerLines = this.possibleLines = null; this.active = !1; this.consoleListener = this.currentState = null; this.timer = a; this.slotGame = b; this.slotGui = d; this.active = !0; this.consoleListener = new java_util_JavaScriptVector(); }, addConsoleListener_1: function (a) { this.consoleListener.contains_1(a) || this.consoleListener.add_1(a); }, removeConsoleListener_1: function (a) { this.consoleListener.contains_1(a) && this.consoleListener.removeElement_1(a); }, setActive_1: function (a) { this.active = a; }, notifyInputEvent_1: function (a) { this.active && ((a = this.getEvent_1(a)), (a = GT1677.prototype.tokenize_2(a, ":")), null != a && 1 <= a.length && this.fireEvent_2(a[0], 1 < a.length ? a[1] : null)); }, fireEvent_2: function (a, b) { if (GT211.prototype.START_SPIN.equals_1(a)) for (var d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).startSpin_2(!0, !1); else if (GT211.prototype.COLLECT.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).collect_0(); else if (GT211.prototype.PAYTABLE_NEXT.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).paytableNext_0(); else if (GT211.prototype.PAYTABLE.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).paytable_0(); else if (GT211.prototype.BET_UP.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).changeBet_1(this.getHigherValue_2(this.possibleBetPerLines, this.betperline)); else if (GT211.prototype.BET_DOWN.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).changeBet_1(this.getLowerValue_2(this.possibleBetPerLines, this.betperline)); else if (GT211.prototype.GAMEMODE_NEXT.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).changeLines_1(this.getHigherValue_2(this.possibleLines, this.lines)); else if (GT211.prototype.GAMEMODE_PREVIOUS.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).changeLines_1(this.getLowerValue_2(this.possibleLines, this.lines)); else if (GT211.prototype.GAMBLE.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).gamble_0(); else if (GT211.prototype.GAMBLE_RED.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).gambleRed_0(); else if (GT211.prototype.GAMBLE_BLACK.equals_1(a)) for (d = 0; d < this.consoleListener.size_0(); d++) this.consoleListener.elementAt_1(d).gambleBlack_0(); }, getHigherValue_2: function (a, b) { for (var d = 0, e = 0; e < a.length; e++) if (a[e] == b) { d = e + 1; d == a.length && (d = 0); break; } return a[d]; }, getLowerValue_2: function (a, b) { for (var d = 0, e = 0; e < a.length; e++) if (a[e] == b) { d = e - 1; -1 == d && (d = a.length - 1); break; } return a[d]; }, getEvent_1: function (a) { if (!this.slotGame.getSlotState_0().getCasinoState_0().isActionAllowed_0()) return null; if (" ".equals_1(a)) { if (this.currentState.isAllowed_1(GT166.prototype.ACTION_STARTSPIN) || this.currentState.isAllowed_1(GT166.prototype.ACTION_STOPSPIN)) return GT211.prototype.START_SPIN; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_COLLECT) || this.currentState.isAllowed_1(GT166.prototype.ACTION_FASTCOLLECT)) return GT211.prototype.COLLECT; } else if (a.equals_1("left")) { if (this.currentState.isAllowed_1(GT166.prototype.ACTION_CHANGEBET)) return GT211.prototype.BET_DOWN; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_GAMBLE)) return GT211.prototype.GAMBLE; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_GAMBLE_REDBLACK)) return GT211.prototype.GAMBLE_RED; } else if (a.equals_1("right")) { if (this.currentState.isAllowed_1(GT166.prototype.ACTION_CHANGEBET)) return GT211.prototype.BET_UP; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_GAMBLE)) return GT211.prototype.GAMBLE; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_GAMBLE_REDBLACK)) return GT211.prototype.GAMBLE_BLACK; } else if (a.equals_1("up")) { if (this.currentState.isAllowed_1(GT166.prototype.ACTION_CHANGEBET)) return GT211.prototype.GAMEMODE_NEXT; } else if (a.equals_1("down")) { if (this.currentState.isAllowed_1(GT166.prototype.ACTION_CHANGEBET)) return GT211.prototype.GAMEMODE_PREVIOUS; } else if (a.equals_1("tab")) { a = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); if (this.slotGame.getSlotState_0().isPaytableOpen_0()) return null != a && a.isAtLastPage_0() ? GT211.prototype.PAYTABLE : GT211.prototype.PAYTABLE_NEXT; if (null != a) return GT211.prototype.PAYTABLE_NEXT; if (this.currentState.isAllowed_1(GT166.prototype.ACTION_PAYTABLE)) return GT211.prototype.PAYTABLE; } return null; }, setHideCreditValue_3: function (a, b, d) { null != d && this.timer.triggerCallbackImmediately_1(d); }, setCurrencyFormatter_6: function (a, b, d, e, f, g) {}, setHideValueFields_1: function (a) {}, setState_2: function (a, b) { this.currentState = a; }, setPossibleLineNumbers_2: function (a, b) { this.possibleLines = a; this.setNumberOfLines_1(b); }, setPossibleGameModes_2: function (a, b) {}, setPossibleBetPerLine_2: function (a, b) { this.possibleBetPerLines = a; this.setBetPerLine_1(b); }, setBetMultiplier_1: function (a) {}, setNumberOfLines_1: function (a) { this.lines = a; }, setGameMode_1: function (a) {}, setBetPerLine_1: function (a) { this.betperline = a; }, setCreditsAnimation_3: function (a, b, d) { null != d && this.timer.triggerCallbackImmediately_1(d); }, setCredits_1: function (a) {}, setLastWin_1: function (a) {}, setBalance_1: function (a) {}, setLastWinAvailable_1: function (a) {}, setPossibleNumberOfAutoplays_2: function (a, b) {}, setAutoplayCounter_1: function (a) {}, accelerateSuperGameCounters_0: function () {}, setSuperGames_6: function (a, b, d, e, f, g) { null != g && this.timer.triggerCallbackImmediately_1(g); }, setWinAnimation_3: function (a, b, d) { null != d && this.timer.triggerCallbackImmediately_1(d); }, setWin_1: function (a) {}, setWinSuperGames_4: function (a, b, d, e) {}, setStatusText_1: function (a) {}, setHighlightStatusText_1: function (a) {}, setHighlightBackgroundStatusText_1: function (a) {}, init_1: function (a) {}, load_1: function (a) {}, setFreeGames_2: function (a, b) {}, }, "GT211", [GT174] ); GT211.prototype.START_SPIN = "STARTSPIN"; GT211.prototype.COLLECT = "COLLECT"; GT211.prototype.PAYTABLE = "PAYTABLE"; GT211.prototype.PAYTABLE_NEXT = "PAYTABLE_NEXT"; GT211.prototype.BET_UP = "BET_UP"; GT211.prototype.BET_DOWN = "BET_DOWN"; GT211.prototype.GAMEMODE_NEXT = "GAMEMODE_NEXT"; GT211.prototype.GAMEMODE_PREVIOUS = "GAMEMODE_PREVIOUS"; GT211.prototype.GAMBLE = "GAMBLE"; GT211.prototype.GAMBLE_RED = "GAMBLE_RED"; GT211.prototype.GAMBLE_BLACK = "GAMBLE_BLACK"; var GT371 = GT1190.extend( { initialConstructor_0: function () { this.frontside = this.backside = null; this.starttime = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.frontside = this.backside = null; this.starttime = 0; GT1190.prototype.initialConstructor_3.call(this, a, 10, !1); this.backside = b; this.frontside = d; this.starttime = 0; }, action_1: function (a) { if (!this.backside.isAlive_0() || !this.frontside.isAlive_0()) return !1; 0 == this.starttime && (this.starttime = a); a -= this.starttime; if (a >= GT371.prototype.TOTALTIME) return this.backside.hide_1(!0), this.frontside.hide_1(!1), this.frontside.setScale_2(1, 1), !1; a < GT371.prototype.HALFTIME ? (this.backside.hide_1(!1), this.frontside.hide_1(!0), this.backside.setScale_2((1 * (GT371.prototype.HALFTIME - a)) / GT371.prototype.HALFTIME, 1)) : (this.backside.hide_1(!0), this.frontside.hide_1(!1), this.frontside.setScale_2((1 * (a - GT371.prototype.HALFTIME)) / GT371.prototype.HALFTIME, 1)); return !0; }, }, "GT371", [] ); GT371.prototype.TOTALTIME = 400; GT371.prototype.HALFTIME = Math.div(GT371.prototype.TOTALTIME, 2); var GT372 = GT1190.extend( { initialConstructor_0: function () { this.guicontainer = null; this.darktime = this.lighttime = this.cyclesuntilswitch = 0; this.isdark = !1; this.dark = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT372.prototype.initialConstructor_6.call(this, a, b, d, 1, 1, 0); }, initialConstructor_6: function (a, b, d, e, f, g) { GT372.prototype.initialConstructor_7.call(this, a, b, d, e, f, g, new GT1063(50)); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.guicontainer = null; this.darktime = this.lighttime = this.cyclesuntilswitch = 0; this.isdark = !1; this.dark = null; GT1190.prototype.initialConstructor_3.call(this, a, d, !1); this.guicontainer = b; this.cyclesuntilswitch = e + g; this.lighttime = e; this.darktime = f; this.dark = k; }, darkenAndStop_1: function (a) { null != this.guicontainer && this.guicontainer.isAlive_0() && this.guicontainer.setColorTransformation_1(a); this.guicontainer = null; }, action_1: function (a) { if (null == this.guicontainer || !this.guicontainer.isAlive_0()) return !1; this.cyclesuntilswitch--; if (0 < this.cyclesuntilswitch) return !0; if (this.isdark) return this.guicontainer.setColorTransformation_1(null), (this.isdark = !1), (this.cyclesuntilswitch = this.lighttime), !0; this.guicontainer.setColorTransformation_1(this.dark); this.isdark = !0; this.cyclesuntilswitch = this.darktime; return 0 < this.darktime; }, }, "GT372", [] ), GT468 = Class.extend( { initialConstructor_0: function () { this.casinoAutoPlayInterface = this.player = this.soundAutoPlayStopAtFeatureScreen = this.soundAutoPlayForcedStop = this.soundAutoPlayStop = this.soundAutoPlayStart = this.soundStart = this.soundMaxBet = this.sound = this.console = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.casinoAutoPlayInterface = this.player = this.soundAutoPlayStopAtFeatureScreen = this.soundAutoPlayForcedStop = this.soundAutoPlayStop = this.soundAutoPlayStart = this.soundStart = this.soundMaxBet = this.sound = this.console = null; GT1650.prototype.assertExp_2(null != a, "console is null"); this.console = a; }, setSound_2: function (a, b) { this.player = b; this.sound = a; }, setMaxBetSound_2: function (a, b) { this.player = b; this.soundMaxBet = a; }, setSoundStart_2: function (a, b) { this.player = b; this.soundStart = a; }, setSoundAutoPlayStart_2: function (a, b) { this.player = b; this.soundAutoPlayStart = a; }, setSoundAutoPlayStop_3: function (a, b, d) { this.player = d; this.soundAutoPlayStop = a; this.soundAutoPlayForcedStop = b; }, setSoundAutoPlayStopAtFeatureScreen_2: function (a, b) { this.player = b; this.soundAutoPlayStopAtFeatureScreen = a; }, setCasinoAutoPlayInterface_1: function (a) { this.casinoAutoPlayInterface = a; }, getSound_0: function () { return this.sound; }, getMaxBetSound_0: function () { return this.soundMaxBet; }, getSoundForStart_0: function () { return this.soundStart; }, getSoundForAutoPlayStart_0: function () { return this.soundAutoPlayStart; }, getSoundForAutoPlayStop_0: function () { return this.soundAutoPlayStop; }, getSoundForAutoPlayForcedStop_0: function () { return this.soundAutoPlayForcedStop; }, getSoundForAutoPlayStopAtFeatureScreen_0: function () { return this.soundAutoPlayStopAtFeatureScreen; }, spinnerValueChanged_1: function (a) { var b = null; null != a && instanceOf(a, GT1560) && (b = a); GT1560.prototype.isAlive_1(b) && (b.getApplicationID_0() == GT834.prototype.ID_SPINNER_LINES ? this.console.getNumberOfLines_0() != a.getValue_0() && this.console.fireNumberOfLinesChangedCallback_1(a.getValue_0()) : b.getApplicationID_0() == GT834.prototype.ID_SPINNER_GAME_MODES ? this.console.getGameMode_0() != a.getValue_0() && this.console.fireGameModeChangedCallback_1(a.getValue_0()) : b.getApplicationID_0() == GT834.prototype.ID_SPINNER_BETPERLINE ? this.console.getBetPerLine_0() != a.getValue_0() && this.console.fireBetPerLineChangedCallback_1(a.getValue_0()) : b.getApplicationID_0() == GT834.prototype.ID_SPINNER_AUTOPLAY && this.console.fireAutoPlayChangedCallback_1(a.getValue_0())); }, click_1: function (a) { a.getApplicationID_0() == GT834.prototype.ID_BUTTON_START && null != this.player && null != this.soundStart && this.player.start_1(this.soundStart); a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COVER_CREDITS || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_TOGGLE_BETLINES || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MAX_BET || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MIN_BET || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GOMOBILE || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_FLIP_SCREEN || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAYMETER || (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAY_S && null != this.casinoAutoPlayInterface && this.casinoAutoPlayInterface.needToShowAutoPlaySettings_0()) || (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT && GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0().isPaytableNextForWrapper_0()) || (a.setActive_1(!1), instanceOf(a, GT515) && a.setHighlighted_1(!1)); this.console.fireClickCallback_1(a); }, spinnerButtonClick_1: function (a) {}, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) { this.console.fireDownCallback_1(a); }, up_1: function (a) { this.console.fireUpCallback_1(a); }, drag_1: function (a) {}, }, "GT468", [GT1013, GT1066] ), GT726 = GT1560.extend( { initialConstructor_0: function () { this._winline = this._linetextarea = this._fields = this._background = this._maincontainer = null; this._index = this._alpha = this._borderSize = this._vSpacing = this._hSpacing = 0; GT1560.prototype.initialConstructor_0.call(this); }, move_2: function (a, b) { this._maincontainer.move_2(a, b); }, getBackground_0: function () { return this._background; }, getWinline_0: function () { return this._winline; }, getHorizontalSpacing_0: function () { return this._hSpacing; }, getVerticalSpacing_0: function () { return this._vSpacing; }, getFields_0: function () { return this._fields; }, getBordersize_0: function () { return this._borderSize; }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT726.prototype.initialConstructor_20.call(this, a, b, d, e, f, g, k, m, 0, 0, 0, GT1634.prototype.black, GT1634.prototype.white, GT1634.prototype.blue, n, !1, 30, null, p, q); }, hide_1: function (a) { GT1560.prototype.hide_1.call(this, a); this._maincontainer.hide_1(a); }, initialConstructor_20: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D) { this._winline = this._linetextarea = this._fields = this._background = this._maincontainer = null; this._index = this._alpha = this._borderSize = this._vSpacing = this._hSpacing = 0; GT1560.prototype.initialConstructor_5.call(this, F, d, e, f, g); this.setApplicationID_1(a); this._maincontainer = GT1186.prototype.set_0().position_2(d, e).size_2(f, g).create_2(F, D); GT1650.prototype.assertExp_2(B.length_0() == k, "Winline " + B.length_0() + " != " + k); GT1650.prototype.assertExp_2(null != B, "Winline may not be null!"); a = A ? g - C : g; this._background = new GT1440(this._maincontainer, 0, 0, f, a, r); A && ((this._index = b), (this._linetextarea = GT1239.prototype .set_0() .position_2(0, a) .size_2(f, C) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1("#" + b) .font_1(E) .create_2(this._maincontainer, D))); this._hSpacing = n; this._vSpacing = p; this._winline = B; this._alpha = 100; b = Math.div(f - n * (k - 1) - 2 * q, k); f = Math.div(a - p * (m - 1) - 2 * q, m); this._fields = [].createArray(k, null); for (k = 0; k < this._fields.length; k++) for (this._fields[k] = [].createArray(m), r = 0; r < this._fields[k].length; r++) { A = t; switch (B.charAt_1(k)) { case 94: A = 0 == r ? u : t; break; case 45: A = 1 == r ? u : t; break; case 95: A = 2 == r ? u : t; break; case 86: A = 3 == r ? u : t; break; case 42: A = 4 == r ? u : t; break; case 43: A = 5 == r ? u : t; } this._fields[k][r] = new GT1440(this._maincontainer, q + k * (b + n), q + r * (f + p), b, f, A); } }, setTextColor_1: function (a) { null != this._linetextarea && this._linetextarea.setColor_1(a); }, setTextOutline_2: function (a, b) { null != this._linetextarea && this._linetextarea.setOutline_2(a, b); }, setText_1: function (a) { null != this._linetextarea && ((a = GT1677.prototype.replaceAllInString_3(a, "#0", "" + this._index)), this._linetextarea.setText_1(a)); }, setAlpha_1: function (a) { this._alpha = a; if (null != this._fields) { for (var b = 0; b < this._fields.length; b++) for (var d = 0; d < this._fields[d].length; d++) this._fields[b][d].setAlpha_1(a); null != this._background && this._background.setAlpha_1(a); null != this._linetextarea && this._linetextarea.setAlpha_1(a); } }, getAlpha_0: function () { return this._alpha; }, }, "GT726", [GT1480] ), GT315 = GT1560.extend( { initialConstructor_0: function () { this.container = this.rasters = null; GT1560.prototype.initialConstructor_0.call(this); }, setAlphaToLinesGreaterThan_2: function (a, b) { for (var d = 0; d < this.rasters.length; d++) d >= a ? this.rasters[d].setAlpha_1(b) : this.rasters[d].setAlpha_1(255); }, move_2: function (a, b) { this.container.move_2(a, b); }, setTextColor_1: function (a) { for (var b = 0; b < this.rasters.length; b++) this.rasters[b].setTextColor_1(a); }, setTextOutline_2: function (a, b) { for (var d = 0; d < this.rasters.length; d++) this.rasters[d].setTextOutline_2(a, b); }, setIndexText_1: function (a) { for (var b = 0; b < this.rasters.length; b++) this.rasters[b].setText_1(a); }, initialConstructor_26: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L, J, M, N) { GT315.prototype.initialConstructor_27.call(this, a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L, J, "#0", M, N); }, initialConstructor_27: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L, J, M, N, P) { this.container = this.rasters = null; GT1560.prototype.initialConstructor_5.call(this, N, b, d, e, f); this.setApplicationID_1(a); this.container = new GT1437(N); a = Math.div(e - m * (q - 1) - 2 * r, q); M = Math.div(f - n * (p - 1) - 2 * r, p); GT1650.prototype.assertExp_2(null != g, "Winlines may not be null"); null != t && GT1188.prototype.set_0().position_2(b, d).size_2(e, f).color_1(t).create_2(this.container, P); this.rasters = [].createArray(p * q); e = k; for (f = 0; f < p; f++) for (t = 0; t < q; t++) e < g.length && ((this.rasters[e - k] = GT835.prototype .set_0() .winline_1(g[e]) .position_2(r + b + (a + m) * t, r + d + (M + n) * f) .size_2(a, M) .winColor_1(B) .number_1(e + 1) .noWinColor_1(A) .backgroundColor_1(u) .winlineSize_2(D, H) .spacing_2(E, F) .displayNumber_1(I) .border_1(C) .textContainerSize_1(L) .font_1(J) .create_2(this.container, P)), e++); }, }, "GT315", [] ), GT110 = Class.extend( { initialConstructor_0: function () { this.guiObject = this.callback = null; this.hasBeenProcessed = this.triggerOnceOnly = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT110.prototype.initialConstructor_3.call(this, a, b, !1); }, initialConstructor_3: function (a, b, d) { this.guiObject = this.callback = null; this.hasBeenProcessed = this.triggerOnceOnly = !1; this.callback = a; this.guiObject = b; this.triggerOnceOnly = d; this.hasBeenProcessed = !1; }, run_0: function () { (this.triggerOnceOnly && this.hasBeenProcessed) || !GT1560.prototype.isAlive_1(this.guiObject) || this.guiObject.isHidden_0() || (this.callback.run_0(), (this.hasBeenProcessed = !0)); }, }, "GT110", [Runnable] ), GT234 = Class.extend( { initialConstructor_0: function () { this.jsonFileName = this.animationName = null; this.animationOffsetY = this.animationOffsetX = 0; this.imageToContainerReplacements = this.location = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT234.prototype.initialConstructor_6.call(this, a, b, d, 0, 0, e); }, initialConstructor_6: function (a, b, d, e, f, g) { this.jsonFileName = this.animationName = null; this.animationOffsetY = this.animationOffsetX = 0; this.imageToContainerReplacements = this.location = null; this.animationName = b; this.jsonFileName = a; this.location = d; this.animationOffsetX = e; this.animationOffsetY = f; this.imageToContainerReplacements = g; }, }, "GT234", [] ), GT342 = Class.extend( { initialConstructor_0: function () { this.trackMergingAlphas = this.animations = this.requiredImagesDirectory = this.textureAtlasFileName = this.skinName = this.spineObjectName = this.jsonFileName = null; this.height = this.width = this.dy = this.dx = this.timeScale = 0; this.vFlip = this.hFlip = !1; this.contentScaleY = this.contentScaleX = this.contentOffsetY = this.contentOffsetX = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_18: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E) { this.trackMergingAlphas = this.animations = this.requiredImagesDirectory = this.textureAtlasFileName = this.skinName = this.spineObjectName = this.jsonFileName = null; this.height = this.width = this.dy = this.dx = this.timeScale = 0; this.vFlip = this.hFlip = !1; this.contentScaleY = this.contentScaleX = this.contentOffsetY = this.contentOffsetX = 0; this.jsonFileName = a; this.spineObjectName = b; this.skinName = d; this.textureAtlasFileName = e; this.requiredImagesDirectory = f; this.animations = g; this.trackMergingAlphas = k; this.contentOffsetX = B; this.dx = Integer.truncate_1(n); this.dy = Integer.truncate_1(p); this.width = Integer.truncate_1(q); this.height = Integer.truncate_1(r); this.hFlip = t; this.vFlip = u; this.timeScale = m; this.contentOffsetY = A; this.contentScaleX = C; this.contentScaleY = E; }, }, "GT342", [] ), GT95 = Class.extend( { initialConstructor_0: function () { this.trackIndex = 0; this.animationName = null; this.looped = !1; this.mixDuration = this.delay = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.trackIndex = 0; this.animationName = null; this.looped = !1; this.mixDuration = this.delay = 0; this.trackIndex = a; this.animationName = b; this.looped = d; this.delay = e; this.mixDuration = f; }, }, "GT95", [] ), GT343 = Class.extend( { initialConstructor_0: function () { this.height = this.width = this.dy = this.dx = 0; this.clip = null; this.clippingHeight = this.clippingWidth = this.clippingDy = this.clippingDx = this.startPosition = this.repeatStartPosition = 0; this.vFlip = this.hFlip = this.useClipping = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT343.prototype.initialConstructor_14.call(this, a, 0, 0, -1, -1, 0, 0, !1, !1, 0, 0, -1, -1, !1); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT343.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, !1, !1, m, n, p, q, !0); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT343.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, m, n, 0, 0, -1, -1, !1); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { GT343.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, m, n, p, q, r, t, !0); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT343.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, !1, !1, 0, 0, -1, -1, !1); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { this.height = this.width = this.dy = this.dx = 0; this.clip = null; this.clippingHeight = this.clippingWidth = this.clippingDy = this.clippingDx = this.startPosition = this.repeatStartPosition = 0; this.vFlip = this.hFlip = this.useClipping = !1; this.clip = a; this.dx = b; this.dy = d; this.width = e; this.height = f; this.repeatStartPosition = g; this.startPosition = k; this.clippingDx = p; this.clippingDy = q; this.clippingWidth = r; this.clippingHeight = t; this.useClipping = u; this.hFlip = m; this.vFlip = n; }, }, "GT343", [] ), GT212 = Class.extend( { initialConstructor_0: function () { this.clickRingAnimator = this.timer = this.mainContainer = this.clickAnimationImage = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.clickRingAnimator = this.timer = this.mainContainer = this.clickAnimationImage = null; this.mainContainer = a; this.timer = b; this.clickAnimationImage = d; }, numberOfLinesChanged_1: function (a) {}, gameModeChanged_1: function (a) {}, betPerLineChanged_1: function (a) {}, click_1: function (a) {}, up_1: function (a) {}, down_1: function (a) { var b = 0, d = 0; a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYOUT || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GOMOBILE || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS ? ((b = a.getAbsoluteX_0() + Math.div(a.getWidth_0(), 2) - Math.div(this.clickAnimationImage.getColumnWidth_0(), 2)), (d = a.getAbsoluteY_0() + Math.div(a.getHeight_0(), 2) - Math.div(this.clickAnimationImage.getRowHeight_0(), 2))) : ((b = a.getMouseX_0() + a.getAbsoluteX_0() - Math.div(this.clickAnimationImage.getColumnWidth_0(), 2)), (d = a.getMouseY_0() + a.getAbsoluteY_0() - Math.div(this.clickAnimationImage.getRowHeight_0(), 2))); if (a.getApplicationID_0() == GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) { a = this.mainContainer.findDescendant_1(GT834.prototype.ID_LABEL_BETPERLINE); var e = this.mainContainer.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE), f = this.mainContainer.findDescendant_1(GT834.prototype.ID_LABEL_LINES), g = this.mainContainer.findDescendant_1(GT834.prototype.ID_SPINNER_LINES); null != a && 0 <= a.getY_0() ? (null != f && f.move_2(f.getX_0(), 768), null != g && g.move_2(g.getX_0(), 768), null != a && a.move_2(a.getX_0(), -a.getHeight_0()), null != e && e.move_2(e.getX_0(), -e.getHeight_0())) : (null != f && f.move_2(f.getX_0(), -f.getHeight_0()), null != g && g.move_2(g.getX_0(), -g.getHeight_0()), null != a && a.move_2(a.getX_0(), 768), null != e && e.move_2(e.getX_0(), 768)); } null != this.clickRingAnimator && this.clickRingAnimator.isRunning_0() && this.clickRingAnimator.killAndTrigger_1(!1); this.clickRingAnimator = new GT927(this.timer, this.mainContainer, this.clickAnimationImage, 15, !1); this.clickRingAnimator.setPosition_2(b, d); this.clickRingAnimator.setKeepLastFrame_1(!1); this.clickRingAnimator.start_0(); }, winFieldCountFinished_0: function () {}, superGamesCounted_1: function (a) {}, numberOfAutoPlaysChanged_1: function (a) {}, consoleStateChanged_2: function (a, b) {}, creditsHidden_1: function (a) {}, superGamesCountedFinished_0: function () {}, }, "GT212", [GT547] ), GT344 = GT1076.extend( { initialConstructor_0: function () { this.callCount = 0; this.deactivated = !1; GT1076.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.callCount = 0; this.deactivated = !1; GT1076.prototype.initialConstructor_4.call(this, a, b, d, !1); this.setKillWhenObjectIsDestroyed_1(!0); this.callCount = 0; this.deactivated = !1; }, deactivate_0: function () { this.deactivated = !0; }, action_1: function (a) { if (this.deactivated) return !1; a = this.getReel_0().getReelsLayout_0().rows; this.getReel_0().uncoverSymbol_1(this.callCount); this.callCount++; return this.callCount < a; }, getReel_0: function () { return this.getObject_0(); }, }, "GT344", [] ), GT516 = Class.extend( { initialConstructor_0: function () { this.finishCallbacks = this.startCallbacks = null; this.numberOfRunningReels = this.numberOfStartingReels = 0; this.reelsRunSoundSilent = this.reelsRunSound = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.finishCallbacks = this.startCallbacks = null; this.numberOfRunningReels = this.numberOfStartingReels = 0; this.reelsRunSoundSilent = this.reelsRunSound = null; this.startCallbacks = a; this.finishCallbacks = b; this.numberOfRunningReels = this.numberOfStartingReels = 0; }, setReelsRunSound_1: function (a) { this.reelsRunSound = a; }, setReelsRunSoundSilent_1: function (a) { this.reelsRunSoundSilent = a; }, setNumberOfStartingReels_1: function (a) { this.numberOfStartingReels = a; }, setNumberOfRunningReels_1: function (a) { this.numberOfRunningReels = a; }, getNumberOfRunningReels_0: function () { return this.numberOfRunningReels; }, trigger_1: function (a) { a = a.clone_0(); for (var b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, reelStarted_1: function (a) { this.numberOfRunningReels++; this.numberOfRunningReels == this.numberOfStartingReels && this.trigger_1(this.startCallbacks); }, reelStopped_1: function (a) { this.numberOfRunningReels--; 0 == this.numberOfRunningReels && (null != this.reelsRunSound && this.reelsRunSound.isPlaying_0() && this.reelsRunSound.lastReelStopped_0(), null != this.reelsRunSoundSilent && this.reelsRunSoundSilent.isPlaying_0() && this.reelsRunSoundSilent.lastReelStopped_0(), this.trigger_1(this.finishCallbacks)); }, destroy_0: function () { this.startCallbacks.setSize_1(0); this.finishCallbacks.setSize_1(0); }, symbolUnveiled_3: function (a, b, d) {}, }, "GT516", [GT647] ), GT669 = GT1076.extend( { initialConstructor_0: function () { this.lastPixelUpdateTime = this.lastPixelPosition = this.timeOffset = this.endPixelPosition = 0; GT1076.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.lastPixelUpdateTime = this.lastPixelPosition = this.timeOffset = this.endPixelPosition = 0; GT1076.prototype.initialConstructor_4.call(this, a, b, 1, !1); this.setUpdateEveryFrame_1(!0); this.setKillWhenObjectIsDestroyed_1(!0); this.endPixelPosition = -1; }, action_1: function (a) { a = this.getReel_0(); var b = this.getPixelPositionAsDouble_0(), d = !1; -1 != this.endPixelPosition && ((b = this.calculateStopBounce_1(b - this.endPixelPosition)), -1e6 >= b ? ((b = this.endPixelPosition), a.finalStop_0(), (d = !0)) : (b = this.endPixelPosition + b)); if (null != a.getDynamicBlurringFilter_0()) { var e = 0; if (!d) { var f = this.getCurrentTimeMillis_0() - this.getStartTime_0() - this.timeOffset, g = f - this.lastPixelUpdateTime, g = Math.abs_1(b - this.lastPixelPosition) / g; this.lastPixelPosition = b; this.lastPixelUpdateTime = f; 0 < g && (e = Math.round_1(a.getDynamicBlurringFactor_0() * g)); } a.getDynamicBlurringFilter_0().setBlurParameter_1(e); } if (d) return !1; d = Integer.truncate_1(Math.round_1(b)); a.setPixelPosition_1(d); a.isBouncing_0() && -1 == this.endPixelPosition && (this.endPixelPosition = a.getStopPixelPosition_0()); return !0; }, setTimeOffset_1: function (a) { this.timeOffset = a; }, reset_0: function () { this.timeOffset = 0; this.endPixelPosition = -1; this.lastPixelUpdateTime = this.lastPixelPosition = 0; this.resetImpl_0(); }, getPixelPosition_0: function () { return Integer.truncate_1(Math.round_1(this.getPixelPositionAsDouble_0())); }, getPixelPositionAsDouble_0: function () { var a = this.getReel_0(), b = a.getReelsLayout_0().symbolHeight, d = this.getCurrentTimeMillis_0() - this.getStartTime_0() - this.timeOffset; if (null == a.getSpeeds_0() || this.getCurrentTimeMillis_0() < a.getDetailedSpeedsApplyingTime_0()) return d * b * a.getSpeed_0() * 0.001; for ( var e = this.getCurrentTimeMillis_0() - a.getDetailedSpeedsApplyingTime_0() - this.timeOffset, f = a.getSpeeds_0(), g = a.getSpeedsDuration_0(), k = 0, m = a.getSpeed_0(), k = k + Math.max_2(0, d - e) * a.getSpeed_0(), a = 0; a < f.length && !((d = Math.min_2(e, g[a])), (e -= g[a]), 0 > d); ++a ) (k += f[a] * d), (m = f[a]); 0 < e && (k += m * e); return k * b * 0.001; }, calculateStopBounce_1: function (a) { if (0 > a) return -1e6; var b = this.getReel_0(); a /= b.getReelsLayout_0().symbolHeight; if (3 < a) return -1e6; a = Math.exp_1(1.6 * -a) * Math.max_2(Math.sin_1(1.2 * a), 0); return b.getBounceSoftness_0() * b.getReelsLayout_0().symbolHeight * a; }, getReel_0: function () { return this.getObject_0(); }, }, "GT669", [] ), GT614 = Class.extend( { initialConstructor_0: function () {}, reelsStartedDefaultImpl_3: function (a, b, d) { if (null == a || null == b) return !1; null != d && 3 == d.length ? a.startLooped_4(b, d[0], d[1], d[2]) : a.start_1(b); return !0; }, reelsStopImmediatelyDefaultImpl_4: function (a, b, d, e) { if (null == b || null == d) return !1; a || 0 >= e ? b.stop_1(d) : b.stop_2(d, Math.min_2(e, 400)); return !0; }, lastReelStoppedDefaultImpl_3: function (a, b, d) { if (null == a || null == b) return !1; 0 < d ? a.stop_2(b, d) : a.stop_1(b); return !0; }, }, "GT614", [] ), GT235 = GT614.extend( { initialConstructor_0: function () { this.soundsReelsRun = this.soundPlayer = null; this.reelSoundFadeoutDuration = 0; this.loopPoints = null; this.manualSelectedReelRunSoundIndex = 0; this.randomizeReelRunSounds = this.manualSelectReelRunSounds = !1; this.currentSoundReelsRun = this.rand = null; this.soundReelsRunCounter = 0; this.playing = !1; GT614.prototype.initialConstructor_0.call(this); this.rand = new GT1561(6546); }, setSoundPlayer_1: function (a) { this.soundPlayer = a; }, setReelSoundFadeoutDuration_1: function (a) { this.reelSoundFadeoutDuration = a; }, setLoopPoints_1: function (a) { this.loopPoints = a; }, setReelRunSoundIndex_1: function (a) { GT1650.prototype.assertExp_2(a < (null != this.loopPoints ? this.loopPoints.length : this.soundsReelsRun.length), "Selected reel run sound index is out of range!"); this.manualSelectedReelRunSoundIndex = a; }, setRandomizeReelRunSounds_1: function (a) { this.randomizeReelRunSounds = a; }, setManualSelectReelRunSounds_1: function (a) { this.manualSelectReelRunSounds = a; }, setSoundsReelsRun_1: function (a) { this.soundsReelsRun = a; }, getCurrentSoundReelsRun_0: function () { return this.currentSoundReelsRun; }, reelsStarted_0: function () { if (null != this.soundPlayer) { var a = null; if (0 < this.soundsReelsRun.length) if (this.manualSelectReelRunSounds) null == this.loopPoints && (this.currentSoundReelsRun = this.soundsReelsRun[this.manualSelectedReelRunSoundIndex]); else { var b = this.rand.nextInt_1(this.soundsReelsRun.length); this.randomizeReelRunSounds || null != this.loopPoints || ((b = this.soundReelsRunCounter), (this.soundReelsRunCounter = (this.soundReelsRunCounter + 1) % this.soundsReelsRun.length)); this.currentSoundReelsRun = this.soundsReelsRun[b]; } else this.currentSoundReelsRun = null; null != this.loopPoints && (this.manualSelectReelRunSounds ? (a = this.loopPoints[this.manualSelectedReelRunSoundIndex]) : ((a = this.rand.nextInt_1(this.loopPoints.length)), this.randomizeReelRunSounds || ((a = this.soundReelsRunCounter), (this.soundReelsRunCounter = (this.soundReelsRunCounter + 1) % this.loopPoints.length)), (a = this.loopPoints[a]))); null != this.currentSoundReelsRun && (null != a ? this.soundPlayer.startLooped_4(this.currentSoundReelsRun, a[0], a[1], a[2]) : this.soundPlayer.start_1(this.currentSoundReelsRun), (this.playing = !0)); } }, reelsStopImmediately_1: function (a) { this.reelsStopImmediatelyDefaultImpl_4(a, this.soundPlayer, this.currentSoundReelsRun, this.reelSoundFadeoutDuration) && (this.playing = !1); }, lastReelStopped_0: function () { this.lastReelStoppedDefaultImpl_3(this.soundPlayer, this.currentSoundReelsRun, this.reelSoundFadeoutDuration) && (this.playing = !1); }, isPlaying_0: function () { return this.playing; }, }, "GT235", [] ), GT148 = GT614.extend( { initialConstructor_0: function () { this.soundPlayer = this.rand = null; this.reelSoundFadeoutDuration = 0; this.loopPoints = this.sounds = null; this.selectingRandom = !1; this.lockSoundIndex = 0; this.playing = !1; this.currentSound = null; this.currentIndex = 0; GT614.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.soundPlayer = this.rand = null; this.reelSoundFadeoutDuration = 0; this.loopPoints = this.sounds = null; this.selectingRandom = !1; this.lockSoundIndex = 0; this.playing = !1; this.currentSound = null; this.currentIndex = 0; GT614.prototype.initialConstructor_0.call(this); this.soundPlayer = a; this.rand = new GT1561(6546); this.lockSoundIndex = -1; this.sounds = new java_util_JavaScriptVector(); this.loopPoints = new java_util_JavaScriptVector(); }, addSound_1: function (a) { null == this.sounds && (this.sounds = new java_util_JavaScriptVector()); this.sounds.add_1(a); null == this.loopPoints && (this.loopPoints = new java_util_JavaScriptVector()); this.loopPoints.add_1(null); }, setSelectingRandom_1: function (a) { this.selectingRandom = a; }, setFadeoutDuration_1: function (a) { this.reelSoundFadeoutDuration = a; }, setLockSoundIndex_1: function (a) { this.lockSoundIndex = a; }, addSound_4: function (a, b, d, e) { null == this.sounds && (this.sounds = new java_util_JavaScriptVector()); this.sounds.add_1(a); null == this.loopPoints && (this.loopPoints = new java_util_JavaScriptVector()); a = [].createArray(3).init(0); a[0] = b; a[1] = d; a[2] = e; this.loopPoints.add_1(a); }, reelsStarted_0: function () { if (0 != this.sounds.size_0() && 0 != this.loopPoints.size_0() && null != this.soundPlayer) { var a = 0; 0 <= this.lockSoundIndex ? (a = this.lockSoundIndex) : this.selectingRandom ? (a = this.rand.nextInt_1(this.sounds.size_0())) : ((a = this.currentIndex + 1), a >= this.sounds.size_0() && (a = 0)); var b = this.sounds.get_1(a), d = this.loopPoints.get_1(a); this.reelsStartedDefaultImpl_3(this.soundPlayer, b, d) && ((this.currentIndex = a), (this.currentSound = b), (this.playing = !0)); } }, reelsStopImmediately_1: function (a) { this.reelsStopImmediatelyDefaultImpl_4(a, this.soundPlayer, this.currentSound, this.reelSoundFadeoutDuration) && (this.playing = !1); }, lastReelStopped_0: function () { this.lastReelStoppedDefaultImpl_3(this.soundPlayer, this.currentSound, this.reelSoundFadeoutDuration) && (this.playing = !1); }, isPlaying_0: function () { return this.playing; }, }, "GT148", [] ), GT149 = GT614.extend( { initialConstructor_0: function () { this.sound = this.soundPlayer = this.rand = null; this.reelSoundFadeoutDuration = 0; this.loopPoints = null; this.playing = !1; GT614.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.sound = this.soundPlayer = this.rand = null; this.reelSoundFadeoutDuration = 0; this.loopPoints = null; this.playing = !1; GT614.prototype.initialConstructor_0.call(this); this.soundPlayer = a; this.rand = new GT1561(6546); }, setSound_1: function (a) { this.sound = a; }, setFadeoutDuration_1: function (a) { this.reelSoundFadeoutDuration = a; }, addLoopPoint_3: function (a, b, d) { null == this.loopPoints && (this.loopPoints = new java_util_JavaScriptVector()); var e = [].createArray(3).init(0); e[0] = a; e[1] = b; e[2] = d; this.loopPoints.add_1(e); }, reelsStarted_0: function () { var a = null; null != this.loopPoints && 0 < this.loopPoints.size_0() && ((a = this.rand.nextInt_1(this.loopPoints.size_0())), (a = this.loopPoints.get_1(a))); this.reelsStartedDefaultImpl_3(this.soundPlayer, this.sound, a) && (this.playing = !0); }, reelsStopImmediately_1: function (a) { this.reelsStopImmediatelyDefaultImpl_4(a, this.soundPlayer, this.sound, this.reelSoundFadeoutDuration) && (this.playing = !1); }, lastReelStopped_0: function () { this.lastReelStoppedDefaultImpl_3(this.soundPlayer, this.sound, this.reelSoundFadeoutDuration) && (this.playing = !1); }, isPlaying_0: function () { return this.playing; }, }, "GT149", [] ), GT725 = Class.extend( { initialConstructor_0: function () { this.activeList = this.highlightedList = this.inactiveList = null; this.stateId = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.activeList = this.highlightedList = this.inactiveList = null; this.stateId = 0; this.inactiveList = a; this.highlightedList = b; this.activeList = d; this.stateId = e; }, getStateId_0: function () { return this.stateId; }, isInActive_1: function (a) { for (var b = 0; b < this.inactiveList.length; b++) if (this.inactiveList[b] == a) return !0; return !1; }, isHighlighted_1: function (a) { for (var b = 0; b < this.highlightedList.length; b++) if (this.highlightedList[b] == a) return !0; return !1; }, isActive_1: function (a) { for (var b = 0; b < this.activeList.length; b++) if (this.activeList[b] == a) return !0; return !1; }, getInActiveCount_0: function () { return this.inactiveList.length; }, getHighlightedCount_0: function () { return this.highlightedList.length; }, getActiveCount_0: function () { return this.activeList.length; }, getInActiveId_1: function (a) { return this.inactiveList[a]; }, getHighlightedId_1: function (a) { return this.highlightedList[a]; }, getActiveId_1: function (a) { return this.activeList[a]; }, }, "GT725", [] ); GT725.prototype.generateID_0 = function () { return ++GT725.prototype.stateIDCounter; }; GT725.prototype.stateIDCounter = 1; GT725.prototype.BEFORE_SPIN = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_SPIN_CHANGE_BET = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_SPIN_ZERO_CREDITS = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_FREESPIN = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART = GT725.prototype.generateID_0(); GT725.prototype.INACTIVE = GT725.prototype.generateID_0(); GT725.prototype.FASTSTOP = GT725.prototype.generateID_0(); GT725.prototype.FASTCOLLECT = GT725.prototype.generateID_0(); GT725.prototype.SKIPCOLLECT = GT725.prototype.generateID_0(); GT725.prototype.FASTSPIN = GT725.prototype.generateID_0(); GT725.prototype.FASTCOLLECTORGAMBLE = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_GAMBLE = GT725.prototype.generateID_0(); GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_MAXWIN = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_COLLECTHALF = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_REDBLACK = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_REDBLACK_INACTIVE = GT725.prototype.generateID_0(); GT725.prototype.GAMBLE_REDBLACK_MAXWIN = GT725.prototype.generateID_0(); GT725.prototype.AUTO_SPIN = GT725.prototype.generateID_0(); GT725.prototype.AUTO_SPIN_SKIP_WIN = GT725.prototype.generateID_0(); GT725.prototype.AUTO_SPIN_STOP_SPIN = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE_FREESPIN = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE_MUST_CHANGE_BET = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE_ZERO_CREDITS = GT725.prototype.generateID_0(); GT725.prototype.PAYTABLE_ONLY = GT725.prototype.generateID_0(); GT725.prototype.SUPERGAME = GT725.prototype.generateID_0(); GT725.prototype.FEATURE = GT725.prototype.generateID_0(); GT725.prototype.FEATURE_NO_AUTOSTART = GT725.prototype.generateID_0(); var GT886 = GT1334.extend( { initialConstructor_0: function () { this.rlayout = this.rsymbols = null; this.indexofreel = 0; this.debugFont = null; GT1334.prototype.initialConstructor_0.call(this); this.debugFont = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(130).bold_0(); this.indexofreel = 0; }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT886)) return !1; if (null == this.rlayout) { if (null != a.rlayout) return !1; } else if (!this.rlayout.equals_1(a.rlayout)) return !1; if (null == this.rsymbols) { if (null != a.rsymbols) return !1; } else if (!this.rsymbols.equals_1(a.rsymbols)) return !1; return !0; }, }, "GT886", [] ), GT418 = GT765.extend( { initialConstructor_0: function () { GT765.prototype.initialConstructor_0.call(this); }, }, "GT418", [] ), GT469 = GT765.extend( { initialConstructor_0: function () { GT765.prototype.initialConstructor_0.call(this); }, }, "GT469", [] ), GT938 = GT886.extend( { initialConstructor_0: function () { this.uncoverimage = this.coverimage = null; this.frameSymbolUnveiledTrigger = this.uncoverinterval = this.uncovertime = this.frametime = 0; this.frameSymbolUnveiledTriggerSet = this.uncoverintervalSet = this.uncovertimeSet = this.frametimeSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.frametime = 200; this.uncovertime = 500; this.frameSymbolUnveiledTrigger = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, cover_1: function (a) { this.coverimage = a; return this; }, uncover_1: function (a) { this.uncoverimage = a; return this; }, coverAnimationTimePerFrame_1: function (a) { this.frametime = a; this.frametimeSet = !0; return this; }, uncoverAnimationTime_1: function (a) { this.uncovertime = a; this.uncovertimeSet = !0; return this; }, uncoverInterval_1: function (a) { this.uncoverinterval = a; this.uncoverintervalSet = !0; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, index_1: function (a) { return this; }, frameForSymbolUnveiledTrigger_1: function (a) { this.frameSymbolUnveiledTrigger = a; this.frameSymbolUnveiledTriggerSet = !0; return this; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); this.coverimage.load_1(a.getResourceManager_0()); null != this.uncoverimage && this.uncoverimage.load_1(a.getResourceManager_0()); this.debugFont.load_1(a.getResourceManager_0()); }, createReel_4: function (a, b, d, e) { var f = this.coverimage.create_1(b.getResourceManager_0()), g = null; null != this.uncoverimage && (g = this.uncoverimage.create_1(b.getResourceManager_0())); a = new GT567(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), f, g, d); a.setFrameForSymbolUnveiledTrigger_1(this.frameSymbolUnveiledTrigger); a.setDebugFont_1(this.debugFont.create_1(b.getResourceManager_0())); a.setCoverAnimationTimePerFrame_1(this.frametime); a.setUncoverTime_1(this.uncovertime); a.setUncoverInterval_1(this.uncoverinterval); a.setApplicationID_1(this.appId); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT938); GT1650.prototype.assertExp_2(b, "Descriptor is no DCoveredReel"); b && (null != this.rsymbols && (a.rsymbols = this.rsymbols), null != this.rlayout && (a.rlayout = this.rlayout), null != this.coverimage && (a.coverimage = this.coverimage), null != this.uncoverimage && (a.uncoverimage = this.uncoverimage), this.frameSymbolUnveiledTriggerSet && (a.frameSymbolUnveiledTrigger = this.frameSymbolUnveiledTrigger), this.frametimeSet && (a.frametime = this.frametime), this.uncovertimeSet && (a.uncovertime = this.uncovertime), this.uncoverintervalSet && (a.uncoverinterval = this.uncoverinterval)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT938", [GT1272] ); GT938.prototype.set_0 = function () { return new GT938(); }; var GT1148 = GT886.extend( { initialConstructor_0: function () { this.blur = null; this.symbolsPerSecond = 0; this.symbolsPerSecondSet = !1; this.bouncesoftness = 0; this.bouncesoftnessSet = !1; this.stopsound = null; this.stopSoundStart = 0; this.stopsoundSet = this.stopSoundStartSet = !1; this.symbolcolortransformation = null; this.reversedrawingorderSet = this.reversedrawingorder = this.symbolcolortransformationSet = !1; this.marginBottom = this.marginTop = 0; this.marginSet = !1; this.fastStopDelayValue = 0; this.fastStopDelayValueSet = !1; this.panning = 0; this.panningSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.symbolsPerSecond = 12; this.bouncesoftness = 1.4; this.stopSoundStart = 0; this.fastStopDelayValue = 50; this.panning = -2; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, fastStopDelay_1: function (a) { this.fastStopDelayValue = a; this.fastStopDelayValueSet = !0; return this; }, stopSoundPanning_1: function (a) { this.panning = a; this.panningSet = !0; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, symbolsBlurred_1: function (a) { this.blur = a; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, speed_1: function (a) { this.symbolsPerSecond = a; this.symbolsPerSecondSet = !0; return this; }, bounceSoftness_1: function (a) { this.bouncesoftness = a; this.bouncesoftnessSet = !0; return this; }, index_1: function (a) { return this; }, stopSound_1: function (a) { this.stopsound = a; this.stopsoundSet = !0; return this; }, stopSoundStartPosition_1: function (a) { this.stopSoundStart = a; this.stopSoundStartSet = !0; return this; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; return this; }, margin_2: function (a, b) { this.marginTop = a; this.marginBottom = b; this.marginSet = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = null == a ? null : a.create_0(); this.symbolcolortransformationSet = !0; return this; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); this.blur.load_1(a.getResourceManager_0()); null != this.stopsound && a.getResourceManager_0().startLoadSound_1(this.stopsound); this.debugFont.load_1(a.getResourceManager_0()); }, createReel_4: function (a, b, d, e) { a = new GT939(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), this.blur.create_1(b.getResourceManager_0()), d); a.setSpeed_1(this.symbolsPerSecond); d = b.getParameter_1("reelspeed"); d = GT1672.prototype.stringToInt_1(d); 0 != d && a.setSpeed_1(d); null != this.stopsound && ((d = b.getResourceManager_0().getSound_1(this.stopsound)), a.setStopSound_3(d, b.getSoundPlayer_0(), this.stopSoundStart)); a.setDebugFont_1(this.debugFont.create_1(b.getResourceManager_0())); a.setBounceSoftness_1(this.bouncesoftness); a.setSymbolColorTransformation_1(this.symbolcolortransformation); a.setReverseDrawingOrder_1(this.reversedrawingorder); a.setMargin_2(this.marginTop, this.marginBottom); a.setApplicationID_1(this.appId); a.setFastStopDelay_1(this.fastStopDelayValue); a.setStopSoundPanning_1(this.panning); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1148); GT1650.prototype.assertExp_2(b, "Descriptor is no DCSSReel"); b && (null != this.rsymbols && (a.rsymbols = this.rsymbols), null != this.rlayout && (a.rlayout = this.rlayout), null != this.blur && (a.blur = this.blur), this.symbolsPerSecondSet && (a.symbolsPerSecond = this.symbolsPerSecond), this.bouncesoftnessSet && (a.bouncesoftness = this.bouncesoftness), this.stopsoundSet && (a.stopsound = this.stopsound), this.stopSoundStartSet && (a.stopSoundStart = this.stopSoundStart), this.symbolcolortransformationSet && (a.symbolcolortransformation = this.symbolcolortransformation), this.reversedrawingorderSet && (a.reversedrawingorder = this.reversedrawingorder), this.marginSet && ((a.marginBottom = this.marginBottom), (a.marginTop = this.marginTop)), this.fastStopDelayValueSet && (a.fastStopDelayValue = this.fastStopDelayValue), this.panningSet && (a.panning = this.panning)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1148", [GT1272] ); GT1148.prototype.set_0 = function () { return new GT1148(); }; var GT615 = GT1334.extend( { initialConstructor_0: function () { this.iFile = null; this.iRows = this.iColumns = 0; this.iUseSeperateAlphaRegion = !1; this.timeperframe = 0; this.blocking = this.looping = !1; this.endposition = this.restartposition = this.startposition = 0; this.cachescaledversion = !1; GT1334.prototype.initialConstructor_0.call(this); this.timeperframe = 40; this.looping = !0; this.blocking = !1; this.restartposition = this.startposition = 0; this.endposition = -1; this.cachescaledversion = !1; }, image_4: function (a, b, d, e) { GT1650.prototype.assertExp_2(null != a, "Film strip image is null!"); this.iFile = a; this.iColumns = b; this.iRows = d; this.iUseSeperateAlphaRegion = e; return this; }, timePerFrame_1: function (a) { this.timeperframe = a; return this; }, loop_1: function (a) { this.looping = a; return this; }, block_1: function (a) { this.blocking = a; return this; }, startPosition_1: function (a) { this.startposition = a; return this; }, restartPosition_1: function (a) { this.restartposition = a; return this; }, endPosition_1: function (a) { this.endposition = a; return this; }, cacheScaledVersion_1: function (a) { this.cachescaledversion = a; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.iFile, "Film strip image isn't set"); var d = b.getResourceManager_0().getImage_1(this.iFile), d = new GT927(b.getTimer_0(), a, d, this.timeperframe, this.looping, this.blocking); d.setStartPosition_1(this.startposition); d.setRestartPosition_1(this.restartposition); d.setEndPosition_1(this.endposition); d.setCacheScaledVersion_1(this.cachescaledversion); d.start_0(); return 0 < a.getChildCount_0() ? a.getChild_1(a.getChildCount_0() - 1) : null; }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.iFile, "Film strip image isn't set!"); a.getResourceManager_0().startLoadImage_4(this.iFile, this.iColumns, this.iRows, this.iUseSeperateAlphaRegion); }, }, "GT615", [] ); GT615.prototype.set_0 = function () { return new GT615(); }; var GT727 = GT886.extend( { initialConstructor_0: function () { this.m_cardImage = this.m_appearSoundFile = null; this.m_turningTime = this.m_turnDelayPerSymbol = this.m_fadeInTime = 0; this.turningTimeSet = this.turnDelaySet = this.fadeInTimeSet = !1; this.debugAreaColor = this.m_revealSounds = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.m_fadeInTime = 300; this.m_turnDelayPerSymbol = 0; this.m_turningTime = 600; this.m_revealSounds = new java_util_JavaScriptVector(); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, appearSound_1: function (a) { this.m_appearSoundFile = a; return this; }, cardImage_1: function (a) { this.m_cardImage = a; return this; }, fadeInTime_1: function (a) { this.m_fadeInTime = a; this.fadeInTimeSet = !0; return this; }, turnDelayPerSymbol_1: function (a) { this.m_turnDelayPerSymbol = a; this.turnDelaySet = !0; return this; }, turningTime_1: function (a) { this.m_turningTime = a; this.turningTimeSet = !0; return this; }, revealSound_2: function (a, b) { this.m_revealSounds.size_0() <= a && this.m_revealSounds.setSize_1(a + 1); this.m_revealSounds.set_2(a, b); return this; }, createReel_4: function (a, b, d, e) { a = new GT373(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), d); null != this.m_appearSoundFile && ((d = b.getResourceManager_0().getSound_1(this.m_appearSoundFile)), a.setAppearSound_2(d, b.getSoundPlayer_0())); if (null != this.m_revealSounds && 0 != this.m_revealSounds.size_0()) { d = new java_util_JavaScriptVector(); for (e = 0; e < this.m_revealSounds.size_0(); ++e) d.add_1(b.getResourceManager_0().getSound_1(this.m_revealSounds.elementAt_1(e))); a.setRevealSounds_2(d, b.getSoundPlayer_0()); } b = this.m_cardImage.create_1(b.getResourceManager_0()); a.setCardImage_1(b); a.setFadeInAnimationTime_1(this.m_fadeInTime); a.setTurnDelayPerSymbol_1(this.m_turnDelayPerSymbol); a.setTurningTime_1(this.m_turningTime); a.setApplicationID_1(this.appId); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); this.m_cardImage.load_1(a.getResourceManager_0()); null != this.m_appearSoundFile && a.getResourceManager_0().startLoadSound_1(this.m_appearSoundFile); for (var b = 0; b < this.m_revealSounds.size_0(); b++) GT1650.prototype.assertExp_2(null != this.m_revealSounds.get_1(b), "The reveal sound for row " + b + " isn't set."), a.getResourceManager_0().startLoadSound_1(this.m_revealSounds.elementAt_1(b)); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT727); GT1650.prototype.assertExp_2(b, "Descriptor is no DPlayingCardReel"); if (b) { null != this.rsymbols && (a.rsymbols = this.rsymbols); null != this.rlayout && (a.rlayout = this.rlayout); null != this.m_appearSoundFile && (a.m_appearSoundFile = this.m_appearSoundFile); null != this.m_cardImage && (a.m_cardImage = this.m_cardImage); if (null != this.m_revealSounds && 0 < this.m_revealSounds.size_0()) for (a.m_revealSounds.setSize_1(0), b = 0; b < this.m_revealSounds.size_0(); b++) a.m_revealSounds.addElement_1(this.m_revealSounds.elementAt_1(b)); this.fadeInTimeSet && (a.m_fadeInTime = this.m_fadeInTime); this.turnDelaySet && (a.m_turnDelayPerSymbol = this.m_turnDelayPerSymbol); this.turningTimeSet && (a.m_turningTime = this.m_turningTime); } }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT727", [GT1272] ); GT727.prototype.set_0 = function () { return new GT727(); }; var GT1304 = GT886.extend( { initialConstructor_0: function () { this.blur = null; this.symbolsPerSecond = this.dynamicBlurLowPassFilterFactor = this.dynamicBlurTexelStep = this.dynamicBlurFactor = 0; this.symbolsPerSecondSet = !1; this.bouncesoftness = 0; this.bouncesoftnessSet = !1; this.stopsound = null; this.stopSoundStart = 0; this.stopsoundSet = this.stopSoundStartSet = !1; this.symbolcolortransformation = null; this.reversedrawingorderSet = this.reversedrawingorder = this.symbolcolortransformationSet = !1; this.marginBottom = this.marginTop = 0; this.marginSet = !1; this.fastStopDelayValue = 0; this.fastStopDelayValueSet = !1; this.panning = 0; this.cacheImagesSet = this.cacheImages = this.panningSet = !1; this.overlappingSymbolsToReorderBackValue = null; this.skipStopSoundSet = this.skipStopSound = !1; this.stopEarlysound = null; this.stopEarlysoundSet = !1; this.stopEarlySoundStart = 0; this.stopEarlySoundStartSet = !1; this.rVisibleSymbolOffsets = 0; this.visibleSymbolOffsetsSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.symbolsPerSecond = 12; this.bouncesoftness = 1.4; this.stopEarlySoundStart = this.stopSoundStart = 0; this.fastStopDelayValue = 50; this.panning = -2; this.rVisibleSymbolOffsets = 0; this.skipStopSound = !1; this.debugAreaColor = null; this.dynamicBlurFactor = this.debugAreaAlpha = 0; this.dynamicBlurLowPassFilterFactor = 0.35; }, id_1: function (a) { this.appId = a; return this; }, cacheGUIImages_1: function (a) { this.cacheImages = a; this.cacheImagesSet = !0; return this; }, fastStopDelay_1: function (a) { this.fastStopDelayValue = a; this.fastStopDelayValueSet = !0; return this; }, stopSoundPanning_1: function (a) { this.panning = a; this.panningSet = !0; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, symbolsBlurred_1: function (a) { this.blur = a; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, dynamicBlurring_3: function (a, b, d) { this.dynamicBlurFactor = a; this.dynamicBlurLowPassFilterFactor = b; this.dynamicBlurTexelStep = d; return this; }, speed_1: function (a) { this.symbolsPerSecond = a; this.symbolsPerSecondSet = !0; return this; }, bounceSoftness_1: function (a) { this.bouncesoftness = a; this.bouncesoftnessSet = !0; return this; }, index_1: function (a) { return this; }, stopSound_1: function (a) { this.stopsound = a; this.stopsoundSet = !0; return this; }, stopSoundStartPosition_1: function (a) { this.stopSoundStart = a; this.stopSoundStartSet = !0; return this; }, stopEarlySound_1: function (a) { this.stopEarlysound = a; this.stopEarlysoundSet = !0; return this; }, stopEarlySoundStartPosition_1: function (a) { this.stopEarlySoundStart = a; this.stopEarlySoundStartSet = !0; return this; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; this.reversedrawingorderSet = !0; return this; }, visibleSymbolOffsets_1: function (a) { GT1650.prototype.assertExp_2(0 <= a, "visibleSymbolOffsets value must be greater than 0"); this.rVisibleSymbolOffsets = a; this.visibleSymbolOffsetsSet = !0; return this; }, margin_2: function (a, b) { this.marginTop = a; this.marginBottom = b; this.marginSet = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = null == a ? null : a.create_0(); this.symbolcolortransformationSet = !0; return this; }, overlappingSymbolsToReorderBack_1: function (a) { this.overlappingSymbolsToReorderBackValue = a; return this; }, skipReelStopSound_1: function (a) { this.skipStopSound = a; this.skipStopSoundSet = !0; return this; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); this.blur.load_1(a.getResourceManager_0()); null != this.stopsound && a.getResourceManager_0().startLoadSound_1(this.stopsound); null != this.stopEarlysound && a.getResourceManager_0().startLoadSound_1(this.stopEarlysound); this.debugFont.load_1(a.getResourceManager_0()); }, createReel_4: function (a, b, d, e) { a = new GT939(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), this.blur.create_1(b.getResourceManager_0()), d, this.rVisibleSymbolOffsets); a.setSpeed_1(this.symbolsPerSecond); d = b.getParameter_1("reelspeed"); d = GT1672.prototype.stringToInt_1(d); 0 != d && a.setSpeed_1(d); null != this.stopsound && ((d = b.getResourceManager_0().getSound_1(this.stopsound)), a.setStopSound_3(d, b.getSoundPlayer_0(), this.stopSoundStart)); null != this.stopEarlysound && ((d = b.getResourceManager_0().getSound_1(this.stopEarlysound)), a.setStopEarlySound_3(d, b.getSoundPlayer_0(), this.stopEarlySoundStart)); a.setDebugFont_1(this.debugFont.create_1(b.getResourceManager_0())); a.setBounceSoftness_1(this.bouncesoftness); a.setSymbolColorTransformation_1(this.symbolcolortransformation); a.setReverseDrawingOrder_1(this.reversedrawingorder); a.setMargin_2(this.marginTop, this.marginBottom); a.setApplicationID_1(this.appId); a.setFastStopDelay_1(this.fastStopDelayValue); a.setStopSoundPanning_1(this.panning); a.setCacheGUIImages_1(this.cacheImages); a.setOverlappingSymbolsToReorderBack_1(this.overlappingSymbolsToReorderBackValue); a.setSkipStopSound_1(this.skipStopSound); 0 < this.dynamicBlurFactor ? a.setDynamicBlurring_3(this.dynamicBlurFactor, this.dynamicBlurLowPassFilterFactor, this.dynamicBlurTexelStep) : a.setDynamicBlurring_3(0, 0, 0); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1304); GT1650.prototype.assertExp_2(b, "Descriptor is no DReel"); b && (null != this.rsymbols && (a.rsymbols = this.rsymbols), null != this.rlayout && (a.rlayout = this.rlayout), null != this.blur && (a.blur = this.blur), this.symbolsPerSecondSet && (a.symbolsPerSecond = this.symbolsPerSecond), this.bouncesoftnessSet && (a.bouncesoftness = this.bouncesoftness), this.stopsoundSet && (a.stopsound = this.stopsound), this.stopSoundStartSet && (a.stopSoundStart = this.stopSoundStart), this.symbolcolortransformationSet && (a.symbolcolortransformation = this.symbolcolortransformation), this.reversedrawingorderSet && (a.reversedrawingorder = this.reversedrawingorder), this.marginSet && ((a.marginBottom = this.marginBottom), (a.marginTop = this.marginTop)), this.fastStopDelayValueSet && (a.fastStopDelayValue = this.fastStopDelayValue), this.panningSet && (a.panning = this.panning), this.cacheImagesSet && (a.cacheImages = this.cacheImages), null != this.overlappingSymbolsToReorderBackValue && (a.overlappingSymbolsToReorderBackValue = this.overlappingSymbolsToReorderBackValue), this.skipStopSoundSet && (a.skipStopSound = this.skipStopSound), this.stopEarlysoundSet && (a.stopEarlysound = this.stopEarlysound), this.stopEarlySoundStartSet && (a.stopEarlySoundStart = this.stopEarlySoundStart), this.visibleSymbolOffsetsSet && (a.rVisibleSymbolOffsets = this.rVisibleSymbolOffsets)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1304", [GT1272] ); GT1304.prototype.set_0 = function () { return new GT1304(); }; var GT1252 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.reelslayout = null; this.minduration = 0; this.mindurationSet = !1; this.reelstopdelay = this.reelstartdelay = 0; this.reelstopdelaySet = this.reelstartdelaySet = !1; this.detailedreelstopdelay = null; this.reelSoundFadeoutMillis = 0; this.manualSelectReelRunSoundsSet = this.manualSelectReelRunSounds = this.randomizeReelRunSoundsSet = this.randomizeReelRunSounds = this.randomizeReelStoppingOrderSet = this.randomizeReelStoppingOrder = this.reelSoundFadeoutMillisSet = !1; this.sound = null; this.soundRemoved = this.soundAdded = !1; this.soundSilent = null; this.soundSilentSet = !1; this.teaserSounds = this.soundStopEarly = null; this.teaserRemoved = this.teaserAdded = !1; this.looppoints = this.reels = null; this.looppointRemoved = this.looppointAdded = !1; this.debugAreaColor = this.reelSoundSilent = this.reelSound = this.silentreelrunlooppoints = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.randomizeReelRunSounds = !0; this.manualSelectReelRunSounds = !1; this.teaserSounds = new java_util_JavaScriptVector(); this.sound = new java_util_JavaScriptVector(); this.reels = new java_util_JavaScriptVector(); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, reelStartDelay_1: function (a) { this.reelstartdelay = a; this.reelstartdelaySet = !0; return this; }, reelStopDelay_1: function (a) { this.reelstopdelay = a; this.reelstopdelaySet = !0; return this; }, detailedReelStopDelay_1: function (a) { null == a ? (this.detailedreelstopdelay = null) : ((this.detailedreelstopdelay = [].createArray(a.length).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, this.detailedreelstopdelay, 0, this.detailedreelstopdelay.length)); return this; }, layout_1: function (a) { this.reelslayout = a; return this; }, minDuration_1: function (a) { this.minduration = a; this.mindurationSet = !0; return this; }, randomizeStoppingOrder_1: function (a) { this.randomizeReelStoppingOrder = a; this.randomizeReelStoppingOrderSet = !0; return this; }, reel_2: function (a, b) { this.reels.size_0() <= a && this.reels.setSize_1(a + 1); this.reels.set_2(a, b); return this; }, getReel_1: function (a) { return null != this.reels && this.reels.size_0() > a && null != this.reels.elementAt_1(a) && instanceOf(this.reels.elementAt_1(0), GT886) ? this.reels.elementAt_1(a) : null; }, soundReelsRunSilent_1: function (a) { return this.soundReelsRunSilent_4(a, -1, -1, -1); }, reelsRunSound_1: function (a) { this.reelSound = a; null == a && (this.sound = null); return this; }, reelsRunSoundSilent_1: function (a) { this.reelSoundSilent = a; null == a && ((this.soundSilent = null), (this.soundSilentSet = !0)); return this; }, soundReelsStopEarly_1: function (a) { this.soundStopEarly = a; return this; }, removeTeaserSounds_0: function () { null != this.teaserSounds && this.teaserSounds.clear_0(); this.teaserRemoved = !0; return this; }, addTeaserSound_1: function (a) { this.teaserSounds.add_1(a); this.teaserAdded = !0; return this; }, createReels_5: function (a, b, d, e, f) { return new GT887(a, b, d, e, f); }, create_2: function (a, b) { var d = this.reelslayout.create_0(), e = this.createReels_5(a, b.getTimer_0(), this.xPos, this.yPos, d); if (1 == this.reels.size_0()) for (var f = this.reels.get_1(0), g = 0; g < d.columns; g++) f.createReel_4(e, b, d, g); else for (GT1650.prototype.assertExp_2(d.columns == this.reels.size_0(), "Number of set reels is not matching the number of columns in the reels layout."), g = 0; g < d.columns; g++) (f = this.reels.get_1(g)), null == f ? GT1650.prototype.assertFailed_1("The reel with index " + g + " isn't set.") : f.createReel_4(e, b, d, g); e.setReelStartDelay_1(this.reelstartdelay); e.setReelStopDelay_1(this.reelstopdelay); null != this.detailedreelstopdelay && e.setDetailedReelStopDelay_1(this.detailedreelstopdelay); e.setMinDuration_1(this.minduration); e.setRandomizeStoppingOrder_1(this.randomizeReelStoppingOrder); 0 < e.getChildCount_0() && instanceOf(e.getChild_1(0), GT939) && ((d = b.getParameter_1("reelstopdelay")), (d = GT1672.prototype.stringToInt_1(d)), 0 != d && e.setReelStopDelay_1(d), (d = b.getParameter_1("reelrunduration")), (d = GT1672.prototype.stringToInt_1(d)), 0 != d && e.setMinDuration_1(d)); null != this.soundStopEarly && e.setSoundStopEarly_2(b.getResourceManager_0().getSound_1(this.soundStopEarly), b.getSoundPlayer_0()); if (null != this.teaserSounds) for (d = 0; d < this.teaserSounds.size_0(); d++) e.addTeaserSounds_1(this.teaserSounds.elementAt_1(d).create_1(b)); e.resizeToContent_0(); null == this.reelSound && null == this.reelSoundSilent ? this.setDeprecatedSoundStuff_2(e, b) : (null != this.reelSound && e.setReelsRunSound_1(this.reelSound.create_1(b)), null != this.reelSoundSilent && e.setReelsRunSoundSilent_1(this.reelSoundSilent.create_1(b))); e.setApplicationID_1(this.appId); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, setDeprecatedSoundStuff_2: function (a, b) { a.setRandomizeReelRunSounds_1(this.randomizeReelRunSounds); a.setManualSelectReelRunSounds_1(this.manualSelectReelRunSounds); a.setReelSoundFadeoutDuration_1(this.reelSoundFadeoutMillis); if (null != this.sound) { for (var d = [].createArray(this.sound.size_0()), e = 0; e < this.sound.size_0(); e++) d[e] = b.getResourceManager_0().getSound_1(this.sound.elementAt_1(e)); a.setSoundsReelsRun_2(d, b.getSoundPlayer_0()); } null != this.soundSilent && a.setSoundReelsRunSilent_2(b.getResourceManager_0().getSound_1(this.soundSilent), b.getSoundPlayer_0()); if (null != this.looppoints && 0 != this.looppoints.size_0()) { d = [].createArray(this.looppoints.size_0(), null).init(0); for (e = 0; e < d.length; e++) d[e] = this.looppoints.get_1(e); a.setLoopPoints_1(d); } null != this.silentreelrunlooppoints && 3 == this.silentreelrunlooppoints.length && a.setSilentReelRunLoopPoints_1(this.silentreelrunlooppoints); }, load_1: function (a) { for (var b = 0; b < this.reels.size_0(); b++) GT1650.prototype.assertExp_2(null != this.reels.get_1(b), "The reel with index " + b + " isn't set."), this.reels.get_1(b).load_1(a); if (null != this.sound) for (b = 0; b < this.sound.size_0(); b++) a.getResourceManager_0().startLoadSound_1(this.sound.elementAt_1(b)); null != this.soundSilent && a.getResourceManager_0().startLoadSound_1(this.soundSilent); null != this.soundStopEarly && a.getResourceManager_0().startLoadSound_1(this.soundStopEarly); if (null != this.teaserSounds) for (b = 0; b < this.teaserSounds.size_0(); b++) this.teaserSounds.elementAt_1(b).load_1(a); null != this.reelSound && this.reelSound.load_1(a); null != this.reelSoundSilent && this.reelSoundSilent.load_1(a); }, reelSoundFadeoutDuration_1: function (a) { this.reelSoundFadeoutMillis = a; this.reelSoundFadeoutMillisSet = !0; return this; }, randomizeSoundsReelsRun_1: function (a) { this.randomizeReelRunSounds = a; this.randomizeReelRunSoundsSet = !0; return this; }, manualSelectSoundsReelsRun_1: function (a) { this.manualSelectReelRunSounds = a; this.manualSelectReelRunSoundsSet = !0; return this; }, addSoundReelsRun_1: function (a) { null == this.sound && (this.sound = new java_util_JavaScriptVector()); this.sound.add_1(a); this.soundAdded = !0; return this; }, removeSoundsReelsRun_0: function () { null != this.sound && this.sound.clear_0(); this.soundRemoved = !0; return this; }, soundReelsRunSilent_4: function (a, b, d, e) { this.soundSilent = a; this.soundSilentSet = !0; -1 != b && -1 != d && -1 != e && (this.silentreelrunlooppoints = [b, d, e]); return this; }, addLoopPoint_3: function (a, b, d) { null == this.looppoints && (this.looppoints = new java_util_JavaScriptVector()); var e = [].createArray(3).init(0); e[0] = a; e[1] = b; e[2] = d; this.looppoints.add_1(e); this.looppointAdded = !0; return this; }, removeLoopPoints_0: function () { null != this.looppoints && this.looppoints.clear_0(); this.looppointRemoved = !0; return this; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1252); GT1650.prototype.assertExp_2(b, "Descriptor is no DReels"); if (b) { this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)); null != this.reelslayout && (a.reelslayout = this.reelslayout); this.mindurationSet && (a.minduration = this.minduration); this.reelstartdelaySet && (a.reelstartdelay = this.reelstartdelay); this.reelstopdelaySet && (a.reelstopdelay = this.reelstopdelay); null != this.detailedreelstopdelay && (a.detailedreelstopdelay = this.detailedreelstopdelay); this.reelSoundFadeoutMillisSet && (a.reelSoundFadeoutMillis = this.reelSoundFadeoutMillis); this.randomizeReelStoppingOrderSet && (a.randomizeReelStoppingOrder = this.randomizeReelStoppingOrder); this.randomizeReelRunSoundsSet && (a.randomizeReelRunSounds = this.randomizeReelRunSounds); this.manualSelectReelRunSoundsSet && (a.manualSelectReelRunSounds = this.manualSelectReelRunSounds); this.soundRemoved && a.removeSoundsReelsRun_0(); if (this.soundAdded) for (b = 0; b < this.sound.size_0(); b++) a.addSoundReelsRun_1(this.sound.elementAt_1(b)); this.soundSilentSet && (a.soundSilent = this.soundSilent); null != this.soundStopEarly && (a.soundStopEarly = this.soundStopEarly); this.teaserRemoved && a.removeTeaserSounds_0(); if (this.teaserAdded) for (b = 0; b < this.teaserSounds.size_0(); b++) a.addTeaserSound_1(this.teaserSounds.elementAt_1(b)); if (null != this.reels) for (b = 0; b < this.reels.size_0(); b++) null != this.getReel_1(b) && a.reel_2(b, this.getReel_1(b)); this.looppointRemoved && a.removeLoopPoints_0(); if (this.looppointAdded) for (b = 0; b < this.looppoints.size_0(); b++) { var d = this.looppoints.elementAt_1(b); a.addLoopPoint_3(d[0], d[1], d[2]); } null != this.silentreelrunlooppoints && (a.silentreelrunlooppoints = this.silentreelrunlooppoints); null != this.reelSound && (a.reelSound = this.reelSound); null != this.reelSoundSilent && (a.reelSoundSilent = this.reelSoundSilent); } }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1252", [GT1272] ); GT1252.prototype.set_0 = function () { return new GT1252(); }; var GT888 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.m_color = this.reelslayout = null; this.m_colorSet = !1; this.m_alpha = 0; this.m_alphaSet = !1; this.m_activeRow = 0; this.m_activeRowSet = !1; this.m_activeReels = 0; this.m_activeReelsSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = 200; this.m_color = GT1634.prototype.lightGray; this.m_alpha = 127; this.m_activeRow = GT774.prototype.MIDDLE; this.m_activeReels = 3; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, reelsLayout_1: function (a) { this.reelslayout = a; return this; }, color_1: function (a) { this.m_color = a; this.m_colorSet = !0; return this; }, alpha_1: function (a) { this.m_alpha = a; this.m_alphaSet = !0; return this; }, activeRow_1: function (a) { this.m_activeRow = a; this.m_activeRowSet = !0; return this; }, activeReels_1: function (a) { this.m_activeReels = a; this.m_activeReelsSet = !0; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.reelslayout, "The ReelsLayout object used in " + this.toString() + " mustn't be null!"); var d = new GT774(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.reelslayout.create_0(), this.m_color, this.m_alpha, this.m_activeRow, this.m_activeReels); d.setApplicationID_1(this.appId); d.initialize_0(); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT888); GT1650.prototype.assertExp_2(b, "Descriptor is no DReelSelector"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), null != this.reelslayout && (a.reelslayout = this.reelslayout), this.m_colorSet && (a.m_color = this.m_color), this.m_alphaSet && (a.m_alpha = this.m_alpha), this.m_activeRowSet && (a.m_activeRow = this.m_activeRow), this.m_activeReelsSet && (a.m_activeReels = this.m_activeReels)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT888", [GT1272] ); GT888.prototype.set_0 = function () { return new GT888(); }; var GT213 = GT886.extend( { initialConstructor_0: function () { this.videoFileName = null; this.randomStartPosSet = this.randomStartPos = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.randomStartPosSet = this.randomStartPos = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, index_1: function (a) { return this; }, videoClip_1: function (a) { this.videoFileName = a; return this; }, randomStartPositions_1: function (a) { this.randomStartPos = a; this.randomStartPosSet = !0; return this; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); this.debugFont.load_1(a.getResourceManager_0()); null != this.videoFileName && a.getResourceManager_0().startLoadVideoClip_1(this.videoFileName); }, createReel_4: function (a, b, d, e) { var f = b.getResourceManager_0().getVideoClip_1(this.videoFileName); a = new GT111(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), f, d, this.randomStartPos); a.setDebugFont_1(this.debugFont.create_1(b.getResourceManager_0())); a.setApplicationID_1(this.appId); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT213); GT1650.prototype.assertExp_2(b, "Descriptor is no DReelWithVideoAsSpinAnimation"); b && (null != this.rsymbols && (a.rsymbols = this.rsymbols), null != this.rlayout && (a.rlayout = this.rlayout), null != this.videoFileName && (a.videoFileName = this.videoFileName), this.randomStartPosSet && (a.randomStartPos = this.randomStartPos)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT213", [GT1272] ); GT213.prototype.set_0 = function () { return new GT213(); }; var GT889 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.symbolimages = null; this.containerDy = this.containerDx = 0; this.containerOffsetSet = !1; this.symbolcolortransformation = this.losingsymbolcolortransformation = this.debugFont = this.reelsLayout = null; this.darkenLosingSymbolBackground = !1; this.darkenLosingSymbolBackgroundColor = null; this.darkenLosingSymbolBackgroundAlpha = 0; this.darkenLosingSet = !1; this.losingsymbolalpha = 0; this.winningsymbolsontopSet = this.winningsymbolsontop = this.clipoverlappingsymbolabovereelset = this.clipoverlappingsymbolabovereel = this.drawvisiblerowsonlySet = this.drawvisiblerowsonly = this.reversedrawingorderSet = this.reversedrawingorder = this.losingsymbolalphaSet = !1; this.offset = 0; this.offsetSet = !1; this.marginBottom = this.marginTop = 0; this.marginSet = !1; this.debugAreaColor = this.overlappingSymbolsToReorderBackValue = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.debugFont = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(130).bold_0(); this.containerDy = this.containerDx = 0; this.heightSize = this.widthSize = -1; this.darkenLosingSymbolBackgroundColor = GT1634.prototype.black; this.darkenLosingSymbolBackgroundAlpha = 128; this.losingsymbolalpha = -1; this.clipoverlappingsymbolabovereel = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, symbols_1: function (a) { this.symbolimages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.containerOffsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = null == a ? null : a.create_0(); return this; }, losingSymbolColorTransformation_2: function (a, b) { return this.losingSymbolColorTransformation_4(a, b, GT1391.prototype.set_0().black_0(), 128); }, losingSymbolColorTransformation_4: function (a, b, d, e) { this.darkenLosingSymbolBackground = b; this.darkenLosingSymbolBackgroundColor = null == d ? GT1634.prototype.black : d.create_0(); this.darkenLosingSymbolBackgroundAlpha = e; this.darkenLosingSet = !0; return this.losingSymbolColorTransformation_1(a); }, winningSymbolsOnTop_1: function (a) { this.winningsymbolsontop = a; this.winningsymbolsontopSet = !0; return this; }, losingSymbolAlpha_1: function (a) { this.losingsymbolalpha = a; this.losingsymbolalphaSet = !0; return this; }, losingSymbolColorTransformation_1: function (a) { this.losingsymbolcolortransformation = null == a ? null : a.create_0(); return this; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; this.reversedrawingorderSet = !0; return this; }, drawVisibleRowsOnly_1: function (a) { this.drawvisiblerowsonly = a; this.drawvisiblerowsonlySet = !0; return this; }, clipOverlappingSymbolAboveReel_1: function (a) { this.clipoverlappingsymbolabovereel = a; this.clipoverlappingsymbolabovereelset = !0; return this; }, yOffset_1: function (a) { this.offset = a; this.offsetSet = !0; return this; }, margin_2: function (a, b) { this.marginTop = a; this.marginBottom = b; this.marginSet = !0; return this; }, overlappingSymbolsToReorderBack_1: function (a) { this.overlappingSymbolsToReorderBackValue = a; return this; }, load_1: function (a) { this.symbolimages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e, f; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (f = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (f = this.heightSize)); d = new GT775(a, this.xPos, this.yPos, e, f, this.symbolimages.create_1(b.getResourceManager_0()), d, this.containerDx, this.containerDy); d.setLosingSymbolColorTransformation_1(this.losingsymbolcolortransformation); d.setDarkenLosingSymbolBackground_3(this.darkenLosingSymbolBackground, this.darkenLosingSymbolBackgroundColor, this.darkenLosingSymbolBackgroundAlpha); d.setDebugFont_1(this.debugFont.create_1(b.getResourceManager_0())); d.setApplicationID_1(this.appId); d.setSymbolColorTransformation_1(this.symbolcolortransformation); d.setLosingSymbolAlpha_1(this.losingsymbolalpha); d.setReverseDrawingOrder_1(this.reversedrawingorder); d.setDrawVisibleRowsOnly_1(this.drawvisiblerowsonly); d.setClipOverlappingSymbolAboveReel_1(this.clipoverlappingsymbolabovereel); d.setYOffset_1(this.offset); d.setMargin_2(this.marginTop, this.marginBottom); d.setWinningSymbolsOnTop_1(this.winningsymbolsontop); d.setOverlappingSymbolsToReorderBack_1(this.overlappingSymbolsToReorderBackValue); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT889); GT1650.prototype.assertExp_2(b, "Descriptor is no DStoppedReels"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.containerOffsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), null != this.symbolimages && (a.symbolimages = this.symbolimages), null != this.symbolcolortransformation && (a.symbolcolortransformation = this.symbolcolortransformation), null != this.losingsymbolcolortransformation && (a.losingsymbolcolortransformation = this.losingsymbolcolortransformation), this.darkenLosingSet && ((a.darkenLosingSymbolBackground = this.darkenLosingSymbolBackground), (a.darkenLosingSymbolBackgroundAlpha = this.darkenLosingSymbolBackgroundAlpha), (a.darkenLosingSymbolBackgroundColor = this.darkenLosingSymbolBackgroundColor)), this.losingsymbolalphaSet && (a.losingsymbolalpha = this.losingsymbolalpha), this.reversedrawingorderSet && (a.reversedrawingorder = this.reversedrawingorder), this.drawvisiblerowsonlySet && (a.drawvisiblerowsonly = this.drawvisiblerowsonly), this.clipoverlappingsymbolabovereelset && (a.clipoverlappingsymbolabovereel = this.clipoverlappingsymbolabovereel), this.winningsymbolsontopSet && (a.winningsymbolsontop = this.winningsymbolsontop), this.offsetSet && (a.offset = this.offset), this.marginSet && ((a.marginBottom = this.marginBottom), (a.marginTop = this.marginTop)), null != this.overlappingSymbolsToReorderBackValue && (a.overlappingSymbolsToReorderBackValue = this.overlappingSymbolsToReorderBackValue)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT889", [GT1272] ); GT889.prototype.set_0 = function () { return new GT889(); }; var GT616 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.containerDy = this.containerDx = 0; this.offsetSet = !1; this.colorColorArea = this.reelsLayout = null; this.colorColorAreaSet = !1; this.alphaColorArea = 0; this.alphaColorAreaSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.colorColorArea = GT1391.prototype.set_0().black_0(); this.alphaColorArea = 125; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.offsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, alpha_1: function (a) { this.alphaColorArea = a; this.alphaColorAreaSet = !0; return this; }, color_1: function (a) { this.colorColorArea = a; this.colorColorAreaSet = !0; return this; }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT192(a, this.xPos, this.yPos, e, d, this.reelsLayout.create_0(), this.containerDx, this.containerDy, this.colorColorArea.create_0(), this.alphaColorArea); e.setApplicationID_1(this.appId); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT616); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolDarkenImage"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.offsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), this.alphaColorAreaSet && (a.alphaColorArea = this.alphaColorArea), this.colorColorAreaSet && (a.colorColorArea = this.colorColorArea)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT616", [GT1272] ); GT616.prototype.set_0 = function () { return new GT616(); }; var GT316 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.debugAreaColor = this.reelsLayout = this.symbolAnimations = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, animations_1: function (a) { this.symbolAnimations = a; return this; }, id_1: function (a) { this.appId = a; return this; }, load_1: function (a) { null != this.symbolAnimations && this.symbolAnimations.load_1(a.getResourceManager_0()); }, layout_1: function (a) { this.reelsLayout = a; return this; }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e = this.symbolAnimations.create_0(), f, g; -1 == this.widthSize ? ((f = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (g = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((f = this.widthSize), (g = this.heightSize)); d = new GT96(a, this.xPos, this.yPos, f, g, d, b.getTimer_0(), 0, 0, e, b); -1 != this.appId && d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT316); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightAnimation"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), null != this.symbolAnimations && (a.symbolAnimations = this.symbolAnimations), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT316", [GT1272] ); GT316.prototype.set_0 = function () { return new GT316(); }; var GT296 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.containerDy = this.containerDx = 0; this.offsetSet = !1; this.symbolimages = this.reelsLayout = null; this.losingSymbolsSet = this.losingSymbols = !1; this.duration = 0; this.durationSet = !1; this.colorTransformation = null; this.colorTransformationSet = !1; this.loseColorTransformation = null; this.loseColorTransformationSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.duration = 1e3; this.losingSymbols = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, images_1: function (a) { this.symbolimages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.offsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, coverLosingSymbols_0: function () { this.losingSymbolsSet = this.losingSymbols = !0; return this; }, symbolColorTransformation_1: function (a) { this.colorTransformation = null == a ? null : a.create_0(); this.colorTransformationSet = !0; return this; }, losingSymbolColorTransformation_1: function (a) { this.loseColorTransformation = null == a ? null : a.create_0(); this.loseColorTransformationSet = !0; return this; }, load_1: function (a) { null != this.symbolimages && this.symbolimages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT88(a, this.xPos, this.yPos, e, d, this.symbolimages.create_1(b.getResourceManager_0()), this.duration, this.reelsLayout.create_0(), this.containerDx, this.containerDy); e.setApplicationID_1(this.appId); e.setCoverLosingSymbols_1(this.losingSymbols); e.setLoseColorTransformation_1(this.loseColorTransformation); e.setSymbolColorTransformation_1(this.colorTransformation); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT296); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightBackground"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.offsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), null != this.symbolimages && (a.symbolimages = this.symbolimages), this.durationSet && (a.duration = this.duration), this.losingSymbolsSet && (a.losingSymbols = this.losingSymbols), this.colorTransformationSet && (a.colorTransformation = this.colorTransformation), this.loseColorTransformationSet && (a.loseColorTransformation = this.loseColorTransformation)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT296", [GT1272] ); GT296.prototype.set_0 = function () { return new GT296(); }; var GT517 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.containerDy = this.containerDx = 0; this.offsetSet = !1; this.symbolImages = this.reelsLayout = null; this.pulsatingDuration = 0; this.reverseReorderSet = this.reverseReorder = this.pulsatingDurationSet = !1; this.symbolcolortransformation = null; this.flipHorizSet = this.flipHoriz = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.pulsatingDuration = 500; this.flipHoriz = !0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, images_1: function (a) { this.symbolImages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.offsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, duration_1: function (a) { this.pulsatingDuration = a; this.pulsatingDurationSet = !0; return this; }, reversePaintOrder_1: function (a) { this.reverseReorder = a; this.reverseReorderSet = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = a; return this; }, flipHorizontal_0: function () { this.flipHorizSet = this.flipHoriz = !0; return this; }, flipVertical_0: function () { this.flipHoriz = !1; this.flipHorizSet = !0; return this; }, load_1: function (a) { null != this.symbolImages && this.symbolImages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(100 <= this.pulsatingDuration, "The pulsating duration shouldn't be less than 100 milliseconds! (pulsatingDuration set: " + this.pulsatingDuration + ")"); var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT168(a, this.xPos, this.yPos, e, d, this.symbolImages.create_1(b.getResourceManager_0()), this.pulsatingDuration, this.flipHoriz, this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy); e.setApplicationID_1(this.appId); e.setReversePaintOrder_1(this.reverseReorder); e.setSymbolColorTransformation_1(this.symbolcolortransformation); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT517); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightFlip"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.offsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.symbolImages && (a.symbolImages = this.symbolImages), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), null != this.symbolcolortransformation && (a.symbolcolortransformation = this.symbolcolortransformation), this.pulsatingDurationSet && (a.pulsatingDuration = this.pulsatingDuration), this.flipHorizSet && (a.flipHoriz = this.flipHoriz), this.reverseReorderSet && (a.reverseReorder = this.reverseReorder)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT517", [GT1272] ); GT517.prototype.set_0 = function () { return new GT517(); }; var GT470 = GT1334.extend( { initialConstructor_0: function () { this.containerDy = this.containerDx = 0; this.symbolimages = this.reelsLayout = null; this.fadeInOuttime = this.duration = 0; this.hideSymbolSet = this.hideSymbol = this.fadeAnimation = this.reverseReorder = !1; this.symbolcolortransformation = null; this.reelContainerOffsetModified = this.fadeAnimationModified = this.reverseOrderModified = this.fadeInOuttimeModified = this.durationModified = this.sizeModified = this.posModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.duration = 1e3; this.fadeInOuttime = -1; this.fadeAnimation = !0; this.reelContainerOffsetModified = this.fadeAnimationModified = this.reverseOrderModified = this.fadeInOuttimeModified = this.durationModified = this.sizeModified = this.posModified = this.hideSymbolSet = this.hideSymbol = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, images_1: function (a) { this.symbolimages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.reelContainerOffsetModified = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, time_1: function (a) { this.duration = a; this.durationModified = !0; return this; }, fadetime_1: function (a) { this.fadeInOuttime = a; this.fadeInOuttimeModified = !0; return this; }, hideUnderlyingSymbol_1: function (a) { this.hideSymbol = a; this.hideSymbolSet = !0; return this; }, reversePaintOrder_1: function (a) { this.reverseReorder = a; this.reverseOrderModified = !0; return this; }, fade_1: function (a) { this.fadeAnimation = a; this.fadeAnimationModified = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = a; return this; }, load_1: function (a) { null != this.symbolimages && this.symbolimages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(this.fadeInOuttime <= Math.div(this.duration, 2), "fadeInOuttime has to be less or equal to duration/2! (fadeInOuttime set: " + this.fadeInOuttime + ", duration: " + this.duration + ")"); var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT150(a, this.xPos, this.yPos, e, d, this.symbolimages.create_1(b.getResourceManager_0()), this.duration, this.fadeInOuttime, this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy); e.setApplicationID_1(this.appId); e.setReversePaintOrder_1(this.reverseReorder); e.setFadeAnimation_1(this.fadeAnimation); e.setSymbolColorTransformation_1(this.symbolcolortransformation); e.hideUnderlyingSymbols_1(this.hideSymbol); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT470) || this.containerDx != a.containerDx || this.containerDy != a.containerDy || this.duration != a.duration || this.hideSymbol != a.hideSymbol) return !1; if (null == this.reelsLayout) { if (null != a.reelsLayout) return !1; } else if (!this.reelsLayout.equals_1(a.reelsLayout)) return !1; if (null == this.symbolimages) { if (null != a.symbolimages) return !1; } else if (!this.symbolimages.equals_1(a.symbolimages)) return !1; return !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT470); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightImage"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.durationModified && (a.duration = this.duration), this.fadeInOuttimeModified && (a.fadeInOuttime = this.fadeInOuttime), this.reverseOrderModified && (a.reverseReorder = this.reverseReorder), this.fadeAnimationModified && (a.fadeAnimation = this.fadeAnimation), this.reelContainerOffsetModified && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), null != this.symbolimages && (a.symbolimages = this.symbolimages), null != this.symbolcolortransformation && (a.symbolcolortransformation = this.symbolcolortransformation), this.hideSymbolSet && (a.hideSymbol = this.hideSymbol)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT470", [GT1272] ); GT470.prototype.set_0 = function () { return new GT470(); }; var GT345 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.containerDy = this.containerDx = 0; this.offsetSet = !1; this.symbolImages = this.reelsLayout = null; this.pulsatingDuration = 0; this.pulsatingDurationSet = !1; this.scaleFactor = 0; this.reverseReorderSet = this.reverseReorder = this.scaleFactorSet = !1; this.debugAreaColor = this.symbolcolortransformation = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.pulsatingDuration = 500; this.scaleFactor = 0.95; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, images_1: function (a) { this.symbolImages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.offsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, duration_1: function (a) { this.pulsatingDuration = a; this.pulsatingDurationSet = !0; return this; }, zoomOutFactor_1: function (a) { this.scaleFactor = a; this.scaleFactorSet = !0; return this; }, reversePaintOrder_1: function (a) { this.reverseReorder = a; this.reverseReorderSet = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = a; return this; }, load_1: function (a) { null != this.symbolImages && this.symbolImages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(100 <= this.pulsatingDuration, "The pulsating duration shouldn't be less than 100 milliseconds! (pulsatingDuration set: " + this.pulsatingDuration + ")"); var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT112(a, this.xPos, this.yPos, e, d, this.symbolImages.create_1(b.getResourceManager_0()), this.pulsatingDuration, this.scaleFactor, this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy); e.setApplicationID_1(this.appId); e.setReversePaintOrder_1(this.reverseReorder); e.setSymbolColorTransformation_1(this.symbolcolortransformation); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT345); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightPulsator"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.offsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.symbolImages && (a.symbolImages = this.symbolImages), null != this.reelsLayout && (a.reelsLayout = this.reelsLayout), null != this.symbolcolortransformation && (a.symbolcolortransformation = this.symbolcolortransformation), this.pulsatingDurationSet && (a.pulsatingDuration = this.pulsatingDuration), this.reverseReorderSet && (a.reverseReorder = this.reverseReorder), this.scaleFactorSet && (a.scaleFactor = this.scaleFactor)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT345", [GT1272] ); GT345.prototype.set_0 = function () { return new GT345(); }; var GT471 = GT1334.extend( { initialConstructor_0: function () { this.containerDy = this.containerDx = 0; this.reelContainerOffsetModified = !1; this.symbolSpines = this.reelsLayout = null; this.synchronize = !1; this.symbolcountwhensubstituting = 0; this.reversedrawingorder = this.symbolCountWhenSubstitutingModified = !1; this.symbolcolortransformation = null; this.symbolColorTransformationModified = this.reverseDrawingOrderModified = this.synchronizeSpinesModified = this.layoutModified = this.hideStoppedReelsModified = this.hideStoppedReels = this.sizeModified = this.posModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.sizeModified = this.posModified = this.synchronize = !1; this.hideStoppedReels = !0; this.symbolColorTransformationModified = this.reverseDrawingOrderModified = this.synchronizeSpinesModified = this.layoutModified = this.reelContainerOffsetModified = this.hideStoppedReelsModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, spines_1: function (a) { this.symbolSpines = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.reelContainerOffsetModified = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; this.layoutModified = !0; return this; }, synchronizeSpines_0: function () { this.synchronizeSpinesModified = this.synchronize = !0; return this; }, symbolCountWhenSubstituting_1: function (a) { this.symbolcountwhensubstituting = a; this.symbolCountWhenSubstitutingModified = !0; return this; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; this.reverseDrawingOrderModified = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = null == a ? null : a.create_0(); this.symbolColorTransformationModified = !0; return this; }, hideStoppedReelsImages_1: function (a) { this.hideStoppedReels = a; this.hideStoppedReelsModified = !0; return this; }, load_1: function (a) { null != this.symbolSpines && this.symbolSpines.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT151(a, this.xPos, this.yPos, e, d, this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy, this.symbolSpines.create_1(b.getResourceManager_0()), b); e.setSynchronize_1(this.synchronize); e.setSymbolCountWhenSubstituting_1(this.symbolcountwhensubstituting); e.setApplicationID_1(this.appId); e.reverseDrawingOrder_1(this.reversedrawingorder); e.setSymbolColorTransformation_1(this.symbolcolortransformation); e.setHideStoppedReelsImages_1(this.hideStoppedReels); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT471); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightSpine"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.symbolCountWhenSubstitutingModified && (a.symbolcountwhensubstituting = this.symbolcountwhensubstituting), this.hideStoppedReelsModified && (a.hideStoppedReels = this.hideStoppedReels), this.reelContainerOffsetModified && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), this.layoutModified && (a.reelsLayout = this.reelsLayout), this.synchronizeSpinesModified && (a.synchronize = this.synchronize), this.reverseDrawingOrderModified && (a.reversedrawingorder = this.reversedrawingorder), this.symbolColorTransformationModified && (a.symbolcolortransformation = this.symbolcolortransformation), null != this.symbolSpines && (a.symbolSpines = this.symbolSpines)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT471", [GT1272] ); GT471.prototype.set_0 = function () { return new GT471(); }; var GT472 = GT1334.extend( { initialConstructor_0: function () { this.containerDy = this.containerDx = 0; this.reelContainerOffsetModified = !1; this.symbolvideos = this.reelsLayout = null; this.synchronizeAll = this.synchronize = !1; this.symbolcountwhensubstituting = 0; this.symbolCountWhenSubstitutingModified = !1; this.dependentsymbolhighlightid = 0; this.reversedrawingorder = !1; this.symbolcolortransformation = null; this.sizeModified = this.posModified = this.restoreSymbolModified = this.restoreSymbol = !1; this.synchronizationList = null; this.removeAllSynchronisationListsCalled = this.symbolColorTransformationModified = this.reverseDrawingOrderModified = this.dependentSymbolHighlightIdModified = this.synchronizeAllVideosModified = this.synchronizeVideosModified = this.layoutModified = this.hideStoppedReelsModified = this.hideStoppedReels = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.sizeModified = this.sizeModified = this.posModified = this.restoreSymbol = this.synchronizeAll = this.synchronize = !1; this.hideStoppedReels = !0; this.removeAllSynchronisationListsCalled = this.symbolColorTransformationModified = this.reverseDrawingOrderModified = this.dependentSymbolHighlightIdModified = this.synchronizeAllVideosModified = this.synchronizeVideosModified = this.layoutModified = this.reelContainerOffsetModified = this.restoreSymbolModified = this.hideStoppedReelsModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, videos_1: function (a) { this.symbolvideos = a; return this; }, restoreSymbolAfterAnimationFinished_1: function (a) { this.restoreSymbol = a; this.restoreSymbolModified = !0; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.reelContainerOffsetModified = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; this.layoutModified = !0; return this; }, synchronizeVideos_0: function () { this.synchronizeVideosModified = this.synchronize = !0; return this; }, synchronizeAllVideos_0: function () { this.synchronizeAllVideosModified = this.synchronizeAll = !0; return this; }, addSynchronizationList_1: function (a) { null == this.synchronizationList && (this.synchronizationList = new java_util_JavaScriptVector()); this.synchronizationList.add_1(a); return this; }, removeAllSynchronizationLists_0: function () { this.synchronizationList.clear_0(); this.synchronizationList = null; this.removeAllSynchronisationListsCalled = !0; return this; }, symbolCountWhenSubstituting_1: function (a) { this.symbolcountwhensubstituting = a; this.symbolCountWhenSubstitutingModified = !0; return this; }, dependentSymbolHighlight_1: function (a) { this.dependentsymbolhighlightid = a; this.dependentSymbolHighlightIdModified = !0; return this; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; this.reverseDrawingOrderModified = !0; return this; }, symbolColorTransformation_1: function (a) { this.symbolcolortransformation = null == a ? null : a.create_0(); this.symbolColorTransformationModified = !0; return this; }, hideStoppedReelsImages_1: function (a) { this.hideStoppedReels = a; this.hideStoppedReelsModified = !0; return this; }, load_1: function (a) { null != this.symbolvideos && this.symbolvideos.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT152(a, this.xPos, this.yPos, e, d, this.symbolvideos.create_1(b.getResourceManager_0()), this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy); e.setDependentSymbolHighlight_1(this.dependentsymbolhighlightid); e.setSynchronize_1(this.synchronize); d = null; if (null != this.synchronizationList) for (var d = [].createArray(this.synchronizationList.size_0(), null), f = 0; f < d.length; f++) { var g = GT1677.prototype.tokenize_2(this.synchronizationList.get_1(f), ","); d[f] = [].createArray(g.length); for (var k = 0; k < g.length; k++) d[f][k] = b.getResourceManager_0().getVideoClip_1(g[k]); } e.setSynchronizeAll_2(this.synchronizeAll, d); e.setSymbolCountWhenSubstituting_1(this.symbolcountwhensubstituting); e.setApplicationID_1(this.appId); e.reverseDrawingOrder_1(this.reversedrawingorder); e.setSymbolColorTransformation_1(this.symbolcolortransformation); e.setRestoreSymbolAfterAnimationFinished_1(this.restoreSymbol); e.setHideStoppedReelsImages_1(this.hideStoppedReels); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT472); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightVideo"); if (b) { this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)); this.symbolCountWhenSubstitutingModified && (a.symbolcountwhensubstituting = this.symbolcountwhensubstituting); this.hideStoppedReelsModified && (a.hideStoppedReels = this.hideStoppedReels); this.restoreSymbolModified && (a.restoreSymbol = this.restoreSymbol); this.reelContainerOffsetModified && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)); this.layoutModified && (a.reelsLayout = this.reelsLayout); this.synchronizeVideosModified && (a.synchronize = this.synchronize); this.synchronizeAllVideosModified && (a.synchronizeAll = this.synchronizeAll); this.dependentSymbolHighlightIdModified && (a.dependentsymbolhighlightid = this.dependentsymbolhighlightid); this.reverseDrawingOrderModified && (a.reversedrawingorder = this.reversedrawingorder); this.symbolColorTransformationModified && (a.symbolcolortransformation = this.symbolcolortransformation); this.removeAllSynchronisationListsCalled && (a.synchronizationList = null); if (null != this.synchronizationList) for (b = 0; b < this.synchronizationList.size_0(); b++) a.synchronizationList.contains_1(this.synchronizationList.get_1(b)) || a.synchronizationList.addElement_1(this.synchronizationList.get_1(b)); null != this.symbolvideos && (a.symbolvideos = this.symbolvideos); } }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT472", [GT1272] ); GT472.prototype.set_0 = function () { return new GT472(); }; var GT374 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.containerDy = this.containerDx = 0; this.offsetSet = !1; this.symbolHighlightImages = this.symbolImages = this.reelsLayout = null; this.maxWobbleFactor = 0; this.maxWobbleFactorSet = !1; this.loopTime = 0; this.loopTimeSet = !1; this.fadeCycleDuration = 0; this.fadeAnimationSet = this.fadeAnimation = this.reverseReorderSet = this.reverseReorder = this.fadeCycleDurationSet = !1; this.debugAreaColor = this.colorTransformation = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.maxWobbleFactor = 0.2; this.loopTime = 4500; this.fadeCycleDuration = 3e3; this.fadeAnimation = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, images_1: function (a) { this.symbolImages = a; return this; }, highlightImages_1: function (a) { this.symbolHighlightImages = a; return this; }, reelContainerOffset_2: function (a, b) { this.containerDx = a; this.containerDy = b; this.offsetSet = !0; return this; }, layout_1: function (a) { this.reelsLayout = a; return this; }, maxWobble_1: function (a) { this.maxWobbleFactor = a; this.maxWobbleFactorSet = !0; return this; }, duration_1: function (a) { this.loopTime = a; this.loopTimeSet = !0; return this; }, reversePaintOrder_1: function (a) { this.reverseReorder = a; this.reverseReorderSet = !0; return this; }, fadeDuration_1: function (a) { this.fadeCycleDuration = a; this.fadeCycleDurationSet = !0; return this; }, fade_1: function (a) { this.fadeAnimation = a; this.fadeAnimationSet = !0; return this; }, symbolColorTransformation_1: function (a) { this.colorTransformation = a; return this; }, load_1: function (a) { null != this.symbolImages && this.symbolImages.load_1(a.getResourceManager_0()); null != this.symbolHighlightImages && this.symbolHighlightImages.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(100 <= this.loopTime, "The wobbling duration shouldn't be less than 100 milliseconds! (loopTime set: " + this.loopTime + ")"); var d = this.reelsLayout.create_0(), e; -1 == this.widthSize ? ((e = d.getColumnPos_1(d.columns - 1) + d.symbolWidth), (d = d.getRowPos_1(d.rows - 1) + d.symbolHeight)) : ((e = this.widthSize), (d = this.heightSize)); e = new GT130( a, this.xPos, this.yPos, e, d, this.symbolImages.create_1(b.getResourceManager_0()), this.symbolHighlightImages.create_1(b.getResourceManager_0()), this.reelsLayout.create_0(), b.getTimer_0(), this.containerDx, this.containerDy, this.maxWobbleFactor, this.loopTime ); e.setApplicationID_1(this.appId); e.setFadeAnimation_1(this.fadeAnimation); e.setReversePaintOrder_1(this.reverseReorder); e.setFadeCycleDuration_1(this.fadeCycleDuration); e.setSymbolColorTransformation_1(this.colorTransformation); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT374); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightWobbler"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.offsetSet && ((a.containerDx = this.containerDx), (a.containerDy = this.containerDy)), null != this.symbolImages && (a.symbolImages = this.symbolImages), null != this.symbolHighlightImages && (a.symbolHighlightImages = this.symbolHighlightImages), null != this.colorTransformation && (a.colorTransformation = this.colorTransformation), this.fadeAnimationSet && (a.fadeAnimation = this.fadeAnimation), this.fadeCycleDurationSet && (a.fadeCycleDuration = this.fadeCycleDuration), this.maxWobbleFactorSet && (a.maxWobbleFactor = this.maxWobbleFactor), this.loopTimeSet && (a.loopTime = this.loopTime), this.reverseReorderSet && (a.reverseReorder = this.reverseReorder)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT374", [GT1272] ); GT374.prototype.set_0 = function () { return new GT374(); }; var GT890 = GT886.extend( { initialConstructor_0: function () { this.m_tumblingDurationMinimum = 0; this.tumblingDurationMinimumSet = !1; this.m_tumblingDurationDifferencePerSymbol = 0; this.tumblingDurationDifferencePerSymbolSet = !1; this.m_totalTumblingDurationInitialDisappearance = 0; this.totalTumblingDurationInitialDisappearanceSet = !1; this.m_initialDisappearanceDelay = 0; this.initialDisappearanceDelaySet = !1; this.m_symbolDifferenceRandomization = 0; this.symbolDifferenceRandomizationSet = !1; this.m_alphaAfterStart = 0; this.alphaAfterStartSet = !1; this.m_symbolDroppedSoundStartPosition = 0; this.symbolDroppedSoundStartPositionSet = !1; this.m_symbolDroppedSoundEndPosition = 0; this.symbolDroppedSoundEndPositionSet = !1; this.m_motionGraph = this.m_symbolsWithoutDroppedSounds = this.m_symbolDroppedSound = this.m_bottomReachedSound = null; this.notifySymbolUnveiledOnSymbolDroppedSet = this.m_notifySymbolUnveiledOnSymbolDropped = this.forceSymbolDroppedSoundForEverySymbolSet = this.m_forceSymbolDroppedSoundForEverySymbol = this.forceSymbolDroppedSoundSet = this.m_forceSymbolDroppedSound = this.playDisappearanceTumblingAnimationSet = this.m_playDisappearanceTumblingAnimation = this.motionGraphSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT886.prototype.initialConstructor_0.call(this); this.m_tumblingDurationMinimum = 350; this.m_tumblingDurationDifferencePerSymbol = 200; this.m_totalTumblingDurationInitialDisappearance = 1e3; this.m_initialDisappearanceDelay = 50; this.m_symbolDifferenceRandomization = 0; this.m_symbolsWithoutDroppedSounds = ""; this.m_alphaAfterStart = 0.25; this.m_motionGraph = GT1253.prototype.PREDEFINED_ACCELERATION; this.m_notifySymbolUnveiledOnSymbolDropped = this.m_forceSymbolDroppedSoundForEverySymbol = this.m_forceSymbolDroppedSound = this.m_playDisappearanceTumblingAnimation = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, symbols_1: function (a) { this.rsymbols = a; return this; }, layout_1: function (a) { this.rlayout = a; return this; }, bottomReachedSound_1: function (a) { this.m_bottomReachedSound = a; return this; }, symbolDroppedSound_1: function (a) { this.m_symbolDroppedSound = a; return this; }, notifySymbolUnveiledOnSymbolDropped_1: function (a) { this.m_notifySymbolUnveiledOnSymbolDropped = a; this.notifySymbolUnveiledOnSymbolDroppedSet = !0; return this; }, symbolDroppedSoundStartPosition_1: function (a) { this.m_symbolDroppedSoundStartPosition = a; this.symbolDroppedSoundStartPositionSet = !0; return this; }, symbolDroppedSoundEndPosition_1: function (a) { this.m_symbolDroppedSoundEndPosition = a; this.symbolDroppedSoundEndPositionSet = !0; return this; }, symbolsWithoutDroppedSounds_1: function (a) { this.m_symbolsWithoutDroppedSounds = a; return this; }, motionGraph_1: function (a) { this.m_motionGraph = a; this.motionGraphSet = !0; return this; }, createReel_4: function (a, b, d, e) { a = new GT518(a, b.getTimer_0(), e, this.rsymbols.create_1(b.getResourceManager_0()), d); null != this.m_bottomReachedSound && ((d = b.getResourceManager_0().getSound_1(this.m_bottomReachedSound)), a.setBottomReachedSound_2(d, b.getSoundPlayer_0())); null != this.m_symbolDroppedSound && ((d = b.getResourceManager_0().getSound_1(this.m_symbolDroppedSound)), a.setSymbolDroppedSound_2(d, b.getSoundPlayer_0())); a.setMinTumblingDuration_1(this.m_tumblingDurationMinimum); a.setTumblingDurationDifference_1(this.m_tumblingDurationDifferencePerSymbol); a.setInitialDisappearanceDuration_1(this.m_totalTumblingDurationInitialDisappearance); a.setInitialDisappearanceDelay_1(this.m_initialDisappearanceDelay); a.setForcePlaySymbolDroppedSound_1(this.m_forceSymbolDroppedSound); a.setForcePlaySymbolDroppedSoundForEverySymbol_1(this.m_forceSymbolDroppedSoundForEverySymbol); a.setSymbolDroppedSoundStartPosition_1(this.m_symbolDroppedSoundStartPosition); a.setSymbolDroppedSoundEndPosition_1(this.m_symbolDroppedSoundEndPosition); a.setDisappearanceTumblingAnimation_1(this.m_playDisappearanceTumblingAnimation); a.setSymbolDifferenceRandomization_1(this.m_symbolDifferenceRandomization); a.setSymbolsWithoutDroppedSounds_1(this.m_symbolsWithoutDroppedSounds); a.setNotifySymbolUnveiledOnSymbolDropped_1(this.m_notifySymbolUnveiledOnSymbolDropped); a.setAlphaAfterStart_1(this.m_alphaAfterStart); a.setMotionGraph_1(this.m_motionGraph); a.setApplicationID_1(this.appId); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return a; }, create_2: function (a, b) { return this.createReel_4(a, b, this.rlayout.create_0(), this.indexofreel); }, load_1: function (a) { this.rsymbols.load_1(a.getResourceManager_0()); null != this.m_bottomReachedSound && a.getResourceManager_0().startLoadSound_1(this.m_bottomReachedSound); null != this.m_symbolDroppedSound && a.getResourceManager_0().startLoadSound_1(this.m_symbolDroppedSound); this.debugFont.load_1(a.getResourceManager_0()); }, minTumblingDuration_1: function (a) { this.m_tumblingDurationMinimum = a; this.tumblingDurationMinimumSet = !0; return this; }, tumblingDurationDifferencePerSymbol_1: function (a) { this.m_tumblingDurationDifferencePerSymbol = a; this.tumblingDurationDifferencePerSymbolSet = !0; return this; }, totalTumblingDurationInitialDisappearance_1: function (a) { this.m_totalTumblingDurationInitialDisappearance = a; this.totalTumblingDurationInitialDisappearanceSet = !0; return this; }, alphaAfterStart_1: function (a) { this.m_alphaAfterStart = a; this.alphaAfterStartSet = !0; return this; }, initialDisappearanceDelay_1: function (a) { this.m_initialDisappearanceDelay = a; this.initialDisappearanceDelaySet = !0; return this; }, playDisappearanceTumblingAnimation_1: function (a) { this.m_playDisappearanceTumblingAnimation = a; this.playDisappearanceTumblingAnimationSet = !0; return this; }, forcePlaySymbolDroppedSound_1: function (a) { this.m_forceSymbolDroppedSound = a; this.forceSymbolDroppedSoundSet = !0; return this; }, forceSymbolDroppedSoundForEverySymbol_1: function (a) { this.m_forceSymbolDroppedSoundForEverySymbol = a; this.forceSymbolDroppedSoundForEverySymbolSet = !0; return this; }, symbolDifferenceRandomization_1: function (a) { this.m_symbolDifferenceRandomization = a; this.symbolDifferenceRandomizationSet = !0; return this; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT890); GT1650.prototype.assertExp_2(b, "Descriptor is no DTumblingReel"); b && (null != this.rsymbols && (a.rsymbols = this.rsymbols), null != this.rlayout && (a.rlayout = this.rlayout), null != this.m_bottomReachedSound && (a.m_bottomReachedSound = this.m_bottomReachedSound), null != this.m_symbolsWithoutDroppedSounds && (a.m_symbolsWithoutDroppedSounds = this.m_symbolsWithoutDroppedSounds), this.motionGraphSet && (a.m_motionGraph = this.m_motionGraph), this.tumblingDurationMinimumSet && (a.m_tumblingDurationMinimum = this.m_tumblingDurationMinimum), this.tumblingDurationDifferencePerSymbolSet && (a.m_tumblingDurationDifferencePerSymbol = this.m_tumblingDurationDifferencePerSymbol), this.totalTumblingDurationInitialDisappearanceSet && (a.m_totalTumblingDurationInitialDisappearance = this.m_totalTumblingDurationInitialDisappearance), this.initialDisappearanceDelaySet && (a.m_initialDisappearanceDelay = this.m_initialDisappearanceDelay), this.symbolDifferenceRandomizationSet && (a.m_symbolDifferenceRandomization = this.m_symbolDifferenceRandomization), this.alphaAfterStartSet && (a.m_alphaAfterStart = this.m_alphaAfterStart), this.symbolDroppedSoundStartPositionSet && (a.m_symbolDroppedSoundStartPosition = this.m_symbolDroppedSoundStartPosition), this.symbolDroppedSoundEndPositionSet && (a.m_symbolDroppedSoundEndPosition = this.m_symbolDroppedSoundEndPosition), null != this.m_bottomReachedSound && (a.m_bottomReachedSound = this.m_bottomReachedSound), null != this.m_symbolDroppedSound && (a.m_symbolDroppedSound = this.m_symbolDroppedSound), null != this.m_symbolsWithoutDroppedSounds && (a.m_symbolsWithoutDroppedSounds = this.m_symbolsWithoutDroppedSounds), this.playDisappearanceTumblingAnimationSet && (a.m_playDisappearanceTumblingAnimation = this.m_playDisappearanceTumblingAnimation), this.forceSymbolDroppedSoundSet && (a.m_forceSymbolDroppedSound = this.m_forceSymbolDroppedSound), this.forceSymbolDroppedSoundForEverySymbolSet && (a.m_forceSymbolDroppedSoundForEverySymbol = this.m_forceSymbolDroppedSoundForEverySymbol), this.notifySymbolUnveiledOnSymbolDroppedSet && (a.m_notifySymbolUnveiledOnSymbolDropped = this.m_notifySymbolUnveiledOnSymbolDropped)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT890", [GT1272] ); GT890.prototype.set_0 = function () { return new GT890(); }; var GT836 = GT1252.extend( { initialConstructor_0: function () { GT1252.prototype.initialConstructor_0.call(this); }, createReels_5: function (a, b, d, e, f) { return new GT473(a, b, d, e, f); }, }, "GT836", [] ); GT836.prototype.set_0 = function () { return new GT836(); }; var GT474 = GT1334.extend( { initialConstructor_0: function () { this.linedef = null; this.maxKey = 0; this.reelslayout = null; this.showscatterwinlabels = this.showlinewinlabels = this.showscatterwinframes = this.showlinewinframes = !1; GT1334.prototype.initialConstructor_0.call(this); this.linedef = new java_util_JavaScriptHashtable(); this.widthSize = 200; this.heightSize = 100; this.maxKey = 0; this.showlinewinframes = this.showscatterwinframes = this.showlinewinlabels = this.showscatterwinlabels = !0; }, idImpl_1: function (a) { this.appId = a; }, positionImpl_2: function (a, b) { this.xPos = a; this.yPos = b; }, sizeImpl_2: function (a, b) { this.widthSize = a; this.heightSize = b; }, showFramesImpl_1: function (a) { this.showlinewinframes = this.showscatterwinframes = a; }, showLineWinFramesImpl_1: function (a) { this.showlinewinframes = a; }, showScatterWinFramesImpl_1: function (a) { this.showscatterwinframes = a; }, showWinLabelsImpl_1: function (a) { this.showlinewinlabels = this.showscatterwinlabels = a; }, showLineWinLabelsImpl_1: function (a) { this.showlinewinlabels = a; }, showScatterWinLabelsImpl_1: function (a) { this.showscatterwinlabels = a; }, lineImpl_2: function (a, b) { this.linedef.put_2(Integer.toString_1(a), b); this.updateMax_1(a); }, updateMax_1: function (a) { this.maxKey = Math.max_2(this.maxKey, a); }, getMax_0: function () { return this.maxKey; }, getLineDef_0: function () { return this.linedef; }, reelsLayoutImpl_1: function (a) { this.reelslayout = a; }, getLayout_0: function () { return this.reelslayout; }, isShowLineWinFrames_0: function () { return this.showlinewinframes; }, isShowScatterWinFrames_0: function () { return this.showscatterwinframes; }, isShowLineWinLabels_0: function () { return this.showlinewinlabels; }, isShowScatterWinlabels_0: function () { return this.showscatterwinlabels; }, }, "GT474", [] ), GT835 = GT1334.extend( { initialConstructor_0: function () { this._textsize = this._bordersize = this._vSpacing = this._hSpacing = this._winlineColumns = this._winlineRows = this._height = this._width = this._positionY = this._positionX = this._nr = this._id = 0; this._textOutlineColor = this._textColor = this._winColor = this._noWinColor = this._backgroundColor = this._font = null; this._outlinethickness = 0; this._winline = null; this._displayNr = !1; this.debugAreaColor = this._formationText = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this._id = GT1677.prototype.generateID_0(); this._positionY = this._positionX = this._nr = 0; this._height = this._width = -1; this._bordersize = this._vSpacing = this._hSpacing = this._winlineColumns = this._winlineRows = 0; this._backgroundColor = GT1391.prototype.set_0().black_0(); this._noWinColor = GT1391.prototype.set_0().white_0(); this._winColor = GT1391.prototype.set_0().blue_0(); this._textColor = GT1391.prototype.set_0().black_0(); this._textOutlineColor = GT1391.prototype.set_0().white_0(); this._outlinethickness = 1; this._font = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(100); this._textsize = 30; this._winline = null; this._displayNr = !1; this._formationText = "##0"; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this._id = a; return this; }, font_1: function (a) { this._font = a; return this; }, textContainerSize_1: function (a) { this._textsize = a; return this; }, displayNumber_1: function (a) { this._displayNr = a; return this; }, displayNumber_2: function (a, b) { this._displayNr = a; this._formationText = b; return this; }, border_1: function (a) { this._bordersize = a; return this; }, size_2: function (a, b) { this._width = a; this._height = b; return this; }, horizontalSpacing_1: function (a) { this._hSpacing = a; return this; }, number_1: function (a) { this._nr = a; return this; }, spacing_2: function (a, b) { this._hSpacing = a; this._vSpacing = b; return this; }, verticalSpacing_1: function (a) { this._vSpacing = a; return this; }, create_2: function (a, b) { 0 == this._winlineRows && null != this._winline && (this._winlineRows = this._winline.length_0()); -1 == this._width && (this._width = a.getWidth_0()); -1 == this._height && (this._height = a.getHeight_0()); var d = new GT726( this._id, this._nr, this._positionX, this._positionY, this._width, this._height, this._winlineColumns, this._winlineRows, this._hSpacing, this._vSpacing, this._bordersize, this._backgroundColor.create_0(), this._noWinColor.create_0(), this._winColor.create_0(), this._winline, this._displayNr, this._textsize, this._font, a, b ); d.setText_1(this._formationText); d.setTextColor_1(this._textColor.create_0()); d.setTextOutline_2(this._outlinethickness, this._textOutlineColor.create_0()); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { GT1334.prototype.load_1.call(this, a); this._font.load_1(a.getResourceManager_0()); }, position_2: function (a, b) { this._positionX = a; this._positionY = b; return this; }, winlineSize_2: function (a, b) { this._winlineColumns = a; this._winlineRows = b; return this; }, winlineRows_1: function (a) { this._winlineRows = a; return this; }, winlineColumns_1: function (a) { this._winlineColumns = a; return this; }, backgroundColor_1: function (a) { this._backgroundColor = a; return this; }, noWinColor_1: function (a) { this._noWinColor = a; return this; }, winColor_1: function (a) { this._winColor = a; return this; }, textColor_1: function (a) { this._textColor = a; return this; }, textOutline_2: function (a, b) { this._textOutlineColor = b; this._outlinethickness = a; return this; }, winline_1: function (a) { this._winline = a; return this; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT835", [] ); GT835.prototype.set_0 = function () { return new GT835(); }; var GT375 = GT1334.extend( { textSize_1: function (a) { this._textsize = a; return this; }, textColor_1: function (a) { this._textColor = a; return this; }, outline_2: function (a, b) { this._textOutlineColor = b; this._outline = a; return this; }, font_1: function (a) { this._font = a; return this; }, startIndex_1: function (a) { this._startindex = a; return this; }, fieldSize_2: function (a, b) { this._containerColumns = a; this._containerRows = b; return this; }, containerBorderSize_1: function (a) { this._containerBordersize = a; return this; }, winlineBorderSize_1: function (a) { this._winlineBordersize = a; return this; }, height_1: function (a) { this._containerHeight = a; return this; }, width_1: function (a) { this._containerWidth = a; return this; }, winlineSpacing_2: function (a, b) { this._winlineHSpacing = a; this._winlineVSpacing = b; return this; }, size_2: function (a, b) { this._containerWidth = a; this._containerHeight = b; return this; }, winlineSize_2: function (a, b) { this._winlineRows = b; this._winlineColumns = a; return this; }, winlineRows_1: function (a) { this._winlineRows = a; return this; }, winlineColumns_1: function (a) { this._winlineColumns = a; return this; }, containerBackgroundColor_1: function (a) { this._containerBackgroundColor = a; return this; }, winlineBackgroundColor_1: function (a) { this._winlinebackgroundColor = a; return this; }, noWinColor_1: function (a) { this._noWinColor = a; return this; }, winColor_1: function (a) { this._winColor = a; return this; }, winlines_1: function (a) { this._winlines = a; return this; }, initialConstructor_0: function () { this._textOutlineColor = this._textColor = this._winColor = this._noWinColor = this._containerBackgroundColor = this._winlinebackgroundColor = null; this._outline = 0; this._font = null; this._containerVSpacing = this._containerHSpacing = this._y = this._x = this._containerColumns = this._startindex = this._textsize = 0; this._winlines = null; this._id = this._containerBordersize = this._winlineBordersize = this._winlineVSpacing = this._winlineHSpacing = this._winlineColumns = this._winlineRows = this._containerRows = this._containerHeight = this._containerWidth = 0; this._displayNr = !1; this.debugAreaColor = this._numberText = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this._containerColumns = this._containerRows = -1; this._startindex = 0; this._winlines = null; this._y = this._x = 0; this._containerHeight = this._containerWidth = -1; this._winlinebackgroundColor = GT1391.prototype.set_0().black_0(); this._noWinColor = GT1391.prototype.set_0().white_0(); this._winColor = GT1391.prototype.set_0().blue_0(); this._textColor = GT1391.prototype.set_0().black_0(); this._textOutlineColor = GT1391.prototype.set_0().white_0(); this._outline = 1; this._font = GT1441.prototype.set_0().bold_0().name_1(GT1393.prototype.ARIAL).size_1(100); this._textsize = 30; this._containerBackgroundColor = null; this._winlineRows = this._winlineColumns = 3; this._displayNr = !1; this._numberText = "##0"; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, displayNumber_1: function (a) { this._displayNr = a; return this; }, displayNumber_2: function (a, b) { this._displayNr = a; this._numberText = b; return this; }, containerRows_1: function (a) { this._containerRows = a; return this; }, containerColumns_1: function (a) { this._containerColumns = a; return this; }, positionX_1: function (a) { this._x = a; return this; }, position_2: function (a, b) { this._x = a; this._y = b; return this; }, positionY_1: function (a) { this._y = a; return this; }, horizontalSpacing_1: function (a) { this._containerHSpacing = a; return this; }, spacing_2: function (a, b) { this._containerHSpacing = a; this._containerVSpacing = b; return this; }, verticalSpacing_1: function (a) { this._containerVSpacing = a; return this; }, create_2: function (a, b) { 0 >= this._containerWidth && (this._containerWidth = a.getWidth_0()); 0 >= this._containerHeight && (this._containerHeight = a.getHeight_0()); -1 == this._containerRows && (this._containerRows = -1 == this._containerColumns ? 10 : Math.div(this._winlines.length - this._startindex, this._containerColumns)); -1 == this._containerColumns && (this._containerColumns = Math.div(this._winlines.length - this._startindex, this._containerRows)); GT1650.prototype.assertExp_2(0 < this._containerRows, "Container must have > 0 rows"); GT1650.prototype.assertExp_2(0 < this._containerColumns, "Container must have > 0 columns"); GT1650.prototype.assertExp_2(null != this._winlines && 0 < this._winlines.length, "Winlines must not be null and have at least one winline"); var d = new GT315( this._id, this._x, this._y, this._containerWidth, this._containerHeight, this._winlines, this._startindex, this._containerHSpacing, this._containerVSpacing, this._containerRows, this._containerColumns, this._containerBordersize, this._containerBackgroundColor, this._winlinebackgroundColor, this._winColor, this._noWinColor, this._winlineBordersize, this._winlineHSpacing, this._winlineVSpacing, this._winlineColumns, this._winlineRows, this._displayNr, this._textsize, this._font, a, b ); d.setIndexText_1(this._numberText); d.setTextColor_1(this._textColor.create_0()); d.setTextOutline_2(this._outline, this._textOutlineColor.create_0()); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, id_1: function (a) { this._id = a; return this; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT375", [] ); GT375.prototype.set_0 = function () { return new GT375(); }; var GT169 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.thickness = 0; this.thicknessSet = !1; this.colorBorder = null; this.colorBorderSet = !1; this.colorBackground = null; this.colorBackgroundSet = !1; this.alpha = 0; this.alphaSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.alpha = this.heightSize = this.widthSize = -1; this.thickness = 1; this.colorBorder = GT1634.prototype.black; this.colorBackground = GT1634.prototype.white; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, borderThickness_1: function (a) { this.thickness = a; this.thicknessSet = !0; return this; }, borderColor_1: function (a) { this.colorBorder = null == a ? GT1634.prototype.black : a.create_0(); this.colorBorderSet = !0; return this; }, backgroundAlpha_1: function (a) { this.alpha = a; this.alphaSet = !0; return this; }, backgroundColor_1: function (a) { this.colorBackground = null == a ? GT1634.prototype.white : a.create_0(); this.colorBackgroundSet = !0; return this; }, create_2: function (a, b) { var d = -1 == this.widthSize ? a.getWidth_0() : this.widthSize, e = -1 == this.heightSize ? a.getHeight_0() : this.heightSize, d = new GT143(a, this.xPos, this.yPos, d, e, this.thickness, this.colorBorder, this.colorBackground, this.alpha); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT169); GT1650.prototype.assertExp_2(b, "Descriptor is no DRectWithBorder"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), this.thicknessSet && (a.thickness = this.thickness), this.colorBorderSet && (a.colorBorder = this.colorBorder), this.colorBackgroundSet && (a.colorBackground = this.colorBackground), this.alphaSet && (a.alpha = this.alpha)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT169", [GT1272] ); GT169.prototype.set_0 = function () { return new GT169(); }; var GT891 = GT765.extend( { initialConstructor_0: function () { this.timings = this.winVisualTable = null; GT765.prototype.initialConstructor_0.call(this); this.winVisualTable = new GT1511(); this.timings = new GT1511(); }, put_3: function (a, b, d) { this.winVisualTable.put_3(a, b, d); return this; }, getWinVisualTable_0: function () { return this.winVisualTable; }, getTimings_2: function (a, b) { var d = this.timings.get_2(a, b); null == d && (d = [2e3, 1e3, 1e4, 1e3, 1500, -1]); this.timings.put_3(a, b, d); return d; }, timeForFadingIn_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_FADEIN_TIME] = d; return this; }, timeForFadingOut_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_FADEOUT_TIME] = d; return this; }, timeForFullyVisible_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_VISIBLE_TIME] = d; return this; }, timeForFullyVisibleInactivePlayer_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_VISIBLE_TIME_WATCHER] = d; return this; }, timeWaitingUntilStart_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_WAIT_TIME] = d; return this; }, timeFadeInterval_3: function (a, b, d) { this.getTimings_2(a, b)[GT891.prototype.IDX_FADE_INTERVAL] = d; return this; }, load_1: function (a) { for (var b = JSUTIL.MathUtil.castToChar(0); 128 > b; b++) if (this.winVisualTable.hasSymbolKey_1(b)) for (var d = this.winVisualTable.getMaxNumber_1(b), e = 0; e < d; e++) { var f = this.winVisualTable.get_2(b, e); null != f && f.load_1(a); } }, create_7: function (a, b, d, e, f, g, k) { var m = this.winVisualTable.get_2(b.symbol, b.num); if (null == m) return null; a = m.create_2(a, k); b = this.getTimings_2(b.symbol, b.num); m = b[GT891.prototype.IDX_VISIBLE_TIME]; f || -1 == b[GT891.prototype.IDX_VISIBLE_TIME_WATCHER] || (m = b[GT891.prototype.IDX_VISIBLE_TIME_WATCHER]); return null == d ? new GT940(k.getTimer_0(), b[GT891.prototype.IDX_FADEIN_TIME], b[GT891.prototype.IDX_FADEOUT_TIME], m, b[GT891.prototype.IDX_WAIT_TIME], b[GT891.prototype.IDX_FADE_INTERVAL], e, a, g) : new GT940(k.getTimer_0(), e, a, d, k.getSoundPlayer_0(), b[GT891.prototype.IDX_FADEIN_TIME], b[GT891.prototype.IDX_FADEOUT_TIME], m, b[GT891.prototype.IDX_WAIT_TIME], b[GT891.prototype.IDX_FADE_INTERVAL], g); }, }, "GT891", [] ); GT891.prototype.set_0 = function () { return new GT891(); }; GT891.prototype.IDX_FADEIN_TIME = 0; GT891.prototype.IDX_FADEOUT_TIME = 1; GT891.prototype.IDX_VISIBLE_TIME = 2; GT891.prototype.IDX_WAIT_TIME = 3; GT891.prototype.IDX_FADE_INTERVAL = 4; GT891.prototype.IDX_VISIBLE_TIME_WATCHER = 5; var GT776 = GT765.extend( { initialConstructor_0: function () { this.backgroundEnd = this.backgroundLoopStart = this.backgroundsound = this.dynamicBackgroundSoundVolumeTable = null; this.reducedFadeOut = this.reducedFadeIn = this.reducedVolumeDuringCollect = this.reducedVolume = this.freeGamesShowBannerDuration = 0; this.freegamesretriggersound = this.freegamesendsoundlong = this.freegamesendsound = this.freegamesstartsound = null; GT765.prototype.initialConstructor_0.call(this); this.backgroundsound = new java_util_JavaScriptVector(); this.backgroundLoopStart = new java_util_JavaScriptVector(); this.backgroundEnd = new java_util_JavaScriptVector(); this.freeGamesShowBannerDuration = 3e3; this.reducedVolume = 30; this.reducedVolumeDuringCollect = -1; this.reducedFadeOut = this.reducedFadeIn = 0; this.dynamicBackgroundSoundVolumeTable = null; }, backgroundSound_4: function (a, b, d, e) { this.backgroundsound.size_0() <= a && (this.backgroundsound.setSize_1(a + 1), this.backgroundLoopStart.setSize_1(a + 1), this.backgroundEnd.setSize_1(a + 1)); null != b ? (this.backgroundsound.set_2(a, b), this.backgroundLoopStart.set_2(a, new Double(d)), this.backgroundEnd.set_2(a, new Double(e))) : (this.backgroundsound.set_2(a, null), this.backgroundLoopStart.set_2(a, null), this.backgroundEnd.set_2(a, null)); return this; }, backgroundSound_3: function (a, b, d) { return this.backgroundSound_4(0, a, b, d); }, backgroundReducedVolume_1: function (a) { this.reducedVolume = a; return this; }, backgroundReducedVolumeDuringCollect_1: function (a) { this.reducedVolumeDuringCollect = a; return this; }, backgroundReducedFadeInTime_1: function (a) { this.reducedFadeIn = a; return this; }, backgroundReducedFadeOutTime_1: function (a) { this.reducedFadeOut = a; return this; }, addFileSpecificBackgroundReducedVolume_2: function (a, b) { null == this.dynamicBackgroundSoundVolumeTable && (this.dynamicBackgroundSoundVolumeTable = new java_util_JavaScriptHashtable()); this.removeFileSpecificBackgroundReducedVolume_1(a); this.dynamicBackgroundSoundVolumeTable.put_2(a, new Integer(b)); return this; }, removeFileSpecificBackgroundReducedVolume_1: function (a) { if (null == this.dynamicBackgroundSoundVolumeTable || 0 == this.dynamicBackgroundSoundVolumeTable.size_0()) return this; this.dynamicBackgroundSoundVolumeTable.containsKey_1(a) && this.dynamicBackgroundSoundVolumeTable.remove_1(a); return this; }, removeAllFileSpecificBackgroundReducedVolume_0: function () { if (null == this.dynamicBackgroundSoundVolumeTable || 0 == this.dynamicBackgroundSoundVolumeTable.size_0()) return this; this.dynamicBackgroundSoundVolumeTable.clear_0(); return this; }, freeGamesStartSound_1: function (a) { this.freegamesstartsound = a; return this; }, freeGamesEndSound_1: function (a) { this.freegamesendsound = a; return this; }, freeGamesEndSoundLong_1: function (a) { this.freegamesendsoundlong = a; return this; }, freeGamesRetriggerSound_1: function (a) { this.freegamesretriggersound = a; return this; }, freeGamesBannerPresentationDuration_1: function (a) { this.freeGamesShowBannerDuration = a; return this; }, load_1: function (a) { for (var b = 0; b < this.backgroundsound.size_0(); b++) null != this.backgroundsound.get_1(b) && a.getResourceManager_0().startLoadSound_1(this.backgroundsound.get_1(b)); null != this.freegamesstartsound && a.getResourceManager_0().startLoadSound_1(this.freegamesstartsound); null != this.freegamesendsound && a.getResourceManager_0().startLoadSound_1(this.freegamesendsound); null != this.freegamesendsoundlong && a.getResourceManager_0().startLoadSound_1(this.freegamesendsoundlong); null != this.freegamesretriggersound && a.getResourceManager_0().startLoadSound_1(this.freegamesretriggersound); }, create_1: function (a) { var b = new GT1411(a.getSoundPlayer_0(), a.getTimer_0()); a = a.getResourceManager_0(); for (var d = 0; d < this.backgroundsound.size_0(); d++) { var e = this.backgroundsound.get_1(d); if (null != e) { var f = this.backgroundLoopStart.get_1(d).doubleValue_0(), g = this.backgroundEnd.get_1(d).doubleValue_0(); b.setBackgroundSound_4(d, a.getSound_1(e), f, g); } } null != this.freegamesstartsound && b.setFreeGamesStartSound_1(a.getSound_1(this.freegamesstartsound)); null != this.freegamesendsound && b.setFreeGamesEndSound_1(a.getSound_1(this.freegamesendsound)); null != this.freegamesendsoundlong && b.setFreeGamesEndSoundLong_1(a.getSound_1(this.freegamesendsoundlong)); null != this.freegamesretriggersound && b.setFreeGamesRetriggerSound_1(a.getSound_1(this.freegamesretriggersound)); b.setFreeGamesBannerPresentationDuration_1(this.freeGamesShowBannerDuration); b.setBackgroundReducedVolume_1(this.reducedVolume); b.setBackgroundReducedVolumeDuringCollect_1(this.reducedVolumeDuringCollect); b.setBackgroundReducedFadingTimes_2(this.reducedFadeIn, this.reducedFadeOut); if (null != this.dynamicBackgroundSoundVolumeTable && 0 < this.dynamicBackgroundSoundVolumeTable.size_0()) for (d = this.dynamicBackgroundSoundVolumeTable.keys_0(); d.hasMoreElements_0(); ) (e = d.nextElement_0()), (f = this.dynamicBackgroundSoundVolumeTable.get_1(e)), (f = null == f ? -1 : f.intValue_0()), -1 < f && a.isResourceInCache_1(e) && b.addDynamicBackgroundSoundVolume_2(a.getSound_1(e), f); return b; }, }, "GT776", [] ); GT776.prototype.set_0 = function () { return new GT776(); }; var GT837 = GT765.extend( { initialConstructor_0: function () { this.melodies = null; this.useReducedVolume = this.startSilently = !1; this.reducedVolumePercentage = 0; GT765.prototype.initialConstructor_0.call(this); this.melodies = new java_util_JavaScriptVector(); this.startSilently = !1; this.reducedVolumePercentage = 100; }, silent_1: function (a) { this.startSilently = a; return this; }, reducedVolume_1: function (a) { return this.reducedVolume_2(a, !1); }, reducedVolume_2: function (a, b) { this.reducedVolumePercentage = a; this.useReducedVolume = b; return this; }, clearMelodies_0: function () { this.melodies.clear_0(); return this; }, removeMelodyWith_1: function (a) { for (var b = 0; b < this.melodies.size_0(); ++b) if (this.melodies.get_1(b).identifier == a) { this.melodies.removeElementAt_1(b); break; } return this; }, melody_7: function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(-1 != a, "Given identifier in melody(int, String, double, double, double, int, int) mustn't be -1!"); if (-1 == a) return this; this.removeMelodyWith_1(a); this.melodies.add_1(new GT985(b, d, e, f, g, k, a)); return this; }, melody_6: function (a, b, d, e, f, g) { return this.melody_7(a, b, d, e, f, g, 0); }, melody_5: function (a, b, d, e, f) { return this.melody_6(a, b, d, e, f, 100); }, melody_4: function (a, b, d, e) { return this.melody_5(a, b, d, e, d); }, melody_2: function (a, b) { return this.melody_4(a, b, 0, 0); }, load_1: function (a) { for (var b = 0; b < this.melodies.size_0(); ++b) if (null != this.melodies.elementAt_1(b) && instanceOf(this.melodies.elementAt_1(b), GT985)) { var d = this.melodies.elementAt_1(b); a.startLoadSound_1(d.filePath); } }, create_1: function (a) { for (var b = new GT1149(a), d = 0; d < this.melodies.size_0(); ++d) if (null != this.melodies.elementAt_1(d) && instanceOf(this.melodies.elementAt_1(d), GT985)) { var e = this.melodies.elementAt_1(d); b.setMelody_7(e.identifier, a.getResourceManager_0().getSound_1(e.filePath), e.startPosition, e.endPosition, e.restartPosition, e.volumePercentage, e.fadeOutTime); } b.setSilent_1(this.startSilently); b.setReducedVolume_2(this.reducedVolumePercentage, this.useReducedVolume); return b; }, }, "GT837", [] ), GT985 = Class.extend( { initialConstructor_0: function () { this.filePath = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.restartPosition = this.endPosition = this.startPosition = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.filePath = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.restartPosition = this.endPosition = this.startPosition = 0; this.filePath = a; this.startPosition = b; this.endPosition = d; this.restartPosition = e; this.volumePercentage = f; this.fadeOutTime = g; this.identifier = k; }, }, "GT985", [] ); GT837.prototype.set_0 = function () { return new GT837(); }; var GT941 = GT765.extend( { initialConstructor_0: function () { this.reeldist = this.symbolheight = this.symbolwidth = this.reelrows = this.reelcolumns = 0; this.columPosY = this.columPosX = null; GT765.prototype.initialConstructor_0.call(this); }, columns_1: function (a) { this.reelcolumns = a; return this; }, rows_1: function (a) { this.reelrows = a; return this; }, rowsVisible_1: function (a) { this.reelrows = a; return this; }, symbolWidth_1: function (a) { this.symbolwidth = a; return this; }, symbolHeight_1: function (a) { this.symbolheight = a; return this; }, reelDist_1: function (a) { this.reeldist = a; return this; }, individualColumnPositions_2: function (a, b) { if (null == a || 0 == a.length) this.columPosX = null; else { this.columPosX = [].createArray(a.length).init(0); for (var d = 0; d < a.length; d++) this.columPosX[d] = a[d]; } if (null == b || 0 == b.length) this.columPosY = null; else for (this.columPosY = [].createArray(b.length).init(0), d = 0; d < b.length; d++) this.columPosY[d] = b[d]; return this; }, create_0: function () { if (null == this.columPosX && null == this.columPosY) return new GT1545(this.reelcolumns, this.reelrows, this.symbolwidth, this.symbolheight, this.reeldist); if (null == this.columPosX) { var a = this.symbolwidth + this.reeldist, b = this.reelcolumns; null != this.columPosY && (b = this.columPosY.length); for (var d = [].createArray(b).init(0), e = 0; e < d.length; e++) d[e] = a * e; return new GT1545(b, this.reelrows, this.symbolwidth, this.symbolheight, d, this.columPosY); } if (null == this.columPosY) { a = [].createArray(this.columPosX.length).init(0); for (e = 0; e < a.length; e++) a[e] = 0; return new GT1545(this.columPosX.length, this.reelrows, this.symbolwidth, this.symbolheight, this.columPosX, a); } return new GT1545(this.columPosX.length, this.reelrows, this.symbolwidth, this.symbolheight, this.columPosX, this.columPosY); }, toString: function () { return "[" + this.reelcolumns + "x" + this.reelrows + " " + this.symbolwidth + "x" + this.symbolheight + " " + this.reeldist + "]"; }, }, "GT941", [] ); GT941.prototype.set_0 = function () { return new GT941(); }; var GT236 = GT418.extend( { initialConstructor_0: function () { this.s = null; this.loopRestart = this.loopEnd = this.loopStart = this.reelSoundFadeinMillis = this.reelSoundFadeoutMillis = 0; GT418.prototype.initialConstructor_0.call(this); this.reelSoundFadeinMillis = this.reelSoundFadeoutMillis = 500; }, sound_1: function (a) { this.sound_4(a, 0, 0, 0); return this; }, fadeoutDuration_1: function (a) { this.reelSoundFadeoutMillis = a; return this; }, fadeinDuration_1: function (a) { this.reelSoundFadeinMillis = a; return this; }, sound_4: function (a, b, d, e) { this.s = a; this.loopStart = b; this.loopEnd = d; this.loopRestart = e; return this; }, create_1: function (a) { var b = new GT153(a.getSoundPlayer_0(), a.getTimer_0()); null != this.s && b.setSound_4(this.s.create_1(a), this.loopStart, this.loopEnd, this.loopRestart); b.setFadeoutDuration_1(this.reelSoundFadeoutMillis); b.setFadeinDuration_1(this.reelSoundFadeinMillis); return b; }, load_1: function (a) { null != this.s && this.s.load_1(a); }, }, "GT236", [] ); GT236.prototype.set_0 = function () { return new GT236(); }; var GT214 = GT418.extend( { initialConstructor_0: function () { this.sounds = null; this.reelSoundFadeoutMillis = 0; this.loopPoints = null; this.selectRandom = !1; GT418.prototype.initialConstructor_0.call(this); this.loopPoints = new java_util_JavaScriptVector(); this.sounds = new java_util_JavaScriptVector(); }, addSound_1: function (a) { this.sounds.add_1(a); this.loopPoints.add_1(null); return this; }, fadeoutDuration_1: function (a) { this.reelSoundFadeoutMillis = a; return this; }, selectingRandom_1: function (a) { this.selectRandom = a; return this; }, addSound_4: function (a, b, d, e) { this.sounds.add_1(a); a = [].createArray(3).init(0); a[0] = b; a[1] = d; a[2] = e; this.loopPoints.add_1(a); return this; }, create_1: function (a) { var b = new GT148(a.getSoundPlayer_0()); b.setFadeoutDuration_1(this.reelSoundFadeoutMillis); b.setSelectingRandom_1(this.selectRandom); for (var d = 0; d < this.sounds.size_0(); d++) { var e = this.sounds.get_1(d), f = this.loopPoints.get_1(d); null == f ? b.addSound_1(e.create_1(a)) : b.addSound_4(e.create_1(a), f[0], f[1], f[2]); } return b; }, load_1: function (a) { for (var b = 0; b < this.sounds.size_0(); b++) this.sounds.get_1(b).load_1(a); }, }, "GT214", [] ); GT214.prototype.set_0 = function () { return new GT214(); }; var GT215 = GT418.extend( { initialConstructor_0: function () { this.s = null; this.reelSoundFadeoutMillis = 0; this.loopPoints = null; GT418.prototype.initialConstructor_0.call(this); this.loopPoints = new java_util_JavaScriptVector(); }, sound_1: function (a) { this.s = a; return this; }, fadeoutDuration_1: function (a) { this.reelSoundFadeoutMillis = a; return this; }, addLoopPoint_3: function (a, b, d) { var e = [].createArray(3).init(0); e[0] = a; e[1] = b; e[2] = d; this.loopPoints.add_1(e); return this; }, create_1: function (a) { var b = new GT149(a.getSoundPlayer_0()); null != this.s && b.setSound_1(this.s.create_1(a)); b.setFadeoutDuration_1(this.reelSoundFadeoutMillis); for (a = 0; a < this.loopPoints.size_0(); a++) { var d = this.loopPoints.get_1(a); b.addLoopPoint_3(d[0], d[1], d[2]); } return b; }, load_1: function (a) { null != this.s && this.s.load_1(a); }, }, "GT215", [] ); GT215.prototype.set_0 = function () { return new GT215(); }; var GT670 = GT765.extend( { initialConstructor_0: function () { this.removel = this.activel = this.highlightl = this.inactivel = null; GT765.prototype.initialConstructor_0.call(this); this.inactivel = new java_util_JavaScriptVector(); this.highlightl = new java_util_JavaScriptVector(); this.activel = new java_util_JavaScriptVector(); this.removel = new java_util_JavaScriptVector(); }, inactive_1: function (a) { a = new Integer(a); if (this.inactivel.contains_1(a)) return this; this.inactivel.add_1(a); this.highlightl.removeElement_1(a); this.activel.removeElement_1(a); this.removel.removeElement_1(a); return this; }, getInactiveList_0: function () { return this.inactivel; }, highlighted_1: function (a) { a = new Integer(a); if (this.highlightl.contains_1(a)) return this; this.highlightl.add_1(a); this.inactivel.removeElement_1(a); this.activel.removeElement_1(a); this.removel.removeElement_1(a); return this; }, getHighlightedList_0: function () { return this.highlightl; }, active_1: function (a) { a = new Integer(a); if (this.activel.contains_1(a)) return this; this.activel.add_1(a); this.inactivel.removeElement_1(a); this.highlightl.removeElement_1(a); this.removel.removeElement_1(a); return this; }, getActiveList_0: function () { return this.activel; }, remove_1: function (a) { a = new Integer(a); if (this.removel.contains_1(a)) return this; this.removel.add_1(a); this.activel.removeElement_1(a); this.inactivel.removeElement_1(a); this.highlightl.removeElement_1(a); return this; }, getRemoveList_0: function () { return this.removel; }, create_1: function (a) { for (var b = [].createArray(this.inactivel.size_0()).init(0), d = 0; d < b.length; d++) b[d] = this.inactivel.get_1(d).intValue_0(); for (var e = [].createArray(this.highlightl.size_0()).init(0), d = 0; d < e.length; d++) e[d] = this.highlightl.get_1(d).intValue_0(); for (var f = [].createArray(this.activel.size_0()).init(0), d = 0; d < f.length; d++) f[d] = this.activel.get_1(d).intValue_0(); return new GT725(b, e, f, a); }, }, "GT670", [] ); GT670.prototype.set_0 = function () { return new GT670(); }; var GT892 = GT765.extend( { initialConstructor_0: function () { this.loopedSounds = this.sounds = null; GT765.prototype.initialConstructor_0.call(this); this.sounds = new java_util_JavaScriptVector(); this.loopedSounds = new java_util_JavaScriptVector(); }, clearSounds_0: function () { this.sounds.clear_0(); return this; }, clearLoopedSounds_0: function () { this.loopedSounds.clear_0(); return this; }, removeSoundWith_1: function (a) { for (var b = 0; b < this.sounds.size_0(); ++b) { var d = this.sounds.get_1(b); if (d.identifier == a) { this.sounds.removeElementAt_1(b); break; } } for (b = 0; b < this.loopedSounds.size_0(); ++b) if (((d = this.loopedSounds.get_1(b)), d.identifier == a)) { this.loopedSounds.removeElementAt_1(b); break; } return this; }, sound_6: function (a, b, d, e, f, g) { GT1650.prototype.assertExp_2(-1 != a, "Given identifier in sound(int, String, double, double, int, int) mustn't be -1!"); if (-1 == a) return this; this.removeSoundWith_1(a); this.sounds.add_1(new GT1038(b, d, e, d, f, g, a)); return this; }, sound_5: function (a, b, d, e, f) { return this.sound_6(a, b, d, e, f, 0); }, sound_4: function (a, b, d, e) { return this.sound_5(a, b, d, e, 100); }, sound_2: function (a, b) { return this.sound_4(a, b, 0, 0); }, loopedSound_7: function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(-1 != a, "Given identifier in loopedSound(int, String, double, double, double, int, int) mustn't be -1!"); if (-1 == a) return this; this.removeSoundWith_1(a); this.loopedSounds.add_1(new GT1038(b, d, e, f, g, k, a)); return this; }, loopedSound_6: function (a, b, d, e, f, g) { return this.loopedSound_7(a, b, d, e, f, g, 0); }, loopedSound_5: function (a, b, d, e, f) { return this.loopedSound_6(a, b, d, e, f, 100); }, loopedSound_4: function (a, b, d, e) { return this.loopedSound_5(a, b, d, e, d); }, loopedSound_2: function (a, b) { return this.loopedSound_4(a, b, 0, 0); }, load_1: function (a) { for (var b = 0; b < this.sounds.size_0(); ++b) if (null != this.sounds.elementAt_1(b) && instanceOf(this.sounds.elementAt_1(b), GT1038)) { var d = this.sounds.elementAt_1(b); a.startLoadSound_1(d.filePath); } for (b = 0; b < this.loopedSounds.size_0(); ++b) null != this.loopedSounds.elementAt_1(b) && instanceOf(this.loopedSounds.elementAt_1(b), GT1038) && ((d = this.loopedSounds.elementAt_1(b)), a.startLoadSound_1(d.filePath)); }, create_1: function (a) { for (var b = new GT1205(a.getSoundPlayer_0()), d = 0; d < this.sounds.size_0(); ++d) if (null != this.sounds.elementAt_1(d) && instanceOf(this.sounds.elementAt_1(d), GT1038)) { var e = this.sounds.elementAt_1(d); b.setSound_7(e.identifier, a.getResourceManager_0().getSound_1(e.filePath), null, e.startPosition, e.endPosition, e.volumePercentage, e.fadeOutTime); } for (d = 0; d < this.loopedSounds.size_0(); ++d) null != this.loopedSounds.elementAt_1(d) && instanceOf(this.loopedSounds.elementAt_1(d), GT1038) && ((e = this.loopedSounds.elementAt_1(d)), b.setLoopedSound_7(e.identifier, a.getResourceManager_0().getSound_1(e.filePath), e.startPosition, e.endPosition, e.restartPosition, e.volumePercentage, e.fadeOutTime)); return b; }, }, "GT892", [] ), GT1038 = Class.extend( { initialConstructor_0: function () { this.filePath = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.restartPosition = this.endPosition = this.startPosition = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.filePath = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.restartPosition = this.endPosition = this.startPosition = 0; this.filePath = a; this.startPosition = b; this.endPosition = d; this.restartPosition = e; this.volumePercentage = f; this.fadeOutTime = g; this.identifier = k; }, }, "GT1038", [] ); GT892.prototype.set_0 = function () { return new GT892(); }; var GT671 = GT765.extend( { initialConstructor_0: function () { this.globalLocation = this.animationReplacements = this.location = this.animationOffsets = this.animationNames = this.jsons = null; GT765.prototype.initialConstructor_0.call(this); this.jsons = [].createArray(128); this.animationNames = [].createArray(128); this.animationOffsets = [].createArray(128); this.location = [].createArray(128); this.animationReplacements = [].createArray(128); this.globalLocation = new GT1553(0, 0, -1, -1); }, load_1: function (a) { for (var b = this.jsons.length, d = 0; d < b; d++) if (null != this.jsons[d]) for (var e = 0; e < this.jsons[d].size_0(); e++) null != this.jsons[d].elementAt_1(e) && a.startLoadJSONObject_1(this.jsons[d].get_1(e)); }, animation_4: function (a, b, d, e) { return this.animation_6(a, b, d, e, 0, 0); }, animation_6: function (a, b, d, e, f, g) { var k = this.jsons[a], m = this.animationNames[a], n = this.animationOffsets[a]; null == k && ((k = new java_util_JavaScriptVector()), (m = new java_util_JavaScriptVector()), (n = new java_util_JavaScriptVector()), (this.jsons[a] = k), (this.animationNames[a] = m), (this.animationOffsets[a] = n)); k.size_0() <= b && (k.setSize_1(b + 1), m.setSize_1(b + 1), n.setSize_1(b + 1)); k.setElementAt_2(d, b); m.setElementAt_2(e, b); n.setElementAt_2(new GT1633(f, g), b); return this; }, addImageToContainerReplacementForSymbolAndCount_3: function (a, b, d) { var e = this.animationReplacements[b]; null == e && ((e = new java_util_JavaScriptVector()), (this.animationReplacements[b] = e)); e.size_0() <= d && e.setSize_1(d + 1); e = this.animationReplacements[b].get_1(d); null == e ? ((e = new java_util_JavaScriptVector()), e.addElement_1(a), this.animationReplacements[b].setElementAt_2(e, d)) : e.contains_1(a) || e.addElement_1(a); return this; }, size_4: function (a, b, d, e) { var f = this.location[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.location[a] = f)); f.size_0() <= b && f.setSize_1(b + 1); a = f.elementAt_1(b); null != a ? a.setSize_2(d, e) : ((a = new GT1553(0, 0, d, e)), f.setElementAt_2(a, b)); return this; }, offset_4: function (a, b, d, e) { var f = this.location[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.location[a] = f)); f.size_0() <= b && f.setSize_1(b + 1); a = f.elementAt_1(b); null != a ? a.setLocation_2(d, e) : ((a = new GT1553(d, e, -1, -1)), f.setElementAt_2(a, b)); return this; }, globalOffset_2: function (a, b) { this.globalLocation.setLocation_2(a, b); return this; }, globalSize_2: function (a, b) { this.globalLocation.setSize_2(a, b); return this; }, create_0: function () { for (var a = [].createArray(this.jsons.length), b = 0; b < this.jsons.length; b++) { var d = this.jsons[b], e = this.animationNames[b], f = this.animationOffsets[b], g = this.location[b], k = this.animationReplacements[b]; if (null != d) { a[b] = new java_util_JavaScriptVector(); a[b].setSize_1(d.size_0()); for (var m = 0; m < d.size_0(); m++) if (null != d.get_1(m)) { var n = null, n = null != g && m < g.size_0() && null != g.get_1(m) ? g.get_1(m) : this.globalLocation, p = null; null != k && m < k.size_0() && null != k.get_1(m) && (p = k.get_1(m)); a[b].setElementAt_2(new GT234(d.get_1(m), e.get_1(m), n, f.get_1(m).x, f.get_1(m).y, p), m); } } } return a; }, }, "GT671", [] ); GT671.prototype.set_0 = function () { return new GT671(); }; var GT419 = GT765.extend( { initialConstructor_0: function () { this.images = null; GT765.prototype.initialConstructor_0.call(this); this.images = [].createArray(128); }, image_2: function (a, b) { return this.image_3(a, 0, b); }, image_3: function (a, b, d) { return this.image_4(a, b, d, 1); }, image_4: function (a, b, d, e) { return this.imageAdvanced_3(a, b, GT1390.prototype.set_0().file_1(d).tiling_2(1, e)); }, imageAdvanced_3: function (a, b, d) { var e = this.images[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.images[a] = e)); e.size_0() <= b && e.setSize_1(b + 1); e.setElementAt_2(d, b); return this; }, load_1: function (a) { for (var b = this.images.length, d = 0; d < b; d++) if (null != this.images[d]) for (var e = 0; e < this.images[d].size_0(); e++) { var f = this.images[d].elementAt_1(e); null != f && f.load_1(a); } }, create_1: function (a) { for (var b = this.images.length, d = [].createArray(b), e = 0; e < b; e++) if (null != this.images[e]) { d[e] = new java_util_JavaScriptVector(); for (var f = 0; f < this.images[e].size_0(); f++) { var g = this.images[e].elementAt_1(f), k = null; null != g && (k = g.create_1(a)); d[e].addElement_1(k); } } return d; }, }, "GT419", [] ); GT419.prototype.set_0 = function () { return new GT419(); }; var GT893 = GT765.extend( { initialConstructor_0: function () { this.images = this.symbols = null; GT765.prototype.initialConstructor_0.call(this); this.images = new java_util_JavaScriptVector(); this.symbols = new java_util_JavaScriptVector(); }, image_2: function (a, b) { return this.imageAdvanced_2(a, GT1390.prototype.set_0().file_1(b)); }, image_3: function (a, b, d) { return this.image_2(a, b); }, imageAdvanced_2: function (a, b) { this.symbols.addElement_1(new Integer(a)); this.images.addElement_1(b); return this; }, load_1: function (a) { for (var b = this.images.size_0(), d = 0; d < b; d++) this.images.elementAt_1(d).load_1(a); }, create_1: function (a) { for (var b = [].createArray(128), d = this.images.size_0(), e = 0; e < d; e++) b[this.symbols.elementAt_1(e).intValue_0()] = this.images.elementAt_1(e).create_1(a); return b; }, }, "GT893", [] ); GT893.prototype.set_0 = function () { return new GT893(); }; var GT894 = GT765.extend( { initialConstructor_0: function () { this.imageFileNames = this.addedAnimationsForRepetitions = this.trackMergingAlphasForRepetitions = this.timeScalesForRepetitions = this.contentScalesForRepetitions = this.contentOffsetsForRepetitions = this.flipsForRepetitions = this.addedAnimations = this.trackMergingAlphas = this.timeScales = this.contentScales = this.contentOffsets = this.skinNames = this.spineObjectNames = this.jsonObjectFileNames = this.flips = this.sizes = this.offsets = this.textureAtlasDataPairs = this.trackMergingAlphasGlobal = this.timeScaleGlobal = this.contentScaleGlobal = this.contentOffsetGlobal = this.spineSkinNameGlobal = this.spineObjectNameGlobal = this.spineJsonFilenameGlobal = this.flipGlobal = this.sizeGlobal = this.offsetGlobal = this.textureAtlasDataPairGlobal = null; GT765.prototype.initialConstructor_0.call(this); this.offsetGlobal = new GT1370(0, 0); this.sizeGlobal = new GT1370(-1, -1); this.contentOffsetGlobal = new GT1370(0.5, 0.5); this.contentScaleGlobal = new GT1370(1, 1); this.timeScaleGlobal = new GT1370(1, 0); this.flipGlobal = new GT1370(0, 0); this.textureAtlasDataPairGlobal = this.spineJsonFilenameGlobal = null; this.spineSkinNameGlobal = this.spineObjectNameGlobal = ""; this.trackMergingAlphasGlobal = new java_util_JavaScriptVector(); this.offsets = [].createArray(128); this.sizes = [].createArray(128); this.flips = [].createArray(128); this.jsonObjectFileNames = [].createArray(128); this.spineObjectNames = [].createArray(128); this.skinNames = [].createArray(128); this.textureAtlasDataPairs = [].createArray(128); this.addedAnimations = [].createArray(128); this.contentOffsets = [].createArray(128); this.contentScales = [].createArray(128); this.timeScales = [].createArray(128); this.trackMergingAlphas = [].createArray(128); this.imageFileNames = new java_util_JavaScriptVector(); this.flipsForRepetitions = [].createArray(128); this.addedAnimationsForRepetitions = [].createArray(128); this.contentOffsetsForRepetitions = [].createArray(128); this.contentScalesForRepetitions = [].createArray(128); this.timeScalesForRepetitions = [].createArray(128); this.trackMergingAlphasForRepetitions = [].createArray(128); }, requiredImage_1: function (a) { this.imageFileNames.contains_1(a) || this.imageFileNames.addElement_1(a); return this; }, globalJson_1: function (a) { this.spineJsonFilenameGlobal = a; return this; }, globalTextureAtlas_2: function (a, b) { this.textureAtlasDataPairGlobal = new GT176(a, b); return this; }, globalOffset_2: function (a, b) { this.offsetGlobal.set_2(a, b); return this; }, globalSize_2: function (a, b) { this.sizeGlobal.set_2(a, b); return this; }, globalTimeScale_1: function (a) { this.timeScaleGlobal.set_2(a, 0); return this; }, globalFlip_2: function (a, b) { this.flipGlobal.set_2(a ? 1 : 0, b ? 1 : 0); return this; }, globalTrackMergingAlpha_2: function (a, b) { for (var d = null, e = 0; e < this.trackMergingAlphasGlobal.size_0(); ++e) if (null != this.trackMergingAlphasGlobal.elementAt_1(e) && this.trackMergingAlphasGlobal.elementAt_1(e).x == a) { d = this.trackMergingAlphasGlobal.elementAt_1(e); d.y = b; break; } null == d && this.trackMergingAlphasGlobal.addElement_1(new GT1370(a, b)); return this; }, globalContentScale_2: function (a, b) { this.contentScaleGlobal.set_2(a, b); return this; }, globalContentOffset_2: function (a, b) { this.contentOffsetGlobal.set_2(a, b); return this; }, globalJSONSpineObjectName_1: function (a) { this.spineObjectNameGlobal = a; return this; }, globalSkinName_1: function (a) { this.spineSkinNameGlobal = a; return this; }, spine_5: function (a, b, d, e, f) { return this.spine_6(a, 0, b, d, e, f); }, spine_6: function (a, b, d, e, f, g) { var k = this.getSymbolVector_6(this.addedAnimations, a, b, d, !1, !0); k.addElement_1(new GT95(d, e, f, 0, g)); this.addedAnimations[a].setElementAt_2(k, b); return this; }, spineForRepetitions_5: function (a, b, d, e, f) { return this.spineForRepetitions_6(a, 0, b, d, e, f); }, spineForRepetitions_6: function (a, b, d, e, f, g) { var k = this.getSymbolVector_6(this.addedAnimationsForRepetitions, a, b, d, !1, !0); k.addElement_1(new GT95(d, e, f, 0, g)); this.addedAnimationsForRepetitions[a].setElementAt_2(k, b); return this; }, JSONSpineObjectName_2: function (a, b) { return this.JSONSpineObjectName_3(a, 0, b); }, JSONSpineObjectName_3: function (a, b, d) { var e = this.spineObjectNames[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.spineObjectNames[a] = e)); this.checkSize_2(e, b); e.setElementAt_2(d, b); return this; }, skinName_3: function (a, b, d) { var e = this.skinNames[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.skinNames[a] = e)); this.checkSize_2(e, b); e.setElementAt_2(d, b); return this; }, json_2: function (a, b) { return this.json_3(a, 0, b); }, json_3: function (a, b, d) { var e = this.jsonObjectFileNames[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.jsonObjectFileNames[a] = e)); this.checkSize_2(e, b); e.setElementAt_2(d, b); return this; }, textureAtlas_3: function (a, b, d) { return this.textureAtlas_4(a, 0, b, d); }, textureAtlas_4: function (a, b, d, e) { var f = this.textureAtlasDataPairs[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.textureAtlasDataPairs[a] = f)); this.checkSize_2(f, b); a = f.elementAt_1(b); null != a ? a.set_2(d, e) : ((a = new GT176(d, e)), f.setElementAt_2(a, b)); return this; }, addAnimation_6: function (a, b, d, e, f, g) { return this.addAnimation_7(a, 0, b, d, e, f, g); }, addAnimation_7: function (a, b, d, e, f, g, k) { this.getSymbolVector_6(this.addedAnimations, a, b, d, !0, !1).addElement_1(new GT95(d, e, f, g, k)); return this; }, addAnimationForRepetitions_6: function (a, b, d, e, f, g) { return this.addAnimationForRepetitions_7(a, 0, b, d, e, f, g); }, addAnimationForRepetitions_7: function (a, b, d, e, f, g, k) { this.getSymbolVector_6(this.addedAnimationsForRepetitions, a, b, d, !0, !1).addElement_1(new GT95(d, e, f, g, k)); return this; }, addEmptyAnimation_4: function (a, b, d, e) { return this.addEmptyAnimation_5(a, 0, b, d, e); }, addEmptyAnimation_5: function (a, b, d, e, f) { this.getSymbolVector_6(this.addedAnimations, a, b, d, !0, !1).addElement_1(new GT95(d, null, !1, f, e)); return this; }, addEmptyAnimationForRepetitions_4: function (a, b, d, e) { return this.addEmptyAnimationForRepetitions_5(a, 0, b, d, e); }, addEmptyAnimationForRepetitions_5: function (a, b, d, e, f) { this.getSymbolVector_6(this.addedAnimationsForRepetitions, a, b, d, !0, !1).addElement_1(new GT95(d, null, !1, f, e)); return this; }, contentOffset_3: function (a, b, d) { return this.contentOffset_4(a, 0, b, d); }, contentOffset_4: function (a, b, d, e) { this.contentOffset_5(this.contentOffsets, a, b, d, e); return this; }, contentOffsetForRepetitions_3: function (a, b, d) { return this.contentOffsetForRepetitions_4(a, 0, b, d); }, contentOffsetForRepetitions_4: function (a, b, d, e) { this.contentOffset_5(this.contentOffsetsForRepetitions, a, b, d, e); return this; }, contentOffset_5: function (a, b, d, e, f) { var g = a[b]; null == g && ((g = new java_util_JavaScriptVector()), (a[b] = g)); this.checkSize_2(g, d); a = g.elementAt_1(d); null != a ? a.set_2(e, f) : ((a = new GT1370(e, f)), g.setElementAt_2(a, d)); }, contentScale_3: function (a, b, d) { return this.contentScale_4(a, 0, b, d); }, contentScale_4: function (a, b, d, e) { this.contentScale_5(this.contentScales, a, b, d, e); return this; }, contentScaleForRepetitions_3: function (a, b, d) { return this.contentScaleForRepetitions_4(a, 0, b, d); }, contentScaleForRepetitions_4: function (a, b, d, e) { this.contentScale_5(this.contentScalesForRepetitions, a, b, d, e); return this; }, contentScale_5: function (a, b, d, e, f) { var g = a[b]; null == g && ((g = new java_util_JavaScriptVector()), (a[b] = g)); this.checkSize_2(g, d); a = g.elementAt_1(d); null != a ? a.set_2(e, f) : ((a = new GT1370(e, f)), g.setElementAt_2(a, d)); }, timeScale_2: function (a, b) { return this.timeScale_3(a, 0, b); }, timeScale_3: function (a, b, d) { this.timeScale_4(this.timeScales, a, b, d); return this; }, timeScaleForRepetitions_2: function (a, b) { return this.timeScaleForRepetitions_3(a, 0, b); }, timeScaleForRepetitions_3: function (a, b, d) { this.timeScale_4(this.timeScalesForRepetitions, a, b, d); return this; }, timeScale_4: function (a, b, d, e) { var f = a[b]; null == f && ((f = new java_util_JavaScriptVector()), (a[b] = f)); this.checkSize_2(f, d); a = f.elementAt_1(d); null != a ? a.set_2(e, 0) : ((a = new GT1370(e, 0)), f.setElementAt_2(a, d)); }, trackMergingAlpha_3: function (a, b, d) { return this.trackMergingAlpha_4(a, 0, b, d); }, trackMergingAlpha_4: function (a, b, d, e) { this.trackMergingAlpha_5(this.trackMergingAlphas, a, b, d, e); return this; }, trackMergingAlphaForRepetitions_3: function (a, b, d) { return this.trackMergingAlphaForRepetitions_4(a, 0, b, d); }, trackMergingAlphaForRepetitions_4: function (a, b, d, e) { this.trackMergingAlpha_5(this.trackMergingAlphasForRepetitions, a, b, d, e); return this; }, trackMergingAlpha_5: function (a, b, d, e, f) { var g = a[b]; null == g && ((g = new java_util_JavaScriptVector()), (a[b] = g)); this.checkSize_2(g, d); a = g.elementAt_1(d); null == a && ((a = new java_util_JavaScriptVector()), g.setElementAt_2(a, d)); d = null; for (g = 0; g < a.size_0(); ++g) if (null != a.elementAt_1(g) && a.elementAt_1(g).x == e) { d = a.elementAt_1(g); d.y = f; break; } null == d && a.addElement_1(new GT1370(e, f)); }, offset_4: function (a, b, d, e) { var f = this.offsets[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.offsets[a] = f)); this.checkSize_2(f, b); a = f.elementAt_1(b); null != a ? a.set_2(d, e) : ((a = new GT1370(d, e)), f.setElementAt_2(a, b)); return this; }, size_4: function (a, b, d, e) { var f = this.sizes[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.sizes[a] = f)); this.checkSize_2(f, b); a = f.elementAt_1(b); null != a ? a.set_2(d, e) : ((a = new GT1370(d, e)), f.setElementAt_2(a, b)); return this; }, flip_3: function (a, b, d) { return this.flip_4(a, 0, b, d); }, flip_4: function (a, b, d, e) { this.flip_5(this.flips, a, b, d, e); return this; }, flipForRepetitions_3: function (a, b, d) { return this.flipForRepetitions_4(a, 0, b, d); }, flipForRepetitions_4: function (a, b, d, e) { this.flip_5(this.flipsForRepetitions, a, b, d, e); return this; }, flip_5: function (a, b, d, e, f) { var g = a[b]; null == g && ((g = new java_util_JavaScriptVector()), (a[b] = g)); this.checkSize_2(g, d); a = g.elementAt_1(d); null == a && ((a = new GT1633()), g.setElementAt_2(a, d)); a.x = e ? 1 : 0; a.y = f ? 1 : 0; }, load_1: function (a) { for (var b = new java_util_JavaScriptVector(), d = 0; d < this.imageFileNames.size_0(); ++d) { var e = this.imageFileNames.elementAt_1(d); a.startLoadImage_4(e, 1, 1, !1); } for (d = 0; d < this.jsonObjectFileNames.length; ++d) { var f = this.jsonObjectFileNames[d]; if (null != f && 0 < f.size_0()) for (var g = 0; g < f.size_0(); ++g) null == f.elementAt_1(g) || b.contains_1(f.elementAt_1(g)) || b.addElement_1(f.elementAt_1(g)); } null != this.spineJsonFilenameGlobal && 0 < this.spineJsonFilenameGlobal.length_0() && !b.contains_1(this.spineJsonFilenameGlobal) && b.addElement_1(this.spineJsonFilenameGlobal); for (d = 0; d < b.size_0(); ++d) (e = b.elementAt_1(d)), null != e && 0 < e.length_0() && a.startLoadJSONObject_1(e); b.clear_0(); for (d = 0; d < this.textureAtlasDataPairs.length; ++d) if (((f = this.textureAtlasDataPairs[d]), null != f && 0 < f.size_0())) for (g = 0; g < f.size_0(); ++g) null != f.elementAt_1(g) && ((e = f.elementAt_1(g).fileName), b.contains_1(e) || b.addElement_1(e)); null != this.textureAtlasDataPairGlobal && null != this.textureAtlasDataPairGlobal.fileName && 0 < this.textureAtlasDataPairGlobal.fileName.length_0() && !b.contains_1(this.textureAtlasDataPairGlobal.fileName) && b.addElement_1(this.textureAtlasDataPairGlobal.fileName); for (d = 0; d < b.size_0(); ++d) (e = b.elementAt_1(d)), null != e && 0 < e.length_0() && a.startLoadTextDocument_1(e); b.clear_0(); }, create_1: function (a) { var b = this.create_8(a, this.addedAnimations, this.flips, this.contentOffsets, this.contentScales, this.timeScales, this.trackMergingAlphas, !1); a = this.create_8( a, this.addedAnimationsForRepetitions, this.flipsForRepetitions, this.contentOffsetsForRepetitions, this.contentScalesForRepetitions, this.timeScalesForRepetitions, this.trackMergingAlphasForRepetitions, !0 ); var d = [].createArray(2, null); d[0] = b; d[1] = a; return d; }, create_8: function (a, b, d, e, f, g, k, m) { a = b.length; m = [].createArray(a); for (var n = 0; n < a; ++n) if (null != b[n]) { m[n] = new java_util_JavaScriptVector(); var p = b[n].size_0(), q = null == this.offsets[n] ? 0 : this.offsets[n].size_0(), r = null == this.sizes[n] ? 0 : this.sizes[n].size_0(), t = null == d[n] ? 0 : d[n].size_0(), u = null == this.jsonObjectFileNames[n] ? 0 : this.jsonObjectFileNames[n].size_0(), B = null == this.textureAtlasDataPairs[n] ? 0 : this.textureAtlasDataPairs[n].size_0(), A = null == e[n] ? 0 : e[n].size_0(), C = null == f[n] ? 0 : f[n].size_0(), E = null == g[n] ? 0 : g[n].size_0(), F = null == k[n] ? 0 : k[n].size_0(), p = Math.max_2(p, q), p = Math.max_2(p, r), p = Math.max_2(p, t), p = Math.max_2(p, u), p = Math.max_2(p, B), p = Math.max_2(p, A), p = Math.max_2(p, C), p = Math.max_2(p, E), p = Math.max_2(p, F); this.checkSize_2(m[n], p); for (q = 0; q < p; ++q) if ((0 != b[n].size_0() && null != b[n].elementAt_1(0)) || !(b[n].size_0() <= q || null == b[n].elementAt_1(q))) if ( ((r = this.spineJsonFilenameGlobal), null != this.jsonObjectFileNames[n] && 0 < this.jsonObjectFileNames[n].size_0() && (this.jsonObjectFileNames[n].size_0() > q && null != this.jsonObjectFileNames[n].elementAt_1(q) ? (r = this.jsonObjectFileNames[n].elementAt_1(q)) : null != this.jsonObjectFileNames[n].elementAt_1(0) && (r = this.jsonObjectFileNames[n].elementAt_1(0))), null != r && ((t = this.textureAtlasDataPairGlobal), null != this.textureAtlasDataPairs[n] && 0 < this.textureAtlasDataPairs[n].size_0() && (this.textureAtlasDataPairs[n].size_0() > q && null != this.textureAtlasDataPairs[n].elementAt_1(q) ? (t = this.textureAtlasDataPairs[n].elementAt_1(q)) : null != this.textureAtlasDataPairs[n].elementAt_1(0) && (t = this.textureAtlasDataPairs[n].elementAt_1(0))), null != t)) ) { u = this.spineObjectNameGlobal; null != this.spineObjectNames[n] && 0 < this.spineObjectNames[n].size_0() && (this.spineObjectNames[n].size_0() > q && null != this.spineObjectNames[n].elementAt_1(q) ? (u = this.spineObjectNames[n].elementAt_1(q)) : null != this.spineObjectNames[n].elementAt_1(0) && (u = this.spineObjectNames[n].elementAt_1(0))); B = this.spineSkinNameGlobal; null != this.skinNames[n] && 0 < this.skinNames[n].size_0() && (this.skinNames[n].size_0() > q && null != this.skinNames[n].elementAt_1(q) ? (B = this.skinNames[n].elementAt_1(q)) : null != this.skinNames[n].elementAt_1(0) && (B = this.skinNames[n].elementAt_1(0))); A = this.offsetGlobal; null != this.offsets[n] && 0 < this.offsets[n].size_0() && (this.offsets[n].size_0() > q && null != this.offsets[n].elementAt_1(q) ? (A = this.offsets[n].elementAt_1(q)) : null != this.offsets[n].elementAt_1(0) && (A = this.offsets[n].elementAt_1(0))); C = this.sizeGlobal; null != this.sizes[n] && 0 < this.sizes[n].size_0() && (this.sizes[n].size_0() > q && null != this.sizes[n].elementAt_1(q) ? (C = this.sizes[n].elementAt_1(q)) : null != this.sizes[n].elementAt_1(0) && (C = this.sizes[n].elementAt_1(0))); E = 1 == this.flipGlobal.x; F = 1 == this.flipGlobal.y; null != d[n] && 0 < d[n].size_0() && (d[n].size_0() > q && null != d[n].elementAt_1(q) ? ((F = d[n].elementAt_1(q)), (E = 0 != F.x), (F = 0 != F.y)) : null != d[n].elementAt_1(0) && ((F = d[n].elementAt_1(0)), (E = 0 != F.x), (F = 0 != F.y))); var D = this.contentOffsetGlobal; null != e[n] && 0 < e[n].size_0() && (e[n].size_0() > q && null != e[n].elementAt_1(q) ? (D = e[n].elementAt_1(q)) : null != e[n].elementAt_1(0) && (D = e[n].elementAt_1(0))); var H = this.contentScaleGlobal; null != f[n] && 0 < f[n].size_0() && (f[n].size_0() > q && null != f[n].elementAt_1(q) ? (H = f[n].elementAt_1(q)) : null != f[n].elementAt_1(0) && (H = f[n].elementAt_1(0))); var I = null; null != b[n] && 0 < b[n].size_0() && (b[n].size_0() > q && null != b[n].elementAt_1(q) ? (I = b[n].elementAt_1(q)) : null != b[n].elementAt_1(0) && (I = b[n].elementAt_1(0))); var L = this.trackMergingAlphasGlobal; null != k[n] && 0 < k[n].size_0() && (k[n].size_0() > q && null != k[n].elementAt_1(q) ? (L = k[n].elementAt_1(q)) : null != k[n].elementAt_1(0) && (L = k[n].elementAt_1(0))); var J = this.timeScaleGlobal; null != g[n] && 0 < g[n].size_0() && (g[n].size_0() > q && null != g[n].elementAt_1(q) ? (J = g[n].elementAt_1(q)) : null != g[n].elementAt_1(0) && (J = g[n].elementAt_1(0))); r = new GT342(r, u, B, t.fileName, t.imagesDir, I, L, J.x, A.x, A.y, C.x, C.y, E, F, D.x, D.y, H.x, H.y); m[n].setElementAt_2(r, q); } } return m; }, checkSize_2: function (a, b) { a.size_0() <= b && a.setSize_1(b + 1); }, getSymbolVector_6: function (a, b, d, e, f, g) { var k = a[b]; null == k && (GT1650.prototype.assertExp_2(!f, "PSymbolSpines: No animation is already set for symbol [" + b + "]! Please set an animation for this symbol before adding more animations to it!"), (k = new java_util_JavaScriptVector()), (a[b] = k)); k.size_0() <= d && k.setSize_1(d + 1); a = k.elementAt_1(d); if (null == a) GT1650.prototype.assertExp_2(!f, "PSymbolSpines: No animation is already set for symbol [" + b + "] for symbol count " + d + " ! Please set an animation for this symbol count before adding more animations to it!"), (a = new java_util_JavaScriptVector()); else { if (f) { k = !0; for (f = 0; f < a.size_0(); ++f) if (null != a.elementAt_1(f) && a.elementAt_1(f).trackIndex == e) { k = !1; break; } GT1650.prototype.assertExp_2( !k, "PSymbolSpines: No animation is already set for symbol [" + b + "] for symbol count " + d + " on track " + e + "! Please set an animation for this symbol count before adding more animations to it!" ); } if (g) { b = new java_util_JavaScriptVector(); for (f = 0; f < a.size_0(); ++f) null != a.elementAt_1(f) && a.elementAt_1(f).trackIndex == e && b.addElement_1(a.elementAt_1(f)); for (f = 0; f < b.size_0(); ++f) a.removeElement_1(b.elementAt_1(f)); } } return a; }, extractRequiredImageNamesFromTextureAtlasFile_2: function (a, b) { for (var d = a.getTextDocument_1(b), e = d.getNumberOfLines_0(), f = !0, g = 0; g < e; ++g) { var k = d.getLine_1(g); if (null == k) break; k = k.trim_0(); 0 == k.length_0() ? (f = !0) : f && (f = !1); } }, }, "GT894", [] ), GT176 = Class.extend( { initialConstructor_0: function () { this.imagesDir = this.fileName = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.imagesDir = this.fileName = null; this.set_2(a, b); }, set_2: function (a, b) { this.fileName = a; this.imagesDir = b; }, }, "GT176", [] ); GT894.prototype.set_0 = function () { return new GT894(); }; var GT895 = GT765.extend( { initialConstructor_0: function () { this.globalLocation = this.startPositions = this.repeatStartPositions = this.flips = this.bounds = this.location = this.videos = null; GT765.prototype.initialConstructor_0.call(this); this.videos = [].createArray(128); this.location = [].createArray(128); this.bounds = [].createArray(128); this.flips = [].createArray(128); this.repeatStartPositions = [].createArray(128); this.startPositions = [].createArray(128); this.globalLocation = new GT1553(0, 0, -1, -1); }, globalOffset_2: function (a, b) { this.globalLocation.setLocation_2(a, b); return this; }, globalSize_2: function (a, b) { this.globalLocation.setSize_2(a, b); return this; }, video_2: function (a, b) { return this.video_3(a, 0, b); }, video_3: function (a, b, d) { var e = this.videos[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.videos[a] = e)); e.size_0() <= b && e.setSize_1(b + 1); e.setElementAt_2(d, b); return this; }, offset_4: function (a, b, d, e) { var f = this.location[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.location[a] = f)); f.size_0() <= b && f.setSize_1(b + 1); a = f.elementAt_1(b); null != a ? a.setLocation_2(d, e) : ((a = new GT1553(d, e, -1, -1)), f.setElementAt_2(a, b)); return this; }, size_4: function (a, b, d, e) { var f = this.location[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.location[a] = f)); f.size_0() <= b && f.setSize_1(b + 1); a = f.elementAt_1(b); null != a ? a.setSize_2(d, e) : ((a = new GT1553(0, 0, d, e)), f.setElementAt_2(a, b)); return this; }, flip_4: function (a, b, d, e) { var f = this.flips[a]; null == f && ((f = new java_util_JavaScriptVector()), (this.flips[a] = f)); f.size_0() <= b && f.setSize_1(b + 1); a = f.elementAt_1(b); null == a && ((a = new GT1633()), f.setElementAt_2(a, b)); a.x = d ? 1 : 0; a.y = e ? 1 : 0; return this; }, streamMode_3: function (a, b, d) { return this; }, clippingBounds_6: function (a, b, d, e, f, g) { var k = this.bounds[a]; null == k && ((k = new java_util_JavaScriptVector()), (this.bounds[a] = k)); k.size_0() <= b && k.setSize_1(b + 1); a = k.elementAt_1(b); null != a ? (a.setSize_2(d, e), a.setLocation_2(f, g)) : ((a = new GT1553(d, e, f, g)), k.setElementAt_2(a, b)); return this; }, repeatStartPos_3: function (a, b, d) { var e = this.repeatStartPositions[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.repeatStartPositions[a] = e)); e.size_0() <= b && e.setSize_1(b + 1); e.setElementAt_2(new Integer(d), b); return this; }, startPos_3: function (a, b, d) { var e = this.startPositions[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.startPositions[a] = e)); e.size_0() <= b && e.setSize_1(b + 1); e.setElementAt_2(new Integer(d), b); return this; }, load_1: function (a) { for (var b = this.videos.length, d = 0; d < b; d++) if (null != this.videos[d]) for (var e = 0; e < this.videos[d].size_0(); e++) { var f = this.videos[d].elementAt_1(e); null != f && a.startLoadVideoClip_2(f, !1); } }, create_1: function (a) { for (var b = this.videos.length, d = [].createArray(b), e = 0; e < b; e++) if (null != this.videos[e]) { d[e] = new java_util_JavaScriptVector(); for ( var f = this.videos[e].size_0(), g = null == this.repeatStartPositions[e] ? 0 : this.repeatStartPositions[e].size_0(), k = null == this.startPositions[e] ? 0 : this.startPositions[e].size_0(), m = null == this.location[e] ? 0 : this.location[e].size_0(), n = null == this.flips[e] ? 0 : this.flips[e].size_0(), f = Math.max_2(f, g), f = Math.max_2(f, k), f = Math.max_2(f, m), f = Math.max_2(f, m), f = Math.max_2(f, n), g = 0; g < f; g++ ) { k = this.videos[e].size_0() > g ? this.videos[e].elementAt_1(g) : null; m = 0; if (null != this.repeatStartPositions[e] && this.repeatStartPositions[e].size_0() > g) { var p = this.repeatStartPositions[e].elementAt_1(g); null != p && (m = p.intValue_0()); 0 < m && 0 < g && null == k && (k = this.videos[e].elementAt_1(0)); } n = 0; null != this.startPositions[e] && this.startPositions[e].size_0() > g && ((p = this.startPositions[e].elementAt_1(g)), null != p && (n = p.intValue_0()), 0 < n && 0 < g && null == k && (k = this.videos[e].elementAt_1(0))); p = null; null != this.location[e] && this.location[e].size_0() > g && ((p = this.location[e].elementAt_1(g)), null != p && 0 < g && null == k && (k = this.videos[e].elementAt_1(0))); null == p && (p = this.globalLocation); var q = !1, r = !1; if (null != this.flips[e] && this.flips[e].size_0() > g) { var t = this.flips[e].elementAt_1(g); null != t && ((q = 0 != t.x), (r = 0 != t.y), 0 < g && null == k && (k = this.videos[e].elementAt_1(0))); } t = null; if (null != this.bounds[e] && this.bounds[e].size_0() > g) { var u = this.bounds[e].elementAt_1(g); null != k && (t = new GT343(a.getVideoClip_1(k), p.x, p.y, p.width, p.height, m, n, q, r, u.x, u.y, u.width, u.height)); } else null != k && (t = new GT343(a.getVideoClip_1(k), p.x, p.y, p.width, p.height, m, n, q, r)); d[e].addElement_1(t); } } return d; }, }, "GT895", [] ); GT895.prototype.set_0 = function () { return new GT895(); }; var GT896 = GT469.extend( { initialConstructor_0: function () { this.teaserSymbol = this.spinTeaserSoundFile = this.teaserSounds = null; this.playAfterNumber = this.minTeaserSymbols = 0; this.permittedReelIndices = null; this.rowPosition = 0; this.muteReelStopsounds = !1; GT469.prototype.initialConstructor_0.call(this); this.teaserSounds = new java_util_JavaScriptVector(); this.muteReelStopsounds = !1; }, teaserSoundSymbol_2: function (a, b) { return this.teaserSoundSymbol_3(a, b, -1); }, teaserSoundSymbol_3: function (a, b, d) { this.teaserSymbol = GT1672.prototype.charToString_1(a); this.minTeaserSymbols = b; this.rowPosition = d; return this; }, teaserSoundSymbols_3: function (a, b, d) { this.teaserSymbol = a; this.minTeaserSymbols = b; this.rowPosition = d; return this; }, permittedReels_1: function (a) { this.permittedReelIndices = a; return this; }, teaserSound_2: function (a, b) { this.teaserSounds.size_0() <= a && this.teaserSounds.setSize_1(a + 1); this.teaserSounds.setElementAt_2(b, a); return this; }, uniqueSpinTeaserSound_2: function (a, b) { this.playAfterNumber = a; this.spinTeaserSoundFile = b; return this; }, muteReelStopSounds_1: function (a) { this.muteReelStopsounds = a; return this; }, create_1: function (a) { var b = null; if (0 < this.teaserSounds.size_0()) { for (var b = [].createArray(this.teaserSounds.size_0()), d = 0; d < this.teaserSounds.size_0(); d++) { var e = this.teaserSounds.elementAt_1(d); null != e && (b[d] = a.getResourceManager_0().getSound_1(e)); } d = null; null != this.spinTeaserSoundFile && (d = a.getResourceManager_0().getSound_1(this.spinTeaserSoundFile)); b = new GT420(this.teaserSymbol, b, a.getSoundPlayer_0()); b.setMinSymbols_1(this.minTeaserSymbols); b.setRowPosition_1(this.rowPosition); b.setPermittedReels_1(this.permittedReelIndices); b.setUniqueSpinTeaserSound_2(this.playAfterNumber, d); b.setMuteReelStopSounds_1(this.muteReelStopsounds); } return b; }, load_1: function (a) { if (0 < this.teaserSounds.size_0()) for (var b = 0; b < this.teaserSounds.size_0(); b++) { var d = this.teaserSounds.elementAt_1(b); null != d && a.getResourceManager_0().startLoadSound_1(d); } null != this.spinTeaserSoundFile && a.getResourceManager_0().startLoadSound_1(this.spinTeaserSoundFile); }, }, "GT896", [] ); GT896.prototype.set_0 = function () { return new GT896(); }; var GT1039 = GT765.extend( { initialConstructor_0: function () { this.finalSounds = this.relativePayoutTimeTable = this.relativePayoutFileNamesTable = this.timetable = this.table = null; this.finalSoundsBeforeSpecialSounds = !1; this.highwinnotificationsound = null; this.highwinnotificationsoundfilestepscount = this.highwinnotificationsoundsingleringsteplength = this.highwinnotificationsoundloopendposition = this.highwinnotificationsoundrestartposition = this.highwinnotificationsoundstartposition = this.highwinnotificationsoundrelativepayout = 0; this.countupsound = null; this.countupsoundsoundstepduration = this.countupsoundstepduration = this.countupsoundstartposition = this.countUpThreshold = 0; GT765.prototype.initialConstructor_0.call(this); this.table = new GT1511(); this.finalSounds = new GT1642(); this.finalSoundsBeforeSpecialSounds = !1; this.countUpThreshold = 0; this.highwinnotificationsound = this.relativePayoutTimeTable = this.relativePayoutFileNamesTable = this.timetable = null; this.highwinnotificationsoundrelativepayout = 0; }, sound_3: function (a, b, d) { this.table.put_3(a, b, d); return this; }, customTime_3: function (a, b, d) { null == this.timetable && (this.timetable = new GT1511()); this.timetable.put_3(a, b, new Integer(d)); return this; }, soundForWinUpTo_2: function (a, b) { null == this.relativePayoutFileNamesTable && (this.relativePayoutFileNamesTable = new GT1642()); this.relativePayoutFileNamesTable.put_2(a, b); return this; }, customTimeForWinUpTo_2: function (a, b) { null == this.relativePayoutTimeTable && (this.relativePayoutTimeTable = new GT1642()); this.relativePayoutTimeTable.put_2(a, new Integer(b)); return this; }, countUpSound_4: function (a, b, d, e) { this.countupsound = a; this.countupsoundstartposition = b; this.countupsoundstepduration = d; this.countupsoundsoundstepduration = e; return this; }, countUpSound_3: function (a, b, d) { this.countupsound = a; this.countupsoundstartposition = b; this.countupsoundsoundstepduration = this.countupsoundstepduration = d; return this; }, finalWinSoundUpTo_2: function (a, b) { this.finalSounds.put_2(a, b); return this; }, playFinalSoundsBeforeSpecialSounds_0: function () { this.finalSoundsBeforeSpecialSounds = !0; return this; }, highWinNotificationSound_2: function (a, b) { this.highwinnotificationsound = b; this.highwinnotificationsoundrelativepayout = a; return this; }, highWinNotificationSoundStartPosition_1: function (a) { this.highwinnotificationsoundstartposition = a; return this; }, highWinNotificationSoundRestartPosition_1: function (a) { this.highwinnotificationsoundrestartposition = a; return this; }, highWinNotificationSoundLoopEndPosition_1: function (a) { this.highwinnotificationsoundloopendposition = a; return this; }, highWinNotificationSoundFileStepsCount_1: function (a) { this.highwinnotificationsoundfilestepscount = a; return this; }, highWinNotificationSoundSingleRingStepLength_1: function (a) { this.highwinnotificationsoundsingleringsteplength = a; return this; }, countUpSoundThreshold_1: function (a) { this.countUpThreshold = a; return this; }, load_1: function (a) { for (var b = JSUTIL.MathUtil.castToChar(0); 128 > b; b++) if (this.table.hasSymbolKey_1(b)) for (var d = this.table.getMaxNumber_1(b), e = 0; e < d; e++) { var f = this.table.get_2(b, e); null != f && a.startLoadSound_1(f); } if (null != this.relativePayoutFileNamesTable) for (b = 0; b < this.relativePayoutFileNamesTable.size_0(); b++) (f = this.relativePayoutFileNamesTable.get_1(this.relativePayoutFileNamesTable.getKey_1(b))), null != f && a.startLoadSound_1(f); null != this.countupsound && a.startLoadSound_1(this.countupsound); for (b = 0; b < this.finalSounds.size_0(); b++) (f = this.finalSounds.get_1(this.finalSounds.getKey_1(b))), null != f && a.startLoadSound_1(f); null != this.highwinnotificationsound && a.startLoadSound_1(this.highwinnotificationsound); }, create_1: function (a) { for (var b = a.getResourceManager_0(), d = new GT1598(), e = new GT1511(), f = JSUTIL.MathUtil.castToChar(0); 128 > f; f++) if (this.table.hasSymbolKey_1(f)) for (var g = this.table.getMaxNumber_1(f), k = 0; k < g; k++) { var m = this.table.get_2(f, k); null != m && ((m = b.getSound_1(m)), e.put_3(f, k, m)); } d.setSymbolSoundMapping_1(e); if (null != this.timetable) { m = new GT1511(); for (f = JSUTIL.MathUtil.castToChar(0); 128 > f; f++) if (this.timetable.hasSymbolKey_1(f)) for (g = this.timetable.getMaxNumber_1(f), k = 0; k < g; k++) (e = this.timetable.get_2(f, k)), null != e && m.put_3(f, k, e); d.setSymbolCustomTimeMapping_1(m); } if (null != this.relativePayoutFileNamesTable) { k = new GT1642(); g = this.relativePayoutFileNamesTable.size_0(); for (f = 0; f < g; f++) (m = this.relativePayoutFileNamesTable.get_1(this.relativePayoutFileNamesTable.getKey_1(f))), null != m && ((m = b.getSound_1(m)), k.put_2(this.relativePayoutFileNamesTable.getKey_1(f), m)); d.setRelativePayoutMapping_1(k); } if (null != this.relativePayoutTimeTable) { k = new GT1642(); g = this.relativePayoutTimeTable.size_0(); for (f = 0; f < g; f++) (m = this.relativePayoutTimeTable.get_1(this.relativePayoutTimeTable.getKey_1(f))), null != m && k.put_2(this.relativePayoutTimeTable.getKey_1(f), m); d.setRelativePayoutCustomTimeMapping_1(k); } null != this.countupsound && d.setCountUpSound_4(b.getSound_1(this.countupsound), this.countupsoundstartposition, this.countupsoundstepduration, this.countupsoundsoundstepduration); d.setCountUpSoundThreshold_1(this.countUpThreshold); g = new GT1642(); for (f = 0; f < this.finalSounds.size_0(); f++) (m = this.finalSounds.get_1(this.finalSounds.getKey_1(f))), null != m && g.put_2(this.finalSounds.getKey_1(f), b.getSound_1(m)); d.setFinalWinSoundTable_1(g); d.setPlayFinalSoundsBeforeSpecialSounds_1(this.finalSoundsBeforeSpecialSounds); null != this.highwinnotificationsound && ((g = -1), (a = a.getParameter_1("ringlimit")), null != a && 0 < a.length_0() && (g = GT1672.prototype.stringToInt_1(a)), 0 != g && (0 < this.highwinnotificationsoundfilestepscount && 0 < this.highwinnotificationsoundsingleringsteplength ? d.setHighWinNotificationSound_4( b.getSound_1(this.highwinnotificationsound), -1 == g ? this.highwinnotificationsoundrelativepayout : g, this.highwinnotificationsoundfilestepscount, this.highwinnotificationsoundsingleringsteplength ) : d.setHighWinNotificationSound_5( b.getSound_1(this.highwinnotificationsound), -1 == g ? this.highwinnotificationsoundrelativepayout : g, this.highwinnotificationsoundstartposition, this.highwinnotificationsoundrestartposition, this.highwinnotificationsoundloopendposition ))); return d; }, }, "GT1039", [] ); GT1039.prototype.set_0 = function () { return new GT1039(); }; var GT838 = Class.extend( { initialConstructor_0: function () { this.filename = null; this.len = this.startposition = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.filename = null; this.len = this.startposition = 0; this.filename = a; this.startposition = b; this.len = d; }, }, "GT838", [] ), GT1411 = Class.extend( { initialConstructor_0: function () { this.timer = this.fadeAnimator = this.soundPlayer = null; this.fadeOutTime = this.fadeInTime = 0; this.backgroundEnd = this.backgroundLoopStart = this.backgroundSound = this.dynamicBackgroundSoundTableSounds = this.dynamicBackgroundSoundTableVolumes = null; this.backgroundReducedVolumeDuringCollect = this.backgroundReducedVolumeTemp = this.backgroundReducedVolume = this.freeGamesShowBannerDuration = 0; this.backgroundReduced = this.backgroundSilent = !1; this.backgroundSoundRunning = 0; this.soundHandler = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.timer = this.fadeAnimator = this.soundPlayer = null; this.fadeOutTime = this.fadeInTime = 0; this.backgroundEnd = this.backgroundLoopStart = this.backgroundSound = this.dynamicBackgroundSoundTableSounds = this.dynamicBackgroundSoundTableVolumes = null; this.backgroundReducedVolumeDuringCollect = this.backgroundReducedVolumeTemp = this.backgroundReducedVolume = this.freeGamesShowBannerDuration = 0; this.backgroundReduced = this.backgroundSilent = !1; this.backgroundSoundRunning = 0; this.soundHandler = null; this.soundPlayer = a; this.fadeAnimator = null; this.timer = b; this.fadeOutTime = this.fadeInTime = 0; this.backgroundReducedVolume = 100; this.backgroundReducedVolumeTemp = this.backgroundSoundRunning = this.backgroundReducedVolumeDuringCollect = -1; this.backgroundSound = [].createArray(0); this.backgroundLoopStart = [].createArray(0).init(0); this.backgroundEnd = [].createArray(0).init(0); this.dynamicBackgroundSoundTableSounds = this.dynamicBackgroundSoundTableVolumes = null; this.soundHandler = new GT1205(a); }, setBackgroundSound_3: function (a, b, d) { this.setBackgroundSound_4(0, a, b, d); }, setBackgroundSound_4: function (a, b, d, e) { if (this.backgroundSound.length <= a) { for (var f = [].createArray(a + 1), g = [].createArray(a + 1).init(0), k = [].createArray(a + 1).init(0), m = 0; m < this.backgroundSound.length; m++) (f[m] = this.backgroundSound[m]), (g[m] = this.backgroundLoopStart[m]), (k[m] = this.backgroundEnd[m]); this.backgroundSound = f; this.backgroundLoopStart = g; this.backgroundEnd = k; } this.backgroundSound[a] = b; this.backgroundLoopStart[a] = d; this.backgroundEnd[a] = e; }, setBackgroundReducedVolume_1: function (a) { this.backgroundReducedVolume = a; }, setBackgroundReducedFadingTimes_2: function (a, b) { this.fadeInTime = a; this.fadeOutTime = b; }, setBackgroundReducedVolumeDuringCollect_1: function (a) { this.backgroundReducedVolumeDuringCollect = a; }, hasDynamicBackgroundSoundVolume_0: function () { return null != this.dynamicBackgroundSoundTableSounds && 0 < this.dynamicBackgroundSoundTableSounds.size_0(); }, getDynamicBackgroundSoundVolume_1: function (a) { if (this.hasDynamicBackgroundSoundVolume_0()) for (var b = 0; b < this.dynamicBackgroundSoundTableSounds.size_0(); ++b) if (a.equals_1(this.dynamicBackgroundSoundTableSounds.get_1(b))) return this.dynamicBackgroundSoundTableVolumes.get_1(b).intValue_0(); return -1; }, addDynamicBackgroundSoundVolume_2: function (a, b) { null == this.dynamicBackgroundSoundTableSounds && (this.dynamicBackgroundSoundTableSounds = new java_util_JavaScriptVector()); null == this.dynamicBackgroundSoundTableVolumes && (this.dynamicBackgroundSoundTableVolumes = new java_util_JavaScriptVector()); this.dynamicBackgroundSoundTableVolumes.add_1(new Integer(b)); this.dynamicBackgroundSoundTableSounds.add_1(a); }, setFreeGamesBannerPresentationDuration_1: function (a) { this.freeGamesShowBannerDuration = a; }, getFreeGamesBannerPresentationDuration_0: function () { return this.freeGamesShowBannerDuration; }, hasBackgroundSound_0: function () { return null != this.backgroundSound && 0 < this.backgroundSound.length; }, startBackgroundSound_1: function (a) { (-1 != a && this.backgroundSoundRunning == a) || this.stopBackgroundSound_0(); if (a != this.backgroundSoundRunning) if (0 <= a && null != this.backgroundSound && a < this.backgroundSound.length && null != this.backgroundSound[a]) { this.backgroundSoundRunning = a; var b = 100; this.backgroundSilent ? (b = 0) : this.backgroundReduced && (b = 0 <= this.backgroundReducedVolumeTemp ? this.backgroundReducedVolumeTemp : this.backgroundReducedVolume); this.soundPlayer.startLooped_6(this.backgroundSound[a], 0, this.backgroundEnd[a], this.backgroundLoopStart[a], b, 0); } else this.backgroundSoundRunning = -1; }, startBackgroundSound_0: function () { this.startBackgroundSound_1(0); }, reduceBackgroundSoundVolume_1: function (a) { this.reduceBackgroundSoundVolume_3(a, this.backgroundReducedVolume, a ? this.fadeOutTime : this.fadeInTime); }, reduceBackgroundSoundVolume_2: function (a, b) { this.reduceBackgroundSoundVolume_3(a, b, a ? this.fadeOutTime : this.fadeInTime); }, reduceBackgroundSoundVolume_3: function (a, b, d) { this.backgroundReduced = a; 1 == this.backgroundSilent ? this.updateBackgroundSound_0() : ((this.backgroundReducedVolumeTemp = 0 <= b ? b : -1), null != this.fadeAnimator && (this.fadeAnimator.kill_0(), (this.fadeAnimator = null)), -1 == this.backgroundSoundRunning || 0 == d || -1 == this.backgroundReducedVolumeTemp ? this.updateBackgroundSound_0() : ((this.fadeAnimator = new GT822(this.timer, 50, this.soundPlayer, this.backgroundSound[this.backgroundSoundRunning], a ? 100 : b, a ? b : 100, d)), this.fadeAnimator.start_0())); }, reduceBackgroundSoundVolumeDuringCollect_1: function (a) { -1 < this.backgroundReducedVolumeDuringCollect && this.reduceBackgroundSoundVolume_2(a, a ? this.backgroundReducedVolumeDuringCollect : -1); }, setBackgroundSoundSilent_1: function (a) { this.backgroundSilent = a; null != this.fadeAnimator && (this.fadeAnimator.kill_0(), (this.fadeAnimator = null)); this.updateBackgroundSound_0(); }, updateBackgroundSound_0: function () { null != this.backgroundSound && -1 != this.backgroundSoundRunning && (this.backgroundSilent ? this.soundPlayer.setVolume_2(this.backgroundSound[this.backgroundSoundRunning], 0) : this.backgroundReduced ? 0 <= this.backgroundReducedVolumeTemp ? this.soundPlayer.setVolume_2(this.backgroundSound[this.backgroundSoundRunning], this.backgroundReducedVolumeTemp) : this.soundPlayer.setVolume_2(this.backgroundSound[this.backgroundSoundRunning], this.backgroundReducedVolume) : this.soundPlayer.setVolume_2(this.backgroundSound[this.backgroundSoundRunning], 100)); }, stopBackgroundSound_0: function () { null != this.backgroundSound && -1 != this.backgroundSoundRunning && (this.soundPlayer.stop_1(this.backgroundSound[this.backgroundSoundRunning]), (this.backgroundSoundRunning = -1)); }, stopBackgroundSound_1: function (a) { null != this.backgroundSound && -1 != this.backgroundSoundRunning && (this.soundPlayer.stop_2(this.backgroundSound[this.backgroundSoundRunning], a), (this.backgroundSoundRunning = -1)); }, isBackgroundSoundRunning_0: function () { return -1 != this.backgroundSoundRunning && !this.backgroundSilent; }, getBackgroundSoundIndex_0: function () { return this.backgroundSoundRunning; }, playSound_2: function (a, b) { this.soundHandler.hasSoundWith_1(a) ? this.soundHandler.start_2(a, b) : null != b && b.run_0(); }, setFreeGamesStartSound_1: function (a) { this.soundHandler.setSound_2(GT1411.prototype.START_SOUND_ID, a); }, hasFreeGamesStartSound_0: function () { return this.soundHandler.hasSoundWith_1(GT1411.prototype.START_SOUND_ID); }, setFreeGamesRetriggerSound_1: function (a) { this.soundHandler.setSound_2(GT1411.prototype.RETRIGGER_SOUND_ID, a); }, hasFreeGamesRetriggerSound_0: function () { return this.soundHandler.hasSoundWith_1(GT1411.prototype.RETRIGGER_SOUND_ID); }, setFreeGamesEndSound_1: function (a) { this.soundHandler.setSound_2(GT1411.prototype.END_SOUND_ID, a); }, setFreeGamesEndSoundLong_1: function (a) { this.soundHandler.setSound_2(GT1411.prototype.END_SOUND_LONG_ID, a); }, hasFreeGamesEndSound_0: function () { return this.soundHandler.hasSoundWith_1(GT1411.prototype.END_SOUND_ID) || this.soundHandler.hasSoundWith_1(GT1411.prototype.END_SOUND_LONG_ID); }, startFreeGamesStartSound_1: function (a) { this.playSound_2(GT1411.prototype.START_SOUND_ID, a); }, startFreeGamesStartSound_0: function () { this.startFreeGamesStartSound_1(null); }, stopFreeGamesStartSound_1: function (a) { this.soundHandler.stop_2(GT1411.prototype.START_SOUND_ID, a); }, stopFreeGamesStartSound_0: function () { this.soundHandler.stop_1(GT1411.prototype.START_SOUND_ID); }, startFreeGamesRetriggerSound_1: function (a) { this.playSound_2(GT1411.prototype.RETRIGGER_SOUND_ID, a); }, startFreeGamesRetriggerSound_0: function () { this.startFreeGamesRetriggerSound_1(null); }, stopFreeGamesRetriggerSound_1: function (a) { this.soundHandler.stop_2(GT1411.prototype.END_SOUND_ID, a); }, stopFreeGamesRetriggerSound_0: function () { this.soundHandler.stop_1(GT1411.prototype.RETRIGGER_SOUND_ID); }, startFreeGamesEndSound_1: function (a) { this.playSound_2(GT1411.prototype.END_SOUND_ID, a); }, stopFreeGamesEndSound_1: function (a) { this.soundHandler.stop_2(GT1411.prototype.END_SOUND_ID, a); }, stopFreeGamesEndSound_0: function () { this.soundHandler.stop_1(GT1411.prototype.END_SOUND_ID); }, startFreeGamesEndSoundLong_1: function (a) { this.soundHandler.hasSoundWith_1(GT1411.prototype.END_SOUND_LONG_ID) ? this.soundHandler.start_2(GT1411.prototype.END_SOUND_LONG_ID, a) : this.startFreeGamesEndSound_1(a); }, stopFreeGamesEndSoundLong_1: function (a) { this.soundHandler.stop_2(GT1411.prototype.END_SOUND_LONG_ID, a); }, stopFreeGamesEndSoundLong_0: function () { this.soundHandler.stop_1(GT1411.prototype.END_SOUND_LONG_ID); }, stopEndSounds_1: function (a) { this.stopFreeGamesEndSound_1(a); this.stopFreeGamesEndSoundLong_1(a); }, stopEndSounds_0: function () { this.stopFreeGamesEndSound_0(); this.stopFreeGamesEndSoundLong_0(); }, }, "GT1411", [] ); GT1411.prototype.START_SOUND_ID = GT1677.prototype.generateID_0(); GT1411.prototype.RETRIGGER_SOUND_ID = GT1677.prototype.generateID_0(); GT1411.prototype.END_SOUND_ID = GT1677.prototype.generateID_0(); GT1411.prototype.END_SOUND_LONG_ID = GT1677.prototype.generateID_0(); var GT986 = GT1285.extend( { initialConstructor_0: function () { this.slotState = this.currencyFormatter = null; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.slotState = this.currencyFormatter = null; GT1285.prototype.initialConstructor_0.call(this); this.currencyFormatter = a; this.slotState = b; }, format_1: function (a) { a = this.slotState.getBaseBet_0() * this.slotState.getDefinition_0().getBetMultiplierForGameMode_1(Integer.truncate_1(a)); return this.currencyFormatter.format_1(a); }, }, "GT986", [] ), GT942 = Class.extend( { initialConstructor_0: function () { this.superGameState = this.console = this.winSwitcher = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.superGameState = this.console = this.winSwitcher = null; this.winSwitcher = a; this.console = b; this.superGameState = d; }, run_0: function () { if (0 == this.winSwitcher.getCurrentRepetition_0()) { var a = this.console.getWin_0() + this.winSwitcher.getCurrentWin_0().payCash; this.console.setWin_2(a, !0); var b = this.console.getWinSuperGames_0() + this.winSwitcher.getCurrentWin_0().payGames; this.console.setWinSuperGames_3(b, this.superGameState.getLabel_0(), !0); if (null != GT514.prototype.getInstance_0() && null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0()) { var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0(); null == d || d.isValueCountActive_0() || ((d = " + " + b + " " + this.superGameState.getLabel_0()), 0 < b ? GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWinAndSuperGames_6(a, d, !0, null, !1, -1) : GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_2(a, !0)); } } }, }, "GT942", [Runnable] ), GT1254 = Class.extend( { initialConstructor_0: function () { this.gui = null; this.skipIntro = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gui = null; this.skipIntro = !1; this.gui = a; }, shouldSkipIntro_0: function () { return this.skipIntro; }, setSkipIntro_1: function (a) { this.skipIntro = a; }, getGui_0: function () { return this.gui; }, getSlotState_0: function () { return this.gui.getSlotState_0(); }, fireStateFinished_0: function () { this.gui.getTimer_0().triggerCallbackImmediately_1(new GT275(this.gui, this.getId_0())); }, exit_0: function () {}, destroy_0: function () {}, requestFinish_0: function () {}, notifySlotEvent_1: function (a) { GT1650.prototype.assertExp_2(!1, "notifySlotEvent not implemented in " + this.toString() + " (or super method called)"); }, notifySilentMode_1: function (a) {}, getConsoleIdentifier_0: function () { return "Undefined"; }, transformRules_1: function (a) {}, }, "GT1254", [] ), GT275 = Class.extend( { initialConstructor_0: function () { this.gui = null; this.id = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.gui = null; this.id = 0; this.gui = a; this.id = b; }, run_0: function () { this.gui.getGuiStateMachine_0().fireStateFinished_1(this.id); }, }, "GT275", [Runnable] ), GT131 = GT1254.extend( { initialConstructor_0: function () { this.soundPlayer = this.sound = this.symbols = null; this.addFinalWinSoundWin = !1; this.appearTime = this.internalState = 0; this.finishCallback = null; this.charIdx = 0; this.originalWinpos = this.winpos = null; this.symbolIdx = 0; this.expandedWin = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.soundPlayer = this.sound = this.symbols = null; this.addFinalWinSoundWin = !1; this.appearTime = this.internalState = 0; this.finishCallback = null; this.charIdx = 0; this.originalWinpos = this.winpos = null; this.symbolIdx = 0; this.expandedWin = null; GT1254.prototype.initialConstructor_1.call(this, a); this.symbols = [].createArray(b.length).init(0); for (a = 0; a < b.length; a++) this.symbols[a] = b[a]; this.sound = d; this.soundPlayer = e; this.appearTime = f; this.addFinalWinSoundWin = g; }, getId_0: function () { return GT568.prototype.ID; }, getConsoleIdentifier_0: function () { return "WinAnimations"; }, enter_1: function (a) { this.internalState = GT131.prototype.STATE_FIRST_WINS; this.onEnterHandleBackgroundSoundVolume_0(); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); a.setSymbolColorTransformation_1(null); a.setSymbols_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getAllWinPositions_0()); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES).hide_1(!1); this.getGui_0().getSlotConsole_0().setWin_2(0, !0); a = this.getSlotState_0().getWins_0(); var b; this.charIdx = this.containsSplittedScatter_2(a, this.symbols); if (-1 == this.charIdx) (b = a), this.getGui_0().getSlotConsole_0().setStatusText_1(""); else { b = [].createArray(a.length - 1); for (var d = 0, e = 0; e < a.length; e++) a[e].symbol != this.symbols[this.charIdx] && ((b[d] = a[e]), d++); 0 != b.length && this.getGui_0().getSlotConsole_0().setStatusText_1(""); } this.getGui_0().startWinSwitcherWithWins_2(b, !1); this.finishCallback = new GT18(this); this.getGui_0().getWinSwitcher_0().addFinishCallback_1(this.finishCallback); this.getGui_0().getSlotConsole_0().setState_1(GT568.prototype.determineConsoleState_1(this.getGui_0())); }, onEnterHandleBackgroundSoundVolume_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0); this.getGui_0().getBaseGameMelodies_0().reduceVolume_1(!0); }, requestFinish_0: function () { this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.finishCallback); -1 == this.charIdx ? this.getGui_0().getWinSwitcher_0().stopFirstRun_0() : (this.getGui_0().getWinSwitcher_0().stop_0(), this.getGui_0().updateStoppedReels_0(), this.getGui_0().getSlotConsole_0().setStatusText_1("")); this.fireStateFinished_0(); }, onExitHandleBackgroundSoundVolume_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!1); }, exit_0: function () { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbolColorTransformation_1(null); this.getGui_0().getSlotConsole_0().setWin_2(this.getGui_0().getSlotState_0().getWinSum_1(!0), !0); this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.finishCallback); this.getGui_0().getWinSwitcher_0().stopFirstRun_0(); this.finishCallback.deactivate_0(); this.finishCallback = null; this.onExitHandleBackgroundSoundVolume_0(); }, toString: function () { return "GuiStateWinAnimationsExpandingSymbols (" + this.getId_0() + ")"; }, winSwitcherFinished_0: function () { this.internalState == GT131.prototype.STATE_FIRST_WINS ? ((this.internalState = GT131.prototype.STATE_WAITING_FOR_EXPANDING), -1 == this.charIdx ? (this.getGui_0().getWinSwitcher_0().stopFirstRun_0(), this.fireStateFinished_0()) : (this.getGui_0().getWinSwitcher_0().stop_0(), this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, 1e3))) : this.internalState == GT131.prototype.STATE_WAITING_FOR_EXPANDING ? ((this.internalState = GT131.prototype.STATE_EXPANDING), this.startExpanding_0()) : this.internalState == GT131.prototype.STATE_EXPANDING ? this.symbolIdx < this.winpos.getCount_0() ? (this.expandOneSymbol_0(), this.symbolIdx++, this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, this.appearTime)) : ((this.symbolIdx = 0), (this.internalState = GT131.prototype.STATE_EXPANDEDWINS), this.expandedWins_0()) : this.fireStateFinished_0(); }, startExpanding_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); a.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); var b = this.getGui_0().getSlotState_0().getReelPositions_0(), d = this.getGui_0().getSlotState_0().getCurrentReelSet_0(); this.symbolIdx = 0; this.winpos = this.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[this.charIdx]); a.setSymbols_3(b, d, new GT1613()); this.expandedWin = this.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); b = GT1613.prototype.createEndPositions_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getGui_0().getLayout_0().rows); this.originalWinpos = this.expandedWin.createWinPositions_2(b, this.getSlotState_0().getDefinition_0().getWinLines_0()); for (b = 0; b < this.originalWinpos.getCount_0(); b++) a.setSymbol_3(this.originalWinpos.getSymbolColumn_1(b), this.originalWinpos.getSymbolRow_1(b), this.symbols[this.charIdx]); this.winSwitcherFinished_0(); }, expandOneSymbol_0: function () { for (var a = this.winpos.getSymbolColumn_1(this.symbolIdx), b = this.winpos.getSymbolRow_1(this.symbolIdx); this.originalWinpos.isWinningPosition_2(a, b) && this.symbolIdx < this.winpos.getCount_0(); ) this.symbolIdx++, this.symbolIdx < this.winpos.getCount_0() && ((a = this.winpos.getSymbolColumn_1(this.symbolIdx)), (b = this.winpos.getSymbolRow_1(this.symbolIdx))); this.symbolIdx >= this.winpos.getCount_0() || (this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbol_3(a, b, this.symbols[this.charIdx]), null != this.soundPlayer && null != this.sound && this.soundPlayer.start_1(this.sound)); }, expandedWins_0: function () { null == this.expandedWin ? (GT1650.prototype.assertExp_2(null != this.expandedWin, "win is null"), this.fireStateFinished_0()) : (this.getGui_0().getSlotConsole_0().setStatusText_1(""), this.startWinSwitcherWithExpandedWins_4(this.expandedWin, this.getGui_0(), !1, this.addFinalWinSoundWin)); }, }, "GT131", [] ), GT18 = Class.extend( { initialConstructor_0: function () { this.state = null; this.deactivated = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.deactivated = !1; this.state = a; this.deactivated = !1; }, deactivate_0: function () { this.deactivated = !0; }, run_0: function () { this.deactivated || this.state.winSwitcherFinished_0(); }, }, "GT18", [Runnable] ); GT131.prototype.valueOfWin_2 = function (a, b) { return null == a ? 0 : a.payCash + a.payGames * b; }; GT131.prototype.buildPayoutStep_4 = function (a, b, d, e) { var f = [].createArray(2).init(0); for (f[0] = (this.valueOfWin_2(a, e) * (b + 1)) / d; 0 < e && f[0] > a.payCash && f[0] > e && a.payGames > f[1]; ) f[1]++, (f[0] -= e); return f; }; GT131.prototype.expandScatterWinsToLineWins_3 = function (a, b, d) { for (var e = [].createArray(b), f = [].createArray(2).init(0), g = 0; g < b; g++) { var k = this.buildPayoutStep_4(a, g, b, d); e[g] = new GT1092(a.symbol, g, 0, a.num, 0, 0, k[0] - f[0], Integer.truncate_1(k[1] - f[1])); f = k; } return e; }; GT131.prototype.containsChar_2 = function (a, b) { for (var d = 0; d < a.length; d++) if (a[d] == b) return d; return -1; }; GT131.prototype.containsSplittedScatter_2 = function (a, b) { for (var d = 0; d < a.length; d++) { var e = this.containsChar_2(b, a[d].symbol); if (-1 != e) return e; } return -1; }; GT131.prototype.getExpandingWin_2 = function (a, b) { var d = GT131.prototype.containsSplittedScatter_2(a, b), e = null; if (-1 != d) { for (var f = 0; f < a.length; f++) if (a[f].symbol == b[d]) { e = a[f]; break; } GT1650.prototype.assertExp_2(null != e, "win is null"); } return e; }; GT131.prototype.containsSymbol_5 = function (a, b, d, e, f) { for (var g = 0; g < d; g++) if (f.getSymbol_2(b, (e[b] + g) % f.getNumberOfSymbols_1(b)) == a) return !0; return !1; }; GT131.prototype.startWinSwitcherWithExpandedWins_4 = function (a, b, d, e) { var f = this.expandScatterWinsToLineWins_3(a, b.getSlotState_0().getNumberOfLines_0(), b.getSlotState_0().getSuperGameState_0().getSuperGamePrice_0()), g = f.length; e && 0 < f.length && g++; for (var k = [].createArray(g), m = 0; m < f.length; m++) k[m] = f[m]; e && 0 < f.length && (k[g - 1] = new GT987(k[g - 2].symbol, -1, k[g - 2].start, k[g - 2].num)); a = this.createExpandedScatterEndPositions_2(a.symbol, b); b.getWinSwitcher_0().start_4(k, [].createArray(a.length).init(0), new GT1664(a), d); }; GT131.prototype.createExpandedScatterEndPositions_2 = function (a, b) { for (var d = GT1613.prototype.createEndPositions_3(b.getSlotState_0().getReelPositions_0(), b.getSlotState_0().getCurrentReelSet_0(), b.getSkin_0().reelLayout_0().create_0().rows), e = 0; e < d.length; e++) { for (var f = !1, g = 0; g < d[e].length; g++) if (d[e][g] == a) { f = !0; break; } if (f) for (g = 0; g < d[e].length; g++) d[e][g] = a; } return d; }; GT131.prototype.createExpandedScatterWinPositions_2 = function (a, b) { for ( var d = a.getSlotState_0().getReelPositions_0(), e = a.getSlotState_0().getCurrentReelSet_0(), f = a.getSkin_0().reelLayout_0().create_0(), g = a.getSlotState_0().getCurrentReelSet_0().getNumberOfReels_0(), k = new java_util_JavaScriptVector(), m = new java_util_JavaScriptVector(), n = 0; n < g; n++ ) if (this.containsSymbol_5(b, n, f.rows, d, e)) for (var p = 0; p < f.rows; p++) k.add_1(new Integer(n)), m.add_1(new Integer(p)); d = [].createArray(k.size_0()).init(0); e = [].createArray(m.size_0()).init(0); for (f = 0; f < d.length; f++) (d[f] = k.elementAt_1(f).intValue_0()), (e[f] = m.elementAt_1(f).intValue_0()); return new GT1613(d, e); }; GT131.prototype.updateStoppedReels_2 = function (a, b) { var d = b.getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); d.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); var e = b.getSlotState_0().getReelPositions_0(), f = b.getSlotState_0().getCurrentReelSet_0(), g = this.createExpandedScatterWinPositions_2(b, a); d.setSymbols_3(e, f, new GT1613()); for (e = 0; e < g.getCount_0(); e++) d.setSymbol_3(g.getSymbolColumn_1(e), g.getSymbolRow_1(e), a); }; GT131.prototype.STATE_FIRST_WINS = 0; GT131.prototype.STATE_EXPANDING = 1; GT131.prototype.STATE_WAITING_FOR_EXPANDING = 2; GT131.prototype.STATE_EXPANDEDWINS = 3; var GT177 = Class.extend( { initialConstructor_0: function () { this.gameWrapperInterfaceCaller = this.slotEventManager = this.paytable = null; this.oldPage = 0; this.enforceWrapper = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.gameWrapperInterfaceCaller = this.slotEventManager = this.paytable = null; this.oldPage = 0; this.enforceWrapper = !1; this.paytable = a; this.slotEventManager = b; this.gameWrapperInterfaceCaller = d; this.oldPage = e; this.enforceWrapper = f; }, run_0: function () { this.paytable.removePageChangeAnimationFinishCallback_1(this); var a = this.paytable.getPageIndex_0(); if (this.oldPage != a || this.enforceWrapper) { var b = this.paytable.getChildCountWithoutArrowContainer_0(), d; d = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYTABLE_PAGECHANGE, "" + this.oldPage + ";" + a + ";" + b); this.slotEventManager.fireSlotEvent_1(d); d = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_PAYTABLE_UPDATE); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_OLDPAGE, new Double(this.oldPage)); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_NEWPAGE, new Double(a)); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_TOTALPAGES, new Double(b)); GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, d.getMainTable_0()); } }, equals_1: function (a) { return instanceOf(a, GT177) ? !0 : Class.prototype.equals_1.call(this, a); }, }, "GT177", [Runnable] ), GT569 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.fireStateFinished_0(); }, }, "GT569", [Runnable] ), GT672 = Class.extend( { initialConstructor_0: function () { this.applet = null; }, handleButtonEvent_1: function (a) { a.getId_0() == GT1387.prototype.BUTTON_CLICKED && ((a = a.getSender_0()), a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_FIRST || a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_SECOND ? this.applet.getTopContainer_0().findDescendant_1(GT307.prototype.DIALOG_BOX).hide_1(!1) : a.getApplicationID_0() == GT943.prototype.ID_BUTTON_OPEN_LINK_OK ? (this.applet.getTopContainer_0().findDescendant_1(GT307.prototype.DIALOG_BOX).hide_1(!0), this.applet.openLink_1("http://www.aams.it/")) : a.getApplicationID_0() == GT943.prototype.ID_BUTTON_OPEN_LINK_CANCEL ? this.applet.getTopContainer_0().findDescendant_1(GT307.prototype.DIALOG_BOX).hide_1(!0) : a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_THIRD ? this.applet.notifyPropertyChangedImpl_2("openHelp", a.getToolTip_0()) : a.getApplicationID_0() == GT307.prototype.ACTION_HELP ? this.applet.notifyPropertyChangedImpl_2("openHelp", a.getToolTip_0()) : a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY ? this.applet.notifyPropertyChangedImpl_2("openHelp", a.getToolTip_0()) : a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_AGB ? this.applet.notifyPropertyChangedImpl_2("openHelp", a.getToolTip_0()) : a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING && this.applet.notifyPropertyChangedImpl_2("openHelp", a.getToolTip_0())); return !1; }, setApplet_1: function (a) { this.applet = a; }, }, "GT672", [GT962] ), GT421 = Class.extend( { initialConstructor_0: function () { this.applet = null; }, handleButtonEvent_1: function (a) { a.getId_0() == GT1387.prototype.BUTTON_CLICKED && ((a = a.getSender_0()), a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_FIRST || a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_SECOND || a.getApplicationID_0() == GT943.prototype.ID_BUTTON_STARVEGAS_THIRD || a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY || a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_AGB || a.getApplicationID_0() == GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING) && (this.applet.openLink_1(a.getToolTip_0()), "string" === typeof a.getApplicationData_0() && this.applet.notifyPropertyChangedImpl_2(a.getApplicationData_0(), "")); return !1; }, setApplet_1: function (a) { this.applet = a; }, }, "GT421", [GT962] ), GT728 = Class.extend( { initialConstructor_0: function () { this.triggerShowVersionNrCallback = this.triggerSpinButtonLoadingAnimationCallback = this.triggerAutospinCallback = this.console = this.slotState = this.skinManager = this.timer = this.slotEventManager = null; this.timeForSpinDown = 0; this.gambleButton = this.menuButton = this.spinButton = this.betButtonDown = this.betButtonUp = this.maxBetButton = this.oneButtons = this.menuContainer = this.startAutoPlayCArea = this.soundPlayer = this.buttonClickSound = null; this.movedButtonsPartially = this.autoplayButtonInactive = this.autoPlayAnimationStopped = !1; this.lastState = 0; this.maxGamble = this.gambleButtonMoveInStarted = this.lastStateActive = !1; this.fadeVersionNrAnimator = this.versionNr = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.triggerShowVersionNrCallback = this.triggerSpinButtonLoadingAnimationCallback = this.triggerAutospinCallback = this.console = this.slotState = this.skinManager = this.timer = this.slotEventManager = null; this.timeForSpinDown = 0; this.gambleButton = this.menuButton = this.spinButton = this.betButtonDown = this.betButtonUp = this.maxBetButton = this.oneButtons = this.menuContainer = this.startAutoPlayCArea = this.soundPlayer = this.buttonClickSound = null; this.movedButtonsPartially = this.autoplayButtonInactive = this.autoPlayAnimationStopped = !1; this.lastState = 0; this.maxGamble = this.gambleButtonMoveInStarted = this.lastStateActive = !1; this.fadeVersionNrAnimator = this.versionNr = null; this.console = d; this.slotEventManager = a; this.timer = e; this.triggerAutospinCallback = new GT839(this); this.triggerSpinButtonLoadingAnimationCallback = new GT571(this, !0); this.triggerShowVersionNrCallback = new GT673(this); this.slotState = b; this.skinManager = f; this.spinButton = d.findDescendant_1(GT1150.prototype.ID_BUTTON_SPIN); if (null != this.spinButton) { new GT713(e, this.spinButton, this).start_0(); this.versionNr = d.findDescendant_1(GT1150.prototype.ID_CLIENT_VERSION); this.versionNr.hide_1(!0); this.menuContainer = d.findDescendant_1(GT1150.prototype.ID_CONTAINER_MENU); this.maxBetButton = d.findDescendant_1(GT834.prototype.ID_BUTTON_MAX_BET); this.betButtonUp = d.findDescendant_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP); this.betButtonDown = d.findDescendant_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN); a = d.findDescendant_1(GT834.prototype.ID_CONTAINER_LEFTALIGNED); e = d.findDescendant_1(GT834.prototype.ID_CONTAINER_RIGHTALIGNED); this.oneButtons = new java_util_JavaScriptVector(); for (f = 0; f < a.getChildCount_0(); f++) instanceOf(a.getChild_1(f), GT216) && this.oneButtons.add_1(a.getChild_1(f)); for (f = 0; f < e.getChildCount_0(); f++) instanceOf(e.getChild_1(f), GT216) && this.oneButtons.add_1(e.getChild_1(f)); this.menuButton = d.findDescendant_1(GT1150.prototype.ID_BUTTON_MENU); this.gambleButton = d.findDescendant_1(GT834.prototype.ID_BUTTON_GAMBLE); this.autoplayButtonInactive = !1; b.isFreeRoundsMode_0() || ((b = d.findDescendant_1(GT834.prototype.ID_FIELD_FREEROUNDS)), GT1560.prototype.destroyIfAlive_1(b), (b = d.findDescendant_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS)), GT1560.prototype.destroyIfAlive_1(b), (b = d.findDescendant_1(GT834.prototype.ID_LABEL_FREEROUNDS)), GT1560.prototype.destroyIfAlive_1(b), (b = d.findDescendant_1(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS)), GT1560.prototype.destroyIfAlive_1(b)); } }, setButtonClickSound_2: function (a, b) { this.soundPlayer = b; this.buttonClickSound = a; }, numberOfLinesChanged_1: function (a) { this.updateMaxBetButton_0(); }, updatePartiallyMovedButtons_1: function (a) { this.movedButtonsPartially && (this.lastState == GT725.prototype.PAYTABLE || this.lastState == GT725.prototype.PAYTABLE_FREESPIN || this.lastState == GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART || this.lastState == GT725.prototype.PAYTABLE_MUST_CHANGE_BET || this.lastState == GT725.prototype.PAYTABLE_ONLY || this.lastState == GT725.prototype.PAYTABLE_ZERO_CREDITS ? this.moveButtonsPartiallyOut_2(GT1618.prototype.PAYTABLE, a) : (this.lastState != GT725.prototype.GAMBLE && this.lastState != GT725.prototype.GAMBLE_COLLECTHALF && this.lastState != GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE && this.lastState != GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE && this.lastState != GT725.prototype.GAMBLE_REDBLACK && this.lastState != GT725.prototype.GAMBLE_REDBLACK_INACTIVE) || this.moveButtonsPartiallyOut_2(GT1618.prototype.GAMBLE, a)); }, updateMaxBetButton_0: function () { GT1560.prototype.isAlive_1(this.maxBetButton) && (GT1560.prototype.isAlive_1(this.betButtonUp) && GT1560.prototype.isAlive_1(this.betButtonDown) && this.maxBetButton.setActive_1(this.slotState.getMaxPossibleBet_0() != this.slotState.getBaseBet_0() && (this.betButtonUp.isActive_0() || this.betButtonDown.isActive_0())), 1 == GT1672.prototype.stringToInt_1(this.skinManager.getParameter_1("mobile")) || "belowspinbutton".equals_1(this.skinManager.getParameter_1("button.maxbet.placement"))) && (this.maxBetButton.isActive_0() ? this.maxBetButton.appear_1(!1) : this.maxBetButton.disappear_1(!1)); }, betPerLineChanged_1: function (a) { this.updateMaxBetButton_0(); }, playButtonClickSound_0: function () { null != this.soundPlayer && null != this.buttonClickSound && this.soundPlayer.start_1(this.buttonClickSound); }, click_1: function (a) { -1 != a.getApplicationID_0() && (this.updateMaxBetButton_0(), a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_MENU || a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_CLOSEMENU ? (a.setActive_1(!0), this.toggleMenu_0()) : (a.getApplicationID_0() != GT834.prototype.ID_BUTTON_MAX_BET && this.menuContainer.hide_1(!0), a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_SPIN && (this.timer.currentTimeMillis_0() - this.timeForSpinDown < GT728.prototype.TIME_TO_ACTIVATE_AUTOPLAY || this.autoPlayAnimationStopped || this.autoplayButtonInactive) && ((this.autoPlayAnimationStopped = !1), this.slotEventManager.fireSlotEvent_1(new GT885(GT1354.prototype.STARTSPIN, GT885.prototype.TRIGGER_BUTTON, !1))))); }, toggleMenu_0: function () { this.menuContainer.hide_1(!this.menuContainer.isHidden_0()); }, up_1: function (a) { a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_SPIN ? (this.timer.removeCallback_2(this.triggerAutospinCallback, !1), this.deleteAutoplayLoadingAnimation_1(!0)) : a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_MENU && this.timer.removeCallback_2(this.triggerShowVersionNrCallback, !1); }, down_1: function (a) { a.getApplicationID_0() != GT1150.prototype.ID_BUTTON_SPIN || this.autoplayButtonInactive || ((this.timeForSpinDown = this.timer.currentTimeMillis_0()), this.timer.triggerCallbackAfter_2(this.triggerAutospinCallback, GT728.prototype.TIME_TO_ACTIVATE_AUTOPLAY), this.timer.triggerCallbackAfter_2(this.triggerSpinButtonLoadingAnimationCallback, GT728.prototype.TIME_TO_WAIT_UNTIL_AUTOPLAY_LOADING_ANIMATION)); a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_MENU && this.timer.triggerCallbackAfter_2(this.triggerShowVersionNrCallback, GT728.prototype.TIME_TO_SHOW_VERSIONNR); }, startAutoplayLoadingAnimation_1: function (a) { a = this.spinButton.getChild_1(2); this.startAutoPlayCArea = new GT1440(a, 0, -a.getHeight_0(), a.getWidth_0(), a.getHeight_0(), new GT1634(0, 162, 229)); this.startAutoPlayCArea.setApplicationID_1(GT1150.prototype.ID_AUTOPLAY_TRIGGER); this.startAutoPlayCArea.setAlpha_1(150); new GT653(this.timer, this.startAutoPlayCArea, 0, 0, GT728.prototype.TIME_TO_ACTIVATE_AUTOPLAY - GT728.prototype.TIME_TO_WAIT_UNTIL_AUTOPLAY_LOADING_ANIMATION - 150).start_0(); }, deleteAutoplayLoadingAnimation_1: function (a) { this.timer.removeCallback_2(this.triggerSpinButtonLoadingAnimationCallback, !1); GT1560.prototype.destroyIfAlive_1(this.startAutoPlayCArea); this.startAutoPlayCArea = null; a && this.menuContainer.hide_1(!0); }, winFieldCountFinished_0: function () {}, superGamesCounted_1: function (a) {}, numberOfAutoPlaysChanged_1: function (a) {}, consoleStateChanged_2: function (a, b) { this.updateMaxBetButton_0(); this.maxGamble = !1; this.autoplayButtonInactive = a.isInActive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) || a.isInActive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S); var d = this.skinManager.getParameter_1("spinner.autoplay.show"); if (this.skinManager.hasSkinId_1("noautoplay") || "0".equals_1(d)) this.autoplayButtonInactive = !0; GT1560.prototype.isAlive_1(this.spinButton) && this.spinButton.setText_1(this.autoplayButtonInactive ? this.skinManager.getText_1("${buttontext_start}") : this.skinManager.getText_1("${autospin}")); if (a.getStateId_0() != this.lastState || b != this.lastStateActive) { d = !1; a.getStateId_0() == this.lastState && b != this.lastStateActive && (d = !0); a.getStateId_0() == GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET && this.menuContainer.hide_1(!1); (a.getStateId_0() != GT725.prototype.INACTIVE && b) || this.menuContainer.hide_1(!0); if (this.slotState.getCasinoState_0().isActivePlayer_0()) if (a.getStateId_0() == GT725.prototype.FASTSTOP || a.getStateId_0() == GT725.prototype.BEFORE_SPIN || a.getStateId_0() == GT725.prototype.INACTIVE) this.disappearInactiveButtons_0(); else if (a.getStateId_0() == GT725.prototype.FASTCOLLECTORGAMBLE) d || ((this.gambleButtonMoveInStarted = !0), this.disappearInactiveButtons_0(), this.appearActiveButtons_1(!0)); else if (a.getStateId_0() == GT725.prototype.BEFORE_GAMBLE) d || (this.disappearInactiveButtons_0(), this.appearActiveButtons_1(!this.gambleButtonMoveInStarted), (this.gambleButtonMoveInStarted = !1)); else if (a.getStateId_0() == GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE) this.dontAnimateActiveButtons_0(); else if (a.getStateId_0() == GT725.prototype.SKIPCOLLECT) this.dontAnimateActiveButtons_0(); else if (a.getStateId_0() == GT725.prototype.FASTCOLLECT) d || (GT1560.prototype.isAlive_1(this.gambleButton) && this.gambleButton.disappear_1(!0), this.appearActiveButtons_1(!0)); else if ( a.getStateId_0() == GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET || a.getStateId_0() == GT725.prototype.PAYTABLE_MUST_CHANGE_BET || a.getStateId_0() == GT725.prototype.BEFORE_SPIN_ZERO_CREDITS || a.getStateId_0() == GT725.prototype.PAYTABLE_ZERO_CREDITS ) this.menuButton.appear_1(!0), GT1560.prototype.isAlive_1(this.spinButton) && this.spinButton.appear_1(!0); else if (a.getStateId_0() == GT725.prototype.GAMBLE_REDBLACK) (d = this.lastState != GT725.prototype.BEFORE_GAMBLE), this.gambleButton.disappear_1(d), this.menuButton.isActive_0() || this.lastState == GT725.prototype.GAMBLE_REDBLACK || this.menuButton.disappear_1(d); else if (a.getStateId_0() == GT725.prototype.GAMBLE_MAXWIN || a.getStateId_0() == GT725.prototype.GAMBLE_REDBLACK_MAXWIN) this.moveButtonsPartiallyReset_0(), (this.movedButtonsPartially = !1), (this.maxGamble = !0), GT1560.prototype.isAlive_1(this.gambleButton) && this.gambleButton.disappear_1(!0); this.lastState = a.getStateId_0(); this.lastStateActive = b; } }, disappearInactiveButtons_0: function () { for (var a = 0; a < this.oneButtons.size_0(); a++) if (instanceOf(this.oneButtons.get_1(a), GT216)) { var b = this.oneButtons.get_1(a); b.isActive_0() || b.disappear_1(!1); } }, appearActiveButtons_1: function (a) { for (var b = 0; b < this.oneButtons.size_0(); b++) if (instanceOf(this.oneButtons.get_1(b), GT216)) { var d = this.oneButtons.get_1(b); d.isActive_0() && (a ? d.appearEnforced_0() : d.appear_1(!1)); } }, dontAnimateActiveButtons_0: function () { for (var a = 0; a < this.oneButtons.size_0(); a++) this.oneButtons.get_1(a).isActive_0() && this.oneButtons.get_1(a).appear_1(!0); }, moveButtonsPartiallyOut_2: function (a, b) { if (0 != this.menuButton.getAbsoluteX_0()) for (var d = 0; d < this.oneButtons.size_0(); d++) { var e = this.oneButtons.get_1(d); GT1560.prototype.isAlive_1(e) && e.isActive_0() && e.getApplicationID_0() != GT834.prototype.ID_BUTTON_GAMBLE && e.applyPartialMovement_1(!b); } }, moveButtonsPartiallyReset_0: function () { for (var a = 0; a < this.oneButtons.size_0(); a++) { var b = this.oneButtons.get_1(a); GT1560.prototype.isAlive_1(b) && b.getApplicationID_0() != GT834.prototype.ID_BUTTON_GAMBLE && b.resetPartialMovement_1(!1); } }, triggerAutoplay_0: function () { this.autoplayButtonInactive || (this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAYSETTINGS)) : this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAY))); this.deleteAutoplayLoadingAnimation_1(!0); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, drag_1: function (a) {}, mousePositionChanged_3: function (a, b, d) {}, mouseIsOutside_1: function (a) { a.getApplicationID_0() == GT1150.prototype.ID_BUTTON_SPIN && (this.timer.removeCallback_2(this.triggerAutospinCallback, !1), this.deleteAutoplayLoadingAnimation_1(!1), (this.autoPlayAnimationStopped = !0)); }, creditsHidden_1: function (a) {}, gameModeChanged_1: function (a) {}, getRootContainer_0: function () { for (var a = this.console.getParent_0(); null != a.getParent_0(); ) a = a.getParent_0(); return a; }, showVersionNr_0: function () { if (null == this.fadeVersionNrAnimator || !this.fadeVersionNrAnimator.isRunning_0()) { this.versionNr.setText_1(this.slotState.getClientVersion_0()); this.versionNr.hide_1(!1); var a = [ [500, 0, 255], [4e3, 255, 255], [500, 255, 0], ]; instanceOf(this.versionNr, GT1480) && ((this.fadeVersionNrAnimator = new GT1191(this.timer, this.versionNr, !1, a)), this.fadeVersionNrAnimator.start_0()); } }, superGamesCountedFinished_0: function () {}, guiStateFinished_1: function (a) {}, guiStateEntered_1: function (a) { a == GT422.prototype.ID ? instanceOf(this.getRootContainer_0().findDescendant_1(GT1618.prototype.GAMBLE), GT346) && !this.maxGamble && (this.moveButtonsPartiallyOut_2(GT1618.prototype.GAMBLE, !0), (this.movedButtonsPartially = !0)) : a == GT317.prototype.ID ? instanceOf(this.getRootContainer_0().findDescendant_1(GT1618.prototype.GAMBLE), GT346) && (this.moveButtonsPartiallyReset_0(), (this.movedButtonsPartially = !1)) : a == GT617.prototype.ID ? (this.moveButtonsPartiallyOut_2(GT1618.prototype.PAYTABLE, !0), (this.movedButtonsPartially = !0)) : a == GT475.prototype.ID && (this.moveButtonsPartiallyReset_0(), (this.movedButtonsPartially = !1)); }, guiStateExited_1: function (a) {}, }, "GT728", [GT547, GT1066, GT700, GT811] ), GT839 = Class.extend( { initialConstructor_0: function () { this.handler = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; this.handler = a; }, run_0: function () { this.handler.triggerAutoplay_0(); }, }, "GT839", [Runnable] ), GT571 = Class.extend( { initialConstructor_0: function () { this.handler = null; this.isSpinButton = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.handler = null; this.isSpinButton = !1; this.handler = a; this.isSpinButton = b; }, run_0: function () { this.handler.startAutoplayLoadingAnimation_1(this.isSpinButton); }, }, "GT571", [Runnable] ), GT673 = Class.extend( { initialConstructor_0: function () { this.handler = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; this.handler = a; }, run_0: function () { this.handler.showVersionNr_0(); }, }, "GT673", [Runnable] ); GT728.prototype.TIME_TO_ACTIVATE_AUTOPLAY = 1150; GT728.prototype.TIME_TO_SHOW_VERSIONNR = 3e3; GT728.prototype.TIME_TO_WAIT_UNTIL_AUTOPLAY_LOADING_ANIMATION = 200; var GT1545 = Class.extend( { initialConstructor_0: function () { this.symbolHeight = this.symbolWidth = this.rowsVisible = this.rows = this.columns = 0; this.rowY = this.reelY = this.reelX = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1545.prototype.initialConstructor_7.call(this, a, b, d, e, this.createColumnPos_3(a, d, f), this.createZeroArray_1(a), this.createRowPos_2(b, e)); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1545.prototype.initialConstructor_7.call(this, a, b, d, e, f, g, this.createRowPos_2(b, e)); }, initialConstructor_3: function (a, b, d) { GT1545.prototype.initialConstructor_7.call(this, a.columns, a.rows, a.symbolWidth, a.symbolHeight, this.createShiftedArray_2(a.reelX, b), a.reelY, this.createShiftedArray_4(a.rowY, d, 1, a.rowY.length - 1)); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.symbolHeight = this.symbolWidth = this.rowsVisible = this.rows = this.columns = 0; this.rowY = this.reelY = this.reelX = null; this.columns = a; this.rows = b; this.symbolWidth = d; this.symbolHeight = e; this.rowsVisible = b; this.reelX = [].createArray(f.length).init(0); for (a = 0; a < this.reelX.length; a++) this.reelX[a] = f[a]; this.reelY = [].createArray(g.length).init(0); for (a = 0; a < this.reelY.length; a++) this.reelY[a] = g[a]; this.rowY = [].createArray(k.length + 2).init(0); this.rowY[0] = k[0] - e; for (a = 1; a < this.rowY.length - 1; a++) this.rowY[a] = k[a - 1]; this.rowY[this.rowY.length - 1] = k[k.length - 1] + e; }, getNumberOfRows_0: function () { return this.rows; }, getNumberOfReels_0: function () { return this.columns; }, getReelX_1: function (a) { return this.reelX[a]; }, getReelY_1: function (a) { return this.reelY[a]; }, getColumnPos_1: function (a) { return this.getReelX_1(a); }, getRowPos_1: function (a) { return this.rowY[a + 1]; }, getReelsBox_0: function () { for (var a = Integer.MAX_VALUE, b = 0, d = Integer.MAX_VALUE, e = 0, f = 0; f < this.reelX.length; f++) this.reelX[f] < a ? (a = this.reelX[f]) : this.reelX[f] > b && (b = this.reelX[f]); for (f = 0; f < this.reelY.length; f++) this.reelY[f] < d ? (d = this.reelY[f]) : this.reelY[f] > e && (e = this.reelY[f]); return new GT1553(a, d, b + this.symbolWidth, e + this.symbolHeight * this.rows); }, }, "GT1545", [] ); GT1545.prototype.createShiftedArray_2 = function (a, b) { return this.createShiftedArray_4(a, b, 0, a.length); }; GT1545.prototype.createShiftedArray_4 = function (a, b, d, e) { e = [].createArray(e - d).init(0); for (var f = 0; f < e.length; f++) e[f] = a[f + d] + b; return e; }; GT1545.prototype.createRowPos_2 = function (a, b) { for (var d = [].createArray(a).init(0), e = 0; e < a; e++) d[e] = b * e; return d; }; GT1545.prototype.createZeroArray_1 = function (a) { for (var b = [].createArray(a).init(0), d = 0; d < a; d++) b[d] = 0; return b; }; GT1545.prototype.createColumnPos_3 = function (a, b, d) { b += d; d = [].createArray(a).init(0); for (var e = 0; e < a; e++) d[e] = b * e; return d; }; var GT1040 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, guiStateFinished_1: function (a) { a == GT568.prototype.ID && this.slotGui.getDeviceScreen_0().setScreenRotationPossible_1(!0); }, guiStateEntered_1: function (a) { a == GT572.prototype.ID && this.slotGui.getDeviceScreen_0().setScreenRotationPossible_1(!1); a == GT729.prototype.ID && this.slotGui.getDeviceScreen_0().setScreenRotationPossible_1(!0); }, guiStateExited_1: function (a) {}, }, "GT1040", [GT811] ), GT1206 = Class.extend( { initialConstructor_0: function () { this.console = this.slotState = this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.console = this.slotState = this.slotEventManager = null; this.slotEventManager = a; this.slotState = b; this.console = d; }, numberOfLinesChanged_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT773(GT1354.prototype.NUMLINES, a)); }, gameModeChanged_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT937(a)); }, betPerLineChanged_1: function (a) { var b = a != this.slotState.getBaseBet_0(); this.slotEventManager.fireSlotEvent_1(new GT982(a, !1)); b && this.slotEventManager.fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + a, !0)); }, numberOfAutoPlaysChanged_1: function (a) { this.slotEventManager.fireSlotEvent_1(new GT370(GT1354.prototype.AUTOPLAY_LIMIT, a)); }, click_1: function (a) { var b = null; a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAY || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAY_S ? (b = this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() ? new GT1354(GT1354.prototype.AUTOPLAYSETTINGS) : new GT1354(GT1354.prototype.AUTOPLAY)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOSTOP || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOSTOP_S ? (b = new GT1354(GT1354.prototype.AUTOSTOP)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECT || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_SKIP_COLLECT ? (b = new GT1354(GT1354.prototype.COLLECT)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE ? (b = new GT1354(GT1354.prototype.GAMBLE)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE_BLACK ? (b = new GT1354(GT1354.prototype.GAMBLE_BLACK)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAMBLE_RED ? (b = new GT1354(GT1354.prototype.GAMBLE_RED)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE ? (b = new GT1354(GT1354.prototype.PAYTABLE)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT ? (this.slotState.isPaytableNextForWrapper_0() || (b = new GT1354(GT1354.prototype.PAYTABLE_NEXT)), GT1242.prototype.fireWrapperStateEvent_2( GT514.prototype.getInstance_0().getSlotGui_0().getGameWrapperInterfaceCaller_0(), GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_PAYTABLENEXTBUTTONPRESSED).getMainTable_0() )) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_START || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_STOP ? (b = new GT885(GT1354.prototype.STARTSPIN, GT885.prototype.TRIGGER_BUTTON, a.getApplicationID_0() == GT834.prototype.ID_BUTTON_STOP)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COLLECTHALF ? (b = new GT1354(GT1354.prototype.HALF_COLLECT)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PAYOUT ? (b = new GT1354(GT1354.prototype.PAYOUT)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_FLIP_SCREEN ? (b = new GT1354(GT1354.prototype.FLIP_SCREEN)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_GAME_SELECT ? (b = new GT1354(GT1354.prototype.GAME_SELECT)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MAX_BET ? (b = new GT982(this.slotState.getMaxPossibleBet_0(), !1)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MIN_BET ? (b = new GT982(this.slotState.getMinPossibleBet_0(), !1)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAYMETER ? (b = new GT1354(GT1354.prototype.AUTOPLAYMETER_INCREASE)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL && (b = new GT1354(GT1354.prototype.AUTOPLAYMETER_RESET)); null != b && this.slotEventManager.fireSlotEvent_1(b); b = null; a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE || a.getApplicationID_0() == GT834.prototype.ID_BUTTON_COVER_CREDITS ? (b = this.console.isHideCreditValue_0() ? new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_COVERCREDIT, GT981.prototype.VALUE_COVERCREDIT_COVER) : new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_COVERCREDIT, GT981.prototype.VALUE_COVERCREDIT_UNCOVER)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MAX_BET ? (b = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + this.slotState.getMaxPossibleBet_0() + ":MAX", !0)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MIN_BET ? (b = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + this.slotState.getMinPossibleBet_0() + ":MIN", !0)) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS && (b = new GT981(GT1354.prototype.WRAPPER, GT697.prototype.KEY_OPEN_PLURIUS_SETTINGS, "", !0)); null != b && this.slotEventManager.fireSlotEvent_1(b); }, winFieldCountFinished_0: function () {}, superGamesCounted_1: function (a) {}, consoleStateChanged_2: function (a, b) { var d = new GT376(a, b); this.slotEventManager.fireSlotEvent_1(d); }, up_1: function (a) {}, down_1: function (a) {}, creditsHidden_1: function (a) { var b = null, b = a ? new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_COVERCREDIT, GT981.prototype.VALUE_COVERCREDIT_COVER) : new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_COVERCREDIT, GT981.prototype.VALUE_COVERCREDIT_UNCOVER); this.slotEventManager.fireSlotEvent_1(b); }, superGamesCountedFinished_0: function () {}, }, "GT1206", [GT547] ), GT840 = Class.extend( { initialConstructor_0: function () { this.gui = null; this.lastSetGameMode = this.lastSetNumberOfLines = this.lastSetBetPerLine = 0; this.wasMinbetButtonPressed = this.wasMaxbetButtonPressed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gui = null; this.lastSetGameMode = this.lastSetNumberOfLines = this.lastSetBetPerLine = 0; this.wasMinbetButtonPressed = this.wasMaxbetButtonPressed = !1; this.gui = a; this.lastSetGameMode = this.lastSetNumberOfLines = this.lastSetBetPerLine = -1; }, numberOfLinesChanged_1: function (a) { if (this.lastSetNumberOfLines != a && -1 != this.lastSetNumberOfLines) { var b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_LINECHANGE), d = b.getValueTable_0(); d.put_2(GT697.prototype.EVENT_ENTRY_LINES, new Double(a)); d.put_2(GT697.prototype.EVENT_ENTRY_BASEBET, new Double(this.gui.getSlotState_0().getBaseBet_0())); d.put_2(GT697.prototype.EVENT_ENTRY_BETMULTIPLIER, new Double(this.gui.getSlotState_0().getBetMultiplier_0())); d.put_2(GT697.prototype.EVENT_ENTRY_WASMAXBETREQUESTED, new Boolean(this.wasMaxbetButtonPressed)); d.put_2(GT697.prototype.EVENT_ENTRY_WASMINBETREQUESTED, new Boolean(this.wasMinbetButtonPressed)); GT1242.prototype.fireWrapperStateEvent_2(this.gui.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()); } this.lastSetNumberOfLines = a; }, gameModeChanged_1: function (a) { if (this.lastSetGameMode != a && -1 != this.lastSetGameMode) { var b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_GAMEMODECHANGE), d = b.getValueTable_0(); d.put_2(GT697.prototype.EVENT_ENTRY_GAMEMODE, new Double(a)); d.put_2(GT697.prototype.EVENT_ENTRY_BASEBET, new Double(this.gui.getSlotState_0().getBaseBet_0())); d.put_2(GT697.prototype.EVENT_ENTRY_BETMULTIPLIER, new Double(this.gui.getSlotState_0().getDefinition_0().getBetMultiplierForGameMode_1(a))); GT1242.prototype.fireWrapperStateEvent_2(this.gui.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()); } this.lastSetGameMode = a; }, betPerLineChanged_1: function (a) { if (this.lastSetBetPerLine != a && -1 != this.lastSetBetPerLine) { var b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_BETCHANGE), d = b.getValueTable_0(); d.put_2(GT697.prototype.EVENT_ENTRY_BASEBET, new Double(a)); d.put_2(GT697.prototype.EVENT_ENTRY_BETMULTIPLIER, new Double(this.gui.getSlotState_0().getBetMultiplier_0())); d.put_2(GT697.prototype.EVENT_ENTRY_WASMAXBETREQUESTED, new Boolean(this.wasMaxbetButtonPressed)); d.put_2(GT697.prototype.EVENT_ENTRY_WASMINBETREQUESTED, new Boolean(this.wasMinbetButtonPressed)); GT1242.prototype.fireWrapperStateEvent_2(this.gui.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()); } this.lastSetBetPerLine = a; this.wasMinbetButtonPressed = this.wasMaxbetButtonPressed = !1; }, click_1: function (a) { a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MAX_BET ? (this.wasMaxbetButtonPressed = !0) : a.getApplicationID_0() == GT834.prototype.ID_BUTTON_MIN_BET && (this.wasMinbetButtonPressed = !0); }, up_1: function (a) {}, down_1: function (a) {}, winFieldCountFinished_0: function () {}, superGamesCounted_1: function (a) {}, superGamesCountedFinished_0: function () {}, numberOfAutoPlaysChanged_1: function (a) {}, consoleStateChanged_2: function (a, b) {}, creditsHidden_1: function (a) {}, }, "GT840", [GT547] ), GT1618 = Class.extend( { initialConstructor_0: function () { this.freeGameSounds = this.baseGameMelodyHandler = this.winSoundsInFreeGames = this.winSounds = this.currencyFormatter = this.slotEventManager = this.consoleStates = this.customConsoles = this.slotConsole = this.winSwitcher = this.mainContainer = this.layout = this.slotState = this.skinManager = this.guiState = this.timer = this.skin = null; this.canvasRenderer = this.inSilentMode = !1; this.deviceScreen = this.gameWrapperInterfaceCaller = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.freeGameSounds = this.baseGameMelodyHandler = this.winSoundsInFreeGames = this.winSounds = this.currencyFormatter = this.slotEventManager = this.consoleStates = this.customConsoles = this.slotConsole = this.winSwitcher = this.mainContainer = this.layout = this.slotState = this.skinManager = this.guiState = this.timer = this.skin = null; this.canvasRenderer = this.inSilentMode = !1; this.deviceScreen = this.gameWrapperInterfaceCaller = null; this.slotState = a; this.skin = b; this.mainContainer = d; this.timer = e; this.guiState = f; this.skinManager = k; this.layout = b.reelLayout_0().create_0(); this.slotEventManager = g; this.currencyFormatter = m; g.addSlotListener_1(new GT1041(this)); g.addSlotListener_1(new GT618(this)); g.addSlotListener_1(new GT619(this)); g.addSlotListener_1(new GT423(this)); g.addSlotListener_1(new GT154(this)); g.addSlotListener_1(new GT988(this)); g.addSlotListener_1(new GT113(this)); 0 < GT1672.prototype.stringToInt_1(this.getSkinManager_0().getParameter_1("autoplaymeter")) && g.addSlotListener_1(new GT730(this)); 3 == GT1672.prototype.stringToInt_1(this.getSkinManager_0().getParameter_1("buttonpanel")) && g.addSlotListener_1(new GT897(this)); this.addScreenRotationHandler_0(); }, destroy_0: function () { this.skinManager = this.skin = null; this.mainContainer.isAlive_0() && this.mainContainer.destroy_0(); null != this.winSwitcher && (this.winSwitcher.destroy_0(), (this.winSwitcher = null)); }, getSlotState_0: function () { return this.slotState; }, getMainContainer_0: function () { return this.mainContainer; }, getSkin_0: function () { return this.skin; }, getTimer_0: function () { return this.timer; }, getGuiStateMachine_0: function () { return this.guiState; }, getSkinManager_0: function () { return this.skinManager; }, getSlotEventManager_0: function () { return this.slotEventManager; }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, getSoundPlayer_0: function () { return this.skinManager.getSoundPlayer_0(); }, getWinSounds_0: function () { if (this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() && !this.slotState.getFreeSpinState_0().isBeforeFirstFreeSpin_0() && null != this.getSkin_0().winSoundsInFreeGames_0()) return null == this.winSoundsInFreeGames && (this.winSoundsInFreeGames = this.getSkin_0().winSoundsInFreeGames_0().create_1(this.skinManager)), this.winSoundsInFreeGames; null == this.winSounds && (this.winSounds = this.getSkin_0().winSounds_0().create_1(this.skinManager)); return this.winSounds; }, getBaseGameMelodies_0: function () { null == this.baseGameMelodyHandler && (this.baseGameMelodyHandler = this.getSkin_0().baseGameMelodies_0().create_1(this.skinManager)); return this.baseGameMelodyHandler; }, getFreeGameSounds_0: function () { null == this.freeGameSounds && (this.freeGameSounds = this.getSkin_0().freeGameSounds_0().create_1(this.skinManager)); return this.freeGameSounds; }, getLayout_0: function () { return this.layout; }, startBaseGameMelody_0: function () { this.getBaseGameMelodies_0().start_0(); }, initGuiStates_0: function () { this.guiState.addGuiState_1(new GT476(this)); this.guiState.addGuiState_1(new GT729(this)); this.guiState.addGuiState_1(new GT777(this)); this.guiState.addGuiState_1(new GT731(this)); this.guiState.addGuiState_1(new GT620(this)); this.guiState.addGuiState_1(new GT621(this)); this.guiState.addGuiState_1(new GT573(this)); this.guiState.addGuiState_1(new GT519(this)); this.guiState.addGuiState_1(new GT317(this)); this.guiState.addGuiState_1(new GT422(this)); this.guiState.addGuiState_1(new GT318(this)); this.guiState.addGuiState_1(new GT520(this)); this.guiState.addGuiState_1(new GT574(this)); this.guiState.addGuiState_1(new GT237(this)); this.guiState.addGuiState_1(new GT475(this)); this.guiState.addGuiState_1(new GT622(this)); this.guiState.addGuiState_1(new GT617(this)); this.guiState.addGuiState_1(new GT477(this)); this.guiState.addGuiState_1(new GT572(this)); this.guiState.addGuiState_1(new GT575(this)); this.guiState.addGuiState_1(new GT424(this)); this.guiState.addGuiState_1(new GT425(this)); this.guiState.addGuiState_1(new GT576(this)); this.guiState.addGuiState_1(new GT238(this)); this.guiState.addGuiState_1(new GT239(this)); this.guiState.addGuiState_1(new GT1042(this)); this.guiState.addGuiState_1(new GT568(this)); this.guiState.addGuiState_1(new GT778(this)); this.guiState.addGuiState_1(new GT114(this)); this.guiState.addGuiState_1(new GT217(this)); this.guiState.addGuiState_1(new GT115(this)); }, getSlotConsole_0: function () { if (null == this.slotConsole || !GT1560.prototype.isAlive_1(this.slotConsole)) { this.slotConsole = this.mainContainer.findDescendant_1(GT1618.prototype.CONSOLE); if (null == this.slotConsole) return null; this.slotConsole.setConsoleStateHandler_1(this.getConsoleStateHandler_0()); this.slotConsole.addConsoleListener_1(new GT840(this)); var a = new GT1206(this.slotEventManager, this.slotState, this.slotConsole); this.slotConsole.addConsoleListener_1(a); "1".equals_1(this.getSkinManager_0().getParameter_1("onebutton")) && ((a = new GT728(this.getSlotEventManager_0(), this.getSlotState_0(), this.slotConsole, this.getTimer_0(), this.getSkinManager_0())), this.getGuiStateMachine_0().addGuiStateListener_1(a), this.slotConsole.addConsoleListener_1(a)); a = this.getSkinManager_0().getParameter_1("buttonpanel"); a = null == a || "0".equals_1(a) || "3".equals_1(a); if ("plurius2015".equals_1(this.getSkinManager_0().getParameter_1("look")) && a) { a = null; null != this.mainContainer && (a = this.mainContainer.findDescendant_1(GT834.prototype.ID_SPINNER_LINES)); if ( null != this.mainContainer && ((null != this.getSlotState_0().getDefinition_0().getPlayLines_0() && 1 == this.getSlotState_0().getDefinition_0().getPlayLines_0().size_0()) || !GT1560.prototype.isAlive_1(a)) ) { var b = this.mainContainer.findDescendant_1(GT834.prototype.ID_LABEL_LINES), d = this.mainContainer.findDescendant_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES); GT1560.prototype.destroyIfAlive_1(a); GT1560.prototype.destroyIfAlive_1(b); GT1560.prototype.destroyIfAlive_1(d); } this.slotConsole.addConsoleListener_1( new GT212(this.getMainContainer_0(), this.getTimer_0(), this.getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/res/thinclient/plurius_2015/click.png")) ); this.slotState.isGameModeAsBet_0() && ((a = this.mainContainer.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES)), null != a && instanceOf(a, GT521) && (a.setFormatter_1(new GT986(this.getCurrencyFormatter_0(), this.slotState)), a.setNrOfValuesPerPage_1(this.slotState.getDefinition_0().getBetMultipliers_0().size_0()))); } a = this.slotEventManager.getSlotListeners_0(); for (b = 0; b < a.length; ++b) instanceOf(a[b], GT1043) && this.slotEventManager.removeSlotListener_1(a[b]); this.slotEventManager.addSlotListener_1(new GT1043(this.slotConsole, this.getSkinManager_0(), this.slotState)); if (null != this.customConsoles && 0 < this.customConsoles.size_0()) { for (b = 0; b < this.customConsoles.size_0(); b++) this.slotConsole.addCustomConsole_1(this.customConsoles.elementAt_1(b)); this.slotConsole.addCustomConsoleListener_1(new GT75(this.getSlotEventManager_0(), this.getSlotState_0())); } } return this.slotConsole; }, addScreenRotationHandler_0: function () { this.getGuiStateMachine_0().addGuiStateListener_1(new GT1040(this)); }, getConsoleStateHandler_0: function () { null == this.consoleStates && (this.consoleStates = new GT76(this.getGuiStateMachine_0())); return this.consoleStates; }, setCustomConsoles_1: function (a) { this.customConsoles = a; }, updateConsole_0: function () { this.slotConsole.setPossibleLineNumbers_2(this.slotState.getDefinition_0().getPlayLines_0().toArray_0(), this.slotState.getNumberOfLines_0()); this.slotConsole.setPossibleGameModes_2(this.slotState.getDefinition_0().getGameModes_0().toArray_0(), this.slotState.getGameMode_0()); this.slotConsole.setBetMultiplier_1(this.slotState.getBetMultiplier_0()); this.slotConsole.setPossibleBetPerLine_2(this.slotState.getBaseBets_0(), this.slotState.getBaseBet_0()); this.slotConsole.setCredits_2(this.slotState.getCredits_0(), !0); this.slotConsole.setLastWin_1(this.slotState.getLastWin_0()); this.slotConsole.setSuperGames_4(this.slotState.getSuperGameState_0().getBalance_0(), this.slotState.getSuperGameState_0().getLabel_0(), this.slotState.getSuperGameState_0().getColor_0(), !0); this.slotConsole.setHideValueFields_1(!this.slotState.getCasinoState_0().hasOpenSession_0()); this.slotConsole.setLastWinAvailable_1(!this.slotState.getCasinoState_0().isInReplayMode_0()); this.slotState.isAutoPlaying_0() && 0 < this.slotState.getDefinition_0().getAutoPlayCountMax_0() ? this.slotConsole.setAutoplayCounter_1(this.slotState.getAutoPlayCounter_0()) : this.slotConsole.setAutoplayCounter_1(this.slotState.getAutoPlayLimit_0()); if (this.slotState.isFreeRoundsMode_0()) { this.slotConsole.setFreeRoundsWinnings_1(this.slotState.getFreeRoundsWinnings_0()); var a = this.getSkinManager_0().getText_1("${console_freerounds}"), a = GT1677.prototype.replaceInString_3(a, "#0", "" + (this.slotState.getFreeRoundsPlayed_0() + 1)), a = GT1677.prototype.replaceInString_3(a, "#1", "" + this.slotState.getFreeRoundsWon_0()); this.slotState.getFreeRoundsPlayed_0() == this.slotState.getFreeRoundsWon_0() && (a = ""); this.slotConsole.setFreeRoundsText_1(a); } this.slotState.isAutoplayMeter_0() && (this.slotState.getCredits_0() < this.slotState.getAutoplayMeter_0() && (this.slotState.setAutoplayMeter_1(this.slotState.getCredits_0()), (a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_AUTOPLAYMETERCHANGE)), a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(this.slotState.getAutoplayMeter_0())), GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0())), this.slotConsole.setAutoplayMeter_2(this.slotState.getAutoplayMeter_0(), this.slotState.isAutoPlaying_0())); }, updatePaytableIfAvailable_0: function () { var a = this.mainContainer.findDescendant_1(GT1618.prototype.PAYTABLE); null != a && 0 != a.getChildCount_0() && (this.updatePaytableReelset_1(a), a.setBet_2(this.slotState.getBaseBet_0(), this.slotState.getBetMultiplier_0()), a.setGambleLimit_3(this.slotState.getGambleLimit_0(), this.slotState.getDefinition_0().getMaxGambleSteps_0(), 0 < this.slotState.getDefinition_0().getMaxGambleAbsoluteWin_0()), a.updateJackpotFields_0()); }, updatePaytableReelset_1: function (a) { if (null != a) { var b = 0; this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() && (b = this.slotState.getFreeSpinState_0().getNextSpinReelset_0()); a.setCurrentReelset_1(b); this.slotState.isGameModeToReelIndexMappingEnabled_0() && ((!this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() && !this.slotState.getFreeSpinState_0().isBeforeFirstFreeSpin_0()) || this.slotState.getFreeSpinState_0().isAtLastFreeSpin_0()) && a.setCurrentReelset_1(this.slotState.getReelForGameMode_1(this.slotState.getGameMode_0())); } }, getWinSwitcher_0: function () { if (null == this.winSwitcher) { var a = this.mainContainer.findDescendant_1(GT1618.prototype.HIGHLIGHT); this.winSwitcher = new GT989(this.timer, this.layout, this.slotState.getDefinition_0().getWinLines_0(), a, this.createSlotGuiWinVisualFactory_0(), -1, this.slotState); a = new GT942(this.winSwitcher, this.getSlotConsole_0(), this.slotState.getSuperGameState_0()); this.winSwitcher.addWinStartCallback_1(a); } return this.winSwitcher; }, generateFakeWinForFinalWinSound_1: function (a) { if (null != a) { if (instanceOf(a, GT1599)) return new GT987(a.line, a.start, a.num); if (instanceOf(a, GT1512)) return new GT841(a.symbol, a.start, a.num, a.ordered, a.getScatterPositions_0()); } return new GT987(0, 0, 0); }, modifyWinsForWinSwitcher_1: function (a) { if (null != a && 0 < a.length && null != a[0] && "MYSTERY".equals_1(a[0].getDetails_0())) return a; for (var b = !(null == this.getWinSounds_0().getCountUpSound_0() || !this.getWinSounds_0().hasFinalWinSounds_0()), d = new java_util_JavaScriptVector(), e = !1, f = 0; f < a.length; f++) { var g = a[f]; if (b && this.getWinSounds_0().isPlayFinalSoundsBeforeSpecialSounds_0()) { var k = this.getWinSounds_0().getSound_2(a[f].symbol, a[f].num); null == k && 0 < g.payCash && null != this.slotState && (k = this.getWinSounds_0().getRelativePayoutSound_1(g.payCash / this.slotState.getTotalBet_0())); null != k && !e && 0 < f && ((k = GT989.prototype.getNumberOfCountUpSoundWins_2(a, this.getWinSounds_0())), 0 < k && f >= k && ((e = !0), d.add_1(this.generateFakeWinForFinalWinSound_1(a[f - 1])))); } ((instanceOf(g, GT1305) || instanceOf(g, GT1356)) && "WinStorage".equals_1(g.getDetails_0())) || d.add_1(g); } b && !e && 0 < a.length && 0 < d.size_0() && 0 < GT989.prototype.getNumberOfCountUpSoundWins_2(a, this.getWinSounds_0()) && d.add_1(this.generateFakeWinForFinalWinSound_1(a[a.length - 1])); a = [].createArray(d.size_0()); for (f = 0; f < d.size_0(); f++) a[f] = d.elementAt_1(f); return a; }, triggerSymbolHighlightVideoLoading_1: function (a) { var b = this.mainContainer.findDescendant_1(GT1618.prototype.HIGHLIGHT); null != b && instanceOf(b, GT319) && this.triggerSymbolHighlightVideoLoadingImpl_2(b, a); }, triggerSymbolHighlightVideoLoadingImpl_2: function (a, b) { if (instanceOf(a, GT152)) a.triggerLoading_4(this.slotState.getReelPositions_0(), this.slotState.getCurrentReelSet_0(), this.modifyWinsForWinSwitcher_1(b), this.slotState.getDefinition_0().getWinLines_0()); else if (instanceOf(a, GT78)) for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); null != e && instanceOf(e, GT319) && this.triggerSymbolHighlightVideoLoadingImpl_2(e, b); } }, startWinSwitcher_1: function (a) { this.startWinSwitcherWithWins_2(this.slotState.getWins_0(), a); }, startWinSwitcherWithWins_2: function (a, b) { this.getWinSwitcher_0().setWinSounds_2(this.getWinSounds_0(), this.skinManager.getSoundPlayer_0()); this.getWinSwitcher_0().start_4(this.modifyWinsForWinSwitcher_1(a), this.slotState.getReelPositions_0(), this.slotState.getCurrentReelSet_0(), b); }, updateStoppedReels_0: function () { this.mainContainer.findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbols_3(this.slotState.getReelPositions_0(), this.slotState.getCurrentReelSet_0(), this.slotState.getAllWinPositions_0()); }, showWinLines_0: function () { this.getWinSwitcher_0().isRunning_0() && this.getWinSwitcher_0().stop_0(); this.updateStoppedReels_0(); this.mainContainer.findDescendant_1(GT1618.prototype.STOPPED_REELS).removeLosingSymbolEffect_0(); var a = this.mainContainer.findDescendant_1(GT1618.prototype.WINLINES); a.showAllTabs_1(!1); a = this.mainContainer.findDescendant_1(GT1618.prototype.WINLINES_NET); a.showAllTabs_1(!1); for (var b = 0; b < this.slotState.getNumberOfLines_0(); b++) a.showTab_2(b, !0); this.slotState.isPaytableOpen_0() || a.showLines_1(this.slotState.getNumberOfLines_0()); }, determineWinSound_2: function (a, b) { return this.determineWinSound_1(a[b]); }, determineWinSound_1: function (a) { if (instanceOf(a, GT987) || instanceOf(a, GT841)) return null; var b = this.getWinSounds_0(), d = null; null != b && ((d = b.getSound_2(a.symbol, a.num)), null == d && 0 < a.payCash && null != this.slotState && (d = b.getRelativePayoutSound_1(a.payCash / this.slotState.getTotalBet_0()))); return d; }, determineCustomWinTime_2: function (a, b) { var d = this.getWinSounds_0(); if (null != d) { var e = a[b], f = d.getCustomTime_2(e.symbol, e.num); 0 > f && 0 < e.payCash && (f = d.getRelativePayoutCustomTime_1(e.payCash / this.slotState.getTotalBet_0())); return f; } return -1; }, determineFinalWinSound_2: function (a, b) { var d = this.getWinSounds_0(), e = instanceOf(a[b], GT987), f = instanceOf(a[b], GT841); if ((!d.hasFinalWinSounds_0() || (!e && !f)) && a.length >= d.getCountUpSoundThreshold_0()) return null; e = this.slotState.getWinSum_1(!1); f = this.slotState.getTotalBet_0(); return d.getFinalSound_1(e / f); }, createWinVisual_3: function (a, b, d) { if (null != a && null != a[b] && "MYSTERY".equals_1(a[b].getDetails_0())) return this.createMysteryPotWinVisual_2(a[b], d); var e = this.getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES), f = null; if (null != a && instanceOf(a[b], GT1356)) f = new GT732(this.getTimer_0(), 0, e, this.currencyFormatter); else if (d) { d = this.determineWinSound_2(a, b); var g = this.determineFinalWinSound_2(a, b), f = this.skinManager.getSoundPlayer_0(), k = this.getBigWinVisual_3(a[b], e, d); if (null != k) return this.updateJackpotFields_1(a[b]), k; null == d ? null == g ? ((a = this.determineWinVisualDurationForCountUp_0()), (f = new GT732(this.getTimer_0(), a, e, this.currencyFormatter))) : (f = new GT732(this.getTimer_0(), e, g, f, this.currencyFormatter)) : ((a = this.determineCustomWinTime_2(a, b)), (f = new GT732(this.getTimer_0(), e, d, f, a, this.currencyFormatter))); } else f = new GT732(this.getTimer_0(), 1e3, e, this.currencyFormatter); null != f && f.setSuperGameState_1(this.getSlotState_0().getSuperGameState_0()); return f; }, createMysteryPotWinVisual_2: function (a, b) { return new GT577(this.currencyFormatter, this.getMainContainer_0().findDescendant_1(GT1618.prototype.BIG_WIN_VISUALIZATION_CONTAINER), this.skinManager, b ? -1 : 1e3); }, determineWinVisualDurationForCountUp_0: function () { if (null != this.getWinSounds_0().getCountUpSound_0()) { var a = 0; 0 != this.getWinSwitcher_0().getCurrentWinIndex_0() && 0 != this.getWinSounds_0().getCountUpSoundSoundStepDuration_0() && ((a = this.getTimer_0().currentTimeMillis_0() - this.getWinSwitcher_0().getCountUpSoundStartTime_0()), (a = this.getWinSounds_0().getCountUpSoundSoundStepDuration_0() * this.getWinSwitcher_0().getCurrentWinIndex_0() - a)); a = this.getWinSounds_0().getCountUpSoundSoundStepDuration_0() + a; return Math.max_2(0, a); } return 1e3; }, createHighWinNotificationWinVisual_1: function (a) { null == this.winSounds && (this.winSounds = this.getSkin_0().winSounds_0().create_1(this.skinManager)); a = this.getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a = new GT240(this.getTimer_0(), a, this.winSounds.getHighWinNotificationSound_0(), this.skinManager.getSoundPlayer_0(), this.currencyFormatter, this.getSlotConsole_0(), this.getSkinManager_0()); a.setHighWinNotificationSoundStartPosition_1(this.winSounds.getHighWinNotificationSoundStartPosition_0()); a.setHighWinNotificationSoundRestartPosition_1(this.winSounds.getHighWinNotificationSoundRestartPosition_0()); a.setHighWinNotificationSoundLoopEndPosition_1(this.winSounds.getHighWinNotificationSoundLoopEndPosition_0()); a.setHighWinNotificationSoundFileStepsCount_1(this.winSounds.getHighWinNotificationSoundFileStepsCount_0()); a.setHighWinNotificationSoundSingleRingStepLength_1(this.winSounds.getHighWinNotificationSoundSingleRingStepLength_0()); return a; }, getBigWinVisual_3: function (a, b, d) { var e = this.skin.bigWinVisual_0(); if (null == e) return null; var f = this.mainContainer.findDescendant_1(GT1618.prototype.BIG_WIN_VISUALIZATION_CONTAINER); if (null == f) return null; f.hide_1(!1); return e.create_7(f, a, d, b, this.slotState.getCasinoState_0().isActivePlayer_0(), this.currencyFormatter, this.skinManager); }, setJackpotText_2: function (a, b) { if (a.getSymbol_0() == b.symbol && a.getNumber_0() == b.num) { var d = "", d = instanceOf(this.getCurrencyFormatter_0(), GT711) ? this.getCurrencyFormatter_0().format_2(b.payCash, GT711.prototype.OMIT_CENT_NEVER) : this.currencyFormatter.format_1(b.payCash); a.setText_1(d); } }, updateJackpotFields_1: function (a) { var b = this.getMainContainer_0().findDescendant_1(GT1618.prototype.JACKPOT_VALUE_CONTAINER); if (GT1560.prototype.isAlive_1(b) && instanceOf(a, GT1512)) if (instanceOf(b, GT779)) this.setJackpotText_2(b, a); else if (instanceOf(b, GT1437)) for (var d = 0; d < b.getChildCount_0(); d++) { var e = b.getChild_1(d); instanceOf(e, GT779) && this.setJackpotText_2(e, a); } }, setJackpotVisualsLocked_2: function (a, b) { var d = this.getMainContainer_0().findDescendant_1(GT1618.prototype.JACKPOT_VALUE_CONTAINER); if (GT1560.prototype.isAlive_1(d)) if (instanceOf(d, GT917)) d.setLocked_1(a); else if (instanceOf(d, GT1437)) for (var e = 0; e < d.getChildCount_0(); e++) { var f = d.getChild_1(e); instanceOf(f, GT917) && f.setLocked_1(a); } d = this.getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); b && null != d && 0 < d.getChildCount_0() && d.setJackpotVisualsLocked_1(a); }, showAllWinHighlightsAtStart_2: function (a, b) { return !0; }, setInSilentMode_1: function (a) { if (this.inSilentMode != a) { var b = this.inSilentMode; this.inSilentMode = a; if (this.getSlotState_0().getCasinoState_0().isActionAllowed_0() || GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0()) this.getBaseGameMelodies_0().setSilent_1(a), this.getFreeGameSounds_0().setBackgroundSoundSilent_1(a); this.notifySilentMode_2(a, b); this.getGuiStateMachine_0().notifySilentMode_1(a); } }, notifySilentMode_2: function (a, b) {}, setOrientationSensorManager_1: function (a) { this.getDeviceScreen_0().setOrientationSensorManager_1(a); }, getOrientationSensorManager_0: function () { return this.getDeviceScreen_0().getOrientationSensorManager_0(); }, getDeviceScreen_0: function () { return this.deviceScreen; }, setDeviceScreen_1: function (a) { this.deviceScreen = a; }, setCanvasRendererFlag_1: function (a) { this.canvasRenderer = a; }, isCanvasRenderer_0: function () { return this.canvasRenderer; }, getJackpotNameForMessage_1: function (a) { return a; }, isInSilentMode_0: function () { return this.inSilentMode; }, isHidingCurrencySymbols_0: function () { return "1".equals_1(this.getSkinManager_0().getParameter_1("hidecurrencysymbols")); }, isOmitCentsOnPaytableForHighValuesEnabled_0: function () { return "1".equals_1(this.getSkinManager_0().getParameter_1("omitcentsonpaytableforhighvalues")); }, createSlotGuiWinVisualFactory_0: function () { return new GT944(this); }, setGameWrapperInterfaceCaller_1: function (a) { this.gameWrapperInterfaceCaller = a; }, getGameWrapperInterfaceCaller_0: function () { return this.gameWrapperInterfaceCaller; }, getReelsX_0: function () { return this.getSkin_0().getInnerMainGuiX_0() + this.getSkin_0().getReelX_0(); }, getReelsY_0: function () { return this.getSkin_0().getReelY_0(); }, getReelsWidth_0: function () { return this.layout.getColumnPos_1(this.layout.columns - 1) + this.layout.symbolWidth; }, getReelsHeight_0: function () { return this.layout.rows * this.layout.symbolHeight; }, }, "GT1618", [] ); GT1618.prototype.MAIN_GUI_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.BACKGROUND_PARENT_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.BACKGROUND_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.GAME_LOGO_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.PLATFORM_LOGO_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.BACKGROUND_DECORATING_LOGO_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.INNER_MAIN_GUI_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.REELS_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.STOPPED_REELS_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.HIGHLIGHT_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.PAYTABLE_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.PAYTABLE_WIN_TABLE_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.DEFAULT_PAYTABLE_IMAGE = GT1560.prototype.generateID_0(); GT1618.prototype.GAMBLE_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.FREEGAMESTARTEND_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.SUPERGAME_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.SPECIALWINVISUALIZATION_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.REELS = GT1560.prototype.generateID_0(); GT1618.prototype.STOPPED_REELS = GT1560.prototype.generateID_0(); GT1618.prototype.WINLINES = GT1560.prototype.generateID_0(); GT1618.prototype.WINLINES_NET = GT1560.prototype.generateID_0(); GT1618.prototype.BIG_WIN_VISUALIZATION_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.HIGHLIGHT = GT1560.prototype.generateID_0(); GT1618.prototype.CONSOLE = GT1560.prototype.generateID_0(); GT1618.prototype.PAYTABLE = GT1560.prototype.generateID_0(); GT1618.prototype.GAMBLE = GT1560.prototype.generateID_0(); GT1618.prototype.FREEGAMESTARTEND = GT1560.prototype.generateID_0(); GT1618.prototype.SUPERGAME = GT1560.prototype.generateID_0(); GT1618.prototype.SPECIALWINVISUALIZATION = GT1560.prototype.generateID_0(); GT1618.prototype.JACKPOT_VALUE_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.JACKPOT_WIN_FIELD = GT1560.prototype.generateID_0(); GT1618.prototype.WINLINE_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.WINLINENET_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.SYMBOL_IMAGE_HIGHLIGHT = GT1560.prototype.generateID_0(); GT1618.prototype.SYMBOL_VIDEO_HIGHLIGHT = GT1560.prototype.generateID_0(); GT1618.prototype.SYMBOL_SPINE_HIGHLIGHT = GT1560.prototype.generateID_0(); GT1618.prototype.RESERVED_AREA_TOP_CONTAINER = GT1560.prototype.generateID_0(); GT1618.prototype.RESERVED_AREA_CONTAINER = GT1560.prototype.generateID_0(); var GT730 = Class.extend( { initialConstructor_0: function () { this.slotState = this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = this.slotGui = null; this.slotGui = a; this.slotState = a.getSlotState_0(); }, newSlotEvent_1: function (a) { var b = this.slotGui.getGuiStateMachine_0().getCurrentStateId_0(), d = -1; (b != GT729.prototype.ID && b != GT777.prototype.ID && b != GT620.prototype.ID && b != GT621.prototype.ID && b != GT575.prototype.ID && b != GT519.prototype.ID) || a.getId_0() != GT1354.prototype.AUTOPLAYMETER_INCREASE || ((d = this.slotState.getAutoplayMeter_0() + this.slotState.getAutoplayMeterStep_0()), d > this.slotState.getCredits_0() && (d = this.slotState.getCredits_0())); a.getId_0() == GT1354.prototype.AUTOPLAYMETER_DECREASE ? (d = this.slotState.getAutoplayMeter_0() - this.slotState.getTotalBet_0()) : a.getId_0() == GT1354.prototype.AUTOPLAYMETER_RESET && (d = 0); 0 <= d && (this.slotState.setAutoplayMeter_1(d), this.sendChangeWrapperEvent_1(d), this.slotGui.updateConsole_0()); }, sendChangeWrapperEvent_1: function (a) { var b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_AUTOPLAYMETERCHANGE); b.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(a)); GT1242.prototype.fireWrapperStateEvent_2(this.slotGui.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()); }, }, "GT730", [GT922] ), GT619 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, newSlotEvent_1: function (a) { if (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED) { var b = !0; instanceOf(a, GT426) && a.getModalDialogId_0() == a.getInfoDialogId_0() && (b = !1); b && this.slotGui.getBaseGameMelodies_0().setSilent_1(!0); } else a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && (this.slotGui.getBaseGameMelodies_0().setSilent_1(this.slotGui.isInSilentMode_0()), this.slotGui.setInSilentMode_1(this.slotGui.isInSilentMode_0())); }, }, "GT619", [GT922] ), GT113 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; this.previousSoundPlayerActiveState = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.previousSoundPlayerActiveState = !1; this.slotGui = a; }, newSlotEvent_1: function (a) { "1".equals_1(this.slotGui.getSkinManager_0().getParameter_1("disablesoundoffwithmodaldialog")) || (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || !instanceOf(a, GT426) || a.getModalDialogId_0() != a.getFatalErrorDialogId_0() || (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED ? ((this.previousSoundPlayerActiveState = this.slotGui.getSoundPlayer_0().isActive_0()), this.slotGui.getSoundPlayer_0().setActive_1(!1)) : a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && this.slotGui.getSoundPlayer_0().setActive_1(this.previousSoundPlayerActiveState)); }, }, "GT113", [GT922] ), GT897 = Class.extend( { initialConstructor_0: function () { this.slotState = this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = this.slotGui = null; this.slotGui = a; this.slotState = a.getSlotState_0(); }, switchConsole_1: function (a) { if (GT1560.prototype.isAlive_1(a)) { 0 != this.slotState.getSuperGameState_0().getBalance_0() && a.setSuperGames_4(this.slotState.getSuperGameState_0().getBalance_0(), this.slotState.getSuperGameState_0().getLabel_0(), this.slotState.getSuperGameState_0().getColor_0(), !0); a.setCurrencyFormatter_1(this.slotGui.getCurrencyFormatter_0()); a.setHideValueFields_1(!0); a.setLastWinAvailable_1(!this.slotState.getCasinoState_0().isInReplayMode_0()); if (0 < this.slotState.getDefinition_0().getAutoPlayCountMax_0() && 0 <= this.slotState.getAutoPlayCounter_0()) { var b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); if (null != b) { b.hide_1(!1); for (var d = [].createArray(this.slotState.getDefinition_0().getAutoPlayCountMax_0()).init(0), b = 0; b < d.length; b++) d[b] = b + 1; a.setPossibleNumberOfAutoplays_2(d, this.slotState.getAutoPlayLimit_0()); b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); null != b && b.hide_1(!0); } this.slotState.isAutoPlaying_0() ? a.setAutoplayCounter_1(this.slotState.getAutoPlayCounter_0()) : a.setAutoplayCounter_1(this.slotState.getAutoPlayLimit_0()); } else (b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT)), null != b && (b.hide_1(!1), (d = [].createArray(1).init(0)), (d[0] = -1), a.setPossibleNumberOfAutoplays_2(d, -1), (b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT)), null != b && b.hide_1(!0)); for (var d = this.slotGui.getWinSwitcher_0(), e = this.slotGui.getWinSwitcher_0().getWinStartCallbacks_0(), b = 0; b < e.length; ++b) if (instanceOf(e[b], GT942)) { d.removeWinStartCallback_1(e[b]); d.addWinStartCallback_1(new GT942(d, a, this.slotState.getSuperGameState_0())); break; } } }, switchGamble_1: function (a) { var b = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE_CONTAINER); GT1560.prototype.destroyIfAlive_1(b); a == GT1600.prototype.VIP_FLIPPED_CONSOLE_DECORATOR_GROUP ? ((a = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.INNER_MAIN_GUI_CONTAINER)), GT1560.prototype.isAlive_1(a) && ((b = new GT1437(a)), b.move_2(0, this.slotGui.getSkin_0().getSlideInOutScreenY_0()))) : a == GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP && ((a = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.MAIN_GUI_CONTAINER)), GT1560.prototype.isAlive_1(a) && ((b = new GT1437(a)), b.move_2(0, 950))); GT1560.prototype.isAlive_1(b) && b.setApplicationID_1(GT1618.prototype.GAMBLE_CONTAINER); }, handleFlipScreenEvent_0: function () { if (null != this.slotGui) { var a = this.slotGui.getSkin_0(), b = this.slotGui.getSkin_0().getDecoratorGroup_0() == GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP ? GT1600.prototype.VIP_FLIPPED_CONSOLE_DECORATOR_GROUP : GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP; a.setDecoratorGroup_1(b); var d = this.slotGui.getSlotConsole_0(), e = d.isActive_0(), f = d.getState_0(), g = d.getWin_0(), k = d.getTotalRoundWin_0(), m = this.slotGui.getMainContainer_0().findDescendant_1(GT834.prototype.ID_FIELD_STATUS), n = ""; GT1560.prototype.isAlive_1(m) && instanceOf(m, GT1584) && (n = m.getText_0()); var m = d.isHideCreditValue_0(), p = d.getParent_0(); GT1560.prototype.destroyIfAlive_1(d); d = a.console_0().create_2(p, this.slotGui.getSkinManager_0()); d.setApplicationID_1(GT1618.prototype.CONSOLE); var a = -1, p = null, q = d.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); instanceOf(q, GT521) && ((p = q), (a = p.getMovementDuration_0()), p.setMovementDuration_1(0)); this.switchConsole_1(this.slotGui.getSlotConsole_0()); this.switchGamble_1(b); this.slotGui.updateConsole_0(); d.setActive_1(e); d.setState_1(f.getStateId_0()); d.setWin_2(g, !0); d.setTotalRoundWin_1(k); d.setStatusText_1(n); d.setHideCreditValue_2(m, !1); GT1560.prototype.isAlive_1(p) && p.setMovementDuration_1(a); b = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_SCREENFLIPPED, "", !0); this.slotGui.getSlotEventManager_0().fireSlotEvent_1(b); } }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.FLIP_SCREEN && this.slotState.getCasinoState_0().isActionAllowed_0() && this.handleFlipScreenEvent_0(); }, }, "GT897", [GT922] ), GT618 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, newSlotEvent_1: function (a) { if (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED) { var b = !0; instanceOf(a, GT426) && a.getModalDialogId_0() == a.getInfoDialogId_0() && (b = !1); b && this.slotGui.getFreeGameSounds_0().setBackgroundSoundSilent_1(!0); } else a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && (this.slotGui.getFreeGameSounds_0().setBackgroundSoundSilent_1(this.slotGui.isInSilentMode_0()), this.slotGui.setInSilentMode_1(this.slotGui.isInSilentMode_0())); }, }, "GT618", [GT922] ), GT154 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, newSlotEvent_1: function (a) { (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED) && instanceOf(a, GT426) && a.getModalDialogId_0() == a.getGameMenuDialogId_0() && 0 < this.slotGui.getMainContainer_0().getChildCount_0() && this.slotGui.getSlotConsole_0().setActive_1(this.slotGui.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.slotGui.getSlotState_0().getCasinoState_0().isActionAllowed_0()); }, }, "GT154", [GT922] ), GT1041 = Class.extend( { initialConstructor_0: function () { this.originalJackpotMessage = this.initializedFields = this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.originalJackpotMessage = this.initializedFields = this.slotGui = null; this.slotGui = a; this.initializedFields = new java_util_JavaScriptVector(); }, showVisual_2: function (a, b) { if (GT1560.prototype.isAlive_1(a) && instanceOf(b, GT478)) { var d = !b.showJackpotFields_0(); a.hide_1(d); } }, updateVisual_1: function (a) { var b = this.slotGui.getSlotState_0(); if (!this.initializedFields.contains_1(a)) { a.setCalculator_1(b.getCasinoState_0().getJackpotCalculator_0()); a.setCurrencyFormatter_1(this.slotGui.getCurrencyFormatter_0()); if (instanceOf(a, GT779)) { var d = b.getDefinition_0().getPaytableEntries_0(); if (null != d) for (var e = 0; e < d.size_0(); e++) { var f = d.get_1(e); a.getSymbol_0() == f.symbol && a.getNumber_0() == f.number && a.addPayTableEntry_1(f); } } this.initializedFields.addElement_1(a); } a.setBet_2(b.getBaseBet_0(), b.getBetMultiplier_0()); a.updateJackpot_0(); 0 == b.getBaseBet_0() && instanceOf(a, GT1560) && a.hide_1(!0); }, modifyJackpotMessage_1: function (a) { var b = this.originalJackpotMessage, d = this.originalJackpotMessage, e = a.getPlayerName_0(); a = this.slotGui.getJackpotNameForMessage_1(a.getJackpotName_0()); null == e || e.equals_1("") ? ((b = GT1677.prototype.replaceInString_3(b, " #0", "")), b.equals_1(d) && ((b = GT1677.prototype.replaceInString_3(b, "#0 ", "")), b.equals_1(d) && (b = GT1677.prototype.replaceInString_3(b, "#0", "")))) : (b = GT1677.prototype.replaceInString_3(b, "#0", e)); null == a || a.equals_1("") ? ((d = b), (b = GT1677.prototype.replaceInString_3(b, " #1", "")), b.equals_1(d) && ((b = GT1677.prototype.replaceInString_3(b, "#1 ", "")), b.equals_1(d) && (b = GT1677.prototype.replaceInString_3(b, "#1", "")))) : (b = GT1677.prototype.replaceInString_3(b, "#1", a)); return b; }, newSlotEvent_1: function (a) { if (a.getId_0() == GT1354.prototype.JACKPOT_FACTOR_UPDATED) { var b = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); null != b && 0 < b.getChildCount_0() && b.updateJackpotFields_0(); b = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.JACKPOT_VALUE_CONTAINER); if (null != b && b.isAlive_0()) { var d; if (instanceOf(b, GT917)) (d = b), instanceOf(d, GT1560) && this.showVisual_2(d, a), this.updateVisual_1(d); else if (instanceOf(b, GT1437)) for (var e = 0; e < b.getChildCount_0(); e++) (d = b.getChild_1(e)), instanceOf(d, GT917) && (instanceOf(d, GT1560) && this.showVisual_2(d, a), this.updateVisual_1(d)); } } else a.getId_0() == GT1354.prototype.NOTIFY_JACKPOT && instanceOf(a, GT667) && ((b = this.slotGui.getMainContainer_0().findDescendant_1(GT1618.prototype.JACKPOT_WIN_FIELD)), null != b && b.isAlive_0() && instanceOf(b, GT1584) && (null == this.originalJackpotMessage && (this.originalJackpotMessage = b.getText_0()), (a = this.modifyJackpotMessage_1(a)), b.setText_1(a), b.hide_1(!1), instanceOf(b, GT1480) ? (b.setAlpha_1(0), (a = new GT1191(this.slotGui.getTimer_0(), b, !1, 2e3, 8e3, 2e3)), a.addFinishCallback_1(new GT869(b)), a.start_0()) : this.slotGui.getTimer_0().triggerCallbackAfter_2(new GT869(b), 12e3))); }, }, "GT1041", [GT922] ), GT988 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.PLAYLINES_UPDATED && this.slotGui.showWinLines_0(); }, }, "GT988", [GT922] ), GT423 = Class.extend( { initialConstructor_0: function () { this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGui = null; this.slotGui = a; }, setStarVegasLogoButtonsActive_1: function (a) { var b = this.slotGui.getMainContainer_0().findDescendant_1(GT943.prototype.ID_CNTLOGO); if (null != b && b.isAlive_0()) for (var d = b.getChildCount_0(), e = 0; e < d; ++e) { var f = b.getChild_1(e); null != f && f.isAlive_0() && instanceOf(f, GT1559) && f.setActive_1(a); } }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED ? this.setStarVegasLogoButtonsActive_1(!1) : a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && this.setStarVegasLogoButtonsActive_1(!0); }, }, "GT423", [GT922] ), GT944 = Class.extend( { initialConstructor_0: function () { this.helper = this.slotGui = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.helper = this.slotGui = null; this.slotGui = a; this.helper = new GT1570(a.getSlotState_0(), a.isOmitCentsOnPaytableForHighValuesEnabled_0()); }, showAllWinHighlightsAtStart_2: function (a, b) { return this.slotGui.showAllWinHighlightsAtStart_2(a, b); }, createWinVisual_3: function (a, b, d) { a = this.slotGui.createWinVisual_3(a, b, d); null != a && this.helper.shouldOmitCentsIfZero_0() && a.setOmitCentPolicy_1(GT711.prototype.OMIT_CENT_IF_ZERO); return a; }, createHighWinNotificationWinVisual_1: function (a) { a = this.slotGui.createHighWinNotificationWinVisual_1(a); null != a && this.helper.shouldOmitCentsIfZero_0() && a.setOmitCentPolicy_1(GT711.prototype.OMIT_CENT_IF_ZERO); return a; }, }, "GT944", [GT702] ), GT1357 = Class.extend( { initialConstructor_0: function () { this.sound = this.soundPlayer = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.endPosition = this.startPosition = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.sound = this.soundPlayer = null; this.identifier = this.fadeOutTime = this.volumePercentage = this.endPosition = this.startPosition = 0; this.soundPlayer = a; this.sound = b; this.startPosition = d; this.endPosition = e; this.volumePercentage = this.determineValidVolumePercentage_1(f); this.fadeOutTime = g; this.identifier = k; }, getIdentifier_0: function () { return this.identifier; }, hasIdentifier_1: function (a) { return this.identifier == a; }, getSound_0: function () { return this.sound; }, stop_1: function (a) { null != this.soundPlayer && null != this.sound && this.soundPlayer.stop_2(this.sound, a); }, stop_0: function () { this.stop_1(this.fadeOutTime); }, }, "GT1357", [] ); GT1357.prototype.determineValidVolumePercentage_1 = function (a) { return 0 >= a ? 0 : 100 <= a ? 100 : a; }; var GT1306 = Class.extend( { initialConstructor_0: function () { this.sound = null; this.fullLength = !1; this.duration = this.startposition = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.sound = null; this.fullLength = !1; this.duration = this.startposition = 0; this.sound = a; this.startposition = b; this.duration = d; this.fullLength = !1; }, initialConstructor_1: function (a) { this.sound = null; this.fullLength = !1; this.duration = this.startposition = 0; this.sound = a; this.duration = this.startposition = 0; this.fullLength = !0; }, getStartposition_0: function () { return this.startposition; }, getDuration_0: function () { GT1650.prototype.assertExp_2(!this.fullLength, "Full length sound has no length information."); return this.duration; }, }, "GT1306", [] ), GT1598 = Class.extend( { initialConstructor_0: function () { this.finalWinSoundTable = this.relativePayoutCustomTimeMapping = this.relativePayoutMapping = this.symbolCustomTimeMapping = this.symbolMapping = null; this.playFinalSoundsBeforeSpecialSounds = !1; this.countUpSound = null; this.countUpSoundSoundStepDuration = this.countUpSoundStartPosition = this.countUpSoundStepDuration = this.countUpSoundThreshold = 0; this.highWinNotificationSound = null; this.highWinNotificationSoundFileStepsCount = this.highWinNotificationSoundSingleRingStepLength = this.highWinNotificationSoundLoopEndPosition = this.highWinNotificationSoundRestartPosition = this.highWinNotificationSoundStartPosition = this.highWinNotificationSoundRelativePayout = 0; this.playFinalSoundsBeforeSpecialSounds = !1; this.countUpSoundThreshold = 0; this.relativePayoutCustomTimeMapping = this.relativePayoutMapping = null; }, setFinalWinSoundTable_1: function (a) { this.finalWinSoundTable = a; }, setSymbolSoundMapping_1: function (a) { this.symbolMapping = a; }, setSymbolCustomTimeMapping_1: function (a) { this.symbolCustomTimeMapping = a; }, setRelativePayoutMapping_1: function (a) { this.relativePayoutMapping = a; }, setRelativePayoutCustomTimeMapping_1: function (a) { this.relativePayoutCustomTimeMapping = a; }, setCountUpSound_4: function (a, b, d, e) { this.countUpSound = a; this.countUpSoundStepDuration = d; this.countUpSoundStartPosition = b; this.countUpSoundSoundStepDuration = e; }, setPlayFinalSoundsBeforeSpecialSounds_1: function (a) { this.playFinalSoundsBeforeSpecialSounds = a; }, setHighWinNotificationSound_5: function (a, b, d, e, f) { this.highWinNotificationSound = a; this.highWinNotificationSoundRelativePayout = b; this.highWinNotificationSoundStartPosition = d; this.highWinNotificationSoundRestartPosition = e; this.highWinNotificationSoundLoopEndPosition = f; }, setHighWinNotificationSound_4: function (a, b, d, e) { this.highWinNotificationSound = a; this.highWinNotificationSoundRelativePayout = b; this.highWinNotificationSoundFileStepsCount = d; this.highWinNotificationSoundSingleRingStepLength = e; }, getHighWinNotificationSound_0: function () { return this.highWinNotificationSound; }, getHighWinNotificationSoundRelativePayout_0: function () { return this.highWinNotificationSoundRelativePayout; }, hasHighWinNotificationSound_0: function () { return null != this.highWinNotificationSound; }, getHighWinNotificationSoundStartPosition_0: function () { return this.highWinNotificationSoundStartPosition; }, getHighWinNotificationSoundRestartPosition_0: function () { return this.highWinNotificationSoundRestartPosition; }, getHighWinNotificationSoundLoopEndPosition_0: function () { return this.highWinNotificationSoundLoopEndPosition; }, getHighWinNotificationSoundFileStepsCount_0: function () { return this.highWinNotificationSoundFileStepsCount; }, getHighWinNotificationSoundSingleRingStepLength_0: function () { return this.highWinNotificationSoundSingleRingStepLength; }, isPlayFinalSoundsBeforeSpecialSounds_0: function () { return this.playFinalSoundsBeforeSpecialSounds; }, getSound_2: function (a, b) { return null == this.symbolMapping ? null : this.symbolMapping.get_2(a, b); }, getCustomTime_2: function (a, b) { if (null == this.symbolCustomTimeMapping) return -1; var d = this.symbolCustomTimeMapping.get_2(a, b); return null == d ? -1 : d.intValue_0(); }, getRelativePayoutSound_1: function (a) { return null == this.relativePayoutMapping || 0 == this.relativePayoutMapping.size_0() ? null : this.relativePayoutMapping.getAfter_1(a); }, getRelativePayoutCustomTime_1: function (a) { if (null == this.relativePayoutCustomTimeMapping || 0 == this.relativePayoutCustomTimeMapping.size_0()) return -1; a = this.relativePayoutCustomTimeMapping.getAfter_1(a); return null == a ? -1 : a.intValue_0(); }, hasFinalWinSounds_0: function () { return null != this.finalWinSoundTable && 0 < this.finalWinSoundTable.size_0(); }, getFinalSound_1: function (a) { return null == this.finalWinSoundTable || 0 == this.finalWinSoundTable.size_0() ? null : this.finalWinSoundTable.getAfter_1(a); }, getCountUpSound_0: function () { return this.countUpSound; }, getCountUpSoundStepDuration_0: function () { return this.countUpSoundStepDuration; }, getCountUpSoundSoundStepDuration_0: function () { return this.countUpSoundSoundStepDuration; }, getCountUpSoundStartPosition_0: function () { return this.countUpSoundStartPosition; }, getCountUpSoundThreshold_0: function () { return this.countUpSoundThreshold; }, setCountUpSoundThreshold_1: function (a) { this.countUpSoundThreshold = a; }, }, "GT1598", [] ), GT674 = Class.extend( { initialConstructor_0: function () { this.switcher = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.switcher = null; this.switcher = a; }, run_0: function () { this.switcher.showNextWin_0(); }, }, "GT674", [Runnable] ), GT522 = Class.extend( { initialConstructor_0: function () { this.animator = null; this.keepSoundPlaying = this.isDeactivated = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.animator = null; this.keepSoundPlaying = this.isDeactivated = !1; this.animator = a; this.isDeactivated = !1; this.keepSoundPlaying = b; }, deactivate_0: function () { this.isDeactivated = !0; }, run_0: function () { this.isDeactivated || this.animator.stopVisualization_1(this.keepSoundPlaying); }, }, "GT522", [Runnable] ), GT1093 = Class.extend( { initialConstructor_0: function () { this.finishCallbacks = this.formatter = null; this.omitCentPolicy = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.finishCallbacks = this.formatter = null; this.omitCentPolicy = 0; this.formatter = a; this.finishCallbacks = new java_util_JavaScriptVector(); this.omitCentPolicy = GT711.prototype.OMIT_CENT_NEVER; }, setOmitCentPolicy_1: function (a) { this.omitCentPolicy = a; }, getValueFormatter_0: function () { return this.formatter; }, getFormattedWinLabelText_1: function (a) { return 0 == a ? null : instanceOf(this.formatter, GT711) ? this.formatter.format_2(a, this.omitCentPolicy) : this.formatter.format_1(a); }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.addElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, fireVisualizationFinished_0: function () { for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, }, "GT1093", [] ), GT732 = GT1093.extend( { initialConstructor_0: function () { this.sound = this.winLines = this.timer = null; this.time = this.duration = this.startPosition = 0; this.soundPlayer = null; this.line = 0; this.isTabVisible = !1; this.animationStopper = this.superGameState = this.win = null; GT1093.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.sound = this.winLines = this.timer = null; this.time = this.duration = this.startPosition = 0; this.soundPlayer = null; this.line = 0; this.isTabVisible = !1; this.animationStopper = this.superGameState = this.win = null; GT1093.prototype.initialConstructor_1.call(this, e); this.timer = a; this.time = b; this.winLines = d; this.soundPlayer = this.sound = null; this.line = this.duration = this.startPosition = -1; }, initialConstructor_5: function (a, b, d, e, f) { GT732.prototype.initialConstructor_8.call(this, a, b, d, -1, -1, -1, e, f); }, initialConstructor_6: function (a, b, d, e, f, g) { GT732.prototype.initialConstructor_8.call(this, a, b, d, -1, -1, f, e, g); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.sound = this.winLines = this.timer = null; this.time = this.duration = this.startPosition = 0; this.soundPlayer = null; this.line = 0; this.isTabVisible = !1; this.animationStopper = this.superGameState = this.win = null; GT1093.prototype.initialConstructor_1.call(this, m); this.timer = a; this.winLines = b; GT1650.prototype.assertExp_2(null != d, "Sound is null"); GT1650.prototype.assertExp_2(null != k, "SoundPlayer is null"); this.sound = d; this.startPosition = e; this.duration = f; this.time = g; this.soundPlayer = k; this.line = -1; }, getTimer_0: function () { return this.timer; }, getSound_0: function () { return this.sound; }, getSoundPlayer_0: function () { return this.soundPlayer; }, playSound_1: function (a) { 0 <= this.startPosition && 0 <= this.duration ? this.soundPlayer.start_4(this.sound, a, this.startPosition, this.startPosition + this.duration) : this.soundPlayer.start_2(this.sound, a); }, setSuperGameState_1: function (a) { this.superGameState = a; }, getWinLines_0: function () { return this.winLines; }, getSuperGameState_0: function () { return this.superGameState; }, getFormattedWinText_1: function (a) { return this.getFormattedWinLabelText_1(a.payCash); }, isVisualizationPossible_0: function () { return null == this.winLines || this.winLines.isAlive_0(); }, start_2: function (a, b) { GT1650.prototype.assertExp_2(null == this.animationStopper, "call stop before calling start again"); this.win = a; var d = this.getFormattedWinText_1(a); 0 != a.payGames && null != this.superGameState && (d += " + " + a.payGames + " " + this.superGameState.getLabel_0()); GT1560.prototype.isAlive_1(this.winLines) && (instanceOf(a, GT1599) ? ((this.line = a.line), -1 != this.line && (this.winLines.setWinningSymbols_3(this.line, b, d), this.winLines.showLine_2(this.line, !0), (this.isTabVisible = this.winLines.isTabVisible_1(this.line)) || this.winLines.showTab_2(this.line, !0))) : instanceOf(a, GT1512) && (this.winLines.setScatterWin_2(b, d), this.winLines.showScatter_1(!0))); this.animationStopper = new GT522(this, 0 <= this.time); this.applyVisualizationStopper_2(this.animationStopper, this.time); }, applyVisualizationStopper_2: function (a, b) { if (null != this.soundPlayer && null != this.sound) { var d = null; 0 <= b ? this.timer.triggerCallbackAfter_2(a, b) : (d = a); this.playSound_1(d); } else 0 <= b && this.timer.triggerCallbackAfter_2(a, b); }, stopVisualization_1: function (a) { null == this.soundPlayer || null == this.sound || a || this.soundPlayer.stop_2(this.sound, 150); null != this.animationStopper && (this.animationStopper.deactivate_0(), (this.animationStopper = null)); GT1560.prototype.isAlive_1(this.winLines) && (this.isTabVisible || -1 == this.line || this.winLines.showTab_2(this.line, !1), instanceOf(this.win, GT1599) ? this.winLines.showLine_2(this.line, !1) : instanceOf(this.win, GT1512) && this.winLines.showScatter_1(!1)); this.fireVisualizationFinished_0(); }, stopVisualization_0: function () { this.stopVisualization_1(!1); }, stop_0: function () { this.stopVisualization_0(); }, }, "GT732", [] ), GT577 = GT1093.extend( { initialConstructor_0: function () { this.skinManager = this.visContainer = null; this.duration = 0; this.delay = this.s = null; GT1093.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.skinManager = this.visContainer = null; this.duration = 0; this.delay = this.s = null; GT1093.prototype.initialConstructor_1.call(this, a); this.visContainer = b; this.skinManager = d; this.duration = e; this.s = d.getResourceManager_0().getSound_1(GT577.prototype.MYSTERY_SOUND); }, initialConstructor_3: function (a, b, d) { GT577.prototype.initialConstructor_4.call(this, a, b, d, -1); }, isVisualizationPossible_0: function () { return (null != this.s || 0 <= this.duration) && null != this.visContainer && this.visContainer.isAlive_0() && null != this.skinManager && null != this.getValueFormatter_0() ? !0 : !1; }, start_2: function (a, b) { this.visContainer.hide_1(!1); var d = [].createArray(2); d[0] = this.skinManager.getResourceManager_0().getFont_6(GT1393.prototype.ARIAL.name_0(), !0, !1, 0, 500, 0); d[1] = this.skinManager.getResourceManager_0().getFont_6(GT1393.prototype.ARIAL.name_0(), !0, !1, 0, 450, 0); var e = new GT1592([new GT1634(249, 246, 167), new GT1634(254, 255, 126), new GT1634(246, 189, 68)], [0, 0.5, 1], Math.PI / 2), d = new GT1123( this.visContainer, Math.div(this.visContainer.getWidth_0() - 900, 2), Math.div(this.visContainer.getHeight_0() - 300, 2), 900, 300, d, new GT1634(252, 255, 121), GT1488.prototype.CENTER, GT1489.prototype.CENTER ); d.setGradient_1(e); d.setText_1(this.skinManager.getText_1("${mysterypot}") + "\n" + this.getValueFormatter_0().format_1(a.payCash)); d.setOutline_2(1, GT1634.prototype.black); 0 > this.duration ? this.skinManager.getSoundPlayer_0().start_2(this.s, new GT320(this)) : ((this.delay = new GT1129(this.skinManager.getTimer_0(), this.duration, !1)), this.delay.addFinishCallback_1(new GT320(this)), this.delay.start_0()); }, stop_0: function () { null != this.visContainer && this.visContainer.isAlive_0() && this.visContainer.destroyChildren_0(); null != this.s && this.skinManager.getSoundPlayer_0().stop_1(this.s); this.fireVisualizationFinished_0(); }, }, "GT577", [] ), GT320 = Class.extend( { initialConstructor_0: function () { this.winVis = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.winVis = null; this.winVis = a; }, run_0: function () { this.winVis.stop_0(); }, }, "GT320", [Runnable] ); GT577.prototype.MYSTERY_SOUND = "/com/greentube/slot/client/res/threeadmi.mp3"; var GT377 = GT732.extend( { initialConstructor_0: function () { this.winLinePositions = this.singlewin = this.winLineContainer = null; this.idx = 0; this.snd = this.sndPlayer = null; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.winLinePositions = this.singlewin = this.winLineContainer = null; this.idx = 0; this.snd = this.sndPlayer = null; GT732.prototype.initialConstructor_4.call(this, a, 0, b, f); this.winLineContainer = b; this.sndPlayer = e; this.snd = d; }, start_2: function (a, b) { this.singlewin = a; this.winLinePositions = b; this.idx = 0; this.showFrame_1(this.idx); this.idx++; this.getTimer_0().triggerCallbackAfter_2(this, 1e3); this.sndPlayer.start_1(this.snd); }, showFrame_1: function (a) { var b = null; a == this.winLinePositions.getCount_0() - 1 && (b = this.getFormattedWinText_1(this.singlewin)); var d = [].createArray(a + 1).init(0); a = [].createArray(a + 1).init(0); for (var e = 0; e < d.length; e++) (d[e] = this.winLinePositions.getSymbolRow_1(e)), (a[e] = this.winLinePositions.getSymbolColumn_1(e)); this.winLineContainer.setScatterWin_2(new GT1613(a, d), b); this.winLineContainer.showScatter_1(!0); }, stopVisualization_1: function (a) { this.winLineContainer.showScatter_1(!1); this.getTimer_0().removeCallback_2(this, !1); this.sndPlayer.stop_1(this.snd); this.fireVisualizationFinished_0(); }, run_0: function () { this.idx < this.winLinePositions.getCount_0() ? (this.showFrame_1(this.idx), this.idx++, this.getTimer_0().triggerCallbackAfter_2(this, 1e3)) : this.stopVisualization_1(!1); }, }, "GT377", [Runnable] ), GT427 = GT732.extend( { initialConstructor_0: function () { this.stoppedReels = this.symbolHighlight = this.winLineContainer = null; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.stoppedReels = this.symbolHighlight = this.winLineContainer = null; GT732.prototype.initialConstructor_4.call(this, a, b, d, e); this.winLineContainer = d; this.symbolHighlight = f; this.stoppedReels = g; }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.stoppedReels = this.symbolHighlight = this.winLineContainer = null; GT732.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); this.winLineContainer = b; this.symbolHighlight = k; this.stoppedReels = m; }, start_2: function (a, b) { for (var d = 0; d < b.getCount_0(); d++) this.symbolHighlight.setHighlight_4(b.getSymbolColumn_1(d), b.getSymbolRow_1(d), b.getCount_0(), 1); GT732.prototype.start_2.call(this, a, b); }, stopVisualization_1: function (a) { this.symbolHighlight.removeAllHighlights_0(); this.stoppedReels.hideAllSymbols_1(!1); GT732.prototype.stopVisualization_1.call(this, a); }, isVisualizationPossible_0: function () { return this.winLineContainer.isAlive_0() && this.stoppedReels.isAlive_0() && this.symbolHighlight.isAlive_0(); }, }, "GT427", [] ), GT1671 = Class.extend( { initialConstructor_0: function () { this.extendsLineWin = this.multiplier = this.symbol = 0; this.replaces = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.extendsLineWin = this.multiplier = this.symbol = 0; this.replaces = null; this.symbol = a; this.multiplier = b; this.extendsLineWin = d; this.replaces = [].createArray(e.length_0()).init(0); for (a = 0; a < this.replaces.length; a++) this.replaces[a] = e.charAt_1(a); }, getSymbol_0: function () { return this.symbol; }, getMultiplier_0: function () { return this.multiplier; }, getExtendsLineWin_0: function () { return this.extendsLineWin; }, isReplacing_2: function (a, b) { if (0 == this.replaces.length) return !b; for (var d = 0; d < this.replaces.length; d++) if (this.replaces[d] == a) return !0; return !1; }, }, "GT1671", [] ), GT1570 = Class.extend( { initialConstructor_0: function () { this.slotState = null; this.isOmitCentsOnPaytableForHighValuesEnabled = !1; this.lastBetMultiplierChecked = this.lastBaseBetChecked = 0; this.centsFoundOnPaytable = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.slotState = null; this.isOmitCentsOnPaytableForHighValuesEnabled = !1; this.lastBetMultiplierChecked = this.lastBaseBetChecked = 0; this.centsFoundOnPaytable = !1; this.slotState = a; this.isOmitCentsOnPaytableForHighValuesEnabled = b; }, shouldOmitCentsIfZero_0: function () { if (!this.isOmitCentsOnPaytableForHighValuesEnabled) return !1; var a = this.slotState.getBaseBet_0(), b = this.slotState.getBetMultiplier_0(); if (this.lastBaseBetChecked != a || this.lastBetMultiplierChecked != b) (this.centsFoundOnPaytable = this.doPaytableEntriesHaveCents_3(this.slotState.getDefinition_0().getPaytableEntries_0(), a, b)), (this.lastBaseBetChecked = a), (this.lastBetMultiplierChecked = b); return !this.centsFoundOnPaytable; }, }, "GT1570", [] ); GT1570.prototype.doPaytableEntriesHaveCents_3 = function (a, b, d) { if (null != a) for (var e = 0; e < a.size_0(); e++) { var f = a.get_1(e).calculateFullPayout_3(b, d, 1), f = Math.floor_1(f) / 100; if (f != Math.floor_1(f)) return !0; } return !1; }; var GT1601 = Class.extend( { initialConstructor_0: function () { this.payOnMinBet = this.jackpotPercentage = this.payout = this.number = this.symbol = 0; this.multipliedByLines = !1; this.validForReels = this.superGameState = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1601.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, new java_util_JavaScriptVector()); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.payOnMinBet = this.jackpotPercentage = this.payout = this.number = this.symbol = 0; this.multipliedByLines = !1; this.validForReels = this.superGameState = null; this.symbol = a; this.number = b; this.payout = d; this.jackpotPercentage = e; this.multipliedByLines = f; this.superGameState = g; this.payOnMinBet = k; this.validForReels = m; }, getPayout_0: function () { return this.payout; }, calculateFullPayout_3: function (a, b, d) { a = this.payout * a * d; this.multipliedByLines && (a *= b); return a; }, calculateNumberOfSupergames_3: function (a, b, d) { return this.superGameState.calculateNumberOfSuperGames_1(this.calculateFullPayout_3(a, b, d)); }, calculateCashRemainder_4: function (a, b, d, e) { return this.superGameState.calculateCashRemainder_2(this.calculateFullPayout_3(a, b, e), d); }, calculateJackPotWin_4: function (a, b, d, e) { return this.calculateJackPotWin_5(a, 1, 1, b, e); }, calculateJackPotWin_5: function (a, b, d, e, f) { if (0 == this.jackpotPercentage && 0 == this.payOnMinBet) return 0; b = 0 == this.payOnMinBet ? this.calculateFullPayout_3(a, e, 1) : this.payOnMinBet * b; a = 1 >= this.jackpotPercentage ? Math.floor_1(f * this.jackpotPercentage * a * e) : Math.floor_1(f * d); return b + a; }, getSymbol_0: function () { return this.symbol; }, getNumber_0: function () { return this.number; }, getJackpotPercentage_0: function () { return this.jackpotPercentage; }, getMultipliedByLines_0: function () { return this.multipliedByLines; }, getPayOnMinBet_0: function () { return this.payOnMinBet; }, getSupergamesLabel_0: function () { return this.superGameState.getLabel_0(); }, isValidForReel_1: function (a) { return 0 == this.validForReels.size_0() || this.validForReels.contains_1(new Integer(-1)) || this.validForReels.contains_1(new Integer(a)) ? !0 : !1; }, getValidForReels_0: function () { return this.validForReels; }, isExtendedPaytableEntry_0: function () { return 0 < this.validForReels.size_0(); }, }, "GT1601", [] ), GT1460 = Class.extend( { initialConstructor_0: function () { this.entries = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.entries = null; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.entries = [].createArray(0)); else { this.entries = [].createArray(a.size_0()); for (var d = 0; d < this.entries.length; d++) { var e = a.get_1(d); instanceOf(e, GT1601) ? (this.entries[d] = e) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } }, initialConstructor_1: function (a) { this.entries = null; null == a ? (GT1650.prototype.assertFailed_1("win array is null"), (this.entries = [].createArray(0))) : ((this.entries = [].createArray(a.length)), java_lang_System.prototype.arraycopy_5(a, 0, this.entries, 0, a.length)); }, get_1: function (a) { return this.entries[a]; }, size_0: function () { return this.entries.length; }, toArray_0: function () { var a = [].createArray(this.entries.length); java_lang_System.prototype.arraycopy_5(this.entries, 0, a, 0, this.entries.length); return a; }, }, "GT1460", [] ); GT1460.prototype.fromVector_1 = function (a) { return new GT1460(a, !0); }; var GT1664 = Class.extend( { initialConstructor_0: function () { this.reelSet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reelSet = null; this.reelSet = a; }, getSymbol_2: function (a, b) { return this.reelSet[a][b]; }, getNumberOfReels_0: function () { return this.reelSet.length; }, getNumberOfSymbols_1: function (a) { return this.reelSet[a].length; }, getSymbols_1: function (a) { GT1650.prototype.assertExp_2(a < this.reelSet.length, "Trying to access symbols of the reel with index " + a + ", but the length of the reel set is only " + this.reelSet.length); for (var b = [].createArray(this.reelSet[a].length).init(0), d = 0; d < b.length; d++) b[d] = this.reelSet[a][d]; return b; }, }, "GT1664", [] ), GT1546 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1546", [] ); GT1546.prototype.findEndPos_2 = function (a, b) { for (var d = b.length - 1; 0 <= d; d--) if (b[d] == a) return d + b.length; return b.length; }; GT1546.prototype.findStartPos_2 = function (a, b) { for (var d = !1, e = b.length - 1; 0 <= e; e--) if ((b[e] == a && (d = !0), b[e] != a && d)) return e; return 0; }; GT1546.prototype.getReelsetCharacteristics_2 = function (a, b) { for (var d = new GT1207(), e = new java_util_JavaScriptHashtable(), f = new java_util_JavaScriptHashtable(), g = new java_util_JavaScriptHashtable(), k = 0, m = 0; m < a.length; m++) { var n = a[m]; if (!e.containsKey_1(GT1672.prototype.charToString_1(n))) { for (var p = a.length, q = 0, r = this.findStartPos_2(n, a), t = this.findEndPos_2(n, a); r < t; r++) if (a[(r + a.length) % a.length] == n) q++; else { if (0 < q && q < p && ((p = q), 1 == p)) break; q = 0; } e.put_2(GT1672.prototype.charToString_1(n), new Integer(p)); } if (!f.containsKey_1(GT1672.prototype.charToString_1(n))) { q = p = 0; r = this.findStartPos_2(n, a); for (t = this.findEndPos_2(n, a); r < t; r++) a[(r + a.length) % a.length] == n ? (q++, q > p && (p = q)) : (q = 0); p > k && (k = p); p == 2 * a.length - 1 && (p = 999); f.put_2(GT1672.prototype.charToString_1(n), new Integer(p)); } if (!g.containsKey_1(GT1672.prototype.charToString_1(n))) { q = a.length; p = -1; r = this.findStartPos_2(n, a); for (t = this.findEndPos_2(n, a); r < t; r++) if (a[(r + a.length) % a.length] == n) { if (0 <= p && p < q && ((q = p), 0 == q)) break; p = 0; } else -1 != p && p++; g.put_2(GT1672.prototype.charToString_1(n), new Integer(q > b ? b : q)); } } d.setMaxMaxClusterSize_1(k); d.setMaxClusterSize_1(f); d.setMinClusterSize_1(e); d.setMinSymbolDistance_1(g); return d; }; var GT1208 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1208", [] ), GT1207 = Class.extend( { initialConstructor_0: function () { this.minSymbolDistance = this.maxClusterSize = this.minClusterSize = null; this.maxMaxClusterSize = 0; Class.prototype.initialConstructor_0.call(this); this.minClusterSize = new java_util_JavaScriptHashtable(); this.maxClusterSize = new java_util_JavaScriptHashtable(); this.minSymbolDistance = new java_util_JavaScriptHashtable(); }, getMaxMaxClusterSize_0: function () { return this.maxMaxClusterSize; }, setMaxMaxClusterSize_1: function (a) { this.maxMaxClusterSize = a; }, getMinSymbolDistance_0: function () { return this.minSymbolDistance; }, setMinSymbolDistance_1: function (a) { this.minSymbolDistance = a; }, getMinClusterSize_0: function () { return this.minClusterSize; }, setMinClusterSize_1: function (a) { this.minClusterSize = a; }, getMaxClusterSize_0: function () { return this.maxClusterSize; }, setMaxClusterSize_1: function (a) { this.maxClusterSize = a; }, }, "GT1207", [] ), GT1513 = Class.extend( { initialConstructor_0: function () { this.gui = this.slotGame = this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.gui = this.slotGame = this.slotEventManager = null; this.slotEventManager = a; this.slotGame = b; this.gui = d; }, getSlotGame_0: function () { return this.slotGame; }, getSlotGui_0: function () { return this.gui; }, fireEvents_2: function (a, b) { null != a && this.slotEventManager.fireSlotEvent_1(a); null != b && this.slotEventManager.fireSlotEvent_1(b); }, commandOpenPaytable_0: function () { this.deactivateButton_1(GT834.prototype.ID_BUTTON_PAYTABLE); this.fireEvents_2(new GT1354(GT1354.prototype.PAYTABLE), null); }, commandPaytableNext_0: function () { this.deactivateButton_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT); this.fireEvents_2(new GT1354(GT1354.prototype.PAYTABLE_NEXT), null); }, commandAutoplayOff_0: function () { this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOSTOP); this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S); this.fireEvents_2(new GT1354(GT1354.prototype.AUTOSTOP), null); }, commandAutoplayOn_0: function () { var a = null; this.slotGame.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() || this.slotGame.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() || (this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOPLAY), this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S), (a = new GT1354(GT1354.prototype.AUTOPLAY))); this.fireEvents_2(a, null); }, commandAutoplayMeter_1: function (a) { a = new GT1354(a ? GT1354.prototype.AUTOPLAYMETER_RESET : GT1354.prototype.AUTOPLAYMETER_INCREASE); this.fireEvents_2(a, null); }, commandChangeBet_4: function (a, b, d, e) { var f = (e = null); a != this.slotGame.getSlotState_0().getBaseBet_0() && (this.slotGame.getBetUtils_0().betAvailable_1(a) || (a = d ? this.slotGame.getBetUtils_0().fetchClosestBet_2(a, !1) : this.slotGame.getBetUtils_0().fetchLowerBet_2(a, !1)), a != this.slotGame.getSlotState_0().getBaseBet_0() && (e = new GT982(Integer.truncate_1(a), b)), b || (f = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + Integer.truncate_1(a), !0))); this.fireEvents_2(e, f); }, commandChangeGameMode_2: function (a, b) { var d = null; a != this.slotGame.getSlotState_0().getGameMode_0() && 0 <= a && a < this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0().size_0() && this.checkIsValidGameMode_1(a) && (d = new GT937(GT1354.prototype.GAMEMODE, a, b)); this.fireEvents_2(d, null); }, checkIsValidGameMode_1: function (a) { for (var b = this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0(), d = 0; d < b.size_0(); d++) if (b.get_1(d) == a) return !0; return !1; }, commandOverrideMaxbet_1: function (a) { var b = this.getSlotGame_0().getSlotState_0().getBaseBets_0(); this.getSlotGame_0().getSlotState_0().getBaseBet_0() > b[b.length - 1] && this.slotGame.setBaseBet_1(b[b.length - 1]); this.gui.updateConsole_0(); this.notifyMaxBetOnMaxLines_0(); GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && this.getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); this.fireEvents_2(null, new GT981(GT1354.prototype.WRAPPER, GT697.prototype.KEY_EXTERNALLOGGING, "RemoteController.notifyEvent(OVERRIDE_MAXBET)," + a + ")", !0)); }, commandOverrideMinbet_1: function (a) { var b = this.getSlotGame_0().getSlotState_0().getBaseBets_0(); this.getSlotGame_0().getSlotState_0().getBaseBet_0() < b[0] && this.slotGame.setBaseBet_1(b[0]); this.gui.updateConsole_0(); GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && this.getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); this.fireEvents_2(null, new GT981(GT1354.prototype.WRAPPER, GT697.prototype.KEY_EXTERNALLOGGING, "RemoteController.notifyEvent(OVERRIDE_MINBET)," + a + ")", !0)); }, notifyEvent_2: function (a, b) { var d = null, e = null; if (GT697.prototype.KEY_OVERRIDE_MAXBET.equals_1(a) && !this.getSlotGame_0().getSlotState_0().getCasinoState_0().hasOpenRound_0()) this.commandOverrideMaxbet_1(b); else if (GT697.prototype.KEY_OVERRIDE_MINBET.equals_1(a) && !this.getSlotGame_0().getSlotState_0().getCasinoState_0().hasOpenRound_0()) this.commandOverrideMinbet_1(b); else if (GT990.prototype.OVERRIDE_LINES.equals_1(a) && !this.getSlotGame_0().getSlotState_0().getCasinoState_0().hasOpenRound_0()) { for (var f = GT1677.prototype.tokenize_2(b, ","), g = [].createArray(f.length).init(0), k = 0; k < g.length; k++) g[k] = GT1672.prototype.stringToInt_1(f[k]); k = new GT1595(g); this.slotGame.getSlotState_0().getDefinition_0().setPlayLinesOverride_1(k); f = this.getSlotGame_0().getSlotState_0().getDefinition_0().getPlayLines_0(); if (0 != f.size_0()) { d = this.getSlotGame_0().getSlotState_0().getNumberOfLines_0(); if (d > f.get_1(f.size_0() - 1)) this.slotGame.setNumberOfLines_1(f.get_1(f.size_0() - 1)); else if (!this.listContains_2(d, f)) { g = !1; for (k = f.size_0() - 1; 0 <= k; k--) if (f.get_1(k) < d) { this.slotGame.setNumberOfLines_1(f.get_1(k)); g = !0; break; } g || this.slotGame.setNumberOfLines_1(f.get_1(0)); } d = new GT1354(GT1354.prototype.PLAYLINES_UPDATED); } else this.slotGame.getSlotState_0().getDefinition_0().setPlayLinesOverride_1(null); this.notifyMaxBetOnMaxLines_0(); } else if (GT990.prototype.START_SPIN.equals_1(a)) (d = new GT885(GT1354.prototype.STARTSPIN, GT885.prototype.TRIGGER_EXTERNAL, !1)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_START), this.deactivateButton_1(GT834.prototype.ID_BUTTON_STOP); else if (GT990.prototype.COLLECT.equals_1(a)) (d = new GT1354(GT1354.prototype.COLLECT)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_COLLECT); else if (GT990.prototype.AUTOPLAY_TOGGLE.equals_1(a)) this.slotGame.getSlotState_0().isAutoPlaying_0() ? this.commandAutoplayOff_0() : this.commandAutoplayOn_0(); else if (GT990.prototype.AUTOPLAY_OFF.equals_1(a)) this.slotGame.getSlotState_0().isAutoPlaying_0() && ((d = new GT1354(GT1354.prototype.AUTOSTOP)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOSTOP), this.deactivateButton_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S)); else if (GT990.prototype.PAYTABLE_NEXT.equals_1(a)) this.commandPaytableNext_0(); else if (GT990.prototype.PAYTABLE.equals_1(a)) this.commandOpenPaytable_0(); else if (GT990.prototype.BET.equals_1(a) || GT990.prototype.BASEBET.equals_1(a)) { for (var m = GT1677.prototype.tokenize_2(b, ","), n = (f = !1), g = this.slotGame.getSlotState_0().getBaseBet_0(), k = 0; k < m.length; k++) GT990.prototype.VALUE_SILENT.equals_1(m[k]) ? (f = !0) : GT990.prototype.VALUE_BET_CLOSETO.equals_1(m[k]) ? (n = !0) : GT990.prototype.VALUE_BET_LOWER.equals_1(m[k]) ? (n = !1) : GT990.prototype.BET.equals_1(a) ? ((g = GT1672.prototype.stringToDouble_2(m[k], this.slotGame.getSlotState_0().getTotalBet_0())), (g /= this.slotGame.getSlotState_0().getBetMultiplier_0())) : (g = GT1672.prototype.stringToDouble_2(m[k], g)); this.commandChangeBet_4(g, f, n, !n); } else GT990.prototype.BET_UP.equals_1(a) ? ((f = this.isSilent_1(b)), (k = this.isLooping_1(b)), (g = this.slotGame.getBetUtils_0().fetchHigherBet_2(this.slotGame.getSlotState_0().getBaseBet_0(), k)), g != this.slotGame.getSlotState_0().getBaseBet_0() && ((d = new GT982(Integer.truncate_1(g), f)), f || (e = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + Integer.truncate_1(g), !0)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP))) : GT990.prototype.BET_NEXT.equals_1(a) ? ((f = this.isSilent_1(b)), (g = this.slotGame.getBetUtils_0().fetchHigherBet_0()), this.slotGame.getSlotState_0().getCredits_0() >= this.slotGame.getSlotState_0().getMinPossibleBet_0() * this.slotGame.getSlotState_0().getBetMultiplier_0() && g > this.slotGame.getSlotState_0().getMaxPossibleBet_0() && ((k = this.slotGame.getSlotState_0().getBaseBets_0()), null != k && 1 <= k.length && (g = k[0])), g != this.slotGame.getSlotState_0().getBaseBet_0() && ((d = new GT982(Integer.truncate_1(g), f)), f || (e = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + g, !0)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP))) : GT990.prototype.BET_DOWN.equals_1(a) ? ((f = this.isSilent_1(b)), (k = this.isLooping_1(b)), (g = this.slotGame.getBetUtils_0().fetchLowerBet_2(this.slotGame.getSlotState_0().getBaseBet_0(), k)), g != this.slotGame.getSlotState_0().getBaseBet_0() && ((d = new GT982(Integer.truncate_1(g), f)), f || (e = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + g, !0)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN))) : GT990.prototype.MINBET.equals_1(a) ? ((f = this.isSilent_1(b)), (k = this.slotGame.getSlotState_0().getMinPossibleBet_0()), this.slotGame.getSlotState_0().getBaseBet_0() != k && ((d = new GT982(k, f)), f || (e = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + k + ":MIN", !0)))) : GT990.prototype.MAXBET.equals_1(a) ? ((f = this.isSilent_1(b)), this.slotGame.getSlotState_0().getCredits_0() >= this.slotGame.getSlotState_0().getMinPossibleBet_0() * this.slotGame.getSlotState_0().getBetMultiplier_0() ? (k = this.slotGame.getSlotState_0().getMaxPossibleBet_0()) : ((k = this.slotGame.getSlotState_0().getBaseBets_0()), (k = k[k.length - 1])), this.slotGame.getSlotState_0().getBaseBet_0() != k && ((d = new GT982(k, f)), f || (e = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED, "" + k + ":MAX", !0)))) : GT990.prototype.GAMEMODE_NEXT.equals_1(a) ? ((k = this.isLooping_1(b)), (d = new GT937(GT1354.prototype.GAMEMODE, this.slotGame.getBetUtils_0().fetchNextGameMode_1(k), this.isSilent_1(b))), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP)) : GT990.prototype.GAMEMODE_PREVIOUS.equals_1(a) ? ((k = this.isLooping_1(b)), (d = new GT937(GT1354.prototype.GAMEMODE, this.slotGame.getBetUtils_0().fetchPreviousGameMode_1(k), this.isSilent_1(b))), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN)) : GT990.prototype.GAMEMODE_MAX.equals_1(a) ? ((k = this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0().size_0() - 1), this.slotGame.getSlotState_0().getGameMode_0() != k && (d = new GT937(GT1354.prototype.GAMEMODE, k, this.isSilent_1(b)))) : GT990.prototype.LINE_UP.equals_1(a) ? ((d = new GT773(GT1354.prototype.NUMLINES, this.slotGame.getBetUtils_0().fetchMoreLines_0(), this.isSilent_1(b))), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP)) : GT990.prototype.LINE_DOWN.equals_1(a) ? ((d = new GT773(GT1354.prototype.NUMLINES, this.slotGame.getBetUtils_0().fetchFewerLines_0(), this.isSilent_1(b))), this.deactivateButton_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN)) : GT990.prototype.MAXLINES.equals_1(a) ? ((k = this.slotGame.getBetUtils_0().fetchMaxLines_0()), this.slotGame.getSlotState_0().getNumberOfLines_0() != k && (d = new GT773(GT1354.prototype.NUMLINES, k, this.isSilent_1(b)))) : GT990.prototype.GAMBLE.equals_1(a) ? ((d = new GT1354(GT1354.prototype.GAMBLE)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_GAMBLE)) : GT990.prototype.GAMBLE_RED.equals_1(a) ? ((d = new GT1354(GT1354.prototype.GAMBLE_RED)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_GAMBLE_RED)) : GT990.prototype.GAMBLE_BLACK.equals_1(a) ? ((d = new GT1354(GT1354.prototype.GAMBLE_BLACK)), this.deactivateButton_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK)) : GT990.prototype.PAYOUT.equals_1(a) ? (d = new GT1354(GT1354.prototype.PAYOUT)) : GT990.prototype.REPLAY.equals_1(a) ? (d = new GT1354(GT1354.prototype.START_REPLAY)) : GT990.prototype.PAYOUT_FINISHED.equals_1(a) ? (d = new GT1354(GT1354.prototype.PAYOUT_FINISHED)) : GT990.prototype.FLIP_SCREEN.equals_1(a) && (d = new GT1354(GT1354.prototype.FLIP_SCREEN)); null != d && this.slotEventManager.fireSlotEvent_1(d); null != e && this.slotEventManager.fireSlotEvent_1(e); this.trackKeyboardEvent_2(a, b); }, trackKeyboardEvent_2: function (a, b) { GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && GT1044.prototype.trackKeyboardEvent_2(a, b); }, listContains_2: function (a, b) { for (var d = 0; d < b.size_0(); d++) if (b.get_1(d) == a) return !0; return !1; }, deactivateButton_1: function (a) { null != this.gui && this.gui.getSlotConsole_0().setObjectInactive_1(a); }, isSilent_1: function (a) { return null != a && -1 != a.indexOf_1(GT990.prototype.VALUE_SILENT); }, isLooping_1: function (a) { return !(null != a && -1 != a.indexOf_1(GT990.prototype.VALUE_NOLOOPING)); }, notifyMaxBetOnMaxLines_0: function () { var a = this.slotGame.getSlotState_0().getDefinition_0().getBetMultipliers_0(), b = this.slotGame.getSlotState_0().getBaseBets_0(); null != a && 1 <= a.size_0() && null != b && 1 <= b.length && ((a = a.get_1(a.size_0() - 1) * b[b.length - 1]), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_MAXBET_ON_MAXLINES, "" + a)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); }, notifyAction_1: function (a) { if (null != a && ((a = a.get_1(GT697.prototype.IDENTIFIER_ACTION)), null != a)) { var b = a.get_1("name"); if (GT697.prototype.ACTION_NAME_PAYTABLE.equals_1(b)) this.commandOpenPaytable_0(); else if (GT697.prototype.ACTION_NAME_PAYTABLENEXT.equals_1(b)) this.commandPaytableNext_0(); else if (GT697.prototype.ACTION_NAME_AUTOPLAYON.equals_1(b)) this.commandAutoplayOn_0(); else if (GT697.prototype.ACTION_NAME_AUTOPLAYOFF.equals_1(b)) this.commandAutoplayOff_0(); else if (GT697.prototype.ACTION_NAME_AUTOPLAYMETER.equals_1(b)) this.commandAutoplayMeter_1(!1); else if (GT697.prototype.ACTION_NAME_AUTOPLAYMETERRESET.equals_1(b)) this.commandAutoplayMeter_1(!0); else if (GT697.prototype.ACTION_NAME_BET.equals_1(b)) { var b = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE), d = a.get_1(GT697.prototype.ACTION_ENTRY_BETMODE), e = !1; a = !1; var f = !0; GT990.prototype.VALUE_BET_CLOSETO.equals_1(d) ? ((f = !1), (e = !0)) : GT990.prototype.VALUE_SILENT.equals_1(d) && (a = !0); null != b && ((b = b.doubleValue_0() / this.slotGame.getSlotState_0().getBetMultiplier_0()), this.commandChangeBet_4(b, a, e, f)); } else GT697.prototype.ACTION_NAME_GAMEMODE.equals_1(b) ? ((b = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), (a = a.get_1(GT697.prototype.ACTION_ENTRY_BETMODE)), (a = GT990.prototype.VALUE_SILENT.equals_1(a)), (e = this.slotGame.getSlotState_0().getGameMode_0()), (f = this.slotGame.getSlotState_0().getDefinition_0().getGameModes_0().size_0()), "NEXT".equals_1(b) ? e++ : "PREV".equals_1(b) ? e-- : "MIN".equals_1(b) ? (e = 0) : "MAX".equals_1(b) ? (e = f - 1) : ((e = GT1672.prototype.stringToInt_2(b, -1)), -1 == e && (e = this.slotGame.getSlotState_0().getGameMode_0())), this.commandChangeGameMode_2((e + f) % f, a)) : GT697.prototype.ACTION_NAME_OVERRIDEMAXBET.equals_1(b) ? ((a = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), null != a && this.commandOverrideMaxbet_1("" + a.doubleValue_0())) : GT697.prototype.ACTION_NAME_OVERRIDEMINBET.equals_1(b) ? ((a = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), null != a && this.commandOverrideMinbet_1("" + a.doubleValue_0())) : GT697.prototype.ACTION_NAME_COLLECT.equals_1(b) ? this.fireEvents_2(new GT1354(GT1354.prototype.COLLECT), null) : GT697.prototype.ACTION_NAME_COLLECTCONFIRM.equals_1(b) ? this.fireEvents_2(new GT1354(GT1354.prototype.COLLECT_CONFIRM), null) : GT697.prototype.ACTION_NAME_COLLECTHANDPAY.equals_1(b) && ((a = a.get_1(GT697.prototype.ACTION_ENTRY_TRANSACTIONTYPE)), this.fireEvents_2(new GT983(GT1354.prototype.COLLECT_HANDPAY, 0, Integer.truncate_1(a.doubleValue_0())), null)); } }, }, "GT1513", [GT758] ), GT990 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT990", [] ); GT990.prototype.START_SPIN = "STARTSPIN"; GT990.prototype.COLLECT = "COLLECT"; GT990.prototype.AUTOPLAY_TOGGLE = "AUTOPLAYTOGGLE"; GT990.prototype.AUTOPLAY_OFF = "AUTOPLAYOFF"; GT990.prototype.PAYTABLE = "PAYTABLE"; GT990.prototype.PAYTABLE_NEXT = "PAYTABLE_NEXT"; GT990.prototype.BET = "BET"; GT990.prototype.BASEBET = "BASEBET"; GT990.prototype.BET_UP = "BET_UP"; GT990.prototype.BET_DOWN = "BET_DOWN"; GT990.prototype.BET_NEXT = "BET_NEXT"; GT990.prototype.LINE_UP = "LINE_UP"; GT990.prototype.LINE_DOWN = "LINE_DOWN"; GT990.prototype.GAMEMODE_NEXT = "GAMEMODE_NEXT"; GT990.prototype.GAMEMODE_PREVIOUS = "GAMEMODE_PREVIOUS"; GT990.prototype.GAMEMODE_MAX = "GAMEMODE_MAX"; GT990.prototype.MINBET = "MINBET"; GT990.prototype.MAXBET = "MAXBET"; GT990.prototype.MAXLINES = "MAXLINES"; GT990.prototype.GAMBLE = "GAMBLE"; GT990.prototype.GAMBLE_RED = "GAMBLE_RED"; GT990.prototype.GAMBLE_BLACK = "GAMBLE_BLACK"; GT990.prototype.PAYOUT = "PAYOUT"; GT990.prototype.REPLAY = "REPLAY"; GT990.prototype.PAYOUT_FINISHED = "PAYOUT_FINISHED"; GT990.prototype.OVERRIDE_LINES = "OVERRIDE_LINES"; GT990.prototype.FLIP_SCREEN = "FLIP_SCREEN"; GT990.prototype.VALUE_SILENT = "SILENT"; GT990.prototype.VALUE_BET_CLOSETO = "CLOSETO"; GT990.prototype.VALUE_BET_LOWER = "LOWER"; GT990.prototype.VALUE_NOLOOPING = "NOLOOP"; var GT1094 = GT1513.extend( { initialConstructor_0: function () { this.filter = null; GT1513.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.filter = null; GT1513.prototype.initialConstructor_3.call(this, a, b, d); }, setFilter_1: function (a) { this.filter = a; }, getEvent_2: function (a, b) { var d = null, e = this.getSlotGame_0().getSlotState_0(), f = this.getSlotGame_0().getClientStateMachine_0().getCurrentStateId_0(); if (e.getCasinoState_0().isActionAllowed_0()) if (" ".equals_1(a) && b.equals_1("ctrl") && GT1650.prototype.isDebugMode_0()) d = GT990.prototype.AUTOPLAY_TOGGLE; else if (e.isAutoPlaying_0()) { var g = e.getFreeSpinState_0(); if (" ".equals_1(a)) if (f == GT321.prototype.ID || f == GT733.prototype.ID || f == GT623.prototype.ID || f == GT178.prototype.ID) (g.isFreeSpinsRunning_0() && !g.isBeforeFirstFreeSpin_0() && g.isForceAutoplayInFreeGames_0()) || (d = GT990.prototype.START_SPIN); else if (f == GT624.prototype.ID || f == GT479.prototype.ID) d = GT990.prototype.COLLECT; } else if (" ".equals_1(a)) d = f == GT523.prototype.ID || f == GT842.prototype.ID || f == GT624.prototype.ID || f == GT479.prototype.ID ? e.isFastSpinEnabled_0() ? GT990.prototype.START_SPIN : GT990.prototype.COLLECT : GT990.prototype.START_SPIN; else if (a.equals_1("left")) f == GT625.prototype.ID || f == GT675.prototype.ID || f == GT734.prototype.ID || f == GT524.prototype.ID ? (d = GT990.prototype.BET_DOWN + ":" + GT990.prototype.VALUE_NOLOOPING) : f == GT523.prototype.ID || f == GT479.prototype.ID ? (d = GT990.prototype.GAMBLE) : f == GT842.prototype.ID && (d = GT990.prototype.GAMBLE_RED); else if (a.equals_1("right")) f == GT625.prototype.ID || f == GT675.prototype.ID || f == GT734.prototype.ID || f == GT524.prototype.ID ? (d = GT990.prototype.BET_UP + ":" + GT990.prototype.VALUE_NOLOOPING) : f == GT523.prototype.ID || f == GT479.prototype.ID ? (d = GT990.prototype.GAMBLE) : f == GT842.prototype.ID && (d = GT990.prototype.GAMBLE_BLACK); else if (a.equals_1("up")) { if (f == GT625.prototype.ID || f == GT675.prototype.ID || f == GT734.prototype.ID || f == GT524.prototype.ID) d = GT990.prototype.GAMEMODE_NEXT + ":" + GT990.prototype.VALUE_NOLOOPING; } else if (a.equals_1("down")) { if (f == GT625.prototype.ID || f == GT675.prototype.ID || f == GT734.prototype.ID || f == GT524.prototype.ID) d = GT990.prototype.GAMEMODE_PREVIOUS + ":" + GT990.prototype.VALUE_NOLOOPING; } else if (a.equals_1("tab")) if (((g = this.getSlotGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE)), e.isPaytableOpen_0())) d = null != g && g.isAtLastPage_0() ? GT990.prototype.PAYTABLE : GT990.prototype.PAYTABLE_NEXT; else if (null != g) d = GT990.prototype.PAYTABLE_NEXT; else { if (f == GT625.prototype.ID || f == GT675.prototype.ID || f == GT524.prototype.ID || f == GT428.prototype.ID || f == GT480.prototype.ID || f == GT276.prototype.ID || f == GT241.prototype.ID) d = GT990.prototype.PAYTABLE; } else ("R".equals_1(a) || "r".equals_1(a)) && b.equals_1("ctrl") && GT1650.prototype.isDebugMode_0() && (d = GT990.prototype.REPLAY); return null != this.filter ? this.filter.getEvent_5(a, b, f, e, d) : d; }, }, "GT1094", [] ), GT1095 = Class.extend( { initialConstructor_0: function () { this.gameMode = this.numLines = this.betPerLine = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.gameMode = this.numLines = this.betPerLine = 0; this.betPerLine = a; this.numLines = b; this.gameMode = d; }, getId_0: function () { return 50; }, getArguments_0: function () { return ["" + this.betPerLine, "" + this.numLines, "" + this.gameMode]; }, expectsResponse_0: function () { return !1; }, }, "GT1095", [GT1530] ), GT1045 = Class.extend( { initialConstructor_0: function () { this.clientInfo = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.clientInfo = null; this.clientInfo = a; }, getId_0: function () { return 63; }, getArguments_0: function () { return ["" + this.clientInfo]; }, expectsResponse_0: function () { return !1; }, }, "GT1045", [GT1530] ), GT1096 = Class.extend( { initialConstructor_0: function () { this.value = 0; }, initialConstructor_1: function (a) { this.value = 0; this.value = a; }, getId_0: function () { return 51; }, getArguments_0: function () { return [this.value + ""]; }, expectsResponse_0: function () { return !0; }, }, "GT1096", [GT1530] ), GT1151 = Class.extend( { initialConstructor_0: function () { this.value = 0; }, initialConstructor_1: function (a) { this.value = 0; this.value = a; }, getId_0: function () { return 54; }, getArguments_0: function () { return [this.value + ""]; }, expectsResponse_0: function () { return !0; }, }, "GT1151", [GT1530] ), GT1255 = Class.extend( { initialConstructor_0: function () { this.value = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.value = 0; this.value = a; }, getId_0: function () { return 53; }, getArguments_0: function () { return [GT1672.prototype.charToString_1(this.value)]; }, expectsResponse_0: function () { return !0; }, }, "GT1255", [GT1530] ); GT1255.prototype.RED = 114; GT1255.prototype.BLACK = 98; var GT991 = Class.extend( { initialConstructor_0: function () {}, getId_0: function () { return 61; }, getArguments_0: function () { return [].createArray(0); }, expectsResponse_0: function () { return !0; }, }, "GT991", [GT1530] ), GT1152 = Class.extend( { initialConstructor_0: function () { this.transactionType = this.value = 0; this.transactionType = -1; }, initialConstructor_1: function (a) { GT1152.prototype.initialConstructor_2.call(this, a, -1); }, initialConstructor_2: function (a, b) { this.transactionType = this.value = 0; this.value = a; this.transactionType = b; }, getId_0: function () { return 52; }, getArguments_0: function () { return -1 == this.transactionType ? [this.value + ""] : [this.value + "", this.transactionType + ""]; }, expectsResponse_0: function () { return !0; }, }, "GT1152", [GT1530] ), GT1307 = Class.extend( { initialConstructor_0: function () { this.payinvalue = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.payinvalue = 0; this.payinvalue = a; }, getId_0: function () { return 25; }, getArguments_0: function () { return [GT1672.prototype.doubleToStringRounded_1(this.payinvalue)]; }, expectsResponse_0: function () { return !0; }, }, "GT1307", [GT1530] ), GT1153 = Class.extend( { initialConstructor_0: function () {}, getId_0: function () { return 60; }, getArguments_0: function () { return []; }, expectsResponse_0: function () { return !1; }, }, "GT1153", [GT1530] ), GT992 = Class.extend( { initialConstructor_0: function () {}, getId_0: function () { return 57; }, getArguments_0: function () { return [].createArray(0); }, expectsResponse_0: function () { return !0; }, }, "GT992", [GT1530] ), GT843 = Class.extend( { initialConstructor_0: function () {}, getId_0: function () { return 55; }, getArguments_0: function () { return [].createArray(0); }, expectsResponse_0: function () { return !0; }, }, "GT843", [GT1530] ), GT993 = Class.extend( { initialConstructor_0: function () { this.pattern = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.pattern = null; this.pattern = a; }, getId_0: function () { return 56; }, getArguments_0: function () { return [GT1677.prototype.toUpperCaseAZ_1(this.pattern).trim_0()]; }, expectsResponse_0: function () { return !1; }, }, "GT993", [GT1530] ), GT676 = Class.extend( { initialConstructor_0: function () { this.userchoice = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.userchoice = 0; this.userchoice = a; }, getId_0: function () { return 58; }, getArguments_0: function () { return [this.userchoice + ""]; }, expectsResponse_0: function () { return !0; }, }, "GT676", [GT1530] ), GT1648 = Class.extend( { initialConstructor_0: function () { this.jackpot = this.freespins = this.num = this.symbol = 0; this.jackpotIdentifier = null; this.start = this.payGames = this.payCash = 0; this.details = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1648.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, null); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1648.prototype.initialConstructor_9.call(this, a, b, d, e, f, null, g, k, m); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.jackpot = this.freespins = this.num = this.symbol = 0; this.jackpotIdentifier = null; this.start = this.payGames = this.payCash = 0; this.details = null; this.symbol = a; this.num = d; this.freespins = e; this.jackpot = f; this.jackpotIdentifier = g; this.payCash = k; this.payGames = m; this.start = b; this.details = n; }, toString: function () { return "SingleWin[" + this.num + "x '" + this.symbol + "'" + (0 < this.freespins ? " -> freespins: " + this.freespins + "" : "") + "]"; }, getDetails_0: function () { return this.details; }, }, "GT1648", [] ), GT1514 = Class.extend({ initialConstructor_0: function () {}, init_0: function () {}, refresh_0: function () {} }, "GT1514", []), GT578 = GT186.extend( { initialConstructor_0: function () { this.consoleX = this.gap = this.consoleWidth = 0; this.visibleArea = null; this.useFullScreenMenuCloseButton = this.showMenuButtons = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.consoleX = this.gap = this.consoleWidth = 0; this.visibleArea = null; this.useFullScreenMenuCloseButton = this.showMenuButtons = !1; GT186.prototype.initialConstructor_1.call(this, d); this.visibleArea = a; this.showMenuButtons = e; this.useFullScreenMenuCloseButton = f; this.gap = 10; this.consoleWidth = Math.min_2(b, a.width) - 2 * this.gap; this.consoleX = a.x + this.gap; a.width > b && (this.consoleX += Math.div(a.width - b, 2)); }, initialConstructor_3: function (a, b, d) { GT578.prototype.initialConstructor_5.call(this, a, b, d, !0, !1); }, defaultOffsetY_0: function () { return 0; }, buttonOpenContextMenu_2: function (a, b) { return this.showMenuButtons ? GT1355.prototype .set_0() .id_1(GT307.prototype.ACTION_CONTEXTMENU) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/b_menu.png")) .position_2(this.visibleArea.x + this.visibleArea.width - 103 - 10, this.defaultOffsetY_0() + 10) : null; }, buttonCloseContextMenu_2: function (a, b) { return this.useFullScreenMenuCloseButton || !this.showMenuButtons ? null : GT1355.prototype .set_0() .id_1(GT307.prototype.ACTION_CONTEXTMENU) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_close.png")) .position_2(this.visibleArea.x + this.visibleArea.width - 103 - 10, this.defaultOffsetY_0() + 10); }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .position_2(300, 0) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/replay_back.png").position_2(42, 840)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/replay_back.png").position_2(1053, 840)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/bigbutton/b_close_big.png").id_1(GT307.prototype.ACTION_CLOSEREPLAY).position_2(41, 840)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/bigbutton/b_backward_big.png").id_1(GT307.prototype.ACTION_REWIND).position_2(225, 840)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/bigbutton/b_forward_big.png").id_1(GT307.prototype.ACTION_FORWARD).position_2(1052, 840)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/bigbutton/b_play_big.png").id_1(GT307.prototype.ACTION_PLAY).position_2(1235, 840)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(515, 831) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(717, 831) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, containerGameMenu_2: function (a, b) { return GT898.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOG) .position_2(0, this.defaultOffsetY_0()) .child_1( GT873.prototype .set_0() .consumingMouseEventsWhenInactive_1(!0) .showHandCursor_1(!1) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(90))) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/menu_background.png") .position_2(this.visibleArea.x + Math.div(this.visibleArea.width - 900, 2) + 2, 235) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_lobby_help}")) .id_1(GT307.prototype.ACTION_HELP) .position_2(663, 371) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_menubutton.png")) .tooltip_1("${alttext_leavecasinotable}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_leavecasinotable}")) .id_1(GT307.prototype.ACTION_LEAVETABLE) .position_2(663, 496) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_soundbutton_off.png")) .tooltip_1("${tip_soundoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDOFF) .position_2(1054, 371) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_soundbutton_on.png")) .tooltip_1("${tip_soundon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDON) .position_2(1054, 371) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_musicbutton.png")) .tooltip_1("${tip_musicoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICOFF) .position_2(1054, 496) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_musicbutton_on.png")) .tooltip_1("${tip_musicon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICON) .position_2(1054, 496) ) .hide_1(!this.showMenuButtons); }, defaultBtnTextArea_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(20, 20, 0, 0); }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .position_2(this.visibleArea.x + Math.div(this.visibleArea.width - 900, 2) + 2, 270) .size_2(900, 433) .child_1(GT1186.prototype.set_0().child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/payindialog.png"))) .child_1(this.defaultTextAreaBig_0().text_1("${warning}").position_2(130, 25).size_2(740, 80)) .child_1(this.defaultTextArea_0().text_1("${outoftwists}").position_2(30, 125).size_2(845, 190)) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${buttontext_twistshop}")) .id_1(GT554.prototype.ACTION_BTNACCOUNT) .position_2(90, 330) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) .position_2(480, 330) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/gametwist/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) .position_2(480, 330) ); }, defaultTextAreaBig_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(350)) .fontColor_1(GT1391.prototype.set_0().rgb_1(11956736)) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultTextArea_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(240)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(200)) .fontColor_1(GT1391.prototype.set_0().rgb_1(11956736)) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, }, "GT578", [] ), GT218 = GT578.extend( { initialConstructor_0: function () { this.replayXDiffRight = this.replayXDiffLeft = this.replayTextY = this.replayButtonsY = 0; GT578.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.replayXDiffRight = this.replayXDiffLeft = this.replayTextY = this.replayButtonsY = 0; GT578.prototype.initialConstructor_5.call(this, a, b, d, !0, !1); this.replayButtonsY = 824; this.replayTextY = 817; this.replayXDiffLeft = 37; this.replayXDiffRight = -40; }, initialConstructor_5: function (a, b, d, e, f) { this.replayXDiffRight = this.replayXDiffLeft = this.replayTextY = this.replayButtonsY = 0; GT578.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.replayButtonsY = 824; this.replayTextY = 817; }, defaultOffsetY_0: function () { return GT1097.prototype.getSafeAreaHeightTop_0(); }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .position_2(300, 0) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/replay_back.png") .position_2(42 + this.replayXDiffLeft, this.replayButtonsY) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/replay_back.png") .position_2(1053 + this.replayXDiffRight, this.replayButtonsY) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_close_big.png") .id_1(GT307.prototype.ACTION_CLOSEREPLAY) .position_2(41 + this.replayXDiffLeft, this.replayButtonsY) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_backward_big.png") .id_1(GT307.prototype.ACTION_REWIND) .position_2(225 + this.replayXDiffLeft, this.replayButtonsY) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_forward_big.png") .id_1(GT307.prototype.ACTION_FORWARD) .position_2(1052 + this.replayXDiffRight, this.replayButtonsY) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_play_big.png") .id_1(GT307.prototype.ACTION_PLAY) .position_2(1235 + this.replayXDiffRight, this.replayButtonsY) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(515, this.replayTextY) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(717, this.replayTextY) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, }, "GT218", [] ), GT179 = GT186.extend( { initialConstructor_0: function () { this.scale = this.gap = this.consoleY = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.scale = this.gap = this.consoleY = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT186.prototype.initialConstructor_1.call(this, e); this.gap = 10; this.gameHeight = GT1046.prototype.GAME_HEIGHT; this.consoleHeight = a.height - this.gameHeight - this.gap - d; this.consoleWidth = a.width - 2 * this.gap; this.consoleX = a.x + this.gap; this.consoleY = a.height - this.consoleHeight - this.gap - d; this.scale = this.consoleHeight / 157; }, buttonWidth_0: function () { return Integer.truncate_1(170 * this.scale); }, buttonHeight_0: function () { return this.consoleHeight; }, buttonSmallWidth_0: function () { return this.buttonWidth_0(); }, buttonSmallHeight_0: function () { return Integer.truncate_1(75 * this.scale); }, buttonBigWidth_0: function () { return 2 * this.buttonWidth_0() + this.gap; }, buttonBigHeight_0: function () { return this.buttonHeight_0(); }, defaultImageButton_1: function (a) { return GT1355.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(a).overrideSize_2(this.buttonWidth_0(), this.buttonHeight_0())); }, containerReplayDialog_2: function (a, b) { return a .removeChildren_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .position_2(this.consoleX, 0) .size_2(this.consoleWidth, this.consoleHeight + this.gameHeight) .child_1(this.defaultImageButton_1("/com/greentube/slot/client/res/bigbutton/b_close_big.png").id_1(GT307.prototype.ACTION_CLOSEREPLAY).position_2(0, this.consoleY)) .child_1( this.defaultImageButton_1("/com/greentube/slot/client/res/bigbutton/b_backward_big.png") .id_1(GT307.prototype.ACTION_REWIND) .position_2(this.buttonWidth_0() + this.gap, this.consoleY) ) .child_1( this.defaultImageButton_1("/com/greentube/slot/client/res/bigbutton/b_forward_big.png") .id_1(GT307.prototype.ACTION_FORWARD) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.consoleY) ) .child_1( this.defaultImageButton_1("/com/greentube/slot/client/res/bigbutton/b_play_big.png") .id_1(GT307.prototype.ACTION_PLAY) .position_2(this.consoleWidth - this.buttonWidth_0(), this.consoleY) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(Math.div(this.consoleWidth, 2) - Integer.truncate_1(215 * this.scale), this.consoleY - this.gap) .size_2(Integer.truncate_1(215 * this.scale), Integer.truncate_1(80 * this.scale)) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(Math.div(this.consoleWidth, 2), this.consoleY - this.gap) .size_2(Integer.truncate_1(215 * this.scale), Integer.truncate_1(80 * this.scale)) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, containerWatcherInfo_2: function (a, b) { return a.modify_2( GT307.prototype.TEXT_WATCHERINFO, GT1239.prototype.set_0().fontColor_1(GT1391.prototype.set_0().compRGB_3(128, 128, 0)).transparency_1(GT1022.prototype.set_0().alpha_1(255)).outline_2(2, GT1391.prototype.set_0().black_0()) ); }, }, "GT179", [] ), GT525 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerReplayDialog_2: function (a, b) { return a.position_2(877, 10 + b.layoutSafeAreaHeightTop_0()); }, containerGameMenu_2: function (a, b) { return a.position_2(256, b.layoutSafeAreaHeightTop_0()); }, containerSessionSummary_2: function (a, b) { return a.position_2(1334, 30 + b.layoutSafeAreaHeightTop_0()); }, layoutSafeAreaHeightTop_2: function (a, b) { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, }, "GT525", [] ), GT780 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, buttonOpenContextMenu_2: function (a, b) { return null == a ? a : a.imageFile_1("/com/greentube/slot/client/res/html5/b_menu.png").position_2(1590, 720); }, buttonCloseContextMenu_2: function (a, b) { return null == a ? a : a.imageFile_1("/com/greentube/slot/client/res/html5/b_close.png").position_2(1590, 720); }, }, "GT780", [] ), GT347 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, buttonOpenContextMenu_2: function (a, b) { return null == a ? a : a.imageFile_1("/com/greentube/slot/client/res/html5/b_menu.png").position_2(1550, 710); }, buttonCloseContextMenu_2: function (a, b) { return null == a ? a : a.imageFile_1("/com/greentube/slot/client/res/html5/b_close.png").position_2(1550, 710); }, containerGameMenu_2: function (a, b) { return a.position_2(0, 0); }, }, "GT347", [] ), GT626 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerGameMenu_2: function (a, b) { return GT898.prototype.set_0(); }, }, "GT626", [] ), GT579 = GT186.extend( { initialConstructor_0: function () { this.visiblearea = null; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.visiblearea = null; GT186.prototype.initialConstructor_1.call(this, a); this.visiblearea = b; }, containerAutoplaySettingsDialog_2: function (a, b) { var d = [0, 255, 510]; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_APSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .insets_4(0, 0, -30, 0) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(900, 855) .position_2(0, 270) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(900, 855)) .child_1( GT1355.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSEAPSETTINGS) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable_exit.png")) .position_2(812, 0) ) ) .child_1( this.defaultTextArea_0() .position_2(0, d[0]) .size_2(900, 100) .text_1("${autoplayrounds}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_APROUNDS_MSG) ) .child_1(this.sliderBackground_0().position_2(100, d[0] + 120)) .child_1( GT1335.prototype .set_0() .position_2(50, d[0] + 125) .id_1(GT307.prototype.ACTION_APROUNDS_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, d[0] + 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_APROUNDS_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) .child_1( this.defaultTextArea_0() .position_2(0, d[1]) .size_2(900, 100) .text_1("${autoplaylosslimit}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_APLOSSLIMIT_MSG) ) .child_1(this.sliderBackground_0().position_2(100, d[1] + 120)) .child_1( GT1335.prototype .set_0() .position_2(50, d[1] + 125) .id_1(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, d[1] + 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_APLOSSLIMIT_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) .child_1( this.defaultTextArea_0() .position_2(0, d[2]) .size_2(900, 100) .text_1("${autoplaysinglewin}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_APSINGLEWIN_MSG) ) .child_1(this.sliderBackground_0().position_2(100, d[2] + 120)) .child_1( GT1335.prototype .set_0() .position_2(50, d[2] + 125) .id_1(GT307.prototype.ACTION_APSINGLEWIN_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, d[2] + 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_APSINGLEWIN_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 75) .text_1("${dialog_ok}") .position_2(Math.div(900, 4), d[2] + 240) .id_1(GT307.prototype.ACTION_SETAPSETTINGS) ) ) ); }, containerGameMenu_2: function (a, b) { return null; }, containerWatcherInfo_2: function (a, b) { return null != GT514.prototype.getInstance_0() && null != GT514.prototype.getInstance_0().getApplet_0() && GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() ? a : GT1186.prototype .set_0() .position_2(this.visiblearea.x, this.visiblearea.y) .size_2(this.visiblearea.width, this.visiblearea.height) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.CENTER).child_1(a)) .child_1( GT871.prototype .set_0() .id_1(GT579.prototype.ID_CONTAINER_LEAVE_SPECTATOR) .position_2(0, 0) .size_2(this.visiblearea.width, this.visiblearea.height) .horizontalAlignment_1(GT1488.prototype.RIGHT) .verticalAlignment_1(GT1489.prototype.TOP) .child_1(GT1186.prototype.set_0().size_2(10, 10).id_1(GT579.prototype.ID_CONTAINER_GAP_ABOVE_LEAVEBUTTON)) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.RIGHT) .horizontal_0() .child_1( this.defaultMenuButton_8( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_exit.png").tiling_2(1, 4), 100, 110, 10, 10, 100, this.defaultBackgroundMenu_0() ) .tooltip_1("${exit}") .id_1(GT307.prototype.ACTION_LEAVETABLE) ) .child_1(GT1186.prototype.set_0().size_2(10, 10).id_1(GT579.prototype.ID_CONTAINER_GAP_RIGHTTO_LEAVEBUTTON)) ) ); }, defaultBackgroundMenu_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultDynamicTAMedium_0: function () { return this.defaultDynamicTA_0().removeAllFonts_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)).hAlign_1(GT1488.prototype.LEFT); }, defaultDynamicTA_0: function () { return this.defaultDynamicTASmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(190)); }, defaultDynamicTASmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultButton_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.PRESSED).state_2(0, GT1236.prototype.MOUSEOVER)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 0)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 1)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 2)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 3)); }, defaultOffsetY_0: function () { return 0; }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .position_2(300, 0) .child_1( GT1355.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_close_big.png").overrideSize_2(120, 120)).id_1(GT307.prototype.ACTION_CLOSEREPLAY).position_2(40, 780) ) .child_1( GT1355.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_backward_big.png").overrideSize_2(120, 120)).id_1(GT307.prototype.ACTION_REWIND).position_2(165, 780) ) .child_1( GT1355.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_forward_big.png").overrideSize_2(120, 120)).id_1(GT307.prototype.ACTION_FORWARD).position_2(1160, 780) ) .child_1(GT1355.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_play_big.png").overrideSize_2(120, 120)).id_1(GT307.prototype.ACTION_PLAY).position_2(1285, 780)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(1150, 5) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(1150, 45) .size_2(215, 80) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(1100, 475) .child_1(this.defaultBackground_0().size_2(1100, 370 + GT1150.prototype.BORDER)) .child_1(this.defaultTextAreaBig_0().text_1("${warning}").position_2(30, 25).size_2(1045, 80)) .child_1(this.defaultTextArea_0().text_1("${outoftwists}").position_2(30, 125).size_2(1045, 220)) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), 550 + GT1150.prototype.BORDER, 105) .text_1("${buttontext_twistshop}") .tooltip_1("${buttontext_twistshop}") .id_1(GT554.prototype.ACTION_BTNACCOUNT) .position_2(0, 370) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), 550, 105) .text_1("${alttext_closepayindialog}") .tooltip_1("${alttext_closepayindialog}") .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) .position_2(550, 370) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), 550, 105) .text_1("${alttext_closepayindialog}") .tooltip_1("${alttext_closepayindialog}") .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) .position_2(550, 370) ) ) ); }, containerSessionSettingsDialog_2: function (a, b) { var d = [0, 255, 510]; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_SESSIONSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(32))) .child_1( GT871.prototype .set_0() .insets_4(0, 0, -30, 0) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(900, 870) .position_2(0, 270) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0().size_2(900, 870)) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(900, 100).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( GT1186.prototype .set_0() .child_1( this.defaultTextArea_0() .position_2(0, d[0]) .size_2(900, 100) .text_1("${sesstimeout}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_SESSIONTIME_MSG) ) .child_1( GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1391.prototype.set_0().white_0()) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU) .size_2(700, 10) .position_2(100, d[0] + 120) ) .child_1( GT1335.prototype .set_0() .position_2(50, d[0] + 125) .id_1(GT307.prototype.ACTION_SESSIONTIME_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, d[0] + 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_SESSIONTIME_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) .child_1( this.defaultTextArea_0() .position_2(0, d[1]) .size_2(900, 100) .text_1("${rcinterval}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) ) .child_1( GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1391.prototype.set_0().white_0()) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU) .size_2(700, 10) .position_2(100, d[1] + 120) ) .child_1( GT1335.prototype .set_0() .position_2(50, d[1] + 125) .id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, d[1] + 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ID_RGBLOCK_TOGGLE) .position_2(60, d[2] + 10) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_check_on.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_check.png").tiling_2(1, 4)).showTile_2(0, 2)) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT)) ) .child_1( this.defaultTextArea_0() .position_2(157, d[2]) .size_2(650, 150) .insets_4(0, 0, 0, 0) .text_1("${blockperiod}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .id_1(GT307.prototype.TEXT_RGBLOCK_MSG) ) .child_1( GT1186.prototype .set_0() .id_1(GT307.prototype.ID_CONTAINER_RGBLOCK) .position_2(0, d[2] + 25) .resizeToContent_1(!0) .child_1( GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1391.prototype.set_0().white_0()) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU) .size_2(700, 10) .position_2(100, 120) ) .child_1( GT1335.prototype .set_0() .position_2(50, 125) .id_1(GT307.prototype.ACTION_RGBLOCK_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, 145) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .id_1(GT307.prototype.TEXT_RGBLOCK_VALUE) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) ) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 75) .text_1("${dialog_ok}") .position_2(Math.div(900, 4), d[2] + 260) .id_1(GT307.prototype.ACTION_SENDSETTINGS) ) ) ) ); }, defaultTextAreaBig_0: function () { return this.defaultTextArea_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(350)).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(300)).spacing_1(70); }, defaultTextArea_0: function () { return this.defaultTextAreaSmall_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)); }, defaultTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, sliderBackground_0: function () { return this.defaultBackground_0().borderColor_1(GT1391.prototype.set_0().white_0()).size_2(700, 10); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultMenuButton_3: function (a, b, d) { return this.defaultBaseButton_0() .size_2(b, d) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)); }, defaultMenuButton_8: function (a, b, d, e, f, g, k, m) { e += GT1150.prototype.BORDER; d += GT1150.prototype.BORDER; return this.defaultBaseButton_0() .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(m) .child_1(a.position_2(k, 0).size_2(d - k, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, g)) ) .child_1(GT1186.prototype.set_0().child_1(m).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, g))) .child_1(GT1186.prototype.set_0().child_1(m).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, g))) .child_1(GT1186.prototype.set_0().child_1(m).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, g))); }, containerErrorDialog_2: function (a, b) { var d = 400 + GT1150.prototype.BORDER, e = d - 135; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT554.prototype.ID_ERRORSCREENBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(646, d) .child_1(this.defaultBackground_0().size_2(646, d)) .child_1(this.defaultTextArea_0().id_1(GT307.prototype.TEXT_ERRORMSG).position_2(30, 30).size_2(586, e).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("")) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2), 75) .text_1("${alttext_limitcontinuebutton}") .position_2(Math.div(646, 4), d - 75 - 30) .id_1(GT307.prototype.ACTION_KEEPPLAYING) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2), 75) .text_1("${alttext_limitstopbutton}") .position_2(Math.div(646, 4), d - 75 - 30) .id_1(GT307.prototype.ACTION_STOPGAME) ) ) ); }, containerMaximumWinReachedDialog_2: function (a, b) { var d = 720 + GT1150.prototype.BORDER; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(1280, d) .child_1(this.defaultBackground_0().size_2(1280, d)) .child_1( this.defaultTextAreaBig_0().id_1(GT307.prototype.TEXT_ERRORMSG).position_2(75, 75).size_2(1130, 380).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("${maximumwinreached}") ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(1280, 2), 75) .text_1("${alttext_limitstopbutton}") .position_2(Math.div(1280, 4), d - 75 - 75) .id_1(GT307.prototype.ACTION_STOPGAME) ) ) ); }, containerResponsibleGamingInfoDialog_2: function (a, b) { var d = 500 + GT1150.prototype.BORDER, e = d - 135; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(646, d) .child_1(this.defaultBackground_0().size_2(646, d)) .child_1( this.defaultTextArea_0().id_1(GT307.prototype.TEXT_ERRORMSG).position_2(30, 30).size_2(586, e).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("${responsiblegaminginfo}") ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 60 + Math.div(30, 2), 75) .text_1("${alttext_limitcontinuebutton}") .position_2(30, d - 75 - 30) .id_1(GT307.prototype.ACTION_KEEPPLAYING) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 60 + Math.div(30, 2), 75) .text_1("${moreinfo}") .position_2(Math.div(646, 2) + Math.div(30, 2), d - 75 - 30) .id_1(GT307.prototype.ACTION_RESPONSIBLE_LINK) ) ) ); }, containerRealityCheckDialogLeavingGame_2: function (a, b) { var d = 400 + GT1150.prototype.BORDER, e = d - 135; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(646, d) .child_1(this.defaultBackground_0().size_2(646, d)) .child_1(this.defaultTextArea_0().id_1(GT307.prototype.TEXT_REALITYCHECK1).position_2(30, 30).size_2(586, e).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("")) .child_1( this.defaultTextArea_0() .id_1(GT307.prototype.TEXT_REALITYCHECK2) .position_2(30, 125) .size_2(586, e - 95) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2), 75) .text_1("${alttext_realitycheckstop}") .position_2(Math.div(646, 4), d - 75 - 30) .id_1(GT307.prototype.ACTION_STOPGAME) ) ) ); }, containerRealityCheckDialogIntervalRounds_2: function (a, b) { var d = 400 + GT1150.prototype.BORDER, e = d - 135; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(646, d) .child_1(this.defaultBackground_0().size_2(646, d)) .child_1(this.defaultTextArea_0().id_1(GT307.prototype.TEXT_REALITYCHECK4).position_2(30, 30).size_2(586, e).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("")) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2), 75) .text_1("${alttext_realitycheckcontinue}") .position_2(Math.div(646, 4), d - 75 - 30) .id_1(GT307.prototype.ACTION_KEEPPLAYING) ) ) ); }, containerRealityCheckDialogIntervalTime_2: function (a, b) { var d = 450 + GT1150.prototype.BORDER, e = d - 240; return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(646, d) .child_1(this.defaultBackground_0().size_2(646, d)) .child_1(this.defaultTextArea_0().id_1(GT307.prototype.TEXT_REALITYCHECK1).position_2(30, 30).size_2(586, e).hAlign_1(GT1488.prototype.LEFT).vAlign_1(GT1489.prototype.TOP).text_1("")) .child_1( this.defaultTextArea_0() .id_1(GT307.prototype.TEXT_REALITYCHECK2) .position_2(30, 125) .size_2(586, e - 95) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 60 + Math.div(30, 2), 75) .text_1("${viewaccounthistory}") .position_2(30, d - 196) .id_1(GT307.prototype.ACTION_VIEW_HISTORY) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 60 + Math.div(30, 2), 75) .text_1("${alttext_realitycheckcontinue}") .position_2(30, d - 98) .id_1(GT307.prototype.ACTION_KEEPPLAYING) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 60 + Math.div(30, 2), 75) .text_1("${alttext_realitycheckstop}") .position_2(Math.div(646, 2) + Math.div(30, 2), d - 98) .id_1(GT307.prototype.ACTION_STOPGAME) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_TOGGLEREALITYCHECK) .position_2(30, d - 75 - 60 - 50) .size_2(50, 50) .child_1(this.defaultBackground_0()) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( this.defaultTextAreaSmall_0() .text_1("X") .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .transparency_1(GT1022.prototype.set_0().opaque_0()) .fontColor_1(GT1391.prototype.set_0().red_0()) ) ) ) .child_1( this.defaultTextArea_0() .id_1(GT307.prototype.TEXT_REALITYCHECK3) .position_2(110, d - 75 - 60 - 50) .size_2(506, 50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .text_1("${realitycheckmessage3}") .breakLines_1(!1) ) ) ); }, }, "GT579", [] ); GT579.prototype.ID_CONTAINER_GAP_ABOVE_LEAVEBUTTON = GT1677.prototype.generateID_0(); GT579.prototype.ID_CONTAINER_GAP_RIGHTTO_LEAVEBUTTON = GT1677.prototype.generateID_0(); GT579.prototype.ID_CONTAINER_LEAVE_SPECTATOR = GT1677.prototype.generateID_0(); var GT348 = GT186.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT348.prototype.initialConstructor_2.call(this, GT558.prototype.ORDER_EXTERNAL, a); }, initialConstructor_2: function (a, b) { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_1.call(this, a); this.isUsingDynScreensLayout = b; }, containerClock_2: function (a, b) { var d = 20 + (this.isUsingDynScreensLayout ? Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2) : 0); return a .size_2(200, 88) .position_2(395, d) .replace_2( GT307.prototype.CLOCK_BACKGROUND, GT169.prototype .set_0() .id_1(GT307.prototype.CLOCK_BACKGROUND) .borderThickness_1(0) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY) ); }, }, "GT348", [] ), GT193 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(32))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(900, 550) .position_2(0, 270) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0().size_2(900, 550)) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(500, 100).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( GT1186.prototype .set_0() .child_1( this.defaultTextArea_0() .position_2(0, 98) .size_2(900, 100) .text_1("${payindescriptiontext}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .id_1(GT307.prototype.TEXT_PAYINDESC) ) .child_1( GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1391.prototype.set_0().white_0()) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU) .size_2(700, 10) .position_2(100, 250) ) .child_1( GT1335.prototype .set_0() .position_2(50, 255) .id_1(GT307.prototype.ACTION_PAYINSLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .position_2(0, 300) .size_2(900, 100) .text_1("") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(6, 0, 3, 0) .fontColor_1(GT1391.prototype.set_0().white_0()) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_PAYINVALUE1) ) .child_1( this.defaultMenuButton_3(this.defaultTextAreaSmall_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2) + GT1150.prototype.BORDER, 60) .text_1("${alttext_lobby_account}") .position_2(0, 0) .id_1(GT307.prototype.ACTION_PAYINACCOUNT) ) .child_1( this.defaultMenuButton_3(this.defaultTextAreaSmall_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 60) .text_1("${alttext_closepayindialog}") .position_2(450, 0) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) ) .child_1( this.defaultMenuButton_3(this.defaultTextAreaSmall_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 60) .text_1("${alttext_leavecasinotable}") .position_2(450, 0) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 75) .text_1("${alttext_buytickets}") .position_2(Math.div(900, 4), 440) .id_1(GT307.prototype.ACTION_BUYTICKETS) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(900, 2), 75) .text_1("${alttext_lobby_account}") .position_2(Math.div(900, 4), 440) .id_1(GT307.prototype.ACTION_PAYINACCOUNT2) ) ) ) ); }, defaultTextAreaBig_0: function () { return this.defaultTextArea_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(350)).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(300)).spacing_1(70); }, defaultTextArea_0: function () { return this.defaultTextAreaSmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(240)).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(220)); }, defaultTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultMenuButton_3: function (a, b, d) { return this.defaultBaseButton_0() .size_2(b, d) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)); }, }, "GT193", [] ), GT97 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerRCSettingsDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_RCSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(900, 550) .position_2(0, 270) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0().position_2(0, 0).size_2(900, 550)) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(900, 50).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( this.defaultTextArea_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(250)) .position_2(0, 75) .size_2(900, 100) .text_1("${realitycheckintervaltext}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1(this.sliderBackground_0().position_2(100, 230)) .child_1( GT1335.prototype .set_0() .position_2(50, 235) .id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER) .width_1(800) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_payin.png")) ) .child_1( this.defaultTextArea_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(220)) .position_2(0, 300) .size_2(900, 100) .text_1("") .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) ) .child_1( this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(220)), Math.div(900, 2), 80) .id_1(GT307.prototype.ACTION_SETRCSETTINGS) .position_2(Math.div(900, 4), 400) .text_1("${dialog_ok}") ) ) ); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultTextArea_0: function () { return this.defaultTextAreaSmall_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)); }, defaultTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultMenuButton_3: function (a, b, d) { return this.defaultBaseButton_0() .size_2(b, d) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)); }, sliderBackground_0: function () { return this.defaultBackground_0().borderColor_1(GT1391.prototype.set_0().white_0()).size_2(700, 10); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, }, "GT97", [] ), GT155 = GT186.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT155.prototype.initialConstructor_2.call(this, GT558.prototype.ORDER_EXTERNAL, a); }, initialConstructor_2: function (a, b) { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_1.call(this, a); this.isUsingDynScreensLayout = b; }, containerSessionSummary_2: function (a, b) { var d = 1206 + (this.isUsingDynScreensLayout ? 0 : 20), e = 10 + (this.isUsingDynScreensLayout ? 30 : 0); return GT1186.prototype .set_0() .position_2(d, e) .resizeToContent_1(!0) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SUMWINNINGS) .text_1("") .position_2(0, 0) .size_2(475, 33) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SUMSTAKES) .text_1("") .position_2(0, 33) .size_2(475, 33) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_WINBALANCE) .text_1("") .position_2(0, 66) .size_2(475, 33) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) ); }, }, "GT155", [] ), GT194 = GT186.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.isUsingDynScreensLayout = !1; GT186.prototype.initialConstructor_1.call(this, a); this.isUsingDynScreensLayout = b; }, containerGameMenuExtended_2: function (a, b) { var d = 0 + (this.isUsingDynScreensLayout ? 20 : 0), e = 0 + (this.isUsingDynScreensLayout ? Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2) : 0); return GT898.prototype .set_0() .position_2(d, e) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME) .text_1("") .position_2(345, 10) .size_2(150, 33) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_TIME) .text_1("") .position_2(345, 43) .size_2(150, 33) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) ); }, }, "GT194", [] ), GT219 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerPortraitModeOverlay_2: function (a, b) { return (null == a ? GT1186.prototype.set_0() : a) .hide_1(!0) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(200))) .child_1(GT873.prototype.set_0()) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(null) .insets_4(0, 0, 200, 0) .child_1( GT1186.prototype .set_0() .size_2(326, 234) .position_2(0, 500) .child_1(GT615.prototype.set_0().image_4("/com/greentube/casinolobbymanager/client/res/onebutton/turnscreenanimation.png", 1, 3, !1).loop_1(!0).timePerFrame_1(500)) ) .child_1(this.defaultTextAreaBig_0().text_1("${landscapemode}").hAlign_1(GT1488.prototype.CENTER).breakLines_1(!0).size_2(900, 250).position_2(0, 0)) ); }, defaultTextAreaBig_0: function () { return this.defaultTextArea_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(350)).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(300)).spacing_1(70); }, defaultTextArea_0: function () { return this.defaultTextAreaSmall_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)); }, defaultTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, }, "GT219", [] ), GT845 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); }, initialConstructor_4: function (a, b, d, e) { GT186.prototype.initialConstructor_1.call(this, b); }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1(GT873.prototype.set_0().id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1)) .child_1(GT873.prototype.set_0().id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2)); }, }, "GT845", [] ), GT781 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutDesignedHeight_2: function (a, b) { return a + GT781.prototype.BOTTOM_INSET; }, }, "GT781", [] ); GT781.prototype.BOTTOM_INSET = 30; var GT844 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, tableView_2: function (a, b) { return a.size_2(1280, 959 - GT844.prototype.getSafeAreaTotalHeight_0()); }, scrollBarTables_2: function (a, b) { return a.height_1(940 - GT844.prototype.getSafeAreaTotalHeight_0()); }, scrollBarRooms_2: function (a, b) { return a.position_2(45 + b.layoutHorizontalAdjustment_0(), 995 - (b.layoutOverscanTop_0() + b.layoutOverscanBottom_0())); }, subRoomView_2: function (a, b) { return a.position_2(0 + b.layoutHorizontalAdjustment_0(), 900 - (b.layoutOverscanTop_0() + b.layoutOverscanBottom_0())); }, layoutOverscanTop_2: function (a, b) { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, layoutOverscanBottom_2: function (a, b) { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, layoutSafeAreaHeightTop_2: function (a, b) { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, layoutDesignedHeight_2: function (a, b) { return a - GT844.prototype.getSafeAreaTotalHeight_0(); }, }, "GT844", [] ); GT844.prototype.getSafeAreaTotalHeight_0 = function () { return GT1097.prototype.getSafeAreaHeightTop_0() + GT1097.prototype.getSafeAreaHeightBottom_0(); }; var GT1046 = GT339.extend( { initialConstructor_0: function () { this.overScanCompensation = this.consoleWidth = this.fullHeight = 0; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1046.prototype.initialConstructor_3.call(this, a, GT1046.prototype.GAME_HEIGHT, b); }, initialConstructor_3: function (a, b, d) { this.overScanCompensation = this.consoleWidth = this.fullHeight = 0; GT339.prototype.initialConstructor_1.call(this, d); this.fullHeight = Integer.truncate_1(b / (1 - a)); a = Integer.truncate_1(this.fullHeight * a); this.consoleWidth = Math.div(a * this.defaultConsoleWidth_0(), this.defaultConsoleHeight_0()); this.consoleWidth > this.defaultDesignedWidth_0() + 2 * this.defaultOverscan_0() && ((this.consoleWidth = this.defaultDesignedWidth_0() + 2 * this.defaultOverscan_0()), (a = Math.div(this.consoleWidth * this.defaultConsoleHeight_0(), this.defaultConsoleWidth_0())), (this.fullHeight = a + b)); this.overScanCompensation = 0; this.consoleWidth > this.defaultDesignedWidth_0() && (this.overScanCompensation = Math.div(this.consoleWidth - this.defaultDesignedWidth_0(), 2)); }, disclaimer_2: function (a, b) { return a.vAlign_1(GT1489.prototype.TOP).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)); }, defaultOverscan_0: function () { return 334; }, defaultDesignedWidth_0: function () { return 1380; }, defaultConsoleWidth_0: function () { return 1e3; }, defaultConsoleHeight_0: function () { return 167; }, layoutDesignedHeight_2: function (a, b) { return this.fullHeight; }, layoutDesignedWidth_2: function (a, b) { return this.defaultDesignedWidth_0() + 2 * this.overScanCompensation; }, layoutOverscanLeft_2: function (a, b) { return this.defaultOverscan_0() - this.overScanCompensation; }, layoutOverscanRight_2: function (a, b) { return this.defaultOverscan_0() - this.overScanCompensation; }, }, "GT1046", [] ); GT1046.prototype.GAME_HEIGHT = 840; var GT526 = GT1046.extend( { initialConstructor_0: function () { GT1046.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT526.prototype.initialConstructor_3.call(this, a, GT526.prototype.GAME_HEIGHT_DYN_SCREENS, b); }, initialConstructor_3: function (a, b, d) { GT1046.prototype.initialConstructor_3.call(this, a, b, d); }, defaultOverscan_0: function () { return 379; }, defaultDesignedWidth_0: function () { return 1290; }, defaultConsoleWidth_0: function () { return 1e3; }, defaultConsoleHeight_0: function () { return 137; }, layoutDesignedHeight_2: function (a, b) { return 1024 - GT844.prototype.getSafeAreaTotalHeight_0(); }, }, "GT526", [] ); GT526.prototype.GAME_HEIGHT_DYN_SCREENS = 825; var GT429 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, buttonMenuFullscreen_2: function (a, b) { return null; }, buttonMenuWindowed_2: function (a, b) { return null; }, }, "GT429", [] ), GT899 = GT339.extend( { initialConstructor_0: function () { this.overScanCompensation = this.consoleWidth = this.fullHeight = 0; this.bottominset = !1; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT899.prototype.initialConstructor_4.call(this, a, GT899.prototype.GAME_HEIGHT, b, d); }, initialConstructor_4: function (a, b, d, e) { this.overScanCompensation = this.consoleWidth = this.fullHeight = 0; this.bottominset = !1; GT339.prototype.initialConstructor_1.call(this, d); this.bottominset = e; this.fullHeight = Integer.truncate_1(b / (1 - a)); a = Integer.truncate_1(this.fullHeight * a); this.consoleWidth = Math.div(a * this.defaultConsoleWidth_0(), this.defaultConsoleHeight_0()); this.consoleWidth > this.defaultDesignedWidth_0() + 2 * this.defaultOverscan_0() && ((this.consoleWidth = this.defaultDesignedWidth_0() + 2 * this.defaultOverscan_0()), (a = Math.div(this.consoleWidth * this.defaultConsoleHeight_0(), this.defaultConsoleWidth_0())), (this.fullHeight = a + b)); this.overScanCompensation = 0; this.consoleWidth > this.defaultDesignedWidth_0() && (this.overScanCompensation = Math.div(this.consoleWidth - this.defaultDesignedWidth_0(), 2)); }, disclaimer_2: function (a, b) { return a.vAlign_1(GT1489.prototype.TOP).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)); }, defaultOverscan_0: function () { return 334; }, defaultDesignedWidth_0: function () { return 1380; }, defaultConsoleWidth_0: function () { return 1e3; }, defaultConsoleHeight_0: function () { return 167; }, layoutDesignedHeight_2: function (a, b) { return this.bottominset ? this.fullHeight + GT899.prototype.BOTTOM_INSET : this.fullHeight; }, layoutDesignedWidth_2: function (a, b) { return this.defaultDesignedWidth_0() + 2 * this.overScanCompensation; }, layoutOverscanLeft_2: function (a, b) { return this.defaultOverscan_0() - this.overScanCompensation; }, layoutOverscanRight_2: function (a, b) { return this.defaultOverscan_0() - this.overScanCompensation; }, containerErrorScreen_2: function (a, b) { return a .replace_2(GT554.prototype.ID_DIALOG_BACKGROUND, this.defaultBackground_0().id_1(GT554.prototype.ID_DIALOG_BACKGROUND).size_2(646, 400)) .remove_1(GT307.prototype.ACTION_DRAGWINDOW) .replace_2( GT554.prototype.ACTION_CLOSEAFTERKICK, this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2), 75) .text_1("${alttext_limitstopbutton}") .position_2(Math.div(646, 4), 305) .id_1(GT554.prototype.ACTION_CLOSEAFTERKICK) ) .replace_2( GT554.prototype.ACTION_CLOSEAFTERKICK2, this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 40 + Math.div(20, 2), 75) .text_1("${alttext_limitstopbutton}") .position_2(Math.div(646, 2) + Math.div(20, 2), 305) .id_1(GT554.prototype.ACTION_CLOSEAFTERKICK2) ) .replace_2( GT554.prototype.ACTION_RECONNECT, this.defaultMenuButton_3(this.defaultTextArea_0().hAlign_1(GT1488.prototype.CENTER), Math.div(646, 2) - 40 + Math.div(20, 2), 75) .text_1("${alttext_reconnect}") .position_2(20, 305) .id_1(GT554.prototype.ACTION_RECONNECT) ); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, popUpDialogTextColor_0: function () { return GT1391.prototype.set_0().white_0(); }, defaultMenuButton_3: function (a, b, d) { return this.defaultBaseButton_0() .size_2(b, d) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultTextArea_0: function () { return this.defaultTextAreaSmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(180)); }, defaultTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, buttonContainerCopyToClipboard_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .size_2(a, a) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_copy_mobile.png").tiling_2(1, 4).overrideSize_2(a, a)).showTile_2(0, 0)) ) .child_1( GT1186.prototype .set_0() .size_2(a, a) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_copy_mobile.png").tiling_2(1, 4).overrideSize_2(a, a)).showTile_2(0, 1)) ) .child_1( GT1186.prototype .set_0() .size_2(a, a) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_copy_mobile.png").tiling_2(1, 4).overrideSize_2(a, a)).showTile_2(0, 2)) ) .child_1( GT1186.prototype .set_0() .size_2(a, a) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_copy_mobile.png").tiling_2(1, 4).overrideSize_2(a, a)).showTile_2(0, 3)) ); }, }, "GT899", [] ); GT899.prototype.GAME_HEIGHT = 835; GT899.prototype.BOTTOM_INSET = 25; var GT378 = GT899.extend( { initialConstructor_0: function () { GT899.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT899.prototype.initialConstructor_4.call(this, a, GT378.prototype.GAME_HEIGHT_DYN_SCREENS, b, d); }, defaultOverscan_0: function () { return 379; }, defaultDesignedWidth_0: function () { return 1290; }, defaultConsoleWidth_0: function () { return 1e3; }, defaultConsoleHeight_0: function () { return 120; }, }, "GT378", [] ); GT378.prototype.GAME_HEIGHT_DYN_SCREENS = 810; var GT735 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, imageLobbyBanner_2: function (a, b) { return a.imageFile_1("playingcards/room.jpg"); }, tableView_2: function (a, b) { return a.imageTableDetail_1("playingcards/slot.png"); }, }, "GT735", [] ), GT945 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, layoutDesignedWidth_2: function (a, b) { return 1240; }, layoutDesignedHeight_2: function (a, b) { return 1900; }, layoutOverscanLeft_2: function (a, b) { return 100; }, layoutOverscanRight_2: function (a, b) { return 100; }, layoutOverscanTop_2: function (a, b) { return 0; }, layoutOverscanBottom_2: function (a, b) { return 0; }, }, "GT945", [] ), GT322 = GT186.extend( { initialConstructor_0: function () { this.applet = this.visibleArea = null; this.scaleFactor = this.screenDiagonalInch = 0; GT186.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); }, initialConstructor_4: function (a, b, d, e) { this.applet = this.visibleArea = null; this.scaleFactor = this.screenDiagonalInch = 0; GT186.prototype.initialConstructor_1.call(this, b); this.visibleArea = a; this.applet = d; this.screenDiagonalInch = e; this.scaleFactor = 1; 6 < e && 8 > e ? (this.scaleFactor = 0.75) : 8 < e && (this.scaleFactor = 0.5); }, containerGameMenu_2: function (a, b) { return a .modify_2( GT307.prototype.ID_GAMEMENUDIALOGINNER, GT1186.prototype .set_0() .child_1( GT873.prototype .set_0() .position_2(this.getMenuX_0() + 44, 140) .size_2(1407, 484) .size_2(1406, 80) ) .child_1( GT1186.prototype .set_0() .position_2(this.getMenuX_0() + 44, 140) .size_2(1406, 80) .child_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/starvegas/headerBar.png").size_2(1406, 80)) .child_1( GT1239.prototype .set_0() .text_1("${gamemenu_header}") .fontColor_1(GT1391.prototype.set_0().black_0()) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(300)) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) ) ) ) .modify_2( GT307.prototype.ID_GAMEMENUDIALOGINNER, GT1186.prototype .set_0() .position_2(Integer.truncate_1(Math.div(2048, 2) * (1 - this.scaleFactor)), Integer.truncate_1(Math.div(1024 + GT781.prototype.BOTTOM_INSET, 2) * (1 - this.scaleFactor))) .contentScaling_2(this.scaleFactor, this.scaleFactor) ) .modify_2(GT307.prototype.ACTION_SOUNDOFF, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_soundbutton.jpg")) .modify_2(GT307.prototype.ACTION_SOUNDON, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_soundbutton_on.jpg")) .modify_2(GT307.prototype.ACTION_MUSICOFF, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_musicbutton.jpg")) .modify_2(GT307.prototype.ACTION_MUSICON, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_musicbutton_on.jpg")) .modify_2(GT307.prototype.ACTION_HELP, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_helpbutton.jpg")) .modify_2(GT307.prototype.ACTION_LEAVETABLE, GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_exitbutton.jpg")); }, getMenuX_0: function () { return null != this.visibleArea ? this.visibleArea.x + Math.div(this.visibleArea.width - 1496, 2) + 2 : 0; }, }, "GT322", [] ), GT1412 = GT558.extend( { initialConstructor_0: function () { GT558.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT558.prototype.initialConstructor_1.call(this, a); }, getReelX_2: function (a, b) { return a; }, getReelY_2: function (a, b) { return a; }, getInnerMainGuiX_2: function (a, b) { return a; }, getSlideInOutScreenX_2: function (a, b) { return a; }, getSlideInOutScreenY_2: function (a, b) { return a; }, getSlideInOutScreenWidth_2: function (a, b) { return a; }, getSlideInOutScreenHeight_2: function (a, b) { return a; }, reelLayout_2: function (a, b) { return a; }, mainGui_2: function (a, b) { return a; }, gameLogoContainer_2: function (a, b) { return a; }, gameLogo_2: function (a, b) { return a; }, gameLogoInFreeGames_2: function (a, b) { return a; }, platformLogo_2: function (a, b) { return a; }, slotBackground_2: function (a, b) { return a; }, slotBackgroundInFreeGames_2: function (a, b) { return a; }, reels_2: function (a, b) { return a; }, autoSpinDelay_2: function (a, b) { return a; }, reel_2: function (a, b) { return a; }, defaultReel_2: function (a, b) { return a; }, reelsInFreeGames_2: function (a, b) { return a; }, stoppedReels_2: function (a, b) { return a; }, stoppedReelsInFreeGames_2: function (a, b) { return a; }, highlight_2: function (a, b) { return a; }, highlightInFreeGames_2: function (a, b) { return a; }, freeGameStartScreen_2: function (a, b) { return a; }, freeGameMoreScreen_2: function (a, b) { return a; }, freeGameEndScreen_2: function (a, b) { return a; }, freeGameScreenBackground_2: function (a, b) { return a; }, defaultFreeGamesDynamicTextArea_2: function (a, b) { return a; }, freeGameSounds_2: function (a, b) { return a; }, baseGameMelodies_2: function (a, b) { return a; }, symbolImages_2: function (a, b) { return a; }, symbolImagesBlur_2: function (a, b) { return a; }, symbolImagesHighlight_2: function (a, b) { return a; }, symbolVideosHighlight_2: function (a, b) { return a; }, symbolSpinesHighlight_2: function (a, b) { return a; }, winLines_2: function (a, b) { return a; }, winLinesNet_2: function (a, b) { return a; }, console_2: function (a, b) { return a; }, defaultConsoleStates_2: function (a, b) { return a; }, defaultPConsoleState_2: function (a, b) { return a; }, paytable_2: function (a, b) { return a; }, paytableWinTable_2: function (a, b) { return a; }, gamble_2: function (a, b) { return a; }, gambleBackground_2: function (a, b) { return a; }, superGame_2: function (a, b) { return a; }, winSounds_2: function (a, b) { return a; }, winSoundsInFreeGames_2: function (a, b) { return a; }, bigWinVisual_2: function (a, b) { return a; }, defaultWinLines53a10_2: function (a, b) { return a; }, defaultWinLines53a10Net_2: function (a, b) { return a; }, defaultWinLines53a20_2: function (a, b) { return a; }, defaultWinLines53a20Net_2: function (a, b) { return a; }, defaultWinLines53b10_2: function (a, b) { return a; }, defaultWinLines53b10Net_2: function (a, b) { return a; }, defaultWinLines53b20_2: function (a, b) { return a; }, defaultWinLines53b20Net_2: function (a, b) { return a; }, defaultWinLines53b25_2: function (a, b) { return a; }, defaultWinLines53b25Net_2: function (a, b) { return a; }, defaultWinLines53c10_2: function (a, b) { return a; }, defaultWinLines53c10Net_2: function (a, b) { return a; }, defaultWinLines53c20_2: function (a, b) { return a; }, defaultWinLines53c20Net_2: function (a, b) { return a; }, defaultWinLines53d20_2: function (a, b) { return a; }, defaultWinLines53d20Net_2: function (a, b) { return a; }, defaultWinLines54a40_2: function (a, b) { return a; }, defaultWinLines54a40Net_2: function (a, b) { return a; }, defaultWinLines54a50_2: function (a, b) { return a; }, defaultWinLines54a50Net_2: function (a, b) { return a; }, defaultWinLines54a100_2: function (a, b) { return a; }, defaultWinLines54a100Net_2: function (a, b) { return a; }, defaultWinLines54b100_2: function (a, b) { return a; }, defaultWinLines54b100Net_2: function (a, b) { return a; }, defaultReels_2: function (a, b) { return a; }, defaultPaytable_2: function (a, b) { return a; }, defaultFreeGameStartEndScreen_2: function (a, b) { return a; }, defaultPaytableEntry_2: function (a, b) { return a; }, defaultPaytableValue_2: function (a, b) { return a; }, defaultJackpotField_2: function (a, b) { return a; }, defaultJackpotFieldInGame_2: function (a, b) { return a; }, defaultTextAreaSmall_2: function (a, b) { return a; }, defaultTextAreaMedium_2: function (a, b) { return a; }, defaultTextAreaBig_2: function (a, b) { return a; }, defaultDynamicTextAreaSmall_2: function (a, b) { return a; }, defaultDynamicTextAreaMedium_2: function (a, b) { return a; }, defaultDynamicTextAreaBig_2: function (a, b) { return a; }, autoplayText_2: function (a, b) { return a; }, autoplayCounter_2: function (a, b) { return a; }, defaultRedBlackGamble_2: function (a, b) { return a; }, defaultSingleButtonGamble_2: function (a, b) { return a; }, loadResources_1: function (a) {}, }, "GT1412", [] ), GT846 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerGameMenu_2: function (a, b) { return a.position_2(256, 0); }, buttonMenuFullscreen_2: function (a, b) { return a.position_2(1368, 35); }, buttonMenuWindowed_2: function (a, b) { return a.position_2(1368, 35); }, buttonMenuWideAspect_2: function (a, b) { return a.position_2(1338, 35); }, buttonMenuNormalAspect_2: function (a, b) { return a.position_2(1338, 35); }, buttonMenuSoundOn_2: function (a, b) { return a.position_2(1308, 35); }, buttonMenuSoundOff_2: function (a, b) { return a.position_2(1308, 35); }, buttonMenuMusicOn_2: function (a, b) { return a.position_2(1278, 35); }, buttonMenuMusicOff_2: function (a, b) { return a.position_2(1278, 35); }, buttonMenuAccount_2: function (a, b) { return b.defaultMenuButton_3("${alttext_lobby_account}", 121, 30).position_2(128, 0).id_1(GT307.prototype.ACTION_ACCOUNT); }, buttonMenuHelp_2: function (a, b) { return b.defaultMenuButton_3("${alttext_lobby_help}", 121, 30).position_2(1168, 0).id_1(GT307.prototype.ACTION_HELP); }, buttonMenuLeaveTable_2: function (a, b) { return b.defaultMenuButton_3("${alttext_leavecasinotable}", 120, 30).position_2(1288, 0).id_1(GT307.prototype.ACTION_LEAVETABLE); }, buttonMenuPayIn_2: function (a, b) { return b.defaultMenuButton_3("${alttext_openpayindialog}", 120, 30).position_2(248, 0).id_1(GT307.prototype.ACTION_PAYIN); }, containerWatcherInfo_2: function (a, b) { return a .position_2(564, 456) .size_2(920, 50) .replace_2( GT307.prototype.BG_WATCHERINFO, GT1187.prototype .set_0() .id_1(GT307.prototype.BG_WATCHERINFO) .borderThickness_1(1) .colorArea_1(GT1391.prototype.set_0().black_0()) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(45)) .transparencyBorder_1(GT1022.prototype.set_0().percent_1(65)) ) .modify_2(GT307.prototype.TEXT_WATCHERINFO, GT1239.prototype.set_0().transparency_1(GT1022.prototype.set_0().alpha_1(255)).outline_2(2, GT1391.prototype.set_0().black_0())); }, textBalance_2: function (a, b) { return a.position_2(148, 38); }, buttonOpenReplay_2: function (a, b) { return a.position_2(135, 83); }, hasReplayFeature_2: function (a, b) { return !0; }, textTime_2: function (a, b) { return a.position_2(1340, 80).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)); }, textSessionTime_2: function (a, b) { return a.hAlign_1(GT1488.prototype.RIGHT).position_2(1290, 60).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)); }, textRoundId_2: function (a, b) { return a.position_2(162, 84).size_2(186, 25).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)).fontColor_1(GT1391.prototype.set_0().white_0()).hAlign_1(GT1488.prototype.LEFT); }, containerReplayDialog_2: function (a, b) { return a.position_2(877, 10); }, textClientVersion_2: function (a, b) { return a.position_2(148, 63); }, }, "GT846", [] ), GT379 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerWatcherInfo_2: function (a, b) { return a .replace_2( GT307.prototype.BG_WATCHERINFO, GT1187.prototype .set_0() .id_1(GT307.prototype.BG_WATCHERINFO) .borderThickness_1(1) .colorArea_1(GT1391.prototype.set_0().black_0()) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(40)) .transparencyBorder_1(GT1022.prototype.set_0().percent_1(50)) ) .modify_2(GT307.prototype.TEXT_WATCHERINFO, GT1239.prototype.set_0().transparency_1(GT1022.prototype.set_0().alpha_1(255)).outline_2(0, GT1391.prototype.set_0().black_0())); }, }, "GT379", [] ), GT1154 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, tableViewBackColor_2: function (a, b) { return GT1391.prototype.set_0().compRGB_3(109, 148, 211); }, soundLobby_2: function (a, b) { return "/com/greentube/slot/client/res/room/lobby2.mp3"; }, soundLobbyLoopEnd_2: function (a, b) { return 4220; }, soundLobbyLoopStart_2: function (a, b) { return 257.46; }, imageLobbyBanner_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/room/room.jpg").position_2(b.layoutHorizontalAdjustment_0(), 0); }, tableView_2: function (a, b) { return GT847.prototype .set_0() .id_1(GT554.prototype.ID_CONTAINER_TABLEVIEW) .position_2(50 + b.layoutHorizontalAdjustment_0(), 65) .size_2(1280, 959) .imageUserPlaying_1( "/com/greentube/slot/client/res/room/user.png /com/greentube/slot/client/res/room/user_r.png /com/greentube/slot/client/res/room/user_b.png /com/greentube/slot/client/res/room/user_v.png /com/greentube/slot/client/res/room/user_g.png /com/greentube/slot/client/res/room/user_c.png".split( " " ) ) .userImageIndent_2(26, 60) .imageUserWinning_1( "/com/greentube/slot/client/res/room/user_bonus.png /com/greentube/slot/client/res/room/user_bonus_r.png /com/greentube/slot/client/res/room/user_bonus_b.png /com/greentube/slot/client/res/room/user_bonus_v.png /com/greentube/slot/client/res/room/user_bonus_g.png /com/greentube/slot/client/res/room/user_bonus_c.png".split( " " ) ) .userImageWinningIndent_2(6, 30) .buttonEnterID_1(GT554.prototype.ACTION_ENTERTABLE) .tablesInRow_1(7) .tableIndent_2(10, -28) .tableAddressIndent_2(14, 23) .tableAddressFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .tableAddressColor_1(GT1391.prototype.set_0().yellow_0()) .userNamePosition_4(36, 163, 92, 20) .addPayoutFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addPayoutFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .addPayoutFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80)) .addPayoutFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(60)) .payoutColor_1(GT1391.prototype.set_0().yellow_0()) .tableDetailIndent_2(14, 66) .showLastPayout_0() .showDetailSwitchWhenIdle_0() .tableHighlight_1(GT656.prototype.set_0().percentage_offset_2(130, 20)) .imageTable_1("/com/greentube/slot/client/res/room/machine.png") .imageTableDetail_1("/com/greentube/slot/client/res/room/slot.png") .numberOfTableDetails_1(6) .tableAddressColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 233)); }, layoutDesignedWidth_2: function (a, b) { return 1280 + 2 * b.layoutHorizontalAdjustment_0(); }, layoutDesignedHeight_2: function (a, b) { return 1024; }, layoutOverscanLeft_2: function (a, b) { return 384 - b.layoutHorizontalAdjustment_0(); }, layoutOverscanRight_2: function (a, b) { return 384 - b.layoutHorizontalAdjustment_0(); }, }, "GT1154", [] ), GT994 = Class.extend( { initialConstructor_0: function () { this.layoutDesignedHeight = this.layoutDesignedWidth = 0; }, getLayoutDesignedWidth_0: function () { return this.layoutDesignedWidth; }, setLayoutDesignedWidth_1: function (a) { this.layoutDesignedWidth = a; }, getLayoutDesignedHeight_0: function () { return this.layoutDesignedHeight; }, setLayoutDesignedHeight_1: function (a) { this.layoutDesignedHeight = a; }, }, "GT994", [] ), GT627 = GT994.extend( { initialConstructor_0: function () { this.visibleAreaSource = this.parameterSource = null; this.isBigPaytableEnabled = this.isBigGambleEnabled = this.isMobileGambleEnabled = this.isBigButtonMobileEnabled = this.isBigButtonEnabled = this.isBottomInsetEnabled = this.isDynamicConsoleButtonsEnabled = this.isBigMenuButtonEnabled = this.isUsingDynScreensLayout = !1; this.JSONMode = 0; this.isShowSessionSummary = this.isShowSessionTime = this.isShowPayinDialog = this.isOneButtonEnabled = this.isUsingMaxBetButton = this.isHidingCurrencySymbolsOnGambleScreen = this.isHidingCurrencySymbolsInPaytable = this.isSkyVegasSkinEnabled = this.isPlayingCardsSkinEnabled = this.isMobileSkinEnabled = this.isAutoplayEnabled = this.isFullScreenButtonEnabled = !1; this.reservedAreaAlpha = this.consolePercentageMobile = 0; this.isFreeRoundsEnabled = this.isConsoleEnabled = this.winlabels_show = this.spinner_autoplay_show = this.ukgc_autoplayfeature_enabled = this.field_balance_show = this.field_lastwin_show = this.field_credits_show = this.field_totalbet_show = this.spinner_betperline_show = this.spinner_lines_show = this.button_gamble_show = this.button_maxbet_show = this.button_paytable_show = this.console_show = this.field_totalroundwin_show = this.sessionsummary_show = this.clock_show = this.field_sessiontime_show = this.payindialog_show = this.button_sound_show = this.button_music_show = this.button_exit_show = this.button_help_show = this.button_topup_show = !1; this.layout = null; this.isShowReservedArea = this.isShowingClock = this.isUsingHTML5FewerSoundsDecorator = !1; this.button_maxbet_placement = this.onebutton_menu_appearance = null; this.gambleSoundsDisabled = this.isOmitCentsOnConsoleIfZero = this.isNeverOmitCentsOnPaytable = this.isOmitCentsOnPaytableForHighValues = this.isHidingPaytableButtons = this.isHidingCredit = !1; GT994.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.visibleAreaSource = this.parameterSource = null; this.isBigPaytableEnabled = this.isBigGambleEnabled = this.isMobileGambleEnabled = this.isBigButtonMobileEnabled = this.isBigButtonEnabled = this.isBottomInsetEnabled = this.isDynamicConsoleButtonsEnabled = this.isBigMenuButtonEnabled = this.isUsingDynScreensLayout = !1; this.JSONMode = 0; this.isShowSessionSummary = this.isShowSessionTime = this.isShowPayinDialog = this.isOneButtonEnabled = this.isUsingMaxBetButton = this.isHidingCurrencySymbolsOnGambleScreen = this.isHidingCurrencySymbolsInPaytable = this.isSkyVegasSkinEnabled = this.isPlayingCardsSkinEnabled = this.isMobileSkinEnabled = this.isAutoplayEnabled = this.isFullScreenButtonEnabled = !1; this.reservedAreaAlpha = this.consolePercentageMobile = 0; this.isFreeRoundsEnabled = this.isConsoleEnabled = this.winlabels_show = this.spinner_autoplay_show = this.ukgc_autoplayfeature_enabled = this.field_balance_show = this.field_lastwin_show = this.field_credits_show = this.field_totalbet_show = this.spinner_betperline_show = this.spinner_lines_show = this.button_gamble_show = this.button_maxbet_show = this.button_paytable_show = this.console_show = this.field_totalroundwin_show = this.sessionsummary_show = this.clock_show = this.field_sessiontime_show = this.payindialog_show = this.button_sound_show = this.button_music_show = this.button_exit_show = this.button_help_show = this.button_topup_show = !1; this.layout = null; this.isShowReservedArea = this.isShowingClock = this.isUsingHTML5FewerSoundsDecorator = !1; this.button_maxbet_placement = this.onebutton_menu_appearance = null; this.gambleSoundsDisabled = this.isOmitCentsOnConsoleIfZero = this.isNeverOmitCentsOnPaytable = this.isOmitCentsOnPaytableForHighValues = this.isHidingPaytableButtons = this.isHidingCredit = !1; GT994.prototype.initialConstructor_0.call(this); this.parameterSource = a; this.visibleAreaSource = b; }, initialize_0: function () { this.setBigMenuButtonEnabled_1(this.isParameterEnabled_1("bigmenubutton")); this.setBottomInsetEnabled_1(this.isParameterEnabled_1("bottominset")); this.setBigButtonEnabled_1(this.isParameterEnabled_1("bigbutton")); this.setBigButtonMobileEnabled_1(this.isParameterEnabled_1("bigbuttonmobile")); this.setOneButtonEnabled_1(this.isParameterEnabled_1("onebutton")); this.setMobileGambleEnabled_1(this.isParameterEnabled_1("mobilegamble")); this.setBigGambleEnabled_1(this.isParameterEnabled_1("biggamble")); this.setBigPaytableEnabled_1(this.isParameterEnabled_1("bigpaytable")); this.setJSONMode_1(GT677.prototype.JSONMODE_LOCAL); this.setMobileSkinEnabled_1(this.hasSkinId_1("mobile")); this.setPlayingCardsSkinEnabled_1(this.hasSkinId_1("playingcards")); this.setAutoplayEnabled_1(!this.hasSkinId_1("noautoplay")); this.setFullScreenButtonEnabled_1(null == this.parameterSource.getParameter_1("showfullscreenbutton") || this.isParameterEnabled_1("showfullscreenbutton")); this.setSkyVegasSkinEnabled_1(this.hasSkinId_1("skyvegas")); this.setHidingCurrencySymbolsInPaytable_1(this.isParameterEnabled_1("hidecurrencysymbols")); this.setHidingCurrencySymbolsOnGambleScreen_1(this.isParameterEnabled_1("hidecurrencysymbolsongamblescreen")); this.setHidingCredit_1(this.isParameterEnabled_1("hidecredit")); this.setHidingPaytableButtons_1(this.isParameterEnabled_1("hidepaytablebutton")); this.setDynamicConsoleButtonsEnabled_1(this.isParameterEnabled_1("dynamicconsolebuttons")); this.setUsingMaxBetButton_1(this.isShowParameterEnabled_2("maxbetbuttonenabled", this.isOneButtonEnabled)); this.setConsoleEnabled_1(null == this.parameterSource.getParameter_1("consoleenabled") || this.isParameterEnabled_1("consoleenabled")); this.setNeverOmitCentsOnPaytable_1(this.isParameterEnabled_1("neveromitcentsonpaytable")); this.setOmitCentsOnPaytableForHighValues_1(this.isParameterEnabled_1("omitcentsonpaytableforhighvalues")); this.setOmitCentsOnConsole_1(this.isParameterEnabled_1("omitcentsonconsole")); this.setShowClock_1(this.isParameterEnabled_1("showclock")); this.setShowReservedArea_1(this.isParameterEnabled_1("showreservedarea")); var a = null == this.parameterSource.getParameter_1("usingwebaudio") ? !0 : this.isParameterEnabled_1("usingwebaudio"), b = null == this.parameterSource.getParameter_1("slotparkaudio") ? !1 : this.isParameterEnabled_1("slotparkaudio"); this.setUsingHTML5FewerSoundsDecorator_1(!a && !b); this.setLayout_1(this.parameterSource.getParameter_1("layout")); this.setUKGCAutoplayFeatureEnabled_1(this.isParameterEnabled_1("ukgc.autoplayfeature.enabled")); a = this.parameterSource.getParameter_1("showreservedareaalpha"); this.setReservedAreaAlpha_1(GT1672.prototype.stringToDouble_2(a, 0.8)); this.isFreeRoundsEnabled = "1".equals_1(this.parameterSource.getParameter_1("freeSpinsMode")); var a = !1, b = !0, d = !1; this.hasSkinId_1("deepwalletuser") || this.hasSkinId_1("chartwell") ? (a = !0) : this.hasSkinId_1("notopbuttons") ? (b = !1) : this.hasSkinId_1("nogamemenu") && (d = !0); var e = null != this.parameterSource.getParameter_1("playrecord") || null != this.parameterSource.getParameter_1("record"), d = this.isShowParameterEnabled_2("gamemenu.show", !d); this.setShowPayinDialog_1(this.isParameterEnabled_1("showpayindialog")); this.setShowSessionTime_1(this.isParameterEnabled_1("showsessiontime")); this.setShowSessionSummary_1(this.isParameterEnabled_1("showsessionsummary")); this.setTopUpButtonShow_1(this.isShowParameterEnabled_2("button.topup.show", d && b)); this.setHelpButtonShow_1(this.isShowParameterEnabled_2("button.help.show", d && b)); this.setExitButtonShow_1(this.isShowParameterEnabled_2("button.exit.show", d && b)); a && (this.setTopUpButtonShow_1(!1), this.setHelpButtonShow_1(!1), this.setExitButtonShow_1(!1)); this.setMusicButtonShow_1(this.isShowParameterEnabled_2("button.music.show", d)); this.setSoundButtonShow_1(this.isShowParameterEnabled_2("button.sound.show", d)); this.setPayInDialogShow_1(this.isShowParameterEnabled_2("payindialog.show", !1) || this.isShowPayinDialog); this.setSessionTimeFieldShow_1(this.isShowParameterEnabled_2("field.sessiontime.show", !1) || this.isShowSessionTime); e && this.setSessionTimeFieldShow_1(!1); this.setClockShow_1(this.isShowParameterEnabled_2("clock.show", !1) || this.isShowingClock); this.setTotalRoundWinFieldShow_1(this.isShowParameterEnabled_2("field.totalroundwin.show", !1)); this.setSessionSummaryShow_1(this.isShowParameterEnabled_2("sessionsummary.show", !1) || this.isShowSessionSummary); this.setConsoleShow_1(this.isShowParameterEnabled_2("console.show", this.isConsoleEnabled)); this.setPayTableButtonShow_1(this.isShowParameterEnabled_2("button.paytable.show", this.console_show) && !this.isHidingPaytableButtons); this.setMaxBetButtonShow_1(this.isShowParameterEnabled_2("button.maxbet.show", this.isOneButtonEnabled) || this.isUsingMaxBetButton); this.setGambleButtonShow_1(this.isShowParameterEnabled_2("button.gamble.show", this.console_show)); this.setLinesSpinnerShow_1(this.isShowParameterEnabled_2("spinner.lines.show", this.console_show)); this.setBetPerLineSpinnerShow_1(this.isShowParameterEnabled_2("spinner.betperline.show", this.console_show)); this.setTotalBetFieldShow_1(this.isShowParameterEnabled_2("field.totalbet.show", this.console_show)); this.setCreditsFieldShow_1(this.isShowParameterEnabled_2("field.credits.show", this.console_show) && !this.isHidingCredit); this.setLastWinFieldShow_1(this.isShowParameterEnabled_2("field.lastwin.show", this.console_show) && !this.field_totalroundwin_show); this.setAutoplaySpinnerShow_1(this.isShowParameterEnabled_2("spinner.autoplay.show", this.console_show) && this.isAutoplayEnabled); a = 0.166; b = this.parameterSource.getParameter_1("pmobileconsole"); null != b && (a = GT1672.prototype.stringToDouble_2(b, a)); this.setMobileConsolePercentage_1(a); this.setMaxBetButtonPlacement_1(this.parameterSource.getParameter_1("button.maxbet.placement")); this.setOneButtonMenuAppearance_1(this.parameterSource.getParameter_1("onebutton.menu.appearance")); this.setGambleSoundsDisabled_1(this.isParameterEnabled_1("gamble.sounds.disabled")); this.setWinlabelsShow_1(this.isShowParameterEnabled_2("winlabels.show", !0)); }, isParameterEnabled_1: function (a) { return 1 == GT1672.prototype.stringToInt_1(this.parameterSource.getParameter_1(a)) || "true".equals_1(this.parameterSource.getParameter_1(a)); }, isShowParameterEnabled_2: function (a, b) { return null != this.parameterSource.getParameter_1(a) ? this.isParameterEnabled_1(a) : b; }, hasSkinId_1: function (a) { var b = this.parameterSource.getParameter_1("skin"); if (null == b) return !1; for (var b = GT1677.prototype.tokenize_2(b, ",.:; "), d = 0; d < b.length; d++) if (GT1677.prototype.equalsIgnoreCaseAZ_2(b[d], a)) return !0; return !1; }, decorateCasinoLobbySkin_1: function (a) { this.isPlayingCardsSkinEnabled && a.addDecorator_1(new GT735(GT558.prototype.ORDER_BEFORE_GAME)); a.addDecorator_1(new GT1154(GT558.prototype.ORDER_BEFORE_GAME)); this.isUsingDynScreensLayout && a.addDecorator_1(new GT844(GT558.prototype.ORDER_BEFORE_GAME)); if (this.isMobileSkinEnabled || this.isBigButtonEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT526(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME)) : a.addDecorator_1(new GT1046(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME)), this.isBottomInsetEnabled && a.addDecorator_1(new GT781(GT558.prototype.ORDER_BEFORE_GAME)); this.isFullScreenButtonEnabled || a.addDecorator_1(new GT429(Integer.MAX_VALUE)); }, decorateCasinoGameOverlaySkin_1: function (a) { a.addDecorator_1(new GT846(GT558.prototype.ORDER_BEFORE_GAME)); this.isUsingDynScreensLayout && a.addDecorator_1(new GT525(GT558.prototype.ORDER_BEFORE_GAME)); this.isBigButtonEnabled && a.addDecorator_1(new GT626(Integer.MAX_VALUE)); var b = this.calculateMaxWidth_0(); if (this.isMobileSkinEnabled || this.isBigMenuButtonEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT218(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_BEFORE_GAME)) : a.addDecorator_1(new GT578(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_BEFORE_GAME)); this.isSkyVegasSkinEnabled && a.addDecorator_1(new GT109(Integer.MAX_VALUE)); (!this.isSkyVegasSkinEnabled && this.isFullScreenButtonEnabled) || a.addDecorator_1(new GT49(Integer.MAX_VALUE)); !this.parameterSource.isScreenRotationEnabled_0() && GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.parameterSource.getSkinManager_0().getDeviceType_0()) && a.addDecorator_1(new GT219(GT558.prototype.ORDER_BEFORE_GAME)); }, decorateSlotSkin_1: function (a) { var b = this.calculateMaxWidth_0(); this.isUsingDynScreensLayout && a.addDecorator_1(new GT1097(GT558.prototype.ORDER_BEFORE_GAME)); (this.isUsingMaxBetButton || this.button_maxbet_show) && a.addDecorator_1(new GT995(GT558.prototype.ORDER_BEFORE_GAME)); this.field_totalroundwin_show && a.addDecorator_1(new GT946(GT558.prototype.ORDER_BEFORE_GAME)); if (this.isBigButtonEnabled || this.isMobileSkinEnabled) { this.isUsingDynScreensLayout ? a.addDecorator_1(new GT628(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME)) : a.addDecorator_1(new GT1155(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME)); if (this.isUsingMaxBetButton || this.button_maxbet_show) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT195(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME)) : a.addDecorator_1(new GT527(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME)); this.isBottomInsetEnabled || (this.isUsingDynScreensLayout ? a.addDecorator_1(new GT278(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT678(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME))); this.isOneButtonEnabled || a.addDecorator_1(new GT430(GT558.prototype.ORDER_EXTERNAL)); if (this.isBigButtonMobileEnabled) { var d = this.isUsingDynScreensLayout ? (this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET - 35 : -35) : this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0; a.addDecorator_1(new GT679(this.visibleAreaSource.getVisibleArea_0(), d, this.isUsingDynScreensLayout, GT558.prototype.ORDER_AFTER_GAME, b)); } } this.isPlayingCardsSkinEnabled && a.addDecorator_1(new GT1047(GT558.prototype.ORDER_AFTER_GAME)); if (this.isBigPaytableEnabled || this.isMobileSkinEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT528(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT1048(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); if (this.isMobileGambleEnabled || this.isMobileSkinEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT481(GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT996(GT558.prototype.ORDER_AFTER_GAME)); if (this.isBigGambleEnabled || this.isMobileSkinEnabled) this.isUsingDynScreensLayout || a.addDecorator_1(new GT1156(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); this.isMobileSkinEnabled && a.addDecorator_1(new GT997(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); this.isAutoplayEnabled && this.spinner_autoplay_show ? !this.isOneButtonEnabled && this.ukgc_autoplayfeature_enabled && a.addDecorator_1(new GT998(GT558.prototype.ORDER_EXTERNAL, this.isSkyVegasSkinEnabled)) : this.isBigButtonEnabled ? a.addDecorator_1(new GT629(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT1098(GT558.prototype.ORDER_AFTER_GAME)); this.isHidingCurrencySymbolsInPaytable && a.addDecorator_1(new GT782(GT558.prototype.ORDER_AFTER_GAME)); this.isHidingCurrencySymbolsOnGambleScreen && a.addDecorator_1(new GT220(GT558.prototype.ORDER_AFTER_GAME)); this.isHidingCredit && a.addDecorator_1(new GT947(GT558.prototype.ORDER_AFTER_GAME)); (!this.isHidingPaytableButtons && this.button_paytable_show) || a.addDecorator_1(new GT783(GT558.prototype.ORDER_AFTER_GAME)); this.isNeverOmitCentsOnPaytable ? a.addDecorator_1(new GT380(GT558.prototype.ORDER_AFTER_GAME)) : this.isOmitCentsOnPaytableForHighValues && a.addDecorator_1(new GT180(GT558.prototype.ORDER_AFTER_GAME)); this.isOmitCentsOnConsoleIfZero && a.addDecorator_1(new GT381(GT558.prototype.ORDER_AFTER_GAME)); this.isFreeRoundsEnabled && a.addDecorator_1(new GT1099(GT558.prototype.ORDER_AFTER_GAME)); (this.isConsoleEnabled && this.console_show) || a.addDecorator_1( new GT1157( GT558.prototype.ORDER_EXTERNAL, this.button_gamble_show, !this.isHidingPaytableButtons || this.button_paytable_show, this.spinner_lines_show, this.spinner_betperline_show, this.field_totalbet_show, this.field_credits_show, this.field_lastwin_show, this.field_totalroundwin_show ) ); GT1650.prototype.isDebugMode_0() && this.isShowReservedArea && a.addDecorator_1(new GT784(GT558.prototype.ORDER_EXTERNAL, this.isUsingDynScreensLayout, this.layout, this.reservedAreaAlpha)); a.addDecorator_1( new GT630( Integer.MAX_VALUE, this.button_sound_show, this.button_music_show, this.button_topup_show, this.button_exit_show, this.button_maxbet_show, this.button_gamble_show, this.spinner_lines_show, this.spinner_betperline_show, this.field_totalbet_show, this.field_credits_show, this.field_lastwin_show, this.field_totalroundwin_show ) ); this.parameterSource.isScreenRotationEnabled_0() && this.parameterSource.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && a.addDecorator_1(new GT1209()); this.gambleSoundsDisabled && a.addDecorator_1(new GT900(GT558.prototype.ORDER_AFTER_GAME)); this.winlabels_show || a.addDecorator_1(new GT1049(GT558.prototype.ORDER_AFTER_GAME)); }, setUsingDynScreensLayout_1: function (a) { this.isUsingDynScreensLayout = a; }, setBigMenuButtonEnabled_1: function (a) { this.isBigMenuButtonEnabled = a; }, setDynamicConsoleButtonsEnabled_1: function (a) { this.isDynamicConsoleButtonsEnabled = a; }, setBottomInsetEnabled_1: function (a) { this.isBottomInsetEnabled = a; }, setBigButtonEnabled_1: function (a) { this.isBigButtonEnabled = a; }, setBigButtonMobileEnabled_1: function (a) { this.isBigButtonMobileEnabled = a; }, setOneButtonEnabled_1: function (a) { this.isOneButtonEnabled = a; }, setMobileGambleEnabled_1: function (a) { this.isMobileGambleEnabled = a; }, setBigGambleEnabled_1: function (a) { this.isBigGambleEnabled = a; }, setBigPaytableEnabled_1: function (a) { this.isBigPaytableEnabled = a; }, setJSONMode_1: function (a) { this.JSONMode = a; }, setMobileSkinEnabled_1: function (a) { this.isMobileSkinEnabled = a; }, setPlayingCardsSkinEnabled_1: function (a) { this.isPlayingCardsSkinEnabled = a; }, setAutoplayEnabled_1: function (a) { this.isAutoplayEnabled = a; }, setFullScreenButtonEnabled_1: function (a) { this.isFullScreenButtonEnabled = a; }, setMobileConsolePercentage_1: function (a) { this.consolePercentageMobile = a; }, setSkyVegasSkinEnabled_1: function (a) { this.isSkyVegasSkinEnabled = a; }, setHidingCredit_1: function (a) { this.isHidingCredit = a; }, setHidingCurrencySymbolsInPaytable_1: function (a) { this.isHidingCurrencySymbolsInPaytable = a; }, setHidingCurrencySymbolsOnGambleScreen_1: function (a) { this.isHidingCurrencySymbolsOnGambleScreen = a; }, setHidingPaytableButtons_1: function (a) { this.isHidingPaytableButtons = a; }, setUsingMaxBetButton_1: function (a) { this.isUsingMaxBetButton = a; }, setConsoleEnabled_1: function (a) { this.isConsoleEnabled = a; }, setNeverOmitCentsOnPaytable_1: function (a) { this.isNeverOmitCentsOnPaytable = a; }, setOmitCentsOnPaytableForHighValues_1: function (a) { this.isOmitCentsOnPaytableForHighValues = a; }, setOmitCentsOnConsole_1: function (a) { this.isOmitCentsOnConsoleIfZero = a; }, setShowClock_1: function (a) { this.isShowingClock = a; }, setShowReservedArea_1: function (a) { this.isShowReservedArea = a; }, setLayout_1: function (a) { this.layout = null == a ? "" : a; }, setUKGCAutoplayFeatureEnabled_1: function (a) { this.ukgc_autoplayfeature_enabled = a; }, setReservedAreaAlpha_1: function (a) { 0 >= a ? (a = 0) : 1 <= a && (a = 1); this.reservedAreaAlpha = GT1677.prototype.computeAlpha_1(a); }, calculateMaxWidth_0: function () { var a = this.layoutDesignedWidth; this.isDynamicConsoleButtonsEnabled && (a = Math.div(Integer.MAX_VALUE, 2)); return a; }, setShowSessionTime_1: function (a) { this.isShowSessionTime = a; }, setShowSessionSummary_1: function (a) { this.isShowSessionSummary = a; }, setShowPayinDialog_1: function (a) { this.isShowPayinDialog = a; }, setTopUpButtonShow_1: function (a) { this.button_topup_show = a; }, setHelpButtonShow_1: function (a) { this.button_help_show = a; }, setExitButtonShow_1: function (a) { this.button_exit_show = a; }, setMusicButtonShow_1: function (a) { this.button_music_show = a; }, setSoundButtonShow_1: function (a) { this.button_sound_show = a; }, setPayInDialogShow_1: function (a) { this.payindialog_show = a; }, setSessionTimeFieldShow_1: function (a) { this.field_sessiontime_show = a; }, setClockShow_1: function (a) { this.clock_show = a; }, setTotalRoundWinFieldShow_1: function (a) { this.field_totalroundwin_show = a; }, setSessionSummaryShow_1: function (a) { this.sessionsummary_show = a; }, setConsoleShow_1: function (a) { this.console_show = a; }, setPayTableButtonShow_1: function (a) { this.button_paytable_show = a; }, setMaxBetButtonShow_1: function (a) { this.button_maxbet_show = a; }, setGambleButtonShow_1: function (a) { this.button_gamble_show = a; }, setLinesSpinnerShow_1: function (a) { this.spinner_lines_show = a; }, setBetPerLineSpinnerShow_1: function (a) { this.spinner_betperline_show = a; }, setTotalBetFieldShow_1: function (a) { this.field_totalbet_show = a; }, setCreditsFieldShow_1: function (a) { this.field_credits_show = a; }, setLastWinFieldShow_1: function (a) { this.field_lastwin_show = a; }, setBalanceFieldShow_1: function (a) { this.field_balance_show = a; }, setAutoplaySpinnerShow_1: function (a) { this.spinner_autoplay_show = a; }, setUsingHTML5FewerSoundsDecorator_1: function (a) { this.isUsingHTML5FewerSoundsDecorator = a; }, setOneButtonMenuAppearance_1: function (a) { this.onebutton_menu_appearance = null == a ? "default" : a; }, setMaxBetButtonPlacement_1: function (a) { this.button_maxbet_placement = null == a ? "menu" : a; }, isGambleSoundsDisabled_0: function () { return this.gambleSoundsDisabled; }, setGambleSoundsDisabled_1: function (a) { this.gambleSoundsDisabled = a; }, setWinlabelsShow_1: function (a) { this.winlabels_show = a; }, }, "GT627", [] ), GT677 = GT627.extend( { initialConstructor_0: function () { this.mobileProduct = null; this.screenDiagonalInch = 0; GT627.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.mobileProduct = null; this.screenDiagonalInch = 0; GT627.prototype.initialConstructor_2.call(this, a, b); this.parameterSource = a; this.visibleAreaSource = b; this.screenDiagonalInch = -1; }, initialize_0: function () { GT627.prototype.initialize_0.call(this); this.setMobileProduct_1(this.parameterSource.getParameter_1("mobileproduct")); this.setScreenDiagonalInch_1(GT1672.prototype.stringToDouble_1(this.parameterSource.getParameter_1("screendiagonalinch"))); var a = 0.166, b = this.parameterSource.getParameter_1("pmobileconsole"); null != b && (a = GT1672.prototype.stringToDouble_2(b, a)); this.setMobileConsolePercentage_1(a); GT677.prototype.PRODUCT_SVA.equals_1(this.mobileProduct) && (this.setBottomInsetEnabled_1(!0), this.setJSONMode_1(GT677.prototype.JSONMODE_LOCAL)); }, setMobileProduct_1: function (a) { this.mobileProduct = a; }, setScreenDiagonalInch_1: function (a) { this.screenDiagonalInch = a; }, decorateCasinoLobbySkin_1: function (a) { a.addDecorator_1(new GT1154(GT558.prototype.ORDER_BEFORE_GAME)); this.isUsingDynScreensLayout ? (a.addDecorator_1(new GT844(GT558.prototype.ORDER_BEFORE_GAME)), a.addDecorator_1(new GT526(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME))) : a.addDecorator_1(new GT1046(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME)); GT677.prototype.PRODUCT_SVA.equals_1(this.mobileProduct) && a.addDecorator_1(new GT781(GT558.prototype.ORDER_BEFORE_GAME)); }, decorateCasinoGameOverlaySkin_1: function (a) { a.addDecorator_1(new GT846(GT558.prototype.ORDER_BEFORE_GAME)); this.isUsingDynScreensLayout && a.addDecorator_1(new GT525(GT558.prototype.ORDER_BEFORE_GAME)); a.addDecorator_1(new GT626(GT558.prototype.ORDER_BEFORE_GAME)); var b = this.layoutDesignedWidth, d = GT677.prototype.PRODUCT_SVA.equals_1(this.mobileProduct), e = null != this.parameterSource.getParameter_1("android") && this.parameterSource.getParameter_1("android").equals_1("1"); this.isOneButtonEnabled ? a.addDecorator_1(new GT579(GT558.prototype.ORDER_BEFORE_GAME, this.visibleAreaSource.getVisibleArea_0())) : this.isUsingDynScreensLayout ? a.addDecorator_1(new GT218(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_BEFORE_GAME, d, e)) : (a.addDecorator_1(new GT578(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_BEFORE_GAME, d, e)), this.isMobileReplayEnabled_0() && a.addDecorator_1(new GT179(this.visibleAreaSource.getVisibleArea_0(), b, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME))); GT677.prototype.PRODUCT_SVA.equals_1(this.mobileProduct) && (a.addDecorator_1(new GT570(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_BEFORE_GAME, this.parameterSource, this.JSONMode)), a.addDecorator_1(new GT322(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_BEFORE_GAME, this.parameterSource, this.screenDiagonalInch))); GT677.prototype.PRODUCT_GTCA.equals_1(this.mobileProduct) && a.addDecorator_1(new GT845(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_BEFORE_GAME, this.parameterSource, this.JSONMode)); a.addDecorator_1(new GT379(GT558.prototype.ORDER_BEFORE_GAME)); }, isMobileReplayEnabled_0: function () { return null != this.mobileProduct && null != this.parameterSource.getParameter_1("replay"); }, decorateSlotSkin_1: function (a) { var b = this.calculateMaxWidth_0(), d = this.isUsingDynScreensLayout ? (this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET - 35 : -35) : this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0; this.isUsingDynScreensLayout && a.addDecorator_1(new GT1097(GT558.prototype.ORDER_BEFORE_GAME)); this.isOneButtonEnabled ? (a.addDecorator_1(new GT1150(this.visibleAreaSource.getVisibleArea_0(), this.layoutDesignedWidth, d, GT558.prototype.ORDER_BEFORE_GAME, !1, !1)), a.addDecorator_1(new GT848(this.visibleAreaSource.getVisibleArea_0(), this.layoutDesignedWidth, d, GT558.prototype.ORDER_BEFORE_GAME, !1, !1)), a.addDecorator_1(new GT948(GT558.prototype.ORDER_EXTERNAL))) : this.isUsingDynScreensLayout ? (a.addDecorator_1(new GT628(this.visibleAreaSource.getVisibleArea_0(), b, d, GT558.prototype.ORDER_BEFORE_GAME)), (this.isUsingMaxBetButton || this.button_maxbet_show) && a.addDecorator_1(new GT195(this.visibleAreaSource.getVisibleArea_0(), b, d, GT558.prototype.ORDER_BEFORE_GAME))) : (a.addDecorator_1(new GT1155(this.visibleAreaSource.getVisibleArea_0(), b, d, GT558.prototype.ORDER_BEFORE_GAME)), (this.isUsingMaxBetButton || this.button_maxbet_show) && a.addDecorator_1(new GT527(this.visibleAreaSource.getVisibleArea_0(), b, d, GT558.prototype.ORDER_BEFORE_GAME))); this.isUsingDynScreensLayout && this.isBigPaytableEnabled ? a.addDecorator_1(new GT528(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)) : this.isBigPaytableEnabled && a.addDecorator_1(new GT1048(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); if (this.isMobileGambleEnabled || this.isMobileSkinEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT481(GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT996(GT558.prototype.ORDER_AFTER_GAME)); if (this.isBigGambleEnabled || this.isMobileSkinEnabled) this.isUsingDynScreensLayout ? a.addDecorator_1(new GT631(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT1156(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); this.isMobileSkinEnabled && a.addDecorator_1(new GT997(this.visibleAreaSource.getVisibleArea_0(), b, GT558.prototype.ORDER_AFTER_GAME)); (this.isAutoplayEnabled && this.spinner_autoplay_show) || (this.isBigButtonEnabled ? a.addDecorator_1(new GT629(this.visibleAreaSource.getVisibleArea_0(), b, d, GT558.prototype.ORDER_AFTER_GAME)) : a.addDecorator_1(new GT1098(GT558.prototype.ORDER_AFTER_GAME))); this.isHidingCurrencySymbolsInPaytable && a.addDecorator_1(new GT782(GT558.prototype.ORDER_AFTER_GAME)); var e = null == this.parameterSource.getParameter_1("delaymobileappdecorators") ? !1 : this.isParameterEnabled_1("delaymobileappdecorators"); this.isUsingDynScreensLayout ? e ? a.addDecorator_1(new GT278(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_EXTERNAL + 999)) : a.addDecorator_1(new GT278(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)) : e ? a.addDecorator_1(new GT678(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_EXTERNAL + 999)) : a.addDecorator_1(new GT678(this.visibleAreaSource.getVisibleArea_0(), GT558.prototype.ORDER_AFTER_GAME)); this.isOneButtonEnabled || ((e = this.parameterSource.getParameter_1("custommobileconsole")), (null != e && e.equals_1("1")) || a.addDecorator_1(new GT679(this.visibleAreaSource.getVisibleArea_0(), d, this.isUsingDynScreensLayout, GT558.prototype.ORDER_AFTER_GAME, b))); this.isMobileReplayEnabled_0() && a.addDecorator_1(new GT382(GT558.prototype.ORDER_AFTER_GAME)); GT1650.prototype.isDebugMode_0() && this.isShowReservedArea && a.addDecorator_1(new GT784(4e5, this.isUsingDynScreensLayout, this.layout, this.reservedAreaAlpha)); this.addGameDecorators_1(a); }, calculateMaxWidth_0: function () { return Integer.MAX_VALUE; }, addGameDecorators_1: function (a) {}, }, "GT677", [] ); GT677.prototype.PRODUCT_SVA = "sva"; GT677.prototype.PRODUCT_GTA = "gta"; GT677.prototype.PRODUCT_MYNOVO = "mynovo"; GT677.prototype.PRODUCT_MA = "gta_ma"; GT677.prototype.PRODUCT_LITE = "lite"; GT677.prototype.PRODUCT_GTCA = "gtca"; GT677.prototype.JSONMODE_APPLET = 1; GT677.prototype.JSONMODE_LOCAL = 2; var GT529 = GT627.extend( { initialConstructor_0: function () { this.smallScreen = !1; GT627.prototype.initialConstructor_0.call(this); }, initialize_0: function () { GT627.prototype.initialize_0.call(this); this.setSmallScreen_1(null != this.parameterSource.getParameter_1("screensize") && this.parameterSource.getParameter_1("screensize").equals_1("small")); this.setHelpButtonShow_1(this.isParameterEnabled_1("button.help.show")); this.setBalanceFieldShow_1(this.isParameterEnabled_1("field.balance.show")); }, setSmallScreen_1: function (a) { this.smallScreen = a; }, initialConstructor_2: function (a, b) { this.smallScreen = !1; GT627.prototype.initialConstructor_2.call(this, a, b); }, decorateCasinoLobbySkin_1: function (a) { GT627.prototype.decorateCasinoLobbySkin_1.call(this, a); a.addDecorator_1(new GT899(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME, this.isBottomInsetEnabled)); this.isUsingDynScreensLayout && a.addDecorator_1(new GT378(this.consolePercentageMobile, GT558.prototype.ORDER_BEFORE_GAME, this.isBottomInsetEnabled)); }, decorateCasinoGameOverlaySkin_1: function (a) { GT627.prototype.decorateCasinoGameOverlaySkin_1.call(this, a); a.addDecorator_1(new GT626(GT558.prototype.ORDER_BEFORE_GAME)); a.addDecorator_1(new GT579(GT558.prototype.ORDER_BEFORE_GAME, this.visibleAreaSource.getVisibleArea_0())); a.addDecorator_1(new GT97(GT558.prototype.ORDER_BEFORE_GAME)); this.payindialog_show && a.addDecorator_1(new GT193(GT558.prototype.ORDER_BEFORE_GAME + 1)); this.field_sessiontime_show && a.addDecorator_1(new GT194(GT558.prototype.ORDER_BEFORE_GAME + (this.isUsingDynScreensLayout ? 2 : 1), this.isUsingDynScreensLayout)); this.clock_show && a.addDecorator_1(new GT348(GT558.prototype.ORDER_EXTERNAL, this.isUsingDynScreensLayout)); this.sessionsummary_show && a.addDecorator_1(new GT155(GT558.prototype.ORDER_EXTERNAL, this.isUsingDynScreensLayout)); }, decorateSlotSkin_1: function (a) { GT627.prototype.decorateSlotSkin_1.call(this, a); a.addDecorator_1( new GT1150( this.visibleAreaSource.getVisibleArea_0(), this.layoutDesignedWidth, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_BEFORE_GAME, this.field_balance_show, this.smallScreen && !"belowspinbutton".equals_1(this.button_maxbet_placement) ) ); "reduced".equals_1(this.onebutton_menu_appearance) && a.addDecorator_1(new GT580(GT558.prototype.ORDER_BEFORE_GAME + 1)); "belowspinbutton".equals_1(this.button_maxbet_placement) && a.addDecorator_1(new GT132(GT558.prototype.ORDER_BEFORE_GAME + 2)); a.addDecorator_1(new GT948(GT558.prototype.ORDER_EXTERNAL)); this.isUsingDynScreensLayout && a.addDecorator_1(new GT632(this.visibleAreaSource.getVisibleArea_0(), this.layoutDesignedWidth, this.isBottomInsetEnabled ? GT781.prototype.BOTTOM_INSET : 0, GT558.prototype.ORDER_EXTERNAL)); a.addDecorator_1(new GT530(this.isUsingDynScreensLayout, this.reservedAreaAlpha)); this.button_help_show && a.addDecorator_1(new GT736(GT558.prototype.ORDER_EXTERNAL + 1)); }, }, "GT529", [] ), GT1256 = GT1491.extend( { initialConstructor_0: function () { GT1491.prototype.initialConstructor_0.call(this); }, getInnerMainGuiX_0: function () { return 256; }, getReelX_0: function () { return 169; }, getReelY_0: function () { return 142; }, getSlideInOutScreenX_0: function () { return this.getReelX_0() - 17; }, getSlideInOutScreenY_0: function () { return this.getReelY_0() - 20; }, getSlideInOutScreenWidth_0: function () { return 1232; }, getSlideInOutScreenHeight_0: function () { return 708; }, reelLayout_0: function () { return GT941.prototype.set_0().columns_1(5).rows_1(3).symbolHeight_1(222).symbolWidth_1(222).reelDist_1(22); }, mainGui_0: function () { return GT1186.prototype .set_0() .id_1(GT1618.prototype.MAIN_GUI_CONTAINER) .child_1( GT871.prototype .set_0() .id_1(GT1618.prototype.BACKGROUND_PARENT_CONTAINER) .horizontalAlignment_1(GT1488.prototype.CENTER) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.BACKGROUND_CONTAINER).child_1(this.slotBackground_0()).resizeToContent_1(!0)) ) .child_1(this.gameLogoContainer_0().id_1(GT1618.prototype.GAME_LOGO_CONTAINER)) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.PLATFORM_LOGO_CONTAINER).child_1(this.platformLogo_0())) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.BACKGROUND_DECORATING_LOGO_CONTAINER).child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.RESERVED_AREA_CONTAINER).size_2(260, 100))) .child_1( GT1186.prototype .set_0() .id_1(GT1618.prototype.INNER_MAIN_GUI_CONTAINER) .position_2(this.getInnerMainGuiX_0(), 0) .size_2(1536, 1024) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.REELS_CONTAINER).child_1(this.reels_0())) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.STOPPED_REELS_CONTAINER).child_1(this.stoppedReels_0())) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.HIGHLIGHT_CONTAINER).child_1(this.highlight_0())) .child_1(this.winLines_0().id_1(GT1618.prototype.WINLINES)) .child_1(this.winLinesNet_0().id_1(GT1618.prototype.WINLINES_NET)) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.BIG_WIN_VISUALIZATION_CONTAINER).hide_1(!0)) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.GAMBLE_CONTAINER).position_2(0, this.getSlideInOutScreenY_0())) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER)) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.SUPERGAME_CONTAINER).position_2(0, this.getSlideInOutScreenY_0())) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.SPECIALWINVISUALIZATION_CONTAINER)) ) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.PAYTABLE_CONTAINER)) .child_1(this.console_0().id_1(GT1618.prototype.CONSOLE)); }, slotBackground_0: function () { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/game.jpg"); }, slotBackgroundInFreeGames_0: function () { return this.slotBackground_0(); }, gameLogoContainer_0: function () { return GT1186.prototype.set_0().size_2(761, 120).position_2(643, 0).child_1(this.gameLogo_0()); }, gameLogo_0: function () { return null; }, gameLogoInFreeGames_0: function () { return this.gameLogo_0(); }, platformLogo_0: function () { return null; }, reels_0: function () { return this.defaultReels_0(); }, autoSpinDelay_0: function () { return 200; }, reel_0: function () { return this.defaultReel_0(); }, reelsInFreeGames_0: function () { return this.reels_0(); }, stoppedReels_0: function () { return GT889.prototype.set_0().id_1(GT1618.prototype.STOPPED_REELS).position_2(this.getReelX_0(), this.getReelY_0()).symbols_1(this.symbolImages_0()).layout_1(this.reelLayout_0()); }, stoppedReelsInFreeGames_0: function () { return this.stoppedReels_0(); }, highlight_0: function () { return GT279.prototype .set_0() .id_1(GT1618.prototype.HIGHLIGHT) .position_2(this.getReelX_0(), this.getReelY_0()) .child_1(GT470.prototype.set_0().id_1(GT1618.prototype.SYMBOL_IMAGE_HIGHLIGHT).images_1(this.symbolImagesHighlight_0()).layout_1(this.reelLayout_0())) .child_1(GT472.prototype.set_0().id_1(GT1618.prototype.SYMBOL_VIDEO_HIGHLIGHT).videos_1(this.symbolVideosHighlight_0()).layout_1(this.reelLayout_0()).synchronizeVideos_0()) .child_1(GT471.prototype.set_0().id_1(GT1618.prototype.SYMBOL_SPINE_HIGHLIGHT).spines_1(this.symbolSpinesHighlight_0()).layout_1(this.reelLayout_0()).synchronizeSpines_0()); }, highlightInFreeGames_0: function () { return this.highlight_0(); }, freeGameStartScreen_0: function () { return this.defaultFreeGameStartEndScreen_0() .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAMES).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_won}"))) .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAME).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespin_won}"))); }, freeGameMoreScreen_0: function () { return this.defaultFreeGameStartEndScreen_0() .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAMES).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_more}"))) .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAME).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespin_more}"))); }, freeGameEndScreen_0: function () { return this.defaultFreeGameStartEndScreen_0() .child_1( GT1186.prototype .set_0() .id_1(GT323.prototype.ID_CONTAINER_WIN) .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAMES).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_end_prize}\n${freespins_end_count}"))) .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_TEXT_GAME).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_end_prize}\n${freespin_end_count}"))) ) .child_1(GT1186.prototype.set_0().id_1(GT323.prototype.ID_CONTAINER_NOWIN).child_1(this.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_end_nowin}"))); }, freeGameScreenBackground_0: function () { return GT1186.prototype.set_0(); }, defaultFreeGamesDynamicTextArea_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(450)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(350)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 102, 0)) .outline_2(2, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }, freeGameSounds_0: function () { return GT776.prototype.set_0(); }, baseGameMelodies_0: function () { return GT837.prototype.set_0(); }, symbolImages_0: function () { return GT893.prototype.set_0(); }, symbolImagesBlur_0: function () { return GT893.prototype.set_0(); }, symbolImagesHighlight_0: function () { return GT419.prototype.set_0(); }, symbolVideosHighlight_0: function () { return GT895.prototype.set_0(); }, symbolSpinesHighlight_0: function () { return GT894.prototype.set_0(); }, winLines_0: function () { return this.defaultWinLines53b10_0(); }, winLinesNet_0: function () { return this.defaultWinLines53b10Net_0(); }, console_0: function () { return this.defaultConsoleStates_0() .position_2(414, 838) .size_2(1220, 170) .winText_1("${console_wintext}") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/changebet.mp3") .soundDecideGamble_3("/com/greentube/slot/client/res/decidegamble.mp3", 20, 2460) .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .soundAutoPlayStart_1("/com/greentube/slot/client/res/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_STATUS) .position_2(220, 0) .size_2(780, 85) .child_1( GT1025.prototype .set_0() .id_1(GT834.prototype.ID_BACKGROUND_STATUS) .imageFile_1("/com/greentube/slot/client/res/infoback.png") .insets_4(15, 15, 15, 15) .transparency_1(GT1022.prototype.set_0().alpha_1(230)) ) .child_1( GT1025.prototype .set_0() .id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT) .imageFile_1("/com/greentube/slot/client/res/info_highlight_freegames.png") .insets_4(15, 15, 15, 15) .position_2(5, 5) .size_2(770, 75) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1) ) .child_1(this.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_WIN).outline_2(2, GT1391.prototype.set_0().black_0()).duration_1(3e3).sound_1("/com/greentube/slot/client/res/creditincrease.mp3")) ) .child_1( GT1025.prototype .set_0() .id_1(GT834.prototype.ID_BACKGROUND_INFORMATION) .position_2(360, 96) .size_2(500, 17) .imageFile_1("/com/greentube/slot/client/res/infoback_small.png") .insets_4(10, 10, 10, 10) .transparency_1(GT1022.prototype.set_0().alpha_1(230)) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS) .position_2(0, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(10, 10, 30, 10) .breakLines_1(!1) ) .child_1( this.defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .position_2(0, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .duration_1(3e3) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( this.defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS) .position_2(1005, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) .hide_1(!0) ) .child_1( this.defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .position_2(1005, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(1005, 0) .size_2(215, 85) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(15, 15, 30, 10) .text_1("${console_lastwin_na}") ) ) .child_1( this.defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS) .position_2(1005, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_freerounds_winnings}") .hide_1(!0) ) .child_1( this.defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .position_2(1005, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT1186.prototype .set_0() .position_2(1005, 0) .size_2(215, 85) .child_1( this.defaultDynamicTextAreaBig_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(225)) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) .insets_4(5, 5, 5, 5) ) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .insets_4(7, 7, 5, 5) .position_2(403, 118) .size_2(61, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground2.png").insets_4(10, 10, 10, 10)) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(360, 118) .size_2(147, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(100, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_BETPERLINE) .insets_4(7, 7, 5, 5) .position_2(563, 118) .size_2(121, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground2.png").insets_4(10, 10, 10, 10)) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(520, 118) .size_2(207, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(160, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .imageFile_1("/com/greentube/slot/client/res/b_plus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .insets_4(6, 7, 5, 5) .position_2(740, 118) .size_2(120, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground.png").insets_4(10, 10, 10, 10)) ) .child_1( this.defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_FREEROUNDS) .position_2(0, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_freerounds}") ) .child_1( this.defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .position_2(0, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1( this.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_LINES).position_2(360, 96).size_2(147, 17).vAlign_1(GT1489.prototype.CENTER).hAlign_1(GT1488.prototype.CENTER).text_1("${console_label_lines}") ) .child_1(this.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_BETPERLINE).position_2(520, 96).size_2(207, 17).text_1("${console_label_betperline}")) .child_1(this.defaultTextAreaSmallLabel_0().id_1(GT834.prototype.ID_LABEL_BET).position_2(740, 96).size_2(120, 17).vAlign_1(GT1489.prototype.CENTER).hAlign_1(GT1488.prototype.CENTER).text_1("${console_label_bet}")) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_paytable.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_PAYTABLE).text_1("${buttontext_paytable}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(869, 96) .imageFile_1("/com/greentube/slot/client/res/b_paytable.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_paytablenext}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(869, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gambleblack}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(0, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble_red.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamblered}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .position_2(180, 96) .imageFile_1("/com/greentube/slot/client/res/b_gamble.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collecthalf}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_START).text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_skip.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_STOP).text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(1049, 96) .imageFile_1("/com/greentube/slot/client/res/b_skip.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .position_2(0, 96) .size_2(171, 74) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(0, 0) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(0, 0) .imageFile_1("/com/greentube/slot/client/res/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .position_2(0, 96) .size_2(171, 74) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .size_2(171, 74) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( this.autoplayText_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAY) .fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1("${buttontext_autoplay}") ) .child_1(this.autoplayCounter_0().fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)).outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150))) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(this.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(this.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(this.autoplayCounter_0()) ) ) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .size_2(171, 74) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( this.autoplayText_0() .id_1(GT834.prototype.ID_TEXT_AUTOSTOP) .fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1("${buttontext_autostop}") ) .child_1(this.autoplayCounter_0().fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)).outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150))) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(this.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(this.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(this.autoplayCounter_0()) ) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .size_2(171, 74) .buttonUp_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/b_auto_plus.png") .text_1( GT1239.prototype .set_0() .text_1("+") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(8, 5, 10, 5) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) .buttonDown_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/b_auto_minus.png") .text_1( GT1239.prototype .set_0() .text_1("-") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(8, 5, 5, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 37) ) ) ); }, autoplayText_0: function () { return GT872.prototype .set_0() .size_2(171, 74) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .breakLines_1(!1) .insets_4(32, 10, 0, 15); }, autoplayCounter_0: function () { return GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .size_2(171, 74) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(32, 10, 25, 0); }, defaultConsoleStates_0: function () { return GT949.prototype .set_0() .state_2( GT725.prototype.BEFORE_SPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_MAX_BET) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_FREESPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) ) .state_2( GT725.prototype.INACTIVE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) ) .state_2( GT725.prototype.FASTSTOP, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) ) .state_2( GT725.prototype.FASTCOLLECT, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.GAMBLE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECTHALF) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.AUTO_SPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.PAYTABLE, this.defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ONLY, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, this.defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) ); }, defaultPConsoleState_0: function () { return GT670.prototype .set_0() .active_1(GT834.prototype.ID_FIELD_STATUS) .active_1(GT834.prototype.ID_FIELD_WIN) .active_1(GT834.prototype.ID_FIELD_LASTWIN) .active_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .active_1(GT834.prototype.ID_FIELD_CREDIT) .active_1(GT834.prototype.ID_FIELD_BALANCE) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_TOTALBET) .active_1(GT834.prototype.ID_BACKGROUND_INFORMATION) .active_1(GT834.prototype.ID_LABEL_CREDIT) .active_1(GT834.prototype.ID_LABEL_BALANCE) .active_1(GT834.prototype.ID_LABEL_LASTWIN) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_BET) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .active_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .active_1(GT834.prototype.ID_CONTAINER_STATUS) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .active_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN); }, paytable_0: function () { return this.defaultPaytable_0().child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/paytableback.jpg")) .child_1( GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(300)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1("Add paytable entries\n(override SlotSkin.paytable())") ) ); }, paytableWinTable_0: function () { return null; }, gamble_0: function () { return this.defaultRedBlackGamble_0(); }, gambleBackground_0: function () { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/paytableback.jpg"); }, superGame_0: function () { return null; }, winSounds_0: function () { return GT1039.prototype.set_0(); }, winSoundsInFreeGames_0: function () { return null; }, bigWinVisual_0: function () { return null; }, defaultReels_0: function () { return GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(this.getReelX_0(), this.getReelY_0()) .reel_2(0, this.reel_0()) .layout_1(this.reelLayout_0()) .minDuration_1(800) .reelStopDelay_1(300) .addSoundReelsRun_1("/com/greentube/slot/client/res/reelrun1.mp3") .addSoundReelsRun_1("/com/greentube/slot/client/res/reelrun2.mp3") .addSoundReelsRun_1("/com/greentube/slot/client/res/reelrun3.mp3") .addSoundReelsRun_1("/com/greentube/slot/client/res/reelrun4.mp3") .addSoundReelsRun_1("/com/greentube/slot/client/res/reelrun5.mp3") .soundReelsRunSilent_1("/com/greentube/slot/client/res/reelrun_clickering.mp3"); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 7, 7) .breakLines_1(!1); }, defaultTextAreaSmallLabel_0: function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 3); }, defaultValueField_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }, defaultBigValueField_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }, defaultWinLines53a10_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .position_2(109, 0) .size_2(1318, this.getReelY_0() + 666) .lineStartSpacing_1(64) .lineStartOffset_1(13) .reelContainerOffset_2(60, this.getReelY_0()) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .line_2(0, "SX,SY5, EX,SY5") .line_2(1, "SX,SY2, EX,SY2") .line_2(2, "SX,SY8, EX,SY8") .line_2(3, "SX,SY1, R,SY1, MX1,MY1, MX2,L, MX3,MY1, L,SY1, EX,SY1") .line_2(4, "SX,SY9, R,SY9, MX1,MY1, MX2,L, MX3,MY1, L,SY9, EX,SY9") .line_2(5, "SX,SY4, R,SY4, MX0,MY1, L,SY9, R,SY9, MX4,MY1, L,SY4, EX,SY4") .line_2(6, "SX,SY6, R,SY6, MX0,MY1, L,SY1, R,SY1, MX4,MY1, L,SY6, EX,SY6") .line_2(7, "SX,SY7, R,SY7, MX2,MY1, L,SY3, EX,SY3") .line_2(8, "SX,SY3, R,SY3, MX2,MY1, L,SY7, EX,SY7") .line_2(9, "SX,SY10, R,SY10, MX1,MY1, MX2,MY1, MX3,MY1, L,SY0, EX,SY0") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines53a10Net_0: function () { return this.defaultWinLines53b10_0().line_2(9, "SX,SY10, SX0.3,SY10, L,SY5.5, R,SY5.5, SX4.7,SY0, EX,SY0"); }, defaultWinLines53b10_0: function () { return this.defaultWinLines53a10_0(); }, defaultWinLines53b10Net_0: function () { return this.defaultWinLines53a10Net_0(); }, defaultWinLines53c10_0: function () { return this.defaultWinLines53c10Net_0().line_2(9, "SX,SY0, R,SY0, SX1.2,SY4, MX1,SY4, MX3,SY4, SX3.9,SY4, L,SY0, EX,SY0"); }, defaultWinLines53c10Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .lineStartSpacing_1(64) .lineStartOffset_1(13) .reelsLayout_1(this.reelLayout_0()) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .position_2(70, 6) .size_2(1398, this.getReelY_0() + 666 + 10) .margin_1(50) .reelContainerOffset_2(this.getReelX_0() - 70, this.getReelY_0() - 6) .line_2(0, "SX,SY5, EX,SY5") .line_2(1, "SX,SY2, EX,SY2") .line_2(2, "SX,SY8, EX,SY8") .line_2(3, "SX,SY1, R,SY1, MX1,MY1, MX2,L, MX3,MY1, L,SY1, EX,SY1") .line_2(4, "SX,SY9, R,SY9, MX1,MY1, MX2,L, MX3,MY1, L,SY9, EX,SY9") .line_2(5, "SX,SY3, R,SY3, MX2,MY1, L,SY7, EX,SY7") .line_2(6, "SX,SY7, R,SY7, MX2,MY1, L,SY3, EX,SY3") .line_2(7, "SX,SY6, R,SY6, MX0,MY1, L,SY1, R,SY1, MX4,MY1, L,SY6, EX,SY6") .line_2(8, "SX,SY4, R,SY4, MX0,MY1, L,SY9, R,SY9, MX4,MY1, L,SY4, EX,SY4") .line_2(9, "SX,SY0, R,SY0, SX1.1,SY4, MX1,SY4, MX3,SY4, SX3.9,SY4, L,SY0, EX,SY0") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines54a40_0: function () { return this.defaultWinLines54a40Net_0() .line_2(4, "SX,SY4, R,SY4, MX2,SY28.75, L,SY4, EX,SY4") .line_2(5, "SX,SY18, R,SY18, MX2,SY41.5, L,SY18, EX,SY18") .line_2(6, "SX,SY25, R,SY25, MX2,SY0.9, L,SY25, EX,SY25") .line_2(7, "SX,SY38, R,SY38, MX2,SY13.6, L,SY38, EX,SY38") .line_2(8, "SX,SY2, R,SY2, SX3.59,SY2, L,SY9, EX,SY9") .line_2(9, "SX,SY9, R,SY9, SX3.955,SY9, L,SY2, EX,SY2") .line_2(10, "SX,SY32, R,SY32, SX3.94,SY32, L,SY39, EX,SY39") .line_2(11, "SX,SY39, R,SY39, SX3.6,SY39, L,SY32, EX,SY32") .line_2(12, "SX,SY1, R,SY1, SX1.28,SY12, EX,SY12") .line_2(13, "SX,SY15, R,SY15, SX3.62,SY15, L,SY22, EX,SY22") .line_2(14, "SX,SY26, R,SY26, SX3.72,SY26, L,SY19, EX,SY19") .line_2(15, "SX,SY40, R,SY40, SX1.23,SY31, EX,SY31") .line_2(17, "SX,SY12, R,SY12, SX1.62,SY29, EX,SY29") .line_2(18, "SX,SY29, R,SY29, SX1.56,SY14, EX,SY14") .line_2(19, "SX,SY31, R,SY31, SX1.55,SY41, EX,SY41") .line_2(20, "SX,SY3, SX2.67,SY3, L,SY26, EX,SY26") .line_2(21, "SX,SY19, SX2.92,SY19, L,SY37, EX,SY37") .line_2(22, "SX,SY22, SX2.93,SY22, SX4.12,SY7, EX,SY7") .line_2(23, "SX,SY37, SX2.85,SY37, L,SY15, EX,SY15") .line_2(24, "SX,SY7, R,SY7, SX2.38,SY27, EX,SY27") .line_2(25, "SX,SY16, R,SY16, SX2.39,SY40, EX,SY40") .line_2(26, "SX,SY27, R,SY27, SX2.33,SY3, EX,SY3") .line_2(27, "SX,SY41, R,SY41, SX2.31,SY16, EX,SY16") .line_2(28, "SX,SY5, R,SY5, MX2,SY15.95, L,SY5, EX,SY5") .line_2(29, "SX,SY11, R,SY11, MX2,SY0.9, L,SY11, EX,SY11") .line_2(30, "SX,SY30, R,SY30, MX2,SY41.5, L,SY30, EX,SY30") .line_2(31, "SX,SY35, R,SY35, MX2,SY26.4, L,SY35, EX,SY35") .line_2(32, "SX,SY6, R,SY6, SX1.5,SY14.9, MX3,SY14.9, L,SY6, EX,SY6") .line_2(33, "SX,SY17, R,SY17, MX2,SY27.6, L,SY17, EX,SY17") .line_2(34, "SX,SY24, R,SY24, MX2,SY13.5, L,SY24, EX,SY24") .line_2(35, "SX,SY36, R,SY36, MX1,SY26.4, MX3,SY26.4, L,SY36, EX,SY36") .line_2(36, "SX,SY10, R,SY10, MX1,SY2, MX3,SY2, L,SY10, EX,SY10") .line_2(37, "SX,SY20, R,SY20, SX1.3,SY25, SX3.7,SY25, L,SY20, EX,SY20") .line_2(38, "SX,SY23, R,SY23, MX1,SY14.7, MX3,SY14.7, L,SY23, EX,SY23") .line_2(39, "SX,SY33, R,SY33, MX1,SY40.4, MX3,SY40.4, L,SY33, EX,SY33"); }, defaultWinLines54a40Net_0: function () { return GT680.prototype .set_0() .position_2(109, 0) .size_2(1318, this.getReelY_0() + 666) .reelContainerOffset_2(60, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .tabsImage_2("/com/greentube/slot/client/res/winline50.png", 50) .lineStartSpacing_1(13) .lineStartOffset_1(57) .slope_1(0.74) .line_2(0, "SX,SY0, EX,SY0") .line_2(1, "SX,SY13, EX,SY13") .line_2(2, "SX,SY28, EX,SY28") .line_2(3, "SX,SY42, EX,SY42") .line_2(4, "SX,SY4, R,SY4, MX2,MY2, L,SY4, EX,SY4") .line_2(5, "SX,SY18, R,SY18, MX2,SY35, L,SY18, EX,SY18") .line_2(6, "SX,SY25, R,SY25, MX2,SY5, L,SY25, EX,SY25") .line_2(7, "SX,SY38, R,SY38, MX2,SY13, L,SY38, EX,SY38") .line_2(8, "SX,SY2, R,SY2, MX3,SY2, L,SY9, EX,SY9") .line_2(9, "SX,SY9, R,SY9, MX3,SY9, L,SY2, EX,SY2") .line_2(10, "SX,SY32, R,SY32, MX3,SY32, L,SY39, EX,SY39") .line_2(11, "SX,SY39, R,SY39, MX3,SY39, L,SY32, EX,SY32") .line_2(12, "SX,SY1, R,SY1, MX1,SY12, EX,SY12") .line_2(13, "SX,SY15, R,SY15, MX3,SY15, L,SY22, EX,SY22") .line_2(14, "SX,SY26, R,SY26, MX3,SY26, L,SY19, EX,SY19") .line_2(15, "SX,SY40, R,SY40, MX1,SY31, EX,SY31") .line_2(16, "SX,SY14, R,SY14, MX1,SY1, EX,SY1") .line_2(17, "SX,SY12, R,SY12, MX1,SY29, EX,SY29") .line_2(18, "SX,SY29, R,SY29, MX1,SY14, EX,SY14") .line_2(19, "SX,SY31, R,SY31, MX1,SY41, EX,SY41") .line_2(20, "SX,SY3, MX2,SY3, L,SY26, EX,SY26") .line_2(21, "SX,SY19, MX2,SY19, L,SY37, EX,SY37") .line_2(22, "SX,SY22, MX2,SY22, L,SY7, EX,SY7") .line_2(23, "SX,SY37, SX2.6,SY37, L,SY15, EX,SY15") .line_2(24, "SX,SY7, R,SY7, SX2.35,SY27, EX,SY27") .line_2(25, "SX,SY16, R,SY16, SX2.5,SY40, EX,SY40") .line_2(26, "SX,SY27, R,SY27, MX2,SY3, EX,SY3") .line_2(27, "SX,SY41, R,SY41, MX2,SY16, EX,SY16") .line_2(28, "SX,SY5, R,SY5, MX2,SY11, L,SY5, EX,SY5") .line_2(29, "SX,SY11, R,SY11, MX2,SY4, L,SY11, EX,SY11") .line_2(30, "SX,SY30, R,SY30, MX2,SY36, L,SY30, EX,SY30") .line_2(31, "SX,SY35, R,SY35, MX2,SY30, L,SY35, EX,SY35") .line_2(32, "SX,SY6, R,SY6, SX1.5,SY10, MX3,SY10, L,SY6, EX,SY6") .line_2(33, "SX,SY17, R,SY17, MX2,SY24, L,SY17, EX,SY17") .line_2(34, "SX,SY24, R,SY24, MX2,SY17, L,SY24, EX,SY24") .line_2(35, "SX,SY36, R,SY36, MX1,SY23, MX3,SY23, L,SY36, EX,SY36") .line_2(36, "SX,SY10, R,SY10, MX1,SY4, MX3,SY4, L,SY10, EX,SY10") .line_2(37, "SX,SY20, R,SY20, SX1.3,SY25, SX3.7,SY25, L,SY20, EX,SY20") .line_2(38, "SX,SY23, R,SY23, MX1,SY18, MX3,SY18, L,SY23, EX,SY23") .line_2(39, "SX,SY33, R,SY33, MX1,SY38, MX3,SY38, L,SY33, EX,SY33") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(20, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(21, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(22, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(23, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(24, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(25, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(26, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(27, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(28, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(29, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(30, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(31, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(32, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(33, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(34, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(35, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(36, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(37, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(38, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(39, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .scatterColor_1(GT1391.prototype.set_0().compRGB_3(255, 180, 0)); }, defaultWinLines54a50_0: function () { return this.defaultWinLines54a50Net_0() .line_2(4, "SX,SY4, A ^-_-^, EX,SY4") .line_2(5, "SX,SY29, A -_V_-, EX,SY29") .line_2(6, "SX,SY30, A _-^-_, EX,SY30") .line_2(7, "SX,SY55, A V_-_V, EX,SY55") .line_2(8, "SX,SY1, A ^^^^-, EX,SY19") .line_2(9, "SX,SY19, A ----^, EX,SY5") .line_2(10, "SX,SY40, A ____V, EX,SY54") .line_2(11, "SX,SY58, A VVVV_, EX,SY40") .line_2(12, "SX,SY3, A ^----, EX,SY15") .line_2(13, "SX,SY21, A ----_, EX,SY33") .line_2(14, "SX,SY38, A ____-, EX,SY26") .line_2(15, "SX,SY56, A V____, EX,SY44") .line_2(16, "SX,SY15, A -^^^^, EX,SY3") .line_2(17, "SX,SY25, A -____, EX,SY38") .line_2(18, "SX,SY34, A _----, EX,SY21") .line_2(19, "SX,SY44, A _VVVV, EX,SY56") .line_2(20, "SX,SY5, A ^^^-_, EX,SY32") .line_2(21, "SX,SY27, A ---_V, EX,SY58") .line_2(22, "SX,SY32, A ___-^, EX,SY1") .line_2(23, "SX,SY54, A VVV_-, EX,SY27") .line_2(24, "SX,SY7, A ^-___, EX,SY34") .line_2(25, "SX,SY28, A -_VVV, EX,SY52") .line_2(26, "SX,SY31, A _-^^^, EX,SY7") .line_2(27, "SX,SY52, A V_---, EX,SY25") .line_2(28, "SX,SY2, A ^^-^^, EX,SY2") .line_2(29, "SX,SY18, A --^--, EX,SY18") .line_2(30, "SX,SY41, A __V__, EX,SY41") .line_2(31, "SX,SY57, A VV_VV, EX,SY57") .line_2(32, "SX,SY6, A ^---^, EX,SY6") .line_2(33, "SX,SY22, A --_--, EX,SY22") .line_2(34, "SX,SY37, A __-__, EX,SY37") .line_2(35, "SX,SY53, A V___V, EX,SY53") .line_2(36, "SX,SY16, A -^^^-, EX,SY16") .line_2(37, "SX,SY24, A -___-, EX,SY24") .line_2(38, "SX,SY35, A _---_, EX,SY35") .line_2(39, "SX,SY43, A _VVV_, EX,SY43") .line_2(40, "SX,SY17, A -^-^-, EX,SY17") .line_2(41, "SX,SY36, A _-_-_, EX,SY36") .line_2(42, "SX,SY51, A V_V_V, EX,SY51") .line_2(43, "SX,SY8, A ^-^-^, EX,SY8") .line_2(44, "SX,SY23, A -_-_-, EX,SY23") .line_2(45, "SX,SY42, A _V_V_, EX,SY42") .line_2(46, "SX,SY14, A -^-_-, EX,SY14") .line_2(47, "SX,SY33, A _-_V_, EX,SY31") .line_2(48, "SX,SY26, A -_-^-, EX,SY28") .line_2(49, "SX,SY45, A _V_-_, EX,SY45"); }, defaultWinLines54a50Net_0: function () { return GT680.prototype .set_0() .position_2(109, 0) .size_2(1318, this.getReelY_0() + 6 + 668) .reelContainerOffset_2(60, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .tabsImage_2("/com/greentube/slot/client/res/winline50.png", 50) .lineStartSpacing_1(10) .lineStartOffset_1(40) .slope_1(0.74) .line_2(0, "SX,SY0, EX,SY0") .line_2(8, "SX,SY1, R,SY1, MX3,SY1, \tL,SY19, EX,SY19") .line_2(28, "SX,SY2, R,SY2, MX2,SY23, \tL,SY2, \tEX,SY2") .line_2(12, "SX,SY3, R,SY3, SX1.58,SY15, EX,SY15") .line_2(4, "SX,SY4, R,SY4, MX2,SY33, \tL,SY4, \tEX,SY4") .line_2(20, "SX,SY5, SX2.45,SY5, L,SY32, \tEX,SY32") .line_2(32, "SX,SY6, R,SY6, SX1.48,SY16, SX3.52,SY16, L,SY6, EX,SY6") .line_2(24, "SX,SY7, R,SY7, SX2.3,SY34, EX,SY34") .line_2(43, "SX,SY8, R,SY8, SX1.48,SY26, L,SY8, L,SY26, L,SY8, EX,SY8") .line_2(46, "SX,SY14, R,SY14, SX1.49,SY2, R,SY2, SX3.3,SY30, R,SY30, SX4.5,SY14, EX,SY14") .line_2(16, "SX,SY15, R,SY15, MX1,SY3, EX,SY3") .line_2(36, "SX,SY16, R,SY16, SX1.4,SY6, SX3.7,SY6, L,SY16, EX,SY16") .line_2(40, "SX,SY17, R,SY17, SX1.35,SY9, R,SY9, SX2.2,SY17, R,SY17, SX3.19,SY9, R,SY9, SX4.1,SY17, EX,SY17") .line_2(29, "SX,SY18, R,SY18, MX2,SY4, L,SY18, EX,SY18") .line_2(9, "SX,SY19, R,SY19, MX3,SY19, L,SY5, EX,SY5") .line_2(1, "SX,SY20, EX,SY20") .line_2(13, "SX,SY21, R,SY21, MX3,SY21, L,SY33, EX,SY33") .line_2(33, "SX,SY22, R,SY22, MX2,SY36, L,SY22, EX,SY22") .line_2(44, "SX,SY23, R,SY23, SX1.35,SY31, R,SY31, SX2.2,SY23, R,SY23, SX3.19,SY31, R,SY31, SX4.1,SY23, EX,SY23") .line_2(37, "SX,SY24, R,SY24, SX1.4,SY33, SX3.7,SY33, L,SY24, EX,SY24") .line_2(17, "SX,SY25, R,SY25, SX1.40,SY35, SX4.12,SY35, L,SY38, EX,SY38") .line_2(48, "SX,SY26, R,SY26, SX1.39,SY36, R,SY36, SX3.3,SY10, R,SY10, SX4.5,SY28, EX,SY28") .line_2(21, "SX,SY27, MX2,SY27, L,SY58, EX,SY58") .line_2(25, "SX,SY28, R,SY28, SX2.63,SY52, EX,SY52") .line_2(5, "SX,SY29, R,SY29, MX2,SY57, L,SY29, EX,SY29") .line_2(6, "SX,SY30, R,SY30, MX2,SY2, L,SY30, EX,SY30") .line_2(26, "SX,SY31, R,SY31, SX2.63,SY7, EX,SY7") .line_2(22, "SX,SY32, MX2,SY32, L,SY1, EX,SY1") .line_2(47, "SX,SY33, R,SY33, SX1.39,SY23, R,SY23, SX3.3,SY49, R,SY49, SX4.5,SY31, EX,SY31") .line_2(18, "SX,SY34, R,SY34, SX1.40,SY24, SX4.12,SY24, L,SY21, EX,SY21") .line_2(38, "SX,SY35, R,SY35, SX1.4,SY26, SX3.7,SY26, L,SY35, EX,SY35") .line_2(41, "SX,SY36, R,SY36, SX1.35,SY28, R,SY28, SX2.2,SY36, R,SY36, SX3.19,SY28, R,SY28, SX4.1,SY36, EX,SY36") .line_2(34, "SX,SY37, R,SY37, MX2,SY23, L,SY37, EX,SY37") .line_2(14, "SX,SY38, R,SY38, MX3,SY38, L,SY26, EX,SY26") .line_2(2, "SX,SY39, EX,SY39") .line_2(10, "SX,SY40, R,SY40, MX3,SY40, L,SY54, EX,SY54") .line_2(30, "SX,SY41, R,SY41, MX2,SY55, L,SY41, EX,SY41") .line_2(45, "SX,SY42, R,SY42, SX1.35,SY50, R,SY50, SX2.2,SY42, R,SY42, SX3.19,SY50, R,SY50, SX4.1,SY42, EX,SY42") .line_2(39, "SX,SY43, R,SY43, SX1.4,SY53, SX3.7,SY53, L,SY43, EX,SY43") .line_2(19, "SX,SY44, R,SY44, MX1,SY56, EX,SY56") .line_2(49, "SX,SY45, R,SY45, SX1.49,SY57, R,SY57, SX3.3,SY29, R,SY29, SX4.5,SY45, EX,SY45") .line_2(42, "SX,SY51, R,SY51, SX1.48,SY33, L,SY51, L,SY33, L,SY51, EX,SY51") .line_2(27, "SX,SY52, R,SY52, SX2.3,SY25, EX,SY25") .line_2(35, "SX,SY53, R,SY53, SX1.48,SY43, SX3.52,SY43, L,SY53, EX,SY53") .line_2(23, "SX,SY54, SX2.75,SY54, L,SY27, EX,SY27") .line_2(7, "SX,SY55, R,SY55, MX2,SY26, L,SY55, EX,SY55") .line_2(15, "SX,SY56, R,SY56, SX1.58,SY44, EX,SY44") .line_2(31, "SX,SY57, R,SY57, MX2,SY36, L,SY57, EX,SY57") .line_2(11, "SX,SY58, R,SY58, MX3,SY58, L,SY40, EX,SY40") .line_2(3, "SX,SY59, EX,SY59") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(20, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(21, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(22, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(23, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(24, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(25, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(26, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(27, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(28, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(29, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(30, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(31, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(32, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(33, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(34, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(35, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(36, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(37, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(38, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(39, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .lineColor_3(40, GT1391.prototype.set_0().compRGB_3(162, 105, 85), GT1391.prototype.set_0().compRGB_3(114, 74, 60)) .lineColor_3(41, GT1391.prototype.set_0().compRGB_3(3, 109, 99), GT1391.prototype.set_0().compRGB_3(2, 77, 69)) .lineColor_3(42, GT1391.prototype.set_0().compRGB_3(161, 45, 58), GT1391.prototype.set_0().compRGB_3(113, 32, 41)) .lineColor_3(43, GT1391.prototype.set_0().compRGB_3(194, 177, 125), GT1391.prototype.set_0().compRGB_3(136, 124, 88)) .lineColor_3(44, GT1391.prototype.set_0().compRGB_3(178, 167, 52), GT1391.prototype.set_0().compRGB_3(125, 117, 37)) .lineColor_3(45, GT1391.prototype.set_0().compRGB_3(186, 161, 154), GT1391.prototype.set_0().compRGB_3(131, 113, 108)) .lineColor_3(46, GT1391.prototype.set_0().compRGB_3(174, 81, 38), GT1391.prototype.set_0().compRGB_3(122, 57, 27)) .lineColor_3(47, GT1391.prototype.set_0().compRGB_3(165, 68, 113), GT1391.prototype.set_0().compRGB_3(116, 48, 79)) .lineColor_3(48, GT1391.prototype.set_0().compRGB_3(178, 146, 99), GT1391.prototype.set_0().compRGB_3(125, 102, 69)) .lineColor_3(49, GT1391.prototype.set_0().compRGB_3(139, 162, 180), GT1391.prototype.set_0().compRGB_3(98, 114, 126)) .scatterColor_1(GT1391.prototype.set_0().compRGB_3(255, 180, 0)); }, defaultWinLines53c20_0: function () { return this.defaultWinLines53c20Net_0() .line_2(5, "SX,SY2, R,SY2, MX2,MY1, L,SY17, EX,SY17") .line_2(6, "SX,SY17, R,SY17, MX2,MY1, L,SY2, EX,SY2") .line_2(7, "SX,SY8, R,SY8, MX1,MY0, MX3,MY0, L,SY8, EX,SY8") .line_2(8, "SX,SY11, R,SY11, MX1,MY2, MX3,MY2, L,SY11, EX,SY11") .line_2(9, "SX,SY6, R,SY6, MX1,MY1, MX3,MY1, L,SY6, EX,SY6") .line_2(10, "SX,SY13, R,SY13, MX1,SY11, MX3,SY11, L,SY13, EX,SY13") .line_2(11, "SX,SY7, R,SY7, MX1,SY1.5, R,MY0, MX2,MY1, L,MY2, R,MY2, SX4.1,SY12, EX,SY12") .line_2(12, "SX,SY12, R,SY12, MX1,SY17, R,SY17, MX2,MY1, L,MY0, R,MY0, SX4.1,SY7, EX,SY7") .line_2(15, "SX,SY4, R,SY4, MX1,MY1, L,SY4, R,SY4, MX3,MY1, L,SY4, EX,SY4") .line_2(16, "SX,SY15, R,SY15, MX1,MY1, L,SY15, R,SY15, MX3,MY1, L,SY15, EX,SY15") .line_2(17, "SX,SY0, SX0.93,SY0, SX1.07,SY19, EX,SY19") .line_2(18, "SX,SY19, SX0.93,SY19, SX1.07,SY0, EX,SY0") .line_2(19, "SX,SY9, R,SY9, MX2,MY0, L,SY9, EX,SY9") .line_2(10, "SX,SY13, R,SY13, SX1.2,SY11, SX3.8,SY11, L,SY13, EX,SY13") .line_2(11, "SX,SY7, R,SY7, SX1.25,SY4, MX1,SY1.5, R,MY0, MX2,MY1, L,MY2, R,MY2, SX4.1,SY12, EX,SY12") .line_2(12, "SX,SY12, R,SY12, SX1.1,SY14, MX1,SY17, R,SY17, MX2,MY1, L,MY0, R,MY0, SX4.1,SY7, EX,SY7"); }, defaultWinLines53c20Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .position_2(91, 0) .size_2(1354, this.getReelY_0() + 666 + 5) .reelContainerOffset_2(78, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(34) .lineStartOffset_1(11) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .line_2(0, "SX,SY10, EX,SY10") .line_2(1, "SX,SY3, EX,SY3") .line_2(2, "SX,SY16, EX,SY16") .line_2(3, "SX,SY5, R,SY5, MX1,MY1, L,SY15, R,SY15, MX3,MY1, L,SY5, EX,SY5") .line_2(4, "SX,SY14, R,SY14, MX1,MY1, L,SY4, R,SY4, MX3,MY1, L,SY14, EX,SY14") .line_2(5, "SX,SY2, R,SY2, SX2.45,MY1, L,SY17, EX,SY17") .line_2(6, "SX,SY17, R,SY17, SX2.55,MY1, L,SY2, EX,SY2") .line_2(7, "SX,SY8, R,SY8, SX1.6,SY2, SX3.4,SY2, L,SY8, EX,SY8") .line_2(8, "SX,SY11, R,SY11, SX1.65,SY17, SX3.35,SY17, L,SY11, EX,SY11") .line_2(9, "SX,SY6, R,SY6, MX1,SY8, MX3,SY8, L,SY6, EX,SY6") .line_2(10, "SX,SY13, R,SY13, MX1,SY11, MX3,SY11, L,SY13, EX,SY13") .line_2(11, "SX,SY7, R,SY7, MX1,SY4, R,SY4, SX3.35,SY15, L,SY12, EX,SY12") .line_2(12, "SX,SY12, R,SY12, MX1,SY15, R,SY15, SX3.4,SY4, L,SY7, EX,SY7") .line_2(13, "SX,SY1, SX0.95,SY1, SX1.05,SY18, SX1.95,SY18, SX2.05,SY1, SX2.95,SY1, SX3.05,SY18, SX3.95,SY18, SX4.05,SY1, EX,SY1") .line_2(14, "SX,SY18, SX0.95,SY18, SX1.05,SY1, SX1.95,SY1, SX2.05,SY18, SX2.95,SY18, SX3.05,SY1, SX3.95,SY1, SX4.05,SY18, EX,SY18") .line_2(15, "SX,SY4, R,SY4, SX1.6,SY7, L,SY5, R,SY5, SX3.4,SY7, L,SY4, EX,SY4") .line_2(16, "SX,SY15, R,SY15, SX1.6,SY12, L,SY14, R,SY14, SX3.4,SY12, L,SY15, EX,SY15") .line_2(17, "SX,SY0, SX0.8,SY0, SX1.2,SY19, EX,SY19") .line_2(18, "SX,SY19, SX0.8,SY19, SX1.2,SY0, EX,SY0") .line_2(19, "SX,SY9, R,SY9, MX2,SY6, L,SY9, EX,SY9") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(30, 131, 68), GT1391.prototype.set_0().compRGB_3(25, 89, 47)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(191, 94, 0), GT1391.prototype.set_0().compRGB_3(144, 71, 0)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(156, 30, 30), GT1391.prototype.set_0().compRGB_3(143, 27, 27)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(234, 123, 154), GT1391.prototype.set_0().compRGB_3(176, 93, 116)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(247, 255, 111), GT1391.prototype.set_0().compRGB_3(186, 192, 84)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(4, 115, 103), GT1391.prototype.set_0().compRGB_3(3, 95, 85)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(162, 148, 91), GT1391.prototype.set_0().compRGB_3(138, 126, 78)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(31, 214, 96), GT1391.prototype.set_0().compRGB_3(18, 129, 57)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(225, 53, 162), GT1391.prototype.set_0().compRGB_3(169, 40, 122)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(152, 104, 20), GT1391.prototype.set_0().compRGB_3(114, 79, 15)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines53d20_0: function () { return this.defaultWinLines53d20Net_0() .line_2(3, "SX,SY4, R,SY4, MX1,MY1, MX2,L, MX3,MY1, L,SY6, EX,SY6") .line_2(4, "SX,SY22, R,SY22, MX1,MY1, MX2,L, MX3,MY1, L,SY22, EX,SY22") .line_2(7, "SX,SY11, R,SY11, MX1,SY3.2, R,SY3.2, MX2,MY1, L,MY2, R,MY2, SX4.27,SY15, EX,SY15") .line_2(8, "SX,SY15, R,SY15, MX1,SY22.6, MX2,MY1, MX3,SY3.2, L,SY11, EX,SY11") .line_2(9, "SX,SY3, R,SY3, MX1,MY1, MX3,MY1, L,SY20, EX,SY20") .line_2(10, "SX,SY23, R,SY23, MX1,MY1, MX3,MY1, L,SY8, EX,SY8") .line_2(11, "SX,SY9, R,SY9, MX1,SY3.2, MX2,SY3.2, L,SY19, EX,SY19") .line_2(12, "SX,SY16, R,SY16, MX1,SY22.6, MX2,SY22.6, L,SY7, EX,SY7") .line_2(13, "SX,SY12, R,SY12, MX2,SY3.2, MX3,MY1, L,SY23, EX,SY23") .line_2(14, "SX,SY14, R,SY14, MX2,SY22.6, MX3,MY1, L,SY4, EX,SY4") .line_2(15, "SX,SY7, R,SY7, MX2,MY1, MX3,SY22.6, L,SY14, EX,SY14") .line_2(16, "SX,SY20, R,SY20, MX2,MY1, MX3,SY3.2, L,SY12, EX,SY12") .line_2(17, "SX,SY10, R,SY10, MX1,SY3.2, R,SY3.2, MX2,MY1, L,SY24, EX,SY24") .line_2(18, "SX,SY17, R,SY17, MX1,SY22.6, MX2,MY1, MX3,SY3.2, L,SY3, EX,SY3") .line_2(19, "SX,SY6, R,SY6, MX3,MY1, L,SY18, EX,SY18"); }, defaultWinLines53d20Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .position_2(109, 0) .size_2(1318, this.getReelY_0() + 666 + 5) .reelContainerOffset_2(60, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(25) .lineStartOffset_1(10) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .line_2(0, "SX,SY13, EX,SY13") .line_2(1, "SX,SY5, EX,SY5") .line_2(2, "SX,SY21, EX,SY21") .line_2(3, "SX,SY4, R,SY4, MX2,MY2, L,SY6, EX,SY6") .line_2(4, "SX,SY22, R,SY22, MX2,MY0, L,SY22, EX,SY22") .line_2(5, "SX,SY2, R,SY2, MX2,MY1, L,SY25, EX,SY25") .line_2(6, "SX,SY24, R,SY24, MX2,MY1, L,SY2, EX,SY2") .line_2(7, "SX,SY11, R,SY11, MX1,SY4, R,SY4, MX3,MY2, L,SY15, EX,SY15") .line_2(8, "SX,SY15, R,SY15, MX1,MY2, R,MY2, MX3,MY0, L,SY11, EX,SY11") .line_2(9, "SX,SY3, R,SY3, SX1.6,SY12, MX3,SY12, L,SY20, EX,SY20") .line_2(10, "SX,SY23, R,SY23, SX1.6,SY14, SX3.55,SY14, L,SY8, EX,SY8") .line_2(11, "SX,SY9, R,SY9, MX1,SY2, SX2.6,SY2, L,SY19, EX,SY19") .line_2(12, "SX,SY16, R,SY16, MX1,SY23, MX2,SY23, L,SY7, EX,SY7") .line_2(13, "SX,SY12, R,SY12, SX2.3,MY0, L,SY23, EX,SY23") .line_2(14, "SX,SY14, R,SY14, SX2.3,MY2, L,SY4, EX,SY4") .line_2(15, "SX,SY7, R,SY7, MX3,SY20, L,SY14, EX,SY14") .line_2(16, "SX,SY20, R,SY20, SX3.3,MY0, L,SY12, EX,SY12") .line_2(17, "SX,SY10, R,SY10, MX1,SY3, R,SY3, SX3.85,SY24, EX,SY24") .line_2(18, "SX,SY17, R,SY17, MX1,SY24, R,SY24, SX3.75,SY3, EX,SY3") .line_2(19, "SX,SY6, SX3.1,SY6, L,SY18, EX,SY18") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(30, 131, 68), GT1391.prototype.set_0().compRGB_3(25, 89, 47)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(191, 94, 0), GT1391.prototype.set_0().compRGB_3(144, 71, 0)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(156, 30, 30), GT1391.prototype.set_0().compRGB_3(143, 27, 27)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(234, 123, 154), GT1391.prototype.set_0().compRGB_3(176, 93, 116)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(247, 255, 111), GT1391.prototype.set_0().compRGB_3(186, 192, 84)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(4, 115, 103), GT1391.prototype.set_0().compRGB_3(3, 95, 85)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(162, 148, 91), GT1391.prototype.set_0().compRGB_3(138, 126, 78)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(31, 214, 96), GT1391.prototype.set_0().compRGB_3(18, 129, 57)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(225, 53, 162), GT1391.prototype.set_0().compRGB_3(169, 40, 122)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(152, 104, 20), GT1391.prototype.set_0().compRGB_3(114, 79, 15)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines53a20_0: function () { return this.defaultWinLines53a20Net_0() .line_2(9, "SX,SY14, R,SY14, MX1,MY1, MX3,MY1, L,SY6, EX,SY6") .line_2(10, "SX,SY6, R,SY6, MX1,MY1, MX3,MY1, L,SY14, EX,SY14") .line_2(11, "SX,SY1, R,SY1, MX2,MY1, L,SY1, EX,SY1") .line_2(12, "SX,SY19, R,SY19, MX2,MY1, L,SY19, EX,SY19") .line_2(13, "SX,SY7, R,SY7, MX1,MY0, L,MY1, R,MY1, MX3,MY2, L,SY13, EX,SY13") .line_2(14, "SX,SY13, R,SY13, MX1,MY2, L,MY1, R,MY1, MX3,MY0, L,SY7, EX,SY7") .line_2(15, "SX,SY5, R,SY5, MX1,MY1, L,SY5, R,SY5, MX3,MY1, L,SY5, EX,SY5") .line_2(16, "SX,SY15, R,SY15, MX1,MY1, L,SY15, R,SY15, MX3,MY1, L,SY15, EX,SY15") .line_2(17, "SX,SY8, R,SY8, MX2,MY0, L,SY8, EX,SY8") .line_2(18, "SX,SY12, R,SY12, MX2,MY2, L,SY12, EX,SY12") .line_2(19, "SX,SY0, R,SY0, MX1,MY1, MX3,MY1, L,SY0, EX,SY0"); }, defaultWinLines53a20Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .position_2(91, 0) .size_2(1354, this.getReelY_0() + 666 + 5) .reelContainerOffset_2(78, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(32) .lineStartOffset_1(12) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .line_2(0, "SX,SY10, EX,SY10") .line_2(1, "SX,SY3, EX,SY3") .line_2(2, "SX,SY17, EX,SY17") .line_2(3, "SX,SY4, R,SY4, MX1,MY1, L,SY16, R,SY16, MX3,MY1, L,SY4, EX,SY4") .line_2(4, "SX,SY16, R,SY16, MX1,MY1, L,SY4, R,SY4, MX3,MY1, L,SY16, EX,SY16") .line_2(5, "SX,SY11, R,SY11, SX1.55,SY18, SX3.45,SY18, L,SY11, EX,SY11") .line_2(6, "SX,SY9, R,SY9, SX1.55,SY2, SX3.45,SY2, L,SY9, EX,SY9") .line_2(7, "SX,SY18, R,SY18, MX2,SY10, L,SY2, EX,SY2") .line_2(8, "SX,SY2, R,SY2, MX2,SY10, L,SY18, EX,SY18") .line_2(9, "SX,SY14, R,SY14, SX1,SY11, SX3.2,SY11, SX4,SY11, L,SY6, EX,SY6") .line_2(10, "SX,SY6, R,SY6, SX1,SY9, SX3.2,SY9, SX4,SY9, L,SY14, EX,SY14") .line_2(11, "SX,SY1, R,SY1, MX2,SY7, L,SY1, EX,SY1") .line_2(12, "SX,SY19, R,SY19, MX2,SY13, L,SY19, EX,SY19") .line_2(13, "SX,SY7, R,SY7, MX1,SY4, L,SY16, MX3,SY16, L,SY13, EX,SY13") .line_2(14, "SX,SY13, R,SY13, MX1,SY16, L,SY4, MX3,SY4, L,SY7, EX,SY7") .line_2(15, "SX,SY5, R,SY5, MX1,SY7, L,SY5, R,SY5, MX3,SY7, L,SY5, EX,SY5") .line_2(16, "SX,SY15, R,SY15, MX1,SY13, L,SY15, R,SY15, MX3,SY13, L,SY15, EX,SY15") .line_2(17, "SX,SY8, R,SY8, MX2,SY6, L,SY8, EX,SY8") .line_2(18, "SX,SY12, R,SY12, MX2,SY14, L,SY12, EX,SY12") .line_2(19, "SX,SY0, R,SY0, SX1.3,SY7.5, SX3.7,SY7.5, L,SY0, EX,SY0") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(30, 131, 68), GT1391.prototype.set_0().compRGB_3(25, 89, 47)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(191, 94, 0), GT1391.prototype.set_0().compRGB_3(144, 71, 0)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(156, 30, 30), GT1391.prototype.set_0().compRGB_3(143, 27, 27)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(234, 123, 154), GT1391.prototype.set_0().compRGB_3(176, 93, 116)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(247, 255, 111), GT1391.prototype.set_0().compRGB_3(186, 192, 84)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(4, 115, 103), GT1391.prototype.set_0().compRGB_3(3, 95, 85)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(162, 148, 91), GT1391.prototype.set_0().compRGB_3(138, 126, 78)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(31, 214, 96), GT1391.prototype.set_0().compRGB_3(18, 129, 57)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(225, 53, 162), GT1391.prototype.set_0().compRGB_3(169, 40, 122)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(152, 104, 20), GT1391.prototype.set_0().compRGB_3(114, 79, 15)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines53b20_0: function () { return this.defaultWinLines53b20Net_0() .line_2(3, "SX,SY6, R,SY6, SX2.115,SY15, SX2.89,SY15, L,SY6, EX,SY6") .line_2(9, "SX,SY15, R,SY15, MX1,MY1, SX3.2,MY1, SX3.5,MY1, L,SY5, EX,SY5") .line_2(10, "SX,SY5, R,SY5, MX1,MY1, SX3.2,MY1, SX4.4,SY15, L,SY15, EX,SY15") .line_2(11, "SX,SY12, R,SY12, MX1,SY17, R,SY16, SX3.1,SY5.2, R,SY5.2, SX4.1,SY8, EX,SY8") .line_2(12, "SX,SY8, R,SY8, SX1.2,SY5, R,SY5, SX3.1,SY14.9, R,SY14.9, SX4.2,SY12, EX,SY12") .line_2(13, "SX,SY4, R,SY4, MX1,MY1, L,SY4, R,SY4, MX3,MY1, L,SY4, EX,SY4") .line_2(14, "SX,SY16, R,SY16, MX1,MY1, L,SY16, R,SY16, MX3,MY1, L,SY16, EX,SY16") .line_2(15, "SX,SY7, R,SY7, SX2.2,SY5, SX2.8,SY5, L,SY7, EX,SY7") .line_2(16, "SX,SY13, R,SY13, SX2.2,SY15, SX2.8,SY15, L,SY13, EX,SY13") .line_2(19, "SX,SY20, SX0.99,SY20, SX1,SY4, R,SY4, MX2,MY1, L,SY4, SX3.9875,SY4, SX4.0125,SY20, EX,SY20"); }, defaultWinLines53b20Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(8) .position_2(91, 0) .size_2(1354, this.getReelY_0() + 666 + 5) .reelContainerOffset_2(78, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(32) .lineStartOffset_1(12) .tabsImage_2("/com/greentube/slot/client/res/winline20.png", 20) .line_2(0, "SX,SY10, EX,SY10") .line_2(1, "SX,SY3, EX,SY3") .line_2(2, "SX,SY17, EX,SY17") .line_2(3, "SX,SY6, R,SY6, SX2.1,SY15, SX2.9,SY15, L,SY6, EX,SY6") .line_2(4, "SX,SY14, R,SY14, SX2.1,SY5.2, SX2.9,SY5.2, L,SY14, EX,SY14") .line_2(5, "SX,SY11, R,SY11, SX1.55,SY18, SX3.45,SY18, L,SY11, EX,SY11") .line_2(6, "SX,SY9, R,SY9, SX1.55,SY2, SX3.45,SY2, L,SY9, EX,SY9") .line_2(7, "SX,SY18, R,SY18, MX2,SY10, L,SY2, EX,SY2") .line_2(8, "SX,SY2, R,SY2, MX2,SY10, L,SY18, EX,SY18") .line_2(9, "SX,SY15, R,SY15, MX1,SY11, SX3.2,SY11, SX4,SY11, L,SY5, EX,SY5") .line_2(10, "SX,SY5, R,SY5, MX1,SY9, SX3.2,SY9, SX4,SY9, L,SY15, EX,SY15") .line_2(11, "SX,SY12, R,SY12, MX1,SY16, R,SY16, SX3.35,SY5, R,SY5, SX4,SY8, EX,SY8") .line_2(12, "SX,SY8, R,SY8, SX1.35,SY5, R,SY5, SX3.05,SY16, R,SY16, SX4,SY12, EX,SY12") .line_2(13, "SX,SY4, R,SY4, MX1,SY8, L,SY4, R,SY4, MX3,SY8, L,SY4, EX,SY4") .line_2(14, "SX,SY16, R,SY16, MX1,SY12, L,SY16, R,SY16, MX3,SY12, L,SY16, EX,SY16") .line_2(15, "SX,SY7, R,SY7, MX2,SY6, L,SY7, EX,SY7") .line_2(16, "SX,SY13, R,SY13, MX2,SY14, L,SY13, EX,SY13") .line_2(17, "SX,SY1, SX0.9875,SY1, SX1.0125,SY19, SX1.9875,SY19, SX2.0125,SY1, SX2.9875,SY1, SX3.0125,SY19, SX3.9875,SY19, SX4.0125,SY1, EX,SY1") .line_2(18, "SX,SY19, SX0.9875,SY19, SX1.0125,SY1, SX1.9875,SY1, SX2.0125,SY19, SX2.9875,SY19, SX3.0125,SY1, SX3.9875,SY1, SX4.0125,SY19, EX,SY19") .line_2(19, "SX,SY20, SX0.85,SY20, SX1.05,SY4, R,SY4, MX2,SY8.5, L,SY4, SX3.95,SY4, SX4.15,SY20, EX,SY20") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(30, 131, 68), GT1391.prototype.set_0().compRGB_3(25, 89, 47)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(191, 94, 0), GT1391.prototype.set_0().compRGB_3(144, 71, 0)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(156, 30, 30), GT1391.prototype.set_0().compRGB_3(143, 27, 27)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(234, 123, 154), GT1391.prototype.set_0().compRGB_3(176, 93, 116)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(247, 255, 111), GT1391.prototype.set_0().compRGB_3(186, 192, 84)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(4, 115, 103), GT1391.prototype.set_0().compRGB_3(3, 95, 85)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(162, 148, 91), GT1391.prototype.set_0().compRGB_3(138, 126, 78)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(31, 214, 96), GT1391.prototype.set_0().compRGB_3(18, 129, 57)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(225, 53, 162), GT1391.prototype.set_0().compRGB_3(169, 40, 122)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(152, 104, 20), GT1391.prototype.set_0().compRGB_3(114, 79, 15)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines53b25_0: function () { return this.defaultWinLines53b25Net_0() .line_2(3, "SX,SY6, R,SY6, SX2.5,SY23.25, L,SY6, EX,SY6") .line_2(4, "SX,SY20, R,SY20, SX2.5,SY2.9, L,SY20, EX,SY20") .line_2(5, "SX,SY14, R,SY14, SX1.4,SY22, SX3.6,SY22, L,SY14, EX,SY14") .line_2(6, "SX,SY12, R,SY12, SX1.4,SY4, SX3.6,SY4, L,SY12, EX,SY12") .line_2(9, "SX,SY19, R,SY19, SX1.4,SY13.5, SX3.5,SY13.5, L,SY7, EX,SY7") .line_2(10, "SX,SY7, R,SY7, SX1.4,SY12.5, SX3.5,SY12.5, L,SY19, EX,SY19") .line_2(11, "SX,SY15, R,SY15, SX1.5,SY23, SX3.5,SY3, L,SY11, EX,SY11") .line_2(12, "SX,SY11, R,SY11, SX1.5,SY3, SX3.5,SY23, L,SY15, EX,SY15") .line_2(13, "SX,SY5, SX0.6,SY5, SX1.5,SY13, SX2.5,SY4, SX3.5,SY13, SX4.4,SY5, EX,SY5") .line_2(14, "SX,SY21, SX0.6,SY21, SX1.5,SY14, SX2.5,SY21.8, SX3.5,SY14, SX4.4,SY21, EX,SY21") .line_2(15, "SX,SY10, R,SY10, SX2.5,SY3, L,SY10, EX,SY10") .line_2(16, "SX,SY16, R,SY16, SX2.5,SY23, L,SY16, EX,SY16") .line_2(17, "SX,SY2, SX0.98,SY2, SX1.02,SY24, SX1.98,SY24, SX2.02,SY1, SX2.98,SY1, SX3.02,SY24, SX3.98,SY24, SX4.02,SY2, EX,SY2") .line_2(18, "SX,SY24, SX0.98,SY24, SX1.02,SY2, SX1.98,SY2, SX2.02,SY25, SX2.98,SY25, SX3.02,SY2, SX3.98,SY2, SX4.02,SY24, EX,SY24") .line_2(19, "SX,SY26, SX0.98,SY26, SX1.02,SY2, SX1.98,SY2, SX2.02,SY14, SX2.98,SY14, SX3.02,SY2, SX3.98,SY2, SX4.02,SY26, EX,SY26") .line_2(20, "SX,SY0, SX0.98,SY0, SX1.02,SY24, SX1.98,SY24, SX2.02,SY13, SX2.98,SY13, SX3.02,SY24, SX3.98,SY24, SX4.02,SY0, EX,SY0") .line_2(21, "SX,SY1, SX1.98,SY1, SX2.02,SY24, SX2.98,SY24, SX3.02,SY1, EX,SY1") .line_2(22, "SX,SY25, SX1.98,SY25, SX2.02,SY2, SX2.98,SY2, SX3.02,SY25, EX,SY25") .line_2(23, "SX,SY9, SX0.99,SY9, SX1.01,SY5, SX1.99,SY5, SX2.01,SY23, SX2.99,SY23, SX3.01,SY5, SX3.99,SY5, SX4.01,SY9, EX,SY9") .line_2(24, "SX,SY17, SX0.99,SY17, SX1.01,SY23, SX1.99,SY23, SX2.01,SY3, SX2.99,SY3, SX3.01,SY23, SX3.99,SY23, SX4.01,SY17, EX,SY17"); }, defaultWinLines53b25Net_0: function () { return GT680.prototype .set_0() .lineThickness_1(7) .position_2(91, 0) .size_2(1198 + 2 * (this.getReelX_0() - 91), this.getReelY_0() + 666 + 5) .reelContainerOffset_2(this.getReelX_0() - 91, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(24) .lineStartOffset_1(20) .tabsImage_2("/com/greentube/slot/client/res/winline25.png", 25) .line_2(0, "SX,SY13, EX,SY13") .line_2(1, "SX,SY4, EX,SY4") .line_2(2, "SX,SY22, EX,SY22") .line_2(3, "SX,SY6, R,SY6, SX2.15,SY20, SX2.85,SY20, L,SY6, EX,SY6") .line_2(4, "SX,SY20, R,SY20, SX2.15,SY6, SX2.85,SY6, L,SY20, EX,SY20") .line_2(5, "SX,SY14, R,SY14, SX1.7,SY23, SX3.3,SY23, L,SY14, EX,SY14") .line_2(6, "SX,SY12, R,SY12, SX1.7,SY3, SX3.3,SY3, L,SY12, EX,SY12") .line_2(7, "SX,SY23, R,SY23, SX2.5,SY13, L,SY3, EX,SY3") .line_2(8, "SX,SY3, R,SY3, SX2.5,SY13, L,SY23, EX,SY23") .line_2(9, "SX,SY19, R,SY19, SX1.3,SY13.5, SX3.7,SY13.5, L,SY7, EX,SY7") .line_2(10, "SX,SY7, R,SY7, SX1.3,SY12.5, SX3.7,SY12.5, L,SY19, EX,SY19") .line_2(11, "SX,SY15, R,SY15, SX1.53,SY24, SX3.69,SY2, L,SY11, EX,SY11") .line_2(12, "SX,SY11, R,SY11, SX1.53,SY2, SX3.69,SY24, L,SY15, EX,SY15") .line_2(13, "SX,SY5, R,SY5, SX1.5,SY12, L,SY5, R,SY5, SX3.5,SY12, L,SY5, EX,SY5") .line_2(14, "SX,SY21, R,SY21, SX1.5,SY14, L,SY21, R,SY21, SX3.5,SY14, L,SY21, EX,SY21") .line_2(15, "SX,SY10, R,SY10, SX2.5,SY5, L,SY10, EX,SY10") .line_2(16, "SX,SY16, R,SY16, SX2.5,SY21, L,SY16, EX,SY16") .line_2(17, "SX,SY2, SX0.75,SY2, SX1.05,SY21, SX1.95,SY21, SX2.34,SY1, SX2.66,SY1, SX3.05,SY21, SX3.95,SY21, SX4.25,SY2, EX,SY2") .line_2(18, "SX,SY24, SX0.75,SY24, SX1.05,SY5, SX1.95,SY5, SX2.34,SY25, SX2.66,SY25, SX3.05,SY5, SX3.95,SY5, SX4.25,SY24, EX,SY24") .line_2(19, "SX,SY26, SX0.89,SY26, SX1.19,SY7, SX1.81,SY7, SX1.93,SY12, SX3.07,SY12, SX3.19,SY7, SX3.81,SY7, SX4.11,SY26, EX,SY26") .line_2(20, "SX,SY0, SX0.89,SY0, SX1.19,SY19, SX1.81,SY19, SX1.93,SY14, SX3.07,SY14, SX3.19,SY19, SX3.81,SY19, SX4.11,SY0, EX,SY0") .line_2(21, "SX,SY1, SX1.95,SY1, SX2.42,SY24, SX2.58,SY24, SX3.05,SY1, EX,SY1") .line_2(22, "SX,SY25, SX1.95,SY25, SX2.42,SY2, SX2.58,SY2, SX3.05,SY25, EX,SY25") .line_2(23, "SX,SY9, SX1.05,SY9, SX1.12,SY6, SX1.88,SY6, R,SY26, SX2.26,SY26, SX2.74,SY26, L,SY26, SX3.12,SY6, SX3.88,SY6, SX3.95,SY9, EX,SY9") .line_2(24, "SX,SY17, SX1.05,SY17, SX1.12,SY20, SX1.88,SY20, R,SY0, SX2.26,SY0, SX2.74,SY0, L,SY0, SX3.12,SY20, SX3.88,SY20, SX3.95,SY17, EX,SY17") .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(216, 9, 9), GT1391.prototype.set_0().compRGB_3(163, 7, 7)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(217, 215, 9), GT1391.prototype.set_0().compRGB_3(163, 162, 7)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(67, 157, 17), GT1391.prototype.set_0().compRGB_3(59, 118, 13)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(12, 177, 201), GT1391.prototype.set_0().compRGB_3(9, 133, 151)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(58, 103, 170), GT1391.prototype.set_0().compRGB_3(47, 81, 134)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(174, 174, 174), GT1391.prototype.set_0().compRGB_3(131, 131, 131)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(170, 77, 181), GT1391.prototype.set_0().compRGB_3(128, 58, 136)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(2, 193, 146), GT1391.prototype.set_0().compRGB_3(2, 145, 110)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(207, 141, 0), GT1391.prototype.set_0().compRGB_3(156, 106, 0)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(30, 131, 68), GT1391.prototype.set_0().compRGB_3(25, 89, 47)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(191, 94, 0), GT1391.prototype.set_0().compRGB_3(144, 71, 0)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(156, 30, 30), GT1391.prototype.set_0().compRGB_3(143, 27, 27)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(234, 123, 154), GT1391.prototype.set_0().compRGB_3(176, 93, 116)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(247, 255, 111), GT1391.prototype.set_0().compRGB_3(186, 192, 84)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(4, 115, 103), GT1391.prototype.set_0().compRGB_3(3, 95, 85)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(162, 148, 91), GT1391.prototype.set_0().compRGB_3(138, 126, 78)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(31, 214, 96), GT1391.prototype.set_0().compRGB_3(18, 129, 57)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(225, 53, 162), GT1391.prototype.set_0().compRGB_3(169, 40, 122)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(152, 104, 20), GT1391.prototype.set_0().compRGB_3(114, 79, 15)) .lineColor_2(20, GT1391.prototype.set_0().compRGB_3(105, 2, 2)) .lineColor_2(21, GT1391.prototype.set_0().compRGB_3(150, 148, 2)) .lineColor_2(22, GT1391.prototype.set_0().compRGB_3(39, 107, 2)) .lineColor_2(23, GT1391.prototype.set_0().compRGB_3(2, 128, 147)) .lineColor_2(24, GT1391.prototype.set_0().compRGB_3(10, 56, 126)) .scatterColor_2(GT1391.prototype.set_0().compRGB_3(255, 180, 0), GT1391.prototype.set_0().compRGB_3(192, 136, 0)); }, defaultWinLines54a100Net_0: function () { return GT680.prototype .set_0() .position_2(109, 0) .size_2(1318, this.getReelY_0() + 6 + 668) .reelContainerOffset_2(60, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(10) .lineStartOffset_1(40) .slope_1(0.74) .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(20, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(21, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(22, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(23, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(24, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(25, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(26, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(27, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(28, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(29, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(30, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(31, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(32, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(33, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(34, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(35, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(36, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(37, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(38, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(39, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .lineColor_3(40, GT1391.prototype.set_0().compRGB_3(162, 105, 85), GT1391.prototype.set_0().compRGB_3(114, 74, 60)) .lineColor_3(41, GT1391.prototype.set_0().compRGB_3(3, 109, 99), GT1391.prototype.set_0().compRGB_3(2, 77, 69)) .lineColor_3(42, GT1391.prototype.set_0().compRGB_3(161, 45, 58), GT1391.prototype.set_0().compRGB_3(113, 32, 41)) .lineColor_3(43, GT1391.prototype.set_0().compRGB_3(194, 177, 125), GT1391.prototype.set_0().compRGB_3(136, 124, 88)) .lineColor_3(44, GT1391.prototype.set_0().compRGB_3(178, 167, 52), GT1391.prototype.set_0().compRGB_3(125, 117, 37)) .lineColor_3(45, GT1391.prototype.set_0().compRGB_3(186, 161, 154), GT1391.prototype.set_0().compRGB_3(131, 113, 108)) .lineColor_3(46, GT1391.prototype.set_0().compRGB_3(174, 81, 38), GT1391.prototype.set_0().compRGB_3(122, 57, 27)) .lineColor_3(47, GT1391.prototype.set_0().compRGB_3(165, 68, 113), GT1391.prototype.set_0().compRGB_3(116, 48, 79)) .lineColor_3(48, GT1391.prototype.set_0().compRGB_3(178, 146, 99), GT1391.prototype.set_0().compRGB_3(125, 102, 69)) .lineColor_3(49, GT1391.prototype.set_0().compRGB_3(139, 162, 180), GT1391.prototype.set_0().compRGB_3(98, 114, 126)) .lineColor_3(50, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(51, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(52, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(53, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(54, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(55, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(56, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(57, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(58, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(59, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(60, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(61, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(62, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(63, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(64, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(65, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(66, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(67, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(68, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(69, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(70, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(71, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(72, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(73, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(74, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(75, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(76, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(77, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(78, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(79, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(80, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(81, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(82, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(83, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(84, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(85, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(86, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(87, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(88, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(89, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .lineColor_3(90, GT1391.prototype.set_0().compRGB_3(162, 105, 85), GT1391.prototype.set_0().compRGB_3(114, 74, 60)) .lineColor_3(91, GT1391.prototype.set_0().compRGB_3(3, 109, 99), GT1391.prototype.set_0().compRGB_3(2, 77, 69)) .lineColor_3(92, GT1391.prototype.set_0().compRGB_3(161, 45, 58), GT1391.prototype.set_0().compRGB_3(113, 32, 41)) .lineColor_3(93, GT1391.prototype.set_0().compRGB_3(194, 177, 125), GT1391.prototype.set_0().compRGB_3(136, 124, 88)) .lineColor_3(94, GT1391.prototype.set_0().compRGB_3(178, 167, 52), GT1391.prototype.set_0().compRGB_3(125, 117, 37)) .lineColor_3(95, GT1391.prototype.set_0().compRGB_3(186, 161, 154), GT1391.prototype.set_0().compRGB_3(131, 113, 108)) .lineColor_3(96, GT1391.prototype.set_0().compRGB_3(174, 81, 38), GT1391.prototype.set_0().compRGB_3(122, 57, 27)) .lineColor_3(97, GT1391.prototype.set_0().compRGB_3(165, 68, 113), GT1391.prototype.set_0().compRGB_3(116, 48, 79)) .lineColor_3(98, GT1391.prototype.set_0().compRGB_3(178, 146, 99), GT1391.prototype.set_0().compRGB_3(125, 102, 69)) .lineColor_3(99, GT1391.prototype.set_0().compRGB_3(139, 162, 180), GT1391.prototype.set_0().compRGB_3(98, 114, 126)) .scatterColor_1(GT1391.prototype.set_0().compRGB_3(255, 180, 0)); }, defaultWinLines54b100Net_0: function () { return GT680.prototype .set_0() .position_2(109, 0) .size_2(1318, this.getReelY_0() + 6 + 668) .reelContainerOffset_2(60, this.getReelY_0()) .margin_1(49) .reelsLayout_1(this.reelLayout_0()) .lineStartSpacing_1(10) .lineStartOffset_1(40) .slope_1(0.74) .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(10, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(11, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(12, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(13, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(14, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(15, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(16, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(17, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(18, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(19, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(20, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(21, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(22, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(23, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(24, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(25, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(26, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(27, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(28, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(29, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(30, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(31, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(32, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(33, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(34, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(35, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(36, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(37, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(38, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(39, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .lineColor_3(40, GT1391.prototype.set_0().compRGB_3(162, 105, 85), GT1391.prototype.set_0().compRGB_3(114, 74, 60)) .lineColor_3(41, GT1391.prototype.set_0().compRGB_3(3, 109, 99), GT1391.prototype.set_0().compRGB_3(2, 77, 69)) .lineColor_3(42, GT1391.prototype.set_0().compRGB_3(161, 45, 58), GT1391.prototype.set_0().compRGB_3(113, 32, 41)) .lineColor_3(43, GT1391.prototype.set_0().compRGB_3(194, 177, 125), GT1391.prototype.set_0().compRGB_3(136, 124, 88)) .lineColor_3(44, GT1391.prototype.set_0().compRGB_3(178, 167, 52), GT1391.prototype.set_0().compRGB_3(125, 117, 37)) .lineColor_3(45, GT1391.prototype.set_0().compRGB_3(186, 161, 154), GT1391.prototype.set_0().compRGB_3(131, 113, 108)) .lineColor_3(46, GT1391.prototype.set_0().compRGB_3(174, 81, 38), GT1391.prototype.set_0().compRGB_3(122, 57, 27)) .lineColor_3(47, GT1391.prototype.set_0().compRGB_3(165, 68, 113), GT1391.prototype.set_0().compRGB_3(116, 48, 79)) .lineColor_3(48, GT1391.prototype.set_0().compRGB_3(178, 146, 99), GT1391.prototype.set_0().compRGB_3(125, 102, 69)) .lineColor_3(49, GT1391.prototype.set_0().compRGB_3(139, 162, 180), GT1391.prototype.set_0().compRGB_3(98, 114, 126)) .lineColor_3(50, GT1391.prototype.set_0().compRGB_3(165, 150, 153), GT1391.prototype.set_0().compRGB_3(130, 118, 121)) .lineColor_3(51, GT1391.prototype.set_0().compRGB_3(3, 118, 145), GT1391.prototype.set_0().compRGB_3(2, 93, 114)) .lineColor_3(52, GT1391.prototype.set_0().compRGB_3(114, 112, 113), GT1391.prototype.set_0().compRGB_3(90, 88, 89)) .lineColor_3(53, GT1391.prototype.set_0().compRGB_3(2, 128, 151), GT1391.prototype.set_0().compRGB_3(2, 101, 119)) .lineColor_3(54, GT1391.prototype.set_0().compRGB_3(11, 73, 184), GT1391.prototype.set_0().compRGB_3(9, 58, 145)) .lineColor_3(55, GT1391.prototype.set_0().compRGB_3(199, 150, 48), GT1391.prototype.set_0().compRGB_3(157, 118, 38)) .lineColor_3(56, GT1391.prototype.set_0().compRGB_3(105, 187, 181), GT1391.prototype.set_0().compRGB_3(83, 147, 143)) .lineColor_3(57, GT1391.prototype.set_0().compRGB_3(0, 80, 175), GT1391.prototype.set_0().compRGB_3(0, 63, 138)) .lineColor_3(58, GT1391.prototype.set_0().compRGB_3(177, 38, 33), GT1391.prototype.set_0().compRGB_3(140, 30, 26)) .lineColor_3(59, GT1391.prototype.set_0().compRGB_3(85, 83, 42), GT1391.prototype.set_0().compRGB_3(67, 65, 33)) .lineColor_3(60, GT1391.prototype.set_0().compRGB_3(6, 77, 21), GT1391.prototype.set_0().compRGB_3(5, 63, 17)) .lineColor_3(61, GT1391.prototype.set_0().compRGB_3(177, 150, 17), GT1391.prototype.set_0().compRGB_3(140, 118, 13)) .lineColor_3(62, GT1391.prototype.set_0().compRGB_3(8, 168, 80), GT1391.prototype.set_0().compRGB_3(6, 128, 161)) .lineColor_3(63, GT1391.prototype.set_0().compRGB_3(181, 162, 70), GT1391.prototype.set_0().compRGB_3(143, 128, 55)) .lineColor_3(64, GT1391.prototype.set_0().compRGB_3(145, 87, 37), GT1391.prototype.set_0().compRGB_3(114, 69, 29)) .lineColor_3(65, GT1391.prototype.set_0().compRGB_3(200, 128, 56), GT1391.prototype.set_0().compRGB_3(158, 101, 44)) .lineColor_3(66, GT1391.prototype.set_0().compRGB_3(8, 163, 147), GT1391.prototype.set_0().compRGB_3(6, 128, 116)) .lineColor_3(67, GT1391.prototype.set_0().compRGB_3(203, 79, 163), GT1391.prototype.set_0().compRGB_3(160, 62, 128)) .lineColor_3(68, GT1391.prototype.set_0().compRGB_3(194, 78, 187), GT1391.prototype.set_0().compRGB_3(153, 61, 147)) .lineColor_3(69, GT1391.prototype.set_0().compRGB_3(5, 161, 54), GT1391.prototype.set_0().compRGB_3(4, 122, 41)) .lineColor_3(70, GT1391.prototype.set_0().compRGB_3(5, 91, 30), GT1391.prototype.set_0().compRGB_3(4, 72, 24)) .lineColor_3(71, GT1391.prototype.set_0().compRGB_3(9, 179, 170), GT1391.prototype.set_0().compRGB_3(7, 141, 134)) .lineColor_3(72, GT1391.prototype.set_0().compRGB_3(176, 165, 23), GT1391.prototype.set_0().compRGB_3(139, 130, 18)) .lineColor_3(73, GT1391.prototype.set_0().compRGB_3(181, 78, 33), GT1391.prototype.set_0().compRGB_3(127, 55, 23)) .lineColor_3(74, GT1391.prototype.set_0().compRGB_3(160, 65, 47), GT1391.prototype.set_0().compRGB_3(117, 48, 34)) .lineColor_3(75, GT1391.prototype.set_0().compRGB_3(194, 86, 84), GT1391.prototype.set_0().compRGB_3(136, 60, 59)) .lineColor_3(76, GT1391.prototype.set_0().compRGB_3(194, 156, 59), GT1391.prototype.set_0().compRGB_3(136, 110, 41)) .lineColor_3(77, GT1391.prototype.set_0().compRGB_3(194, 122, 159), GT1391.prototype.set_0().compRGB_3(136, 86, 112)) .lineColor_3(78, GT1391.prototype.set_0().compRGB_3(176, 135, 81), GT1391.prototype.set_0().compRGB_3(124, 95, 57)) .lineColor_3(79, GT1391.prototype.set_0().compRGB_3(189, 63, 171), GT1391.prototype.set_0().compRGB_3(133, 44, 120)) .lineColor_3(80, GT1391.prototype.set_0().compRGB_3(190, 43, 85), GT1391.prototype.set_0().compRGB_3(133, 30, 60)) .lineColor_3(81, GT1391.prototype.set_0().compRGB_3(130, 149, 129), GT1391.prototype.set_0().compRGB_3(91, 105, 91)) .lineColor_3(82, GT1391.prototype.set_0().compRGB_3(217, 55, 52), GT1391.prototype.set_0().compRGB_3(152, 39, 37)) .lineColor_3(83, GT1391.prototype.set_0().compRGB_3(98, 62, 150), GT1391.prototype.set_0().compRGB_3(69, 44, 105)) .lineColor_3(84, GT1391.prototype.set_0().compRGB_3(79, 78, 172), GT1391.prototype.set_0().compRGB_3(55, 55, 121)) .lineColor_3(85, GT1391.prototype.set_0().compRGB_3(199, 63, 163), GT1391.prototype.set_0().compRGB_3(140, 44, 114)) .lineColor_3(86, GT1391.prototype.set_0().compRGB_3(157, 146, 152), GT1391.prototype.set_0().compRGB_3(106, 98, 103)) .lineColor_3(87, GT1391.prototype.set_0().compRGB_3(156, 78, 190), GT1391.prototype.set_0().compRGB_3(110, 55, 133)) .lineColor_3(88, GT1391.prototype.set_0().compRGB_3(23, 64, 170), GT1391.prototype.set_0().compRGB_3(16, 45, 119)) .lineColor_3(89, GT1391.prototype.set_0().compRGB_3(73, 65, 176), GT1391.prototype.set_0().compRGB_3(51, 46, 124)) .lineColor_3(90, GT1391.prototype.set_0().compRGB_3(162, 105, 85), GT1391.prototype.set_0().compRGB_3(114, 74, 60)) .lineColor_3(91, GT1391.prototype.set_0().compRGB_3(3, 109, 99), GT1391.prototype.set_0().compRGB_3(2, 77, 69)) .lineColor_3(92, GT1391.prototype.set_0().compRGB_3(161, 45, 58), GT1391.prototype.set_0().compRGB_3(113, 32, 41)) .lineColor_3(93, GT1391.prototype.set_0().compRGB_3(194, 177, 125), GT1391.prototype.set_0().compRGB_3(136, 124, 88)) .lineColor_3(94, GT1391.prototype.set_0().compRGB_3(178, 167, 52), GT1391.prototype.set_0().compRGB_3(125, 117, 37)) .lineColor_3(95, GT1391.prototype.set_0().compRGB_3(186, 161, 154), GT1391.prototype.set_0().compRGB_3(131, 113, 108)) .lineColor_3(96, GT1391.prototype.set_0().compRGB_3(174, 81, 38), GT1391.prototype.set_0().compRGB_3(122, 57, 27)) .lineColor_3(97, GT1391.prototype.set_0().compRGB_3(165, 68, 113), GT1391.prototype.set_0().compRGB_3(116, 48, 79)) .lineColor_3(98, GT1391.prototype.set_0().compRGB_3(178, 146, 99), GT1391.prototype.set_0().compRGB_3(125, 102, 69)) .lineColor_3(99, GT1391.prototype.set_0().compRGB_3(139, 162, 180), GT1391.prototype.set_0().compRGB_3(98, 114, 126)) .scatterColor_1(GT1391.prototype.set_0().compRGB_3(255, 180, 0)); }, defaultWinLines54a100_0: function () { return this.defaultWinLines54a100Net_0() .line_2(0, "SX,SY7, A ^^^^^, EX,SY7") .line_2(1, "SX,SY22, A -----, EX,SY22") .line_2(2, "SX,SY37, A _____, EX,SY37") .line_2(3, "SX,SY52, A VVVVV, EX,SY52") .line_2(4, "SX,SY7, A ^-_-^, EX,SY7") .line_2(5, "SX,SY22, A -_V_-, EX,SY22") .line_2(6, "SX,SY37, A _-^-_, EX,SY37") .line_2(7, "SX,SY52, A V_-_V, EX,SY52") .line_2(8, "SX,SY7, A ^^^^-, EX,SY22") .line_2(9, "SX,SY22, A ----^, EX,SY7") .line_2(10, "SX,SY37, A ____V, EX,SY52") .line_2(11, "SX,SY52, A VVVV_, EX,SY37") .line_2(12, "SX,SY7, A ^----, EX,SY22") .line_2(13, "SX,SY22, A ----_, EX,SY37") .line_2(14, "SX,SY37, A ____-, EX,SY22") .line_2(15, "SX,SY52, A V____, EX,SY37") .line_2(16, "SX,SY22, A -^^^^, EX,SY7") .line_2(17, "SX,SY22, A -____, EX,SY37") .line_2(18, "SX,SY37, A _----, EX,SY22") .line_2(19, "SX,SY37, A _VVVV, EX,SY52") .line_2(20, "SX,SY7, A ^^^-_, EX,SY37") .line_2(21, "SX,SY22, A ---_V, EX,SY52") .line_2(22, "SX,SY37, A ___-^, EX,SY7") .line_2(23, "SX,SY52, A VVV_-, EX,SY22") .line_2(24, "SX,SY7, A ^-___, EX,SY37") .line_2(25, "SX,SY22, A -_VVV, EX,SY52") .line_2(26, "SX,SY37, A _-^^^, EX,SY7") .line_2(27, "SX,SY52, A V_---, EX,SY22") .line_2(28, "SX,SY7, A ^^-^^, EX,SY7") .line_2(29, "SX,SY22, A --^--, EX,SY22") .line_2(30, "SX,SY37, A __V__, EX,SY37") .line_2(31, "SX,SY52, A VV_VV, EX,SY52") .line_2(32, "SX,SY7, A ^---^, EX,SY7") .line_2(33, "SX,SY22, A --_--, EX,SY22") .line_2(34, "SX,SY37, A __-__, EX,SY37") .line_2(35, "SX,SY52, A V___V, EX,SY52") .line_2(36, "SX,SY22, A -^^^-, EX,SY22") .line_2(37, "SX,SY22, A -___-, EX,SY22") .line_2(38, "SX,SY37, A _---_, EX,SY37") .line_2(39, "SX,SY37, A _VVV_, EX,SY37") .line_2(40, "SX,SY22, A -^-^-, EX,SY22") .line_2(41, "SX,SY37, A _-_-_, EX,SY37") .line_2(42, "SX,SY52, A V_V_V, EX,SY52") .line_2(43, "SX,SY7, A ^-^-^, EX,SY7") .line_2(44, "SX,SY22, A -_-_-, EX,SY22") .line_2(45, "SX,SY37, A _V_V_, EX,SY37") .line_2(46, "SX,SY22, A -^-_-, EX,SY22") .line_2(47, "SX,SY37, A _-_V_, EX,SY37") .line_2(48, "SX,SY22, A -_-^-, EX,SY22") .line_2(49, "SX,SY37, A _V_-_, EX,SY37") .line_2(50, "SX,SY52, A VV___, EX,SY37") .line_2(51, "SX,SY37, A __---, EX,SY22") .line_2(52, "SX,SY22, A --^^^, EX,SY7") .line_2(53, "SX,SY7, A ^^---, EX,SY22") .line_2(54, "SX,SY22, A --___, EX,SY37") .line_2(55, "SX,SY37, A __VVV, EX,SY52") .line_2(56, "SX,SY52, A VVV__, EX,SY37") .line_2(57, "SX,SY37, A ___--, EX,SY22") .line_2(58, "SX,SY22, A ---^^, EX,SY7") .line_2(59, "SX,SY7, A ^^^--, EX,SY22") .line_2(60, "SX,SY22, A ---__, EX,SY37") .line_2(61, "SX,SY37, A ___VV, EX,SY52") .line_2(62, "SX,SY52, A V_-^^, EX,SY7") .line_2(63, "SX,SY7, A ^-_VV, EX,SY52") .line_2(64, "SX,SY52, A VV_-^, EX,SY7") .line_2(65, "SX,SY7, A ^^-_V, EX,SY52") .line_2(66, "SX,SY52, A V___-, EX,SY22") .line_2(67, "SX,SY37, A _---^, EX,SY7") .line_2(68, "SX,SY7, A ^---_, EX,SY37") .line_2(69, "SX,SY22, A -___V, EX,SY52") .line_2(70, "SX,SY52, A V__VV, EX,SY52") .line_2(71, "SX,SY37, A _--__, EX,SY37") .line_2(72, "SX,SY22, A -^^--, EX,SY22") .line_2(73, "SX,SY37, A _VV__, EX,SY37") .line_2(74, "SX,SY22, A -__--, EX,SY22") .line_2(75, "SX,SY7, A ^--^^, EX,SY7") .line_2(76, "SX,SY52, A VV__V, EX,SY52") .line_2(77, "SX,SY37, A __--_, EX,SY37") .line_2(78, "SX,SY22, A --^^-, EX,SY22") .line_2(79, "SX,SY7, A ^^--^, EX,SY7") .line_2(80, "SX,SY22, A --__-, EX,SY22") .line_2(81, "SX,SY37, A __VV_, EX,SY37") .line_2(82, "SX,SY52, A VV_--, EX,SY22") .line_2(83, "SX,SY37, A __-^^, EX,SY7") .line_2(84, "SX,SY7, A ^^-__, EX,SY37") .line_2(85, "SX,SY22, A --_VV, EX,SY52") .line_2(86, "SX,SY22, A -^---, EX,SY22") .line_2(87, "SX,SY37, A _-___, EX,SY37") .line_2(88, "SX,SY52, A V_VVV, EX,SY52") .line_2(89, "SX,SY7, A ^-^^^, EX,SY7") .line_2(90, "SX,SY22, A -_---, EX,SY22") .line_2(91, "SX,SY37, A _V___, EX,SY37") .line_2(92, "SX,SY52, A V_--_, EX,SY37") .line_2(93, "SX,SY37, A _-^^-, EX,SY22") .line_2(94, "SX,SY22, A -_VV_, EX,SY37") .line_2(95, "SX,SY7, A ^-__-, EX,SY22") .line_2(96, "SX,SY22, A -^^-_, EX,SY37") .line_2(97, "SX,SY37, A _--_V, EX,SY52") .line_2(98, "SX,SY37, A _VV_-, EX,SY22") .line_2(99, "SX,SY22, A -__-^, EX,SY7"); }, defaultWinLines54b100_0: function () { return this.defaultWinLines54b100Net_0() .line_2(0, "SX,SY7, A ^^^^^, EX,SY7") .line_2(1, "SX,SY7, A ^^^^-, EX,SY22") .line_2(2, "SX,SY7, A ^^^--, EX,SY22") .line_2(3, "SX,SY7, A ^^^-_, EX,SY37") .line_2(4, "SX,SY7, A ^^-^^, EX,SY7") .line_2(5, "SX,SY7, A ^^--^, EX,SY7") .line_2(6, "SX,SY7, A ^^---, EX,SY22") .line_2(7, "SX,SY7, A ^^-__, EX,SY37") .line_2(8, "SX,SY7, A ^^-_V, EX,SY52") .line_2(9, "SX,SY7, A ^-^^^, EX,SY7") .line_2(10, "SX,SY7, A ^-^-^, EX,SY7") .line_2(11, "SX,SY7, A ^--^^, EX,SY7") .line_2(12, "SX,SY7, A ^---^, EX,SY7") .line_2(13, "SX,SY7, A ^----, EX,SY22") .line_2(14, "SX,SY7, A ^---_, EX,SY37") .line_2(15, "SX,SY7, A ^-_-^, EX,SY7") .line_2(16, "SX,SY7, A ^-__-, EX,SY22") .line_2(17, "SX,SY7, A ^-___, EX,SY37") .line_2(18, "SX,SY7, A ^-_VV, EX,SY52") .line_2(19, "SX,SY22, A -^^^^, EX,SY7") .line_2(20, "SX,SY22, A -^^^-, EX,SY22") .line_2(21, "SX,SY22, A -^^--, EX,SY22") .line_2(22, "SX,SY22, A -^^-_, EX,SY37") .line_2(23, "SX,SY22, A -^-^-, EX,SY22") .line_2(24, "SX,SY22, A -^---, EX,SY22") .line_2(25, "SX,SY22, A -^-_-, EX,SY22") .line_2(26, "SX,SY22, A --^^^, EX,SY7") .line_2(27, "SX,SY22, A --^^-, EX,SY22") .line_2(28, "SX,SY22, A --^--, EX,SY22") .line_2(29, "SX,SY22, A ---^^, EX,SY7") .line_2(30, "SX,SY22, A ----^, EX,SY7") .line_2(31, "SX,SY22, A -----, EX,SY22") .line_2(32, "SX,SY22, A ----_, EX,SY37") .line_2(33, "SX,SY22, A ---__, EX,SY37") .line_2(34, "SX,SY22, A ---_V, EX,SY52") .line_2(35, "SX,SY22, A --_--, EX,SY22") .line_2(36, "SX,SY22, A --__-, EX,SY22") .line_2(37, "SX,SY22, A --___, EX,SY37") .line_2(38, "SX,SY22, A --_VV, EX,SY52") .line_2(39, "SX,SY22, A -_-^-, EX,SY22") .line_2(40, "SX,SY22, A -_---, EX,SY22") .line_2(41, "SX,SY22, A -_-_-, EX,SY22") .line_2(42, "SX,SY22, A -__-^, EX,SY7") .line_2(43, "SX,SY22, A -__--, EX,SY22") .line_2(44, "SX,SY22, A -___-, EX,SY22") .line_2(45, "SX,SY22, A -____, EX,SY37") .line_2(46, "SX,SY22, A -___V, EX,SY52") .line_2(47, "SX,SY22, A -_V_-, EX,SY22") .line_2(48, "SX,SY22, A -_VV_, EX,SY37") .line_2(49, "SX,SY22, A -_VVV, EX,SY52") .line_2(50, "SX,SY37, A _-^^^, EX,SY7") .line_2(51, "SX,SY37, A _-^^-, EX,SY22") .line_2(52, "SX,SY37, A _-^-_, EX,SY37") .line_2(53, "SX,SY37, A _---^, EX,SY7") .line_2(54, "SX,SY37, A _----, EX,SY22") .line_2(55, "SX,SY37, A _---_, EX,SY37") .line_2(56, "SX,SY37, A _--__, EX,SY37") .line_2(57, "SX,SY37, A _--_V, EX,SY52") .line_2(58, "SX,SY37, A _-_-_, EX,SY37") .line_2(59, "SX,SY37, A _-___, EX,SY37") .line_2(60, "SX,SY37, A _-_V_, EX,SY37") .line_2(61, "SX,SY37, A __-^^, EX,SY7") .line_2(62, "SX,SY37, A __---, EX,SY22") .line_2(63, "SX,SY37, A __--_, EX,SY37") .line_2(64, "SX,SY37, A __-__, EX,SY37") .line_2(65, "SX,SY37, A ___-^, EX,SY7") .line_2(66, "SX,SY37, A ___--, EX,SY22") .line_2(67, "SX,SY37, A ____-, EX,SY22") .line_2(68, "SX,SY37, A _____, EX,SY37") .line_2(69, "SX,SY37, A ____V, EX,SY52") .line_2(70, "SX,SY37, A ___VV, EX,SY52") .line_2(71, "SX,SY37, A __V__, EX,SY37") .line_2(72, "SX,SY37, A __VV_, EX,SY37") .line_2(73, "SX,SY37, A __VVV, EX,SY52") .line_2(74, "SX,SY37, A _V_-_, EX,SY37") .line_2(75, "SX,SY37, A _V___, EX,SY37") .line_2(76, "SX,SY37, A _V_V_, EX,SY37") .line_2(77, "SX,SY37, A _VV_-, EX,SY22") .line_2(78, "SX,SY37, A _VV__, EX,SY37") .line_2(79, "SX,SY37, A _VVV_, EX,SY37") .line_2(80, "SX,SY37, A _VVVV, EX,SY52") .line_2(81, "SX,SY52, A V_-^^, EX,SY7") .line_2(82, "SX,SY52, A V_---, EX,SY22") .line_2(83, "SX,SY52, A V_--_, EX,SY37") .line_2(84, "SX,SY52, A V_-_V, EX,SY52") .line_2(85, "SX,SY52, A V___-, EX,SY22") .line_2(86, "SX,SY52, A V____, EX,SY37") .line_2(87, "SX,SY52, A V___V, EX,SY52") .line_2(88, "SX,SY52, A V__VV, EX,SY52") .line_2(89, "SX,SY52, A V_V_V, EX,SY52") .line_2(90, "SX,SY52, A V_VVV, EX,SY52") .line_2(91, "SX,SY52, A VV_-^, EX,SY7") .line_2(92, "SX,SY52, A VV_--, EX,SY22") .line_2(93, "SX,SY52, A VV___, EX,SY37") .line_2(94, "SX,SY52, A VV__V, EX,SY52") .line_2(95, "SX,SY52, A VV_VV, EX,SY52") .line_2(96, "SX,SY52, A VVV_-, EX,SY22") .line_2(97, "SX,SY52, A VVV__, EX,SY37") .line_2(98, "SX,SY52, A VVVV_, EX,SY37") .line_2(99, "SX,SY52, A VVVVV, EX,SY52"); }, defaultPaytable_0: function () { return GT1100.prototype .set_0() .id_1(GT1618.prototype.PAYTABLE) .position_2(this.getInnerMainGuiX_0() + this.getSlideInOutScreenX_0(), this.getSlideInOutScreenY_0()) .size_2(this.getSlideInOutScreenWidth_0(), this.getSlideInOutScreenHeight_0()) .jackpotContributionText_2("${infopt_payouts_jackpotcontribution}", "${infopt_payouts_multi_jackpotcontribution}") .jackpotExchangeRateText_1("${infopt_jackpot_exchange_rate}") .jackpotComplianceInfoText_4( "${infopt_payouts_gamblepossible_jackpotwin} ${infopt_payouts_jackpotvalue_stake} ${infopt_payouts_jackpotvalue_proportion} ${infopt_payouts_jackpotvalue_eligiblewin} ${infopt_payouts_jackpotvalue_reset} ${infopt_payouts_jackpotwin_simultaneousness} ${infopt_payouts_jackpotwin_subsequence_multiplier} ${infopt_payouts_jackpotceiling}", "${infopt_payouts_gamblepossible_jackpotwin} ${infopt_payouts_multi_jackpotvalue_stake} ${infopt_payouts_jackpotvalue_proportion} ${infopt_payouts_multi_jackpotvalue_eligiblewin} ${infopt_payouts_multi_jackpotvalue_reset} ${infopt_payouts_multi_jackpotwin_simultaneousness} ${infopt_payouts_jackpotwin_subsequence_multiplier} ${infopt_payouts_multi_jackpotceiling}", "${infopt_payouts_gamblepossible_jackpotwin} ${infopt_payouts_jackpotvalue_seed} ${infopt_payouts_jackpotwin_simultaneousness} ${infopt_payouts_jackpotwin_subsequence_allwin} ${infopt_payouts_jackpotceiling}", "${infopt_payouts_gamblepossible_jackpotwin} ${infopt_payouts_multi_jackpotvalue_seed} ${infopt_payouts_multi_jackpotwin_simultaneousness} ${infopt_payouts_jackpotwin_subsequence_allwin} ${infopt_payouts_multi_jackpotceiling}" ) .theoreticalRTPText_1("${infopt_payouts_theoreticalrtp}") .rtpExplanationText_1("${infopt_payouts_explanation}") .minTotalBetText_1("${infopt_payouts_mintotalbet}") .maxGambleWinAndStepsTexts_4( "${infopt_payouts_maxgamblewin} ${infopt_payouts_gamblepossible_autoplayorwin}", "${infopt_payouts_maxgamblestepsandwin} ${infopt_payouts_gamblepossible_autoplayorwin}", "${infopt_payouts_maxgamblesteps} ${infopt_payouts_gamblepossible_autoplay}", "${infopt_payouts_maxgambleabsolutewin} ${infopt_payouts_gamblepossible_autoplayorwin}" ) .maxRoundWinText_1("${infopt_payouts_maxroundwin}") .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3"); }, defaultFreeGameStartEndScreen_0: function () { return GT383.prototype .set_0() .id_1(GT1618.prototype.FREEGAMESTARTEND) .position_2(this.getReelX_0() - 17, this.getReelY_0() - 20) .size_2(this.getSlideInOutScreenWidth_0(), this.getSlideInOutScreenHeight_0()) .child_1(this.freeGameScreenBackground_0()); }, defaultPaytableEntry_0: function () { return GT849.prototype .set_0() .size_2(180, 110) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(155)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .spacing_1(36) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultPaytableValue_0: function () { return GT850.prototype .set_0() .size_2(180, 110) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(155)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .spacing_1(36) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultJackpotField_0: function () { return GT901.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(260)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(230)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultJackpotFieldInGame_0: function () { return GT901.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(260)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(230)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultRedBlackGamble_0: function () { return GT785.prototype .set_0() .id_1(GT1618.prototype.GAMBLE) .position_2(this.getSlideInOutScreenX_0(), 0) .size_2(this.getSlideInOutScreenWidth_0(), this.getSlideInOutScreenHeight_0()) .soundGamble_1("/com/greentube/slot/client/res/gamble/gamblesuspense.mp3") .soundGambleLoopPositions_3(0, 1176, 37) .soundGambleWin_1("/com/greentube/slot/client/res/gamble/gamblewin12.mp3") .soundGambleWinStopPositions_1([430, 644, 858, 1078, 1294]) .soundGambleWinTop_1("/com/greentube/slot/client/res/gamble/gamblewintop.mp3") .soundGambleLost_1("/com/greentube/slot/client/res/gamble/gamblelost.mp3") .imageGambleCard_2("/com/greentube/slot/client/res/gamble/gamble_card.jpg", !0) .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3") .gambleHistoryCardPosition_2([0, 90, 180, 270, 360, 450], [0, 0, 0, 0, 0, 0]) .child_1(this.gambleBackground_0()) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CONGRATULATION) .position_2(Math.div(this.getSlideInOutScreenWidth_0(), 2), Math.div(this.getSlideInOutScreenHeight_0(), 2) + 20) .text_1("${gamble_redblack_info_gratulation_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT872.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CONGRATULATION_CONCRETE) .position_2(Math.div(this.getSlideInOutScreenWidth_0() - 1100, 2), 300) .size_2(1100, 260) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .position_2(308, 45) .text_1("${gamble_redblack_info_value_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1135.prototype .set_0() .id_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT) .position_2(160, 75) .size_2(300, 60) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .position_2(this.getSlideInOutScreenWidth_0() - 308, 45) .text_1("${gamble_redblack_info_forwin_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1135.prototype .set_0() .id_1(GT346.prototype.ID_FIELD_GAMBLETOWIN) .position_2(this.getSlideInOutScreenWidth_0() - 300 - 160, 75) .size_2(300, 60) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_PREVCARDS) .position_2(520, 195) .text_1("${gamble_redblack_info_history_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.RIGHT) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO) .position_2(Math.div(this.getSlideInOutScreenWidth_0() - 1100, 2), 600) .size_2(1100, 70) .text_1("${gamble_redblack_info}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE) .position_2(Math.div(this.getSlideInOutScreenWidth_0() - 1100, 2), 600) .size_2(1100, 70) .text_1("${gamble_redblack_info_after_gamble}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .hide_1(!0) ) .child_1(GT1186.prototype.set_0().id_1(GT346.prototype.ID_MAINCARD).position_2(515, 300)) .child_1(GT1186.prototype.set_0().id_1(GT346.prototype.ID_CARDS).position_2(585, 160)) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_RED) .imageFile_1("/com/greentube/slot/client/res/b_gamble_red_v3.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_RED) .text_1("${buttontext_gamblered}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(190).bold_0()) .fontColor_1(GT1391.prototype.set_0().red_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(160, 380) ) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_BLACK) .imageFile_1("/com/greentube/slot/client/res/b_gamble_black_v3.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_BLACK) .text_1("${buttontext_gambleblack}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(190).bold_0()) .fontColor_1(GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(820, 380) ) .child_1( this.defaultDynamicTextAreaSmall_0() .id_1(GT737.prototype.CURRENCY_TEXT) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .position_2(0, 20) .size_2(this.getSlideInOutScreenWidth_0(), 50) .text_1("${infotable_currency}") ); }, defaultRedBlackGambleDynamic_0: function () { return this.defaultRedBlackGamble_0() .scaleContentPercental_1(!0) .replace_2( GT346.prototype.ID_TEXT_CONGRATULATION, GT872.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CONGRATULATION) .position_2(616, 374) .text_1("${gamble_redblack_info_gratulation_capitalized}") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .replace_2( GT346.prototype.ID_TEXT_GAMBLEAMOUNT, GT872.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .position_2(160, 45) .size_2(300, 60) .text_1("${gamble_redblack_info_value_capitalized}") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .replace_2( GT346.prototype.ID_TEXT_GAMBLETOWIN, GT872.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .position_2(this.getSlideInOutScreenWidth_0() - 300 - 160, 45) .size_2(300, 60) .text_1("${gamble_redblack_info_forwin_capitalized}") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .replace_2( GT346.prototype.ID_TEXT_PREVCARDS, GT872.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_PREVCARDS) .position_2(520, 195) .size_2(300, 60) .text_1("${gamble_redblack_info_history_capitalized}") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ); }, defaultSingleButtonGamble_0: function () { return GT581.prototype .set_0() .id_1(GT1618.prototype.GAMBLE) .position_2(this.getSlideInOutScreenX_0(), 0) .size_2(this.getSlideInOutScreenWidth_0(), this.getSlideInOutScreenHeight_0()) .soundGamble_1("/com/greentube/slot/client/res/gamble/gamblesuspense.mp3") .soundGambleLoopPositions_3(0, 1176, 37) .soundGambleWinStep1_1("/com/greentube/slot/client/res/gamble/gamblewin1.mp3") .soundGambleWinStep2_1("/com/greentube/slot/client/res/gamble/gamblewin2.mp3") .soundGambleWinStep3_1("/com/greentube/slot/client/res/gamble/gamblewin3.mp3") .soundGambleWinStep4_1("/com/greentube/slot/client/res/gamble/gamblewin4.mp3") .soundGambleWinStep5_1("/com/greentube/slot/client/res/gamble/gamblewin5.mp3") .soundGambleWinStep6_1("/com/greentube/slot/client/res/gamble/gamblewin6.mp3") .soundGambleWinStep7_1("/com/greentube/slot/client/res/gamble/gamblewin7.mp3") .soundGambleWinStep8_1("/com/greentube/slot/client/res/gamble/gamblewin8.mp3") .soundGambleWinStep9_1("/com/greentube/slot/client/res/gamble/gamblewin9.mp3") .soundGambleWinStep10_1("/com/greentube/slot/client/res/gamble/gamblewin10.mp3") .soundGambleWinStep11_1("/com/greentube/slot/client/res/gamble/gamblewin11.mp3") .soundGambleWinStep12_1("/com/greentube/slot/client/res/gamble/gamblewin12.mp3") .soundGambleWinTop_1("/com/greentube/slot/client/res/gamble/gamblewintop.mp3") .soundGambleLost_1("/com/greentube/slot/client/res/gamble/gamblelost.mp3") .imageGambleWins_1("/com/greentube/slot/client/res/gamble/gamble_win.png") .imageGambleWinTop_1("/com/greentube/slot/client/res/gamble/gamble_win_h.png") .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3") .fontTopWin_1(GT1441.prototype.set_0().bold_0().size_1(250).name_1(GT1393.prototype.VERDANA)) .fontWin_1(GT1441.prototype.set_0().bold_0().size_1(155).name_1(GT1393.prototype.VERDANA)) .colorWins_1(GT1391.prototype.set_0().yellow_0()) .child_1(this.gambleBackground_0()) .child_1( GT872.prototype .set_0() .id_1(GT242.prototype.ID_TEXT_GAMBLEAMOUNT) .text_1("${gamble_info_collect}") .addFont_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(170).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.BOTTOM) .hAlign_1(GT1488.prototype.CENTER) .position_2(25, 395) .size_2(370, 70) ) .child_1( GT1135.prototype .set_0() .id_1(GT242.prototype.ID_FIELD_GAMBLEAMOUNT) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(170).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .position_2(25, 460) .size_2(370, 50) ) .child_1( GT872.prototype .set_0() .id_1(GT242.prototype.ID_TEXT_GAMBLETOWIN) .text_1("${gamble_info_double}") .addFont_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(170).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.BOTTOM) .hAlign_1(GT1488.prototype.CENTER) .position_2(25, 505) .size_2(370, 70) ) .child_1( GT1135.prototype .set_0() .id_1(GT242.prototype.ID_FIELD_GAMBLETOWIN) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .addFont_1(GT1441.prototype.set_0().bold_0().size_1(170).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .position_2(25, 570) .size_2(370, 50) ) .child_1( GT1239.prototype .set_0() .id_1(GT242.prototype.ID_TEXT_CONGRATULATION) .text_1("${gamble_info_topwon0} ${gamble_info_topwon1}") .font_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .position_2(25, 430) .size_2(370, 120) ) .child_1( GT1445.prototype .set_0() .id_1(GT242.prototype.ID_TEXT_LOST) .text_1("${console_gamblelost}") .font_1(GT1441.prototype.set_0().bold_0().size_1(200).name_1(GT1393.prototype.VERDANA)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .position_2(220, 430) ) .child_1( this.defaultDynamicTextAreaSmall_0() .id_1(GT737.prototype.CURRENCY_TEXT) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .position_2(0, 20) .size_2(this.getSlideInOutScreenWidth_0(), 50) .text_1("${infotable_currency}") ); }, defaultSuperGame_0: function () { return GT681.prototype .set_0() .id_1(GT1618.prototype.SUPERGAME) .position_2(this.getSlideInOutScreenX_0(), 0) .size_2(this.getSlideInOutScreenWidth_0(), this.getSlideInOutScreenHeight_0()) .imageSuperGameLose_1("/com/greentube/slot/client/res/supergame/lose.png") .imageSuperGameWheel_1("/com/greentube/slot/client/res/supergame/wheel.jpg") .imageSuperGameWheelHighlight_1("/com/greentube/slot/client/res/supergame/s_reel.png") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3") .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundNoWin_1("/com/greentube/slot/client/res/supergame/roulettelost.mp3") .soundSuperGamesCounterIncrease_1("/com/greentube/slot/client/res/supergame/rouletteincrease.mp3") .soundSuperGamesWin_1("/com/greentube/slot/client/res/supergame/roulettewinsg.mp3") .soundWheelSpinning_1("/com/greentube/slot/client/res/supergame/roulettespin.mp3") .soundWheelStep_1("/com/greentube/slot/client/res/supergame/roulettestep.mp3") .soundSuperGameCountUp_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .wheelHighlightStepDurations_2(150, 300) .wheelValues_4(616, 359, 227, 85) .colors_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().black_0()) .fonts_2( [ GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(350), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(300), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250), ], [ GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(115), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(85), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80), GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(75), ] ) .child_1( this.defaultDynamicTextAreaSmall_0() .id_1(GT221.prototype.CURRENCY_TEXT_ID) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.BOTTOM) .position_2(20, 645) .size_2(370, 60) .fontColor_1(GT1391.prototype.set_0().white_0()) .text_1("${infotable_currency}") ); }, defaultTextAreaSmall_0: function () { return GT1239.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)).outline_2(1, GT1391.prototype.set_0().black_0()).fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultTextAreaMedium_0: function () { return GT1239.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)).outline_2(1, GT1391.prototype.set_0().black_0()).fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultTextAreaBig_0: function () { return GT1239.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)).outline_2(1, GT1391.prototype.set_0().black_0()).fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultDynamicTextAreaSmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .outline_2(1, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultDynamicTextAreaMedium_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(130)) .outline_2(1, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultDynamicTextAreaBig_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .outline_2(1, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().yellow_0()); }, defaultReel_0: function () { return GT1304.prototype.set_0().symbols_1(this.symbolImages_0()).symbolsBlurred_1(this.symbolImagesBlur_0()).stopSound_1("/com/greentube/slot/client/res/reelstop.mp3"); }, loadAll_1: function (a) { this.mainGui_0().load_1(a); this.reelsInFreeGames_0().load_1(a); this.stoppedReelsInFreeGames_0().load_1(a); this.highlightInFreeGames_0().load_1(a); this.paytable_0().load_1(a); this.gamble_0().load_1(a); this.winSounds_0().load_1(a.getResourceManager_0()); null != this.winSoundsInFreeGames_0() && this.winSoundsInFreeGames_0().load_1(a.getResourceManager_0()); this.freeGameStartScreen_0().load_1(a); this.freeGameMoreScreen_0().load_1(a); this.freeGameEndScreen_0().load_1(a); null != this.slotBackgroundInFreeGames_0() && this.slotBackgroundInFreeGames_0().load_1(a); null != this.gameLogoInFreeGames_0() && this.gameLogoInFreeGames_0().load_1(a); null != this.superGame_0() && this.superGame_0().load_1(a); this.freeGameSounds_0().load_1(a); this.baseGameMelodies_0().load_1(a.getResourceManager_0()); null != this.bigWinVisual_0() && this.bigWinVisual_0().load_1(a); a.getResourceManager_0().startLoadSound_1(GT577.prototype.MYSTERY_SOUND); }, }, "GT1256", [] ), GT582 = GT186.extend( { initialConstructor_0: function () { this.visibleArea = null; GT186.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); this.visibleArea = new GT1553(0, 0, 1280, 1024); }, initialConstructor_2: function (a, b) { this.visibleArea = null; GT186.prototype.initialConstructor_1.call(this, b); this.visibleArea = a; }, isReplayDialogModal_2: function (a, b) { return !1; }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(32))) ) .child_1( GT1186.prototype .set_0() .size_2(1496, 735) .position_2(this.getMenuX_0(), 95) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/outoftwist_background.png")) .child_1(this.defaultTextAreaBig_0().text_1("${warning}").position_2(75, 145).size_2(740, 80)) .child_1(this.defaultTextArea_0().text_1("${outoftwists}").position_2(75, 235).size_2(1350, 160)) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${buttontext_twistshop}")) .id_1(GT554.prototype.ACTION_BTNACCOUNT) .position_2(73, 430) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) .position_2(762, 430) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) .position_2(762, 430) ) ); }, defaultButton_0: function () { return GT1355.prototype.set_0().textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(24, 46, 71), GT1391.prototype.set_0().black_0()).textInactiveShadow_1(GT1391.prototype.set_0().compRGB_3(54, 80, 111)); }, defaultTextAreaBig_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(400)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(18, 55, 99)) .shadow_3(2, 2, GT1391.prototype.set_0().compRGB_3(201, 225, 255)) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultTextArea_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(310)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(240)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(18, 55, 99)) .shadow_3(2, 2, GT1391.prototype.set_0().compRGB_3(201, 225, 255)) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, containerGameMenu_2: function (a, b) { return GT898.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOG) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CONTEXTMENU_BACKGROUND) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(50)) .position_2(0, 0) .size_2(2048, 1024 + GT781.prototype.BOTTOM_INSET) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOGINNER) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/menu_background.png").position_2(this.getMenuX_0(), 95)) .child_1( GT873.prototype .set_0() .position_2(this.getMenuX_0() + 40, 217) .size_2(1407, 484) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_helpbutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_lobby_help}")) .id_1(GT307.prototype.ACTION_HELP) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(57, 27, 48), GT1391.prototype.set_0().black_0()) .position_2(this.getFirstRowX_0(), 310) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_exitbutton.png")) .tooltip_1("${alttext_leavecasinotable}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_leavecasinotable}")) .id_1(GT307.prototype.ACTION_LEAVETABLE) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(57, 27, 48), GT1391.prototype.set_0().black_0()) .position_2(this.getFirstRowX_0(), 483) ) .child_1( this.defaultButton_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_soundbutton.png") .tooltip_1("${tip_soundoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDOFF) .position_2(this.getSecondRowX_0(), 310) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_soundbutton_on.png")) .tooltip_1("${tip_soundon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDON) .position_2(this.getSecondRowX_0(), 310) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_musicbutton.png")) .tooltip_1("${tip_musicoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICOFF) .position_2(this.getSecondRowX_0(), 483) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/stargames/b_musicbutton_on.png")) .tooltip_1("${tip_musicon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICON) .position_2(this.getSecondRowX_0(), 483) ) ); }, getMenuX_0: function () { return this.visibleArea.x + Math.div(this.visibleArea.width - 1496, 2) + 2; }, getFirstRowX_0: function () { return this.getMenuX_0() + 73; }, getSecondRowX_0: function () { return this.getFirstRowX_0() + 660 + 29; }, defaultBtnTextArea_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(330)) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(20, 20, 0, 0); }, }, "GT582", [] ), GT570 = GT186.extend( { initialConstructor_0: function () { this.applet = this.visibleArea = null; this.JSONMode = 0; GT186.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); this.visibleArea = new GT1553(0, 0, 1280, 1024); }, initialConstructor_4: function (a, b, d, e) { this.applet = this.visibleArea = null; this.JSONMode = 0; GT186.prototype.initialConstructor_1.call(this, b); this.visibleArea = a; this.applet = d; this.JSONMode = e; }, isReplayDialogModal_2: function (a, b) { return !1; }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(32))) ) .child_1( GT1186.prototype .set_0() .size_2(1496, 735) .position_2(this.getMenuX_0(), 95) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/outoftwist_background.png")) .child_1(this.defaultTextAreaBig_0().text_1("${warning}").position_2(75, 145).size_2(740, 80)) .child_1(this.defaultTextArea_0().text_1("${outoftwists}").position_2(75, 235).size_2(1350, 160)) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${buttontext_twistshop}")) .id_1(GT554.prototype.ACTION_BTNACCOUNT) .position_2(73, 430) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) .position_2(762, 430) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_menubutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_closepayindialog}")) .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) .position_2(762, 430) ) ); }, defaultButton_0: function () { return GT1355.prototype.set_0().textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(24, 46, 71), GT1391.prototype.set_0().black_0()).textInactiveShadow_1(GT1391.prototype.set_0().compRGB_3(54, 80, 111)); }, defaultTextAreaBig_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(400)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(18, 55, 99)) .shadow_3(2, 2, GT1391.prototype.set_0().compRGB_3(201, 225, 255)) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, defaultTextArea_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(310)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(240)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(18, 55, 99)) .shadow_3(2, 2, GT1391.prototype.set_0().compRGB_3(201, 225, 255)) .spacing_1(50) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER); }, containerGameMenu_2: function (a, b) { return GT898.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOG) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CONTEXTMENU_BACKGROUND) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(50)) .position_2(0, 0) .size_2(2048, 1024 + GT781.prototype.BOTTOM_INSET) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOGINNER) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/menu_background.png").position_2(this.getMenuX_0(), 95)) .child_1( GT873.prototype .set_0() .position_2(this.getMenuX_0() + 40, 217) .size_2(1407, 484) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_helpbutton.png")) .tooltip_1("${alttext_lobby_help}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_lobby_help}")) .id_1(GT307.prototype.ACTION_HELP) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(57, 27, 48), GT1391.prototype.set_0().black_0()) .position_2(this.getFirstRowX_0(), 280) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_exitbutton.png")) .tooltip_1("${alttext_leavecasinotable}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_leavecasinotable}")) .id_1(GT307.prototype.ACTION_LEAVETABLE) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(57, 27, 48), GT1391.prototype.set_0().black_0()) .position_2(this.getFirstRowX_0(), 453) ) .child_1( this.defaultButton_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_soundbutton.png") .tooltip_1("${tip_soundoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDOFF) .position_2(this.getSecondRowX_0(), 280) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_soundbutton_on.png")) .tooltip_1("${tip_soundon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_sound}")) .id_1(GT307.prototype.ACTION_SOUNDON) .position_2(this.getSecondRowX_0(), 280) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_musicbutton.png")) .tooltip_1("${tip_musicoff}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICOFF) .position_2(this.getSecondRowX_0(), 453) ) .child_1( this.defaultButton_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/b_musicbutton_on.png")) .tooltip_1("${tip_musicon}") .text_1(this.defaultBtnTextArea_0().text_1("${alttext_music}")) .id_1(GT307.prototype.ACTION_MUSICON) .position_2(this.getSecondRowX_0(), 453) ) .child_1(this.responsibleGaming_0()) .child_1( GT1239.prototype .set_0() .text_1("|") .font_1(GT1441.prototype.set_0().size_1(250).bold_0().name_1(GT1393.prototype.ARIAL)) .fontColor_1(GT1391.prototype.set_0().white_0()) .position_2(763, 615) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .size_2(100, 50) ) .child_1(this.privacy_0()) .child_1( GT1239.prototype .set_0() .text_1("|") .font_1(GT1441.prototype.set_0().size_1(250).bold_0().name_1(GT1393.prototype.ARIAL)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .size_2(100, 50) .position_2(1195, 615) ) .child_1(this.AGB_0()) ); }, responsibleGaming_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_RESPONSIBLEGAMING) .position_2(420, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK0 + ":linkUrl}")) .text_1( GT1239.prototype .set_0() .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK0 + ":content}")) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_RESPONSIBLEGAMING) .position_2(420, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1("/web/Help?xpf=single&tag=responsible_gaming") .text_1( GT1239.prototype .set_0() .text_1("Gioco responsabile") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); default: return null; } }, privacy_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_PRIVACY) .position_2(853, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK1 + ":linkUrl}")) .text_1( GT1239.prototype .set_0() .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK1 + ":content}")) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_PRIVACY) .position_2(853, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1("/web/Help?xpf=single&tag=privacy") .text_1( GT1239.prototype .set_0() .text_1("Privacy") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); default: return null; } }, AGB_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_AGB) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AGB) .position_2(1295, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK2 + ":linkUrl}")) .text_1( GT1239.prototype .set_0() .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK2 + ":content}")) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_AGB) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AGB) .position_2(1295, 615) .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .tooltip_1("/web/Help?xpf=single&tag=agb") .text_1( GT1239.prototype .set_0() .text_1(this.applet.getSkinManager_0().getText_1("Condizioni generali")) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ); default: return null; } }, getMenuX_0: function () { return this.visibleArea.x + Math.div(this.visibleArea.width - 1496, 2) + 2; }, getFirstRowX_0: function () { return this.getMenuX_0() + 73; }, getSecondRowX_0: function () { return this.getFirstRowX_0() + 660 + 29; }, defaultBtnTextArea_0: function () { return GT1239.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(330)) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(20, 20, 0, 0); }, }, "GT570", [] ); GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY = GT1677.prototype.generateID_0(); GT570.prototype.ID_BUTTON_STARVEGAS_AGB = GT1677.prototype.generateID_0(); GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING = GT1677.prototype.generateID_0(); GT570.prototype.STARVEGAS_LINK0 = 2006; GT570.prototype.STARVEGAS_LINK1 = 2005; GT570.prototype.STARVEGAS_LINK2 = 2004; var GT943 = GT1412.extend( { initialConstructor_0: function () { this.scale = this.gap = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; this.decorateConsole = !1; this.applet = null; this.bottomY = this.JSONMode = 0; this.visibleArea = null; GT1412.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); this.visibleArea = new GT1553(0, 0, 1280, 1024); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.scale = this.gap = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; this.decorateConsole = !1; this.applet = null; this.bottomY = this.JSONMode = 0; this.visibleArea = null; GT1412.prototype.initialConstructor_1.call(this, e); this.applet = f; this.JSONMode = g; this.decorateConsole = k; this.gap = 10; this.gameHeight = GT1046.prototype.GAME_HEIGHT; this.consoleHeight = b < Integer.MAX_VALUE ? 166 - this.gap : a.height - this.gameHeight - this.gap - d; this.consoleWidth = Math.min_2(b, a.width) - 2 * this.gap; this.consoleX = a.x + this.gap; this.visibleArea = a; a.width > b && (this.consoleX += Math.div(a.width - b, 2)); this.scale = this.consoleHeight / 157; this.bottomY = a.height - d; }, console_2: function (a, b) { return this.decorateConsole ? a .remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .remove_1(GT834.prototype.ID_FIELD_CREDIT) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS) .position_2(Math.div(this.consoleWidth, 2) - Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(112 * this.scale) + this.gameHeight) .size_2(Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(40 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(150 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(130 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(110 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(103 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(70 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 1, 5) .breakLines_1(!1) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .position_2(Math.div(this.consoleWidth, 2) - Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(112 * this.scale) + this.gameHeight) .size_2(Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(40 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .insets_4(0, 0, 0, 0) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .soundCountEnd_1("/com/greentube/slot/client/res/novo/wincountstop.mp3") ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_BALANCE) .position_2(Math.div(this.consoleWidth, 2) + Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(112 * this.scale) + this.gameHeight) .size_2(Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(40 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .insets_4(0, 0, 0, 0) ) .child_1( GT1186.prototype .set_0() .child_1( this.defaultValueFieldSmall_0() .id_1(GT943.prototype.ID_TEXT_CREDIT) .text_1("${console_label_credit}%20") .position_2( Integer.truncate_1(Math.div(this.consoleWidth, 2) - Math.div(this.statusFieldWidth_0(), 4) - Math.div(this.statusFieldWidth_0(), 4)), Integer.truncate_1(112 * this.scale) + this.gameHeight ) .size_2(Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(40 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.RIGHT) .insets_4(0, 0, 0, 0) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT943.prototype.ID_TEXT_BALANCE) .text_1("${alttext_lobby_account}:%20") .position_2( Integer.truncate_1(Math.div(this.consoleWidth, 2) + Math.div(this.statusFieldWidth_0(), 4) - Math.div(this.statusFieldWidth_0(), 4)), Integer.truncate_1(112 * this.scale) + this.gameHeight ) .size_2(Math.div(this.statusFieldWidth_0(), 4), Integer.truncate_1(40 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.RIGHT) .insets_4(0, 0, 0, 0) ) ) : a; }, statusFieldWidth_0: function () { return this.consoleWidth - 2 * (this.buttonBigWidth_0() + this.gap); }, buttonBigWidth_0: function () { return 2 * this.buttonWidth_0() + this.gap; }, buttonWidth_0: function () { return Integer.truncate_1(170 * this.scale); }, defaultValueFieldSmall_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(150 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(130 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(110 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(103 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(70 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 1, 5) .breakLines_1(!1); }, slotBackground_2: function (a, b) { return null != b.platformLogo_0() ? a : GT1392.prototype.set_0().imageFile_1("game/game_sv.jpg").position_2(0, 0); }, slotBackgroundInFreeGames_2: function (a, b) { return null == a ? null : null != b.platformLogo_0() ? a : GT1392.prototype.set_0().imageFile_1("game/game_feature_sv.jpg").position_2(0, 0); }, mainGui_2: function (a, b) { return a .modify_2( GT1618.prototype.BACKGROUND_DECORATING_LOGO_CONTAINER, GT1186.prototype .set_0() .position_2(0, 0) .removeChildren_0() .child_1(GT1188.prototype.set_0().id_1(GT943.prototype.ID_BOTTOMINSETAREA).color_1(GT1391.prototype.set_0().black_0()).position_2(0, this.bottomY).size_2(2048, 50)) .child_1( GT1186.prototype .set_0() .position_2(b.getInnerMainGuiX_0(), 0) .child_1( GT1239.prototype .set_0() .id_1(GT943.prototype.ID_ENTITYPARTICIPATION) .font_1(GT1441.prototype.set_0().size_1(GT943.prototype.BOTTOM_LINE_FONT_SIZE).name_1(GT1393.prototype.ARIAL)) .position_2(93, this.bottomY) .size_2(650, 30) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()) ) .child_1(this.middle_0()) .child_1( GT1239.prototype .set_0() .id_1(GT943.prototype.ID_ENTITYSESSION) .font_1(GT1441.prototype.set_0().size_1(GT943.prototype.BOTTOM_LINE_FONT_SIZE).name_1(GT1393.prototype.ARIAL)) .position_2(935, this.bottomY) .size_2(500, 30) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()) ) .child_1( GT1186.prototype .set_0() .position_2(65, 0) .size_2(450, 150) .id_1(GT943.prototype.ID_CNTLOGO) .child_1(GT1392.prototype.set_0().id_1(GT943.prototype.ID_BUTTON_BACKGROUND).imageFile_1("/com/greentube/slot/client/res/logo_background.png").position_2(0, 0)) .child_1(this.first_0()) .child_1(this.second_0()) .child_1(this.third_0()) ) ) ) .child_1( GT1186.prototype .set_0() .hide_1(!0) .id_1(GT307.prototype.DIALOG_BOX) .position_2(0, 0) .child_1( GT873.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_OPEN_LINK_CANCEL) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(50)) .position_2(0, 0) .size_2(2048, 1024 + GT781.prototype.BOTTOM_INSET) ) ) .child_1( GT1186.prototype .set_0() .position_2(this.getMenuX_0(), 300) .child_1(GT873.prototype.set_0().position_2(43, 126).size_2(761, 233)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/menu_background_small.png")) .child_1( GT1239.prototype .set_0() .position_2(5, 110) .size_2(GT943.prototype.MENU_WIDTH - 10, 300) .insets_4(50, 50, 30, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .text_1("${openLink}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().white_0()) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .id_1(GT943.prototype.ID_BUTTON_OPEN_LINK_OK) .position_2(60, 260) .text_1( GT1239.prototype .set_0() .text_1("OK") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ) .textInactiveColor_2(GT1391.prototype.set_0().gray_0(), GT1391.prototype.set_0().black_0()) ) .child_1( GT1355.prototype .set_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/mobile/starvegas/app/b_menubutton.jpg") .id_1(GT943.prototype.ID_BUTTON_OPEN_LINK_CANCEL) .position_2(440, 260) .text_1( GT1239.prototype .set_0() .text_1("${alttext_closepayindialog}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(0, 0, 0, 0) ) .textInactiveColor_2(GT1391.prototype.set_0().gray_0(), GT1391.prototype.set_0().black_0()) ) ) ); }, middle_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1239.prototype .set_0() .id_1(GT943.prototype.ID_ENTITYCONCESSION) .text_1(this.applet.getSkinManager_0().getText_1("${JSON:3002:content}")) .font_1(GT1441.prototype.set_0().size_1(GT943.prototype.BOTTOM_LINE_FONT_SIZE).name_1(GT1393.prototype.ARIAL)) .position_2(520, this.bottomY) .size_2(500, 30) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()); case GT677.prototype.JSONMODE_LOCAL: return GT1239.prototype .set_0() .id_1(GT943.prototype.ID_ENTITYCONCESSION) .text_1("Concessione N. 15231") .font_1(GT1441.prototype.set_0().size_1(GT943.prototype.BOTTOM_LINE_FONT_SIZE).name_1(GT1393.prototype.ARIAL)) .position_2(520, this.bottomY) .size_2(500, 30) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()); default: return null; } }, first_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_FIRST) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AAMS) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE0 + ":linkUrl}")) .imageFile_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE0 + ":content}")) .states_1(this.overrideAllStates_0()) .position_2(20, 17); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_FIRST) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AAMS) .imageFile_1("/com/greentube/slot/client/res/starvegas/aams_01.png") .states_1(this.overrideAllStates_0()) .tooltip_1("http://www.aams.it/") .position_2(20, 17); default: return null; } }, overrideAllStates_0: function () { return GT1021.prototype.set_0().state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.MOUSEOVER).state_2(0, GT1236.prototype.PRESSED); }, second_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_SECOND) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AAMSTWO) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE1 + ":linkUrl}")) .imageFile_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE1 + ":content}")) .states_1(this.overrideAllStates_0()) .position_2(150, 18); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_SECOND) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AAMSTWO) .tooltip_1("http://www.aams.it/") .imageFile_1("/com/greentube/slot/client/res/starvegas/aams_02.png") .states_1(this.overrideAllStates_0()) .position_2(150, 18); default: return null; } }, third_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_THIRD) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_EIGHTEENPLUS) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE2 + ":linkUrl}")) .imageFile_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE2 + ":content}")) .states_1(this.overrideAllStates_0()) .position_2(322, 15); case GT677.prototype.JSONMODE_LOCAL: return GT1355.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_STARVEGAS_THIRD) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_EIGHTEENPLUS) .tooltip_1("/web/Help?xpf=single&tag=responsible_gaming") .imageFile_1("/com/greentube/slot/client/res/starvegas/18plus.png") .states_1(this.overrideAllStates_0()) .position_2(322, 15); default: return null; } }, getMenuX_0: function () { return this.visibleArea.x + Math.div(this.visibleArea.width - GT943.prototype.MENU_WIDTH, 2) + 2; }, loadResources_1: function (a) { GT1412.prototype.loadResources_1.call(this, a); this.JSONMode == GT677.prototype.JSONMODE_APPLET && (a.getResourceManager_0().startLoadImage_4(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE0 + ":content}"), 1, 1, !1), a.getResourceManager_0().startLoadImage_4(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE1 + ":content}"), 1, 1, !1), a.getResourceManager_0().startLoadImage_4(this.applet.getSkinManager_0().getText_1("${JSON:" + GT943.prototype.STARVEGAS_MOBILE2 + ":content}"), 1, 1, !1)); }, }, "GT943", [] ); GT943.prototype.STARVEGAS_MOBILE0 = 1001; GT943.prototype.STARVEGAS_MOBILE1 = 1002; GT943.prototype.STARVEGAS_MOBILE2 = 1003; GT943.prototype.ID_BUTTON_BACKGROUND = GT1677.prototype.generateID_0(); GT943.prototype.ID_BUTTON_STARVEGAS_FIRST = GT1677.prototype.generateID_0(); GT943.prototype.ID_BUTTON_STARVEGAS_SECOND = GT1677.prototype.generateID_0(); GT943.prototype.ID_BUTTON_STARVEGAS_THIRD = GT1677.prototype.generateID_0(); GT943.prototype.ID_TEXT_CREDIT = GT1560.prototype.generateID_0(); GT943.prototype.ID_TEXT_BALANCE = GT1560.prototype.generateID_0(); GT943.prototype.ID_ENTITYSESSION = GT1560.prototype.generateID_0(); GT943.prototype.ID_ENTITYPARTICIPATION = GT1560.prototype.generateID_0(); GT943.prototype.ID_ENTITYCONCESSION = GT1560.prototype.generateID_0(); GT943.prototype.ID_BOTTOMINSETAREA = GT1560.prototype.generateID_0(); GT943.prototype.ID_CNTLOGO = GT1560.prototype.generateID_0(); GT943.prototype.ID_BUTTON_OPEN_LINK_OK = GT1560.prototype.generateID_0(); GT943.prototype.ID_BUTTON_OPEN_LINK_CANCEL = GT1560.prototype.generateID_0(); GT943.prototype.BOTTOM_LINE_FONT_SIZE = 145; GT943.prototype.MENU_WIDTH = 850; var GT384 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .position_2(384, 830) .size_2(1280, 230) .winText_1("${console_wintext}") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/changebet.mp3") .soundDecideGamble_3("/com/greentube/slot/client/res/decidegamble.mp3", 20, 2460) .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .soundAutoPlayStart_1("/com/greentube/slot/client/res/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/skyvegas/console_bg.png")) .child_1( GT1186.prototype .set_0() .position_2(17, 11) .size_2(1244, 38) .child_1(GT1025.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT).imageFile_1("/com/greentube/slot/client/res/info_highlight_freegames.png").insets_4(15, 15, 15, 15).size_2(1244, 38)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(3, 3, 0, 2) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(3, 3, 0, 2) .breakLines_1(!1) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .position_2(900, 7) .size_2(113, 77) .insets_4(0, 0, 0, 0) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(190)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(130)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) ) ) .child_1(this.defaultConsoleTextAreaSmallLabel_0().position_2(8, 66).size_2(175, 53).text_1("STAKE/LINE")) .child_1(this.defaultConsoleTextAreaSmallLabel_0().position_2(217, 66).size_2(130, 53).text_1("LINES")) .child_1(this.defaultConsoleTextAreaSmallLabel_0().position_2(382, 66).size_2(180, 53).text_1("STAKE")) .child_1(this.defaultConsoleTextAreaSmallLabel_0().position_2(724, 66).size_2(165, 53).text_1("BALANCE")) .child_1( this.defaultConsoleValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .position_2(739, 123) .size_2(138, 42) .duration_1(3e3) .hAlign_1(GT1488.prototype.RIGHT) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1(this.defaultConsoleValueField_0().id_1(GT834.prototype.ID_FIELD_LINES).position_2(238, 123).size_2(88, 42)) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(337, 107) .size_2(37, 60) .buttonUp_1(GT613.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP).imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_plus.png").position_2(0, 0)) .buttonDown_1(GT613.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN).imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_minus.png").position_2(0, 32)) ) .child_1(this.defaultConsoleValueField_0().id_1(GT834.prototype.ID_FIELD_BETPERLINE).position_2(27, 123).size_2(138, 42)) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(176, 107) .size_2(37, 60) .buttonUp_1(GT613.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP).imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_plus.png").position_2(0, 0)) .buttonDown_1(GT613.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN).imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_minus.png").position_2(0, 32)) ) .child_1(this.defaultConsoleValueField_0().id_1(GT834.prototype.ID_FIELD_TOTALBET).position_2(402, 123).size_2(138, 42)) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(1100, 59) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_paytable.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("PAYTABLE")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1100, 115) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_paytable.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("MORE INFO")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT133.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(550, 55) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_spin.png") .animation_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/skyvegas/b_animation.png").tiling_2(1, 22)) .text_1(this.defaultConsoleDynamicTextAreaButtonSpin_0().text_1("SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT133.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(550, 55) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_spin.png") .animation_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/skyvegas/b_animation.png").tiling_2(1, 22)) .text_1(this.defaultConsoleDynamicTextAreaButtonSpin_0().text_1("SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT133.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(550, 55) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_spin.png") .text_1(this.defaultConsoleDynamicTextAreaButtonSpin_0().text_1("SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT133.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(550, 55) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_spin.png") .text_1(this.defaultConsoleDynamicTextAreaButtonSpin_0().text_1("SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .position_2(886, 59) .size_2(210, 115) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/skyvegas/field_default.png").position_2(7, 57).size_2(152, 58)) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(10, 0) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_autospin.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("AUTO SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(10, 0) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_autospin.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("STOP SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .position_2(886, 59) .size_2(210, 115) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .position_2(163, 48) .size_2(37, 60) .buttonUp_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_plus.png").position_2(0, 0)) .buttonDown_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/skyvegas/b_arrow_minus.png").position_2(0, 32)) ) .child_1( this.defaultConsoleValueField_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .background_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/skyvegas/field_default.png")) .insets_4(9, 11, 10, 11) .position_2(7, 57) .size_2(152, 58) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .position_2(10, 0) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_autospin.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("AUTO SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .position_2(10, 0) .imageFile_1("/com/greentube/slot/client/res/skyvegas/b_autospin.png") .text_1(this.defaultConsoleDynamicTextAreaButton_0().text_1("STOP SPIN")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(150, 150, 150), GT1391.prototype.set_0().compRGB_3(120, 120, 120)) ) ); }, defaultConsoleValueField_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(175)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(125)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(4, 4, 2, 2) .breakLines_1(!1); }, defaultConsoleDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(125)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(3, GT1391.prototype.set_0().compRGB_3(50, 50, 50)) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, defaultConsoleDynamicTextAreaButtonSpin_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(3, GT1391.prototype.set_0().compRGB_3(50, 50, 50)) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, defaultConsoleTextAreaSmallLabel_0: function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(3, GT1391.prototype.set_0().compRGB_3(50, 50, 50)) .spacing_1(20) .insets_4(0, 0, 0, 0); }, }, "GT384", [] ), GT156 = GT384.extend( { initialConstructor_0: function () { GT384.prototype.initialConstructor_0.call(this); }, console_2: function (a, b) { return GT384.prototype.console_2.call(this, a, b).position_2(384, 810); }, }, "GT156", [] ), GT1571 = Class.extend( { initialConstructor_0: function () { this.creditsMultiplier = this.gameModeToIndex = this.gameModeMapping = this.betsperline = this.betMultiplier = this.playlines = this.reelsets = this.winlines = this.name = this.filter = null; this.maxgambleabsolutewin = this.maxgamblewin = this.maxgamblesteps = 0; this.collectAtEndOfRound = !1; this.jokers = this.symbolWins = null; this.autoPlayCountDefaultValue = this.autoPlayCountMax = 0; this.jackpotContribution = this.theoreticalRTP = null; this.showJackpotContribution = !1; this.percentagePayoutAsGames = 0; this.casinoState = this.superGameWheel = null; this.minimumRoundDuration = 0; this.usedCreditsMultiplier = this.usedBetMultiplier = this.usedPlayLines = this.playLinesOverride = this.pluginStaticInfo = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.creditsMultiplier = this.gameModeToIndex = this.gameModeMapping = this.betsperline = this.betMultiplier = this.playlines = this.reelsets = this.winlines = this.name = this.filter = null; this.maxgambleabsolutewin = this.maxgamblewin = this.maxgamblesteps = 0; this.collectAtEndOfRound = !1; this.jokers = this.symbolWins = null; this.autoPlayCountDefaultValue = this.autoPlayCountMax = 0; this.jackpotContribution = this.theoreticalRTP = null; this.showJackpotContribution = !1; this.percentagePayoutAsGames = 0; this.casinoState = this.superGameWheel = null; this.minimumRoundDuration = 0; this.usedCreditsMultiplier = this.usedBetMultiplier = this.usedPlayLines = this.playLinesOverride = this.pluginStaticInfo = null; this.casinoState = a; this.reelsets = [].createArray(0); this.minimumRoundDuration = this.percentagePayoutAsGames = 0; this.jokers = [].createArray(0); this.jackpotContribution = this.pluginStaticInfo = null; }, setFilter_1: function (a) { this.filter = a; }, getFilter_0: function () { return this.filter; }, getName_0: function () { return this.name; }, setName_1: function (a) { this.name = a; }, getWinLines_0: function () { var a; a = null != this.filter ? this.filter.getWinLines_1(this.winlines) : this.winlines; return null == a ? null : a.toArray_0(); }, setWinLines_1: function (a) { this.winlines = a; }, getMaxcolumns_0: function () { return this.winlines.getMaxColumns_0(); }, setMaxRows_1: function (a) { this.winlines.setMaxRows_1(a); }, getMaxrows_0: function () { return this.winlines.getMaxRows_0(); }, getNumberOfReelSets_0: function () { return null != this.filter ? this.filter.getNumberOfReelSets_1(this.reelsets.length) : this.reelsets.length; }, getReelSet_1: function (a) { return null != this.filter ? this.filter.getReelSet_2(a, this.reelsets[a]) : this.reelsets[a]; }, setReelSets_1: function (a) { this.reelsets = [].createArray(a.length); for (var b = 0; b < a.length; b++) this.reelsets[b] = new GT1664(a[b]); }, getBetMultipliers_0: function () { if (null != this.filter) { var a = this.filter.getBetMultipliers_1(this.usedBetMultiplier); return null == a ? this.getPlayLines_0() : a; } return null == this.usedBetMultiplier ? this.getPlayLines_0() : this.usedBetMultiplier; }, setBetMultipliers_1: function (a) { this.betMultiplier = a; this.recalculatePlayLines_0(); }, getCreditsMultipliers_0: function () { if (null != this.filter) { var a = this.filter.getCreditsMultipliers_1(this.usedCreditsMultiplier); return null == a ? this.getPlayLines_0() : a; } return null == this.usedCreditsMultiplier ? this.getPlayLines_0() : this.usedCreditsMultiplier; }, setCreditsMultipliers_1: function (a) { this.creditsMultiplier = a; this.recalculatePlayLines_0(); }, getPlayLines_0: function () { return null != this.filter ? this.filter.getPlayLines_1(this.usedPlayLines) : this.usedPlayLines; }, setPlayLines_1: function (a) { this.playlines = a; this.recalculatePlayLines_0(); }, setGameModeMapping_1: function (a) { this.gameModeMapping = a; if (null == a) this.gameModeToIndex = null; else { for (var b = new java_util_JavaScriptVector(), d = 0; d < a.size_0(); d++) { var e = a.get_1(d); b.size_0() <= e && b.setSize_1(e + 1); b.add_2(e, new Integer(d)); } for (d = 0; d < b.size_0(); d++) null == b.get_1(d) && b.set_2(d, new Integer(-1)); this.gameModeToIndex = GT1595.prototype.fromVector_1(b); } }, getGameModes_0: function () { var a = null; if (null == this.gameModeMapping) { for (var a = new java_util_JavaScriptVector(), b = 0; b < this.getPlayLines_0().size_0(); ++b) a.addElement_1(new Integer(b)); a = GT1595.prototype.fromVector_1(a); } else a = this.gameModeMapping; return null != this.filter ? this.filter.getGameModes_1(a) : a; }, getLinesForGameMode_1: function (a) { if (null != this.gameModeToIndex) { var b = this.gameModeToIndex.get_1(a); return -1 == b ? (GT1650.prototype.assertFailed_1("Mode not supported (Lines) " + a), 1) : this.playlines.get_1(b); } return this.playlines.get_1(a); }, getBetMultiplierForGameMode_1: function (a) { if (null != this.betMultiplier) { if (null != this.gameModeToIndex) { var b = this.gameModeToIndex.get_1(a); return -1 == b ? (GT1650.prototype.assertFailed_1("Mode not supported (BetMultiplier) " + a), 1) : this.betMultiplier.get_1(b); } return this.betMultiplier.get_1(a); } return this.getLinesForGameMode_1(a); }, getCreditsMultiplierForGameMode_1: function (a) { if (null != this.creditsMultiplier) { if (null != this.gameModeToIndex) { var b = this.gameModeToIndex.get_1(a); return -1 == b ? (GT1650.prototype.assertFailed_1("Mode not supported " + a), 1) : this.creditsMultiplier.get_1(b); } return this.creditsMultiplier.get_1(a); } return this.getLinesForGameMode_1(a); }, findGameModeForLine_1: function (a) { for (var b = 0; b < this.playlines.size_0(); b++) if (this.playlines.get_1(b) == a) return null == this.gameModeMapping ? b : this.gameModeMapping.get_1(b); return -1; }, setPlayLinesOverride_1: function (a) { this.playLinesOverride = a; this.recalculatePlayLines_0(); }, recalculatePlayLines_0: function () { if (null == this.playLinesOverride) (this.usedPlayLines = this.playlines), (this.usedBetMultiplier = this.betMultiplier), (this.usedCreditsMultiplier = this.creditsMultiplier); else if (null != this.playlines) { for (var a = new java_util_JavaScriptVector(), b = new java_util_JavaScriptVector(), d = new java_util_JavaScriptVector(), e = 0; e < this.playLinesOverride.size_0(); e++) for (var f = this.playLinesOverride.get_1(e), g = 0; g < this.playlines.size_0(); g++) if (f == this.playlines.get_1(g)) { a.add_1(new Integer(f)); null != this.betMultiplier && b.add_1(new Integer(this.betMultiplier.get_1(e))); null != this.creditsMultiplier && d.add_1(new Integer(this.creditsMultiplier.get_1(e))); break; } this.usedPlayLines = GT1595.prototype.fromVector_1(a); null != this.betMultiplier && (this.usedBetMultiplier = GT1595.prototype.fromVector_1(b)); null != this.creditsMultiplier && (this.usedCreditsMultiplier = GT1595.prototype.fromVector_1(d)); } }, getBetsPerLine_0: function () { return null != this.filter ? this.filter.getBetsPerLine_1(this.betsperline) : this.betsperline; }, getBaseBets_0: function () { if (null != this.filter) { var a = this.filter.getBaseBets_1(this.betsperline); return a != this.betsperline ? a : this.filter.getBetsPerLine_1(this.betsperline); } return this.betsperline; }, setBaseBets_1: function (a) { this.betsperline = a; }, getMaxGambleSteps_0: function () { return this.maxgamblesteps; }, setMaxGambleSteps_1: function (a) { this.maxgamblesteps = a; }, getMaxGambleWin_0: function () { return this.maxgamblewin; }, setMaxGambleWin_1: function (a) { this.maxgamblewin = a; }, getMaxGambleAbsoluteWin_0: function () { return this.maxgambleabsolutewin; }, setMaxGambleAbsoluteWin_1: function (a) { this.maxgambleabsolutewin = a; }, isCollectAtEndOfRound_0: function () { return this.collectAtEndOfRound; }, setCollectAtEndOfRound_1: function (a) { this.collectAtEndOfRound = a; }, hasGambleWinLimit_0: function () { return 0 <= this.maxgambleabsolutewin ? this.maxgambleabsolutewin < Integer.MAX_VALUE : this.maxgamblewin < Integer.MAX_VALUE; }, getSymbolWins_0: function () { return null != this.getPaytableEntries_0() ? this.getPaytableEntries_0().toArray_0() : null; }, getPaytableEntries_0: function () { return null != this.filter ? this.filter.getPaytableEntries_1(this.symbolWins) : this.symbolWins; }, setPaytableEntries_1: function (a) { this.symbolWins = a; }, setJokers_1: function (a) { this.jokers = a; }, getJokers_0: function () { for (var a = [].createArray(this.jokers.length), b = 0; b < this.jokers.length; b++) a[b] = this.jokers[b]; return a; }, hasJokers_0: function () { return 0 < this.jokers.length; }, getTheoreticalRTP_0: function () { return this.theoreticalRTP; }, setTheoreticalRTP_1: function (a) { this.theoreticalRTP = a; }, getJackpotContribution_0: function () { return this.jackpotContribution; }, setJackpotContribution_1: function (a) { this.jackpotContribution = a; }, isShowJackpotContribution_0: function () { return this.showJackpotContribution; }, setShowJackpotContribution_1: function (a) { this.showJackpotContribution = a; }, getPercentagePayoutAsGames_0: function () { return this.percentagePayoutAsGames; }, setPercentagePayoutAsGames_1: function (a) { this.percentagePayoutAsGames = a; }, getSuperGameWheel_0: function () { for (var a = [].createArray(this.superGameWheel.length).init(0), b = 0; b < this.superGameWheel.length; b++) a[b] = this.superGameWheel[b]; return a; }, setSuperGameWheel_1: function (a) { this.superGameWheel = a; }, getMinTotalBet_0: function () { var a = this.getBetMultipliers_0(), b = this.getBaseBets_0(); if (null == b || null == a) return this.casinoState.getMinTotalBet_0(); for (var d = Integer.MAX_VALUE, e = 0; e < a.size_0(); e++) for (var f = 0; f < b.size_0(); f++) { var g = a.get_1(e) * b.get_1(f); g >= this.casinoState.getMinTotalBet_0() && g < d && (d = g); } return d; }, getMinimumRoundDuration_0: function () { return this.minimumRoundDuration; }, setMinimumRoundDuration_1: function (a) { this.minimumRoundDuration = a; }, getAutoPlayCountMax_0: function () { return this.autoPlayCountMax; }, setAutoPlayCountMax_1: function (a) { this.autoPlayCountMax = a; }, getAutoPlayCountDefaultValue_0: function () { return 0 >= this.autoPlayCountDefaultValue ? this.autoPlayCountMax : this.autoPlayCountDefaultValue; }, setAutoPlayCountDefaultValue_1: function (a) { this.autoPlayCountDefaultValue = a; }, setPluginStaticInfo_1: function (a) { this.pluginStaticInfo = a; }, getPluginStaticInfo_0: function () { return null != this.filter ? this.filter.getPluginStaticInfo_1(this.pluginStaticInfo) : this.pluginStaticInfo; }, }, "GT1571", [] ), GT1308 = Class.extend( { initialConstructor_0: function () {}, getWinLines_1: function (a) { return a; }, getNumberOfReelSets_1: function (a) { return a; }, getReelSet_2: function (a, b) { return b; }, getBetMultipliers_1: function (a) { return a; }, getCreditsMultipliers_1: function (a) { return a; }, getPlayLines_1: function (a) { return a; }, getBetsPerLine_1: function (a) { return a; }, getGameModes_1: function (a) { return a; }, getBaseBets_1: function (a) { return a; }, getPaytableEntries_1: function (a) { return a; }, getPluginStaticInfo_1: function (a) { return a; }, }, "GT1308", [] ), GT1354 = Class.extend( { initialConstructor_0: function () { this.id = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.id = 0; this.id = a; }, getId_0: function () { return this.id; }, toString: function () { return "SlotEvent[" + this.id + "]"; }, }, "GT1354", [] ); GT1354.prototype.STARTSPIN = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAY = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAYSETTINGS = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOSTOP = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAY_DONE = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOSTOP_DONE = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAYMETER_INCREASE = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAYMETER_DECREASE = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAYMETER_RESET = GT1677.prototype.generateID_0(); GT1354.prototype.GAMEMODE = GT1677.prototype.generateID_0(); GT1354.prototype.NUMLINES = GT1677.prototype.generateID_0(); GT1354.prototype.BASEBET = GT1677.prototype.generateID_0(); GT1354.prototype.BETPERLINE = GT1354.prototype.BASEBET; GT1354.prototype.PAYTABLE = GT1677.prototype.generateID_0(); GT1354.prototype.PAYTABLE_PREVIOUS = GT1677.prototype.generateID_0(); GT1354.prototype.PAYTABLE_NEXT = GT1677.prototype.generateID_0(); GT1354.prototype.PAYTABLE_VISIBILITY = GT1677.prototype.generateID_0(); GT1354.prototype.COLLECT = GT1677.prototype.generateID_0(); GT1354.prototype.COLLECT_CONFIRM = GT1677.prototype.generateID_0(); GT1354.prototype.COLLECT_HANDPAY = GT1677.prototype.generateID_0(); GT1354.prototype.GAMBLE = GT1677.prototype.generateID_0(); GT1354.prototype.GAMBLE_BLACK = GT1677.prototype.generateID_0(); GT1354.prototype.GAMBLE_RED = GT1677.prototype.generateID_0(); GT1354.prototype.HALF_COLLECT = GT1677.prototype.generateID_0(); GT1354.prototype.VISUALIZATIONSTEP = GT1677.prototype.generateID_0(); GT1354.prototype.USERSELECT = GT1677.prototype.generateID_0(); GT1354.prototype.MODAL_DIALOG_OPENED = GT1677.prototype.generateID_0(); GT1354.prototype.MODAL_DIALOG_CLOSED = GT1677.prototype.generateID_0(); GT1354.prototype.JACKPOT_FACTOR_UPDATED = GT1677.prototype.generateID_0(); GT1354.prototype.PLAYER_ATTRIBUTES_CHANGED = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAY_LIMIT = GT1677.prototype.generateID_0(); GT1354.prototype.AUTOPLAY_COUNT = GT1677.prototype.generateID_0(); GT1354.prototype.WRAPPER = GT1677.prototype.generateID_0(); GT1354.prototype.PAYOUT = GT1677.prototype.generateID_0(); GT1354.prototype.PAYOUT_FINISHED = GT1677.prototype.generateID_0(); GT1354.prototype.GAME_SELECT = GT1677.prototype.generateID_0(); GT1354.prototype.SPECIALWINVISUALIZATION_READY = GT1677.prototype.generateID_0(); GT1354.prototype.NOTIFY_JACKPOT = GT1677.prototype.generateID_0(); GT1354.prototype.NOTIFY_SESSIONTICKETS_UPDATED = GT1677.prototype.generateID_0(); GT1354.prototype.START_REPLAY = GT1677.prototype.generateID_0(); GT1354.prototype.PLAYLINES_UPDATED = GT1677.prototype.generateID_0(); GT1354.prototype.OVERRIDE_MAXBET = GT1677.prototype.generateID_0(); GT1354.prototype.IGNORE_OVERRIDE_MAXBET = GT1677.prototype.generateID_0(); GT1354.prototype.OVERRIDE_MINBET = GT1677.prototype.generateID_0(); GT1354.prototype.IGNORE_OVERRIDE_MINBET = GT1677.prototype.generateID_0(); GT1354.prototype.FLIP_SCREEN = GT1677.prototype.generateID_0(); GT1354.prototype.CONNECTION_LOST = GT1677.prototype.generateID_0(); GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE = GT1677.prototype.generateID_0(); GT1354.prototype.REQUEST_LEAVEGAME = GT1677.prototype.generateID_0(); var GT738 = GT1354.extend( { initialConstructor_0: function () { this.state = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.state = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.state = b; }, initialConstructor_1: function (a) { GT738.prototype.initialConstructor_2.call(this, GT1354.prototype.AUTOPLAY_DONE, a); }, getState_0: function () { return this.state; }, isDefaultStartSound_0: function () { return this.state == GT1658.prototype.AUTOPLAY_DEFAULT; }, isSilent_0: function () { return this.state == GT1658.prototype.AUTOPLAY_SILENT; }, }, "GT738", [] ), GT739 = GT1354.extend( { initialConstructor_0: function () { this.state = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.state = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.state = b; }, initialConstructor_1: function (a) { GT739.prototype.initialConstructor_2.call(this, GT1354.prototype.AUTOSTOP_DONE, a); }, getState_0: function () { return this.state; }, isDefaultStopSound_0: function () { return this.state == GT1658.prototype.AUTOSTOP_DEFAULT; }, isSilent_0: function () { return this.state == GT1658.prototype.AUTOSTOP_SILENT; }, isStopSoundForced_0: function () { return this.state == GT1658.prototype.AUTOSTOP_FORCED; }, isStopSoundFeatureScreen_0: function () { return this.state == GT1658.prototype.AUTOSTOP_FEATURE_SCREEN; }, }, "GT739", [] ), GT851 = GT1354.extend( { initialConstructor_0: function () { this.betPerLine = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.betPerLine = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.betPerLine = b; this.silentChange = d; }, getBetPerLine_0: function () { return this.betPerLine; }, isSilentChange_0: function () { return this.silentChange; }, }, "GT851", [] ), GT370 = GT1354.extend( { initialConstructor_0: function () { this.numPlays = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.numPlays = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.numPlays = b; }, getNumberOfPlays_0: function () { return this.numPlays; }, }, "GT370", [] ), GT773 = GT1354.extend( { initialConstructor_0: function () { this.numLines = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.numLines = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.numLines = b; this.silentChange = d; }, initialConstructor_2: function (a, b) { GT773.prototype.initialConstructor_3.call(this, a, b, !1); }, getNumberOfLines_0: function () { return this.numLines; }, isSilentChange_0: function () { return this.silentChange; }, }, "GT773", [] ), GT376 = GT1354.extend( { initialConstructor_0: function () { this.consoleState = null; this.active = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.consoleState = null; this.active = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.consoleState = b; this.active = d; }, initialConstructor_2: function (a, b) { GT376.prototype.initialConstructor_3.call(this, GT376.prototype.CONSOLESTATE_CHANGED, a, b); }, getConsoleState_0: function () { return this.consoleState; }, isActive_0: function () { return this.active; }, }, "GT376", [] ); GT376.prototype.CONSOLESTATE_CHANGED = GT1560.prototype.generateID_0(); var GT682 = GT1354.extend( { initialConstructor_0: function () { this.keepDialogsOpen = !1; this.reason = null; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.keepDialogsOpen = !1; this.reason = null; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE); this.keepDialogsOpen = b; this.reason = a; }, initialConstructor_1: function (a) { this.keepDialogsOpen = !1; this.reason = null; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE); this.keepDialogsOpen = !1; this.reason = a; }, isKeepDialogsOpen_0: function () { return this.keepDialogsOpen; }, getReason_0: function () { return this.reason; }, }, "GT682", [] ), GT1101 = GT1354.extend( { initialConstructor_0: function () { this.errorDescription = null; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.errorDescription = null; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.WRAPPER); this.errorDescription = a; }, getErrorDescription_0: function () { return this.errorDescription; }, }, "GT1101", [] ), GT1037 = GT1354.extend( { initialConstructor_0: function () { this.userChoice = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.userChoice = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.userChoice = b; }, getUserChoice_0: function () { return this.userChoice; }, }, "GT1037", [] ), GT937 = GT1354.extend( { initialConstructor_0: function () { this.gameMode = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.gameMode = 0; this.silentChange = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.gameMode = b; this.silentChange = d; }, initialConstructor_2: function (a, b) { GT937.prototype.initialConstructor_3.call(this, a, b, !1); }, initialConstructor_1: function (a) { GT937.prototype.initialConstructor_2.call(this, GT1354.prototype.GAMEMODE, a); }, getGameMode_0: function () { return this.gameMode; }, isSilentChange_0: function () { return this.silentChange; }, }, "GT937", [] ), GT984 = GT1354.extend( { initialConstructor_0: function () { this.gesture = null; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gesture = null; GT1354.prototype.initialConstructor_1.call(this, GT984.prototype.ID); this.gesture = a; }, getGesture_0: function () { return this.gesture; }, }, "GT984", [] ); GT984.prototype.ID = GT1677.prototype.generateID_0(); var GT349 = GT1354.extend( { initialConstructor_0: function () { this.ignoreOverrideMaxbet = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.ignoreOverrideMaxbet = !1; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.IGNORE_OVERRIDE_MAXBET); this.ignoreOverrideMaxbet = a; }, getIgnoreOverrideMaxBet_0: function () { return this.ignoreOverrideMaxbet; }, }, "GT349", [] ), GT350 = GT1354.extend( { initialConstructor_0: function () { this.ignoreOverrideMinbet = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.ignoreOverrideMinbet = !1; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.IGNORE_OVERRIDE_MINBET); this.ignoreOverrideMinbet = a; }, getIgnoreOverrideMinBet_0: function () { return this.ignoreOverrideMinbet; }, }, "GT350", [] ), GT426 = GT1354.extend( { initialConstructor_0: function () { this.modalDialogId = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.modalDialogId = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.modalDialogId = b; }, getModalDialogId_0: function () { return this.modalDialogId; }, getPayInDialogId_0: function () { return GT307.prototype.ID_PAYINDIALOG; }, getReplayDialogId_0: function () { return GT307.prototype.ID_REPLAYDIALOG; }, getRealityCheckDialogId_0: function () { return GT307.prototype.ID_REALITYCHECKDIALOG; }, getErrorDialogId_0: function () { return GT307.prototype.ID_ERRORDIALOG; }, getInfoDialogId_0: function () { return GT307.prototype.ID_INFODIALOG; }, getGameMenuDialogId_0: function () { return GT307.prototype.ID_GAMEMENUDIALOG; }, getFatalErrorDialogId_0: function () { return GT554.prototype.ID_ERRORSCREEN; }, getRealityCheckSettingsDialogId_0: function () { return GT307.prototype.ID_RCSETTINGSDIALOG; }, getAutoPlaySettingsDialogId_0: function () { return GT307.prototype.ID_APSETTINGSDIALOG; }, getDisableGamblingDialogId_0: function () { return GT307.prototype.ID_DISABLE_GAMBLING_DIALOG; }, }, "GT426", [] ), GT667 = GT1354.extend( { initialConstructor_0: function () { this.jackpotName = this.jackpotPart = this.playerName = null; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.jackpotName = this.jackpotPart = this.playerName = null; GT1354.prototype.initialConstructor_1.call(this, a); this.playerName = b; this.jackpotPart = d; this.jackpotName = e; }, initialConstructor_3: function (a, b, d) { GT667.prototype.initialConstructor_4.call(this, GT1354.prototype.NOTIFY_JACKPOT, a, b, d); }, getPlayerName_0: function () { return this.playerName; }, getJackpotPart_0: function () { return this.jackpotPart; }, getJackpotName_0: function () { return this.jackpotName; }, }, "GT667", [] ), GT633 = GT1354.extend( { initialConstructor_0: function () { this.overrideMaxBetValue = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.overrideMaxBetValue = 0; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.OVERRIDE_MAXBET); this.overrideMaxBetValue = a; }, getOverrideMaxBetValue_0: function () { return this.overrideMaxBetValue; }, }, "GT633", [] ), GT634 = GT1354.extend( { initialConstructor_0: function () { this.overrideMinBetValue = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.overrideMinBetValue = 0; GT1354.prototype.initialConstructor_1.call(this, GT1354.prototype.OVERRIDE_MINBET); this.overrideMinBetValue = a; }, getOverrideMinBetValue_0: function () { return this.overrideMinBetValue; }, }, "GT634", [] ), GT431 = GT1354.extend( { initialConstructor_0: function () { this.pageIndex = 0; this.hidden = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.pageIndex = 0; this.hidden = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.pageIndex = b; this.hidden = d; }, initialConstructor_2: function (a, b) { GT431.prototype.initialConstructor_3.call(this, GT1354.prototype.PAYTABLE_VISIBILITY, a, b); }, getPageIndex_0: function () { return this.pageIndex; }, isHidden_0: function () { return this.hidden; }, }, "GT431", [] ), GT478 = GT1354.extend( { initialConstructor_0: function () { this.show = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.show = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.show = b; }, initialConstructor_1: function (a) { GT478.prototype.initialConstructor_2.call(this, GT1354.prototype.JACKPOT_FACTOR_UPDATED, a); }, showJackpotFields_0: function () { return this.show; }, }, "GT478", [] ), GT635 = GT1354.extend( { initialConstructor_0: function () { this.userChoice = 0; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.userChoice = 0; GT1354.prototype.initialConstructor_1.call(this, a); this.userChoice = b; }, getUserChoice_0: function () { return this.userChoice; }, }, "GT635", [] ), GT981 = GT1354.extend( { initialConstructor_0: function () { this.value = this.key = null; this.updatedAlways = !1; GT1354.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.value = this.key = null; this.updatedAlways = !1; GT1354.prototype.initialConstructor_1.call(this, a); this.key = b; this.value = d; this.updatedAlways = e; }, initialConstructor_3: function (a, b, d) { GT981.prototype.initialConstructor_4.call(this, a, b, d, !1); }, getKey_0: function () { return this.key; }, getValue_0: function () { return this.value; }, isUpdatedAlways_0: function () { return this.updatedAlways; }, }, "GT981", [] ); GT981.prototype.KEY_BET = "BET"; GT981.prototype.KEY_BASEBET_CHANGE_REQUESTED = "BASEBET_CHANGE_REQUESTED"; GT981.prototype.VALUE_BASEBET_CHANGE_REQUESTED_MIN = "MIN"; GT981.prototype.VALUE_BASEBET_CHANGE_REQUESTED_MAX = "MAX"; GT981.prototype.KEY_LINES = "LINES"; GT981.prototype.KEY_MAX_LINES = "MAXLINES"; GT981.prototype.KEY_MAXBET_ON_MAXLINES = "MAXBET_ON_MAXLINES"; GT981.prototype.KEY_PAID = "PAID"; GT981.prototype.KEY_UNCOLLECTEDWIN = "UNCOLLECTED_WIN"; GT981.prototype.KEY_GAMEMODE = "GAME_MODE"; GT981.prototype.KEY_FREEBETS = "FREE_BETS"; GT981.prototype.KEY_AUTOPLAY = "AUTOPLAY"; GT981.prototype.KEY_BUTTONSTATE = "BUTTONSTATE"; GT981.prototype.KEY_PAYOUT = "PAYOUT"; GT981.prototype.KEY_GAMESELECT = "GAME_SELECT"; GT981.prototype.KEY_GOMOBILE = "GO_MOBILE"; GT981.prototype.KEY_FLIPSCREEN = "FLIP_SCREEN"; GT981.prototype.KEY_SCREENFLIPPED = "SCREEN_FLIPPED"; GT981.prototype.KEY_PAYTABLE = "PAYTABLE"; GT981.prototype.KEY_PAYTABLE_PAGECHANGE = "PAYTABLE_PAGECHANGE"; GT981.prototype.KEY_ILLUMINATORMODE = "ILLUMINATOR_MODE"; GT981.prototype.KEY_COVERCREDIT = "COVER_CREDIT"; GT981.prototype.KEY_FREEGAMESSTART = "FREE_GAMES_START"; GT981.prototype.KEY_FREEGAMESMORE = "FREE_GAMES_MORE"; GT981.prototype.KEY_FREEROUNDSFINISHED = "FREE_SPINS_FINISHED"; GT981.prototype.VALUE_GAMEMODE_LOBBY = "LOBBY"; GT981.prototype.VALUE_GAMEMODE_SPECTATOR = "SPECTATOR"; GT981.prototype.VALUE_GAMEMODE_REPLAY = "REPLAY"; GT981.prototype.VALUE_GAMEMODE_PAYIN = "PAY_IN"; GT981.prototype.VALUE_GAMEMODE_READY = "READY"; GT981.prototype.VALUE_GAMEMODE_SPINNING = "SPINNING"; GT981.prototype.VALUE_GAMEMODE_WINS = "WINS"; GT981.prototype.VALUE_GAMEMODE_DECIDEGAMBLE = "DECIDE_GAMBLE"; GT981.prototype.VALUE_GAMEMODE_GAMBLE = "GAMBLE"; GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEIN = "GAMBLE_MOVEIN"; GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEOUT = "GAMBLE_MOVEOUT"; GT981.prototype.VALUE_GAMEMODE_GAMBLE_WIN = "GAMBLE_WIN"; GT981.prototype.VALUE_GAMEMODE_GAMBLE_MAX_WIN_REACHED = "GAMBLE_MAX_WIN_REACHED"; GT981.prototype.VALUE_GAMEMODE_BONUSGAME = "BONUS_GAME"; GT981.prototype.VALUE_GAMEMODE_SUPERGAME = "SUPER_GAME"; GT981.prototype.VALUE_AUTOPLAY_ON = "TRUE"; GT981.prototype.VALUE_AUTOPLAY_OFF = "FALSE"; GT981.prototype.VALUE_PAYOUT_OK = "OK"; GT981.prototype.VALUE_PAYTABLE_MOVEIN = "MOVEIN"; GT981.prototype.VALUE_PAYTABLE_MOVEOUT = "MOVEOUT"; GT981.prototype.VALUE_ILLUMINATORMODE_BELL = "Bell"; GT981.prototype.VALUE_ILLUMINATORMODE_BELLFEATURE = "Bell1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLER = "Gambler"; GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERFEATURE = "Gambler1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERWIN = "GamblerWin"; GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERWINFEATURE = "GamblerWin1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_HUGEWIN = "HugeWin"; GT981.prototype.VALUE_ILLUMINATORMODE_HUGEWINFEATURE = "HugeWin1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_IDLE = "IdleMode"; GT981.prototype.VALUE_ILLUMINATORMODE_IDLEFEATURE = "IdleMode1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_REELSPIN = "ReelSpin"; GT981.prototype.VALUE_ILLUMINATORMODE_REELSPINFEATURE = "ReelSpin1Feature"; GT981.prototype.VALUE_ILLUMINATORMODE_SMALLWIN = "SmallWin"; GT981.prototype.VALUE_ILLUMINATORMODE_SMALLWINFEATURE = "SmallWin1Feature"; GT981.prototype.VALUE_COVERCREDIT_COVER = "COVER"; GT981.prototype.VALUE_COVERCREDIT_UNCOVER = "UNCOVER"; var GT1547 = GT1494.extend( { initialConstructor_0: function () { this.slotState = null; GT1494.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.slotState = null; GT1494.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, getSlotState_0: function () { return this.slotState; }, setSlotState_1: function (a) { this.slotState = a; }, }, "GT1547", [] ), GT1649 = Class.extend( { initialConstructor_0: function () { this.definition = this.filter = null; this.baseBet = this.gameMode = this.serverState = 0; this.betsPerLine = null; this.previousRoundStartFailed = !1; this.currentReelSetIndex = 0; this.wins = this.reelPositions = null; this.specialCredits = this.lastWin = 0; this.superGameState = this.casinoState = this.gambleState = this.freeSpinState = this.allWinPositions = this.specialWinVisualizationSteps = this.specialWinVisualizationData = null; this.autoPlaying = !1; this.autoPlayLimit = this.autoPlayCounter = 0; this.paytableOpen = !1; this.betStepsFilter = this.lastConsoleEvent = this.mappedWins = this.mappedReelset = this.symbolMapping = this.pluginState = this.clientVersion = this.clientInfo = null; this.cashAlreadyPayedToSession = 0; this.forceInteger = this.stopAutoplayAtFeatureScreens = this.fastSpinEnabled = !1; this.apsettings = null; this.autoplayMeterStep = this.autoplayMeter = 0; this.freeRoundsMode = this.waitForCollect = !1; this.freeRoundsWinnings = this.freeRoundsPlayed = this.freeRoundsWon = 0; this.spinTriggeredWithAutoplay = !1; this.gameModeToReelIndexMapping = null; this.paytableNextForWrapper = this.gameModeAsBet = !1; this.timeToWaitAfterCollect = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.definition = this.filter = null; this.baseBet = this.gameMode = this.serverState = 0; this.betsPerLine = null; this.previousRoundStartFailed = !1; this.currentReelSetIndex = 0; this.wins = this.reelPositions = null; this.specialCredits = this.lastWin = 0; this.superGameState = this.casinoState = this.gambleState = this.freeSpinState = this.allWinPositions = this.specialWinVisualizationSteps = this.specialWinVisualizationData = null; this.autoPlaying = !1; this.autoPlayLimit = this.autoPlayCounter = 0; this.paytableOpen = !1; this.betStepsFilter = this.lastConsoleEvent = this.mappedWins = this.mappedReelset = this.symbolMapping = this.pluginState = this.clientVersion = this.clientInfo = null; this.cashAlreadyPayedToSession = 0; this.forceInteger = this.stopAutoplayAtFeatureScreens = this.fastSpinEnabled = !1; this.apsettings = null; this.autoplayMeterStep = this.autoplayMeter = 0; this.freeRoundsMode = this.waitForCollect = !1; this.freeRoundsWinnings = this.freeRoundsPlayed = this.freeRoundsWon = 0; this.spinTriggeredWithAutoplay = !1; this.gameModeToReelIndexMapping = null; this.paytableNextForWrapper = this.gameModeAsBet = !1; this.timeToWaitAfterCollect = 0; this.casinoState = a; this.freeSpinState = new GT1597(); this.gambleState = new GT1629(); this.definition = new GT1571(a); this.superGameState = new GT1572(); this.paytableOpen = !1; this.stopAutoplayAtFeatureScreens = !0; this.cashAlreadyPayedToSession = 0; this.autoPlayCounter = -1; this.spinTriggeredWithAutoplay = this.freeRoundsMode = this.forceInteger = !1; GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && (this.betStepsFilter = new GT432()); this.timeToWaitAfterCollect = 0; }, setFilter_1: function (a) { this.allWinPositions = null; this.filter = a; }, getFilter_0: function () { return this.filter; }, getDefinition_0: function () { return this.definition; }, getServerState_0: function () { return null != this.filter ? this.filter.getServerState_1(this.serverState) : this.serverState; }, setServerState_1: function (a) { this.serverState = a; }, setGameMode_1: function (a) { this.gameMode != a && (this.betsPerLine = null); this.gameMode = a; }, getGameMode_0: function () { return this.gameMode; }, getNumberOfLines_0: function () { return null != this.filter ? this.filter.getNumberOfLines_1(this.definition.getLinesForGameMode_1(this.gameMode)) : this.definition.getLinesForGameMode_1(this.gameMode); }, getBetMultiplier_0: function () { return null != this.filter ? this.filter.getBetMultiplier_1(this.definition.getBetMultiplierForGameMode_1(this.gameMode)) : this.definition.getBetMultiplierForGameMode_1(this.gameMode); }, getCreditsMultiplier_0: function () { return null != this.filter ? this.filter.getCreditsMultiplier_1(this.definition.getCreditsMultiplierForGameMode_1(this.gameMode)) : this.definition.getCreditsMultiplierForGameMode_1(this.gameMode); }, getBetPerLine_0: function () { return null != this.filter ? this.filter.getBetPerLine_1(this.baseBet) : this.baseBet; }, getBaseBet_0: function () { var a = this.baseBet; null != this.betStepsFilter && (a = this.betStepsFilter.getBaseBet_1(this.baseBet)); if (null != this.filter) { var b = this.filter.getBaseBet_1(a); return b != a ? b : this.filter.getBetPerLine_1(a); } return a; }, setBaseBet_1: function (a) { this.baseBet = a; }, getTotalBet_0: function () { var a = this.getBaseBet_0() * this.getBetMultiplier_0(); null != this.filter && (a = this.filter.getTotalBet_1(a)); return a; }, getMaxPossibleBet_0: function () { var a = this.getBaseBets_0(), b = a[a.length - 1], d = this.getBetMultiplier_0(); if (this.getCredits_0() < b * d) for (var b = a[0], e = a.length - 1; 0 <= e; e--) if (this.getCredits_0() >= a[e] * d) { b = a[e]; break; } return b; }, getMinPossibleBet_0: function () { return this.getBaseBets_0()[0]; }, setClientInfo_1: function (a) { this.clientInfo = a; }, getClientInfo_0: function () { return this.clientInfo; }, setClientVersion_1: function (a) { this.clientVersion = a; }, getClientVersion_0: function () { return this.clientVersion; }, hasZeroTicketsRemaining_0: function () { return 0 == this.getCredits_0(); }, hasInsufficientTicketsToContinuePlaying_0: function () { return this.casinoState.getSessionTickets_0() < this.definition.getMinTotalBet_0(); }, hasInsufficientTicketsToPlayWithCurrentBetSettings_0: function () { return this.casinoState.getSessionTickets_0() < this.getTotalBet_0(); }, isPreviousRoundStartFailed_0: function () { return this.previousRoundStartFailed; }, setPreviousRoundStartFailed_1: function (a) { this.previousRoundStartFailed = a; }, getCurrentReelSetIndex_0: function () { return null != this.filter ? this.filter.getCurrentReelSetIndex_1(this.currentReelSetIndex) : this.currentReelSetIndex; }, getCurrentReelSet_0: function () { if (null != this.symbolMapping) { if (null == this.mappedReelset && null != this.symbolMapping.elementAt_1(this.currentReelSetIndex)) { for ( var a = this.symbolMapping.elementAt_1(this.currentReelSetIndex), b = this.definition.getReelSet_1(this.currentReelSetIndex), d = [].createArray(b.getNumberOfReels_0(), null).init(0), e = 0; e < b.getNumberOfReels_0(); e++ ) d[e] = [].createArray(b.getNumberOfSymbols_1(e)).init(0); for (e = 0; e < b.getNumberOfReels_0(); e++) for (var f = 0; f < b.getNumberOfSymbols_1(e); f++) { var g = b.getSymbol_2(e, f), k = a.get_1(GT1672.prototype.charToString_1(g)); d[e][f] = null != k ? k.charAt_1(0) : g; } this.mappedReelset = new GT1664(d); } if (null != this.mappedReelset) return this.mappedReelset; } return null != this.filter ? this.filter.getCurrentReelSet_1(this.definition.getReelSet_1(this.currentReelSetIndex)) : this.definition.getReelSet_1(this.currentReelSetIndex); }, setReelSetSymbolMapping_3: function (a, b, d) { null == this.symbolMapping && (this.symbolMapping = new java_util_JavaScriptVector()); this.symbolMapping.size_0() <= a && this.symbolMapping.setSize_1(a + 1); var e = this.symbolMapping.get_1(a); null == e && ((e = new java_util_JavaScriptHashtable()), this.symbolMapping.setElementAt_2(e, a)); e.put_2(GT1672.prototype.charToString_1(b), GT1672.prototype.charToString_1(d)); }, setCurrentReelSetIndex_1: function (a) { this.currentReelSetIndex != a && (this.allWinPositions = this.mappedWins = this.mappedReelset = null); this.currentReelSetIndex = a; }, getReelPositions_0: function () { return null != this.filter ? this.filter.getReelPositions_1(this.reelPositions).toArray_0() : this.reelPositions.toArray_0(); }, setReelPositions_1: function (a) { this.reelPositions = a; }, getSpecialWinVisualizationData_0: function () { var a; a = null != this.filter ? this.filter.getSpecialWinVisualizationData_1(this.specialWinVisualizationData) : this.specialWinVisualizationData; return null == a ? null : a.toArray_0(); }, setSpecialWinVisualizationData_1: function (a) { this.specialWinVisualizationData = a; }, getSpecialWinVisualizationSteps_0: function () { var a; a = null != this.filter ? this.filter.getSpecialWinVisualizationSteps_1(this.specialWinVisualizationSteps) : this.specialWinVisualizationSteps; return null == a ? null : a.toArray_0(); }, setSpecialWinVisualizationSteps_1: function (a) { this.specialWinVisualizationSteps = a; }, getWins_0: function () { return this.getWinList_0().toArray_0(); }, getWinList_0: function () { var a = this.getMappedWins_0(); return null != a ? a : null != this.filter ? this.filter.getWinList_1(this.wins) : this.wins; }, getMappedWins_0: function () { if (null == this.symbolMapping || null == this.symbolMapping.elementAt_1(this.currentReelSetIndex)) return null; if (null == this.mappedWins) { for (var a = this.symbolMapping.elementAt_1(this.currentReelSetIndex), b = [].createArray(this.wins.size_0()), d = 0; d < b.length; d++) { var e = this.wins.get_1(d), f = a.get_1(GT1672.prototype.charToString_1(e.symbol)); b[d] = null != f ? e.createCopyWithNewSymbol_1(f.charAt_1(0)) : e; } this.mappedWins = new GT1665(b); } return this.mappedWins; }, getNumberOfWins_0: function () { return this.getWinList_0().size_0(); }, setWins_1: function (a) { this.wins = a; this.freeSpinState.setFreeSpinsWonNow_1(this.getFreeGamesSum_1(a)); this.mappedWins = this.allWinPositions = null; }, getLastWin_0: function () { return null != this.filter ? this.filter.getLastWin_1(this.lastWin) : this.lastWin; }, setLastWin_1: function (a) { this.lastWin = a; }, getSpecialCredits_0: function () { return null != this.filter ? this.filter.getSpecialCredits_1(this.specialCredits) : this.specialCredits; }, setSpecialCredits_1: function (a) { this.specialCredits = a; }, getAllWinPositions_0: function () { if (null == this.allWinPositions || null != this.filter) if (null == this.getWinList_0() || 0 == this.getWinList_0().size_0()) this.allWinPositions = new GT1613([].createArray(0).init(0), [].createArray(0).init(0)); else { var a = this.getMappedWins_0(); null == a && (a = this.getWinList_0()); var b = [].createArray(this.definition.getMaxcolumns_0(), this.definition.getMaxrows_0()).init(0), d = 0; if (null != a && 0 < a.size_0()) { var e = GT1613.prototype.createEndPositions_3(this.getReelPositions_0(), this.getCurrentReelSet_0(), this.definition.getMaxrows_0()); if (null != this.definition.getWinLines_0()) for (var f = 0; f < a.size_0(); f++) for (var g = a.get_1(f).createWinPositions_2(e, this.definition.getWinLines_0()), k = 0; k < g.getCount_0(); k++) { var m = g.getSymbolColumn_1(k), n = g.getSymbolRow_1(k); m < b.length && n < b[m].length && 0 == b[m][n] && ((b[m][n] = !0), d++); } } a = [].createArray(d).init(0); d = [].createArray(d).init(0); for (f = e = 0; f < b.length; f++) for (g = 0; g < b[f].length; g++) b[f][g] && ((a[e] = f), (d[e] = g), e++); this.allWinPositions = new GT1613(a, d); } return null != this.filter ? this.filter.getAllWinPositions_1(this.allWinPositions) : this.allWinPositions; }, getWinSum_1: function (a) { for (var b = 0, d = this.getWinList_0(), e = 0; e < d.size_0(); e++) b += d.get_1(e).payCash; if (a) for (e = 0; e < this.gambleState.getNumberOfWins_0(); e++) b += this.gambleState.getWin_1(e); return null != this.filter ? this.filter.getWinSum_1(b) : b; }, getJackpotWin_0: function () { for (var a = 0, b = this.getWinList_0(), d = !1, e = 0; e < b.size_0(); e++) { var f = b.get_1(e); 0 != f.jackpot ? (a += b.get_1(e).payCash) : 35 == f.symbol && instanceOf(f, GT1512) ? (d = !0) : (32 == f.symbol && d && (a += b.get_1(e).payCash), (d = !1)); } return a; }, hasJackpotWin_0: function () { return 0 != this.getJackpotWin_0(); }, getSuperGamesSum_1: function (a) { for (var b = 0, d = this.getWinList_0(), e = 0; e < d.size_0(); e++) b += d.get_1(e).payGames; if (a) for (a = this.gambleState.getSuperGameWins_0(), e = 0; e < a.size_0(); e++) b += a.get_1(e); return b; }, getBetsPerLine_0: function () { return this.getBaseBets_0(); }, getBaseBets_0: function () { if (null == this.definition.getBaseBets_0() || 0 == this.baseBet) { var a = [].createArray(1).init(0); a[0] = this.getBaseBet_0(); this.betsPerLine = null; return a; } var b; if (null != this.betsPerLine) b = this.betsPerLine; else { var a = this.getBetMultiplier_0(), d = this.casinoState.getMaxTotalBet_0(), e = this.casinoState.getMinTotalBet_0(), f = this.definition.getBaseBets_0(), g = 0, k = -1; for (b = 0; b < f.size_0(); b++) { var m = f.get_1(b) * a; if (m >= e) if (m <= d) g++; else break; else k = b; } k++; a = [].createArray(g).init(0); for (b = 0; b < a.length; b++) a[b] = f.get_1(k + b); if (this.forceInteger) { f = 0; k = Math.div(100, this.ggT_2(100, this.definition.getLinesForGameMode_1(this.gameMode))); for (b = 0; b < a.length; b++) 0 == a[b] % k && f++; d = [].createArray(f).init(0); for (b = f = 0; b < a.length; b++) 0 == a[b] % k && (d[f++] = a[b]); a = d; } b = new GT1595(a); } null != this.betStepsFilter && (b = new GT1595(this.betStepsFilter.getBetsPerLine_1(b).toArray_0())); return null != this.filter ? this.filter.getBetsPerLine_1(b).toArray_0() : b.toArray_0(); }, ggT_2: function (a, b) { if (0 == a) return b; for (; 0 != b; ) a > b ? (a -= b) : (b -= a); return a; }, getFreeSpinState_0: function () { return this.freeSpinState; }, getGambleState_0: function () { return this.gambleState; }, getCasinoState_0: function () { return this.casinoState; }, getMaximumRoundWin_0: function () { return null != this.casinoState ? GT1672.prototype.stringToDouble_1(this.casinoState.getMaximumRoundWin_0()) : 0; }, isMaximumRoundWinExceeded_0: function () { if (0 < this.getMaximumRoundWin_0()) { var a = 0; this.getFreeSpinState_0().isFreeSpinsRunning_0() && ((a = this.getFreeSpinState_0().getWinMeter_0()), (a -= this.getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? this.getWinSum_1(!0) : 0)); return this.getWinSum_1(!0) + a >= this.getMaximumRoundWin_0(); } return !1; }, getCasinoAutoPlayInterface_0: function () { return instanceOf(this.casinoState, GT1119) ? this.casinoState : null; }, getSuperGameState_0: function () { return this.superGameState; }, isAutoPlaying_0: function () { return this.autoPlaying; }, setAutoPlaying_1: function (a) { this.autoPlaying = a; }, getAutoPlayCounter_0: function () { return this.autoPlayCounter; }, setAutoPlayCounter_1: function (a) { this.autoPlayCounter = a; }, getAutoPlayLimit_0: function () { return this.autoPlayLimit; }, setAutoPlayLimit_1: function (a) { this.autoPlayLimit = a; }, isPaytableOpen_0: function () { return this.paytableOpen; }, setPaytableOpen_1: function (a) { this.paytableOpen = a; }, setCashAlreadyPayedToSession_1: function (a) { this.cashAlreadyPayedToSession = a; }, getCredits_0: function () { var a = this.casinoState.getSessionTickets_0() - this.cashAlreadyPayedToSession; return null != this.filter ? this.filter.getCredits_1(a) : a; }, getGambleLimit_0: function () { return this.definition.hasGambleWinLimit_0() && this.definition.getMaxGambleWin_0() != Integer.MAX_VALUE ? 0 <= this.definition.getMaxGambleAbsoluteWin_0() ? this.definition.getMaxGambleAbsoluteWin_0() : this.definition.getMaxGambleWin_0() * this.getTotalBet_0() : Double.MAX_VALUE; }, isFastSpinEnabled_0: function () { return this.fastSpinEnabled; }, setFastSpinEnabled_1: function (a) { this.fastSpinEnabled = a; }, isStopAutoplayAtFeatureScreens_0: function () { return this.stopAutoplayAtFeatureScreens; }, setStopAutoplayAtFeatureScreens_1: function (a) { this.stopAutoplayAtFeatureScreens = a; }, getExtraPluginData_1: function (a) { return null == this.pluginState || this.pluginState.size_0() < a ? null : 0 == a ? "" + this.pluginState.size_0() : this.pluginState.get_1(a - 1); }, getExtraPluginDataCount_0: function () { return null == this.pluginState ? 0 : this.pluginState.size_0() + 1; }, getPluginState_0: function () { return null != this.filter ? this.filter.getPluginState_1(this.pluginState) : this.pluginState; }, getRandomSeed_0: function () { for (var a = 5, b = 0; b < this.reelPositions.size_0(); b++) var d = this.reelPositions.get_1(b), a = (10 * a + d) % 1e8; return a; }, getPluginState_1: function (a) { var b = this.getPluginState_0(); return null == b || b.size_0() <= a ? null : b.get_1(a); }, getPluginStateCount_0: function () { var a = this.getPluginState_0(); return null == a ? 0 : a.size_0(); }, setPluginState_1: function (a) { this.pluginState = a; }, getForceIntegerWinsAndBets_0: function () { return this.forceInteger; }, setForceIntegerWinsAndBets_1: function (a) { this.forceInteger = a; }, getAutoPlaySettings_0: function () { return this.apsettings; }, setAutoPlaySettings_1: function (a) { this.apsettings = a; null != a && (this.setAutoPlayLimit_1(a.getRoundsLeft_0()), this.setAutoPlayCounter_1(a.getRoundsLeft_0())); }, isFreeRoundsMode_0: function () { return this.freeRoundsMode; }, setFreeRoundsMode_1: function (a) { this.freeRoundsMode = a; }, getFreeRoundsWon_0: function () { return this.freeRoundsWon; }, setFreeRoundsWon_1: function (a) { this.freeRoundsWon = a; }, getFreeRoundsPlayed_0: function () { return this.freeRoundsPlayed; }, setFreeRoundsPlayed_1: function (a) { this.freeRoundsPlayed = a; }, getFreeRoundsWinnings_0: function () { return this.freeRoundsWinnings; }, setFreeRoundsWinnings_1: function (a) { this.freeRoundsWinnings = a; }, setLastConsoleEvent_1: function (a) { this.lastConsoleEvent = a; }, getLastConsoleEvent_0: function () { return null == this.lastConsoleEvent ? new GT1284(GT1284.prototype.GENERIC_CONSOLE_EVENT, this, GT1607.prototype.UNDEFINED_KEY) : this.lastConsoleEvent; }, isPaytableNextForWrapper_0: function () { return this.paytableNextForWrapper; }, setGameModeToReelIndexMapping_1: function (a) { this.gameModeToReelIndexMapping = a; }, setPaytableNextForWrapper_1: function (a) { this.paytableNextForWrapper = a; }, isAutoplayMeter_0: function () { return 0 < this.autoplayMeterStep; }, isGameModeToReelIndexMappingEnabled_0: function () { return null != this.gameModeToReelIndexMapping; }, getAutoplayMeter_0: function () { return this.autoplayMeter; }, setAutoplayMeter_1: function (a) { this.autoplayMeter = a; }, getAutoplayMeterStep_0: function () { return this.autoplayMeterStep; }, setAutoplayMeterStep_1: function (a) { this.autoplayMeterStep = a; }, isAutoplayNotPreventedByAutoplayMeter_0: function () { return !this.isAutoplayMeter_0() || (this.isAutoplayMeter_0() && this.autoplayMeter >= this.getTotalBet_0()); }, setWaitingForCollect_1: function (a) { this.waitForCollect = a; }, isWaitingForCollect_0: function () { return this.waitForCollect; }, wasSpinTriggeredWithAutoplay_0: function () { return this.spinTriggeredWithAutoplay; }, setSpinTriggeredWithAutoplay_1: function (a) { this.spinTriggeredWithAutoplay = a; }, getReelForGameMode_1: function (a) { return null == this.gameModeToReelIndexMapping ? -1 : GT1677.prototype.getIntFromSeperatedList_3(this.gameModeToReelIndexMapping, a, 58); }, getGameModeForReel_1: function (a) { if (null == this.gameModeToReelIndexMapping) return -1; for (var b = GT1677.prototype.tokenize_2(this.gameModeToReelIndexMapping, ":"), d = 0; d < b.length; d++) if (GT1672.prototype.stringToInt_1(b[d]) == a) return d; return -1; }, setGameModeAsBet_1: function (a) { this.gameModeAsBet = a; }, isGameModeAsBet_0: function () { return this.gameModeAsBet; }, getTimeToWaitAfterCollect_0: function () { return this.timeToWaitAfterCollect; }, setTimeToWaitAfterCollect_1: function (a) { this.timeToWaitAfterCollect = a; }, }, "GT1649", [] ); GT1649.prototype.getFreeGamesSum_1 = function (a) { for (var b = 0, d = 0; d < a.size_0(); d++) b += a.get_1(d).freespins; return b; }; GT1649.prototype.SERVERSTATE_UNDEFINED = 0; GT1649.prototype.SERVERSTATE_BEFORESPIN = 1; GT1649.prototype.SERVERSTATE_BEFOREGAMBLE = 11; GT1649.prototype.SERVERSTATE_GAMBLE = 3; GT1649.prototype.SERVERSTATE_BEFOREFREESPIN = 5; GT1649.prototype.SERVERSTATE_SUPERGAME = 6; GT1649.prototype.SERVERSTATE_WINVISUALIZATION = 13; GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION = 15; var GT1548 = Class.extend( { initialConstructor_0: function () {}, getServerState_1: function (a) { return a; }, getNumberOfLines_1: function (a) { return a; }, getBetMultiplier_1: function (a) { return a; }, getCreditsMultiplier_1: function (a) { return a; }, getBetPerLine_1: function (a) { return a; }, getBaseBet_1: function (a) { return a; }, getTotalBet_1: function (a) { return a; }, getWinSum_1: function (a) { return a; }, getCurrentReelSetIndex_1: function (a) { return a; }, getCurrentReelSet_1: function (a) { return a; }, getReelPositions_1: function (a) { return a; }, getSpecialWinVisualizationData_1: function (a) { return a; }, getSpecialWinVisualizationSteps_1: function (a) { return a; }, getWinList_1: function (a) { return a; }, getLastWin_1: function (a) { return a; }, getSpecialCredits_1: function (a) { return a; }, getAllWinPositions_1: function (a) { return a; }, getBetsPerLine_1: function (a) { return a; }, getPluginState_1: function (a) { return a; }, getCredits_1: function (a) { return a; }, }, "GT1548", [] ), GT1572 = Class.extend( { initialConstructor_0: function () { this.superGamesBalance = this.superGamePrice = this.lowestSuperGamePrice = this.percentagePayoutAsGames = 0; this.actionGames = !1; this.superGameWheel = null; this.superGameAccumulator = this.winSuperGames = this.winCash = this.positionOnWheel = 0; this.hgColor = this.ugColor = this.ggColor = this.mgColor = this.sgColor = null; this.sgColor = GT1391.prototype.set_0().compRGB_3(255, 0, 0).create_0(); this.mgColor = GT1391.prototype.set_0().compRGB_3(50, 150, 255).create_0(); this.ggColor = GT1391.prototype.set_0().compRGB_3(222, 0, 255).create_0(); this.ugColor = GT1391.prototype.set_0().compRGB_3(181, 230, 29).create_0(); this.hgColor = GT1391.prototype.set_0().compRGB_3(255, 102, 0).create_0(); }, getPositionOnWheel_0: function () { return this.positionOnWheel; }, setPositionOnWheel_1: function (a) { this.positionOnWheel = a; }, getWinCash_0: function () { return this.winCash; }, setWinCash_1: function (a) { this.winCash = a; }, getWinSuperGames_0: function () { return this.winSuperGames; }, setWinSuperGames_1: function (a) { this.winSuperGames = a; }, getAccumulator_0: function () { return this.superGameAccumulator; }, setAccumulator_1: function (a) { this.superGameAccumulator = a; }, setPercentagePayoutAsGames_1: function (a) { this.percentagePayoutAsGames = a; }, getSuperGameWheel_0: function () { return this.getWheel_0(); }, getWheel_0: function () { return this.superGameWheel; }, setWheel_1: function (a) { this.superGameWheel = a; }, getLowestSuperGamePrice_0: function () { return this.lowestSuperGamePrice; }, setLowestPrice_1: function (a) { this.lowestSuperGamePrice = a; }, getSuperGamePrice_0: function () { return this.getPrice_0(); }, getPrice_0: function () { return this.superGamePrice; }, setPrice_1: function (a) { this.superGamePrice = a; }, hasActionGames_0: function () { return this.actionGames; }, setActionGames_1: function (a) { (this.actionGames = a) && 10 == this.superGameWheel.length && ((a = [].createArray(12).init(0)), java_lang_System.prototype.arraycopy_5(this.superGameWheel, 0, a, 0, 5), (a[5] = 126), (a[6] = this.superGameWheel[5]), (a[7] = 126), java_lang_System.prototype.arraycopy_5(this.superGameWheel, 6, a, 8, 4), (this.superGameWheel = [].createArray(a.length).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, this.superGameWheel, 0, this.superGameWheel.length)); }, getBalance_0: function () { return this.superGamesBalance; }, setBalance_1: function (a) { this.superGamesBalance = a; }, getSuperGamesLabel_0: function () { return this.getLabel_0(); }, getLabel_0: function () { return this.hasActionGames_0() ? "AG" : this.superGamePrice >= 1e4 * this.lowestSuperGamePrice ? "HG" : this.superGamePrice >= 1e3 * this.lowestSuperGamePrice ? "UG" : this.superGamePrice >= 100 * this.lowestSuperGamePrice ? "GG" : this.superGamePrice >= 10 * this.lowestSuperGamePrice ? "MG" : "SG"; }, getColor_0: function () { return this.hasActionGames_0() ? this.sgColor : this.superGamePrice >= 1e4 * this.lowestSuperGamePrice ? this.hgColor : this.superGamePrice >= 1e3 * this.lowestSuperGamePrice ? this.ugColor : this.superGamePrice >= 100 * this.lowestSuperGamePrice ? this.ggColor : this.superGamePrice >= 10 * this.lowestSuperGamePrice ? this.mgColor : this.sgColor; }, calculateNumberOfSuperGames_1: function (a) { var b = 0; if (0 < this.superGamePrice) { for (a = (1 * a * this.percentagePayoutAsGames) / 100; a >= this.superGamePrice; ) (a -= this.superGamePrice), (b += 1); return b; } return 0; }, calculateCashRemainder_2: function (a, b) { var d = 0, d = a - b * this.superGamePrice; GT1650.prototype.assertExp_2(0 <= d, "Remainder negative"); return d; }, }, "GT1572", [] ), GT1511 = Class.extend( { initialConstructor_0: function () { this.mapping = this.objects = null; this.objects = [].createArray(128); this.mapping = [].createArray(128); }, put_3: function (a, b, d) { null == this.mapping[a] && ((this.mapping[a] = new java_util_JavaScriptVector()), (this.objects[a] = new java_util_JavaScriptVector())); if (this.mapping[a].size_0() > b) { var e = this.mapping[a].elementAt_1(b); null != e ? this.objects[a].setElementAt_2(d, e.intValue_0()) : (this.objects[a].addElement_1(d), this.mapping[a].setElementAt_2(new Integer(this.objects[a].size_0() - 1), b)); } else this.objects[a].addElement_1(d), this.mapping[a].setSize_1(b + 1), this.mapping[a].setElementAt_2(new Integer(this.objects[a].size_0() - 1), b); }, get_2: function (a, b) { if (null == this.mapping[a] || b >= this.mapping[a].size_0()) return null; var d = this.mapping[a].elementAt_1(b); return null == d ? null : this.objects[a].elementAt_1(d.intValue_0()); }, hasSymbolKey_1: function (a) { return null != this.mapping[a]; }, getMaxNumber_1: function (a) { return this.mapping[a].size_0(); }, }, "GT1511", [] ), GT79 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.replace_2( GT1618.prototype.BACKGROUND_CONTAINER, GT871.prototype.set_0().id_1(GT1618.prototype.BACKGROUND_CONTAINER).size_2(1535, 924).horizontalAlignment_1(GT1488.prototype.CENTER).child_1(b.slotBackground_0()) ); }, }, "GT79", [] ), GT10 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modify_2(GT834.prototype.ID_BUTTON_GOMOBILE, GT1240.prototype.set_0().x_1(852)) .modify_2(GT834.prototype.ID_FIELD_LINES, GT1240.prototype.set_0().x_1(this.lineFieldX_0())) .modify_2(GT834.prototype.ID_LABEL_LINES, GT1240.prototype.set_0().x_1(this.lineFieldX_0())) .modify_2(GT834.prototype.ID_FIELD_BETPERLINE, GT1240.prototype.set_0().x_1(this.lineFieldX_0())) .modify_2(GT834.prototype.ID_LABEL_BETPERLINE, GT1240.prototype.set_0().x_1(this.lineFieldX_0())); }, lineFieldX_0: function () { return 985; }, }, "GT10", [] ), GT11 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a.modify_2(GT834.prototype.ID_BUTTON_GOMOBILE, GT1240.prototype.set_0().x_1(-500)); }, }, "GT11", [] ), GT30 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .position_2(Math.div(682, 2), 830) .size_2(1366, 452) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1(GT280.prototype.statusContainer_0()) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1240.prototype.set_0().position_2(Math.div(566, 2), 0)) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1442.prototype.set_0().size_2(800, GT30.prototype.topPartHeight_0() - 5)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1240.prototype.set_0().position_2(0, 0)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1442.prototype.set_0().size_2(800, GT30.prototype.topPartHeight_0())) .child_1( GT280.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 5, 15) .position_2(1086, 0) .size_2(230, GT30.prototype.topPartHeight_0() - 5) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(1086, GT30.prototype.topPartHeight_0() - 5 - 23) .size_2(230, 23) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT280.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .insets_4(7, 7, 5, 15) .position_2(50, 0) .size_2(230, GT30.prototype.topPartHeight_0() - 5) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 0, 0) .position_2(50, GT30.prototype.topPartHeight_0() - 5 - 23) .size_2(230, 23) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1(GT1392.prototype.set_0().position_2(0, GT30.prototype.topPartHeight_0()).size_2(1366, 258).imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/deck_back.png")) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(50, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_auto.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(50, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT280.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .position_2(this.betFieldX_0() + 7, GT30.prototype.topPartHeight_0() + 34 + 57) .size_2(163, 80) .insets_4(7, 7, 10, 5) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/display_frame.png").insets_4(20, 20, 20, 20)) ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(7, 7, 5, 0) .position_2(this.betFieldX_0() + 7, GT30.prototype.topPartHeight_0() + 34 + 57) .size_2(163, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT280.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .position_2(this.lineFieldX_0(), GT30.prototype.topPartHeight_0() + 69) .size_2(123, 120) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/display_frame.png").insets_4(20, 20, 20, 20)) ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .insets_4(7, 7, 5, 0) .position_2(this.lineFieldX_0(), GT30.prototype.topPartHeight_0() + 69) .size_2(123, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lines}") ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_BETPERLINE) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .insets_4(7, 7, 0, 0) .position_2(this.lineFieldX_0(), GT30.prototype.topPartHeight_0() + 69 + 115 - 25) .size_2(123, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().yellow_0()) ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BETPERLINE) .insets_4(7, 7, 0, 0) .position_2(this.lineFieldX_0(), GT30.prototype.topPartHeight_0() + 69 + 115 - 35) .size_2(123, 20) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80)) .text_1("${console_label_betperline}") ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(this.betFieldX_0() + 160, GT30.prototype.topPartHeight_0() + 28) .size_2(236, 202) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_line_plus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 3) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_line_minus.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 98) ) ) .child_1(GT1186.prototype.set_0().id_1(GT834.prototype.ID_SPINNER_LINES).hide_1(!0)) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(this.betFieldX_0() + 3, GT30.prototype.topPartHeight_0() + 34) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_bet_max.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("Max Bet").insets_4(15, 10, 0, 0)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_MIN_BET) .position_2(this.betFieldX_0() + 3, GT30.prototype.topPartHeight_0() + 34 + 130) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_bet_min.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("Min Bet").insets_4(15, 10, 0, 0)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(258, GT30.prototype.topPartHeight_0() + 69) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_small_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_info}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(258, GT30.prototype.topPartHeight_0() + 69) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_small_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_info}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .position_2(391, GT30.prototype.topPartHeight_0() + 69) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_small_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("Payout")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .position_2(-500, GT34.prototype.topPartHeight_0() + 69) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_qa_code.png")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1(GT1186.prototype.set_0().id_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT)) .child_1( GT1188.prototype .set_0() .id_1(GT30.prototype.ID_OVERLAY_GAMBLE) .position_2(0, GT30.prototype.topPartHeight_0()) .size_2(1366, 258) .color_1(GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(180)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(500, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_start_clear.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(708, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_start_clear.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(500, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_gamble_red.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamblered}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(708, GT30.prototype.topPartHeight_0() + 52) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel/b_gamble_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gambleblack}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ); }, lineFieldX_0: function () { return 935; }, betFieldX_0: function () { return 1120; }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT30.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultPConsoleState_2: function (a, b) { return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, }, "GT30", [] ); GT30.prototype.topPartHeight_0 = function () { return 60; }; GT30.prototype.ID_OVERLAY_GAMBLE = GT1560.prototype.generateID_0(); GT30.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT = GT1560.prototype.generateID_0(); var GT34 = GT1412.extend( { initialConstructor_0: function () { this.visibleArea = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.visibleArea = null; GT1412.prototype.initialConstructor_1.call(this, a); this.visibleArea = b; }, defaultButtonSize_0: function () { return 240 - this.overscanSpace_0(); }, defaultButtonSizeGamble_0: function () { return 200; }, iconButtonSize_0: function () { return 80; }, overscanSpace_0: function () { return Math.div(GT34.prototype.fullWidth_0() - this.visibleArea.width, 2); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .position_2(Math.div(2048 - GT34.prototype.fullWidth_0(), 2), 830) .size_2(GT34.prototype.fullWidth_0(), 452) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1( GT1186.prototype .set_0() .position_2(0, 0) .size_2(1366, GT34.prototype.topPartHeight_0()) .child_1(GT1392.prototype.set_0().size_2(1366, 1).imageFile_1("/com/greentube/slot/client/res/thinclient/info_back.png")) .child_1( GT1188.prototype .set_0() .position_2(0, 1) .size_2(1366, GT34.prototype.topPartHeight_0() - 1) .color_1(GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(GT1677.prototype.computeAlpha_1(0.8))) ) ) .child_1( GT34.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .insets_4(7, 7, 5, 15) .position_2(50, 0) .size_2(230, GT34.prototype.topPartHeight_0() - 5) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT34.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 0, 0) .position_2(50, GT34.prototype.topPartHeight_0() - 5 - 23) .size_2(230, 23) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .position_2(55, 0) .size_2(GT34.prototype.coverCreditsButtonWidth_0() + 414, GT34.prototype.topPartHeight_0()) .child_1(GT531.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS).size_2(GT34.prototype.coverCreditsButtonWidth_0(), GT34.prototype.topPartHeight_0())) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .position_2(GT34.prototype.coverCreditsButtonWidth_0(), 0) .clickableAreaShape_1( GT715.prototype .set_0() .setCoordinates_1([ 0, 0, GT34.prototype.dragableCoverCreditsButtonWidthUncovered_0(), 0, GT34.prototype.dragableCoverCreditsButtonWidthUncovered_0(), GT34.prototype.topPartHeight_0(), 0, GT34.prototype.topPartHeight_0(), ]) ) .child_1(this.defaultHideCreditImage_0()) .child_1(this.defaultHideCreditImage_0()) .child_1(this.defaultHideCreditImage_0()) .child_1(this.defaultHideCreditImage_0()) ) ) .child_1(this.statusContainer_0()) .child_1( GT34.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 5, 15) .position_2(1086, 0) .size_2(230, GT34.prototype.topPartHeight_0() - 5) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT34.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(1086, GT34.prototype.topPartHeight_0() - 5 - 23) .size_2(230, 23) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT1392.prototype .set_0() .id_1(GT34.prototype.ID_PANEL_BACKGROUND) .position_2(0, GT34.prototype.topPartHeight_0()) .size_2(1366, GT34.prototype.bottomPartHeight_0()) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/deck_back.png") ) .child_1( GT1392.prototype .set_0() .id_1(GT34.prototype.ID_LOGO_NOVO) .position_2(Math.div(1218, 2), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 160, 2)) .size_2(136, 148) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/logo_novo.png") ) .child_1( GT1392.prototype .set_0() .id_1(GT34.prototype.ID_DIAMOND_AUTOPLAY) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default_single.png").overrideSize_2(this.defaultButtonSize_0(), this.defaultButtonSize_0())) .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2)) .size_2(this.defaultButtonSize_0(), this.defaultButtonSize_0()) ) .child_1( this.defaultHighlightedButton_1("${buttontext_autoplay}") .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2)) .clickableAreaShape_1( GT715.prototype .set_0() .setCoordinates_1([ 0, Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), 0, this.defaultButtonSize_0(), Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), this.defaultButtonSize_0(), ]) ) .text_1(this.defaultDynamicTextAreaButton_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).size_2(this.defaultButtonSize_0(), this.defaultButtonSize_0()).insets_4(20, 20, 0, 0).text_1("${buttontext_autostop}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1392.prototype .set_0() .id_1(GT34.prototype.ID_DIAMOND_BET) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSize_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2)) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default_single.png").overrideSize_2(this.defaultButtonSize_0(), this.defaultButtonSize_0())) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSize_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 80, 2)) .size_2(this.defaultButtonSize_0(), 80) .buttonUp_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_plus.png", 20, 20, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .position_2(this.defaultButtonSize_0() - this.iconButtonSize_0(), 0) ) .buttonDown_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_minus.png", 20, 20, this.iconButtonSize_0()).position_2(0, 0)) ) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_max.png", 28, 30, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2( 1346 - this.overscanSpace_0() - Math.div(this.defaultButtonSize_0() + this.iconButtonSize_0(), 2), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2) ) ) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_min.png", 28, 30, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_MIN_BET) .position_2( 1346 - this.overscanSpace_0() - Math.div(this.defaultButtonSize_0() + this.iconButtonSize_0(), 2), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() + this.defaultButtonSize_0(), 2) - this.iconButtonSize_0() ) ) .child_1( GT34.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSize_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 80, 2)) .size_2(this.defaultButtonSize_0(), 50) .insets_4(40, 40, 10, 0) ) .child_1( GT34.prototype .defaultTextAreaSmallLabelPanel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(40, 40, 0, 10) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSize_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 80, 2) + 50) .size_2(this.defaultButtonSize_0(), 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT34.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .position_2(this.lineFieldX_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 80, 2)) .insets_4(7, 7, 10, 0) .size_2(123, 50) ) .child_1( GT34.prototype .defaultTextAreaSmallLabelPanel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .insets_4(7, 7, 0, 10) .position_2(this.lineFieldX_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 80, 2) + 50) .size_2(123, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lines}") ) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/b_info.png", 40, 60, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(450, GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.iconButtonSize_0(), 2)) ) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/b_payout.png", 78, 66, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .size_2(this.iconButtonSize_0(), this.iconButtonSize_0()) .position_2(300, GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.iconButtonSize_0(), 2)) ) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/qr_code.png", 40, 40, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .size_2(this.iconButtonSize_0(), this.iconButtonSize_0()) .position_2(830, GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.iconButtonSize_0(), 2)) ) .child_1(GT1186.prototype.set_0().id_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT)) .child_1( GT1186.prototype .set_0() .id_1(GT34.prototype.ID_OVERLAY_GAMBLE) .child_1( GT1392.prototype .set_0() .position_2(0, GT34.prototype.topPartHeight_0()) .size_2(1366, GT34.prototype.bottomPartHeight_0()) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/deck_back.png") .transparency_1(GT1022.prototype.set_0().alpha_1(230)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(1218, 2), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 160, 2)) .size_2(148, 160) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/logo_novo.png") ) .child_1( GT1392.prototype .set_0() .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_collect.png").overrideSize_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0())) ) .child_1( GT1392.prototype .set_0() .position_2(1346 - this.overscanSpace_0() - 2 * this.defaultButtonSizeGamble_0() + 30, GT34.prototype.topPartHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_gamble_red.png").overrideSize_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0())) ) .child_1( GT1392.prototype .set_0() .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSizeGamble_0(), GT34.prototype.topPartHeight_0()) .image_1( GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_gamble_black.png").overrideSize_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0()) ) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .child_1( GT1392.prototype .set_0() .position_2(0, GT34.prototype.topPartHeight_0()) .size_2(1366, GT34.prototype.bottomPartHeight_0()) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/deck_back.png") .transparency_1(GT1022.prototype.set_0().alpha_1(230)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(1218, 2), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - 160, 2)) .size_2(148, 160) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/logo_novo.png") ) .child_1( GT1392.prototype .set_0() .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_collect.png").overrideSize_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0())) ) .child_1( GT1392.prototype .set_0() .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSizeGamble_0(), GT34.prototype.topPartHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_collect.png").overrideSize_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0())) ) ) .child_1( this.defaultHighlightedButtonGamble_1("${buttontext_collect}") .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0()) ) .child_1( this.defaultHighlightedButtonGamble_1("${buttontext_gamble}") .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSizeGamble_0(), GT34.prototype.topPartHeight_0()) ) .child_1( this.defaultHighlightedButtonGamble_1("${buttontext_gamblered}") .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(1346 - this.overscanSpace_0() - 2 * this.defaultButtonSizeGamble_0() + 30, GT34.prototype.topPartHeight_0()) ) .child_1( this.defaultHighlightedButtonGamble_1("${buttontext_gambleblack}") .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(1346 - this.overscanSpace_0() - this.defaultButtonSizeGamble_0(), GT34.prototype.topPartHeight_0()) ); }, lineFieldX_0: function () { return 1e3; }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultPConsoleState_2: function (a, b) { return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS) .active_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .active_1(GT34.prototype.ID_PANEL_BACKGROUND) .active_1(GT34.prototype.ID_DIAMOND_AUTOPLAY) .active_1(GT34.prototype.ID_DIAMOND_BET) .active_1(GT34.prototype.ID_LOGO_NOVO) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT34.prototype.defaultFont_0().size_1(160)) .addFont_1(GT34.prototype.defaultFont_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, defaultHighlightedButton_1: function (a) { return GT613.prototype .set_0() .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0() + Math.div(GT34.prototype.bottomPartHeight_0() - this.defaultButtonSize_0(), 2)) .clickableAreaShape_1(this.buttonshape_0()) .text_1(this.defaultDynamicTextAreaButton_0().size_2(this.defaultButtonSize_0(), this.defaultButtonSize_0()).insets_4(20, 20, 0, 0).text_1(a)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(107, 119, 138), GT1391.prototype.set_0().compRGB_3(150, 150, 150)); }, defaultHighlightedButtonGamble_1: function (a) { return GT613.prototype .set_0() .position_2(20 + this.overscanSpace_0(), GT34.prototype.topPartHeight_0()) .clickableAreaShape_1( GT715.prototype .set_0() .setCoordinates_1([ Integer.truncate_1(0.05 * this.defaultButtonSizeGamble_0()), 0, Integer.truncate_1(0.75 * this.defaultButtonSizeGamble_0()), 0, Integer.truncate_1(0.95 * this.defaultButtonSizeGamble_0()), GT34.prototype.bottomPartHeight_0(), Integer.truncate_1(0.25 * this.defaultButtonSizeGamble_0()), GT34.prototype.bottomPartHeight_0(), ]) ) .text_1( this.defaultDynamicTextAreaButton_0() .size_2(this.defaultButtonSizeGamble_0(), GT34.prototype.bottomPartHeight_0()) .insets_4(Integer.truncate_1(0.15 * this.defaultButtonSizeGamble_0()), Integer.truncate_1(0.15 * this.defaultButtonSizeGamble_0()), 0, 0) .text_1(a) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(107, 119, 138), GT1391.prototype.set_0().compRGB_3(150, 150, 150)); }, buttonshape_0: function () { return GT715.prototype .set_0() .setCoordinates_1([ 0, Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), 0, this.defaultButtonSize_0(), Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), this.defaultButtonSize_0(), ]); }, statusContainer_0: function () { return GT1186.prototype .set_0() .id_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .position_2(Math.div(856, 2), 0) .size_2(510, GT34.prototype.topPartHeight_0()) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT) .child_1( GT1186.prototype .set_0() .id_1(GT34.prototype.ID_ARROW_LEFT) .position_2(0, Math.div(GT34.prototype.topPartHeight_0() - GT34.prototype.arrowFrameHeight_0(), 2)) .size_2(GT34.prototype.arrowFrameWidth_0(), GT34.prototype.arrowFrameHeight_0()) .child_1(GT615.prototype.set_0().image_4("/com/greentube/slot/client/res/thinclient/arrow_l.png", 1, 4, !1).timePerFrame_1(GT34.prototype.arrowTimePerFrame_0())) ) .child_1( GT1186.prototype .set_0() .id_1(GT34.prototype.ID_ARROW_RIGHT) .position_2(510 - GT34.prototype.arrowFrameWidth_0(), Math.div(GT34.prototype.topPartHeight_0() - GT34.prototype.arrowFrameHeight_0(), 2)) .size_2(GT34.prototype.arrowFrameWidth_0(), GT34.prototype.arrowFrameHeight_0()) .child_1(GT615.prototype.set_0().image_4("/com/greentube/slot/client/res/thinclient/arrow_r.png", 1, 4, !1).timePerFrame_1(GT34.prototype.arrowTimePerFrame_0())) ) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT34.prototype.defaultFont_0().size_1(160)) .addFont_1(GT34.prototype.defaultFont_0().size_1(140)) .addFont_1(GT34.prototype.defaultFont_0().size_1(120)) .addFont_1(GT34.prototype.defaultFont_0().size_1(90)) .addFont_1(GT34.prototype.defaultFont_0().size_1(60)) .fontColor_1(GT34.prototype.defaultTextColor_0()) .outline_2(0, null) .insets_4(75, 75, 0, 5) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT34.prototype.defaultFont_0().size_1(160)) .addFont_1(GT34.prototype.defaultFont_0().size_1(140)) .addFont_1(GT34.prototype.defaultFont_0().size_1(120)) .addFont_1(GT34.prototype.defaultFont_0().size_1(90)) .addFont_1(GT34.prototype.defaultFont_0().size_1(60)) .fontColor_1(GT34.prototype.defaultTextColor_0()) .outline_2(0, null) .insets_4(75, 75, 0, 5) .breakLines_1(!1) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .position_2(900, 7) .size_2(113, 77) .insets_4(0, 0, 0, 5) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(190)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(130)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) ); }, defaultHideCreditImage_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/hide_credit.png")) .position_2(0, 2) .size_2(414, GT34.prototype.topPartHeight_0() - 2); }, }, "GT34", [] ); GT34.prototype.defaultFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(150); }; GT34.prototype.defaultHighlightStatusTextAndWinColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(202, 88, 255); }; GT34.prototype.defaultLabelColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(36, 142, 178); }; GT34.prototype.defaultTextColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(51, 204, 255); }; GT34.prototype.arrowTimePerFrame_0 = function () { return 180; }; GT34.prototype.arrowFrameHeight_0 = function () { return 28; }; GT34.prototype.arrowFrameWidth_0 = function () { return 72; }; GT34.prototype.defaultTextAreaSmallLabelPanel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(90)) .fontColor_1(GT34.prototype.defaultLabelColor_0()) .insets_4(0, 0, 1, 3); }; GT34.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80)) .fontColor_1(GT34.prototype.defaultLabelColor_0()) .insets_4(0, 0, 1, 3); }; GT34.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT34.prototype.defaultFont_0().size_1(140)) .addFont_1(GT34.prototype.defaultFont_0().size_1(120)) .addFont_1(GT34.prototype.defaultFont_0().size_1(100)) .addFont_1(GT34.prototype.defaultFont_0().size_1(60)) .fontColor_1(GT34.prototype.defaultTextColor_0()) .breakLines_1(!1); }; GT34.prototype.defaultIconButton_4 = function (a, b, d, e) { return GT873.prototype .set_0() .size_2(e, e) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b, 2), Math.div(e - d, 2)) .size_2(b, d) .image_1(GT1390.prototype.set_0().file_1(a)) .transparency_1(GT1022.prototype.set_0().alpha_1(100)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b, 2), Math.div(e - d, 2)) .size_2(b, d) .image_1(GT1390.prototype.set_0().file_1(a)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b - 4, 2), Math.div(e - d - 4, 2)) .size_2(b + 4, d + 4) .image_1(GT1390.prototype.set_0().file_1(a)) .colorTransformation_1(GT656.prototype.set_0().percentage_RGB_3(70, 90, 90)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b - 2, 2), Math.div(e - d - 2, 2)) .size_2(b + 2, d + 2) .image_1(GT1390.prototype.set_0().file_1(a)) ); }; GT34.prototype.dragableCoverCreditsButtonWidthUncovered_0 = function () { return 50; }; GT34.prototype.coverCreditsButtonWidth_0 = function () { return 220; }; GT34.prototype.fullWidth_0 = function () { return 1366; }; GT34.prototype.bottomPartHeight_0 = function () { return 258; }; GT34.prototype.topPartHeight_0 = function () { return 60; }; GT34.prototype.ID_OVERLAY_GAMBLE = GT1560.prototype.generateID_0(); GT34.prototype.ID_OVERLAY_DECIDEGAMBLE = GT1560.prototype.generateID_0(); GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT = GT1560.prototype.generateID_0(); GT34.prototype.ID_ARROW_LEFT = GT1560.prototype.generateID_0(); GT34.prototype.ID_ARROW_RIGHT = GT1560.prototype.generateID_0(); GT34.prototype.ID_PANEL_BACKGROUND = GT1560.prototype.generateID_0(); GT34.prototype.ID_DIAMOND_AUTOPLAY = GT1560.prototype.generateID_0(); GT34.prototype.ID_DIAMOND_BET = GT1560.prototype.generateID_0(); GT34.prototype.ID_LOGO_NOVO = GT1560.prototype.generateID_0(); var GT12 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1186.prototype.set_0().position_2(Math.div(916, 2), 0).size_2(450, GT34.prototype.topPartHeight_0())) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1442.prototype.set_0().width_1(450)) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1240.prototype.set_0().x_1(100)) .modify_2(GT834.prototype.ID_LABEL_CREDIT, GT1240.prototype.set_0().x_1(100)) .modify_2(GT834.prototype.ID_CONTAINER_COVER_CREDITS, GT1240.prototype.set_0().x_1(105)) .modify_2(GT834.prototype.ID_FIELD_LASTWIN, GT1240.prototype.set_0().x_1(1036)) .modify_2(GT834.prototype.ID_LABEL_LASTWIN, GT1240.prototype.set_0().x_1(1036)) .modify_2(GT34.prototype.ID_ARROW_RIGHT, GT1240.prototype.set_0().x_1(450 - GT34.prototype.arrowFrameWidth_0())); }, }, "GT12", [] ), GT280 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .position_2(224, 835) .size_2(1600, 190) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1(GT280.prototype.logoImage_0()) .child_1(GT280.prototype.statusBackgroundImage_0()) .child_1(GT280.prototype.statusContainer_0()) .child_1(GT280.prototype.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_BETPERLINE).position_2(1327, 124).size_2(125, 52)) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BETPERLINE) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .position_2(1327, 124) .size_2(125, 18) .text_1("${console_label_betperline}") ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(1271, 114) .size_2(236, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(170, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1(GT280.prototype.defaultValueFieldBig_0().id_1(GT834.prototype.ID_FIELD_TOTALBET).position_2(1119, 20)) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(7, 7, 5, 0) .position_2(1119, 20) .size_2(190, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT280.prototype .defaultValueFieldBig_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .position_2(291, 20) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .soundCountEnd_1("/com/greentube/slot/client/res/thinclient/wincountstop.mp3") ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 5, 0) .position_2(291, 20) .size_2(190, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(1327, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(1327, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_start}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(1327, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(1327, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(103, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_autoplay}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(103, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_autostop}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(103, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_start.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(103, 0) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_gamble_red.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamblered}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(103, 58) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_gamble_black.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gambleblack}").fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0())) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .position_2(103, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable_2.png") .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("Game") ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .position_2(236, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable_2.png") .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("Payout") ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(369, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable_2.png") .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("${buttontext_paytable}") ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(236, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable_2.png") .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("${buttontext_paytablenext}") ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT280.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .insets_4(5, 5, 5, 5) .position_2(1151, 124) .size_2(70, 52) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/fieldbackground3.png").insets_4(6, 6, 6, 6)) ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .position_2(1151, 124) .size_2(70, 18) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lines}") ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(1095, 114) .size_2(181, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(115, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ); }, defaultPConsoleState_2: function (a, b) { return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, }, "GT280", [] ); GT280.prototype.statusContainer_0 = function () { return GT1186.prototype .set_0() .id_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .position_2(Math.div(1010, 2), 115) .size_2(590, 67) .child_1(GT1025.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT).position_2(0, 7).size_2(590, 57).imageFile_1("/com/greentube/slot/client/res/info_highlight_freegames.png").insets_4(15, 15, 15, 15)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 0, 0) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 0, 0) .breakLines_1(!1) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .position_2(900, 7) .size_2(113, 77) .insets_4(0, 0, 0, 0) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(190)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(130)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) ); }; GT280.prototype.logoImage_0 = function () { return GT1392.prototype.set_0().id_1(GT280.prototype.CONSOLE_LOGO).imageFile_1("console_logo.png").position_2(Math.div(1e3, 2), 18); }; GT280.prototype.statusBackgroundImage_0 = function () { return GT1025.prototype .set_0() .id_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .position_2(0, 117) .size_2(1600, 85) .imageFile_1("/com/greentube/slot/client/res/infoback.png") .insets_4(15, 15, 15, 15) .transparency_1(GT1022.prototype.set_0().percent_1(60)); }; GT280.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(130, 130, 130)) .insets_4(0, 0, 1, 3); }; GT280.prototype.defaultValueFieldBig_0 = function () { return GT280.prototype.defaultValueField_0().size_2(190, 80).background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/fieldbackground.png").insets_4(10, 10, 10, 10)); }; GT280.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(130)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(7, 7, 5, 5) .breakLines_1(!1) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/fieldbackground3.png").insets_4(6, 6, 6, 6)); }; GT280.prototype.CONSOLE_LOGO = GT1560.prototype.generateID_0(); GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS = GT1560.prototype.generateID_0(); GT280.prototype.ID_CONTAINER_CONSOLE_STATUS = GT1560.prototype.generateID_0(); var GT80 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, buttonText_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 7, 7) .breakLines_1(!1); }, getMargin_0: function () { return 60; }, console_2: function (a, b) { return a .size_2(GT80.prototype.fullWidth_0(), 860) .child_1( GT1392.prototype .set_0() .position_2(0, this.getMargin_0()) .image_1(GT1390.prototype.set_0().file_1(GT80.prototype.resourcePath + "touchdeck.png")) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(931, this.getMargin_0() + 429) .imageFile_1(GT80.prototype.resourcePath + "button_start.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(931, this.getMargin_0() + 429) .imageFile_1(GT80.prototype.resourcePath + "button_start.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(931, this.getMargin_0() + 429) .imageFile_1(GT80.prototype.resourcePath + "button_start.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(931, this.getMargin_0() + 429) .imageFile_1(GT80.prototype.resourcePath + "button_start.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(526, this.getMargin_0() + 538 - 12) .image_1(GT1390.prototype.set_0().file_1(GT80.prototype.resourcePath + "button_gamble.png")) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .position_2(116, this.getMargin_0() + 429) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(0, 0) .imageFile_1(GT80.prototype.resourcePath + "button_autostart.png") ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(0, 0) .imageFile_1(GT80.prototype.resourcePath + "button_autostart.png") ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .position_2(116, this.getMargin_0() + 429) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .position_2(0, 0) .imageFile_1(GT80.prototype.resourcePath + "button_autostart.png") ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .position_2(0, 0) .imageFile_1(GT80.prototype.resourcePath + "button_autostart.png") ) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .position_2(157, this.getMargin_0() + 132) .imageFile_1(GT80.prototype.resourcePath + "button_select.png") ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(973, this.getMargin_0() + 132) .imageFile_1(GT80.prototype.resourcePath + "button_info.png") ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(362, this.getMargin_0() + 225) .cyclic_1(!0) .buttonUp_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1(GT80.prototype.resourcePath + "button_bet.png") ) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(687, this.getMargin_0() + 225) .imageFile_1(GT80.prototype.resourcePath + "button_maxbet.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .position_2(687, this.getMargin_0() + 225) .imageFile_1(GT80.prototype.resourcePath + "button_maxbet.png") ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .position_2(362, this.getMargin_0() + 225) .imageFile_1(GT80.prototype.resourcePath + "button_bet.png") ); }, defaultConsoleStates_2: function (a, b) { return a .modifyState_2(GT725.prototype.BEFORE_SPIN, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.BEFORE_SPIN_CHANGE_BET, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.BEFORE_FREESPIN, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.BEFORE_GAMBLE, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.PAYTABLE, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.PAYTABLE_FREESPIN, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.SUPERGAME, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)) .modifyState_2(GT725.prototype.FEATURE, GT670.prototype.set_0().active_1(GT834.prototype.ID_BUTTON_AUTOPLAY).active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)); }, }, "GT80", [] ); GT80.prototype.fullWidth_0 = function () { return 1366; }; GT80.prototype.resourcePath = "/com/greentube/slot/client/res/thinclient/buttonpanel4/"; var GT98 = GT280.extend( { initialConstructor_0: function () { GT280.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT280.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.replace_2(GT1618.prototype.CONSOLE, GT385.prototype.set_0().position_2(382, 810).onlyChild_1(b.console_0().id_1(GT1618.prototype.CONSOLE)).contentScaledSize_2(1284, 150)); }, }, "GT98", [] ), GT81 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modifyState_2(GT725.prototype.BEFORE_SPIN, GT670.prototype.set_0().inactive_1(GT834.prototype.ID_BUTTON_PAYOUT)) .modifyState_2(GT725.prototype.BEFORE_SPIN_CHANGE_BET, GT670.prototype.set_0().inactive_1(GT834.prototype.ID_BUTTON_PAYOUT)) .modifyState_2(GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, GT670.prototype.set_0().inactive_1(GT834.prototype.ID_BUTTON_PAYOUT)) .modifyState_2(GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, GT670.prototype.set_0().inactive_1(GT834.prototype.ID_BUTTON_PAYOUT)); }, }, "GT81", [] ), GT170 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.realSize = null; GT1412.prototype.initialConstructor_1.call(this, a); this.realSize = b; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1186.prototype.set_0().child_1(a.position_2(0, 788).remove_1(GT1618.prototype.PAYTABLE_CONTAINER))) .child_1(b.paytable_0().position_2(this.getRealSize_0().x, 0).contentScaledSize_2(this.getRealSize_0().width, 900).animationTime_1(500).pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL)); }, }, "GT170", [] ), GT51 = GT170.extend( { initialConstructor_0: function () { GT170.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT170.prototype.initialConstructor_2.call(this, a, b); }, mainGui_2: function (a, b) { return GT170.prototype.mainGui_2 .call(this, a, b) .modify_2(GT1618.prototype.MAIN_GUI_CONTAINER, GT1240.prototype.set_0().y_1(646)) .modify_2(GT1618.prototype.PAYTABLE, GT1100.prototype.set_0().contentScaledSize_2(this.getRealSize_0().width, 800)); }, }, "GT51", [] ), GT22 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultButtonSize_0: function () { return 240; }, defaultButtonPosition_0: function () { return 505; }, iconButtonPosition_0: function () { return GT22.prototype.topPartHeight_0(); }, console_2: function (a, b) { return a .size_2(GT22.prototype.fullWidth_0(), GT22.prototype.topPartHeight_0() + GT22.prototype.bottomPartHeight_0()) .showTotalBetForBetSpinner_1(!0) .replace_2( GT34.prototype.ID_PANEL_BACKGROUND, GT1186.prototype .set_0() .id_1(GT34.prototype.ID_PANEL_BACKGROUND) .child_1( GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/high_background.png")) .position_2(GT22.prototype.bottomPartX_0(), GT22.prototype.topPartHeight_0()) .size_2(GT22.prototype.bottomPartWidth_0(), GT22.prototype.bottomPartHeight_0()) ) ) .replace_2( GT34.prototype.ID_LOGO_NOVO, GT1392.prototype .set_0() .id_1(GT34.prototype.ID_LOGO_NOVO) .position_2(Math.div(GT22.prototype.fullWidth_0() - 153, 2), GT22.prototype.topPartHeight_0() + 173) .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/logo_novo_2.png") ) .remove_1(GT34.prototype.ID_DIAMOND_AUTOPLAY) .replace_2( GT834.prototype.ID_BUTTON_AUTOPLAY, GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_autoplay}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - this.defaultButtonSize_0(), 2), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_AUTOSTOP, GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_autostop}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - this.defaultButtonSize_0(), 2), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .replace_2( GT834.prototype.ID_SPINNER_BETPERLINE, GT532.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .size_2(GT22.prototype.bottomPartWidth_0(), 90) .position_2(GT22.prototype.bottomPartX_0(), GT22.prototype.topPartHeight_0() + 363) .font_2(GT22.prototype.defaultFont_0().size_1(180), GT1391.prototype.set_0().white_0()) .spacing_1(35) .indicatorHeight_1(3) .buttonSpacing_1(120) .indicatorPosition_1(80) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/betselectorcover_l.png").position_2(0, 20).size_2(80, 50)) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/betselectorcover_r.png") .position_2(GT22.prototype.bottomPartWidth_0() - 80, 20) .size_2(80, 50) ) .child_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_min.png", 28, 30, 90).id_1(GT433.prototype.BUTTON_PREV).position_2(0, 0)) .child_1( this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_max.png", 28, 30, 90) .id_1(GT433.prototype.BUTTON_NEXT) .position_2(GT22.prototype.bottomPartWidth_0() - 90, 0) ) ) .replace_2( GT834.prototype.ID_BUTTON_PAYOUT, this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_payout.png", 80, 80, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .size_2(this.iconButtonSize_0(), this.iconButtonSize_0()) .position_2(GT22.prototype.bottomPartX_0() + 50, this.iconButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_info.png", 80, 80, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(GT22.prototype.bottomPartX_0() + 250, this.iconButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_GOMOBILE, this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_qr.png", 80, 80, this.iconButtonSize_0()) .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .size_2(this.iconButtonSize_0(), this.iconButtonSize_0()) .position_2(GT22.prototype.bottomPartX_0() + 450, this.iconButtonPosition_0()) ) .replace_2( GT834.prototype.ID_FIELD_TOTALBET, GT22.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .position_2(GT22.prototype.bottomPartX_0() + GT22.prototype.bottomPartWidth_0() - 300, GT22.prototype.topPartHeight_0() + 210) .size_2(300, 70) .insets_4(5, 5, 10, 0) ) .replace_2( GT834.prototype.ID_LABEL_BET, GT22.prototype .defaultTextAreaSmallLabelPanel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(5, 5, 0, 10) .position_2(GT22.prototype.bottomPartX_0() + GT22.prototype.bottomPartWidth_0() - 300, GT22.prototype.topPartHeight_0() + 280) .size_2(300, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .replace_2( GT834.prototype.ID_FIELD_LINES, GT22.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .position_2(GT22.prototype.bottomPartX_0(), GT22.prototype.topPartHeight_0() + 210) .insets_4(5, 5, 10, 0) .size_2(300, 70) ) .replace_2( GT834.prototype.ID_LABEL_LINES, GT22.prototype .defaultTextAreaSmallLabelPanel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .insets_4(5, 5, 0, 10) .position_2(GT22.prototype.bottomPartX_0(), GT22.prototype.topPartHeight_0() + 280) .size_2(300, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lines}") ) .remove_1(GT34.prototype.ID_OVERLAY_GAMBLE) .remove_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .replace_2( GT834.prototype.ID_BUTTON_COLLECT, GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_collect}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - (3 * this.defaultButtonSize_0() + 40), 2), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_GAMBLE, GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_default.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - (3 * this.defaultButtonSize_0() + 40), 2) + (2 * this.defaultButtonSize_0() + 40), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_GAMBLE_RED, GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamblered}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_gamble_r.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - (3 * this.defaultButtonSize_0() + 40), 2) + (this.defaultButtonSize_0() + 20), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .replace_2( GT834.prototype.ID_BUTTON_GAMBLE_BLACK, GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gambleblack}")) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_gamble_b.png")) .position_2(Math.div(GT22.prototype.fullWidth_0() - (3 * this.defaultButtonSize_0() + 40), 2) + (2 * this.defaultButtonSize_0() + 40), GT22.prototype.topPartHeight_0() + this.defaultButtonPosition_0()) ) .remove_1(GT34.prototype.ID_DIAMOND_BET) .remove_1(GT834.prototype.ID_BUTTON_MAX_BET) .remove_1(GT834.prototype.ID_BUTTON_MIN_BET); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_DECIDEGAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_OVERLAY_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultHighlightedButton_1: function (a) { return GT613.prototype .set_0() .clickableAreaShape_1(this.buttonshape_0()) .text_1(this.defaultDynamicTextAreaButton_0().size_2(this.defaultButtonSize_0(), this.defaultButtonSize_0()).insets_4(20, 20, 0, 0).text_1(a)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(107, 119, 138), GT1391.prototype.set_0().compRGB_3(150, 150, 150)); }, buttonshape_0: function () { return GT715.prototype .set_0() .setCoordinates_1([ 0, Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), 0, this.defaultButtonSize_0(), Math.div(this.defaultButtonSize_0(), 2), Math.div(this.defaultButtonSize_0(), 2), this.defaultButtonSize_0(), ]); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT22.prototype.defaultFont_0().size_1(180)) .addFont_1(GT22.prototype.defaultFont_0().size_1(160)) .addFont_1(GT22.prototype.defaultFont_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, iconButtonSize_0: function () { return 140; }, defaultButtonSizeGamble_0: function () { return 200; }, }, "GT22", [] ); GT22.prototype.defaultIconButton_4 = function (a, b, d, e) { return GT34.prototype.defaultIconButton_4(a, b, d, e); }; GT22.prototype.defaultFont_0 = function () { return GT34.prototype.defaultFont_0(); }; GT22.prototype.defaultLabelColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(36, 142, 178); }; GT22.prototype.defaultTextColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(51, 204, 255); }; GT22.prototype.defaultTextAreaSmallLabelPanel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT22.prototype.defaultLabelColor_0()) .insets_4(0, 0, 1, 3); }; GT22.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT22.prototype.defaultFont_0().size_1(250)) .addFont_1(GT22.prototype.defaultFont_0().size_1(220)) .addFont_1(GT22.prototype.defaultFont_0().size_1(160)) .addFont_1(GT22.prototype.defaultFont_0().size_1(140)) .fontColor_1(GT22.prototype.defaultTextColor_0()) .breakLines_1(!1); }; GT22.prototype.bottomPartWidth_0 = function () { return 1280; }; GT22.prototype.fullWidth_0 = function () { return GT34.prototype.fullWidth_0(); }; GT22.prototype.bottomPartX_0 = function () { return Math.div(GT22.prototype.fullWidth_0() - GT22.prototype.bottomPartWidth_0(), 2); }; GT22.prototype.bottomPartHeight_0 = function () { return 800; }; GT22.prototype.topPartHeight_0 = function () { return GT34.prototype.topPartHeight_0(); }; var GT15 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); this.realSize = a; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return a.remove_1(GT31.prototype.ID_LOGO_ABOVE_PAYTABLE).modify_2(GT1618.prototype.PAYTABLE, GT1100.prototype.set_0().position_2(this.getRealSize_0().x, 0).contentScaledSize_2(this.getRealSize_0().width, 768)); }, }, "GT15", [] ), GT31 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.realSize = null; GT1412.prototype.initialConstructor_1.call(this, a); this.realSize = d ? new GT1553(2048, b.height) : b; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1186.prototype.set_0().id_1(GT31.prototype.ID_LOGO_ABOVE_PAYTABLE).child_1(b.slotBackground_0())) .child_1(GT1186.prototype.set_0().child_1(a.position_2(0, 646).remove_1(GT1618.prototype.PAYTABLE_CONTAINER))) .child_1( b .paytable_0() .position_2(this.getRealSize_0().x, GT31.prototype.getLogoHeight_0()) .contentScaledSize_2(this.getRealSize_0().width, 768 - GT31.prototype.getLogoHeight_0()) .animationTime_1(500) .pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL) ); }, }, "GT31", [] ); GT31.prototype.getLogoHeight_0 = function () { return 130; }; GT31.prototype.ID_LOGO_ABOVE_PAYTABLE = GT1677.prototype.generateID_0(); var GT116 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, symbolImagesBlur_2: function (a, b) { return b.symbolImages_0(); }, }, "GT116", [] ), GT99 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.realSize = null; GT1412.prototype.initialConstructor_1.call(this, a); this.realSize = d ? new GT1553(2048, b.height) : b; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1186.prototype.set_0().child_1(a.position_2(0, 646).remove_1(GT1618.prototype.PAYTABLE_CONTAINER))) .child_1(b.paytable_0().position_2(this.getRealSize_0().x, 0).contentScaledSize_2(this.getRealSize_0().width, 768).animationTime_1(500).pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL)); }, }, "GT99", [] ), GT35 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, paytable_2: function (a, b) { return instanceOf(a, GT1100) ? a.animationTime_1(0).pageChangeAnimationType_1(GT999.prototype.ANIMATION_TYPE_NONE) : a; }, }, "GT35", [] ), GT281 = GT1412.extend( { initialConstructor_0: function () { this.bounceSoftness = this.stopDelay = this.minDuration = this.symbolsPerSecond = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.bounceSoftness = this.stopDelay = this.minDuration = this.symbolsPerSecond = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.symbolsPerSecond = b; this.minDuration = d; this.stopDelay = e; this.bounceSoftness = f; }, defaultReel_2: function (a, b) { 0 < this.symbolsPerSecond && a.speed_1(this.symbolsPerSecond); 0 <= this.bounceSoftness && a.bounceSoftness_1(this.bounceSoftness); return a; }, reel_2: function (a, b) { instanceOf(a, GT1304) && (0 < this.symbolsPerSecond && a.speed_1(this.symbolsPerSecond), 0 <= this.bounceSoftness && a.bounceSoftness_1(this.bounceSoftness)); return a; }, defaultReels_2: function (a, b) { 0 < this.minDuration && a.minDuration_1(this.minDuration); 0 < this.stopDelay && a.reelStopDelay_1(this.stopDelay); return a; }, reels_2: function (a, b) { instanceOf(a, GT1252) && (0 < this.minDuration && a.minDuration_1(this.minDuration), 0 < this.stopDelay && a.reelStopDelay_1(this.stopDelay)); return a; }, reelsInFreeGames_2: function (a, b) { instanceOf(a, GT1252) && (0 < this.minDuration && a.minDuration_1(this.minDuration), 0 < this.stopDelay && a.reelStopDelay_1(this.stopDelay)); return a; }, }, "GT281", [] ), GT181 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, gameLogo_2: function (a, b) { return null; }, gameLogoInFreeGames_2: function (a, b) { return null; }, platformLogo_2: function (a, b) { return null; }, }, "GT181", [] ), GT157 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .position_2(224, 820) .size_2(1600, 194) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1(GT280.prototype.logoImage_0()) .child_1(GT280.prototype.statusBackgroundImage_0()) .modify_2(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS, GT1240.prototype.set_0().y_1(115)) .child_1(GT280.prototype.statusContainer_0()) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1240.prototype.set_0().position_2(Math.div(800, 2), 107)) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1442.prototype.set_0().size_2(800, 85)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1240.prototype.set_0().position_2(0, 12)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1442.prototype.set_0().size_2(800, 65)) .child_1(GT280.prototype.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_BETPERLINE).position_2(1327, 124).size_2(125, 52)) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BETPERLINE) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .position_2(1327, 124) .size_2(125, 18) .text_1("${console_label_betperline}") ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(1271, 114) .size_2(236, 100) .buttonUp_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("+")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(170, 0) ) .buttonDown_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_plus_bordered.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("-")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(0, 0) ) ) .child_1(GT280.prototype.defaultValueFieldBig_0().id_1(GT834.prototype.ID_FIELD_TOTALBET).position_2(1281, 20).size_2(216, 80)) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(7, 7, 5, 0) .position_2(1281, 20) .size_2(216, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT280.prototype.defaultValueFieldBig_0().id_1(GT834.prototype.ID_FIELD_CREDIT).insets_4(7, 7, 5, 5).position_2(103, 20).size_2(216, 80).duration_1(3e3).sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 5, 0) .position_2(103, 20) .size_2(216, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit}") ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_FIELD_LINES) .insets_4(3, 7, 0, 3) .position_2(1401, 70) .size_2(96, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.LEFT) .fontColor_1(GT1391.prototype.set_0().yellow_0()) ) .child_1( GT280.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .insets_4(7, 3, 0, 3) .position_2(1281, 70) .size_2(120, 30) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.RIGHT) .text_1("${console_label_lines}") ) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(103, 124) .size_2(216, 52) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.MOUSEOVER).state_2(0, GT1236.prototype.PRESSED)) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_TEXT_AUTOSTOP) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(2, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/fieldbackground3.png").insets_4(6, 6, 6, 6)) .text_1("${buttontext_autoplay}") ) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(103, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_info}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(103, 124) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_paytable.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_info}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(-860, 127) .imageFile_1("/com/greentube/slot/client/res/thinclient/b_gamble.png") .text_1(this.defaultDynamicTextAreaButton_0().text_1("${buttontext_gamble}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ); }, defaultPConsoleState_2: function (a, b) { return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .remove_1(GT834.prototype.ID_FIELD_LINES) .remove_1(GT834.prototype.ID_LABEL_LINES); }, defaultDynamicTextAreaButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1); }, }, "GT157", [] ), GT43 = GT157.extend( { initialConstructor_0: function () { GT157.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT157.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return GT157.prototype.console_2 .call(this, a, b) .position_2(224, 790) .modify_2(GT280.prototype.CONSOLE_LOGO, GT1240.prototype.set_0().y_1(20)) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1240.prototype.set_0().x_1(168)) .modify_2(GT834.prototype.ID_LABEL_CREDIT, GT1240.prototype.set_0().x_1(168)) .modify_2(GT834.prototype.ID_FIELD_TOTALBET, GT1240.prototype.set_0().x_1(1216)) .modify_2(GT834.prototype.ID_LABEL_BET, GT1240.prototype.set_0().x_1(1216)) .modify_2(GT834.prototype.ID_FIELD_LINES, GT1240.prototype.set_0().x_1(1336)) .modify_2(GT834.prototype.ID_LABEL_LINES, GT1240.prototype.set_0().x_1(1216)) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE, GT1355.prototype.set_0().position_2(168, 109)) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, GT1355.prototype.set_0().position_2(168, 109)) .modify_2(GT834.prototype.ID_BUTTON_AUTOSTOP, GT873.prototype.set_0().position_2(168, 109)) .modify_2(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS, GT1240.prototype.set_0().y_1(102)) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1240.prototype.set_0().position_2(Math.div(800, 2) - 10, 102)) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1442.prototype.set_0().size_2(820, 60)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1240.prototype.set_0().position_2(0, 7)) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1442.prototype.set_0().size_2(820, 51)) .modify_2(GT834.prototype.ID_SPINNER_BETPERLINE, GT1240.prototype.set_0().x_1(1206).y_1(99)) .modify_2(GT834.prototype.ID_FIELD_BETPERLINE, GT1135.prototype.set_0().position_2(1262, 109)) .modify_2(GT834.prototype.ID_LABEL_BETPERLINE, GT1239.prototype.set_0().position_2(1262, 109)); }, }, "GT43", [] ), GT171 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.position_2(0, -116).modify_2(GT1618.prototype.PAYTABLE, GT1100.prototype.set_0().animationTime_1(500)); }, }, "GT171", [] ), GT52 = GT171.extend( { initialConstructor_0: function () { GT171.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT171.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return GT171.prototype.mainGui_2.call(this, a, b).position_2(0, -154); }, }, "GT52", [] ), GT32 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_FIELD_LASTWIN) .remove_1(GT834.prototype.ID_LABEL_LASTWIN) .replace_2( GT834.prototype.ID_BUTTON_PAYOUT, GT34.prototype .defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_payout.png", 60, 60, 60) .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .size_2(60, 60) .position_2(Math.div(GT34.prototype.fullWidth_0() - 1300, 2) + 75, 0) ) .child_1( GT34.prototype .defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_exit.png", 55, 55, 55) .id_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .size_2(60, 60) .position_2(Math.div(GT34.prototype.fullWidth_0() - 1300, 2) - 10, 2) ) .modify_2(GT834.prototype.ID_SPINNER_BETPERLINE, GT1303.prototype.set_0().position_2(450, -10).size_2(500, 50)) .modify_2(GT834.prototype.ID_BUTTON_SPINNER_BET_UP, GT873.prototype.set_0().position_2(200, 0)) .modify_2(GT834.prototype.ID_FIELD_TOTALBET, GT1135.prototype.set_0().position_2(478, 0)) .modify_2(GT834.prototype.ID_LABEL_BET, GT1239.prototype.set_0().position_2(478, 35)) .modify_2(GT834.prototype.ID_BUTTON_SPINNER_BET_UP, GT873.prototype.set_0().position_2(110, 0)) .modify_2(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS, GT1186.prototype.set_0().position_2(550, 0)) .remove_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1135.prototype.set_0().position_2(175, 0).size_2(200, 60)) .modify_2(GT834.prototype.ID_LABEL_CREDIT, GT1239.prototype.set_0().position_2(175, 35).size_2(200, 23)) .remove_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .replace_2( GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, GT34.prototype.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/b_info.png", 40, 60, 80).id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT).size_2(60, 60).position_2(365, -10) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(1220, 3) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_spin.png").overrideSize_2(110, 55)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("${buttontext_start}") ) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(1220, 3) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_spin.png").overrideSize_2(110, 55)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("${buttontext_collect}") ) ) .child_1( GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(1e3, 3) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_spin.png").overrideSize_2(110, 55)) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1( GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .text_1("${buttontext_gamble}") ) ); }, }, "GT32", [] ), GT100 = GT1412.extend( { initialConstructor_0: function () { this.goMobile = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.goMobile = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.goMobile = b; }, getConsoleHeight_0: function () { return 60; }, console_2: function (a, b) { var d = b .defaultConsoleStates_0() .position_2(Math.div(2048 - GT100.prototype.fullWidth_0(), 2), 830) .size_2(GT100.prototype.fullWidth_0(), this.getConsoleHeight_0()) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1(GT1392.prototype.set_0().imageFile_1(GT100.prototype.resourcePath + "menu_bgbar_bottom.png")) .child_1( GT100.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .insets_4(7, 7, 15, 0) .position_2(70, 0) .size_2(205, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bg_lastwin.png") .size_2(205, this.getConsoleHeight_0() - 8) .position_2(0, 4) ) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 0, 0) .position_2(70, 2) .size_2(205, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit_plurius}") ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .position_2(55, 0) .size_2(GT100.prototype.coverCreditsButtonWidth_0() + 331, this.getConsoleHeight_0()) .child_1(GT531.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS).size_2(GT100.prototype.coverCreditsButtonWidth_0(), this.getConsoleHeight_0())) .child_1(this.defaultHideCreditImage_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE).hide_1(!0)) .child_1(this.defaultHideCreditImageOpen_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN)) .hide_1(!0) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .position_2(GT100.prototype.coverCreditsButtonWidth_0(), 0) .clickableAreaShape_1( GT715.prototype .set_0() .setCoordinates_1([ 0, 0, GT100.prototype.dragableCoverCreditsButtonWidthUncovered_0(), 0, GT100.prototype.dragableCoverCreditsButtonWidthUncovered_0(), this.getConsoleHeight_0(), 0, this.getConsoleHeight_0(), ]) ) .child_1(this.defaultHideCreditImageOpen_0()) ) ) .child_1(GT1186.prototype.set_0().id_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT)); this.goMobile ? d .child_1(this.statusContainer_0()) .child_1(this.defaultSpacerImage_0().position_2(802, 0)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(130)) .fontColor_1(GT100.prototype.defaultValueColor_0()) .shadow_3(1, 1, GT1391.prototype.set_0().black_0()) .breakLines_1(!1) .position_2(808, 0) .size_2(150, this.getConsoleHeight_0()) .insets_4(7, 7, 20, 0) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(20, 20, 0, 0) .position_2(808, 2) .size_2(150, 25) .fontColor_1(GT1391.prototype.set_0().compRGB_3(69, 42, 3)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT100.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 8, 0) .position_2(953, 4) .size_2(200, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0() - 8) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(958, 25) .size_2(200, this.getConsoleHeight_0() - 25) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) .text_1("${console_lastwin_na}") ) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(953, 2) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT100.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .insets_4(7, 7, 8, 0) .position_2(953, 4) .size_2(200, this.getConsoleHeight_0()) .background_1( GT1392.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0() - 8) ) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .insets_4(7, 7, 0, 0) .position_2(953, 2) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .child_1(this.defaultSpacerImage_0().position_2(1158, 0)) .child_1( GT1355.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bttn_info.png") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1159, 0) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .imageFile_1(GT100.prototype.resourcePath + "bttn_mobile.png") .position_2(1229, 0) ) : d .child_1(this.statusContainer_0()) .child_1(this.defaultSpacerImage_0().position_2(852, 0)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(130)) .fontColor_1(GT100.prototype.defaultValueColor_0()) .shadow_3(1, 1, GT1391.prototype.set_0().black_0()) .breakLines_1(!1) .position_2(858, 0) .size_2(150, this.getConsoleHeight_0()) .insets_4(7, 7, 20, 0) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(20, 20, 0, 0) .position_2(858, 2) .size_2(150, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().compRGB_3(69, 42, 3)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .text_1("${console_label_bet}") ) .child_1( GT100.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 8, 0) .position_2(1003, 4) .size_2(200, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0() - 8) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(1008, 25) .size_2(200, this.getConsoleHeight_0() - 25) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) .text_1("${console_lastwin_na}") ) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(1003, 2) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT100.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .insets_4(7, 7, 8, 0) .position_2(1003, 4) .size_2(200, this.getConsoleHeight_0()) .background_1( GT1392.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0() - 8) ) ) .child_1( GT100.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .insets_4(7, 7, 0, 0) .position_2(1003, 2) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .child_1(this.defaultSpacerImage_0().position_2(1208, 0)) .child_1( GT1355.prototype .set_0() .imageFile_1(GT100.prototype.resourcePath + "bttn_info.png") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1209, 0) ); return d; }, defaultSpacerImage_0: function () { return GT1392.prototype.set_0().imageFile_1(GT100.prototype.resourcePath + "menu_divider_bottombar.png"); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultPConsoleState_2: function (a, b) { return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS) .active_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .active_1(GT100.prototype.ID_PANEL_BACKGROUND) .active_1(GT100.prototype.ID_DIAMOND_AUTOPLAY) .active_1(GT100.prototype.ID_DIAMOND_BET) .active_1(GT100.prototype.ID_LOGO_NOVO) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE); }, statusContainer_0: function () { return GT1186.prototype .set_0() .id_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .position_2(Math.div(1006, 2) - 80, 0) .size_2(360, this.getConsoleHeight_0()) .child_1(GT1186.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(160)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(140)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(120)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(100)) .fontColor_1(GT100.prototype.defaultLabelColor_0()) .outline_2(1, GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .insets_4(0, 0, 0, 5) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(160)) .fontColor_1(GT100.prototype.defaultLabelColor_0()) .outline_2(1, GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .insets_4(0, 0, 0, 5) .breakLines_1(!1) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .position_2(900, 7) .size_2(113, this.getConsoleHeight_0()) .insets_4(0, 0, 0, 5) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT100.prototype.defaultLabelFont_0().size_1(160)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) ); }, defaultHideCreditImage_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT100.prototype.resourcePath + "credit_cover.png")) .position_2(0, 0) .size_2(331, this.getConsoleHeight_0()); }, defaultHideCreditImageOpen_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT100.prototype.resourcePath + "credit_cover_open.png")) .position_2(0, 0) .size_2(331, this.getConsoleHeight_0()); }, }, "GT100", [] ); GT100.prototype.fullWidth_0 = function () { return 1366; }; GT100.prototype.defaultValueColor_0 = function () { return GT1391.prototype.set_0().white_0(); }; GT100.prototype.defaultLabelColor_0 = function () { return GT1391.prototype.set_0().compRGB_3(69, 42, 3); }; GT100.prototype.defaultValueFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150); }; GT100.prototype.defaultLabelFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(95); }; GT100.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(210)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT100.prototype.defaultValueFont_0().size_1(120)) .fontColor_1(GT100.prototype.defaultValueColor_0()) .shadow_3(1, 1, GT1391.prototype.set_0().black_0()) .breakLines_1(!1); }; GT100.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT100.prototype.defaultLabelFont_0()) .fontColor_1(GT1391.prototype.set_0().compRGB_3(169, 140, 94)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(69, 42, 3)) .insets_4(0, 0, 1, 3); }; GT100.prototype.dragableCoverCreditsButtonWidthUncovered_0 = function () { return 80; }; GT100.prototype.coverCreditsButtonWidth_0 = function () { return 220; }; GT100.prototype.arrowTimePerFrame_0 = function () { return 180; }; GT100.prototype.arrowFrameHeight_0 = function () { return 28; }; GT100.prototype.arrowFrameWidth_0 = function () { return 72; }; GT100.prototype.ID_ARROW_LEFT = GT1560.prototype.generateID_0(); GT100.prototype.ID_ARROW_RIGHT = GT1560.prototype.generateID_0(); GT100.prototype.ID_PANEL_BACKGROUND = GT1560.prototype.generateID_0(); GT100.prototype.ID_DIAMOND_AUTOPLAY = GT1560.prototype.generateID_0(); GT100.prototype.ID_DIAMOND_BET = GT1560.prototype.generateID_0(); GT100.prototype.ID_LOGO_NOVO = GT1560.prototype.generateID_0(); GT100.prototype.resourcePath = "/com/greentube/slot/client/res/thinclient/lv_2016/"; var GT53 = GT1412.extend( { initialConstructor_0: function () { this.autoplayMeter = this.goMobile = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.autoplayMeter = this.goMobile = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.goMobile = b; this.autoplayMeter = d; }, loadResources_1: function (a) { GT1412.prototype.loadResources_1.call(this, a); a.getResourceManager_0().startLoadImage_4(GT53.prototype.resourcePath + "click.png", 1, 21, !1); }, getConsoleHeight_0: function () { return 60; }, getConsoleY_0: function () { return this.autoplayMeter ? 42 : 0; }, createAutoplayMeterCancelButton_0: function () { return GT1186.prototype .set_0() .child_1( GT818.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bttn_autoplaymeter_cancel.png") .width_1(128) .height_1(44) .translation_2(0, 44) .scale_2(1, -1) ) .child_1(GT53.prototype.defaultTextAreaSmallLabel_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(110)).text_1("${autoplaymeter_cancel}").insets_4(7, 7, 4, 19)); }, console_2: function (a, b) { var d = b .defaultConsoleStates_0() .position_2(Math.div(2048 - GT53.prototype.fullWidth_0(), 2), 830 - this.getConsoleY_0()) .size_2(GT53.prototype.fullWidth_0(), this.getConsoleHeight_0() + this.getConsoleY_0()) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3"); this.autoplayMeter && d.child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL) .size_2(128, 42) .position_2(726 - (this.goMobile ? 50 : 0), this.getConsoleY_0()) .dragArea_4(726 - (this.goMobile ? 50 : 0), 0, 0, 42) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) ); d.child_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "menu_bgbar_bottom.png") .position_2(0, this.getConsoleY_0()) ) .child_1( GT53.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .insets_4(7, 7, 15, 0) .position_2(50, this.getConsoleY_0()) .size_2(230, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 0, 0) .position_2(50, this.getConsoleY_0()) .size_2(230, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit_plurius}") ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .position_2(55, this.getConsoleY_0()) .size_2(GT53.prototype.coverCreditsButtonWidth_0() + 331, this.getConsoleHeight_0()) .child_1(GT531.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS).size_2(GT53.prototype.coverCreditsButtonWidth_0(), this.getConsoleHeight_0())) .child_1(this.defaultHideCreditImage_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE).hide_1(!0)) .child_1(this.defaultHideCreditImageOpen_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN)) .hide_1(!0) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .position_2(GT53.prototype.coverCreditsButtonWidth_0(), 0) .clickableAreaShape_1( GT715.prototype .set_0() .setCoordinates_1([ 0, 0, GT53.prototype.dragableCoverCreditsButtonWidthUncovered_0(), 0, GT53.prototype.dragableCoverCreditsButtonWidthUncovered_0(), this.getConsoleHeight_0(), 0, this.getConsoleHeight_0(), ]) ) .child_1(this.defaultHideCreditImageOpen_0()) ) ) .child_1(GT1186.prototype.set_0().id_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT)); this.goMobile ? d .child_1(this.statusContainer_0()) .child_1(this.defaultSpacerImage_0().position_2(802, this.getConsoleY_0())) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(130)) .fontColor_1(GT53.prototype.defaultValueColor_0()) .breakLines_1(!1) .position_2(808, this.getConsoleY_0()) .size_2(150, this.getConsoleHeight_0()) .insets_4(7, 7, 20, 0) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(20, 20, 0, 0) .position_2(808, this.getConsoleY_0()) .size_2(150, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT53.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 15, 0) .position_2(958, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(958, this.getConsoleY_0() + 25) .size_2(200, this.getConsoleHeight_0() - 25) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) .text_1("${console_lastwin_na}") ) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(958, this.getConsoleY_0()) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT53.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .insets_4(7, 7, 15, 0) .position_2(958, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .insets_4(7, 7, 0, 0) .position_2(958, this.getConsoleY_0()) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .child_1( GT1186.prototype .set_0() .position_2(958, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(210)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(120)) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) .insets_4(7, 7, 0, 0) ) ) .child_1(this.defaultSpacerImage_0().position_2(1158, this.getConsoleY_0())) .child_1( GT1355.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bttn_info.png") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1159, this.getConsoleY_0()) ) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .imageFile_1(GT53.prototype.resourcePath + "bttn_mobile.png") .position_2(1229, this.getConsoleY_0()) ) : d .child_1(this.statusContainer_0()) .child_1(this.defaultSpacerImage_0().position_2(852, this.getConsoleY_0())) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(130)) .fontColor_1(GT53.prototype.defaultValueColor_0()) .breakLines_1(!1) .position_2(858, this.getConsoleY_0()) .size_2(150, this.getConsoleHeight_0()) .insets_4(7, 7, 20, 0) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(20, 20, 0, 0) .position_2(858, this.getConsoleY_0()) .size_2(150, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT53.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 15, 0) .position_2(1008, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(1008, this.getConsoleY_0() + 25) .size_2(200, this.getConsoleHeight_0() - 25) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) .text_1("${console_lastwin_na}") ) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 0, 0) .position_2(1008, this.getConsoleY_0()) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT53.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .insets_4(7, 7, 15, 0) .position_2(1008, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .insets_4(7, 7, 0, 0) .position_2(1008, this.getConsoleY_0()) .size_2(200, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .child_1( GT1186.prototype .set_0() .position_2(1008, this.getConsoleY_0()) .size_2(200, this.getConsoleHeight_0()) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(210)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(120)) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1( GT1392.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bg_lastwin.png") .size_2(200, this.getConsoleHeight_0()) ) .insets_4(7, 7, 0, 0) ) ) .child_1(this.defaultSpacerImage_0().position_2(1208, this.getConsoleY_0())) .child_1( GT1355.prototype .set_0() .imageFile_1(GT53.prototype.resourcePath + "bttn_info.png") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1209, this.getConsoleY_0()) ); this.autoplayMeter && d .child_1(this.defaultSpacerImage_0().position_2(720 - (this.goMobile ? 50 : 0), this.getConsoleY_0())) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .imageFile_1(GT53.prototype.resourcePath + "bttn_autoplaymeter.png") .position_2(726 - (this.goMobile ? 50 : 0), this.getConsoleY_0()) ) .child_1( GT53.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAYMETER) .insets_4(20, 20, 0, 0) .position_2(726 - (this.goMobile ? 50 : 0), this.getConsoleY_0()) .size_2(128, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${buttontext_autoplay}") ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(130)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(110)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(90)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(70)) .fontColor_1(GT53.prototype.defaultValueColor_0()) .breakLines_1(!1) .position_2(726 - (this.goMobile ? 50 : 0), this.getConsoleY_0()) .size_2(128, this.getConsoleHeight_0()) .insets_4(15, 17, 28, 5) ); return d; }, defaultSpacerImage_0: function () { return GT1392.prototype.set_0().imageFile_1(GT53.prototype.resourcePath + "menu_divider_bottombar.png"); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultPConsoleState_2: function (a, b) { this.autoplayMeter && a.inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER).active_1(GT834.prototype.ID_TEXT_AUTOPLAYMETER).active_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER).active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL); return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS) .active_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .active_1(GT53.prototype.ID_PANEL_BACKGROUND) .active_1(GT53.prototype.ID_DIAMOND_AUTOPLAY) .active_1(GT53.prototype.ID_DIAMOND_BET) .active_1(GT53.prototype.ID_LOGO_NOVO) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .inactive_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE); }, statusContainer_0: function () { var a = 360 - (this.goMobile && this.autoplayMeter ? 50 : 0), b = Math.div(1366 - a, 2) - 80; this.autoplayMeter && (b -= 70); this.goMobile && this.autoplayMeter && (b -= 25); return GT1186.prototype .set_0() .id_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .position_2(b, this.getConsoleY_0()) .size_2(a, this.getConsoleHeight_0()) .child_1(GT1186.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(160)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(140)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(120)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(100)) .fontColor_1(GT53.prototype.defaultLabelColor_0()) .outline_2(0, null) .insets_4(0, 0, 0, 5) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT53.prototype.defaultLabelFont_0().size_1(160)) .fontColor_1(GT53.prototype.defaultLabelColor_0()) .outline_2(0, null) .insets_4(0, 0, 0, 5) .breakLines_1(!1) .duration_1(3e3) ); }, defaultHideCreditImage_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT53.prototype.resourcePath + "credit_cover.png")) .position_2(0, 0) .size_2(331, this.getConsoleHeight_0()); }, defaultHideCreditImageOpen_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT53.prototype.resourcePath + "credit_cover_open.png")) .position_2(0, 0) .size_2(331, this.getConsoleHeight_0()); }, }, "GT53", [] ); GT53.prototype.fullWidth_0 = function () { return 1366; }; GT53.prototype.defaultValueColor_0 = function () { return GT1391.prototype.set_0().white_0(); }; GT53.prototype.defaultLabelColor_0 = function () { return GT1391.prototype.set_0().hexRGB_1("F5E17D"); }; GT53.prototype.defaultValueFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150); }; GT53.prototype.defaultLabelFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100); }; GT53.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(210)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT53.prototype.defaultValueFont_0().size_1(120)) .fontColor_1(GT53.prototype.defaultValueColor_0()) .breakLines_1(!1); }; GT53.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype.set_0().hAlign_1(GT1488.prototype.CENTER).vAlign_1(GT1489.prototype.CENTER).font_1(GT53.prototype.defaultLabelFont_0()).fontColor_1(GT53.prototype.defaultLabelColor_0()).insets_4(0, 0, 1, 3); }; GT53.prototype.dragableCoverCreditsButtonWidthUncovered_0 = function () { return 80; }; GT53.prototype.coverCreditsButtonWidth_0 = function () { return 220; }; GT53.prototype.arrowTimePerFrame_0 = function () { return 180; }; GT53.prototype.arrowFrameHeight_0 = function () { return 28; }; GT53.prototype.arrowFrameWidth_0 = function () { return 72; }; GT53.prototype.ID_ARROW_LEFT = GT1560.prototype.generateID_0(); GT53.prototype.ID_ARROW_RIGHT = GT1560.prototype.generateID_0(); GT53.prototype.ID_PANEL_BACKGROUND = GT1560.prototype.generateID_0(); GT53.prototype.ID_DIAMOND_AUTOPLAY = GT1560.prototype.generateID_0(); GT53.prototype.ID_DIAMOND_BET = GT1560.prototype.generateID_0(); GT53.prototype.ID_LOGO_NOVO = GT1560.prototype.generateID_0(); GT53.prototype.resourcePath = "/com/greentube/slot/client/res/thinclient/plurius_2015/"; var GT16 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1442.prototype.set_0().width_1(205)) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1240.prototype.set_0().x_1(70)) .modify_2(GT834.prototype.ID_CONTAINER_COVER_CREDITS, GT1240.prototype.set_0().x_1(70)); }, }, "GT16", [] ), GT101 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modify_2( GT834.prototype.ID_FIELD_LASTWIN, GT1135.prototype .set_0() .size_2(150, GT34.prototype.topPartHeight_0() - 5) .position_2(1016, 0) .insets_4(5, 5, 5, 15) ) .modify_2( GT834.prototype.ID_LABEL_LASTWIN, GT1239.prototype .set_0() .size_2(150, 23) .position_2(1016, GT34.prototype.topPartHeight_0() - 5 - 23) .insets_4(3, 3, 0, 0) ) .replace_2( GT834.prototype.ID_FIELD_TOTALBET, GT34.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .size_2(150, GT34.prototype.topPartHeight_0() - 5) .position_2(1166, 0) .insets_4(5, 5, 5, 15) ) .replace_2( GT834.prototype.ID_LABEL_BET, GT34.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .text_1("${console_label_bet}") .size_2(150, 23) .position_2(1166, GT34.prototype.topPartHeight_0() - 5 - 23) .insets_4(3, 3, 0, 0) ) .replace_2( GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .size_2(70, GT34.prototype.topPartHeight_0()) .child_1( GT1392.prototype .set_0() .position_2(Math.div(30, 2), 0) .size_2(40, GT34.prototype.topPartHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/b_info.png")) .transparency_1(GT1022.prototype.set_0().alpha_1(100)) ) .child_1(GT1392.prototype.set_0().position_2(Math.div(30, 2), 0).size_2(40, GT34.prototype.topPartHeight_0()).image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/b_info.png"))) .child_1( GT1392.prototype .set_0() .position_2(Math.div(22, 2), -4) .size_2(48, GT34.prototype.topPartHeight_0() + 8) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/b_info.png")) .colorTransformation_1(GT656.prototype.set_0().percentage_RGB_3(70, 90, 90)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(26, 2), -2) .size_2(44, GT34.prototype.topPartHeight_0() + 4) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/b_info.png")) ) .position_2(941, 0) ); }, }, "GT101", [] ), GT26 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .modify_2(GT834.prototype.ID_FIELD_TOTALBET, GT1442.prototype.set_0().width_1(140)) .modify_2(GT834.prototype.ID_LABEL_BET, GT1442.prototype.set_0().width_1(140)) .modify_2(GT834.prototype.ID_FIELD_TOTALBET, GT1240.prototype.set_0().x_1(1126)) .modify_2(GT834.prototype.ID_LABEL_BET, GT1240.prototype.set_0().x_1(1126)) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, GT1240.prototype.set_0().x_1(911)) .modify_2(GT834.prototype.ID_FIELD_LASTWIN, GT1442.prototype.set_0().width_1(140)) .modify_2(GT834.prototype.ID_LABEL_LASTWIN, GT1442.prototype.set_0().width_1(140)) .modify_2(GT834.prototype.ID_FIELD_LASTWIN, GT1240.prototype.set_0().x_1(986)) .modify_2(GT834.prototype.ID_LABEL_LASTWIN, GT1240.prototype.set_0().x_1(986)); }, }, "GT26", [] ), GT59 = GT1412.extend( { initialConstructor_0: function () { this.autoplayMeter = this.showSettingsButton = this.goMobile = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.autoplayMeter = this.showSettingsButton = this.goMobile = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.goMobile = b; this.showSettingsButton = d; this.autoplayMeter = e; }, loadResources_1: function (a) { GT1412.prototype.loadResources_1.call(this, a); a.getResourceManager_0().startLoadImage_4(GT59.prototype.resourcePath + "click.png", 1, 21, !1); }, getConsoleHeight_0: function () { return 60; }, createAutoplayMeterCancelButton_0: function () { return GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().imageFile_1(GT59.prototype.resourcePath + "bttn_autoplaymeter_cancel.png")) .child_1(GT59.prototype.defaultTextAreaSmallLabel_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(110)).text_1("${autoplaymeter_cancel}").insets_4(7, 7, 19, 4)); }, console_2: function (a, b) { var d = 0; this.showSettingsButton && (d = -50); var e = b .defaultConsoleStates_0() .position_2(Math.div(2048 - GT59.prototype.fullWidth_0(), 2), 828) .size_2(GT59.prototype.fullWidth_0(), 830) .showTotalBetForBetSpinner_1(!0) .winText_1("${console_wintext}") .soundDecideGamble_3("/com/greentube/slot/client/res/thinclient/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/thinclient/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/thinclient/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForAutoPlayStopAtFeatureScreen_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/thinclient/changebet.mp3") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .child_1(GT1392.prototype.set_0().imageFile_1(GT59.prototype.resourcePath + "vip_menu_bgbar_bottom.png")) .child_1(this.statusContainer_0()); this.autoplayMeter && e.child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL) .size_2(128, 42) .position_2(838 + d - 6 - 126, 62 + (this.getConsoleHeight_0() - 42)) .dragArea_4(838 + d - 6 - 126, 62 + (this.getConsoleHeight_0() - 42), 0, 42) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) .child_1(this.createAutoplayMeterCancelButton_0()) ); e.child_1( GT1392.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "vip_menu_bgbar_bottom.png") .position_2(0, 62) ) .child_1(this.defaultSpacerImage_0().position_2(144, 62)) .child_1( GT59.prototype.defaultValueField_0().id_1(GT834.prototype.ID_FIELD_CREDIT).insets_4(7, 7, 25, 0).position_2(150, 62).size_2(260, 62).duration_1(3e3).sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( GT1355.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "vip_bttn_cashout.png") .id_1(GT834.prototype.ID_BUTTON_PAYOUT) .position_2(80, 62) ) .child_1( GT59.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .insets_4(7, 7, 3, 0) .position_2(150, 57) .size_2(260, 35) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_credit_plurius}") ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .position_2(144, 62) .size_2(GT59.prototype.coverCreditsButtonWidth_0() + 331, 62) .child_1(GT531.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS).size_2(GT59.prototype.coverCreditsButtonWidth_0(), 62)) .child_1(this.defaultHideCreditImage_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE).hide_1(!0)) .child_1(this.defaultHideCreditImageOpen_0().id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN).hide_1(!0)) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .position_2(GT59.prototype.coverCreditsButtonWidth_0(), 0) .clickableAreaShape_1( GT715.prototype.set_0().setCoordinates_1([0, 0, GT59.prototype.dragableCoverCreditsButtonWidthUncovered_0(), 0, GT59.prototype.dragableCoverCreditsButtonWidthUncovered_0(), 62, 0, 62]) ) .child_1(this.defaultHideCreditImageOpen_0()) ) ) .child_1(this.defaultSpacerImage_0().position_2(832 + d, 62)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(130)) .fontColor_1(GT59.prototype.defaultValueColor_0()) .breakLines_1(!1) .position_2(838 + d, 62) .size_2(170, 62) .insets_4(7, 7, 30, 0) ) .child_1( GT59.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BET) .insets_4(20, 20, 3, 0) .position_2(838 + d, 57) .size_2(170, 35) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_bet}") ) .child_1( GT59.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .insets_4(7, 7, 25, 0) .position_2(1008 + d, 62) .size_2(200, 62) .duration_1(3e3) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .background_1( GT1392.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "bg_lastwin.png") .size_2(200, 62) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(1008 + d, 92) .size_2(200, 32) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(80)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(70)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).italic_0().bold_0().size_1(60)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) .text_1("${console_lastwin_na}") ) ) .child_1( GT59.prototype .defaultTextAreaSmallLabelLastWin_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .insets_4(7, 7, 3, 0) .position_2(1008 + d, 57) .size_2(200, 35) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lastwin}") ) .child_1( GT59.prototype .defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .insets_4(7, 7, 25, 0) .position_2(1008 + d, 62) .size_2(200, 62) .background_1( GT1392.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "bg_lastwin.png") .size_2(200, 62) ) ) .child_1( GT59.prototype .defaultTextAreaSmallLabelLastWin_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .insets_4(7, 7, 3, 0) .position_2(1008 + d, 57) .size_2(200, 35) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .child_1(this.defaultSpacerImage_0().position_2(1208 + d, 62)) .child_1( GT1355.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "vip_bttn_info.png") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .position_2(1218 + d, 62) ) .child_1(GT1186.prototype.set_0().id_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT)) .child_1( GT1392.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "vip_menu_bgbar_bottom.png") .position_2(0, 768) ) .child_1( GT636.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .size_2(GT59.prototype.fullWidth_0() - 220, 62) .position_2(170, 768) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(190)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(160)) .numberOfValuesPerPage_1(8) .fontColor_1(GT1391.prototype.set_0().white_0()) .indicatorTransparency_1(GT1022.prototype.set_0().alpha_1(128)) .horizontalInsets_1(30) .dividerImage_1(GT1390.prototype.set_0().file_1(GT59.prototype.resourcePath + "vip_menu_divider_bottombar.png")) .child_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_min.png", 28, 30, 90).id_1(GT521.prototype.BUTTON_PREV).position_2(30, -15)) .child_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_max.png", 28, 30, 90).id_1(GT521.prototype.BUTTON_NEXT).position_2(1025, -15)) ) .child_1( GT636.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .size_2(GT59.prototype.fullWidth_0() - 220, 62) .position_2(170, -62) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(190)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(170)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(160)) .numberOfValuesPerPage_1(10) .fontColor_1(GT1391.prototype.set_0().white_0()) .indicatorTransparency_1(GT1022.prototype.set_0().alpha_1(128)) .horizontalInsets_1(30) .dividerImage_1(GT1390.prototype.set_0().file_1(GT59.prototype.resourcePath + "vip_menu_divider_bottombar.png")) .child_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_min.png", 28, 30, 90).id_1(GT521.prototype.BUTTON_PREV).position_2(30, -15)) .child_1(this.defaultIconButton_4("/com/greentube/slot/client/res/thinclient/buttonpanel_v2/b_max.png", 28, 30, 90).id_1(GT521.prototype.BUTTON_NEXT).position_2(1025, -15)) ) .child_1( GT59.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_BETPERLINE) .position_2(70, 768) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(180)) .insets_4(10, 20, 0, 0) .size_2(160, 62) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.RIGHT) .text_1("${console_label_bet}") ) .child_1( GT59.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_LINES) .position_2(70, -62) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(180)) .insets_4(20, 20, 0, 0) .size_2(160, 62) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.RIGHT) .text_1("${console_label_lines}") ) .child_1(GT873.prototype.set_0().id_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES).size_2(160, 62).position_2(70, 768)); this.goMobile && e.child_1(this.defaultSpacerImage_0().position_2(760 + d - (this.autoplayMeter ? 132 : 0), 62)).child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_GOMOBILE) .position_2(770 + d - (this.autoplayMeter ? 132 : 0), 62) .imageFile_1("/com/greentube/slot/client/res/thinclient/plurius_2015/bttn_mobile.png") ); this.showSettingsButton && e.child_1( GT1355.prototype .set_0() .imageFile_1(GT59.prototype.resourcePath + "vip_bttn_settings.png") .id_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .position_2(1218, 62) ); this.autoplayMeter && e .child_1(this.defaultSpacerImage_0().position_2(838 + d - 6 - 126 - 6, 62)) .child_1( GT1355.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .imageFile_1(GT59.prototype.resourcePath + "bttn_autoplaymeter.png") .position_2(838 + d - 6 - 126, 62) ) .child_1( GT59.prototype .defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAYMETER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(120)) .insets_4(15, 17, 0, 0) .position_2(838 + d - 6 - 126, 62) .size_2(128, 25) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${buttontext_autoplay}") ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(130)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(110)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(100)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(80)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(60)) .fontColor_1(GT59.prototype.defaultValueColor_0()) .breakLines_1(!1) .position_2(838 + d - 6 - 126, 62) .size_2(128, this.getConsoleHeight_0()) .insets_4(15, 17, 28, 5) ); return e; }, defaultSpacerImage_0: function () { return GT1392.prototype.set_0().imageFile_1(GT59.prototype.resourcePath + "vip_menu_divider_bottombar.png"); }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_MIN_BET) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .highlighted_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_RED) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GOMOBILE) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_BUTTON_MIN_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .active_1(GT34.prototype.ID_GAME_SPECIFIC_CONSOLE_CONTENT) ); }, defaultPConsoleState_2: function (a, b) { this.autoplayMeter && a.inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER).active_1(GT834.prototype.ID_TEXT_AUTOPLAYMETER).active_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER).active_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL); return a .active_1(GT280.prototype.ID_BACKGROUND_CONSOLE_STATUS) .active_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .active_1(GT280.prototype.CONSOLE_LOGO) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE) .active_1(GT834.prototype.ID_BUTTON_COVER_CREDITS) .active_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS) .active_1(GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS) .active_1(GT59.prototype.ID_PANEL_BACKGROUND) .active_1(GT59.prototype.ID_DIAMOND_AUTOPLAY) .active_1(GT59.prototype.ID_DIAMOND_BET) .active_1(GT59.prototype.ID_LOGO_NOVO) .active_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .inactive_1(GT834.prototype.ID_BUTTON_PAYOUT) .inactive_1(GT834.prototype.ID_BUTTON_GAME_SELECT) .inactive_1(GT834.prototype.ID_BUTTON_GOMOBILE) .inactive_1(GT834.prototype.ID_BUTTON_FLIP_SCREEN) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE); }, statusContainer_0: function () { var a = GT59.prototype.fullWidth_0(); return GT1186.prototype .set_0() .id_1(GT280.prototype.ID_CONTAINER_CONSOLE_STATUS) .position_2(0, 0) .size_2(a, this.getConsoleHeight_0()) .child_1(GT1186.prototype.set_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT)) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(160)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(140)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(120)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(100)) .fontColor_1(GT59.prototype.defaultLabelColor_0()) .outline_2(0, null) .insets_4(75, 75, 0, 5) .breakLines_1(!1) ) .child_1( GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_WIN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(160)) .fontColor_1(GT59.prototype.defaultLabelColor_0()) .outline_2(0, null) .insets_4(75, 75, 0, 5) .breakLines_1(!1) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .position_2(900, 7) .size_2(113, this.getConsoleHeight_0()) .insets_4(0, 0, 0, 5) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(240)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(220)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(200)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultLabelFont_0().size_1(160)) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) ); }, defaultHideCreditImage_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT59.prototype.resourcePath + "vip_credit_cover.png")) .position_2(0, 0) .size_2(291, 62); }, defaultHideCreditImageOpen_0: function () { return GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1(GT59.prototype.resourcePath + "vip_credit_cover_open.png")) .position_2(0, 0) .size_2(291, 62); }, }, "GT59", [] ); GT59.prototype.fullWidth_0 = function () { return 1366; }; GT59.prototype.defaultValueColor_0 = function () { return GT1391.prototype.set_0().white_0(); }; GT59.prototype.defaultLabelColor_0 = function () { return GT1391.prototype.set_0().hexRGB_1("F5E17D"); }; GT59.prototype.defaultValueFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150); }; GT59.prototype.defaultLabelFont_0 = function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150); }; GT59.prototype.defaultValueField_0 = function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(210)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(180)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(150)) .addFont_1(GT59.prototype.defaultValueFont_0().size_1(120)) .fontColor_1(GT59.prototype.defaultValueColor_0()) .breakLines_1(!1); }; GT59.prototype.defaultTextAreaSmallLabelLastWin_0 = function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(130)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(100)) .breakLines_1(!1) .fontColor_1(GT59.prototype.defaultLabelColor_0()) .insets_4(0, 0, 1, 3); }; GT59.prototype.defaultTextAreaSmallLabel_0 = function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .fontColor_1(GT59.prototype.defaultLabelColor_0()) .insets_4(0, 0, 1, 3); }; GT59.prototype.dragableCoverCreditsButtonWidthUncovered_0 = function () { return 80; }; GT59.prototype.coverCreditsButtonWidth_0 = function () { return 260; }; GT59.prototype.arrowTimePerFrame_0 = function () { return 180; }; GT59.prototype.arrowFrameHeight_0 = function () { return 28; }; GT59.prototype.arrowFrameWidth_0 = function () { return 72; }; GT59.prototype.defaultIconButton_4 = function (a, b, d, e) { return GT873.prototype .set_0() .size_2(e, e) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b, 2), Math.div(e - d, 2)) .size_2(b, d) .image_1(GT1390.prototype.set_0().file_1(a)) .transparency_1(GT1022.prototype.set_0().alpha_1(100)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b, 2), Math.div(e - d, 2)) .size_2(b, d) .image_1(GT1390.prototype.set_0().file_1(a)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b - 4, 2), Math.div(e - d - 4, 2)) .size_2(b + 4, d + 4) .image_1(GT1390.prototype.set_0().file_1(a)) .colorTransformation_1(GT656.prototype.set_0().percentage_RGB_3(70, 90, 90)) ) .child_1( GT1392.prototype .set_0() .position_2(Math.div(e - b - 2, 2), Math.div(e - d - 2, 2)) .size_2(b + 2, d + 2) .image_1(GT1390.prototype.set_0().file_1(a)) ); }; GT59.prototype.ID_ARROW_LEFT = GT1560.prototype.generateID_0(); GT59.prototype.ID_ARROW_RIGHT = GT1560.prototype.generateID_0(); GT59.prototype.ID_PANEL_BACKGROUND = GT1560.prototype.generateID_0(); GT59.prototype.ID_DIAMOND_AUTOPLAY = GT1560.prototype.generateID_0(); GT59.prototype.ID_DIAMOND_BET = GT1560.prototype.generateID_0(); GT59.prototype.ID_LOGO_NOVO = GT1560.prototype.generateID_0(); GT59.prototype.resourcePath = "/com/greentube/slot/client/res/thinclient/plurius_2015/"; var GT13 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_BUTTON_TOGGLE_BETLINES) .remove_1(GT834.prototype.ID_LABEL_LINES) .remove_1(GT834.prototype.ID_SPINNER_LINES) .modify_2(GT834.prototype.ID_SPINNER_BETPERLINE, GT975.prototype.set_0().id_1(GT834.prototype.ID_SPINNER_GAME_MODES)); }, }, "GT13", [] ), GT182 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerGameMenu_2: function (a, b) { return GT898.prototype.set_0(); }, buttonOpenReplay_2: function (a, b) { return GT873.prototype.set_0().id_1(GT307.prototype.ACTION_OPENREPLAY).position_2(-1e3, 1732); }, containerReplayDialog_2: function (a, b) { return GT1186.prototype .set_0() .position_2(675, 1610) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/player_back.png")) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/b_back.png").id_1(GT307.prototype.ACTION_REWIND).position_2(0, 0)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/b_forward.png").id_1(GT307.prototype.ACTION_FORWARD).position_2(492, 0)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/b_play.png").id_1(GT307.prototype.ACTION_PLAY).position_2(400, 0)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/thinclient/player_exit.png").id_1(GT307.prototype.ACTION_CLOSEREPLAY).position_2(630, 7)) .child_1(GT1335.prototype.set_0().imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/thinclient/b_slider.png")).id_1(GT307.prototype.ACTION_SLIDERREPLAY).position_2(5, 95).width_1(690)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(120, 15) .size_2(160, 44) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(2, 2, 2, 2) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(280, 15) .size_2(95, 44) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(2, 2, 2, 2) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, containerWatcherInfo_2: function (a, b) { return a.position_2(Math.div(1128, 2), 1325); }, }, "GT182", [] ), GT60 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerReplayDialog_2: function (a, b) { return a.position_2(675, 1370); }, containerWatcherInfo_2: function (a, b) { return a.position_2(Math.div(1128, 2), 1110); }, }, "GT60", [] ), GT102 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerReplayDialog_2: function (a, b) { return a.position_2(675, 1370); }, containerWatcherInfo_2: function (a, b) { return a.position_2(Math.div(1128, 2), 1110); }, }, "GT102", [] ), GT33 = GT186.extend( { initialConstructor_0: function () { GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT186.prototype.initialConstructor_1.call(this, a); }, containerReplayDialog_2: function (a, b) { return a.position_2(675, 1605); }, containerWatcherInfo_2: function (a, b) { return a.position_2(Math.div(1128, 2), 1100); }, }, "GT33", [] ), GT324 = GT339.extend( { initialConstructor_0: function () { this.dualScreen = !1; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.dualScreen = !1; GT339.prototype.initialConstructor_1.call(this, a); this.dualScreen = b; }, isDualScreenEnabled_0: function () { return this.dualScreen; }, layoutDesignedWidth_2: function (a, b) { return 1440; }, layoutDesignedHeight_2: function (a, b) { return 900; }, layoutOverscanLeft_2: function (a, b) { return 304; }, layoutOverscanRight_2: function (a, b) { return 304; }, layoutOverscanTop_2: function (a, b) { return this.isDualScreenEnabled_0() ? 900 : a; }, }, "GT324", [] ), GT134 = GT324.extend( { initialConstructor_0: function () { GT324.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT324.prototype.initialConstructor_2.call(this, a, b); }, layoutDesignedWidth_2: function (a, b) { return 1280; }, layoutDesignedHeight_2: function (a, b) { return 800; }, layoutOverscanLeft_2: function (a, b) { return 384; }, layoutOverscanRight_2: function (a, b) { return 384; }, layoutOverscanTop_2: function (a, b) { return this.isDualScreenEnabled_0() ? 800 : a; }, }, "GT134", [] ), GT54 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutDesignedWidth_2: function (a, b) { return 1229; }, layoutDesignedHeight_2: function (a, b) { return 768; }, layoutOverscanLeft_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanRight_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanTop_2: function (a, b) { return 768; }, }, "GT54", [] ), GT82 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, containerSplashScreen_2: function (a, b) { return null; }, }, "GT82", [] ), GT67 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutDesignedWidth_2: function (a, b) { return 1229; }, layoutDesignedHeight_2: function (a, b) { return 768; }, layoutOverscanLeft_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanRight_2: function (a, b) { return Math.div(819, 2); }, layoutOverscanTop_2: function (a, b) { return 768; }, layoutOverscanBottom_2: function (a, b) { return 768; }, }, "GT67", [] ), GT61 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT339.prototype.initialConstructor_1.call(this, a); }, layoutOverscanBottom_2: function (a, b) { return 800; }, }, "GT61", [] ), GT282 = GT1412.extend( { initialConstructor_0: function () { this.transparentwinplan = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.transparentwinplan = !1; GT1412.prototype.initialConstructor_0.call(this); this.transparentwinplan = a; }, paytableWinTable_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().imageFile_1("game/hd_plurius_background.jpg").id_1(GT282.prototype.PLURIUS_HD_BACKGROUND).resizeToParent_1(!0).hide_1(this.transparentwinplan)) .child_1(GT1392.prototype.set_0().id_1(GT282.prototype.PLURIUS_HD_BACKGROUND_LOGO).imageFile_1("game/hd_plurius_logo.png").position_2(215, 5).size_2(800, 150)) .child_1( a .position_2(130, 140) .contentScaling_2(0.78, 0.78) .replace_2(GT1618.prototype.DEFAULT_PAYTABLE_IMAGE, GT1392.prototype.set_0().id_1(GT1618.prototype.DEFAULT_PAYTABLE_IMAGE).imageFile_1("game/transparent_paytable.png")) ); }, }, "GT282", [] ); GT282.prototype.PLURIUS_HD_BACKGROUND_LOGO = GT1677.prototype.generateID_0(); GT282.prototype.PLURIUS_HD_BACKGROUND = GT1677.prototype.generateID_0(); var GT1000 = Class.extend({ initialConstructor_0: function () {} }, "GT1000", []); GT1000.prototype.getDoubleParameter_3 = function (a, b, d) { a = a.getParameter_1(b); if (null == a) return d; a = a.trim_0(); return 0 >= a.length_0() ? d : GT1672.prototype.stringToDouble_1(a); }; GT1000.prototype.getIntParameter_3 = function (a, b, d) { a = a.getParameter_1(b); if (null == a) return d; a = a.trim_0(); return 0 >= a.length_0() ? d : GT1672.prototype.stringToInt_1(a); }; GT1000.prototype.getBooleanParameter_3 = function (a, b, d) { a = a.getParameter_1(b); if (null == a) return d; a = a.trim_0(); return 0 >= a.length_0() ? d : GT1677.prototype.equalsIgnoreCaseAZ_2(a, "1") || GT1677.prototype.equalsIgnoreCaseAZ_2(a, "true") ? !0 : !1; }; GT1000.prototype.decorateLobbySkin_4 = function (a, b, d, e) { var f = 2 == this.getIntParameter_3(b, "screens", 2), g = this.getIntParameter_3(b, "buttonpanel", 0), k = b.getParameter_1("look"); if (null == k || k.equals_1("")) k = "oldgreentube"; this.getBooleanParameter_3(b, "noonscreenbuttons", !1) && (k = "tc2014"); 0 != g ? (a.addDecorator_1(new GT67(e)), 4 == g && a.addDecorator_1(new GT61(e))) : k.equals_1("tc2014") || k.equals_1("plurius2015") || k.equals_1("lv2016") ? a.addDecorator_1(new GT54(e)) : d ? a.addDecorator_1(new GT134(e, f)) : a.addDecorator_1(new GT324(e, f)); a.addDecorator_1(new GT82(GT558.prototype.ORDER_EXTERNAL)); }; GT1000.prototype.decorateLobbySkin_3 = function (a, b, d) { this.decorateLobbySkin_4(a, b, d, GT558.prototype.ORDER_GAME); }; GT1000.prototype.decorateGameOverlaySkin_5 = function (a, b, d, e, f) { e = b.getParameter_1("look"); if (null == e || e.equals_1("")) e = "oldgreentube"; a.addDecorator_1(new GT109(f)); a.addDecorator_1(new GT182(f)); 0 != this.getIntParameter_3(b, "buttonpanel", 0) || this.getBooleanParameter_3(b, "noonscreenbuttons", !1) ? a.addDecorator_1(new GT33(f)) : d ? a.addDecorator_1(new GT60(f)) : (e.equals_1("tc2014") || e.equals_1("plurius2015") || e.equals_1("lv2016")) && a.addDecorator_1(new GT102(f)); }; GT1000.prototype.decorateGameOverlaySkin_4 = function (a, b, d, e) { this.decorateGameOverlaySkin_5(a, b, d, e, GT558.prototype.ORDER_GAME); }; GT1000.prototype.decorateSkin_5 = function (a, b, d, e, f) { var g = 2 == this.getIntParameter_3(b, "screens", 2), k = this.getBooleanParameter_3(b, "gomobile", !1), m = this.getBooleanParameter_3(b, "disablepayout", !1), n = this.getBooleanParameter_3(b, "logoontopscreen", !1), p = this.getBooleanParameter_3(b, "reelrunshowblurredsymbols", !0), q = this.getBooleanParameter_3(b, "overridepaytablewidthforplurius", !1), r = this.getBooleanParameter_3(b, "startvipconsoleflipped", !1), t = 0 < this.getIntParameter_3(b, "autoplaymeter", 0), u = this.getBooleanParameter_3(b, "gamemodeasbet", !1), B = this.getBooleanParameter_3(b, "paytableanimation.disable", !1), A = this.getIntParameter_3(b, "buttonpanel", 0), C = this.getIntParameter_3(b, "reelrunsymbolspersecond", 0), E = this.getIntParameter_3(b, "reelrunfirstreelstopdelay", 0), F = this.getIntParameter_3(b, "reelrunstopdelaybetweenreels", 0), D = this.getDoubleParameter_3(b, "reelrunbouncesoftness", -1), H = this.getBooleanParameter_3(b, "showpluriussettingsbutton", !1), I = b.getParameter_1("look"); if (null == I || I.equals_1("")) I = "oldgreentube"; this.getBooleanParameter_3(b, "noonscreenbuttons", !1) && (I = "tc2014"); b = this.getBooleanParameter_3(b, "emergencybuttons", !1); a.addDecorator_1(new GT181(f)); 0 != A || I.equals_1("tc2014") ? (I.equals_1("tc2014") ? (a.addDecorator_1(new GT34(f, e)), 2 == A && a.addDecorator_1(new GT22(f, e))) : I.equals_1("plurius2015") ? 3 == A ? (a.addDecorator_1(new GT59(f, k, H, t)), a.addDecorator_1(new GT79(f)), a.addDecorator_2(GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP, new GT27(f)), a.addDecorator_2(GT1600.prototype.VIP_FLIPPED_CONSOLE_DECORATOR_GROUP, new GT53(f, k, t)), r ? a.setDecoratorGroup_1(GT1600.prototype.VIP_FLIPPED_CONSOLE_DECORATOR_GROUP) : a.setDecoratorGroup_1(GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP), u && a.addDecorator_1(new GT13(f))) : 4 == A && (a.addDecorator_1(new GT53(f, k, t)), a.addDecorator_1(new GT80(f)), a.addDecorator_1(new GT79(f))) : a.addDecorator_1(new GT30(f, e)), 0 == A && (a.addDecorator_1(new GT101(f, e)), b && a.addDecorator_1(new GT32(f))), n ? a.addDecorator_1(new GT31(f, e, q)) : a.addDecorator_1(new GT99(f, e, q)), d && (3 != A && 4 != A && a.addDecorator_1(new GT12(f)), 0 == A && a.addDecorator_1(new GT26(f))), k || (I.equals_1("tc2014") ? a.addDecorator_1(new GT11(f)) : I.equals_1("plurius2015") || I.equals_1("lv2016") || a.addDecorator_1(new GT10(f)))) : I.equals_1("plurius2015") || I.equals_1("lv2016") ? (n ? a.addDecorator_1(new GT31(f, e, q)) : a.addDecorator_1(new GT99(f, e, q)), I.equals_1("plurius2015") ? a.addDecorator_1(new GT53(f, k, t)) : I.equals_1("lv2016") && a.addDecorator_1(new GT100(f, k)), d && a.addDecorator_1(new GT16(f))) : g ? d ? (a.addDecorator_1(new GT43(f)), a.addDecorator_1(new GT51(f, e))) : (a.addDecorator_1(new GT157(f)), a.addDecorator_1(new GT170(f, e))) : d ? (a.addDecorator_1(new GT98(f)), a.addDecorator_1(new GT52(f))) : (a.addDecorator_1(new GT280(f)), a.addDecorator_1(new GT171(f))); (0 < C || 0 < E || 0 < F || 0 <= D) && a.addDecorator_1(new GT281(f, C, E, F, D)); p || a.addDecorator_1(new GT116(f)); m && a.addDecorator_1(new GT81(f)); B && a.addDecorator_1(new GT35(f)); }; GT1000.prototype.decorateSkin_4 = function (a, b, d, e) { this.decorateSkin_5(a, b, d, e, GT558.prototype.ORDER_GAME); }; var GT1642 = Class.extend( { initialConstructor_0: function () { this.objects = this.keys = null; this.sorted = !1; this.keys = new java_util_JavaScriptVector(); this.objects = new java_util_JavaScriptVector(); this.sorted = !1; }, size_0: function () { return this.keys.size_0(); }, getKey_1: function (a) { return 0 > a || a >= this.keys.size_0() ? -1 : this.keys.elementAt_1(a).doubleValue_0(); }, put_2: function (a, b) { var d = new Double(a); this.keys.contains_1(d) ? ((d = this.keys.indexOf_1(d)), this.objects.setElementAt_2(b, d)) : (this.keys.addElement_1(d), this.objects.addElement_1(b)); this.sorted = !1; }, get_1: function (a) { a = new Double(a); return this.keys.contains_1(a) ? ((a = this.keys.indexOf_1(a)), this.objects.elementAt_1(a)) : null; }, getBefore_1: function (a) { if (0 == this.keys.size_0()) return null; this.sorted || (this.sortByKey_0(), (this.sorted = !0)); for (var b = 0; b < this.keys.size_0(); b++) if (this.keys.elementAt_1(b).doubleValue_0() > a) return 0 == b ? null : this.objects.elementAt_1(b - 1); return this.objects.elementAt_1(this.objects.size_0() - 1); }, getAfter_1: function (a) { if (0 == this.keys.size_0()) return null; this.sorted || (this.sortByKey_0(), (this.sorted = !0)); for (var b = 0; b < this.keys.size_0(); b++) if (this.keys.elementAt_1(b).doubleValue_0() >= a) return this.objects.elementAt_1(b); return null; }, sortByKey_0: function () { for (var a = [].createArray(this.keys.size_0()), b = 0; b < a.length; b++) a[b] = new GT1507(this.objects.elementAt_1(b), this.keys.elementAt_1(b)); GT1679.prototype.sortArray_3(a, new GT979(), !0); this.keys.setSize_1(a.length); this.objects.setSize_1(a.length); for (b = 0; b < a.length; b++) this.keys.setElementAt_2(a[b].sortDouble, b), this.objects.setElementAt_2(a[b].obj, b); }, }, "GT1642", [] ), GT1630 = Class.extend( { initialConstructor_0: function () { this.winPositions = null; this.maxrows = this.maxcolumns = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.winPositions = null; this.maxrows = this.maxcolumns = 0; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.winPositions = [].createArray(0)); else { this.winPositions = [].createArray(a.size_0()); for (var d = 0; d < this.winPositions.length; d++) { var e = a.get_1(d); instanceOf(e, GT1613) ? (this.winPositions[d] = e) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } this.maxrows = this.maxcolumns = -1; }, initialConstructor_1: function (a) { this.winPositions = null; this.maxrows = this.maxcolumns = 0; null == a ? (GT1650.prototype.assertFailed_1("winPositions array is null"), (this.winPositions = [].createArray(0))) : ((this.winPositions = [].createArray(a.length)), java_lang_System.prototype.arraycopy_5(a, 0, this.winPositions, 0, a.length)); this.maxrows = this.maxcolumns = -1; }, get_1: function (a) { return this.winPositions[a]; }, size_0: function () { return this.winPositions.length; }, toArray_0: function () { var a = [].createArray(this.winPositions.length); java_lang_System.prototype.arraycopy_5(this.winPositions, 0, a, 0, this.winPositions.length); return a; }, getMaxColumns_0: function () { -1 == this.maxcolumns && this.determineVisibleColumns_0(); return this.maxcolumns; }, setMaxRows_1: function (a) { this.maxrows = a; }, getMaxRows_0: function () { -1 == this.maxrows && this.determineVisibleRows_0(); return this.maxrows; }, determineVisibleColumns_0: function () { for (var a = (this.maxcolumns = 0); a < this.winPositions.length; a++) for (var b = this.winPositions[a], d = 0; d < b.getCount_0(); d++) b.getSymbolColumn_1(d) > this.maxcolumns && (this.maxcolumns = b.getSymbolColumn_1(d)); this.maxcolumns++; }, determineVisibleRows_0: function () { for (var a = (this.maxrows = 0); a < this.winPositions.length; a++) for (var b = this.winPositions[a], d = 0; d < b.getCount_0(); d++) b.getSymbolRow_1(d) > this.maxrows && (this.maxrows = b.getSymbolRow_1(d)); this.maxrows++; }, calcDimensions_0: function () { for (var a = (this.maxrows = this.maxcolumns = 0); a < this.winPositions.length; a++) for (var b = this.winPositions[a], d = 0; d < b.getCount_0(); d++) b.getSymbolRow_1(d) > this.maxrows && (this.maxrows = b.getSymbolRow_1(d)), b.getSymbolColumn_1(d) > this.maxcolumns && (this.maxcolumns = b.getSymbolColumn_1(d)); this.maxrows++; this.maxcolumns++; }, toString: function () { var a = "["; 0 < this.winPositions.length && (a = a + "" + this.winPositions[0]); for (var b = 0; b < this.winPositions.length; b++) a = a + ", " + this.winPositions[b]; return a + "]"; }, }, "GT1630", [] ); GT1630.prototype.fromVector_1 = function (a) { return new GT1630(a, !0); }; var GT1665 = Class.extend( { initialConstructor_0: function () { this.wins = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.wins = null; if (null == a) GT1650.prototype.assertFailed_1("Vector is null"), (this.wins = [].createArray(0)); else { this.wins = [].createArray(a.size_0()); for (var d = 0; d < this.wins.length; d++) { var e = a.get_1(d); instanceOf(e, GT1648) ? (this.wins[d] = e) : GT1650.prototype.assertFailed_1("Illegal element in Vector " + e); } } }, initialConstructor_1: function (a) { this.wins = null; null == a ? (GT1650.prototype.assertFailed_1("win array is null"), (this.wins = [].createArray(0))) : ((this.wins = [].createArray(a.length)), java_lang_System.prototype.arraycopy_5(a, 0, this.wins, 0, a.length)); }, get_1: function (a) { return this.wins[a]; }, size_0: function () { return this.wins.length; }, toArray_0: function () { var a = [].createArray(this.wins.length); java_lang_System.prototype.arraycopy_5(this.wins, 0, a, 0, this.wins.length); return a; }, }, "GT1665", [] ); GT1665.prototype.fromVector_1 = function (a) { return new GT1665(a, !0); }; var GT1613 = Class.extend( { initialConstructor_0: function () { GT1613.prototype.initialConstructor_2.call(this, [].createArray(0).init(0), [].createArray(0).init(0)); }, initialConstructor_2: function (a, b) { this.winSymbolRow = this.winSymbolColumn = null; GT1650.prototype.assertExp_2(a.length == b.length, "length of column and row not equal"); this.winSymbolColumn = a; this.winSymbolRow = b; }, getSymbolColumn_1: function (a) { return this.winSymbolColumn[a]; }, getSymbolRow_1: function (a) { return this.winSymbolRow[a]; }, isWinningPosition_2: function (a, b) { for (var d = 0; d < this.winSymbolColumn.length; d++) if (this.winSymbolColumn[d] == a && this.winSymbolRow[d] == b) return !0; return !1; }, isWinningColumn_1: function (a) { for (var b = 0; b < this.winSymbolColumn.length; b++) if (this.winSymbolColumn[b] == a) return !0; return !1; }, isWinningRow_1: function (a) { for (var b = 0; b < this.winSymbolColumn.length; b++) if (this.winSymbolRow[b] == a) return !0; return !1; }, getCount_0: function () { return this.winSymbolRow.length; }, toString: function () { for (var a = "[", b = 0; b < this.winSymbolColumn.length; b++) a = a + "(" + this.winSymbolColumn[b] + ":" + this.winSymbolRow[b] + ")"; return a + "]"; }, }, "GT1613", [] ); GT1613.prototype.createEndPositions_3 = function (a, b, d) { for (var e = [].createArray(b.getNumberOfReels_0(), d).init(0), f = 0; f < e.length; f++) for (var g = 0; g < d; g++) e[f][g] = b.getSymbol_2(f, (a[f] + g) % b.getNumberOfSymbols_1(f)); return e; }; var GT533 = Class.extend( { initialConstructor_0: function () { this.defaultLength = this.id = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.defaultLength = this.id = 0; this.id = a; this.defaultLength = b; }, getId_0: function () { return this.id; }, getDefaultLength_0: function () { return this.defaultLength; }, hasDefaultLength_0: function () { return -1 != this.getDefaultLength_0(); }, decodeData_1: function (a) { this.decodeData_3(a, 0, a.length); }, }, "GT533", [] ); GT533.prototype.META_VERSION = 100; GT533.prototype.META_RECID = 101; GT533.prototype.META_EMPTYQUEUE = 102; GT533.prototype.META_ENDOFDATA = 103; GT533.prototype.MOUSE_CLICKED = 1; GT533.prototype.MOUSE_PRESSED = 2; GT533.prototype.MOUSE_RELEASED = 3; GT533.prototype.MOUSE_MOVED = 4; GT533.prototype.MOUSE_DRAGGED = 5; GT533.prototype.MOUSE_WHEEL = 6; GT533.prototype.KEY_PRESSED = 7; GT533.prototype.SERVER_PACKETS = 8; GT533.prototype.GAME_TICKS = 9; GT533.prototype.SCREEN_SHOT = 10; GT533.prototype.PARAMETERS = 11; GT533.prototype.TOUCH_START = 12; GT533.prototype.TOUCH_END = 13; GT533.prototype.TOUCH_MOVE = 14; GT533.prototype.TOUCH_CANCEL = 15; GT533.prototype.WRAPPER_EVENT = 16; GT533.prototype.WRAPPER_V2_EVENT = 17; var GT351 = GT533.extend( { initialConstructor_0: function () { GT533.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT533.prototype.initialConstructor_2.call(this, a, b); }, }, "GT351", [] ), GT297 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT297", [] ); GT297.prototype.newInstanceOfNewestEventCreator_0 = function () { return new GT482(); }; var GT483 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, getEncoderVersion_0: function () { return 1; }, encode_2: function (a, b) { return this.encode_3(a, b, this.getEncoderVersion_0()); }, encode_3: function (a, b, d) { if (b) return (b = [].createArray(a.getLengthOfData_1(d)).init(0)), a.encodeData_3(b, 0, d), b; a.hasDefaultLength_0() ? ((b = [].createArray(a.getDefaultLength_0() + 1).init(0)), (b[0] = a.getId_0()), a.encodeData_3(b, 1, d)) : ((b = [].createArray(a.getLengthOfData_1(d) + 5).init(0)), (b[0] = a.getId_0()), GT902.prototype.intToByteArray_3(a.getLengthOfData_1(d), b, 1), a.encodeData_3(b, 5, d)); return b; }, }, "GT483", [GT550] ), GT534 = GT533.extend( { initialConstructor_0: function () { GT534.prototype.initialConstructor_1.call(this, 0); }, initialConstructor_1: function (a) { this.time = 0; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.GAME_TICKS, -1); this.time = a; }, setTime_1: function (a) { this.time = a; }, getTime_0: function () { return this.time; }, encodeData_3: function (a, b, d) { this.time < Integer.truncate_1(java_lang_Byte.prototype.MAX_VALUE) - Integer.truncate_1(java_lang_Byte.prototype.MIN_VALUE) - 1 ? ((d = JSUTIL.MathUtil.castToByte(this.time + Integer.truncate_1(java_lang_Byte.prototype.MIN_VALUE))), (a[b] = d)) : GT902.prototype.intToByteArray_3(this.time, a, b); }, decodeData_3: function (a, b, d) { this.time = 1 == d ? Integer.truncate_1(a[b]) - java_lang_Byte.prototype.MIN_VALUE : GT902.prototype.byteArrayToInt_2(a, b); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventGameTick [time: " + this.time + "]"; }, getLengthOfData_1: function (a) { return this.time < Integer.truncate_1(java_lang_Byte.prototype.MAX_VALUE) - Integer.truncate_1(java_lang_Byte.prototype.MIN_VALUE) - 1 ? 1 : 4; }, }, "GT534", [] ), GT407 = GT533.extend( { initialConstructor_0: function () { GT407.prototype.initialConstructor_2.call(this, "", ""); }, initialConstructor_2: function (a, b) { this.modifiers = this.keyname = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.KEY_PRESSED, -1); this.keyname = a; this.modifiers = b; }, getKeyname_0: function () { return this.keyname; }, getModifiers_0: function () { return this.modifiers; }, encodeData_3: function (a, b, d) { GT902.prototype.intToByteArray_3(this.keyname.length_0(), a, b); GT902.prototype.stringToBytesASCII_3(this.keyname, a, b + 4); GT902.prototype.stringToBytesASCII_3(this.modifiers, a, b + 4 + this.keyname.length_0()); }, decodeData_3: function (a, b, d) { var e = GT902.prototype.byteArrayToInt_2(a, b); this.keyname = GT902.prototype.bytesToStringASCII_3(a, b + 4, e); this.modifiers = GT902.prototype.bytesToStringASCII_3(a, b + 4 + e, d - 4 - e); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventKeyPressed " + this.keyname + " " + this.modifiers; }, getLengthOfData_1: function (a) { return 4 + this.keyname.length_0() + this.modifiers.length_0(); }, }, "GT407", [] ), GT650 = GT533.extend( { initialConstructor_0: function () { this.button = this.y = this.x = 0; GT533.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT650.prototype.initialConstructor_4.call(this, this.translateToRecordingId_1(a.getId_0()), a.getX_0(), a.getY_0(), a.getButton_0()); GT1650.prototype.assertExp_2(null == a.getSender_0(), "Sender has to be null - can't be recorded"); }, initialConstructor_4: function (a, b, d, e) { this.button = this.y = this.x = 0; GT533.prototype.initialConstructor_2.call(this, a, 12); this.x = b; this.y = d; this.button = e; }, getMouseX_0: function () { return this.x; }, getMouseY_0: function () { return this.y; }, getButton_0: function () { return this.button; }, createMouseEvent_0: function () { return new GT1451(this.translateFromRecordingId_1(this.getId_0()), this.x, this.y, this.button); }, encodeData_3: function (a, b, d) { GT902.prototype.intToByteArray_3(this.x, a, b); GT902.prototype.intToByteArray_3(this.y, a, b + 4); GT902.prototype.intToByteArray_3(this.button, a, b + 8); }, decodeData_3: function (a, b, d) { this.x = GT902.prototype.byteArrayToInt_2(a, b); this.y = GT902.prototype.byteArrayToInt_2(a, b + 4); this.button = GT902.prototype.byteArrayToInt_2(a, b + 8); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventMouse [" + this.getId_0() + " " + this.x + " " + this.y + " " + this.button + "]"; }, getLengthOfData_1: function (a) { return this.getDefaultLength_0(); }, }, "GT650", [] ); GT650.prototype.translateFromRecordingId_1 = function (a) { var b = -1; a == GT533.prototype.MOUSE_CLICKED ? (b = GT1451.prototype.MOUSE_CLICKED) : a == GT533.prototype.MOUSE_DRAGGED ? (b = GT1451.prototype.MOUSE_DRAGGED) : a == GT533.prototype.MOUSE_MOVED ? (b = GT1451.prototype.MOUSE_MOVED) : a == GT533.prototype.MOUSE_PRESSED ? (b = GT1451.prototype.MOUSE_PRESSED) : a == GT533.prototype.MOUSE_RELEASED && (b = GT1451.prototype.MOUSE_RELEASED); return b; }; GT650.prototype.translateToRecordingId_1 = function (a) { var b = -1; a == GT1451.prototype.MOUSE_CLICKED ? (b = GT533.prototype.MOUSE_CLICKED) : a == GT1451.prototype.MOUSE_DRAGGED ? (b = GT533.prototype.MOUSE_DRAGGED) : a == GT1451.prototype.MOUSE_MOVED ? (b = GT533.prototype.MOUSE_MOVED) : a == GT1451.prototype.MOUSE_PRESSED ? (b = GT533.prototype.MOUSE_PRESSED) : a == GT1451.prototype.MOUSE_RELEASED ? (b = GT533.prototype.MOUSE_RELEASED) : GT1650.prototype.assertExp_2(!1, "Unknown mouse event (" + a + ")"); return b; }; var GT406 = GT533.extend( { initialConstructor_0: function () { GT406.prototype.initialConstructor_5.call(this, 0, 0, 0, 0, 0); }, initialConstructor_1: function (a) { GT406.prototype.initialConstructor_5.call(this, a.getX_0(), a.getY_0(), a.getScrollType_0(), a.getScrollAmount_0(), a.getWheelRotation_0()); }, initialConstructor_5: function (a, b, d, e, f) { this.wheelRotation = this.scrollAmount = this.scrollType = this.y = this.x = 0; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.MOUSE_WHEEL, 20); this.x = a; this.y = b; this.scrollType = d; this.scrollAmount = e; this.wheelRotation = f; }, getScrollType_0: function () { return this.scrollType; }, getScrollAmount_0: function () { return this.scrollAmount; }, getWheelRotation_0: function () { return this.wheelRotation; }, createMouseWheelEvent_0: function () { return new GT1196(GT1196.prototype.MOUSE_WHEEL, this.x, this.y, this.scrollType, this.scrollAmount, this.wheelRotation); }, encodeData_3: function (a, b, d) { GT902.prototype.intToByteArray_3(this.x, a, b); GT902.prototype.intToByteArray_3(this.y, a, b + 4); GT902.prototype.intToByteArray_3(this.scrollType, a, b + 8); GT902.prototype.intToByteArray_3(this.scrollAmount, a, b + 12); GT902.prototype.intToByteArray_3(this.wheelRotation, a, b + 16); }, decodeData_3: function (a, b, d) { this.x = GT902.prototype.byteArrayToInt_2(a, b); this.y = GT902.prototype.byteArrayToInt_2(a, b + 4); this.scrollType = GT902.prototype.byteArrayToInt_2(a, b + 8); this.scrollAmount = GT902.prototype.byteArrayToInt_2(a, b + 12); this.wheelRotation = GT902.prototype.byteArrayToInt_2(a, b + 16); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventMouseWheel [" + this.x + " " + this.y + " " + this.scrollType + " " + this.scrollAmount + " " + this.wheelRotation + "]"; }, getLengthOfData_1: function (a) { GT1650.prototype.assertFailed_1("Should not be needed for an event with default length?!"); return this.getDefaultLength_0(); }, }, "GT406", [] ), GT434 = GT533.extend( { initialConstructor_0: function () { GT434.prototype.initialConstructor_1.call(this, null); }, initialConstructor_1: function (a) { this.parametersAsString = this.parameters = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.PARAMETERS, -1); this.parameters = a; }, getParameters_0: function () { return this.parameters; }, getLengthOfData_1: function (a) { return null == this.parametersAsString && ((this.parametersAsString = GT902.prototype.getHashTableAsString_1(this.parameters)), null == this.parametersAsString) ? 0 : this.parametersAsString.length_0(); }, encodeData_3: function (a, b, d) { null == a ? GT1650.prototype.assertFailed_1("Need byte[]!") : a.length - b < this.getLengthOfData_1(d) ? GT1650.prototype.assertFailed_1("Can't save " + this.getLengthOfData_1(d) + " bytes in a byte[] with length " + a.length) : (null == this.parametersAsString && (this.parametersAsString = GT902.prototype.getHashTableAsString_1(this.parameters)), GT902.prototype.stringToBytesASCII_3(this.parametersAsString, a, b)); }, decodeData_3: function (a, b, d) { a = GT902.prototype.bytesToStringASCII_3(a, b, d); this.parameters = GT902.prototype.getHashTableFromString_1(a); this.parametersAsString = null; }, getEventVersion_0: function () { return 1; }, toString: function () { var a = "RecordingEventParameters ["; if (null == this.parameters) return a + "null]"; for (var b = this.parameters.keys_0(); b.hasMoreElements_0(); ) var d = b.nextElement_0(), a = a + " " + d + "=" + this.parameters.get_1(d); return a + "]"; }, }, "GT434", [] ), GT408 = GT533.extend( { initialConstructor_0: function () { GT408.prototype.initialConstructor_1.call(this, null); }, initialConstructor_1: function (a) { this.imageData = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.SCREEN_SHOT, -1); if (null != a) { this.imageData = [].createArray(a.length).init(0); for (var b = 0; b < a.length; b++) this.imageData[b] = a[b]; } else this.imageData = null; }, getImageData_0: function () { return this.imageData; }, encodeData_3: function (a, b, d) { null != this.imageData && java_lang_System.prototype.arraycopy_5(this.imageData, 0, a, b, this.imageData.length); }, decodeData_3: function (a, b, d) { this.imageData = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, this.imageData, 0, d); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventScreenShot[" + (null != this.imageData ? "" + this.imageData.length : "no") + " bytes]"; }, getLengthOfData_1: function (a) { return null == this.imageData ? 0 : this.imageData.length; }, }, "GT408", [] ), GT651 = GT533.extend( { initialConstructor_0: function () { GT651.prototype.initialConstructor_5.call(this, JSUTIL.MathUtil.castToByte(0), 0, 0, 0, 0); }, initialConstructor_1: function (a) { GT651.prototype.initialConstructor_5.call(this, this.translateToRecordingId_1(a.getId_0()), a.getX_0(), a.getY_0(), a.getTouchId_0(), a.getEventTime_0()); }, initialConstructor_5: function (a, b, d, e, f) { this.eventTime = this.touchId = this.y = this.x = 0; GT533.prototype.initialConstructor_2.call(this, a, 16); this.x = b; this.y = d; this.touchId = e; this.eventTime = f; }, getTouchId_0: function () { return this.touchId; }, getEventTime_0: function () { return this.eventTime; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, createTouchEvent_0: function () { return new GT1447(this.translateFromRecordingId_1(this.getId_0()), this.x, this.y, this.touchId, this.eventTime); }, encodeData_3: function (a, b, d) { GT902.prototype.intToByteArray_3(this.x, a, b); GT902.prototype.intToByteArray_3(this.y, a, b + 4); GT902.prototype.intToByteArray_3(this.touchId, a, b + 8); GT902.prototype.intToByteArray_3(this.eventTime, a, b + 12); }, decodeData_3: function (a, b, d) { this.x = GT902.prototype.byteArrayToInt_2(a, b); this.y = GT902.prototype.byteArrayToInt_2(a, b + 4); this.touchId = GT902.prototype.byteArrayToInt_2(a, b + 8); this.eventTime = GT902.prototype.byteArrayToInt_2(a, b + 12); }, getEventVersion_0: function () { return 1; }, toString: function () { return "RecordingEventTouch [" + this.getId_0() + " " + this.x + " " + this.y + " " + this.touchId + " " + this.eventTime + "]"; }, getLengthOfData_1: function (a) { return this.getDefaultLength_0(); }, }, "GT651", [] ); GT651.prototype.translateFromRecordingId_1 = function (a) { var b = -1; a == GT533.prototype.TOUCH_START ? (b = GT1447.prototype.TOUCH_START) : a == GT533.prototype.TOUCH_MOVE ? (b = GT1447.prototype.TOUCH_MOVE) : a == GT533.prototype.TOUCH_END ? (b = GT1447.prototype.TOUCH_END) : a == GT533.prototype.TOUCH_CANCEL && (b = GT1447.prototype.TOUCH_CANCEL); return b; }; GT651.prototype.translateToRecordingId_1 = function (a) { var b = -1; a == GT1447.prototype.TOUCH_START ? (b = GT533.prototype.TOUCH_START) : a == GT1447.prototype.TOUCH_MOVE ? (b = GT533.prototype.TOUCH_MOVE) : a == GT1447.prototype.TOUCH_END ? (b = GT533.prototype.TOUCH_END) : a == GT1447.prototype.TOUCH_CANCEL ? (b = GT533.prototype.TOUCH_CANCEL) : GT1650.prototype.assertExp_2(!1, "Unknown mouse event (" + a + ")"); return b; }; var GT338 = GT533.extend( { initialConstructor_0: function () { GT338.prototype.initialConstructor_1.call(this, null); }, initialConstructor_1: function (a) { this.value = this.key = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.WRAPPER_EVENT, -1); null != a && this.setProperty_1(a); }, setProperty_1: function (a) { var b = a.indexOf_1("="); this.key = a.substring_2(0, b); this.value = a.substring_2(b + 1, a.length_0()); }, getKey_0: function () { return this.key; }, getValue_0: function () { return this.value; }, encodeData_3: function (a, b, d) { null != this.key && null != this.value && ((d = GT902.prototype.stringToBytesASCII_1(this.key + "=" + this.value)), java_lang_System.prototype.arraycopy_5(d, 0, a, b, d.length)); }, decodeData_3: function (a, b, d) { var e = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, e, 0, d); this.setProperty_1(GT902.prototype.bytesToStringASCII_3(e, 0, e.length)); }, getEventVersion_0: function () { return 1; }, toString: function () { return "WrapperEvent [" + this.key + "=" + this.value + "]"; }, getLengthOfData_1: function (a) { return null == this.key || null == this.value ? 0 : GT902.prototype.stringToBytesASCII_1(this.key + "=" + this.value).length; }, }, "GT338", [] ), GT293 = GT533.extend( { initialConstructor_0: function () { GT293.prototype.initialConstructor_1.call(this, null); }, initialConstructor_1: function (a) { this.jsonEvent = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.WRAPPER_V2_EVENT, -1); this.jsonEvent = GT1678.prototype.serialize_1(a); }, getWrapperEvent_0: function () { return null == this.jsonEvent ? null : GT1678.prototype.deserializeObject_1(this.jsonEvent); }, encodeData_3: function (a, b, d) { null != this.jsonEvent && ((d = GT902.prototype.stringToBytesASCII_1(this.jsonEvent)), java_lang_System.prototype.arraycopy_5(d, 0, a, b, d.length)); }, decodeData_3: function (a, b, d) { var e = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, e, 0, d); this.jsonEvent = GT902.prototype.bytesToStringASCII_3(e, 0, e.length); }, getEventVersion_0: function () { return 1; }, toString: function () { return "WrapperV2Event [" + this.jsonEvent + "]"; }, getJSONString_0: function () { return this.jsonEvent; }, getLengthOfData_1: function (a) { return null == this.jsonEvent ? 0 : GT902.prototype.stringToBytesASCII_1(this.jsonEvent).length; }, }, "GT293", [] ), GT283 = GT351.extend( { initialConstructor_0: function () { GT351.prototype.initialConstructor_2.call(this, GT533.prototype.META_EMPTYQUEUE, 0); }, getLengthOfData_1: function (a) { return 0; }, encodeData_3: function (a, b, d) {}, decodeData_3: function (a, b, d) {}, getEventVersion_0: function () { return 1; }, toString: function () { return "MetaEvent_EmptyQueue"; }, }, "GT283", [] ), GT298 = GT351.extend( { initialConstructor_0: function () { GT351.prototype.initialConstructor_2.call(this, GT533.prototype.META_ENDOFDATA, 0); }, getLengthOfData_1: function (a) { return 0; }, encodeData_3: function (a, b, d) {}, decodeData_3: function (a, b, d) {}, getEventVersion_0: function () { return 1; }, toString: function () { return ">>> MetaEvent_EndOfData <<<"; }, }, "GT298", [] ), GT435 = GT351.extend( { initialConstructor_0: function () { this.data = null; GT351.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.data = null; GT351.prototype.initialConstructor_2.call(this, GT533.prototype.META_RECID, -1); var e = new StringBuffer(); e.append_1(a).append_1(GT435.prototype.SEP).append_1(b).append_1(GT435.prototype.SEP).append_1(d); this.data = GT902.prototype.stringToBytesASCII_1(e.toString()); }, getLengthOfData_1: function (a) { return this.data.length; }, encodeData_3: function (a, b, d) { java_lang_System.prototype.arraycopy_5(this.data, 0, a, b, this.data.length); }, decodeData_3: function (a, b, d) { this.data = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, this.data, 0, d); }, getEventVersion_0: function () { return 1; }, }, "GT435", [] ); GT435.prototype.SEP = ":"; var GT352 = GT351.extend( { initialConstructor_0: function () { this.possibleEventVersions = null; GT351.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.possibleEventVersions = null; GT351.prototype.initialConstructor_2.call(this, GT533.prototype.META_VERSION, -1); this.possibleEventVersions = a; }, getLengthOfData_1: function (a) { return this.possibleEventVersions.length; }, getPossibleEventVersions_0: function () { return this.possibleEventVersions; }, encodeData_3: function (a, b, d) { java_lang_System.prototype.arraycopy_5(this.possibleEventVersions, 0, a, b, this.possibleEventVersions.length); }, decodeData_3: function (a, b, d) { this.possibleEventVersions = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, this.possibleEventVersions, 0, d); }, getEventVersion_0: function () { return 1; }, toString: function () { if (null == this.possibleEventVersions) return "RecordingMetaEvent_Version[null]"; 0 != this.possibleEventVersions.length % 5 && GT1650.prototype.assertFailed_1("Length of possibleEventVersions[] is " + this.possibleEventVersions.length); for (var a = new StringBuffer(), b = 0; b < this.possibleEventVersions.length; b += 5) { var d = "" + this.possibleEventVersions[b], e = "" + GT902.prototype.byteArrayToInt_2(this.possibleEventVersions, b + 1); 0 != b && a.append_1(", "); a.append_1(d).append_1("=v").append_1(e); } return a.toString(); }, }, "GT352", [] ); GT352.prototype.isCompatible_2 = function (a, b) { for (var d = a.getPossibleEventVersions_0(), e = a.getPossibleEventVersions_0(), f = Math.min_2(d.length, e.length), g = 0; g < f; g++) if (d[g] != e[g]) return !1; return !0; }; var GT484 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT484", [] ); GT484.prototype.NOT_INIT = 0; GT484.prototype.ACTIVE = 1; GT484.prototype.FINISHED = 2; GT484.prototype.ACTIVATION_NOT_POSSIBLE = 3; GT484.prototype.LOST = 4; var GT535 = Class.extend( { initialConstructor_0: function () { this.buf = null; this.counter = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.buf = null; this.counter = 0; this.buf = [].createArray(a).init(0); this.counter = 0; }, toByteArray_0: function () { var a = [].createArray(this.counter).init(0); java_lang_System.prototype.arraycopy_5(this.buf, 0, a, 0, this.counter); return a; }, writeByte_1: function (a) { var b = this.counter + 1; if (b > this.buf.length) { var d = [].createArray(Math.max_2(this.buf.length << 1, b)).init(0); java_lang_System.prototype.arraycopy_5(this.buf, 0, d, 0, this.buf.length); } this.buf[this.counter] = a; this.counter = b; }, write_1: function (a) { var b = a.length; if (0 != b) { var d = this.counter + b; if (d > this.buf.length) { var e = [].createArray(Math.max_2(this.buf.length << 1, d)).init(0); java_lang_System.prototype.arraycopy_5(this.buf, 0, e, 0, this.counter); this.buf = e; } java_lang_System.prototype.arraycopy_5(a, 0, this.buf, this.counter, b); this.counter = d; } }, close_0: function () {}, hashCode_0: function () { var a; a = 31 + GT1210.prototype.hashCode_1(this.buf); return (a = 31 * a + this.counter); }, equals_1: function (a) { return this == a ? !0 : null != a && instanceOf(a, GT535) && this.counter == a.counter ? !0 : !1; }, getWrittenByteCount_0: function () { return this.counter; }, }, "GT535", [GT965] ), GT386 = Class.extend( { initialConstructor_0: function () { this.eventEncoder = this.stream = null; this.streamStartVersion = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.eventEncoder = this.stream = null; this.streamStartVersion = 0; null == a ? GT1650.prototype.assertFailed_1("Not sane to build a writer on a null stream!") : ((this.stream = a), (this.eventEncoder = new GT483()), (this.streamStartVersion = -1)); }, close_0: function () { null != this.stream && this.stream.close_0(); }, getStream_0: function () { return this.stream; }, writeNextEvent_2: function (a, b) { if (null == this.stream) return "Can't write to a stream that's null!"; if (-1 == this.streamStartVersion) return "The stream start Version has to be set before the first event is written!"; var d = this.eventEncoder.encode_3(a, !1, b); this.stream.write_1(d); return null; }, writeNextEvent_1: function (a) { return this.writeNextEvent_2(a, this.eventEncoder.getEncoderVersion_0()); }, getEventEncoder_0: function () { return this.eventEncoder; }, setStreamStartVersion_2: function (a, b) { if (-1 != this.streamStartVersion) return "The stream start Version has been set earlier!"; if (0 > a) return "" + a + " is not a valid streamStartVerison!"; this.streamStartVersion = a; b && this.stream.write_1(GT902.prototype.intToByteArray_1(a)); return null; }, getDataSink_0: function () { return this.stream; }, }, "GT386", [GT648] ), GT1210 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1210", [] ); GT1210.prototype.hashCode_1 = function (a) { if (null == a) return 0; for (var b = 1, d = 0; d < a.length; d++) b = 31 * b + a[d]; return b; }; GT1210.prototype.equals_2 = function (a, b) { if (a == b) return !0; if (null == a || null == b) return !1; var d = a.length; if (b.length != d) return !1; for (var e = 0; e < d; e++) if (a[e] != b[e]) return !1; return !0; }; var GT485 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT485", [] ); GT485.prototype.urlDecode_1 = function (a) { for (var b = 0; b < GT485.prototype.URL_DECODING.length; b++) a = this.replaceAllInString_3(a, GT485.prototype.URL_DECODING[b][0], GT485.prototype.URL_DECODING[b][1]); return a; }; GT485.prototype.urlEncode_1 = function (a) { for (var b = 0; b < GT485.prototype.URL_DECODING.length; b++) a = this.replaceAllInString_3(a, GT485.prototype.URL_DECODING[b][1], GT485.prototype.URL_DECODING[b][0]); return a; }; GT485.prototype.replaceInString_3 = function (a, b, d) { var e = a.indexOf_1(b); return 0 > e ? a : "" + a.substring_2(0, e) + d + a.substring_1(e + b.length_0()); }; GT485.prototype.replaceAllInString_3 = function (a, b, d) { for (var e = ""; !e.equals_1(a); ) (e = a), (a = this.replaceInString_3(e, b, d)); return e; }; GT485.prototype.URL_DECODING = [ ["%25", "%"], ["%20", " "], ["%60", "`"], ["%7E", "~"], ["%21", "!"], ["%23", "#"], ["%24", "$"], ["%5E", "^"], ["%26", "&"], ["%28", "("], ["%29", ")"], ["%3D", "="], ["%2B", "+"], ["%5C", "\\"], ["%7C", "|"], ["%5B", "["], ["%5D", "]"], ["%7B", "{"], ["%7D", "}"], ["%3B", ";"], ["%3A", ":"], ["%27", "'"], ["%22", '"'], ["%2C", ","], ["%3C", "<"], ["%3E", ">"], ["%3F", "?"], ]; var GT1461 = Class.extend( { initialConstructor_0: function () { this.v = null; this.v = new java_util_JavaScriptVector(); }, pull_0: function () { if (0 == this.v.size_0()) return null; var a = this.v.elementAt_1(0); this.v.removeElementAt_1(0); return a; }, push_1: function (a) { this.v.addElement_1(a); }, size_0: function () { return this.v.size_0(); }, }, "GT1461", [] ), GT555 = GT1610.extend( { initialConstructor_0: function () { this.streamFullyRead = !1; this.numberOfEventsRead = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.streamFullyRead = !1; this.numberOfEventsRead = 0; GT1610.prototype.initialConstructor_1.call(this, GT555.prototype.ID); this.streamFullyRead = a; this.numberOfEventsRead = b; }, dispatch_1: function (a) { return instanceOf(a, GT1017) ? a.playbackFinished_2(this.streamFullyRead, this.numberOfEventsRead) : !1; }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1017); }, }, "GT555", [] ); GT555.prototype.ID = GT1677.prototype.generateID_0(); var GT536 = GT1610.extend( { initialConstructor_0: function () { GT1610.prototype.initialConstructor_1.call(this, GT536.prototype.ID); }, dispatch_1: function (a) { return instanceOf(a, GT1017) ? a.recordFinished_0() : !1; }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1017); }, }, "GT536", [] ); GT536.prototype.ID = GT1677.prototype.generateID_0(); var GT1515 = Class.extend( { initialConstructor_0: function () { this.componentMover = null; this.convertCoordinates = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.componentMover = null; this.convertCoordinates = !1; this.componentMover = a; this.convertCoordinates = b; }, }, "GT1515", [] ), java_applet_Applet = Class.extend( { initialConstructor_0: function () {}, getParameter_1: function (a) { return JSUTIL.getParameter(a); }, getCodeBase_0: function () { return new java_net_URL(window.location.protocol, window.location.host, "", window.location.pathname); }, setBackground_1: function (a) { G.css(G.body(), { "background-color": a.getRGBString_0() }); }, getSize_0: function () { var a = { width: null, height: null }; if (CONFIG.get("fixedContainer")) { var b = window.getComputedStyle(CONFIG.CONTAINERS.container), d = parseInt(b.width, 10) + parseInt(b.paddingLeft, 10) + parseInt(b.paddingRight, 10), b = parseInt(b.height, 10) + parseInt(b.paddingTop, 10) + parseInt(b.paddingBottom, 10); a.width = d / CONFIG.SCALINGFACTOR; a.height = b / CONFIG.SCALINGFACTOR; } else (a.width = window.innerWidth / CONFIG.SCALINGFACTOR), (a.height = window.innerHeight / CONFIG.SCALINGFACTOR); return a; }, }, "java_applet_Applet", [] ), java_awt_Font = Class.extend( { initialConstructor_3: function (a, b, d) { this.name = a; this.size = b; this.style = d; }, }, "java_awt_Font", [] ); java_awt_Font.prototype.PLAIN = 0; java_awt_Font.prototype.BOLD = 1; java_awt_Font.prototype.ITALIC = 2; var java_awt_Image = Class.extend( { getWidth_1: function (a) { return 0; }, getHeight_1: function (a) { return 0; }, }, "java_awt_Image", [] ), java_io_IOException = Class.extend({ initialConstructor_1: function (a) {} }, "java_io_IOException", []), java_io_Reader = Class.extend({ initialConstructor_0: function () {} }, "java_io_Reader", []), java_lang_Byte = Class.extend( { initialConstructor_1: function (a) { this.byteValue = a; }, byteValue_0: function () { return this.byteValue; }, toString: function () { return Integer.toString_2(this.byteValue, 10); }, equals_1: function (a) { return a instanceof java_lang_Byte ? this.byteValue === a.byteValue : !1; }, }, "java_lang_Byte", [] ); java_lang_Byte.prototype.MIN_VALUE = -128; java_lang_Byte.prototype.MAX_VALUE = 127; java_lang_Byte.prototype.toString_1 = function (a) { return Integer.toString_2(a, 10); }; Double = Class.extend( { initialConstructor_1: function (a) { this.d = a; }, doubleValue_0: function () { return this.d; }, equals_1: function (a) { return a instanceof Double ? this.d === a.d : !1; }, }, "Double", [] ); Double.longBitsToDouble_1 = function (a) { return "longBitsToDouble_1 not supported"; }; Double.doubleToLongBits_1 = function (a) { return "doubleToLongBits_1 not supported"; }; Double.valueOf_1 = function (a) { return parseFloat(a); }; Double.parseDouble_1 = function (a) { return parseFloat(a); }; Double.toString_1 = function (a) { return a.toString(); }; Double.prototype.toString = function () { return this.d.toString(); }; Double.MAX_VALUE = Number.MAX_VALUE; Double.MIN_VALUE = Number.MIN_VALUE; var Exception = Class.extend({ initialConstructor_1: function (a) {} }, "Exception", []), SyncObject = Class.extend({ initialConstructor_0: function () {}, notifyAll_0: function () {}, wait_0: function () {}, wait_1: function () {} }, "SyncObject", []), Float = Class.extend( { initialConstructor_1: function (a) { this.f = a; }, equals_1: function (a) { return a instanceof Float ? this.f === a.f : !1; }, }, "Float", [] ); Float.parseFloat_1 = function (a) { return parseFloat(a); }; Float.intBitsToFloat_1 = function (a) { return "intBitsToFloat_1 not supported"; }; Float.floatToIntBits_1 = function (a) { return "floatToIntBits_1 not supported"; }; Float.toString_1 = function (a) { return a.toString(); }; Float.prototype.toString = function () { return this.f.toString(); }; var Integer = Class.extend( { initialConstructor_1: function (a) { this.integer = a; }, doubleValue_0: function () { return this.integer; }, intValue_0: function () { return this.integer; }, toString: function () { return this.integer + ""; }, toString_0: function () { return this.toString(); }, equals_1: function (a) { return a instanceof Integer ? this.intValue_0() === a.intValue_0() : !1; }, }, "Integer", [] ); Integer.valueOf_2 = function (a, b) { return parseInt(a, b); }; Integer.toHexString_1 = function (a) { return a.toString(16); }; Integer.toOctalString_1 = function (a) { return a.toString(8); }; Integer.toBinaryString_1 = function (a) { return a.toString(2); }; Integer.toString_2 = function (a, b) { return a.toString(b); }; Integer.toString_1 = function (a) { return a.toString(10); }; Integer.truncate_1 = function (a) { if ("object" === typeof a) { for (var b in a) a.hasOwnProperty(b) && (a[b] = Integer.truncate_1(a[b])); return a; } return 0 > a ? Math.ceil(a) : 0 <= a ? Math.floor(a) : a; }; Integer.parseInt_1 = function (a) { return parseInt(a); }; Integer.MAX_VALUE = 2147483647; Integer.MIN_VALUE = -2147483648; var StringBuffer = Class.extend( { initialConstructor_0: function () { this.parts = []; }, initialConstructor_1: function (a) { this.parts = []; this.append_1(a); }, append_1: function (a) { this.parts.push(null != a ? a.toString_0() : "null"); return this; }, length_0: function () { for (var a = 0, b = 0; b < this.parts.length; b++) a += this.parts[b].length; return a; }, toString_0: function () { return this.parts.join(""); }, toString: function () { return this.parts.join(""); }, equals_1: function (a) { return this === a; }, }, "StringBuffer", [] ), java_util_Enumeration = Class.extend( { initialConstructor_0: function () { this.data = []; this.pos = 0; }, hasMoreElements_0: function () { this.pos++; return this.pos <= this.data.length; }, nextElement_0: function () { return this.data[this.pos - 1]; }, }, "java_util_Enumeration", [] ), java_util_JavaScriptHashtable = Class.extend( { initialConstructor_0: function () { this.hashtable = {}; }, clone_0: function () { var a = new java_util_JavaScriptHashtable(), b; for (b in this.hashtable) this.hashtable.hasOwnProperty(b) && a.put_2(b, this.hashtable[b]); return a; }, equals_1: function (a) { return a instanceof java_util_JavaScriptHashtable ? JSUTIL.equals_2(this, a) : !1; }, clear_0: function () { this.hashtable = {}; }, containsKey_1: function (a) { return void 0 != this.get_1(a); }, containsValue_1: function (a) { return void 0 !== this.hashtable; }, get_1: function (a) { a = this.hashtable[a]; return "undefined" == typeof a ? null : a; }, isEmpty_0: function () { return 0 == parseInt(this.size_0()); }, keys_0: function () { var a = new java_util_Enumeration(), b; for (b in this.hashtable) this.hashtable.hasOwnProperty(b) && a.data.push(b); return a; }, elements_0: function () { var a = new java_util_Enumeration(), b; for (b in this.hashtable) this.hashtable.hasOwnProperty(b) && a.data.push(this.hashtable[b]); return a; }, put_2: function (a, b) { if (null == a || null == b) throw "NullPointerException {" + a + "},{" + b + "}"; var d = this.get_1(a); this.hashtable[a] = b; return d; }, remove_1: function (a) { var b = this.hashtable[a]; delete this.hashtable[a]; return b; }, size_0: function () { var a = 0, b; for (b in this.hashtable) this.hashtable.hasOwnProperty(b) && a++; return a; }, toString: function () { var a = "", b; for (b in this.hashtable) void 0 != this.hashtable[b] && (a += "{" + b + "},{" + this.hashtable[b] + "}\n"); return a; }, values: function () { var a = [], b; for (b in this.hashtable) void 0 != this.hashtable[b] && a.push(this.hashtable[b]); return a; }, }, "java_util_JavaScriptHashtable", [] ), GT19 = GT1147.extend( { initialConstructor_0: function () { this.paytableNext = null; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.paytableNext = null; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT428.prototype.ID; }, enter_1: function (a) { this.getSlotGame_0().getConnection_0().setBlocking_1(!0); ((this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0()) && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FEATURE_SCREEN); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEBETS, "" + this.getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0()); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMEMODE, GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); this.isFirstStateAfterInit_0() && GT21.prototype.isAnimationDone_0() ? this.changeGuiState_1(GT2.prototype.ID) : this.changeGuiState_1(GT519.prototype.ID); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyGuiStateFinished_1: function (a) { this.getSlotGame_0().getConnection_0().setBlocking_1(!1); a == GT519.prototype.ID ? this.getSlotState_0().isAutoPlaying_0() && (this.getSlotGame_0().reduceAutoPlayCounter_0(), this.getSlotState_0().isAutoPlaying_0() && this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN))) : a == GT729.prototype.ID && null != this.paytableNext && (this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(this.paytableNext), (this.paytableNext = null)); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN ? (this.getSlotState_0().getFreeSpinState_0().setStopAutoplayAfterFreeGames_1(!this.getSlotState_0().isAutoPlaying_0()), this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && (this.getSlotState_0().getCasinoState_0().isInReplayMode_0() || this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT)), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.AUTOPLAY ? (this.getSlotState_0().getFreeSpinState_0().setStopAutoplayAfterFreeGames_1(!1), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.PAYTABLE ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT ? (this.changeGuiState_1(GT729.prototype.ID), (this.paytableNext = a)) : (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED) && instanceOf(a, GT426) && a.getModalDialogId_0() != a.getReplayDialogId_0() && this.changeGuiState_1(GT729.prototype.ID); }, handleChangeStateWhenSpinIsTriggered_0: function () { GT2.prototype.isAnimationDone_0() && GT21.prototype.isAnimationDone_0() && this.changeState_1(GT321.prototype.ID); }, handleChangeStateForPaytable_0: function () { GT2.prototype.isAnimationDone_0() && GT21.prototype.isAnimationDone_0() && this.changeState_1(GT734.prototype.ID); }, toString: function () { return "ClientStateFreeGamesStart (" + this.getId_0() + ")"; }, }, "GT19", [] ), GT21 = GT1254.extend( { initialConstructor_0: function () { this.symbolseries = this.popupFont = this.freeSpinPopupContainer = this.bookContainer = this.soundEnd = this.soundBookFlip = this.imageBookFlipSymbols = this.imageBookBonusGlow = this.imageBookFlipPages = this.imageBookFlipBack = this.imageBookBG = null; this.stepinsym = this.stepinseries = 0; this.finishCallback = this.rand = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.symbolseries = this.popupFont = this.freeSpinPopupContainer = this.bookContainer = this.soundEnd = this.soundBookFlip = this.imageBookFlipSymbols = this.imageBookBonusGlow = this.imageBookFlipPages = this.imageBookFlipBack = this.imageBookBG = null; this.stepinsym = this.stepinseries = 0; this.finishCallback = this.rand = null; GT1254.prototype.initialConstructor_1.call(this, a); this.rand = new GT1561(this.getGui_0().getTimer_0().currentTimeMillis_0()); this.finishCallback = new GT569(this); }, getId_0: function () { return GT519.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesStart"; }, enter_1: function (a) { GT21.prototype.animationDone = !1; this.doLoadResources_0(); this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getSlotConsole_0().setActive_1(!1); this.getGui_0().getSlotConsole_0().setLastWin_1(this.getSlotState_0().getLastWin_0()); 0 < this.getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0() ? (this.finishFreeGameStartState_1(!1), this.getGui_0().getFreeGameSounds_0().isBackgroundSoundRunning_0() || this.getGui_0().getFreeGameSounds_0().startBackgroundSound_0()) : (this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbols_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), new GT1613()), this.visualizeFreeGameStart_0()); }, doLoadResources_0: function () { if (null == this.imageBookBG) { this.rand = new GT1561(this.getGui_0().getTimer_0().currentTimeMillis_0()); this.imageBookBG = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg"); this.imageBookFlipBack = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_back.jpg"); this.imageBookFlipPages = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_pages.jpg"); this.imageBookBonusGlow = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/book_bonusglow.png"); this.imageBookFlipSymbols = [].createArray(4); for (var a = 0; 4 > a; a++) this.imageBookFlipSymbols[a] = this.getGui_0() .getSkinManager_0() .getResourceManager_0() .getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_" + (a + 1) + ".jpg"); this.soundBookFlip = [].createArray(3); for (a = 0; a < this.soundBookFlip.length; a++) this.soundBookFlip[a] = this.getGui_0() .getSkinManager_0() .getResourceManager_0() .getSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page" + (a + 1) + ".mp3"); this.soundEnd = this.getGui_0().getSkinManager_0().getResourceManager_0().getSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page5.mp3"); } }, visualizeFreeGameStart_0: function () { this.getGui_0().getSlotConsole_0().setWin_2(0, !0); this.getGui_0().getSlotConsole_0().setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_whilespintext}")); this.getSlotState_0().getCasinoState_0().isActivePlayer_0() ? this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN) : this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.INACTIVE); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); this.freeSpinPopupContainer = new GT1437(a, 356, this.getGui_0().getSkin_0().getReelY_0() + 92, this.imageBookBG.getWidth_0(), this.imageBookBG.getHeight_0()); new GT1591(this.freeSpinPopupContainer, 0, 0, this.imageBookBG); null == this.popupFont && (this.popupFont = this.getGui_0().getSkinManager_0().getResourceManager_0().getFont_6(GT1393.prototype.GEORGIA.name_0(), !0, !0, 0, 270, 0)); var a = GT1677.prototype.replaceInString_3( this.getGui_0().getSkinManager_0().getSkinDescription_0().getString_1("bookofra_congratulationfreespins"), "#0", this.getGui_0().getSkinManager_0().getSkinDescription_0().getString_1("bookofra_paytabletext0") ), b = new GT1490( this.freeSpinPopupContainer, GT21.prototype.BOOK_TEXT_X_POS_CORRECTOR + GT21.prototype.BOOK_X_POS_CORRECTOR, 0, this.freeSpinPopupContainer.getWidth_0() - GT21.prototype.BOOK_X_POS_CORRECTOR, this.freeSpinPopupContainer.getHeight_0(), this.popupFont, new GT1634(251, 206, 42), GT1488.prototype.CENTER, GT1489.prototype.CENTER ); b.setText_1(a); b.setOutline_2(2, GT1634.prototype.black); b.setSpacing_1(270); this.bookContainer = new GT1437( this.freeSpinPopupContainer, ((this.imageBookBG.getWidth_0() - this.imageBookFlipBack.getWidth_0()) >> 1) + GT21.prototype.BOOK_X_POS_CORRECTOR, (this.imageBookBG.getHeight_0() - this.imageBookFlipBack.getHeight_0()) >> 1, this.imageBookFlipBack.getWidth_0(), this.imageBookFlipBack.getHeight_0() ); a = (this.getReelsetNumberOfSymbolToStop_0() - 2) % 10; if (0 > a || 8 < a) a = 0; this.symbolseries = [].createArray(11).init(0); this.symbolseries[0] = -1; this.symbolseries[1] = -1; for (var b = new GT1561((a + Integer.truncate_1(this.getSlotState_0().getWinSum_1(!0))) << 6), d = new java_util_JavaScriptVector(), e = 0; 9 > e; e++) if (e != a) { var f = new Integer(e); d.insertElementAt_2(f, 0 == d.size_0() ? 0 : b.nextInt_1(d.size_0())); } for (e = 0; 8 > e; e++) this.symbolseries[2 + e] = d.elementAt_1(e).intValue_0(); this.symbolseries[10] = a; this.stepinsym = this.stepinseries = 0; this.updategraphics_0(); this.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT1509(this, "noparameter"), 1500); }, isSupposedToProceedWithAutoplay_0: function () { return !this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().isAutoPlaying_0(); }, finishFreeGameStartState_1: function (a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); b.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); instanceOf(b, GT1158) && b.reflow_0(); this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); b = this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && (b = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0() - (this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? this.getSlotState_0().getWinSum_1(!0) : 0)); this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(b); this.getGui_0().getSlotConsole_0().setHighlightBackgroundStatusText_1(!0); this.getGui_0().getSlotConsole_0().setWin_2(0, !0); this.getGui_0().getSlotConsole_0().setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_supergamestart}")); this.getGui_0().updatePaytableIfAvailable_0(); GT21.prototype.animationDone = !0; this.getGui_0().getSlotConsole_0().setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); b = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMEMODE, GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(b); this.isSupposedToProceedWithAutoplay_0() && a ? (this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(), this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_2(this.soundEnd, this.finishCallback)) : (a && this.triggerSound_1(this.soundEnd), this.fireStateFinished_0()); }, getReelsetNumberOfSymbolToStop_0: function () { return this.getSlotState_0().getFreeSpinState_0().getNextSpinReelset_0(); }, exit_0: function () { var a = this.getGui_0().getFreeGameSounds_0(); a.isBackgroundSoundRunning_0() || a.startBackgroundSound_0(); this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); this.getGui_0().getFreeGameSounds_0().stopFreeGamesStartSound_0(); this.getGui_0().getSlotConsole_0().setStatusText_1(""); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); a.destroyChildren_0(); var a = this.getGui_0().getSkin_0().reelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()), b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); b.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); instanceOf(b, GT1158) && b.reflow_0(); this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); a.destroyChildren_0(); a = this.getGui_0().getSkin_0().stoppedReelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setSymbols_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getAllWinPositions_0()); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); b.destroyChildren_0(); b = this.getGui_0().getSkin_0().highlightInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); b.setStoppedReels_1(a); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(b); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); null != this.freeSpinPopupContainer && this.freeSpinPopupContainer.isAlive_0() && this.freeSpinPopupContainer.destroy_0(); this.getGui_0().getSlotConsole_0().setHighlightBackgroundStatusText_1(!0); GT21.prototype.animationDone = !0; }, toString: function () { return "BookOfRaDeluxeGuiStateFreeGamesStart (" + this.getId_0() + ")"; }, run_1: function (a) { null != a && this.freeSpinPopupContainer.isAlive_0() && (0 == this.stepinsym && this.triggerSound_1(this.soundBookFlip[this.rand.nextInt_1(3)]), this.stepinsym++, 7 < this.stepinsym && ((this.stepinsym = 0), this.stepinseries < this.symbolseries.length && this.stepinseries++), this.updategraphics_0(), this.stepinseries < this.symbolseries.length ? this.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT1509(this, "noparameter"), 50) : this.finishFreeGameStartState_1(!0)); }, updategraphics_0: function () { this.bookContainer.destroyChildren_0(); new GT1591(this.bookContainer, 0, 0, this.imageBookFlipBack); var a = this.stepinseries - 1; 0 <= a && a < this.symbolseries.length && 0 <= this.symbolseries[a] && new GT1591(this.bookContainer, 96, 78, this.imageBookFlipSymbols[3], this.symbolseries[a], 0); if (1 <= this.stepinsym) { var a = GT21.prototype.BOOK_FLIP_PAGE_SOURCE_X[this.stepinsym - 1], b = GT21.prototype.BOOK_FLIP_PAGE_SOURCE_X[this.stepinsym] - a, d = this.imageBookFlipPages.getHeight_0(); new GT1591(this.bookContainer, GT21.prototype.BOOK_FLIP_PAGE_X[this.stepinsym - 1], 0, b, d, this.imageBookFlipPages, a, 0, b, d); } 5 <= this.stepinsym && this.stepinseries < this.symbolseries.length && 0 <= this.symbolseries[this.stepinseries] && new GT1591( this.bookContainer, GT21.prototype.BOOK_FLIP_SYM_X[this.stepinsym - 5], GT21.prototype.BOOK_FLIP_SYM_Y[this.stepinsym - 5], this.imageBookFlipSymbols[this.stepinsym - 5], this.symbolseries[this.stepinseries], 0 ); this.stepinseries == this.symbolseries.length && new GT1591(this.bookContainer, 87, 69, this.imageBookBonusGlow); }, triggerSound_1: function (a) { this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a); }, requestFinish_0: function () { null != this.symbolseries && ((this.stepinseries = this.symbolseries.length - 1), this.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT1509(this, "noparameter"), 30)); }, }, "GT21", [GT1482] ); GT21.prototype.setAnimationDone_0 = function () { GT21.prototype.animationDone = !0; }; GT21.prototype.isAnimationDone_0 = function () { return GT21.prototype.animationDone; }; GT21.prototype.BOOK_X_POS_CORRECTOR = 30; GT21.prototype.BOOK_TEXT_X_POS_CORRECTOR = 10; GT21.prototype.BOOK_FLIP_PAGE_X = [229, 229, 219, 203, 162, 98, 68]; GT21.prototype.BOOK_FLIP_PAGE_SOURCE_X = [0, 154, 262, 335, 376, 443, 576, 738]; GT21.prototype.BOOK_FLIP_SYM_X = [174, 124, 93, 96, 78]; GT21.prototype.BOOK_FLIP_SYM_Y = [63, 60, 70, 78]; GT21.prototype.animationDone = !0; var GT4 = GT1254.extend( { initialConstructor_0: function () { this.symbols = null; this.appearTime = this.internalState = 0; this.cstfCallBack = this.finishCallback = null; this.charIdx = 0; this.originalWinpos = this.winpos = null; this.symbolIdx = 0; this.soundPlayer = this.sound = this.expandedWin = null; this.callexpandedWins = this.delayedCallBackRunning = !1; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.symbols = null; this.appearTime = this.internalState = 0; this.cstfCallBack = this.finishCallback = null; this.charIdx = 0; this.originalWinpos = this.winpos = null; this.symbolIdx = 0; this.soundPlayer = this.sound = this.expandedWin = null; this.callexpandedWins = this.delayedCallBackRunning = !1; GT1254.prototype.initialConstructor_1.call(this, a); this.symbols = [].createArray(b.length).init(0); for (a = 0; a < b.length; a++) this.symbols[a] = b[a]; this.sound = d; this.soundPlayer = e; this.appearTime = f; this.delayedCallBackRunning = !1; }, getId_0: function () { return GT568.prototype.ID; }, getConsoleIdentifier_0: function () { return "WinAnimations"; }, enter_1: function (a) { this.internalState = GT4.prototype.STATE_FIRST_WINS; this.delayedCallBackRunning = this.callexpandedWins = !1; this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES).hide_1(!1); this.getGui_0().getSlotConsole_0().setWin_2(0, !0); a = this.getSlotState_0().getWins_0(); this.charIdx = this.containsSplittedScatter_2(a, this.symbols); if (this.getGui_0().getFreeGameSounds_0().hasDynamicBackgroundSoundVolume_0() && 0 > this.charIdx) { for (var b = -1, d = this.getGui_0(), e = d.getSlotState_0().getWins_0(), f = 0; f < e.length; f++) { var g = d.determineWinSound_1(e[f]); if (null != g) if (((g = this.getGui_0().getFreeGameSounds_0().getDynamicBackgroundSoundVolume_1(g)), 0 > g)) { b = -1; break; } else { if (-1 == b || g < b) b = g; } else { b = -1; break; } } 0 >= b ? this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0) : 100 > b && this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, b); } else this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0); if (-1 == this.charIdx) (b = a), this.getGui_0().getSlotConsole_0().setStatusText_1(""); else { b = [].createArray(a.length - 1); for (f = d = 0; f < a.length; f++) a[f].symbol != this.symbols[this.charIdx] && ((b[d] = a[f]), d++); 0 != b.length && this.getGui_0().getSlotConsole_0().setStatusText_1(""); } this.getGui_0().startWinSwitcherWithWins_2(b, !1); this.finishCallback = new GT0(this); this.getGui_0().getWinSwitcher_0().addFinishCallback_1(this.finishCallback); this.cstfCallBack = new GT6(this); a = this.getSlotState_0().getFreeSpinState_0(); a.isForceAutoplayInFreeGames_0() && a.isFreeSpinsRunning_0() && !a.isBeforeFirstFreeSpin_0() ? this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0() : this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(this.determineConsoleState_1(this.getGui_0())); }, determineConsoleState_1: function (a) { return a.getSlotState_0().isAutoPlaying_0() ? GT725.prototype.AUTO_SPIN_SKIP_WIN : a.getSlotState_0().isFastSpinEnabled_0() ? GT725.prototype.FASTSPIN : a.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && a.getSlotState_0().getServerState_0() != GT1649.prototype.SERVERSTATE_WINVISUALIZATION ? GT725.prototype.FASTCOLLECTORGAMBLE : GT725.prototype.FASTCOLLECT; }, requestFinish_0: function () { if ( -1 == this.charIdx || (this.internalState != GT4.prototype.STATE_FIRST_WINS && this.internalState != GT4.prototype.STATE_EXPANDING) || null == this.symbols || null == this.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[this.charIdx]) ) this.delayedCallBackRunning ? (null != this.cstfCallBack && (this.cstfCallBack.deactivate_0(), (this.cstfCallBack = null)), this.callFireStateFinished_0()) : ((this.delayedCallBackRunning = !0), this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.finishCallback), this.getGui_0().getWinSwitcher_0().stopFirstRun_0(), this.getGui_0().getSkinManager_0().getTimer_0().triggerCallbackAfter_2(this.cstfCallBack, 10)); else { this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.internalState == GT4.prototype.STATE_FIRST_WINS && (null != this.finishCallback && this.finishCallback.deactivate_0(), this.startExpanding_1(!0)); for (this.symbolIdx = 0; this.symbolIdx < this.winpos.getCount_0(); ) this.expandOneSymbol_1(!1), this.symbolIdx++; this.callexpandedWins = !0; this.internalState = GT4.prototype.STATE_EXPANDEDWINS; this.getGui_0().getSkinManager_0().getTimer_0().triggerCallbackAfter_2(this.cstfCallBack, 10); } }, exit_0: function () { this.callexpandedWins = this.delayedCallBackRunning = !1; this.getGui_0().getSlotConsole_0().setWin_2(this.getGui_0().getSlotState_0().getWinSum_1(!0), !0); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbolColorTransformation_1(null); this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.finishCallback); 0 < this.getGui_0().getSlotState_0().getCurrentReelSetIndex_0() && this.getGui_0().getWinSwitcher_0().stopFirstRun_0(); null != this.finishCallback && (this.finishCallback.deactivate_0(), (this.finishCallback = null)); null != this.cstfCallBack && (this.cstfCallBack.deactivate_0(), (this.cstfCallBack = null)); this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!1); }, toString: function () { return "BookOfRaDeluxeGuiStateWinAnimationsExpandingSymbols (" + this.getId_0() + ")"; }, winSwitcherFinished_0: function () { if (this.getGui_0().getFreeGameSounds_0().hasDynamicBackgroundSoundVolume_0()) { var a = -1; null != this.sound && (a = this.getGui_0().getFreeGameSounds_0().getDynamicBackgroundSoundVolume_1(this.sound)); 0 >= a ? this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0) : 100 > a && this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, a); } else this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0); -1 != this.charIdx && this.internalState == GT4.prototype.STATE_FIRST_WINS ? ((this.internalState = GT4.prototype.STATE_EXPANDING), this.startExpanding_1(!1)) : -1 != this.charIdx && this.internalState == GT4.prototype.STATE_EXPANDING ? (this.getGui_0().getWinSwitcher_0().stop_0(), this.symbolIdx < this.winpos.getCount_0() ? ((a = this.expandOneSymbol_1(!0)), this.symbolIdx++, this.getGui_0() .getTimer_0() .triggerCallbackAfter_2(this.finishCallback, a ? this.appearTime : this.appearTime >> 2)) : ((this.symbolIdx = 0), (this.internalState = GT4.prototype.STATE_EXPANDEDWINS), this.expandedWins_1(!1))) : (this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!1), this.callFireStateFinished_0()); }, callFireStateFinished_0: function () { this.callexpandedWins && ((this.callexpandedWins = !1), this.expandedWins_1(!0)); this.fireStateFinished_0(); }, startExpanding_1: function (a) { this.getGui_0().getWinSwitcher_0().stop_0(); if (-1 == this.charIdx) this.callFireStateFinished_0(); else { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); a.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); var b = this.getGui_0().getSlotState_0().getReelPositions_0(), d = this.getGui_0().getSlotState_0().getCurrentReelSet_0(); this.symbolIdx = 0; this.winpos = this.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[this.charIdx]); a.setSymbols_3(b, d, new GT1613()); this.expandedWin = this.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); b = GT1613.prototype.createEndPositions_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getGui_0().getLayout_0().rows); this.originalWinpos = this.expandedWin.createWinPositions_2(b, this.getSlotState_0().getDefinition_0().getWinLines_0()); for (b = 0; b < this.originalWinpos.getCount_0(); b++) a.setSymbol_3(this.originalWinpos.getSymbolColumn_1(b), this.originalWinpos.getSymbolRow_1(b), this.symbols[this.charIdx]); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, 1e3); } }, expandOneSymbol_1: function (a) { for (var b = this.winpos.getSymbolColumn_1(this.symbolIdx), d = this.winpos.getSymbolRow_1(this.symbolIdx); this.originalWinpos.isWinningPosition_2(b, d) && this.symbolIdx < this.winpos.getCount_0() - 1; ) this.symbolIdx++, (b = this.winpos.getSymbolColumn_1(this.symbolIdx)), (d = this.winpos.getSymbolRow_1(this.symbolIdx)); if (this.symbolIdx >= this.winpos.getCount_0() || this.originalWinpos.isWinningPosition_2(b, d)) return !1; this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbol_3(b, d, this.symbols[this.charIdx]); a && null != this.soundPlayer && null != this.sound && this.soundPlayer.start_1(this.sound); return !0; }, expandedWins_1: function (a) { null == this.expandedWin ? (GT1650.prototype.assertExp_2(null != this.expandedWin, "win is null"), this.callFireStateFinished_0()) : (this.getGui_0().getSlotConsole_0().setStatusText_1(""), this.startWinSwitcherWithExpandedWins_3(this.expandedWin, this.getGui_0(), a)); }, }, "GT4", [] ), GT0 = Class.extend( { initialConstructor_0: function () { this.state = null; this.deactivated = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.deactivated = !1; this.state = a; this.deactivated = !1; }, deactivate_0: function () { this.deactivated = !0; }, run_0: function () { this.deactivated || this.state.winSwitcherFinished_0(); }, }, "GT0", [Runnable] ), GT6 = Class.extend( { initialConstructor_0: function () { this.state = null; this.deactivated = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.deactivated = !1; this.state = a; this.deactivated = !1; }, deactivate_0: function () { this.deactivated = !0; }, run_0: function () { this.deactivated || this.state.callFireStateFinished_0(); }, }, "GT6", [Runnable] ); GT4.prototype.valueOfWin_2 = function (a, b) { return null == a ? 0 : a.payCash + a.payGames * b; }; GT4.prototype.buildPayoutStep_4 = function (a, b, d, e) { var f = [].createArray(2).init(0); for (f[0] = (this.valueOfWin_2(a, e) * (b + 1)) / d; 0 < e && f[0] > a.payCash && f[0] > e && a.payGames > f[1]; ) f[1]++, (f[0] -= e); return f; }; GT4.prototype.expandScatterWinsToLineWins_3 = function (a, b, d) { for (var e = [].createArray(b), f = [].createArray(2).init(0), g = 0; g < b; g++) { var k = this.buildPayoutStep_4(a, g, b, d); e[g] = new GT1092(a.symbol, g, 0, a.num, 0, 0, k[0] - f[0], Integer.truncate_1(k[1] - f[1])); f = k; } return e; }; GT4.prototype.containsChar_2 = function (a, b) { for (var d = 0; d < a.length; d++) if (a[d] == b) return d; return -1; }; GT4.prototype.containsSplittedScatter_2 = function (a, b) { for (var d = 0; d < a.length; d++) { var e = this.containsChar_2(b, a[d].symbol); if (-1 != e) return e; } return -1; }; GT4.prototype.getExpandingWin_2 = function (a, b) { var d = GT4.prototype.containsSplittedScatter_2(a, b), e = null; if (-1 != d) { for (var f = 0; f < a.length; f++) if (a[f].symbol == b[d]) { e = a[f]; break; } GT1650.prototype.assertExp_2(null != e, "win is null"); } return e; }; GT4.prototype.containsSymbol_6 = function (a, b, d, e, f, g) { for (var k = e; k < e + d; k++) if (g.getSymbol_2(b, (f[b] + k) % g.getNumberOfSymbols_1(b)) == a) return !0; return !1; }; GT4.prototype.startWinSwitcherWithExpandedWins_3 = function (a, b, d) { var e = this.expandScatterWinsToLineWins_3(a, b.getSlotState_0().getNumberOfLines_0(), b.getSlotState_0().getSuperGameState_0().getSuperGamePrice_0()), f = [].createArray(e.length + 1); java_lang_System.prototype.arraycopy_5(e, 0, f, 0, e.length); e = f[f.length - 2]; f[f.length - 1] = new GT103(e.symbol, e.line, e.start, e.num, e.freespins, e.jackpot, 0, 0); a = this.createExpandedScatterEndPositions_2(a.symbol, b); b.getWinSwitcher_0().start_4(f, [].createArray(a.length).init(0), new GT1664(a), d); }; GT4.prototype.createExpandedScatterEndPositions_2 = function (a, b) { for (var d = GT1613.prototype.createEndPositions_3(b.getSlotState_0().getReelPositions_0(), b.getSlotState_0().getCurrentReelSet_0(), b.getSkin_0().reelLayout_0().create_0().rows), e = 0; e < d.length; e++) { for (var f = !1, g = 0; g < d[e].length; g++) if (d[e][g] == a) { f = !0; break; } if (f) for (g = 0; g < d[e].length; g++) d[e][g] = a; } return d; }; GT4.prototype.createExpandedScatterWinPositions_2 = function (a, b) { for ( var d = a.getSlotState_0().getReelPositions_0(), e = a.getSlotState_0().getCurrentReelSet_0(), f = a.getSkin_0().reelLayout_0().create_0(), g = a.getSlotState_0().getCurrentReelSet_0().getNumberOfReels_0(), k = new java_util_JavaScriptVector(), m = new java_util_JavaScriptVector(), n = 0; n < g; n++ ) if (this.containsSymbol_6(b, n, f.rows, 0, d, e)) for (var p = 0; p < f.rows; p++) k.add_1(new Integer(n)), m.add_1(new Integer(p)); d = [].createArray(k.size_0()).init(0); e = [].createArray(m.size_0()).init(0); for (f = 0; f < d.length; f++) (d[f] = k.elementAt_1(f).intValue_0()), (e[f] = m.elementAt_1(f).intValue_0()); return new GT1613(d, e); }; GT4.prototype.createWinPositionsWithoutScatters_2 = function (a, b) { for ( var d = a.getSlotState_0().getReelPositions_0(), e = a.getSlotState_0().getCurrentReelSet_0(), f = new java_util_JavaScriptVector(), g = new java_util_JavaScriptVector(), k = a.getSlotState_0().getAllWinPositions_0(), m = 0; m < k.getCount_0(); ++m ) this.containsSymbol_6(b, k.getSymbolColumn_1(m), 1, k.getSymbolRow_1(m), d, e) || (f.add_1(new Integer(k.getSymbolColumn_1(m))), g.add_1(new Integer(k.getSymbolRow_1(m)))); d = [].createArray(f.size_0()).init(0); e = [].createArray(g.size_0()).init(0); for (m = 0; m < d.length; m++) (d[m] = f.elementAt_1(m).intValue_0()), (e[m] = g.elementAt_1(m).intValue_0()); return new GT1613(d, e); }; GT4.prototype.resetColorOfStoppedReels_1 = function (a) { a.getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbolColorTransformation_1(null); }; GT4.prototype.updateStoppedReels_4 = function (a, b, d, e) { var f = b.getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); d && f.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); var g = b.getSlotState_0().getReelPositions_0(), k = b.getSlotState_0().getCurrentReelSet_0(), m = this.createExpandedScatterWinPositions_2(b, a); f.setSymbols_3(g, k, e ? this.createWinPositionsWithoutScatters_2(b, a) : new GT1613()); if (d) for (b = 0; b < m.getCount_0(); b++) f.setSymbol_3(m.getSymbolColumn_1(b), m.getSymbolRow_1(b), a); }; GT4.prototype.STATE_FIRST_WINS = 0; GT4.prototype.STATE_EXPANDING = 1; GT4.prototype.STATE_EXPANDEDWINS = 2; var GT17 = GT732.extend( { initialConstructor_0: function () { this.stoppedReels = this.symbolHighlight = null; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.stoppedReels = this.symbolHighlight = null; GT732.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.symbolHighlight = g; this.stoppedReels = k; }, start_2: function (a, b) { for (var d = 0; d < b.getCount_0(); d++) this.symbolHighlight.removeHighlight_2(b.getSymbolColumn_1(d), b.getSymbolRow_1(d)), null != this.stoppedReels && this.stoppedReels.getSymbolObject_2(b.getSymbolColumn_1(d), b.getSymbolRow_1(d)).hide_1(!1), this.symbolHighlight.setHighlight_3(b.getSymbolColumn_1(d), b.getSymbolRow_1(d), 6); GT732.prototype.start_2.call(this, a, b); }, }, "GT17", [] ), GT36 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1412.prototype.initialConstructor_0.call(this); }, mainGui_2: function (a, b) { return a.modify_2(GT1618.prototype.FREEGAMESTARTEND_CONTAINER, GT1186.prototype.set_0().position_2(-430, -235).contentScaledSize_2(3050, Math.div(2891400, 1512))); }, }, "GT36", [] ), GT243 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, getSlideInOutScreenY_2: function (a, b) { return a + 5; }, getSlideInOutScreenHeight_2: function (a, b) { return 700; }, slotBackground_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/game.jpg"); }, slotBackgroundInFreeGames_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/game_feature.jpg"); }, gameLogo_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/logo.png"); }, gameLogoContainer_2: function (a, b) { return GT1412.prototype.gameLogoContainer_2.call(this, a, b).size_2(643, 122).position_2(700, 4); }, freeGameStartScreen_2: function (a, b) { return b.defaultFreeGameStartEndScreen_0().child_1(b.defaultFreeGamesDynamicTextArea_0().text_1("${freespins_won}")); }, freeGameMoreScreen_2: function (a, b) { return b .defaultFreeGameStartEndScreen_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(396, 194).size_2(460, 300).text_1("${freespins_more}")); }, freeGameEndScreen_2: function (a, b) { return b .defaultFreeGameStartEndScreen_0() .child_1( GT1186.prototype .set_0() .id_1(GT323.prototype.ID_CONTAINER_WIN) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(339, 183).size_2(562, 194).text_1("${freespins_end_prize}")) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(339, 398).size_2(562, 86).text_1("${freespins_end_count}")) ) .child_1( GT1186.prototype .set_0() .id_1(GT323.prototype.ID_CONTAINER_NOWIN) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(339, 283).size_2(562, 120).text_1("${freespins_end_nowin}")) ); }, reelLayout_2: function (a, b) { return GT941.prototype.set_0().columns_1(5).rows_1(3).symbolHeight_1(222).symbolWidth_1(222).reelDist_1(22); }, gamble_2: function (a, b) { return b .defaultRedBlackGamble_0() .size_2(b.getSlideInOutScreenWidth_0(), 700) .imageGambleCard_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/bookofradeluxe/res/game/gamble_card.jpg").separateAlphaRegion_1(!0).overrideSize_2(210, 299)) .imageGambleCardTiny_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/bookofradeluxe/res/game/gamble_card_tiny.jpg").separateAlphaRegion_1(!0).overrideSize_2(80, 114)); }, defaultDynamicTextAreaGamble_0: function () { return GT1135.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0); }, gambleBackground_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/gamble.jpg"); }, symbolImages_2: function (a, b) { return GT893.prototype .set_0() .image_2(80, "/com/greentube/slot/client/bookofradeluxe/res/game/person.jpg") .image_2(90, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_person.jpg") .image_2(77, "/com/greentube/slot/client/bookofradeluxe/res/game/mummy.png") .image_2(89, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_mummy.jpg") .image_2(83, "/com/greentube/slot/client/bookofradeluxe/res/game/statue.png") .image_2(88, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_statue.jpg") .image_2(67, "/com/greentube/slot/client/bookofradeluxe/res/game/scarab.png") .image_2(73, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_scarab.jpg") .image_2(65, "/com/greentube/slot/client/bookofradeluxe/res/game/ace.png") .image_2(72, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_ace.jpg") .image_2(75, "/com/greentube/slot/client/bookofradeluxe/res/game/king.png") .image_2(71, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_king.jpg") .image_2(81, "/com/greentube/slot/client/bookofradeluxe/res/game/queen.png") .image_2(70, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_queen.jpg") .image_2(74, "/com/greentube/slot/client/bookofradeluxe/res/game/jack.png") .image_2(69, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_jack.jpg") .image_2(49, "/com/greentube/slot/client/bookofradeluxe/res/game/ten.png") .image_2(68, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_ten.jpg") .image_2(66, "/com/greentube/slot/client/bookofradeluxe/res/game/book.jpg"); }, symbolImagesBlur_2: function (a, b) { return GT893.prototype .set_0() .image_2(80, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_person.jpg") .image_2(77, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_mummy.png") .image_2(83, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_statue.png") .image_2(67, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_scarab.png") .image_2(65, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_ace.png") .image_2(75, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_king.png") .image_2(81, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_queen.png") .image_2(74, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_jack.png") .image_2(49, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_ten.png") .image_2(66, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_book.jpg") .image_2(90, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_person.jpg") .image_2(89, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_mummy.jpg") .image_2(88, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_statue.jpg") .image_2(73, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_scarab.jpg") .image_2(72, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_ace.jpg") .image_2(71, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_king.jpg") .image_2(70, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_queen.jpg") .image_2(69, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_jack.jpg") .image_2(68, "/com/greentube/slot/client/bookofradeluxe/res/game/blur_gold_ten.jpg"); }, symbolImagesHighlight_2: function (a, b) { return GT419.prototype .set_0() .image_3(65, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_ace.png") .image_3(65, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_ace.png") .image_3(75, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_king.png") .image_3(75, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_king.png") .image_3(81, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_queen.png") .image_3(81, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_queen.png") .image_3(74, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_jack.png") .image_3(74, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_jack.png") .image_3(49, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_ten.png") .image_3(49, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_ten.png") .image_3(72, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ace.jpg") .image_3(71, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_king.jpg") .image_3(70, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_queen.jpg") .image_3(69, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_jack.jpg") .image_3(68, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ten.jpg") .image_3(72, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ace.jpg") .image_3(71, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_king.jpg") .image_3(70, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_queen.jpg") .image_3(69, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_jack.jpg") .image_3(68, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ten.jpg") .image_3(72, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ace.jpg") .image_3(71, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_king.jpg") .image_3(70, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_queen.jpg") .image_3(69, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_jack.jpg") .image_3(68, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/high_gold_ten.jpg"); }, symbolVideosHighlight_2: function (a, b) { return GT895.prototype .set_0() .video_3(65, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/ace_00562a287d6665fe.flv") .video_3(75, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/king_0002363860a6d36e.flv") .video_3(81, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/queen_1b83235c3e5886c6.flv") .video_3(74, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/jack_5fb8ddeb660b3d2a.flv") .video_3(49, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/ten_367018e7427cd0df.flv") .video_2(80, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_short_56b7016a216bd06a.flv") .video_2(77, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_short_12f950ae2f850062.flv") .video_2(83, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_short_7cc0d4b734379e05.flv") .video_2(67, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_short_06022bdf61cf8d21.flv") .video_2(66, "/com/greentube/slot/client/bookofradeluxe/res/game/video/book_short_7c66c0c612206ba0.flv") .video_3(66, 6, "/com/greentube/slot/client/bookofradeluxe/res/game/video/book_long_614f01b024b54b8c.flv") .video_3(80, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_long_7ae4ad35212ff658.flv") .video_3(77, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_long_3b234a04213f9d0c.flv") .video_3(83, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_long_070c73cf20a817d1.flv") .video_3(67, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_long_0fb31f304e55e3d2.flv") .video_3(80, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_long_7ae4ad35212ff658.flv") .video_3(77, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_long_3b234a04213f9d0c.flv") .video_3(83, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_long_070c73cf20a817d1.flv") .video_3(67, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_long_0fb31f304e55e3d2.flv") .video_3(89, 2, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_f_60ec99804223b282.flv") .video_3(89, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_f_60ec99804223b282.flv") .video_3(89, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_f_60ec99804223b282.flv") .video_3(89, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_f_60ec99804223b282.flv") .video_3(73, 2, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_f_4d1348f757c087f9.flv") .video_3(73, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_f_4d1348f757c087f9.flv") .video_3(73, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_f_4d1348f757c087f9.flv") .video_3(73, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_f_4d1348f757c087f9.flv") .video_3(88, 2, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_f_2760ef2a4c573c8e.flv") .video_3(88, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_f_2760ef2a4c573c8e.flv") .video_3(88, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_f_2760ef2a4c573c8e.flv") .video_3(88, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_f_2760ef2a4c573c8e.flv") .video_3(90, 2, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_f_01267693438cdc27.flv") .video_3(90, 3, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_f_01267693438cdc27.flv") .video_3(90, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_f_01267693438cdc27.flv") .video_3(90, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_f_01267693438cdc27.flv"); }, winSounds_2: function (a, b) { return a .sound_3(66, 3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_trigger.mp3") .sound_3(66, 4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_trigger.mp3") .sound_3(66, 5, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_trigger.mp3") .sound_3(80, 5, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_explorer_long.mp3") .sound_3(80, 4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_explorer_long.mp3") .sound_3(80, 3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_explorer_short.mp3") .sound_3(80, 2, "/com/greentube/slot/client/res/novo/win10.mp3") .sound_3(77, 5, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_mummy_long.mp3") .sound_3(77, 4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_mummy_long.mp3") .sound_3(77, 3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_mummy_short.mp3") .sound_3(77, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(83, 5, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_statue_long.mp3") .sound_3(83, 4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_statue_long.mp3") .sound_3(83, 3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_statue_short.mp3") .sound_3(83, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(67, 5, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_scarab_long.mp3") .sound_3(67, 4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_scarab_long.mp3") .sound_3(67, 3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_scarab_short.mp3") .sound_3(67, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(65, 5, "/com/greentube/slot/client/res/novo/threeadmi.mp3") .sound_3(65, 4, "/com/greentube/slot/client/res/novo/win25.mp3") .sound_3(65, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(75, 5, "/com/greentube/slot/client/res/novo/threeadmi.mp3") .sound_3(75, 4, "/com/greentube/slot/client/res/novo/win25.mp3") .sound_3(75, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(81, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(81, 4, "/com/greentube/slot/client/res/novo/win20.mp3") .sound_3(81, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(74, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(74, 4, "/com/greentube/slot/client/res/novo/win20.mp3") .sound_3(74, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(49, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(49, 4, "/com/greentube/slot/client/res/novo/win20.mp3") .sound_3(49, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .countUpSound_4("/com/greentube/slot/client/bookofradeluxe/res/sound/countup_silent.mp3", 0, 500, 250) .countUpSoundThreshold_1(2); }, freeGameSounds_2: function (a, b) { return GT776.prototype .set_0() .backgroundSound_3("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_loop.mp3", 11994, 6e4) .freeGamesEndSoundLong_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_end_long.mp3") .freeGamesEndSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_end_long.mp3") .backgroundReducedVolume_1(0) .backgroundReducedVolumeDuringCollect_1(30) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win2.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win10.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win20.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win25.mp3", 100); }, teaserSounds_0: function () { return GT896.prototype .set_0() .teaserSoundSymbol_2(66, 3) .teaserSound_2(0, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_teaser1.mp3") .teaserSound_2(1, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_teaser2.mp3") .teaserSound_2(2, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_teaser3.mp3") .teaserSound_2(3, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_teaser4.mp3") .teaserSound_2(4, "/com/greentube/slot/client/bookofradeluxe/res/sound/brd_teaser5.mp3"); }, reelsInFreeGames_2: function (a, b) { return b.defaultReels_0().removeSoundsReelsRun_0().addTeaserSound_1(this.teaserSounds_0()); }, reels_2: function (a, b) { return instanceOf(a, GT1252) ? a.addTeaserSound_1(this.teaserSounds_0()) : b.defaultReels_0().addTeaserSound_1(this.teaserSounds_0()); }, stoppedReels_2: function (a, b) { return GT889.prototype .set_0() .id_1(GT1618.prototype.STOPPED_REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .symbols_1(b.symbolImages_0()) .layout_1(b.reelLayout_0()) .losingSymbolColorTransformation_1(GT656.prototype.set_0().percentage_1(50)); }, defaultConsoleStates_2: function (a, b) { return a.state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_START) ); }, defaultDynamicTextAreaSmall_2: function (a, b) { return a .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(125)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(105)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(85)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(70)) .insets_4(0, 0, 0, 0); }, paytableWinTable_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable.jpg").id_1(GT1618.prototype.DEFAULT_PAYTABLE_IMAGE)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/novo/novomatic.png").position_2(14, 664)) .child_1( GT299.prototype .set_0() .addReelset_1(0) .addReelset_1(11) .addReelset_1(21) .position_2(0, -4) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(300)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(430, 260) .size_2(380, 60) .text_1("${bookofra_paytabletext0}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) ) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(430, 320) .size_2(380, 90) .text_1("${bookofra_paytabletext1}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .spacing_1(50) .adaptiveSpacing_1(!1) ) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(447, 422) .size_2(346, 90) .text_1("${bookofra_paytabletext2}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .spacing_1(30) .adaptiveSpacing_1(!1) ) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(758, 17) .size_2(380, 90) .text_1("${bookofra_paytabletext3}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .spacing_1(30) .adaptiveSpacing_1(!1) ) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/person.jpg").position_2(816, 58).size_2(GT243.prototype.PT_SMALL_SYM_W, GT243.prototype.PT_SMALL_SYM_H)) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/mummy.png") .position_2(816 + 1 * (GT243.prototype.PT_SMALL_SYM_HOR_DIST + GT243.prototype.PT_SMALL_SYM_W), 58) .size_2(GT243.prototype.PT_SMALL_SYM_W, GT243.prototype.PT_SMALL_SYM_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/statue.png") .position_2(816 + 2 * (GT243.prototype.PT_SMALL_SYM_HOR_DIST + GT243.prototype.PT_SMALL_SYM_W), 58) .size_2(GT243.prototype.PT_SMALL_SYM_W, GT243.prototype.PT_SMALL_SYM_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/scarab.png") .position_2(816 + 3 * (GT243.prototype.PT_SMALL_SYM_HOR_DIST + GT243.prototype.PT_SMALL_SYM_W), 58) .size_2(GT243.prototype.PT_SMALL_SYM_W, GT243.prototype.PT_SMALL_SYM_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/ace.png") .position_2(816, 58 + (GT243.prototype.PT_SMALL_SYM_VER_DIST + GT243.prototype.PT_SMALL_SYM_H)) .size_2(GT243.prototype.PT_SMALL_SYM_SEC_ROW_W, GT243.prototype.PT_SMALL_SYM_SEC_ROW_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/king.png") .position_2(816 + 1 * (GT243.prototype.PT_SMALL_SYM_SEC_ROW_HOR_DIST + GT243.prototype.PT_SMALL_SYM_SEC_ROW_W), 58 + (GT243.prototype.PT_SMALL_SYM_VER_DIST + GT243.prototype.PT_SMALL_SYM_H)) .size_2(GT243.prototype.PT_SMALL_SYM_SEC_ROW_W, GT243.prototype.PT_SMALL_SYM_SEC_ROW_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/queen.png") .position_2(816 + 2 * (GT243.prototype.PT_SMALL_SYM_SEC_ROW_HOR_DIST + GT243.prototype.PT_SMALL_SYM_SEC_ROW_W), 58 + (GT243.prototype.PT_SMALL_SYM_VER_DIST + GT243.prototype.PT_SMALL_SYM_H)) .size_2(GT243.prototype.PT_SMALL_SYM_SEC_ROW_W, GT243.prototype.PT_SMALL_SYM_SEC_ROW_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/jack.png") .position_2(816 + 3 * (GT243.prototype.PT_SMALL_SYM_SEC_ROW_HOR_DIST + GT243.prototype.PT_SMALL_SYM_SEC_ROW_W), 58 + (GT243.prototype.PT_SMALL_SYM_VER_DIST + GT243.prototype.PT_SMALL_SYM_H)) .size_2(GT243.prototype.PT_SMALL_SYM_SEC_ROW_W, GT243.prototype.PT_SMALL_SYM_SEC_ROW_H) ) .child_1( GT1392.prototype .set_0() .imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/ten.png") .position_2(816 + 4 * (GT243.prototype.PT_SMALL_SYM_SEC_ROW_HOR_DIST + GT243.prototype.PT_SMALL_SYM_SEC_ROW_W), 58 + (GT243.prototype.PT_SMALL_SYM_VER_DIST + GT243.prototype.PT_SMALL_SYM_H)) .size_2(GT243.prototype.PT_SMALL_SYM_SEC_ROW_W, GT243.prototype.PT_SMALL_SYM_SEC_ROW_H) ) ) .child_1(this.getFeaturePaytable_1(b)) .child_1(this.customPaytableEntry_1(b).symbol_1(66).position_2(386, 32)) .child_1(this.getContainerWithoutReel_1(2).child_1(this.customPaytableEntry_1(b).symbol_1(80).position_2(235, 211).size_2(175, 130).spacing_1(28))) .child_1(GT299.prototype.set_0().addReelset_1(2).child_1(this.customPaytableEntry_1(b).symbol_1(80).position_2(235, 211).size_2(175, 130).spacing_1(28).showForReelsetIndex_1(1))) .child_1(GT299.prototype.set_0().addReelset_1(12).child_1(this.customPaytableEntry_1(b).symbol_1(80).position_2(235, 211).size_2(175, 130).spacing_1(28).showForReelsetIndex_1(11))) .child_1(GT299.prototype.set_0().addReelset_1(22).child_1(this.customPaytableEntry_1(b).symbol_1(80).position_2(235, 211).size_2(175, 130).spacing_1(28).showForReelsetIndex_1(21))) .child_1(this.customPaytableEntry_1(b).symbol_1(83).position_2(222, 380).spacing_1(30)) .child_1(this.customPaytableEntry_1(b).symbol_1(65).position_2(404, 546).spacing_1(36)) .child_1(this.customPaytableEntry_1(b).symbol_1(77).position_2(888, 211).spacing_1(30)) .child_1(this.customPaytableEntry_1(b).symbol_1(67).position_2(908, 381).spacing_1(30)) .child_1(this.customPaytableEntry_1(b).symbol_1(81).position_2(704, 549).spacing_1(36)) .child_1( b .defaultDynamicTextAreaSmall_0() .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(105)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .id_1(GT999.prototype.CURRENCY_TEXT) .position_2(908, 668) .size_2(320, 30) .text_1("${infotable_currency}") .hide_1(!0) ); }, paytable_2: function (a, b) { return b .defaultPaytable_0() .enableReelsetDependentEntries_1(!0) .child_1(b.paytableWinTable_0()) .child_1( GT1186.prototype .set_0() .hide_1(!0) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_bg.jpg")) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/book.jpg").position_2(90, 40).size_2(182, 182)) .child_1(this.defaultDynamicTextAreaMediumP1_1(b).position_2(365, 26).size_2(810, 210).vAlign_1(GT1489.prototype.CENTER).text_1("${bookofra_paytabletext6}")) .child_1(this.defaultTextAreaBigP2_1(b).hAlign_1(GT1488.prototype.LEFT).position_2(432, 256).size_2(743, 100).text_1("${infopt_header_feature}").adaptiveHeight_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_bookrules.jpg").position_2(35, 396)) .child_1(this.defaultDynamicTextAreaMediumP1_1(b).id_1(GT243.prototype.SPECIAL_EXPANDING_DESCRIPTION_ID).position_2(365, 346).size_2(810, 330).text_1("${bookofra_paytabletext5} ${bookofra_paytabletext5a}")) .hide_1(!0) ) .child_1( GT1186.prototype .set_0() .hide_1(!0) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_bg.jpg")) .child_1(this.defaultTextAreaBigP1_1(b).hAlign_1(GT1488.prototype.CENTER).position_2(120, 56).size_2(1e3, 1e4).text_1("${infopt_header_rules}").adaptiveHeight_1(!0)) .child_1( this.defaultDynamicTextAreaMediumP1_1(b) .position_2(85, 131) .size_2(1070, 540) .hAlign_1(GT1488.prototype.CENTER) .spacing_1(35) .text_1( "${infopt_prize_same} ${infopt_order_lefttorightexeptscatter} ${infopt_lines_selectedexeptscatter} ${infopt_scatter_anyposition} ${infopt_highestprize_eachlineandscatter} ${infopt_added_scatterandlines} ${infopt_paytable_shownprizes} ${infopt_freegames_canbewonduringfreegames} ${infopt_freegames_samelinesandbet} GAMBLELIMITS MINIMUMTOTALBET THEORETICALRTP ${infopt_malfunction}" ) ) .hide_1(!0) ); }, getContainerWithoutReel_1: function (a) { for (var b = GT299.prototype.set_0(), d = 0; 31 > d; d++) d % 10 != a && b.addReelset_1(d); return b; }, getContainerWithReel_1: function (a) { return GT299.prototype .set_0() .addReelset_1(a) .addReelset_1(10 + a) .addReelset_1(20 + a); }, getFeatureBook_5: function (a, b, d, e, f) { d = this.getContainerWithReel_1(d).child_1(GT1392.prototype.set_0().imageFile_1(e).position_2(469, 346).size_2(130, 130)).child_1(GT1392.prototype.set_0().imageFile_1(e).position_2(944, 50).size_2(100, 100)); f ? d .child_1(this.customPaytableEntrySelectedSymbol4Rows_1(a).symbol_1(b)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_book_mult.jpg").position_2(618, 288)) : d.child_1(this.customPaytableEntrySelectedSymbol3Rows_1(a).symbol_1(b)); return d; }, getFeatureBookPerson_1: function (a) { return this.getContainerWithReel_1(2) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/gold_person.jpg").position_2(469, 346).size_2(130, 130)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/gold_person.jpg").position_2(944, 50).size_2(100, 100)) .child_1(GT299.prototype.set_0().addReelset_1(2).child_1(this.customPaytableEntrySelectedSymbol4Rows_1(a).symbol_1(80).showForReelsetIndex_1(1))) .child_1(GT299.prototype.set_0().addReelset_1(12).child_1(this.customPaytableEntrySelectedSymbol4Rows_1(a).symbol_1(80).showForReelsetIndex_1(11))) .child_1(GT299.prototype.set_0().addReelset_1(22).child_1(this.customPaytableEntrySelectedSymbol4Rows_1(a).symbol_1(80).showForReelsetIndex_1(21))) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_book_mult.jpg").position_2(618, 288)); }, getFeaturePaytable_1: function (a) { for (var b = GT299.prototype.set_0().position_2(0, -4).child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/paytable_book.jpg").position_2(393, 288)), d = 2; 31 > d; d++) 11 != d && 21 != d && b.addReelset_1(d); b.child_1(this.getFeatureBookPerson_1(a)) .child_1(this.getFeatureBook_5(a, 77, GT243.prototype.EXPANDING_SYMBIOL_MUMMY, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_mummy.jpg", !0)) .child_1(this.getFeatureBook_5(a, 83, GT243.prototype.EXPANDING_SYMBIOL_STATUE, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_statue.jpg", !0)) .child_1(this.getFeatureBook_5(a, 67, GT243.prototype.EXPANDING_SYMBIOL_SCARAB, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_scarab.jpg", !0)) .child_1(this.getFeatureBook_5(a, 65, GT243.prototype.EXPANDING_SYMBIOL_A, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_ace.jpg", !1)) .child_1(this.getFeatureBook_5(a, 75, GT243.prototype.EXPANDING_SYMBIOL_K, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_king.jpg", !1)) .child_1(this.getFeatureBook_5(a, 81, GT243.prototype.EXPANDING_SYMBIOL_Q, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_queen.jpg", !1)) .child_1(this.getFeatureBook_5(a, 74, GT243.prototype.EXPANDING_SYMBIOL_J, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_jack.jpg", !1)) .child_1(this.getFeatureBook_5(a, 49, GT243.prototype.EXPANDING_SYMBIOL_TEN, "/com/greentube/slot/client/bookofradeluxe/res/game/gold_ten.jpg", !1)) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(430, 225) .size_2(380, 80) .text_1("${bookofra_paytabletext2}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .spacing_1(30) .adaptiveSpacing_1(!1) ) .child_1( GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .position_2(620, 52) .size_2(320, 110) .text_1("${bookofra_paytabletext4}") .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.TOP) .spacing_1(30) .adaptiveSpacing_1(!1) ); return b; }, defaultFreeGamesTextAreaMoreAndEndScreen_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(260)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(240)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(230)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(160)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(251, 206, 42)) .outline_2(2, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .spacing_1(66) .adaptiveSpacing_1(!1); }, defaultDynamicTextAreaMediumP1_1: function (a) { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultTextAreaBigP1_1: function (a) { return a .defaultTextAreaBig_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().italic_0().size_1(250)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()); }, defaultTextAreaBigP2_1: function (a) { return a .defaultTextAreaBig_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).bold_0().size_1(340)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .spacing_1(34); }, customPaytableEntrySelectedSymbol4Rows_1: function (a) { return this.customPaytableEntry_1(a).position_2(661, 313).spacing_1(41).size_2(150, 196).outline_2(2, GT1391.prototype.set_0().black_0()); }, customPaytableEntrySelectedSymbol3Rows_1: function (a) { return this.customPaytableEntry_1(a).position_2(661, 333).spacing_1(41).size_2(150, 160).outline_2(2, GT1391.prototype.set_0().black_0()); }, customPaytableEntry_1: function (a) { return a .defaultPaytableEntry_0() .removeAllFonts_0() .size_2(165, 130) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(165)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(90)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(80)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .spacing_1(36) .outline_2(1, GT1391.prototype.set_0().black_0()); }, loadResources_1: function (a) { GT1412.prototype.loadResources_1.call(this, a); a = a.getResourceManager_0(); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg", 1, 1, !0); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_back.jpg", 1, 1, !0); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/book_bonusglow.png", 1, 1, !1); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_pages.jpg", 1, 1, !0); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_1.jpg", 9, 1, !1); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_2.jpg", 9, 1, !1); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_3.jpg", 9, 1, !1); a.startLoadImage_4("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_4.jpg", 9, 1, !1); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_f_trigger.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_chime.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_thud.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page1.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page2.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page3.mp3"); a.startLoadSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_page5.mp3"); }, }, "GT243", [] ); GT243.prototype.EXPANDING_SYMBIOL_PERSON = 2; GT243.prototype.EXPANDING_SYMBIOL_MUMMY = 3; GT243.prototype.EXPANDING_SYMBIOL_STATUE = 4; GT243.prototype.EXPANDING_SYMBIOL_SCARAB = 5; GT243.prototype.EXPANDING_SYMBIOL_A = 6; GT243.prototype.EXPANDING_SYMBIOL_K = 7; GT243.prototype.EXPANDING_SYMBIOL_Q = 8; GT243.prototype.EXPANDING_SYMBIOL_J = 9; GT243.prototype.EXPANDING_SYMBIOL_TEN = 10; GT243.prototype.PT_SMALL_SYM_HOR_DIST = 10; GT243.prototype.PT_SMALL_SYM_VER_DIST = 4; GT243.prototype.PT_SMALL_SYM_W = 60; GT243.prototype.PT_SMALL_SYM_H = GT243.prototype.PT_SMALL_SYM_W; GT243.prototype.PT_SMALL_SYM_SEC_ROW_HOR_DIST = 0; GT243.prototype.PT_SMALL_SYM_SEC_ROW_W = 53; GT243.prototype.PT_SMALL_SYM_SEC_ROW_H = GT243.prototype.PT_SMALL_SYM_SEC_ROW_W; GT243.prototype.SPECIAL_EXPANDING_DESCRIPTION_ID = GT1677.prototype.generateID_0(); var GT117 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, slotBackground_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("game/portrait_bg.png"); }, slotBackgroundInFreeGames_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("game/portrait_feature_bg.png"); }, }, "GT117", [] ), GT158 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, freeGameMoreScreen_2: function (a, b) { return b .defaultFreeGameStartEndScreen_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(289, 163).size_2(662, 360).text_1("${freespins_more}")); }, symbolVideosHighlight_2: function (a, b) { return a .video_3(80, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_short_56b7016a216bd06a.flv") .video_3(77, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_short_12f950ae2f850062.flv") .video_3(83, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_short_7cc0d4b734379e05.flv") .video_3(67, 4, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_short_06022bdf61cf8d21.flv") .video_3(80, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/person_short_56b7016a216bd06a.flv") .video_3(77, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/mummy_short_12f950ae2f850062.flv") .video_3(83, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/statue_short_7cc0d4b734379e05.flv") .video_3(67, 5, "/com/greentube/slot/client/bookofradeluxe/res/game/video/scarab_short_06022bdf61cf8d21.flv"); }, freeGameEndScreen_2: function (a, b) { return b .defaultFreeGameStartEndScreen_0() .child_1( GT1186.prototype .set_0() .id_1(GT323.prototype.ID_CONTAINER_WIN) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(289, 168).size_2(662, 224).text_1("${freespins_end_prize}")) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(289, 398).size_2(662, 116).text_1("${freespins_end_count}")) ) .child_1( GT1186.prototype .set_0() .id_1(GT323.prototype.ID_CONTAINER_NOWIN) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().separateAlphaRegion_1(!0).file_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg")).position_2(206, 108)) .child_1(this.defaultFreeGamesTextAreaMoreAndEndScreen_0().position_2(289, 183).size_2(662, 320).text_1("${freespins_end_nowin}")) ); }, defaultFreeGamesTextAreaMoreAndEndScreen_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(400)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(350)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(300)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.GEORGIA).italic_0().bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(251, 206, 42)) .outline_2(4, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, }, "GT158", [] ), GT37 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, gamble_2: function (a, b) { instanceOf(a, GT785) && a.soundGambleWinTop_1(null); return a; }, winSounds_2: function (a, b) { return a .sound_3(66, 3, "sound/brd_f_trigger.mp3") .sound_3(66, 4, "sound/brd_f_trigger.mp3") .sound_3(66, 5, "sound/brd_f_trigger.mp3") .sound_3(80, 5, "sound/brd_explorer_short.mp3") .sound_3(80, 4, "sound/brd_explorer_short.mp3") .sound_3(80, 3, "sound/brd_explorer_short.mp3") .sound_3(80, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(77, 5, "sound/brd_mummy_short.mp3") .sound_3(77, 4, "sound/brd_mummy_short.mp3") .sound_3(77, 3, "sound/brd_mummy_short.mp3") .sound_3(77, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(83, 5, "sound/brd_statue_short.mp3") .sound_3(83, 4, "sound/brd_statue_short.mp3") .sound_3(83, 3, "sound/brd_statue_short.mp3") .sound_3(83, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(67, 5, "sound/brd_scarab_short.mp3") .sound_3(67, 4, "sound/brd_scarab_short.mp3") .sound_3(67, 3, "sound/brd_scarab_short.mp3") .sound_3(67, 2, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(65, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(65, 4, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(65, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(75, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(75, 4, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(75, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(81, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(81, 4, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(81, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(74, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(74, 4, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(74, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(49, 5, "/com/greentube/slot/client/res/novo/oneadmi.mp3") .sound_3(49, 4, "/com/greentube/slot/client/res/novo/win2.mp3") .sound_3(49, 3, "/com/greentube/slot/client/res/novo/win2.mp3") .countUpSound_4("sound/countup_silent.mp3", 0, 500, 250) .countUpSoundThreshold_1(2); }, freeGameSounds_2: function (a, b) { return GT776.prototype .set_0() .backgroundSound_3("sound/brd_loop_short.mp3", 25, 7842) .freeGamesEndSoundLong_1("sound/brd_f_end_long.mp3") .freeGamesEndSound_1("sound/brd_f_end_long.mp3") .backgroundReducedVolume_1(0) .backgroundReducedVolumeDuringCollect_1(30) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win2.mp3", 100); }, }, "GT37", [] ), GT159 = GT339.extend( { initialConstructor_0: function () { GT339.prototype.initialConstructor_0.call(this); }, imageLobbyBanner_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/room/room.jpg").position_2(0, 0); }, tableView_2: function (a, b) { return a .imageTable_1("/com/greentube/slot/client/bookofradeluxe/res/room/machine.png") .imageTableDetail_1("/com/greentube/slot/client/bookofradeluxe/res/room/slot.png") .numberOfTableDetails_1(6) .tableAddressColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 233)); }, tableViewBackColor_2: function (a, b) { return GT1391.prototype.set_0().compRGB_3(93, 31, 0); }, }, "GT159", [] ), GT104 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, slotBackground_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/small_logo/game_small_logo.jpg"); }, slotBackgroundInFreeGames_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/bookofradeluxe/res/game/small_logo/game_feature_small_logo.jpg"); }, gameLogo_2: function (a, b) { return null; }, gameLogoInFreeGames_2: function (a, b) { return null; }, }, "GT104", [] ), GT105 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, gameLogoContainer_2: function (a, b) { return GT1412.prototype.gameLogoContainer_2.call(this, a, b).size_2(Integer.truncate_1(469.39), Integer.truncate_1(89.06)).position_2(792, 6); }, platformLogo_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/starvegas/powered_by_starvegas.png").size_2(Integer.truncate_1(280.5), Integer.truncate_1(38.5)).position_2(885, 82); }, }, "GT105", [] ), GT172 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, paytableWinTable_2: function (a, b) { return a.modify_2(GT282.prototype.PLURIUS_HD_BACKGROUND_LOGO, GT1240.prototype.set_0().x_1(240)); }, }, "GT172", [] ), GT1549 = GT1531.extend( { initialConstructor_0: function () { this._looping = this._triggerOnAnimComplete = !1; this._bitmapSize = this._bitmapNames = this._layers = null; this._frameLength = this._fps = 0; this._bitmaps = null; this._currentFrameTime = 0; this._currentKey = null; this._maxFrames = 0; this.matrix = null; this._globalAlpha = this._designedHeight = this._designedWidth = 0; this._fullyLoaded = !1; this._endFrame = this._startFrame = 0; this._rangeComplete = !1; this._layerInfo = this._maskRect = this._maskRectPoints = this._interpolatedFrame = this.matSequence = this._scheduledAnimEvents = null; this._fileVersion = 0; GT1531.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this._looping = this._triggerOnAnimComplete = !1; this._bitmapSize = this._bitmapNames = this._layers = null; this._frameLength = this._fps = 0; this._bitmaps = null; this._currentFrameTime = 0; this._currentKey = null; this._maxFrames = 0; this.matrix = null; this._globalAlpha = this._designedHeight = this._designedWidth = 0; this._fullyLoaded = !1; this._endFrame = this._startFrame = 0; this._rangeComplete = !1; this._layerInfo = this._maskRect = this._maskRectPoints = this._interpolatedFrame = this.matSequence = this._scheduledAnimEvents = null; this._fileVersion = 0; GT1531.prototype.initialConstructor_0.call(this); this._globalAlpha = 1; this._maxFrames = 0; this.matrix = new GT1621(); this._looping = d; this._triggerOnAnimComplete = !0; this._scheduledAnimEvents = new java_util_JavaScriptVector(); this.matSequence = new GT1329(); this._interpolatedFrame = new GT1674(null); this._maskRectPoints = [].createArray(2); this._maskRect = new GT1652(); this.initFromJson_2(a, b); }, initFromJson_2: function (a, b) { var d = a.get_1("bitmaps"), e = d.size_0(), f = a.get_1("timelines"); if (0 < f.size_0()) { var g = null != b ? f.get_1(b) : f.get_1("" + f.keys_0().nextElement_0()), f = g.get_1("layers"); this._maxFrames = Integer.truncate_1(g.get_1("lastFrame").doubleValue_0()); g = f.size_0(); this._bitmapNames = [].createArray(e); this._bitmapSize = [].createArray(e); this._layers = [].createArray(g); var k = a.get_1("info"); this._fps = k.get_1("fps").doubleValue_0(); this._designedWidth = k.get_1("width").doubleValue_0(); this._designedHeight = k.get_1("height").doubleValue_0(); k = k.get_1("fileversion"); this._fileVersion = null != k ? k.doubleValue_0() : 1; this._frameLength = 1e3 / this._fps; for (k = 0; k < e; k++) { var m = d.get_1(k), n = Integer.truncate_1(m.get_1("id").doubleValue_0()), p = m.get_1("name"); this._bitmapNames[n] = p; null != m.get_1("width") && null != m.get_1("height") && ((p = m.get_1("width").doubleValue_0()), (m = m.get_1("height").doubleValue_0()), (this._bitmapSize[n] = new GT1675(p, m))); } for (k = 0; k < g; k++) this._layers[k] = 2 > this._fileVersion ? this.parseV1Layer_1(f.get_1(k)) : this.parseV2Layer_1(f.get_1(k)); this._startFrame = 0; this._endFrame = this._maxFrames - 1; this._complete = !1; } }, parseV2Layer_1: function (a) { var b = a.get_1("frames"), d = a.get_1("is_mask").booleanValue_0(), e = a.get_1("use_mask"), f = -1; null != e && (f = Integer.truncate_1(e.doubleValue_0())); a = a.get_1("mask_size"); e = null; null != a && 2 == a.size_0() && (e = new GT1661(Integer.truncate_1(a.get_1(0).doubleValue_0()), Integer.truncate_1(a.get_1(1).doubleValue_0()))); a = new GT1676(); a.isMask = d; a.maskToUse = f; a.maskSize = e; if (null != b) for (d = b.size_0(), a.frames = [].createArray(d), f = 0; f < d; f++) (e = b.get_1(f)), (e = new GT1674(e)), (a.frames[f] = e); return a; }, parseV1Layer_1: function (a) { var b = a.size_0(), d = new GT1676(); d.frames = [].createArray(b); for (var e = 0; e < b; e++) { var f = a.get_1(e), f = new GT1674(f); d.frames[e] = f; } return d; }, init_4: function (a, b, d, e) { GT1531.prototype.init_4.call(this, a, b, d, e); a = a.getGraphics_0(); this._fullyLoaded = !0; this._bitmaps = [].createArray(this._bitmapNames.length).init(0); for (b = 0; b < this._bitmapNames.length; b++) (this._bitmaps[b] = a.declareImage_1(this._bitmapNames[b])), null == a.getImageInfo_1(this._bitmaps[b]) && (this._fullyLoaded = !1); if (this._fullyLoaded) { for (b = 0; b < this._layers.length; b++) for (d = this._layers[b], e = 0; e < d.frames.length; e++) { var f = d.frames[e]; if (d.isMask) f.extractMatrix_2(0, 0); else if (!(0 > f.bitmap)) { var g = a.getImageInfo_1(this._bitmaps[f.bitmap]); if (null == g) { this._fullyLoaded = !1; return; } var k = this._bitmapSize[f.bitmap]; null != k ? f.extractMatrix_2(Integer.truncate_1(k.width), Integer.truncate_1(k.height)) : f.extractMatrix_2(g.width, g.height); } } this._currentFrameTime = 0; this.findCurrentLayerKeys_1(0); this.setInitialized_1(!0); } }, reset_0: function () { this.setInitialized_1(!0); GT1531.prototype.reset_0.call(this); this._currentFrameTime = 0; this.findCurrentLayerKeys_1(0); }, findCurrentLayerKeys_1: function (a) { this._currentKey = [].createArray(this._layers.length).init(0); for (var b = 0; b < this._currentKey.length; b++) this._currentKey[b] = GT1549.prototype.SPECIAL_FRAME_BEFORE_FIRST_KEYFRAME; for (var d = 0; d < this._layers.length; d++) { var e = this._layers[d]; if (0 != e.frames.length) { if (0 == a) 0 == e.frames[0].index && (this._currentKey[d] = 0); else for (b = 0; b < e.frames.length; b++) if (e.frames[b].index <= a) this._currentKey[d] = b; else break; var b = null, f = -1; if (this._currentKey[d] != GT1549.prototype.SPECIAL_FRAME_AFTER_LAST_KEYFRAME) { if (this._currentKey[d] == GT1549.prototype.SPECIAL_FRAME_BEFORE_FIRST_KEYFRAME) if (e.frames[0].index <= a) this._currentKey[d] = 0; else continue; for (var g = this._currentKey[d]; g < e.frames.length; g++) { b = e.frames[g]; if (b.index > a) break; f = g; } null != b && b.index < a && (f = GT1549.prototype.SPECIAL_FRAME_AFTER_LAST_KEYFRAME); this._currentKey[d] = f; } } } }, update_1: function (a) { GT1531.prototype.update_1.call(this, a); a = this.getCurrentFrame_0(); this.findCurrentLayerKeys_1(a); a == this._maxFrames - 1 && !this._looping && this._triggerOnAnimComplete && this._scheduledAnimEvents.add_1(new Integer(GT1549.prototype.ANIM_EVENT_ANIM_COMPLETE)); this.fireAnimEvents_0(); }, render_1: function (a) { GT1531.prototype.render_1.call(this, a); if (null != this._bitmaps && this._fullyLoaded) { for (var b = 0; b < this._bitmaps.length; b++) { var d = this._bitmaps[b]; if (null == this.getGfx_0().getImageInfo_1(d)) return; } var e = this.getAnimScale_1(a); if (null == this._layerInfo) for (this._layerInfo = [].createArray(this._layers.length), b = 0; b < this._layerInfo.length; b++) this._layerInfo[b] = new GT1666(); for (b = 0; b < this._layers.length; b++) { a = this._layers[b]; var f = a.frames, g = this._currentKey[b]; if (0 > g) this._layerInfo[b].currentFrame = null; else if (((d = f[g]), 0 > d.bitmap && !a.isMask)) this._layerInfo[b].currentFrame = null; else { this._layerInfo[b].currentFrame = d; var k = null; f.length > g + 1 && d.tween && (k = f[g + 1]); null != d && (this._interpolatedFrame.interpolate_4(d, k, this.getInterpolatedFactor_2(d, k), a.isMask), (this._layerInfo[b].alpha = this._interpolatedFrame.alpha), 0 < this._interpolatedFrame.alpha && this._layerInfo[b].matrix.set_1(this.calcLayerMatrix_2(e, this._interpolatedFrame))); } } for (b = this._layers.length - 1; 0 <= b; b--) (a = this._layers[b]), !a.isMask && 0 < this._layerInfo[b].alpha && null != this._layerInfo[b].currentFrame && ((d = this._layerInfo[b].currentFrame), 0 <= a.maskToUse ? ((e = this._layers[a.maskToUse]), this._maskRectPoints[0].set_2(0, 0), this._maskRectPoints[1].set_2(e.maskSize.width, e.maskSize.height), this._layerInfo[a.maskToUse].matrix.transform_1(this._maskRectPoints[0]), this._layerInfo[a.maskToUse].matrix.transform_1(this._maskRectPoints[1]), this._maskRect.set_4(this._maskRectPoints[0].x, this._maskRectPoints[0].y, this._maskRectPoints[1].x, this._maskRectPoints[1].y), this.getGfx_0().drawImageWithClip_4(this._bitmaps[d.bitmap], this._layerInfo[b].matrix, this._maskRect, this._globalAlpha * this._layerInfo[b].alpha)) : this.getGfx_0().drawImage_3(this._bitmaps[d.bitmap], this._layerInfo[b].matrix, this._globalAlpha * this._layerInfo[b].alpha)); } }, fireAnimEvents_0: function () { for (var a = 0; a < this._scheduledAnimEvents.size_0(); a++) { var b = this._scheduledAnimEvents.get_1(a); b.intValue_0() == GT1549.prototype.ANIM_EVENT_ANIM_COMPLETE ? this.setAnimationComplete_0() : this.triggerAnimEvent_1(b.intValue_0()); } this._scheduledAnimEvents.clear_0(); }, getCurrentFrame_0: function () { this._currentFrameTime = this._startFrame + Math.div(this.getElapsedTime_0(), this._frameLength); var a = Integer.truncate_1(this._currentFrameTime), b = this._endFrame - this._startFrame; this._looping ? a >= this._endFrame && ((this._currentFrameTime = (this._currentFrameTime - this._startFrame) % b), (this._currentFrameTime += this._startFrame), (a = Integer.truncate_1(this._currentFrameTime))) : this._currentFrameTime >= this._endFrame && (this._rangeComplete || ((this._rangeComplete = !0), this._scheduledAnimEvents.add_1(new Integer(GT1549.prototype.ANIM_EVENT_RANGE_COMPLETE))), (a = this._currentFrameTime = this._endFrame)); return a; }, calcLayerMatrix_2: function (a, b) { var d = b.bitmap; if (0 <= d) { var e = this.getGfx_0().getImageInfo_1(this._bitmaps[d]), f = 1, g = 1, d = this._bitmapSize[d]; null != d && ((f = Math.div(d.width, e.width)), (g = Math.div(d.height, e.height))); this.matSequence .init_0() .addTranslation_2(-e.width / 2, -e.height / 2) .addScale_2(f, g) .addRotation_1(b.rotation) .addScale_2(b.scale.x, b.scale.y) .addTranslation_2((f * e.width) / 2, (g * e.height) / 2) .addTranslation_2(b.trans.x, b.trans.y) .addScale_2(a, a); } else this.matSequence.init_0().addScale_2(b.scale.x, b.scale.y).addTranslation_2(b.trans.x, b.trans.y).addScale_2(a, a); return this.matSequence.get_0(); }, getAnimScale_1: function (a) { return a.getWidth_0() / this.getDesignedWidth_0(); }, getInterpolatedFactor_2: function (a, b) { if (null == b || this._currentFrameTime < a.index) return 0; if (this._currentFrameTime > b.index) return 1; var d = (this._currentFrameTime - a.index) / (b.index - a.index), e = a.acceleration; if (0 > e) var f = this.getInterpolationFactor_2(d, GT1549.prototype.EASING_IN), d = GT1549.prototype.blend_3(d, f, -(e / 100)); else 0 < e ? ((f = this.getInterpolationFactor_2(d, GT1549.prototype.EASING_OUT)), (d = GT1549.prototype.blend_3(d, f, e / 100))) : null != a.easeMethod && (d = a.easeMethod.compute_1(d)); return d; }, getFPS_0: function () { return this._fps; }, getCurrentFrameIndex_0: function () { return this._currentFrameTime; }, setAlpha_1: function (a) { this._globalAlpha = a; }, isLoaded_0: function () { return this._fullyLoaded; }, play_3: function (a, b, d) { this.reset_0(); this.findCurrentLayerKeys_1(a); this._startFrame = a; this._endFrame = Math.min_2(b, this._maxFrames - 1); this._looping = d; this._rangeComplete = !1; }, setTriggerOnAnimComplete_1: function (a) { this._triggerOnAnimComplete = a; }, getDesignedWidth_0: function () { return this._designedWidth; }, getDesignedHeight_0: function () { return this._designedHeight; }, getLayersCount_0: function () { return null != this._layers ? this._layers.length : 0; }, }, "GT1549", [] ), GT1675 = Class.extend( { initialConstructor_0: function () { this.height = this.width = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.height = this.width = 0; this.width = a; this.height = b; }, }, "GT1675", [] ), GT1674 = Class.extend( { initialConstructor_0: function () { this.easeMethod = null; this.alpha = this.rotationTimes = this.rotationType = this.ty = this.tx = this.md = this.mc = this.mb = this.ma = this.bitmap = this.index = this.acceleration = 0; this.tween = !1; this.rotation = 0; this.trans = this.scale = null; Class.prototype.initialConstructor_0.call(this); }, getDoubleFromHashtable_3: function (a, b, d) { return a.containsKey_1(b) ? a.get_1(b).doubleValue_0() : d; }, getIntFromHashtable_3: function (a, b, d) { return a.containsKey_1(b) ? Integer.truncate_1(a.get_1(b).doubleValue_0()) : d; }, initialConstructor_1: function (a) { this.easeMethod = null; this.alpha = this.rotationTimes = this.rotationType = this.ty = this.tx = this.md = this.mc = this.mb = this.ma = this.bitmap = this.index = this.acceleration = 0; this.tween = !1; this.rotation = 0; this.trans = this.scale = null; this.scale = new GT1631(); this.trans = new GT1631(); if (null != a) { this.index = this.getIntFromHashtable_3(a, "index", 0); this.bitmap = this.getIntFromHashtable_3(a, "bitmap", 0); this.acceleration = this.getIntFromHashtable_3(a, "acceleration", 0); this.ma = this.getDoubleFromHashtable_3(a, "ma", 0); this.mb = this.getDoubleFromHashtable_3(a, "mb", 0); this.mc = this.getDoubleFromHashtable_3(a, "mc", 0); this.md = this.getDoubleFromHashtable_3(a, "md", 0); this.tx = this.getDoubleFromHashtable_3(a, "tx", 0); this.ty = this.getDoubleFromHashtable_3(a, "ty", 0); this.easeMethod = this.getEaseEquation_1(a.get_1("easeMethodName")); var b = a.get_1("rotateTween"); "clockwise".equals_1(b) ? (this.rotationType = GT1674.prototype.ROTATIONTYPE_CW) : "counter-clockwise".equals_1(b) ? (this.rotationType = GT1674.prototype.ROTATIONTYPE_CCW) : (this.rotationType = GT1674.prototype.ROTATIONTYPE_AUTO); this.rotationTimes = this.getDoubleFromHashtable_3(a, "rotateTimes", 1); this.alpha = this.getDoubleFromHashtable_3(a, "alpha", 1); a = a.get_1("tween"); this.tween = null != a ? a.booleanValue_0() : !1; } else this.ma = this.mb = this.mc = this.md = this.tx = this.ty = this.rotationTimes = 0; }, getEaseEquation_1: function (a) { if (null == a) return null; var b; b = this.changeTweenIfMatchingString_6(null, GT1283.prototype.IN, GT1283.prototype.OUT, GT1283.prototype.INOUT, "bounce", a); b = this.changeTweenIfMatchingString_6(b, GT1235.prototype.IN, GT1235.prototype.OUT, GT1235.prototype.INOUT, "elastic", a); b = this.changeTweenIfMatchingString_6(b, GT1384.prototype.IN, GT1384.prototype.OUT, GT1384.prototype.INOUT, "sine", a); b = this.changeTweenIfMatchingString_6(b, GT1382.prototype.IN, GT1382.prototype.OUT, GT1382.prototype.INOUT, "quad", a); b = this.changeTweenIfMatchingString_6(b, GT1330.prototype.IN, GT1330.prototype.OUT, GT1330.prototype.INOUT, "cubic", a); b = this.changeTweenIfMatchingString_6(b, GT1331.prototype.IN, GT1331.prototype.OUT, GT1331.prototype.INOUT, "quart", a); b = this.changeTweenIfMatchingString_6(b, GT1332.prototype.IN, GT1332.prototype.OUT, GT1332.prototype.INOUT, "quint", a); b = this.changeTweenIfMatchingString_6(b, GT1383.prototype.IN, GT1383.prototype.OUT, GT1383.prototype.INOUT, "circ", a); return (b = this.changeTweenIfMatchingString_6(b, GT1386.prototype.IN, GT1386.prototype.OUT, GT1386.prototype.INOUT, "back", a)); }, changeTweenIfMatchingString_6: function (a, b, d, e, f, g) { if (g.startsWith_1(f)) { f = f + "." + g.replace_2(f, ""); if (GT1677.prototype.toLowerCaseAZ_1(b.toString()).equals_1(GT1677.prototype.toLowerCaseAZ_1(f))) return b; if (GT1677.prototype.toLowerCaseAZ_1(d.toString()).equals_1(GT1677.prototype.toLowerCaseAZ_1(f))) return d; if (GT1677.prototype.toLowerCaseAZ_1(e.toString()).equals_1(GT1677.prototype.toLowerCaseAZ_1(f))) return e; } return a; }, extractMatrix_2: function (a, b) { this.scale.x = Math.sqrt_1(this.ma * this.ma + this.mb * this.mb); this.scale.y = Math.sqrt_1(this.mc * this.mc + this.md * this.md); this.rotation = Math.atan2_2(-this.mc, this.ma); var d = new GT1329().addScale_2(this.scale.x, this.scale.y).addRotation_1(this.rotation).get_0(), e = new GT1631(), f = new GT1631(); e.set_2(Math.div(a, 2), Math.div(b, 2)); f.set_1(e); d.transform_1(e); this.trans.set_2(this.tx + (e.x - f.x), this.ty + (e.y - f.y)); }, interpolate_4: function (a, b, d, e) { this.bitmap = a.bitmap; if (null == b || (0 > b.bitmap && !e)) (this.rotation = a.rotation), this.scale.set_1(a.scale), this.trans.set_1(a.trans), (this.alpha = a.alpha); else { e = b.rotation; a.rotationType == GT1674.prototype.ROTATIONTYPE_CCW && e > a.rotation ? (e -= 2 * Math.PI) : a.rotationType == GT1674.prototype.ROTATIONTYPE_CW && e < a.rotation && (e += 2 * Math.PI); switch (a.rotationType) { case GT1674.prototype.ROTATIONTYPE_CCW: e -= 2 * Math.PI * a.rotationTimes; break; case GT1674.prototype.ROTATIONTYPE_CW: e += 2 * Math.PI * a.rotationTimes; } this.rotation = GT1549.prototype.blend_3(a.rotation, e, d); this.scale.setBlend_3(a.scale, b.scale, d); this.trans.setBlend_3(a.trans, b.trans, d); this.alpha = GT1549.prototype.blend_3(a.alpha, b.alpha, d); this.alpha = GT1549.prototype.clamp_3(this.alpha, 0, 1); } }, }, "GT1674", [] ), GT1676 = Class.extend( { initialConstructor_0: function () { this.frames = null; this.isMask = !1; this.maskToUse = 0; this.maskSize = null; this.isMask = !1; this.maskToUse = -1; this.maskSize = null; }, }, "GT1676", [] ), GT1666 = Class.extend( { initialConstructor_0: function () { this.matrix = null; this.alpha = 0; this.currentFrame = null; this.matrix = new GT1621(); this.alpha = 0; this.currentFrame = null; }, }, "GT1666", [] ); GT1549.prototype.clamp_3 = function (a, b, d) { return a < b ? b : a > d ? d : a; }; GT1549.prototype.blend_3 = function (a, b, d) { return a + (b - a) * d; }; GT1549.prototype.getInterpolationFactor_2 = function (a, b) { a = 0 > a ? 0 : 1 < a ? 1 : a; var d = Math.div(Math.PI, 2); switch (b) { case GT1549.prototype.EASING_LINEAR: return a; case GT1549.prototype.EASING_OUT: return 1 - Math.cos_1(a * d); case GT1549.prototype.EASING_IN: return Math.sin_1(a * d); case GT1549.prototype.EASING_INOUT: return Math.div(1 + Math.cos_1(Math.PI + a * Math.PI), 2); } return 0; }; GT1549.prototype.ANIM_EVENT_RANGE_COMPLETE = GT1677.prototype.generateID_0(); GT1549.prototype.EASING_IN = 0; GT1549.prototype.EASING_OUT = 1; GT1549.prototype.EASING_INOUT = 2; GT1549.prototype.EASING_LINEAR = 3; GT1549.prototype.SPECIAL_FRAME_AFTER_LAST_KEYFRAME = -2; GT1549.prototype.SPECIAL_FRAME_BEFORE_FIRST_KEYFRAME = -1; GT1549.prototype.ANIM_EVENT_ANIM_COMPLETE = GT1677.prototype.generateID_0(); GT1674.prototype.ROTATIONTYPE_CW = 0; GT1674.prototype.ROTATIONTYPE_CCW = 1; GT1674.prototype.ROTATIONTYPE_AUTO = 2; var GT1211 = GT1436.extend( { initialConstructor_0: function () { this.param_s = 0; GT1436.prototype.initialConstructor_0.call(this); this.param_s = 1.70158; }, s_1: function (a) { this.param_s = a; return this; }, }, "GT1211", [] ), GT1309 = GT1211.extend( { initialConstructor_0: function () { GT1211.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_s; return a * a * ((b + 1) * a - b); }, toString: function () { return "Back.IN"; }, }, "GT1309", [] ), GT1159 = GT1211.extend( { initialConstructor_0: function () { GT1211.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_s; return 1 > (a *= 2) ? 0.5 * a * a * (((b *= 1.525) + 1) * a - b) : 0.5 * ((a -= 2) * a * (((b *= 1.525) + 1) * a + b) + 2); }, toString: function () { return "Back.INOUT"; }, }, "GT1159", [] ), GT1257 = GT1211.extend( { initialConstructor_0: function () { GT1211.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_s; return --a * a * ((b + 1) * a + b) + 1; }, toString: function () { return "Back.OUT"; }, }, "GT1257", [] ), GT1102 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1102", [] ), GT1212 = GT1102.extend( { initialConstructor_0: function () { GT1102.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 - GT1283.prototype.OUT.compute_1(1 - a); }, toString: function () { return "Bounce.IN"; }, }, "GT1212", [] ), GT1050 = GT1102.extend( { initialConstructor_0: function () { GT1102.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 0.5 > a ? 0.5 * GT1283.prototype.IN.compute_1(2 * a) : 0.5 * GT1283.prototype.OUT.compute_1(2 * a - 1) + 0.5; }, toString: function () { return "Bounce.INOUT"; }, }, "GT1050", [] ), GT1160 = GT1102.extend( { initialConstructor_0: function () { GT1102.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a < 1 / 2.75 ? 7.5625 * a * a : a < 2 / 2.75 ? 7.5625 * (a -= 1.5 / 2.75) * a + 0.75 : a < 2.5 / 2.75 ? 7.5625 * (a -= 2.25 / 2.75) * a + 0.9375 : 7.5625 * (a -= 2.625 / 2.75) * a + 0.984375; }, toString: function () { return "Bounce.OUT"; }, }, "GT1160", [] ), GT1213 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1213", [] ), GT1310 = GT1213.extend( { initialConstructor_0: function () { GT1213.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return -Math.sqrt_1(1 - a * a) - 1; }, toString: function () { return "Circ.IN"; }, }, "GT1310", [] ), GT1161 = GT1213.extend( { initialConstructor_0: function () { GT1213.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 > (a *= 2) ? -0.5 * (Math.sqrt_1(1 - a * a) - 1) : 0.5 * (Math.sqrt_1(1 - (a -= 2) * a) + 1); }, toString: function () { return "Circ.INOUT"; }, }, "GT1161", [] ), GT1258 = GT1213.extend( { initialConstructor_0: function () { GT1213.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return Math.sqrt_1(1 - --a * a); }, toString: function () { return "Circ.OUT"; }, }, "GT1258", [] ), GT1162 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1162", [] ), GT1259 = GT1162.extend( { initialConstructor_0: function () { GT1162.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a * a * a; }, toString: function () { return "Cubic.IN"; }, }, "GT1259", [] ), GT1214 = GT1162.extend( { initialConstructor_0: function () { GT1162.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return --a * a * a + 1; }, toString: function () { return "Cubic.OUT"; }, }, "GT1214", [] ), GT1103 = GT1162.extend( { initialConstructor_0: function () { GT1162.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 > (a *= 2) ? 0.5 * a * a * a : 0.5 * ((a -= 2) * a * a + 2); }, toString: function () { return "Cubic.INOUT"; }, }, "GT1103", [] ), GT1051 = GT1436.extend( { initialConstructor_0: function () { this.param_p = this.param_a = 0; this.setP = this.setA = !1; GT1436.prototype.initialConstructor_0.call(this); this.setP = this.setA = !1; }, a_1: function (a) { this.param_a = a; this.setA = !0; return this; }, p_1: function (a) { this.param_p = a; this.setP = !0; return this; }, }, "GT1051", [] ); GT1051.prototype.PI = 3.14159265; var GT1163 = GT1051.extend( { initialConstructor_0: function () { GT1051.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_a, d = this.param_p; if (0 == a) return 0; if (1 == a) return 1; this.setP || (d = 0.3); var e; !this.setA || 1 > b ? ((b = 1), (e = Math.div(d, 4))) : (e = (d / (2 * this.PI)) * Math.asin_1(1 / b)); return -(b * Math.pow_2(2, 10 * --a) * Math.sin_1(Math.div(2 * (a - e) * this.PI, d))); }, toString: function () { return "Elastic.IN"; }, }, "GT1163", [] ), GT1001 = GT1051.extend( { initialConstructor_0: function () { GT1051.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_a, d = this.param_p; if (0 == a) return 0; if (2 == (a *= 2)) return 1; this.setP || (d = 0.3 * 1.5); var e; !this.setA || 1 > b ? ((b = 1), (e = d / 4)) : (e = (d / (2 * this.PI)) * Math.asin_1(1 / b)); return 1 > a ? -0.5 * b * Math.pow_2(2, 10 * --a) * Math.sin_1(Math.div(2 * (a - e) * this.PI, d)) : b * Math.pow_2(2, -10 * --a) * Math.sin_1((2 * (a - e) * this.PI) / d) * 0.5 + 1; }, toString: function () { return "Elastic.INOUT"; }, }, "GT1001", [] ), GT1104 = GT1051.extend( { initialConstructor_0: function () { GT1051.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { var b = this.param_a, d = this.param_p; if (0 == a) return 0; if (1 == a) return 1; this.setP || (d = 0.3); var e; !this.setA || 1 > b ? ((b = 1), (e = Math.div(d, 4))) : (e = (d / (2 * this.PI)) * Math.asin_1(1 / b)); return b * Math.pow_2(2, -10 * a) * Math.sin_1((2 * (a - e) * this.PI) / d) + 1; }, toString: function () { return "Elastic.OUT"; }, }, "GT1104", [] ), GT1215 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1215", [] ), GT1311 = GT1215.extend( { initialConstructor_0: function () { GT1215.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 0 == a ? 0 : Math.pow_2(2, 10 * (a - 1)); }, toString: function () { return "Expo.IN"; }, }, "GT1311", [] ), GT1164 = GT1215.extend( { initialConstructor_0: function () { GT1215.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 0 == a ? 0 : 1 == a ? 1 : 1 > (a *= 2) ? 0.5 * Math.pow_2(2, 10 * (a - 1)) : 0.5 * (-Math.pow_2(2, -10 * --a) + 2); }, toString: function () { return "Expo.INOUT"; }, }, "GT1164", [] ), GT1260 = GT1215.extend( { initialConstructor_0: function () { GT1215.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 == a ? 1 : -Math.pow_2(2, -10 * a) + 1; }, toString: function () { return "Expo.OUT"; }, }, "GT1260", [] ), GT1105 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1105", [] ), GT1052 = GT1105.extend( { initialConstructor_0: function () { GT1105.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a; }, toString: function () { return "Linear.INOUT"; }, }, "GT1052", [] ), GT1216 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1216", [] ), GT1312 = GT1216.extend( { initialConstructor_0: function () { GT1216.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a * a; }, toString: function () { return "Quad.IN"; }, }, "GT1312", [] ), GT1165 = GT1216.extend( { initialConstructor_0: function () { GT1216.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 > (a *= 2) ? 0.5 * a * a : -0.5 * (--a * (a - 2) - 1); }, toString: function () { return "Quad.INOUT"; }, }, "GT1165", [] ), GT1261 = GT1216.extend( { initialConstructor_0: function () { GT1216.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return -a * (a - 2); }, toString: function () { return "Quad.OUT"; }, }, "GT1261", [] ), GT1166 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1166", [] ), GT1262 = GT1166.extend( { initialConstructor_0: function () { GT1166.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a * a * a * a; }, toString: function () { return "Quart.IN"; }, }, "GT1262", [] ), GT1106 = GT1166.extend( { initialConstructor_0: function () { GT1166.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 > (a *= 2) ? 0.5 * a * a * a * a : -0.5 * ((a -= 2) * a * a * a - 2); }, toString: function () { return "Quart.INOUT"; }, }, "GT1106", [] ), GT1217 = GT1166.extend( { initialConstructor_0: function () { GT1166.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return -(--a * a * a * a - 1); }, toString: function () { return "Quart.OUT"; }, }, "GT1217", [] ), GT1167 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1167", [] ), GT1263 = GT1167.extend( { initialConstructor_0: function () { GT1167.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return a * a * a * a * a; }, toString: function () { return "Quint.IN"; }, }, "GT1263", [] ), GT1107 = GT1167.extend( { initialConstructor_0: function () { GT1167.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return 1 > (a *= 2) ? 0.5 * a * a * a * a * a : 0.5 * ((a -= 2) * a * a * a * a + 2); }, toString: function () { return "Quint.INOUT"; }, }, "GT1107", [] ), GT1218 = GT1167.extend( { initialConstructor_0: function () { GT1167.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return --a * a * a * a * a + 1; }, toString: function () { return "Quint.OUT"; }, }, "GT1218", [] ), GT1219 = GT1436.extend( { initialConstructor_0: function () { GT1436.prototype.initialConstructor_0.call(this); }, }, "GT1219", [] ); GT1219.prototype.PI = 3.14159265; var GT1313 = GT1219.extend( { initialConstructor_0: function () { GT1219.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return -Math.cos_1((this.PI / 2) * a) + 1; }, toString: function () { return "Sine.IN"; }, }, "GT1313", [] ), GT1168 = GT1219.extend( { initialConstructor_0: function () { GT1219.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return -0.5 * (Math.cos_1(this.PI * a) - 1); }, toString: function () { return "Sine.INOUT"; }, }, "GT1168", [] ), GT1264 = GT1219.extend( { initialConstructor_0: function () { GT1219.prototype.initialConstructor_0.call(this); }, compute_1: function (a) { return Math.sin_1((this.PI / 2) * a); }, toString: function () { return "Sine.OUT"; }, }, "GT1264", [] ), GT1605 = GT1589.extend( { initialConstructor_0: function () { this.parent = this.current = this.children = null; this.mode = 0; this.isBuilt = !1; GT1589.prototype.initialConstructor_0.call(this); this.children = new java_util_JavaScriptVector(); this.reset_0(); }, reset_0: function () { GT1589.prototype.reset_0.call(this); this.children.clear_0(); this.current = this.parent = null; this.isBuilt = !1; }, setup_1: function (a) { a != GT1605.prototype.MODE_PARALLEL && a != GT1605.prototype.MODE_SEQUENCE && GT1650.prototype.assertFailed_1("Illegal mode"); this.mode = a; this.current = this; }, push_1: function (a) { if (instanceOf(a, GT1605)) return this.pushTimeline_1(a); if (instanceOf(a, GT1647)) return this.pushTween_1(a); GT1650.prototype.assertFailed_1("Illegal tween added"); return null; }, pushTween_1: function (a) { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); this.current.children.add_1(a); return this; }, pushTimeline_1: function (a) { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); a.current != a && GT1650.prototype.assertFailed_1("You forgot to call a few 'end()' statements in your pushed timeline"); a.parent = this.current; this.current.children.add_1(a); return this; }, pushPause_1: function (a) { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); this.current.children.add_1(GT1647.prototype.mark_0().delay_1(a)); return this; }, beginSequence_0: function () { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); var a = GT1605.prototype.pool.get_0(); a.parent = this.current; a.mode = GT1605.prototype.MODE_SEQUENCE; this.current.children.add_1(a); this.current = a; return this; }, beginParallel_0: function () { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); var a = GT1605.prototype.pool.get_0(); a.parent = this.current; a.mode = GT1605.prototype.MODE_PARALLEL; this.current.children.add_1(a); this.current = a; return this; }, end_0: function () { this.isBuilt && GT1650.prototype.assertFailed_1("You can't push anything to a timeline once it is started"); this.current == this && GT1650.prototype.assertFailed_1("Nothing to end..."); this.current = this.current.parent; return this; }, getChildren_0: function () { return this.current.children; }, build_0: function () { if (this.isBuilt) return this; for (var a = (this.duration = 0); a < this.children.size_0(); a++) { var b = this.children.get_1(a); 0 > b.getRepeatCount_0() && GT1650.prototype.assertFailed_1("You can't push an object with infinite repetitions in a timeline"); b.build_0(); switch (this.mode) { case GT1605.prototype.MODE_SEQUENCE: var d = this.duration; this.duration += b.getFullDuration_0(); b.mDelay += d; break; case GT1605.prototype.MODE_PARALLEL: this.duration = Math.max_2(this.duration, b.getFullDuration_0()); } } this.isBuilt = !0; return this; }, start_0: function () { GT1589.prototype.start_0.call(this); for (var a = 0; a < this.children.size_0(); a++) this.children.get_1(a).start_0(); return this; }, free_0: function () { for (var a = this.children.size_0() - 1; 0 <= a; a--) { var b = this.children.get_1(a); this.children.removeElementAt_1(a); b.free_0(); } GT1605.prototype.pool.free_1(this); }, updateOverride_4: function (a, b, d, e) { if (!d && a > b) for (GT1650.prototype.assertExp_2(0 <= e, "delta must be >= 0"), a = this.isReverse_1(b) ? -e - 1 : e + 1, b = 0; b < this.children.size_0(); b++) this.children.get_1(b).update_1(a); else if (!d && a < b) for (GT1650.prototype.assertExp_2(0 >= e, "delta must be <= 0"), a = this.isReverse_1(b) ? -e - 1 : e + 1, b = this.children.size_0() - 1; 0 <= b; b--) this.children.get_1(b).update_1(a); else if ((GT1650.prototype.assertExp_2(d, "isIterationStep must not be false"), a > b)) for (this.isReverse_1(a) ? this.forceEndValues_0() : this.forceStartValues_0(), b = 0; b < this.children.size_0(); b++) this.children.get_1(b).update_1(e); else if (a < b) for (this.isReverse_1(a) ? this.forceStartValues_0() : this.forceEndValues_0(), b = this.children.size_0() - 1; 0 <= b; b--) this.children.get_1(b).update_1(e); else if (((a = this.isReverse_1(a) ? -e : e), 0 <= e)) for (b = 0; b < this.children.size_0(); b++) this.children.get_1(b).update_1(a); else for (b = this.children.size_0() - 1; 0 <= b; b--) this.children.get_1(b).update_1(a); }, forceStartValues_0: function () { for (var a = this.children.size_0() - 1; 0 <= a; a--) this.children.get_1(a).forceToStart_0(); }, forceEndValues_0: function () { for (var a = 0; a < this.children.size_0(); a++) this.children.get_1(a).forceToEnd_1(this.duration); }, containsTarget_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) if (this.children.get_1(b).containsTarget_1(a)) return !0; return !1; }, containsTarget_2: function (a, b) { for (var d = 0; d < this.children.size_0(); d++) if (this.children.get_1(d).containsTarget_2(a, b)) return !0; return !1; }, }, "GT1605", [] ); GT1605.prototype.createParallel_0 = function () { var a = GT1605.prototype.pool.get_0(); a.setup_1(GT1605.prototype.MODE_PARALLEL); return a; }; GT1605.prototype.createSequence_0 = function () { var a = GT1605.prototype.pool.get_0(); a.setup_1(GT1605.prototype.MODE_SEQUENCE); return a; }; GT1605.prototype.ensurePoolCapacity_1 = function (a) { GT1605.prototype.pool.ensureCapacity_1(a); }; GT1605.prototype.getPoolSize_0 = function () { return GT1605.prototype.pool.size_0(); }; GT1605.prototype.poolCallback = new GT1072(); GT1605.prototype.pool = new GT1486(10, GT1605.prototype.poolCallback); GT1605.prototype.MODE_SEQUENCE = 1; GT1605.prototype.MODE_PARALLEL = 2; var GT1647 = GT1589.extend( { initialConstructor_0: function () { this.accessors = this.mTarget = null; this.type = 0; this.mPath = this.equation = null; this.isRelative = this.isFrom = !1; this.waypointsCnt = this.combinedAttrsCnt = 0; this.pathBuffer = this.accessorBuffer = this.waypoints = this.targetValues = this.startValues = null; GT1589.prototype.initialConstructor_0.call(this); this.startValues = [].createArray(GT1647.prototype.combinedAttrsLimit).init(0); this.targetValues = [].createArray(GT1647.prototype.combinedAttrsLimit).init(0); this.waypoints = [].createArray(GT1647.prototype.waypointsLimit * GT1647.prototype.combinedAttrsLimit).init(0); this.accessorBuffer = [].createArray(GT1647.prototype.combinedAttrsLimit).init(0); this.pathBuffer = [].createArray((2 + GT1647.prototype.waypointsLimit) * GT1647.prototype.combinedAttrsLimit).init(0); GT1647.prototype.initializeDefaultAccessors_0(); this.reset_0(); }, reset_0: function () { GT1589.prototype.reset_0.call(this); this.accessors = this.mTarget = null; this.type = -1; this.mPath = this.equation = null; this.isFrom = this.isRelative = !1; this.combinedAttrsCnt = this.waypointsCnt = 0; this.accessorBuffer.length != GT1647.prototype.combinedAttrsLimit && (this.accessorBuffer = [].createArray(GT1647.prototype.combinedAttrsLimit).init(0)); this.pathBuffer.length != (2 + GT1647.prototype.waypointsLimit) * GT1647.prototype.combinedAttrsLimit && (this.pathBuffer = [].createArray((2 + GT1647.prototype.waypointsLimit) * GT1647.prototype.combinedAttrsLimit).init(0)); }, setup_3: function (a, b, d) { 0 > d && GT1650.prototype.assertFailed_1("Duration can't be negative"); this.mTarget = a; this.type = b; this.duration = d; }, ease_1: function (a) { this.equation = a; return this; }, target_1: function (a) { this.targetValues[0] = a; return this; }, target_2: function (a, b) { this.targetValues[0] = a; this.targetValues[1] = b; return this; }, target_3: function (a, b, d) { this.targetValues[0] = a; this.targetValues[1] = b; this.targetValues[2] = d; return this; }, target_4: function (a, b, d, e) { this.targetValues[0] = a; this.targetValues[1] = b; this.targetValues[2] = d; this.targetValues[3] = e; return this; }, targetRelative_1: function (a) { this.isRelative = !0; this.targetValues[0] = this.isInitialized_0() ? a + this.startValues[0] : a; return this; }, targetRelative_2: function (a, b) { this.isRelative = !0; this.targetValues[0] = this.isInitialized_0() ? a + this.startValues[0] : a; this.targetValues[1] = this.isInitialized_0() ? b + this.startValues[1] : b; return this; }, targetRelative_3: function (a, b, d) { this.isRelative = !0; this.targetValues[0] = this.isInitialized_0() ? a + this.startValues[0] : a; this.targetValues[1] = this.isInitialized_0() ? b + this.startValues[1] : b; this.targetValues[2] = this.isInitialized_0() ? d + this.startValues[2] : d; return this; }, targetRelative_4: function (a, b, d, e) { this.isRelative = !0; this.targetValues[0] = this.isInitialized_0() ? a + this.startValues[0] : a; this.targetValues[1] = this.isInitialized_0() ? b + this.startValues[1] : b; this.targetValues[2] = this.isInitialized_0() ? d + this.startValues[2] : d; this.targetValues[3] = this.isInitialized_0() ? e + this.startValues[3] : e; return this; }, waypoint_1: function (a) { this.waypointsCnt == GT1647.prototype.waypointsLimit && this.throwWaypointsLimitReached_0(); this.waypoints[this.waypointsCnt] = a; this.waypointsCnt += 1; return this; }, waypoint_2: function (a, b) { this.waypointsCnt == GT1647.prototype.waypointsLimit && this.throwWaypointsLimitReached_0(); this.waypoints[2 * this.waypointsCnt] = a; this.waypoints[2 * this.waypointsCnt + 1] = b; this.waypointsCnt += 1; return this; }, waypoint_3: function (a, b, d) { this.waypointsCnt == GT1647.prototype.waypointsLimit && this.throwWaypointsLimitReached_0(); this.waypoints[3 * this.waypointsCnt] = a; this.waypoints[3 * this.waypointsCnt + 1] = b; this.waypoints[3 * this.waypointsCnt + 2] = d; this.waypointsCnt += 1; return this; }, waypoint_4: function (a, b, d, e) { this.waypointsCnt == GT1647.prototype.waypointsLimit && this.throwWaypointsLimitReached_0(); this.waypoints[4 * this.waypointsCnt] = a; this.waypoints[4 * this.waypointsCnt + 1] = b; this.waypoints[4 * this.waypointsCnt + 2] = d; this.waypoints[4 * this.waypointsCnt + 2] = d; this.waypointsCnt += 1; return this; }, path_1: function (a) { this.mPath = a; return this; }, getTarget_0: function () { return this.mTarget; }, getType_0: function () { return this.type; }, getEasing_0: function () { return this.equation; }, getTargetValues_0: function () { return this.targetValues; }, getCombinedAttributesCount_0: function () { return this.combinedAttrsCnt; }, build_0: function () { if (null == this.mTarget) return this; this.accessors = this.getRegisteredAccessors_1(this.mTarget.getTweenAccessorKeys_0()); null == this.accessors && instanceOf(this.mTarget, GT1425) && (this.accessors = [this.mTarget]); null != this.accessors ? (this.combinedAttrsCnt = this.getValuesFromAccessors_4(this.accessors, this.mTarget, this.type, this.accessorBuffer)) : GT1650.prototype.assertFailed_1("No TweenAccessor was found for the target"); this.combinedAttrsCnt > GT1647.prototype.combinedAttrsLimit && this.throwCombinedAttrsLimitReached_0(); return this; }, getValuesFromAccessors_4: function (a, b, d, e) { for (var f = 0; f < a.length; f++) { var g = a[f]; if (null != g && null != b && b.canHandleType_1(d) && ((g = g.getValues_3(b, d, e)), -1 != g)) return g; } return -1; }, setValuesToAccessors_4: function (a, b, d, e) { for (var f = 0; f < a.length; f++) { var g = a[f]; if (null != g && null != b && b.canHandleType_1(d) && g.setValues_3(b, d, e)) return !0; } return !1; }, free_0: function () { GT1647.prototype.pool.free_1(this); }, initializeOverride_0: function () { if (null != this.mTarget) { this.getValuesFromAccessors_4(this.accessors, this.mTarget, this.type, this.startValues); for (var a = 0; a < this.combinedAttrsCnt; a++) { this.targetValues[a] += this.isRelative ? this.startValues[a] : 0; for (var b = 0; b < this.waypointsCnt; b++) this.waypoints[b * this.combinedAttrsCnt + a] += this.isRelative ? this.startValues[a] : 0; this.isFrom && ((b = this.startValues[a]), (this.startValues[a] = this.targetValues[a]), (this.targetValues[a] = b)); } } }, updateOverride_4: function (a, b, d, e) { if (null != this.mTarget && null != this.equation) if (!d && a > b) this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.isReverse_1(b) ? this.startValues : this.targetValues); else if (!d && a < b) this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.isReverse_1(b) ? this.targetValues : this.startValues); else if ( (GT1650.prototype.assertExp_2(d, "isIterationStep must not be false"), GT1650.prototype.assertExp_2(0 <= this.getCurrentTime_0(), "current time must be >=0"), GT1650.prototype.assertExp_2(this.getCurrentTime_0() <= this.duration, "current time must be <= duration"), 1e-11 > this.duration && -1e-11 < e) ) this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.isReverse_1(a) ? this.targetValues : this.startValues); else if (1e-11 > this.duration && 1e-11 > e) this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.isReverse_1(a) ? this.startValues : this.targetValues); else { a = this.isReverse_1(a) ? this.duration - this.getCurrentTime_0() : this.getCurrentTime_0(); a = this.equation.compute_1(a / this.duration); if (0 == this.waypointsCnt || null == this.mPath) for (b = 0; b < this.combinedAttrsCnt; b++) this.accessorBuffer[b] = this.startValues[b] + a * (this.targetValues[b] - this.startValues[b]); else for (b = 0; b < this.combinedAttrsCnt; b++) { this.pathBuffer[0] = this.startValues[b]; this.pathBuffer[1 + this.waypointsCnt] = this.targetValues[b]; for (d = 0; d < this.waypointsCnt; d++) this.pathBuffer[d + 1] = this.waypoints[d * this.combinedAttrsCnt + b]; this.accessorBuffer[b] = this.mPath.compute_3(a, this.pathBuffer, this.waypointsCnt + 2); } this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.accessorBuffer); } }, forceStartValues_0: function () { null != this.mTarget && this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.startValues); }, forceEndValues_0: function () { null != this.mTarget && this.setValuesToAccessors_4(this.accessors, this.mTarget, this.type, this.targetValues); }, containsTarget_1: function (a) { return this.mTarget == a; }, containsTarget_2: function (a, b) { return this.mTarget == a && this.type == b; }, throwCombinedAttrsLimitReached_0: function () { GT1650.prototype.assertFailed_1( "You cannot combine more than " + GT1647.prototype.combinedAttrsLimit + " attributes in a tween. You can raise this limit with Tween.setCombinedAttributesLimit(), which should be called once in application initialization code." ); }, throwWaypointsLimitReached_0: function () { GT1650.prototype.assertFailed_1( "You cannot add more than " + GT1647.prototype.waypointsLimit + " waypoints to a tween. You can raise this limit with Tween.setWaypointsLimit(), which should be called once in application initialization code." ); }, }, "GT1647", [] ); GT1647.prototype.mark_0 = function () { var a = GT1647.prototype.pool.get_0(); a.setup_3(null, -1, 0); return a; }; GT1647.prototype.call_1 = function (a) { var b = GT1647.prototype.pool.get_0(); b.setup_3(null, -1, 0); b.setCallback_1(a); b.setCallbackTriggers_1(GT1181.prototype.START); return b; }; GT1647.prototype.set_2 = function (a, b) { var d = GT1647.prototype.pool.get_0(); d.setup_3(a, b, 0); d.ease_1(GT1382.prototype.INOUT); return d; }; GT1647.prototype.from_3 = function (a, b, d) { var e = GT1647.prototype.pool.get_0(); e.setup_3(a, b, d); e.ease_1(GT1382.prototype.INOUT); e.path_1(GT1557.prototype.catmullRom); e.isFrom = !0; return e; }; GT1647.prototype.to_3 = function (a, b, d) { var e = GT1647.prototype.pool.get_0(); e.setup_3(a, b, d); e.ease_1(GT1382.prototype.INOUT); e.path_1(GT1557.prototype.catmullRom); return e; }; GT1647.prototype.getRegisteredAccessors_1 = function (a) { a.length > GT1647.prototype.sAccessorReturnList.length && (GT1647.prototype.sAccessorReturnList = [].createArray(a.length)); for (var b = 0; b < GT1647.prototype.sAccessorReturnList.length; b++) GT1647.prototype.sAccessorReturnList[b] = b < a.length ? this.getRegisteredAccessor_1(a[b]) : null; return GT1647.prototype.sAccessorReturnList; }; GT1647.prototype.getRegisteredAccessor_1 = function (a) { return GT1647.prototype.registeredAccessors.get_1(a); }; GT1647.prototype.registerAccessor_2 = function (a, b) { GT1647.prototype.registeredAccessors.put_2(a, b); }; GT1647.prototype.initializeDefaultAccessors_0 = function () { GT1647.prototype.sDefaultAccessorsInitialized || (this.registerAccessor_2(GT867.prototype.RECT, new GT967()), this.registerAccessor_2(GT867.prototype.ALPHA, new GT925()), this.registerAccessor_2(GT867.prototype.TRANSFORM, new GT705()), this.registerAccessor_2(GT867.prototype.CUSTOM_FIELDS, new GT552()), (GT1647.prototype.sDefaultAccessorsInitialized = !0)); }; GT1647.prototype.ensurePoolCapacity_1 = function (a) { GT1647.prototype.pool.ensureCapacity_1(a); }; GT1647.prototype.getPoolSize_0 = function () { return GT1647.prototype.pool.size_0(); }; GT1647.prototype.getVersion_0 = function () { return "6.3.3"; }; GT1647.prototype.setWaypointsLimit_1 = function (a) { GT1647.prototype.waypointsLimit = a; }; GT1647.prototype.getCombinedAttributesLimit_0 = function () { return GT1647.prototype.combinedAttrsLimit; }; GT1647.prototype.setCombinedAttributesLimit_1 = function (a) { GT1647.prototype.combinedAttrsLimit = a; }; GT1647.prototype.INFINITY = -1; GT1647.prototype.combinedAttrsLimit = 4; GT1647.prototype.waypointsLimit = 5; GT1647.prototype.sDefaultAccessorsInitialized = !1; GT1647.prototype.poolCallback = new GT1234(); GT1647.prototype.pool = new GT1590(20, GT1647.prototype.poolCallback); GT1647.prototype.registeredAccessors = new java_util_JavaScriptHashtable(); GT1647.prototype.sAccessorReturnList = [].createArray(10); var GT325 = GT1190.extend( { initialConstructor_0: function () { this.theapplet = null; this.showlogo = !1; this.txtjp = this.txtbet = this.logo = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.theapplet = null; this.showlogo = !1; this.txtjp = this.txtbet = this.logo = null; GT1190.prototype.initialConstructor_3.call(this, a.getTimer_0(), GT325.prototype.ITERATIONSPEED, !1); this.theapplet = a; this.logo = b; this.logo.hide_1(!0); this.txtbet = d; this.txtjp = e; }, start_0: function () { this.showlogo = !0; this.createDisplay_1(!0); GT1190.prototype.start_0.call(this); }, action_1: function (a) { if (!this.logo.isAlive_0() || !this.txtbet.isAlive_0() || !this.txtjp.isAlive_0()) return !1; this.showlogo = !this.showlogo; this.createDisplay_1(!1); return !0; }, createDisplay_1: function (a) { this.showlogo ? (this.logo.hide_1(!1), this.txtbet.hide_1(!0), GT1560.prototype.isAlive_1(this.txtjp) && this.txtjp.hide_1(!0), a ? new GT1191(this.theapplet.getTimer_0(), this.logo, !1, 0, GT325.prototype.ITERATIONSPEED - GT325.prototype.FADEOUTTIME, GT325.prototype.FADEOUTTIME).start_0() : (this.logo.setAlpha_1(0), new GT1191( this.theapplet.getTimer_0(), this.logo, !1, GT325.prototype.FADEINTIME, GT325.prototype.ITERATIONSPEED - GT325.prototype.FADEINTIME - GT325.prototype.FADEOUTTIME, GT325.prototype.FADEOUTTIME ).start_0())) : (this.logo.hide_1(!0), this.txtbet.hide_1(!1), this.txtjp.hide_1(!1), this.txtbet.setAlpha_1(0), this.txtjp.setAlpha_1(0), new GT1191(this.theapplet.getTimer_0(), this.txtbet, !1, GT325.prototype.FADEINTIME, GT325.prototype.ITERATIONSPEED - GT325.prototype.FADEINTIME - GT325.prototype.FADEOUTTIME, GT325.prototype.FADEOUTTIME).start_0(), new GT1191(this.theapplet.getTimer_0(), this.txtjp, !1, GT325.prototype.FADEINTIME, GT325.prototype.ITERATIONSPEED - GT325.prototype.FADEINTIME - GT325.prototype.FADEOUTTIME, GT325.prototype.FADEOUTTIME).start_0()); }, }, "GT325", [] ); GT325.prototype.ITERATIONSPEED = 5e3; GT325.prototype.FADEINTIME = 500; GT325.prototype.FADEOUTTIME = 500; var GT353 = GT1190.extend( { initialConstructor_0: function () { this.rand = this.tables = null; this.numtabledetails = 0; this.tvc = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.rand = this.tables = null; this.numtabledetails = 0; this.tvc = null; GT1190.prototype.initialConstructor_3.call(this, a, 500, !1); this.tvc = e; this.tables = b; this.rand = new GT1561(a.currentTimeMillis_0()); this.numtabledetails = d; for (a = 0; a < b.size_0(); a++) b.elementAt_1(a).lastframe = this.rand.nextInt_1(d - 1) + 1; }, action_1: function (a) { for (a = 0; a < this.tables.size_0(); a++) { var b = this.tables.elementAt_1(a), d = this.tvc.getTableGUI_1(b); if (null != d && !GT1560.prototype.isAlive_1(d.imgDetail)) return !1; if ((null == d || !d.imgDetail.isHidden_0()) && b.useSpinAnim && (this.rand.nextBool_1(0.1) || 2 == b.lastframe || 4 == b.lastframe)) { var e = this.rand.nextInt_1(this.numtabledetails - 1) + 1; (2 != b.lastframe && 4 != b.lastframe) || (2 != e && 4 != e) || e++; 2 != b.lastframe && 4 != b.lastframe && 2 != e && 4 != e && e--; 0 == e && (e = 2); null != d && d.imgDetail.setSourcePoint_2(0, d.imgDetail.getHeight_0() * e); b.lastframe = e; } } return !0; }, setAllFrames_0: function () { for (var a = 0; a < this.tables.size_0(); a++) { var b = this.tables.elementAt_1(a), d = this.tvc.getTableGUI_1(b); if ((null == d || !d.imgDetail.isHidden_0()) && b.useSpinAnim) { var e = this.rand.nextInt_1(this.numtabledetails - 1) + 1; (2 != b.lastframe && 4 != b.lastframe) || (2 != e && 4 != e) || e++; 2 != b.lastframe && 4 != b.lastframe && 2 != e && 4 != e && e--; 0 == e && (e = 2); null != d && d.imgDetail.setSourcePoint_2(0, d.imgDetail.getHeight_0() * e); b.lastframe = e; } } }, }, "GT353", [] ), GT187 = GT1190.extend( { initialConstructor_0: function () { this.table = null; this.framenr = 0; this.showframe0 = !1; this.actionintervall = this.totalelapsed = this.lasttime = this.intervallcount = 0; this.tvc = null; this.stopped = !1; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.table = null; this.framenr = 0; this.showframe0 = !1; this.actionintervall = this.totalelapsed = this.lasttime = this.intervallcount = 0; this.tvc = null; this.stopped = !1; GT1190.prototype.initialConstructor_3.call(this, a, 1e3, !1); this.showframe0 = b.nextBool_1(0.5); this.framenr = 2 * b.nextInt_1(Math.div(e, 2)) + 1; this.table = d; this.intervallcount = b.nextInt_1(2); this.actionintervall = 25e3 + b.nextInt_1(5e3); this.totalelapsed = b.nextInt_1(25e3); this.tvc = f; }, start_0: function () { this.stopped = !1; this.setFrame_0(); this.lasttime = this.getCurrentTimeMillis_0(); GT1190.prototype.start_0.call(this); }, stop_0: function () { this.stopped = !0; }, action_1: function (a) { if (this.stopped) return !1; var b = a - this.lasttime; this.lasttime = a; a = this.tvc.getTableGUI_1(this.table); if (null != a) { if (null == a.imgDetail) return !1; if (GT1560.prototype.isAlive_1(a.imgDetail) && a.imgDetail.isHidden_0()) return !0; } else return !1; if (!this.table.useSwitchAnim) return this.showframe0 || ((this.showframe0 = !0), this.setFrame_0()), !0; this.totalelapsed += b; if (this.totalelapsed < this.actionintervall) return !0; this.totalelapsed -= this.actionintervall; this.showframe0 ? (this.intervallcount++, 2 == this.intervallcount && ((this.showframe0 = !1), (this.intervallcount = 0))) : (this.showframe0 = !0); this.setFrame_0(); return !0; }, setFrame_0: function () { var a = this.tvc.getTableGUI_1(this.table); null != a && GT1560.prototype.isAlive_1(a.imgDetail) && a.imgDetail.setSourcePoint_2(0, this.showframe0 ? 0 : a.imgDetail.getHeight_0() * this.framenr); }, }, "GT187", [] ), GT637 = Class.extend( { initialConstructor_0: function () { this.dummyClip = this.resourcesToBeLoaded = null; this.resourcesToBeLoaded = new java_util_JavaScriptHashtable(); this.dummyClip = new GT903(); }, setListener_1: function (a) {}, getNumberOfResourcesToBeLoaded_0: function () { return this.resourcesToBeLoaded.size_0(); }, isResourceInCache_1: function (a) { return !1; }, startLoadTextDocument_1: function (a) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, getTextDocument_1: function (a) { return null; }, startLoadJSONObject_1: function (a) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, getJSONObject_1: function (a) { return null; }, startLoadImage_4: function (a, b, d, e) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, startLoadImage_6: function (a, b, d, e, f, g) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, startLoadImage_7: function (a, b, d, e, f, g, k) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, getImage_1: function (a) { return null; }, startLoadSound_1: function (a) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, startLoadSound_2: function (a, b) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, getSound_1: function (a) { return null; }, startLoadVideoClip_1: function (a) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, startLoadVideoClip_2: function (a, b) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, startLoadVideoClip_3: function (a, b, d) { this.resourcesToBeLoaded.put_2(a, {}); return null; }, getVideoClip_1: function (a) { return this.dummyClip; }, startLoadFont_3: function (a, b, d) { this.resourcesToBeLoaded.put_2(("font:" + a + "_" + (b ? "b" : "-") + (d ? "i" : "-")).toString(), {}); }, getFont_6: function (a, b, d, e, f, g) { return null; }, cleanup_0: function () { this.resourcesToBeLoaded.clear_0(); }, }, "GT637", [GT1275] ), GT903 = GT1564.extend( { initialConstructor_0: function () { this.loaded = !1; GT1564.prototype.initialConstructor_0.call(this); this.loaded = !1; }, isLoadingTriggered_0: function () { return this.isLoaded_0(); }, isLoaded_0: function () { return this.loaded; }, unload_0: function () { this.loaded = !1; }, triggerLoading_2: function (a, b) { this.loaded = !0; null != a && a.resourceLoaded_3(this.getFilename_0(), 1, 1); }, }, "GT903", [] ), GT711 = GT1285.extend( { initialConstructor_0: function () { GT1285.prototype.initialConstructor_0.call(this); }, format_1: function (a) { return GT1285.prototype.format_1.call(this, a); }, format_2: function (a, b) { return this.format_3(a, b, 0 != this.getCurrencySymbol_0().length_0()); }, }, "GT711", [] ); GT711.prototype.OMIT_CENT_NEVER = 0; GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO = 1; GT711.prototype.OMIT_CENT_IF_ZERO = 3; var GT741 = GT1610.extend( { initialConstructor_0: function () { GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1610.prototype.initialConstructor_1.call(this, a); }, dispatch_1: function (a) { return a.handleCasinoEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT337); }, toString: function () { return "CasinoEvent type[" + this.id + "]"; }, }, "GT741", [] ), GT354 = GT741.extend( { initialConstructor_0: function () { this.closewasunexpected = !1; GT741.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.closewasunexpected = !1; GT741.prototype.initialConstructor_1.call(this, GT354.prototype.ID); this.closewasunexpected = a; }, getCloseWasUnexpected_0: function () { return this.closewasunexpected; }, }, "GT354", [] ); GT354.prototype.ID = GT1677.prototype.generateID_0(); var GT284 = GT741.extend( { initialConstructor_0: function () { this.dialogid = 0; GT741.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.dialogid = 0; GT741.prototype.initialConstructor_1.call(this, GT284.prototype.ID); this.dialogid = a; }, getDialogId_0: function () { return this.dialogid; }, }, "GT284", [] ); GT284.prototype.ID = GT1677.prototype.generateID_0(); var GT285 = GT741.extend( { initialConstructor_0: function () { this.dialogid = 0; GT741.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.dialogid = 0; GT741.prototype.initialConstructor_1.call(this, GT285.prototype.ID); this.dialogid = a; }, getDialogId_0: function () { return this.dialogid; }, }, "GT285", [] ); GT285.prototype.ID = GT1677.prototype.generateID_0(); var GT160 = GT1491.extend( { initialConstructor_0: function () { this.skin = null; GT1491.prototype.initialConstructor_0.call(this); }, loadAll_1: function (a) { this.skin = a; null != this.containerGameMenu_0() && this.containerGameMenu_0().load_1(a); this.textAdminInfo_0().load_1(a); null != this.containerClock_0() && this.containerClock_0().load_1(a); this.hasReplayFeature_0() && (null != this.buttonOpenReplay_0() && this.buttonOpenReplay_0().load_1(a), null != this.containerReplayDialog_0() && this.containerReplayDialog_0().load_1(a)); this.containerPayInDialog_0().load_1(a); this.containerWatcherInfo_0().load_1(a); this.containerRealityCheckDialogIntervalTime_0().load_1(a); this.containerRealityCheckDialogIntervalRounds_0().load_1(a); this.containerErrorDialog_0().load_1(a); this.containerClientVersionInfo_0().load_1(a); this.containerSessionSettingsDialog_0().load_1(a); this.containerRCSettingsDialog_0().load_1(a); this.containerAutoplaySettingsDialog_0().load_1(a); null != this.buttonOpenContextMenu_0() && this.buttonOpenContextMenu_0().load_1(a); null != this.buttonCloseContextMenu_0() && this.buttonCloseContextMenu_0().load_1(a); null != this.containerGameMenuExtended_0() && this.containerGameMenuExtended_0().load_1(a); }, defaultIconButton_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .colorTransformation_1(GT656.prototype.set_0().percentage_1(90)) .child_1(GT1392.prototype.set_0().imageFile_1(a).transparency_1(GT1022.prototype.set_0().alpha_1(220))) ) .child_1(GT1392.prototype.set_0().imageFile_1(a)) .child_1(GT1186.prototype.set_0().position_2(0, 1).resizeToContent_1(!0).colorTransformation_1(GT656.prototype.set_0().percentage_offset_RGB_6(90, 0, 110, 0, 90, 0)).child_1(GT1392.prototype.set_0().imageFile_1(a))) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).colorTransformation_1(GT656.prototype.set_0().percentage_offset_RGB_6(110, 0, 110, 0, 60, 0)).child_1(GT1392.prototype.set_0().imageFile_1(a))); }, containerGameMenu_0: function () { return GT898.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOG) .child_1(this.buttonMenuFullscreen_0()) .child_1(this.buttonMenuAccount_0()) .child_1(this.buttonMenuHelp_0()) .child_1(this.buttonMenuLeaveTable_0()) .child_1(this.buttonMenuMusicOff_0()) .child_1(this.buttonMenuMusicOn_0()) .child_1(this.buttonMenuNormalAspect_0()) .child_1(this.buttonMenuPayIn_0()) .child_1(this.buttonMenuSoundOff_0()) .child_1(this.buttonMenuSoundOn_0()) .child_1(this.buttonMenuWideAspect_0()) .child_1(this.buttonMenuWindowed_0()) .child_1(this.hasReplayFeature_0() ? this.buttonOpenReplay_0() : null) .child_1(this.textTime_0()) .child_1(this.textSessionTime_0()) .child_1(this.textBalance_0()) .child_1(this.textRoundId_0()) .child_1(this.textClientVersion_0()); }, containerGameMenuExtended_0: function () { return null; }, containerClock_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.CLOCK_CONTAINER) .position_2(635, 11) .size_2(202, 98) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.CLOCK_BACKGROUND).image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/mobile/clock_background.png"))) .child_1( GT1220.prototype .set_0() .id_1(GT307.prototype.CLOCK_TIME_FIELD) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(325)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0) ); }, buttonMenuFullscreen_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/makefullscreen.png").tooltip_1("${tip_fullscreen}").position_2(1005, 3).id_1(GT307.prototype.ACTION_FULLSCREEN); }, buttonMenuWindowed_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/makewindow.png").tooltip_1("${tip_windowed}").position_2(1005, 3).id_1(GT307.prototype.ACTION_WINDOWED); }, buttonMenuSoundOn_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/sound_on.png").tooltip_1("${tip_soundon}").position_2(940, 3).id_1(GT307.prototype.ACTION_SOUNDON); }, buttonMenuSoundOff_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/sound_off.png").tooltip_1("${tip_soundoff}").position_2(940, 3).id_1(GT307.prototype.ACTION_SOUNDOFF); }, buttonMenuMusicOn_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/music_on.png").tooltip_1("${tip_musicon}").position_2(910, 3).id_1(GT307.prototype.ACTION_MUSICON); }, buttonMenuMusicOff_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/music_off.png").tooltip_1("${tip_musicoff}").position_2(910, 3).id_1(GT307.prototype.ACTION_MUSICOFF); }, buttonMenuWideAspect_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/width.png").tooltip_1("${tip_wideaspect}").position_2(970, 3).id_1(GT307.prototype.ACTION_ASPECTWIDE); }, buttonMenuNormalAspect_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/width_no.png").tooltip_1("${tip_normalaspect}").position_2(970, 3).id_1(GT307.prototype.ACTION_ASPECTNORMAL); }, buttonMenuAccount_0: function () { return this.defaultMenuButton_3("${alttext_lobby_account}", 121, 30).position_2(0, 0).id_1(GT307.prototype.ACTION_ACCOUNT); }, buttonMenuHelp_0: function () { return this.defaultMenuButton_3("${alttext_lobby_help}", 121, 30).position_2(1040, 0).id_1(GT307.prototype.ACTION_HELP); }, buttonMenuLeaveTable_0: function () { return this.defaultMenuButton_3("${alttext_leavecasinotable}", 120, 30).position_2(1160, 0).id_1(GT307.prototype.ACTION_LEAVETABLE); }, buttonMenuPayIn_0: function () { return this.defaultMenuButton_3("${alttext_openpayindialog}", 120, 30).position_2(120, 0).id_1(GT307.prototype.ACTION_PAYIN); }, textTime_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_TIME) .text_1("") .position_2(830, 3) .size_2(70, 30) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0); }, textSessionTime_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME) .text_1("") .position_2(870, 3) .size_2(100, 30) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0); }, textBalance_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_BALANCE) .text_1("") .position_2(250, 1) .size_2(220, 25) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0); }, textRoundId_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_ROUNDID) .text_1("") .position_2(540, 1) .size_2(200, 25) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0); }, textAdminInfo_0: function () { return GT1239.prototype .set_0() .text_1("") .position_2(530, 835) .size_2(400, 25) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(0, 0, 0, 0); }, textClientVersion_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_CLIENTVERSION) .text_1("") .position_2(1040, 30) .size_2(220, 20) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .changeHAlignOnRTLLanguages_1(!1) .insets_4(5, 0, 0, 0); }, containerSessionSummary_0: function () { return GT1186.prototype .set_0() .position_2(1334, 30) .resizeToContent_1(!0) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SUMSTAKES) .text_1("") .position_2(0, 0) .size_2(200, 20) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SUMWINNINGS) .text_1("") .position_2(0, 15) .size_2(200, 20) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_WINBALANCE) .text_1("") .position_2(0, 30) .size_2(200, 20) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(70)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0) ); }, buttonOpenReplay_0: function () { return this.defaultIconButton_1("/com/greentube/casinolobbymanager/client/res/casino/player.png").position_2(30, 30).id_1(GT307.prototype.ACTION_OPENREPLAY); }, containerReplayDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .position_2(625, 10) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/player_back.png")) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_rew.png").id_1(GT307.prototype.ACTION_REWIND).position_2(24, 17)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_forward.png").id_1(GT307.prototype.ACTION_FORWARD).position_2(234, 17)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_play.png").id_1(GT307.prototype.ACTION_PLAY).position_2(72, 17)) .child_1(GT1355.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_player_exit.png").id_1(GT307.prototype.ACTION_CLOSEREPLAY).position_2(234, 65)) .child_1( GT1335.prototype .set_0() .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_replayslider.png")) .id_1(GT307.prototype.ACTION_SLIDERREPLAY) .position_2(23, 86) .width_1(202) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .text_1("") .position_2(107, 18) .size_2(115, 37) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 2, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .text_1("") .position_2(107, 18) .size_2(115, 37) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 2) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.BOTTOM) ); }, isReplayDialogModal_0: function () { return !0; }, isSpectatorModeBlockingInput_0: function () { return !0; }, containerPayInDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/payin.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( GT1186.prototype .set_0() .child_1( GT1239.prototype .set_0() .position_2(0, 0) .size_2(646, 188) .text_1("${payindescriptiontext}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(50, 50, 15, 10) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_PAYINDESC) ) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_PAYINSLIDERBACK).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slider.png").position_2(160, 182)) .child_1( GT1335.prototype .set_0() .position_2(166, 190) .id_1(GT307.prototype.ACTION_PAYINSLIDER) .width_1(318) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_PAYINVALUE1) .text_1("") .position_2(0, 240) .size_2(646, 100) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(this.popUpDialogChangeableTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(this.menuButtonWithBorder_5("${alttext_closepayindialog}", 140, 33, !0, !1).position_2(503, 3).id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1)) .child_1(this.menuButtonWithBorder_5("${alttext_leavecasinotable}", 140, 33, !0, !1).position_2(503, 3).id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2)) .child_1(this.menuButtonWithBorder_5("${alttext_lobby_account}", 140, 33, !1, !0).position_2(3, 3).id_1(GT307.prototype.ACTION_PAYINACCOUNT)) .child_1( this.buttonPayinShadowed_1("${alttext_buytickets}") .position_2(225, 300) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([10, 10, 199, 10, 199, 62, 10, 62])) .id_1(GT307.prototype.ACTION_BUYTICKETS) ) .child_1( this.buttonPayinShadowed_1("${alttext_lobby_account}") .position_2(225, 300) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([10, 10, 199, 10, 199, 62, 10, 62])) .id_1(GT307.prototype.ACTION_PAYINACCOUNT2) ) ) ) ); }, containerSessionSettingsDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_SESSIONSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .size_2(568, 864) .position_2(0, 750) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/sessionsettingsback.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(568, 50).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME_MSG) .position_2(34, 35) .size_2(500, 100) .text_1("${sesstimeout}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(40, 40, 15, 10) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(GT1392.prototype.set_0().position_2(80, 130).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_SESSIONTIME_SLIDER) .position_2(125, 172) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME_VALUE) .position_2(34, 220) .size_2(500, 100) .text_1("") .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogChangeableTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) .position_2(34, 275) .size_2(500, 100) .text_1("${rcinterval}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(40, 40, 15, 10) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(GT1392.prototype.set_0().position_2(80, 370).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER) .position_2(125, 412) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .position_2(34, 460) .size_2(500, 100) .text_1("") .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogChangeableTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ID_RGBLOCK_TOGGLE) .position_2(84, 515) .size_2(42, 38) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/reality_check_red.png").tiling_2(1, 2)).showTile_2(0, 0)) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/reality_check_red.png").tiling_2(1, 2)).showTile_2(0, 1)) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT)) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RGBLOCK_MSG) .position_2(34, 515) .size_2(500, 120) .text_1("${blockperiod}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(100, 20, 0, 0) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1186.prototype .set_0() .id_1(GT307.prototype.ID_CONTAINER_RGBLOCK) .position_2(0, 505) .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().position_2(80, 130).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slider_red.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_RGBLOCK_SLIDER) .position_2(125, 172) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider_red.png")) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RGBLOCK_VALUE) .position_2(34, 220) .size_2(500, 100) .text_1("") .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogChangeableTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ) .child_1( this.buttonContainerDefault_2("${dialog_ok}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png") .id_1(GT307.prototype.ACTION_SENDSETTINGS) .position_2(150, 760) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([10, 10, 270, 10, 270, 62, 10, 62])) ) ) ); }, containerRCSettingsDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_RCSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().id_1(GT307.prototype.ID_PAYINDIALOGBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1025.prototype .set_0() .id_1(GT307.prototype.ID_DIALOG_BACKGROUND) .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/sessionsettingsback.png") .insets_4(20, 20, 100, 20) .position_2(0, 0) .size_2(568, 400) ) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(568, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) .position_2(34, 35) .size_2(500, 100) .text_1("${realitycheckintervaltext}") .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(50, 50, 15, 10) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_RCINTERVAL_SLIDERBACK).position_2(80, 130).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER) .position_2(125, 172) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .position_2(34, 230) .size_2(500, 100) .text_1("") .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(this.popUpDialogChangeableTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( this.buttonContainerDefault_2("${dialog_ok}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png") .id_1(GT307.prototype.ACTION_SETRCSETTINGS) .position_2(150, 300) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([10, 10, 270, 10, 270, 62, 10, 62])) ) ) ); }, textAutoplaySettings_0: function () { return GT872.prototype .set_0() .insets_4(20, 20, 5, 5) .hAlign_1(GT1488.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(165)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(135)) .outline_2(1, GT1391.prototype.set_0().black_0()); }, containerAutoplaySettingsDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_APSETTINGSDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .position_2(0, 0) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1025.prototype .set_0() .id_1(GT307.prototype.ID_DIALOG_BACKGROUND) .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/sessionsettingsback.png") .insets_4(20, 20, 100, 20) .position_2(0, 0) .size_2(568, 870) ) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(428, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(2)).dragable_0()) .child_1(this.menuButtonWithBorder_5("${alttext_closepayindialog}", 140, 33, !0, !1).position_2(428, 0).id_1(GT307.prototype.ACTION_CLOSEAPSETTINGS)) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APROUNDS_MSG) .position_2(14, 35) .size_2(540, 90) .text_1("${autoplayrounds}") .vAlign_1(GT1489.prototype.BOTTOM) .fontColor_1(this.popUpDialogTextColor_0()) ) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_APROUNDS_SLIDERBACK).position_2(80, 130).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_APROUNDS_SLIDER) .position_2(125, 172) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APROUNDS_VALUE) .position_2(14, 215) .size_2(540, 50) .text_1("") .vAlign_1(GT1489.prototype.TOP) .fontColor_1(this.popUpDialogChangeableTextColor_0()) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APLOSSLIMIT_MSG) .position_2(14, 265) .size_2(540, 100) .text_1("${autoplaylosslimit}") .vAlign_1(GT1489.prototype.BOTTOM) .fontColor_1(this.popUpDialogTextColor_0()) ) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_APLOSSLIMIT_SLIDERBACK).position_2(80, 370).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER) .position_2(125, 412) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APLOSSLIMIT_VALUE) .position_2(14, 455) .size_2(540, 50) .text_1("") .vAlign_1(GT1489.prototype.TOP) .fontColor_1(this.popUpDialogChangeableTextColor_0()) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APSINGLEWIN_MSG) .position_2(14, 505) .size_2(540, 100) .text_1("${autoplaysinglewin}") .vAlign_1(GT1489.prototype.BOTTOM) .fontColor_1(this.popUpDialogTextColor_0()) ) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_APSINGLEWIN_SLIDERBACK).position_2(80, 610).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/settingssliderback.png")) .child_1( GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_APSINGLEWIN_SLIDER) .position_2(125, 652) .width_1(320) .min_1(0) .max_1(10) .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_slider.png")) ) .child_1( this.textAutoplaySettings_0() .id_1(GT307.prototype.TEXT_APSINGLEWIN_VALUE) .position_2(14, 695) .size_2(540, 50) .text_1("") .vAlign_1(GT1489.prototype.TOP) .fontColor_1(this.popUpDialogChangeableTextColor_0()) ) .child_1( this.buttonContainerDefault_2("${dialog_ok}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png") .id_1(GT307.prototype.ACTION_SETAPSETTINGS) .position_2(150, 780) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([10, 10, 270, 10, 270, 62, 10, 62])) ) ) ); }, buttonContainerDefault_2: function (a, b) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([5, 10, 270, 10, 270, 70, 5, 70])) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 0)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(80)) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 1)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 2)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(3, 8, 2, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 3)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 150)) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ); }, buttonPayinShadowed_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(5, 5, 5, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(80)) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(5, 5, 5, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(6, 4, 6, 4) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(5, 5, 5, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 150)) .outline_2(1, GT1391.prototype.set_0().black_0()) ) ); }, containerWatcherInfo_0: function () { return GT1186.prototype .set_0() .position_2(184, 425) .size_2(900, 50) .child_1( GT1187.prototype .set_0() .id_1(GT307.prototype.BG_WATCHERINFO) .borderThickness_1(1) .colorArea_1(GT1391.prototype.set_0().black_0()) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(70)) .transparencyBorder_1(GT1022.prototype.set_0().percent_1(90)) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_WATCHERINFO) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .text_1("") ); }, containerRealityCheckDialogIntervalTime_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit_large.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK1) ) .child_1( GT872.prototype .set_0() .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 120, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK2) ) .child_1(this.buttonContainerDefault_2("${viewaccounthistory}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_VIEW_HISTORY).position_2(33, 285)) .child_1( this.buttonContainerDefault_2("${alttext_realitycheckcontinue}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(33, 355) ) .child_1(this.buttonContainerDefault_2("${alttext_realitycheckstop}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_STOPGAME).position_2(333, 355)) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_TOGGLEREALITYCHECK) .position_2(null != this.skin && this.skin.isRTLLanguage_0() ? 580 : 35, 305) .size_2(42, 38) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_checkbox.png").tiling_2(1, 2)).showTile_2(0, 0)) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_checkbox.png").tiling_2(1, 2)).showTile_2(0, 1)) ) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_REALITYCHECK3) .position_2(0, 0) .size_2(646, 400) .insets_4(73, 73, 308, 0) .text_1("${realitycheckmessage3}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) ) ) ); }, containerRealityCheckDialogLeavingGame_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK1) ) .child_1( GT872.prototype .set_0() .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 100, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK2) ) .child_1(this.buttonContainerDefault_2("${alttext_realitycheckstop}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_STOPGAME).position_2(183, 300)) ) ); }, containerRealityCheckDialogIntervalRounds_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK4) ) .child_1( this.buttonContainerDefault_2("${alttext_realitycheckcontinue}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(183, 300) ) ) ); }, containerErrorDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_ERRORMSG) .position_2(0, 35) .size_2(646, 245) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(185)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(175)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( this.buttonContainerDefault_2("${alttext_limitcontinuebutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(183, 300) ) .child_1(this.buttonContainerDefault_2("${alttext_limitstopbutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_STOPGAME).position_2(183, 300)) ) ); }, containerMaximumWinReachedDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png").size_2(1280, 720)) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(1280, 65).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .position_2(0, 65) .size_2(1280, 435) .insets_4(150, 150, 25, 25) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .text_1("${maximumwinreached}") .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(400)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(350)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(300)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT307.prototype.TEXT_ERRORMSG) ) .child_1(this.buttonContainerDefault_2("${alttext_limitstopbutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_STOPGAME).position_2(500, 575)) ) ); }, containerResponsibleGamingInfoDialog_0: function () { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_ERRORMSG) .text_1("${responsiblegaminginfo}") .position_2(0, 35) .size_2(646, 255) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(185)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(175)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( this.buttonContainerDefault_2("${alttext_limitcontinuebutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(33, 305) ) .child_1(this.buttonContainerDefault_2("${moreinfo}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png").id_1(GT307.prototype.ACTION_RESPONSIBLE_LINK).position_2(333, 305)) ) ); }, containerClientVersionInfo_0: function () { return GT583.prototype .set_0() .id_1(GT307.prototype.ID_CLIENTVERSIONINFO) .size_2(700, 130) .child_1(GT1188.prototype.set_0().size_2(466, 66).position_2(117, 32).color_1(GT1391.prototype.set_0().black_0())) .child_1(GT1188.prototype.set_0().size_2(460, 60).position_2(120, 35).color_1(GT1391.prototype.set_0().white_0())) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_CLIENTVERSIONINFO) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(310)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(3, GT1391.prototype.set_0().black_0()) ); }, containerPortraitModeOverlay_0: function () { return null; }, menuButtonWithBorder_5: function (a, b, d, e, f) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().gray_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(180, 180, 180)) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1( GT1188.prototype .set_0() .position_2(0, 0) .size_2(e ? 1 : 0, e ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(f ? 1 : 0, f ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1( GT1188.prototype .set_0() .position_2(0, 0) .size_2(e ? 1 : 0, e ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(f ? 1 : 0, f ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().yellow_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .position_2(0, 1) .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1( GT1188.prototype .set_0() .position_2(0, 0) .size_2(e ? 1 : 0, e ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(f ? 1 : 0, f ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().gray_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 150)) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1( GT1188.prototype .set_0() .position_2(0, 0) .size_2(e ? 1 : 0, e ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(f ? 1 : 0, f ? d : 0) .color_1(GT1391.prototype.set_0().gray_0()) ) ); }, defaultMenuButton_3: function (a, b, d) { return this.menuButtonWithBorder_5(a, b, d, !0, !0); }, hasReplayFeature_0: function () { return !1; }, buttonOpenContextMenu_0: function () { return null; }, buttonCloseContextMenu_0: function () { return this.buttonOpenContextMenu_0(); }, layoutSafeAreaHeightTop_0: function () { return 0; }, popUpDialogTextColor_0: function () { return GT1391.prototype.set_0().white_0(); }, popUpDialogChangeableTextColor_0: function () { return GT1391.prototype.set_0().yellow_0(); }, containerDisableGamblingDialog_0: function () { return GT1186.prototype.set_0(); }, }, "GT160", [] ), GT286 = GT1491.extend( { initialConstructor_0: function () { GT1491.prototype.initialConstructor_0.call(this); }, loadAll_1: function (a) { GT1650.prototype.assertExp_2(null != this.tableView_0(), "Please overwrite tableView() in your LobbySkinDecorator"); this.tableView_0().load_1(a); GT1650.prototype.assertExp_2(null != this.subRoomView_0(), "Please overwrite subRoomView() in your LobbySkinDecorator"); this.subRoomView_0().load_1(a); null != this.containerLobby_0() && this.containerLobby_0().load_1(a); null != this.containerLobbyIndented_0() && this.containerLobbyIndented_0().load_1(a); this.dropDownFilter_0().load_1(a); this.containerLobbyBanner_0().load_1(a); this.imageLobbyBanner_0().load_1(a); null != this.scrollBarTables_0() && this.scrollBarTables_0().load_1(a); null != this.scrollBarRooms_0() && this.scrollBarRooms_0().load_1(a); null != this.buttonMenuSoundOn_0() && this.buttonMenuSoundOn_0().load_1(a); null != this.buttonMenuSoundOff_0() && this.buttonMenuSoundOff_0().load_1(a); null != this.buttonMenuAccount_0() && this.buttonMenuAccount_0().load_1(a); null != this.buttonMenuQuit_0() && this.buttonMenuQuit_0().load_1(a); null != this.buttonMenuHelp_0() && this.buttonMenuHelp_0().load_1(a); null != this.buttonMenuFullscreen_0() && this.buttonMenuFullscreen_0().load_1(a); null != this.buttonMenuWindowed_0() && this.buttonMenuWindowed_0().load_1(a); null != this.buttonPlayNow_0() && this.buttonPlayNow_0().load_1(a); this.showAspectButton_0() && (null != this.buttonMenuWideAspect_0() && this.buttonMenuWideAspect_0().load_1(a), null != this.buttonMenuNormalAspect_0() && this.buttonMenuNormalAspect_0().load_1(a)); null != this.imageBorder_0() && this.imageBorder_0().load_1(a); null != this.textPlayerAccount_0() && this.textPlayerAccount_0().load_1(a); var b = this.imageJackpotLogo_0(); null != b && b.load_1(a); this.fontTooltip_0().load_1(a.getResourceManager_0()); this.containerErrorScreen_0().load_1(a); null != this.jackpotCounterReel_0() && this.jackpotCounterReel_0().load_1(a); }, buttonIcon_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .colorTransformation_1(GT656.prototype.set_0().percentage_1(80)) .child_1(GT1392.prototype.set_0().imageFile_1(a).transparency_1(GT1022.prototype.set_0().alpha_1(180))) ) .child_1(GT1392.prototype.set_0().imageFile_1(a)) .child_1(GT1186.prototype.set_0().position_2(0, 1).resizeToContent_1(!0).colorTransformation_1(GT656.prototype.set_0().percentage_offset_RGB_6(90, 0, 110, 0, 90, 0)).child_1(GT1392.prototype.set_0().imageFile_1(a))) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).colorTransformation_1(GT656.prototype.set_0().percentage_offset_RGB_6(110, 0, 110, 0, 60, 0)).child_1(GT1392.prototype.set_0().imageFile_1(a))); }, imageLobbyBanner_0: function () { return GT1392.prototype.set_0().imageFile_1("room/room.jpg").position_2(0, 0); }, containerLobbyBanner_0: function () { return GT1186.prototype.set_0().id_1(GT554.prototype.CONTAINER_BANNER).child_1(this.imageLobbyBanner_0()); }, imageBorder_0: function () { return GT1392.prototype .set_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/border.png") .position_2(0, 60) .size_2(this.layoutDesignedWidth_0() + this.layoutOverscanLeft_0() + this.layoutOverscanRight_0(), 6); }, containerLobby_0: function () { return GT1186.prototype .set_0() .id_1(GT554.prototype.ID_CONTAINER_LOBBY) .position_2(0, 0) .size_2(this.layoutDesignedWidth_0() + this.layoutOverscanLeft_0() + this.layoutOverscanRight_0(), this.layoutDesignedHeight_0() + this.layoutOverscanTop_0() + this.layoutOverscanBottom_0()) .child_1( GT871.prototype .set_0() .id_1(GT554.prototype.ID_CONTAINER_BANNER_PARENT) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.TOP) .child_1(this.containerLobbyBanner_0().resizeToContent_1(!0)) ) .child_1(this.containerLobbyIndented_0()); }, containerLobbyIndented_0: function () { return GT1186.prototype .set_0() .id_1(GT554.prototype.ID_CONTAINER_LOBBYINDENTED) .position_2(this.layoutOverscanLeft_0(), 0) .size_2(this.layoutDesignedWidth_0(), this.layoutDesignedHeight_0() + this.layoutOverscanTop_0() + this.layoutOverscanBottom_0()) .child_1(this.buttonMenuAccount_0()) .child_1(this.buttonMenuQuit_0()) .child_1(this.buttonMenuHelp_0()) .child_1(this.buttonMenuSoundOn_0()) .child_1(this.buttonMenuSoundOff_0()) .child_1(this.buttonPlayNow_0()) .child_1(this.tableView_0()); }, textPlayerAccount_0: function () { return GT1239.prototype .set_0() .text_1("") .position_2(20 + this.layoutHorizontalAdjustment_0(), 38) .size_2(220, 25) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 0, 0, 0); }, scrollBarTables_0: function () { return GT1193.prototype .set_0() .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scrollbar.png")) .imageUp_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scrollarrowup.png")) .imageDown_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scrollarrowdown.png")) .imageBackground_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scroll_bg.png")) .scrollStep_1(15) .position_2(1248 + this.layoutHorizontalAdjustment_0() + this.layoutOverscanLeft_0(), 71) .height_1(this.layoutDesignedHeight_0() - 84); }, scrollBarRooms_0: function () { return GT1193.prototype .set_0() .imageHandle_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scrollbar_h.png")) .imageBackground_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/scroll_bg_h.png")) .scrollStep_1(15) .position_2(45 + this.layoutHorizontalAdjustment_0(), this.layoutDesignedHeight_0() - 29) .width_1(1200) .height_1(18) .horizontal_1(!0) .noArrowButtons_1(!0); }, dropDownFilter_0: function () { return GT1053.prototype .set_0() .imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/dropdownbox.png") .position_2(760 + this.layoutHorizontalAdjustment_0(), 0) .backgroundColor_1(GT1391.prototype.set_0().black_0()) .foregroundColor_1(GT1391.prototype.set_0().white_0()) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(130)); }, buttonPlayNow_0: function () { return this.default4StateButton_4(GT554.prototype.ACTION_PLAYNOW, "/com/greentube/casinolobbymanager/client/res/casino/play_now.png", "${alttext_playnow}", "${tip_playnow}").position_2(850, 10); }, default4StateButton_4: function (a, b, d, e) { return GT873.prototype .set_0() .id_1(a) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 0)) .child_1( GT1239.prototype .set_0() .text_1(d) .font_1(GT1441.prototype.set_0().bold_0().name_1(GT1393.prototype.VERDANA).size_1(120)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(46, 0, 0, 0) .fontColor_1(GT1391.prototype.set_0().gray_0()) .spacing_1(18) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 1)) .child_1( GT1239.prototype .set_0() .text_1(d) .font_1(GT1441.prototype.set_0().bold_0().name_1(GT1393.prototype.VERDANA).size_1(120)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(46, 0, 0, 0) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(18) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 2)) .child_1( GT1239.prototype .set_0() .text_1(d) .font_1(GT1441.prototype.set_0().bold_0().name_1(GT1393.prototype.VERDANA).size_1(120)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(43, 0, 2, 0) .fontColor_1(GT1391.prototype.set_0().rgb_1(13421772)) .spacing_1(18) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4)).showTile_2(0, 3)) .child_1( GT1239.prototype .set_0() .text_1(d) .font_1(GT1441.prototype.set_0().bold_0().name_1(GT1393.prototype.VERDANA).size_1(120)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(46, 0, 0, 0) .fontColor_1(GT1391.prototype.set_0().rgb_1(12320699)) .spacing_1(18) ) ) .tooltip_1(e); }, buttonMenuWindowed_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/makewindow.png") .tooltip_1("${tip_windowed}") .position_2(1240 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_BTNFULLSCREEN); }, buttonMenuFullscreen_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/makefullscreen.png") .tooltip_1("${tip_fullscreen}") .position_2(1240 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_BTNFULLSCREEN); }, buttonMenuWideAspect_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/width.png") .tooltip_1("${tip_wideaspect}") .position_2(1210 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_BTNASPECT); }, buttonMenuNormalAspect_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/width_no.png") .tooltip_1("${tip_normalaspect}") .position_2(1210 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_BTNASPECT); }, buttonMenuSoundOn_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/sound_on.png") .tooltip_1("${tip_soundon}") .position_2(1180 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_SOUND_ON); }, buttonMenuSoundOff_0: function () { return this.buttonIcon_1("/com/greentube/casinolobbymanager/client/res/casino/sound_off.png") .tooltip_1("${tip_soundoff}") .position_2(1180 + this.layoutHorizontalAdjustment_0(), 35) .id_1(GT554.prototype.ACTION_SOUND_OFF); }, buttonMenuAccount_0: function () { return this.defaultMenuButton_3("${alttext_lobby_account}", 121, 30).position_2(this.layoutHorizontalAdjustment_0(), 0).size_2(121, 30).id_1(GT554.prototype.ACTION_BTNACCOUNT); }, buttonMenuHelp_0: function () { return this.defaultMenuButton_3("${alttext_lobby_help}", 121, 30) .position_2(1040 + this.layoutHorizontalAdjustment_0(), 0) .id_1(GT554.prototype.ACTION_BTNHELP); }, buttonMenuQuit_0: function () { return this.defaultMenuButton_3("${alttext_lobby_quit}", 120, 30) .position_2(1160 + this.layoutHorizontalAdjustment_0(), 0) .id_1(GT554.prototype.ACTION_QUITPROGRAM); }, defaultMenuButton_3: function (a, b, d) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().gray_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(180, 180, 180)) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1(GT1188.prototype.set_0().position_2(0, 0).size_2(1, d).color_1(GT1391.prototype.set_0().gray_0())) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(1, d) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1(GT1188.prototype.set_0().position_2(0, 0).size_2(1, d).color_1(GT1391.prototype.set_0().gray_0())) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(1, d) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().yellow_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .position_2(0, 1) .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1(GT1188.prototype.set_0().position_2(0, 0).size_2(1, d).color_1(GT1391.prototype.set_0().gray_0())) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(1, d) .color_1(GT1391.prototype.set_0().gray_0()) ) ) .child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().gray_0()).transparency_1(GT1022.prototype.set_0().alpha_1(60))) .child_1( GT1239.prototype .set_0() .size_2(b, d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .text_1(a) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 150)) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 0) ) .child_1(GT1188.prototype.set_0().position_2(0, 0).size_2(1, d).color_1(GT1391.prototype.set_0().gray_0())) .child_1( GT1188.prototype .set_0() .position_2(b - 1, 0) .size_2(1, d) .color_1(GT1391.prototype.set_0().gray_0()) ) ); }, tableView_0: function () { return null; }, subRoomView_0: function () { return GT742.prototype .set_0() .id_1(GT554.prototype.ID_CONTAINER_SUBROOMVIEW) .position_2(0 + this.layoutHorizontalAdjustment_0(), this.layoutDesignedHeight_0() - 124) .size_2(this.layoutDesignedWidth_0() + this.layoutOverscanLeft_0() + this.layoutOverscanRight_0(), 120) .buttonSelectRoomID_1(GT554.prototype.ACTION_SELECTROOM) .buttonOffset_2(50 + this.layoutOverscanLeft_0(), 10) .buttonIndent_1(100) .imageRoom_1([ GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_1.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_2.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_3.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_4.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_5.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_6.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_room_7.png").tiling_2(1, 4), ]) .infoFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(110)) .infoColor_1(GT1391.prototype.set_0().white_0()); }, tableViewBackColor_0: function () { return GT1391.prototype.set_0().blue_0(); }, tableViewBackColor2_0: function () { return null; }, soundLobby_0: function () { return null; }, soundLobbyLoopEnd_0: function () { return 0; }, soundLobbyLoopStart_0: function () { return 0; }, imageJackpotLogo_0: function () { return null; }, textJackpotMaxBetInfo_0: function () { return GT1239.prototype .set_0() .position_2(369 + this.layoutHorizontalAdjustment_0(), 2) .size_2(295, 53) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(130)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .text_1("") .insets_4(0, 0, 0, 0); }, textJackpotMaxJackpotInfo_0: function () { return GT1239.prototype .set_0() .position_2(369 + this.layoutHorizontalAdjustment_0(), 2) .size_2(295, 53) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.BOTTOM) .text_1("") .insets_4(0, 0, 0, 0); }, jackpotCounterReel_0: function () { return null; }, maintenanceInfo_0: function () { return GT1186.prototype .set_0() .position_2(this.layoutHorizontalAdjustment_0(), 470) .size_2(this.layoutDesignedWidth_0(), 70) .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().alpha_1(150))) .child_1( GT1239.prototype .set_0() .position_2(0, 0) .size_2(this.layoutDesignedWidth_0(), 70) .text_1("${maintenanceinfotext}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ); }, showAspectButton_0: function () { return !0; }, layoutHorizontalAdjustment_0: function () { return 0; }, layoutDesignedWidth_0: function () { return 1280 + 2 * this.layoutHorizontalAdjustment_0(); }, layoutDesignedHeight_0: function () { return 1024; }, layoutOverscanLeft_0: function () { return 0 - this.layoutHorizontalAdjustment_0(); }, layoutOverscanRight_0: function () { return 0 - this.layoutHorizontalAdjustment_0(); }, layoutOverscanTop_0: function () { return 0; }, layoutOverscanBottom_0: function () { return 0; }, layoutSafeAreaHeightTop_0: function () { return 0; }, layoutWideAspect_0: function () { return 1.18519; }, lobbyJackpotBaseWin_0: function () { return 1e3; }, fontTooltip_0: function () { return GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(80); }, containerErrorScreen_0: function () { var a = 646 - (Math.div(646, 2) + 40); return GT1186.prototype .set_0() .id_1(GT554.prototype.ID_ERRORSCREEN) .child_1(GT1188.prototype.set_0().id_1(GT554.prototype.ID_ERRORSCREENBACKGROUND).color_1(GT1391.prototype.set_0().black_0()).transparency_1(GT1022.prototype.set_0().percent_1(35))) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .id_1(GT554.prototype.ID_ERRORSCREENBOX) .position_2(0, 0) .size_2(646, 400) .child_1(GT1392.prototype.set_0().id_1(GT554.prototype.ID_DIALOG_BACKGROUND).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/slot_casino_limit.png")) .child_1(GT873.prototype.set_0().position_2(0, 0).size_2(646, 35).id_1(GT307.prototype.ACTION_DRAGWINDOW).data_1(new Integer(1)).dragable_0()) .child_1( GT1239.prototype .set_0() .position_2(0, 35) .size_2(646, 280) .insets_4(35, 35, 30, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("Error") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(this.popUpDialogTextColor_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .id_1(GT554.prototype.TEXT_ERRORMSG) ) .child_1( this.buttonContainerDefault_4("${alttext_limitstopbutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png", a, 80) .id_1(GT554.prototype.ACTION_CLOSEAFTERKICK) .position_2(183, 300) .size_2(a, 80) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([5, 12, a - 14, 12, a - 14, 70, 5, 70])) ) .child_1( this.buttonContainerDefault_4("${alttext_limitstopbutton}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png", a, 80) .id_1(GT554.prototype.ACTION_CLOSEAFTERKICK2) .position_2(333, 300) .size_2(a, 80) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([5, 12, a - 14, 12, a - 14, 70, 5, 70])) ) .child_1( this.buttonContainerDefault_4("${alttext_reconnect}", "/com/greentube/casinolobbymanager/client/res/casino/b_dialog.png", a, 80) .id_1(GT554.prototype.ACTION_RECONNECT) .position_2(33, 300) .size_2(a, 80) .clickableAreaShape_1(GT715.prototype.set_0().setCoordinates_1([5, 12, a - 14, 12, a - 14, 70, 5, 70])) ) ) ); }, buttonContainerDefault_4: function (a, b, d, e) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .size_2(d, e) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4).overrideSize_2(d, e)).showTile_2(0, 0)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .transparency_1(GT1022.prototype.set_0().percent_1(80)) .size_2(d, e) ) ) .child_1( GT1186.prototype .set_0() .size_2(d, e) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4).overrideSize_2(d, e)).showTile_2(0, 1)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .size_2(d, e) ) ) .child_1( GT1186.prototype .set_0() .size_2(d, e) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4).overrideSize_2(d, e)).showTile_2(0, 2)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(3, 8, 2, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .size_2(d, e) ) ) .child_1( GT1186.prototype .set_0() .size_2(d, e) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(b).tiling_2(1, 4).overrideSize_2(d, e)).showTile_2(0, 3)) .child_1( GT1239.prototype .set_0() .text_1(a) .insets_4(1, 8, 0, 5) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 150)) .outline_2(1, GT1391.prototype.set_0().black_0()) .size_2(d, e) ) ); }, popUpDialogTextColor_0: function () { return GT1391.prototype.set_0().white_0(); }, progressBar_0: function () { return GT1079.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(350)) .fontColor_1(GT1391.prototype.set_0().white_0()) .polygonColor1_1(GT1391.prototype.set_0().white_0()) .polygonColor2_1(GT1391.prototype.set_0().white_0()) .hidePolygons_1(!1) .position_2(0, 0); }, disclaimer_0: function () { return GT1239.prototype .set_0() .position_2(this.layoutOverscanLeft_0() + Math.div(this.layoutDesignedWidth_0() - 1e3, 2), 960) .size_2(1e3, 60) .fontColor_1(GT1391.prototype.set_0().white_0()) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(80)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultCustomLoadingScreen_0: function () { return GT1186.prototype.set_0().child_1(this.casinoProgressBar_0()); }, containerCustomLoadingScreen_0: function () { return this.defaultCustomLoadingScreen_0(); }, containerInitScreen_0: function () { return GT1186.prototype.set_0().child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().compRGB_3(0, 0, 30))); }, customLoadingScreenPostDelay_0: function () { return 0; }, casinoProgressBar_0: function () { return GT436.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .mainColor_1(GT1391.prototype.set_0().compRGB_3(151, 208, 69)) .id_1(GT554.prototype.ID_CUSTOMLOADINGSCREEN_PROGRESSBAR) .position_2(0, 200) .showPercentage_1(!1); }, containerDeveloperLogo_0: function () { return GT884.prototype .set_0() .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/green.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/tube.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/line.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/novomatic_interactive.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/buble_green.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/buble_white.png") .addImageToLoad_1("/com/greentube/casinolobbymanager/client/res/loader/images/gt_glow.png") .sound_1(GT1396.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/loader/audio/preloader_sound.mp3")) .postDelay_1(0) .backgroundColor_1(GT1391.prototype.set_0().compRGB_3(0, 0, 30)); }, defaultIntroVideo_0: function () { return GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1080.prototype.set_0().id_1(GT554.prototype.ID_INTRO_VIDEO).autoResize_1(!0).video_1("introvideo.flv").startOnCreation_1(!1).repetitions_1(1)) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.RIGHT) .verticalAlignment_1(GT1489.prototype.BOTTOM) .position_2(this.layoutOverscanLeft_0(), this.layoutOverscanTop_0()) .size_2(this.layoutDesignedWidth_0(), this.layoutDesignedHeight_0()) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.RIGHT) .verticalAlignment_1(GT1489.prototype.BOTTOM) .position_2(this.layoutOverscanLeft_0(), this.layoutOverscanTop_0()) .size_2(this.layoutDesignedWidth_0(), this.layoutDesignedHeight_0()) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.RIGHT) .verticalAlignment_1(GT1489.prototype.BOTTOM) .horizontal_0() .child_1(this.buttonIntroVideoSkip_0()) .child_1(GT1186.prototype.set_0().size_2(20, 20)) ) .child_1(GT1186.prototype.set_0().size_2(20, 20)) ) ); }, containerIntroVideo_0: function () { return null; }, buttonIntroVideoSkip_0: function () { return GT873.prototype .set_0() .id_1(GT554.prototype.ID_INTROVIDEO_SKIP) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE)) .states_1(GT1021.prototype.set_0().state_2(1, GT1236.prototype.DEFAULT)) .child_1(GT818.prototype.set_0().id_1(GT554.prototype.ID_INTROVIDEO_LOADINGINDICATOR).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/loading.png").anchor_2(23, 23).translation_2(23, 23)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_skip.png")); }, defaultSplashScreen_0: function () { return GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0())) .child_1( GT871.prototype .set_0() .id_1(GT554.prototype.ID_REFLOW_SPLASHSCREEN_IMAGE) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().id_1(GT554.prototype.ID_IMAGE_SPLASHSCREEN).imageFile_1("splashscreen.jpg")) ) .child_1( GT871.prototype .set_0() .id_1(GT554.prototype.ID_REFLOW_SPLASHSCREENTEXT) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.BOTTOM) .child_1(this.textSplashScreen_0()) .insets_4(0, 0, 0, 70) ) .child_1( GT436.prototype .set_0() .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .showPercentage_1(!1) .id_1(GT554.prototype.ID_PROGRESSBAR_SPLASHSCREEN) .position_2(0, 385) .mainColor_1(GT1391.prototype.set_0().white_0()) ) .child_1(GT873.prototype.set_0().id_1(GT554.prototype.ACTION_SPLASHSCREEN)); }, containerSplashScreen_0: function () { return this.defaultSplashScreen_0(); }, textSplashScreen_0: function () { return GT1445.prototype .set_0() .id_1(GT554.prototype.ID_TEXT_SPLASHSCREEN) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.BOTTOM) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(400)) .text_1("${waitsplashscreen}") .fontColor_1(GT1391.prototype.set_0().white_0()) .shadow_3(3, 3, GT1391.prototype.set_0().black_0()) .position_2(0, 0); }, containerInfoPagesOverlay_1: function (a) { return GT1186.prototype .set_0() .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.TOP).vertical_0().child_1(this.containerInfoPagesBackground_0().resizeToContent_1(!0))) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.TOP).vertical_0().child_1(a.resizeToContent_1(!0).id_1(GT554.prototype.ID_INFOPAGES_CONTENT))) .child_1(this.containerInfoPagesIndicators_0().id_1(GT554.prototype.ID_INFOPAGES_INDICATOR)) .child_1(this.buttonInfoPagesPrev_0().id_1(GT554.prototype.ID_INFOPAGES_PREV)) .child_1(this.buttonInfoPagesNext_0().id_1(GT554.prototype.ID_INFOPAGES_NEXT)) .child_1(this.buttonInfoPagesToggle_0()) .child_1(this.textInfoPagesToggleMessage_0()) .child_1(this.buttonInfoPagesClose_0().id_1(GT554.prototype.ID_INFOPAGES_CLOSE)); }, containerInfoPages_0: function () { return null; }, containerInfoPagesBackground_0: function () { return null; }, buttonInfoPagesNext_0: function () { return this.buttonContainerDefault_4("next", "/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png", 250, 100).position_2(850, 870).id_1(GT554.prototype.ID_INFOPAGES_NEXT); }, buttonInfoPagesPrev_0: function () { return this.buttonContainerDefault_4("prev", "/com/greentube/casinolobbymanager/client/res/casino/b_payinboxbutton.png", 250, 100).position_2(550, 870).id_1(GT554.prototype.ID_INFOPAGES_PREV); }, buttonInfoPagesToggle_0: function () { return GT873.prototype .set_0() .id_1(GT554.prototype.ID_INFOPAGES_TOGGLE) .position_2(890, 970) .size_2(42, 38) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_checkbox_big.png").tiling_2(1, 2)).showTile_2(0, 0)) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/casino/b_checkbox_big.png").tiling_2(1, 2)).showTile_2(0, 1)) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT)); }, textInfoPagesToggleMessage_0: function () { return GT1239.prototype .set_0() .id_1(GT554.prototype.ID_INFOPAGES_TOGGLEMESSAGE) .position_2(950, 970) .size_2(500, 45) .adaptiveHeight_1(!0) .text_1("${realitycheckmessage3}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP); }, buttonInfoPagesClose_0: function () { return GT873.prototype .set_0() .id_1(GT554.prototype.ID_INFOPAGES_CLOSE) .position_2(800, 970) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE)) .states_1(GT1021.prototype.set_0().state_2(1, GT1236.prototype.DEFAULT)) .child_1(GT818.prototype.set_0().id_1(GT554.prototype.ID_INFOPAGES_LOADINGINDICATOR).imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/loading.png").anchor_2(23, 23).translation_2(23, 23)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/casinolobbymanager/client/res/casino/b_skip.png")); }, infoPagesTimeout_0: function () { return 2e4; }, containerInfoPagesIndicators_0: function () { return GT871.prototype .set_0() .position_2(0, 830) .id_1(GT554.prototype.ID_INFOPAGES_INDICATOR) .size_2(this.layoutDesignedWidth_0() + this.layoutOverscanLeft_0() + this.layoutOverscanRight_0(), 50) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.BOTTOM) .horizontal_0() .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()) .child_1(GT1186.prototype.set_0().size_2(15, 20)) .child_1(this.containerOneInfoPageIndicator_0()); }, containerOneInfoPageIndicator_0: function () { return GT1186.prototype .set_0() .size_2(24, 24) .child_1( GT1187.prototype .set_0() .size_2(24, 24) .borderThickness_1(2) .colorBorder_1(GT1391.prototype.set_0().white_0()) .transparencyArea_1(GT1022.prototype.set_0().transparent_0()) .innerRadius_1(12) .outerRadius_1(12) .numberOfEdges_1(8) ) .child_1( GT1187.prototype .set_0() .size_2(24, 24) .borderThickness_1(0) .colorBorder_1(GT1391.prototype.set_0().white_0()) .colorArea_1(GT1391.prototype.set_0().white_0()) .innerRadius_1(12) .outerRadius_1(12) .numberOfEdges_1(8) ); }, }, "GT286", [] ), GT436 = GT1334.extend( { initialConstructor_0: function () { this.maincolor = this.fontcolor = this.pfont = null; this.showpercentset = this.showPercent = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; this.fontcolorset = this.pfontset = this.maincolorset = this.positionmodified = !1; GT1334.prototype.initialConstructor_0.call(this); this.fontcolor = GT1634.prototype.white; this.showPercent = !0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, position_2: function (a, b) { this.positionmodified = !0; this.xPos = a; this.yPos = b; return this; }, id_1: function (a) { this.appId = a; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, width_1: function (a) { this.widthSize = a; return this; }, height_1: function (a) { this.heightSize = a; return this; }, font_1: function (a) { this.pfontset = !0; this.pfont = a; return this; }, fontColor_1: function (a) { this.fontcolorset = !0; this.fontcolor = a.create_0(); return this; }, mainColor_1: function (a) { this.maincolorset = !0; this.maincolor = a.create_0(); return this; }, showPercentage_1: function (a) { this.showpercentset = !0; this.showPercent = a; return this; }, create_2: function (a, b) { var d = this.pfont.create_1(b.getResourceManager_0()), d = new GT486(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.maincolor, d, this.fontcolor, this.showPercent); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { this.pfont.load_1(a.getResourceManager_0()); GT1334.prototype.load_1.call(this, a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT436); GT1650.prototype.assertExp_2(b, "Descriptor is no DCasinoProgressBar"); b && (this.positionmodified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), 0 <= this.widthSize && (a.widthSize = this.widthSize), 0 <= this.heightSize && (a.heightSize = this.heightSize), this.showpercentset && (a.showPercent = this.showPercent), this.maincolorset && (a.maincolor = this.maincolor), this.pfontset && (a.pfont = this.pfont), this.fontcolorset && (a.fontcolor = this.fontcolor)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT436", [GT1272] ); GT436.prototype.set_0 = function () { return new GT436(); }; var GT387 = GT1334.extend( { initialConstructor_0: function () { this.time2run = 0; this.pimageNumberBack = this.pimageGapBack = this.pimageRightEdge = this.pimageLeftEdge = this.symbolcolor = this.color = this.pfont = null; this.reels = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.color = GT1634.prototype.white; this.symbolcolor = GT1634.prototype.yellow; this.reels = 1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, font_1: function (a) { this.pfont = a; return this; }, fontColor_1: function (a) { this.color = a.create_0(); return this; }, currencySymbolColor_1: function (a) { this.symbolcolor = a.create_0(); return this; }, animationTime_1: function (a) { this.time2run = a; return this; }, imageLeftEdge_1: function (a) { this.pimageLeftEdge = a; return this; }, imageRightEdge_1: function (a) { this.pimageRightEdge = a; return this; }, imageGapBack_1: function (a) { this.pimageGapBack = a; return this; }, imageNumberBack_1: function (a) { this.pimageNumberBack = a; return this; }, numberOfReels_1: function (a) { this.reels = a; return this; }, load_1: function (a) { GT1334.prototype.load_1.call(this, a); a = a.getResourceManager_0(); this.pfont.load_1(a); this.pimageLeftEdge.load_1(a); this.pimageRightEdge.load_1(a); this.pimageNumberBack.load_1(a); this.pimageGapBack.load_1(a); }, create_2: function (a, b) { var d = b.getResourceManager_0(), e = this.pfont.create_1(d), f = this.pimageLeftEdge.create_1(d), g = this.pimageRightEdge.create_1(d), k = this.pimageGapBack.create_1(d), d = this.pimageNumberBack.create_1(d), e = new GT683(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.time2run, e, this.color, this.symbolcolor, b.getTimer_0(), f, g, d, k, this.reels); e.setApplicationID_1(this.appId); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT387", [] ); GT387.prototype.set_0 = function () { return new GT387(); }; var GT742 = GT1334.extend( { initialConstructor_0: function () { this.actionID = 0; this.infofont = this.imageroom = null; this.oy = this.ox = this.indent = 0; this.infocolor = null; this.skipfullrooms = this.centerbuttons = this.indicatorAnimation = this.hidetableinfo = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.actionID = this.heightSize = this.widthSize = -1; this.indicatorAnimation = this.hidetableinfo = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, buttonSelectRoomID_1: function (a) { this.actionID = a; return this; }, imageRoom_1: function (a) { this.imageroom = a; return this; }, infoFont_1: function (a) { this.infofont = a; return this; }, buttonIndent_1: function (a) { this.indent = a; return this; }, buttonOffset_2: function (a, b) { this.ox = a; this.oy = b; return this; }, infoColor_1: function (a) { this.infocolor = a.create_0(); return this; }, hideTableInfo_1: function (a) { this.hidetableinfo = a; return this; }, useIndicatorAnimation_1: function (a) { this.indicatorAnimation = a; return this; }, centerButtons_1: function (a) { this.centerbuttons = a; return this; }, skipFullRooms_1: function (a) { this.skipfullrooms = a; return this; }, load_1: function (a) { a = a.getResourceManager_0(); for (var b = 0; b < this.imageroom.length; b++) this.imageroom[b].load_1(a); null != this.infofont && this.infofont.load_1(a); }, create_2: function (a, b) { var d = b.getResourceManager_0(); GT1650.prototype.assertExp_2(null != this.infocolor, "infoColor not declared"); var e = this.widthSize, f = this.heightSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); -1 == this.heightSize && (f = a.getHeight_0() - this.yPos); for (var g = [].createArray(this.imageroom.length), k = 0; k < this.imageroom.length; k++) g[k] = this.imageroom[k].create_1(d); d = new GT584( a, this.xPos, this.yPos, e, f, g, this.actionID, null != this.infofont ? this.infofont.create_1(d) : GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(80).create_1(d), this.infocolor, this.indent, this.ox, this.oy, this.hidetableinfo, b.getTimer_0(), this.indicatorAnimation, this.centerbuttons, this.skipfullrooms ); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT742", [] ); GT742.prototype.set_0 = function () { return new GT742(); }; var GT847 = GT1334.extend( { initialConstructor_0: function () { this.tablesinrow = this.indentEvenRows = this.tableIndentY = this.tableIndentX = this.tableOffsetY = this.tableOffsetX = 0; this.stringTableDetail = this.stringTable = null; this.numTableDetails = 0; this.tablehighlight = this.stringOccupiedWinning = this.stringOccupied = null; this.alignAddress = this.addressy = this.addressx = 0; this.colorAddress = this.fontAddress = null; this.outlineRadiusAddress = 0; this.outlineColorAddress = null; this.detaily = this.detailx = 0; this.colorPayout = this.payoutFonts = null; this.occupiednameheight = this.occupiednamewidth = this.occupiednamey = this.occupiednamex = this.occupiedwiny = this.occupiedwinx = this.occupiedy = this.occupiedx = 0; this.showdetailswitchwhenidle = this.showlastpayout = !1; this.actionID = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.tableOffsetY = this.tableOffsetX = 0; this.tableIndentY = this.tableIndentX = 157; this.indentEvenRows = 10; this.tablesinrow = 7; this.stringOccupiedWinning = this.stringOccupied = null; this.detaily = this.detailx = this.addressy = this.addressx = 0; this.showdetailswitchwhenidle = this.showlastpayout = !1; this.actionID = -1; this.fontAddress = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(50).bold_0(); this.alignAddress = GT1606.prototype.ALIGN_LEFT; this.payoutFonts = new java_util_JavaScriptVector(); this.colorAddress = GT1634.prototype.white; this.outlineColorAddress = null; this.outlineRadiusAddress = 0; this.colorPayout = GT1634.prototype.yellow; this.tablehighlight = GT1063.prototype.Highlight; this.numTableDetails = 6; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, tableIndent_2: function (a, b) { this.tableIndentX = a; this.tableIndentY = b; return this; }, tableOffset_2: function (a, b) { this.tableOffsetX = a; this.tableOffsetY = b; return this; }, addIndentToEvenRows_1: function (a) { this.indentEvenRows = a; return this; }, tablesInRow_1: function (a) { this.tablesinrow = a; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, imageTable_1: function (a) { this.stringTable = a; return this; }, imageTableDetail_1: function (a) { this.stringTableDetail = a; return this; }, tableDetailIndent_2: function (a, b) { this.detailx = a; this.detaily = b; return this; }, imageUserPlaying_1: function (a) { this.stringOccupied = a; return this; }, userImageIndent_2: function (a, b) { this.occupiedx = a; this.occupiedy = b; return this; }, imageUserWinning_1: function (a) { this.stringOccupiedWinning = a; return this; }, userImageWinningIndent_2: function (a, b) { this.occupiedwinx = a; this.occupiedwiny = b; return this; }, tableHighlight_1: function (a) { this.tablehighlight = null != a ? a.create_0() : null; return this; }, tableAddressIndent_2: function (a, b) { this.addressx = a; this.addressy = b; return this; }, tableAddressFont_1: function (a) { this.fontAddress = a; return this; }, tableAddressAlignment_1: function (a) { this.alignAddress = a; return this; }, tableAddressColor_1: function (a) { this.colorAddress = null != a ? a.create_0() : null; return this; }, tableAddressOutline_2: function (a, b) { this.outlineRadiusAddress = a; this.outlineColorAddress = null != b ? b.create_0() : null; return this; }, addPayoutFont_1: function (a) { this.payoutFonts.addElement_1(a); return this; }, removeAllPayoutFonts_0: function () { this.payoutFonts.clear_0(); return this; }, payoutColor_1: function (a) { this.colorPayout = null != a ? a.create_0() : null; return this; }, userNamePosition_4: function (a, b, d, e) { this.occupiednamex = a; this.occupiednamey = b; this.occupiednamewidth = d; this.occupiednameheight = e; return this; }, showLastPayout_1: function (a) { this.showlastpayout = a; return this; }, showLastPayout_0: function () { this.showlastpayout = !0; return this; }, showDetailSwitchWhenIdle_0: function () { this.showdetailswitchwhenidle = !0; return this; }, showDetailSwitchWhenIdle_1: function (a) { this.showdetailswitchwhenidle = a; return this; }, buttonEnterID_1: function (a) { this.actionID = a; return this; }, numberOfTableDetails_1: function (a) { this.numTableDetails = a; return this; }, load_1: function (a) { null != this.stringTable && a.getResourceManager_0().startLoadImage_4(this.stringTable, 1, 1, !1); null != this.stringTableDetail && a.getResourceManager_0().startLoadImage_4(this.stringTableDetail, 1, this.numTableDetails, !1); null != this.fontAddress && this.fontAddress.load_1(a.getResourceManager_0()); for (var b = 0; b < this.payoutFonts.size_0(); b++) this.payoutFonts.elementAt_1(b).load_1(a.getResourceManager_0()); if (null != this.stringOccupied) for (b = 0; b < this.stringOccupied.length; b++) a.getResourceManager_0().startLoadImage_4(this.stringOccupied[b], 1, 1, !1); if (null != this.stringOccupiedWinning) for (b = 0; b < this.stringOccupiedWinning.length; b++) a.getResourceManager_0().startLoadImage_4(this.stringOccupiedWinning[b], 1, 1, !1); }, create_2: function (a, b) { var d, e, f, g; g = f = e = d = null; null != this.stringTable && (d = b.getResourceManager_0().getImage_1(this.stringTable)); null != this.stringTableDetail && (e = b.getResourceManager_0().getImage_1(this.stringTableDetail)); if (null != this.stringOccupied) { f = [].createArray(this.stringOccupied.length); for (var k = 0; k < f.length; k++) f[k] = b.getResourceManager_0().getImage_1(this.stringOccupied[k]); } if (null != this.stringOccupiedWinning) for (g = [].createArray(this.stringOccupiedWinning.length), k = 0; k < g.length; k++) g[k] = b.getResourceManager_0().getImage_1(this.stringOccupiedWinning[k]); GT1650.prototype.assertExp_2(null != d, "imageTable not set for TableView"); GT1650.prototype.assertExp_2(null != f, "imageUserPlaying not set for TableView"); var m = this.widthSize, n = this.heightSize; -1 == this.widthSize && (m = a.getWidth_0() - this.xPos); -1 == this.heightSize && (n = a.getHeight_0() - this.yPos); k = b.getParameter_1("hidepayoutinlobby"); null != k && 0 != k.charAt_1(0) && (this.showlastpayout = !1); for (var p = [].createArray(this.payoutFonts.size_0()), k = 0; k < this.payoutFonts.size_0(); k++) p[k] = this.payoutFonts.elementAt_1(k).create_1(b.getResourceManager_0()); d = new GT684( a, this.xPos, this.yPos, m, n, b.getTimer_0(), this.tableOffsetX, this.tableOffsetY, this.tableIndentX, this.tableIndentY, this.tablesinrow, this.indentEvenRows, d, e, f, g, this.tablehighlight, this.addressx, this.addressy, this.alignAddress, null != this.fontAddress ? this.fontAddress.create_1(b.getResourceManager_0()) : null, this.colorAddress, this.detailx, this.detaily, p, this.colorPayout, this.occupiedx, this.occupiedy, this.occupiedwinx, this.occupiedwiny, this.occupiednamex, this.occupiednamey, this.occupiednamewidth, this.occupiednameheight, this.showlastpayout, this.showdetailswitchwhenidle, this.actionID ); d.setApplicationID_1(this.appId); 0 < this.outlineRadiusAddress && null != this.outlineColorAddress && d.setAddressOutline_2(this.outlineRadiusAddress, this.outlineColorAddress); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT847) || this.actionID != a.actionID || this.addressx != a.addressx || this.addressy != a.addressy) return !1; if (null == this.colorAddress) { if (null != a.colorAddress) return !1; } else if (!this.colorAddress.equals_1(a.colorAddress)) return !1; if (null == this.outlineColorAddress && 0 >= this.outlineRadiusAddress) { if (null != a.outlineColorAddress && 0 < a.outlineRadiusAddress) return !1; } else if (!this.outlineColorAddress.equals_1(a.outlineColorAddress) && this.outlineRadiusAddress != a.outlineRadiusAddress) return !1; if (null == this.colorPayout) { if (null != a.colorPayout) return !1; } else if (!this.colorPayout.equals_1(a.colorPayout)) return !1; if (this.detailx != a.detailx || this.detaily != a.detaily) return !1; if (null == this.fontAddress) { if (null != a.fontAddress) return !1; } else if (!this.fontAddress.equals_1(a.fontAddress)) return !1; if ( this.numTableDetails != a.numTableDetails || this.occupiednameheight != a.occupiednameheight || this.occupiednamewidth != a.occupiednamewidth || this.occupiednamex != a.occupiednamex || this.occupiednamey != a.occupiednamey || this.occupiedwinx != a.occupiedwinx || this.occupiedwiny != a.occupiedwiny || this.occupiedx != a.occupiedx || this.occupiedy != a.occupiedy || this.showdetailswitchwhenidle != a.showdetailswitchwhenidle || this.showlastpayout != a.showlastpayout || this.stringOccupied.length != a.stringOccupied.length ) return !1; for (var b = 0; b < this.stringOccupied.length; b++) if (!this.stringOccupied[b].equals_1(a.stringOccupied)) return !1; if (this.stringOccupiedWinning.length != a.stringOccupiedWinning.length) return !1; for (b = 0; b < this.stringOccupiedWinning.length; b++) if (!this.stringOccupiedWinning[b].equals_1(a.stringOccupiedWinning)) return !1; if (null == this.stringTable) { if (null != a.stringTable) return !1; } else if (!this.stringTable.equals_1(a.stringTable)) return !1; if (null == this.stringTableDetail) { if (null != a.stringTableDetail) return !1; } else if (!this.stringTableDetail.equals_1(a.stringTableDetail)) return !1; if (this.tableIndentX != a.tableIndentX || this.tableIndentY != a.tableIndentY) return !1; if (null == this.tablehighlight) { if (null != a.tablehighlight) return !1; } else if (!this.tablehighlight.equals_1(a.tablehighlight)) return !1; return this.tablesinrow != a.tablesinrow ? !1 : !0; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT847", [] ); GT847.prototype.set_0 = function () { return new GT847(); }; var GT461 = GT709.extend( { initialConstructor_0: function () { this.components = null; GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.components = null; GT709.prototype.initialConstructor_1.call(this, a); this.components = new java_util_JavaScriptVector(); }, addComponent_1: function (a) { this.components.add_1(a); a.setParent_1(this); a.setRoot_1(this.getRoot_0()); return this; }, removeComponent_1: function (a) { this.components.removeElement_1(a); return this; }, getChildren_0: function () { return this.components; }, requestLayout_0: function () { for (var a = 0; a < this.components.size_0(); a++) this.components.get_1(a).requestLayout_0(); }, getMinMaxWidth_0: function () { for (var a = new GT1438(0, 0), b = 0; b < this.components.size_0(); b++) var d = this.components.get_1(b), a = a.add_1(d.getMinMaxWidth_0()); return a; }, toString: function () { return GT709.prototype.toString.call(this); }, generateSaveState_2: function (a, b) { for (var d = 0; d < this.components.size_0(); d++) instanceOf(this.components.get_1(d), GT918) && this.components.get_1(d).generateSaveState_2(a, !1); }, }, "GT461", [] ), GT412 = GT461.extend( { initialConstructor_0: function () { GT461.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT461.prototype.initialConstructor_1.call(this, a); }, requestLayout_0: function () { this.requestLayoutPriorityBased_0(); }, requestLayoutProportional_0: function () { var a = this.getMinMaxWidth_0(), b = 0, b = a.getMax_0() <= this.getMaxWidth_0() ? 1 : this.getMaxWidth_0() / a.getMax_0(), d = this.getChildren_0(); GT1679.prototype.sortVector_3(d, new GT1020(), !0); for (var a = Math.div(Integer.truncate_1(this.getMaxWidth_0() - a.getMax_0() * b), 2), a = this.getTopLeft_0().x + a, e = 0; e < d.size_0(); e++) { var f = d.get_1(e); f.setComponentX_1(a); f.setComponentY_1(this.getComponentY_0()); var g = Integer.truncate_1(f.getMinMaxWidth_0().getMax_0() * b); f.setComponentSize_2(g, this.getComponentHeight_0()); a += g; } }, requestLayoutPriorityBased_0: function () { for (var a = this.getComponentWidth_0(), b = this.getChildren_0(), a = a - (b.size_0() - 1) * this.getComponentSpacing_0(), d = new java_util_JavaScriptHashtable(), e = 0; e < b.size_0(); e++) { var f = b.get_1(e), g = f.getMinMaxWidth_0().getMax_0(), a = a - g; d.put_2(f.getName_0(), new Integer(g)); } var k = this.getChildren_0().clone_0(); GT1679.prototype.sortVector_3(k, new GT222(), !0); g = new java_util_JavaScriptVector(); for (e = 0; e < k.size_0(); e++) (f = k.get_1(e)), g.contains_1(new Integer(f.getResizePriority_0())) || g.add_1(new Integer(f.getResizePriority_0())); GT1679.prototype.sortVector_2(g, !1); GT1679.prototype.sortVector_3(b, new GT1020(), !0); for (k = 0; k < g.size_0() && !(0 <= a); k++) { for (var m = this.getComponentsWithPriority_1(g.get_1(k).intValue_0()), n = 0, e = 0; e < m.size_0(); e++) (f = m.get_1(e)), (n -= f.getMinMaxWidth_0().getMax_0() - f.getMinMaxWidth_0().getMin_0()); var p = n; n < a && (p = a); for (e = 0; e < m.size_0(); e++) { var f = m.get_1(e), f = this.getComponentByName_2(b, f.getName_0()), q = (f.getMinMaxWidth_0().getMax_0() - f.getMinMaxWidth_0().getMin_0()) / n, q = Integer.truncate_1(Math.ceil_1(p * q)); d.put_2(f.getName_0(), new Integer(f.getMinMaxWidth_0().getMax_0() - q)); a += q; } } e = Integer.truncate_1(a / 2); a = this.getTopLeft_0().x + e; for (e = 0; e < b.size_0(); e++) (f = b.get_1(e)), f.setComponentX_1(a), f.setComponentY_1(this.getComponentY_0()), (g = d.get_1(f.getName_0()).intValue_0()), f.setComponentSize_2(g, this.getComponentHeight_0()), (a = a + f.getComponentWidth_0() + this.getComponentSpacing_0()), f.setOrder_1(e); }, getComponentByName_2: function (a, b) { for (var d = null, e = 0; e < a.size_0(); e++) { var f = a.get_1(e); if (b.equals_1(f.getName_0())) { d = f; break; } } return d; }, isDropSupported_0: function () { return !0; }, getComponentsWithPriority_1: function (a) { for (var b = new java_util_JavaScriptVector(), d = this.getChildren_0(), e = 0; e < d.size_0(); e++) { var f = d.get_1(e); f.getResizePriority_0() == a && f.getMinMaxWidth_0().getMax_0() > f.getMinMaxWidth_0().getMin_0() && b.add_1(f); } return b; }, isAutoLayoutingSupported_0: function () { return !0; }, }, "GT412", [] ), GT222 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, compare_2: function (a, b) { return instanceOf(a, GT918) && instanceOf(b, GT918) ? a.getResizePriority_0() - b.getResizePriority_0() : 0; }, }, "GT222", [java_util_Comparator] ), GT1073 = GT709.extend( { initialConstructor_0: function () { this.textAttributes = this.buttonSound = this.buttonImage = this.toolTip = this.buttonText = null; this.imageOffset = this.imagePosition = 0; this.viewDataRule = this.clickParams = this.clickIdentifier = null; this.suppressColorTransformation = this.suppressBackground = !1; this.fontKey = this.colorSetKey = null; this.buttonSoundLength = this.shape = 0; this.blackBorderSuppressed = this.buttonStateHoverOmitted = !1; GT709.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.textAttributes = this.buttonSound = this.buttonImage = this.toolTip = this.buttonText = null; this.imageOffset = this.imagePosition = 0; this.viewDataRule = this.clickParams = this.clickIdentifier = null; this.suppressColorTransformation = this.suppressBackground = !1; this.fontKey = this.colorSetKey = null; this.buttonSoundLength = this.shape = 0; this.blackBorderSuppressed = this.buttonStateHoverOmitted = !1; GT709.prototype.initialConstructor_1.call(this, a); this.clickParams = new java_util_JavaScriptHashtable(); }, initialConstructor_2: function (a, b) { GT1073.prototype.initialConstructor_1.call(this, a); this.setComponentX_1(b.getComponentX_0()); this.setComponentY_1(b.getComponentY_0()); this.setComponentSize_2(b.getComponentWidth_0(), b.getComponentHeight_0()); this.setCornerRadius_1(b.getCornerRadius_0()); instanceOf(b, GT1073) && (this.setButtonText_1(b.getButtonText_0()), this.setButtonImage_1(b.getButtonImage_0()), this.setTextAttributes_1(b.getTextAttributes_0()), this.setComponentSpacing_1(b.getComponentSpacing_0()), this.setClickIdentifier_1(b.getClickIdentifier_0()), this.setColorSetKey_1(b.getColorSetKey_0()), this.setImagePosition_1(b.getImagePosition_0()), this.setImageOffset_1(b.getImageOffset_0()), this.setFontKey_1(b.getFontKey_0()), this.setShape_1(b.getShape_0()), this.setSuppressBackground_1(b.isSuppressBackground_0()), this.setSuppressColorTransformation_1(b.isSuppressColorTransformation_0()), this.setButtonStateHoverOmitted_1(b.isButtonStateHoverOmitted_0()), (this.clickParams = GT1533.prototype.hashtableDefCopy_1(b.getClickParams_0()))); }, getButtonText_0: function () { return this.buttonText; }, setButtonText_1: function (a) { this.buttonText = a; return this; }, getButtonImage_0: function () { return this.buttonImage; }, setButtonImage_1: function (a) { null == a && null != this.buttonImage && this.removeImageResource_1(this.buttonImage); this.buttonImage = a; null != a && this.addImageResource_1(a); return this; }, getButtonSound_0: function () { return this.buttonSound; }, setButtonSound_1: function (a) { null == a && null != this.buttonSound && this.removeSoundResource_1(this.buttonSound); this.buttonSound = a; null != a && this.addSoundResource_1(a); return this; }, getButtonSoundLength_0: function () { return this.buttonSoundLength; }, setButtonSoundLength_1: function (a) { this.buttonSoundLength = a; return this; }, getTextAttributes_0: function () { return this.textAttributes; }, setTextAttributes_1: function (a) { this.textAttributes = a; return this; }, getClickIdentifier_0: function () { return this.clickIdentifier; }, setClickIdentifier_1: function (a) { this.clickIdentifier = a; return this; }, getViewDataRule_0: function () { return this.viewDataRule; }, setViewDataRule_1: function (a) { this.viewDataRule = a; return this; }, getToolTip_0: function () { return this.toolTip; }, setToolTip_1: function (a) { this.toolTip = a; return this; }, setSuppressBackground_1: function (a) { this.suppressBackground = a; return this; }, isSuppressBackground_0: function () { return this.suppressBackground; }, setButtonStateHoverOmitted_1: function (a) { this.buttonStateHoverOmitted = a; return this; }, isButtonStateHoverOmitted_0: function () { return this.buttonStateHoverOmitted; }, setBlackBorderSuppressed_1: function (a) { this.blackBorderSuppressed = a; return this; }, isBlackBorderSuppressed_0: function () { return this.blackBorderSuppressed; }, setSuppressColorTransformation_1: function (a) { this.suppressColorTransformation = a; return this; }, isSuppressColorTransformation_0: function () { return this.suppressColorTransformation; }, setImagePosition_1: function (a) { GT1650.prototype.assertExp_2(a >= GT1073.prototype.IMAGE_CENTER && a <= GT1073.prototype.IMAGE_BOTTOM, "Invalid image position!"); this.imagePosition = a; return this; }, getImagePosition_0: function () { return this.imagePosition; }, setImageOffset_1: function (a) { this.imageOffset = a; return this; }, getImageOffset_0: function () { return this.imageOffset; }, getColorSetKey_0: function () { return null == this.colorSetKey ? GT1019.prototype.CCK_BUTTON_DEFAULT : this.colorSetKey; }, setColorSetKey_1: function (a) { this.colorSetKey = a; return this; }, getFontKey_0: function () { return null == this.fontKey ? GT1237.prototype.FCK_SECONDARY_BUTTON : this.fontKey; }, setFontKey_1: function (a) { this.fontKey = a; return this; }, getShape_0: function () { return this.shape; }, setShape_1: function (a) { this.shape = a; return this; }, addClickParam_2: function (a, b) { this.clickParams.put_2(a, b); return this; }, getClickParams_0: function () { return this.clickParams; }, }, "GT1073", [] ); GT1073.prototype.IMAGE_CENTER = 0; GT1073.prototype.IMAGE_LEFT = 1; GT1073.prototype.IMAGE_TOP = 2; GT1073.prototype.IMAGE_RIGHT = 3; GT1073.prototype.IMAGE_BOTTOM = 4; GT1073.prototype.BUTTON_SHAPE_ROUND_RECT = 0; GT1073.prototype.BUTTON_SHAPE_RECT = 1; GT1073.prototype.BUTTON_SHAPE_ROUND = 2; var GT388 = GT1018.extend( { initialConstructor_0: function () { this.winAnimationSound = this.statusTextLocSizeAttributes = null; GT1018.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.winAnimationSound = this.statusTextLocSizeAttributes = null; GT1018.prototype.initialConstructor_1.call(this, a); }, getStatusTextLocSizeAttributes_0: function () { return this.statusTextLocSizeAttributes; }, setStatusTextLocSizeAttributes_1: function (a) { this.statusTextLocSizeAttributes = a; }, getWinAnimationSound_0: function () { return this.winAnimationSound; }, setWinAnimationSound_1: function (a) { this.winAnimationSound = a; }, getSoundResources_0: function () { var a = GT1018.prototype.getSoundResources_0.call(this); null != this.winAnimationSound && a.addElement_1(this.winAnimationSound); return a; }, }, "GT388", [] ), GT904 = GT1073.extend( { initialConstructor_0: function () { this.menuItems = null; this.showClock = !1; GT1073.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.menuItems = null; this.showClock = !1; GT1073.prototype.initialConstructor_1.call(this, a); this.menuItems = new java_util_JavaScriptVector(); }, addMenuItem_1: function (a) { this.menuItems.addElement_1(a); return this; }, removeMenuItem_1: function (a) { return this.menuItems.removeElement_1(a); }, removeMenuItemByName_1: function (a) { for (var b = this.menuItems.clone_0(), d = 0; d < b.size_0(); d++) { var e = b.get_1(d), f = e.getName_0(); if (null != e && f.equals_1(a)) return this.menuItems.removeElement_1(e); } return !1; }, getMenuItems_0: function () { return this.menuItems.clone_0(); }, getImageResources_0: function () { for (var a = GT1073.prototype.getImageResources_0.call(this), b = 0; b < this.menuItems.size_0(); b++) { var d = this.menuItems.get_1(b); GT1533.prototype.vectorCopy_2(d.getImageResources_0(), a); } return a; }, getSoundResources_0: function () { for (var a = GT1073.prototype.getSoundResources_0.call(this), b = 0; b < this.menuItems.size_0(); b++) { var d = this.menuItems.get_1(b); GT1533.prototype.vectorCopy_2(d.getSoundResources_0(), a); } return a; }, isShowClock_0: function () { return this.showClock; }, setShowClock_1: function (a) { this.showClock = a; }, }, "GT904", [] ), GT710 = GT1073.extend( { initialConstructor_0: function () { this.borderRight = this.borderLeft = !1; GT1073.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.borderRight = this.borderLeft = !1; GT1073.prototype.initialConstructor_1.call(this, a); this.borderLeft = f; this.borderRight = g; this.setComponentSpacing_1(b); this.setComponentSize_2(d, e); }, isBorderLeft_0: function () { return this.borderLeft; }, isBorderRight_0: function () { return this.borderRight; }, setBorderLeft_1: function (a) { this.borderLeft = a; }, setBorderRight_1: function (a) { this.borderRight = a; }, }, "GT710", [] ), GT559 = GT461.extend( { initialConstructor_0: function () { GT461.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT461.prototype.initialConstructor_1.call(this, a); }, isDropSupported_0: function () { return !1; }, requestLayout_0: function () { for (var a = 0; a < this.getChildren_0().size_0(); a++) { var b = this.getChildren_0().get_1(a); if (GT1607.prototype.OVERLAY_LEFT_SIDE_CONTAINER.equals_1(b.getName_0())) for (var d = b, b = d.getComponentX_0(), e = 0, f = d.getComponentY_0(), g = 0; g < d.getChildren_0().size_0(); g++) { var k = d.getChildren_0().get_1(g); if (instanceOf(k.getObject_0(), GT270)) { var m = k.getObject_0(); if (null != m) { var n = Math.max_2(m.getMinLength_0(), m.getWidth_0()); n != m.getWidth_0() && m.setSize_2(n, k.getComponentHeight_0()); m.setLocation_2(e + b, f); b += n; } } } else if (GT1607.prototype.OVERLAY_RIGHT_SIDE_CONTAINER.equals_1(b.getName_0())) for (d = b, b = d.getComponentX_0() + d.getComponentWidth_0(), e = 0, f = d.getComponentY_0(), g = 0; g < d.getChildren_0().size_0(); g++) (k = d.getChildren_0().get_1(g)), instanceOf(k.getObject_0(), GT270) && ((m = k.getObject_0()), null != m && ((n = m.getMinLength_0()), n != m.getWidth_0() && m.setSize_2(n, k.getComponentHeight_0()), (b -= n), m.setLocation_2(e + b, f))); } }, }, "GT559", [] ), GT816 = GT1183.extend( { initialConstructor_0: function () { this.borderRight = this.borderLeft = !1; this.text = this.icon = null; GT1183.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.borderRight = this.borderLeft = !1; this.text = this.icon = null; GT1183.prototype.initialConstructor_1.call(this, a); this.setComponentSpacing_1(b); this.setComponentSize_2(d, e); this.borderLeft = f; this.borderRight = g; }, isBorderLeft_0: function () { return this.borderLeft; }, isBorderRight_0: function () { return this.borderRight; }, getIcon_0: function () { return this.icon; }, setIcon_1: function (a) { this.icon = a; return this; }, getText_0: function () { return this.text; }, setText_1: function (a) { this.text = a; return this; }, getImageResources_0: function () { var a = GT1183.prototype.getImageResources_0.call(this); a.addElement_1(this.icon); return a; }, setBorderLeft_1: function (a) { this.borderLeft = a; }, setBorderRight_1: function (a) { this.borderRight = a; }, }, "GT816", [] ), GT437 = GT710.extend( { initialConstructor_0: function () { this.toggledToolTip = this.toggledButtonText = this.toggledButtonImage = null; GT710.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.toggledToolTip = this.toggledButtonText = this.toggledButtonImage = null; GT710.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); }, getToggledButtonImage_0: function () { return this.toggledButtonImage; }, setToggledButtonImage_1: function (a) { this.toggledButtonImage = a; return this; }, getToggledButtonText_0: function () { return this.toggledButtonText; }, setToggledButtonText_1: function (a) { this.toggledButtonText = a; return this; }, getToggledToolTip_0: function () { return this.toggledToolTip; }, setToggledToolTip_1: function (a) { this.toggledToolTip = a; return this; }, getImageResources_0: function () { var a = GT710.prototype.getImageResources_0.call(this); a.addElement_1(this.toggledButtonImage); return a; }, }, "GT437", [] ), GT786 = GT1073.extend( { initialConstructor_0: function () { this.toggledTextAttributes = this.toggledToolTip = this.toggledButtonText = this.toggledButtonImage = null; this.toggledImageOffset = this.toggledImagePosition = 0; GT1073.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.toggledTextAttributes = this.toggledToolTip = this.toggledButtonText = this.toggledButtonImage = null; this.toggledImageOffset = this.toggledImagePosition = 0; GT1073.prototype.initialConstructor_1.call(this, a); }, getToggledButtonImage_0: function () { return this.toggledButtonImage; }, setToggledButtonImage_1: function (a) { this.toggledButtonImage = a; return this; }, getToggledButtonText_0: function () { return this.toggledButtonText; }, setToggledButtonText_1: function (a) { this.toggledButtonText = a; return this; }, getToggledToolTip_0: function () { return this.toggledToolTip; }, setToggledToolTip_1: function (a) { this.toggledToolTip = a; return this; }, setToggledImagePosition_1: function (a) { GT1650.prototype.assertExp_2(a >= this.IMAGE_CENTER && a <= this.IMAGE_BOTTOM, "Invalid image position!"); this.toggledImagePosition = a; return this; }, getToggledImagePosition_0: function () { return this.toggledImagePosition; }, setToggledImageOffset_1: function (a) { this.toggledImageOffset = a; return this; }, getToggledImageOffset_0: function () { return this.toggledImageOffset; }, getToggledTextAttributes_0: function () { return this.toggledTextAttributes; }, setToggledTextAttributes_1: function (a) { this.toggledTextAttributes = a; return this; }, getImageResources_0: function () { var a = GT1073.prototype.getImageResources_0.call(this); a.addElement_1(this.toggledButtonImage); return a; }, }, "GT786", [] ), GT487 = GT1073.extend( { initialConstructor_0: function () { this.undockedHeight = this.undockedWidth = 0; this.transformedButtonImage = null; this.startupState = 0; GT1073.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.undockedHeight = this.undockedWidth = 0; this.transformedButtonImage = null; this.startupState = 0; GT1073.prototype.initialConstructor_1.call(this, a); }, initialConstructor_2: function (a, b) { this.undockedHeight = this.undockedWidth = 0; this.transformedButtonImage = null; this.startupState = 0; GT1073.prototype.initialConstructor_2.call(this, a, b); }, getUndockedWidth_0: function () { return this.undockedWidth; }, setUndockedWidth_1: function (a) { this.undockedWidth = a; }, getUndockedHeight_0: function () { return this.undockedHeight; }, setUndockedHeight_1: function (a) { this.undockedHeight = a; }, getTransformedButtonImage_0: function () { return this.transformedButtonImage; }, setTransformedButtonImage_1: function (a) { this.transformedButtonImage = a; }, getStartupState_0: function () { return this.startupState; }, setStartupState_1: function (a) { GT1650.prototype.assertExp_2(a == GT487.prototype.NORMAL || a == GT487.prototype.TRANSFORMED, "Invalid startup state"); this.startupState = a; }, requestLayout_0: function () {}, getImageResources_0: function () { var a = GT1073.prototype.getImageResources_0.call(this); a.add_1(this.transformedButtonImage); return a; }, }, "GT487", [] ); GT487.prototype.NORMAL = 0; GT487.prototype.TRANSFORMED = 1; var GT326 = GT487.extend( { initialConstructor_0: function () { this.loaderImage = this.collectText = this.startText = this.fastIcon = this.spinIcon = null; this.iconScaleFactorY = this.iconScaleFactorX = 0; GT487.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.loaderImage = this.collectText = this.startText = this.fastIcon = this.spinIcon = null; this.iconScaleFactorY = this.iconScaleFactorX = 0; GT487.prototype.initialConstructor_1.call(this, a); }, initialConstructor_2: function (a, b) { this.loaderImage = this.collectText = this.startText = this.fastIcon = this.spinIcon = null; this.iconScaleFactorY = this.iconScaleFactorX = 0; GT487.prototype.initialConstructor_2.call(this, a, b); }, getSpinIcon_0: function () { return this.spinIcon; }, setSpinIcon_1: function (a) { this.spinIcon = a; return this; }, getFastIcon_0: function () { return this.fastIcon; }, setLoaderImage_1: function (a) { this.loaderImage = a; return this; }, getLoaderImage_0: function () { return this.loaderImage; }, setFastIcon_1: function (a) { this.fastIcon = a; return this; }, getStartText_0: function () { return this.startText; }, setStartText_1: function (a) { this.startText = a; return this; }, setIconScaleFactors_2: function (a, b) { this.iconScaleFactorX = a; this.iconScaleFactorY = b; return this; }, getIconScaleFactorX_0: function () { return this.iconScaleFactorX; }, getIconScaleFactorY_0: function () { return this.iconScaleFactorY; }, getCollectText_0: function () { return this.collectText; }, setCollectText_1: function (a) { this.collectText = a; return this; }, getImageResources_0: function () { var a = GT487.prototype.getImageResources_0.call(this); null != this.spinIcon && a.add_1(this.spinIcon); null != this.fastIcon && a.add_1(this.fastIcon); null != this.loaderImage && a.add_1(this.loaderImage); return a; }, }, "GT326", [] ), GT196 = GT1190.extend( { initialConstructor_0: function () { this.initialSize = this.initialPosition = this.target = null; this.duration = this.currentScaling = this.maxAmplitudeScaleFactor = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.initialSize = this.initialPosition = this.target = null; this.duration = this.currentScaling = this.maxAmplitudeScaleFactor = 0; GT1190.prototype.initialConstructor_2.call(this, a, 1); this.target = b; this.maxAmplitudeScaleFactor = d; this.duration = e; }, start_0: function () { this.initialPosition = new GT1633(this.target.getX_0(), this.target.getY_0()); this.initialSize = new GT1633(this.target.getWidth_0(), this.target.getHeight_0()); GT1190.prototype.start_0.call(this); }, action_1: function (a) { if (!GT1560.prototype.isAlive_1(this.target)) return !1; a -= this.getStartTime_0(); var b = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > b ? (b = 0) : 1 < b && (b = 1); this.currentScaling = (this.maxAmplitudeScaleFactor - 1) * Math.sin_1(b * Math.PI) + 1; this.target.setContentScaling_2(this.currentScaling, this.currentScaling); this.target.resize_2(Integer.truncate_1(this.initialSize.x * this.currentScaling), Integer.truncate_1(this.initialSize.y * this.currentScaling)); this.center_0(); return a > this.duration ? (this.target.setContentScaling_2(1, 1), this.target.resize_2(Integer.truncate_1(this.initialSize.x), Integer.truncate_1(this.initialSize.y)), this.target.move_2(this.initialPosition.x, this.initialPosition.y), !1) : !0; }, center_0: function () { var a = Math.div(this.initialSize.x, 2), b = Math.div(this.initialSize.y, 2), a = Math.round_1(a - a * this.currentScaling), b = Math.round_1(b - b * this.currentScaling), a = this.initialPosition.x + Integer.truncate_1(a), b = this.initialPosition.y + Integer.truncate_1(b); this.target.move_2(a, b); }, }, "GT196", [] ), GT244 = GT272.extend( { initialConstructor_0: function () { GT272.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT272.prototype.initialConstructor_2.call(this, a, b.setText_1("99:99")); }, updateUiTime_1: function (a) { this.setText_1(a.getCurrentTime_0()); }, }, "GT244", [] ), GT287 = GT272.extend( { initialConstructor_0: function () { GT272.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT272.prototype.initialConstructor_2.call(this, a, b); }, }, "GT287", [] ), GT197 = GT272.extend( { initialConstructor_0: function () { this.componentWidth = 0; GT272.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.componentWidth = 0; GT272.prototype.initialConstructor_2.call(this, a, b.setText_1("")); this.componentWidth = b.getComponentWidth_0() - 12; }, updateUi_1: function (a) { a = a.getViewData_1(GT1184.prototype.ROUNDID); null != a && this.setText_1(a); }, getMinLength_0: function () { return this.componentWidth; }, }, "GT197", [] ), GT1284 = GT1610.extend( { initialConstructor_0: function () { this.parameters = this.consoleComponentKey = null; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.parameters = this.consoleComponentKey = null; GT1610.prototype.initialConstructor_1.call(this, a); this.consoleComponentKey = ""; this.parameters = new java_util_JavaScriptHashtable(); }, initialConstructor_2: function (a, b) { this.parameters = this.consoleComponentKey = null; GT1610.prototype.initialConstructor_2.call(this, a, b); this.consoleComponentKey = ""; }, initialConstructor_3: function (a, b, d) { this.parameters = this.consoleComponentKey = null; GT1610.prototype.initialConstructor_2.call(this, a, b); this.consoleComponentKey = d; }, getConsoleComponentKey_0: function () { return this.consoleComponentKey; }, setParameters_1: function (a) { this.parameters = a; }, getParameters_0: function () { return this.parameters; }, getParameter_1: function (a) { return this.parameters.get_1(a); }, dispatch_1: function (a) { return a.handleConsoleEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT805); }, toString: function () { return "ConsoleEvent [getId()=" + this.getId_0() + ", getSender()=" + this.getSender_0() + ", consoleComponentKey=" + this.consoleComponentKey + "]"; }, toJSON_0: function () { return '{"consoleComponentKey":"' + this.consoleComponentKey + '"}'; }, }, "GT1284", [GT1585] ); GT1284.prototype.STORE_CONSOLE_POSITIONS_EVENT = GT1677.prototype.generateID_0(); GT1284.prototype.GENERIC_CONSOLE_EVENT = GT1677.prototype.generateID_0(); GT1284.prototype.START_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.MAXBET_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.PAYTABLE_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.AUTOPLAY_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.EXTRABET_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.LINE_MENU_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.BET_MENU_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.BET_CHANGE_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.LINES_UP_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.LINES_DOWN_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.MENU_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.EXIT_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.DEPOSIT_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.SCREEN_TOGGLE_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.SETTINGS_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.REPLAY_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.HELP_BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1284.prototype.SOUND_BUTTON_PRESSED = GT1677.prototype.generateID_0(); var GT654 = GT1284.extend( { initialConstructor_0: function () { this.playMusic = this.playSound = !1; GT1284.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.playMusic = this.playSound = !1; GT1284.prototype.initialConstructor_3.call(this, a, b, d); this.playMusic = f; this.playSound = e; }, isPlaySound_0: function () { return this.playSound; }, isPlayMusic_0: function () { return this.playMusic; }, toString: function () { return "ConsoleEventSoundControl [playSound=" + this.playSound + ", playMusic=" + this.playMusic + ", " + GT1284.prototype.toString.call(this) + "]"; }, }, "GT654", [] ), GT743 = GT712.extend( { initialConstructor_0: function () { GT712.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT712.prototype.initialConstructor_3.call(this, a, GT743.prototype.eventIDs, b); }, handleConsoleEvent_1: function (a) { this.sendConsoleEventToClient_1(a); return !1; }, }, "GT743", [] ); GT743.prototype.eventIDs = [ GT1284.prototype.START_BUTTON_PRESSED, GT1284.prototype.MAXBET_BUTTON_PRESSED, GT1284.prototype.PAYTABLE_BUTTON_PRESSED, GT1284.prototype.AUTOPLAY_BUTTON_PRESSED, GT1284.prototype.BET_MENU_BUTTON_PRESSED, GT1284.prototype.BET_CHANGE_BUTTON_PRESSED, GT1284.prototype.LINES_UP_BUTTON_PRESSED, GT1284.prototype.LINES_DOWN_BUTTON_PRESSED, GT1284.prototype.LINE_MENU_BUTTON_PRESSED, ]; var GT763 = GT186.extend( { initialConstructor_0: function () { this.theme = null; this.isDynScreensLayout = !1; GT186.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.theme = null; this.isDynScreensLayout = !1; GT186.prototype.initialConstructor_1.call(this, a); this.theme = b; this.isDynScreensLayout = d; }, containerPayInDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_PAYINDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(460, 305))) .child_1( GT1186.prototype .set_0() .child_1( GT872.prototype .set_0() .position_2(0, 0) .size_2(460, 88) .text_1("${payindescriptiontext}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(20, 60, 20, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .id_1(GT307.prototype.TEXT_PAYINDESC) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_PAYINSLIDERBACK).position_2(20, 84).size_2(410, 12)) .child_1(this.slider_4(440, 6, 30, this.theme).position_2(5, 60).id_1(GT307.prototype.ACTION_PAYINSLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_PAYINVALUE1) .text_1("") .position_2(0, 125) .size_2(460, 100) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1) .position_2(420, 20) .child_1(GT1392.prototype.set_0().size_2(20, 20).image_1(this.closeIcon_0()).colorTransformation_1(this.getConsoleColorTransformation_0())) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2) .position_2(420, 20) .child_1(GT1392.prototype.set_0().size_2(20, 20).image_1(this.closeIcon_0()).colorTransformation_1(this.getConsoleColorTransformation_0())) ) .child_1( GT871.prototype .set_0() .id_1(GT763.prototype.ID_DEPOSIT_INFO) .position_2(20, 255) .size_2(420, 30) .horizontal_0() .verticalAlignment_1(GT1489.prototype.TOP) .horizontalAlignment_1(GT1488.prototype.CENTER) .child_1( GT872.prototype .set_0() .size_2(250, 30) .breakLines_1(!1) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.CENTER) .text_1("${notenoughfunds}") .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(1)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(3)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_PAYINACCOUNT) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.DEFAULT).state_2(1, GT1236.prototype.MOUSEOVER)) .child_1( GT872.prototype .set_0() .size_2(170, 30) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .text_1("${depositnow}") .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .addFont_1(this.getButtonFont_1(6)) .gradient_1(this.theme.getNormalButtonGradient_0()) .fontColor_1(this.theme.getNormalButtonColor_0()) ) .child_1( GT872.prototype .set_0() .size_2(170, 30) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .text_1("${depositnow}") .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .addFont_1(this.getButtonFont_1(5)) .addFont_1(this.getButtonFont_1(6)) .gradient_1(GT1238.prototype.invert_1(this.theme.getNormalButtonGradient_0())) ) ) ) .child_1(this.button_3("${neon_alttext_buytickets}", 420, 55).position_2(20, 175).id_1(GT307.prototype.ACTION_BUYTICKETS)) .child_1(this.button_3("${neon_alttext_lobby_account}", 420, 55).position_2(20, 175).id_1(GT307.prototype.ACTION_PAYINACCOUNT2)) ) ) ); }, containerDisableGamblingDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_DISABLE_GAMBLING_DIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(460, 450))) .child_1( GT1186.prototype .set_0() .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_GAMBLING_DIALOG_TITLE) .position_2(0, 0) .size_2(460, 55) .text_1("${neon_disable_gambling_title}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(20, 60, 20, 0) .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .breakLines_1(!1) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1( GT1188.prototype .set_0() .id_1(GT307.prototype.TEXT_GAMBLING_DIALOG_SEPARATOR) .position_2(20, 55) .size_2(420, 1) .color_1(this.theme.getLabelColor_0()) .transparency_1(this.theme.getOverlayBorderAlpha_0()) ) .child_1(this.getGambleImage_4(GT763.prototype.GAMBLE_SINGLE, 364, 160, GT307.prototype.IMG_GAMBLING_SINGLE).scale_2(0.8, 0.8).position_2(48, 70)) .child_1(this.getGambleImage_4(GT763.prototype.GAMBLE_CARD, 280, 160, GT307.prototype.IMG_GAMBLING_CARD).scale_2(0.8, 0.8).position_2(90, 70)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_GAMBLING_DIALOG_TEXT) .text_1("${neon_disable_gambling_desc}") .position_2(20, 231) .size_2(420, 90) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG) .position_2(412, 20) .child_1(GT1392.prototype.set_0().size_2(28, 28).image_1(this.closeIcon_0()).colorTransformation_1(this.getConsoleColorTransformation_0())) ) .child_1(this.toggleButton_4("${neon_settings_off}", 110, 56, !1).position_2(175, 321).id_1(GT307.prototype.ACTION_ENABLE_GAMBLING)) .child_1(this.toggleButton_4("${neon_settings_on}", 110, 56, !0).position_2(175, 321).id_1(GT307.prototype.ACTION_DISABLE_GAMBLING)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_GAMBLING_DIALOG_SAVED) .text_1("${neon_disable_gambling_saved}") .position_2(20, 377) .size_2(420, 70) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) ) ) ); }, containerErrorDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(530, 250)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_ERRORMSG) .position_2(0, 0) .size_2(530, 145) .text_1("") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 20, 0) .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.button_3("${alttext_limitcontinuebutton}", 210, 60).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(160, 160)) .child_1(this.button_3("${alttext_limitstopbutton}", 210, 60).id_1(GT307.prototype.ACTION_STOPGAME).position_2(160, 160)) ) ); }, containerMaximumWinReachedDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(1060, 500)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_ERRORMSG) .position_2(0, 0) .size_2(1060, 290) .text_1("${maximumwinreached}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(50, 50, 40, 0) .addFont_1(this.getLabelExtraLargeFont_1(0)) .addFont_1(this.getLabelExtraLargeFont_1(2)) .addFont_1(this.getLabelExtraLargeFont_1(4)) .addFont_1(this.getLabelExtraLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.button_3("${alttext_limitstopbutton}", 420, 120).id_1(GT307.prototype.ACTION_STOPGAME).position_2(320, 320)) ) ); }, containerResponsibleGamingInfoDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_ERRORDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(530, 300)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_ERRORMSG) .position_2(0, 0) .size_2(530, 200) .text_1("${responsiblegaminginfo}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 20, 0) .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.button_3("${alttext_limitcontinuebutton}", 220, 60).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 210)) .child_1(this.button_3("${moreinfo}", 220, 60).id_1(GT307.prototype.ACTION_RESPONSIBLE_LINK).position_2(280, 210)) ) ); }, containerRealityCheckDialogLeavingGame_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(530, 320)) .child_1( GT872.prototype .set_0() .position_2(0, 0) .size_2(530, 70) .insets_4(35, 35, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK1) ) .child_1( GT872.prototype .set_0() .position_2(0, 70) .size_2(530, 130) .insets_4(35, 35, 0, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK2) ) .child_1(this.button_3("${alttext_realitycheckstop}", 460, 60).id_1(GT307.prototype.ACTION_STOPGAME).position_2(30, 230)) ) ); }, containerRealityCheckDialogIntervalRounds_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(530, 300)) .child_1( GT872.prototype .set_0() .position_2(0, 40) .size_2(530, 200) .insets_4(35, 35, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(3)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK4) ) .child_1(this.button_3("${alttext_realitycheckcontinue}", 200, 60).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(165, 210)) ) ); }, containerRealityCheckDialogIntervalTime_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REALITYCHECKDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(530, 350)) .child_1( GT872.prototype .set_0() .position_2(0, 0) .size_2(530, 80) .insets_4(30, 30, 25, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(4)) .addFont_1(this.getLabelLargeFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK1) ) .child_1( GT872.prototype .set_0() .position_2(0, 80) .size_2(530, 100) .insets_4(30, 30, 0, 0) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .text_1("") .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(3)) .addFont_1(this.getLabelLargeFont_1(5)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) .id_1(GT307.prototype.TEXT_REALITYCHECK2) ) .child_1(this.button_3("${viewaccounthistory}", 220, 60).id_1(GT307.prototype.ACTION_VIEW_HISTORY).position_2(280, 195)) .child_1(this.button_3("${alttext_realitycheckcontinue}", 220, 60).id_1(GT307.prototype.ACTION_KEEPPLAYING).position_2(30, 265)) .child_1(this.button_3("${alttext_realitycheckstop}", 220, 60).id_1(GT307.prototype.ACTION_STOPGAME).position_2(280, 265)) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_TOGGLEREALITYCHECK) .position_2(30, 205) .size_2(42, 38) .child_1( GT1187.prototype .set_0() .size_2(35, 35) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(1) .outerRadius_1(4) .innerRadius_1(4) ) .child_1( GT1186.prototype .set_0() .child_1( GT1187.prototype .set_0() .size_2(35, 35) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1( GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0()) ) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(1) .outerRadius_1(4) .innerRadius_1(4) ) .child_1(GT1392.prototype.set_0().position_2(2, 3).image_1(GT1390.prototype.set_0().tiling_2(1, 1).file_1("/com/greentube/gameconsole/res/neon/checkmark.png"))) ) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_REALITYCHECK3) .position_2(75, 205) .size_2(430, 35) .insets_4(0, 0, 0, 0) .text_1("${realitycheckmessage3}") .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(2)) .addFont_1(this.getLabelLargeFont_1(3)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) ) ) ); }, containerRCSettingsDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_RCSETTINGSDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(450, 250))) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) .position_2(0, 20) .size_2(450, 40) .text_1("${realitycheckintervaltext}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(1)) .addFont_1(this.getLabelMediumFont_1(2)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_RCINTERVAL_SLIDERBACK).position_2(30, 74).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 50).id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER).min_1(0).max_1(10)) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .text_1("") .position_2(30, 105) .size_2(390, 75) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(3)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(this.button_3("${dialog_ok}", 390, 50).id_1(GT307.prototype.ACTION_SETRCSETTINGS).position_2(30, 180)) ) ); }, containerAutoplaySettingsDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_APSETTINGSDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .position_2(0, 0) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(450, 545)) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSEAPSETTINGS) .position_2(405, 20) .child_1(GT1392.prototype.set_0().size_2(20, 20).image_1(this.closeIcon_0()).colorTransformation_1(this.getConsoleColorTransformation_0())) ) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_APROUNDS_MSG) .position_2(0, 20) .size_2(450, 45) .text_1("${autoplayrounds}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_APROUNDS_SLIDERBACK).position_2(30, 74).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 50).id_1(GT307.prototype.ACTION_APROUNDS_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_APROUNDS_VALUE) .text_1("") .position_2(0, 110) .size_2(450, 50) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_APLOSSLIMIT_MSG) .position_2(0, 170) .size_2(450, 45) .text_1("${autoplaylosslimit}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_APLOSSLIMIT_SLIDERBACK).position_2(30, 224).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 200).id_1(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_APLOSSLIMIT_VALUE) .text_1("") .position_2(0, 260) .size_2(450, 100) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_APSINGLEWIN_MSG) .position_2(0, 320) .size_2(450, 45) .text_1("${autoplaysinglewin}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .addFont_1(this.getLabelMediumFont_1(6)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_APSINGLEWIN_SLIDERBACK).position_2(30, 374).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 350).id_1(GT307.prototype.ACTION_APSINGLEWIN_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_APSINGLEWIN_VALUE) .text_1("") .position_2(0, 410) .size_2(450, 50) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(this.button_3("${dialog_ok}", 390, 50).id_1(GT307.prototype.ACTION_SETAPSETTINGS).position_2(30, 470)) ) ); }, getConsoleColorTransformation_0: function () { return this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0(); }, containerSessionSettingsDialog_2: function (a, b) { return GT1186.prototype .set_0() .id_1(GT307.prototype.ID_SESSIONSETTINGSDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(GT1186.prototype.set_0().resizeToContent_1(!0).child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(450, 640))) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME_MSG) .position_2(0, 20) .size_2(450, 45) .text_1("${sesstimeout}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .addFont_1(this.getLabelMediumFont_1(6)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1(this.sliderBack_0().position_2(30, 74).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 50).id_1(GT307.prototype.ACTION_SESSIONTIME_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_SESSIONTIME_VALUE) .text_1("") .position_2(0, 110) .size_2(450, 50) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_MSG) .position_2(0, 170) .size_2(450, 45) .text_1("${rcinterval}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(30, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(2)) .addFont_1(this.getLabelMediumFont_1(4)) .addFont_1(this.getLabelMediumFont_1(6)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1(this.sliderBack_0().position_2(30, 224).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 200).id_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RCINTERVAL_VALUE) .text_1("") .position_2(0, 260) .size_2(450, 50) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ID_RGBLOCK_TOGGLE) .position_2(30, 320) .size_2(42, 38) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/gameconsole/res/neon/check-off.png").size_2(60, 30)) .child_1(GT1392.prototype.set_0().imageFile_1("/com/greentube/gameconsole/res/neon/check-on.png").size_2(60, 30)) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_RGBLOCK_MSG) .position_2(0, 320) .size_2(450, 120) .text_1("${blockperiod}") .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.TOP) .insets_4(100, 30, 0, 0) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(1)) .addFont_1(this.getLabelMediumFont_1(2)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) .child_1( GT1186.prototype .set_0() .id_1(GT307.prototype.ID_CONTAINER_RGBLOCK) .position_2(0, 425) .resizeToContent_1(!0) .child_1(this.sliderBack_0().position_2(30, 44).size_2(390, 12)) .child_1(this.slider_4(420, 6, 30, this.theme).position_2(15, 20).id_1(GT307.prototype.ACTION_RGBLOCK_SLIDER).min_1(0).max_1(10)) .child_1( GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_RGBLOCK_VALUE) .text_1("") .position_2(0, 80) .size_2(450, 50) .insets_4(0, 0, 0, 0) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .font_1(this.getLabelLargeFont_1(0)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) ) ) .child_1(this.button_3("${dialog_ok}", 390, 60).id_1(GT307.prototype.ACTION_SENDSETTINGS).position_2(30, 555)) ) ); }, containerReplayDialog_2: function (a, b) { var d = GT1186.prototype .set_0() .id_1(GT307.prototype.ID_REPLAYDIALOG) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.TOP) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1(this.dialogBackGround_0().id_1(GT307.prototype.ID_DIALOG_BACKGROUND).size_2(300, 130)) .child_1(this.buttonIcon_3(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-back.png").overrideSize_2(10, 10), 35, 35).id_1(GT307.prototype.ACTION_REWIND).position_2(20, 45)) .child_1(this.buttonIcon_3(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-fw.png").overrideSize_2(10, 10), 35, 35).id_1(GT307.prototype.ACTION_FORWARD).position_2(245, 45)) .child_1(this.buttonIcon_3(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-play.png").overrideSize_2(10, 10), 35, 35).id_1(GT307.prototype.ACTION_PLAY).position_2(60, 45)) .child_1( GT873.prototype .set_0() .id_1(GT307.prototype.ACTION_CLOSEREPLAY) .position_2(255, 14) .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(18, 18))) .child_1( GT1392.prototype .set_0() .colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(18, 18)) ) .child_1( GT1392.prototype .set_0() .colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getColorTransformation_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(18, 18)) ) .child_1( GT1392.prototype .set_0() .colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getColorTransformation_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/replay/replay-close.png").overrideSize_2(18, 18)) ) ) .child_1(this.sliderBack_0().id_1(GT307.prototype.ID_RCINTERVAL_SLIDERBACK).position_2(20, 101).size_2(260, 8)) .child_1(this.slider_4(284, 4, 24, this.theme).position_2(8, 81).id_1(GT307.prototype.ACTION_SLIDERREPLAY)) .child_1( GT1187.prototype .set_0() .position_2(100, 45) .size_2(140, 35) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(4) .borderThickness_1(1) .colorArea_1(GT1391.prototype.set_0().rgb_1(2236962)) .colorBorder_1(GT1391.prototype.set_0().rgb_1(5592405)) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYINFO) .position_2(95, 45) .size_2(150, 35) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(10, 10, 5, 5) .addFont_1(this.getLabelMediumFont_1(0)) .addFont_1(this.getLabelMediumFont_1(1)) .addFont_1(this.getLabelMediumFont_1(2)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) .child_1( GT872.prototype .set_0() .id_1(GT307.prototype.TEXT_REPLAYTIME) .position_2(10, 5) .size_2(150, 35) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.CENTER) .insets_4(10, 10, 5, 5) .addFont_1(this.getLabelLargeFont_1(0)) .addFont_1(this.getLabelLargeFont_1(1)) .addFont_1(this.getLabelLargeFont_1(2)) .fontColor_1(this.theme.getLabelColor_0()) .gradient_1(this.theme.getLabelGradient_0()) ) ) ); this.isDynScreensLayout && d.position_2(0, 30); return d; }, button_3: function (a, b, d) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .fontColor_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getNormalButtonGradient_0()) .fontColor_1(this.theme.getNormalButtonColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.97, 0.97) .position_2(Integer.truncate_1((b - 0.97 * b) / 2), Integer.truncate_1((d - 0.97 * d) / 2)) .size_2(b, d) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getNormalButtonGradient_0()) .fontColor_1(this.theme.getNormalButtonColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .size_2(b, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(GT1238.prototype.invert_1(this.theme.getNormalButtonGradient_0())) .fontColor_1(this.theme.getNormalButtonColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ); }, toggleButton_4: function (a, b, d, e) { var f = Math.div(b, 2), g = e ? 1 : f - 1, k = e ? f + 4 : 6, m = e ? GT1019.prototype.CCK_BUTTON_PRIMARY : GT1019.prototype.CCK_BUTTON_DEFAULT, m = this.theme.getConsoleColorSet_0().getButtonColorSet_1(m); e = e ? "/com/greentube/gameconsole/res/neon/mobile/on-icon.png" : "/com/greentube/gameconsole/res/neon/mobile/off-icon.png"; return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(m.getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getInactive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .fontColor_1(m.getInactive_0().getBorder_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getInactive_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getActive_0().getBackgroundAlpha_0())) .colorBorder_1(m.getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getActive_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getActive_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(m.getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getPressed_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.97, 0.97) .position_2(Integer.truncate_1((b - 0.97 * b) / 2), Integer.truncate_1((d - 0.97 * d) / 2)) .size_2(b, d) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getPressed_0().getColorTransformation_0())) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(m.getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(m.getHover_0().getBackgroundAlpha_0())) .colorBorder_1(m.getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(m.getHover_0().getBorderAlpha_0())) .borderThickness_1(3) .outerRadius_1(8) .innerRadius_1(8) ) .child_1( GT872.prototype .set_0() .position_2(g, 0) .size_2(f, d) .text_1(a) .addFont_1(this.getButtonFont_1(0)) .addFont_1(this.getButtonFont_1(1)) .addFont_1(this.getButtonFont_1(2)) .addFont_1(this.getButtonFont_1(3)) .addFont_1(this.getButtonFont_1(4)) .gradient_1(this.theme.getLabelGradient_0()) .fontColor_1(this.theme.getLabelColor_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(5, 5, 5, 5) ) .child_1(GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(e)).position_2(k, 6).colorTransformation_1(m.getHover_0().getColorTransformation_0())) ); }, buttonIcon_3: function (a, b, d) { return GT873.prototype .set_0() .size_2(b, d) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1(GT871.prototype.set_0().horizontalAlignment_1(GT1488.prototype.CENTER).verticalAlignment_1(GT1489.prototype.CENTER).child_1(GT1392.prototype.set_0().image_1(a))) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getColorTransformation_0())) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT1186.prototype .set_0() .contentScaling_2(0.9, 0.9) .position_2(Integer.truncate_1((b - 0.9 * b) / 2), Integer.truncate_1((d - 0.9 * d) / 2)) .size_2(b, d) .child_1( GT871.prototype .set_0() .size_2(b, d) .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getColorTransformation_0()) ) ) ) ) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .size_2(b, d) .colorArea_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackgroundAlpha_0())) .colorBorder_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .borderThickness_1(2) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(3) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1(GT1392.prototype.set_0().image_1(a).colorTransformation_1(this.theme.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getColorTransformation_0())) ) ); }, sliderBack_0: function () { return GT1187.prototype.set_0().outerRadius_1(4).innerRadius_1(4).numberOfEdges_1(4).borderThickness_1(1).colorArea_1(GT1391.prototype.set_0().rgb_1(2236962)).colorBorder_1(GT1391.prototype.set_0().rgb_1(5592405)); }, getLabelMediumFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_MEDIUM, a); }, getLabelLargeFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_LARGE, a); }, getLabelExtraLargeFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_LABEL_EXTRA_LARGE, a); }, getButtonFont_1: function (a) { return this.theme.getConsoleFont_0().getPFont_2(GT1237.prototype.FCK_SECONDARY_BUTTON, a); }, dialogBackGround_0: function () { return GT1187.prototype .set_0() .colorArea_1(this.theme.getPopupBgColor_0()) .colorBorder_1(this.theme.getPopupBorderColor_0()) .borderThickness_1(2) .outerRadius_1(this.theme.getPopupRadius_0()) .innerRadius_1(this.theme.getPopupRadius_0()) .transparencyArea_1(this.theme.getPopupBgAlpha_0()) .transparencyBorder_1(this.theme.getPopupBorderAlpha_0()); }, closeIcon_0: function () { return GT1390.prototype.set_0().tiling_2(1, 1).file_1("/com/greentube/gameconsole/res/neon/mobile/close-icon.png").overrideSize_2(32, 32); }, getGambleImage_4: function (a, b, d, e) { return GT818.prototype.set_0().image_1(GT1390.prototype.set_0().file_1(a)).id_1(e).size_2(b, d); }, loadResources_1: function (a) { GT186.prototype.loadResources_1.call(this, a); a.getResourceManager_0().startLoadImage_4(GT763.prototype.GAMBLE_CARD, 1, 1, !1); a.getResourceManager_0().startLoadImage_4(GT763.prototype.GAMBLE_SINGLE, 1, 1, !1); }, }, "GT763", [] ); GT763.prototype.slider_4 = function (a, b, d, e) { var f = Math.div(d, 2); return GT1335.prototype .set_0() .id_1(GT307.prototype.ACTION_PAYINSLIDER) .width_1(a) .height_1(2 * d) .min_1(0) .max_1(10) .background_1( GT1186.prototype .set_0() .child_1( GT1186.prototype .set_0() .position_2(f, d - b) .size_2(a - d, b) .child_1( GT1187.prototype .set_0() .size_2(a - d, 2 * b) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorderAlpha_0())) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(4) ) ) .child_1( GT1186.prototype .set_0() .position_2(f, d) .size_2(a, b) .child_1( GT1187.prototype .set_0() .position_2(0, -b) .size_2(a - d, 2 * b) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorderAlpha_0())) .outerRadius_1(4) .innerRadius_1(4) .numberOfEdges_1(4) ) ) ) .sliderButtonState_2( GT1236.prototype.DEFAULT, GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .position_2(0 + Math.div(d, 2), 2 + Math.div(d, 2)) .size_2(d - 2, d - 2) .outerRadius_1(f) .colorArea_1(GT1391.prototype.set_0().black_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(10)) .numberOfEdges_1(7) ) .child_1( GT1187.prototype .set_0() .position_2(2 + Math.div(d, 2), 0 + Math.div(d, 2)) .size_2(d, d) .outerRadius_1(f) .innerRadius_1(4) .borderThickness_1(f - 4) .colorBorder_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBorder_0()) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getActive_0().getBackground_0()) .numberOfEdges_1(5) ) ) .sliderButtonState_2( GT1236.prototype.PRESSED, GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .position_2(2, 0) .size_2(2 * d, 2 * d) .outerRadius_1(d) .innerRadius_1(d) .colorArea_1(GT1391.prototype.set_0().black_0()) .colorBorder_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .borderThickness_1(1) .transparencyArea_1(GT1022.prototype.set_0().percent_1(15)) .numberOfEdges_1(9) ) .child_1( GT1187.prototype .set_0() .position_2(2 + Math.div(d, 2), Math.div(d, 2)) .size_2(d, d) .outerRadius_1(f) .innerRadius_1(4) .borderThickness_1(f - 4) .colorBorder_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBorder_0()) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getPressed_0().getBackground_0()) .numberOfEdges_1(5) ) ) .sliderButtonState_2( GT1236.prototype.MOUSEOVER, GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .position_2(0 + Math.div(d, 2), 2 + Math.div(d, 2)) .size_2(d - 2, d - 2) .outerRadius_1(f) .colorArea_1(GT1391.prototype.set_0().black_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(10)) .numberOfEdges_1(7) ) .child_1( GT1187.prototype .set_0() .position_2(2 + Math.div(d, 2), 0 + Math.div(d, 2)) .size_2(d, d) .outerRadius_1(f) .innerRadius_1(4) .borderThickness_1(f - 4) .colorBorder_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBorder_0()) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getHover_0().getBackground_0()) .numberOfEdges_1(5) ) ) .sliderButtonState_2( GT1236.prototype.INACTIVE, GT1186.prototype .set_0() .resizeToContent_1(!0) .child_1( GT1187.prototype .set_0() .position_2(0 + Math.div(d, 2), 2 + Math.div(d, 2)) .size_2(d - 2, d - 2) .outerRadius_1(f) .colorArea_1(GT1391.prototype.set_0().black_0()) .transparencyArea_1(GT1022.prototype.set_0().percent_1(10)) .numberOfEdges_1(7) ) .child_1( GT1187.prototype .set_0() .position_2(2 + Math.div(d, 2), 0 + Math.div(d, 2)) .size_2(d, d) .outerRadius_1(f) .innerRadius_1(4) .borderThickness_1(f - 4) .colorBorder_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBorder_0()) .colorArea_1(e.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_BUTTON_DEFAULT).getInactive_0().getBackground_0()) .numberOfEdges_1(5) ) ); }; GT763.prototype.ID_DEPOSIT_INFO = GT1677.prototype.generateID_0(); GT763.prototype.GAMBLE_CARD = "/com/greentube/gameconsole/res/neon/mobile/gamble-card.png"; GT763.prototype.GAMBLE_SINGLE = "/com/greentube/gameconsole/res/neon/mobile/gamble-single.png"; var GT389 = GT763.extend( { initialConstructor_0: function () { GT763.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT763.prototype.initialConstructor_3.call(this, a, b, d); }, }, "GT389", [] ), GT1314 = GT1190.extend( { initialConstructor_0: function () { this.cb = null; this.totaltime = this.stoprot = this.startrot = 0; this.mg = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.cb = null; this.totaltime = this.stoprot = this.startrot = 0; this.mg = null; GT1190.prototype.initialConstructor_3.call(this, a, 20, !1); this.cb = b; this.totaltime = f; this.startrot = d; this.stoprot = e; this.mg = null; }, setMotionGraph_1: function (a) { this.mg = a; }, action_1: function (a) { a -= this.getStartTime_0(); if (null == this.cb || !this.cb.isAlive_0()) return !1; var b = this.computeRotation_2(a, this.totaltime); this.cb.setRotation_1(b); return a < this.totaltime; }, computeRotation_2: function (a, b) { if (0 < b && a < b) { if (null == this.mg) return this.startrot + ((this.stoprot - this.startrot) * a) / b - 0; var d = this.mg.computeWay_1(a / b); return this.startrot + (this.stoprot - this.startrot) * d; } return this.stoprot; }, }, "GT1314", [] ), GT488 = GT1076.extend( { initialConstructor_0: function () { this.motionGraph = null; this.duration = this.pausedtime = this.starttime = this.targetY = this.targetX = this.startY = this.startX = 0; this.useAnchorToMove = !1; GT1076.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT488.prototype.initialConstructor_8.call(this, a, b, b.getX_0(), b.getY_0(), d, e, f, g); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT488.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, 16, m); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.motionGraph = null; this.duration = this.pausedtime = this.starttime = this.targetY = this.targetX = this.startY = this.startX = 0; this.useAnchorToMove = !1; GT1076.prototype.initialConstructor_4.call(this, a, b, m, n); this.startX = d; this.startY = e; this.targetX = f; this.targetY = g; this.duration = k; this.pausedtime = this.starttime = -1; this.useAnchorToMove = !1; }, isGUIObjectAlive_0: function () { return this.getObject_0().isAlive_0(); }, isUseAnchorToMove_0: function () { return this.useAnchorToMove; }, setUseAnchorToMove_1: function (a) { this.useAnchorToMove = a; }, getTargetX_0: function () { return this.targetX; }, getTargetY_0: function () { return this.targetY; }, setTargetX_1: function (a) { this.targetX = a; }, setTargetY_1: function (a) { this.targetY = a; }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setMotionGraph_1: function (a) { this.motionGraph = a; }, reset_0: function () { this.resetImpl_0(); this.pausedtime = this.starttime = -1; }, start_0: function () { this.starttime = this.getCurrentTimeMillis_0(); GT1076.prototype.start_0.call(this); }, action_1: function (a) { a -= this.starttime; var b = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > b && (b = 0); 1 < b && (b = 1); null != this.motionGraph && 0 < b && 1 > b && (b = this.motionGraph.computeWay_1(b)); var d = this.startX + Integer.truncate_1((this.targetX - this.startX) * b), b = this.startY + Integer.truncate_1((this.targetY - this.startY) * b); this.useAnchorToMove ? this.getObject_0().moveAnchor_2(d, b) : this.getObject_0().move_2(d, b); return a >= this.duration ? (this.useAnchorToMove ? this.getObject_0().moveAnchor_2(this.targetX, this.targetY) : this.getObject_0().move_2(this.targetX, this.targetY), !1) : !0; }, pause_0: function () { this.isRunning_0() && !this.isPaused_0() && (this.pausedtime = this.getTimer_0().currentTimeMillis_0()); GT1076.prototype.pause_0.call(this); }, resume_0: function () { if (this.isRunning_0() && this.isPaused_0()) { var a = this.pausedtime - this.starttime; this.starttime = this.getTimer_0().currentTimeMillis_0() - a; } GT1076.prototype.resume_0.call(this); }, }, "GT488", [GT1325, GT1271] ); GT488.prototype.calculateDurationFromSpeed_4 = function (a, b, d, e) { b -= a.getX_0(); a = d - a.getY_0(); a = Math.sqrt_1(b * b + a * a); return Integer.truncate_1(Math.div(1e3 * a, e)); }; var GT653 = GT1076.extend( { initialConstructor_0: function () { this.motionGraph = null; this.pausedtime = this.starttime = this.duration = this.targetY = this.targetX = this.startY = this.startX = 0; this.useAnchorToMove = !1; GT1076.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT653.prototype.initialConstructor_6.call(this, a, b, d, e, f, !1); }, initialConstructor_6: function (a, b, d, e, f, g) { this.motionGraph = null; this.pausedtime = this.starttime = this.duration = this.targetY = this.targetX = this.startY = this.startX = 0; this.useAnchorToMove = !1; GT1076.prototype.initialConstructor_4.call(this, a, b, 1, g); this.setTargetX_1(d); this.setTargetY_1(e); this.setDuration_1(f); this.pausedtime = this.starttime = -1; this.useAnchorToMove = !0; }, isUseAnchorToMove_0: function () { return this.useAnchorToMove; }, setUseAnchorToMove_1: function (a) { this.useAnchorToMove = a; }, getTargetX_0: function () { return this.targetX; }, getTargetY_0: function () { return this.targetY; }, setTargetX_1: function (a) { this.isRunning_0() || (this.targetX = a); }, setTargetY_1: function (a) { this.isRunning_0() || (this.targetY = a); }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setMotionGraph_1: function (a) { this.motionGraph = a; }, reset_0: function () { this.resetImpl_0(); this.pausedtime = this.starttime = -1; }, start_0: function () { GT1560.prototype.isAlive_1(this.getObject_0()) ? ((this.starttime = this.getCurrentTimeMillis_0()), (this.startX = this.useAnchorToMove ? this.getObject_0().getAnchorX_0() : this.getObject_0().getX_0()), (this.startY = this.useAnchorToMove ? this.getObject_0().getAnchorY_0() : this.getObject_0().getY_0()), GT1076.prototype.start_0.call(this)) : this.killWithoutTriggers_0(); }, applyMovementValues_2: function (a, b) { this.useAnchorToMove ? this.getObject_0().moveAnchor_2(a, b) : this.getObject_0().move_2(a, b); }, action_1: function (a) { if (!GT1560.prototype.isAlive_1(this.getObject_0())) return !1; a -= this.starttime; if (a >= this.duration) return this.applyMovementValues_2(this.targetX, this.targetY), !1; var b = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > b ? (b = 0) : 1 < b && (b = 1); null != this.motionGraph && 0 < b && 1 > b && (b = this.motionGraph.computeWay_1(b)); a = GT1672.prototype.doubleToInt_1(this.startX + (this.targetX - this.startX) * b); b = GT1672.prototype.doubleToInt_1(this.startY + (this.targetY - this.startY) * b); this.applyMovementValues_2(a, b); return !0; }, pause_0: function () { this.isRunning_0() && !this.isPaused_0() && (this.pausedtime = this.getTimer_0().currentTimeMillis_0()); GT1076.prototype.pause_0.call(this); }, resume_0: function () { if (this.isRunning_0() && this.isPaused_0()) { var a = this.pausedtime - this.starttime; this.starttime = this.getTimer_0().currentTimeMillis_0() - a; } GT1076.prototype.resume_0.call(this); }, }, "GT653", [GT1271] ); GT653.prototype.calculateDurationFromSpeed_4 = function (a, b, d, e) { b -= a.getX_0(); a = d - a.getY_0(); a = Math.sqrt_1(b * b + a * a); return Integer.truncate_1(Math.div(1e3 * a, e)); }; var GT950 = GT1190.extend( { initialConstructor_0: function () { this.particleButtons = this.sources = null; this.particlesShootable = !1; this.life = this.s = this.v = this.a = this.container = this.particleTextures = null; this.maxParticles = this.nrParticles = 0; this.scale = this.gravity = null; this.airResistanceFactor = this.dieSpeed = 0; this.random = null; this.initialized = !1; this.dt = this.updateCounter = this.updateInterval = 0; this.particleGenerated = !1; this.refreshList = this.guiImages = null; this.paintInterval = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.particleButtons = this.sources = null; this.particlesShootable = !1; this.life = this.s = this.v = this.a = this.container = this.particleTextures = null; this.maxParticles = this.nrParticles = 0; this.scale = this.gravity = null; this.airResistanceFactor = this.dieSpeed = 0; this.random = null; this.initialized = !1; this.dt = this.updateCounter = this.updateInterval = 0; this.particleGenerated = !1; this.refreshList = this.guiImages = null; this.paintInterval = 0; GT1190.prototype.initialConstructor_3.call(this, a, 40, !1); this.paintInterval = 40; this.updateInterval = e; this.sources = b; this.particleTextures = d; this.gravity = new GT1631(0, 0); this.initialized = !1; this.init_0(); }, initialConstructor_5: function (a, b, d, e, f) { this.particleButtons = this.sources = null; this.particlesShootable = !1; this.life = this.s = this.v = this.a = this.container = this.particleTextures = null; this.maxParticles = this.nrParticles = 0; this.scale = this.gravity = null; this.airResistanceFactor = this.dieSpeed = 0; this.random = null; this.initialized = !1; this.dt = this.updateCounter = this.updateInterval = 0; this.particleGenerated = !1; this.refreshList = this.guiImages = null; this.paintInterval = 0; GT1190.prototype.initialConstructor_3.call(this, a, 40, !1); this.paintInterval = 40; this.updateInterval = f; this.sources = b; this.particleTextures = d; this.gravity = e; this.random = new GT1561(a.currentTimeMillis_0()); this.initialized = !1; this.init_0(); }, init_0: function () { this.updateCounter = 0; this.particlesShootable = !1; this.scale = new GT1631(1, 1); this.nrParticles = this.sources.length; this.airResistanceFactor = 0.97; this.maxParticles = 50 * this.nrParticles; this.a = [].createArray(this.maxParticles); this.v = [].createArray(this.maxParticles); this.s = [].createArray(this.maxParticles); this.life = [].createArray(this.maxParticles).init(0); this.dieSpeed = 0.95; for (var a = 0; a < this.nrParticles; a++) (this.s[a] = new GT1631(this.sources[a].x, this.sources[a].y)), (this.v[a] = new GT1631(30 * this.gravity.x, 30 * this.gravity.y)), (this.a[a] = new GT1631(this.gravity.x, this.gravity.y)), (this.life[a] = 1.5); this.initialized = !0; this.particleButtons = new java_util_JavaScriptVector(); this.guiImages = [].createArray(this.maxParticles); this.refreshList = [].createArray(this.maxParticles); }, isParticlesShootable_0: function () { return this.particlesShootable; }, setParticlesShootable_1: function (a) { this.particlesShootable = a; }, setMaxParticles_1: function (a) { this.maxParticles = a; }, setParcticleImageScale_2: function (a, b) { this.scale.x = a; this.scale.y = b; }, setDieSpeed_1: function (a) { this.dieSpeed = a; }, setAirResistance_1: function (a) { this.airResistanceFactor = a; }, setContainer_1: function (a) { if (null == this.container || !this.container.isAlive_0()) for (this.container = new GT1437(a), this.particleButtons.removeAllElements_0(), a = 0; a < this.nrParticles && null != this.particleTextures && null != this.particleTextures[0]; a++) { var b = this.particleTextures[0]; a >= this.particleTextures.length ? (b = this.particleTextures[a % this.particleTextures.length]) : null != this.particleTextures[a] && (b = this.particleTextures[a]); var d = new GT1559( this.container, Integer.truncate_1(this.s[a].x), Integer.truncate_1(this.s[a].y), Math.div(Integer.truncate_1(this.scale.x) * b.getWidth_0(), 4), Integer.truncate_1(this.scale.y) * b.getHeight_0() ); d.setShowHandCursor_1(!1); d.addButtonListener_1(this); this.guiImages[a] = new GT1591(d, 0, 0, Math.div(Integer.truncate_1(this.scale.x) * b.getWidth_0(), 4), Integer.truncate_1(this.scale.y) * b.getHeight_0(), b, 0, 0, !0); this.particleButtons.addElement_1(d); } }, start_0: function () { null != this.sources && null != this.particleTextures && null != this.container && (0 == this.initialized && this.init_0(), 0 == this.initialized || this.isPaused_0() || (GT1190.prototype.start_0.call(this), this.container.hide_1(!1))); }, updateParticleProperties_2: function (a, b) { var d = new GT1631(this.a[a].x, this.a[a].y); this.v[a].add_1(d); this.v[a].add_1(this.gravity); this.a[a].x *= this.dieSpeed; this.a[a].y *= this.dieSpeed; this.life[a] *= this.dieSpeed; 0.4 > this.a[a].distance_0() && ((this.a[a].x = this.random.nextDouble_0() - 0.5), (this.a[a].y = this.random.nextDouble_0() - 0.5)); }, generateParticle_0: function () { if (this.nrParticles < this.maxParticles) { this.s[this.nrParticles] = new GT1631(this.sources[this.nrParticles % this.particleTextures.length].x, this.sources[this.nrParticles % this.particleTextures.length].y); this.v[this.nrParticles] = new GT1631(30 * this.gravity.x, 30 * this.gravity.y); this.a[this.nrParticles] = new GT1631(this.gravity.x, this.gravity.y); this.life[this.nrParticles] = 1.2; this.refreshList[this.nrParticles] = GT950.prototype.PARTICLE_REFRESH; this.updateParticleProperties_2(this.nrParticles, 0); var a = this.nrParticles % this.particleTextures.length, b = new GT1559( this.container, Integer.truncate_1(this.s[this.nrParticles].x), Integer.truncate_1(this.s[this.nrParticles].y), Math.div(Integer.truncate_1(this.scale.x) * this.particleTextures[a].getWidth_0(), 4), Integer.truncate_1(this.scale.y) * this.particleTextures[a].getHeight_0() ); b.setShowHandCursor_1(!1); b.addButtonListener_1(this); this.guiImages[this.nrParticles] = new GT1591( b, 0, 0, Math.div(Integer.truncate_1(this.scale.x) * this.particleTextures[a].getWidth_0(), 4), Integer.truncate_1(this.scale.y) * this.particleTextures[a].getHeight_0(), this.particleTextures[a], 0, 0, !0 ); this.particleButtons.addElement_1(b); this.refreshParticle_1(this.nrParticles); this.nrParticles++; } }, action_1: function (a) { if (null == this.container || !this.container.isAlive_0()) return !0; this.updateCounter = (this.updateCounter + 1) % this.updateInterval; this.generateParticle_0(); a = this.nrParticles; this.particleGenerated = !1; for (var b = 0; b < a; b++) { this.updateParticlePosition_2(b, this.dt); 0 == this.updateCounter && this.updateParticleProperties_2(b, this.dt); this.particleGenerated || 0 != this.updateCounter % 6 || this.refreshParticle_1(b); if (null == this.container.getChild_1(b)) break; this.displayParticle_1(b); } return !0; }, displayParticle_1: function (a) { this.refreshList[a] != GT950.prototype.PARTICLE_REFRESH && (this.container.getChild_1(a).moveAnchor_2(Integer.truncate_1(this.s[a].x), Integer.truncate_1(this.s[a].y)), this.refreshList[a] == GT950.prototype.PARTICLE_ALIVE && this.guiImages[a].setAlpha_1(Integer.truncate_1(175 * this.life[a] + 175))); }, updateParticlePosition_2: function (a, b) { var d = new GT1631(this.v[a].x, this.v[a].y); this.s[a].add_1(d); this.v[a].x *= this.airResistanceFactor; this.v[a].y *= this.airResistanceFactor; }, refreshParticle_1: function (a) { if ( this.refreshList[a] == GT950.prototype.PARTICLE_ALIVE && (0.3 > this.life[a] || this.s[a].x > this.container.getWidth_0() + 50 || -50 > this.s[a].x || this.s[a].y > this.container.getHeight_0() + 50 || -50 > this.s[a].y) ) { var b = new GT1131(this.getTimer_0(), this.guiImages[a], this.particleTextures[a % this.particleTextures.length].getColumns_0(), 200, 0), d = new GT1191(this.getTimer_0(), this.guiImages[a], !1, 0, 0, 200, 50); this.refreshList[a] = GT950.prototype.PARTICLE_DIE_ANIMATION; b.addFinishCallback_1(new GT823(this.refreshList, a, GT950.prototype.PARTICLE_REFRESH)); b.start_0(); d.start_0(); } this.refreshList[a] == GT950.prototype.PARTICLE_REFRESH && ((this.life[a] = 1.2), (b = a % this.sources.length), b == this.sources.length && b--, (this.s[a].x = this.sources[b].x), (this.s[a].y = this.sources[b].y), (this.a[a].x = 2.5 * (this.random.nextDouble_0() - 0.5)), (this.a[a].y = 2.5 * (this.random.nextDouble_0() - 0.5)), (this.v[a].x = 10 * this.gravity.x + this.a[a].x), (this.v[a].y = 10 * this.gravity.y + this.a[a].y), (this.particleGenerated = !0), (this.refreshList[a] = GT950.prototype.PARTICLE_ALIVE), this.guiImages[a].setSourcePoint_2(0, 0)); }, pause_0: function () { if (null != this.container && this.container.isAlive_0()) for (var a = 0; a < this.container.count_0(); a++) if (null != this.container.getChild_1(a)) { var b = this.container.getChild_1(a).getChild_1(0); null != b && b.setAlpha_1(150); } GT1190.prototype.pause_0.call(this); }, resume_0: function () { null != this.container && this.container.isAlive_0() && this.container.hide_1(!1); GT1190.prototype.resume_0.call(this); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, startDrag_1: function (a) {}, drag_1: function (a) {}, drop_1: function (a) {}, click_1: function (a) {}, down_1: function (a) { if (this.particlesShootable) for (var b = 0; b < this.particleButtons.size_0(); b++) if (this.particleButtons.elementAt_1(b).equals_1(a)) { this.life[b] = 0; this.refreshParticle_1(b); break; } }, up_1: function (a) {}, interval_0: function () { return this.paintInterval; }, setPaintInterval_1: function (a) { this.paintInterval = a; }, }, "GT950", [GT1066] ); GT950.prototype.PARTICLE_ALIVE = new Integer(0); GT950.prototype.PARTICLE_DIE_ANIMATION = new Integer(1); GT950.prototype.PARTICLE_REFRESH = new Integer(2); var GT1393 = Class.extend( { initialConstructor_0: function () { this.fontname = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.fontname = null; this.fontname = a; }, name_0: function () { return this.fontname; }, }, "GT1393", [] ); GT1393.prototype.findFont_1 = function (a) { if (null == a) return null; if (a.equals_1(GT1393.prototype.AERO_L.fontname)) return GT1393.prototype.AERO_L; if (a.equals_1(GT1393.prototype.ARIAL_BLACK.fontname)) return GT1393.prototype.ARIAL_BLACK; if (a.equals_1(GT1393.prototype.ARIAL.fontname)) return GT1393.prototype.ARIAL; if (a.equals_1(GT1393.prototype.COURIER.fontname)) return GT1393.prototype.COURIER; if (a.equals_1(GT1393.prototype.GEORGIA.fontname)) return GT1393.prototype.GEORGIA; if (a.equals_1(GT1393.prototype.TIMES.fontname)) return GT1393.prototype.TIMES; if (a.equals_1(GT1393.prototype.VERDANA.fontname)) return GT1393.prototype.VERDANA; if (a.equals_1(GT1393.prototype.AUGUSTA.fontname)) return GT1393.prototype.AUGUSTA; if (a.equals_1(GT1393.prototype.BASKE18.fontname)) return GT1393.prototype.BASKE18; if (a.equals_1(GT1393.prototype.BUCKINGHAM.fontname)) return GT1393.prototype.BUCKINGHAM; if (a.equals_1(GT1393.prototype.EVIL_DEAD.fontname)) return GT1393.prototype.EVIL_DEAD; if (a.equals_1(GT1393.prototype.LOUNGY.fontname)) return GT1393.prototype.LOUNGY; if (a.equals_1(GT1393.prototype.FUTURICAL.fontname)) return GT1393.prototype.FUTURICAL; if (a.equals_1(GT1393.prototype.GLECB.fontname)) return GT1393.prototype.GLECB; if (a.equals_1(GT1393.prototype.AGBB_FINAL.fontname)) return GT1393.prototype.AGBB_FINAL; if (a.equals_1(GT1393.prototype.AERO_L.fontname)) return GT1393.prototype.AERO_L; if (a.equals_1(GT1393.prototype.A039000D.fontname)) return GT1393.prototype.A039000D; if (a.equals_1(GT1393.prototype.ASRAFEL.fontname)) return GT1393.prototype.ASRAFEL; if (a.equals_1(GT1393.prototype.CAESAR.fontname)) return GT1393.prototype.CAESAR; if (a.equals_1(GT1393.prototype.HARRINGTON.fontname)) return GT1393.prototype.HARRINGTON; if (a.equals_1(GT1393.prototype.BOOK_ANTIQUA.fontname)) return GT1393.prototype.BOOK_ANTIQUA; if (a.equals_1(GT1393.prototype.FIESTA.fontname)) return GT1393.prototype.FIESTA; if (a.equals_1(GT1393.prototype.ESQUARE.fontname)) return GT1393.prototype.ESQUARE; if (a.equals_1(GT1393.prototype.FRANK.fontname)) return GT1393.prototype.FRANK; if (a.equals_1(GT1393.prototype.FLORALESS.fontname)) return GT1393.prototype.FLORALESS; if (a.equals_1(GT1393.prototype.OIL_MAKES_YOU_RUN_FASTER.fontname)) return GT1393.prototype.OIL_MAKES_YOU_RUN_FASTER; if (a.equals_1(GT1393.prototype.MADFONT.fontname)) return GT1393.prototype.MADFONT; if (a.equals_1(GT1393.prototype.OLDGATE_LANE.fontname)) return GT1393.prototype.OLDGATE_LANE; if (a.equals_1(GT1393.prototype.PAPYRUS.fontname)) return GT1393.prototype.PAPYRUS; if (a.equals_1(GT1393.prototype.PAPYRUS_CONDENSED.fontname)) return GT1393.prototype.PAPYRUS_CONDENSED; if (a.equals_1(GT1393.prototype.FRANKLIN_GOTHIC_HEAVY.fontname)) return GT1393.prototype.FRANKLIN_GOTHIC_HEAVY; if (a.equals_1(GT1393.prototype.LITHOS_PRO.fontname)) return GT1393.prototype.LITHOS_PRO; if (a.equals_1(GT1393.prototype.TW_CEN_MT_CONDENSED_EXTRA_BOLD.fontname)) return GT1393.prototype.TW_CEN_MT_CONDENSED_EXTRA_BOLD; if (a.equals_1(GT1393.prototype.COOPERMAN.fontname)) return GT1393.prototype.COOPERMAN; if (a.equals_1(GT1393.prototype.COMIC_SANS_MS.fontname)) return GT1393.prototype.COMIC_SANS_MS; if (a.equals_1(GT1393.prototype.GILL_SANS_MT.fontname)) return GT1393.prototype.GILL_SANS_MT; if (a.equals_1(GT1393.prototype.GILL_SANS_MT_CONDENSED.fontname)) return GT1393.prototype.GILL_SANS_MT_CONDENSED; if (a.equals_1(GT1393.prototype.IMPACT.fontname)) return GT1393.prototype.IMPACT; if (a.equals_1(GT1393.prototype.SHANGHAI.fontname)) return GT1393.prototype.SHANGHAI; if (a.equals_1(GT1393.prototype.DIMBO.fontname)) return GT1393.prototype.DIMBO; if (a.equals_1(GT1393.prototype.BERLIN_SANS_FB_DEMI.fontname)) return GT1393.prototype.BERLIN_SANS_FB_DEMI; if (a.equals_1(GT1393.prototype.BIRCH_STD.fontname)) return GT1393.prototype.BIRCH_STD; if (a.equals_1(GT1393.prototype.PLAYFAIR_DISPLAY_SC.fontname)) return GT1393.prototype.PLAYFAIR_DISPLAY_SC; if (a.equals_1(GT1393.prototype.AFRICAN.fontname)) return GT1393.prototype.AFRICAN; if (a.equals_1(GT1393.prototype.ROBOTO.fontname)) return GT1393.prototype.ROBOTO; if (a.equals_1(GT1393.prototype.ROBOTO_BLACK.fontname)) return GT1393.prototype.ROBOTO_BLACK; if (a.equals_1(GT1393.prototype.FEASFBRG.fontname)) return GT1393.prototype.FEASFBRG; GT1650.prototype.assertExp_2(!1, "Font not found: " + a); return null; }; GT1393.prototype.validFontCombination_3 = function (a, b, d) { null == GT1393.prototype.validFontCombinations && ((GT1393.prototype.validFontCombinations = new java_util_JavaScriptHashtable()), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ARIAL.fontname, "--|+-|-+|++"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.COURIER.fontname, "--|+-|-+|++"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.GEORGIA.fontname, "--|+-|-+|++"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.TIMES.fontname, "--|+-|-+|++"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.VERDANA.fontname, "--|+-|-+|++"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.AUGUSTA.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.BASKE18.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.BUCKINGHAM.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.EVIL_DEAD.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.LOUNGY.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FUTURICAL.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.GLECB.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.AGBB_FINAL.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.AERO_L.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.A039000D.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ASRAFEL.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.CAESAR.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.HARRINGTON.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.BOOK_ANTIQUA.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FIESTA.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ESQUARE.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FRANK.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FLORALESS.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.OIL_MAKES_YOU_RUN_FASTER.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.MADFONT.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.OLDGATE_LANE.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.PAPYRUS.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.PAPYRUS_CONDENSED.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FRANKLIN_GOTHIC_HEAVY.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.LITHOS_PRO.fontname, "--|+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.TW_CEN_MT_CONDENSED_EXTRA_BOLD.fontname, "+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.COOPERMAN.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.COMIC_SANS_MS.fontname, "--|+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.GILL_SANS_MT.fontname, "--|+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.GILL_SANS_MT_CONDENSED.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.IMPACT.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.SHANGHAI.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.DIMBO.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.BERLIN_SANS_FB_DEMI.fontname, "+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.BIRCH_STD.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.PLAYFAIR_DISPLAY_SC.fontname, "--|+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.AFRICAN.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ROBOTO.fontname, "--|+-"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ROBOTO_BLACK.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.ROBOTO_LIGHT.fontname, "--"), GT1393.prototype.validFontCombinations.put_2(GT1393.prototype.FEASFBRG.fontname, "--")); return null != GT1393.prototype.validFontCombinations.get_1(a) && 0 <= GT1393.prototype.validFontCombinations.get_1(a).indexOf_1((b ? "+" : "-") + (d ? "+" : "-")); }; GT1393.prototype.ARIAL = new GT1393("arial"); GT1393.prototype.ARIAL_BLACK = new GT1393("arial"); GT1393.prototype.COURIER = new GT1393("courier new"); GT1393.prototype.GEORGIA = new GT1393("georgia"); GT1393.prototype.TIMES = new GT1393("times new roman"); GT1393.prototype.VERDANA = new GT1393("verdana"); GT1393.prototype.AUGUSTA = new GT1393("augusta_mod_1v"); GT1393.prototype.BASKE18 = new GT1393("baske18_mod_01_1v"); GT1393.prototype.BUCKINGHAM = new GT1393("buckingham_mod_01_1v"); GT1393.prototype.EVIL_DEAD = new GT1393("evildead_mod_2v"); GT1393.prototype.LOUNGY = new GT1393("Fontdinerdotcom Loungy"); GT1393.prototype.FUTURICAL = new GT1393("a_FuturicaExtraBlack_Mod_01_1v"); GT1393.prototype.GLECB = new GT1393("Gloucester MT Extra Condensed"); GT1393.prototype.AGBB_FINAL = new GT1393("AGBB_Final"); GT1393.prototype.AERO_L = new GT1393("AERO_L_MODIFIC_12v"); GT1393.prototype.A039000D = new GT1393("A039000D_mod_04v"); GT1393.prototype.ASRAFEL = new GT1393("ASRAFEL_Mod_1v"); GT1393.prototype.CAESAR = new GT1393("Caesar"); GT1393.prototype.HARRINGTON = new GT1393("HARRINGTON_mod_1v"); GT1393.prototype.BOOK_ANTIQUA = new GT1393("Book Antiqua_Mod_1v"); GT1393.prototype.FIESTA = new GT1393("Fiesta_Mod_1v"); GT1393.prototype.ESQUARE = new GT1393("E_SQUARE"); GT1393.prototype.FRANK = new GT1393("Frank"); GT1393.prototype.FLORALESS = new GT1393("Floraless"); GT1393.prototype.OIL_MAKES_YOU_RUN_FASTER = new GT1393("OilMakesYouRunFaster_Mod_1"); GT1393.prototype.MADFONT = new GT1393("MADFONT Regular_Mod_1v"); GT1393.prototype.OLDGATE_LANE = new GT1393("OldgateLane_1_Mod_01_1v"); GT1393.prototype.PAPYRUS = new GT1393("Papyrus"); GT1393.prototype.PAPYRUS_CONDENSED = new GT1393("PapyrusCondensed"); GT1393.prototype.FRANKLIN_GOTHIC_HEAVY = new GT1393("Franklin Gothic Heavy"); GT1393.prototype.LITHOS_PRO = new GT1393("Lithos Pro Regular"); GT1393.prototype.TW_CEN_MT_CONDENSED_EXTRA_BOLD = new GT1393("Tw Cen MT Condensed Extra Bold"); GT1393.prototype.COOPERMAN = new GT1393("Cooperman"); GT1393.prototype.COMIC_SANS_MS = new GT1393("Comic Sans MS"); GT1393.prototype.GILL_SANS_MT = new GT1393("Gill Sans MT"); GT1393.prototype.GILL_SANS_MT_CONDENSED = new GT1393("Gill Sans MT Condensed"); GT1393.prototype.IMPACT = new GT1393("Impact"); GT1393.prototype.SHANGHAI = new GT1393("Shanghai"); GT1393.prototype.DIMBO = new GT1393("Dimbo"); GT1393.prototype.BERLIN_SANS_FB_DEMI = new GT1393("Berlin Sans FB Demi"); GT1393.prototype.BIRCH_STD = new GT1393("Birch Std"); GT1393.prototype.PLAYFAIR_DISPLAY_SC = new GT1393("Playfair Display SC"); GT1393.prototype.AFRICAN = new GT1393("African"); GT1393.prototype.ROBOTO = new GT1393("Roboto"); GT1393.prototype.ROBOTO_BLACK = new GT1393("Roboto Black"); GT1393.prototype.ROBOTO_LIGHT = new GT1393("Roboto Light"); GT1393.prototype.FEASFBRG = new GT1393("FEASFBRG Mod"); GT1393.prototype.validFontCombinations = null; var GT787 = GT1334.extend( { initialConstructor_0: function () { this.children = null; this.resize2content = !1; this.filters = this.colortrans = null; this.sizeSet = this.posModified = this.resize2contentSet = !1; this.scaleY = this.scaleX = 0; this.scaleSet = !1; this.scaledHeight = this.scaledWidth = 0; this.filtersRemoved = this.filterAdded = this.childrenRemoved = this.childrenAdded = this.initialHideSet = this.scaledSizeSet = !1; this.parallaxDpth = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.scaledHeight = this.scaledWidth = this.heightSize = this.widthSize = -1; this.scaleY = this.scaleX = 1; this.resize2content = this.resize2contentSet = this.posModified = !1; this.colortrans = null; this.sizeSet = this.scaleSet = this.initialHideSet = !1; this.children = new java_util_JavaScriptVector(); this.filters = null; this.filtersRemoved = this.filterAdded = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; this.parallaxDpth = GT1437.prototype.PARALLAX_DEPTH_SAME_AS_PARENT; }, parallaxDepthImpl_1: function (a) { this.parallaxDpth = a; }, positionImpl_2: function (a, b) { this.posModified = !0; this.xPos = a; this.yPos = b; }, sizeImpl_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeSet = !0; }, hideImpl_1: function (a) { this.initialHideSet = !0; this.initialHide = a; }, removeChildrenImpl_0: function () { this.children.clear_0(); this.childrenRemoved = !0; }, childImpl_1: function (a) { this.children.addElement_1(a); this.childrenAdded = !0; }, resizeToContentImpl_1: function (a) { this.resize2contentSet = !0; this.resize2content = a; }, colorTransformationImpl_1: function (a) { this.colortrans = null == a ? null : a.create_0(); }, addFilterImpl_1: function (a) { null != a && (null == this.filters && (this.filters = new java_util_JavaScriptVector()), this.filters.addElement_1(a), (this.filterAdded = !0)); }, removeFilterImpl_1: function (a) { null != a && null != this.filters && 0 < this.filters.size_0() && this.filters.removeElement_1(a); }, removeAllFiltersImpl_0: function () { null != this.filters && 0 < this.filters.size_0() && this.filters.removeAllElements_0(); this.filtersRemoved = !0; }, contentScalingImpl_2: function (a, b) { this.scaleX = a; this.scaleY = b; this.scaleSet = !0; }, contentScaledSizeImpl_2: function (a, b) { this.scaledWidth = a; this.scaledHeight = b; this.scaledSizeSet = !0; }, getCreationX_0: function () { return this.xPos; }, getCreationY_0: function () { return this.yPos; }, getCreationWidth_1: function (a) { var b = this.widthSize; -1 == this.widthSize && (b = Integer.truncate_1(a.getWidth_0() / a.getContentScaleX_0()) - this.xPos); -1 != this.scaledWidth && (b = this.scaledWidth); return b; }, getCreationHeight_1: function (a) { var b = this.heightSize; -1 == this.heightSize && (b = Integer.truncate_1(a.getHeight_0() / a.getContentScaleY_0()) - this.yPos); -1 != this.scaledHeight && (b = this.scaledHeight); return b; }, getChildCreationId_1: function (a) { return null == this.children || this.children.size_0() - 1 < a || !instanceOf(this.children.elementAt_1(a), GT787) ? -1 : this.children.elementAt_1(a).appId; }, replaceImpl_2: function (a, b) { for (var d = this.children.size_0(), e = 0; e < d; e++) { var f = this.children.elementAt_1(e); null != f && f.appId == a ? this.children.setElementAt_2(b, e) : instanceOf(f, GT787) && f.replaceImpl_2(a, b); } return this; }, modifyImpl_2: function (a, b) { for (var d = this.children.size_0(), e = 0; e < d; e++) { var f = this.children.elementAt_1(e); null != f && f.appId == a ? b.modifyDescriptor_1(f) : instanceOf(f, GT787) && f.modifyImpl_2(a, b); } return this; }, createImpl_2: function (a, b) { this.createImpl_3(a, b, -1); }, createImpl_3: function (a, b, d) { var e = -1 < d && d < this.children.size_0(); a.setParallaxDepth_1(this.parallaxDpth); if (-1 != this.scaledWidth || -1 != this.scaledHeight) { var f = this.widthSize; -1 == this.widthSize && (f = a.getParent_0().getWidth_0() - this.xPos); var g = this.heightSize; -1 == this.heightSize && (g = a.getParent_0().getHeight_0() - this.yPos); a.setContentScaling_2(this.scaledWidth / f, this.scaledHeight / g); } else (1 == this.scaleX && 1 == this.scaleY) || a.setContentScaling_2(this.scaleX, this.scaleY); if (e) (f = this.children.elementAt_1(d)), null != f && (f.create_2(a, b), this.resize2content && a.resizeToContent_0()); else for (a.setDisableImmediateUpdate_1(!0), d = 0; d < this.children.size_0(); d++) (f = this.children.elementAt_1(d)), null != f && (f.create_2(a, b), this.resize2content && a.resizeToContent_0()); a.setApplicationID_1(this.appId); a.setColorTransformation_1(this.colortrans); if (null != this.filters && 0 < this.filters.size_0()) for (d = 0; d < this.filters.size_0(); ++d) (f = this.filters.elementAt_1(d)), a.addFilter_1(f.create_1(b)); else a.removeAllFilters_0(); a.hide_1(this.initialHide); e || a.setDisableImmediateUpdate_1(!1); null != this.debugAreaColor && a.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); }, loadImpl_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) { var d = this.children.elementAt_1(b); null != d && d.load_1(a); } if (null != this.filters) for (b = 0; b < this.filters.size_0(); b++) null != this.filters.elementAt_1(b) && ((d = this.filters.elementAt_1(b)), null != d && d.load_1(a)); }, removeImpl_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) { var d = this.children.elementAt_1(b); null != d && d.appId == a ? (this.children.removeElementAt_1(b), b--) : instanceOf(d, GT787) && d.removeImpl_1(a); } return this; }, moveImpl_2: function (a, b) { if (b < this.children.size_0() && 0 <= b) for (var d = 0; d < this.children.size_0(); d++) { var e = this.children.elementAt_1(d); null != e && e.appId == a && d != b ? (this.children.removeElementAt_1(d), d--, b < this.children.size_0() ? this.children.add_2(b, e) : this.children.add_1(e)) : instanceOf(e, GT787) && e.moveImpl_2(a, b); } return this; }, childBeforeImpl_2: function (a, b) { for (var d = 0; d < this.children.size_0(); d++) { var e = this.children.elementAt_1(d); null != e && e.appId == a ? (this.children.add_2(d, b), d++) : instanceOf(e, GT787) && e.childBeforeImpl_2(a, b); } return this; }, childAfterImpl_2: function (a, b) { for (var d = 0; d < this.children.size_0(); d++) { var e = this.children.elementAt_1(d); null != e && e.appId == a ? (d + 1 < this.children.size_0() ? this.children.add_2(d + 1, b) : this.children.add_1(b), d++) : instanceOf(e, GT787) && e.childAfterImpl_2(a, b); } return this; }, moveAfter_2: function (a, b) { var d = this.find_1(b), e = this.find_1(a); GT1650.prototype.assertExp_2(null != d && null != e, "public DObject moveAfter(int id, int idObjectToMove ): both or one of the given IDs does not exist."); null != e && null != d && (this.removeImpl_1(b), this.childAfterImpl_2(a, d)); return this; }, moveBefore_2: function (a, b) { var d = this.find_1(b), e = this.find_1(a); GT1650.prototype.assertExp_2(null != d && null != e, "public DObject moveBefore(int id, int idObjectToMove ): both or one of the given IDs does not exist."); null != e && null != d && (this.removeImpl_1(b), this.childBeforeImpl_2(a, d)); return this; }, find_1: function (a) { for (var b = null, d = 0; d < this.children.size_0(); d++) if (((b = this.children.elementAt_1(d)), (null != b && b.appId == a) || (instanceOf(b, GT787) && ((b = b.find_1(a)), null != b && b.appId == a)))) return b; return null != b && b.appId == a ? b : null; }, modifyDescriptorImpl_1: function (a) { this.parallaxDpth != GT1437.prototype.PARALLAX_DEPTH_SAME_AS_PARENT && (a.parallaxDpth = this.parallaxDpth); this.sizeSet && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)); this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); null != this.colortrans && (a.colortrans = this.colortrans); this.childrenRemoved && a.children.clear_0(); if (this.childrenAdded) for (var b = 0; b < this.children.size_0(); b++) a.children.add_1(this.children.get_1(b)); this.filtersRemoved && null != a.filters && a.filters.clear_0(); if (this.filterAdded) for (null == a.filters && (a.filters = new java_util_JavaScriptVector()), b = 0; b < this.filters.size_0(); b++) a.filters.add_1(this.filters.get_1(b)); this.resize2contentSet && (a.resize2content = this.resize2content); this.scaleSet && ((a.scaleX = this.scaleX), (a.scaleY = this.scaleY)); this.initialHideSet && (a.initialHide = this.initialHide); this.scaledSizeSet && ((a.scaledWidth = this.scaledWidth), (a.scaledHeight = this.scaledHeight)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT787", [] ), GT825 = GT787.extend( { initialConstructor_0: function () { this.color = this.textstring = this.fontdescriptor = null; this.linespacing = 0; this.linespacingSet = !1; this.valign = this.halign = null; this.shadowSet = !1; this.shadowY = this.shadowX = 0; this.shadowColor = null; this.gradientSet = !1; this.gradientData = null; this.outlinethickness = 0; this.outlineColor = null; this.insetsSet = this.outlineSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.adaptiveheight = this.adaptiveheightSet = !1; this.alpha = 0; this.changeHAlignOnRTL = this.changeHAlignSet = this.alphaSet = !1; GT787.prototype.initialConstructor_0.call(this); this.color = this.fontdescriptor = this.textstring = null; this.linespacing = -1; this.valign = this.halign = null; this.outlinethickness = -1; this.insetsSet = !1; this.insetRight = this.insetLeft = 5; this.insetBottom = this.insetTop = 3; this.adaptiveheight = this.adaptiveheightSet = !1; this.alpha = -1; this.changeHAlignSet = !1; this.changeHAlignOnRTL = !0; }, textImpl_1: function (a) { this.textstring = a; }, fontImpl_1: function (a) { this.fontdescriptor = a; }, fontColorImpl_1: function (a) { this.color = null == a ? null : a.create_0(); }, spacingImpl_1: function (a) { this.linespacing = a; this.linespacingSet = !0; }, hAlignImpl_1: function (a) { this.halign = a; }, vAlignImpl_1: function (a) { this.valign = a; }, changeHAlignOnRTLImpl_1: function (a) { this.changeHAlignSet = !0; this.changeHAlignOnRTL = a; }, shadowImpl_3: function (a, b, d) { this.shadowSet = !0; this.shadowX = a; this.shadowY = b; null != d ? (this.shadowColor = d.create_0()) : (this.shadowY = this.shadowX = 0); }, gradientImpl_2: function (a, b) { this.gradientImpl_1( GT1238.prototype .set_0() .addColor_2(a, 48 / 255) .addColor_2(b, 207 / 255) .rotation_1(Math.PI / 2) ); }, gradientImpl_1: function (a) { this.gradientSet = !0; this.gradientData = null != a ? a.create_0() : null; }, outlineImpl_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "thickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = 0); this.outlineSet = !0; }, removeOutlineImpl_0: function () { this.outlinethickness = -1; this.outlineColor = null; this.outlineSet = !0; }, backgroundImpl_1: function (a) { this.removeChildrenImpl_0(); this.childImpl_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, insetsImpl_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; }, adaptiveHeightImpl_1: function (a) { this.adaptiveheightSet = !0; this.adaptiveheight = a; }, transparencyImpl_1: function (a) { this.alpha = null == a ? 255 : a.create_0(); this.alphaSet = !0; }, load_1: function (a) { GT787.prototype.load_1.call(this, a); null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).load_1(a.getResourceManager_0()) : this.fontdescriptor.load_1(a.getResourceManager_0()); var b = this.getBackground_0(); null != b && b.load_1(a); }, modifyDescriptorImpl_1: function (a) { GT787.prototype.modifyDescriptorImpl_1.call(this, a); var b = instanceOf(a, GT825); GT1650.prototype.assertExp_2(b, "Descriptor is no AbstractDTextArea"); b && (null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.color && (a.color = this.color), this.linespacingSet && (a.linespacing = this.linespacing), null != this.textstring && (a.textstring = this.textstring), null != this.halign && (a.halign = this.halign), null != this.valign && (a.valign = this.valign), this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)), this.insetsSet && ((a.insetsSet = !0), (a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)), this.adaptiveheightSet && ((a.adaptiveheightSet = !0), (a.adaptiveheight = this.adaptiveheight)), this.alphaSet && (a.alpha = this.alpha), this.shadowSet && ((a.shadowSet = !0), (a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)), this.gradientSet && ((a.gradientSet = !0), (a.gradientData = this.gradientData)), this.changeHAlignSet && (a.changeHAlignOnRTL = this.changeHAlignOnRTL)); }, }, "GT825", [] ), GT1355 = GT787.extend( { initialConstructor_0: function () { GT1355.prototype.initialConstructor_1.call(this, 4); }, initialConstructor_1: function (a) { this.appData = null; this.initialActive = !1; this.numberOfStates = 0; this.buttontooltip = this.buttonimage = null; this.dragAreaH = this.dragAreaW = this.dragAreaY = this.dragAreaX = 0; this.clickAreaShape = this.buttonStates = this.inactiveShadowColor = this.inactiveOutlineColor = this.inactiveColor = null; this.soundSet = this.textModified = this.hideSet = this.positionModified = this.isConsumingMouseEventsWhenInactive = this.isConsumingMouseEventsWhenInactiveSet = !1; this.clicksound = null; GT787.prototype.initialConstructor_0.call(this); this.appData = null; this.initialActive = !0; this.numberOfStates = a; this.hideSet = this.positionModified = !1; this.dragAreaX = -1; this.buttontooltip = this.buttonimage = this.inactiveShadowColor = this.inactiveOutlineColor = this.inactiveColor = this.clickAreaShape = this.buttonStates = null; this.isConsumingMouseEventsWhenInactiveSet = !1; this.isConsumingMouseEventsWhenInactive = !0; this.clicksound = null; this.soundSet = !1; }, id_1: function (a) { this.appId = a; return this; }, data_1: function (a) { this.appData = a; return this; }, active_1: function (a) { this.initialActive = a; return this; }, position_2: function (a, b) { this.positionModified = !0; this.xPos = a; this.yPos = b; return this; }, image_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.buttonimage = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.buttonimage = GT1390.prototype.set_0().file_1(a); return this; }, states_1: function (a) { this.buttonStates = a; return this; }, text_1: function (a) { this.textModified = !0; this.children.setSize_1(0); null != a && this.children.addElement_1(a); return this; }, clickableAreaShape_1: function (a) { this.clickAreaShape = a; return this; }, consumingMouseEventsWhenInactive_1: function (a) { this.isConsumingMouseEventsWhenInactiveSet = !0; this.isConsumingMouseEventsWhenInactive = a; return this; }, textInactiveColor_2: function (a, b) { this.inactiveColor = null == a ? null : a.create_0(); this.inactiveOutlineColor = null == b ? null : b.create_0(); return this; }, textInactiveShadow_1: function (a) { this.inactiveShadowColor = null == a ? null : a.create_0(); return this; }, tooltip_1: function (a) { this.buttontooltip = a; return this; }, dragArea_4: function (a, b, d, e) { this.dragAreaX = a; this.dragAreaY = b; this.dragAreaW = d; this.dragAreaH = e; return this; }, hide_1: function (a) { this.hideSet = !0; this.initialHide = a; return this; }, clickSound_1: function (a) { this.soundSet = !0; this.clicksound = a; return this; }, create_2: function (a, b) { var d = null; null != this.buttonStates && (d = this.buttonStates.create_0()); var e = null == d ? this.numberOfStates : d.length, f = null; null != this.buttonimage && (f = this.buttonimage.create_1(b.getResourceManager_0())); var g = this.createButton_4(a, this.xPos, this.yPos, b); null != this.buttontooltip && g.setToolTip_1(b.getText_1(this.buttontooltip)); -1 != this.dragAreaX && (g.setDragable_1(!0), g.setDragArea_4(this.dragAreaX, this.dragAreaY, this.dragAreaW, this.dragAreaH)); var k = this.getTextArea_0(); if (null == k) null != f && (GT1650.prototype.assertExp_2(f.isLoaded_0(), "image " + this.buttonimage + " wasn't loaded"), null == d ? g.setImage_1(f) : g.setImageAndStates_2(f, d)); else { GT1650.prototype.assertExp_2(instanceOf(k, GT1239) || instanceOf(k, GT872), "text must be of type DTextArea oder DDynamicTextArea"); GT1650.prototype.assertExp_2(null != f, "no image set for the button"); GT1650.prototype.assertExp_2(null != f && f.isLoaded_0(), "image " + this.buttonimage + " wasn't loaded"); if (null == f) return new GT1560(a, this.xPos, this.yPos, 10, 10); var m = f.getWidth_0(), n = f.getHeight_0(), f = Math.div(n, f.getRows_0()); g.resize_2(m, f); g.addContainerSet_3(m, f, e); instanceOf(k, GT1239); k.size_2(m, f); k.position_2(0, 0); f = null; for (m = 0; m < e; m++) { null != d && null != d[m] && g.setChildForState_2(d[m], m); f = g.getChild_1(m); f = k.create_2(f, b); if ((null == d && m == GT1236.prototype.INACTIVE.idx_0()) || (null != d && d[m] == GT1236.prototype.INACTIVE)) null != this.inactiveColor && f.setColor_1(this.inactiveColor), null != this.inactiveOutlineColor && f.setOutline_2(f.getOutline_0(), this.inactiveOutlineColor), null != this.inactiveShadowColor && f.setShadow_3(f.getShadowOffsetX_0(), f.getShadowOffsetY_0(), this.inactiveShadowColor); GT1392.prototype.set_0().image_1(this.buttonimage).showTile_2(0, m).create_2(f.getBackground_0(), b); } null != f && g.setText_1(f.getText_0()); } null != this.clickAreaShape && g.setClickableAreaShape_1(this.clickAreaShape.create_0()); g.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); g.setApplicationData_2(this.appId, this.appData); g.setActive_1(this.initialActive); g.hide_1(this.initialHide); null != this.clicksound && ((d = new GT506(this.clicksound.create_1(b), b.getSoundPlayer_0())), g.addButtonListener_1(d)); return g; }, modifyText_1: function (a) { var b = this.getTextArea_0(); null != b && a.modifyDescriptor_1(b); return this; }, createButton_4: function (a, b, d, e) { return new GT1559(a, b, d); }, load_1: function (a) { var b = this.getTextArea_0(), d = null; null != this.buttonStates && (d = this.buttonStates.create_0()); null != this.clicksound && this.clicksound.load_1(a); GT1650.prototype.assertExp_2(null != this.buttonimage, "buttonimage is not set"); this.buttonimage.tiling_2(1, null == d ? this.numberOfStates : d.length); this.buttonimage.load_1(a.getResourceManager_0()); null != b && b.load_1(a); }, getTextArea_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1355); GT1650.prototype.assertExp_2(b, "Descriptor is no Button"); if (b) { this.positionModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); null != this.buttonimage && (a.buttonimage = this.buttonimage); if (this.textModified) for (a.children.clear_0(), b = 0; b < this.children.size_0(); b++) a.children.add_1(this.children.get_1(b)); null != this.buttontooltip && (a.buttontooltip = this.buttontooltip); -1 != this.dragAreaX && ((a.dragAreaX = this.dragAreaX), (a.dragAreaY = this.dragAreaY), (a.dragAreaW = this.dragAreaW), (a.dragAreaH = this.dragAreaH)); null != this.inactiveColor && (a.inactiveColor = this.inactiveColor); null != this.inactiveOutlineColor && (a.inactiveOutlineColor = this.inactiveOutlineColor); null != this.buttonStates && (a.buttonStates = this.buttonStates); this.isConsumingMouseEventsWhenInactiveSet && (a.isConsumingMouseEventsWhenInactive = this.isConsumingMouseEventsWhenInactive); null != this.clickAreaShape && (a.clickAreaShape = this.clickAreaShape); this.hideSet && (a.initialHide = this.initialHide); this.soundSet && (a.clicksound = this.clicksound); } }, }, "GT1355", [GT1272] ); GT1355.prototype.defaultTextArea_0 = function () { return GT1239.prototype.set_0().hAlign_1(GT1488.prototype.CENTER).vAlign_1(GT1489.prototype.CENTER).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(90)).fontColor_1(GT1391.prototype.set_0().white_0()); }; GT1355.prototype.set_0 = function () { return new GT1355(); }; var GT873 = GT787.extend( { initialConstructor_0: function () { this.buttontooltip = null; this.dragAreaH = this.dragAreaW = this.dragAreaY = this.dragAreaX = 0; this.buttonStates = null; this.isConsumingMouseEventsWhenInactive = !1; this._data = null; this._dragable = !1; this.clickAreaShape = null; this.soundSet = this.buttonTooltipModified = this.clickAreaShapeModified = this.showhandcursorset = this.showhandcursor = !1; this.clicksound = null; GT787.prototype.initialConstructor_0.call(this); this.dragAreaX = -1; this.showhandcursor = this.isConsumingMouseEventsWhenInactive = !0; this.showhandcursorset = !1; this.clicksound = null; this.buttonTooltipModified = this.soundSet = !1; }, id_1: function (a) { this.appId = a; return this; }, data_1: function (a) { this._data = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, removeChildren_0: function () { this.removeChildrenImpl_0(); return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, states_1: function (a) { this.buttonStates = a; return this; }, consumingMouseEventsWhenInactive_1: function (a) { this.isConsumingMouseEventsWhenInactive = a; return this; }, tooltip_1: function (a) { this.buttontooltip = a; this.buttonTooltipModified = !0; return this; }, dragArea_4: function (a, b, d, e) { this.dragAreaX = a; this.dragAreaY = b; this.dragAreaW = d; this.dragAreaH = e; this._dragable = !0; return this; }, dragable_0: function () { this._dragable = !0; return this; }, showHandCursor_1: function (a) { this.showhandcursor = a; this.showhandcursorset = !0; return this; }, clickableAreaShape_1: function (a) { this.clickAreaShapeModified = !0; this.clickAreaShape = a; return this; }, clickSound_1: function (a) { this.soundSet = !0; this.clicksound = a; return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = 0); -1 == this.heightSize && (e = 0); for (var f = new GT1559(a, this.xPos, this.yPos, d, e), d = 0; d < this.children.size_0(); d++) this.children.elementAt_1(d).create_2(f, b); if (0 > this.widthSize || 0 > this.heightSize) if ((f.resizeToContent_0(), 0 == f.getWidth_0() || 0 == f.getHeight_0())) (d = f.getParent_0().getWidth_0()), (e = f.getParent_0().getHeight_0()), f.resize_2(d, e); f.setApplicationData_2(this.appId, this._data); this._dragable && (f.setDragable_1(!0), -1 != this.dragAreaX && f.setDragArea_4(this.dragAreaX, this.dragAreaY, this.dragAreaW, this.dragAreaH)); null != this.buttontooltip && f.setToolTip_1(b.getText_1(this.buttontooltip)); e = null; if (null != this.buttonStates) for (e = this.buttonStates.create_0(), d = 0; d < e.length; d++) null != e[d] && f.setChildForState_2(e[d], d); this.showhandcursorset && f.setShowHandCursor_1(this.showhandcursor); null != this.clickAreaShape && f.setClickableAreaShape_1(this.clickAreaShape.create_0()); null != this.clicksound && ((d = new GT506(this.clicksound.create_1(b), b.getSoundPlayer_0())), f.addButtonListener_1(d)); f.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); f.finishButton_0(); f.hide_1(this.initialHide); return f; }, load_1: function (a) { this.loadImpl_1(a); null != this.clicksound && this.clicksound.load_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT873); GT1650.prototype.assertExp_2(b, "Descriptor is no DButtonContainer"); b && (this.modifyDescriptorImpl_1(a), this.showhandcursorset && ((a.showhandcursorset = !0), (a.showhandcursor = this.showhandcursor)), this.clickAreaShapeModified && (a.clickAreaShape = this.clickAreaShape), this.soundSet && (a.clicksound = this.clicksound), this.buttonTooltipModified && (a.buttontooltip = this.buttontooltip), -1 != this.dragAreaX && ((a.dragAreaX = this.dragAreaX), (a.dragAreaY = this.dragAreaY), (a.dragAreaW = this.dragAreaW), (a.dragAreaH = this.dragAreaH)), null != this.buttonStates && (a.buttonStates = this.buttonStates)); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT873", [GT1272] ); GT873.prototype.set_0 = function () { return new GT873(); }; var GT1188 = GT1334.extend( { initialConstructor_0: function () { this.areacolor = null; this.alpha = 0; this.hidden = this.hideModified = this.colorModified = this.posModified = !1; GT1334.prototype.initialConstructor_0.call(this); this.alpha = this.heightSize = this.widthSize = -1; this.areacolor = GT1634.prototype.cyan; this.colorModified = this.posModified = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, color_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.areacolor = null == a ? GT1634.prototype.cyan : a.create_0(); this.colorModified = !0; return this; }, hide_1: function (a) { this.hidden = a; this.hideModified = !0; return this; }, transparency_1: function (a) { this.alpha = null == a ? -1 : a.create_0(); return this; }, create_2: function (a, b) { var d = -1 == this.widthSize ? a.getWidth_0() : this.widthSize, e = -1 == this.heightSize ? a.getHeight_0() : this.heightSize, d = new GT1440(a, this.xPos, this.yPos, d, e, this.areacolor); -1 != this.alpha && d.setAlpha_1(this.alpha); d.setApplicationID_1(this.appId); this.hideModified && d.hide_1(this.hidden); return d; }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1188) || this.alpha != a.alpha) return !1; if (null == this.areacolor) { if (null != a.areacolor) return !1; } else if (!this.areacolor.equals_1(a.areacolor)) return !1; return !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1188); GT1650.prototype.assertExp_2(b, "Descriptor is no DColorArea"); b && (-1 != this.widthSize && (a.widthSize = this.widthSize), -1 != this.heightSize && (a.heightSize = this.heightSize), -1 != this.alpha && (a.alpha = this.alpha), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.hideModified && (a.hidden = this.hidden), null != this.areacolor && this.colorModified && (a.areacolor = this.areacolor)); }, }, "GT1188", [GT1272] ); GT1188.prototype.set_0 = function () { return new GT1188(); }; var GT1186 = GT787.extend( { initialConstructor_0: function () { GT787.prototype.initialConstructor_0.call(this); }, id_1: function (a) { this.appId = a; return this; }, parallaxDepth_1: function (a) { this.parallaxDepthImpl_1(a); return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, removeChildren_0: function () { this.removeChildrenImpl_0(); return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, resizeToContent_1: function (a) { this.resizeToContentImpl_1(a); return this; }, colorTransformation_1: function (a) { this.colorTransformationImpl_1(a); return this; }, addFilter_1: function (a) { this.addFilterImpl_1(a); return this; }, removeFilter_1: function (a) { this.removeFilterImpl_1(a); return this; }, removeAllFilters_0: function () { this.removeAllFiltersImpl_0(); return this; }, contentScaledSize_2: function (a, b) { this.contentScaledSizeImpl_2(a, b); return this; }, contentScaling_2: function (a, b) { this.contentScalingImpl_2(a, b); return this; }, createContainer_5: function (a, b, d, e, f) { return new GT1437(a, b, d, e, f); }, create_2: function (a, b) { var d = this.createContainer_5(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a)); this.createImpl_2(d, b); return d; }, load_1: function (a) { this.loadImpl_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1186); GT1650.prototype.assertExp_2(b, "Descriptor is no DContainer"); b && this.modifyDescriptorImpl_1(a); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, move_2: function (a, b) { return this.moveImpl_2(a, b); }, childBefore_2: function (a, b) { return this.childBeforeImpl_2(a, b); }, childAfter_2: function (a, b) { return this.childAfterImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT1186", [GT1272] ); GT1186.prototype.set_0 = function () { return new GT1186(); }; var GT1053 = GT1334.extend( { initialConstructor_0: function () { this.posModified = !1; this.mouseovercolor = this.backgroundcolor = this.foregroundcolor = this.fontdescriptor = this.dropdownimage = null; this.offsetY = this.offsetX = 0; this.offsetYModified = this.offsetXModified = !1; this.debugAreaColor = this.entries = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.entries = new java_util_JavaScriptVector(); this.fontdescriptor = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100); this.foregroundcolor = GT1634.prototype.gray; this.backgroundcolor = GT1634.prototype.black; this.mouseovercolor = GT1634.prototype.gray; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, font_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontdescriptor = null == a ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100) : a; return this; }, foregroundColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.foregroundcolor = null == a ? GT1634.prototype.gray : a.create_0(); return this; }, backgroundColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.backgroundcolor = null == a ? GT1634.prototype.black : a.create_0(); return this; }, mouseoverColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.mouseovercolor = null == a ? GT1634.prototype.gray : a.create_0(); return this; }, image_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.dropdownimage = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.dropdownimage = GT1390.prototype.set_0().file_1(a); return this; }, textOffsetX_1: function (a) { this.offsetX = a; this.offsetXModified = !0; return this; }, textOffsetY_1: function (a) { this.offsetY = a; this.offsetYModified = !0; return this; }, entry_1: function (a) { GT1650.prototype.assertExp_2(null != a, "entry is null"); this.entries.addElement_1(a); return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.dropdownimage, "dropdownimage is not set"); var d = this.dropdownimage.create_1(b.getResourceManager_0()); GT1650.prototype.assertExp_2(null != d && d.isLoaded_0(), "image " + this.dropdownimage + " wasn't loaded"); if (null == d) return new GT1560(a, this.xPos, this.yPos, 10, 10); var e = Math.div(d.getWidth_0(), d.getColumns_0()), f = Math.div(d.getHeight_0(), d.getRows_0()), d = new GT1315(a, this.xPos, this.yPos, e, f, this.fontdescriptor.create_1(b.getResourceManager_0()), this.foregroundcolor, this.backgroundcolor, d, this.offsetX, this.offsetY, 0, a.getHeight_0(), !1); d.setEntries_2(this.entries, 0); null != this.mouseovercolor && d.setMouseOverColor_1(this.mouseovercolor); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { this.fontdescriptor.load_1(a.getResourceManager_0()); GT1650.prototype.assertExp_2(null != this.dropdownimage, "dropdownimage is not set"); this.dropdownimage.tiling_2(1, 4); this.dropdownimage.load_1(a.getResourceManager_0()); }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1053)) return !1; if (null == this.backgroundcolor) { if (null != a.backgroundcolor) return !1; } else if (!this.backgroundcolor.equals_1(a.backgroundcolor)) return !1; if (null == this.entries) { if (null != a.entries) return !1; } else if (!this.entries.equals_1(a.entries)) return !1; if (null == this.fontdescriptor) { if (null != a.fontdescriptor) return !1; } else if (!this.fontdescriptor.equals_1(a.fontdescriptor)) return !1; if (null == this.foregroundcolor) { if (null != a.foregroundcolor) return !1; } else if (!this.foregroundcolor.equals_1(a.foregroundcolor)) return !1; if (null == this.dropdownimage) { if (null != a.dropdownimage) return !1; } else if (!this.dropdownimage.equals_1(a.dropdownimage)) return !1; if (null == this.mouseovercolor) { if (null != a.mouseovercolor) return !1; } else if (!this.mouseovercolor.equals_1(a.mouseovercolor)) return !1; return this.offsetX != a.offsetX || this.offsetY != a.offsetY ? !1 : !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1053); GT1650.prototype.assertExp_2(b, "Descriptor is no DDropDownMenu"); if ( b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), null != this.dropdownimage && (a.dropdownimage = this.dropdownimage), null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.foregroundcolor && (a.foregroundcolor = this.foregroundcolor), null != this.backgroundcolor && (a.backgroundcolor = this.backgroundcolor), null != this.mouseovercolor && (a.mouseovercolor = this.mouseovercolor), this.offsetXModified && (a.offsetX = this.offsetX), this.offsetYModified && (a.offsetY = this.offsetY), 0 < this.entries.size_0()) ) for (a.entries.setSize_1(0), b = 0; b < this.entries.size_0(); b++) a.entries.addElement_1(this.entries.elementAt_1(b)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1053", [GT1272] ); GT1053.prototype.set_0 = function () { return new GT1053(); }; var GT872 = GT787.extend( { initialConstructor_0: function () { this.color = null; this.linespacing = 0; this.linespacingSet = !1; this.valign = this.halign = this.txt = null; this.changeHAlignOnRTL = this.changeHAlignSet = !1; this.outlinethickness = 0; this.outlineSet = !1; this.outlineColor = null; this.shadowSet = !1; this.shadowY = this.shadowX = 0; this.shadowColor = null; this.gradientSet = !1; this.gradientData = null; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.fontDescriptors = null; this.breaklines = this.breaklinesSet = this.adaptiveheight = this.adaptiveheightSet = this.adaptivespacing = this.adaptivespacingSet = !1; this.mAlpha = 0; GT787.prototype.initialConstructor_0.call(this); this.linespacing = this.heightSize = this.widthSize = -1; this.insetsSet = this.linespacingSet = !1; this.insetRight = this.insetLeft = 5; this.insetBottom = this.insetTop = 3; this.fontDescriptors = new java_util_JavaScriptVector(); this.outlinethickness = -1; this.adaptivespacingSet = this.outlineSet = !1; this.adaptivespacing = !0; this.breaklinesSet = this.adaptiveheight = this.adaptiveheightSet = !1; this.breaklines = !0; this.valign = this.halign = this.color = this.txt = null; this.changeHAlignSet = !1; this.changeHAlignOnRTL = !0; this.gradientSet = !1; this.mAlpha = 255; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, text_1: function (a) { this.txt = a; return this; }, addFont_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontDescriptors.addElement_1(a); return this; }, removeAllFonts_0: function () { this.fontDescriptors.clear_0(); return this; }, fontColor_1: function (a) { this.color = null == a ? null : a.create_0(); return this; }, spacing_1: function (a) { this.linespacing = a; this.linespacingSet = !0; return this; }, adaptiveSpacing_1: function (a) { this.adaptivespacingSet = !0; this.adaptivespacing = a; return this; }, adaptiveHeight_1: function (a) { this.adaptiveheightSet = !0; this.adaptiveheight = a; return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = -1); this.outlineSet = !0; return this; }, removeOutline_0: function () { this.outlinethickness = -1; this.outlineColor = null; return this; }, shadow_3: function (a, b, d) { this.shadowSet = !0; this.shadowX = a; this.shadowY = b; null != d ? (this.shadowColor = d.create_0()) : (this.shadowY = this.shadowX = 0); return this; }, gradient_2: function (a, b) { this.gradientSet = null != a && null != b; this.gradientData = GT1238.prototype .set_0() .addColor_2(a, 48 / 255) .addColor_2(b, 207 / 255) .rotation_1(Math.PI / 2) .create_0(); return this; }, gradient_1: function (a) { this.gradientSet = null != a; this.gradientData = null != a ? a.create_0() : null; return this; }, background_1: function (a) { this.children.setSize_1(0); null != a && this.children.addElement_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, breakLines_1: function (a) { this.breaklinesSet = !0; this.breaklines = a; return this; }, changeHAlignOnRTLLanguages_1: function (a) { this.changeHAlignSet = !0; this.changeHAlignOnRTL = a; return this; }, transparency_1: function (a) { this.mAlpha = a.create_0(); return this; }, create_2: function (a, b) { var d, e; if (0 == this.fontDescriptors.size_0()) (d = [].createArray(1)), (d[0] = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0())), (e = [].createArray(1).init(0)), (e[0] = d[0].getHeight_0()); else { e = this.fontDescriptors.elementAt_1(0); var f = new java_util_JavaScriptVector(); d = e.create_1(b.getResourceManager_0()); f.add_1(d); var g = new java_util_JavaScriptVector(); g.add_1(new Integer(e.linespacing)); for (var k = 1; k < this.fontDescriptors.size_0(); k++) { e = this.fontDescriptors.elementAt_1(k); d = e.create_1(b.getResourceManager_0()); for (var m = !1, n = 0; n < f.size_0(); n++) if (f.elementAt_1(n).getHeight_0() < d.getHeight_0()) { f.insertElementAt_2(d, n); g.insertElementAt_2(new Integer(e.linespacing), n); m = !0; break; } m || (f.add_1(d), g.add_1(new Integer(e.linespacing))); } d = [].createArray(f.size_0()); e = [].createArray(g.size_0()).init(0); for (k = 0; k < d.length; k++) (d[k] = f.elementAt_1(k)), (m = g.elementAt_1(k)), (e[k] = m.intValue_0()); } f = this.widthSize; -1 == this.widthSize && (f = a.getWidth_0() - this.xPos); g = this.heightSize; -1 == this.heightSize && (g = a.getHeight_0() - this.yPos); k = null == this.color ? GT1634.prototype.gray : this.color; m = null == this.halign ? GT1488.prototype.LEFT : this.halign; n = null == this.valign ? GT1489.prototype.TOP : this.valign; this.changeHAlignOnRTL && b.isRTLLanguage_0() && (m == GT1488.prototype.LEFT ? (m = GT1488.prototype.RIGHT) : m == GT1488.prototype.RIGHT && (m = GT1488.prototype.LEFT)); d = new GT1123(a, this.xPos, this.yPos, f, g, d, k, m, n); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); d.setAdaptiveSpacing_1(this.adaptivespacing); d.setBreakLines_1(this.breaklines); d.setUsingAdaptiveHeight_1(this.adaptiveheight); 0 < e.length && d.setSpacings_1(e); -1 != this.linespacing && d.setSpacing_1(this.linespacing); e = this.getBackground_0(); null != e && ((e = e.create_2(d.getBackground_0(), b)), instanceOf(e, GT1525) && e.resize_2(f, g)); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); this.shadowSet && d.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); this.gradientSet && d.setGradient_1(this.gradientData); null == this.txt ? d.setText_1("") : d.setText_1(b.getText_1(this.txt)); "1".equals_1(b.getParameter_1("showtextborders")) && d.showBorders_1(!0); d.setAlpha_1(this.mAlpha); d.hide_1(this.initialHide); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { 0 == this.fontDescriptors.size_0() && GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200).load_1(a.getResourceManager_0()); for (var b = 0; b < this.fontDescriptors.size_0(); b++) this.fontDescriptors.elementAt_1(b).load_1(a.getResourceManager_0()); b = this.getBackground_0(); null != b && b.load_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT872); GT1650.prototype.assertExp_2(b, "Descriptor is no DDynamicTextArea"); if (b) { this.modifyDescriptorImpl_1(a); if (0 != this.fontDescriptors.size_0()) for (a.fontDescriptors.clear_0(), b = 0; b < this.fontDescriptors.size_0(); b++) a.fontDescriptors.add_1(this.fontDescriptors.get_1(b)); if (0 != this.children.size_0()) for (a.children.clear_0(), b = 0; b < this.children.size_0(); b++) a.children.add_1(this.children.get_1(b)); null != this.color && (a.color = this.color); this.linespacingSet && (a.linespacing = this.linespacing); null != this.txt && (a.txt = this.txt); null != this.halign && (a.halign = this.halign); null != this.valign && (a.valign = this.valign); this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)); this.insetsSet && ((a.insetsSet = !0), (a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)); this.gradientSet && ((a.gradientSet = !0), (a.gradientData = this.gradientData)); this.adaptiveheightSet && (a.adaptiveheight = this.adaptiveheight); this.adaptivespacingSet && (a.adaptivespacing = this.adaptivespacing); this.breaklinesSet && (a.breaklines = this.breaklines); this.shadowSet && ((a.shadowSet = !0), (a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)); this.changeHAlignSet && (a.changeHAlignOnRTL = this.changeHAlignOnRTL); } }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT872", [GT1272] ); GT872.prototype.set_0 = function () { return new GT872(); }; var GT1392 = GT1334.extend( { initialConstructor_0: function () { this.filters = this.imagefile = null; this.showrow = this.showcolumn = 0; this.showTileSet = !1; this.sourceh = this.sourcew = this.sourcey = this.sourcex = 0; this.cachescaledversionSet = this.cachescaledversion = this.sourceSet = !1; this.alpha = 0; this.posModified = this.alphaSet = !1; this.colortransformation = null; this.initialHideSet = this.hSet = this.wSet = this.colortransformationSet = !1; this.blendMode = null; this.blendModeSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; this.resize2ParentSet = this.resize2Parent = !1; GT1334.prototype.initialConstructor_0.call(this); this.showrow = this.showcolumn = this.heightSize = this.widthSize = this.sourceh = this.sourcew = this.sourcey = this.sourcex = -1; this.alpha = 255; this.initialHideSet = !1; this.filters = null; this.alphaSet = this.cachescaledversionSet = this.colortransformationSet = this.resize2ParentSet = this.blendModeSet = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, hide_1: function (a) { this.initialHideSet = !0; this.initialHide = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.hSet = this.wSet = !0; return this; }, width_1: function (a) { this.widthSize = a; this.wSet = !0; return this; }, height_1: function (a) { this.heightSize = a; this.hSet = !0; return this; }, sourceArea_4: function (a, b, d, e) { this.sourcex = a; this.sourcey = b; this.sourcew = d; this.sourceh = e; this.sourceSet = !0; return this; }, image_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.imagefile = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.imagefile = GT1390.prototype.set_0().file_1(a); return this; }, showTile_2: function (a, b) { this.showcolumn = a; this.showrow = b; this.showTileSet = !0; return this; }, transparency_1: function (a) { this.alpha = null == a ? 255 : a.create_0(); this.alphaSet = !0; return this; }, colorTransformation_1: function (a) { this.colortransformation = null == a ? null : a.create_0(); this.colortransformationSet = !0; return this; }, addFilter_1: function (a) { null != a && (null == this.filters && (this.filters = new java_util_JavaScriptVector()), this.filters.addElement_1(a)); return this; }, removeFilter_1: function (a) { null != a && null != this.filters && 0 < this.filters.size_0() && this.filters.removeElement_1(a); return this; }, removeAllFilters_0: function () { null != this.filters && 0 < this.filters.size_0() && this.filters.removeAllElements_0(); return this; }, cacheScaledVersion_1: function (a) { this.cachescaledversion = a; this.cachescaledversionSet = !0; return this; }, alphaBlendMode_1: function (a) { this.blendMode = a; this.blendModeSet = !0; return this; }, resizeToParent_1: function (a) { this.resize2Parent = a; this.resize2ParentSet = !0; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.imagefile, "imagefile is not set"); var d = this.imagefile.create_1(b.getResourceManager_0()); GT1650.prototype.assertExp_2(null != d && d.isLoaded_0(), "image " + this.imagefile + " wasn't loaded"); if (null == d) return new GT1560(a, this.xPos, this.yPos, 10, 10); var e = d.getColumnWidth_0(), f = d.getRowHeight_0(), g, k; g = this.resize2Parent ? a.getWidth_0() : -1 == this.widthSize ? e : this.widthSize; k = this.resize2Parent ? a.getHeight_0() : -1 == this.heightSize ? f : this.heightSize; var m, n; -1 != this.showcolumn && -1 != this.showrow ? ((m = e * this.showcolumn), (n = f * this.showrow)) : ((m = -1 != this.sourcex ? this.sourcex : 0), (n = -1 != this.sourcey ? this.sourcey : 0), (e = -1 != this.sourcew ? this.sourcew : e), (f = -1 != this.sourceh ? this.sourceh : f)); d = new GT1591(a, this.xPos, this.yPos, g, k, d, m, n, e, f, this.cachescaledversion, this.colortransformation); null != this.blendMode && d.setAlphaBlendMode_1(this.blendMode); if (null != this.filters && 0 < this.filters.size_0()) for (g = 0; g < this.filters.size_0(); ++g) (k = this.filters.elementAt_1(g)), d.addFilter_1(k.create_1(b)); else d.removeAllFilters_0(); d.setApplicationID_1(this.appId); d.setAlpha_1(this.alpha); d.hide_1(this.initialHide); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.imagefile, "Can't load DImage without imagefile set!"); this.imagefile.load_1(a.getResourceManager_0()); if (null != this.filters) for (var b = 0; b < this.filters.size_0(); b++) if (null != this.filters.elementAt_1(b)) { var d = this.filters.elementAt_1(b); null != d && d.load_1(a); } }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1392); GT1650.prototype.assertExp_2(b, "Descriptor is no DImage"); if ( b && (this.wSet && (a.widthSize = this.widthSize), this.hSet && (a.heightSize = this.heightSize), this.showTileSet && ((a.showcolumn = this.showcolumn), (a.showrow = this.showrow)), this.sourceSet && ((a.sourcex = this.sourcex), (a.sourcey = this.sourcey), (a.sourcew = this.sourcew), (a.sourceh = this.sourceh)), this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.initialHideSet && (a.initialHide = this.initialHide), null != this.imagefile && (a.imagefile = this.imagefile), this.alphaSet && (a.alpha = this.alpha), this.cachescaledversionSet && (a.cachescaledversion = this.cachescaledversion), this.colortransformationSet && (a.colortransformation = this.colortransformation), this.blendModeSet && (a.blendMode = this.blendMode), this.resize2ParentSet && (a.resize2Parent = this.resize2Parent), null != this.filters) ) for (a.removeAllFilters_0(), b = 0; b < this.filters.size_0(); b++) a.addFilter_1(this.filters.elementAt_1(b)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1392", [GT1272] ); GT1392.prototype.set_0 = function () { return new GT1392(); }; var GT1169 = GT1334.extend( { initialConstructor_0: function () { this.bordercolor = this.fontInactivecolor = this.backgroundcolor = this.fontcolor = this.fontdescriptor = null; this.sizeModified = this.posModified = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.fontcolor = GT1634.prototype.white; this.backgroundcolor = GT1634.prototype.black; this.bordercolor = GT1634.prototype.gray; this.fontdescriptor = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(80); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, font_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontdescriptor = null == a ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(80) : a; return this; }, fontColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.fontcolor = null == a ? GT1634.prototype.white : a.create_0(); return this; }, fontInactiveColor_1: function (a) { this.fontInactivecolor = null == a ? null : a.create_0(); return this; }, backgroundColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.backgroundcolor = null == a ? GT1634.prototype.black : a.create_0(); return this; }, borderColor_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.bordercolor = null == a ? GT1634.prototype.gray : a.create_0(); return this; }, create_2: function (a, b) { var d = this.fontdescriptor.create_1(b.getResourceManager_0()), d = new GT1413(a, this.xPos, this.yPos, this.widthSize, this.heightSize, d, this.fontcolor, this.backgroundcolor, this.bordercolor); null != this.fontInactivecolor && d.setForegroundColor_2(this.fontcolor, this.fontInactivecolor); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, load_1: function (a) { this.fontdescriptor.load_1(a.getResourceManager_0()); }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1169)) return !1; if (null == this.backgroundcolor) { if (null != a.backgroundcolor) return !1; } else if (!this.backgroundcolor.equals_1(a.backgroundcolor)) return !1; if (null == this.bordercolor) { if (null != a.bordercolor) return !1; } else if (!this.bordercolor.equals_1(a.bordercolor)) return !1; if (null == this.fontcolor) { if (null != a.fontcolor) return !1; } else if (!this.fontcolor.equals_1(a.fontcolor)) return !1; if (null == this.fontInactivecolor) { if (null != a.fontInactivecolor) return !1; } else if (!this.fontInactivecolor.equals_1(a.fontInactivecolor)) return !1; if (null == this.fontdescriptor) { if (null != a.fontdescriptor) return !1; } else if (!this.fontdescriptor.equals_1(a.fontdescriptor)) return !1; return !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1169); GT1650.prototype.assertExp_2(b, "Descriptor is no DInputField"); b && (this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)), this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)), null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.fontcolor && (a.fontcolor = this.fontcolor), null != this.bordercolor && (a.bordercolor = this.bordercolor), null != this.backgroundcolor && (a.backgroundcolor = this.backgroundcolor), null != this.fontInactivecolor && (a.fontInactivecolor = this.fontInactivecolor)); }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1169", [GT1272] ); GT1169.prototype.set_0 = function () { return new GT1169(); }; var GT489 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.animationOffsetY = this.animationOffsetX = 0; this.animationOffsetModified = !1; this.animationName = this.animationFile = null; this.shouldStartOnCreateSet = this.shouldStartOnCreate = this.shouldLoopSet = this.shouldLoop = !1; this.debugAreaColor = this.imagesToReplace = this.imagesToLoad = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.animationOffsetY = this.animationOffsetX = 0; this.shouldStartOnCreate = this.shouldLoop = !1; this.imagesToLoad = new java_util_JavaScriptVector(); this.imagesToReplace = new java_util_JavaScriptVector(); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, animationOffset_2: function (a, b) { this.animationOffsetX = a; this.animationOffsetY = b; this.animationOffsetModified = !0; return this; }, animationFileAndName_2: function (a, b) { this.animationFile = a; this.animationName = b; return this; }, looping_1: function (a) { this.shouldLoop = a; this.shouldLoopSet = !0; return this; }, startOnCreation_1: function (a) { this.shouldStartOnCreate = a; this.shouldStartOnCreateSet = !0; return this; }, addImageToLoad_1: function (a) { this.imagesToLoad.add_1(a); return this; }, addImageToContainerReplacement_1: function (a) { null == a || this.imagesToReplace.contains_1(a) || this.imagesToReplace.add_1(a); return this; }, load_1: function (a) { GT1334.prototype.load_1.call(this, a); for (var b = 0; b < this.imagesToLoad.size_0(); b++) a.getResourceManager_0().startLoadImage_4(this.imagesToLoad.get_1(b), 1, 1, !1); GT1650.prototype.assertExp_2(null != this.animationFile, "DKeyFrameAnimationPlayer.load: animationFile must not be null"); null != this.animationFile && a.getResourceManager_0().startLoadJSONObject_1(this.animationFile); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.animationFile, "DKeyFrameAnimationPlayer.create: animationFile must not be null"); GT1650.prototype.assertExp_2(null != this.animationName, "DKeyFrameAnimationPlayer.create: animationName must not be null"); GT1650.prototype.assertExp_2(0 < this.widthSize, "DKeyFrameAnimationPlayer.create: width must not be zero or negative"); GT1650.prototype.assertExp_2(0 < this.heightSize, "DKeyFrameAnimationPlayer.create: height must not be zero or negative"); for ( var d = new GT744(a, this.xPos, this.yPos, this.widthSize, this.heightSize, b.getTimer_0(), this.animationFile, this.animationName, this.shouldLoop, b, this.animationOffsetX, this.animationOffsetY), e = 0; e < this.imagesToReplace.size_0() && null != d; e++ ) d.addImageToContainerReplacement_1(this.imagesToReplace.get_1(e)); this.shouldStartOnCreate && d.start_0(); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT489); GT1650.prototype.assertExp_2(b, "Descriptor is no DKeyFrameAnimationPlayer"); if (b) { this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)); this.animationOffsetModified && ((a.animationOffsetX = this.animationOffsetX), (a.animationOffsetY = this.animationOffsetY)); null != this.animationFile && (a.animationFile = this.animationFile); null != this.animationName && (a.animationName = this.animationName); this.shouldLoopSet && (a.shouldLoop = this.shouldLoop); this.shouldStartOnCreateSet && (a.shouldStartOnCreate = this.shouldStartOnCreate); if (0 < this.imagesToLoad.size_0()) for (a.imagesToLoad.setSize_1(0), b = 0; b < this.imagesToLoad.size_0(); b++) a.imagesToLoad.addElement_1(this.imagesToLoad.elementAt_1(b)); if (0 < this.imagesToReplace.size_0()) for (a.imagesToReplace.setSize_1(0), b = 0; b < this.imagesToReplace.size_0(); b++) a.imagesToReplace.addElement_1(this.imagesToReplace.elementAt_1(b)); } }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT489", [GT1272] ); GT489.prototype.set_0 = function () { return new GT489(); }; var GT1462 = GT1334.extend( { initialConstructor_0: function () { this.sizeModified = this.posModified = !1; this.points = null; this.linethickness = 0; this.linethicknessSet = !1; this.linecolor = null; this.clipToSizeSet = this.clipToSize = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT1334.prototype.initialConstructor_0.call(this); this.points = new java_util_JavaScriptVector(); this.clipToSize = !0; this.linethickness = 4; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; this.posModified = !0; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; this.sizeModified = !0; return this; }, point_2: function (a, b) { this.points.addElement_1(new Integer(a)); this.points.addElement_1(new Integer(b)); return this; }, thickness_1: function (a) { this.linethickness = a; this.linethicknessSet = !0; return this; }, color_1: function (a) { GT1650.prototype.assertExp_2(null != a, "color is null"); this.linecolor = null == a ? null : a.create_0(); return this; }, dontClipToSize_0: function () { this.clipToSize = !1; this.clipToSizeSet = !0; return this; }, create_2: function (a, b) { for (var d = this.points.size_0(), e = [].createArray(d).init(0), f = 0; f < d; f++) e[f] = this.points.elementAt_1(f).intValue_0(); d = new GT1614(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.linethickness, e, null == this.linecolor ? GT1634.prototype.white : this.linecolor, this.clipToSize); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, equals_1: function (a) { if (this == a) return !0; if (!GT1334.prototype.equals_1.call(this, a) || !instanceOf(a, GT1462) || this.clipToSize != a.clipToSize) return !1; if (null == this.linecolor) { if (null != a.linecolor) return !1; } else if (!this.linecolor.equals_1(a.linecolor)) return !1; if (null == this.points) { if (null != a.points) return !1; } else if (!this.points.equals_1(a.points)) return !1; return this.linethickness != a.linethickness ? !1 : !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1462); GT1650.prototype.assertExp_2(b, "Descriptor is no DLine"); if (b) { this.posModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); this.sizeModified && ((a.widthSize = this.widthSize), (a.heightSize = this.heightSize)); if (0 < this.points.size_0()) for (a.points.setSize_1(0), b = 0; b < this.points.size_0(); b++) a.points.addElement_1(this.points.elementAt_1(b)); this.linethicknessSet && (a.linethickness = this.linethickness); this.clipToSizeSet && (a.clipToSize = this.clipToSize); null != this.linecolor && (a.linecolor = this.linecolor); } }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT1462", [GT1272] ); GT1462.prototype.set_0 = function () { return new GT1462(); }; var GT871 = GT787.extend( { initialConstructor_0: function () { this.horizontalReflowSet = this.horizontalReflow = !1; this.halign = null; this.halignSet = !1; this.valign = null; this.valignSet = !1; this.dynamicchild = 0; this.insetsSet = this.dynamicchildSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.revCFRTLSet = this.reverseRTLContent = !1; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.horizontalReflow = !1; this.dynamicchild = -1; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.revCFRTLSet = this.reverseRTLContent = !1; }, id_1: function (a) { this.appId = a; return this; }, vertical_0: function () { this.horizontalReflow = !1; this.horizontalReflowSet = !0; return this; }, horizontal_0: function () { this.horizontalReflowSet = this.horizontalReflow = !0; return this; }, horizontalAlignment_1: function (a) { this.halign = a; this.halignSet = !0; return this; }, verticalAlignment_1: function (a) { this.valign = a; this.valignSet = !0; return this; }, dynamicChild_1: function (a) { this.dynamicchild = a; this.dynamicchildSet = !0; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, resizeToContent_1: function (a) { this.resizeToContentImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsImpl_4(a, b, d, e); return this; }, reverseContentForRTL_1: function (a) { this.revCFRTLSet = !0; this.reverseRTLContent = a; return this; }, insetsImpl_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; }, colorTransformation_1: function (a) { this.colorTransformationImpl_1(a); return this; }, createContainer_5: function (a, b, d, e, f) { return new GT1158(a, b, d, e, f); }, create_2: function (a, b) { var d = this.createContainer_5(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a)); this.createImpl_2(d, b); d.setHorizontalReflow_1(this.horizontalReflow); d.setHorizontalAlignment_1(this.halign); d.setVerticalAlignment_1(this.valign); d.setDynamicChild_1(this.dynamicchild); d.setResize2content_1(this.resize2content); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); b.isRTLLanguage_0() && d.setReverseContent_1(this.reverseRTLContent); d.reflow_0(); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { this.loadImpl_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT871); GT1650.prototype.assertExp_2(b, "Descriptor is no DReflowContainer"); b && (this.modifyDescriptorImpl_1(a), this.horizontalReflowSet && (a.horizontalReflow = this.horizontalReflow), this.halignSet && (a.halign = this.halign), this.valignSet && (a.valign = this.valign), this.dynamicchildSet && (a.dynamicchild = this.dynamicchild), this.insetsSet && ((a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)), this.revCFRTLSet && (a.reverseRTLContent = this.reverseRTLContent)); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, removeChildren_0: function () { this.removeChildrenImpl_0(); return this; }, move_2: function (a, b) { return this.moveImpl_2(a, b); }, childBefore_2: function (a, b) { return this.childBeforeImpl_2(a, b); }, childAfter_2: function (a, b) { return this.childAfterImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT871", [GT1272] ); GT871.prototype.set_0 = function () { return new GT871(); }; var GT1303 = GT787.extend( { initialConstructor_0: function () { this.isCyclic = this.isCyclicModified = this.isAppIdModified = !1; GT787.prototype.initialConstructor_0.call(this); this.children.setSize_1(2); }, id_1: function (a) { this.isAppIdModified = !0; this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, buttonDown_1: function (a) { GT1650.prototype.assertExp_2(null != a, "dButton is null"); this.children.setSize_1(2); this.children.setElementAt_2(a, 1); return this; }, buttonUp_1: function (a) { GT1650.prototype.assertExp_2(null != a, "dButton is null"); this.children.setSize_1(2); this.children.setElementAt_2(a, 0); return this; }, cyclic_1: function (a) { this.isCyclicModified = !0; this.isCyclic = a; return this; }, create_2: function (a, b) { null == this.children.elementAt_1(0) && this.children.setElementAt_2(GT1133.prototype.set_0(), 0); null == this.children.elementAt_1(1) && this.children.setElementAt_2(GT1133.prototype.set_0(), 1); GT1650.prototype.assertExp_2(null != this.children.elementAt_1(0), "buttonUp is null"); GT1650.prototype.assertExp_2(null != this.children.elementAt_1(1), "buttonDown is null"); var d = new GT1550(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a)); this.createImpl_2(d, b); d.init_0(); d.setCyclic_1(this.isCyclic); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { this.loadImpl_1(a); null != this.children.elementAt_1(0) && this.children.elementAt_1(0).load_1(a); null != this.children.elementAt_1(1) && this.children.elementAt_1(1).load_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1303); GT1650.prototype.assertExp_2(b, "Descriptor is no DSpinner"); b && (this.modifyDescriptorImpl_1(a), this.isAppIdModified && (a.appId = this.appId), this.isCyclicModified && (a.isCyclic = this.isCyclic)); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT1303", [GT1272] ); GT1303.prototype.set_0 = function () { return new GT1303(); }; var GT1239 = GT825.extend( { initialConstructor_0: function () { this.uppercase = !1; GT825.prototype.initialConstructor_0.call(this); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, text_1: function (a) { this.textImpl_1(a); return this; }, upperCaseText_1: function (a) { this.uppercase = a; return this; }, font_1: function (a) { this.fontImpl_1(a); return this; }, fontColor_1: function (a) { this.fontColorImpl_1(a); return this; }, spacing_1: function (a) { this.spacingImpl_1(a); return this; }, hAlign_1: function (a) { this.hAlignImpl_1(a); return this; }, vAlign_1: function (a) { this.vAlignImpl_1(a); return this; }, shadow_3: function (a, b, d) { this.shadowImpl_3(a, b, d); return this; }, gradient_2: function (a, b) { this.gradientImpl_2(a, b); return this; }, gradient_1: function (a) { this.gradientImpl_1(a); return this; }, outline_2: function (a, b) { this.outlineImpl_2(a, b); return this; }, removeOutline_0: function () { this.removeOutlineImpl_0(); return this; }, background_1: function (a) { this.backgroundImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsImpl_4(a, b, d, e); return this; }, adaptiveHeight_1: function (a) { this.adaptiveHeightImpl_1(a); return this; }, transparency_1: function (a) { this.transparencyImpl_1(a); return this; }, changeHAlignOnRTLLanguages_1: function (a) { this.changeHAlignOnRTLImpl_1(a); return this; }, create_2: function (a, b) { var d = this.widthSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); var e = this.heightSize; -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); var f; f = null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0()) : this.fontdescriptor.create_1(b.getResourceManager_0()); var g = null == this.color ? GT1634.prototype.gray : this.color, k = null == this.halign ? GT1488.prototype.LEFT : this.halign, m = null == this.valign ? GT1489.prototype.TOP : this.valign; this.changeHAlignOnRTL && b.isRTLLanguage_0() && (k == GT1488.prototype.LEFT ? (k = GT1488.prototype.RIGHT) : k == GT1488.prototype.RIGHT && (k = GT1488.prototype.LEFT)); f = new GT1490(a, this.xPos, this.yPos, d, e, f, g, k, m); f.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); null != this.fontdescriptor && 0 < this.fontdescriptor.linespacing && f.setFontSpecificSpacing_1(this.fontdescriptor.linespacing); -1 != this.linespacing && f.setSpacing_1(this.linespacing); g = this.getBackground_0(); null != g && ((g = g.create_2(f.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(d, e)); 0 < this.outlinethickness && f.setOutline_2(this.outlinethickness, this.outlineColor); f.setUsingAdaptiveHeight_1(this.adaptiveheight); this.shadowSet && f.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); this.gradientSet && f.setGradient_1(this.gradientData); null == this.textstring ? f.setText_1("") : f.setText_1(this.uppercase ? GT1677.prototype.toUpperCaseAZ_1(b.getText_1(this.textstring)) : b.getText_1(this.textstring)); "1".equals_1(b.getParameter_1("showtextborders")) && f.showBorders_1(!0); f.setApplicationID_1(this.appId); -1 == this.alpha ? f.setAlpha_1(255) : f.setAlpha_1(this.alpha); f.hide_1(this.initialHide); return f; }, modifyDescriptor_1: function (a) { instanceOf(a, GT825) && this.modifyDescriptorImpl_1(a); a = instanceOf(a, GT1239); GT1650.prototype.assertExp_2(a, "Descriptor is no DTextArea"); }, }, "GT1239", [GT1272] ); GT1239.prototype.set_0 = function () { return new GT1239(); }; var GT745 = GT825.extend( { initialConstructor_0: function () { this.m_imageRows = this.m_imageColumns = this.m_imageHeights = this.m_imageWidths = this.m_imageFiles = this.m_textToImageReplacementCodePrefix = null; GT825.prototype.initialConstructor_0.call(this); this.m_textToImageReplacementCodePrefix = "#i"; this.m_imageFiles = new java_util_JavaScriptVector(); this.m_imageWidths = new java_util_JavaScriptVector(); this.m_imageHeights = new java_util_JavaScriptVector(); this.m_imageColumns = new java_util_JavaScriptVector(); this.m_imageRows = new java_util_JavaScriptVector(); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, text_1: function (a) { this.textImpl_1(a); return this; }, font_1: function (a) { this.fontImpl_1(a); return this; }, fontColor_1: function (a) { this.fontColorImpl_1(a); return this; }, spacing_1: function (a) { this.spacingImpl_1(a); return this; }, hAlign_1: function (a) { this.hAlignImpl_1(a); return this; }, vAlign_1: function (a) { this.vAlignImpl_1(a); return this; }, shadow_3: function (a, b, d) { this.shadowImpl_3(a, b, d); return this; }, gradient_2: function (a, b) { this.gradientImpl_2(a, b); return this; }, gradient_1: function (a) { this.gradientImpl_1(a); return this; }, outline_2: function (a, b) { this.outlineImpl_2(a, b); return this; }, removeOutline_0: function () { this.removeOutlineImpl_0(); return this; }, background_1: function (a) { this.backgroundImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsImpl_4(a, b, d, e); return this; }, adaptiveHeight_1: function (a) { this.adaptiveHeightImpl_1(a); return this; }, transparency_1: function (a) { this.transparencyImpl_1(a); return this; }, changeHAlignOnRTLLanguages_1: function (a) { this.changeHAlignOnRTLImpl_1(a); return this; }, textToImageReplacementCodePrefix_1: function (a) { "" != this.m_textToImageReplacementCodePrefix && " " != this.m_textToImageReplacementCodePrefix && (this.m_textToImageReplacementCodePrefix = a); return this; }, setImage_4: function (a, b, d, e) { return this.setImage_6(a, b, d, e, 0, 0); }, setImage_6: function (a, b, d, e, f, g) { this.m_imageFiles.size_0() <= a && (this.m_imageFiles.setSize_1(a + 1), this.m_imageWidths.setSize_1(a + 1), this.m_imageHeights.setSize_1(a + 1), this.m_imageColumns.setSize_1(a + 1), this.m_imageRows.setSize_1(a + 1)); this.m_imageFiles.set_2(a, b); null != b ? (this.m_imageWidths.set_2(a, new Integer(d)), this.m_imageHeights.set_2(a, new Integer(e)), this.m_imageColumns.set_2(a, new Integer(f)), this.m_imageRows.set_2(a, new Integer(g))) : (this.m_imageWidths.set_2(a, null), this.m_imageHeights.set_2(a, null), this.m_imageColumns.set_2(a, null), this.m_imageRows.set_2(a, null)); return this; }, setImage_2: function (a, b) { this.m_imageFiles.size_0() <= a && (this.m_imageFiles.setSize_1(a + 1), this.m_imageWidths.setSize_1(a + 1), this.m_imageHeights.setSize_1(a + 1), this.m_imageColumns.setSize_1(a + 1), this.m_imageRows.setSize_1(a + 1)); this.m_imageFiles.set_2(a, b); this.m_imageWidths.set_2(a, null); this.m_imageHeights.set_2(a, null); this.m_imageColumns.set_2(a, null); this.m_imageRows.set_2(a, null); return this; }, create_2: function (a, b) { var d = this.widthSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); var e = this.heightSize; -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); var f; f = null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0()) : this.fontdescriptor.create_1(b.getResourceManager_0()); var g = null == this.color ? GT1634.prototype.gray : this.color, k = null == this.halign ? GT1488.prototype.LEFT : this.halign, m = null == this.valign ? GT1489.prototype.TOP : this.valign; this.changeHAlignOnRTL && b.isRTLLanguage_0() && (k == GT1488.prototype.LEFT ? (k = GT1488.prototype.RIGHT) : k == GT1488.prototype.RIGHT && (k = GT1488.prototype.LEFT)); f = new GT1002(a, this.xPos, this.yPos, d, e, f, g, k, m, b.isRTLLanguage_0()); f.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); -1 != this.linespacing && f.setSpacing_1(this.linespacing); g = this.getBackground_0(); null != g && ((g = g.create_2(f.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(d, e)); 0 < this.outlinethickness && f.setOutline_2(this.outlinethickness, this.outlineColor); f.setUsingAdaptiveHeight_1(this.adaptiveheight); this.shadowSet && f.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); null == this.textstring ? f.setText_1("") : f.setText_1(b.getText_1(this.textstring)); "1".equals_1(b.getParameter_1("showtextborders")) && f.showBorders_1(!0); this.gradientSet && f.setGradient_1(this.gradientData); f.setApplicationID_1(this.appId); -1 == this.alpha ? f.setAlpha_1(255) : f.setAlpha_1(this.alpha); f.hide_1(this.initialHide); GT1650.prototype.assertExp_2(null != this.m_textToImageReplacementCodePrefix, "The text-to-image-replacement code prefix mustn't be null."); f.setTextToImageReplacementCodePrefix_1(this.m_textToImageReplacementCodePrefix); if (!this.m_imageFiles.isEmpty_0()) { g = new java_util_JavaScriptVector(); g.setSize_1(this.m_imageFiles.size_0()); for (k = 0; k < this.m_imageFiles.size_0(); ++k) if (null != this.m_imageFiles.elementAt_1(k)) { var m = this.m_imageFiles.elementAt_1(k).create_1(b.getResourceManager_0()), n = null == this.m_imageWidths.get_1(k) ? m.getWidth_0() : this.m_imageWidths.get_1(k).intValue_0(), p = null == this.m_imageHeights.get_1(k) ? m.getHeight_0() : this.m_imageHeights.get_1(k).intValue_0(); GT1650.prototype.assertExp_2(n <= d, "Image " + m.toString() + " width is too big: " + n + " (inside DTextAreaWithImages)"); GT1650.prototype.assertExp_2(p <= e, "Image " + m.toString() + " height is too big: " + p + " (inside DTextAreaWithImages)"); g.setElementAt_2(m, k); } f.setImages_5(g, this.m_imageWidths, this.m_imageHeights, this.m_imageColumns, this.m_imageRows); } return f; }, load_1: function (a) { GT825.prototype.load_1.call(this, a); for (var b = 0; b < this.m_imageFiles.size_0(); ++b) null != this.m_imageFiles.elementAt_1(b) && this.m_imageFiles.elementAt_1(b).load_1(a.getResourceManager_0()); }, modifyDescriptor_1: function (a) { instanceOf(a, GT825) && this.modifyDescriptorImpl_1(a); var b = instanceOf(a, GT745); GT1650.prototype.assertExp_2(b, "Descriptor is no DTextAreaWithImages"); b && (null != this.m_textToImageReplacementCodePrefix && (a.m_textToImageReplacementCodePrefix = this.m_textToImageReplacementCodePrefix), this.m_imageFiles.isEmpty_0() || ((a.m_imageFiles = this.m_imageFiles), (a.m_imageWidths = this.m_imageWidths), (a.m_imageHeights = this.m_imageHeights), (a.m_imageColumns = this.m_imageColumns), (a.m_imageRows = this.m_imageRows))); }, }, "GT745", [GT1272] ); GT745.prototype.set_0 = function () { return new GT745(); }; var GT1220 = GT825.extend( { initialConstructor_0: function () { this.secondsSet = this.seconds = !1; GT825.prototype.initialConstructor_0.call(this); this.seconds = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, text_1: function (a) { this.textImpl_1(a); return this; }, font_1: function (a) { this.fontImpl_1(a); return this; }, fontColor_1: function (a) { this.fontColorImpl_1(a); return this; }, hAlign_1: function (a) { this.hAlignImpl_1(a); return this; }, vAlign_1: function (a) { this.vAlignImpl_1(a); return this; }, shadow_3: function (a, b, d) { this.shadowImpl_3(a, b, d); return this; }, outline_2: function (a, b) { this.outlineImpl_2(a, b); return this; }, removeOutline_0: function () { this.removeOutlineImpl_0(); return this; }, background_1: function (a) { this.backgroundImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsImpl_4(a, b, d, e); return this; }, transparency_1: function (a) { this.transparencyImpl_1(a); return this; }, changeHAlignOnRTLLanguages_1: function (a) { this.changeHAlignOnRTLImpl_1(a); return this; }, showSeconds_1: function (a) { this.seconds = a; this.secondsSet = !0; return this; }, create_2: function (a, b) { var d = this.widthSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); var e = this.heightSize; -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); var f; f = null == this.fontdescriptor ? GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0()) : this.fontdescriptor.create_1(b.getResourceManager_0()); var g = null == this.color ? GT1634.prototype.gray : this.color, k = null == this.halign ? GT1488.prototype.LEFT : this.halign, m = null == this.valign ? GT1489.prototype.TOP : this.valign; this.changeHAlignOnRTL && b.isRTLLanguage_0() && (k == GT1488.prototype.LEFT ? (k = GT1488.prototype.RIGHT) : k == GT1488.prototype.RIGHT && (k = GT1488.prototype.LEFT)); f = new GT1463(a, b.getTimer_0(), this.xPos, this.yPos, d, e, f, g, k, m, !1, this.seconds); f.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); g = this.getBackground_0(); null != g && ((g = g.create_2(f.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(d, e)); 0 < this.outlinethickness && f.setOutline_2(this.outlinethickness, this.outlineColor); this.shadowSet && f.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); null == this.textstring ? f.setText_1("") : f.setText_1(b.getText_1(this.textstring)); "1".equals_1(b.getParameter_1("showtextborders")) && f.showBorders_1(!0); f.setApplicationID_1(this.appId); -1 == this.alpha ? f.setAlpha_1(255) : f.setAlpha_1(this.alpha); f.hide_1(this.initialHide); return f; }, modifyDescriptor_1: function (a) { instanceOf(a, GT825) && this.modifyDescriptorImpl_1(a); var b = instanceOf(a, GT1220); GT1650.prototype.assertExp_2(b, "Descriptor is no DTimeField"); b && this.secondsSet && (a.seconds = this.seconds); }, }, "GT1220", [GT1272] ); GT1220.prototype.set_0 = function () { return new GT1220(); }; var GT1054 = GT1355.extend( { initialConstructor_0: function () { GT1355.prototype.initialConstructor_1.call(this, 8); }, createButton_4: function (a, b, d, e) { return new GT1316(a, b, d); }, }, "GT1054", [] ); GT1054.prototype.set_0 = function () { return new GT1054(); }; var GT585 = GT873.extend( { initialConstructor_0: function () { GT873.prototype.initialConstructor_0.call(this); }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = 0); -1 == this.heightSize && (e = 0); for (var f = new GT1316(a, this.xPos, this.yPos, d, e), d = 0; d < this.children.size_0(); d++) this.children.elementAt_1(d).create_2(f, b); if (0 > this.widthSize || 0 > this.heightSize) if ((f.resizeToContent_0(), 0 == f.getWidth_0() || 0 == f.getHeight_0())) (d = f.getParent_0().getWidth_0()), (e = f.getParent_0().getHeight_0()), f.resize_2(d, e); f.setApplicationData_2(this.appId, this._data); this._dragable && (f.setDragable_1(!0), -1 != this.dragAreaX && f.setDragArea_4(this.dragAreaX, this.dragAreaY, this.dragAreaW, this.dragAreaH)); null != this.buttontooltip && f.setToolTip_1(b.getText_1(this.buttontooltip)); e = null; if (null != this.buttonStates) for (e = this.buttonStates.create_0(), d = 0; d < e.length; d++) null != e[d] && f.setChildForState_2(e[d], d); this.showhandcursorset && f.setShowHandCursor_1(this.showhandcursor); null != this.clickAreaShape && f.setClickableAreaShape_1(this.clickAreaShape.create_0()); null != this.clicksound && ((d = new GT506(this.clicksound.create_1(b), b.getSoundPlayer_0())), f.addButtonListener_1(d)); f.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); f.finishButton_0(); f.hide_1(this.initialHide); return f; }, }, "GT585", [] ); GT585.prototype.set_0 = function () { return new GT585(); }; var GT583 = GT1186.extend( { initialConstructor_0: function () { GT1186.prototype.initialConstructor_0.call(this); }, createContainer_5: function (a, b, d, e, f) { return new GT852(a, b, d, e, f); }, }, "GT583", [] ); GT583.prototype.set_0 = function () { return new GT583(); }; var GT951 = GT787.extend( { initialConstructor_0: function () { this.tweens = this.imageToQuadMap = null; this.mUpdateInterval = 0; this.mUpdateIntervalSet = !1; GT787.prototype.initialConstructor_0.call(this); this.tweens = new java_util_JavaScriptVector(); this.mUpdateInterval = 16; }, imageToQuadMapping_1: function (a) { this.imageToQuadMap = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, addTween_1: function (a) { this.tweens.add_1(a); return this; }, updateInterval_1: function (a) { this.mUpdateInterval = a; this.mUpdateIntervalSet = !0; return this; }, removeAllTweens_0: function () { this.tweens.clear_0(); return this; }, load_1: function (a) { GT787.prototype.load_1.call(this, a); for (var b = this.imageToQuadMap.getImages_0(), d = 0; d < b.size_0(); d++) b.get_1(d).load_1(a.getResourceManager_0()); }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.imageToQuadMap, "imageToQuadMapping has not been set for DTweenContainer"); if (null != this.imageToQuadMap) { var d = this.imageToQuadMap.create_1(b.getResourceManager_0()); return new GT1221(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a), b.getTimer_0(), d, this.tweens, 0 == this.mUpdateInterval ? 16 : this.mUpdateInterval); } return null; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT951); GT1650.prototype.assertExp_2(b, "Descriptor is no DTweenContainer"); if (b) { this.modifyDescriptorImpl_1(a); if (null != this.tweens && 0 < this.tweens.size_0()) for (a.tweens.setSize_1(0), b = 0; b < this.tweens.size_0(); b++) a.tweens.addElement_1(this.tweens.elementAt_1(b)); null != this.imageToQuadMap && (a.imageToQuadMap = this.imageToQuadMap); this.mUpdateIntervalSet && (a.mUpdateInterval = this.mUpdateInterval); } }, }, "GT951", [GT1272] ); GT951.prototype.set_0 = function () { return new GT951(); }; var GT1135 = GT787.extend( { initialConstructor_0: function () { this.color = null; this.colorSet = !1; this.linespacing = 0; this.linespacingSet = !1; this.valign = this.halign = this.txt = null; this.changeHAlignOnRTL = this.changeHAlignSet = !1; this.outlinethickness = 0; this.outlineColor = null; this.shadowSet = this.outlineSet = !1; this.shadowY = this.shadowX = 0; this.shadowColor = null; this.gradientSet = !1; this.gradientData = null; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.insetsSet = !1; this.fontdescriptors = null; this.breakLinesSet = this.breaklines = this.adaptiveheightSet = this.adaptiveheight = this.adaptiveSpacingSet = this.adaptivespacing = !1; this.time = 0; this.timeSet = !1; this.countsound = null; this.countsoundSet = !1; this.countendsound = null; this.fadesoundSet = this.fadesound = this.countendsoundSet = !1; this.fadetime = 0; this.fadetimeSet = !1; this.restartposition = this.endposition = this.startposition = 0; this.appendixesSet = !1; this.suffix = this.prefix = null; GT787.prototype.initialConstructor_0.call(this); this.outlinethickness = this.linespacing = this.heightSize = this.widthSize = -1; this.adaptiveheightSet = this.insetsSet = !1; this.insetRight = this.insetLeft = 5; this.insetBottom = this.insetTop = 3; this.fontdescriptors = new java_util_JavaScriptVector(); this.adaptiveSpacingSet = !1; this.adaptivespacing = !0; this.breakLinesSet = !1; this.breaklines = !0; this.appendixesSet = this.fadetimeSet = this.fadesoundSet = this.countendsoundSet = this.countsoundSet = !1; this.valign = this.halign = this.color = null; this.changeHAlignSet = !1; this.changeHAlignOnRTL = !0; this.time = -1; this.txt = ""; this.fadesound = !0; this.fadetime = 100; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, text_1: function (a) { this.txt = a; return this; }, appendixes_2: function (a, b) { this.prefix = a; this.suffix = b; this.appendixesSet = !0; return this; }, addFont_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontdescriptors.addElement_1(a); return this; }, fontColor_1: function (a) { this.color = null == a ? null : a.create_0(); this.colorSet = !0; return this; }, spacing_1: function (a) { this.linespacing = a; this.linespacingSet = !0; return this; }, adaptiveSpacing_1: function (a) { this.adaptiveSpacingSet = !0; this.adaptivespacing = a; return this; }, adaptiveHeight_1: function (a) { this.adaptiveheightSet = !0; this.adaptiveheight = a; return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = 0); this.outlineSet = !0; return this; }, shadow_3: function (a, b, d) { this.shadowSet = !0; this.shadowX = a; this.shadowY = b; null != d ? (this.shadowColor = d.create_0()) : (this.shadowY = this.shadowX = 0); return this; }, gradient_2: function (a, b) { this.gradientSet = !0; this.gradientData = GT1238.prototype .set_0() .addColor_2(a, 48 / 255) .addColor_2(b, 207 / 255) .rotation_1(Math.PI / 2) .create_0(); return this; }, gradient_1: function (a) { this.gradientSet = !0; this.gradientData = null != a ? a.create_0() : null; return this; }, background_1: function (a) { this.removeChildrenImpl_0(); this.childImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, breakLines_1: function (a) { this.breakLinesSet = !0; this.breaklines = a; return this; }, duration_1: function (a) { this.time = a; this.timeSet = !0; return this; }, sound_1: function (a) { this.countsound = a; this.countsoundSet = !0; this.startposition = this.endposition = this.restartposition = 0; return this; }, soundLoop_4: function (a, b, d, e) { this.sound_1(a); this.startposition = b; this.endposition = d; this.restartposition = e; return this; }, fadeSound_1: function (a) { this.fadesound = a; this.fadesoundSet = !0; return this; }, fadeTime_1: function (a) { this.fadetime = a; this.fadetimeSet = !0; return this; }, soundCountEnd_1: function (a) { this.countendsound = a; this.countendsoundSet = !0; return this; }, changeHAlignOnRTLLanguages_1: function (a) { this.changeHAlignOnRTL = a; this.changeHAlignSet = !0; return this; }, create_2: function (a, b) { var d; if (0 == this.fontdescriptors.size_0()) (d = [].createArray(1)), (d[0] = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0())); else { var e = new java_util_JavaScriptVector(); e.add_1(this.fontdescriptors.elementAt_1(0).create_1(b.getResourceManager_0())); for (var f = 1; f < this.fontdescriptors.size_0(); f++) { d = this.fontdescriptors.elementAt_1(f).create_1(b.getResourceManager_0()); for (var g = !1, k = 0; k < e.size_0(); k++) if (e.elementAt_1(k).getHeight_0() < d.getHeight_0()) { e.insertElementAt_2(d, k); g = !0; break; } g || e.add_1(d); } d = [].createArray(e.size_0()); for (f = 0; f < d.length; f++) d[f] = e.elementAt_1(f); } e = this.widthSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); f = this.heightSize; -1 == this.heightSize && (f = a.getHeight_0() - this.yPos); var g = null == this.color ? GT1634.prototype.gray : this.color, k = null == this.halign ? GT1488.prototype.LEFT : this.halign, m = null == this.valign ? GT1489.prototype.TOP : this.valign; this.changeHAlignOnRTL && b.isRTLLanguage_0() && (k == GT1488.prototype.LEFT ? (k = GT1488.prototype.RIGHT) : k == GT1488.prototype.RIGHT && (k = GT1488.prototype.LEFT)); d = new GT1410(a, this.xPos, this.yPos, e, f, d, g, k, m, b.getTimer_0()); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); d.setAdaptiveSpacing_1(this.adaptivespacing); d.setBreakLines_1(this.breaklines); -1 == this.time ? d.setDuration_1(0) : d.setDuration_1(this.time); null != this.countsound && (d.setFadeOutTime_1(this.fadetime), d.setSound_3(b.getResourceManager_0().getSound_1(this.countsound), b.getSoundPlayer_0(), this.fadesound), d.setLoopPoints_3(this.startposition, this.endposition, this.restartposition)); null != this.countendsound && d.setEndSound_2(b.getResourceManager_0().getSound_1(this.countendsound), b.getSoundPlayer_0()); -1 != this.linespacing && d.setSpacing_1(this.linespacing); this.gradientSet && d.setGradient_1(this.gradientData); g = this.getBackground_0(); null != g && ((g = g.create_2(d.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(e, f)); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); this.shadowSet && d.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); d.setAppendixes_2(b.getText_1(this.prefix), b.getText_1(this.suffix)); null == this.txt ? d.setText_1("") : d.setText_1(b.getText_1(this.txt)); "1".equals_1(b.getParameter_1("showtextborders")) && d.showBorders_1(!0); d.hide_1(this.initialHide); d.setApplicationID_1(this.appId); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1135); GT1650.prototype.assertExp_2(b, "Descriptor is no DValueField"); if (b) { this.modifyDescriptorImpl_1(a); if (0 != this.fontdescriptors.size_0()) for (a.fontdescriptors.clear_0(), b = 0; b < this.fontdescriptors.size_0(); b++) a.fontdescriptors.add_1(this.fontdescriptors.get_1(b)); this.colorSet && (a.color = this.color); this.linespacingSet && (a.linespacing = this.linespacing); null != this.txt && (a.txt = this.txt); null != this.halign && (a.halign = this.halign); null != this.valign && (a.valign = this.valign); this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)); this.insetsSet && ((a.insetsSet = !0), (a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)); this.gradientSet && ((a.gradientSet = !0), (a.gradientData = this.gradientData)); this.adaptiveheightSet && (a.adaptiveheight = this.adaptiveheight); this.breakLinesSet && (a.breaklines = this.breaklines); this.countsoundSet && ((a.countsound = this.countsound), (a.startposition = this.startposition), (a.endposition = this.endposition), (a.restartposition = this.restartposition)); this.countendsoundSet && (a.countendsound = this.countendsound); this.adaptiveSpacingSet && (a.adaptivespacing = this.adaptivespacing); this.timeSet && (a.time = this.time); this.appendixesSet && ((a.prefix = this.prefix), (a.suffix = this.suffix)); this.fadesoundSet && (a.fadesound = this.fadesound); this.fadetimeSet && (a.fadetime = this.fadetime); this.shadowSet && ((a.shadowSet = !0), (a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)); this.changeHAlignSet && (a.changeHAlignOnRTL = this.changeHAlignOnRTL); } }, load_1: function (a) { for (var b = [].createArray(this.fontdescriptors.size_0()), d = 0; d < b.length; d++) this.fontdescriptors.elementAt_1(d).load_1(a.getResourceManager_0()); null != this.countsound && a.getResourceManager_0().startLoadSound_1(this.countsound); null != this.countendsound && a.getResourceManager_0().startLoadSound_1(this.countendsound); b = this.getBackground_0(); null != b && b.load_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, }, "GT1135", [GT1272] ); GT1135.prototype.set_0 = function () { return new GT1135(); }; var GT1003 = GT787.extend( { initialConstructor_0: function () { this.fontColorVal = this.fontdescriptor = this.spinnerBgImageHandleVal = this.spinnerImageHandleVal = this.buttonImageHandleVal = null; this.buttonWidthVal = 0; this.buttonWidthValSet = !1; this.otherIdVal = 0; this.heightModified = this.otherIdValSet = !1; GT787.prototype.initialConstructor_0.call(this); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, buttonImageHandle_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.buttonImageHandleVal = a; return this; }, spinnerImageHandle_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.spinnerImageHandleVal = a; return this; }, spinnerBgImageHandle_1: function (a) { GT1650.prototype.assertExp_2(null != a, "image is null"); this.spinnerBgImageHandleVal = a; return this; }, font_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontdescriptor = a; return this; }, height_1: function (a) { this.heightSize = a; this.heightModified = !0; return this; }, fontColor_1: function (a) { this.fontColorVal = a; return this; }, buttonWidth_1: function (a) { this.buttonWidthVal = a; this.buttonWidthValSet = !0; return this; }, hideObjectWhenShown_1: function (a) { this.otherIdVal = a; this.otherIdValSet = !0; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(null != this.buttonImageHandleVal, "buttonImageHandle is null"); var d = this.buttonImageHandleVal.create_1(b.getResourceManager_0()), e = this.spinnerImageHandleVal.create_1(b.getResourceManager_0()), f = this.spinnerBgImageHandleVal.create_1(b.getResourceManager_0()), g = this.fontdescriptor.create_1(b.getResourceManager_0()), d = new GT1265(a, this.xPos, this.yPos, d, e, f, g, this.fontColorVal.create_0(), b.getTimer_0(), this.buttonWidthVal, this.otherIdVal); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { GT1650.prototype.assertExp_2(null != this.buttonImageHandleVal, "buttonImageHandle is null"); GT1650.prototype.assertExp_2(null != this.spinnerImageHandleVal, "spinnerImageHandleVal is null"); this.buttonImageHandleVal.tiling_2(1, 4); this.buttonImageHandleVal.load_1(a.getResourceManager_0()); this.spinnerImageHandleVal.tiling_2(1, 1); this.spinnerImageHandleVal.load_1(a.getResourceManager_0()); this.spinnerBgImageHandleVal.tiling_2(1, 1); this.spinnerBgImageHandleVal.load_1(a.getResourceManager_0()); this.fontdescriptor.load_1(a.getResourceManager_0()); }, equals_1: function (a) { if (this == a) return !0; if (!GT787.prototype.equals_1.call(this, a) || !instanceOf(a, GT1003)) return !1; if (null == this.buttonImageHandleVal) { if (null != a.buttonImageHandleVal) return !1; } else if (!this.buttonImageHandleVal.equals_1(a.buttonImageHandleVal)) return !1; if (null == this.spinnerImageHandleVal) { if (null != a.spinnerImageHandleVal) return !1; } else if (!this.spinnerImageHandleVal.equals_1(a.spinnerImageHandleVal)) return !1; if (null == this.spinnerBgImageHandleVal) { if (null != a.spinnerBgImageHandleVal) return !1; } else if (!this.spinnerBgImageHandleVal.equals_1(a.spinnerBgImageHandleVal)) return !1; return !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1003); GT1650.prototype.assertExp_2(b, "Descriptor is no DValueSelector"); b && (this.modifyDescriptorImpl_1(a), this.heightModified && (a.heightSize = this.heightSize), null != this.buttonImageHandleVal && (a.buttonImageHandleVal = this.buttonImageHandleVal), null != this.spinnerImageHandleVal && (a.spinnerImageHandleVal = this.spinnerImageHandleVal), null != this.spinnerBgImageHandleVal && (a.spinnerBgImageHandleVal = this.spinnerBgImageHandleVal), null != this.fontdescriptor && (a.fontdescriptor = this.fontdescriptor), null != this.fontColorVal && (a.fontColorVal = this.fontColorVal), this.otherIdValSet && (a.otherIdVal = this.otherIdVal), this.buttonWidthValSet && (a.buttonWidthVal = this.buttonWidthVal)); }, }, "GT1003", [GT1272] ); GT1003.prototype.set_0 = function () { return new GT1003(); }; var GT1391 = GT765.extend( { initialConstructor_0: function () { this.color = null; GT765.prototype.initialConstructor_0.call(this); }, rgb_1: function (a) { this.color = new GT1634(a); return this; }, hexRGB_1: function (a) { this.color = new GT1634(GT1672.prototype.hexToInt_1(a)); return this; }, compRGB_3: function (a, b, d) { this.color = new GT1634(a, b, d); return this; }, black_0: function () { this.color = GT1634.prototype.black; return this; }, white_0: function () { this.color = GT1634.prototype.white; return this; }, green_0: function () { this.color = GT1634.prototype.green; return this; }, magenta_0: function () { this.color = GT1634.prototype.magenta; return this; }, cyan_0: function () { this.color = GT1634.prototype.cyan; return this; }, gray_0: function () { this.color = GT1634.prototype.gray; return this; }, blue_0: function () { this.color = GT1634.prototype.blue; return this; }, yellow_0: function () { this.color = GT1634.prototype.yellow; return this; }, orange_0: function () { this.color = GT1634.prototype.orange; return this; }, red_0: function () { this.color = GT1634.prototype.red; return this; }, create_0: function () { return this.color; }, equals_1: function (a) { if (this == a) return !0; if (null == a || !instanceOf(a, GT1391)) return !1; if (null == this.color) { if (null != a.color) return !1; } else if (!this.color.equals_1(a.color)) return !1; return !0; }, }, "GT1391", [] ); GT1391.prototype.set_0 = function () { return new GT1391(); }; var GT1387 = GT1610.extend( { initialConstructor_0: function () { GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1610.prototype.initialConstructor_2.call(this, a, b); }, dispatch_1: function (a) { return a.handleButtonEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT962); }, toString: function () { return "ButtonEvent[" + this.id + "]"; }, }, "GT1387", [] ); GT1387.prototype.BUTTON_PRESSED = GT1677.prototype.generateID_0(); GT1387.prototype.BUTTON_RELEASED = GT1677.prototype.generateID_0(); GT1387.prototype.BUTTON_CLICKED = GT1677.prototype.generateID_0(); GT1387.prototype.BUTTON_MOUSE_ENTERED = GT1677.prototype.generateID_0(); GT1387.prototype.BUTTON_MOUSE_EXITED = GT1677.prototype.generateID_0(); GT1387.prototype.BUTTON_DRAGGING = GT1677.prototype.generateID_0(); var GT1222 = Class.extend( { initialConstructor_0: function () { this.eventQueue = this.eventHandlers = null; this.reset_0(); }, reset_0: function () { this.eventHandlers = new java_util_JavaScriptHashtable(); this.eventQueue = new java_util_JavaScriptVector(); }, raiseEvent_1: function (a) { var b = Integer.toString_1(a.getId_0()); if (null == this.eventHandlers) return !1; b = this.eventHandlers.get_1(b); if (null != b) for (var d = 0; d < b.size_0() && null != this.eventHandlers; d++) { var e = b.elementAt_1(d); if ((null != e.sender && e.sender.equals_1(a.getSender_0())) || null == e.sender) if (a.isHandlerCompatible_1(e.handler)) { if (a.dispatch_1(e.handler)) return !0; } else GT1650.prototype.assertExp_2(!1, "Event/Handler incompatibility detected!"); } return !1; }, enqueueEvent_1: function (a) { this.eventQueue.add_1(a); }, processEventQueue_0: function () { for (; !this.eventQueue.isEmpty_0(); ) { var a = this.eventQueue.elementAt_1(0); this.eventQueue.removeElementAt_1(0); this.raiseEvent_1(a); } }, registerHandler_2: function (a, b) { this.internalHandlerRegistration_4(a, null, b, 0); }, registerHandler_3: function (a, b, d) { this.internalHandlerRegistration_4(a, b, d, 0); }, registerHandler_4: function (a, b, d, e) { this.internalHandlerRegistration_4(a, b, d, e); }, internalHandlerRegistration_4: function (a, b, d, e) { a = Integer.toString_1(a); b = new GT1081(b, d, e); e = this.eventHandlers.get_1(a); if (this.handlerFoundInCurrentHandlerList_2(d, e)) return ( this.unregisterHandler_1(d), GT1650.prototype.assertFailed_1( "Event dispatcher detected that a handler instance has registered for handling a single event two times.\n\nThis doesn't make sense and usually causes trouble\nA possible scenario where this happens is when the base-class registers to handle event 'x' and the dreived-class also registers a handler for event 'x'\nIn this case, usually only the handler in the derived class would be called (twice) and never the handler of the base-class\nIf you need different handlers for the base and the derived class, create handler object instances for base and derived." ), !1 ); null == e ? ((e = new java_util_JavaScriptVector()), e.add_1(b)) : (e.add_1(b), GT1679.prototype.sortVector_3(e, GT1222.prototype.comparator, !0)); this.eventHandlers.put_2(a, e); return !0; }, handlerFoundInCurrentHandlerList_2: function (a, b) { if (null != b) for (var d = 0; d < b.size_0(); d++) if (b.get_1(d).handler == a) return !0; return !1; }, registerHandlerForMultipleEvents_2: function (a, b) { for (var d = !0, e = 0; e < a.length && 1 == d; e++) d = this.internalHandlerRegistration_4(a[e], null, b, 0); }, registerHandlerForMultipleEvents_3: function (a, b, d) { for (var e = !0, f = 0; f < a.length && 1 == e; f++) e = this.internalHandlerRegistration_4(a[f], b, d, 0); }, unregisterHandler_1: function (a) { if (null != this.eventHandlers) { for (var b = new java_util_JavaScriptHashtable(), d = this.eventHandlers.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0(), f = this.eventHandlers.get_1(e), g = new java_util_JavaScriptVector(); if (null != f) { for (var k = 0; k < f.size_0(); k++) { var m = f.elementAt_1(k); m.handler != a && g.add_1(m); } b.put_2(e, g); } } this.eventHandlers = b; } }, stop_0: function () { this.eventQueue = this.eventHandlers = null; }, }, "GT1222", [GT1113] ); GT1222.prototype.comparator = new GT563(); var GT905 = GT1610.extend( { initialConstructor_0: function () { this.fps = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.fps = 0; GT1610.prototype.initialConstructor_1.call(this, GT905.prototype.FPS_CHANGE_REQUEST); this.fps = a; }, getFPS_0: function () { return this.fps; }, dispatch_1: function (a) { return a.handleFPSChangeRequestEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT453); }, toString: function () { return "FPSChangeRequestEvent[" + this.id + "]"; }, }, "GT905", [] ); GT905.prototype.FPS_CHANGE_REQUEST = GT1677.prototype.generateID_0(); var GT766 = GT1341.extend( { initialConstructor_0: function () { this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT766.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down-event is null in DoubleTapEvent()"); this.downEvent = b; }, getSecondDownEvent_0: function () { return this.downEvent; }, toString: function () { return "DoupleTapEvent"; }, getCurrentTouchEvent_0: function () { return this.downEvent; }, }, "GT766", [] ); GT766.prototype.ID = GT1677.prototype.generateID_0(); var GT661 = GT1341.extend( { initialConstructor_0: function () { this.upEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.upEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT661.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "up-event is null in DoubleTapUpEvent()"); this.upEvent = b; }, getUpEvent_0: function () { return this.upEvent; }, toString: function () { return "DoubleTapUpEvent"; }, getCurrentTouchEvent_0: function () { return this.upEvent; }, }, "GT661", [] ); GT661.prototype.ID = GT1677.prototype.generateID_0(); var GT969 = GT1341.extend( { initialConstructor_0: function () { this.velocityY = this.velocityX = 0; this.upEvent = this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.velocityY = this.velocityX = 0; this.upEvent = this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT969.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down-event is null in FlingEvent()"); GT1650.prototype.assertExp_2(null != d, "up-event is null in FlingEvent()"); this.velocityX = e; this.velocityY = f; this.downEvent = b; this.upEvent = d; }, getVelocityX_0: function () { return this.velocityX; }, getVelocityY_0: function () { return this.velocityY; }, getDownEvent_0: function () { return this.downEvent; }, getUpEvent_0: function () { return this.upEvent; }, toString: function () { return "FlingEvent " + this.velocityX + " " + this.velocityY; }, getCurrentTouchEvent_0: function () { return this.upEvent; }, }, "GT969", [] ); GT969.prototype.ID = GT1677.prototype.generateID_0(); var GT458 = GT507.extend( { initialConstructor_0: function () { GT507.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT507.prototype.initialConstructor_8.call(this, GT458.prototype.ID, a, b, d, e, f, g, !1); }, toString: function () { return "InnerSlopScrollEvent " + this.getDistanceX_0() + " " + this.getDistanceY_0(); }, }, "GT458", [] ); GT458.prototype.ID = GT1677.prototype.generateID_0(); var GT768 = GT1341.extend( { initialConstructor_0: function () { this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT768.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down-event is null in LongPressEvent()"); this.downEvent = b; }, getDownEvent_0: function () { return this.downEvent; }, toString: function () { return "LongPressEvent"; }, getCurrentTouchEvent_0: function () { return this.downEvent; }, }, "GT768", [] ); GT768.prototype.ID = GT1677.prototype.generateID_0(); var GT977 = GT1341.extend( { initialConstructor_0: function () { this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT977.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down event is null in PressEvent()"); this.downEvent = b; }, getDownEvent_0: function () { return this.downEvent; }, toString: function () { return "PressEvent"; }, getCurrentTouchEvent_0: function () { return this.downEvent; }, }, "GT977", [] ); GT977.prototype.ID = GT1677.prototype.generateID_0(); var GT926 = GT507.extend( { initialConstructor_0: function () { GT507.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT507.prototype.initialConstructor_8.call(this, GT926.prototype.ID, a, b, d, e, f, g, k); }, toString: function () { return "ScrollEvent " + this.getDistanceX_0() + " " + this.getDistanceY_0(); }, }, "GT926", [] ); GT926.prototype.ID = GT1677.prototype.generateID_0(); var GT459 = GT1341.extend( { initialConstructor_0: function () { this.current = this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.current = this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT459.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down-event is null in SingleTapCancelEvent()"); GT1650.prototype.assertExp_2(null != d, "current-event is null in SingleTapCancelEvent()"); this.downEvent = b; this.current = d; }, getDownEvent_0: function () { return this.downEvent; }, toString: function () { return "SingleTapCancelEvent"; }, getCurrentTouchEvent_0: function () { return this.current; }, }, "GT459", [] ); GT459.prototype.ID = GT1677.prototype.generateID_0(); var GT767 = GT1341.extend( { initialConstructor_0: function () { this.downEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.downEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT767.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "down-event is null in SingleTapEvent()"); this.downEvent = b; }, getDownEvent_0: function () { return this.downEvent; }, toString: function () { return "SingleTapEvent"; }, getCurrentTouchEvent_0: function () { return this.downEvent; }, }, "GT767", [] ); GT767.prototype.ID = GT1677.prototype.generateID_0(); var GT652 = GT1341.extend( { initialConstructor_0: function () { this.upEvent = null; GT1341.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.upEvent = null; GT1341.prototype.initialConstructor_2.call(this, GT652.prototype.ID, a); GT1650.prototype.assertExp_2(null != b, "up-event is null in SingleTapUpEvent()"); this.upEvent = b; }, getUpEvent_0: function () { return this.upEvent; }, toString: function () { return "SingleTapUpEvent"; }, getCurrentTouchEvent_0: function () { return this.upEvent; }, }, "GT652", [] ); GT652.prototype.ID = GT1677.prototype.generateID_0(); var GT1532 = GT1610.extend( { initialConstructor_0: function () { this.keyName = this.keyModifiers = null; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.keyName = this.keyModifiers = null; GT1610.prototype.initialConstructor_2.call(this, a, e); this.keyName = b; this.keyModifiers = d; }, initialConstructor_3: function (a, b, d) { GT1532.prototype.initialConstructor_4.call(this, a, b, d, null); }, initialConstructor_2: function (a, b) { GT1532.prototype.initialConstructor_3.call(this, a, GT1672.prototype.charToString_1(b), null); }, getKeyModifiers_0: function () { return this.keyModifiers; }, getKeyName_0: function () { return this.keyName; }, dispatch_1: function (a) { return instanceOf(this.getSender_0(), GT1413) ? (instanceOf(a, GT597) ? a.handleInputFieldKeyEvent_1(this) : !1) : instanceOf(a, GT1114) ? a.handleKeyEvent_1(this) : !1; }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1114) || instanceOf(a, GT597); }, toString: function () { return "KeyEvent[" + this.id + "]"; }, }, "GT1532", [] ); GT1532.prototype.KEY_PRESS = GT1677.prototype.generateID_0(); GT1532.prototype.KEY_RELEASE = GT1677.prototype.generateID_0(); GT1532.prototype.KEY_TYPE = GT1677.prototype.generateID_0(); var GT1446 = GT1610.extend( { initialConstructor_0: function () { GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1610.prototype.initialConstructor_1.call(this, a); }, dispatch_1: function (a) { return a.handleLogicEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1010); }, toString: function () { return "LogicEvent type[" + this.id + "]"; }, }, "GT1446", [] ); GT1446.prototype.BACK = GT1677.prototype.generateID_0(); GT1446.prototype.TOGGLE_MENU = GT1677.prototype.generateID_0(); var GT1451 = GT1610.extend( { initialConstructor_0: function () { this.button = this.y = this.x = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.button = this.y = this.x = 0; GT1610.prototype.initialConstructor_1.call(this, a); this.x = b; this.y = d; this.button = e; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getButton_0: function () { return this.button; }, dispatch_1: function (a) { return a.handleMouseEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1011); }, toString: function () { return "MouseEvent[" + this.id + "]"; }, }, "GT1451", [] ); GT1451.prototype.MOUSE_CLICKED = GT1677.prototype.generateID_0(); GT1451.prototype.MOUSE_PRESSED = GT1677.prototype.generateID_0(); GT1451.prototype.MOUSE_RELEASED = GT1677.prototype.generateID_0(); GT1451.prototype.MOUSE_MOVED = GT1677.prototype.generateID_0(); GT1451.prototype.MOUSE_DRAGGED = GT1677.prototype.generateID_0(); GT1451.prototype.NOBUTTON = 0; GT1451.prototype.BUTTON1 = 1; GT1451.prototype.BUTTON2 = 2; GT1451.prototype.BUTTON3 = 3; var GT1196 = GT1451.extend( { initialConstructor_0: function () { this.wheelRotation = this.scrollAmount = this.scrollType = 0; GT1451.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.wheelRotation = this.scrollAmount = this.scrollType = 0; GT1451.prototype.initialConstructor_4.call(this, a, b, d, GT1451.prototype.NOBUTTON); this.scrollType = e; this.scrollAmount = f; this.wheelRotation = g; }, getScrollType_0: function () { return this.scrollType; }, getScrollAmount_0: function () { return this.scrollAmount; }, getWheelRotation_0: function () { return this.wheelRotation; }, dispatch_1: function (a) { return a.handleMouseWheelEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT756); }, toString: function () { return "MouseWheelEvent[" + this.id + "]"; }, }, "GT1196", [] ); GT1196.prototype.MOUSE_WHEEL = GT1677.prototype.generateID_0(); GT1196.prototype.WHEEL_UNIT_SCROLL = 0; GT1196.prototype.WHEEL_BLOCK_SCROLL = 1; var GT509 = GT1610.extend( { initialConstructor_0: function () { this.eventTime = this.z = this.y = this.x = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.eventTime = this.z = this.y = this.x = 0; GT1610.prototype.initialConstructor_1.call(this, a); this.x = b; this.y = d; this.z = e; this.eventTime = f; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getZ_0: function () { return this.z; }, getEventTime_0: function () { return this.eventTime; }, dispatch_1: function (a) { return a.handleOrientationEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT231); }, toString: function () { return "OrientationEvent[" + this.id + "]"; }, }, "GT509", [] ); GT509.prototype.ORIENTATION_SENSOR = GT1677.prototype.generateID_0(); var GT1371 = GT1610.extend( { initialConstructor_0: function () { this.orientation = this.visibleAreaHeight = this.visibleAreaWidth = this.visibleAreaY = this.visibleAreaX = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.orientation = this.visibleAreaHeight = this.visibleAreaWidth = this.visibleAreaY = this.visibleAreaX = 0; GT1610.prototype.initialConstructor_1.call(this, a); this.visibleAreaX = b; this.visibleAreaY = d; this.visibleAreaWidth = e; this.visibleAreaHeight = f; this.orientation = g; }, getVisibleAreaX_0: function () { return this.visibleAreaX; }, getVisibleAreaY_0: function () { return this.visibleAreaY; }, getVisibleAreaWidth_0: function () { return this.visibleAreaWidth; }, getVisibleAreaHeight_0: function () { return this.visibleAreaHeight; }, getOrientation_0: function () { return this.orientation; }, dispatch_1: function (a) { return a.handleScreenEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT961); }, toString: function () { return "ScreenEvent[" + this.id + "]"; }, }, "GT1371", [] ); GT1371.prototype.SCREENSIZE_CHANGED = GT1677.prototype.generateID_0(); GT1371.prototype.ORIENTATION_PORTRAIT = GT1677.prototype.generateID_0(); GT1371.prototype.ORIENTATION_LANDSCAPE = GT1677.prototype.generateID_0(); var GT1447 = GT1610.extend( { initialConstructor_0: function () { this.eventTime = this.y = this.x = this.touchId = 0; GT1610.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.eventTime = this.y = this.x = this.touchId = 0; GT1610.prototype.initialConstructor_1.call(this, a); this.x = b; this.y = d; this.touchId = e; this.eventTime = f; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getTouchId_0: function () { return this.touchId; }, getEventTime_0: function () { return this.eventTime; }, dispatch_1: function (a) { return a.handleTouchEvent_1(this); }, isHandlerCompatible_1: function (a) { return instanceOf(a, GT1012); }, toString: function () { return "TouchEvent[" + this.id + "]"; }, }, "GT1447", [] ); GT1447.prototype.TOUCH_START = GT1677.prototype.generateID_0(); GT1447.prototype.TOUCH_END = GT1677.prototype.generateID_0(); GT1447.prototype.TOUCH_MOVE = GT1677.prototype.generateID_0(); GT1447.prototype.TOUCH_CANCEL = GT1677.prototype.generateID_0(); var GT1027 = GT1397.extend( { initialConstructor_0: function () { this.matrix4x4 = null; this.fov = 0; this.preappliedProjectionMatrix = !1; GT1397.prototype.initialConstructor_0.call(this); }, init_0: function () { this.matrix4x4 = [].createArray(16).init(0); this.preappliedProjectionMatrix = !1; this.setFOVParameter_1(Math.PI / 3); this.setMatrixParameter_1([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); }, getFilterType_0: function () { return this.FILTER_TYPE_3DTRANSFORM; }, setFOVParameter_1: function (a) { this.fov != a && ((this.fov = a), this.setParameter_1(GT1027.prototype.PARAMETER_FOV)); }, getFOVParameter_0: function () { return this.fov; }, setMatrixParameter_1: function (a) { this.setMatrixParameter_2(a, !1); }, setMatrixParameter_2: function (a, b) { null == a || (this.isTheSameMatrix_1(a) && this.preappliedProjectionMatrix == b) || ((this.matrix4x4 = a), (this.preappliedProjectionMatrix = b), this.setParameter_1(GT1027.prototype.PARAMETER_MATRIX)); }, getMatrixParameter_0: function () { return this.matrix4x4; }, isProjectionMatrixPreapplied_0: function () { return this.preappliedProjectionMatrix; }, isTheSameMatrix_1: function (a) { var b = this.matrix4x4; return null == b && null == a ? !0 : null != b && null != a && 16 == b.length && 16 == a.length && b[0] == a[0] && b[1] == a[1] && b[2] == a[2] && b[3] == a[3] && b[4] == a[4] && b[5] == a[5] && b[6] == a[6] && b[7] == a[7] && b[8] == a[8] && b[9] == a[9] && b[10] == a[10] && b[11] == a[11] && b[12] == a[12] && b[13] == a[13] && b[14] == a[14] && b[15] == a[15]; }, isSame_1: function (a) { return GT1397.prototype.isSame_1.call(this, a) ? a.getFOVParameter_0() == this.fov && this.isTheSameMatrix_1(a.getMatrixParameter_0()) : !1; }, }, "GT1027", [] ); GT1027.prototype.PARAMETER_FOV = "fov"; GT1027.prototype.PARAMETER_MATRIX = "matrix"; var GT853 = java_util_JavaScriptHashtable.extend( { initialConstructor_1: function (a) { java_util_JavaScriptHashtable.prototype.initialConstructor_0.call(this); this.applet = a; }, get_1: function (a) { return null == a || "string" !== typeof a ? null : this.applet.getParameter_1(a); }, }, "GT853", [] ), GT1399 = java_applet_Applet.extend( { startWithSound_0: function () { return !0; }, getVisibleArea_0: function () { return this.guitopcontainer.getVisibleArea_0(); }, getNativeWidth_0: function () { return RENDERER.width; }, getNativeHeight_0: function () { return RENDERER.height; }, doStart_0: function () { java_lang_System.prototype.out.println_1("GUIApplet " + GT1399.prototype.guiversion + " (java technology) started on " + this.getPlatformDescription_0()); }, doStop_0: function () { this.setFullscreenMode_1(!1); this.guitopcontainer.stop_0(); this.guitopcontainer.destroy_0(); this.guitopcontainer = null; this.resourceManager.cleanup_0(); }, copyToClipboard_1: function (a) {}, setUseRightToLeftText_1: function (a) {}, keyPressed_3: function (a, b, d) { return !1; }, keyReleased_2: function (a, b) {}, mouseButtonChanged_2: function (a, b) {}, mouseMoved_3: function (a, b, d) {}, mouseWheelMoved_2: function (a, b) {}, appletSizeChanged_0: function () {}, fullscreenModeChanged_0: function () {}, initialConstructor_0: function () { java_applet_Applet.prototype.initialConstructor_0.call(this); this.eventDispatcher = this.resourceManager = this.nativeKeyEventTranslator = this.nativeMouseEventTranslator = this.timer = this.clock = this.toolkit = null; java_applet_Applet.prototype.initialConstructor_0.call(this); this.syncObject = {}; this.exited = !1; this.soundplayer = this.gui = null; this.lastTimerTick = 0; RENDERER = null; }, getDefaultResourceManager_0: function () { return this.resourceManager; }, createResourceManager_0: function () { var a = new GT1358(this.getCodeBase_0(), this.getInnerResourceBase_0(), this.toolkit, this.timer, this.syncObject); a.setFastImageLoading_1(null != this.getParameter_1("fastimageloading")); var b = this.getParameter_1("imageresources"); null != b && a.setAlternateImageSources_1(b); a.setSoundPlayer_1(this.getSoundPlayer_0()); return a; }, init_0: function () {}, destroy_0: function () {}, restartTimerLoopIfNeeded_0: function () { this.lastTimerTick = this.timer.currentTimeMillis_0(); var a = this; setTimeout(function () { 300 > a.timer.currentTimeMillis_0() - a.lastTimerTick && (cancelAnimationFrame(CONFIG.REQUESTAFID), a.animloop()); }, 600); }, animloop: function () { if (null != this.guitopcontainer) { G.isNotNullAndDefined(window.STATS) && STATS.begin(); CONFIG.REQUESTAFID = requestAnimFrame(this.animloop_2(this.animloop, this)); var a = Date.now(); this.then || (this.then = a); var b = a - this.then; b >= this.frameDuration && (this.then = a - (b % this.frameDuration)) && (null != this.clock && this.clock.updateCurrentTime_0(), null != this.timer && this.timer.tick_0(), this.render()); G.isNotNullAndDefined(window.STATS) && STATS.end(); } }, handleFPSChangeRequestEvent_1: function (a) { a && ((this.fps = a.getFPS_0()), (this.frameDuration = 1e3 / this.fps)); return !0; }, render: function () { null != RENDERER && 0 < RENDERER.width && null != this.guitopcontainer && (!0 !== this.guitopcontainer.anyKindOfSmartRepaint || this.guitopcontainer._needScreenRedraw()) && (!0 !== SLOT.renderingPaused ? (31 <= DEVICE.mozillaVersio && RENDERER.type == PIXI.CANVAS_RENDERER && (RENDERER.context.globalCompositeOperation = "source-over"), !0 === this.guitopcontainer.anyKindOfSmartRepaint && this.orientationSensorManager && this.orientationSensorManager.isStarted_0() && (this.guitopcontainer._resetDirtyArea(), this.guitopcontainer.addFullscreenDirtyAreaRect()), this.guitopcontainer.smartRepaint && this.guitopcontainer.createDirtyAreaMask(), this.guitopcontainer.textureAsDrawingBuffer && this.guitopcontainer.renderTexture.render(this.guitopcontainer._displayObject), (CONFIG.STATS.PIXIGRAPHICS = 0), RENDERER.render(STAGE), "1" == CONFIG.webgl && RENDERER.gl && "1" == CONFIG.webglflush && RENDERER.gl.flush(), this.guitopcontainer.anyKindOfSmartRepaint && this.guitopcontainer._resetDirtyArea(), 31 <= DEVICE.mozillaVersio && RENDERER.type == PIXI.CANVAS_RENDERER && (RENDERER.context.globalCompositeOperation = "multiply")) : this.guitopcontainer.anyKindOfSmartRepaint && (this.guitopcontainer._resetDirtyArea(), this.guitopcontainer.addFullscreenDirtyAreaRect())); }, animloop_2: function (a, b) { return function () { return a.apply(b); }; }, setObserver: function (a) { this.observer = a; }, start_0: function () { this.syncObject; this.toolkit = null; this.clock = new GT1636(); this.timer = new GT1643(this.clock); this.soundplayer = new GT1266(this.timer, this.startWithSound_0()); this.setBackground_1(GT1634.prototype.black); var a = this.getSize_0(); this.guitopcontainer = new GT1291(this, a.width, a.height, this.syncObject, this.toolkit, this.clock); this.guitopcontainer.start_0(); this.guitopcontainer.setListener_1(this); this.animloop(); this.resourceManager = new GT1358(this.getCodeBase_0(), this.getInnerResourceBase_0(), this.toolkit, this.timer, this.syncObject); this.resourceManager.setFastImageLoading_1(null != this.getParameter_1("fastimageloading")); a = this.getParameter_1("imageresources"); null != a && this.resourceManager.setAlternateImageSources_1(a); this.resourceManager.setSoundPlayer_1(this.getSoundPlayer_0()); this.containerToReturnAfterFullscreen = this.currentFullscreenWindow = null; this.eventDispatcher = new GT1222(); this.eventDispatcher.registerHandler_2(GT905.prototype.FPS_CHANGE_REQUEST, this); this.fps = 60; this.frameDuration = 1e3 / this.fps; var b = this, d = !1, e = G.query("canvas"), a = 1 == JSUTIL.getParameter("debug"), f = CONFIG.CONTAINERS.cheat_container; if (null == this.getParameter_1("playrecord")) { this.nativeMouseEventTranslator = new GT720(this.eventDispatcher, this.guitopcontainer, this.syncObject, this.timer); this.nativeKeyEventTranslator = new GT827(this.eventDispatcher, null, this.syncObject); G.bind("keydown", window, function (a) { b.nativeKeyEventTranslator.keyPressed_1(a); }); G.bind("keyup", window, function (a) { b.nativeKeyEventTranslator.keyReleased_1(a); }); var g = function () { !DEVICE.ios && (DEVICE.safari || 55 <= DEVICE.chromeVersion) && (null == CONFIG.SOUNDPLAYER.howl ? null != CONFIG.SOUNDPLAYER.howlSounds.silence && "suspended" === CONFIG.SOUNDPLAYER.howlSounds.silence.getContextState() && CONFIG.SOUNDPLAYER.howlSounds.silence.getContext().resume() : "suspended" === CONFIG.SOUNDPLAYER.howl.getContextState() && CONFIG.SOUNDPLAYER.howl.getContext().resume()); if (DEVICE.ios) { CONFIG.SOUNDPLAYER.play("silence"); CONFIG.SOUNDPLAYER._unlocked = !0; try { var a = null == CONFIG.SOUNDPLAYER.howl ? CONFIG.SOUNDPLAYER.howlSounds.silence._audioNode[0].context.sampleRate : CONFIG.SOUNDPLAYER.howl._audioNode[0].context.sampleRate; new Audio(JSUTIL.getBasedir() + "SilenceSounds/silence_" + a + "hz.mp3").play(); } catch (b) {} } }; G.bind("touchstart", e, function (a) { if (JSUTIL.getAccurateTime() - 0 < CONFIG.get("touchinterval")) return !1; JSUTIL.webaudio() ? (!CONFIG.SOUNDPLAYER._initialized && null != CONFIG.SOUNDPLAYER._initialized) || CONFIG.SOUNDPLAYER.isReady("silence") || g() : CONFIG.SOUNDPLAYER.initialized() || ((CONFIG.CURRENTSOUND = "silence"), CONFIG.SOUNDPLAYER.play(CONFIG.SOUNDS[CONFIG.CURRENTSOUND].start, CONFIG.SOUNDS[CONFIG.CURRENTSOUND].end, !1)); a.mousepos = G.offsetParent(e); b.nativeMouseEventTranslator.mousePressed_1(a); a.preventDefault(); }); DEVICE.mobile || (document.addEventListener( "webkitfullscreenchange", function (a) { b.fullscreenModeChanged_0(); }, !1 ), document.addEventListener( "mozfullscreenchange", function (a) { b.fullscreenModeChanged_0(); }, !1 ), document.addEventListener( "fullscreenchange", function (a) { b.fullscreenModeChanged_0(); }, !1 ), document.addEventListener( "MSFullscreenChange", function (a) { b.fullscreenModeChanged_0(); }, !1 )); var k = function (a) { DEVICE.fullscreen() && DEVICE.mobile && JSUTIL.setFullscreenMode(CONFIG.get("fullscreen")); (!CONFIG.SOUNDPLAYER._initialized && null != CONFIG.SOUNDPLAYER._initialized) || CONFIG.SOUNDPLAYER.isReady("silence") || !JSUTIL.webaudio() || g(); a.mousepos = G.offsetParent(e); b.nativeMouseEventTranslator.mouseReleased_1(a); a.preventDefault(); }; G.bind("touchend", e, k); G.bind("touchleave", e, k); G.bind("touchcancel", e, k); G.bind("touchmove", e, function (a) { a.mousepos = G.offsetParent(e); b.nativeMouseEventTranslator.mouseDragged_1(a); a.preventDefault(); }); G.isElement(f) && (a ? G.bind("touchstart", f, function (a) { b.keyPressed_3(null, "t", "ctrl"); }) : null != f.parentNode && f.parentNode.removeChild(f)); (DEVICE.mobile && "1" != JSUTIL.getParameter("forceEnableClick")) || ((this.nativeMouseEventTranslator = new GT719(this.eventDispatcher, this.guitopcontainer, this.timer)), G.bind("mousedown", e, function (a) { JSUTIL.webaudio() || CONFIG.SOUNDPLAYER.initialized() || 1 == JSUTIL.getParameter("slotparkaudio") || ((CONFIG.CURRENTSOUND = "silence"), CONFIG.SOUNDPLAYER.play(CONFIG.SOUNDS[CONFIG.CURRENTSOUND].start, CONFIG.SOUNDS[CONFIG.CURRENTSOUND].end, !1)); 0 === a.button && ((d = !0), (a.mousepos = G.offsetParent(e)), b.nativeMouseEventTranslator.mousePressed_1(a)); }), G.bind("mouseup", e, function (a) { JSUTIL.webaudio() && ((!CONFIG.SOUNDPLAYER._initialized && null != CONFIG.SOUNDPLAYER._initialized) || CONFIG.SOUNDPLAYER.isReady("silence") || g()); 0 === a.button && ((d = !1), (a.mousepos = G.offsetParent(e)), b.nativeMouseEventTranslator.mouseReleased_1(a)); }), G.bind("mousemove", e, function (a) { a.mousepos = G.offsetParent(e); d ? b.nativeMouseEventTranslator.mouseDragged_1(a) : b.nativeMouseEventTranslator.mouseMoved_1(a); }), G.bind("click", e, function (a) { 0 === a.button && ((a.mousepos = G.offsetParent(e)), b.nativeMouseEventTranslator.mouseClicked_1(a)); }), G.bind("mousewheel", e, function (a) { b.nativeMouseEventTranslator.mouseWheelMoved_1(a); }), G.bind("DOMMouseScroll", e, function (a) { b.nativeMouseEventTranslator.mouseWheelMoved_1(a); }), a || G.bind("contextmenu", e, function (a) { a.preventDefault(); return !1; }), a && G.isElement(f) && G.bind("mousedown", f, function (a) { b.keyPressed_3(null, "t", "ctrl"); })); } this.orientationSensorManager = new GT828(this.guitopcontainer, this.eventDispatcher, this.timer, null); this.localStorage = new GT1450(); a = new GT662(this.eventDispatcher, this.guitopcontainer, this.syncObject); this.guitopcontainer.setSizeChangedCallback_1(a); a = this.getParameter_1("remotelogger"); null != a && GT1650.prototype.setRemoteLogger_1(new GT1503(a)); this.doStart_0(); this.guitopcontainer._updateScreenSize(); }, getCursorManager_0: function () { return this; }, getOrientationSensorManager_0: function () { return this.orientationSensorManager; }, disposeCachedImageVersions_0: function () { this.resourceManager.disposeCachedImageVersions_0(); }, getCodeBaseHost_0: function () { return null != this.getCodeBase_0() ? this.getCodeBase_0().getHost_0() : ""; }, getParameter_1: function (a) { a = java_applet_Applet.prototype.getParameter_1.call(this, a); return null == a ? null : this.getParameterWithSubstitution_1(a); }, getParameters_0: function () { return new GT853(this); }, interpretInputPattern_1: function (a) { if ("SHOWPARAMETERS" == GT1677.prototype.toUpperCaseAZ_1(a)) { GT1650.prototype.log_1("GAME PARAMETERS"); GT1650.prototype.log_1("-------------------------------"); for (var b in CONFIG) "function" != typeof CONFIG[b] && GT1650.prototype.log_1(b + ": " + CONFIG[b]); GT1650.prototype.log_1("-------------------------------"); } }, getParameterWithSubstitution_1: function (a) { "object" === typeof a && (a = JSON.stringify(a)); var b = a.indexOf_1("${"); if (0 > b) return a; var d = a.indexOf_2("}", b); if (0 > d) return a; var e = a.indexOf_2(":", b); return e > d ? a : a.substring_2(0, b) + this.readFileProperty_2(a.substring_2(b + 2, e).trim_0(), a.substring_2(e + 1, d).trim_0()) + a.substring_1(d + 1); }, readFileProperty_2: function (a, b) { var d = this.getClass_0().getClassLoader_0().getResource_1(a); if (null == d) return ""; for (d = new java_io_BufferedReader(new java_io_InputStreamReader(d.openStream_0())); null != (l = d.readLine_0()); ) { l = l.trim_0(); var e = l.indexOf_1("="); if (0 <= e && l.substring_2(0, e).trim_0().equals_1(b)) return d.close_0(), l.substring_1(e + 1).trim_0(); } d.close_0(); return ""; }, getTopContainer_0: function () { return this.guitopcontainer; }, getTheInternalSynchronizationObject_0: function () { return this.syncObject; }, isStarted_0: function () { return null != this.guitopcontainer; }, getFullscreenMode_0: function () { return JSUTIL.fullscreenActive(); }, setFullscreenMode_1: function (a) { this.getFullscreenMode_0() != a && (a ? JSUTIL.setFullscreenMode(CONFIG.get("fullscreen")) : CONFIG.get("fullscreen") && JSUTIL.setFullscreenMode(!1)); }, isFullscreenModeSupported_0: function () { return null != DEVICE.fullscreen(); }, hasKeyboardFocus_0: function () { if (null == this.guitopcontainer) return !1; if (this.guitopcontainer.hasfocus) return !0; for (var a = 0; a < this.guitopcontainer.inputfields.size_0(); a++) if (this.guitopcontainer.inputfields.elementAt_1(a).hasfocus) return !0; return !1; }, bringToForeground_0: function () { null != this.guitopcontainer && (0 < this.guitopcontainer.inputfields.size_0() ? this.guitopcontainer.inputfields.elementAt_1(0).textField.requestFocus_0() : this.requestFocus_0()); }, setUsingCursor_1: function (a) { var b = this.getParameter_1("disablecursor"); null != b && (b.equalsIgnoreCase_1("1") || b.equalsIgnoreCase_1("true")) ? null != this.guitopcontainer && this.guitopcontainer.setUsingCursor_1(GT1537.prototype.NONE) : null != this.guitopcontainer && this.guitopcontainer.setUsingCursor_1(a); }, getMouseX_1: function (a) { return null == a.getParent_0() ? this.gui.getMouseX_0() : this.getMouseX_1(a.getParent_0()) - a.getX_0(); }, getMouseY_1: function (a) { return null == a.getParent_0() ? this.gui.getMouseY_0() : this.getMouseY_1(a.getParent_0()) - a.getY_0(); }, getSoundPlayer_0: function () { return this.soundplayer; }, getClock_0: function () { return this.clock; }, getTimer_0: function () { return this.timer; }, openLink_2: function (a, b) { var d = decodeURIComponent(b), e = frames.controlframe || null, f = JSUTIL.getParameter("siteurl"); d.startsWith_1("http") || ((f = JSUTIL.getParameter("siteurl")), -1 !== f && (d = decodeURIComponent(f) + (d.startsWith_1("/") ? "" : "/") + d)); "_blank" == a || "blank" == a ? (window.open(d, "_blank"), window.focus()) : "controlframe" == a && null != e ? e.location.replace(d) : top.location.replace(d); }, startJavaScript_1: function (a) { for (var b = null, d = null, e = this.Class.forName_1("netscape.javascript.JSObject").getMethods_0(), f = 0; f < e.length; f++) 0 == e[f].getName_0().compareTo_1("getWindow") && (b = e[f]), 0 == e[f].getName_0().compareTo_1("eval") && (d = e[f]); if (null == b || null == d) throw new Exception("not supported"); b = b.invoke_2(null, [this]); d.invoke_2(b, [a]); }, getPlatformDescription_0: function () { var a = "unknown", b = "unknown", d = "0.0", e = "unknown", a = java_lang_System.prototype.getProperty_2("os.name", "unknown"), b = java_lang_System.prototype.getProperty_2("os.arch", "unknown"), d = java_lang_System.prototype.getProperty_2("os.version", "0.0"), e = java_lang_System.prototype.getProperty_2("java.version", "unknown"); return null != this.getCodeBase_0() ? a + " (" + b + ") " + d + " Java: " + e + " Codebase: " + this.getCodeBase_0() : a + " (" + b + ") " + d + " Java: " + e + " Codebase: "; }, getInnerResourceBase_0: function () { return "/" + this.getClass_0().getName_0().substring_2(0, this.getClass_0().getName_0().lastIndexOf(".")).replace_2(".", "/") + "/res/"; }, hasWeakPerformance_0: function () { return !1; }, setDesignedSize_2: function (a, b) { this.setDesignedSize_6(a, b, 0, 0, a, b); }, setDesignedSize_6: function (a, b, d, e, f, g) { this.guitopcontainer.setDesignedSize_6(a, b, d, e, f, g); }, setPixelSnapping_4: function (a, b, d, e) { GT1650.prototype.println_1("requested to snap pixels at: " + a + "," + b + "," + d + "," + e); }, setAspectRatio_1: function (a) { this.guitopcontainer.setAspectRatio_1(a); }, getAspectRatio_0: function () { return this.guitopcontainer.aspectratio; }, notifyPropertyChanged_2: function (a, b) { null != this.observer && (this.observer.hasOwnProperty && this.observer.hasOwnProperty("notifyPropertyChanged") ? this.observer.notifyPropertyChanged(a, b) : console.warn("observer is set, but notifyPropertyChanged function doesn't exist")); window[CONFIG.MESSAGETARGET].postMessage(a + ":" + b, "*"); }, notifyEstimatedWin_4: function (a, b, d, e) {}, notifyBalance_4: function (a, b, d, e) { null != this.observer && (this.observer.hasOwnProperty && this.observer.hasOwnProperty("notifyBalance") ? this.observer.notifyBalance(a, b, d, e) : console.warn("observer is set, but notifyBalance function doesn't exist")); GT1650.prototype.println_1("notify Balance " + a + ", " + b + ", " + d + ", " + e); }, isSpinAllowed_0: function () { if (null != this.observer) { if (this.observer.hasOwnProperty && this.observer.hasOwnProperty("isSpinAllowed")) return this.observer.isSpinAllowed(); console.warn("observer is set, but isSpinAllowed function doesn't exist"); } return !0; }, setProperty_2: function (a, b) {}, notifyInputEvent_1: function (a) {}, exitProgram_0: function () { this.deleteGameGUI_0(); (null == CONFIG.get("record") && null == CONFIG.get("playrecord")) || window.close(); }, getCodeBase_0: function () { var a = this.getParameter_1("basedir"); return null != a ? new java_net_URL(a) : java_applet_Applet.prototype.getCodeBase_0.call(this); }, getEventDispatcher_0: function () { return this.eventDispatcher; }, getCommandLineParameters_0: function () { return null; }, _flipImage: function (a) { var b = document.createElement("canvas"), d = new Image(); d.src = a; b.width = d.width; b.height = d.height; a = b.getContext("2d"); a.translate(0, d.height); a.scale(1, -1); a.drawImage(d, 0, 0); return b.toDataURL(); }, getScreenShot_0: function () { function a(a) { a = a.charCodeAt(0); if (43 === a || 45 === a) return 62; if (47 === a || 95 === a) return 63; if (48 > a) return -1; if (58 > a) return a - 48 + 52; if (91 > a) return a - 65; if (123 > a) return a - 97 + 26; } function b(a) { m[n++] = a; } this.render(); var d = "undefined" !== typeof Uint8Array ? Uint8Array : Array, e = G.query("canvas").toDataURL(); (DEVICE.ios || DEVICE.safari) && "1" === CONFIG.get("webgl") && (e = this._flipImage(e)); var e = e.slice(e.indexOf(",") + 1), f, g, k, m; if (0 < e.length % 4) throw Error("Invalid string. Length must be a multiple of 4"); k = e.length; k = "=" === e.charAt(k - 2) ? 2 : "=" === e.charAt(k - 1) ? 1 : 0; m = new d((3 * e.length) / 4 - k); f = 0 < k ? e.length - 4 : e.length; for (var n = 0, d = 0; d < f; d += 4) (g = (a(e.charAt(d)) << 18) | (a(e.charAt(d + 1)) << 12) | (a(e.charAt(d + 2)) << 6) | a(e.charAt(d + 3))), b((g & 16711680) >> 16), b((g & 65280) >> 8), b(g & 255); 2 === k ? ((g = (a(e.charAt(d)) << 2) | (a(e.charAt(d + 1)) >> 4)), b(g & 255)) : 1 === k && ((g = (a(e.charAt(d)) << 10) | (a(e.charAt(d + 1)) << 4) | (a(e.charAt(d + 2)) >> 2)), b((g >> 8) & 255), b(g & 255)); return m; }, pauseRendering_0: function () { SLOT.renderingPaused = !0; }, resumeRendering_0: function () { SLOT.renderingPaused = !1; }, getLocalStorage_0: function () { return this.localStorage; }, }, "GT1399", [GT1229, GT1274, GT453] ); GT1399.prototype.guiversion = "4.3.0"; GT1399.prototype.getClassName_1 = function (a) { return a.getClass_0().getName_0(); }; GT1399.prototype.totalMemory_0 = function () { return Integer.truncate_1(this.Runtime.getRuntime_0().totalMemory_0()); }; GT1399.prototype.freeMemory_0 = function () { return Integer.truncate_1(this.Runtime.getRuntime_0().freeMemory_0()); }; GT1399.prototype.timeOfDay_1 = function (a) { return this.getTimeFromTimestamp_2("" + java_lang_System.prototype.currentTimeMillis_0(), a); }; GT1399.prototype.getTimeFromTimestamp_2 = function (a, b) { if (1 >= a.length) return ""; var d = new Date(parseInt(a)), e = d.getHours(), f = d.getMinutes(), d = d.getSeconds(); return b ? (10 > e ? "0" : "") + e + (10 > f ? ":0" : ":") + f + (10 > d ? ":0" : ":") + d : (10 > e ? "0" : "") + e + (10 > f ? ":0" : ":") + f; }; var GT1573 = GT1140.extend( { initialConstructor_0: function () { GT1140.prototype.initialConstructor_0.call(this); this.canvasheight = this.canvaswidth = this.canvaswidth = this.anchory = this.anchorx = this.alpha = 0; this.dynamicTexture = this.canvas = null; }, initialConstructor_5: function (a, b, d, e, f) { this.initialConstructor_9.call(this, a, b, d, e, f, e, f, 0, 0); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.alpha = 255; this.canvas = document.createElement("canvas"); this.canvas.width = Math.round(g * CONFIG.SCALINGFACTOR); this.canvas.height = Math.round(k * CONFIG.SCALINGFACTOR); this.ctx = this.canvas.getContext("2d"); GT1140.prototype.initialConstructor_5.call(this, a, b, d, e, f); this._displayObject.pivot.x = Math.round(m * CONFIG.SCALINGFACTOR); this._displayObject.pivot.y = Math.round(n * CONFIG.SCALINGFACTOR); }, _createDisplayObject: function () { this._displayObject = new PIXI.Sprite(PIXI.Texture.fromCanvas(this.canvas)); }, _updateTexture: function () { null != this._displayObject && (this._displayObject.texture.baseTexture.dirty(), this.hidden || this.setAsDirtyArea_1(this)); }, setCanvasSize_4: function (a, b, d, e) { this._displayObject.pivot.x = Math.round(d * CONFIG.SCALINGFACTOR); this._displayObject.pivot.y = Math.round(e * CONFIG.SCALINGFACTOR); this.canvas.width = Math.round(a * CONFIG.SCALINGFACTOR); this.canvas.height = Math.round(b * CONFIG.SCALINGFACTOR); this._updateTexture(); }, clearRect_4: function (a, b, d, e) { null != this.canvas && ((d = Math.ceil(d * CONFIG.SCALINGFACTOR - 0.5)), (e = Math.ceil(e * CONFIG.SCALINGFACTOR - 0.5)), 1 > d && (d = 1), 1 > e && (e = 1), this.ctx.clearRect(Math.round(a * CONFIG.SCALINGFACTOR), Math.round(b * CONFIG.SCALINGFACTOR), d, e), this._updateTexture()); }, clearTriangle_7: function (a, b, d, e, f, g, k) { null != this.canvas && ((a = Math.round(a * CONFIG.SCALINGFACTOR)), (d = Math.round(d * CONFIG.SCALINGFACTOR)), (f = Math.round(f * CONFIG.SCALINGFACTOR)), (b = Math.round(b * CONFIG.SCALINGFACTOR)), (e = Math.round(e * CONFIG.SCALINGFACTOR)), (g = Math.round(g * CONFIG.SCALINGFACTOR)), k && ((b = new GT1631(a, b)), (e = new GT1631(d, e)), (g = new GT1631(f, g)), b.subtract_2(this.getTranslationX_0(), this.getTranslationY_0()), e.subtract_2(this.getTranslationX_0(), this.getTranslationY_0()), g.subtract_2(this.getTranslationX_0(), this.getTranslationY_0()), (a = this.getTransformationMatrix_0()), null != a && ((a = GT1639.invert_1(new GT1639(a))), (b = a.transformVector_1(b)), (e = a.transformVector_1(e)), (g = a.transformVector_1(g))), (a = Math.round(b.x)), (d = Math.round(e.x)), (f = Math.round(g.x)), (b = Math.round(b.y)), (e = Math.round(e.y)), (g = Math.round(g.y))), (this.ctx.globalCompositeOperation = "destination-out"), this.ctx.beginPath(), this.ctx.moveTo(a, b), this.ctx.lineTo(d, e), this.ctx.lineTo(f, g), this.ctx.closePath(), this.ctx.fill(), (this.ctx.globalCompositeOperation = "source-over"), this._updateTexture()); }, clearLines_3: function (a, b, d) { this.clearLines_4(a, b, d, 1); }, clearLines_4: function (a, b, d, e) { if (!(null == this.canvas || 1 > d.length)) for (var f = 0; f < d.length; f++) this.clearRect_4(a + d[f][0], b + d[f][1], d[f][2], e); }, fillRect_5: function (a, b, d, e, f) { this.fillRect_6(a, 255, b, d, e, f); }, fillRect_6: function (a, b, d, e, f, g) { f *= CONFIG.SCALINGFACTOR; g *= CONFIG.SCALINGFACTOR; 1 > f && (f = 1); 1 > g && (g = 1); this.ctx.fillStyle = a.getRGBAString_1(b); this.ctx.clearRect(Math.round(d * CONFIG.SCALINGFACTOR), Math.round(e * CONFIG.SCALINGFACTOR), f, g); this.ctx.fillRect(Math.round(d * CONFIG.SCALINGFACTOR), Math.round(e * CONFIG.SCALINGFACTOR), f, g); this._updateTexture(); }, drawImage_3: function (a, b, d) { var e = a.getWidth_0(), f = a.getHeight_0(), g = a._getSourceWidth_0(), k = a._getSourceHeight_0(); this.drawImage_9(a, b, d, e, f, 0, 0, g, k); this._updateTexture(); }, drawImage_9: function (a, b, d, e, f, g, k, m, n) { this.ctx.drawImage( a.texture.baseTexture.source, Math.round(g * CONFIG.SCALINGFACTOR), Math.round(k * CONFIG.SCALINGFACTOR), Math.round(m * CONFIG.SCALINGFACTOR), Math.round(n * CONFIG.SCALINGFACTOR), Math.round(b * CONFIG.SCALINGFACTOR), Math.round(d * CONFIG.SCALINGFACTOR), Math.round(e * CONFIG.SCALINGFACTOR), Math.round(f * CONFIG.SCALINGFACTOR) ); this._updateTexture(); }, drawImage_5: function (a, b, d, e, f) { a = new GT1637(a, e, f); this.drawImage_9(a, b, d, e, f, 0, 0, e, f); this._updateTexture(); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, setAnchor_2: function (a, b) { this._displayObject.pivot.x = a * CONFIG.SCALINGFACTOR; this._displayObject.pivot.y = b * CONFIG.SCALINGFACTOR; }, getAlpha_0: function () { return this.alpha; }, destroyImpl_2: function (a, b) { GT1140.prototype.destroyImpl_2.call(this, a, b); null != this._displayObject && (this._displayObject.texture.destroy(!0), (this._displayObject = this._displayObject.texture = null)); null != this.canvas && (this.canvas = null); }, getImage_0: function () { if (!this.canvas) return null; var a = this.ctx.getImageData(0, 0, this.canvas.width, this.canvas.height).data, b = []; b.length = a.length >> 2; for (var d = this.canvas.width, e = 0, f = this.canvas.height - 1; -1 < f; --f) for (var g = 0; g < d; ++g) { var k = (f * d + g) << 2; b[e++] = (a[k] << 16) | (a[k + 1] << 8) | a[k + 2] | (a[k + 3] << 24); } return new GT1637(b, this.canvas.width, this.canvas.height); }, fillCircle_4: function (a, b, d, e) { this.fillCircle_5(a, 255, b, d, e); }, fillCircle_5: function (a, b, d, e, f) { d *= CONFIG.SCALINGFACTOR; e *= CONFIG.SCALINGFACTOR; f *= CONFIG.SCALINGFACTOR; 1 > f && (f = 1); this.ctx.fillStyle = a.getRGBAString_1(b); this.ctx.beginPath(); this.ctx.arc(d, e, f, 0, 2 * Math.PI, !1); this.ctx.fill(); this._updateTexture(); }, fillRoundRect_6: function (a, b, d, e, f, g) { this.fillRoundRect_7(a, 255, b, d, e, f, g); }, fillRoundRect_7: function (a, b, d, e, f, g, k) { d *= CONFIG.SCALINGFACTOR; e *= CONFIG.SCALINGFACTOR; f *= CONFIG.SCALINGFACTOR; g *= CONFIG.SCALINGFACTOR; k *= CONFIG.SCALINGFACTOR; 1 > k && (k = 1); 1 > f && (f = 1); 1 > g && (g = 1); this.ctx.fillStyle = a.getRGBAString_1(b); this.ctx.beginPath(); this.ctx.moveTo(d + k, e); this.ctx.arcTo(d + f, e, d + f, e + k, k); this.ctx.arcTo(d + f, e + g, d + f - k, e + g, k); this.ctx.arcTo(d, e + g, d, e + g - k, k); this.ctx.arcTo(d, e, d + k, e, k); this.ctx.fill(); this._updateTexture(); }, }, "GT1573", [GT1480] ), GT1108 = GT1288.extend( { initialConstructor_0: function () { GT1288.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT1288.prototype.initialConstructor_5.call(this, a, Integer.truncate_1(b - f), Integer.truncate_1(d - f), Integer.truncate_1(2 * f), Integer.truncate_1(2 * f)); this.addTriangleStrip_3(this.getCornersOfBow_7(Integer.truncate_1(Math.ceil_1(f)), Integer.truncate_1(Math.ceil_1(f)), e, f, g, k, m), n, [p, q]); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1108.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, k, m, [n], 0, 0); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1108.prototype.initialConstructor_11.call(this, a, b, d, 0, e, 0, 2 * Math.PI, f, [g], 0, 0); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1108.prototype.initialConstructor_11.call(this, a, b, d, e, f, 0, 2 * Math.PI, g, [k], 0, 0); }, }, "GT1108", [] ); GT1108.prototype.getCartesian_2 = function (a, b) { return [b * Math.cos_1(a), -b * Math.sin_1(a)]; }; GT1108.prototype.getCornersOfBow_7 = function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(3 <= k, "cycleEdges >=3 !! (is " + k + ")"); var m = 0, n = 0; g /= k; for (var p = [].createArray(2 * (4 + 2 * (k - 1))).init(0), q, r; n <= k; n++) (q = this.getCartesian_2(f + g * n, e)), (r = this.getCartesian_2(f + g * n, d)), (p[m++] = q[0] + a), (p[m++] = q[1] + b), (p[m++] = r[0] + a), (p[m++] = r[1] + b); return p; }; var GT1440 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.colors = this.corners = null; this.alpha = 0; }, initialConstructor_1: function (a) { GT1440.prototype.initialConstructor_2.call(this, a, GT1634.prototype.black); }, initialConstructor_2: function (a, b) { GT1440.prototype.initialConstructor_6.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0(), b); }, initialConstructor_6: function (a, b, d, e, f, g) { this.corners = [0, 0, 0, f, e, 0, e, f]; this.colors = [g]; this.alpha = 255; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, _createDisplayObject: function () { this._displayObject = new PIXI.Graphics(); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this._displayObject.clear(); this._displayObject.beginFill(this.colors[0].getRGB_0()); this._displayObject.drawRect(0, 0, Math.ceil(this.width * CONFIG.SCALINGFACTOR - 0.5), Math.ceil(this.height * CONFIG.SCALINGFACTOR - 0.5)); this._displayObject.endFill(); this._displayObject.alpha = this.alpha / 255; this.updateDisplayObjectColorTransformation_1(null); this.hidden || this.setAsDirtyArea_1(this); }, destroyImpl_2: function (a, b) { this.hidden || this.setAsDirtyArea_1(this); GT1560.prototype.destroyImpl_2.call(this, a, b); }, updateDisplayObjectColorTransformation_1: function (a) { null != this && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, getAlpha_0: function () { return this.alpha; }, getColor_0: function () { return this.colors[0]; }, setColor_1: function (a) { null != a && a.value != this.colors[0].value && ((this.colors[0] = a), this._updateDisplayObject()); }, }, "GT1440", [GT1480] ), GT1223 = GT1288.extend( { initialConstructor_0: function () { GT1288.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1223.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, 1 < k.length ? [0, this.getMinimumY_1(g), 0, this.getMaximumY_1(g)] : null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1223.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, [0, m, 0, n]); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1288.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.addPolygon_3(g, k, m); }, }, "GT1223", [] ); GT1223.prototype.getMaximumY_1 = function (a) { for (var b = Integer.MIN_VALUE, d = 1; d < a.length; d += 2) a[d] > b && (b = a[d]); return b; }; GT1223.prototype.getMinimumY_1 = function (a) { for (var b = Integer.MAX_VALUE, d = 1; d < a.length; d += 2) a[d] < b && (b = a[d]); return b; }; var GT1244 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.objects = new java_util_JavaScriptVector(); this.modalInputReceiver = this.colortransformation = null; this.contentScaleY = this.contentScaleX = 1; this.parallaxDepth = GT1244.prototype.PARALLAX_DEPTH_SAME_AS_PARENT; }, initialConstructor_5: function (a, b, d, e, f) { this.objects = new java_util_JavaScriptVector(); this.modalInputReceiver = this.colortransformation = null; this.contentScaleY = this.contentScaleX = 1; this.parallaxDepth = GT1244.prototype.PARALLAX_DEPTH_SAME_AS_PARENT; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this._displayObject.scale.x = this.contentScaleX; this._displayObject.scale.y = this.contentScaleY; this._displayObject.parallaxDepth = this.parallaxDepth; this._updateDisplayObjectFilterAreaRect(); this.hidden || this.setAsDirtyArea_1(this); }, getParallaxDepth_0: function () { return this.parallaxDepth; }, setParallaxDepth_1: function (a) { this.parallaxDepth = a; this._displayObject && (this._displayObject.parallaxDepth = this.parallaxDepth); }, getChildCount_0: function () { return this.objects.size_0(); }, getChild_1: function (a) { return this.objects.size_0() <= a ? null : this.objects.elementAt_1(a); }, stringWidthImpl_2: function (a, b) { return GT1560.prototype.stringWidthImpl_2.call(this, a, b); }, setModalInputReceiver_1: function (a) { if (null != a) for (var b = 0; b < this.getChildCount_0(); b++) if (a == this.getChild_1(b)) { this.modalInputReceiver = a; return; } this.modalInputReceiver = null; }, getModalInputReceiver_0: function () { return this.modalInputReceiver; }, destroyChildren_0: function () { for (var a; 0 <= (a = this.objects.size_0() - 1); ) this.objects.elementAt_1(a).destroyImpl_2(a, !0); }, resize_2: function (a, b) { if (this.width != a || this.height != b) { this.hidden || this.setAsDirtyArea_1(this); this.width = a; this.height = b; this._updateDisplayObject(); for (var d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d); null != e && e.isAlive_0() && e._updateDisplayObject(); } } }, sortChildrenByXY_2: function (a, b) { for (var d = this.objects.size_0(); 1 < d; d--) { for (var e = !1, f = 0; f < d - 1; f++) { var g = this.objects.elementAt_1(f), k = this.objects.elementAt_1(f + 1); g.getAnchorX_0() * a + g.getAnchorY_0() * b > k.getAnchorX_0() * a + k.getAnchorY_0() * b && (g.reorderToPosition_1(f + 1), (e = !0)); } if (!e) break; } }, _setColorTransformation_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); null == e || !e.isAlive_0() || (e.isHidden_0() && "1" !== CONFIG.webgl) || (instanceOf(e, GT1591) || instanceOf(e, GT1336) || instanceOf(e, GT1352) || instanceOf(e, GT1606) || instanceOf(e, GT1288) || instanceOf(e, GT1440) || instanceOf(e, GT1134) || instanceOf(e, GT1224) || instanceOf(e, GT1055) || instanceOf(e, GT1359) || instanceOf(e, GT1360) || instanceOf(e, GT1075) ? e.updateDisplayObjectColorTransformation_1(b) : instanceOf(e, GT1437) && this._setColorTransformation_2(e, b)); } }, setColorTransformation_1: function (a) { null == a ? null != this.colortransformation && ((this.colortransformation = null), this._setColorTransformation_2(this, this.colortransformation)) : a.isIdentic_1(this.colortransformation) || ((this.colortransformation = a), this._setColorTransformation_2(this, this.colortransformation)); }, getColorTransformation_0: function () { return this.colortransformation; }, addFilter_1: function (a) { a && (this.filters || (this.filters = new java_util_JavaScriptVector()), this.filters.contains_1(a) ? this._updateDisplayObjectFilterAreaRect() : (this.filters.addElement_1(a), this.updateDisplayObjectFilters_0()), this.hidden || this.setAsDirtyArea_1(this)); }, removeFilter_1: function (a) { a && this.filters && this.filters.contains_1(a) && (this.filters.removeElement_1(a), this.updateDisplayObjectFilters_0(), this.hidden || this.setAsDirtyArea_1(this)); }, removeAllFilters_0: function () { this.filters && 0 < this.filters.size_0() && (this.filters.removeAllElements_0(), this.updateDisplayObjectFilters_0(), this.hidden || this.setAsDirtyArea_1(this)); }, getFilters_0: function () { return this.filters ? this.filters : null; }, updateDisplayObjectFilters_0: function () { if ("1" === CONFIG.webgl) if (this.filters && 0 < this.filters.size_0()) { for (var a = [], b = 0; b < this.filters.size_0(); ++b) a.push(this.filters.elementAt_1(b).nativeFilter.pixiFilter); this._displayObject.filters = a; this._updateDisplayObjectFilterAreaRect(); } else this._displayObject.filters = null; }, _updateDisplayObjectFilterAreaRect: function () { "1" === CONFIG.webgl && this.filters && 0 < this.filters.size_0() && (this._displayObject.filterArea = new PIXI.Rectangle( CONFIG.CLIENTSLOTAPPLET.getTopContainer_0()._getDisplayObjectXInTopContainer(this._displayObject), CONFIG.CLIENTSLOTAPPLET.getTopContainer_0()._getDisplayObjectYInTopContainer(this._displayObject), this.width * CONFIG.SCALINGFACTOR, this.height * CONFIG.SCALINGFACTOR )); }, setContentScaling_2: function (a, b) { this.contentScaleX = a; this.contentScaleY = b; this._updateDisplayObject(); }, getContentScaleX_0: function () { return this.contentScaleX; }, getContentScaleY_0: function () { return this.contentScaleY; }, setCacheAsBitmap_2: function (a, b) {}, setCacheAsBitmap_1: function (a) {}, setDisableImmediateUpdate_1: function (a) { (this.disableImmediateUpdate = a) || this.isImmediateUpdateDisabled_0() || this._update(); }, getCacheAsBitmap_0: function () { return !1; }, adjustGUITextSize_0: function () { for (var a = 0; a < this.objects.size_0(); a++) this.objects.elementAt_1(a).adjustGUITextSize_0(); }, destroyImpl_2: function (a, b) { this.modalInputReceiver = null; for (var d; 0 <= (d = this.objects.size_0() - 1); ) this.objects.elementAt_1(d).destroyImpl_2(d, !1); this.filters = null; GT1560.prototype.destroyImpl_2.call(this, a, b); }, }, "GT1244", [GT1525] ); GT1244.prototype.PARALLAX_DEPTH_SAME_AS_PARENT = -1e5; var GT1591 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.image = null; this.clippingheight = this.clippingwidth = this.sourceheight = this.sourcewidth = this.sourcey = this.sourcex = this.alpha = 0; this.cachescaledversion = !1; this.intrinsiccolortransformation = null; }, initialConstructor_4: function (a, b, d, e) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e.getWidth_0(), e.getHeight_0(), e, 0, 0, e.getWidth_0(), e.getHeight_0(), !1, null); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e.getColumnWidth_0(), e.getRowHeight_0(), e, e.getColumnWidth_0() * f, e.getRowHeight_0() * g, e.getColumnWidth_0(), e.getRowHeight_0(), !1, null); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, e, f, !1, null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, g.getColumnWidth_0() * k, g.getRowHeight_0() * m, g.getColumnWidth_0(), g.getRowHeight_0(), n, null); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, n, p, !1, null); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT1591.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, n, p, q, null); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { GT1591.prototype._internalConstructor_13.call(this, a, b, d, e, f, g, k, m, n, p, q, r, !0); }, _internalConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.image = g; this._scalex = g._scalex; this._scaley = g._scaley; this.alpha = 255; this.sourcex = k; this.sourcey = m; this.sourcewidth = n; this.sourceheight = p; this.clippingwidth = e; this.clippingheight = f; this.cachescaledversion = q; t && (this.intrinsiccolortransformation = r); if ("1" != CONFIG.webgl) if (((q = this.intrinsiccolortransformation), null == q && (q = this.colortransformation), null == q && (q = a.colortransformation), null != q)) { r = [ 0.01 * q.percentageRedFromRed, 0.01 * q.percentageRedFromGreen, 0.01 * q.percentageRedFromBlue, 0.01 * q.percentageGreenFromRed, 0.01 * q.percentageGreenFromGreen, 0.01 * q.percentageGreenFromBlue, 0.01 * q.percentageBlueFromRed, 0.01 * q.percentageBlueFromGreen, 0.01 * q.percentageBlueFromBlue, ]; var u = q.offsetRed + "" + q.offsetGreen + "" + q.offsetBlue + "" + q.percentageRedFromRed + "" + q.percentageRedFromGreen + "" + q.percentageRedFromBlue + "" + q.percentageGreenFromRed + "" + q.percentageGreenFromGreen + "" + q.percentageGreenFromBlue + "" + q.percentageBlueFromRed + "" + q.percentageBlueFromGreen + "" + q.percentageBlueFromBlue, B = this.image.pixitextureframename + "", A = B.lastIndexOf_1("_pixiclrtr_"); -1 < A && (B = B.substring_2(0, A)); A = B + ("_pixiclrtr_" + u); u = PIXI.TextureCache[A]; if (!u || null == u) { var C = PIXI.Texture.fromFrame(B), E = C.frame, B = document.createElement("canvas"); B.width = E.width; B.height = E.height; u = B.getContext("2d"); if (28 <= DEVICE.mozillaVersion) { var F = u.globalCompositeOperation; u.fillRect(0, 0, 4, 4); u.clearRect(0, 0, 4, 4); u.globalCompositeOperation = "multiply"; u.globalCompositeOperation = F; } try { if ( (u.drawImage(C.baseTexture.source, E.x, E.y, E.width, E.height, 0, 0, E.width, E.height), 100 != q.percentageRedFromRed || 100 != q.percentageGreenFromGreen || 100 != q.percentageBlueFromBlue || 0 != q.percentageRedFromBlue || 0 != q.percentageGreenFromRed || 0 != q.percentageGreenFromBlue || 0 != q.percentageBlueFromRed || 0 != q.percentageBlueFromGreen || 0 != q.percentageRedFromGreen || 0 != q.offsetRed || 0 != q.offsetGreen || 0 != q.offsetBlue) ) { for (var D = u.getImageData(0, 0, E.width, E.height), H = D.data, I = 0 == q.offsetRed && 0 == q.offsetGreen && 0 == q.offsetBlue, C = 0; C < H.length; C += 4) { var L = H[C], J = H[C + 1], M = H[C + 2], N = H[C + 3]; (0 == L && 0 == M && 0 == J && I) || ((H[C] = q.offsetRed + L * r[0] + J * r[1] + M * r[2]), (H[C + 1] = q.offsetGreen + L * r[3] + J * r[4] + M * r[5]), (H[C + 2] = q.offsetBlue + L * r[6] + J * r[7] + M * r[8]), 255 > N && JSUTIL.e(CONFIG.get("premultiplyalpha")) && ((N /= 255), (H[C] *= N), (H[C + 1] *= N), (H[C + 2] *= N))); } u.putImageData(D, 0, 0); } } catch (P) { console.warn(P), console.warn("Security issue: because of cross-origin problem can not create color transformed texture!"); } D = PIXI.Texture.fromCanvas(B); PIXI.Texture.addTextureToCache(D, A); } this.image.pixitextureframename !== A && ((D = new GT1637()), (D._scalex = g._scalex), (D._scaley = g._scaley), (D.pixitextureframename = A), (D.pixitextureoriginalframe = g.pixitextureoriginalframe), (D.texture = PIXI.Texture.fromFrame(A)), (D.numcolumns = this.image.numcolumns), (D.numrows = this.image.numrows), (D.columnwidth = g.columnwidth), (D.rowheight = g.rowheight), (D.overrideheight = g.overrideheight), (D.overridewidth = g.overridewidth), (D._imgscalex = g._imgscalex), (D._imgscaley = g._imgscaley), (D.javafilename = g.javafilename), (this.image = D)); } else (A = this.image.pixitextureframename.lastIndexOf_1("_pixiclrtr_")), -1 < A && ((D = new GT1637()), (D._scalex = g._scalex), (D._scaley = g._scaley), (D.pixitextureframename = g.pixitextureframename.substring_2(0, A)), (D.pixitextureoriginalframe = g.pixitextureoriginalframe), (D.texture = PIXI.Texture.fromFrame(D.pixitextureframename)), (D.numcolumns = g.numcolumns), (D.numrows = g.numrows), (D.columnwidth = g.columnwidth), (D.rowheight = g.rowheight), (D.overrideheight = g.overrideheight), (D.overridewidth = g.overridewidth), (D._imgscalex = g._imgscalex), (D._imgscaley = g._imgscaley), (D.javafilename = g.javafilename), (this.image = D)); D = g.getColumnWidth_0(); H = g.getRowHeight_0(); 0 >= D || 0 >= H ? GT1650.prototype.assertFailed_1("Encountered image without bitmap data: " + g.toString()) : ((I = Math.div(k, D)), (L = Math.div(m, H)), (0 > k || 0 > m || I >= g.getColumns_0() || L >= g.getRows_0()) && GT1650.prototype.assertFailed_1("sourcex or sourcey outside image borders: " + k + "," + m + " " + g.toString()), (k + n > (I + 1) * D || m + p > (L + 1) * H) && GT1650.prototype.assertFailed_1("width or height extends beyond tile borders: " + g.toString())); 1 == t && GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); "1" === CONFIG.webgl && this.updateDisplayObjectColorTransformation_1(this.intrinsiccolortransformation); }, _createDisplayObject: function () { this._createDisplayObjectInternal_1(!1); }, updateDisplayObjectColorTransformation_1: function (a) { null != this && ("1" === CONFIG.webgl ? JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1) : this.recreateThisObject_1(a)); }, _createDisplayObjectInternal_1: function (a) { var b = JSUTIL.e(this.image._imgscalex) ? this.image._imgscalex : this.image._scalex, d = JSUTIL.e(this.image._imgscaley) ? this.image._imgscaley : this.image._scaley, e = this.sourcex, f = this.sourcey, g = this.sourcewidth, k = this.sourceheight; this.image.overridewidth && ((g = (this.image.texture.width / this.image.getColumns_0() / b) * (this.sourcewidth / this.image.columnwidth)), (e = (this.sourcex / this.sourcewidth) * g)); this.image.overrideheight && ((k = (this.image.texture.height / this.image.getRows_0() / d) * (this.sourceheight / this.image.rowheight)), (f = (this.sourcey / this.sourceheight) * k)); if ( 1 < this.image.numcolumns || 1 < this.image.numrows || this.clippingwidth < this.image.getWidth_0() || this.clippingheight < this.image.getHeight_0() || Math.round(this.image.texture.frame.x) != Math.round(e * b) || Math.round(this.image.texture.frame.y) != Math.round(f * d) || Math.round(this.image.texture.frame.width) != Math.round(g * b) || Math.round(this.image.texture.frame.height) != Math.round(k * d) ) { var m = this.image.pixitextureoriginalframe, e = m.x + e * b, f = m.y + f * d, d = k * d, b = new PIXI.Texture(this.image.texture.baseTexture, new PIXI.Rectangle(e, f, Math.min_2(g * b, this.image.texture.baseTexture.width - e), Math.min_2(d, this.image.texture.baseTexture.height - f))); !0 === a ? this._displayObject.setTexture(b) : ((this._displayObject = new PIXI.Sprite(b)), this.updateDisplayObjectFilters_0()); } else !0 === a ? this._displayObject.setTexture(this.image.texture) : ((this._displayObject = new PIXI.Sprite(this.image.texture)), this.updateDisplayObjectFilters_0()); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); }, destroyImpl_2: function (a, b) { GT1560.prototype.destroyImpl_2.call(this, a, b); this.filters = null; }, isCacheScaledVersion_0: function () { return this.cachescaledversion; }, setColorTransformation_1: function (a) { this.intrinsiccolortransformation = a; this.updateDisplayObjectColorTransformation_1(a); }, getColorTransformation_0: function () { return this.intrinsiccolortransformation; }, addFilter_1: function (a) { a && (this.filters || (this.filters = new java_util_JavaScriptVector()), this.filters.contains_1(a) || (this.filters.addElement_1(a), this.updateDisplayObjectFilters_0(), this.hidden || this.setAsDirtyArea_1(this))); }, removeFilter_1: function (a) { a && this.filters && this.filters.contains_1(a) && (this.filters.removeElement_1(a), this.updateDisplayObjectFilters_0(), this.hidden || this.setAsDirtyArea_1(this)); }, removeAllFilters_0: function () { this.filters && 0 < this.filters.size_0() && (this.filters.removeAllElements_0(), this.updateDisplayObjectFilters_0(), this.hidden || this.setAsDirtyArea_1(this)); }, getFilters_0: function () { return this.filters ? this.filters : null; }, updateDisplayObjectFilters_0: function () { if ("1" === CONFIG.webgl) if (this.filters && 0 < this.filters.size_0()) { for (var a = [], b = 0; b < this.filters.size_0(); ++b) a.push(this.filters.elementAt_1(b).nativeFilter.pixiFilter); this._displayObject.filters = a; } else this._displayObject.filters = null; }, recreateThisObject_1: function (a) { if (null != this) { var b = this.applicationID, d = this.alpha; this._internalConstructor_13( this.parent, this.x, this.y, this.clippingwidth, this.clippingheight, this.image, this.sourcex, this.sourcey, this.sourcewidth, this.sourceheight, this.cachescaledversion, G.isNotNullAndDefined(a) ? a : this.intrinsiccolortransformation, !1 ); this._createDisplayObjectInternal_1(!0); this._updateDisplayObject(); this.applicationID = b; d != this.alpha ? this.setAlpha_1(d) : this.hidden || this.setAsDirtyArea_1(this); } }, getSourcePointX_0: function () { return this.sourcex; }, getSourcePointY_0: function () { return this.sourcey; }, getSourceWidth_0: function () { return this.sourcewidth; }, getSourceHeight_0: function () { return this.sourceheight; }, setSourcePoint_2: function (a, b) { if (a != this.sourcex || b != this.sourcey) (this.sourcex = a), (this.sourcey = b), GT1650.prototype.assertExp_2(0 <= a && 0 <= b && a < this.image.getWidth_0() && b < this.image.getHeight_0(), "sourcepoint not in range"), this.recreateThisObject_1(); }, setSourcePointTile_2: function (a, b) { this.setSourcePoint_2(this.image.getColumnWidth_0() * a, this.image.getRowHeight_0() * b); }, setImage_1: function (a) { this.setImage_5(a, 0, 0, a.getWidth_0(), a.getHeight_0()); }, setImage_5: function (a, b, d, e, f) { this.image = a; this.sourcex = b; this.sourcey = d; this.sourcewidth = e; this.sourceheight = f; this.recreateThisObject_1(); }, getImage_0: function () { return this.image; }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, getAlpha_0: function () { return this.alpha; }, setAlphaBlendMode_1: function (a) { a === GT1323.prototype.ADD ? (this._displayObject.blendMode = PIXI.blendModes.ADD) : a === GT1323.prototype.ADD_INTENSIVE ? (this._displayObject.blendMode = PIXI.blendModes.ADD_INTENSIVE) : a === GT1323.prototype.MULTIPLY ? (this._displayObject.blendMode = PIXI.blendModes.MULTIPLY) : a === GT1323.prototype.SCREEN ? (this._displayObject.blendMode = PIXI.blendModes.SCREEN) : a === GT1323.prototype.NONE && (this._displayObject.blendMode = PIXI.blendModes.NORMAL); this.hidden || this.setAsDirtyArea_1(this); }, }, "GT1591", [GT1480, GT1326] ), GT1413 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.font = null; this.active = this.hasfocus = !1; this.currentColorTransformation = this.foregroundinactive = this.background = this.foreground = null; }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1413.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, null, !0); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1413.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, null, !0); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.foreground = k; this.background = m; this.foregroundinactive = k; this.currentColorTransformation = null; this.fontMetrics = g; GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.hasfocus = !1; this.active = !0; }, _createDisplayObject: function () { this._displayObject = new PIXI.DisplayObjectContainer(); this._input = document.createElement("input"); this._input.setAttribute("type", "text"); this._input.style.width = this.width * CONFIG.SCALINGFACTOR + "px"; this._input.style.left = (this.parent.getAbsoluteX_0() + this.x) * CONFIG.SCALINGFACTOR + "px"; this._input.style.position = "absolute"; DEVICE.mobile ? ((this._input.style.height = 2 * this.height * CONFIG.SCALINGFACTOR + "px"), (this._input.style.top = (this.parent.getAbsoluteY_0() + 0.2 * this.y) * CONFIG.SCALINGFACTOR + "px")) : ((this._input.style.height = this.height * CONFIG.SCALINGFACTOR + "px"), (this._input.style.top = (this.parent.getAbsoluteY_0() + this.y) * CONFIG.SCALINGFACTOR + "px")); this._input.style.font = (this.fontMetrics.weight ? "bold " : "") + (this.fontMetrics.style ? "italic " : "") + this.fontMetrics.size * (DEVICE.mobile ? 2 : 1) + "px " + this.fontMetrics.name; G.append(CONFIG.CONTAINERS.container, this._input); CONFIG.CLIENTSLOTAPPLET.getTopContainer_0().adjustInputfield_1(this._input); var a = this; G.bind("keydown", this._input, function (b) { if (13 == b.keyCode || 38 == b.keyCode || 40 == b.keyCode) (b.sender = a), CONFIG.CLIENTSLOTAPPLET.nativeKeyEventTranslator.keyPressed_1(b, a), "drop" == a._input.value.toLowerCase() ? CONFIG.CLIENTSLOTAPPLET.getConnection_0().close_0() : "replay" == a._input.value.toLowerCase() && CONFIG.CLIENTSLOTAPPLET.setProperty_2("REPLAY", ""); b.stopImmediatePropagation(); }); setTimeout(function () { a._input.focus(); }, 100); this._input.onfocus = function () { a._input.select(); a._input.setSelectionRange(0, 9999); }; }, setText_1: function (a) { null != this._input && (this._input.value = a); }, getText_0: function () { return null != this._input ? this._input.value : ""; }, setForegroundColor_2: function (a, b) { this.foreground = a; this.foregroundinactive = b; }, move_2: function (a, b) { GT1560.prototype.move_2.call(this, a, b); null != this._input && ((this._input.style.left = this.parent.getAbsoluteX_0() + this.x + "px"), (this._input.style.top = this.parent.getAbsoluteY_0() + this.y + "px")); }, setActive_1: function (a) { this.active != a && ((this.active = a), null != this._input && (this._input.disabled = !this.active)); }, isActive_0: function () { return this.active; }, hide_1: function (a) { GT1560.prototype.hide_1.call(this, a); null != this._input && (this._input.style.visibility = a ? "hidden" : "visible"); }, focusGained_1: function (a) { this.hasfocus = !0; }, focusLost_1: function (a) { this.hasfocus = !1; }, destroyImpl_2: function (a, b) { null != this._input && G.remove(this._input, CONFIG.CONTAINERS.container); GT1560.prototype.destroyImpl_2.call(this, a, b); }, resize_2: function (a, b) { this.width = a; this.height = b; null != this._input && ((this._input.style.width = this.width * CONFIG.SCALINGFACTOR + "px"), (this._input.style.height = this.height * CONFIG.SCALINGFACTOR + "px")); }, mouseClicked_1: function (a) {}, mousePressed_1: function (a) {}, mouseReleased_1: function (a) {}, mouseEntered_1: function (a) {}, mouseExited_1: function (a) {}, }, "GT1413", [java_awt_event_FocusListener, GT1525, java_awt_event_MouseListener] ), GT1614 = GT1223.extend( { initialConstructor_0: function () { GT1223.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1614.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, k, m, n, 0, 0); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT1223.prototype.initialConstructor_7.call(this, a, b, d, e, f, n ? this.clipPolygon_5(0, e, 0, f, this.createLine_5(k, g, this.isClosed_1(k), p, q)) : this.createLine_5(k, g, this.isClosed_1(k), p, q), [m]); }, }, "GT1614", [] ); GT1614.prototype.clipPolygon_4 = function (a, b, d, e) { var f = d.length, g = [].createArray(3 * f).init(0), k = 0, m, n; e ? ((n = d[f - 2]), (m = d[f - 1])) : ((m = d[f - 2]), (n = d[f - 1])); for (var p = 0; p < f; p += 2) { var q, r; e ? ((r = d[p]), (q = d[p + 1])) : ((q = d[p]), (r = d[p + 1])); if (q >= m) { if ((m < a && q >= a) || (q < a && m >= a)) (n += Math.div((r - n) * (a - m), q - m)), (m = a), (g[k++] = m), (g[k++] = n); if ((m < b && q >= b) || (q < b && m >= b)) (n += Math.div((r - n) * (b - m), q - m)), (m = b), (g[k++] = m), (g[k++] = n); } else { if ((m < b && q >= b) || (q < b && m >= b)) (n += Math.div((r - n) * (b - m), q - m)), (m = b), (g[k++] = m), (g[k++] = n); if ((m < a && q >= a) || (q < a && m >= a)) (n += Math.div((r - n) * (a - m), q - m)), (m = a), (g[k++] = m), (g[k++] = n); } m = q; n = r; g[k++] = m; g[k++] = n; } d = [].createArray(k).init(0); for (p = 0; p < k; p += 2) (q = g[p]), (r = g[p + 1]), q < a && (q = a), q > b && (q = b), e ? ((d[p] = r), (d[p + 1] = q)) : ((d[p] = q), (d[p + 1] = r)); return d; }; GT1614.prototype.clipPolygon_5 = function (a, b, d, e, f) { a = this.clipPolygon_4(a, b, f, !1); return this.clipPolygon_4(d, e, a, !0); }; GT1614.prototype.det_4 = function (a, b, d, e) { return a * e - b * d; }; GT1614.prototype.computeintersection_2 = function (a, b) { var d = a[0], e = a[1], f = a[2], g = a[3], k = b[0], m = b[1], n = b[2], p = b[3], q = this.det_4(this.det_4(d, e, f, g), d - f, this.det_4(k, m, n, p), k - n) / this.det_4(d - f, e - g, k - n, m - p), d = this.det_4(this.det_4(d, e, f, g), e - g, this.det_4(k, m, n, p), m - p) / this.det_4(d - f, e - g, k - n, m - p); return [Integer.truncate_1(q + 0.5), Integer.truncate_1(d + 0.5)]; }; GT1614.prototype.computeparallel_5 = function (a, b, d, e, f) { var g = d - a, k = e - b, m = Math.sqrt_1(g * g + k * k); return [a + (k * f) / m, b - (g * f) / m, d + (k * f) / m, e - (g * f) / m]; }; GT1614.prototype.createLine_5 = function (a, b, d, e, f) { if (null == a || 4 > a.length) return null; var g = Math.div(a.length, 2); if (2 > g) return null; for (var k = [].createArray(4 * g).init(0), m = 0; m < g; m++) { var n = a[2 * m] + e, p = a[2 * m + 1] + f, q = a[2 * m] + e, r = a[2 * m + 1] + f; 0 < m ? ((q = a[2 * (m - 1)] + e), (r = a[2 * (m - 1) + 1] + f)) : ((q = a[2 * (g - 2)] + e), (r = a[2 * (g - 2) + 1] + f)); var t, u; m < g - 1 ? ((t = a[2 * (m + 1)] + e), (u = a[2 * (m + 1) + 1] + f)) : ((t = a[2] + e), (u = a[3] + f)); if (!d && 0 >= m) (q = this.computeparallel_5(n, p, t, u, 1 == b ? 1 : Math.div(b, 2))), (r = this.computeparallel_5(n, p, t, u, 1 == b ? 0 : Math.div(-b, 2))), (n = Integer.truncate_1(q[0])), (p = Integer.truncate_1(q[1])), (q = Integer.truncate_1(r[0])), (r = Integer.truncate_1(r[1])); else if (!d && m >= g - 1) (t = this.computeparallel_5(q, r, n, p, 1 == b ? 1 : Math.div(b, 2))), (r = this.computeparallel_5(q, r, n, p, 1 == b ? 0 : Math.div(-b, 2))), (n = Integer.truncate_1(t[2])), (p = Integer.truncate_1(t[3])), (q = Integer.truncate_1(r[2])), (r = Integer.truncate_1(r[3])); else var B = this.computeintersection_2(this.computeparallel_5(q, r, n, p, 1 == b ? 1 : Math.div(b, 2)), this.computeparallel_5(n, p, t, u, 1 == b ? 1 : Math.div(b, 2))), r = this.computeintersection_2(this.computeparallel_5(q, r, n, p, 1 == b ? 0 : Math.div(-b, 2)), this.computeparallel_5(n, p, t, u, 1 == b ? 0 : Math.div(-b, 2))), n = B[0], p = B[1], q = r[0], r = r[1]; k[2 * m] = n; k[2 * m + 1] = p; k[2 * (2 * g - 1 - m)] = q; k[2 * (2 * g - 1 - m) + 1] = r; } return k; }; GT1614.prototype.isClosed_1 = function (a) { return a[0] == a[a.length - 2] && a[1] == a[a.length - 1]; }; var GT1224 = GT1560.extend( { initialConstructor_0: function () { GT1560.prototype.initialConstructor_0.call(this); this.image = null; this.alpha = this.borderbottom = this.centerheight = this.bordertop = this.borderright = this.centerwidth = this.borderleft = this.sourceheight = this.sourcewidth = this.sourcey = this.sourcex = 0; }, initialConstructor_6: function (a, b, d, e, f, g) { GT1224.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, 0, 0); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1224.prototype.initialConstructor_14.call( this, a, b, d, e, f, g, k * g.getColumnWidth_0(), m * g.getRowHeight_0(), g.getColumnWidth_0(), g.getRowHeight_0(), Math.div(g.getColumnWidth_0(), 3), Math.div(g.getColumnWidth_0(), 3), Math.div(g.getRowHeight_0(), 3), Math.div(g.getRowHeight_0(), 3) ); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { GT1224.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k * g.getColumnWidth_0(), m * g.getRowHeight_0(), g.getColumnWidth_0(), g.getRowHeight_0(), n, p, q, r); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { GT1224.prototype.initialConstructor_16.call(this, a, b, d, e, f, g, k, m, n, p, q, e - q - r, r, t, f - t - u, u); }, initialConstructor_16: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A) { this.clippingheight = this.clippingwidth = 0; this.cachescaledversion = !1; this.intrinsiccolortransformation = null; this.image = g; this.sourcex = k; this.sourcey = m; this.sourcewidth = n; this.sourceheight = p; this.borderleft = q; this.centerwidth = r; this.borderright = t; this.bordertop = u; this.centerheight = B; this.borderbottom = A; this.alpha = 255; q = g.getColumnWidth_0(); r = g.getRowHeight_0(); 0 >= q || 0 >= r ? GT1650.prototype.assertFailed_1("Encountered image without bitmap data: " + g.toString()) : ((t = Math.div(k, q)), (u = Math.div(m, r)), (0 > k || 0 > m || t >= g.getColumns_0() || u >= g.getRows_0()) && GT1650.prototype.assertFailed_1("sourcex or sourcey outside image borders: " + k + "," + m + " " + g.toString()), (k + n > (t + 1) * q || m + p > (u + 1) * r) && GT1650.prototype.assertFailed_1("width or height extends beyond tile borders: " + g.toString())); if (0 < this.borderleft || 0 < this.borderright || 0 < this.bordertop || 0 < this.borderbottom) if (((n = this.image.pixitextureframename + ""), 0 > n.lastIndexOf_1("_created9patch"))) { k = this.borderleft + this.centerwidth + this.borderright; m = this.bordertop + this.centerheight + this.borderbottom; g = n + k + m + this.sourcex + this.sourcey + "_created9patch"; k = Math.ceil(k * CONFIG.SCALINGFACTOR); m = Math.ceil(m * CONFIG.SCALINGFACTOR); p = PIXI.TextureCache[g]; if (null != p) (n = new GT1637(k, m)), (n.sourcewidth = k), (n.sourceheight = m), (n.pixitextureframename = g), (n.pixitextureoriginalframe = new PIXI.Rectangle(0, 0, k, m)), (n.texture = p); else { n = PIXI.Texture.fromFrame(n); p = document.createElement("canvas"); p.width = k; p.height = m; q = p.getContext("2d"); r = this.sourcex * CONFIG.SCALINGFACTOR; t = Math.ceil(r + this.borderleft * CONFIG.SCALINGFACTOR); u = Math.ceil(this.borderright * CONFIG.SCALINGFACTOR); B = Math.floor(r + (this.sourcewidth * CONFIG.SCALINGFACTOR - u)); A = t - r; var C = B - t, E = this.sourcey * CONFIG.SCALINGFACTOR, F = Math.ceil(E + this.bordertop * CONFIG.SCALINGFACTOR), D = Math.ceil(this.borderbottom * CONFIG.SCALINGFACTOR), H = Math.floor(E + (this.sourceheight * CONFIG.SCALINGFACTOR - D)), I = F - E, L = H - F, J = Math.ceil(this.borderleft * CONFIG.SCALINGFACTOR), M = k - u, N = Math.max(0, k - (A + u)), P = Math.ceil(this.bordertop * CONFIG.SCALINGFACTOR), O = m - D, K = Math.max(0, m - (I + D)); 0 < this.borderleft && (0 < this.bordertop && q.drawImage(n.baseTexture.source, r, E, A, I, 0, 0, A, I), 0 < this.centerheight && q.drawImage(n.baseTexture.source, r, F, A, L, 0, P, A, K), 0 < this.borderbottom && q.drawImage(n.baseTexture.source, r, H, A, D, 0, O, A, D)); 0 < this.centerwidth && (0 < this.bordertop && q.drawImage(n.baseTexture.source, t, E, C, I, J, 0, N, I), 0 < this.centerheight && q.drawImage(n.baseTexture.source, t, F, C, L, J, P, N, K), 0 < this.borderbottom && q.drawImage(n.baseTexture.source, t, H, C, D, J, O, N, D)); 0 < this.borderright && (0 < this.bordertop && q.drawImage(n.baseTexture.source, B, E, u, I, M, 0, u, I), 0 < this.centerheight && q.drawImage(n.baseTexture.source, B, F, u, L, M, P, u, K), 0 < this.borderbottom && q.drawImage(n.baseTexture.source, B, H, u, D, M, O, u, D)); n = PIXI.Texture.fromCanvas(p); PIXI.Texture.addTextureToCache(n, g); n = new GT1637(k, m); n.sourcewidth = k; n.sourceheight = m; n.pixitextureframename = g; n.pixitextureoriginalframe = new PIXI.Rectangle(0, 0, k, m); n.texture = PIXI.Texture.fromFrame(g); } this.image = n; } GT1560.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, _createDisplayObject: function () { var a = JSUTIL.e(this.image._imgscalex) ? this.image._imgscalex : this.image._scalex, b = JSUTIL.e(this.image._imgscaley) ? this.image._imgscaley : this.image._scaley, d = this.sourcex, e = this.sourcey, f = this.sourcewidth, g = this.sourceheight; if (this.image.overridewidth || this.image.overrideheight) (f = this.image.texture.width / this.image.getColumns_0() / a), (g = this.image.texture.height / this.image.getRows_0() / b), (d = (this.sourcex / this.sourcewidth) * f), (e = (this.sourcey / this.sourceheight) * g); if (1 < this.image.numcolumns || 1 < this.image.numrows || this.clippingwidth < this.image.getWidth_0() || this.clippingheight < this.image.getHeight_0()) { var k = this.image.pixitextureoriginalframe, d = k.x + Math.round_1(d * a), e = k.y + Math.round_1(e * b), a = Math.round_1(f * a), b = Math.round_1(g * b), b = new PIXI.Texture(this.image.texture.baseTexture, new PIXI.Rectangle(d, e, Math.min_2(a, this.image.texture.baseTexture.width - d), Math.min_2(b, this.image.texture.baseTexture.height - e))); this._displayObject = new PIXI.Sprite(b); } else this._displayObject = new PIXI.Sprite(this.image.texture); }, destroyImpl_2: function (a, b) { GT1560.prototype.destroyImpl_2.call(this, a, b); }, updateDisplayObjectColorTransformation_1: function (a) { JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, setAlpha_1: function (a) { a != this.alpha && ((this.alpha = a), (this._displayObject.alpha = a / 255), this.hidden || this.setAsDirtyArea_1(this)); }, getAlpha_0: function () { return this.alpha; }, }, "GT1224", [GT1480] ), GT1615 = GT1440.extend( { initialConstructor_0: function () { GT1440.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1440.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); }, initialConstructor_2: function (a, b) { GT1440.prototype.initialConstructor_6.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0(), b); }, initialConstructor_3: function (a, b, d) { GT1440.prototype.initialConstructor_6.call(this, a, b.x, b.y, b.width, b.height, d); }, }, "GT1615", [] ), GT1439 = GT1288.extend( { initialConstructor_0: function () { GT1288.prototype.initialConstructor_0.call(this); }, initialConstructor_15: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B) { GT1288.prototype.initialConstructor_5.call(this, a, b, d, e, f); a = this.pointsOfARoundRect_4(e - 2 * g, f - 2 * g, m, n); if (null != p && 0 < u) { m = [].createArray(2 * a.length + 1).init(0); var A = Math.div(e, 2), C = Math.div(f, 2); for (d = b = 0; d < a.length; d += 2) (m[b++] = g + a[d]), (m[b++] = g + a[d + 1]), d < a.length - 2 ? ((m[b++] = A), (m[b++] = C)) : ((m[b++] = m[0]), (m[b++] = m[1])); this.addTriangleStrip_4(m, p, r, u); } if (null != q && 0 < B) { e = this.pointsOfARoundRect_4(e, f, k, n); f = [].createArray(2 * (e.length + 2)).init(0); for (d = b = 0; d < e.length; d += 2) (f[b++] = e[d]), (f[b++] = e[d + 1]), (f[b++] = g + a[d]), (f[b++] = g + a[d + 1]); f[b++] = f[0]; f[b++] = f[1]; f[b++] = f[2]; f[b++] = f[3]; this.addTriangleStrip_4(f, q, t, B); } }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { GT1439.prototype.initialConstructor_15.call(this, a, b, d, e, f, g, k, Math.max_2(k - g, 0), m, [n], [p], null, null, q, r); }, initialConstructor_18: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E) { GT1439.prototype.initialConstructor_15.call(this, a, b, d, e, f, g, k, m, n, q, r, this.gradients_3(q, t, u), this.gradients_3(r, B, A), C, E); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { GT1439.prototype.initialConstructor_18.call(this, a, b, d, e, f, g, k, m, n, p, [q], [r], 0, 0, 0, 0, t, t); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1439.prototype.initialConstructor_13.call(this, a, b, d, e, f, g, k, k - g, 2 * k, 2 * (k - g), m, n, p); }, }, "GT1439", [] ); GT1439.prototype.getCartesianY_2 = function (a, b) { return -b * Math.sin_1(a); }; GT1439.prototype.getCartesianX_2 = function (a, b) { return b * Math.cos_1(a); }; GT1439.prototype.addCornerPoints_7 = function (a, b, d, e, f, g, k) { var m = 0; if (2 > d || 0 == e) switch (f) { case GT1439.prototype.TOPLEFT: return (g[k + m++] = a - d), (g[k + m++] = b - d), m; case GT1439.prototype.TOPRIGHT: return (g[k + m++] = a + d), (g[k + m++] = b - d), m; case GT1439.prototype.BOTTOMRIGHT: return (g[k + m++] = a + d), (g[k + m++] = b + d), m; case GT1439.prototype.BOTTOMLEFT: return (g[k + m++] = a - d), (g[k + m++] = b + d), m; } else if (1 == e) switch (f) { case GT1439.prototype.TOPLEFT: return (g[k + m++] = a - d), (g[k + m++] = b), (g[k + m++] = a), (g[k + m++] = b - d), m; case GT1439.prototype.TOPRIGHT: return (g[k + m++] = a), (g[k + m++] = b - d), (g[k + m++] = a + d), (g[k + m++] = b), m; case GT1439.prototype.BOTTOMRIGHT: return (g[k + m++] = a + d), (g[k + m++] = b), (g[k + m++] = a), (g[k + m++] = b + d), m; case GT1439.prototype.BOTTOMLEFT: return (g[k + m++] = a), (g[k + m++] = b + d), (g[k + m++] = a - d), (g[k + m++] = b), m; } var n = 0, p = Math.PI / 2 / e; switch (f) { case GT1439.prototype.TOPLEFT: n = Math.PI; g[k + m++] = a - d; g[k + m++] = b; break; case GT1439.prototype.TOPRIGHT: n = Math.PI / 2; g[k + m++] = a; g[k + m++] = b - d; break; case GT1439.prototype.BOTTOMRIGHT: n = 0; g[k + m++] = a + d; g[k + m++] = b; break; case GT1439.prototype.BOTTOMLEFT: (n = (3 * Math.PI) / 2), (g[k + m++] = a), (g[k + m++] = b + d); } for (f = 1; f <= e; f++) { var q = n - p * f; g[k + m++] = a + this.getCartesianX_2(q, d); g[k + m++] = b + this.getCartesianY_2(q, d); } return m; }; GT1439.prototype.pointsOfARoundRect_4 = function (a, b, d, e) { var f = [].createArray(8 * (e + 1)).init(0), g = 0, g = g + this.addCornerPoints_7(d, d, d, e, GT1439.prototype.TOPLEFT, f, g), g = g + this.addCornerPoints_7(a - d, d, d, e, GT1439.prototype.TOPRIGHT, f, g), g = g + this.addCornerPoints_7(a - d, b - d, d, e, GT1439.prototype.BOTTOMRIGHT, f, g); this.addCornerPoints_7(d, b - d, d, e, GT1439.prototype.BOTTOMLEFT, f, g); return f; }; GT1439.prototype.gradients_3 = function (a, b, d) { if (null == a) return null; a = [].createArray(2 * a.length).init(0); for (var e = 0; e < a.length - 1; e += 2) (a[e] = 0), (a[e + 1] = 0 == e ? b : d); return a; }; GT1439.prototype.TOPLEFT = 0; GT1439.prototype.TOPRIGHT = 1; GT1439.prototype.BOTTOMRIGHT = 2; GT1439.prototype.BOTTOMLEFT = 3; var GT1359 = GT1198.extend( { initialConstructor_0: function () { this.frameratelistener = this.skeletonData = this.skeleton = this.skeletonJson = this.trackMergingAlphaHistory = this.animationStateData = this.animationState = this.textureAtlas = this.jsonObject = this.timer = this.tmpAnimations = this.addedAnimations = this.viewers = this.animationEventNotifications = this.finishNotifications = this.startNotifications = null; this.paused = this.started = this.initialized = !1; this.lastUpdateTime = 0; this.verticalFlip = this.horizontalFlip = !1; this.scaleY = this.scaleX = this.contentY = this.contentX = this.openGLAlpha = this.alpha = 0; GT1198.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1359.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.frameratelistener = this.skeletonData = this.skeleton = this.skeletonJson = this.trackMergingAlphaHistory = this.animationStateData = this.animationState = this.textureAtlas = this.jsonObject = this.timer = this.tmpAnimations = this.addedAnimations = this.viewers = this.animationEventNotifications = this.finishNotifications = this.startNotifications = null; this.paused = this.started = this.initialized = !1; this.lastUpdateTime = 0; this.verticalFlip = this.horizontalFlip = !1; this.scaleY = this.scaleX = this.contentY = this.contentX = this.openGLAlpha = this.alpha = 0; GT1198.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.initNative_0(); this.startNotifications = new java_util_JavaScriptVector(); this.finishNotifications = new java_util_JavaScriptVector(); this.animationEventNotifications = new java_util_JavaScriptVector(); this.viewers = new java_util_JavaScriptVector(); this.trackMergingAlphaHistory = new java_util_JavaScriptVector(); this.contentX = e / 2; this.contentY = f / 2; this.addedAnimations = new java_util_JavaScriptVector(); this.alpha = 255; this.scaleY = this.scaleX = this.openGLAlpha = 1; this.timer = g; this.jsonObject = k; this.textureAtlas = m; this.frameratelistener = null; this.skeletonJson = new GT1351(m); this.skeletonJson.setScale_1(1); this.skeletonData = this.skeletonJson.readSkeletonData_2(n, k); this.skeleton = new GT1542(this.skeletonData); this.skeleton.setPosition_2(0, 0); this.animationStateData = new GT1029(this.skeletonData); this.animationState = new GT1250(this.animationStateData); this.animationState.addListener_1(this.createAnimationStateListeners_0()); this.initialized = !0; }, createAnimationStateListeners_0: function () { return new GT390(this.timer, this.startNotifications, this.finishNotifications, this.animationEventNotifications); }, setAnimation_3: function (a, b, d) { this.setAnimation_4(a, b, d, 0); }, setAnimation_4: function (a, b, d, e) { this.clearTrackAnimationsVector_1(a); this.addedAnimations.add_1(new GT1056(a, b, d, 0, e)); this.animationState.setAnimation_3(a, b, d).setMixDuration_1(e); }, setEmptyAnimation_2: function (a, b) { this.clearTrackAnimationsVector_1(a); this.addedAnimations.add_1(new GT1056(a, GT1359.prototype.EMPTY_ANIMATION, !1, 0, b)); this.animationState.setEmptyAnimation_2(a, b); }, addAnimation_5: function (a, b, d, e, f) { GT1650.prototype.assertExp_2(0 < this.addedAnimations.size_0(), "GUISpinePlayer: No animation is already set for track " + a + "! Please set an animation for this track before adding more animations to it!"); this.addedAnimations.add_1(new GT1056(a, b, d, e, f)); this.animationState.addAnimation_4(a, b, d, e).setMixDuration_1(f); }, addEmptyAnimation_3: function (a, b, d) { GT1650.prototype.assertExp_2(0 < this.addedAnimations.size_0(), "GUISpinePlayer: No animation is already set for track " + a + "! Please set an animation for this track before adding more animations to it!"); this.addedAnimations.add_1(new GT1056(a, GT1359.prototype.EMPTY_ANIMATION, !1, d, b)); this.animationState.addEmptyAnimation_3(a, b, d); }, setTrackMergingAlpha_2: function (a, b) { var d = this.animationState.getTracks_0().get_1(a); GT1650.prototype.assertExp_2(null != d, "GUISpinePlayer: Can not set mixDuration of a null track: " + a); d.setAlpha_1(b); for (var d = null, e = 0; e < this.trackMergingAlphaHistory.size_0(); ++e) if (null != this.trackMergingAlphaHistory.elementAt_1(e) && this.trackMergingAlphaHistory.elementAt_1(e).x == a) { d = this.trackMergingAlphaHistory.elementAt_1(e); d.y = b; break; } null == d && this.trackMergingAlphaHistory.addElement_1(new GT1370(a, b)); }, getTrackMergingAlpha_1: function (a) { var b = this.animationState.getTracks_0().get_1(a); GT1650.prototype.assertExp_2(null != b, "GUISpinePlayer: Can not get mixDuration of a null track: " + a); return b.getAlpha_0(); }, clearTrack_1: function (a) { this.clearTrackAnimationsVector_1(a); this.animationState.clearTrack_1(a); }, clearTrackAnimationsVector_1: function (a) { null == this.tmpAnimations ? (this.tmpAnimations = new java_util_JavaScriptVector()) : this.tmpAnimations.removeAllElements_0(); for (var b = 0; b < this.addedAnimations.size_0(); ++b) this.addedAnimations.elementAt_1(b).trackIndex != a && this.tmpAnimations.add_1(this.addedAnimations.elementAt_1(b)); this.addedAnimations.removeAllElements_0(); for (b = 0; b < this.tmpAnimations.size_0(); ++b) this.addedAnimations.add_1(this.tmpAnimations.elementAt_1(b)); this.tmpAnimations.removeAllElements_0(); }, clearAllTracks_0: function () { this.clearAllTracksAnimationsVector_0(); this.animationState.clearListenerNotifications_0(); this.animationState.clearTracks_0(); }, clearAllTracksAnimationsVector_0: function () { this.addedAnimations.removeAllElements_0(); }, getCurrentPlayingAnimation_1: function (a) { return null != this.animationState.getCurrent_1(a) ? this.animationState.getCurrent_1(a).toString() : null; }, getSkeletonJsonVersion_0: function () { return this.skeletonData.getVersion_0(); }, getAnimationDuration_1: function (a) { return null != this.skeletonData.findAnimation_1(a) ? this.skeletonData.findAnimation_1(a).getDuration_0() : -1; }, getAnimationState_0: function () { return this.animationState; }, setTimeScale_1: function (a) { this.animationState.setTimeScale_1(a); }, getTimeScale_0: function () { return this.animationState.getTimeScale_0(); }, getViewers_0: function () { return this.viewers; }, isClippingEnabled_0: function () { return !0; }, start_0: function () { GT1650.prototype.assertExp_2(this.initialized, "GUISpinePlayer: Player isn't initialized!"); GT1650.prototype.assertExp_2(!this.started, "GUISpinePlayer: Player is already started!"); this.started = !0; this.frameratelistener = new GT638(this); this.timer.addFramerateListener_1(this.frameratelistener); }, restart_0: function () { this.started ? this.recreateAnimationState_0() : this.start_0(); }, recreateAnimationState_0: function () { var a = this.animationState; this.animationState = new GT1250(this.animationStateData); this.animationState.addListener_1(this.createAnimationStateListeners_0()); this.animationState.setTimeScale_1(a.getTimeScale_0()); for (var b = 0; b < this.addedAnimations.size_0(); ++b) { var d = this.addedAnimations.elementAt_1(b); if (GT1359.prototype.EMPTY_ANIMATION.equals_1(d.animationName)) 0 == b ? this.animationState.setEmptyAnimation_2(d.trackIndex, d.mixDuration) : this.animationState.addEmptyAnimation_3(d.trackIndex, d.mixDuration, d.delay); else { var e = null, e = 0 == b ? this.animationState.setAnimation_3(d.trackIndex, d.animationName, d.looped) : this.animationState.addAnimation_4(d.trackIndex, d.animationName, d.looped, d.delay); e.setMixDuration_1(d.mixDuration); } } for (b = 0; b < this.trackMergingAlphaHistory.size_0(); ++b) if (null != this.trackMergingAlphaHistory.elementAt_1(b)) { b = this.trackMergingAlphaHistory.elementAt_1(b); d = Integer.truncate_1(b.x); this.animationState.getTracks_0().size > d && ((d = this.animationState.getTracks_0().get_1(d)), null != d && d.setAlpha_1(b.y)); break; } a.clearListeners_0(); a.clearListenerNotifications_0(); a.clearTracks_0(); }, isStarted_0: function () { return this.started; }, pause_0: function () { this.started && !this.paused && (this.paused = !0); }, isPaused_0: function () { return this.paused; }, resume_0: function () { this.started && this.paused && (this.paused = !1); }, stop_0: function () { this.started = !1; }, addStartNotification_1: function (a) { null != a && this.startNotifications.addElement_1(a); }, removeStartNotification_1: function (a) { this.startNotifications.removeElement_1(a); }, removeAllStartNotifications_0: function () { this.startNotifications.clear_0(); }, addFinishNotification_1: function (a) { null != a && this.finishNotifications.addElement_1(a); }, removeFinishNotification_1: function (a) { this.finishNotifications.removeElement_1(a); }, removeAllFinishNotifications_0: function () { this.finishNotifications.clear_0(); }, addAnimationEventNotification_1: function (a) { null != a && this.animationEventNotifications.addElement_1(a); }, removeAnimationEventNotification_1: function (a) { this.animationEventNotifications.removeElement_1(a); }, removeAllAnimationEventNotifications_0: function () { this.animationEventNotifications.clear_0(); }, destroyImpl_2: function (a, b) { this.initialized && (this.stop_0(), (this.initialized = !1), null != this.frameratelistener && (this.timer.removeFramerateListener_1(this.frameratelistener), (this.frameratelistener = null)), this.startNotifications.removeAllElements_0(), this.finishNotifications.removeAllElements_0(), this.animationEventNotifications.removeAllElements_0(), this.viewers.removeAllElements_0(), this.addedAnimations.removeAllElements_0(), null != this.addedAnimations && this.addedAnimations.removeAllElements_0(), null != this.animationState && (this.animationState.clearTracks_0(), this.animationState.clearListeners_0(), this.animationState.clearListenerNotifications_0()), (this.textureAtlas = this.jsonObject = null)); GT1198.prototype.destroyImpl_2.call(this, a, b); }, addViewer_1: function (a) { this.viewers.addElement_1(a); }, removeViewer_1: function (a) { this.viewers.removeElement_1(a); }, setHorizontalFlip_1: function (a) { this.horizontalFlip = a; this.requestRepaint_0(); }, setVerticalFlip_1: function (a) { this.verticalFlip = a; this.requestRepaint_0(); }, isHorizontallyFlipped_0: function () { return this.horizontalFlip; }, isVerticallyFlipped_0: function () { return this.verticalFlip; }, setContentX_1: function (a) { this.contentX = a; }, getContentX_0: function () { return this.contentX; }, setContentY_1: function (a) { this.contentY = a; }, getContentY_0: function () { return this.contentY; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleY_1: function (a) { this.scaleY = a; }, getScaleY_0: function () { return this.scaleY; }, setAlpha_1: function (a) { this.alpha != a && ((this.alpha = a), (this.openGLAlpha = a / 255), this.requestRepaint_0()); }, getAlpha_0: function () { return this.alpha; }, getOpenGLAlpha_0: function () { return this.openGLAlpha; }, preFrameUpdate_1: function (a) {}, updateSkeletonWorldTransform_1: function (a) { this.skeleton.updateWorldTransform_0(); }, update_0: function () { if (this.started && null != this.animationState && null != this.skeleton) { var a = this.timer.currentTimeMillis_0(); 0 >= this.lastUpdateTime && (this.lastUpdateTime = a); var b = this.paused ? 0 : 0.001 * (a - this.lastUpdateTime); this.lastUpdateTime = a; this.preFrameUpdate_1(b); this.animationState.update_1(b); if (this.animationState.apply_1(this.skeleton)) for (this.updateSkeletonWorldTransform_1(b), this.requestRepaint_0(), a = 0; a < this.viewers.size_0(); ++a) null != this.viewers.elementAt_1(a) && ((b = this.viewers.elementAt_1(a)), b.isAlive_0() && b.requestRepaint_0()); } }, canRenderer_0: function () { return this.started && null != this.animationState && null != this.skeleton; }, getSkeleton_0: function () { return this.skeleton; }, }, "GT1359", [GT1480] ), GT638 = Class.extend( { initialConstructor_0: function () { this.player = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.player = null; this.player = a; }, run_0: function () { this.player.update_0(); }, }, "GT638", [Runnable] ), GT1056 = Class.extend( { initialConstructor_0: function () { this.trackIndex = 0; this.animationName = null; this.looped = !1; this.delay = this.mixDuration = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.trackIndex = 0; this.animationName = null; this.looped = !1; this.delay = this.mixDuration = 0; this.trackIndex = a; this.animationName = b; this.looped = d; this.delay = e; this.mixDuration = f; }, }, "GT1056", [] ), GT390 = Class.extend( { initialConstructor_0: function () { this.timer = this.animationEventNotifications = this.finishNotifications = this.startNotifications = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.timer = this.animationEventNotifications = this.finishNotifications = this.startNotifications = null; this.timer = a; this.startNotifications = b; this.finishNotifications = d; this.animationEventNotifications = e; }, start_1: function (a) { for (var b = 0; b < this.startNotifications.size_0(); b++) { var d = this.startNotifications.elementAt_1(b); this.isDesiredListener_4(a.getTrackIndex_0(), a.toString(), null, d) && (d.setTriggeredEventData_2(a, null), this.timer.triggerCallbackAfter_2(d, 0)); } }, complete_1: function (a) { for (var b = 0; b < this.finishNotifications.size_0(); b++) { var d = this.finishNotifications.elementAt_1(b); this.isDesiredListener_4(a.getTrackIndex_0(), a.toString(), null, d) && (d.setTriggeredEventData_2(a, null), this.timer.triggerCallbackAfter_2(d, 0)); } }, event_2: function (a, b) { for (var d = 0; d < this.animationEventNotifications.size_0(); d++) { var e = this.animationEventNotifications.elementAt_1(d); this.isDesiredListener_4(a.getTrackIndex_0(), a.toString(), b.getData_0().getName_0(), e) && (e.setTriggeredEventData_2(a, b), this.timer.triggerCallbackAfter_2(e, 0)); } }, interrupt_1: function (a) {}, end_1: function (a) {}, dispose_1: function (a) {}, isDesiredListener_4: function (a, b, d, e) { return (a = (a = (a = 0 > e.getTargetAnimationTrackIndex_0() || e.getTargetAnimationTrackIndex_0() == a) && (null == e.getTargetAnimationName_0() || 0 == e.getTargetAnimationName_0().length_0() || e.getTargetAnimationName_0().equals_1(b))) && (null == d || null == e.getTargetAnimationEventName_0() || 0 == e.getTargetAnimationEventName_0().length_0() || e.getTargetAnimationEventName_0().equals_1(d))); }, }, "GT390", [GT808] ); GT1359.prototype.EMPTY_ANIMATION = "GUISPINEPLAYER_EMPTY_ANIMATION"; var GT1360 = GT1198.extend( { initialConstructor_0: function () { this.player = null; this.openGLAlpha = this.alpha = 0; this.verticalFlip = this.horizontalFlip = !1; this.scaleY = this.scaleX = this.contentY = this.contentX = 0; GT1198.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.player = null; this.openGLAlpha = this.alpha = 0; this.verticalFlip = this.horizontalFlip = !1; this.scaleY = this.scaleX = this.contentY = this.contentX = 0; GT1198.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.initNative_0(); this.player = g; this.alpha = 255; this.openGLAlpha = 1; this.contentX = e / 2; this.contentY = f / 2; this.scaleY = this.scaleX = 1; g.addViewer_1(this); }, getPlayer_0: function () { return null != this.player && this.player.isAlive_0() ? this.player : null; }, setHorizontalFlip_1: function (a) { this.horizontalFlip = a; this.requestRepaint_0(); }, setVerticalFlip_1: function (a) { this.verticalFlip = a; this.requestRepaint_0(); }, isHorizontallyFlipped_0: function () { return this.horizontalFlip; }, isVerticallyFlipped_0: function () { return this.verticalFlip; }, setContentX_1: function (a) { this.contentX = a; }, getContentX_0: function () { return this.contentX; }, setContentY_1: function (a) { this.contentY = a; }, getContentY_0: function () { return this.contentY; }, setScaleX_1: function (a) { this.scaleX = a; }, getScaleX_0: function () { return this.scaleX; }, setScaleY_1: function (a) { this.scaleY = a; }, getScaleY_0: function () { return this.scaleY; }, setAlpha_1: function (a) { this.alpha != a && ((this.alpha = a), (this.openGLAlpha = a / 255), this.requestRepaint_0()); }, getAlpha_0: function () { return this.alpha; }, getOpenGLAlpha_0: function () { return this.openGLAlpha; }, isClippingEnabled_0: function () { return !0; }, destroyImpl_2: function (a, b) { GT1198.prototype.destroyImpl_2.call(this, a, b); null != this.player && (this.player.removeViewer_1(this), (this.player = null)); }, canRenderer_0: function () { return null != this.player ? this.player.canRenderer_0() : !1; }, getSkeleton_0: function () { return null != this.player ? this.player.getSkeleton_0() : null; }, }, "GT1360", [GT1480] ), GT1336 = GT1199.extend( { initialConstructor_0: function () { this.clip = null; this.currentRepetitions = this.repetitions = this.repeatstartpos = 0; this.frameratelistener = this.viewers = this.progressnotifications = this.finishnotifications = this.startnotifications = null; this.endreachedbefore = !1; this.positionbefore = 0; this.verticalFlip = this.horizontalFlip = !1; this.alpha = 0; this.videoFinished = this.triggerStartNotification = this.paused = this.isVideoAnimating = this.running = this.started = this.autoResize = !1; GT1199.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1336.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, 0, 0, 0, 0); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1336.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, !1); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1336.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, !1); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.clip = null; this.currentRepetitions = this.repetitions = this.repeatstartpos = 0; this.frameratelistener = this.viewers = this.progressnotifications = this.finishnotifications = this.startnotifications = null; this.endreachedbefore = !1; this.positionbefore = 0; this.verticalFlip = this.horizontalFlip = !1; this.alpha = 0; this.videoFinished = this.triggerStartNotification = this.paused = this.isVideoAnimating = this.running = this.started = this.autoResize = !1; GT1199.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.clip = g; null != this.clip && this.clip.isStreamMode_0() && this.clip.setStreamInUse_1(!0); this.repeatstartpos = m; this.currentRepetitions = this.repetitions = k; this.startnotifications = new java_util_JavaScriptVector(); this.finishnotifications = new java_util_JavaScriptVector(); this.progressnotifications = new java_util_JavaScriptVector(); this.viewers = new java_util_JavaScriptVector(); this.frameratelistener = null; this.endreachedbefore = !1; this.positionbefore = 0; this.horizontalFlip = this.verticalFlip = !1; this.alpha = 255; this.autoResize = n; this.isVideoAnimating = this.running = this.paused = this.started = !1; this.init_0(); }, getClip_0: function () { return this.clip; }, setRepetitions_1: function (a) { GT1650.prototype.assertExp_2(0 <= this.repetitions, "Number of repetitions is not valid."); this.repetitions = a; }, resetRepetitions_0: function () { this.currentRepetitions = this.isVideoAnimating ? this.repetitions + 1 : this.repetitions; this.setVideoFinished_1(!1); }, addStartNotification_1: function (a) { null != a && this.startnotifications.addElement_1(a); }, removeStartNotification_1: function (a) { this.startnotifications.removeElement_1(a); }, removeAllStartNotifications_0: function () { this.startnotifications.clear_0(); }, addFinishNotification_1: function (a) { null != a && this.finishnotifications.addElement_1(a); }, removeFinishNotification_1: function (a) { this.finishnotifications.removeElement_1(a); }, removeAllFinishNotifications_0: function () { this.finishnotifications.clear_0(); }, addProgressNotification_2: function (a, b) { null != b && this.progressnotifications.addElement_1(new GT490(a, b)); }, removeProgressNotification_1: function (a) { for (var b = 0; b < this.progressnotifications.size_0(); ++b) { var d = this.progressnotifications.get_1(b); null != d && d.runnable == a && (this.progressnotifications.removeElement_1(d), b--); } }, removeAllProgressNotifications_0: function () { this.progressnotifications.clear_0(); }, start_1: function (a) { this.start_0(); }, start_0: function () { !this.isAlive_0() || (this.started && this.isVideoAnimating) || (GT1650.prototype.assertExp_2(!(this.clip.isLazyLoading_0() && !this.clip.isLoaded_0()), "Lazy loading video: " + this.clip.getFilename_0() + " must be loaded before playing."), (this.currentRepetitions = this.repetitions), this.started || this.clip.increaseUsersCount_0(), (this.started = !0), (this.paused = !1), (this.triggerStartNotification = !0), this.setVideoFinished_1(!1), GT1199.prototype.start_0.call(this), null != this.frameratelistener && this.clip.getTimer_0().removeFramerateListener_1(this.frameratelistener), (this.frameratelistener = new GT639(this)), this.clip.getTimer_0().addFramerateListener_1(this.frameratelistener)); }, stop_0: function () { this.started && null != this.clip && this.clip.decreaseUsersCount_0(); this.isVideoAnimating = this.running = this.paused = this.started = !1; GT1199.prototype.stop_0.call(this); null != this.frameratelistener && (this.clip.getTimer_0().removeFramerateListener_1(this.frameratelistener), (this.frameratelistener = null)); this.endreachedbefore = !1; this.positionbefore = 0; this.requestRepaint_0(); for (var a = 0; a < this.viewers.size_0(); a++) this.viewers.elementAt_1(a).requestRepaint_0(); this.currentRepetitions = this.repetitions; }, reset_0: function () { this.reset_1(!1); }, reset_1: function (a) { this.currentRepetitions = this.repetitions; if (!this.isVideoAnimating && !this.started && (this.start_0(), a)) return; this.endreachedbefore = !0; this.positionbefore = 0; GT1199.prototype.stop_0.call(this); GT1199.prototype.start_0.call(this); null != this.frameratelistener && this.clip.getTimer_0().removeFramerateListener_1(this.frameratelistener); a ? ((this.frameratelistener = new GT639(this)), this.clip.getTimer_0().addFramerateListener_1(this.frameratelistener), (this.started = this.isVideoAnimating = !0), this.setVideoFinished_1(!1)) : (this.setVideoFinished_1(!0), this.nextframe_0(), (this.isVideoAnimating = !1), (this.started = !0)); this.paused = !1; this.requestRepaint_0(); for (a = 0; a < this.viewers.size_0(); a++) this.viewers.elementAt_1(a).requestRepaint_0(); }, prepareSeek_1: function (a) { GT1199.prototype.prepareSeek_1.call(this, a); }, seek_1: function (a) { this.started && (this.setVideoFinished_1(!1), GT1199.prototype.seek_1.call(this, a)); }, pause_0: function () { this.started && !this.paused && ((this.paused = !0), GT1199.prototype.pause_0.call(this)); }, resume_0: function () { this.started && this.paused && ((this.paused = !1), GT1199.prototype.resume_0.call(this)); }, resize_2: function (a, b) { if (this.width != a || this.height != b) this.requestRepaint_0(), (this.width = a), (this.height = b), GT1199.prototype.resize_2.call(this, a, b), this.requestRepaint_0(); }, setAlpha_1: function (a) { this.alpha != a && ((this.alpha = a), GT1199.prototype.setAlpha_1.call(this, a), this.requestRepaint_0()); }, getAlpha_0: function () { return this.alpha; }, setHorizontalFlip_1: function (a) { this.horizontalFlip = a; GT1199.prototype.setHorizontalFlip_1.call(this, a); this.requestRepaint_0(); }, setVerticalFlip_1: function (a) { this.verticalFlip = a; GT1199.prototype.setVerticalFlip_1.call(this, a); this.requestRepaint_0(); }, isHorizontallyFlipped_0: function () { return this.horizontalFlip; }, isVerticallyFlipped_0: function () { return this.verticalFlip; }, destroyImpl_2: function (a, b) { this.stop_0(); null != this.clip && this.clip.isStreamMode_0() && this.clip.setStreamInUse_1(!1); this.startnotifications.clear_0(); this.finishnotifications.clear_0(); this.viewers.clear_0(); GT1199.prototype.destroyImpl_2.call(this, a, b); }, addViewer_1: function (a) { this.viewers.addElement_1(a); }, removeViewer_1: function (a) { this.viewers.removeElement_1(a); }, setVideoFinished_1: function (a) { this.videoFinished = a; GT1199.prototype.setVideoFinished_1.call(this, a); }, nextframe_0: function () { if (this.started && this.canProceedNextFrame_0()) { this.triggerStartNotification && ((this.running = this.isVideoAnimating = !0), this.handleFirstRun_0()); var a = this.endReached_0(), b = !this.endreachedbefore && a; this.endreachedbefore = a; if (this.isFrameChanged_1(this.triggerStartNotification)) for (this.handleFrameChange_0(), this.requestRepaint_0(), a = 0; a < this.viewers.size_0(); a++) this.viewers.elementAt_1(a).requestRepaint_0(); else (a = this.getCurrentPlayheadPosition_0()), a == this.positionbefore && this.isVideoAnimating && this.started && !this.triggerStartNotification && (this.isVideoAnimating = !1); this.triggerStartNotification && this.autoResize && -1 < this.getCurrentFrameWidth_0() && this.resize_2(this.getCurrentFrameWidth_0(), this.getCurrentFrameHeight_0()); a = this.videoFinished; b && (1 != this.currentRepetitions ? (0 < this.currentRepetitions && this.currentRepetitions--, (this.endreachedbefore = !1), this.seek_1(this.repeatstartpos)) : this.setVideoFinished_1(!0)); if (!a) { if (this.triggerStartNotification) for (this.triggerStartNotification = !1, a = 0; a < this.startnotifications.size_0(); a++) this.clip.getTimer_0().triggerCallbackAfter_2(this.startnotifications.elementAt_1(a), 0); if (b) for (a = 0; a < this.finishnotifications.size_0(); a++) this.clip.getTimer_0().triggerCallbackAfter_2(this.finishnotifications.elementAt_1(a), 0); a = this.getCurrentPlayheadPosition_0(); a > this.positionbefore && this.triggerprogresslisteners_2(this.positionbefore, a); this.positionbefore = a; } } }, triggerprogresslisteners_2: function (a, b) { for (var d = 0; d < this.progressnotifications.size_0(); d++) { var e = this.progressnotifications.elementAt_1(d), f = e.millis; f > a && f <= b && this.clip.getTimer_0().triggerCallbackAfter_2(e.runnable, 0); } }, }, "GT1336", [GT1480, GT1525] ), GT639 = Class.extend( { initialConstructor_0: function () { this.player = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.player = null; this.player = a; }, run_0: function () { this.player.nextframe_0(); }, }, "GT639", [Runnable] ), GT490 = Class.extend( { initialConstructor_0: function () { this.millis = 0; this.runnable = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.millis = 0; this.runnable = null; this.millis = a; this.runnable = b; }, }, "GT490", [] ), GT1352 = GT1200.extend( { initialConstructor_0: function () { this.player = null; this.alpha = 0; this.verticalFlip = this.horizontalFlip = !1; GT1200.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1352.prototype.initialConstructor_6.call(this, a, b, d, e.getWidth_0(), e.getHeight_0(), e); }, initialConstructor_6: function (a, b, d, e, f, g) { this.player = null; this.alpha = 0; this.verticalFlip = this.horizontalFlip = !1; GT1200.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); this.player = g; this.alpha = 255; this.verticalFlip = this.horizontalFlip = !1; g.addViewer_1(this); }, destroyImpl_2: function (a, b) { GT1200.prototype.destroyImpl_2.call(this, a, b); this.player.removeViewer_1(this); }, getPlayer_0: function () { return null != this.player && this.player.isAlive_0() ? this.player : null; }, setHorizontalFlip_1: function (a) { this.horizontalFlip = a; GT1200.prototype.setHorizontalFlip_1.call(this, a); }, setVerticalFlip_1: function (a) { this.verticalFlip = a; GT1200.prototype.setVerticalFlip_1.call(this, a); }, isHorizontallyFlipped_0: function () { return this.horizontalFlip; }, isVerticallyFlipped_0: function () { return this.verticalFlip; }, setAlpha_1: function (a) { this.alpha != a && ((this.alpha = a), GT1200.prototype.setAlpha_1.call(this, a), this.requestRepaint_0()); }, getAlpha_0: function () { return this.alpha; }, resize_2: function (a, b) { if (this.width != a || this.height != b) this.requestRepaint_0(), (this.width = a), (this.height = b), GT1200.prototype.resize_2.call(this, a, b), this.requestRepaint_0(); }, }, "GT1352", [GT1480, GT1525] ), GT1266 = GT1495.extend( { initialConstructor_0: function () { GT1495.prototype.initialConstructor_0.call(this); this.allsounds = null; this.mastervolume = 0; this.activated = !1; }, initialConstructor_2: function (a, b) { GT1495.prototype.initialConstructor_1.call(this, a); this.mastervolume = 1; this.allsounds = new java_util_JavaScriptVector(); this.activated = b; FGLOOP = 0; }, startImpl_6: function (a, b, d, e, f, g) { this.allsounds.contains_1(a) || this.allsounds.addElement_1(a); var k = this.activated ? this.mastervolume : 0; a.volume = -1; a.mastervolume = k; d = Math.min(d, a.getLength_0()); a.start_6(b, d, e, f / 100, k, g); }, stopImpl_2: function (a, b) { if (null == a) throw new NullPointerException("sound is null"); a.stop_1(b); this.allsounds.contains_1(a) && this.allsounds.removeElement_1(a); }, setVolume_2: function (a, b) { if (null == a) throw new NullPointerException("sound is null"); a.setVolume_1(b / 100); }, setMasterVolume_1: function (a) { GT1650.prototype.assertExp_2(0 <= a && 1 >= a, "value not between 0 and 1"); this.mastervolume = a; if (this.activated) { for (a = 0; a < this.allsounds.size_0(); a++) this.allsounds.elementAt_1(a).setMasterVolume_1(this.mastervolume); this.notifyActiveStateListeners_0(); } }, setPanning_2: function (a, b) { if (null == a) throw new NullPointerException("sound is null"); a.setPanning_1(b); }, isActive_0: function () { return this.activated; }, setActive_1: function (a) { var b = a ? this.mastervolume : 0; if (this.activated != a) { this.activated = a; for (a = 0; a < this.allsounds.size_0(); a++) this.allsounds.elementAt_1(a).setMasterVolume_1(b); this.notifyActiveStateListeners_0(); } }, getMasterVolume_0: function () { return this.mastervolume; }, }, "GT1266", [] ); GT1495.prototype.STARTSOUNDTIMEOUT = null; var GT906 = GT1244.extend( { initialConstructor_0: function () { GT1244.prototype.initialConstructor_0.call(this); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { GT1244.prototype.initialConstructor_5.call(this, a, d, e, f, g); }, _createDisplayObject: function () { this._displayObject = new PIXI.DisplayObjectContainer(); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this._displayObject.scale.x = this.contentScaleX; this._displayObject.scale.y = this.contentScaleY; this._displayObject.parallaxDepth = this.parallaxDepth; this.updateDisplayObjectColorTransformation_1(null); this.hidden || this.setAsDirtyArea_1(this); }, initNative_0: function () { this._sprite = new PIXI.ParticleContainer( this.maxParticlesNumberLimit, this.image.texture, this.textureMipMapping, this.dynamicPosition, this.dynamicScale, this.dynamicRotation, this.dynamicUV, this.dynamicAlpha, this.dynamicColor ); this._sprite.particles = this.getParticles_0(); this._displayObject.addChild(this._sprite); this._sprite.forceFullUpdateStart = 0; this._sprite.clippingEnabled = !0; this.setContainerDirty_0(); }, updateDisplayObjectColorTransformation_1: function (a) { null != this && "1" === CONFIG.webgl && JSUTIL.webGLGlobalShader.updateObjectColorTransformation(this, a, !1); }, setContainerDirty_0: function () { this._sprite && (this._sprite.setAlphaBlendMode(this.getAlphaBlendMode_0()), (this._sprite.isDirty = !0), this.hidden || this.setAsDirtyArea_1(this)); }, destroyImpl_2: function (a, b) { GT1244.prototype.destroyImpl_2.call(this, a, b); this.hidden || this.setAsDirtyArea_1(this); }, }, "GT906", [] ), GT1602 = GT1567.extend( { initialConstructor_0: function () { GT1602.prototype.initialConstructor_8.call(this, 0, 0, 1, 1, 1, 1, 0, 1); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.owner = null; this.a = this.b = this.g = this.r = this.v3 = this.u3 = this.v2 = this.u2 = this.v1 = this.u1 = this.v0 = this.u0 = this.alpha = this.rotation = this.scaleY = this.scaleX = this.anchorY = this.anchorX = this.h = this.w = this.y = this.x = this.id = 0; this.dirty = this.colorDirty = this.sizeDirty = this.uvDirty = this.alphaDirty = this.rotationDirty = this.anchorDirty = this.scaleDirty = this.posDirty = this.forceFullUpdateStart = !1; GT1567.prototype.initialConstructor_3.call(this, null, null, null); this.id = -1; this.owner = null; this.x = a; this.y = b; this.w = d; this.h = e; this.scaleX = f; this.scaleY = g; this.rotation = k; this.alpha = m; this.anchorY = this.anchorX = 0.5; this.setUVs_8(0, 0, 1, 0, 1, 1, 0, 1); this.setColor_4(1, 1, 1, 1); this.forceFullUpdateStart = !1; this.setAllDirtyFlags_0(); }, setOwner_1: function (a) { this.owner = a; }, setId_1: function (a) { this.id = a; }, getId_0: function () { return this.id; }, getX_0: function () { return this.x; }, setX_1: function (a) { a != this.x && ((this.posDirty = !0), this.setDirty_0(), (this.x = a)); }, getY_0: function () { return this.y; }, setY_1: function (a) { a != this.y && ((this.posDirty = !0), this.setDirty_0(), (this.y = a)); }, getAnchorX_0: function () { return this.anchorX; }, setAnchorX_1: function (a) { a != this.anchorX && ((this.anchorDirty = !0), this.setDirty_0(), (this.anchorX = a)); }, getAnchorY_0: function () { return this.anchorY; }, setAnchorY_1: function (a) { a != this.anchorY && ((this.anchorDirty = !0), this.setDirty_0(), (this.anchorY = a)); }, getWidth_0: function () { return this.w; }, setWidth_1: function (a) { a != this.w && ((this.sizeDirty = !0), this.setDirty_0(), (this.w = a)); }, getHeight_0: function () { return this.h; }, setHeight_1: function (a) { a != this.h && ((this.sizeDirty = !0), this.setDirty_0(), (this.h = a)); }, getScaleX_0: function () { return this.scaleX; }, setScaleX_1: function (a) { a != this.scaleX && ((this.scaleDirty = !0), this.setDirty_0(), (this.scaleX = a)); }, getScaleY_0: function () { return this.scaleY; }, setScaleY_1: function (a) { a != this.scaleY && ((this.scaleDirty = !0), this.setDirty_0(), (this.scaleY = a)); }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { a != this.rotation && ((this.rotationDirty = !0), this.setDirty_0(), (this.rotation = a)); }, getAlpha_0: function () { return this.alpha; }, setAlpha_1: function (a) { a != this.alpha && ((this.alphaDirty = !0), this.setDirty_0(), (this.alpha = a)); }, getU0_0: function () { return this.u0; }, getV0_0: function () { return this.v0; }, getU1_0: function () { return this.u1; }, getV1_0: function () { return this.v1; }, getU2_0: function () { return this.u2; }, getV2_0: function () { return this.v2; }, getU3_0: function () { return this.u3; }, getV3_0: function () { return this.v3; }, setUVs_8: function (a, b, d, e, f, g, k, m) { this.uvDirty = !0; this.setDirty_0(); this.u0 = a; this.v0 = b; this.u1 = d; this.v1 = e; this.u2 = f; this.v2 = g; this.u3 = k; this.v3 = m; }, setColor_4: function (a, b, d, e) { if (a != this.r || b != this.g || d != this.b || e != this.a) (this.colorDirty = !0), this.setDirty_0(), (this.r = a), (this.g = b), (this.b = d), (this.a = e); }, getColorR_0: function () { return this.r; }, getColorG_0: function () { return this.g; }, getColorB_0: function () { return this.b; }, getColorA_0: function () { return this.a; }, resetPosDirty_0: function () { this.posDirty && (this.posDirty = !1); }, isPosDirty_0: function () { return this.posDirty; }, resetScaleDirty_0: function () { this.scaleDirty && (this.scaleDirty = !1); }, isScaleDirty_0: function () { return this.scaleDirty; }, resetRotationDirty_0: function () { this.rotationDirty && (this.rotationDirty = !1); }, isRotationDirty_0: function () { return this.rotationDirty; }, resetAlphaDirty_0: function () { this.alphaDirty && (this.alphaDirty = !1); }, isAlphaDirty_0: function () { return this.alphaDirty; }, resetUVDirty_0: function () { this.uvDirty && (this.uvDirty = !1); }, isUVDirty_0: function () { return this.uvDirty; }, resetSizeDirty_0: function () { this.sizeDirty && (this.sizeDirty = !1); }, isSizeDirty_0: function () { return this.sizeDirty; }, resetAnchorDirty_0: function () { this.anchorDirty && (this.anchorDirty = !1); }, isAnchorDirty_0: function () { return this.anchorDirty; }, resetColorDirty_0: function () { this.colorDirty && (this.colorDirty = !1); }, isColorDirty_0: function () { return this.colorDirty; }, setDirty_0: function () { this.dirty || ((this.dirty = !0), null != this.owner && this.owner.setContainerDirty_0()); }, setAllDirtyFlags_0: function () { this.dirty = this.colorDirty = this.sizeDirty = this.uvDirty = this.alphaDirty = this.rotationDirty = this.scaleDirty = this.anchorDirty = this.posDirty = !0; }, resetDirty_0: function () { this.dirty && (this.dirty = !1); }, isDirty_0: function () { return this.dirty; }, setNextElementForceFullUpdateStart_0: function () { null != this.getNextElement_0() && (this.getNextElement_0().setForceFullUpdateStart_1(!0), this.getNextElement_0().setDirty_0()); }, setForceFullUpdateStart_1: function (a) { (this.forceFullUpdateStart = a) && this.setDirty_0(); }, isForceFullUpdateStart_0: function () { return this.forceFullUpdateStart; }, }, "GT1602", [] ), GT1358 = GT1028.extend( { initialConstructor_5: function (a, b, d, e, f) { GT1028.prototype.initialConstructor_2.call(this, b, d); this.codeBase = a; this.timer = e; this.syncObject = f; this.fastImageLoading = this.resourceThreadRunning = !1; this.resourcesToBeLoaded = new java_util_JavaScriptHashtable(); this.resourcesAlreadyLoaded = new java_util_JavaScriptHashtable(); this.lastCount = 0; }, setFastImageLoading_1: function (a) { this.fastImageLoading = a; }, setAlternateImageSources_1: function (a) { this.alternateImageSources = a; }, getNumberOfResourcesToBeLoaded_0: function () { return this.resourcesToBeLoaded.size_0(); }, setListener_1: function (a) { this.listener = a; }, setSoundPlayer_1: function (a) { this.soundPlayer = a; }, getSoundPlayer_0: function () { return this.soundPlayer; }, startLoadTextDocument_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); var b = this.findExistingResource_1(a); null == b && ((b = new GT1453()), this.resourcesToBeLoaded.put_2(a, b), this.triggerResourceLoading_0()); return b; }, startLoadJSONObject_1: function (a) { a = this.createPackageAbsoluteFilename_1(a); var b = this.findExistingResource_1(a); null == b && ((b = new GT1539()), this.resourcesToBeLoaded.put_2(a, b), this.triggerResourceLoading_0()); return b; }, startLoadImage_4: function (a, b, d, e) { return this.startLoadImage_6(a, b, d, e, -1, -1); }, startLoadImage_6: function (a, b, d, e, f, g) { return this.startLoadImage_7(a, b, d, e, f, g, !1); }, startLoadImage_7: function (a, b, d, e, f, g, k) { var m = a; if (null == a || "" == a) return (e = new GT1637(1, 1)), e.setLazyLoading_1(k), e.setResourceManager_1(this), (e.javafilename = m), e; a.substring_2(a.lastIndexOf_1("/") + 1, a.length - 4); !0 === e && (a = a.replace(".jpg", ".png")); CONFIG.get("webp") && ((a = a.replace(".jpg", ".jpg.webp")), (a = a.replace(".png", ".png.webp"))); a = this.createPackageAbsoluteFilename_1(a); e = this.findExistingResource_1(a); if (null == e) (e = new Image()), (e = new GT1637(e)), e.setLazyLoading_1(k), e.setResourceManager_1(this), (e.numcolumns = b), (e.numrows = d), 0 < f && ((e.columnwidth = f), (e.overridewidth = !0)), 0 < g && ((e.rowheight = g), (e.overrideheight = !0)), (e.javafilename = m), !0 === k && this.resourcesAlreadyLoaded.put_2(a, e); else if ((!0 !== k && !e.isLazyLoading_0()) || e.isLoadingTriggered_0()) return e; !0 === k || (e.isLazyLoading_0() && e.isLoadingTriggered_0()) || (this.resourcesToBeLoaded.put_2(a, e), this.triggerResourceLoading_0()); return e; }, startLoadSound_2: function (a, b) { if (null == a || 0 == a.length_0()) return this.createSoundObject_0(); var d = this.createPackageAbsoluteFilename_1(a), e = this.findExistingResource_1(d); if (null != e) return b || !e.isLazyLoading_0() || e.isLoadingTriggered_0() || (this.resourcesToBeLoaded.put_2(d, e), this.triggerResourceLoading_0()), e; null == e && ((e = this.createSoundObject_0()), e.setResourceManager_1(this), (e.javafilename = a), JSUTIL.soundlazyloadingPossible() && b ? (e.setLazyLoading_1(!0), this.resourcesAlreadyLoaded.put_2(d, e)) : (this.resourcesToBeLoaded.put_2(d, e), this.triggerResourceLoading_0())); return e; }, startLoadSound_1: function (a) { return this.startLoadSound_2(a, !1); }, createSoundObject_0: function () { if (1 == JSUTIL.getParameter("slotparkaudio") || JSUTIL.noaudio()) return new GT1377(); if (JSUTIL.webaudio()) return new GT1401(); }, startLoadVideoClip_1: function (a) { return this.startLoadVideoClip_2(a, !1); }, startLoadVideoClip_2: function (a, b) { return this.startLoadVideoClip_3(a, b, !1); }, startLoadVideoClip_3: function (a, b, d) { var e = JSUTIL.getReplacedVideoName(this.createPackageAbsoluteFilename_1(a)), f = this.findExistingResource_1(e); if (null != f && instanceOf(f, GT1564)) return f; d = new GT1564(e, this.getGraphicsToolkit_0(), this.timer, this.syncObject, new Image(), d); d.setLazyLoading_1(b); d.setResourceManager_1(this); d.javafilename = a; d.setSoundPlayer_1(this.getSoundPlayer_0()); this.resourcesToBeLoaded.put_2(e, d); this.triggerResourceLoading_0(); return d; }, startLoadFont_3: function (a, b, d) { b = a + (b ? "+" : "-") + (d ? "+" : "-"); a = new GT1492(a, 20, !1, !1); null == this.findExistingResource_1(b.toString()) && (this.resourcesToBeLoaded.put_2(b.toString(), a), this.triggerResourceLoading_0()); }, findExistingResource_1: function (a) { var b = this.resourcesToBeLoaded.get_1(a); null == b && (b = this.resourcesAlreadyLoaded.get_1(a)); return b; }, triggerResourceLoading_0: function () { this.resourceThreadRunning = !0; var a = this.resourcesToBeLoaded.size_0(); this.lastCount = a; var b = this; setTimeout(function () { b.lastCount === a && b.run_0(); }, 100); }, disposeCachedImageVersions_0: function () { if (null != this.resourcesAlreadyLoaded) for (var a = this.resourcesAlreadyLoaded.elements_0(); a.hasMoreElements_0(); ) { var b = a.nextElement_0(); instanceOf(b, GT1637) && b.disposeCachedVersion_0(); } }, cleanup_0: function () { GT1028.prototype.cleanup_0.call(this); this.resourcesToBeLoaded.clear_0(); this.resourcesAlreadyLoaded.clear_0(); this.listener = null; }, buildResourceURL_1: function (a) { if (a.toLowerCase_0().startsWith_1("http")) return a; var b = this.codeBase.path, d = a.length - 4, e = ""; if (a.lastIndexOf_1(".webp") + 1 === d || a.lastIndexOf_1(".png") === d || a.lastIndexOf_1(".jpg") === d) G.isDefined(CONFIG.VIDEO_SCALE) && CONFIG.VIDEOS.hasOwnProperty(a.substring(0, d)) ? (e = "/videos_" + CONFIG.VIDEO_SCALE) : G.isDefined(CONFIG.IMAGE_SCALE) && (e = "/images_" + CONFIG.IMAGE_SCALE); return b.substring_2(0, b.lastIndexOf_1("/")) + e + a; }, run_0: function () { var a = this, b = null, d = null; a.syncObject; if (0 >= a.resourcesToBeLoaded.size_0()) (a.resourceThreadRunning = !1), GT1358.prototype.DEBUGLOADING && a.d_1("return0"); else { for (var b = new java_util_JavaScriptVector(), d = new java_util_JavaScriptVector(), e = a.resourcesToBeLoaded.keys_0(); e.hasMoreElements_0(); ) { var f = e.nextElement_0(); b.addElement_1(f); d.addElement_1(a.resourcesToBeLoaded.get_1(f)); } if (null != b) { for (e = 0; e < b.size_0(); e++) { var g = b.elementAt_1(e), f = d.elementAt_1(e); if (instanceOf(f, GT1492)) { if (0 >= a.resourcesToBeLoaded.size_0()) { a.resourceThreadRunning = !1; GT1358.prototype.DEBUGLOADING && a.d_1("return2"); return; } 0 == CONFIG.get("webfonts") || (null != CONFIG.skin && 0 <= CONFIG.skin.indexOf("chinese")) || ("1" != JSUTIL.getParameter("vectortext") && (0 <= g.indexOf("arial") || 0 <= g.indexOf("times") || 0 <= g.indexOf("verdana") || 0 <= g.indexOf("courier") || 0 <= g.indexOf("georgia"))) ? (a.resourcesToBeLoaded.remove_1(b.elementAt_1(e)), a.setResourceAsLoaded_2(g, f)) : (function (d, e, f, g) { var k = "+" == d.substr(d.length - 2, 1), m = "+" == d.substr(d.length - 1, 1); g = d.substr(0, d.length - 2); k && (g += "_bold"); m && k && (g += "italic"); m && !k && (g += "_italic"); "1" != JSUTIL.getParameter("vectortext") ? (function (d, e, f, g, k) { var m = a.buildResourceURL_1("/JavascriptFonts/Font_" + e.replace_2(" ", "_") + ".otf"); k.src = m; k.fontFamily = e; k.onload = function () { a.resourcesToBeLoaded.remove_1(b.elementAt_1(g)); a.setResourceAsLoaded_2(d, f); }; k.onerror = function () { GT1650.prototype.log_1("not possible to load: " + e + " - use some fallback instead"); a.resourcesToBeLoaded.remove_1(b.elementAt_1(g)); a.setResourceAsLoaded_2(d, f); }; })(d, g, e, f, new Font()) : ((g = a.buildResourceURL_1("/JavascriptFonts/Font_" + g.replace_2(" ", "_") + ".otf")), opentype.load(g, function (g, n) { g ? console.error("Could not load font: " + g) : (JSUTIL.addOpenTypeCustomFont(n, e.name, k, m), a.resourcesToBeLoaded.remove_1(b.elementAt_1(f)), a.setResourceAsLoaded_2(d, e)); })); })(g, f, e, "1" === JSUTIL.getParameter("vectortext") ? null : new Font()); } } for (e = 0; e < b.size_0(); e++) (g = b.elementAt_1(e)), (f = d.elementAt_1(e)), instanceOf(f, GT1453) && (GT1358.prototype.DEBUGLOADING && a.d_1("loading txt '" + g + "'"), (function (d, e, g) { 0 <= d.indexOf("zones") ? a.setResourceAsLoaded_2(d, e) : G.get(a.buildResourceURL_1(d)).then( function (b) { e.loadFromStream_1(b); a.setResourceAsLoaded_2(d, e); }, function () { a.resourcesToBeLoaded.remove_1(b.elementAt_1(g)); a.notifyResourceLoadingFailed_2(d, f); } ); })(g, f, e)); for (e = 0; e < b.size_0(); e++) (g = b.elementAt_1(e)), (f = d.elementAt_1(e)), instanceOf(f, GT1539) && (GT1358.prototype.DEBUGLOADING && a.d_1("loading json '" + g + "'"), (function (d, e, k) { G.get(a.buildResourceURL_1(g)).then( function (b) { b = GT1678.prototype.deserializeObject_1(b); e.setData_1(b); a.setResourceAsLoaded_2(d, e); }, function () { a.resourcesToBeLoaded.remove_1(b.elementAt_1(k)); a.notifyResourceLoadingFailed_2(d, f); } ); })(g, f, e)); for (e = 0; e < b.size_0(); e++) { var k = b.elementAt_1(e), f = d.elementAt_1(e); if (instanceOf(f, GT1637)) { GT1358.prototype.DEBUGLOADING && a.d_1("loading image '" + k + "'"); var m = []; m[0] = this.buildResourceURL_1(k); var n = new PIXI.AssetLoader(m, null != JSUTIL.getBasedir() && 0 < JSUTIL.getBasedir().length && 0 > JSUTIL.getBasedir().indexOf(location.origin)); (function (d, e, g) { n.onComplete = function () { e.setBitmapData_2(null, a.buildResourceURL_1(d)); a.setResourceAsLoaded_2(d, e); }; n.onLoadingFailed = function () { a.resourcesToBeLoaded.remove_1(b.elementAt_1(g)); a.notifyResourceLoadingFailed_2(d, f); }; n.load(); })(k, f, e); if (0 >= a.resourcesToBeLoaded.size_0()) { a.resourceThreadRunning = !1; return; } } } for (e = 0; e < b.size_0(); e++) (g = b.elementAt_1(e)), (f = d.elementAt_1(e)), instanceOf(f, GT1638) && (f.load_1(a.buildResourceURL_1(g)), JSUTIL.soundlazyloadingPossible() ? (function (d, e, f) { CONFIG.SOUNDPLAYER.loadFile( d, function () { e.isLoaded = !0; a.setResourceAsLoaded_2(d, e); }, function () { a.resourcesToBeLoaded.remove_1(b.elementAt_1(f)); a.notifyResourceLoadingFailed_2(d, e); } ); })(g, f, e) : a.setResourceAsLoaded_2(g, f)); for (e = 0; e < b.size_0(); e++) if (((k = b.elementAt_1(e)), (f = d.elementAt_1(e)), instanceOf(f, GT1564))) { GT1358.prototype.DEBUGLOADING && a.d_1("loading video '" + k + "'"); if (0 >= a.resourcesToBeLoaded.size_0()) { a.resourceThreadRunning = !1; break; } f.scopeobject = a; f.processingelement = b.elementAt_1(e); if ("filmstrip" === f.video_format) { m = []; if (G.isDefined(f.atlases) && !0 !== f.streamMode) for (var p = this.buildResourceURL_1(k), q = 0; q < f.atlases; q++) { var r = p.substr(0, p.lastIndexOf(".")) + "." + ("0000" + (q + 1)).slice(-4) + p.substr(p.lastIndexOf("."), p.length - p.lastIndexOf(".")); CONFIG.get("webp") ? (m[q] = r.replace(".jpg", ".jpg.webp.json").replace(".png", ".png.webp.json")) : (m[q] = r.replace(".jpg", ".json").replace(".png", ".json")); } else CONFIG.get("webp") ? (m[0] = this.buildResourceURL_1(k).replace(".jpg", ".jpg.webp.json").replace(".png", ".png.webp.json")) : (m[0] = this.buildResourceURL_1(k).replace(".jpg", ".json").replace(".png", ".json")); f.jsontoload = m; } f.init(); !0 === f.lazyloading ? (a.resourcesToBeLoaded.remove_1(k), a.resourcesAlreadyLoaded.put_2(k, f), null != a.listener && a.listener.resourceLoaded_3(k, a.resourcesToBeLoaded.size_0() + a.resourcesAlreadyLoaded.size_0(), a.resourcesAlreadyLoaded.size_0())) : "1" === JSUTIL.getParameter("videoondemand") && a.setResourceAsLoaded_2(k, f); } } } }, setResourceAsLoaded_2: function (a, b) { this.resourcesToBeLoaded.remove_1(a); this.resourcesAlreadyLoaded.put_2(a, b); this.notifyResourceLoaded_4(a, b, this.resourcesToBeLoaded.size_0() + this.resourcesAlreadyLoaded.size_0(), this.resourcesAlreadyLoaded.size_0()); }, notifyResourceLoaded_4: function (a, b, d, e) { var f = !1; instanceOf(b, GT1635) && b.isLazyLoading_0() && (f = !0); var g = null; if (instanceOf(b, GT1637) || instanceOf(b, GT1564) || instanceOf(b, GT1401)) g = b.getAssetLoadingListeners_0(); if (null != g) { for (var k = g.size_0(), m = 0; m < k; ++m) { var n = g.elementAt_1(m); null != n && n.resourceLoaded_3(b.javafilename, d, e); } g.clear_0(); } f || null == this.listener || this.listener.resourceLoaded_3(a, d, e); }, notifyResourceLoadingFailed_2: function (a, b) { GT1650.prototype.println_1("failed " + a); var d = !1; instanceOf(b, GT1635) && b.isLazyLoading_0() && (d = !0); if (d) { d = null; if (instanceOf(b, GT1637) || instanceOf(b, GT1564)) d = b.getAssetLoadingListeners_0(); if (null != d) { for (var e = d.size_0(), f = 0; f < e; ++f) { var g = d.elementAt_1(f); null != g && g.loadingFailed_3(b.javafilename, this.resourcesToBeLoaded.size_0() + this.resourcesAlreadyLoaded.size_0(), this.resourcesAlreadyLoaded.size_0()); } d.clear_0(); } } else null != this.listener && this.listener.loadingFailed_3(a, this.resourcesToBeLoaded.size_0() + this.resourcesAlreadyLoaded.size_0(), this.resourcesAlreadyLoaded.size_0()); }, getBestCommonBaseURL_2: function (a, b) { if (1 > a.size_0()) return ""; var d = a.elementAt_1(0), e = d.lastIndexOf_1("/"); if (0 > e) return ""; for (var d = d.substring_2(0, e + 1), f = this.estimateItemsInZIPRequest_3(a, d, b); ; ) { e = d.substring_2(0, d.length_0() - 1).lastIndexOf_1("/"); if (10 > e) break; var e = d.substring_2(0, e), g = this.estimateItemsInZIPRequest_3(a, e, b); if (g > f) (d = e), (f = g); else break; } return d; }, estimateItemsInZIPRequest_3: function (a, b, d) { for (var e = 0, f = b.length_0() + 1, g = 0; g < a.size_0(); g++) { var k = a.elementAt_1(g); if (k.startsWith_1(b)) { f = f + k.length_0() - b.length_0() + 1; if (f > d) break; e++; } } return e; }, d_1: function (a) { var b = java_lang_System.prototype.currentTimeMillis_0(), d = 0; 0 < this.lastTime && (d = b - this.lastTime); GT1650.prototype.println_1("[" + (b - this.startTime) + "ms" + (0 < d ? "(" + d + ")" : "") + "]\t" + a.toString()); this.lastTime = b; }, }, "GT1358", [GT1275, Runnable] ); GT1358.prototype.DEBUGLOADING = !1; GT1358.prototype.checkFileNameForCase_1 = function (a) { var b = a.indexOf_1(".jar!"); 0 < b && (a = a.substring_2(0, b + 4)); a.startsWith_1("file:/") && (a = a.substring_2(6, a.length_0())); a = new java_io_File(a); a.exists_0(); a.getParentFile_0().listFiles_0(); }; var GT537 = GT787.extend( { initialConstructor_0: function () { this.offsetY = this.offsetX = 0; this.offsetModified = !1; this.indentY = this.indentX = 0; this.indentModified = !1; this.indentEvenRows = 0; this.indentEvenRowsSet = !1; this.elementsinrow = 0; this.elementsinrowSet = !1; this.dscrollbar = null; this.autoscrolltobottomSet = this.autoscrolltobottom = this.selectableSet = this.selectable = !1; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.indentX = this.offsetY = this.offsetX = 0; this.indentY = 100; this.indentEvenRows = 0; this.elementsinrow = 1; this.yPos = this.xPos = 0; this.dscrollbar = null; this.autoscrolltobottom = this.selectable = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, indent_2: function (a, b) { this.indentX = a; this.indentY = b; this.indentModified = !0; return this; }, offset_2: function (a, b) { this.offsetX = a; this.offsetY = b; this.offsetModified = !0; return this; }, indentToEvenRows_1: function (a) { this.indentEvenRows = a; this.indentEvenRowsSet = !0; return this; }, columns_1: function (a) { this.elementsinrow = a; this.elementsinrowSet = !0; return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, scrollBar_1: function (a) { this.dscrollbar = a; return this; }, itemsSelectable_1: function (a) { this.selectable = a; this.selectableSet = !0; return this; }, autoScrollToBottom_1: function (a) { this.autoscrolltobottom = a; this.autoscrolltobottomSet = !0; return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, load_1: function (a) { GT787.prototype.load_1.call(this, a); this.loadImpl_1(a); null != this.dscrollbar && this.dscrollbar.load_1(a); }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); var f = new GT245(a, this.xPos, this.yPos, d, e, this.offsetX, this.offsetY, this.indentX, this.indentY, this.indentEvenRows, this.elementsinrow); f.setApplicationID_1(this.appId); f.setItemsSelectable_1(this.selectable); f.setAutoScrollToBottom_1(this.autoscrolltobottom); for (var g = 0; g < this.children.size_0(); g++) this.children.elementAt_1(g).create_2(f, b); null != this.dscrollbar && ((d = this.dscrollbar .scrollStep_1(Math.div(e, 5)) .position_2(this.xPos + d, this.yPos) .height_1(e) .create_2(a, b)), f.attachScrollBar_1(d), f.setEventHandler_1(new GT273(b.getEventDispatcher_0(), b.getTimer_0(), f, d))); return f; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT537); GT1650.prototype.assertExp_2(b, "Descriptor is no DScrollableList"); b && (this.modifyDescriptorImpl_1(a), this.offsetModified && ((a.offsetX = this.offsetX), (a.offsetY = this.offsetY)), this.indentModified && ((a.indentX = this.indentX), (a.indentY = this.indentY)), this.indentEvenRowsSet && (a.indentEvenRows = this.indentEvenRows), this.elementsinrowSet && (a.elementsinrow = this.elementsinrow), null != this.dscrollbar && (a.dscrollbar = this.dscrollbar), this.selectableSet && (a.selectable = this.selectable), this.autoscrolltobottomSet && (a.autoscrolltobottom = this.autoscrolltobottom)); }, }, "GT537", [GT1272] ); GT537.prototype.set_0 = function () { return new GT537(); }; var GT1342 = java_io_Reader.extend( { initialConstructor_1: function (a) { java_io_Reader.prototype.initialConstructor_0.call(this); this.inxxx = a; this.buffer = [].createArray(256).init(0); this.bytesconsumed = this.bytesinbuffer = 0; this.encoding = GT1342.prototype.ENCODING_UNKNOWN; this.prevLineEndedWithCR = !1; }, close_0: function () { this.inxxx.close_0(); }, getEncoding_0: function () { return this.encoding; }, read_1: function (a) { return this.read_3(a, 0, a.length); }, read_3: function (a, b, d) { for (b = 0; b < d; b++) { var e = this.read_0(); if (0 > e) return 0 == b ? -1 : b; a[b] = e & 65535; } return d; }, read_0: function () { if (this.bytesconsumed + 10 > this.bytesinbuffer) for ( 0 < this.bytesconsumed && (java_lang_System.prototype.arraycopy_5(this.buffer, this.bytesconsumed, this.buffer, 0, this.bytesinbuffer - this.bytesconsumed), (this.bytesinbuffer -= this.bytesconsumed), (this.bytesconsumed = 0)); 0 < (len = this.inxxx.read_3(this.buffer, this.bytesinbuffer, this.buffer.length - this.bytesinbuffer)); ) this.bytesinbuffer += len; this.encoding == GT1342.prototype.ENCODING_UNKNOWN && (2 <= this.bytesinbuffer && -1 == this.buffer[0] && -2 == this.buffer[1] ? ((this.encoding = GT1342.prototype.ENCODING_UNICODE), (this.bytesconsumed = 2)) : 2 <= this.bytesinbuffer && -2 == this.buffer[0] && -1 == this.buffer[1] ? ((this.encoding = GT1342.prototype.ENCODING_UNICODEBIGENDIAN), (this.bytesconsumed = 2)) : 3 <= this.bytesinbuffer && 239 == (this.buffer[0] & 255) && 187 == (this.buffer[1] & 255) && 191 == (this.buffer[2] & 255) ? ((this.encoding = GT1342.prototype.ENCODING_UTF8), (this.bytesconsumed = 3)) : (this.encoding = GT1342.prototype.ENCODING_ANSI)); switch (this.encoding) { case GT1342.prototype.ENCODING_ANSI: if (this.bytesconsumed < this.bytesinbuffer) { var a = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255; return 128 == a ? "\u20ac" : Integer.truncate_1(a & 255); } break; case GT1342.prototype.ENCODING_UNICODE: if (this.bytesconsumed + 1 < this.bytesinbuffer) { var a = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255, b = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255; return (b << 8) | a; } break; case GT1342.prototype.ENCODING_UNICODEBIGENDIAN: if (this.bytesconsumed + 1 < this.bytesinbuffer) return (a = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255), (b = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255), (a << 8) | b; break; case GT1342.prototype.ENCODING_UTF8: if (this.bytesconsumed < this.bytesinbuffer) { var a = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255, d = (b = 0); 192 == (a & 224) ? ((b = a & 31), (d = 1)) : 224 == (a & 240) ? ((b = a & 15), (d = 2)) : 240 == (a & 248) ? ((b = a & 7), (d = 3)) : 248 == (a & 252) ? ((b = a & 3), (d = 4)) : 252 == (a & 254) ? ((b = a & 1), (d = 5)) : (b = a); for (var e = 0; e < d; e++) this.bytesconsumed < this.bytesinbuffer && ((a = Integer.truncate_1(this.buffer[this.bytesconsumed++]) & 255), (b = (b << 6) | (a & 63))); return b; } } return -1; }, readLine_0: function () { var a = this.read_0(); "\n" == a && this.prevLineEndedWithCR && (a = this.read_0()); if (0 > a) return null; for (var b = new StringBuffer(); "\r" != a && "\n" != a && 0 < a; ) b.append_1(a), (a = this.read_0()); this.prevLineEndedWithCR = "\r" == a; return b.toString(); }, }, "GT1342", [] ); GT1342.prototype.ENCODING_UNKNOWN = 0; GT1342.prototype.ENCODING_ANSI = 1; GT1342.prototype.ENCODING_UNICODE = 2; GT1342.prototype.ENCODING_UNICODEBIGENDIAN = 3; GT1342.prototype.ENCODING_UTF8 = 4; var GT1377 = GT1638.extend( { initialConstructor_0: function () { GT1638.prototype.initialConstructor_0.call(this); this.frameSize = 0; this.decodedFormat = this.data = this.url = null; this.decodedLength = this.bytesPerSecond = 0; this.runningInstances = new java_util_JavaScriptVector(); this.soundId = null; }, getLength_0: function () { return null == this.sound ? 1e3 : 1e3 * (this.sound.end - this.sound.start); }, load_1: function (a) { this.url = a; this.soundFile = this.url.substring_2(this.url.lastIndexOf_1("/") + 1, this.url.lastIndexOf_1(".")); this.sound = CONFIG.SOUNDS[this.soundFile]; return !0; }, start_6: function (a, b, d, e, f, g) { var k = this; 0 === f ? CONFIG.SOUNDPLAYER.mute() : 1 === f && DEVICE.visible().visible && CONFIG.SOUNDPLAYER.unmute(); CONFIG.SOUNDPLAYER.isReady() ? null != this.sound && CONFIG.SOUNDPLAYER.play(this.soundFile, d, b, a, -1 !== d, e, g, function (a) { k.soundId = a; }) : (null !== this.STARTSOUNDTIMEOUT && clearTimeout(this.STARTSOUNDTIMEOUT), -1 !== d && (this.STARTSOUNDTIMEOUT = setTimeout(function () { k.start_6(a, b, d, e, f, g); }, 500))); }, stop_1: function (a) { null !== this.STARTSOUNDTIMEOUT && clearTimeout(this.STARTSOUNDTIMEOUT); this.soundId && "silence" !== this.soundId && CONFIG.SOUNDPLAYER.stop(this.soundId, this.soundFile, -1, a); this.soundId = null; }, setVolume_1: function (a) { CONFIG.SOUNDPLAYER.isReady() && ((this.volume = a), this.soundId && CONFIG.SOUNDPLAYER.volume(this.volume, this.soundId)); }, setMasterVolume_1: function (a) { CONFIG.SOUNDPLAYER.isReady() && ((this.mastervolume = a), 1 == this.mastervolume ? (CONFIG.SOUNDPLAYER.unmute(), this.soundId && CONFIG.SOUNDPLAYER.volume(this.volume, this.soundId)) : 0 === this.mastervolume && CONFIG.SOUNDPLAYER.mute()); }, setPanning_1: function (a) {}, triggerLoading_0: function () { this.triggerLoading_1(null); }, triggerLoading_1: function (a) { GT1650.prototype.assertExp_2(null == a, "SlotparkSound/FlashSound: ResourceManagerListener won't get called because sound is already loaded."); }, isLoadingTriggered_0: function () { return !0; }, isLoaded_0: function () { return !0; }, unload_0: function () {}, toString: function () { return null !== this.url ? this.url.toString() : "Sound.url == null"; }, }, "GT1377", [] ), GT1478 = Class.extend( { initialConstructor_0: function () { this.dest = this.sourcePMA = this.source = 0; this.blenModeName = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.dest = this.sourcePMA = this.source = 0; this.blenModeName = null; this.blenModeName = a; this.source = b; this.sourcePMA = d; this.dest = e; }, getSource_1: function (a) { return a ? this.sourcePMA : this.source; }, getDest_0: function () { return this.dest; }, name_0: function () { return this.blenModeName; }, }, "GT1478", [] ); GT1478.prototype.valueOf_1 = function (a) { for (var b = 0; b < GT1478.prototype.values.length; ++b) if (GT1478.prototype.values[b].blenModeName.equals_1(a)) return GT1478.prototype.values[b]; return null; }; GT1478.prototype.normal = new GT1478("normal", GT1202.prototype.GL_SRC_ALPHA, GT1202.prototype.GL_ONE, GT1202.prototype.GL_ONE_MINUS_SRC_ALPHA); GT1478.prototype.additive = new GT1478("additive", GT1202.prototype.GL_SRC_ALPHA, GT1202.prototype.GL_ONE, GT1202.prototype.GL_ONE); GT1478.prototype.multiply = new GT1478("multiply", GT1202.prototype.GL_DST_COLOR, GT1202.prototype.GL_DST_COLOR, GT1202.prototype.GL_ONE_MINUS_SRC_ALPHA); GT1478.prototype.screen = new GT1478("screen", GT1202.prototype.GL_ONE, GT1202.prototype.GL_ONE, GT1202.prototype.GL_ONE_MINUS_SRC_COLOR); GT1478.prototype.values = [GT1478.prototype.normal, GT1478.prototype.additive, GT1478.prototype.multiply, GT1478.prototype.screen]; var GT1299 = GT1296.extend( { initialConstructor_0: function () { this.slotIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotIndex = 0; this.frames = null; GT1296.prototype.initialConstructor_1.call(this, a); this.frames = [].createArray(a * GT1299.prototype.ENTRIES).init(0); }, getPropertyId_0: function () { return (GT1344.prototype.color << 24) + this.slotIndex; }, setSlotIndex_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: index must be >= 0."); this.slotIndex = a; }, getSlotIndex_0: function () { return this.slotIndex; }, getFrames_0: function () { return this.frames; }, setFrame_6: function (a, b, d, e, f, g) { a *= GT1299.prototype.ENTRIES; this.frames[a] = b; this.frames[a + GT1299.prototype.R] = d; this.frames[a + GT1299.prototype.G] = e; this.frames[a + GT1299.prototype.B] = f; this.frames[a + GT1299.prototype.A] = g; }, apply_7: function (a, b, d, e, f, g, k) { a = a.slots.get_1(this.slotIndex); var m = this.frames; if (d < m[0]) switch (g) { case GT1565.prototype.setup: a.color.set_1(a.data.color); break; case GT1565.prototype.current: (d = a.color), (g = a.data.color), d.add_4((g.getRed_0() - d.getRed_0()) * f, (g.getGreen_0() - d.getGreen_0()) * f, (g.getBlue_0() - d.getBlue_0()) * f, (g.getAlpha_0() - d.getAlpha_0()) * f); } else { var n; if (d >= m[m.length - GT1299.prototype.ENTRIES]) (d = m.length), (b = m[d + GT1299.prototype.PREV_R]), (e = m[d + GT1299.prototype.PREV_G]), (k = m[d + GT1299.prototype.PREV_B]), (n = m[d + GT1299.prototype.PREV_A]); else { var p = GT1496.prototype.binarySearch_3(m, d, GT1299.prototype.ENTRIES); b = m[p + GT1299.prototype.PREV_R]; e = m[p + GT1299.prototype.PREV_G]; k = m[p + GT1299.prototype.PREV_B]; n = m[p + GT1299.prototype.PREV_A]; var q = m[p]; d = this.getCurvePercent_2(Math.div(p, GT1299.prototype.ENTRIES) - 1, 1 - (d - q) / (m[p + GT1299.prototype.PREV_TIME] - q)); b += (m[p + GT1299.prototype.R] - b) * d; e += (m[p + GT1299.prototype.G] - e) * d; k += (m[p + GT1299.prototype.B] - k) * d; n += (m[p + GT1299.prototype.A] - n) * d; } 1 == f ? a.color.set_4(b, e, k, n) : ((d = a.color), g == GT1565.prototype.setup && d.set_1(a.data.color), d.add_4((b - d.getRed_0()) * f, (e - d.getGreen_0()) * f, (k - d.getBlue_0()) * f, (n - d.getAlpha_0()) * f)); } }, }, "GT1299", [] ); GT1299.prototype.ENTRIES = 5; GT1299.prototype.PREV_TIME = -5; GT1299.prototype.PREV_R = -4; GT1299.prototype.PREV_G = -3; GT1299.prototype.PREV_B = -2; GT1299.prototype.PREV_A = -1; GT1299.prototype.R = 1; GT1299.prototype.G = 2; GT1299.prototype.B = 3; GT1299.prototype.A = 4; var GT1201 = GT1089.extend( { initialConstructor_0: function () { this.index = 0; this.name = null; this.originalHeight = this.originalWidth = this.packedHeight = this.packedWidth = this.offsetY = this.offsetX = 0; this.rotate = !1; this.pads = this.splits = null; GT1089.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.index = 0; this.name = null; this.originalHeight = this.originalWidth = this.packedHeight = this.packedWidth = this.offsetY = this.offsetX = 0; this.rotate = !1; this.pads = this.splits = null; GT1089.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.originalWidth = e; this.originalHeight = f; this.packedWidth = e; this.packedHeight = f; }, initialConstructor_1: function (a) { this.index = 0; this.name = null; this.originalHeight = this.originalWidth = this.packedHeight = this.packedWidth = this.offsetY = this.offsetX = 0; this.rotate = !1; this.pads = this.splits = null; GT1089.prototype.initialConstructor_0.call(this); this.setRegion_1(a); this.index = a.index; this.name = a.name; this.offsetX = a.offsetX; this.offsetY = a.offsetY; this.packedWidth = a.packedWidth; this.packedHeight = a.packedHeight; this.originalWidth = a.originalWidth; this.originalHeight = a.originalHeight; this.rotate = a.rotate; this.splits = a.splits; }, flip_2: function (a, b) { GT1089.prototype.flip_2.call(this, a, b); a && (this.offsetX = this.originalWidth - this.offsetX - this.getRotatedPackedWidth_0()); b && (this.offsetY = this.originalHeight - this.offsetY - this.getRotatedPackedHeight_0()); }, getRotatedPackedWidth_0: function () { return this.rotate ? this.packedHeight : this.packedWidth; }, getRotatedPackedHeight_0: function () { return this.rotate ? this.packedWidth : this.packedHeight; }, toString: function () { return this.name; }, }, "GT1201", [] ), GT1404 = Class.extend( { initialConstructor_0: function () { this.val = null; this.val = [].createArray(16).init(0); this.val[GT1404.prototype.M00] = 1; this.val[GT1404.prototype.M11] = 1; this.val[GT1404.prototype.M22] = 1; this.val[GT1404.prototype.M33] = 1; }, initialConstructor_1: function (a) { this.val = null; this.val = [].createArray(16).init(0); this.setMatrix4_1(a); }, initialConstructor_2: function (a, b) { this.val = null; this.val = [].createArray(16).init(0); this.set_1(a); }, initialConstructor_3: function (a, b, d) { this.val = null; this.val = [].createArray(16).init(0); this.setQuaternion_1(a); }, initialConstructor_4: function (a, b, d, e) { this.val = null; this.val = [].createArray(16).init(0); this.set_3(a, b, d); }, setMatrix4_1: function (a) { return this.set_1(a.val); }, set_1: function (a) { java_lang_System.prototype.arraycopy_5(a, 0, this.val, 0, this.val.length); return this; }, setQuaternion_1: function (a) { return this.set_4(a.x, a.y, a.z, a.w); }, set_4: function (a, b, d, e) { return this.set_7(0, 0, 0, a, b, d, e); }, set_2: function (a, b) { return this.set_7(a.x, a.y, a.z, b.x, b.y, b.z, b.w); }, set_7: function (a, b, d, e, f, g, k) { var m = 2 * e, n = 2 * f, p = 2 * g, q = k * m, r = k * n; k *= p; var m = e * m, t = e * n; e *= p; n *= f; f *= p; g *= p; this.val[GT1404.prototype.M00] = 1 - (n + g); this.val[GT1404.prototype.M01] = t - k; this.val[GT1404.prototype.M02] = e + r; this.val[GT1404.prototype.M03] = a; this.val[GT1404.prototype.M10] = t + k; this.val[GT1404.prototype.M11] = 1 - (m + g); this.val[GT1404.prototype.M12] = f - q; this.val[GT1404.prototype.M13] = b; this.val[GT1404.prototype.M20] = e - r; this.val[GT1404.prototype.M21] = f + q; this.val[GT1404.prototype.M22] = 1 - (m + n); this.val[GT1404.prototype.M23] = d; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M33] = 1; return this; }, set_3: function (a, b, d) { return this.set_10(a.x, a.y, a.z, b.x, b.y, b.z, b.w, d.x, d.y, d.z); }, set_10: function (a, b, d, e, f, g, k, m, n, p) { var q = 2 * e, r = 2 * f, t = 2 * g, u = k * q, B = k * r; k *= t; var q = e * q, A = e * r; e *= t; r *= f; f *= t; g *= t; this.val[GT1404.prototype.M00] = m * (1 - (r + g)); this.val[GT1404.prototype.M01] = n * (A - k); this.val[GT1404.prototype.M02] = p * (e + B); this.val[GT1404.prototype.M03] = a; this.val[GT1404.prototype.M10] = m * (A + k); this.val[GT1404.prototype.M11] = n * (1 - (q + g)); this.val[GT1404.prototype.M12] = p * (f - u); this.val[GT1404.prototype.M13] = b; this.val[GT1404.prototype.M20] = m * (e - B); this.val[GT1404.prototype.M21] = n * (f + u); this.val[GT1404.prototype.M22] = p * (1 - (q + r)); this.val[GT1404.prototype.M23] = d; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M33] = 1; return this; }, setVector3s_4: function (a, b, d, e) { this.val[GT1404.prototype.M00] = a.x; this.val[GT1404.prototype.M01] = a.y; this.val[GT1404.prototype.M02] = a.z; this.val[GT1404.prototype.M10] = b.x; this.val[GT1404.prototype.M11] = b.y; this.val[GT1404.prototype.M12] = b.z; this.val[GT1404.prototype.M20] = d.x; this.val[GT1404.prototype.M21] = d.y; this.val[GT1404.prototype.M22] = d.z; this.val[GT1404.prototype.M03] = e.x; this.val[GT1404.prototype.M13] = e.y; this.val[GT1404.prototype.M23] = e.z; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M33] = 1; return this; }, cpy_0: function () { return new GT1404(this); }, trn_1: function (a) { this.val[GT1404.prototype.M03] += a.x; this.val[GT1404.prototype.M13] += a.y; this.val[GT1404.prototype.M23] += a.z; return this; }, trn_3: function (a, b, d) { this.val[GT1404.prototype.M03] += a; this.val[GT1404.prototype.M13] += b; this.val[GT1404.prototype.M23] += d; return this; }, getValues_0: function () { return this.val; }, mul_1: function (a) { this.matrix4_mul_2(this.val, a.val); return this; }, mulLeft_1: function (a) { GT1404.prototype.tmpMat.setMatrix4_1(a); this.matrix4_mul_2(GT1404.prototype.tmpMat.val, this.val); return this.setMatrix4_1(GT1404.prototype.tmpMat); }, tra_0: function () { GT1404.prototype.tmp[GT1404.prototype.M00] = this.val[GT1404.prototype.M00]; GT1404.prototype.tmp[GT1404.prototype.M01] = this.val[GT1404.prototype.M10]; GT1404.prototype.tmp[GT1404.prototype.M02] = this.val[GT1404.prototype.M20]; GT1404.prototype.tmp[GT1404.prototype.M03] = this.val[GT1404.prototype.M30]; GT1404.prototype.tmp[GT1404.prototype.M10] = this.val[GT1404.prototype.M01]; GT1404.prototype.tmp[GT1404.prototype.M11] = this.val[GT1404.prototype.M11]; GT1404.prototype.tmp[GT1404.prototype.M12] = this.val[GT1404.prototype.M21]; GT1404.prototype.tmp[GT1404.prototype.M13] = this.val[GT1404.prototype.M31]; GT1404.prototype.tmp[GT1404.prototype.M20] = this.val[GT1404.prototype.M02]; GT1404.prototype.tmp[GT1404.prototype.M21] = this.val[GT1404.prototype.M12]; GT1404.prototype.tmp[GT1404.prototype.M22] = this.val[GT1404.prototype.M22]; GT1404.prototype.tmp[GT1404.prototype.M23] = this.val[GT1404.prototype.M32]; GT1404.prototype.tmp[GT1404.prototype.M30] = this.val[GT1404.prototype.M03]; GT1404.prototype.tmp[GT1404.prototype.M31] = this.val[GT1404.prototype.M13]; GT1404.prototype.tmp[GT1404.prototype.M32] = this.val[GT1404.prototype.M23]; GT1404.prototype.tmp[GT1404.prototype.M33] = this.val[GT1404.prototype.M33]; return this.set_1(GT1404.prototype.tmp); }, idt_0: function () { this.val[GT1404.prototype.M00] = 1; this.val[GT1404.prototype.M01] = 0; this.val[GT1404.prototype.M02] = 0; this.val[GT1404.prototype.M03] = 0; this.val[GT1404.prototype.M10] = 0; this.val[GT1404.prototype.M11] = 1; this.val[GT1404.prototype.M12] = 0; this.val[GT1404.prototype.M13] = 0; this.val[GT1404.prototype.M20] = 0; this.val[GT1404.prototype.M21] = 0; this.val[GT1404.prototype.M22] = 1; this.val[GT1404.prototype.M23] = 0; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M33] = 1; return this; }, inv_0: function () { var a = this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M03] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M03] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M13] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M13] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33]; 0 == a && GT1650.prototype.assertExp_2(!1, "RuntimeException: non-invertible matrix"); a = 1 / a; GT1404.prototype.tmp[GT1404.prototype.M00] = this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M01] = this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M02] = this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M03] = this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M22] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23]; GT1404.prototype.tmp[GT1404.prototype.M10] = this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M11] = this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M30] + this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M12] = this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M13] = this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M20] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M20] + this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M22] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M22] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M23] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23]; GT1404.prototype.tmp[GT1404.prototype.M20] = this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M30] + this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M21] = this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M23] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M22] = this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M30] + this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M33]; GT1404.prototype.tmp[GT1404.prototype.M23] = this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M20] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M20] - this.val[GT1404.prototype.M03] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M13] * this.val[GT1404.prototype.M21] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M23]; GT1404.prototype.tmp[GT1404.prototype.M30] = this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32]; GT1404.prototype.tmp[GT1404.prototype.M31] = this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M30] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M31] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M32] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32]; GT1404.prototype.tmp[GT1404.prototype.M32] = this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M30] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M31] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M32] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32]; GT1404.prototype.tmp[GT1404.prototype.M33] = this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M20] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M20] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M22] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22]; this.val[GT1404.prototype.M00] = GT1404.prototype.tmp[GT1404.prototype.M00] * a; this.val[GT1404.prototype.M01] = GT1404.prototype.tmp[GT1404.prototype.M01] * a; this.val[GT1404.prototype.M02] = GT1404.prototype.tmp[GT1404.prototype.M02] * a; this.val[GT1404.prototype.M03] = GT1404.prototype.tmp[GT1404.prototype.M03] * a; this.val[GT1404.prototype.M10] = GT1404.prototype.tmp[GT1404.prototype.M10] * a; this.val[GT1404.prototype.M11] = GT1404.prototype.tmp[GT1404.prototype.M11] * a; this.val[GT1404.prototype.M12] = GT1404.prototype.tmp[GT1404.prototype.M12] * a; this.val[GT1404.prototype.M13] = GT1404.prototype.tmp[GT1404.prototype.M13] * a; this.val[GT1404.prototype.M20] = GT1404.prototype.tmp[GT1404.prototype.M20] * a; this.val[GT1404.prototype.M21] = GT1404.prototype.tmp[GT1404.prototype.M21] * a; this.val[GT1404.prototype.M22] = GT1404.prototype.tmp[GT1404.prototype.M22] * a; this.val[GT1404.prototype.M23] = GT1404.prototype.tmp[GT1404.prototype.M23] * a; this.val[GT1404.prototype.M30] = GT1404.prototype.tmp[GT1404.prototype.M30] * a; this.val[GT1404.prototype.M31] = GT1404.prototype.tmp[GT1404.prototype.M31] * a; this.val[GT1404.prototype.M32] = GT1404.prototype.tmp[GT1404.prototype.M32] * a; this.val[GT1404.prototype.M33] = GT1404.prototype.tmp[GT1404.prototype.M33] * a; return this; }, det_0: function () { return ( this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M03] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M03] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M03] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M13] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M13] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M13] + this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M30] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M31] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M23] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M32] * this.val[GT1404.prototype.M23] - this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M33] - this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33] + this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M33] ); }, det3x3_0: function () { return ( this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M22] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M20] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M21] - this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M22] - this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M20] ); }, setToProjection_4: function (a, b, d, e) { this.idt_0(); d = 1 / Math.tan_1(((Math.PI / 180) * d) / 2); this.val[GT1404.prototype.M00] = d / e; this.val[GT1404.prototype.M10] = 0; this.val[GT1404.prototype.M20] = 0; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M01] = 0; this.val[GT1404.prototype.M11] = d; this.val[GT1404.prototype.M21] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M02] = 0; this.val[GT1404.prototype.M12] = 0; this.val[GT1404.prototype.M22] = (b + a) / (a - b); this.val[GT1404.prototype.M32] = -1; this.val[GT1404.prototype.M03] = 0; this.val[GT1404.prototype.M13] = 0; this.val[GT1404.prototype.M23] = (2 * b * a) / (a - b); this.val[GT1404.prototype.M33] = 0; return this; }, setToProjection_6: function (a, b, d, e, f, g) { b = (GT1404.prototype.right + a) / (GT1404.prototype.right - a); this.val[GT1404.prototype.M00] = (2 * f) / (GT1404.prototype.right - a); this.val[GT1404.prototype.M10] = 0; this.val[GT1404.prototype.M20] = 0; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M01] = 0; this.val[GT1404.prototype.M11] = (2 * f) / (e - d); this.val[GT1404.prototype.M21] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M02] = b; this.val[GT1404.prototype.M12] = (e + d) / (e - d); this.val[GT1404.prototype.M22] = (g + f) / (f - g); this.val[GT1404.prototype.M32] = -1; this.val[GT1404.prototype.M03] = 0; this.val[GT1404.prototype.M13] = 0; this.val[GT1404.prototype.M23] = (2 * g * f) / (f - g); this.val[GT1404.prototype.M33] = 0; return this; }, setToOrtho2D_4: function (a, b, d, e) { this.setToOrtho_6(a, a + d, b, b + e, 0, 1); return this; }, setToOrtho2D_6: function (a, b, d, e, f, g) { this.setToOrtho_6(a, a + d, b, b + e, f, g); return this; }, setToOrtho_6: function (a, b, d, e, f, g) { this.idt_0(); b = -(GT1404.prototype.right + a) / (GT1404.prototype.right - a); this.val[GT1404.prototype.M00] = 2 / (GT1404.prototype.right - a); this.val[GT1404.prototype.M10] = 0; this.val[GT1404.prototype.M20] = 0; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M01] = 0; this.val[GT1404.prototype.M11] = 2 / (e - d); this.val[GT1404.prototype.M21] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M02] = 0; this.val[GT1404.prototype.M12] = 0; this.val[GT1404.prototype.M22] = -2 / (g - f); this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M03] = b; this.val[GT1404.prototype.M13] = -(e + d) / (e - d); this.val[GT1404.prototype.M23] = -(g + f) / (g - f); this.val[GT1404.prototype.M33] = 1; return this; }, setTranslation_1: function (a) { this.val[GT1404.prototype.M03] = a.x; this.val[GT1404.prototype.M13] = a.y; this.val[GT1404.prototype.M23] = a.z; return this; }, setTranslation_3: function (a, b, d) { this.val[GT1404.prototype.M03] = a; this.val[GT1404.prototype.M13] = b; this.val[GT1404.prototype.M23] = d; return this; }, setToTranslation_1: function (a) { this.idt_0(); this.val[GT1404.prototype.M03] = a.x; this.val[GT1404.prototype.M13] = a.y; this.val[GT1404.prototype.M23] = a.z; return this; }, setToTranslation_3: function (a, b, d) { this.idt_0(); this.val[GT1404.prototype.M03] = a; this.val[GT1404.prototype.M13] = b; this.val[GT1404.prototype.M23] = d; return this; }, setToTranslationAndScaling_2: function (a, b) { this.idt_0(); this.val[GT1404.prototype.M03] = a.x; this.val[GT1404.prototype.M13] = a.y; this.val[GT1404.prototype.M23] = a.z; this.val[GT1404.prototype.M00] = b.x; this.val[GT1404.prototype.M11] = b.y; this.val[GT1404.prototype.M22] = b.z; return this; }, setToTranslationAndScaling_6: function (a, b, d, e, f, g) { this.idt_0(); this.val[GT1404.prototype.M03] = a; this.val[GT1404.prototype.M13] = b; this.val[GT1404.prototype.M23] = d; this.val[GT1404.prototype.M00] = e; this.val[GT1404.prototype.M11] = f; this.val[GT1404.prototype.M22] = g; return this; }, setToRotation_2: function (a, b) { return 0 == b ? (this.idt_0(), this) : this.setQuaternion_1(GT1404.prototype.quat.set_2(a, b)); }, setToRotationRad_2: function (a, b) { return 0 == b ? (this.idt_0(), this) : this.setQuaternion_1(GT1404.prototype.quat.setFromAxisRad_2(a, b)); }, setToRotation_4: function (a, b, d, e) { return 0 == e ? (this.idt_0(), this) : this.setQuaternion_1(GT1404.prototype.quat.setFromAxis_4(a, b, d, e)); }, setToRotationRad_4: function (a, b, d, e) { return 0 == e ? (this.idt_0(), this) : this.setQuaternion_1(GT1404.prototype.quat.setFromAxisRad_4(a, b, d, e)); }, setToRotationVector3_2: function (a, b) { return this.setQuaternion_1(GT1404.prototype.quat.setFromCross_2(a, b)); }, setToRotation_6: function (a, b, d, e, f, g) { return this.setQuaternion_1(GT1404.prototype.quat.setFromCross_6(a, b, d, e, f, g)); }, setFromEulerAngles_3: function (a, b, d) { GT1404.prototype.quat.setEulerAngles_3(a, b, d); return this.setQuaternion_1(GT1404.prototype.quat); }, setFromEulerAnglesRad_3: function (a, b, d) { GT1404.prototype.quat.setEulerAnglesRad_3(a, b, d); return this.setQuaternion_1(GT1404.prototype.quat); }, setToScaling_1: function (a) { this.idt_0(); this.val[GT1404.prototype.M00] = a.x; this.val[GT1404.prototype.M11] = a.y; this.val[GT1404.prototype.M22] = a.z; return this; }, setToScaling_3: function (a, b, d) { this.idt_0(); this.val[GT1404.prototype.M00] = a; this.val[GT1404.prototype.M11] = b; this.val[GT1404.prototype.M22] = d; return this; }, setToLookAt_2: function (a, b) { GT1404.prototype.l_vez.set_1(a).nor_0(); GT1404.prototype.l_vex.set_1(a).nor_0(); GT1404.prototype.l_vex.crs_1(b).nor_0(); GT1404.prototype.l_vey.set_1(GT1404.prototype.l_vex).crs_1(GT1404.prototype.l_vez).nor_0(); this.idt_0(); this.val[GT1404.prototype.M00] = GT1404.prototype.l_vex.x; this.val[GT1404.prototype.M01] = GT1404.prototype.l_vex.y; this.val[GT1404.prototype.M02] = GT1404.prototype.l_vex.z; this.val[GT1404.prototype.M10] = GT1404.prototype.l_vey.x; this.val[GT1404.prototype.M11] = GT1404.prototype.l_vey.y; this.val[GT1404.prototype.M12] = GT1404.prototype.l_vey.z; this.val[GT1404.prototype.M20] = -GT1404.prototype.l_vez.x; this.val[GT1404.prototype.M21] = -GT1404.prototype.l_vez.y; this.val[GT1404.prototype.M22] = -GT1404.prototype.l_vez.z; return this; }, setToLookAt_3: function (a, b, d) { GT1404.prototype.tmpVec.set_1(b).sub_1(a); this.setToLookAt_2(GT1404.prototype.tmpVec, d); this.mul_1(GT1404.prototype.tmpMat.setToTranslation_3(-a.x, -a.y, -a.z)); return this; }, setToWorld_3: function (a, b, d) { GT1404.prototype.tmpForward.set_1(b).nor_0(); GT1404.prototype.right.set_1(GT1404.prototype.tmpForward).crs_1(d).nor_0(); GT1404.prototype.tmpUp.set_1(GT1404.prototype.right).crs_1(GT1404.prototype.tmpForward).nor_0(); this.setVector3s_4(GT1404.prototype.right, GT1404.prototype.tmpUp, GT1404.prototype.tmpForward.scl_1(-1), a); return this; }, toString: function () { return ( "[" + this.val[GT1404.prototype.M00] + "|" + this.val[GT1404.prototype.M01] + "|" + this.val[GT1404.prototype.M02] + "|" + this.val[GT1404.prototype.M03] + "]\n[" + this.val[GT1404.prototype.M10] + "|" + this.val[GT1404.prototype.M11] + "|" + this.val[GT1404.prototype.M12] + "|" + this.val[GT1404.prototype.M13] + "]\n[" + this.val[GT1404.prototype.M20] + "|" + this.val[GT1404.prototype.M21] + "|" + this.val[GT1404.prototype.M22] + "|" + this.val[GT1404.prototype.M23] + "]\n[" + this.val[GT1404.prototype.M30] + "|" + this.val[GT1404.prototype.M31] + "|" + this.val[GT1404.prototype.M32] + "|" + this.val[GT1404.prototype.M33] + "]\n" ); }, lerp_2: function (a, b) { for (var d = 0; 16 > d; d++) this.val[d] = this.val[d] * (1 - b) + a.val[d] * b; return this; }, avg_2: function (a, b) { this.getScale_1(GT1404.prototype.tmpVec); a.getScale_1(GT1404.prototype.tmpForward); this.getRotation_1(GT1404.prototype.quat); a.getRotation_1(GT1404.prototype.quat2); this.getTranslation_1(GT1404.prototype.tmpUp); a.getTranslation_1(GT1404.prototype.right); this.setToScaling_1(GT1404.prototype.tmpVec.scl_1(b).add_1(GT1404.prototype.tmpForward.scl_1(1 - b))); this.rotate_1(GT1404.prototype.quat.slerp_2(GT1404.prototype.quat2, 1 - b)); this.setTranslation_1(GT1404.prototype.tmpUp.scl_1(b).add_1(GT1404.prototype.right.scl_1(1 - b))); return this; }, avg_1: function (a) { var b = 1 / a.length; GT1404.prototype.tmpVec.set_1(a[0].getScale_1(GT1404.prototype.tmpUp).scl_1(b)); GT1404.prototype.quat.set_1(a[0].getRotation_1(GT1404.prototype.quat2).exp_1(b)); GT1404.prototype.tmpForward.set_1(a[0].getTranslation_1(GT1404.prototype.tmpUp).scl_1(b)); for (var d = 1; d < a.length; d++) GT1404.prototype.tmpVec.add_1(a[d].getScale_1(GT1404.prototype.tmpUp).scl_1(b)), GT1404.prototype.quat.mul_1(a[d].getRotation_1(GT1404.prototype.quat2).exp_1(b)), GT1404.prototype.tmpForward.add_1(a[d].getTranslation_1(GT1404.prototype.tmpUp).scl_1(b)); GT1404.prototype.quat.nor_0(); this.setToScaling_1(GT1404.prototype.tmpVec); this.rotate_1(GT1404.prototype.quat); this.setTranslation_1(GT1404.prototype.tmpForward); return this; }, avg_3: function (a, b, d) { GT1404.prototype.tmpVec.set_1(a[0].getScale_1(GT1404.prototype.tmpUp).scl_1(b[0])); GT1404.prototype.quat.set_1(a[0].getRotation_1(GT1404.prototype.quat2).exp_1(b[0])); GT1404.prototype.tmpForward.set_1(a[0].getTranslation_1(GT1404.prototype.tmpUp).scl_1(b[0])); for (d = 1; d < a.length; d++) GT1404.prototype.tmpVec.add_1(a[d].getScale_1(GT1404.prototype.tmpUp).scl_1(b[d])), GT1404.prototype.quat.mul_1(a[d].getRotation_1(GT1404.prototype.quat2).exp_1(b[d])), GT1404.prototype.tmpForward.add_1(a[d].getTranslation_1(GT1404.prototype.tmpUp).scl_1(b[d])); GT1404.prototype.quat.nor_0(); this.setToScaling_1(GT1404.prototype.tmpVec); this.rotate_1(GT1404.prototype.quat); this.setTranslation_1(GT1404.prototype.tmpForward); return this; }, setMatrix3_1: function (a) { this.val[0] = a.val[0]; this.val[1] = a.val[1]; this.val[2] = a.val[2]; this.val[3] = 0; this.val[4] = a.val[3]; this.val[5] = a.val[4]; this.val[6] = a.val[5]; this.val[7] = 0; this.val[8] = 0; this.val[9] = 0; this.val[10] = 1; this.val[11] = 0; this.val[12] = a.val[6]; this.val[13] = a.val[7]; this.val[14] = 0; this.val[15] = a.val[8]; return this; }, setAffine2_1: function (a) { this.val[GT1404.prototype.M00] = a.m00; this.val[GT1404.prototype.M10] = a.m10; this.val[GT1404.prototype.M20] = 0; this.val[GT1404.prototype.M30] = 0; this.val[GT1404.prototype.M01] = a.m01; this.val[GT1404.prototype.M11] = a.m11; this.val[GT1404.prototype.M21] = 0; this.val[GT1404.prototype.M31] = 0; this.val[GT1404.prototype.M02] = 0; this.val[GT1404.prototype.M12] = 0; this.val[GT1404.prototype.M22] = 1; this.val[GT1404.prototype.M32] = 0; this.val[GT1404.prototype.M03] = a.m02; this.val[GT1404.prototype.M13] = a.m12; this.val[GT1404.prototype.M23] = 0; this.val[GT1404.prototype.M33] = 1; return this; }, setAsAffine_1: function (a) { this.val[GT1404.prototype.M00] = a.m00; this.val[GT1404.prototype.M10] = a.m10; this.val[GT1404.prototype.M01] = a.m01; this.val[GT1404.prototype.M11] = a.m11; this.val[GT1404.prototype.M03] = a.m02; this.val[GT1404.prototype.M13] = a.m12; return this; }, setAsAffineMatrix4_1: function (a) { this.val[GT1404.prototype.M00] = a.val[GT1404.prototype.M00]; this.val[GT1404.prototype.M10] = a.val[GT1404.prototype.M10]; this.val[GT1404.prototype.M01] = a.val[GT1404.prototype.M01]; this.val[GT1404.prototype.M11] = a.val[GT1404.prototype.M11]; this.val[GT1404.prototype.M03] = a.val[GT1404.prototype.M03]; this.val[GT1404.prototype.M13] = a.val[GT1404.prototype.M13]; return this; }, sclVector3_1: function (a) { this.val[GT1404.prototype.M00] *= a.x; this.val[GT1404.prototype.M11] *= a.y; this.val[GT1404.prototype.M22] *= a.z; return this; }, scl_3: function (a, b, d) { this.val[GT1404.prototype.M00] *= a; this.val[GT1404.prototype.M11] *= b; this.val[GT1404.prototype.M22] *= d; return this; }, scl_1: function (a) { this.val[GT1404.prototype.M00] *= a; this.val[GT1404.prototype.M11] *= a; this.val[GT1404.prototype.M22] *= a; return this; }, getTranslation_1: function (a) { a.x = this.val[GT1404.prototype.M03]; a.y = this.val[GT1404.prototype.M13]; a.z = this.val[GT1404.prototype.M23]; return a; }, getRotation_2: function (a, b) { return a.setFromMatrix4_2(b, this); }, getRotation_1: function (a) { return a.setFromMatrix4_1(this); }, getScaleXSquared_0: function () { return this.val[GT1404.prototype.M00] * this.val[GT1404.prototype.M00] + this.val[GT1404.prototype.M01] * this.val[GT1404.prototype.M01] + this.val[GT1404.prototype.M02] * this.val[GT1404.prototype.M02]; }, getScaleYSquared_0: function () { return this.val[GT1404.prototype.M10] * this.val[GT1404.prototype.M10] + this.val[GT1404.prototype.M11] * this.val[GT1404.prototype.M11] + this.val[GT1404.prototype.M12] * this.val[GT1404.prototype.M12]; }, getScaleZSquared_0: function () { return this.val[GT1404.prototype.M20] * this.val[GT1404.prototype.M20] + this.val[GT1404.prototype.M21] * this.val[GT1404.prototype.M21] + this.val[GT1404.prototype.M22] * this.val[GT1404.prototype.M22]; }, getScaleX_0: function () { return GT1294.prototype.isZero_1(this.val[GT1404.prototype.M01]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M02]) ? Math.abs_1(this.val[GT1404.prototype.M00]) : Math.sqrt_1(this.getScaleXSquared_0()); }, getScaleY_0: function () { return GT1294.prototype.isZero_1(this.val[GT1404.prototype.M10]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M12]) ? Math.abs_1(this.val[GT1404.prototype.M11]) : Math.sqrt_1(this.getScaleYSquared_0()); }, getScaleZ_0: function () { return GT1294.prototype.isZero_1(this.val[GT1404.prototype.M20]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M21]) ? Math.abs_1(this.val[GT1404.prototype.M22]) : Math.sqrt_1(this.getScaleZSquared_0()); }, getScale_1: function (a) { return a.set_3(this.getScaleX_0(), this.getScaleY_0(), this.getScaleZ_0()); }, toNormalMatrix_0: function () { this.val[GT1404.prototype.M03] = 0; this.val[GT1404.prototype.M13] = 0; this.val[GT1404.prototype.M23] = 0; return this.inv_0().tra_0(); }, translate_1: function (a) { return this.translate_3(a.x, a.y, a.z); }, translate_3: function (a, b, d) { GT1404.prototype.tmp[GT1404.prototype.M00] = 1; GT1404.prototype.tmp[GT1404.prototype.M01] = 0; GT1404.prototype.tmp[GT1404.prototype.M02] = 0; GT1404.prototype.tmp[GT1404.prototype.M03] = a; GT1404.prototype.tmp[GT1404.prototype.M10] = 0; GT1404.prototype.tmp[GT1404.prototype.M11] = 1; GT1404.prototype.tmp[GT1404.prototype.M12] = 0; GT1404.prototype.tmp[GT1404.prototype.M13] = b; GT1404.prototype.tmp[GT1404.prototype.M20] = 0; GT1404.prototype.tmp[GT1404.prototype.M21] = 0; GT1404.prototype.tmp[GT1404.prototype.M22] = 1; GT1404.prototype.tmp[GT1404.prototype.M23] = d; GT1404.prototype.tmp[GT1404.prototype.M30] = 0; GT1404.prototype.tmp[GT1404.prototype.M31] = 0; GT1404.prototype.tmp[GT1404.prototype.M32] = 0; GT1404.prototype.tmp[GT1404.prototype.M33] = 1; this.matrix4_mul_2(this.val, GT1404.prototype.tmp); return this; }, rotate_2: function (a, b) { if (0 == b) return this; GT1404.prototype.quat.set_2(a, b); return this.rotate_1(GT1404.prototype.quat); }, rotateRad_2: function (a, b) { if (0 == b) return this; GT1404.prototype.quat.setFromAxisRad_2(a, b); return this.rotate_1(GT1404.prototype.quat); }, rotate_4: function (a, b, d, e) { if (0 == e) return this; GT1404.prototype.quat.setFromAxis_4(a, b, d, e); return this.rotate_1(GT1404.prototype.quat); }, rotateRad_4: function (a, b, d, e) { if (0 == e) return this; GT1404.prototype.quat.setFromAxisRad_4(a, b, d, e); return this.rotate_1(GT1404.prototype.quat); }, rotate_1: function (a) { a.toMatrix_1(GT1404.prototype.tmp); this.matrix4_mul_2(this.val, GT1404.prototype.tmp); return this; }, rotateVector3_2: function (a, b) { return this.rotate_1(GT1404.prototype.quat.setFromCross_2(a, b)); }, scale_3: function (a, b, d) { GT1404.prototype.tmp[GT1404.prototype.M00] = a; GT1404.prototype.tmp[GT1404.prototype.M01] = 0; GT1404.prototype.tmp[GT1404.prototype.M02] = 0; GT1404.prototype.tmp[GT1404.prototype.M03] = 0; GT1404.prototype.tmp[GT1404.prototype.M10] = 0; GT1404.prototype.tmp[GT1404.prototype.M11] = b; GT1404.prototype.tmp[GT1404.prototype.M12] = 0; GT1404.prototype.tmp[GT1404.prototype.M13] = 0; GT1404.prototype.tmp[GT1404.prototype.M20] = 0; GT1404.prototype.tmp[GT1404.prototype.M21] = 0; GT1404.prototype.tmp[GT1404.prototype.M22] = d; GT1404.prototype.tmp[GT1404.prototype.M23] = 0; GT1404.prototype.tmp[GT1404.prototype.M30] = 0; GT1404.prototype.tmp[GT1404.prototype.M31] = 0; GT1404.prototype.tmp[GT1404.prototype.M32] = 0; GT1404.prototype.tmp[GT1404.prototype.M33] = 1; this.matrix4_mul_2(this.val, GT1404.prototype.tmp); return this; }, extract4x3Matrix_1: function (a) { a[0] = this.val[GT1404.prototype.M00]; a[1] = this.val[GT1404.prototype.M10]; a[2] = this.val[GT1404.prototype.M20]; a[3] = this.val[GT1404.prototype.M01]; a[4] = this.val[GT1404.prototype.M11]; a[5] = this.val[GT1404.prototype.M21]; a[6] = this.val[GT1404.prototype.M02]; a[7] = this.val[GT1404.prototype.M12]; a[8] = this.val[GT1404.prototype.M22]; a[9] = this.val[GT1404.prototype.M03]; a[10] = this.val[GT1404.prototype.M13]; a[11] = this.val[GT1404.prototype.M23]; }, hasRotationOrScaling_0: function () { return !( GT1294.prototype.isEqual_2(this.val[GT1404.prototype.M00], 1) && GT1294.prototype.isEqual_2(this.val[GT1404.prototype.M11], 1) && GT1294.prototype.isEqual_2(this.val[GT1404.prototype.M22], 1) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M01]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M02]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M10]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M12]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M20]) && GT1294.prototype.isZero_1(this.val[GT1404.prototype.M21]) ); }, }, "GT1404", [] ); GT1404.prototype.matrix4_mul_2 = function (a, b) { var d = [].createArray(16).init(0); d[GT1404.prototype.M00] = a[GT1404.prototype.M00] * b[GT1404.prototype.M00] + a[GT1404.prototype.M01] * b[GT1404.prototype.M10] + a[GT1404.prototype.M02] * b[GT1404.prototype.M20] + a[GT1404.prototype.M03] * b[GT1404.prototype.M30]; d[GT1404.prototype.M01] = a[GT1404.prototype.M00] * b[GT1404.prototype.M01] + a[GT1404.prototype.M01] * b[GT1404.prototype.M11] + a[GT1404.prototype.M02] * b[GT1404.prototype.M21] + a[GT1404.prototype.M03] * b[GT1404.prototype.M31]; d[GT1404.prototype.M02] = a[GT1404.prototype.M00] * b[GT1404.prototype.M02] + a[GT1404.prototype.M01] * b[GT1404.prototype.M12] + a[GT1404.prototype.M02] * b[GT1404.prototype.M22] + a[GT1404.prototype.M03] * b[GT1404.prototype.M32]; d[GT1404.prototype.M03] = a[GT1404.prototype.M00] * b[GT1404.prototype.M03] + a[GT1404.prototype.M01] * b[GT1404.prototype.M13] + a[GT1404.prototype.M02] * b[GT1404.prototype.M23] + a[GT1404.prototype.M03] * b[GT1404.prototype.M33]; d[GT1404.prototype.M10] = a[GT1404.prototype.M10] * b[GT1404.prototype.M00] + a[GT1404.prototype.M11] * b[GT1404.prototype.M10] + a[GT1404.prototype.M12] * b[GT1404.prototype.M20] + a[GT1404.prototype.M13] * b[GT1404.prototype.M30]; d[GT1404.prototype.M11] = a[GT1404.prototype.M10] * b[GT1404.prototype.M01] + a[GT1404.prototype.M11] * b[GT1404.prototype.M11] + a[GT1404.prototype.M12] * b[GT1404.prototype.M21] + a[GT1404.prototype.M13] * b[GT1404.prototype.M31]; d[GT1404.prototype.M12] = a[GT1404.prototype.M10] * b[GT1404.prototype.M02] + a[GT1404.prototype.M11] * b[GT1404.prototype.M12] + a[GT1404.prototype.M12] * b[GT1404.prototype.M22] + a[GT1404.prototype.M13] * b[GT1404.prototype.M32]; d[GT1404.prototype.M13] = a[GT1404.prototype.M10] * b[GT1404.prototype.M03] + a[GT1404.prototype.M11] * b[GT1404.prototype.M13] + a[GT1404.prototype.M12] * b[GT1404.prototype.M23] + a[GT1404.prototype.M13] * b[GT1404.prototype.M33]; d[GT1404.prototype.M20] = a[GT1404.prototype.M20] * b[GT1404.prototype.M00] + a[GT1404.prototype.M21] * b[GT1404.prototype.M10] + a[GT1404.prototype.M22] * b[GT1404.prototype.M20] + a[GT1404.prototype.M23] * b[GT1404.prototype.M30]; d[GT1404.prototype.M21] = a[GT1404.prototype.M20] * b[GT1404.prototype.M01] + a[GT1404.prototype.M21] * b[GT1404.prototype.M11] + a[GT1404.prototype.M22] * b[GT1404.prototype.M21] + a[GT1404.prototype.M23] * b[GT1404.prototype.M31]; d[GT1404.prototype.M22] = a[GT1404.prototype.M20] * b[GT1404.prototype.M02] + a[GT1404.prototype.M21] * b[GT1404.prototype.M12] + a[GT1404.prototype.M22] * b[GT1404.prototype.M22] + a[GT1404.prototype.M23] * b[GT1404.prototype.M32]; d[GT1404.prototype.M23] = a[GT1404.prototype.M20] * b[GT1404.prototype.M03] + a[GT1404.prototype.M21] * b[GT1404.prototype.M13] + a[GT1404.prototype.M22] * b[GT1404.prototype.M23] + a[GT1404.prototype.M23] * b[GT1404.prototype.M33]; d[GT1404.prototype.M30] = a[GT1404.prototype.M30] * b[GT1404.prototype.M00] + a[GT1404.prototype.M31] * b[GT1404.prototype.M10] + a[GT1404.prototype.M32] * b[GT1404.prototype.M20] + a[GT1404.prototype.M33] * b[GT1404.prototype.M30]; d[GT1404.prototype.M31] = a[GT1404.prototype.M30] * b[GT1404.prototype.M01] + a[GT1404.prototype.M31] * b[GT1404.prototype.M11] + a[GT1404.prototype.M32] * b[GT1404.prototype.M21] + a[GT1404.prototype.M33] * b[GT1404.prototype.M31]; d[GT1404.prototype.M32] = a[GT1404.prototype.M30] * b[GT1404.prototype.M02] + a[GT1404.prototype.M31] * b[GT1404.prototype.M12] + a[GT1404.prototype.M32] * b[GT1404.prototype.M22] + a[GT1404.prototype.M33] * b[GT1404.prototype.M32]; d[GT1404.prototype.M33] = a[GT1404.prototype.M30] * b[GT1404.prototype.M03] + a[GT1404.prototype.M31] * b[GT1404.prototype.M13] + a[GT1404.prototype.M32] * b[GT1404.prototype.M23] + a[GT1404.prototype.M33] * b[GT1404.prototype.M33]; java_lang_System.prototype.arraycopy_5(d, 0, a, 0, 16); }; GT1404.prototype.M00 = 0; GT1404.prototype.M01 = 4; GT1404.prototype.M02 = 8; GT1404.prototype.M03 = 12; GT1404.prototype.M10 = 1; GT1404.prototype.M11 = 5; GT1404.prototype.M12 = 9; GT1404.prototype.M13 = 13; GT1404.prototype.M20 = 2; GT1404.prototype.M21 = 6; GT1404.prototype.M22 = 10; GT1404.prototype.M23 = 14; GT1404.prototype.M30 = 3; GT1404.prototype.M31 = 7; GT1404.prototype.M32 = 11; GT1404.prototype.M33 = 15; GT1404.prototype.tmp = [].createArray(16).init(0); GT1404.prototype.quat = new GT1246(); GT1404.prototype.quat2 = new GT1246(); GT1404.prototype.l_vez = new GT1405(); GT1404.prototype.l_vex = new GT1405(); GT1404.prototype.l_vey = new GT1405(); GT1404.prototype.tmpVec = new GT1405(); GT1404.prototype.tmpMat = new GT1404(); GT1404.prototype.right = new GT1405(); GT1404.prototype.tmpForward = new GT1405(); GT1404.prototype.tmpUp = new GT1405(); var GT1464 = GT1089.extend( { initialConstructor_0: function () { this.color = this.vertices = null; this.scaleY = this.scaleX = this.rotation = this.originY = this.originX = this.height = this.width = this.y = this.x = 0; this.dirty = !1; this.bounds = null; GT1089.prototype.initialConstructor_0.call(this); this.init_0(); }, initialConstructor_2: function (a, b) { GT1464.prototype.initialConstructor_5.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0()); }, initialConstructor_3: function (a, b, d) { GT1464.prototype.initialConstructor_5.call(this, a, 0, 0, b, d); }, initialConstructor_5: function (a, b, d, e, f) { this.color = this.vertices = null; this.scaleY = this.scaleX = this.rotation = this.originY = this.originX = this.height = this.width = this.y = this.x = 0; this.dirty = !1; this.bounds = null; GT1089.prototype.initialConstructor_0.call(this); null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: texture cannot be null."); this.init_0(); this.texture = a; this.setRegion_4(b, d, e, f); this.setSize_2(Math.abs_1(e), Math.abs_1(f)); this.setOrigin_2(this.width / 2, this.height / 2); }, initialConstructor_1: function (a) { this.color = this.vertices = null; this.scaleY = this.scaleX = this.rotation = this.originY = this.originX = this.height = this.width = this.y = this.x = 0; this.dirty = !1; this.bounds = null; GT1089.prototype.initialConstructor_0.call(this); this.init_0(); this.setRegion_1(a); this.setSize_2(a.getRegionWidth_0(), a.getRegionHeight_0()); this.setOrigin_2(this.width / 2, this.height / 2); }, initialConstructor_6: function (a, b, d, e, f, g) { this.color = this.vertices = null; this.scaleY = this.scaleX = this.rotation = this.originY = this.originX = this.height = this.width = this.y = this.x = 0; this.dirty = !1; this.bounds = null; GT1089.prototype.initialConstructor_0.call(this); this.init_0(); this.setRegionTextureRegion_5(a, b, d, e, f); this.setSize_2(Math.abs_1(e), Math.abs_1(f)); this.setOrigin_2(this.width / 2, this.height / 2); }, init_0: function () { this.vertices = [].createArray(GT1464.prototype.SPRITE_SIZE).init(0); this.color = new GT1477(1, 1, 1, 1); this.scaleY = this.scaleX = 1; this.dirty = !0; }, set_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: sprite cannot be null."); java_lang_System.prototype.arraycopy_5(a.vertices, 0, this.vertices, 0, GT1464.prototype.SPRITE_SIZE); this.texture = a.texture; this.u = a.u; this.v = a.v; this.u2 = a.u2; this.v2 = a.v2; this.x = a.x; this.y = a.y; this.width = a.width; this.height = a.height; this.regionWidth = a.regionWidth; this.regionHeight = a.regionHeight; this.originX = a.originX; this.originY = a.originY; this.rotation = a.rotation; this.scaleX = a.scaleX; this.scaleY = a.scaleY; this.color.set_1(a.color); this.dirty = a.dirty; }, setBounds_4: function (a, b, d, e) { this.x = a; this.y = b; this.width = d; this.height = e; if (!this.dirty) { d = a + d; e = b + e; var f = this.vertices; f[GT1464.prototype.X1] = a; f[GT1464.prototype.Y1] = b; f[GT1464.prototype.X2] = a; f[GT1464.prototype.Y2] = e; f[GT1464.prototype.X3] = d; f[GT1464.prototype.Y3] = e; f[GT1464.prototype.X4] = d; f[GT1464.prototype.Y4] = b; if (0 != this.rotation || 1 != this.scaleX || 1 != this.scaleY) this.dirty = !0; } }, setSize_2: function (a, b) { this.width = a; this.height = b; if (!this.dirty) { var d = this.x + a, e = this.y + b, f = this.vertices; f[GT1464.prototype.X1] = this.x; f[GT1464.prototype.Y1] = this.y; f[GT1464.prototype.X2] = this.x; f[GT1464.prototype.Y2] = e; f[GT1464.prototype.X3] = d; f[GT1464.prototype.Y3] = e; f[GT1464.prototype.X4] = d; f[GT1464.prototype.Y4] = this.y; if (0 != this.rotation || 1 != this.scaleX || 1 != this.scaleY) this.dirty = !0; } }, setPosition_2: function (a, b) { this.translate_2(a - this.x, b - this.y); }, setOriginBasedPosition_2: function (a, b) { this.setPosition_2(a - this.originX, b - this.originY); }, setX_1: function (a) { this.translateX_1(a - this.x); }, setY_1: function (a) { this.translateY_1(a - this.y); }, setCenterX_1: function (a) { this.setX_1(a - this.width / 2); }, setCenterY_1: function (a) { this.setY_1(a - this.height / 2); }, setCenter_2: function (a, b) { this.setCenterX_1(a); this.setCenterY_1(b); }, translateX_1: function (a) { this.x += a; if (!this.dirty) { var b = this.vertices; b[GT1464.prototype.X1] += a; b[GT1464.prototype.X2] += a; b[GT1464.prototype.X3] += a; b[GT1464.prototype.X4] += a; } }, translateY_1: function (a) { this.y += a; if (!this.dirty) { var b = this.vertices; b[GT1464.prototype.Y1] += a; b[GT1464.prototype.Y2] += a; b[GT1464.prototype.Y3] += a; b[GT1464.prototype.Y4] += a; } }, translate_2: function (a, b) { this.x += a; this.y += b; if (!this.dirty) { var d = this.vertices; d[GT1464.prototype.X1] += a; d[GT1464.prototype.Y1] += b; d[GT1464.prototype.X2] += a; d[GT1464.prototype.Y2] += b; d[GT1464.prototype.X3] += a; d[GT1464.prototype.Y3] += b; d[GT1464.prototype.X4] += a; d[GT1464.prototype.Y4] += b; } }, setOrigin_2: function (a, b) { this.originX = a; this.originY = b; this.dirty = !0; }, setOriginCenter_0: function () { this.originX = this.width / 2; this.originY = this.height / 2; this.dirty = !0; }, setRotation_1: function (a) { this.rotation = a; this.dirty = !0; }, getRotation_0: function () { return this.rotation; }, rotate_1: function (a) { 0 != a && ((this.rotation += a), (this.dirty = !0)); }, rotate90_1: function (a) { var b = this.vertices; a ? ((a = b[GT1464.prototype.V1]), (b[GT1464.prototype.V1] = b[GT1464.prototype.V4]), (b[GT1464.prototype.V4] = b[GT1464.prototype.V3]), (b[GT1464.prototype.V3] = b[GT1464.prototype.V2]), (b[GT1464.prototype.V2] = a), (a = b[GT1464.prototype.U1]), (b[GT1464.prototype.U1] = b[GT1464.prototype.U4]), (b[GT1464.prototype.U4] = b[GT1464.prototype.U3]), (b[GT1464.prototype.U3] = b[GT1464.prototype.U2]), (b[GT1464.prototype.U2] = a)) : ((a = b[GT1464.prototype.V1]), (b[GT1464.prototype.V1] = b[GT1464.prototype.V2]), (b[GT1464.prototype.V2] = b[GT1464.prototype.V3]), (b[GT1464.prototype.V3] = b[GT1464.prototype.V4]), (b[GT1464.prototype.V4] = a), (a = b[GT1464.prototype.U1]), (b[GT1464.prototype.U1] = b[GT1464.prototype.U2]), (b[GT1464.prototype.U2] = b[GT1464.prototype.U3]), (b[GT1464.prototype.U3] = b[GT1464.prototype.U4]), (b[GT1464.prototype.U4] = a)); }, setScale_1: function (a) { this.scaleY = this.scaleX = a; this.dirty = !0; }, setScale_2: function (a, b) { this.scaleX = a; this.scaleY = b; this.dirty = !0; }, scale_1: function (a) { this.scaleX += a; this.scaleY += a; this.dirty = !0; }, getVertices_0: function () { if (this.dirty) { this.dirty = !1; var a = this.vertices, b = -this.originX, d = -this.originY, e = b + this.width, f = d + this.height, g = this.x - b, k = this.y - d; if (1 != this.scaleX || 1 != this.scaleY) (b *= this.scaleX), (d *= this.scaleY), (e *= this.scaleX), (f *= this.scaleY); if (0 != this.rotation) { var m = GT1294.prototype.cosDeg_1(this.rotation), n = GT1294.prototype.sinDeg_1(this.rotation), p = b * m, q = b * n, r = f * m, f = f * n, b = p - d * n + g, d = d * m + q + k; a[GT1464.prototype.X1] = b; a[GT1464.prototype.Y1] = d; p = p - f + g; q = r + q + k; a[GT1464.prototype.X2] = p; a[GT1464.prototype.Y2] = q; g = e * m - f + g; e = r + e * n + k; a[GT1464.prototype.X3] = g; a[GT1464.prototype.Y3] = e; a[GT1464.prototype.X4] = b + (g - p); a[GT1464.prototype.Y4] = e - (q - d); } else (b += g), (d += k), (p = e + g), (q = f + k), (a[GT1464.prototype.X1] = b), (a[GT1464.prototype.Y1] = d), (a[GT1464.prototype.X2] = b), (a[GT1464.prototype.Y2] = q), (a[GT1464.prototype.X3] = p), (a[GT1464.prototype.Y3] = q), (a[GT1464.prototype.X4] = p), (a[GT1464.prototype.Y4] = d); } return this.vertices; }, getBoundingRectangle_0: function () { var a = this.getVertices_0(), b = a[GT1464.prototype.X1], d = a[GT1464.prototype.Y1], e = a[GT1464.prototype.X1], f = a[GT1464.prototype.Y1], b = b > a[GT1464.prototype.X2] ? a[GT1464.prototype.X2] : b, b = b > a[GT1464.prototype.X3] ? a[GT1464.prototype.X3] : b, b = b > a[GT1464.prototype.X4] ? a[GT1464.prototype.X4] : b, e = e < a[GT1464.prototype.X2] ? a[GT1464.prototype.X2] : e, e = e < a[GT1464.prototype.X3] ? a[GT1464.prototype.X3] : e, e = e < a[GT1464.prototype.X4] ? a[GT1464.prototype.X4] : e, d = d > a[GT1464.prototype.Y2] ? a[GT1464.prototype.Y2] : d, d = d > a[GT1464.prototype.Y3] ? a[GT1464.prototype.Y3] : d, d = d > a[GT1464.prototype.Y4] ? a[GT1464.prototype.Y4] : d, f = f < a[GT1464.prototype.Y2] ? a[GT1464.prototype.Y2] : f, f = f < a[GT1464.prototype.Y3] ? a[GT1464.prototype.Y3] : f, f = f < a[GT1464.prototype.Y4] ? a[GT1464.prototype.Y4] : f; null == this.bounds && (this.bounds = new GT1298()); this.bounds.x = b; this.bounds.y = d; this.bounds.width = e - b; this.bounds.height = f - d; return this.bounds; }, getX_0: function () { return this.x; }, getY_0: function () { return this.y; }, getWidth_0: function () { return this.width; }, getHeight_0: function () { return this.height; }, getOriginX_0: function () { return this.originX; }, getOriginY_0: function () { return this.originY; }, getScaleX_0: function () { return this.scaleX; }, getScaleY_0: function () { return this.scaleY; }, setRegion_5: function (a, b, d, e, f) { GT1089.prototype.setRegion_5.call(this, a, b, d, e, f); f = this.vertices; f[GT1464.prototype.U1] = a; f[GT1464.prototype.V1] = e; f[GT1464.prototype.U2] = a; f[GT1464.prototype.V2] = b; f[GT1464.prototype.U3] = d; f[GT1464.prototype.V3] = b; f[GT1464.prototype.U4] = d; f[GT1464.prototype.V4] = e; }, setU_1: function (a) { GT1089.prototype.setU_1.call(this, a); this.vertices[GT1464.prototype.U1] = a; this.vertices[GT1464.prototype.U2] = a; }, setV_1: function (a) { GT1089.prototype.setV_1.call(this, a); this.vertices[GT1464.prototype.V2] = a; this.vertices[GT1464.prototype.V3] = a; }, setU2_1: function (a) { GT1089.prototype.setU2_1.call(this, a); this.vertices[GT1464.prototype.U3] = a; this.vertices[GT1464.prototype.U4] = a; }, setV2_1: function (a) { GT1089.prototype.setV2_1.call(this, a); this.vertices[GT1464.prototype.V1] = a; this.vertices[GT1464.prototype.V4] = a; }, setFlip_2: function (a, b) { var d = !1, e = !1; this.isFlipX_0() != a && (d = !0); this.isFlipY_0() != b && (e = !0); this.flip_2(d, e); }, flip_2: function (a, b) { GT1089.prototype.flip_2.call(this, a, b); var d = this.vertices; if (a) { var e = d[GT1464.prototype.U1]; d[GT1464.prototype.U1] = d[GT1464.prototype.U3]; d[GT1464.prototype.U3] = e; e = d[GT1464.prototype.U2]; d[GT1464.prototype.U2] = d[GT1464.prototype.U4]; d[GT1464.prototype.U4] = e; } b && ((e = d[GT1464.prototype.V1]), (d[GT1464.prototype.V1] = d[GT1464.prototype.V3]), (d[GT1464.prototype.V3] = e), (e = d[GT1464.prototype.V2]), (d[GT1464.prototype.V2] = d[GT1464.prototype.V4]), (d[GT1464.prototype.V4] = e)); }, scroll_2: function (a, b) { var d = this.vertices; if (0 != a) { var e = (d[GT1464.prototype.U1] + a) % 1, f = e + this.width / this.texture.getWidth_0(); this.u = e; this.u2 = f; d[GT1464.prototype.U1] = e; d[GT1464.prototype.U2] = e; d[GT1464.prototype.U3] = f; d[GT1464.prototype.U4] = f; } 0 != b && ((e = (d[GT1464.prototype.V2] + b) % 1), (f = e + this.height / this.texture.getHeight_0()), (this.v = e), (this.v2 = f), (d[GT1464.prototype.V1] = f), (d[GT1464.prototype.V2] = e), (d[GT1464.prototype.V3] = e), (d[GT1464.prototype.V4] = f)); }, }, "GT1464", [] ); GT1464.prototype.X1 = 0; GT1464.prototype.Y1 = 1; GT1464.prototype.U1 = 3; GT1464.prototype.V1 = 4; GT1464.prototype.X2 = 5; GT1464.prototype.Y2 = 6; GT1464.prototype.U2 = 8; GT1464.prototype.V2 = 9; GT1464.prototype.X3 = 10; GT1464.prototype.Y3 = 11; GT1464.prototype.U3 = 13; GT1464.prototype.V3 = 14; GT1464.prototype.X4 = 15; GT1464.prototype.Y4 = 16; GT1464.prototype.U4 = 18; GT1464.prototype.V4 = 19; GT1464.prototype.VERTEX_SIZE = 5; GT1464.prototype.SPRITE_SIZE = 4 * GT1464.prototype.VERTEX_SIZE; var GT1347 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1347", [] ); GT1347.prototype.hashCode_1 = function (a) { var b = 0, d = a.length_0(), e = 0; if (0 < d) for (; e < d; ) b = ((b << 5) - b + a.charAt_1(e++)) | 0; return b; }; GT1347.prototype.numberOfTrailingZeros_1 = function (a) { var b; if (0 == a) return 32; var d = 31; b = a << 16; 0 != b && ((d -= 16), (a = b)); b = a << 8; 0 != b && ((d -= 8), (a = b)); b = a << 4; 0 != b && ((d -= 4), (a = b)); b = a << 2; 0 != b && ((d -= 2), (a = b)); return d - ((a << 1) >>> 31); }; GT1347.prototype.getAndIncrement_0 = function () { return GT1347.prototype.COUNTER++; }; GT1347.prototype.setCounter_1 = function (a) { GT1347.prototype.COUNTER = a; }; GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND = 0; GT1347.prototype.COUNTER = 1; GT1347.prototype.tmpMat = new GT1404(); var GT1170 = Class.extend( { initialConstructor_0: function () { this.resourceManager = this.regions = this.textures = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1170.prototype.initialConstructor_2.call(this, a, null); }, initialConstructor_3: function (a, b, d) { GT1170.prototype.initialConstructor_4.call(this, a, b, d, !1); }, initialConstructor_4: function (a, b, d, e) { GT1170.prototype.initialConstructor_2.call(this, a, new GT952(b, d, e)); }, initialConstructor_2: function (a, b) { this.resourceManager = this.regions = this.textures = null; this.resourceManager = a; this.textures = new java_util_JavaScriptVector(); this.regions = new GT1497(); null != b && this.load_1(b); }, load_1: function (a) { for (var b = new GT1293(), d = 0; d < a.pages.size; ++d) { var e = a.pages.get_1(d), f = null, f = null == e.texture ? this.resourceManager.getImage_1(e.textureFile) : e.texture; this.textures.add_1(f); b.put_2(e, f); } for (d = 0; d < a.regions.size; ++d) { var e = a.regions.get_1(d), f = e.width, g = e.height, f = new GT1201(b.get_1(e.page), e.left, e.top, e.rotate ? g : f, e.rotate ? f : g); f.index = e.index; f.name = e.name; f.offsetX = e.offsetX; f.offsetY = e.offsetY; f.originalHeight = e.originalHeight; f.originalWidth = e.originalWidth; f.rotate = e.rotate; f.splits = e.splits; f.pads = e.pads; e.flip && f.flip_2(!1, !0); this.regions.add_1(f); } }, addRegion_6: function (a, b, d, e, f, g) { this.textures.add_1(b); b = new GT1201(b, d, e, f, g); b.name = a; b.originalWidth = f; b.originalHeight = g; b.index = -1; this.regions.add_1(b); return b; }, addRegion_2: function (a, b) { return this.addRegion_6(a, b.texture, b.getRegionX_0(), b.getRegionY_0(), b.getRegionWidth_0(), b.getRegionHeight_0()); }, getRegions_0: function () { return this.regions; }, findRegion_1: function (a) { for (var b = 0, d = this.regions.size; b < d; b++) if (this.regions.get_1(b).name.equals_1(a)) return this.regions.get_1(b); return null; }, findRegion_2: function (a, b) { for (var d = 0, e = this.regions.size; d < e; d++) { var f = this.regions.get_1(d); if (f.name.equals_1(a) && f.index == b) return f; } return null; }, findRegions_1: function (a) { for (var b = new GT1497(), d = 0, e = this.regions.size; d < e; d++) { var f = this.regions.get_1(d); f.name.equals_1(a) && b.add_1(new GT1201(f)); } return b; }, createSprites_0: function () { for (var a = new GT1497(!0, this.regions.size), b = 0, d = this.regions.size; b < d; b++) a.add_1(this.newSprite_1(this.regions.get_1(b))); return a; }, createSprite_1: function (a) { for (var b = 0, d = this.regions.size; b < d; b++) if (this.regions.get_1(b).name.equals_1(a)) return this.newSprite_1(this.regions.get_1(b)); return null; }, createSprite_2: function (a, b) { for (var d = 0, e = this.regions.size; d < e; d++) { var f = this.regions.get_1(d); if (f.name.equals_1(a) && f.index == b) return this.newSprite_1(this.regions.get_1(d)); } return null; }, createSprites_1: function (a) { for (var b = new GT1497(), d = 0, e = this.regions.size; d < e; d++) { var f = this.regions.get_1(d); f.name.equals_1(a) && b.add_1(this.newSprite_1(f)); } return b; }, newSprite_1: function (a) { if (a.packedWidth == a.originalWidth && a.packedHeight == a.originalHeight) { if (a.rotate) { var b = new GT1464(a); b.setBounds_4(0, 0, a.getRegionHeight_0(), a.getRegionWidth_0()); b.rotate90_1(!0); return b; } return new GT1464(a); } return new GT1225(a); }, getTextures_0: function () { return this.textures; }, dispose_0: function () { this.textures.clear_0(); }, }, "GT1170", [] ), GT952 = Class.extend( { initialConstructor_0: function () { this.regions = this.pages = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.regions = this.pages = null; this.pages = new GT1497(); this.regions = new GT1497(); for (var e = a.getNumberOfLines_0(), f = null, g = 0; g < e; ++g) { var k = a.getLine_1(g); if (null == k) break; k = k.trim_0(); if (0 == k.length_0()) f = null; else if (null == f) { var f = b + "/" + k, m = 0, n = 0; 2 == GT1170.prototype.readTuple_2(a, ++g) && ((m = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0])), (n = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1])), GT1170.prototype.readTuple_2(a, ++g)); k = GT1170.prototype.tuple[0]; GT1170.prototype.readTuple_2(a, ++g); var p = GT1170.prototype.tuple[0], q = GT1170.prototype.tuple[1], r = GT1170.prototype.readValue_2(a, ++g), t = GT1170.prototype.TEXTURE_WRAP_CLAMP, u = GT1170.prototype.TEXTURE_WRAP_CLAMP; r.equals_1("x") ? (t = GT1170.prototype.TEXTURE_WRAP_REPEAT) : r.equals_1("y") ? (u = GT1170.prototype.TEXTURE_WRAP_REPEAT) : r.equals_1("xy") && (u = t = GT1170.prototype.TEXTURE_WRAP_REPEAT); f = new GT1551(f, m, n, !1, k, p, q, t, u); this.pages.add_1(f); } else (p = GT1672.prototype.stringToBoolean_1(GT1170.prototype.readValue_2(a, ++g))), GT1170.prototype.readTuple_2(a, ++g), (q = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0])), (r = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1])), GT1170.prototype.readTuple_2(a, ++g), (m = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0])), (n = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1])), (t = new GT1465()), (t.page = f), (t.left = q), (t.top = r), (t.width = m), (t.height = n), (t.name = k), (t.rotate = p), 4 == GT1170.prototype.readTuple_2(a, ++g) && ((t.splits = [ GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[2]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[3]), ]), 4 == GT1170.prototype.readTuple_2(a, ++g) && ((t.pads = [ GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[2]), GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[3]), ]), GT1170.prototype.readTuple_2(a, ++g))), (t.originalWidth = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0])), (t.originalHeight = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1])), GT1170.prototype.readTuple_2(a, ++g), (t.offsetX = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[0])), (t.offsetY = GT1672.prototype.stringToInt_1(GT1170.prototype.tuple[1])), (t.index = GT1672.prototype.stringToInt_1(GT1170.prototype.readValue_2(a, ++g))), d && (t.flip = !0), this.regions.add_1(t); } this.sortRegions_1(this.regions); }, sortRegions_1: function (a) { for (var b = 0; b < a.size; b++) { for (var d = a.get_1(b), e = d.index, f = b, g = b + 1; g < a.size; g++) { var k = a.get_1(g).index; k < e && ((e = k), (f = g)); } a.items[b] = a.get_1(f); a.items[f] = d; } }, getPages_0: function () { return this.pages; }, getRegions_0: function () { return this.regions; }, }, "GT952", [] ), GT1551 = Class.extend( { initialConstructor_0: function () { this.texture = this.textureFile = null; this.height = this.width = 0; this.useMipMaps = !1; this.magFilter = this.minFilter = this.format = null; this.hashcode = this.vWrap = this.uWrap = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.texture = this.textureFile = null; this.height = this.width = 0; this.useMipMaps = !1; this.magFilter = this.minFilter = this.format = null; this.hashcode = this.vWrap = this.uWrap = 0; this.width = b; this.height = d; this.textureFile = a; this.useMipMaps = e; this.format = f; this.minFilter = g; this.magFilter = k; this.uWrap = m; this.vWrap = n; this.hashcode = (GT1347.prototype.getAndIncrement_0() & 65535) << 11; }, hashCode_0: function () { return this.hashcode; }, equals_1: function (a) { return null != a && this.textureFile.equals_1(a.textureFile) && this.width == a.width && this.height == a.height ? !0 : !1; }, }, "GT1551", [] ), GT1465 = Class.extend( { initialConstructor_0: function () { this.page = null; this.index = 0; this.name = null; this.originalHeight = this.originalWidth = this.offsetY = this.offsetX = 0; this.rotate = !1; this.height = this.width = this.top = this.left = 0; this.flip = !1; this.pads = this.splits = null; Class.prototype.initialConstructor_0.call(this); }, }, "GT1465", [] ), GT1225 = GT1464.extend( { initialConstructor_0: function () { this.region = null; this.originalOffsetY = this.originalOffsetX = 0; GT1464.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.region = null; this.originalOffsetY = this.originalOffsetX = 0; GT1464.prototype.initialConstructor_0.call(this); this.region = new GT1201(a); this.originalOffsetX = a.offsetX; this.originalOffsetY = a.offsetY; this.setRegion_1(a); this.setOrigin_2(a.originalWidth / 2, a.originalHeight / 2); var b = a.getRegionWidth_0(), d = a.getRegionHeight_0(); a.rotate ? (GT1464.prototype.rotate90_1.call(this, !0), GT1464.prototype.setBounds_4.call(this, a.offsetX, a.offsetY, d, b)) : GT1464.prototype.setBounds_4.call(this, a.offsetX, a.offsetY, b, d); }, initialConstructor_2: function (a, b) { this.region = null; this.originalOffsetY = this.originalOffsetX = 0; GT1464.prototype.initialConstructor_0.call(this); this.region = a.region; this.originalOffsetX = a.originalOffsetX; this.originalOffsetY = a.originalOffsetY; this.set_1(a); }, setPosition_2: function (a, b) { GT1464.prototype.setPosition_2.call(this, a + this.region.offsetX, b + this.region.offsetY); }, setX_1: function (a) { GT1464.prototype.setX_1.call(this, a + this.region.offsetX); }, setY_1: function (a) { GT1464.prototype.setY_1.call(this, a + this.region.offsetY); }, setBounds_4: function (a, b, d, e) { d /= this.region.originalWidth; e /= this.region.originalHeight; this.region.offsetX = this.originalOffsetX * d; this.region.offsetY = this.originalOffsetY * e; GT1464.prototype.setBounds_4.call( this, a + this.region.offsetX, b + this.region.offsetY, (this.region.rotate ? this.region.packedHeight : this.region.packedWidth) * d, (this.region.rotate ? this.region.packedWidth : this.region.packedHeight) * e ); }, setSize_2: function (a, b) { this.setBounds_4(this.getX_0(), this.getY_0(), a, b); }, setOrigin_2: function (a, b) { GT1464.prototype.setOrigin_2.call(this, a - this.region.offsetX, b - this.region.offsetY); }, setOriginCenter_0: function () { GT1464.prototype.setOrigin_2.call(this, this.width / 2 - this.region.offsetX, this.height / 2 - this.region.offsetY); }, flip_2: function (a, b) { this.region.rotate ? GT1464.prototype.flip_2.call(this, b, a) : GT1464.prototype.flip_2.call(this, a, b); var d = this.getOriginX_0(), e = this.getOriginY_0(), f = this.region.offsetX, g = this.region.offsetY, k = this.getWidthRatio_0(), m = this.getHeightRatio_0(); this.region.offsetX = this.originalOffsetX; this.region.offsetY = this.originalOffsetY; this.region.flip_2(a, b); this.originalOffsetX = this.region.offsetX; this.originalOffsetY = this.region.offsetY; this.region.offsetX *= k; this.region.offsetY *= m; this.translate_2(this.region.offsetX - f, this.region.offsetY - g); this.setOrigin_2(d, e); }, rotate90_1: function (a) { GT1464.prototype.rotate90_1.call(this, a); var b = this.getOriginX_0(), d = this.getOriginY_0(), e = this.region.offsetX, f = this.region.offsetY, g = this.getWidthRatio_0(), k = this.getHeightRatio_0(); a ? ((this.region.offsetX = f), (this.region.offsetY = this.region.originalHeight * k - e - this.region.packedWidth * g)) : ((this.region.offsetX = this.region.originalWidth * g - f - this.region.packedHeight * k), (this.region.offsetY = e)); this.translate_2(this.region.offsetX - e, this.region.offsetY - f); this.setOrigin_2(b, d); }, getX_0: function () { return GT1464.prototype.getX_0.call(this) - this.region.offsetX; }, getY_0: function () { return GT1464.prototype.getY_0.call(this) - this.region.offsetY; }, getOriginX_0: function () { return GT1464.prototype.getOriginX_0.call(this) + this.region.offsetX; }, getOriginY_0: function () { return GT1464.prototype.getOriginY_0.call(this) + this.region.offsetY; }, getWidth_0: function () { return (GT1464.prototype.getWidth_0.call(this) / this.region.getRotatedPackedWidth_0()) * this.region.originalWidth; }, getHeight_0: function () { return (GT1464.prototype.getHeight_0.call(this) / this.region.getRotatedPackedHeight_0()) * this.region.originalHeight; }, getWidthRatio_0: function () { return GT1464.prototype.getWidth_0.call(this) / this.region.getRotatedPackedWidth_0(); }, getHeightRatio_0: function () { return GT1464.prototype.getHeight_0.call(this) / this.region.getRotatedPackedHeight_0(); }, getAtlasRegion_0: function () { return this.region; }, toString: function () { return this.region.toString(); }, }, "GT1225", [] ); GT1170.prototype.readTuple_2 = function (a, b) { var d = a.getLine_1(b), e = d.indexOf_1(58); -1 == e && GT1650.prototype.assertExp_2(!1, "RuntimeException: Invalid line: " + d); for (var f = 0, e = e + 1, f = 0; 3 > f; f++) { var g = d.indexOf_2(44, e); if (-1 == g) break; GT1170.prototype.tuple[f] = d.substring_2(e, g).trim_0(); e = g + 1; } GT1170.prototype.tuple[f] = d.substring_1(e).trim_0(); return f + 1; }; GT1170.prototype.readValue_2 = function (a, b) { var d = a.getLine_1(b), e = d.indexOf_1(58); -1 == e && GT1650.prototype.assertExp_2(!1, "RuntimeException: Invalid line: " + d); return d.substring_1(e + 1).trim_0(); }; GT1170.prototype.dependenyHack = GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND; GT1170.prototype.TEXTURE_WRAP_CLAMP = 0; GT1170.prototype.TEXTURE_WRAP_REPEAT = 1; GT1170.prototype.tuple = [].createArray(4); var GT1300 = GT1090.extend( { initialConstructor_0: function () { GT1090.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1090.prototype.initialConstructor_1.call(this, a); }, getPropertyId_0: function () { return (GT1344.prototype.scale << 24) + this.boneIndex; }, apply_7: function (a, b, d, e, f, g, k) { a = a.bones.get_1(this.boneIndex); var m = this.frames; if (d < m[0]) switch (g) { case GT1565.prototype.setup: a.scaleX = a.data.scaleX; a.scaleY = a.data.scaleY; break; case GT1565.prototype.current: (a.scaleX += (a.data.scaleX - a.scaleX) * f), (a.scaleY += (a.data.scaleY - a.scaleY) * f); } else { if (d >= m[m.length - this.ENTRIES]) (b = m[m.length + this.PREV_X] * a.data.scaleX), (e = m[m.length + this.PREV_Y] * a.data.scaleY); else { var n = GT1496.prototype.binarySearch_3(m, d, this.ENTRIES); b = m[n + this.PREV_X]; e = m[n + this.PREV_Y]; var p = m[n]; d = this.getCurvePercent_2(Math.div(n, this.ENTRIES) - 1, 1 - (d - p) / (m[n + this.PREV_TIME] - p)); b = (b + (m[n + this.X] - b) * d) * a.data.scaleX; e = (e + (m[n + this.Y] - e) * d) * a.data.scaleY; } 1 == f ? ((a.scaleX = b), (a.scaleY = e)) : (g == GT1565.prototype.setup ? ((g = a.data.scaleX), (d = a.data.scaleY)) : ((g = a.scaleX), (d = a.scaleY)), k == GT1345.prototype.out ? ((b = Math.abs_1(b) * this.mathSignum_1(g)), (e = Math.abs_1(e) * this.mathSignum_1(d))) : ((g = Math.abs_1(g) * this.mathSignum_1(b)), (d = Math.abs_1(d) * this.mathSignum_1(e))), (a.scaleX = g + (b - g) * f), (a.scaleY = d + (e - d) * f)); } }, mathSignum_1: function (a) { return 0 == a ? 0 : 0 < a ? 1 : -1; }, }, "GT1300", [] ), GT1301 = GT1090.extend( { initialConstructor_0: function () { GT1090.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1090.prototype.initialConstructor_1.call(this, a); }, getPropertyId_0: function () { return (GT1344.prototype.shear << 24) + this.boneIndex; }, apply_7: function (a, b, d, e, f, g, k) { a = a.bones.get_1(this.boneIndex); b = this.frames; if (d < b[0]) switch (g) { case GT1565.prototype.setup: a.shearX = a.data.shearX; a.shearY = a.data.shearY; break; case GT1565.prototype.current: (a.shearX += (a.data.shearX - a.shearX) * f), (a.shearY += (a.data.shearY - a.shearY) * f); } else { if (d >= b[b.length - this.ENTRIES]) (e = b[b.length + this.PREV_X]), (k = b[b.length + this.PREV_Y]); else { var m = GT1496.prototype.binarySearch_3(b, d, this.ENTRIES); e = b[m + this.PREV_X]; k = b[m + this.PREV_Y]; var n = b[m]; d = this.getCurvePercent_2(Math.div(m, this.ENTRIES) - 1, 1 - (d - n) / (b[m + this.PREV_TIME] - n)); e += (b[m + this.X] - e) * d; k += (b[m + this.Y] - k) * d; } g == GT1565.prototype.setup ? ((a.shearX = a.data.shearX + e * f), (a.shearY = a.data.shearY + k * f)) : ((a.shearX += (a.data.shearX + e - a.shearX) * f), (a.shearY += (a.data.shearY + k - a.shearY) * f)); } }, }, "GT1301", [] ), GT1626 = Class.extend( { initialConstructor_0: function () { this.keyPool = this.lookup = this.attachments = this.name = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.keyPool = this.lookup = this.attachments = this.name = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.name = a; this.attachments = new GT1293(); this.lookup = new GT1644(); this.keyPool = new GT1574(64); }, addAttachment_3: function (a, b, d) { null == d && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: attachment cannot be null."); 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotIndex must be >= 0."); var e = this.keyPool.obtain_0(); e.set_2(a, b); this.attachments.put_2(e, d); }, addAttachments_1: function (a) { a = a.attachments.getTable_0(); for (var b = 0; b < a.size_0(); ++b) { var d = a.elementAt_1(b), e = d.getKey_0(); this.addAttachment_3(e.slotIndex, e.name, d.getValue_0()); } }, getAttachment_2: function (a, b) { for (var d = this.attachments.getTable_0(), e = 0; e < d.size_0(); ++e) { var f = d.elementAt_1(e), g = f.getKey_0(); if (g.slotIndex == a && g.name.equals_1(b)) return f.getValue_0(); } return null; }, findNamesForSlot_2: function (a, b) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: names cannot be null."); 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotIndex must be >= 0."); for (var d = this.attachments.getTable_0(), e = 0; e < d.size_0(); ++e) { var f = d.elementAt_1(e).getKey_0(); f.slotIndex == a && b.add_1(f.name); } }, findAttachmentsForSlot_2: function (a, b) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: attachments cannot be null."); 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: slotIndex must be >= 0."); for (var d = this.attachments.getTable_0(), e = 0; e < d.size_0(); ++e) { var f = d.elementAt_1(e); f.getKey_0().slotIndex == a && b.add_1(f.getValue_0()); } }, clear_0: function () { for (var a = this.attachments.getTable_0(), b = 0; b < a.size_0(); ++b) { var d = a.elementAt_1(b).getKey_0(); this.keyPool.free_1(d); } this.attachments.clear_0(); }, getName_0: function () { return this.name; }, toString: function () { return this.name; }, attachAll_2: function (a, b) { for (var d = b.attachments.getTable_0(), e = 0; e < d.size_0(); ++e) { var f = d.elementAt_1(e), g = f.getKey_0(), k = g.slotIndex, m = a.slots.get_1(k); m.attachment == f.getValue_0() && ((f = this.getAttachment_2(k, g.name)), null != f && m.setAttachment_1(f)); } }, }, "GT1626", [] ), GT1644 = Class.extend( { initialConstructor_0: function () { this.slotIndex = 0; this.name = null; this.hashcode = 0; Class.prototype.initialConstructor_0.call(this); }, set_2: function (a, b) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); this.slotIndex = a; this.name = b; this.hashcode = 31 * (31 + GT1347.prototype.hashCode_1(b)) + a; }, hashCode_0: function () { return this.hashcode; }, equals_1: function (a) { return null != a && this.slotIndex == a.slotIndex && this.name.equals_1(a.name) ? !0 : !1; }, toString: function () { return this.slotIndex + ":" + this.name; }, }, "GT1644", [] ), GT1574 = GT1541.extend( { initialConstructor_0: function () { GT1541.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1541.prototype.initialConstructor_1.call(this, a); }, newObject_0: function () { return new GT1644(); }, }, "GT1574", [] ); GT1626.prototype.dependenyHack = GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND; var GT1623 = Class.extend( { initialConstructor_0: function () { this.cardid = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.cardid = 0; this.cardid = a; }, initialConstructor_3: function (a, b, d) { this.cardid = 0; this.cardid = this.calculateId_3(a, b, d); }, initialConstructor_2: function (a, b) { this.cardid = 0; GT1650.prototype.assertExp_2(0 <= a, "card = " + a); GT1650.prototype.assertExp_2(0 <= b, "cardset = " + b); GT1650.prototype.assertExp_2(a < GT1623.prototype.numCardsInSet_0(), "card = " + a + ", numCardsInSet() = " + GT1623.prototype.numCardsInSet_0()); this.cardid = b * GT1623.prototype.numCardsInSet_0() + a - 0; }, id_0: function () { return this.cardid; }, setId_1: function (a) { this.cardid = a; }, asString_0: function () { if (0 > this.cardid) return "?"; var a, b = this.set_0(); a = "" + b; 0 == b && (a = ""); b = this.idWithoutSet_0(); return (a = "" + a + GT1623.prototype.idCharacters.substring_2(b, b + 1 - 0)); }, fromString_1: function (a) { if (63 == a.charAt_1(0)) this.cardid = -1; else if (2 <= a.length_0()) { var b = GT1623.prototype.idCharacters.indexOf_1(a.charAt_1(1)); this.cardid = (a.charAt_1(0) - 48) * GT1623.prototype.numCardsInSet_0() + b - 0; } else this.cardid = GT1623.prototype.idCharacters.indexOf_1(a.charAt_1(0)); }, suit_0: function () { if (0 > this.cardid) return GT1536.prototype.UNKNOWN; GT1650.prototype.assertExp_2(!this.isJoker_0(), "do not call suit() for jokers"); for (var a = this.cardid % GT1623.prototype.numCardsInSet_0(), b = 0; b < GT1623.prototype.numSuits_0(); b++) { var d = this.numRanks_1(this.getSuitByIdx_1(b)); if (a < d) return GT1623.prototype.suits[b]; a -= d; } return GT1536.prototype.UNKNOWN; }, value_0: function () { GT1650.prototype.assertExp_2(!this.isJoker_0(), "do not call value() for jokers"); for (var a = this.cardid % GT1623.prototype.numCardsInSet_0(), b = 0; b < GT1623.prototype.numSuits_0(); b++) { var d = this.numRanks_1(this.getSuitByIdx_1(b)); if (a < d) return this.getValue_2(a, GT1623.prototype.suits[b]); a -= d; } return GT1501.prototype.UNKNOWN; }, rank_0: function () { if (0 > this.cardid) return -1; GT1650.prototype.assertExp_2(!this.isJoker_0(), "do not call rank() for jokers"); for (var a = this.cardid % GT1623.prototype.numCardsInSet_0(), b = 0; b < GT1623.prototype.numSuits_0(); b++) { var d = this.numRanks_1(this.getSuitByIdx_1(b)); if (a < d) return a; a -= d; } return -1; }, set_0: function () { if (0 > this.cardid) return -1; GT1650.prototype.assertExp_2(0 != GT1623.prototype.numCardsInSet_0(), "no cards in set"); return Math.div(this.cardid, GT1623.prototype.numCardsInSet_0()); }, idWithoutSet_0: function () { return 0 > this.cardid ? -1 : this.cardid % GT1623.prototype.numCardsInSet_0(); }, isJoker_0: function () { if (0 > this.cardid) return !1; var a = this.idWithoutSet_0(); return a >= GT1623.prototype.jokerOffset_0() && a < GT1623.prototype.jokerOffset_0() + GT1623.prototype.numJokers_0(); }, equals_1: function (a) { return null != a && instanceOf(a, GT1623) ? this.cardid == a.id_0() : !1; }, hashCode_0: function () { return this.cardid; }, toString: function () { return this.isJoker_0() ? "JK" : "" + this.suit_0().toString() + this.value_0().toString(); }, }, "GT1623", [] ); GT1623.prototype.hasSameRanksInEverySuit_0 = function () { return GT1623.prototype.sameRanksInEverySuit; }; GT1623.prototype.getRank_1 = function (a) { GT1650.prototype.assertExp_2(GT1623.prototype.sameRanksInEverySuit, "only use this method with same ranksize in all suits. call getRank(value, suit) instead."); for (var b = GT1623.prototype.ranks[0].length, d = 1; d < GT1623.prototype.ranks.length; d++) GT1650.prototype.assertExp_2(b == GT1623.prototype.ranks[d].length, "only use this method with same ranksize in all suits"); for (d = 0; d < GT1623.prototype.ranks[0].length; d++) if (GT1623.prototype.ranks[0][d] == a) return d; return -1; }; GT1623.prototype.getRank_2 = function (a, b) { var d = this.getSuitIdx_1(b); if (-1 == d) return -1; for (var e = 0; e < GT1623.prototype.ranks[d].length; e++) if (GT1623.prototype.ranks[d][e] == a) return e; return -1; }; GT1623.prototype.getValue_1 = function (a) { var b = GT1623.prototype.ranks[0].length; GT1650.prototype.assertExp_2(GT1623.prototype.sameRanksInEverySuit, "only use this method with same ranksize in all suits. call getValue(rank, suit) instead."); for (var d = 1; d < GT1623.prototype.ranks.length; d++) GT1650.prototype.assertExp_2(b == GT1623.prototype.ranks[d].length, "only use this method with same ranksize in all suits. call getValue(rank, suit) instead."); return this.getValue_2(a, GT1623.prototype.suits[0]); }; GT1623.prototype.getValue_2 = function (a, b) { var d = this.getSuitIdx_1(b); return -1 == d || 0 > a || 0 > d || d >= GT1623.prototype.ranks.length || a >= GT1623.prototype.ranks[d].length ? GT1501.prototype.UNKNOWN : GT1623.prototype.ranks[d][a]; }; GT1623.prototype.numCardsInSet_0 = function () { return GT1623.prototype.cardsinset; }; GT1623.prototype.jokerOffset_0 = function () { return GT1623.prototype.jokeroffset; }; GT1623.prototype.numJokers_0 = function () { return GT1623.prototype.numjokers; }; GT1623.prototype.numRanks_0 = function () { GT1650.prototype.assertExp_2(GT1623.prototype.sameRanksInEverySuit, "only use this method with same ranksize in all suits. call getRank(value, suit) instead."); for (var a = 0, b = 0; b < GT1623.prototype.ranks.length; b++) a = Math.max_2(a, GT1623.prototype.ranks[b].length); return a; }; GT1623.prototype.numRanks_1 = function (a) { return GT1623.prototype.ranks[this.getSuitIdx_1(a)].length; }; GT1623.prototype.numSuits_0 = function () { return GT1623.prototype.suits.length; }; GT1623.prototype.setCardStackInfo_3 = function (a, b, d) { GT1650.prototype.assertExp_2(null != a, "ranks is null"); GT1650.prototype.assertExp_2(0 < a.length, "no ranks found"); GT1650.prototype.assertExp_2(0 <= d, "numjokers <0"); GT1623.prototype.numjokers = d; GT1623.prototype.suits = b; GT1623.prototype.ranks = [].createArray(b.length, null); for (b = GT1623.prototype.jokeroffset = 0; b < GT1623.prototype.ranks.length; b++) (GT1623.prototype.ranks[b] = a), (GT1623.prototype.jokeroffset += GT1623.prototype.ranks[b].length); GT1623.prototype.cardsinset = GT1623.prototype.jokeroffset + GT1623.prototype.numjokers; GT1623.prototype.sameRanksInEverySuit = !0; }; GT1623.prototype.setCardStackInfo_2 = function (a, b) { GT1650.prototype.assertExp_2(a.length == b.length, "Anzahl der suits im rank-array ungleich anzahl der angegebenen suits"); GT1623.prototype.numjokers = 0; GT1623.prototype.ranks = a; GT1623.prototype.suits = b; for (var d = (GT1623.prototype.jokeroffset = 0); d < GT1623.prototype.ranks.length; d++) GT1623.prototype.jokeroffset += GT1623.prototype.ranks[d].length; GT1623.prototype.cardsinset = GT1623.prototype.jokeroffset + GT1623.prototype.numjokers; GT1623.prototype.sameRanksInEverySuit = !1; }; GT1623.prototype.createFromString_1 = function (a) { if (2 <= a.length_0()) { var b = a.charAt_1(0) - 48; a = GT1623.prototype.idCharacters.indexOf_1(a.charAt_1(1)); if (0 > a) return null; b = b * GT1623.prototype.numCardsInSet_0() + a - 0; return new GT1623(b); } return new GT1623(GT1623.prototype.idCharacters.indexOf_1(a.charAt_1(0))); }; GT1623.prototype.getSuitByIdx_1 = function (a) { return 0 > a || a >= GT1623.prototype.suits.length ? GT1536.prototype.UNKNOWN : GT1623.prototype.suits[a]; }; GT1623.prototype.getSuitIdx_1 = function (a) { for (var b = 0; b < GT1623.prototype.suits.length; b++) if (GT1623.prototype.suits[b] == a) return b; return -1; }; GT1623.prototype.calculateId_3 = function (a, b, d) { GT1650.prototype.assertExp_2(0 <= a.idx_0(), "suit.idx() = " + a.idx_0()); GT1650.prototype.assertExp_2(0 <= b.idx_0(), "value.idx() = " + b.idx_0()); GT1650.prototype.assertExp_2(0 <= d, "cardset = " + d); d *= GT1623.prototype.numCardsInSet_0(); for (var e = 0; e < this.getSuitIdx_1(a); e++) d += this.numRanks_1(this.getSuitByIdx_1(e)); return (d += this.getRank_2(b, a)); }; GT1623.prototype.idCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$()[]{}<>\u00c8\u00c9\u00ca\u00cb\u00cc\u00cd\u00ce\u00cf\u00d0\u00d1\u00d2\u00d3\u00d4\u00d5\u00d6\u00d7\u00d8\u00d9\u00da\u00db\u00dc\u00dd\u00de\u00df\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6\u00e7\u00e8\u00e9\u00ea\u00eb\u00ec\u00ed\u00ee\u00ef\u00f0\u00f1\u00f2\u00f3\u00f4\u00f5\u00f6\u00f7\u00f8\u00f9\u00fa\u00fb\u00fc\u00fd\u00fe\u00ff"; GT1623.prototype.numjokers = 0; GT1623.prototype.jokeroffset = 0; GT1623.prototype.cardsinset = 0; GT1623.prototype.ranks = null; GT1623.prototype.suits = null; GT1623.prototype.sameRanksInEverySuit = !1; var GT1650 = Class.extend( { initialConstructor_0: function () { GT1650.prototype.assertExp_2(!1, "this class shall never be instanciated"); }, }, "GT1650", [] ); GT1650.prototype.supressLogLevelConsoleOutput_0 = function () { GT1650.prototype.noLogLevelConsoleOutput = !0; }; GT1650.prototype.assertFailed_impl_1 = function (a) { this.log_1((GT1650.prototype.debugMode ? "Crash: " : "ABSTRACT Assertion failed: ") + a); for (var b = GT1302.prototype.getPrintableStackTrace_2(3, Integer.MAX_VALUE), d = 0; d < b.length; d++) this.log_1((0 < d ? " " : "") + b[d]); if (null != GT1650.prototype.errorLogger) { var e = new StringBuffer(); e.append_1("ABSTRACT Assertion failed: "); e.append_1(a); e.append_1("\n"); for (d = 0; d < b.length; d++) e.append_1(" "), e.append_1(b[d]), e.append_1("\n"); GT1650.prototype.errorLogger.writeError_1(e.toString()); } GT1650.prototype.debugMode && GT1302.prototype.shutdownSystemAfterError_0(); }; GT1650.prototype.out_1 = function (a) { this.log_1(a.toString()); }; GT1650.prototype.printlnIf_2 = function (a, b) { a && GT1650.prototype.isDebugMode_0() && this.log_1(b.toString()); }; GT1650.prototype.println_1 = function (a) { GT1650.prototype.isDebugMode_0() && this.log_1(a.toString()); }; GT1650.prototype.print_1 = function (a) { GT1650.prototype.isDebugMode_0() && this.log_1(a.toString()); }; GT1650.prototype.printStackTraceElement_0 = function () { if (GT1650.prototype.isDebugMode_0()) { var a = GT1302.prototype.getPrintableStackTrace_2(2, 1); 1 <= a.length && this.log_1(a[0]); } }; GT1650.prototype.printStackTrace_0 = function () { if (GT1650.prototype.isDebugMode_0()) for (var a = GT1302.prototype.getPrintableStackTrace_2(2, Integer.MAX_VALUE), b = 0; b < a.length; b++) this.log_1(a[b]); }; GT1650.prototype.isOn_0 = function () { return GT1650.prototype.isDebugMode_0(); }; GT1650.prototype.turnOff_0 = function () { this.setDebugMode_2(!1, !1); }; GT1650.prototype.turnOn_1 = function (a) { null != a && a.equals_1("dkdiellfaokjdaslkjwoikwsdavcivcikertpperge") && this.setDebugMode_2(!0, !1); }; GT1650.prototype.addRemoteLoggerAttributes_1 = function (a) { null != GT1650.prototype.remoteLogger && GT1650.prototype.remoteLogger.addAttributes_1(a); }; GT1650.prototype.setErrorLogger_1 = function (a) { GT1650.prototype.errorLogger = a; }; GT1650.prototype.setRemoteLogger_1 = function (a) { GT1650.prototype.remoteLogger = a; }; GT1650.prototype.setLogTarget_1 = function (a) { GT1650.prototype.logTarget = a; }; GT1650.prototype.assertFailed_1 = function (a) { this.assertFailed_impl_1(a); }; GT1650.prototype.assertExp_2 = function (a, b) { a || this.assertFailed_impl_1(b); }; GT1650.prototype.stackTrace_0 = function () { for (var a = GT1302.prototype.getPrintableStackTrace_2(2, Integer.MAX_VALUE), b = 0; b < a.length; b++) this.log_1((0 < b ? " " : "") + a[b]); }; GT1650.prototype.logRemote_3 = function (a, b, d) { if (null != GT1650.prototype.logTarget) GT1650.prototype.logTarget.println_1(a); else if (!GT1650.prototype.noLogLevelConsoleOutput || d) { d = ""; if (null != b) { d += " {"; for (var e = 0; e + 1 < b.length; e += 2) d += "[" + b[e] + "," + b[e + 1] + "]"; d += "}"; } java_lang_System.prototype.out.println_1("" + a + d); } null != GT1650.prototype.remoteLogger && GT1650.prototype.remoteLogger.log_2(a, b); }; GT1650.prototype.log_impl_2 = function (a, b) { null != GT1650.prototype.logTarget ? GT1650.prototype.logTarget.println_1(a) : (GT1650.prototype.noLogLevelConsoleOutput && !b) || java_lang_System.prototype.out.println_1(a); }; GT1650.prototype.log_1 = function (a) { this.log_impl_2(a, !0); }; GT1650.prototype.isDebugMode_0 = function () { return GT1650.prototype.debugMode; }; GT1650.prototype.setDebugMode_2 = function (a, b) { GT1650.prototype.debugModeLocked ? a != GT1650.prototype.debugMode && this.log_1("Debug mode can only be changed if not locked already") : ((GT1650.prototype.debugModeLocked = b), GT1650.prototype.debugMode != a && ((GT1650.prototype.debugMode = a) ? this.log_1("ABSTRACT Debug mode is turned on") : this.log_1("ABSTRACT Debug remove"))); }; GT1650.prototype.decodeAndSetLogLevels_1 = function (a) { a = GT1677.prototype.tokenize_2(a, ","); for (var b = 0; b < a.length; b++) { var d = GT1677.prototype.tokenize_2(a[b], ":"); if (2 <= d.length) { for (var e = d[0].trim_0(), f = GT1677.prototype.toUpperCaseAZ_1(d[1]).charAt_1(0), g = "NIVT".indexOf_1(f), k = 0, m = "+"; d[1].endsWith_1(m); ) k++, (m += "+"); 0 <= g && 4 > g && (GT1650.prototype.log_1("Log level for " + e + ":" + GT1672.prototype.charToString_1(f) + (0 < k ? m : "")), this.setLogLevel_3(e, g, k)); } } }; GT1650.prototype.setLogLevel_3 = function (a, b, d) { this.getLogFlags_1(a).setLevel_2(b, d); }; GT1650.prototype.getLogCategories_0 = function () { for (var a = new java_util_JavaScriptVector(), b = GT1650.prototype.logFlagsList.keys_0(); b.hasMoreElements_0(); ) { var d = b.nextElement_0(); a.addElement_1(d); } return a; }; GT1650.prototype.printLogFlags_0 = function () { for (var a = GT1650.prototype.logFlagsList.keys_0(); a.hasMoreElements_0(); ) { var b = a.nextElement_0(), d = GT1650.prototype.logFlagsList.get_1(b), e = ": none"; d.info && (e = ": info"); d.verbose && (e = ": verbose"); d.trace && (e = ": trace"); java_lang_System.prototype.out.println_1("" + b + e + (d.isPrintingLineNumber_0() ? "+" : "")); } }; GT1650.prototype.getLogFlags_1 = function (a) { null == GT1650.prototype.logFlagsList && (GT1650.prototype.logFlagsList = new java_util_JavaScriptHashtable()); a = GT1677.prototype.toUpperCaseAZ_1(a); var b = GT1650.prototype.logFlagsList.get_1(a); null == b && ((b = new GT1627()), GT1650.prototype.logFlagsList.put_2(a, b)); return b; }; GT1650.prototype.debugMode = !1; GT1650.prototype.debugModeLocked = !1; GT1650.prototype.noLogLevelConsoleOutput = !1; GT1650.prototype.logTarget = null; GT1650.prototype.remoteLogger = null; GT1650.prototype.logFlagsList = null; GT1650.prototype.errorLogger = null; var GT1667 = Class.extend( { initialConstructor_0: function () { this.code = 0; this.description = null; this.errorPolicyType = 0; this.code = GT1667.prototype.NO_ERROR; this.description = null; this.setErrorPolicy_1(GT1655.prototype.ERROR_POLICY_STRICT); }, initialConstructor_2: function (a, b) { this.code = 0; this.description = null; this.errorPolicyType = 0; this.setErrorPolicy_1(GT1655.prototype.ERROR_POLICY_STRICT); this.update_2(a, b); }, update_2: function (a, b) { this.code = a; this.description = b; if (!this.isOk_0() && GT1667.prototype.LOG.info) { var d; d = "[ErrorState] (ERROR_POLICY_STRICT) set to statusCode: " + this.code; d = d + ", description: " + ("" + this.description); GT1650.prototype.log_1(d); } this.isErrorWithSoftPolicy_0() && GT1667.prototype.LOG.info && ((d = "[ErrorState] (ERROR_POLICY_SOFT, des-serialization will continue) set to statusCode: " + this.code), (d += ", description: "), (d += "" + this.description), GT1650.prototype.log_1(d)); }, setErrorPolicy_1: function (a) { this.errorPolicyType = a; }, isOk_0: function () { return this.isSoftPolicy_0() ? !0 : this.code == GT1667.prototype.NO_ERROR; }, isSoftPolicy_0: function () { return this.errorPolicyType == GT1655.prototype.ERROR_POLICY_SOFT; }, isErrorWithSoftPolicy_0: function () { return this.code != GT1667.prototype.NO_ERROR && this.isSoftPolicy_0(); }, }, "GT1667", [] ); GT1667.prototype.NO_ERROR = 0; GT1667.prototype.ERRORSTATE_LOG_CATEGORY = "ERROR_STATE"; GT1667.prototype.LOG = GT1650.prototype.getLogFlags_1(GT1667.prototype.ERRORSTATE_LOG_CATEGORY); var GT1668 = Class.extend( { initialConstructor_0: function () { this.normal = null; this.d = 0; this.pntOnPlane = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.normal = null; this.d = 0; this.pntOnPlane = null; this.pntOnPlane = a; this.normal = new GT1641(b); this.normal.normalize_0(); this.d = -GT1641.prototype.dot_2(a, this.normal); }, distance_1: function (a) { return GT1641.prototype.dot_2(a, this.normal) + this.d; }, isInside_1: function (a) { return 0 <= this.distance_1(a); }, intersect_2: function (a, b) { var d = this.distance_1(a), e = this.distance_1(b); return d / (d - e); }, intersectPosition_2: function (a, b) { var d = this.intersect_2(a, b), e = GT1641.prototype.subtract_2(b, a); e.scale_1(d); return GT1641.prototype.add_2(a, e); }, intersectRay_2: function (a, b) { b.normalize_0(); var d = GT1641.prototype.dot_2(this.normal, GT1641.prototype.subtract_2(this.pntOnPlane, a)) / GT1641.prototype.dot_2(this.normal, b); return GT1641.prototype.add_2(a, GT1641.prototype.scale_2(b, d)); }, }, "GT1668", [] ); GT1668.prototype.XZPlane = new GT1668(new GT1641(0, 0, 0), new GT1641(0, 1, 0)); GT1668.prototype.XYPlane = new GT1668(new GT1641(0, 0, 0), new GT1641(0, 0, 1)); GT1668.prototype.YZPlane = new GT1668(new GT1641(0, 0, 0), new GT1641(1, 0, 0)); var GT1561 = GT1612.extend( { initialConstructor_0: function () { this.state = 0; GT1612.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = 0; GT1612.prototype.initialConstructor_0.call(this); this.state = a | 269488144; }, nextByte_0: function () { var a = this.state, a = a ^ (a << 13), a = a ^ (a >>> 17); this.state = a ^= a << 5; return JSUTIL.MathUtil.castToByte(a); }, setSeed_1: function (a) { this.resetInternalBitBuffer_0(); this.state = a | 269488144; }, }, "GT1561", [] ), GT600 = GT832.extend( { initialConstructor_0: function () { GT832.prototype.initialConstructor_0.call(this); }, fireStateEventImpl_2: function (a, b) {}, fireConsoleEventImpl_2: function (a, b) {}, fireErrorEventImpl_2: function (a, b) {}, fireActionImpl_1: function (a) { GT832.prototype.fireActionImpl_1.call(this, a); }, }, "GT600", [] ); GT600.prototype.LOG = GT1650.prototype.getLogFlags_1("wrapperv2"); var GT586 = GT832.extend( { initialConstructor_0: function () { GT832.prototype.initialConstructor_0.call(this); this.fireWithoutListeners = !0; }, fireStateEventImpl_2: function (a, b) { this.logEvent_2(a, b); }, fireConsoleEventImpl_2: function (a, b) { this.logEvent_2(a, b); }, fireErrorEventImpl_2: function (a, b) { this.logEvent_2(a, b); }, logEvent_2: function (a, b) { var d = GT1678.prototype.serialize_1(b); null != d && GT586.prototype.LOG.i_1(d); }, }, "GT586", [] ); GT586.prototype.LOG = GT1650.prototype.getLogFlags_1("wrapperv2"); var GT1466 = Class.extend( { initialConstructor_0: function () { this.listeners = this.blocker = null; this.crypto = !1; this.protocoloptions = null; this.connectTimeout = 0; this.shortcut = this.connection = this.outgoing = this.incoming = null; this.receiveDelay = this.sendDelay = this.previousstatus = this.status = 0; this.disconnectatreceive = this.disconnectatsend = !1; this.delayReceiveUntil = this.delaySendUntil = 0; this.runWithoutConnection = !1; this.packetWatchers = null; this.callednotifyblock = !1; this.nonBlockingConnectionProvider = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.listeners = this.blocker = null; this.crypto = !1; this.protocoloptions = null; this.connectTimeout = 0; this.shortcut = this.connection = this.outgoing = this.incoming = null; this.receiveDelay = this.sendDelay = this.previousstatus = this.status = 0; this.disconnectatreceive = this.disconnectatsend = !1; this.delayReceiveUntil = this.delaySendUntil = 0; this.runWithoutConnection = !1; this.packetWatchers = null; this.callednotifyblock = !1; this.nonBlockingConnectionProvider = null; this.nonBlockingConnectionProvider = a; this.listeners = [].createArray(0); this.packetWatchers = new java_util_JavaScriptVector(); this.initnew_0(); }, initnew_0: function () { this.blocker = null; this.crypto = !1; this.protocoloptions = null; this.connectTimeout = 0; this.incoming = new java_util_JavaScriptVector(); this.outgoing = new java_util_JavaScriptVector(); this.shortcut = this.connection = null; this.previousstatus = this.status = GT1466.prototype.STATUS_BEFORECONNECT; this.receiveDelay = this.sendDelay = 0; this.disconnectatreceive = this.disconnectatsend = !1; this.delayReceiveUntil = this.delaySendUntil = 0; this.callednotifyblock = !1; }, setBlocker_1: function (a) { this.blocker = a; }, addListener_1: function (a) { if (this.status == GT1466.prototype.STATUS_BEFORECONNECT) { var b = [].createArray(this.listeners.length + 1); java_lang_System.prototype.arraycopy_5(this.listeners, 0, b, 0, this.listeners.length); b[this.listeners.length] = a; this.listeners = b; } }, setCrypto_1: function (a) { this.status == GT1466.prototype.STATUS_BEFORECONNECT && (this.crypto = a); }, setProtocolOptions_1: function (a) { this.status == GT1466.prototype.STATUS_BEFORECONNECT && (this.protocoloptions = a); }, setConnectTimeout_1: function (a) { this.status == GT1466.prototype.STATUS_BEFORECONNECT && (this.connectTimeout = a); }, setRunWithoutConnection_1: function (a) { this.runWithoutConnection = a; }, addPacketWatcher_1: function (a) { this.packetWatchers.addElement_1(a); }, setShortcut_1: function (a) { this.status == GT1466.prototype.STATUS_BEFORECONNECT && (this.shortcut = a); }, open_2: function (a, b) { this.status == GT1466.prototype.STATUS_BEFORECONNECT && (this.incoming.setSize_1(0), this.outgoing.setSize_1(0), null != this.shortcut || this.runWithoutConnection ? ((this.status = GT1466.prototype.STATUS_OPEN), this.incoming.addElement_1(new Integer(GT1466.prototype.NOTIFICATION_ESTABLISHED))) : ((this.connection = this.nonBlockingConnectionProvider.createNonBlockingConnection_5(this, a, b, this.protocoloptions, this.crypto)), (this.status = GT1466.prototype.STATUS_CONNECTING))); }, close_1: function (a) { this.status == GT1466.prototype.STATUS_OPEN && (null == this.connection || a ? (null != this.connection && this.connection.kill_0(), (this.connection = null), (this.status = GT1466.prototype.STATUS_BEFORECONNECT), this.incoming.addElement_1(new Integer(GT1466.prototype.NOTIFICATION_LOST))) : (this.connection.close_0(), (this.status = GT1466.prototype.STATUS_CLOSING))); }, close_0: function () { this.close_1(!1); }, kill_0: function () { null != this.connection && (this.connection.kill_0(), (this.connection = null)); this.initnew_0(); }, poll_1: function (a) { if (null != this.incoming && null != this.outgoing) { if (this.status == GT1466.prototype.STATUS_OPEN) for (; 0 < this.outgoing.size_0() && a >= this.delaySendUntil; ) { var b = this.outgoing.elementAt_1(0); this.outgoing.removeElementAt_1(0); null != this.shortcut ? this.shortcut.sendPacket_1(b) : null != this.connection && (this.connection.sendPacket_1(b), this.disconnectatsend && this.connection.close_0()); this.delaySendUntil = a + this.sendDelay; } var d = !1, b = !0; 0 == this.incoming.size_0() && (this.delayReceiveUntil = a + this.receiveDelay); for (; 0 < this.incoming.size_0() && a >= this.delayReceiveUntil && b; ) { b = !0; if (null != this.blocker) { for (var d = new java_util_JavaScriptVector(), e = !1, f = 0; f < this.incoming.size_0(); f++) { var g = this.incoming.elementAt_1(f); instanceOf(g, Integer) ? (e = !0) : instanceOf(g, java_util_JavaScriptVector) && d.addElement_1(g.elementAt_1(0)); } if (this.blocker.mustBlockQueue_2(d, e)) { this.callednotifyblock || (this.blocker.checkBlockingState_0(), (this.callednotifyblock = !0)); return; } } this.callednotifyblock = !1; g = this.incoming.elementAt_1(0); this.incoming.removeElementAt_1(0); d = !0; if (instanceOf(g, Integer)) switch (g.intValue_0()) { case GT1466.prototype.NOTIFICATION_ESTABLISHED: GT1466.prototype.LOG.t_1("Delivering: Connection established"); for (f = 0; f < this.listeners.length; f++) if ((this.listeners[f].connectionEstablished_0(), null == this.listeners)) return; break; case GT1466.prototype.NOTIFICATION_NOTESTABLISHED: GT1466.prototype.LOG.t_1("Delivering: Connection not established"); for (f = 0; f < this.listeners.length; f++) if ((this.listeners[f].connectionNotEstablished_0(), null == this.listeners)) return; break; case GT1466.prototype.NOTIFICATION_LOST: for (GT1466.prototype.LOG.t_1("Delivering: Connection lost"), f = 0; f < this.listeners.length; f++) if ((this.listeners[f].connectionLost_0(), null == this.listeners)) return; } else for (f = g, g = f.elementAt_1(0).byteValue_0(), e = f.elementAt_1(1), GT1466.prototype.LOG.t_1("Delivering: incomming packet"), f = 0; f < this.listeners.length; f++) if (((b = this.listeners[f].processQueuePacket_2(g, e)), null == this.listeners)) return; this.disconnectatreceive && null != this.connection && this.connection.close_0(); } null != this.blocker && d && this.blocker.checkBlockingState_0(); } }, incomingQueueSize_0: function () { return null == this.incoming ? 0 : this.incoming.size_0(); }, setSendDelay_1: function (a) { this.sendDelay = a; }, setReceiveDelay_1: function (a) { this.receiveDelay = a; }, setDisconnectTrigger_2: function (a, b) { this.disconnectatsend = a; this.disconnectatreceive = b; }, sendPacket_1: function (a) { if (this.status == GT1466.prototype.STATUS_OPEN || this.status == GT1466.prototype.STATUS_CONNECTING) if ((this.outgoing.addElement_1(a), GT1466.prototype.LOG.info)) { var b = "OUT"; if (0 < a.length) { b = b + " " + a[0]; a = GT1388.prototype.decomposePacket_1(a); for (var d = 0; d < a.length; d++) b = b + " " + a[d]; } GT1466.prototype.LOG.log_1(b); } }, connectionEstablished_0: function () { this.status = GT1466.prototype.STATUS_OPEN; this.incoming.addElement_1(new Integer(GT1466.prototype.NOTIFICATION_ESTABLISHED)); GT1466.prototype.LOG.i_1("Connection established"); }, connectionNotEstablished_0: function () { this.connection = null; this.status = GT1466.prototype.STATUS_BEFORECONNECT; this.incoming.addElement_1(new Integer(GT1466.prototype.NOTIFICATION_NOTESTABLISHED)); GT1466.prototype.LOG.i_1("Connection not established"); }, connectionLost_0: function () { this.connection = null; this.status = GT1466.prototype.STATUS_BEFORECONNECT; this.incoming.addElement_1(new Integer(GT1466.prototype.NOTIFICATION_LOST)); GT1466.prototype.LOG.i_1("Connection lost"); }, processPackets_1: function (a) { if (null != this.packetWatchers) for (var b = 0; b < this.packetWatchers.size_0(); b++) this.packetWatchers.elementAt_1(b).packets_1(a); var d = !1; GT1466.prototype.LOG.verbose ? (d = !0) : GT1466.prototype.LOG.info && (5 > a.size_0() ? (d = !0) : GT1466.prototype.LOG.log_1("IN <" + a.size_0() + " packets>")); for (b = 0; b < a.size_0(); b++) { var e = a.elementAt_1(b), f = null; instanceOf(e, java_util_JavaScriptVector) ? (f = e) : (GT1466.prototype.LOG.i_1("WARNING: This plattform sends packets that not yet have been decomposed!!"), (f = new java_util_JavaScriptVector()), 0 < e.length && (f.addElement_1(new java_lang_Byte(e[0])), f.addElement_1(GT1388.prototype.decomposePacket_1(e)))); if (2 <= f.size_0() && (this.incoming.addElement_1(f), d)) { for (var e = f.elementAt_1(0).byteValue_0(), f = f.elementAt_1(1), e = "IN " + e, g = 0; g < f.length; g++) e = e + " " + f[g]; GT1466.prototype.LOG.log_1(e); } } }, }, "GT1466", [GT1277, GT1434] ); GT1466.prototype.LOG = GT1650.prototype.getLogFlags_1("mux.clientlib"); GT1466.prototype.STATUS_BEFORECONNECT = 0; GT1466.prototype.STATUS_CONNECTING = 1; GT1466.prototype.STATUS_OPEN = 2; GT1466.prototype.STATUS_CLOSING = 3; GT1466.prototype.STATUS_KILLED = 4; GT1466.prototype.NOTIFICATION_ESTABLISHED = 1; GT1466.prototype.NOTIFICATION_NOTESTABLISHED = 2; GT1466.prototype.NOTIFICATION_LOST = 3; var GT833 = Class.extend( { initialConstructor_7: function (a, b, d, e, f, g, k) { this.initialConstructor_9(a, b, d, e, f, g, k, "1" === JSUTIL.getParameter("forcehttp") ? !0 : !1, "1" === JSUTIL.getParameter("forcewebsocket") ? !0 : !1); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.httpconnection = null; this.listeners = [a]; this.hostName = b; this.serverIndex = d; this.logLevel = e; this.crypto = g; this.syncObject = k; this.closebeforeconnect = this.receiverStarted = !1; this.connection = null; this.sendBlocked = this.sendInProgress = !1; this.receiveDelay = this.sendDelay = 0; this._connectionOpened = !1; this.forceHttp = m; this.forceWebsocket = n; (!DEVICE.stock && !0 !== this.forceHttp && !DEVICE.ios5) || this.forceWebsocket || ((window.WebSocket = null), (window.MozWebSocket = null)); if (null != window.WebSocket) this.connection = new WebSocket("wss://wssapi.3gtraffic.com:9008/pusher"); else if (null != window.MozWebSocket) this.connection = new MozWebSocket("wss://wssapi.3gtraffic.com:9008/pusher"); else { this.httpconnection = new GT1510(); this.httpconnection.initialConstructor_4(a, b, d, e); return; } var p = this; this.connection.onopen = function () { console.log("connection open"); for (var a = 0; a < p.listeners.length; a++) p.listeners[a].connectionEstablished_0(); p._connectionOpened = !0; }; this.connection.onmessage = function (a) { var b = a.data, d = new java_util_JavaScriptVector(); if (0 >= b.length) d.add_1([]); else { a = new java_util_JavaScriptVector(); var e = b.charCodeAt(0); a.add_1(new java_lang_Byte(128 < e ? e - 256 : e)); if (1 >= b.length) a.add_1([]); else if (2 == b.length && 254 == b.charCodeAt(1)) a.add_1([""]); else { b = b.substring(1, b.length).split("\u00ff"); for (e = 0; e < b.length; e++) b[e] = Utf8.decode(b[e]); a.add_1(b); } d.add_1(a); } if (0 < p.receiveDelay) setTimeout(function () { for (var a = 0; a < p.listeners.length; a++) p.listeners[a].processPackets_1(d); }, p.receiveDelay); else for (e = 0; e < p.listeners.length; e++) p.listeners[e].processPackets_1(d); }; this.connection.onerror = function (a) { GT833.prototype.LOG.info && GT833.prototype.LOG.log_1("connection error"); p._informClientConnectionClosed(); }; this.connection.onclose = function (a) { GT833.prototype.LOG.info && GT833.prototype.LOG.log_1("connection closed / code: " + a.code + " / reason: " + a.reason + " / was clean: " + a.wasClean); p._informClientConnectionClosed(); }; var q = 0; this.ping = setInterval(function () { q++; null !== p.connection && ((!DEVICE.chrome && !DEVICE.stock) || (2 != p.connection.readyState && 3 != p.connection.readyState) || p._informClientConnectionClosed(), 0 == q % 90 && p.sendPacket_1("")); }, 1e3); }, _informClientConnectionClosed: function () { var a = this; setTimeout(function () { if (null != a.connection) if (((a.connection = null), clearInterval(a.ping), a._connectionOpened)) { a._connectionOpened = !1; for (var b = 0; b < a.listeners.length; b++) a.listeners[b].connectionLost_0(); } else for (b = 0; b < a.listeners.length; b++) a.listeners[b].connectionNotEstablished_0(); }, 100); }, addListener_1: function (a) { if (null != this.httpconnection) this.httpconnection.addListener_1(a); else { var b = [].createArray(this.listeners.length + 1); java_lang_System.prototype.arraycopy_5(this.listeners, 0, b, 0, this.listeners.length); b[this.listeners.length] = a; this.listeners = b; } }, setSendDelay_1: function (a) { null == this.httpconnection && (this.sendDelay = a); }, setReceiveDelay_1: function (a) { null == this.httpconnection && (this.receiveDelay = a); }, setSendingBlocked_1: function (a) { null == this.httpconnection && ((this.sendBlocked = a) || this.sendPacket_1(null)); }, kill_0: function () { null != this.httpconnection ? this.httpconnection.kill_0() : ((this.closebeforeconnect = !0), null != this.connection && (this.connection.close(), (this.connection = null))); }, close_0: function () { null != this.httpconnection ? this.httpconnection.close_0() : null != this.connection && this.connection.close(); }, sendPacket_1: function (a) { if (null != this.httpconnection) this.httpconnection.sendPacket_1(a); else if (null != this.connection) { for (var b = "", d = 0; d < a.length; d++) b += String.fromCharCode(a[d] & 255); if (0 < this.sendDelay) { var e = this; setTimeout(function (a) { e.connection.send(b); }, this.sendDelay); } else this.connection.send(b); } }, }, "GT833", [Runnable, GT1118] ); GT833.prototype.LOG = GT1650.prototype.getLogFlags_1("mux.clientlib"); var GT1467 = GT1628.extend( { initialConstructor_0: function () { this.applet = null; GT1628.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; GT1628.prototype.initialConstructor_0.call(this); this.applet = a; }, getTickets_0: function () { return this.applet.getTickets_0(); }, getSessionTickets_0: function () { return this.applet.getSessionTickets_0(); }, getSessionCurrencyCode_0: function () { return this.applet.getSessionCurrencyCode_0(); }, getMinTotalBet_0: function () { return this.applet.getMinTotalBet_0(); }, getMaxTotalBet_0: function () { return this.applet.getMaxTotalBet_0(); }, getMinBuyIn_EuroCent_0: function () { return this.applet.getMinBuyIn_EuroCent_0(); }, getMaxBuyIn_EuroCent_0: function () { return this.applet.getMaxBuyIn_EuroCent_0(); }, getJackPotFactor_0: function () { return this.applet.getJackpotFactor_0(); }, hasJackpot_0: function () { return this.applet.hasJackpot_0(); }, getJackpotCalculator_0: function () { return this.applet.getJackpotCalculator_0(); }, getJackpotMinBet_0: function () { return GT1677.prototype.getCurrencyValueFromCent_2(this.applet.getJackpotMinBet_0(), this.applet.getSessionCurrencyFactor_0()); }, getJackpotMaxBet_0: function () { return GT1677.prototype.getCurrencyValueFromCent_2(this.applet.getJackpotMaxBet_0(), this.applet.getSessionCurrencyFactor_0()); }, isActivePlayer_0: function () { return this.applet.isActivePlayer_0() && !this.isInReplayMode_0(); }, isSpectator_0: function () { return this.applet.isSpectator_0(); }, isInReplayMode_0: function () { return this.applet.isReplayDialogOpen_0(); }, hasOpenSession_0: function () { return this.applet.hasOpenSession_0(); }, setRoundIsRunning_1: function (a) { a ? this.applet.setRoundIsRunning_0() : this.applet.setRoundIsFinished_0(); }, hasOpenRound_0: function () { return this.applet.hasOpenRound_0(); }, isActionAllowed_0: function () { return this.applet.isConnected_0() && this.applet.isSpinAllowed_0() && (!this.applet.isAnyModalDialogOpen_0() || this.applet.isReplayDialogOpen_0()); }, isDeepWalletPlayer_0: function () { return this.applet.isDeepWalletPlayer_0(); }, getEntitySessionId_0: function () { return this.applet.getEntitySessionId_0(); }, getEntityParticipationId_0: function () { return this.applet.getEntityParticipationId_0(); }, updateGameOverlayDialogs_0: function () { this.applet.updateGameOverlayDialogs_0(); }, getMaximumRoundWin_0: function () { return this.applet.getMaximumRoundWin_0(); }, needToShowAutoPlaySettings_0: function () { return this.applet.getBooleanParameter_2("ukgc.autoplayfeature.enabled", !1); }, openAutoPlaySettingsDialog_2: function (a, b) { this.applet.openAPSettingsDialog_2(a, b); }, createAutoPlaySettings_0: function () { return this.applet.createAutoPlaySettings_0(); }, showAutoPlayStopInfo_4: function (a, b, d, e) { var f = this.applet.getSkinManager_0().getText_1("${autoplay_stopped}"); b && (f += "" + this.applet.getSkinManager_0().getText_1("${autoplay_stopreason_noroundsleft}")); a && (f += "" + this.applet.getSkinManager_0().getText_1("${autoplay_stopreason_nocredits}")); d && (f += "" + this.applet.getSkinManager_0().getText_1("${autoplay_stopreason_losslimit}")); e && (f += "" + this.applet.getSkinManager_0().getText_1("${autoplay_stopreason_singlewin}")); this.applet.buildInfoDialog_2(f, !0); }, getSessionCurrencyFactor_0: function () { return this.applet.getSessionCurrencyFactor_0(); }, }, "GT1467", [GT1586, GT1119] ), GT355 = GT787.extend( { initialConstructor_0: function () { this.stringluckyloser = this.stringsoundluckyloser = this.stringsoundmove = this.stringsoundcountup = this.stringgamble = this.stringgamblelost = this.stringgamblewintop = this.stringgamblewin = null; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, luckyLoserImage_1: function (a) { this.stringluckyloser = a; return this; }, soundGambleWin_1: function (a) { this.stringgamblewin = a; return this; }, soundGambleWinTop_1: function (a) { this.stringgamblewintop = a; return this; }, soundGambleLost_1: function (a) { this.stringgamblelost = a; return this; }, soundGamble_1: function (a) { this.stringgamble = a; return this; }, soundCount_1: function (a) { this.stringsoundcountup = a; return this; }, soundMove_1: function (a) { this.stringsoundmove = a; return this; }, soundLuckyLoser_1: function (a) { this.stringsoundluckyloser = a; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); null != this.stringluckyloser && a.getResourceManager_0().startLoadImage_4(this.stringluckyloser, 1, 1, !1); null != this.stringgamblewin && a.getResourceManager_0().startLoadSound_1(this.stringgamblewin); null != this.stringgamblewintop && a.getResourceManager_0().startLoadSound_1(this.stringgamblewintop); null != this.stringgamblelost && a.getResourceManager_0().startLoadSound_1(this.stringgamblelost); null != this.stringsoundcountup && a.getResourceManager_0().startLoadSound_1(this.stringsoundcountup); null != this.stringsoundmove && a.getResourceManager_0().startLoadSound_1(this.stringsoundmove); null != this.stringsoundluckyloser && a.getResourceManager_0().startLoadSound_1(this.stringsoundluckyloser); if (null != this.stringgamble) for (b = 0; b < this.stringgamble.length; b++) a.getResourceManager_0().startLoadSound_1(this.stringgamble[b]); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize, f = null, g = null, k, m, n, p, q, r; k = m = n = p = q = r = null; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); null != this.stringluckyloser && (f = b.getResourceManager_0().getImage_1(this.stringluckyloser)); null != this.stringgamblewin && (r = b.getResourceManager_0().getSound_1(this.stringgamblewin)); null != this.stringgamblewintop && (k = b.getResourceManager_0().getSound_1(this.stringgamblewintop)); null != this.stringgamblelost && (m = b.getResourceManager_0().getSound_1(this.stringgamblelost)); null != this.stringsoundcountup && (n = b.getResourceManager_0().getSound_1(this.stringsoundcountup)); null != this.stringsoundmove && (p = b.getResourceManager_0().getSound_1(this.stringsoundmove)); null != this.stringsoundmove && (q = b.getResourceManager_0().getSound_1(this.stringsoundluckyloser)); if (null != this.stringgamble) for (var g = [].createArray(this.stringgamble.length), t = 0; t < this.stringgamble.length; t++) g[t] = b.getResourceManager_0().getSound_1(this.stringgamble[t]); d = new GT161(a, this.xPos, this.yPos, d, e, b, f, r, k, m, g, n, p, q); for (t = 0; t < this.children.size_0(); t++) this.children.elementAt_1(t).create_2(d, b); d.setApplicationID_1(this.appId); return d; }, }, "GT355", [] ); GT355.prototype.set_0 = function () { return new GT355(); }; var GT538 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, gamble_2: function (a, b) { return GT355.prototype .set_0() .id_1(GT1618.prototype.GAMBLE) .position_2(168, 19) .size_2(1200, 667) .luckyLoserImage_1("/com/greentube/slot/client/res/astra/luckyloser.png") .soundGamble_1( "/com/greentube/slot/client/res/astra/gamble0.mp3 /com/greentube/slot/client/res/astra/gamble1.mp3 /com/greentube/slot/client/res/astra/gamble2.mp3 /com/greentube/slot/client/res/astra/gamble3.mp3 /com/greentube/slot/client/res/astra/gamble4.mp3 /com/greentube/slot/client/res/astra/gamble5.mp3 /com/greentube/slot/client/res/astra/gamble6.mp3".split( " " ) ) .soundCount_1("/com/greentube/slot/client/res/astra/countup.mp3") .soundMove_1("/com/greentube/slot/client/res/astra/swoosh.mp3") .soundLuckyLoser_1("/com/greentube/slot/client/res/astra/luckyloser.mp3") .soundGambleLost_1("/com/greentube/slot/client/res/astra/lose.mp3") .soundGambleWin_1("/com/greentube/slot/client/res/astra/win.mp3") .soundGambleWinTop_1("/com/greentube/slot/client/res/astra/gambledtojackpot.mp3") .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0()).size_2(1200, 667).position_2(0, 0).transparency_1(GT1022.prototype.set_0().percent_1(50))) .child_1( GT1186.prototype .set_0() .position_2(254, 212) .size_2(697, 310) .child_1(this.gambleBackground_2(a, b)) .child_1( this.fontFormats_0() .id_1(GT161.prototype.ID_TEXT_GAMBLE) .text_1("${gamble_header_gamble}") .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(370)) .size_2(620, 65) .position_2(38, 38) ) .child_1(this.fontFormats_0().id_1(GT161.prototype.ID_TEXT_WIN).text_1("${gamble_label_win}").size_2(152, 45).position_2(33, 133)) .child_1(this.fontFormats_0().id_1(GT161.prototype.ID_TEXT_CURRENT).text_1("${gamble_label_currentprize}").size_2(293, 45).position_2(203, 110)) .child_1(this.fontFormats_0().id_1(GT161.prototype.ID_TEXT_LOSE).text_1("${gamble_label_lose}").size_2(152, 45).position_2(517, 133)) .child_1( GT1188.prototype .set_0() .id_1(GT161.prototype.ID_COLOR_WIN) .color_1(GT1391.prototype.set_0().compRGB_3(0, 255, 0)) .transparency_1(GT1022.prototype.set_0().transparent_0()) .size_2(159, 44) .position_2(18, 189) ) .child_1(this.fontFormats_0().id_1(GT161.prototype.ID_NUMBER_WIN).size_2(159, 44).position_2(18, 189)) .child_1( GT1188.prototype .set_0() .id_1(GT161.prototype.ID_COLOR_CURRENT) .color_1(GT1391.prototype.set_0().compRGB_3(255, 255, 0)) .transparency_1(GT1022.prototype.set_0().transparent_0()) .size_2(293, 72) .position_2(203, 174) ) .child_1( this.fontFormatsValue_0() .id_1(GT161.prototype.ID_NUMBER_CURRENT) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(350)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(340)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(330)) .size_2(293, 72) .position_2(203, 174) ) .child_1( GT1188.prototype .set_0() .id_1(GT161.prototype.ID_COLOR_LOSE) .color_1(GT1391.prototype.set_0().compRGB_3(255, 0, 0)) .transparency_1(GT1022.prototype.set_0().transparent_0()) .size_2(159, 44) .position_2(522, 189) ) .child_1( this.fontFormatsValue_0() .id_1(GT161.prototype.ID_NUMBER_LOSE) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .size_2(159, 44) .position_2(522, 189) ) .child_1( this.fontFormats_0() .id_1(GT161.prototype.ID_TEXT_REMAIN) .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .hAlign_1(GT1488.prototype.RIGHT) .text_1("X ${gamble_info_stepsremaining}") .size_2(470, 15) .position_2(200, 277) ) ); }, gambleBackground_2: function (a, b) { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/astra/gambler.png"); }, fontFormats_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()); }, fontFormatsValue_0: function () { return GT1135.prototype.set_0().hAlign_1(GT1488.prototype.CENTER).vAlign_1(GT1489.prototype.CENTER).fontColor_1(GT1391.prototype.set_0().white_0()).outline_2(1, GT1391.prototype.set_0().black_0()); }, }, "GT538", [] ), GT539 = GT1147.extend( { initialConstructor_0: function () { this.e = null; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.e = null; GT1147.prototype.initialConstructor_1.call(this, a); }, setStartEvent_1: function (a) { this.e = a; }, handleChangeStateAfterCollect_0: function () { var a = this.getSlotState_0().getFreeSpinState_0(); this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? this.changeState_1(GT241.prototype.ID) : a.isFreeSpinsRunning_0() ? a.isBeforeFirstFreeSpin_0() ? this.changeState_2(GT428.prototype.ID, this.e) : a.hasFreeSpinsWon_0() && this.getSlotState_0().getServerState_0() != GT1649.prototype.SERVERSTATE_BEFORESPIN ? this.changeState_2(GT480.prototype.ID, this.e) : a.isAtLastFreeSpin_0() ? 0 < this.getSlotState_0().getSuperGameState_0().getBalance_0() && this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_SUPERGAME ? this.changeState_2(GT623.prototype.ID, this.e) : this.changeState_2(GT246.prototype.ID, this.e) : this.changeState_2(GT276.prototype.ID, this.e) : 0 < this.getSlotState_0().getSuperGameState_0().getBalance_0() && this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_SUPERGAME ? this.changeState_2(GT623.prototype.ID, this.e) : this.changeState_2(GT246.prototype.ID, this.e); }, }, "GT539", [] ), GT438 = GT1147.extend( { initialConstructor_0: function () { GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1147.prototype.initialConstructor_1.call(this, a); }, onEnterChangeGuiState_0: function () { this.changeGuiState_1(GT729.prototype.ID); }, handleChangeStateForPaytable_0: function () { this.changeState_1(GT734.prototype.ID); }, handleChangeStateForModalDialog_1: function (a) { this.changeGuiState_1(GT729.prototype.ID); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.PAYTABLE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a) : (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.handleChangeStateForModalDialog_1(a); }, }, "GT438", [] ), GT491 = GT1147.extend( { initialConstructor_0: function () { GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1147.prototype.initialConstructor_1.call(this, a); }, notifyInputEvent_1: function (a) { var b = this.getSlotState_0().getFreeSpinState_0(); a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? this.handleChangeStateWhenSpinIsTriggered_0() : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0() ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.GAMEMODE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (b.isFreeSpinsRunning_0() && !b.isAtLastFreeSpin_0()) || !instanceOf(a, GT937) || a.getGameMode_0() == this.getSlotState_0().getGameMode_0() || (this.getSlotGame_0().setGameMode_1(a.getGameMode_0()), this.changeGuiState_1(GT777.prototype.ID)) : a.getId_0() == GT1354.prototype.GAMEMODE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((a = a.getGameMode_0()), a != this.getSlotState_0().getGameMode_0() && (this.getSlotGame_0().setGameMode_1(a), this.changeGuiState_1(GT777.prototype.ID))) : a.getId_0() == GT1354.prototype.NUMLINES && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (b.isFreeSpinsRunning_0() && !b.isAtLastFreeSpin_0()) || !instanceOf(a, GT773) || a.getNumberOfLines_0() == this.getSlotState_0().getNumberOfLines_0() || (this.getSlotGame_0().setNumberOfLines_1(a.getNumberOfLines_0()), this.changeGuiState_1(GT777.prototype.ID)) : a.getId_0() == GT1354.prototype.BASEBET && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (b.isFreeSpinsRunning_0() && !b.isAtLastFreeSpin_0()) || !instanceOf(a, GT851) || a.getBetPerLine_0() == this.getSlotState_0().getBaseBet_0() || (this.getSlotGame_0().setBaseBet_1(a.getBetPerLine_0()), this.changeGuiState_1(GT777.prototype.ID)) : a.getId_0() == GT1354.prototype.PAYOUT ? ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYOUT, GT981.prototype.VALUE_PAYOUT_OK, !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)) : a.getId_0() == GT1354.prototype.GAME_SELECT && ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMESELECT, "", !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); }, handleChangeStateWhenSpinIsTriggered_0: function () { var a = this.getSlotState_0().getServerState_0(); a != GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION && (a == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN ? this.changeState_1(GT321.prototype.ID) : this.changeState_1(GT733.prototype.ID)); }, toString: function () { return "ClientStateChangeBet (" + this.getId_0() + ")"; }, }, "GT491", [] ), GT788 = Class.extend( { initialConstructor_0: function () { this.slotGame = this.currentState = this.clientStates = null; this.changeStateLocked = !1; this.alreadyReportedStates = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotGame = this.currentState = this.clientStates = null; this.changeStateLocked = !1; this.alreadyReportedStates = null; this.clientStates = new java_util_JavaScriptVector(); this.slotGame = a; this.changeStateLocked = !1; this.alreadyReportedStates = new java_util_JavaScriptVector(); }, destroy_0: function () { this.clientStates.setSize_1(0); this.currentState = null; }, addClientState_1: function (a) { for (var b = this.clientStates.size_0(), d = 0; d < b; d++) if (this.clientStates.elementAt_1(d).getId_0() == a.getId_0()) { this.clientStates.setElementAt_2(a, d); GT788.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] replaced State " + a); return; } this.clientStates.addElement_1(a); GT788.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] added State " + a); }, changeState_1: function (a) { this.changeState_2(a, null); }, changeState_2: function (a, b) { for (var d = null, e = this.clientStates.size_0(), f = 0; f < e; f++) if (this.clientStates.elementAt_1(f).getId_0() == a) { d = this.clientStates.elementAt_1(f); break; } null == d ? GT1650.prototype.assertExp_2(!1, "ClientState not found " + a) : ((e = null != this.currentState && this.currentState.getId_0() == GT953.prototype.ID), this.changeStateLocked && (this.doWrapperStateReporting_3(this.getStateNameForWrapper_1(this.currentState), this.currentState.getId_0(), !1), this.alreadyReportedStates.add_1(this.getStateNameForWrapper_1(this.currentState))), (this.changeStateLocked = !0), d.setFirstStateAfterInit_1(e), GT788.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] " + this.currentState + " -> " + d), (this.currentState = d), (d = this.getStateNameForWrapper_1(this.currentState)), this.currentState.enter_1(b), this.alreadyReportedStates.contains_1(d) ? this.alreadyReportedStates.removeElement_1(d) : this.doWrapperStateReporting_3(d, this.currentState.getId_0(), e), (this.changeStateLocked = !1)); }, doWrapperStateReporting_3: function (a, b, d) { d && b != GT953.prototype.ID && this.buildAndFireConfigWrapperEvent_0(); (d && b == GT953.prototype.ID) || this.buildAndFireStateWrapperEvent_1(a); }, notifySessionTicketsUpdated_0: function () { this.currentState.notifySessionTicketsUpdated_0(); }, notifyRoundFinished_0: function () { this.currentState.notifyRoundFinished_0(); }, newGameSituation_0: function () { GT788.prototype.LOG.t_1("newGameSituation"); this.currentState.newGameSituation_0(); }, notifyGuiStateFinished_1: function (a) { this.currentState.notifyGuiStateFinished_1(a); }, notifyInputEvent_1: function (a) { this.currentState.notifyInputEvent_1(a); }, getCurrentStateId_0: function () { return null == this.currentState ? -1 : this.currentState.getId_0(); }, getStateNameForWrapper_1: function (a) { a = a.getId_0(); return a == GT953.prototype.ID ? GT697.prototype.STATE_INIT : a == GT625.prototype.ID ? GT697.prototype.STATE_BEFORESPIN : a == GT733.prototype.ID ? GT697.prototype.STATE_SPINNING : a == GT479.prototype.ID ? GT697.prototype.STATE_WINANIMATIONS : a == GT523.prototype.ID ? GT697.prototype.STATE_BEFOREGAMBLE : a == GT842.prototype.ID ? GT697.prototype.STATE_GAMBLE : a == GT624.prototype.ID ? GT697.prototype.STATE_COLLECTWIN : a == GT246.prototype.ID ? null : a == GT428.prototype.ID ? GT697.prototype.STATE_FREEGAMESSTART : a == GT276.prototype.ID ? GT697.prototype.STATE_FREEGAMESBEFORESPIN : a == GT321.prototype.ID ? GT697.prototype.STATE_FREEGAMESSPINNING : a == GT480.prototype.ID ? GT697.prototype.STATE_FREEGAMESMORE : a == GT524.prototype.ID ? GT697.prototype.STATE_FREEGAMESEND : a == GT241.prototype.ID ? GT697.prototype.STATE_COLLECTVISUALIZATION : a == GT178.prototype.ID ? GT697.prototype.STATE_SPECIALWINVISUALIZATION : a == GT623.prototype.ID ? GT697.prototype.STATE_SUPERGAMES : a == GT734.prototype.ID || a == GT675.prototype.ID ? null : GT697.prototype.STATE_UNDEFINED; }, buildAndFireStateWrapperEvent_1: function (a) { var b = this.slotGame.getGameWrapperInterfaceCaller_0(), d = this.slotGame.getSlotState_0(); if (null != b && null != a) { var e = GT1242.prototype.getWrapperStateEventTables_1(a), f = e.getValueTable_0(); GT697.prototype.STATE_INIT.equals_1(a) || (GT697.prototype.STATE_SPINNING.equals_1(a) ? f.put_2(GT697.prototype.STATE_ENTRY_BALANCE, new Double(d.getCasinoState_0().getSessionTickets_0() - d.getTotalBet_0())) : f.put_2(GT697.prototype.STATE_ENTRY_BALANCE, new Double(d.getCasinoState_0().getSessionTickets_0())), f.put_2(GT697.prototype.STATE_ENTRY_TOTALBET, new Double(d.getTotalBet_0())), f.put_2(GT697.prototype.STATE_ENTRY_GAMEMODE, new Double(d.getGameMode_0())), f.put_2(GT697.prototype.STATE_ENTRY_WIN, new Double(d.getWinSum_1(!0))), f.put_2(GT697.prototype.STATE_ENTRY_AUTOPLAY, new Boolean(d.isAutoPlaying_0())), f.put_2(GT697.prototype.STATE_ENTRY_FREESPINSWON, new Double(d.getFreeSpinState_0().getFreeSpinsWon_0())), f.put_2(GT697.prototype.STATE_ENTRY_FREESPINSPLAYED, new Double(d.getFreeSpinState_0().getFreeSpinsPlayed_0())), f.put_2(GT697.prototype.STATE_ENTRY_HASSPECIALWINVIS, new Boolean(d.getServerState_0() == GT1649.prototype.SERVERSTATE_WINVISUALIZATION)), f.put_2(GT697.prototype.STATE_ENTRY_ISSPECTATOR, new Boolean(d.getCasinoState_0().isSpectator_0())), f.put_2(GT697.prototype.STATE_ENTRY_ISREPLAY, new Boolean(d.getCasinoState_0().isInReplayMode_0())), f.put_2(GT697.prototype.STATE_ENTRY_TOOLITTLEMONEYTOPLAY, new Boolean(d.hasInsufficientTicketsToContinuePlaying_0())), f.put_2(GT697.prototype.STATE_ENTRY_HASOPENROUND, new Boolean(d.getCasinoState_0().hasOpenRound_0()))); b.fireStateEvent_1(e.getMainTable_0()); } }, buildAndFireConfigWrapperEvent_0: function () { var a = this.slotGame.getGameWrapperInterfaceCaller_0(), b = this.slotGame.getSlotState_0(); if (null != a) { var d = new java_util_JavaScriptHashtable(), e = new java_util_JavaScriptHashtable(); d.put_2(GT697.prototype.IDENTIFIER_CONFIG, e); e.put_2(GT697.prototype.CONFIG_ENTRY_BALANCE, new Double(b.getCasinoState_0().getSessionTickets_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_TOTALBET, new Double(b.getTotalBet_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_MINBET, new Double(b.getMinPossibleBet_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_MAXBET, new Double(b.getMaxPossibleBet_0())); var f = b.getDefinition_0().getPlayLines_0(); null != f && 1 <= f.size_0() && e.put_2(GT697.prototype.CONFIG_ENTRY_MAXLINES, new Double(f.get_1(f.size_0() - 1))); e.put_2(GT697.prototype.CONFIG_ENTRY_LINES, new Double(b.getNumberOfLines_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_GAMEMODE, new Double(b.getGameMode_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_CURRENCY, b.getCasinoState_0().getSessionCurrencyCode_0()); e.put_2(GT697.prototype.CONFIG_ENTRY_CURRENCYFACTOR, new Double(b.getCasinoState_0().getSessionCurrencyFactor_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_HASJACKPOT, new Boolean(b.getCasinoState_0().hasJackpot_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_VERSION, GT697.prototype.WRAPPERV2_PROTOCOL_VERSION); e.put_2(GT697.prototype.STATE_ENTRY_HASOPENROUND, new Boolean(b.getCasinoState_0().hasOpenRound_0())); e.put_2(GT697.prototype.CONFIG_ENTRY_BASEBET, new Double(b.getBaseBet_0())); a.fireStateEvent_1(d); } }, }, "GT788", [] ); GT788.prototype.generateID_0 = function () { return GT1677.prototype.generateID_0(); }; GT788.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT734 = GT491.extend( { initialConstructor_0: function () { this.internalState = 0; this.wantSpin = !1; GT491.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.internalState = 0; this.wantSpin = !1; GT491.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT734.prototype.ID; }, enter_1: function (a) { this.wantSpin = !1; this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT; this.getConnection_0().setBlocking_1(!0); this.getSlotState_0().isPaytableOpen_0() || (this.getSlotState_0().setPaytableOpen_1(!0), this.getConnection_0().sendCommand_1(new GT1153())); this.changeGuiState_1(GT477.prototype.ID); this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN ? this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME) : this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_READY); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYTABLE, GT981.prototype.VALUE_PAYTABLE_MOVEIN, !0); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_PAYTABLE); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_MOVEIN); GT1242.prototype.fireWrapperStateEvent_2(this.getSlotGame_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () { this.changeGuiState_1(GT617.prototype.ID); }, notifyGuiStateFinished_1: function (a) { a == GT477.prototype.ID ? ((this.internalState = GT734.prototype.INTERNAL_STATE_ACCEPTINPUT), this.getConnection_0().setBlocking_1(!1), this.changeGuiState_1(GT617.prototype.ID)) : a == GT622.prototype.ID ? ((this.internalState = GT734.prototype.INTERNAL_STATE_ACCEPTINPUT), this.changeGuiState_1(GT617.prototype.ID)) : a == GT475.prototype.ID ? (this.getSlotState_0().setPaytableOpen_1(!1), this.getConnection_0().setBlocking_1(!1), this.wantSpin ? this.handleChangeStateWhenSpinIsTriggered_0() : this.handleChangeStateWhenPaytableWasClosed_0()) : a == GT777.prototype.ID && this.changeGuiState_1(GT617.prototype.ID); }, notifyInputEvent_1: function (a) { if (this.internalState == GT734.prototype.INTERNAL_STATE_ACCEPTINPUT) { var b = this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0(); a.getId_0() != GT1354.prototype.STARTSPIN || !this.getSlotState_0().getCasinoState_0().isActionAllowed_0() || (this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && !b) || this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && (!this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() || b) && this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0() ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), (this.wantSpin = !0), (this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.getConnection_0().setBlocking_1(!0), this.sendWrapperEventPaytableMoveOut_0(), this.changeGuiState_2(GT475.prototype.ID, a)) : a.getId_0() == GT1354.prototype.PAYTABLE ? ((this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.getConnection_0().setBlocking_1(!0), this.getConnection_0().sendCommand_1(new GT1153()), this.sendWrapperEventPaytableMoveOut_0(), this.changeGuiState_2(GT475.prototype.ID, a)) : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT ? ((this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.changeGuiState_2(GT622.prototype.ID, a)) : a.getId_0() == GT1354.prototype.PAYTABLE_PREVIOUS ? ((this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.changeGuiState_2(GT622.prototype.ID, a)) : a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED ? a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED && instanceOf(a, GT426) && a.getModalDialogId_0() == a.getReplayDialogId_0() ? ((this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.getConnection_0().setBlocking_1(!0), this.getConnection_0().sendCommand_1(new GT1153()), this.sendWrapperEventPaytableMoveOut_0(), this.changeGuiState_1(GT475.prototype.ID)) : this.changeGuiState_1(GT617.prototype.ID) : a.getId_0() == GT984.prototype.ID ? ((a = a.getGesture_0()), a.getId_0() == GT969.prototype.ID && (Math.abs_1(a.getVelocityY_0()) > Math.abs_1(a.getVelocityX_0()) ? -700 > a.getVelocityY_0() && this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)) : 700 < a.getVelocityX_0() ? this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_NEXT)) : -700 > a.getVelocityX_0() && this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_PREVIOUS)))) : GT491.prototype.notifyInputEvent_1.call(this, a) : ((this.wantSpin = !0), (this.internalState = GT734.prototype.INTERNAL_STATE_BLOCKINPUT), this.getConnection_0().setBlocking_1(!0), this.sendWrapperEventPaytableMoveOut_0(), this.changeGuiState_2(GT475.prototype.ID, a)); } }, sendWrapperEventPaytableMoveOut_0: function () { var a; a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYTABLE, GT981.prototype.VALUE_PAYTABLE_MOVEOUT, !0); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_PAYTABLE); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_MOVEOUT); GT1242.prototype.fireWrapperStateEvent_2(this.getSlotGame_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, handleChangeStateWhenPaytableWasClosed_0: function () { var a = this.getSlotState_0().getServerState_0(); a == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? this.changeState_1(GT241.prototype.ID) : a == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN ? this.changeState_1(GT276.prototype.ID) : this.changeState_1(GT625.prototype.ID); }, toString: function () { return "ClientStatePaytable (" + this.getId_0() + ")"; }, }, "GT734", [] ); GT734.prototype.ID = GT788.prototype.generateID_0(); GT734.prototype.INTERNAL_STATE_BLOCKINPUT = 0; GT734.prototype.INTERNAL_STATE_ACCEPTINPUT = 1; var GT178 = GT1147.extend( { initialConstructor_0: function () { this.actionAllowed = !1; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.actionAllowed = !1; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT178.prototype.ID; }, enter_1: function (a) { this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FEATURE_SCREEN); this.onEnterChangeGuiState_1(a); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLEFEATURE)); }, onEnterChangeGuiState_1: function (a) { this.isFirstStateAfterInit_0() || 1 != this.getSlotState_0().getSpecialWinVisualizationData_0().length ? (this.changeGuiState_3(GT217.prototype.ID, null, this.isFirstStateAfterInit_0()), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME)) : (this.getConnection_0().setBlocking_1(!0), this.changeGuiState_1(GT114.prototype.ID), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SPINNING)); }, newGameSituation_0: function () { this.getSlotState_0().getServerState_0() != GT1649.prototype.SERVERSTATE_WINVISUALIZATION ? (this.getConnection_0().setBlocking_1(!0), this.handleChangeStateSpecialWinVisualizationFinished_0()) : (this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(new GT1354(GT1354.prototype.SPECIALWINVISUALIZATION_READY)), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME)); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.actionAllowed ? (this.getConnection_0().setBlocking_1(!0), this.handleSpinIsTriggered_0(), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SPINNING)) : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.actionAllowed ? (this.getConnection_0().setBlocking_1(!0), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.handleSpinIsTriggered_0(), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SPINNING)) : a.getId_0() == GT1354.prototype.VISUALIZATIONSTEP && (this.getConnection_0().setBlocking_1(!0), this.handleVisualizationEvent_1(a), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SPINNING)); }, notifyGuiStateFinished_1: function (a) { a == GT114.prototype.ID ? (this.handleChangeStateSpecialWinVisualizationOpeningFinished_0(), this.setStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME), this.getConnection_0().setBlocking_1(!1)) : a == GT217.prototype.ID ? this.getConnection_0().setBlocking_1(!1) : a == GT115.prototype.ID && this.handleChangeStateSpecialWinVisualizationClosingFinished_0(); }, handleSpinIsTriggered_0: function () { this.changeGuiState_1(GT217.prototype.ID); }, handleVisualizationEvent_1: function (a) { this.changeGuiState_1(GT217.prototype.ID); }, handleChangeStateSpecialWinVisualizationOpeningFinished_0: function () { this.changeGuiState_1(GT217.prototype.ID); }, handleChangeStateSpecialWinVisualizationFinished_0: function () { this.changeGuiState_1(GT115.prototype.ID); }, handleChangeStateSpecialWinVisualizationClosingFinished_0: function () { this.changeState_1(GT523.prototype.ID); }, toString: function () { return "ClientStateSpecialWinVisualization (" + this.getId_0() + ")"; }, setStateForWrapper_1: function (a) { this.actionAllowed = a == GT981.prototype.VALUE_GAMEMODE_BONUSGAME; this.setGameStateForWrapper_1(a); }, }, "GT178", [] ); GT178.prototype.ID = GT788.prototype.generateID_0(); var GT733 = GT1147.extend( { initialConstructor_0: function () { this.internalState = 0; this.blockinput = this.stopnow = !1; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.internalState = 0; this.blockinput = this.stopnow = !1; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT733.prototype.ID; }, enter_1: function (a) { this.internalState = GT733.prototype.INTERNAL_STATE_SPINNING; this.blockinput = this.stopnow = !1; this.getConnection_0().setBlocking_1(!0); this.onEnterChangeGuiState_0(); this.getConnection_0().setWaitingForServerResponse_1(!0); if (this.getSlotState_0().getCasinoState_0().isActivePlayer_0()) this.onEnterSendRequest_0(); this.getSlotState_0().getCasinoState_0().setRoundIsRunning_1(!0); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SPINNING); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAID, ""); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); this.setIlluminatorModeForWrapper_0(); }, setIlluminatorModeForWrapper_0: function () { this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_REELSPIN)); }, onEnterChangeGuiState_0: function () { this.changeGuiState_1(GT572.prototype.ID); }, onEnterSendRequest_0: function () { this.getConnection_0().sendCommand_1(new GT1096()); }, newGameSituation_0: function () { this.internalState == GT733.prototype.INTERNAL_STATE_SPINNING && ((this.internalState = GT733.prototype.INTERNAL_STATE_STOPPING), this.getConnection_0().setBlocking_1(!0), this.getConnection_0().setWaitingForServerResponse_1(!1), this.changeGuiState_1(GT575.prototype.ID), this.stopnow && this.requestFinishGuiState_0()); }, notifySessionTicketsUpdated_0: function () {}, notifyGuiStateFinished_1: function (a) { this.internalState == GT733.prototype.INTERNAL_STATE_SPINNING && a == GT572.prototype.ID && this.getConnection_0().setBlocking_1(!1); this.internalState == GT733.prototype.INTERNAL_STATE_STOPPING && a == GT575.prototype.ID && (this.getConnection_0().setBlocking_1(!1), this.handleChangeStateAfterReelsHaveStopped_0()); }, notifyInputEvent_1: function (a) { this.blockinput || (a.getId_0() == GT1354.prototype.AUTOSTOP ? ((this.blockinput = !0), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT)) : a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && 1e3 > this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0() && ((this.blockinput = !0), this.internalState == GT733.prototype.INTERNAL_STATE_SPINNING ? ((this.stopnow = !0), this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a)) : this.requestFinishGuiState_0())); }, handleChangeStateAfterReelsHaveStopped_0: function () { 0 < this.getSlotState_0().getNumberOfWins_0() ? this.changeState_1(GT479.prototype.ID) : this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_WINVISUALIZATION ? this.changeState_1(GT178.prototype.ID) : this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() ? this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() ? this.changeState_1(GT246.prototype.ID) : this.changeState_1(GT276.prototype.ID) : this.changeState_1(GT246.prototype.ID); }, toString: function () { return "ClientStateSpinning (" + this.getId_0() + ")"; }, }, "GT733", [] ); GT733.prototype.ID = GT788.prototype.generateID_0(); GT733.prototype.INTERNAL_STATE_SPINNING = 0; GT733.prototype.INTERNAL_STATE_STOPPING = 1; var GT623 = GT1147.extend( { initialConstructor_0: function () { this.acceptInput = !1; this.internalState = 0; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.acceptInput = !1; this.internalState = 0; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT623.prototype.ID; }, enter_1: function (a) { this.getConnection_0().setBlocking_1(!this.isFirstStateAfterInit_0()); this.acceptInput = this.isFirstStateAfterInit_0(); this.onEnterChangeGuiState_0(); this.internalState = GT623.prototype.INTERNAL_STATE_IDLE; this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_SUPERGAME); }, onEnterChangeGuiState_0: function () { this.isFirstStateAfterInit_0() ? this.changeGuiState_1(GT576.prototype.ID) : this.changeGuiState_1(GT425.prototype.ID); }, newGameSituation_0: function () { this.getConnection_0().setBlocking_1(!0); this.getConnection_0().setWaitingForServerResponse_1(!1); this.internalState = GT623.prototype.INTERNAL_STATE_STOPPING; this.changeGuiState_1(GT239.prototype.ID); }, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) { (a.getId_0() == GT1354.prototype.STARTSPIN || a.getId_0() == GT1354.prototype.COLLECT) && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.acceptInput ? this.handleChangeStateWhenSpinIsTriggered_1(a) : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.acceptInput ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.handleChangeStateWhenSpinIsTriggered_1(a)) : a.getId_0() == GT1354.prototype.AUTOSTOP && ((this.acceptInput = !1), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT)); }, notifyGuiStateFinished_1: function (a) { a == GT425.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), (this.acceptInput = !0), this.changeGuiState_1(GT576.prototype.ID), this.getSlotState_0().isAutoPlaying_0() && this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN))) : a == GT238.prototype.ID ? this.getConnection_0().setBlocking_1(this.getSlotState_0().getCasinoState_0().isInReplayMode_0()) : a == GT239.prototype.ID ? ((this.internalState = GT623.prototype.INTERNAL_STATE_IDLE), this.getSlotState_0().isAutoPlaying_0() && 0 == this.getSlotState_0().getAutoPlayCounter_0() && 0 < this.getSlotState_0().getAutoPlayLimit_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), 0 == this.getSlotState_0().getSuperGameState_0().getBalance_0() ? (this.getConnection_0().setBlocking_1(!0), (this.acceptInput = !1), this.changeGuiState_1(GT424.prototype.ID)) : this.getSlotState_0().isAutoPlaying_0() ? (this.getConnection_0().setBlocking_1(!0), (this.acceptInput = !0), this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN))) : (this.getConnection_0().setBlocking_1(!1), (this.acceptInput = !0), this.changeGuiState_1(GT576.prototype.ID))) : a == GT424.prototype.ID && this.handleChangeStateSuperGamesEnded_0(); }, handleChangeStateWhenSpinIsTriggered_1: function (a) { this.internalState == GT623.prototype.INTERNAL_STATE_IDLE ? (this.getSlotGame_0().reduceAutoPlayCounter_0(), this.getConnection_0().setWaitingForServerResponse_1(!0), this.getConnection_0().setBlocking_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()), this.getConnection_0().sendCommand_1(new GT843()), (this.acceptInput = !0), (this.internalState = GT623.prototype.INTERNAL_STATE_SPINNING), this.changeGuiState_1(GT238.prototype.ID)) : ((this.acceptInput = !1), this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a)); }, handleChangeStateSuperGamesEnded_0: function () { this.getConnection_0().setBlocking_1(!1); this.changeState_1(GT246.prototype.ID); }, toString: function () { return "ClientStateSuperGames (" + this.getId_0() + ")"; }, }, "GT623", [] ); GT623.prototype.ID = GT788.prototype.generateID_0(); GT623.prototype.INTERNAL_STATE_IDLE = 0; GT623.prototype.INTERNAL_STATE_SPINNING = 1; GT623.prototype.INTERNAL_STATE_STOPPING = 2; var GT479 = GT1147.extend( { initialConstructor_0: function () { this.fastSpin = this.fastGamble = this.fastCollect = !1; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.fastSpin = this.fastGamble = this.fastCollect = !1; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT479.prototype.ID; }, enter_1: function (a) { this.fastSpin = this.fastGamble = this.fastCollect = !1; this.getConnection_0().setBlocking_1(!0); this.onEnterStopAutoplay_0(); this.onEnterChangeGuiState_0(); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_WINS); a = this.getSlotState_0().getWinSum_1(!1) > 100 * this.getSlotState_0().getTotalBet_0() ? this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() ? GT981.prototype.VALUE_ILLUMINATORMODE_HUGEWINFEATURE : GT981.prototype.VALUE_ILLUMINATORMODE_HUGEWIN : this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() ? GT981.prototype.VALUE_ILLUMINATORMODE_SMALLWINFEATURE : GT981.prototype.VALUE_ILLUMINATORMODE_SMALLWIN; this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, a)); this.notifyWrapperUncollectedWin_1(this.getSlotState_0().getWinSum_1(!1)); this.notifyWrapperMaximumRoundWin_0(); }, notifyWrapperMaximumRoundWin_0: function () { this.getSlotState_0().isMaximumRoundWinExceeded_0() && 0 < this.getSlotState_0().getWinSum_1(!0) && this.getSlotGame_0() .getSlotEventManager_0() .fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT697.prototype.KEY_MAXIMUMROUNDWIN, "" + this.getSlotState_0().getMaximumRoundWin_0(), !0)); }, onEnterStopAutoplay_0: function () { this.getSlotState_0().hasJackpotWin_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); }, onEnterChangeGuiState_0: function () { this.changeGuiState_1(GT568.prototype.ID); }, notifyWrapperUncollectedWin_1: function (a) { 0 >= a || ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_UNCOLLECTEDWIN, "" + a, !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyGuiStateFinished_1: function (a) { a == GT568.prototype.ID && (this.getConnection_0().setBlocking_1(!1), this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_WINVISUALIZATION ? this.handleChangeStateForSpecialWinVisualization_0() : this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN || this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFORESPIN ? this.handleChangeStateForWorthlessWin_0() : ((a = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0() - this.getSlotState_0().getWinSum_1(!0)), (a = this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && 0 < a), (a = 0 < this.getSlotState_0().getWinSum_1(!1) || 0 < this.getSlotState_0().getSuperGamesSum_1(!1) || a), this.fastSpin ? this.handleChangeStateForInstantSpin_0() : this.fastCollect || (this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && (!a || this.getSlotState_0().isFastSpinEnabled_0())) ? this.handleChangeStateForInstantCollect_0() : this.fastGamble ? this.handleChangeStateForInstantGamble_0() : this.handleChangeStateAfterWinAnimationsFinished_0())); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.AUTOSTOP ? this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT) : a.getId_0() == GT1354.prototype.COLLECT && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((this.fastCollect = !0), this.requestFinishGuiState_0()) : this.getSlotState_0().isFastSpinEnabled_0() && a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((this.fastSpin = !0), this.requestFinishGuiState_0()) : a.getId_0() != GT1354.prototype.GAMBLE || !this.getSlotState_0().getCasinoState_0().isActionAllowed_0() || !this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() || (this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && this.getSlotState_0().getFreeSpinState_0().isBeforeFirstFreeSpin_0()) || ((this.fastGamble = !0), this.requestFinishGuiState_0()); }, handleChangeStateForSpecialWinVisualization_0: function () { this.changeState_1(GT178.prototype.ID); }, handleChangeStateAfterWinAnimationsFinished_0: function () { this.changeState_1(GT523.prototype.ID); }, handleChangeStateForInstantCollect_0: function () { this.changeState_1(GT624.prototype.ID); }, handleChangeStateForWorthlessWin_0: function () { this.changeState_1(GT246.prototype.ID); }, handleChangeStateForInstantSpin_0: function () { this.changeState_2(GT624.prototype.ID, new GT1354(GT1354.prototype.STARTSPIN)); }, handleChangeStateForInstantGamble_0: function () { this.changeState_1(GT842.prototype.ID); }, toString: function () { return "ClientStateWinAnimations (" + this.getId_0() + ")"; }, }, "GT479", [] ); GT479.prototype.ID = GT788.prototype.generateID_0(); var GT1414 = GT1514.extend( { initialConstructor_0: function () { this.settings = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.settings = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["e"]; }, init_0: function () { this.settings = null; }, decode_1: function (a) { this.settings = a; }, refresh_0: function () { if (null != this.settings) { var a = GT1677.prototype.tokenize_2(this.settings, ","); if (4 > a.length) { var b = GT1672.prototype.stringToInt_1(a[1]), d = this.slotState.getDefinition_0().findGameModeForLine_1(b); -1 != d ? this.slotState.setGameMode_1(d) : GT1650.prototype.assertFailed_1("No game mode for lines found: " + b); } else this.slotState.setGameMode_1(GT1672.prototype.stringToInt_1(a[3])); this.slotState.setBaseBet_1(GT1672.prototype.stringToInt_1(a[2])); } }, }, "GT1414", [] ), GT685 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":c"]; }, init_0: function () { this.slotState.setCashAlreadyPayedToSession_1(0); }, decode_1: function (a) { this.slotState.setCashAlreadyPayedToSession_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1)); }, }, "GT685", [] ), GT1468 = GT1514.extend( { initialConstructor_0: function () { this.clientInfo = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.clientInfo = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":y"]; }, init_0: function () { this.clientInfo = ""; }, decode_1: function (a) { this.clientInfo = GT1677.prototype.replaceInString_3(a, ":y,", ""); }, refresh_0: function () { this.slotState.setClientInfo_1(this.clientInfo); this.clientInfo = ""; }, }, "GT1468", [] ), GT1469 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":fs"]; }, init_0: function () { this.slotState.setFreeRoundsWinnings_1(0); this.slotState.setFreeRoundsPlayed_1(0); this.slotState.setFreeRoundsWon_1(0); }, decode_1: function (a) { this.slotState.setFreeRoundsWon_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2) + GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)); this.slotState.setFreeRoundsPlayed_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)); this.slotState.setFreeRoundsWinnings_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 4)); }, }, "GT1469", [] ), GT1552 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["f"]; }, init_0: function () { var a = this.slotState.getFreeSpinState_0(); a.setFreeSpinsWon_1(0); a.setFreeSpinsPlayed_1(0); a.setWinMultiplier_1(1); a.setPreviousWinMultiplier_1(1); a.setNextSpinReelset_1(0); a.setFreeSpinWinnings_1(0); a.setWinMeter_1(0); }, decode_1: function (a) { var b = this.slotState.getFreeSpinState_0(); b.setFreeSpinsWon_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); b.setFreeSpinsPlayed_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)); b.setWinMultiplier_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)); b.setPreviousWinMultiplier_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 4)); b.setNextSpinReelset_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 5)); b.setFreeSpinWinnings_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 6)); b.setWinMeter_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 7)); }, }, "GT1552", [] ), GT1317 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["h"]; }, init_0: function () { this.slotState.getGambleState_0().setHistory_1(null); }, decode_1: function (a) { a = GT1677.prototype.getFromCommaSeperatedList_2(a, 1); this.slotState.getGambleState_0().setHistory_1(a); }, }, "GT1317", [] ), GT1470 = GT1514.extend( { initialConstructor_0: function () { this.gamblesteps = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gamblesteps = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; this.gamblesteps = new java_util_JavaScriptVector(); }, decodedIds_0: function () { return ["q"]; }, init_0: function () { this.gamblesteps.removeAllElements_0(); }, decode_1: function (a) { a = [GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1), GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 2)]; (0 < a[0] || 0 < a[1]) && this.gamblesteps.addElement_1(a); }, refresh_0: function () { for (var a = this.gamblesteps.size_0(), b = [].createArray(a).init(0), d = [].createArray(a).init(0), e = 0; e < a; e++) (b[e] = this.gamblesteps.elementAt_1(e)[0]), (d[e] = Integer.truncate_1(this.gamblesteps.elementAt_1(e)[1])); this.slotState.getGambleState_0().setPossibleGambleSteps_1(new GT1504(b)); this.slotState.getGambleState_0().setPossibleSuperGameGambleSteps_1(new GT1595(d)); this.gamblesteps.removeAllElements_0(); }, }, "GT1470", [] ), GT1516 = GT1514.extend( { initialConstructor_0: function () { this.games = this.wins = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.games = this.wins = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; this.wins = new java_util_JavaScriptVector(); this.games = new java_util_JavaScriptVector(); }, decodedIds_0: function () { return ["g"]; }, init_0: function () { this.wins.setSize_1(0); this.games.setSize_1(0); this.slotState.getGambleState_0().setLuckyLoser_1(!1); }, decode_1: function (a) { this.wins.addElement_1(new Double(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1))); this.games.addElement_1(new Integer(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2))); this.slotState.getGambleState_0().setLuckyLoser_1(1 == GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)); }, refresh_0: function () { this.slotState.getGambleState_0().setWins_1(GT1504.prototype.fromVector_1(this.wins)); this.slotState.getGambleState_0().setSuperGameWins_1(GT1595.prototype.fromVector_1(this.games)); this.wins.setSize_1(0); this.games.setSize_1(0); }, }, "GT1516", [] ), GT640 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":ob3"]; }, decode_1: function (a) { this.slotState.setGameModeToReelIndexMapping_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 1)); }, }, "GT640", [] ), GT1415 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":h"]; }, init_0: function () { this.slotState.getGambleState_0().setNumberOfHalfCollects_1(0); }, decode_1: function (a) { this.slotState.getGambleState_0().setNumberOfHalfCollects_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); }, }, "GT1415", [] ), GT1575 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":x"]; }, init_0: function () { this.slotState.setLastWin_1(0); }, decode_1: function (a) { this.slotState.setLastWin_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1)); }, }, "GT1575", [] ), GT1226 = GT1514.extend( { initialConstructor_0: function () { this.tmppaytable = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.tmppaytable = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, init_0: function () { this.tmppaytable = new java_util_JavaScriptVector(); }, decodedIds_0: function () { return [":wa"]; }, decode_1: function (a) { if (0 == GT1677.prototype.getIntFromCommaSeperatedList_2(a, 6)) { var b = GT1677.prototype.getFromCommaSeperatedList_2(a, 1).charAt_1(0), d = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3), f = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 4), g = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 5), k = !1; 0 > e && ((e *= -1), (k = !0)); a = GT1677.prototype.tokenize_2(GT1677.prototype.getFromCommaSeperatedList_2(a, 8), ":"); for (var m = new java_util_JavaScriptVector(), n = 0; n < a.length; n++) m.add_1(new Integer(GT1672.prototype.stringToInt_1(a[n]))); b = new GT1601(b, d, e, f, k, this.slotState.getSuperGameState_0(), g, m); this.tmppaytable.addElement_1(b); } }, refresh_0: function () { var a = this.slotState.getDefinition_0().getPaytableEntries_0().toArray_0(), b = GT1460.prototype.fromVector_1(this.tmppaytable).toArray_0(), d = [].createArray(a.length + b.length); java_lang_System.prototype.arraycopy_5(a, 0, d, 0, a.length); java_lang_System.prototype.arraycopy_5(b, 0, d, a.length, b.length); this.slotState.getDefinition_0().setPaytableEntries_1(new GT1460(d)); }, }, "GT1226", [] ), GT1361 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; this.open = !1; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; this.open = !1; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["y"]; }, init_0: function () { this.open = !1; }, decode_1: function (a) { this.open = !0; }, refresh_0: function () { this.slotState.setPaytableOpen_1(this.open); }, }, "GT1361", [] ), GT1416 = GT1514.extend( { initialConstructor_0: function () { this.pluginstate = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.pluginstate = this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["x"]; }, init_0: function () { this.slotState.setPluginState_1(null); }, decode_1: function (a) { a = GT1677.prototype.tokenize_3(a, ",", !0); this.pluginstate = [].createArray(a.length - 2); for (var b = 2; b < a.length; b++) this.pluginstate[b - 2] = a[b]; }, refresh_0: function () { null != this.pluginstate && this.slotState.setPluginState_1(new GT1505(this.pluginstate)); this.pluginstate = null; }, }, "GT1416", [] ), GT1362 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["r"]; }, decode_1: function (a) { this.slotState.setCurrentReelSetIndex_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); for (var b = [].createArray(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)).init(0), d = 0; d < b.length; d++) b[d] = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3 + d); this.slotState.setReelPositions_1(new GT1595(b)); }, }, "GT1362", [] ), GT1417 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["s"]; }, decode_1: function (a) { this.slotState.setServerState_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); this.slotState.setPreviousRoundStartFailed_1(0 != GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)); }, }, "GT1417", [] ), GT1267 = GT1514.extend( { initialConstructor_0: function () { this.tmpjoker = this.tmppaytable = this.tmpreels = this.tmpallowedcreditsmultiplier = this.tmpallowedmultiplier = this.tmpallowedModes = this.tmpallowedlines = this.tmplines = this.superGameState = this.slotDefinition = null; this.visiblerows = 0; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.tmpjoker = this.tmppaytable = this.tmpreels = this.tmpallowedcreditsmultiplier = this.tmpallowedmultiplier = this.tmpallowedModes = this.tmpallowedlines = this.tmplines = this.superGameState = this.slotDefinition = null; this.visiblerows = 0; GT1514.prototype.initialConstructor_0.call(this); this.slotDefinition = a; this.superGameState = b; this.visiblerows = -1; }, decodedIds_0: function () { return ":n :l :i :m :f :j :r :u :v :w :s :b :a :g :o :e".split(" "); }, init_0: function () { this.tmplines = new java_util_JavaScriptVector(); this.tmpallowedlines = new java_util_JavaScriptVector(); this.tmpallowedModes = null; this.tmpreels = new java_util_JavaScriptVector(); this.tmppaytable = new java_util_JavaScriptVector(); this.tmpjoker = new java_util_JavaScriptVector(); this.tmpallowedcreditsmultiplier = this.tmpallowedmultiplier = null; }, decode_1: function (a) { if (!(null == a || 2 > a.length_0())) switch (a.charAt_1(1)) { case 110: this.slotDefinition.setName_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 1)); GT1267.prototype.LOG.log_1("Initialization of slot: " + this.slotDefinition.getName_0()); break; case 108: this.tmplines.addElement_1(this.buildLineDefinition_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 1))); break; case 105: this.tmpallowedlines.addElement_1(new Integer(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1))); break; case 109: this.tmpallowedmultiplier = GT1677.prototype.tokenize_2(a.substring_2(3, a.length_0()), ","); break; case 102: this.tmpallowedModes = GT1677.prototype.tokenize_2(a.substring_2(3, a.length_0()), ","); break; case 106: var b = GT1677.prototype.getFromCommaSeperatedList_2(a, 1).charAt_1(0), d = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3); a = GT1677.prototype.getFromCommaSeperatedList_2(a, 4); a = new GT1671(b, d, e, a); this.tmpjoker.addElement_1(a); break; case 114: b = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1); b >= this.tmpreels.size_0() && this.tmpreels.setSize_1(b + 1); null == this.tmpreels.elementAt_1(b) && this.tmpreels.setElementAt_2(new java_util_JavaScriptVector(), b); this.tmpreels.elementAt_1(b).addElement_1(this.buildCharArray_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 2))); break; case 117: a = GT1677.prototype.getFromCommaSeperatedList_2(a, 1); b = [].createArray(a.length_0()).init(0); for (d = 0; d < b.length; d++) b[d] = a.charAt_1(d); this.slotDefinition.setSuperGameWheel_1(b); this.superGameState.setWheel_1(b); break; case 118: this.visiblerows = GT1672.prototype.stringToInt_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 1)); break; case 119: var b = GT1677.prototype.getFromCommaSeperatedList_2(a, 1).charAt_1(0), d = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3), f = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 4); a = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 5); var g = !1; 0 > e && ((e *= -1), (g = !0)); a = new GT1601(b, d, e, f, g, this.superGameState, a); this.tmppaytable.addElement_1(a); break; case 115: a = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1); this.slotDefinition.setPercentagePayoutAsGames_1(a); this.superGameState.setPercentagePayoutAsGames_1(a); break; case 98: b = [].createArray(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)).init(0); for (d = 0; d < b.length; d++) b[d] = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2 + d); 0 != b.length ? this.slotDefinition.setBaseBets_1(new GT1595(b)) : this.slotDefinition.setBaseBets_1(null); break; case 97: this.slotDefinition.setAutoPlayCountMax_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); this.slotDefinition.setAutoPlayCountDefaultValue_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)); break; case 103: this.slotDefinition.setMaxGambleSteps_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); this.slotDefinition.setMaxGambleWin_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)); this.slotDefinition.setMaxGambleAbsoluteWin_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)); this.slotDefinition.setCollectAtEndOfRound_1(GT1677.prototype.equalsIgnoreCaseAZ_2(GT1677.prototype.getFromCommaSeperatedList_2(a, 4), "true")); break; case 111: this.slotDefinition.setPluginStaticInfo_1(a.substring_1(3)); break; case 101: this.tmpallowedcreditsmultiplier = GT1677.prototype.tokenize_2(a.substring_2(3, a.length_0()), ","); break; default: GT1267.prototype.LOG.verbose && GT1267.prototype.LOG.log_1("Attempting to decode an unsupported String " + a); } }, refresh_0: function () { 0 < this.tmplines.size_0() && (this.slotDefinition.setWinLines_1(GT1630.prototype.fromVector_1(this.tmplines)), this.slotDefinition.setMaxRows_1(this.visiblerows)); 0 < this.tmpallowedlines.size_0() && this.slotDefinition.setPlayLines_1(GT1595.prototype.fromVector_1(this.tmpallowedlines)); if (null != this.tmpallowedModes) { for (var a = [].createArray(this.tmpallowedModes.length).init(0), b = 0; b < a.length; b++) a[b] = GT1672.prototype.stringToInt_1(this.tmpallowedModes[b]); this.slotDefinition.setGameModeMapping_1(new GT1595(a)); } if (null != this.tmpallowedmultiplier) { a = [].createArray(this.tmpallowedmultiplier.length).init(0); for (b = 0; b < a.length; b++) a[b] = GT1672.prototype.stringToInt_1(this.tmpallowedmultiplier[b]); this.slotDefinition.setBetMultipliers_1(new GT1595(a)); } if (null != this.tmpallowedcreditsmultiplier) { a = [].createArray(this.tmpallowedcreditsmultiplier.length).init(0); for (b = 0; b < a.length; b++) a[b] = GT1672.prototype.stringToInt_1(this.tmpallowedcreditsmultiplier[b]); this.slotDefinition.setCreditsMultipliers_1(new GT1595(a)); } if (0 < this.tmpreels.size_0()) { a = [].createArray(this.tmpreels.size_0(), null, null).init(0); for (b = 0; b < a.length; b++) { var d = this.tmpreels.elementAt_1(b); a[b] = [].createArray(d.size_0(), null).init(0); for (var e = 0; e < d.size_0(); e++) a[b][e] = d.elementAt_1(e); } this.slotDefinition.setReelSets_1(a); } 0 < this.tmppaytable.size_0() && this.slotDefinition.setPaytableEntries_1(GT1460.prototype.fromVector_1(this.tmppaytable)); if (0 < this.tmpjoker.size_0()) { a = [].createArray(this.tmpjoker.size_0()); for (b = 0; b < a.length; b++) a[b] = this.tmpjoker.elementAt_1(b); this.slotDefinition.setJokers_1(a); } this.tmpjoker = this.tmppaytable = this.tmpreels = this.tmpallowedlines = this.tmplines = null; }, buildCharArray_1: function (a) { for (var b = [].createArray(a.length_0()).init(0), d = 0; d < b.length; d++) b[d] = a.charAt_1(d); return b; }, }, "GT1267", [] ); GT1267.prototype.buildLineDefinition_1 = function (a) { for (var b = [].createArray(a.length_0()).init(0), d = [].createArray(a.length_0()).init(0), e = 0, f = 0, g = 0; g < b.length; g++) switch (((b[g] = g + e), a.charAt_1(g))) { case 94: d[g] = 0; break; case 45: d[g] = 1; break; case 95: d[g] = 2; break; case 86: d[g] = 3; break; case 42: d[g] = 4; break; case 43: d[g] = 5; break; default: var k = a.charAt_1(g); 49 <= k && 57 >= k ? ((d[g] = -1), (e += k - 48 - 1), f++) : 97 <= k && 120 >= k && (d[g] = k - 97); } if (0 < f) { a = [].createArray(b.length - f).init(0); e = [].createArray(a.length).init(0); for (g = f = 0; g < b.length; g++) -1 != d[g] && ((a[f] = b[g]), (e[f] = d[g]), f++); b = a; d = e; } return new GT1613(b, d); }; GT1267.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT1268 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return [":z"]; }, init_0: function () { this.slotState.setSpecialCredits_1(0); }, decode_1: function (a) { this.slotState.setSpecialCredits_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1)); }, }, "GT1268", [] ), GT789 = GT1514.extend( { initialConstructor_0: function () { this.slotState = this.winvisualizationsteps = this.winvisualizationdata = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = this.winvisualizationsteps = this.winvisualizationdata = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; this.winvisualizationdata = new java_util_JavaScriptVector(); this.winvisualizationsteps = new java_util_JavaScriptVector(); }, init_0: function () { this.winvisualizationdata.setSize_1(0); this.winvisualizationsteps.setSize_1(0); }, decode_1: function (a) { a = GT1677.prototype.tokenize_3(a, ",", !0); for (var b = 1; b < a.length; b++) 1 == b % 2 ? this.winvisualizationdata.addElement_1(a[b]) : this.winvisualizationsteps.addElement_1(new Integer(GT1672.prototype.stringToInt_1(a[b]))); }, decodedIds_0: function () { return ["v"]; }, refresh_0: function () { this.slotState.setSpecialWinVisualizationData_1(GT1505.prototype.fromVector_1(this.winvisualizationdata)); this.winvisualizationdata.setSize_1(0); this.slotState.setSpecialWinVisualizationSteps_1(GT1595.prototype.fromVector_1(this.winvisualizationsteps)); this.winvisualizationsteps.setSize_1(0); }, }, "GT789", [] ), GT1517 = GT1514.extend( { initialConstructor_0: function () { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; }, decodedIds_0: function () { return ["b", "u", "a"]; }, decode_1: function (a) { if (null != this.slotState && null != this.slotState.getSuperGameState_0()) { var b = this.slotState.getSuperGameState_0(); 98 == a.charAt_1(0) ? (b.setLowestPrice_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)), b.setPrice_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2)), b.setBalance_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3)), b.setActionGames_1("true".equals_1(GT1677.prototype.getFromCommaSeperatedList_2(a, 4)))) : 117 == a.charAt_1(0) ? (b.setPositionOnWheel_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)), b.setWinCash_1(GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 2)), b.setWinSuperGames_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3))) : 97 == a.charAt_1(0) && b.setAccumulator_1(GT1677.prototype.getIntFromCommaSeperatedList_2(a, 1)); } }, }, "GT1517", [] ), GT1645 = GT1514.extend( { initialConstructor_0: function () { this.slotState = this.wins = null; GT1514.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotState = this.wins = null; GT1514.prototype.initialConstructor_0.call(this); this.slotState = a; this.wins = new java_util_JavaScriptVector(); }, init_0: function () { this.wins.setSize_1(0); }, decode_1: function (a) { var b = GT1677.prototype.getFromCommaSeperatedList_2(a, 0); if (":d".equals_1(b)) b = new GT1305(GT1677.prototype.getFromCommaSeperatedList_2(a, 1)); else if ("m".equals_1(b)) { var d = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 1), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2), f = null; 3 < this.getNumberOfElements_1(a) && (f = GT1677.prototype.getFromCommaSeperatedList_2(a, 3)); if ("MYSTERY".equals_1(f) && 0 >= d) return; b = new GT1356(d, e, f); } else if ("l".equals_1(b)) { var b = GT1677.prototype.getFromCommaSeperatedList_2(a, 1).charAt_1(0), g = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2), k = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3), m = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 4), d = GT1677.prototype.tokenize_2(GT1677.prototype.getFromCommaSeperatedList_2(a, 5), ":"), n = GT1672.prototype.stringToDouble_1(d[0]), p = null; 1 < d.length && (p = d[1]); var d = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 6), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 7), q = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 8), f = null; 9 < this.getNumberOfElements_1(a) && (f = GT1677.prototype.getFromCommaSeperatedList_2(a, 9)); b = new GT1599(b, k, q, g, m, n, p, d, e, null, f); } else { k = "o".equals_1(b); b = GT1677.prototype.getFromCommaSeperatedList_2(a, 1).charAt_1(0); g = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 2); m = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 3); d = GT1677.prototype.tokenize_2(GT1677.prototype.getFromCommaSeperatedList_2(a, 4), ":"); n = GT1672.prototype.stringToDouble_1(d[0]); p = null; 1 < d.length && (p = d[1]); var d = GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, 5), e = GT1677.prototype.getIntFromCommaSeperatedList_2(a, 6), r = 7, q = 0; k && ((q = GT1677.prototype.getIntFromCommaSeperatedList_2(a, r)), r++); f = null; this.getNumberOfElements_1(a) > r && (f = GT1677.prototype.getFromCommaSeperatedList_2(a, r)); r++; var t = null; if (this.getNumberOfElements_1(a) > r) { t = null; t = GT1677.prototype.getFromCommaSeperatedList_2(a, r); if (t.startsWith_1("[")) a = GT1677.prototype.tokenize_2(t, ",[]"); else if (-1 != t.indexOf_1(59)) a = GT1677.prototype.tokenize_2(t, ";"); else for (a = [].createArray(t.length_0()), r = 0; r < a.length; r++) a[r] = t.substring_2(r, r + 1); for (var t = [].createArray(Math.div(a.length, 2)).init(0), u = [].createArray(Math.div(a.length, 2)).init(0), r = 0; r < t.length; r++) (t[r] = GT1672.prototype.stringToInt_1(a[2 * r])), (u[r] = GT1672.prototype.stringToInt_1(a[2 * r + 1])); t = new GT1613(t, u); } b = new GT1512(b, q, g, k, m, n, p, d, e, f, t); } this.wins.addElement_1(b); }, getNumberOfElements_1: function (a) { for (var b = 0, d = 0; d < a.length_0(); d++) 44 == a.charAt_1(d) && b++; return b + 1; }, decodedIds_0: function () { return ["l", "c", "o", ":d", "m"]; }, refresh_0: function () { for (var a = this.wins.size_0(), b = [].createArray(a), d = 0; d < a; d++) { var e = this.wins.elementAt_1(d); this.slotState.getDefinition_0().hasJokers_0() && instanceOf(e, GT1599) ? (b[d] = new GT1599(e.symbol, e.line, e.start, e.num, e.freespins, e.jackpot, e.payCash, e.payGames, this.slotState.getDefinition_0().getJokers_0(), e.getDetails_0())) : (b[d] = e); } this.slotState.setWins_1(new GT1665(b)); this.wins.setSize_1(0); }, }, "GT1645", [] ), GT288 = GT1412.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.isUsingDynScreensLayout = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.isUsingDynScreensLayout = b; }, gameLogoContainer_2: function (a, b) { var d = GT288.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE_EXTRA, d = d + (this.isUsingDynScreensLayout ? Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2) : 0); return a .size_2(GT288.prototype.TOTAL_WIDTH - 2 * GT288.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, GT288.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE - d) .position_2(GT288.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, d); }, }, "GT288", [] ); GT288.prototype.TOTAL_WIDTH = 2048; GT288.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE = 814; GT288.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE = 125; GT288.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE_EXTRA = 10; var GT327 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.realSize = null; GT1412.prototype.initialConstructor_1.call(this, a); this.realSize = b; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1186.prototype.set_0().child_1(a.position_2(0, 646).remove_1(GT1618.prototype.PAYTABLE_CONTAINER))) .child_1(b.paytable_0().position_2(this.getRealSize_0().x, 0).contentScaledSize_2(this.getRealSize_0().width, 768).animationTime_1(500).pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL)); }, }, "GT327", [] ), GT247 = GT1412.extend( { initialConstructor_0: function () { this.realSize = null; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.realSize = null; GT1412.prototype.initialConstructor_1.call(this, a); this.realSize = b; }, getRealSize_0: function () { return this.realSize; }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1( GT1186.prototype .set_0() .child_1( a .position_2(0, 646) .remove_1(GT1618.prototype.PAYTABLE_CONTAINER) .remove_1(GT1618.prototype.GAMBLE_CONTAINER) .replace_2( GT1618.prototype.BACKGROUND_CONTAINER, GT871.prototype.set_0().id_1(GT1618.prototype.BACKGROUND_CONTAINER).size_2(1535, 924).horizontalAlignment_1(GT1488.prototype.CENTER).child_1(b.slotBackground_0()) ) .child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.GAMBLE_CONTAINER).position_2(0, 950)) ) ) .child_1(b.paytable_0().position_2(this.getRealSize_0().x, 0).contentScaledSize_2(this.getRealSize_0().width, 768).animationTime_1(500).pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL)); }, }, "GT247", [] ), GT118 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, console_2: function (a, b) { return a.removeChildren_0().position_2(0, 0).size_2(2048, 1024); }, }, "GT118", [] ), GT954 = GT1614.extend( { initialConstructor_0: function () { GT1614.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1614.prototype.initialConstructor_9.call( this, a, this.calculateCoordinate_3(b, g, m), this.calculateCoordinate_3(d, g, m), this.calculateDimension_3(e, g, m), this.calculateDimension_3(f, g, m), g, this.createCoordinates_4(e, f, g, m), k, !1 ); }, }, "GT954", [] ); GT954.prototype.createCoordinates_4 = function (a, b, d, e) { var f = Math.abs_1(d), g = Math.div(f, 2), k = Math.div(f, 2); e ? ((a += Math.div(f, 2)), (b += Math.div(f, 2))) : 0 > d ? ((a = g + a + f), (b = k + b + f)) : ((a -= Math.div(f, 2)), (b -= Math.div(f, 2))); f = [].createArray(10).init(0); f[0] = g; f[1] = k; f[2] = a; f[3] = k; f[4] = a; f[5] = b; f[6] = g; f[7] = b; f[8] = g; f[9] = k; return f; }; GT954.prototype.calculateDimension_3 = function (a, b, d) { return d ? a + Math.abs_1(b) : 0 > b ? a - 2 * b : a; }; GT954.prototype.calculateCoordinate_3 = function (a, b, d) { return d ? a - Math.abs_1(Math.div(b, 2)) : 0 > b ? a + b : a; }; var GT1057 = Class.extend( { initialConstructor_0: function () { this.outlineColor = this.color = this.coordinates = this.parentCanvas = this.parent = null; this.hidden = !1; this.winLabelIndex = this.outerLineThickness = this.innerLineThickness = 0; this.font = this.winString = this.winLinePositions = this.rDef = null; this.labelOutlineThickness = 0; this.winLabel = this.labelOutlineColor = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.outlineColor = this.color = this.coordinates = this.parentCanvas = this.parent = null; this.hidden = !1; this.winLabelIndex = this.outerLineThickness = this.innerLineThickness = 0; this.font = this.winString = this.winLinePositions = this.rDef = null; this.labelOutlineThickness = 0; this.winLabel = this.labelOutlineColor = null; this.parent = a; this.parentCanvas = b; this.innerLineThickness = e - 2 * f; this.outerLineThickness = e; this.coordinates = d; this.color = g; this.outlineColor = k; this.rDef = m; this.hidden = !0; this.winLabelIndex = 0; this.labelOutlineColor = null; this.labelOutlineThickness = -1; }, setLabelFont_1: function (a) { this.font = a; }, setColor_1: function (a) { this.color = a; }, setOutlineColor_1: function (a) { this.outlineColor = a; }, setWinningSymbols_1: function (a) { this.winLinePositions = a; }, setLabelText_1: function (a) { this.winString = a; }, setWinLabelIndex_1: function (a) { this.winLabelIndex = a; }, update_0: function () { this.hidden || (0 == this.outerLineThickness && 0 == this.innerLineThickness) || (null == this.winLinePositions || 0 == this.winLinePositions.getCount_0() ? null != this.coordinates && this.createWinLine_0() : (this.createWinFrames_2(this.outerLineThickness, this.outlineColor), null != this.coordinates && this.createFragmentedWinLine_0(), this.createWinFrames_2(this.innerLineThickness, this.color), this.createWinLabel_0())); }, createWinLine_0: function () { this.addLine_10(0, 0, this.parentCanvas.getWidth_0(), this.parentCanvas.getHeight_0(), this.outerLineThickness, this.coordinates, this.outlineColor, !1, 0, 0); this.addLine_10(0, 0, this.parentCanvas.getWidth_0(), this.parentCanvas.getHeight_0(), this.innerLineThickness, this.coordinates, this.color, !1, 0, 0); }, createWinFrames_2: function (a, b) { for (var d = 0; d < this.winLinePositions.getCount_0(); d++) { var e = this.winLinePositions.getSymbolColumn_1(d), f = this.winLinePositions.getSymbolRow_1(d); if ((0 == f || !this.winLinePositions.isWinningPosition_2(e, f - 1)) && e < this.rDef.columns) { for (var g = f + 1; this.winLinePositions.isWinningPosition_2(e, g) && g < this.rDef.rows; ) g++; this.addLineFrame_7(this.rDef.getColumnPos_1(e), this.rDef.getReelY_1(e) + this.rDef.getRowPos_1(f), this.rDef.symbolWidth, (g - f) * this.rDef.symbolHeight, a, b, !0); } } }, createFragmentedWinLine_0: function () { for (var a = -1, b = 0; b < this.rDef.columns; b++) if (this.winLinePositions.isWinningColumn_1(b)) { var a = -1 == a ? 0 : this.rDef.getColumnPos_1(a) + this.rDef.symbolWidth, d = this.rDef.getColumnPos_1(b); this.addLine_10(a, 0, d - a, this.parentCanvas.getHeight_0(), this.outerLineThickness, this.coordinates, this.outlineColor, !0, -a, 0); this.addLine_10(a, 0, d - a, this.parentCanvas.getHeight_0(), this.innerLineThickness, this.coordinates, this.color, !0, -a, 0); a = b; } a = -1 == a ? 0 : this.rDef.getColumnPos_1(a) + this.rDef.symbolWidth; d = this.parentCanvas.getWidth_0(); this.addLine_10(a, 0, d - a, this.parentCanvas.getHeight_0(), this.outerLineThickness, this.coordinates, this.outlineColor, !0, -a, 0); this.addLine_10(a, 0, d - a, this.parentCanvas.getHeight_0(), this.innerLineThickness, this.coordinates, this.color, !0, -a, 0); }, addLineFrame_7: function (a, b, d, e, f, g, k) { this.addLine_10( GT954.prototype.calculateCoordinate_3(a, f, k), GT954.prototype.calculateCoordinate_3(b, f, k), GT954.prototype.calculateDimension_3(d, f, k), GT954.prototype.calculateDimension_3(e, f, k), f, GT954.prototype.createCoordinates_4(d, e, f, k), g, !1, 0, 0 ); }, addLine_10: function (a, b, d, e, f, g, k, m, n, p) { GT1650.prototype.assertExp_2(0 < g.length, "You try to add a line with length 0!"); p = [].createArray(g.length).init(0); if (m) { p = 0; m = [].createArray(g.length).init(0); for (n = 0; n < g.length; n += 2) if (g.length > n + 2) { var q = this.clipLine_5(g[n], g[n + 1], g[n + 2], g[n + 3], new GT1553(a, b, d, e)); null != q && (java_lang_System.prototype.arraycopy_5(q, 0, m, 2 * p, 4), p++); } for (n = a = 0; n < m.length; n += 2) (0 == m[n] && 0 == m[n + 1]) || a++; p = [].createArray(2 * a).init(0); java_lang_System.prototype.arraycopy_5(m, 0, p, 0, 2 * a); } else for (p = g, n = 0; n < p.length; n += 2) (p[n] += a), (p[n + 1] += b); 0 < p.length ? this.parentCanvas.addPolyLine_3(p, f, k) : GT1057.prototype.LOG.t_1("The whole line has been clipped!?!?! Something wrong in the decorator concerning the win lines?!"); }, createWinLabel_0: function () { if (0 != this.winLinePositions.getCount_0() && null != this.winString) { var a = this.winLinePositions.getSymbolColumn_1(0), b = this.winLinePositions.getSymbolRow_1(0); 0 < this.winLabelIndex && (this.winLabelIndex < this.winLinePositions.getCount_0() ? ((a = this.winLinePositions.getSymbolColumn_1(this.winLabelIndex)), (b = this.winLinePositions.getSymbolRow_1(this.winLabelIndex))) : ((b = this.winLinePositions.getCount_0() - 1), (a = this.winLinePositions.getSymbolColumn_1(b)), (b = this.winLinePositions.getSymbolRow_1(b)))); a >= this.rDef.columns || (GT1560.prototype.destroyIfAlive_1(this.winLabel), (this.winLabel = new GT1004( this.parent, this.parentCanvas, this.rDef.getColumnPos_1(a) + Integer.truncate_1(0.07 * this.rDef.symbolWidth), this.rDef.getReelY_1(a) + this.rDef.getRowPos_1(b) - Integer.truncate_1(0.07 * this.rDef.symbolHeight), GT1488.prototype.LEFT, GT1489.prototype.TOP, this.winString, this.font, this.color, this.outlineColor, this.outerLineThickness, this.labelOutlineColor, this.labelOutlineThickness ))); } }, hideWinLine_1: function (a) { this.hidden = a; }, setLabelTextOutline_2: function (a, b) { this.labelOutlineThickness = b; this.labelOutlineColor = a; GT1560.prototype.isAlive_1(this.winLabel) && this.winLabel.recreateText_0(); }, }, "GT1057", [] ); GT1057.prototype.outcode_3 = function (a, b, d) { var e = 0; 0 >= a.width ? (e = e | GT1057.prototype.OUT_LEFT | GT1057.prototype.OUT_RIGHT) : b < a.x ? (e |= GT1057.prototype.OUT_LEFT) : b > a.x + a.width && (e |= GT1057.prototype.OUT_RIGHT); 0 >= a.height ? (e = e | GT1057.prototype.OUT_TOP | GT1057.prototype.OUT_BOTTOM) : d < a.y ? (e |= GT1057.prototype.OUT_TOP) : d > a.y + a.height && (e |= GT1057.prototype.OUT_BOTTOM); return e; }; GT1057.prototype.clipLine_5 = function (a, b, d, e, f) { for (var g = f.x, k = f.x + f.width, m = f.y, n = f.y + f.height, p = this.outcode_3(f, a, b), q = this.outcode_3(f, d, e); 0 != (p | q); ) { if (0 != (p & q)) return null; var r = d - a, t = e - b; 0 != p ? ((p & GT1057.prototype.OUT_LEFT) == GT1057.prototype.OUT_LEFT && 0 != r ? ((b += Math.div((g - a) * t, r)), (a = g)) : (p & GT1057.prototype.OUT_RIGHT) == GT1057.prototype.OUT_RIGHT && 0 != r ? ((b += Math.div((k - a) * t, r)), (a = k)) : (p & GT1057.prototype.OUT_BOTTOM) == GT1057.prototype.OUT_BOTTOM && 0 != t ? ((a += Math.div((n - b) * r, t)), (b = n)) : (p & GT1057.prototype.OUT_TOP) == GT1057.prototype.OUT_TOP && 0 != t && ((a += Math.div((m - b) * r, t)), (b = m)), (p = this.outcode_3(f, a, b))) : 0 != q && ((q & GT1057.prototype.OUT_LEFT) == GT1057.prototype.OUT_LEFT && 0 != r ? ((e += Math.div((g - d) * t, r)), (d = g)) : (q & GT1057.prototype.OUT_RIGHT) == GT1057.prototype.OUT_RIGHT && 0 != r ? ((e += Math.div((k - d) * t, r)), (d = k)) : (q & GT1057.prototype.OUT_BOTTOM) == GT1057.prototype.OUT_BOTTOM && 0 != t ? ((d += Math.div((n - e) * r, t)), (e = n)) : (q & GT1057.prototype.OUT_TOP) == GT1057.prototype.OUT_TOP && 0 != t && ((d += Math.div((m - e) * r, t)), (e = m)), (q = this.outcode_3(f, d, e))); } return [Integer.truncate_1(a), Integer.truncate_1(b), Integer.truncate_1(d), Integer.truncate_1(e)]; }; GT1057.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT1057.prototype.OUT_LEFT = 1; GT1057.prototype.OUT_TOP = 2; GT1057.prototype.OUT_RIGHT = 4; GT1057.prototype.OUT_BOTTOM = 8; var GT153 = GT614.extend( { initialConstructor_0: function () { this.sound = this.timer = this.soundFader = this.soundPlayer = null; this.reelSoundFadeoutDuration = this.reelSoundFadeinDuration = 0; this.playing = !1; this.playStarted = this.loopRestart = this.loopEnd = this.loopStartAgain = 0; this.active = !1; GT614.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sound = this.timer = this.soundFader = this.soundPlayer = null; this.reelSoundFadeoutDuration = this.reelSoundFadeinDuration = 0; this.playing = !1; this.playStarted = this.loopRestart = this.loopEnd = this.loopStartAgain = 0; this.active = !1; GT614.prototype.initialConstructor_0.call(this); this.soundPlayer = a; this.timer = b; this.soundFader = new GT790(this, b); this.loopRestart = this.loopEnd = this.loopStartAgain = 0; this.active = !1; this.reelSoundFadeoutDuration = this.reelSoundFadeinDuration = 500; }, setSound_1: function (a) { this.setSound_4(a, 0, -1, -1); }, setFadeinDuration_1: function (a) { this.reelSoundFadeinDuration = a; }, getFadeinDuration_0: function () { return this.reelSoundFadeinDuration; }, setFadeoutDuration_1: function (a) { this.reelSoundFadeoutDuration = a; }, getFadeoutDuration_0: function () { return this.reelSoundFadeoutDuration; }, setSound_4: function (a, b, d, e) { this.sound = a; this.loopStartAgain = b; this.loopEnd = d; this.loopRestart = e; }, reelsStarted_0: function () { null != this.soundPlayer && null != this.sound && (this.active || (this.soundPlayer.startLooped_6(this.sound, this.loopStartAgain, this.loopEnd, this.loopRestart, 0, 0), (this.playStarted = this.timer.currentTimeMillis_0()), (this.active = !0)), this.soundFader.fadeIn_0(), (this.playing = !0)); }, reelsStopImmediately_1: function (a) { null != this.soundPlayer && null != this.sound && (this.soundFader.fadeOut_0(), (this.playing = !1)); }, lastReelStopped_0: function () { null != this.soundPlayer && null != this.sound && (this.soundFader.fadeOut_0(), (this.playing = !1)); }, isPlaying_0: function () { return this.playing; }, setVolume_1: function (a) { null != this.soundPlayer && null != this.sound && this.active && this.soundPlayer.setVolume_2(this.sound, a); }, fadedOut_0: function () { if (null != this.soundPlayer && null != this.sound && this.active) { this.soundPlayer.stop_1(this.sound); var a = this.timer.currentTimeMillis_0() - this.playStarted, b = this.loopStartAgain + a; if (b > this.loopRestart) { a = 0 == this.loopEnd ? this.sound.getLength_0() - this.loopRestart : this.loopEnd - this.loopRestart; for (b -= this.loopRestart; b >= a; ) b -= a; this.loopStartAgain = b + this.loopRestart; } else this.loopStartAgain = b; this.active = !1; } }, }, "GT153", [] ), GT790 = Class.extend( { initialConstructor_0: function () { this.timer = this.runSound = null; this.currentVolume = 0; this.fadingIn = !1; this.lastUpdated = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.timer = this.runSound = null; this.currentVolume = 0; this.fadingIn = !1; this.lastUpdated = 0; this.runSound = a; this.timer = b; }, fadeIn_0: function () { this.fadingIn = !0; GT153.prototype.LOG.trace && GT1650.prototype.log_1("ReelsRunSoundContinuousSound fadeIn " + this.currentVolume); 0 == this.currentVolume && ((this.lastUpdated = this.timer.currentTimeMillis_0()), this.timer.triggerCallbackAfter_2(this, 50)); }, fadeOut_0: function () { this.fadingIn = !1; GT153.prototype.LOG.trace && GT1650.prototype.log_1("ReelsRunSoundContinuousSound fadeOut " + this.currentVolume); 100 == this.currentVolume && ((this.lastUpdated = this.timer.currentTimeMillis_0()), this.timer.triggerCallbackAfter_2(this, 50)); }, run_0: function () { var a = this.timer.currentTimeMillis_0(); if (this.fadingIn) { if (100 != this.currentVolume) { var b = 100; 0 < this.runSound.getFadeinDuration_0() && (b = 100 / this.runSound.getFadeinDuration_0()); this.currentVolume += Integer.truncate_1(b * (a - this.lastUpdated)); this.lastUpdated = a; 100 <= this.currentVolume ? ((this.currentVolume = 100), this.runSound.setVolume_1(this.currentVolume)) : (this.runSound.setVolume_1(this.currentVolume), this.timer.triggerCallbackAfter_2(this, 50)); } } else 0 != this.currentVolume && ((b = 100), 0 < this.runSound.getFadeoutDuration_0() && (b = 100 / this.runSound.getFadeoutDuration_0()), (this.currentVolume -= Integer.truncate_1(b * (a - this.lastUpdated))), (this.lastUpdated = a), 0 >= this.currentVolume ? ((this.currentVolume = 0), this.runSound.setVolume_1(this.currentVolume), this.runSound.fadedOut_0()) : (this.runSound.setVolume_1(this.currentVolume), this.timer.triggerCallbackAfter_2(this, 50))); }, }, "GT790", [Runnable] ); GT153.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT790.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT391 = Class.extend( { initialConstructor_0: function () { this.uniqueSpinTeaserSound = this.teaserSounds = this.player = null; this.minSymbols = 0; this.permittedReels = this.symbol = null; this.numStopped = this.numReels = this.rowPosition = this.lastReelIndex = this.count = this.playAfterNumber = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT391.prototype.initialConstructor_8.call(this, a, null, null, null, 0, -1, null, 0); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.uniqueSpinTeaserSound = this.teaserSounds = this.player = null; this.minSymbols = 0; this.permittedReels = this.symbol = null; this.numStopped = this.numReels = this.rowPosition = this.lastReelIndex = this.count = this.playAfterNumber = 0; this.symbol = a; this.teaserSounds = b; this.uniqueSpinTeaserSound = d; this.player = e; this.minSymbols = f; this.rowPosition = g; this.permittedReels = k; this.playAfterNumber = m; this.lastReelIndex = -1; this.numStopped = 0; }, getCount_0: function () { return this.count; }, init_1: function (a) { this.numReels = a; }, getNumReels_0: function () { return this.numReels; }, getMinSymbols_0: function () { return this.minSymbols; }, setMinSymbols_1: function (a) { this.minSymbols = a; }, getTeaserSounds_0: function () { if (null == this.teaserSounds) return null; for (var a = [].createArray(this.teaserSounds.length), b = 0; b < a.length; b++) a[b] = this.teaserSounds[b]; return a; }, setTeaserSounds_1: function (a) { if (null == a) this.teaserSounds = null; else { this.teaserSounds = [].createArray(a.length); for (var b = 0; b < this.teaserSounds.length; b++) this.teaserSounds[b] = a[b]; } }, getRowPosition_0: function () { return this.rowPosition; }, setRowPosition_1: function (a) { this.rowPosition = a; }, getSymbols_0: function () { return this.symbol; }, setPermittedReels_1: function (a) { if (null == a) this.permittedReels = null; else { this.permittedReels = [].createArray(a.length).init(0); for (var b = 0; b < this.permittedReels.length; b++) this.permittedReels[b] = a[b]; } }, getPermittedReels_0: function () { if (null == this.permittedReels) return null; for (var a = [].createArray(this.permittedReels.length).init(0), b = 0; b < a.length; b++) a[b] = this.permittedReels[b]; return a; }, reset_0: function () { this.count = 0; this.lastReelIndex = -1; this.numStopped = 0; if (null != this.player) { if (null != this.teaserSounds) for (var a = 0; a < this.teaserSounds.length; ++a) null != this.teaserSounds[a] && this.player.prepareSound_2(this.teaserSounds[a], 0); null != this.uniqueSpinTeaserSound && this.player.prepareSound_2(this.uniqueSpinTeaserSound, 0); } }, play_1: function (a) { if (null != this.player && null != this.teaserSounds) { var b = !1; this.count == this.playAfterNumber - 1 && null != this.uniqueSpinTeaserSound && (b = !0); var d = null; b && (d = new GT876(this.player, this.uniqueSpinTeaserSound)); this.count < this.teaserSounds.length ? ((a = instanceOf(a, GT939) ? a.getStopSoundPanning_0() : 1 < a.getReelsLayout_0().columns ? (1.6 * a.getIndex_0()) / (a.getReelsLayout_0().columns - 1) - 0.8 : 0), this.player.start_6(this.teaserSounds[this.count], d, 0, 0, 100, a)) : GT391.prototype.LOG.verbose && GT391.prototype.LOG.log_1("Access would've caused an array index out of bounds exception: count = " + this.count + ", array size = " + this.teaserSounds.length); } else GT391.prototype.LOG.verbose && GT391.prototype.LOG.log_1("play sound " + this.count + " (sound or soundplayer null)"); }, startTeaser_3: function (a, b, d) { this.play_1(a); }, isTeaserConditionComplied_3: function (a, b, d) { if ( null != this.symbol && -1 != this.symbol.indexOf_1(GT1672.prototype.charToString_1(b)) && this.lastReelIndex != a.getIndex_0() && (-1 == this.rowPosition || this.rowPosition == d) && ((this.lastReelIndex = a.getIndex_0()), this.numReels - a.getIndex_0() >= this.minSymbols - this.count || this.count + 1 == this.minSymbols) ) { if (null == this.permittedReels) return !0; if (0 < this.permittedReels.length) for (b = 0; b < this.permittedReels.length; ++b) if (this.permittedReels[b] == a.getIndex_0() && this.count + this.permittedReels.length - b >= this.minSymbols) return !0; } return !1; }, symbolUnveiled_3: function (a, b, d) { this.isTeaserConditionComplied_3(a, b, d) && (this.startTeaser_3(a, b, d), this.count++); }, reelStarted_1: function (a) {}, reelStopped_1: function (a) { this.numStopped++; if (this.numReels == this.numStopped && null != this.player) { if (null != this.teaserSounds) for (a = 0; a < this.teaserSounds.length; ++a) null != this.teaserSounds[a] && this.player.cancelPreparation_2(this.teaserSounds[a], 0); null != this.uniqueSpinTeaserSound && this.player.cancelPreparation_2(this.uniqueSpinTeaserSound, 0); } }, }, "GT391", [GT647] ); GT391.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT420 = GT391.extend( { initialConstructor_0: function () { this.soundPlayer = this.reelStopSounds = null; this.muteReelStopSounds = !1; GT391.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.soundPlayer = this.reelStopSounds = null; this.muteReelStopSounds = !1; GT391.prototype.initialConstructor_8.call(this, a, b, null, d, 0, -1, null, 0); this.reelStopSounds = new java_util_JavaScriptVector(); this.soundPlayer = d; }, setUniqueSpinTeaserSound_2: function (a, b) { this.playAfterNumber = a; this.uniqueSpinTeaserSound = b; }, getUniqueSpinTeaserSound_0: function () { return this.uniqueSpinTeaserSound; }, getUniqueSpinTeaserSoundNumber_0: function () { return this.playAfterNumber; }, isMuteReelStopSounds_0: function () { return this.muteReelStopSounds; }, setMuteReelStopSounds_1: function (a) { this.muteReelStopSounds = a; }, startTeaser_3: function (a, b, d) { GT391.prototype.startTeaser_3.call(this, a, b, d); this.muteReelStopSounds && instanceOf(a, GT939) && (this.reelStopSounds.size_0() <= a.getIndex_0() && this.reelStopSounds.setSize_1(a.getIndex_0() + 1), this.reelStopSounds.set_2(a.getIndex_0(), a.getStopSound_0()), a.setStopSound_3(null, this.soundPlayer, a.getStopSoundStartPosition_0())); }, reelStopped_1: function (a) { GT391.prototype.reelStopped_1.call(this, a); if (instanceOf(a, GT939) && this.reelStopSounds.size_0() > a.getIndex_0() && null != this.reelStopSounds.get_1(a.getIndex_0())) { a.setStopSound_3(this.reelStopSounds.get_1(a.getIndex_0()), this.soundPlayer, a.getStopSoundStartPosition_0()); this.reelStopSounds.set_2(a.getIndex_0(), null); a = !0; for (var b = 0; b < this.reelStopSounds.size_0(); b++) if (null != this.reelStopSounds.get_1(b)) { a = !1; break; } a && this.reelStopSounds.setSize_1(0); } }, }, "GT420", [] ), GT392 = Class.extend( { initialConstructor_0: function () { this.highlight = this.skinManager = this.superGame = null; this.targetPosition = this.numPositions = this.position = 0; this.inSilentMode = this.skipTargetOnce = this.targetReached = this.idle = !1; this.soundWheelStep = null; this.currentCallbackId = this.wheelStepDuration = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.highlight = this.skinManager = this.superGame = null; this.targetPosition = this.numPositions = this.position = 0; this.inSilentMode = this.skipTargetOnce = this.targetReached = this.idle = !1; this.soundWheelStep = null; this.currentCallbackId = this.wheelStepDuration = 0; this.superGame = a; this.skinManager = b; this.highlight = d; this.position = f; this.numPositions = e; this.targetPosition = -1; this.idle = !0; this.skipTargetOnce = this.targetReached = !1; this.soundWheelStep = g; this.currentCallbackId = 0; this.wheelStepDuration = 300; this.updateVisible_0(); }, getPosition_0: function () { return this.position; }, getNumberOfPositions_0: function () { return this.numPositions; }, start_0: function () { this.currentCallbackId++; this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, new Integer(this.currentCallbackId)), this.currentStepSpeed_0()); }, run_1: function (a) { !this.highlight.isAlive_0() || (instanceOf(a, Integer) && a.intValue_0() != this.currentCallbackId) || (this.doStep_0(), this.updateVisible_0()); }, determineDistance_0: function () { for (var a = 0, b = 0; b < this.numPositions; ++b) { if ((this.position + b) % this.numPositions == this.targetPosition) return a + 1; a++; } return a; }, doStep_0: function () { if (!this.targetReached) { this.idle && this.skinManager.getSoundPlayer_0().start_1(this.soundWheelStep); this.superGame.isTurboEnabled_0() && (this.hasTargetPosition_0() || this.idle) ? this.hasTargetPosition_0() ? (this.position = this.targetPosition) : this.idle && (this.position = (this.position + 1) % this.numPositions) : (this.position = (this.position + 1) % this.numPositions); if (this.position == this.targetPosition) this.skipTargetOnce ? ((this.skipTargetOnce = !1), GT392.prototype.LOG.verbose && GT392.prototype.LOG.log_1("[WheelAnimator] Doing an extra lap due to skipTargetOnce")) : ((this.targetReached = !0), this.superGame.notifyWheelTargetReached_0()); else if (this.hasTargetPosition_0()) { var a = this.determineDistance_0(); !this.skipTargetOnce && a < Math.div(this.numPositions, 2) && this.superGame.fadeOutWheelSpinSound_1(this.currentStepSpeed_0() * a); GT392.prototype.LOG.verbose && GT392.prototype.LOG.log_1("[WheelAnimator] Position is " + this.position + ", target position is " + this.targetPosition + " and distance is " + a + " (of " + this.numPositions + ")"); } this.targetReached || this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, new Integer(this.currentCallbackId)), this.currentStepSpeed_0()); } }, updateVisible_0: function () { for (var a = this.highlight.getChildCount_0(), b = 0; b < a; b++) this.highlight.getChild_1(b).hide_1(this.position != b); }, hasTargetPosition_0: function () { return 0 <= this.targetPosition; }, startFastRunning_0: function () { this.targetPosition = -1; this.idle = this.targetReached = !1; this.start_0(); }, setTargetPosition_1: function (a) { this.targetPosition = a; this.idle = this.targetReached = !1; this.start_0(); }, setSkipTargetOnce_1: function (a) { this.skipTargetOnce = a; }, setInSilentMode_1: function (a) { this.inSilentMode = a; }, currentStepSpeed_0: function () { return this.superGame.isTurboEnabled_0() ? (this.idle ? this.superGame.getWheelTurboStepDuration_0() : 15) : this.idle ? this.superGame.getWheelStepDuration_0() : this.superGame.getWheelSpinningDuration_0(); }, }, "GT392", [GT1482] ); GT392.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT385 = GT787.extend( { initialConstructor_0: function () { this.scaledH = this.scaledW = 0; this.scaledWHSet = !1; GT787.prototype.initialConstructor_0.call(this); this.scaledH = this.scaledW = 1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, onlyChild_1: function (a) { this.removeChildrenImpl_0(); this.childImpl_1(a); return this; }, contentScaledSize_2: function (a, b) { this.scaledW = a; this.scaledH = b; this.scaledWHSet = !0; return this; }, load_1: function (a) { this.loadImpl_1(a); }, create_2: function (a, b) { var d = new GT1437(a); d.move_2(this.getCreationX_0(), this.getCreationY_0()); d.resize_2(this.scaledW, this.scaledH); this.createImpl_2(d, b); if (0 < d.getChildCount_0()) { var e = this.scaledW / d.getChild_1(0).getWidth_0(), f = this.scaledH / d.getChild_1(0).getHeight_0(); d.setContentScaling_2(e, f); d.getChild_1(0).move_2(0, 0); } return d; }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT385); GT1650.prototype.assertExp_2(b, "Descriptor is no DContainerContentScaled"); b && (this.modifyDescriptorImpl_1(a), this.scaledWHSet && ((a.scaledH = this.scaledH), (a.scaledW = this.scaledW))); }, }, "GT385", [GT1272] ); GT385.prototype.set_0 = function () { return new GT385(); }; var GT299 = GT787.extend( { initialConstructor_0: function () { this.reelsets = null; this.reelsetsAdded = !1; GT787.prototype.initialConstructor_0.call(this); this.reelsets = new java_util_JavaScriptVector(); this.reelsetsAdded = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, addReelset_1: function (a) { this.reelsets.addElement_1(new Integer(a)); this.reelsetsAdded = !0; return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, childBefore_2: function (a, b) { return this.childBeforeImpl_2(a, b); }, childAfter_2: function (a, b) { return this.childAfterImpl_2(a, b); }, create_2: function (a, b) { if ("1".equals_1(b.getParameter_1("reelsetdependent")) && instanceOf(b, GT1547)) { var d = b.getSlotState_0(); if (null != d) { var e = 0; d.getFreeSpinState_0().isFreeSpinsRunning_0() && (e = d.getFreeSpinState_0().getNextSpinReelset_0()); return this.create_3(a, b, e); } } return this.create_3(a, b, -1); }, createContainer_6: function (a, b, d, e, f, g) { return new GT248(a, b, d, e, f, g); }, create_3: function (a, b, d) { for (var e = !1, f = [].createArray(this.reelsets.size_0()).init(0), g = 0; g < f.length; g++) (f[g] = this.reelsets.elementAt_1(g).intValue_0()), e || f[g] != d || (e = !0); return e || -1 == d ? ((a = this.createContainer_6(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a), f)), this.createImpl_2(a, b), a) : null; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, equals_1: function (a) { if (this == a) return !0; if (!GT787.prototype.equals_1.call(this, a) || !instanceOf(a, GT299)) return !1; if (null == this.reelsets) { if (null != a.reelsets) return !1; } else if (!this.reelsets.equals_1(a.reelsets)) return !1; return !0; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT299); GT1650.prototype.assertExp_2(b, "Descriptor is no DContainerReelsetDependent"); if (b && (this.modifyDescriptorImpl_1(a), this.reelsetsAdded)) for (b = 0; b < this.reelsets.size_0(); ++b) { var d = this.reelsets.get_1(b); a.addReelset_1(d.intValue_0()); } }, }, "GT299", [GT1272] ); GT299.prototype.set_0 = function () { return new GT299(); }; var GT383 = GT787.extend( { initialConstructor_0: function () { GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); d = new GT323(a, this.xPos, this.yPos, d, e); for (e = 0; e < this.children.size_0(); e++) this.children.elementAt_1(e).create_2(d, b); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); }, contentScaledSize_2: function (a, b) { this.contentScaledSizeImpl_2(a, b); return this; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT383); GT1650.prototype.assertExp_2(b, "Descriptor is no DFreeGameStartEndScreen"); b && this.modifyDescriptorImpl_1(a); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT383", [GT1272] ); GT383.prototype.set_0 = function () { return new GT383(); }; var GT785 = GT787.extend( { initialConstructor_0: function () { this.gambleHistoryY = this.gambleHistoryX = this.stringGambleCard = this.stringSoundClose = this.stringSoundOpen = this.stringgamble = this.stringgamblelost = this.stringgamblewintop = this.stringgamblewin = this.gamblesoundloops = this.stringgamblesounds = null; this.gambleHistoryScaleFactor = 0; this.soundlooppositions = this.soundgamblewinstoppositions = null; this.animTime = this.selectedCardTextOffsetY = this.selectedCardTextOffsetX = 0; this.useConcreteCongratsText = this.shouldScalePercental = this.shouldAutoCenterContent = this.showCText = !1; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.shouldScalePercental = this.shouldAutoCenterContent = !1; this.stringgamblesounds = [].createArray(20); this.gamblesoundloops = [].createArray(this.stringgamblesounds.length, null).init(0); this.useConcreteCongratsText = !0; this.gambleHistoryScaleFactor = 0.362; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, useConcreteCongratulationsText_1: function (a) { this.useConcreteCongratsText = a; return this; }, imageGambleCard_2: function (a, b) { this.stringGambleCard = null == a ? null : GT1390.prototype.set_0().file_1(a).separateAlphaRegion_1(b).tiling_2(6, 1); return this; }, imageGambleCardTiny_2: function (a, b) { return this; }, imageGambleCard_1: function (a) { this.stringGambleCard = a; this.stringGambleCard.tiling_2(6, 1); return this; }, imageGambleCardTiny_1: function (a) { return this; }, soundGambleWin_1: function (a) { this.stringgamblewin = a; return this; }, addSoundGambleLoopStep_2: function (a, b) { this.stringgamblesounds[b] = a; return this; }, soundGambleWinStopPositions_1: function (a) { this.soundgamblewinstoppositions = a; return this; }, addSoundGambleLoopPositions_4: function (a, b, d, e) { this.gamblesoundloops[a] = [b, d, e]; return this; }, soundGambleLoopPositions_3: function (a, b, d) { this.soundlooppositions = [a, b, d]; return this; }, soundGambleWinTop_1: function (a) { this.stringgamblewintop = a; return this; }, soundGambleLost_1: function (a) { this.stringgamblelost = a; return this; }, soundGamble_1: function (a) { this.stringgamble = a; return this; }, soundOpen_1: function (a) { this.stringSoundOpen = a; return this; }, soundClose_1: function (a) { this.stringSoundClose = a; return this; }, gambleHistoryCardPosition_2: function (a, b) { this.gambleHistoryX = a; this.gambleHistoryY = b; return this; }, gambleHistoryCardScaleFactor_1: function (a) { this.gambleHistoryScaleFactor = a; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, selectedTextOffsetX_1: function (a) { this.selectedCardTextOffsetX = a; return this; }, selectedTextOffsetY_1: function (a) { this.selectedCardTextOffsetY = a; return this; }, animationTime_1: function (a) { this.animTime = a; return this; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); null != this.stringGambleCard && this.stringGambleCard.load_1(a.getResourceManager_0()); null != this.stringgamblewin && a.getResourceManager_0().startLoadSound_1(this.stringgamblewin); null != this.stringgamblewintop && a.getResourceManager_0().startLoadSound_1(this.stringgamblewintop); null != this.stringgamblelost && a.getResourceManager_0().startLoadSound_1(this.stringgamblelost); null != this.stringgamble && a.getResourceManager_0().startLoadSound_1(this.stringgamble); null != this.stringSoundOpen && a.getResourceManager_0().startLoadSound_1(this.stringSoundOpen); null != this.stringSoundClose && a.getResourceManager_0().startLoadSound_1(this.stringSoundClose); for (b = 0; b < this.stringgamblesounds.length; ++b) null != this.stringgamblesounds[b] && a.getResourceManager_0().startLoadSound_1(this.stringgamblesounds[b]); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, showCurrencyText_1: function (a) { this.showCText = a; return this; }, autoCenterContent_1: function (a) { this.shouldAutoCenterContent = a; return this; }, scaleContentPercental_1: function (a) { this.shouldScalePercental = a; return this; }, clearSoundGambleLoopSteps_0: function () { this.stringgamblesounds = [].createArray(20); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize, f; f = null; var g, k, m, n, p, q; g = k = m = n = p = q = null; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); null != this.stringGambleCard && (f = this.stringGambleCard.create_1(b.getResourceManager_0())); null != this.stringgamblewin && (q = b.getResourceManager_0().getSound_1(this.stringgamblewin)); null != this.stringgamblewintop && (g = b.getResourceManager_0().getSound_1(this.stringgamblewintop)); null != this.stringgamblelost && (k = b.getResourceManager_0().getSound_1(this.stringgamblelost)); null != this.stringgamble && (m = b.getResourceManager_0().getSound_1(this.stringgamble)); null != this.stringSoundOpen && (n = b.getResourceManager_0().getSound_1(this.stringSoundOpen)); null != this.stringSoundClose && (p = b.getResourceManager_0().getSound_1(this.stringSoundClose)); for (var r = [].createArray(this.stringgamblesounds.length), t = 0; t < this.stringgamblesounds.length; ++t) null != this.stringgamblesounds[t] && (r[t] = b.getResourceManager_0().getSound_1(this.stringgamblesounds[t])); GT1650.prototype.assertExp_2(null != f, "imageGambleCard not set for GambleRedBlack"); GT1650.prototype.assertExp_2(null != this.gambleHistoryX && null != this.gambleHistoryX, "historyCardPositions not set"); GT1650.prototype.assertExp_2(this.gambleHistoryX.length == this.gambleHistoryY.length, "amount of xpositions != ypositions"); GT1650.prototype.assertExp_2(0 < this.gambleHistoryScaleFactor, "invalid historyCardScaleFactor"); d = new GT346( a, this.xPos, this.yPos, d, e, b, f, this.gambleHistoryX, this.gambleHistoryY, this.gambleHistoryScaleFactor, q, this.soundgamblewinstoppositions, g, k, m, r, this.gamblesoundloops, n, p, this.selectedCardTextOffsetX, this.selectedCardTextOffsetY, this.soundlooppositions, this.shouldScalePercental ); 0 < this.animTime && d.setAnimationTime_1(this.animTime); for (t = 0; t < this.children.size_0(); t++) this.children.elementAt_1(t).create_2(d, b); this.shouldAutoCenterContent && this.centerChildren_1(d); d.setUseConcreteCongratulationsText_1(this.useConcreteCongratsText); d.setApplicationID_1(this.appId); d.setShowCurrencyText_1(this.showCText); return d; }, centerChildren_1: function (a) { for (var b = Integer.MAX_VALUE, d = 0, e = Integer.MAX_VALUE, f = 0, g = 1; g < a.getChildCount_0(); g++) { var k = a.getChild_1(g); k.getApplicationID_0() != GT737.prototype.CURRENCY_TEXT && k.getApplicationID_0() != GT346.prototype.ID_MAINCARD && k.getApplicationID_0() != GT346.prototype.ID_CARDS && ((b = Math.min_2(b, k.getY_0())), (d = Math.max_2(d, k.getY_0() + k.getHeight_0())), (e = Math.min_2(e, k.getX_0())), (f = Math.max_2(f, k.getX_0() + k.getWidth_0()))); } e = Math.div(a.getWidth_0() - f - e, 2); b = Math.div(a.getHeight_0() - d - b, 2); for (g = 1; g < a.getChildCount_0(); g++) (k = a.getChild_1(g)), k.getApplicationID_0() != GT737.prototype.CURRENCY_TEXT && k.move_2(k.getX_0() + e, k.getY_0() + b); }, }, "GT785", [] ); GT785.prototype.set_0 = function () { return new GT785(); }; var GT581 = GT787.extend( { initialConstructor_0: function () { this.stringimagegamblewintop = this.stringimagegamblewins = this.colorwins = this.fonttopwin = this.fontwin = this.soundlooppositions = this.soundgamblewinstoppositions = this.stringSoundClose = this.stringSoundOpen = this.stringgamble = this.stringgamblelost = this.stringgamblewintop = this.stringgamblewinstep = null; this.collecthalf = !1; this.delay = this.pyramidPosX = 0; this.showCText = !1; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.colorwins = new GT1634(0, 0, 0); this.stringgamblewinstep = [].createArray(12); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, imageGambleWins_1: function (a) { this.stringimagegamblewins = a; return this; }, imageGambleWinTop_1: function (a) { this.stringimagegamblewintop = a; return this; }, fontTopWin_1: function (a) { this.fonttopwin = a; return this; }, fontWin_1: function (a) { this.fontwin = a; return this; }, colorWins_1: function (a) { this.colorwins = a.create_0(); return this; }, soundGambleWinStopPositions_1: function (a) { this.soundgamblewinstoppositions = a; return this; }, soundGambleWinStep1_1: function (a) { this.stringgamblewinstep[0] = a; return this; }, soundGambleWinStep2_1: function (a) { this.stringgamblewinstep[1] = a; return this; }, soundGambleWinStep3_1: function (a) { this.stringgamblewinstep[2] = a; return this; }, soundGambleWinStep4_1: function (a) { this.stringgamblewinstep[3] = a; return this; }, soundGambleWinStep5_1: function (a) { this.stringgamblewinstep[4] = a; return this; }, soundGambleWinStep6_1: function (a) { this.stringgamblewinstep[5] = a; return this; }, soundGambleWinStep7_1: function (a) { this.stringgamblewinstep[6] = a; return this; }, soundGambleWinStep8_1: function (a) { this.stringgamblewinstep[7] = a; return this; }, soundGambleWinStep9_1: function (a) { this.stringgamblewinstep[8] = a; return this; }, soundGambleWinStep10_1: function (a) { this.stringgamblewinstep[9] = a; return this; }, soundGambleWinStep11_1: function (a) { this.stringgamblewinstep[10] = a; return this; }, soundGambleWinStep12_1: function (a) { this.stringgamblewinstep[11] = a; return this; }, soundGambleWinTop_1: function (a) { this.stringgamblewintop = a; return this; }, soundGambleLost_1: function (a) { this.stringgamblelost = a; return this; }, soundGamble_1: function (a) { this.stringgamble = a; return this; }, soundGambleLoopPositions_3: function (a, b, d) { this.soundlooppositions = [a, b, d]; return this; }, soundOpen_1: function (a) { this.stringSoundOpen = a; return this; }, soundClose_1: function (a) { this.stringSoundClose = a; return this; }, pyramidPositionX_1: function (a) { this.pyramidPosX = a; return this; }, winDelay_1: function (a) { this.delay = a; return this; }, collectHalf_0: function () { this.collecthalf = !0; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); null != this.stringimagegamblewins && a.getResourceManager_0().startLoadImage_4(this.stringimagegamblewins, 1, 1, !1); null != this.stringimagegamblewintop && a.getResourceManager_0().startLoadImage_4(this.stringimagegamblewintop, 1, 1, !1); for (b = 0; b < this.stringgamblewinstep.length; b++) null != this.stringgamblewinstep[b] && a.getResourceManager_0().startLoadSound_1(this.stringgamblewinstep[b]); null != this.stringgamblewintop && a.getResourceManager_0().startLoadSound_1(this.stringgamblewintop); null != this.stringgamblelost && a.getResourceManager_0().startLoadSound_1(this.stringgamblelost); null != this.stringgamble && a.getResourceManager_0().startLoadSound_1(this.stringgamble); null != this.stringSoundOpen && a.getResourceManager_0().startLoadSound_1(this.stringSoundOpen); null != this.stringSoundClose && a.getResourceManager_0().startLoadSound_1(this.stringSoundClose); null != this.fonttopwin && this.fonttopwin.load_1(a.getResourceManager_0()); null != this.fontwin && this.fontwin.load_1(a.getResourceManager_0()); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, showCurrencyText_1: function (a) { this.showCText = a; return this; }, clearSoundGambleWinSteps_0: function () { this.stringgamblewinstep = [].createArray(12); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize, f, g; f = g = null; var k, m, n, p, q; k = m = n = p = q = null; var r = [].createArray(this.stringgamblewinstep.length), t, u; t = u = null; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); null != this.stringimagegamblewins && (f = b.getResourceManager_0().getImage_1(this.stringimagegamblewins)); null != this.stringimagegamblewintop && (g = b.getResourceManager_0().getImage_1(this.stringimagegamblewintop)); for (var B = 0; B < this.stringgamblewinstep.length; B++) null != this.stringgamblewinstep[B] && (r[B] = b.getResourceManager_0().getSound_1(this.stringgamblewinstep[B])); null != this.stringgamblewintop && (k = b.getResourceManager_0().getSound_1(this.stringgamblewintop)); null != this.stringgamblelost && (m = b.getResourceManager_0().getSound_1(this.stringgamblelost)); null != this.stringgamble && (n = b.getResourceManager_0().getSound_1(this.stringgamble)); null != this.stringSoundOpen && (p = b.getResourceManager_0().getSound_1(this.stringSoundOpen)); null != this.stringSoundClose && (q = b.getResourceManager_0().getSound_1(this.stringSoundClose)); null != this.fonttopwin && (t = this.fonttopwin.create_1(b.getResourceManager_0())); null != this.fontwin && (u = this.fontwin.create_1(b.getResourceManager_0())); GT1650.prototype.assertExp_2(null != f, "imageGambleWins not set for GambleSingleButton"); GT1650.prototype.assertExp_2(null != g, "imageGambleWinTop not set for GambleSingleButton"); d = new GT242(a, this.xPos, this.yPos, d, e, this.pyramidPosX, b, f, g, t, u, this.colorwins, r, k, m, n, p, q, this.collecthalf, this.delay, this.soundgamblewinstoppositions, this.soundlooppositions); for (B = 0; B < this.children.size_0(); B++) this.children.elementAt_1(B).create_2(d, b); d.setShowCurrencyText_1(this.showCText); d.setApplicationID_1(this.appId); return d; }, }, "GT581", [] ); GT581.prototype.set_0 = function () { return new GT581(); }; var GT613 = GT1355.extend( { initialConstructor_0: function () { GT613.prototype.initialConstructor_1.call(this, 4); this._dragAreaX = -1; this._inactiveOutlineColor = this._inactiveColor = null; this._isConsumingMouseEventsWhenInactiveSet = !1; this._isConsumingMouseEventsWhenInactive = !0; this._textSet = !1; }, initialConstructor_1: function (a) { this._numberOfStates = 0; this._buttontooltip = this._buttonimage = null; this._dragAreaH = this._dragAreaW = this._dragAreaY = this._dragAreaX = 0; this.dragAreaSet = !1; this._buttonStates = this._inactiveOutlineColor = this._inactiveColor = null; this._textSet = this._isConsumingMouseEventsWhenInactive = this._isConsumingMouseEventsWhenInactiveSet = !1; this._clickAreaShape = null; GT1355.prototype.initialConstructor_0.call(this); this._numberOfStates = a; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, image_1: function (a) { this._buttonimage = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this._buttonimage = GT1390.prototype.set_0().file_1(a); return this; }, states_1: function (a) { this._buttonStates = a; return this; }, text_1: function (a) { this._textSet = !0; this.children.clear_0(); this.children.addElement_1(a); return this; }, clickableAreaShape_1: function (a) { this._clickAreaShape = a; return this; }, consumingMouseEventsWhenInactive_1: function (a) { this._isConsumingMouseEventsWhenInactiveSet = !0; this._isConsumingMouseEventsWhenInactive = a; return this; }, textInactiveColor_2: function (a, b) { this._inactiveColor = a.create_0(); this._inactiveOutlineColor = b.create_0(); return this; }, tooltip_1: function (a) { this._buttontooltip = a; return this; }, dragArea_4: function (a, b, d, e) { this._dragAreaX = a; this._dragAreaY = b; this._dragAreaW = d; this._dragAreaH = e; this.dragAreaSet = !0; return this; }, create_2: function (a, b) { var d = null; null != this._buttonStates && (d = this._buttonStates.create_0()); var e = null == d ? this._numberOfStates : d.length, f = null; null != this._buttonimage && (f = this._buttonimage.create_1(b.getResourceManager_0())); var g = new GT515(a, this.xPos, this.yPos, b.getTimer_0()); null != this._buttontooltip && g.setToolTip_1(this._buttontooltip); -1 != this._dragAreaX && (g.setDragable_1(!0), g.setDragArea_4(this._dragAreaX, this._dragAreaY, this._dragAreaW, this._dragAreaH)); null != this._clickAreaShape && g.setClickableAreaShape_1(this._clickAreaShape.create_0()); var k = this.getTextArea_0(); if (null == k) null != f ? (GT1650.prototype.assertExp_2(f.isLoaded_0(), "image " + this._buttonimage + " wasn't loaded"), null == d ? g.setImage_1(f) : g.setImageAndStates_2(f, d)) : GT1650.prototype.assertFailed_1("no image and no text set for the button"); else { GT1650.prototype.assertExp_2(instanceOf(k, GT1239) || instanceOf(k, GT872), "text must be of type DTextArea oder DDynamicTextArea"); var m, n; null != f && (GT1650.prototype.assertExp_2(f.isLoaded_0(), "image " + this._buttonimage + " wasn't loaded"), (m = f.getWidth_0()), (n = f.getHeight_0()), (n = Math.div(n, f.getRows_0())), instanceOf(k, GT1239), k.size_2(m, n), k.position_2(0, 0), g.resize_2(m, n), g.addContainerSet_3(m, n, e)); n = null; for (m = 0; m < e; m++) { null != d && g.setChildForState_2(d[m], m); null != f ? ((n = g.getChild_1(m)), (n = k.create_2(n, b))) : (n = k.create_2(g, b)); if ((null == d && m == GT1236.prototype.INACTIVE.idx_0()) || (null != d && d[m] == GT1236.prototype.INACTIVE)) null != this._inactiveColor && n.setColor_1(this._inactiveColor), null != this._inactiveOutlineColor && n.setOutline_2(n.getOutline_0(), this._inactiveOutlineColor); null != f && GT1392.prototype.set_0().image_1(this._buttonimage).showTile_2(0, m).create_2(n.getBackground_0(), b); } null != n && g.setText_1(n.getText_0()); null == f && g.resizeToContent_0(); } g.hide_1(this.initialHide); g.setConsumingMouseEventsWhenInactive_1(this._isConsumingMouseEventsWhenInactive); g.setApplicationID_1(this.appId); return g; }, load_1: function (a) { var b = this.getTextArea_0(), d = null; null != this._buttonStates && (d = this._buttonStates.create_0()); null != this._buttonimage && (this._buttonimage.tiling_2(1, null == d ? this._numberOfStates : d.length), this._buttonimage.load_1(a.getResourceManager_0())); null != b && b.load_1(a); }, modifyDescriptor_1: function (a) { instanceOf(a, GT1355) && this.modifyDescriptorImpl_1(a); var b = instanceOf(a, GT613); GT1650.prototype.assertExp_2(b, "Descriptor is no DHighlightedButton"); b && (null != this._buttontooltip && (a._buttontooltip = this._buttontooltip), null != this._buttonimage && (a._buttonimage = this._buttonimage), null != this._inactiveColor && (a._inactiveColor = this._inactiveColor), null != this._inactiveOutlineColor && (a._inactiveOutlineColor = this._inactiveOutlineColor), null != this._buttonStates && (a._buttonStates = this._buttonStates), this._isConsumingMouseEventsWhenInactiveSet && (a._isConsumingMouseEventsWhenInactive = this._isConsumingMouseEventsWhenInactive), this._textSet && !this.children.isEmpty_0() && (a.children.clear_0(), a.children.addElement_1(this.children.firstElement_0())), this.dragAreaSet && ((a._dragAreaH = this._dragAreaH), (a._dragAreaW = this._dragAreaW), (a._dragAreaX = this._dragAreaX), (a._dragAreaY = this._dragAreaY))); }, equals_1: function (a) { if (this == a) return !0; if (!GT1355.prototype.equals_1.call(this, a) || !instanceOf(a, GT613)) return !1; if (null == this._buttonStates) { if (null != a._buttonStates) return !1; } else if (!this._buttonStates.equals_1(a._buttonStates)) return !1; if (null == this._buttonimage) { if (null != a._buttonimage) return !1; } else if (!this._buttonimage.equals_1(a._buttonimage)) return !1; if (null == this._buttontooltip) { if (null != a._buttontooltip) return !1; } else if (!this._buttontooltip.equals_1(a._buttontooltip)) return !1; if (this._dragAreaH != a._dragAreaH || this._dragAreaW != a._dragAreaW || this._dragAreaX != a._dragAreaX || this._dragAreaY != a._dragAreaY) return !1; if (null == this._inactiveColor) { if (null != a._inactiveColor) return !1; } else if (!this._inactiveColor.equals_1(a._inactiveColor)) return !1; if (null == this._inactiveOutlineColor) { if (null != a._inactiveOutlineColor) return !1; } else if (!this._inactiveOutlineColor.equals_1(a._inactiveOutlineColor)) return !1; return this._isConsumingMouseEventsWhenInactive != a._isConsumingMouseEventsWhenInactive || this._numberOfStates != a._numberOfStates ? !1 : !0; }, }, "GT613", [] ); GT613.prototype.set_0 = function () { return new GT613(); }; var GT636 = GT787.extend( { initialConstructor_0: function () { this.usedColor = this.usedDividerImage = null; this.useedHorizontalInsets = 0; this.useedHorizontalInsetsSet = !1; this.nrOfValuesPerPage = 0; this.nrOfValuesPerPageSet = !1; this.indicatorAlpha = 0; this.indicatorAlphaSet = !1; this.animDuration = 0; this.animDurationSet = !1; this.fontDescriptors = null; GT787.prototype.initialConstructor_0.call(this); this.fontDescriptors = new java_util_JavaScriptVector(); this.indicatorAlpha = this.nrOfValuesPerPage = this.useedHorizontalInsets = -1; this.animDuration = 500; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, numberOfValuesPerPage_1: function (a) { this.nrOfValuesPerPage = a; this.nrOfValuesPerPageSet = !0; return this; }, indicatorTransparency_1: function (a) { this.indicatorAlpha = a.create_0(); this.indicatorAlphaSet = !0; return this; }, addFont_1: function (a) { GT1650.prototype.assertExp_2(null != a, "fontdescriptor is null"); this.fontDescriptors.addElement_1(a); return this; }, dividerImage_1: function (a) { this.usedDividerImage = a; return this; }, fontColor_1: function (a) { this.usedColor = a; return this; }, horizontalInsets_1: function (a) { this.useedHorizontalInsets = a; this.useedHorizontalInsetsSet = !0; return this; }, id_1: function (a) { this.appId = a; return this; }, load_1: function (a) { this.loadImpl_1(a); 0 == this.fontDescriptors.size_0() && GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).load_1(a.getResourceManager_0()); for (var b = 0; b < this.fontDescriptors.size_0(); b++) this.fontDescriptors.elementAt_1(b).load_1(a.getResourceManager_0()); null != this.usedDividerImage && this.usedDividerImage.load_1(a.getResourceManager_0()); }, child_1: function (a) { this.childImpl_1(a); return this; }, movementDuration_1: function (a) { this.animDuration = a; this.animDurationSet = !0; return this; }, create_2: function (a, b) { var d = new GT521(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a), b.getTimer_0()); this.createImpl_2(d, b); -1 != this.indicatorAlpha && d.setIndicatorAlpha_1(this.indicatorAlpha); -1 != this.useedHorizontalInsets && d.setHorizontalInsets_1(this.useedHorizontalInsets); null != this.usedDividerImage && d.setDividerImage_1(this.usedDividerImage.create_1(b.getResourceManager_0())); -1 != this.nrOfValuesPerPage && d.setNrOfValuesPerPage_1(this.nrOfValuesPerPage); null != this.usedColor && d.setColor_1(this.usedColor.create_0()); 0 <= this.animDuration && d.setMovementDuration_1(this.animDuration); var e; if (0 == this.fontDescriptors.size_0()) (e = [].createArray(1)), (e[0] = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0())); else { e = this.fontDescriptors.elementAt_1(0); var f = new java_util_JavaScriptVector(); e = e.create_1(b.getResourceManager_0()); f.add_1(e); for (var g = 1; g < this.fontDescriptors.size_0(); g++) { e = this.fontDescriptors.elementAt_1(g); e = e.create_1(b.getResourceManager_0()); for (var k = !1, m = 0; m < f.size_0(); m++) if (f.elementAt_1(m).getHeight_0() < e.getHeight_0()) { f.insertElementAt_2(e, m); k = !0; break; } k || f.add_1(e); } e = [].createArray(f.size_0()); for (g = 0; g < e.length; g++) e[g] = f.elementAt_1(g); } d.setFonts_1(e); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT636); GT1650.prototype.assertExp_2(b, "Descriptor is no DHorizontalBetList"); b && (this.modifyDescriptorImpl_1(a), null != this.usedColor && (a.usedColor = this.usedColor), null != this.usedDividerImage && (a.usedDividerImage = this.usedDividerImage), this.useedHorizontalInsetsSet && (a.useedHorizontalInsets = this.useedHorizontalInsets), this.nrOfValuesPerPageSet && (a.nrOfValuesPerPage = this.nrOfValuesPerPage), this.indicatorAlphaSet && (a.indicatorAlpha = this.indicatorAlpha), this.animDurationSet && (a.animDuration = this.animDuration)); }, }, "GT636", [GT1272] ); GT636.prototype.set_0 = function () { return new GT636(); }; var GT532 = GT787.extend( { initialConstructor_0: function () { this.usedColor = this.usedFont = null; this.usedSpacing = 0; this.usedSpacingSet = !1; this.usedButtonSpacing = 0; this.usedButtonSpacingSet = !1; this.barHeight = 0; this.barHeightSet = !1; this.barPos = 0; this.barPosSet = !1; GT787.prototype.initialConstructor_0.call(this); this.barPos = this.barHeight = -1; }, id_1: function (a) { this.appId = a; return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, font_2: function (a, b) { this.usedFont = a; this.usedColor = b; return this; }, spacing_1: function (a) { this.usedSpacing = a; this.usedSpacingSet = !0; return this; }, buttonSpacing_1: function (a) { this.usedButtonSpacingSet = !0; this.usedButtonSpacing = a; return this; }, indicatorHeight_1: function (a) { this.barHeight = a; this.barHeightSet = !0; return this; }, indicatorPosition_1: function (a) { this.barPos = a; this.barPosSet = !0; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, load_1: function (a) { this.loadImpl_1(a); this.usedFont.load_1(a.getResourceManager_0()); }, create_2: function (a, b) { var d = new GT433(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a), b.getTimer_0()); this.createImpl_2(d, b); d.setFont_2(this.usedFont.create_1(b.getResourceManager_0()), this.usedColor.create_0()); d.setSpacing_1(this.usedSpacing); d.setButtonSpacing_1(this.usedButtonSpacing); -1 != this.barHeight && d.setIndicatorHeight_1(this.barHeight); -1 != this.barPos && d.setIndicatorPosition_1(this.barPos); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT532); GT1650.prototype.assertExp_2(b, "Descriptor is no DHorizontalValueList"); b && (this.modifyDescriptorImpl_1(a), null != this.usedFont && (a.usedFont = this.usedFont), null != this.usedColor && (a.usedColor = this.usedColor), this.usedSpacingSet && (a.usedSpacing = this.usedSpacing), this.usedButtonSpacingSet && (a.usedButtonSpacing = this.usedButtonSpacing), this.barHeightSet && (a.barHeight = this.barHeight), this.barPosSet && (a.barPos = this.barPos)); }, }, "GT532", [GT1272] ); GT532.prototype.set_0 = function () { return new GT532(); }; var GT439 = GT474.extend( { initialConstructor_0: function () { this._singleTiledImage = this._singleTabImage = this._tabModifications = this._images = this._modifications = null; this._lineCount = 0; this._separatedImages = !1; this.debugAreaColor = null; this.debugAreaAlpha = 0; GT474.prototype.initialConstructor_0.call(this); this._modifications = new java_util_JavaScriptHashtable(); this._images = new java_util_JavaScriptHashtable(); this._tabModifications = new java_util_JavaScriptHashtable(); this._singleTabImage = null; this._lineCount = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, addWinLineImage_6: function (a, b, d, e, f, g) { this._separatedImages = !0; null == this._images.get_1(Integer.toString_1(a)) && this._lineCount++; this._images.put_2(Integer.toString_1(a), b); b = new java_util_JavaScriptVector(); b.add_1(new Integer(d)); b.add_1(new Integer(e)); b.add_1(new Integer(f)); b.add_1(new Integer(g)); this._modifications.put_2(Integer.toString_1(a), b); this.updateMax_1(a); return this; }, winLineTab_5: function (a, b, d, e, f) { var g = new java_util_JavaScriptVector(); g.add_1(new Integer(b)); g.add_1(new Integer(d)); g.add_1(new Integer(e)); g.add_1(new Integer(f)); this._tabModifications.put_2(Integer.toString_1(a), g); this.updateMax_1(a); return this; }, addWinLineImage_2: function (a, b) { this.addWinLineImage_6(a, b, 0, 0, -1, -1); return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, singleTiledImage_1: function (a) { this._separatedImages = !1; this._singleTiledImage = a; return this; }, tabImage_1: function (a) { this._singleTabImage = a; return this; }, id_1: function (a) { this.idImpl_1(a); return this; }, load_1: function (a) { a = a.getResourceManager_0(); if (this._separatedImages) for (var b = 0; b < this._lineCount; b++) { var d = this._images.get_1(Integer.toString_1(b)); null != d && d.load_1(a); } else null != this._singleTiledImage && this._singleTiledImage.load_1(a); null != this._singleTabImage && this._singleTabImage.load_1(a); }, create_2: function (a, b) { var d; d = null; null != this._singleTabImage && (d = this._singleTabImage.create_1(b.getResourceManager_0())); if (this._separatedImages) { for (var e = new java_util_JavaScriptHashtable(), f = 0; f < this._lineCount; f++) { var g = this._images.get_1(Integer.toString_1(f)); GT1650.prototype.assertExp_2(null != g, "Image not found for line " + f); null != g && e.put_2(Integer.toString_1(f), g.create_1(b.getResourceManager_0())); } d = new GT356(a, this.xPos, this.yPos, this.widthSize, this.heightSize, e, this._modifications, d, this._tabModifications); } else d = new GT356(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this._singleTiledImage.create_1(b.getResourceManager_0()), d, this._tabModifications); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT439", [] ); GT439.prototype.set_0 = function () { return new GT439(); }; var GT901 = GT787.extend( { initialConstructor_0: function () { this.color = null; this.linespacing = 0; this.linespacingSet = !1; this.valign = this.halign = null; this.outlinethickness = 0; this.outlineSet = !1; this.outlineColor = null; this.gradientSet = !1; this.gradientData = null; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.fontdescriptors = null; this.winSymbolSet = this.fontsManipulated = !1; this.winnumber = this.winsymbol = 0; this.winnumberSet = !1; this.jackpotIdentifier = null; this.jackpotIdentifierModified = !1; this.jackpotIndex = 0; this.showCurrencySymbChanged = this.showCurrencySymb = this.jackpotIndexModified = !1; GT787.prototype.initialConstructor_0.call(this); this.linespacing = this.heightSize = this.widthSize = -1; this.insetsSet = this.gradientSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.outlinethickness = -1; this.winSymbolSet = !1; this.valign = this.halign = null; this.fontdescriptors = new java_util_JavaScriptVector(); this.fontsManipulated = !1; this.winnumber = -1; this.jackpotIdentifier = ""; this.jackpotIndex = 0; this.showCurrencySymb = !0; this.winnumberSet = this.outlineSet = this.linespacingSet = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, symbol_1: function (a) { this.winSymbolSet = !0; this.winsymbol = a; return this; }, symbolCount_1: function (a) { this.winnumber = a; return this; }, showMaxJackpot_1: function (a) { return this; }, addFont_1: function (a) { this.fontdescriptors.addElement_1(a); this.fontsManipulated = !0; return this; }, fontColor_1: function (a) { this.color = a.create_0(); return this; }, spacing_1: function (a) { this.linespacing = a; this.linespacingSet = !0; return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = -1); this.outlineSet = !0; return this; }, removeOutline_0: function () { this.outlinethickness = -1; this.outlineColor = null; return this; }, gradient_2: function (a, b) { this.gradientSet = null != a && null != b; this.gradientData = GT1238.prototype .set_0() .addColor_2(a, 48 / 255) .addColor_2(b, 207 / 255) .rotation_1(Math.PI / 2) .create_0(); return this; }, gradient_1: function (a) { this.gradientSet = null != a; this.gradientData = null != a ? a.create_0() : null; return this; }, background_1: function (a) { this.removeChildrenImpl_0(); this.childImpl_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, showCurrencySymbol_1: function (a) { this.showCurrencySymb = a; this.showCurrencySymbChanged = !0; return this; }, removeAllFonts_0: function () { this.fontdescriptors.clear_0(); this.fontsManipulated = !0; return this; }, identifier_1: function (a) { this.jackpotIdentifier = a; this.jackpotIdentifierModified = !0; return this; }, index_1: function (a) { this.jackpotIndex = a; this.jackpotIndexModified = !0; return this; }, create_2: function (a, b) { var d; if (0 == this.fontdescriptors.size_0()) { d = [].createArray(1); var e = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA); d[0] = e.size_1(100).create_1(b.getResourceManager_0()); this.addFont_1(e); } else { e = new java_util_JavaScriptVector(); e.add_1(this.fontdescriptors.elementAt_1(0).create_1(b.getResourceManager_0())); for (var f = 1; f < this.fontdescriptors.size_0(); f++) { d = this.fontdescriptors.elementAt_1(f).create_1(b.getResourceManager_0()); for (var g = !1, k = 0; k < e.size_0(); k++) if (e.elementAt_1(k).getHeight_0() < d.getHeight_0()) { e.insertElementAt_2(d, k); g = !0; break; } g || e.add_1(d); } d = [].createArray(e.size_0()); for (f = 0; f < d.length; f++) d[f] = e.elementAt_1(f); } e = this.widthSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); f = this.heightSize; -1 == this.heightSize && (f = a.getHeight_0() - this.yPos); d = new GT779(a, this.xPos, this.yPos, e, f, this.winsymbol, this.winnumber, d, this.color, this.halign, this.valign); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); -1 != this.linespacing && d.setSpacing_1(this.linespacing); "1".equals_1(b.getParameter_1("showtextborders")) && d.showBorders_1(!0); g = this.getBackground_0(); null != g && ((g = g.create_2(d.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(e, f)); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); this.gradientSet && d.setGradient_1(this.gradientData); d.setIdentifier_1(this.jackpotIdentifier); d.setIndex_1(this.jackpotIndex); d.setShowCurrencySymbol_1(this.showCurrencySymb); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { 0 == this.fontdescriptors.size_0() && GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(200).load_1(a.getResourceManager_0()); for (var b = 0; b < this.fontdescriptors.size_0(); b++) this.fontdescriptors.elementAt_1(b).load_1(a.getResourceManager_0()); b = this.getBackground_0(); null != b && b.load_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT901); GT1650.prototype.assertExp_2(b, "Descriptor is no DJackpotField"); if (b) { this.modifyDescriptorImpl_1(a); if (this.fontsManipulated) for (a.fontdescriptors.clear_0(), b = 0; b < this.fontdescriptors.size_0(); b++) a.fontdescriptors.add_1(this.fontdescriptors.get_1(b)); null != this.color && (a.color = this.color); this.linespacingSet && (a.linespacing = this.linespacing); null != this.halign && (a.halign = this.halign); null != this.valign && (a.valign = this.valign); this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)); this.insetsSet && ((a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)); this.gradientSet && ((a.gradientSet = !0), (a.gradientData = this.gradientData)); this.winSymbolSet && (a.winsymbol = this.winsymbol); this.winnumberSet && (a.winnumber = this.winnumber); this.showCurrencySymbChanged && (a.showCurrencySymb = this.showCurrencySymb); this.jackpotIdentifierModified && (a.jackpotIdentifier = this.jackpotIdentifier); this.jackpotIndexModified && (a.jackpotIndex = this.jackpotIndex); } }, }, "GT901", [GT1272] ); GT901.prototype.set_0 = function () { return new GT901(); }; var GT1100 = GT787.extend( { initialConstructor_0: function () { this.stringSoundOpen = null; this.stringSoundOpenSet = !1; this.stringSoundClose = null; this.stringSoundCloseSet = !1; this.multiJackpotContributionText = this.jackpotcontributiontext = null; this.jackpotcontributiontextSet = !1; this.jackpotexchangeratetext = null; this.jackpotexchangeratetextSet = !1; this.theoreticalrtptext = null; this.theoreticalrtptextSet = !1; this.explanationrtptext = null; this.explanationrtptextSet = !1; this.mintotalbettext = null; this.mintotalbettextSet = !1; this.maxroundwintext = null; this.maxroundwintextset = !1; this.maxgamblewintext = null; this.maxGambleWinAndStepsTextsSet = !1; this.maxGambleAbsoluteWinText = this.maxGambleStepsText = this.maxGambleStepsAndWinText = null; this.jackpotInfoTextSet = !1; this.reelsetMultiplierMapping = this.multiAllWinJackpotInfoText = this.allWinJackpotInfoText = this.multiJackpotInfoText = this.jackpotInfoText = null; this.time = 0; this.timeSet = !1; this.ocTime = 0; this.ocTimeSet = !1; this.dcTime = 0; this.dcTimeSet = !1; this.pageChangeAnimType = 0; this.pageChangeAnimTypeSet = !1; this.pageVisualizationPos = 0; this.pageVisualizationPosSet = !1; this.pageVisualizationAlpha = 0; this.pageVisualizationAlphaSet = !1; this.pageVisualization = null; this.omitcentpolicyrulespage = 0; this.reelsetDependentEntriesSet = this.reelsetDependentEntries = this.linkEntryFonts = this.hideContextMenuButtonIfIsBigPaytable = this.showCTextSet = this.showCText = this.omitcentpolicyrulespagemodified = !1; GT787.prototype.initialConstructor_0.call(this); this.reelsetMultiplierMapping = new java_util_JavaScriptHashtable(); this.time = -1; this.ocTime = GT740.prototype.DEFAULT_OPEN_CLOSE_TIME; this.dcTime = GT740.prototype.DEFAULT_DISABLE_CONSOLE_TIME; this.pageChangeAnimType = 0; this.omitcentpolicyrulespage = GT711.prototype.OMIT_CENT_NEVER; this.hideContextMenuButtonIfIsBigPaytable = !1; this.pageVisualizationAlpha = 255; this.reelsetDependentEntries = this.linkEntryFonts = !1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, contentScaledSize_2: function (a, b) { this.contentScaledSizeImpl_2(a, b); return this; }, animationTime_1: function (a) { this.time = a; this.timeSet = !0; return this; }, pageVisualizationImage_1: function (a) { this.pageVisualization = a; return this; }, pageVisualizationPosition_1: function (a) { this.pageVisualizationPos = a; this.pageVisualizationPosSet = !0; return this; }, pageVisualizationTransparency_1: function (a) { null != a && (this.pageVisualizationAlpha = a.create_0()); this.pageVisualizationAlphaSet = !0; return this; }, pageChangeAnimationType_1: function (a) { this.pageChangeAnimType = a; this.pageChangeAnimTypeSet = !0; return this; }, omitCentPolicyRulesPage_1: function (a) { this.omitcentpolicyrulespagemodified = !0; this.omitcentpolicyrulespage = a; return this; }, openCloseTime_1: function (a) { this.ocTime = a; this.ocTimeSet = !0; return this; }, disableConsoleTime_1: function (a) { this.dcTime = a; this.dcTimeSet = !0; return this; }, soundOpen_1: function (a) { this.stringSoundOpenSet = !0; this.stringSoundOpen = a; return this; }, soundClose_1: function (a) { this.stringSoundCloseSet = !0; this.stringSoundClose = a; return this; }, jackpotContributionText_2: function (a, b) { this.jackpotcontributiontextSet = !0; this.jackpotcontributiontext = a; this.multiJackpotContributionText = b; return this; }, jackpotComplianceInfoText_4: function (a, b, d, e) { this.jackpotInfoTextSet = !0; this.jackpotInfoText = a; this.multiJackpotInfoText = b; this.allWinJackpotInfoText = d; this.multiAllWinJackpotInfoText = e; return this; }, jackpotExchangeRateText_1: function (a) { this.jackpotexchangeratetextSet = !0; this.jackpotexchangeratetext = a; return this; }, theoreticalRTPText_1: function (a) { this.theoreticalrtptextSet = !0; this.theoreticalrtptext = a; return this; }, rtpExplanationText_1: function (a) { this.explanationrtptextSet = !0; this.explanationrtptext = a; return this; }, minTotalBetText_1: function (a) { this.mintotalbettextSet = !0; this.mintotalbettext = a; return this; }, maxRoundWinText_1: function (a) { this.maxroundwintextset = !0; this.maxroundwintext = a; return this; }, maxGambleWinText_3: function (a, b, d) { return this.maxGambleWinAndStepsTexts_4(a, b, d, null); }, maxGambleWinAndStepsTexts_4: function (a, b, d, e) { this.maxGambleWinAndStepsTextsSet = !0; this.maxgamblewintext = a; this.maxGambleStepsAndWinText = b; this.maxGambleStepsText = d; this.maxGambleAbsoluteWinText = e; return this; }, addReelsetMultiplierMapping_2: function (a, b) { this.reelsetMultiplierMapping.put_2(Integer.toString_1(a), new Double(b)); return this; }, showCurrencyText_1: function (a) { this.showCTextSet = !0; this.showCText = a; return this; }, hideContextMenuButtonIfBigPaytable_1: function (a) { this.hideContextMenuButtonIfIsBigPaytable = a; return this; }, enableReelsetDependentEntries_1: function (a) { this.reelsetDependentEntries = a; this.reelsetDependentEntriesSet = !0; return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, childBefore_2: function (a, b) { return this.childBeforeImpl_2(a, b); }, childAfter_2: function (a, b) { return this.childAfterImpl_2(a, b); }, create_2: function (a, b) { return this.create_4(a, b, null, -1); }, create_4: function (a, b, d, e) { var f = null == d; if (null == d) { var g; d = g = null; null != this.stringSoundOpen && (d = b.getResourceManager_0().getSound_1(this.stringSoundOpen)); null != this.stringSoundClose && (g = b.getResourceManager_0().getSound_1(this.stringSoundClose)); d = new GT999(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a), b.getTimer_0(), d, g); } this.createImpl_3(d, b, e); if (f) { for (a = 0; a < this.children.size_0(); a++) (e = this.children.elementAt_1(a)), instanceOf(e, GT787) && this.getChildCreationId_1(a) == GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID && this.createImpl_3(d, b, a); d.setAnimated_1(-1 == this.time ? 0 : this.time); d.setOpenCloseTime_1(this.ocTime); d.setDisableConsoleTime_1(this.dcTime); d.setPageChangeAnimationType_1(this.pageChangeAnimType); null != this.jackpotcontributiontext && d.setJackpotContributionText_2(b.getText_1(this.jackpotcontributiontext), b.getText_1(this.multiJackpotContributionText)); null != this.jackpotexchangeratetext && d.setJackpotExchangeRateText_1(b.getText_1(this.jackpotexchangeratetext)); null != this.theoreticalrtptext && d.setTheoreticalRTPText_1(b.getText_1(this.theoreticalrtptext)); null != this.explanationrtptext && d.setRTPExplanationText_1(b.getText_1(this.explanationrtptext)); null != this.mintotalbettext && d.setMinTotalBetText_1(b.getText_1(this.mintotalbettext)); null != this.maxroundwintext && d.setMaximumRoundWinText_1(b.getText_1(this.maxroundwintext)); d.setMaxGambleWinAndStepsTexts_4(b.getText_1(this.maxgamblewintext), b.getText_1(this.maxGambleStepsAndWinText), b.getText_1(this.maxGambleStepsText), b.getText_1(this.maxGambleAbsoluteWinText)); d.setReelsetMultiplierMapping_1(this.reelsetMultiplierMapping); d.setShowCurrencyText_1(this.showCText); d.setOmitCentPolicyRulesPage_1(this.omitcentpolicyrulespage); d.hideContextMenuButtonIfBigPaytable_1(this.hideContextMenuButtonIfIsBigPaytable); d.setJackpotComplianceInfoTexts_4(b.getText_1(this.jackpotInfoText), b.getText_1(this.multiJackpotInfoText), b.getText_1(this.allWinJackpotInfoText), b.getText_1(this.multiAllWinJackpotInfoText)); this.linkEntryFonts && GT1650.prototype.assertExp_2(this.checkForEqualFontMetricsInAllEntries_2(d, null), "when using .linkPaytableEntryFonts all paytable entries must have the same font metrics set"); d.setLinkPaytableEntryFonts_1(this.linkEntryFonts); a = null; null != this.pageVisualization && ((a = this.pageVisualization.create_1(b.getResourceManager_0())), d.setPageVisualization_3(a, this.pageVisualizationPos, this.pageVisualizationAlpha)); d.setEnableReelsetDependentEntries_1(this.reelsetDependentEntries); } return d; }, checkForEqualFontMetricsInAllEntries_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = null; if (instanceOf(a.getChild_1(d), GT1120)) { if (instanceOf(a.getChild_1(d), GT1123)) if (((e = a.getChild_1(d).getAllFontMetrics_0()), null == b)) b = e; else if (e.length == b.length) for (var f = 0; f < e.length; f++) { if (!b[f].equals_1(e[f])) return !1; } else return !1; } else if (instanceOf(a.getChild_1(d), GT1437) && !this.checkForEqualFontMetricsInAllEntries_2(a.getChild_1(d), b)) return !1; } return !0; }, getChildrenCount_0: function () { return null == this.children ? 0 : this.children.size_0(); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, linkPaytableEntryFonts_1: function (a) { this.linkEntryFonts = a; return this; }, load_1: function (a) { this.loadImpl_1(a); null != this.pageVisualization && this.pageVisualization.load_1(a.getResourceManager_0()); null != this.stringSoundOpen && a.getResourceManager_0().startLoadSound_1(this.stringSoundOpen); null != this.stringSoundClose && a.getResourceManager_0().startLoadSound_1(this.stringSoundClose); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT1100); GT1650.prototype.assertExp_2(b, "Descriptor is no DPaytable"); b && (this.modifyDescriptorImpl_1(a), this.stringSoundOpenSet && (a.stringSoundOpen = this.stringSoundOpen), this.stringSoundCloseSet && (a.stringSoundClose = this.stringSoundClose), this.jackpotcontributiontextSet && (a.jackpotcontributiontext = this.jackpotcontributiontext), this.jackpotexchangeratetextSet && (a.jackpotexchangeratetext = this.jackpotexchangeratetext), this.theoreticalrtptextSet && (a.theoreticalrtptext = this.theoreticalrtptext), this.explanationrtptextSet && (a.explanationrtptext = this.explanationrtptext), this.mintotalbettextSet && (a.mintotalbettext = this.mintotalbettext), this.maxroundwintextset && (a.maxroundwintext = this.maxroundwintext), this.maxGambleWinAndStepsTextsSet && ((a.maxgamblewintext = this.maxgamblewintext), (a.maxGambleStepsAndWinText = this.maxGambleStepsAndWinText), (a.maxGambleStepsText = this.maxGambleStepsText), (a.maxGambleAbsoluteWinText = this.maxGambleAbsoluteWinText)), this.jackpotInfoTextSet && ((a.jackpotInfoText = this.jackpotInfoText), (a.allWinJackpotInfoText = this.allWinJackpotInfoText), (a.multiJackpotInfoText = this.multiJackpotInfoText), (a.multiAllWinJackpotInfoText = this.multiAllWinJackpotInfoText)), 0 < this.reelsetMultiplierMapping.size_0() && (a.reelsetMultiplierMapping = this.reelsetMultiplierMapping), this.reelsetDependentEntriesSet && (a.reelsetDependentEntries = this.reelsetDependentEntries), this.timeSet && (a.time = this.time), this.ocTimeSet && (a.ocTime = this.ocTime), this.dcTimeSet && (a.dcTime = this.dcTime), this.showCTextSet && (a.showCText = this.showCText), this.omitcentpolicyrulespagemodified && (a.omitcentpolicyrulespage = this.omitcentpolicyrulespage), this.hideContextMenuButtonIfIsBigPaytable && (a.hideContextMenuButtonIfIsBigPaytable = this.hideContextMenuButtonIfIsBigPaytable), null != this.pageVisualization && (a.pageVisualization = this.pageVisualization), this.pageVisualizationPosSet && (a.pageVisualizationPos = this.pageVisualizationPos), this.pageVisualizationAlphaSet && (a.pageVisualizationAlpha = this.pageVisualizationAlpha), this.pageChangeAnimTypeSet && (a.pageChangeAnimType = this.pageChangeAnimType)); }, }, "GT1100", [GT1272] ); GT1100.prototype.set_0 = function () { return new GT1100(); }; var GT849 = GT787.extend( { initialConstructor_0: function () { this.color = null; this.linespacing = 0; this.valign = this.halign = null; this.outlinethickness = 0; this.outlineColor = null; this.shadowSet = !1; this.shadowY = this.shadowX = 0; this.shadowColor = null; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.fontdescriptors = null; this.winSymbolSet = this.fontsManipulated = !1; this.winnumber = this.winsymbol = 0; this.showReelsetIndexSet = !1; this.showReelsetIndex = 0; this.patternStringSet = this.positionModified = !1; this.patternString = null; this.omitCentSet = this.omitCent = !1; this.globalMultiplier = 0; this.showCurrencySymbChanged = this.showCurrencySymb = this.globelMultiplierSet = !1; GT787.prototype.initialConstructor_0.call(this); this.linespacing = this.heightSize = this.widthSize = -1; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.outlinethickness = -1; this.showReelsetIndexSet = this.winSymbolSet = !1; this.valign = this.halign = null; this.positionModified = !1; this.fontdescriptors = new java_util_JavaScriptVector(); this.fontsManipulated = !1; this.winnumber = -1; this.omitCent = !0; this.globalMultiplier = 1; this.showCurrencySymb = !0; this.showReelsetIndex = -1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionModified = !0; this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, symbol_1: function (a) { this.winSymbolSet = !0; this.winsymbol = a; return this; }, showForReelsetIndex_1: function (a) { this.showReelsetIndexSet = !0; this.showReelsetIndex = a; return this; }, singleEntry_1: function (a) { this.winnumber = a; return this; }, addFont_1: function (a) { this.fontdescriptors.addElement_1(a); this.fontsManipulated = !0; return this; }, removeAllFonts_0: function () { this.fontdescriptors.clear_0(); this.fontsManipulated = !0; return this; }, fontColor_1: function (a) { this.color = a.create_0(); return this; }, spacing_1: function (a) { this.linespacing = a; return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = -1); return this; }, removeOutline_0: function () { this.outlinethickness = -1; this.outlineColor = null; return this; }, shadow_3: function (a, b, d) { this.shadowSet = !0; this.shadowX = a; this.shadowY = b; null != d ? (this.shadowColor = d.create_0()) : (this.shadowY = this.shadowX = 0); return this; }, background_1: function (a) { this.children.setSize_1(0); this.children.addElement_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, omitCentsForHighValues_1: function (a) { this.omitCentSet = !0; this.omitCent = a; return this; }, pattern_1: function (a) { this.patternStringSet = !0; this.patternString = a; return this; }, multiplier_1: function (a) { this.globalMultiplier = a; return this; }, showCurrencySymbol_1: function (a) { this.showCurrencySymb = a; this.showCurrencySymbChanged = !0; return this; }, create_2: function (a, b) { GT1650.prototype.assertExp_2(this.winSymbolSet, "No win symbol for gui paytable entry"); var d; if (0 == this.fontdescriptors.size_0()) (d = [].createArray(1)), (d[0] = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0())); else { var e = new java_util_JavaScriptVector(); e.add_1(this.fontdescriptors.elementAt_1(0).create_1(b.getResourceManager_0())); for (var f = 1; f < this.fontdescriptors.size_0(); f++) { d = this.fontdescriptors.elementAt_1(f).create_1(b.getResourceManager_0()); for (var g = !1, k = 0; k < e.size_0(); k++) if (e.elementAt_1(k).getHeight_0() < d.getHeight_0()) { e.insertElementAt_2(d, k); g = !0; break; } g || e.add_1(d); } d = [].createArray(e.size_0()); for (f = 0; f < d.length; f++) d[f] = e.elementAt_1(f); } e = this.widthSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); f = this.heightSize; -1 == this.heightSize && (f = a.getHeight_0() - this.yPos); d = new GT746(a, this.xPos, this.yPos, e, f, this.winsymbol, this.winnumber, d, this.color, this.halign, this.valign); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); -1 != this.linespacing && d.setSpacing_1(this.linespacing); d.setOmitCentsForHighValues_1(this.omitCent); d.setPattern_1(this.patternString); "1".equals_1(b.getParameter_1("showtextborders")) && d.showBorders_1(!0); g = this.getBackground_0(); null != g && ((g = g.create_2(d.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(e, f)); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); this.shadowSet && d.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); d.setMultiplier_1(this.globalMultiplier); d.setShowCurrencySymbol_1(this.showCurrencySymb); d.setApplicationID_1(this.appId); d.setShowForReelsetIndex_1(this.showReelsetIndex); return d; }, load_1: function (a) { 0 == this.fontdescriptors.size_0() && GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(200).load_1(a.getResourceManager_0()); for (var b = 0; b < this.fontdescriptors.size_0(); b++) this.fontdescriptors.elementAt_1(b).load_1(a.getResourceManager_0()); b = this.getBackground_0(); null != b && b.load_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT849); GT1650.prototype.assertExp_2(b, "Descriptor is no DPaytableEntry"); if (b) { -1 != this.widthSize && (a.widthSize = this.widthSize); -1 != this.heightSize && (a.heightSize = this.heightSize); this.positionModified && ((a.xPos = this.xPos), (a.yPos = this.yPos)); if (this.fontsManipulated) for (a.fontdescriptors.clear_0(), b = 0; b < this.fontdescriptors.size_0(); b++) a.fontdescriptors.add_1(this.fontdescriptors.get_1(b)); if (0 != this.children.size_0()) for (a.children.clear_0(), b = 0; b < this.children.size_0(); b++) a.children.add_1(this.children.get_1(b)); null != this.color && (a.color = this.color); -1 != this.linespacing && (a.linespacing = this.linespacing); null != this.halign && (a.halign = this.halign); null != this.valign && (a.valign = this.valign); -1 != this.outlinethickness && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)); this.insetsSet && ((a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)); this.showReelsetIndexSet && (a.showReelsetIndex = this.showReelsetIndex); this.winSymbolSet && (a.winsymbol = this.winsymbol); -1 != this.winnumber && (a.winnumber = this.winnumber); this.patternStringSet && (a.patternString = this.patternString); this.omitCentSet && (a.omitCent = this.omitCent); this.globelMultiplierSet && (a.globalMultiplier = this.globalMultiplier); this.shadowSet && ((a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)); this.showCurrencySymbChanged && (a.showCurrencySymb = this.showCurrencySymb); } }, }, "GT849", [GT1272] ); GT849.prototype.set_0 = function () { return new GT849(); }; var GT850 = GT787.extend( { initialConstructor_0: function () { this.color = null; this.linespacing = 0; this.linespacingSet = !1; this.valign = this.halign = null; this.outlinethickness = 0; this.outlineSet = !1; this.outlineColor = null; this.shadowSet = !1; this.shadowY = this.shadowX = 0; this.shadowColor = null; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.fontdescriptors = null; this.fontsManipulated = !1; this.multip = 0; this.showCurrencySymbChanged = this.showCurrencySymb = this.omitCentForHighSet = this.omitCentForHigh = this.omitCentSet = this.omitCent = this.totalbetSet = this.totalbet = this.multipSet = !1; GT787.prototype.initialConstructor_0.call(this); this.linespacing = this.heightSize = this.widthSize = -1; this.insetsSet = !1; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.outlinethickness = -1; this.valign = this.halign = null; this.showCurrencySymb = !0; this.omitCentForHigh = this.omitCent = !1; this.fontdescriptors = new java_util_JavaScriptVector(); this.fontsManipulated = !1; }, id_1: function (a) { this.appId = a; return this; }, multiplier_1: function (a) { this.multip = a; this.multipSet = !0; return this; }, totalBet_1: function (a) { this.totalbet = a; this.totalbetSet = !0; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, addFont_1: function (a) { this.fontdescriptors.addElement_1(a); this.fontsManipulated = !0; return this; }, removeAllFonts_0: function () { this.fontdescriptors.clear_0(); this.fontsManipulated = !0; return this; }, fontColor_1: function (a) { this.color = a.create_0(); return this; }, spacing_1: function (a) { this.linespacing = a; this.linespacingSet = !0; return this; }, hAlign_1: function (a) { this.halign = a; return this; }, vAlign_1: function (a) { this.valign = a; return this; }, outline_2: function (a, b) { this.outlinethickness = a; GT1650.prototype.assertExp_2(1 > a || null != b, "tickness is greater than 0 but color is null"); null != b ? (this.outlineColor = b.create_0()) : (this.outlinethickness = -1); this.outlineSet = !0; return this; }, removeOutline_0: function () { this.outlinethickness = -1; this.outlineColor = null; return this; }, shadow_3: function (a, b, d) { this.shadowSet = !0; this.shadowX = a; this.shadowY = b; null != d ? (this.shadowColor = d.create_0()) : (this.shadowY = this.shadowX = 0); return this; }, background_1: function (a) { this.children.setSize_1(0); this.children.addElement_1(a); return this; }, insets_4: function (a, b, d, e) { this.insetsSet = !0; this.insetLeft = a; this.insetRight = b; this.insetTop = d; this.insetBottom = e; return this; }, omitCents_1: function (a) { this.omitCent = a; this.omitCentSet = !0; return this; }, omitCentsForHighValues_1: function (a) { this.omitCentForHighSet = !0; this.omitCentForHigh = a; return this; }, showCurrencySymbol_1: function (a) { this.showCurrencySymb = a; this.showCurrencySymbChanged = !0; return this; }, create_2: function (a, b) { var d; if (0 == this.fontdescriptors.size_0()) (d = [].createArray(1)), (d[0] = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(100).create_1(b.getResourceManager_0())); else { var e = new java_util_JavaScriptVector(); e.add_1(this.fontdescriptors.elementAt_1(0).create_1(b.getResourceManager_0())); for (var f = 1; f < this.fontdescriptors.size_0(); f++) { d = this.fontdescriptors.elementAt_1(f).create_1(b.getResourceManager_0()); for (var g = !1, k = 0; k < e.size_0(); k++) if (e.elementAt_1(k).getHeight_0() < d.getHeight_0()) { e.insertElementAt_2(d, k); g = !0; break; } g || e.add_1(d); } d = [].createArray(e.size_0()); for (f = 0; f < d.length; f++) d[f] = e.elementAt_1(f); } e = this.widthSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); f = this.heightSize; -1 == this.heightSize && (f = a.getHeight_0() - this.yPos); d = new GT747(a, this.xPos, this.yPos, e, f, this.multip, this.totalbet, this.omitCent, d, this.color, this.halign, this.valign); d.setInsets_4(this.insetLeft, this.insetRight, this.insetTop, this.insetBottom); d.setOmitCentsForHighValues_1(this.omitCentForHigh); -1 != this.linespacing && d.setSpacing_1(this.linespacing); "1".equals_1(b.getParameter_1("showtextborders")) && d.showBorders_1(!0); g = this.getBackground_0(); null != g && ((g = g.create_2(d.getBackground_0(), b)), instanceOf(g, GT1525) && g.resize_2(e, f)); 0 < this.outlinethickness && d.setOutline_2(this.outlinethickness, this.outlineColor); this.shadowSet && d.setShadow_3(this.shadowX, this.shadowY, this.shadowColor); d.setShowCurrencySymbol_1(this.showCurrencySymb); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { for (var b = [].createArray(this.fontdescriptors.size_0()), d = 0; d < b.length; d++) this.fontdescriptors.elementAt_1(d).load_1(a.getResourceManager_0()); b = this.getBackground_0(); null != b && b.load_1(a); }, getBackground_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT850); GT1650.prototype.assertExp_2(b, "Descriptor is no DPaytableValue"); if (b) { this.modifyDescriptorImpl_1(a); if (this.fontsManipulated) for (a.fontdescriptors.clear_0(), b = 0; b < this.fontdescriptors.size_0(); b++) a.fontdescriptors.add_1(this.fontdescriptors.get_1(b)); null != this.color && (a.color = this.color); this.linespacingSet && (a.linespacing = this.linespacing); null != this.halign && (a.halign = this.halign); null != this.valign && (a.valign = this.valign); this.outlineSet && ((a.outlinethickness = this.outlinethickness), (a.outlineColor = this.outlineColor)); this.shadowSet && ((a.shadowColor = this.shadowColor), (a.shadowX = this.shadowX), (a.shadowY = this.shadowY)); this.insetsSet && ((a.insetLeft = this.insetLeft), (a.insetRight = this.insetRight), (a.insetTop = this.insetTop), (a.insetBottom = this.insetBottom)); this.multipSet && (a.multip = this.multip); this.totalbetSet && (a.totalbet = this.totalbet); this.omitCentSet && (a.omitCent = this.omitCent); this.omitCentForHighSet && (a.omitCentForHigh = this.omitCentForHigh); this.showCurrencySymbChanged && (a.showCurrencySymb = this.showCurrencySymb); } }, }, "GT850", [GT1272] ); GT850.prototype.set_0 = function () { return new GT850(); }; var GT183 = GT787.extend( { initialConstructor_0: function () { GT787.prototype.initialConstructor_0.call(this); }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, reel_1: function (a) { this.children.clear_0(); this.children.addElement_1(a); return this; }, create_2: function (a, b) { var d = new GT89(a, this.getCreationX_0(), this.getCreationY_0(), this.getCreationWidth_1(a), this.getCreationHeight_1(a)); this.createImpl_2(d, b); d.init_0(); return d; }, load_1: function (a) { this.loadImpl_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT183); GT1650.prototype.assertExp_2(b, "Descriptor is no DReelOverlayBounceSymbolOverlap"); b && this.modifyDescriptorImpl_1(a); }, }, "GT183", [GT1272] ); GT183.prototype.set_0 = function () { return new GT183(); }; var GT949 = GT787.extend( { initialConstructor_0: function () { this.colortextinactive = this.colorhighlightstatustextandwin = this.autoPlayStopSoundFeatureScreen = this.autoPlayForcedStopSound = this.autoPlayStopSound = this.autoPlayStartSound = this.startSound = this.superGameSound = this.decidegamblesound = this.soundMaxBet = this.sound = this.winTextString = null; this.omitCentCreditAndBalanceField = this.omitCentCurrencyFields = this.decideGambleLoopEnd = this.decideGambleLoopStart = 0; this.winFieldImgRight = this.winFieldImgLeft = null; this.winFieldImgSpacing = 0; this.hidestatusBackgroundIfNoText = !1; this.states = null; this.totalBetInBetPerLineField = this.totalBetForBetSpinner = this.mNeverHideWinField = this.hideLinespinnerIfLinesAreFixed = !1; GT787.prototype.initialConstructor_0.call(this); this.winTextString = ""; this.decideGambleLoopEnd = this.decideGambleLoopStart = 0; this.mNeverHideWinField = this.hidestatusBackgroundIfNoText = !1; this.omitCentCreditAndBalanceField = this.omitCentCurrencyFields = -1; this.states = new java_util_JavaScriptHashtable(); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, childBefore_2: function (a, b) { return this.childBeforeImpl_2(a, b); }, childAfter_2: function (a, b) { return this.childAfterImpl_2(a, b); }, removeChildren_0: function () { this.removeChildrenImpl_0(); return this; }, state_2: function (a, b) { this.states.put_2("" + a, b); return this; }, modifyState_2: function (a, b) { for (var d = this.states.get_1("" + a), e = b.getInactiveList_0(), f = 0; f < e.size_0(); f++) d.inactive_1(e.get_1(f).intValue_0()); e = b.getActiveList_0(); for (f = 0; f < e.size_0(); f++) d.active_1(e.get_1(f).intValue_0()); e = b.getHighlightedList_0(); for (f = 0; f < e.size_0(); f++) d.highlighted_1(e.get_1(f).intValue_0()); e = b.getRemoveList_0(); for (f = 0; f < e.size_0(); f++) d.remove_1(e.get_1(f).intValue_0()); return this; }, winText_1: function (a) { this.winTextString = a; return this; }, hideStatusBackgroundIfNoText_1: function (a) { this.hidestatusBackgroundIfNoText = a; return this; }, hideLineSpinnerIfLinesAreFixed_1: function (a) { this.hideLinespinnerIfLinesAreFixed = a; return this; }, soundForBetChange_1: function (a) { this.sound = a; return this; }, soundForMaxBetChange_1: function (a) { this.soundMaxBet = a; return this; }, soundDecideGamble_3: function (a, b, d) { this.decidegamblesound = a; this.decideGambleLoopStart = b; this.decideGambleLoopEnd = d; return this; }, soundSuperGame_1: function (a) { this.superGameSound = a; return this; }, soundStart_1: function (a) { this.startSound = a; return this; }, soundAutoPlayStart_1: function (a) { this.autoPlayStartSound = a; return this; }, soundAutoPlayStop_1: function (a) { this.autoPlayStopSound = a; return this; }, soundForAutoPlayForcedStop_1: function (a) { this.autoPlayForcedStopSound = a; return this; }, soundForAutoPlayStopAtFeatureScreen_1: function (a) { this.autoPlayStopSoundFeatureScreen = a; return this; }, colorHighlightStatusTextAndWin_1: function (a) { this.colorhighlightstatustextandwin = a.create_0(); return this; }, colorTextInactive_1: function (a) { this.colortextinactive = a.create_0(); return this; }, neverHideWinField_1: function (a) { this.mNeverHideWinField = a; return this; }, omitCentPolicyCurrencyFields_1: function (a) { this.omitCentCurrencyFields = a; return this; }, omitCentPolicyCreditAndBalanceField_1: function (a) { this.omitCentCreditAndBalanceField = a; return this; }, showTotalBetForBetSpinner_1: function (a) { this.totalBetForBetSpinner = a; return this; }, showTotalBetInBetPerLineField_1: function (a) { this.totalBetInBetPerLineField = a; return this; }, animateWinField_3: function (a, b, d) { this.winFieldImgLeft = a; this.winFieldImgRight = b; this.winFieldImgSpacing = d; return this; }, create_2: function (a, b) { var d = b.getText_1(this.winTextString), e = d.indexOf_1("#0"), f; -1 != e ? ((f = d.substring_2(0, e)), (d = d.substring_2(e + 2, d.length_0()))) : ((f = ""), (d = " " + d)); var e = this.widthSize, g = this.heightSize; -1 == this.widthSize && (e = a.getWidth_0() - this.xPos); -1 == this.heightSize && (g = a.getHeight_0() - this.yPos); for (var k = new java_util_JavaScriptHashtable(), m = this.states.keys_0(); m.hasMoreElements_0(); ) { var n = m.nextElement_0(); k.put_2(n, this.states.get_1(n).create_1(GT1672.prototype.stringToInt_1(n))); } e = new GT834(a, this.xPos, this.yPos, e, g, k, b); for (g = 0; g < this.children.size_0(); g++) this.children.elementAt_1(g).create_2(e, b); null != this.sound && e.setSoundForBetChange_2(b.getResourceManager_0().getSound_1(this.sound), b.getSoundPlayer_0()); null != this.soundMaxBet && e.setSoundForMaxBetChange_2(b.getResourceManager_0().getSound_1(this.soundMaxBet), b.getSoundPlayer_0()); null != this.decidegamblesound && e.setSoundDecideGamble_4(b.getResourceManager_0().getSound_1(this.decidegamblesound), this.decideGambleLoopStart, this.decideGambleLoopEnd, b.getSoundPlayer_0()); null != this.superGameSound && e.setSoundSuperGameCounter_2(b.getResourceManager_0().getSound_1(this.superGameSound), b.getSoundPlayer_0()); null != this.autoPlayStopSound && null != this.autoPlayForcedStopSound && e.setSoundForAutoPlayStop_3(b.getResourceManager_0().getSound_1(this.autoPlayStopSound), b.getResourceManager_0().getSound_1(this.autoPlayForcedStopSound), b.getSoundPlayer_0()); null != this.autoPlayStartSound && e.setSoundForAutoPlayStart_2(b.getResourceManager_0().getSound_1(this.autoPlayStartSound), b.getSoundPlayer_0()); null != this.startSound && e.setSoundForStart_2(b.getResourceManager_0().getSound_1(this.startSound), b.getSoundPlayer_0()); null != this.autoPlayStopSoundFeatureScreen && e.setSoundForAutoPlayStopAtFeatureScreen_2(b.getResourceManager_0().getSound_1(this.autoPlayStopSoundFeatureScreen), b.getSoundPlayer_0()); null != this.winFieldImgLeft && null != this.winFieldImgRight && e.setAnimateWinField_3(this.winFieldImgLeft.create_1(b.getResourceManager_0()), this.winFieldImgRight.create_1(b.getResourceManager_0()), this.winFieldImgSpacing); e.setWinFieldText_2(f, d); e.setHideStatusBackgroundIfNoText_1(this.hidestatusBackgroundIfNoText); e.setHideLineSpinnerIfLinesAreFixed_1(this.hideLinespinnerIfLinesAreFixed); e.setColorHighlightStatusTextAndWin_1(this.colorhighlightstatustextandwin); e.setColorTextInactive_1(this.colortextinactive); e.setNeverHideWinField_1(this.mNeverHideWinField); e.setShowTotalBetForBetSpinner_1(this.totalBetForBetSpinner); e.setShowTotalBetInBetPerLineField_1(this.totalBetInBetPerLineField); e.setApplicationID_1(this.appId); -1 != this.omitCentCurrencyFields && e.setOmitCentPolicyCurrencyFields_1(this.omitCentCurrencyFields); -1 != this.omitCentCreditAndBalanceField && e.setOmitCentPolicyCreditAndBalanceField_1(this.omitCentCreditAndBalanceField); e.init_0(); "1".equals_1(b.getParameter_1("covercredit")) && e.setHideCreditValue_2(!0, !1); return e; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); null != this.sound && a.getResourceManager_0().startLoadSound_1(this.sound); null != this.soundMaxBet && a.getResourceManager_0().startLoadSound_1(this.soundMaxBet); null != this.decidegamblesound && a.getResourceManager_0().startLoadSound_1(this.decidegamblesound); null != this.superGameSound && a.getResourceManager_0().startLoadSound_1(this.superGameSound); null != this.autoPlayStopSound && a.getResourceManager_0().startLoadSound_1(this.autoPlayStopSound); null != this.autoPlayForcedStopSound && a.getResourceManager_0().startLoadSound_1(this.autoPlayForcedStopSound); null != this.autoPlayStartSound && a.getResourceManager_0().startLoadSound_1(this.autoPlayStartSound); null != this.startSound && a.getResourceManager_0().startLoadSound_1(this.startSound); null != this.autoPlayStopSoundFeatureScreen && a.getResourceManager_0().startLoadSound_1(this.autoPlayStopSoundFeatureScreen); null != this.winFieldImgLeft && this.winFieldImgLeft.load_1(a.getResourceManager_0()); null != this.winFieldImgRight && this.winFieldImgRight.load_1(a.getResourceManager_0()); }, remove_1: function (a) { return this.removeImpl_1(a); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, }, "GT949", [] ); GT949.prototype.set_0 = function () { return new GT949(); }; var GT681 = GT787.extend( { initialConstructor_0: function () { this.coordsHighlights = this.stringlose = this.stringwheelhighlight = this.stringwheel = this.stringSoundSuperGameCountUp = this.stringSoundClose = this.stringSoundOpen = this.stringsgwin = this.stringcounterincrease = this.stringnowin = this.stringwheelspin = this.stringwheelstep = null; this.maxLabelWidth = this.radius = this.centerY = this.centerX = 0; this.fontNumbers = this.fontMainCounter = this.textoutlinecolor = this.textcolor = null; this.winCountUpDur = this.no_Win_Delay = this.counterDelay = this.wheelSpinningDuration = this.wheelTurboStepDuration = this.wheelStepDuration = this.openCloseDuration = 0; GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; this.coordsHighlights = this.defaultHighlightCoordinates_0(); this.openCloseDuration = 500; this.wheelStepDuration = 300; this.wheelTurboStepDuration = 150; this.wheelSpinningDuration = 25; this.counterDelay = 100; this.no_Win_Delay = 1e3; this.winCountUpDur = 2750; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, size_2: function (a, b) { this.widthSize = a; this.heightSize = b; return this; }, imageSuperGameWheel_1: function (a) { this.stringwheel = a; return this; }, imageSuperGameWheelHighlight_1: function (a) { this.stringwheelhighlight = a; return this; }, imageSuperGameLose_1: function (a) { this.stringlose = a; return this; }, defaultHighlightCoordinates_0: function () { var a = [].createArray(16, null).init(0), b = 0; a[b++] = [344, 0, 444, 153, 568, 85]; a[b++] = [444, 0, 564, 163, 644, 92]; a[b++] = [186, 163, 339, 317, 687, 133]; a[b++] = [339, 164, 503, 284, 719, 209]; a[b++] = [335, 284, 494, 385, 732, 307]; a[b++] = [339, 386, 503, 508, 719, 384]; a[b++] = [186, 317, 339, 473, 689, 428]; a[b++] = [565, 0, 685, 164, 645, 462]; a[b++] = [0, 0, 98, 156, 568, 479]; a[b++] = [99, 0, 221, 163, 468, 464]; a[b++] = [28, 317, 185, 473, 388, 430]; a[b++] = [503, 385, 668, 508, 347, 385]; a[b++] = [502, 285, 658, 385, 341, 308]; a[b++] = [503, 164, 666, 285, 349, 208]; a[b++] = [28, 163, 185, 316, 389, 132]; a[b] = [221, 0, 344, 162, 468, 90]; return a; }, highlightCoordinates_1: function (a) { this.coordsHighlights = [].createArray(a.length, null).init(0); for (var b = 0; b < a.length; ++b) (this.coordsHighlights[b] = [].createArray(a[b].length).init(0)), java_lang_System.prototype.arraycopy_5(a[b], 0, this.coordsHighlights[b], 0, a[b].length); return this; }, wheelValues_4: function (a, b, d, e) { this.centerX = a; this.centerY = b; this.radius = d; this.maxLabelWidth = e; return this; }, colors_2: function (a, b) { this.textcolor = a.create_0(); this.textoutlinecolor = b.create_0(); return this; }, fonts_2: function (a, b) { this.fontMainCounter = a; this.fontNumbers = b; return this; }, soundWheelStep_1: function (a) { this.stringwheelstep = a; return this; }, soundSuperGameCountUp_1: function (a) { this.stringSoundSuperGameCountUp = a; return this; }, soundWheelSpinning_1: function (a) { this.stringwheelspin = a; return this; }, soundNoWin_1: function (a) { this.stringnowin = a; return this; }, soundSuperGamesCounterIncrease_1: function (a) { this.stringcounterincrease = a; return this; }, soundSuperGamesWin_1: function (a) { this.stringsgwin = a; return this; }, wheelHighlightStepDurations_2: function (a, b) { this.wheelTurboStepDuration = a; this.wheelStepDuration = b; return this; }, wheelHighlightSpinningDuration_1: function (a) { this.wheelSpinningDuration = a; return this; }, winCountUpDuration_1: function (a) { this.winCountUpDur = a; return this; }, superGameCountUpTime_1: function (a) { this.counterDelay = a; return this; }, noWinDelay_1: function (a) { this.no_Win_Delay = a; return this; }, durationOpenClose_1: function (a) { this.openCloseDuration = a; return this; }, soundOpen_1: function (a) { this.stringSoundOpen = a; return this; }, soundClose_1: function (a) { this.stringSoundClose = a; return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); null != this.stringwheel && a.getResourceManager_0().startLoadImage_4(this.stringwheel, 1, 1, !1); null != this.stringwheelhighlight && a.getResourceManager_0().startLoadImage_4(this.stringwheelhighlight, 1, 1, !1); null != this.stringlose && a.getResourceManager_0().startLoadImage_4(this.stringlose, 1, 1, !1); null != this.stringwheelstep && a.getResourceManager_0().startLoadSound_1(this.stringwheelstep); null != this.stringwheelspin && a.getResourceManager_0().startLoadSound_1(this.stringwheelspin); null != this.stringnowin && a.getResourceManager_0().startLoadSound_1(this.stringnowin); null != this.stringcounterincrease && a.getResourceManager_0().startLoadSound_1(this.stringcounterincrease); null != this.stringsgwin && a.getResourceManager_0().startLoadSound_1(this.stringsgwin); null != this.stringSoundOpen && a.getResourceManager_0().startLoadSound_1(this.stringSoundOpen); null != this.stringSoundClose && a.getResourceManager_0().startLoadSound_1(this.stringSoundClose); null != this.stringSoundSuperGameCountUp && a.getResourceManager_0().startLoadSound_1(this.stringSoundSuperGameCountUp); if (null != this.fontNumbers) for (b = 0; b < this.fontNumbers.length; b++) null != this.fontNumbers[b] && this.fontNumbers[b].load_1(a.getResourceManager_0()); if (null != this.fontMainCounter) for (b = 0; b < this.fontMainCounter.length; b++) null != this.fontMainCounter[b] && this.fontMainCounter[b].load_1(a.getResourceManager_0()); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize, f, g, k; f = g = k = null; var m, n; n = m = null; var p, q, r, t, u, B, A, C; p = q = r = t = u = B = A = C = null; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); null != this.stringwheel && (f = b.getResourceManager_0().getImage_1(this.stringwheel)); null != this.stringwheelhighlight && (g = b.getResourceManager_0().getImage_1(this.stringwheelhighlight)); null != this.stringlose && (k = b.getResourceManager_0().getImage_1(this.stringlose)); null != this.stringwheelstep && (p = b.getResourceManager_0().getSound_1(this.stringwheelstep)); null != this.stringwheelspin && (q = b.getResourceManager_0().getSound_1(this.stringwheelspin)); null != this.stringnowin && (r = b.getResourceManager_0().getSound_1(this.stringnowin)); null != this.stringcounterincrease && (t = b.getResourceManager_0().getSound_1(this.stringcounterincrease)); null != this.stringsgwin && (u = b.getResourceManager_0().getSound_1(this.stringsgwin)); null != this.stringSoundOpen && (B = b.getResourceManager_0().getSound_1(this.stringSoundOpen)); null != this.stringSoundClose && (A = b.getResourceManager_0().getSound_1(this.stringSoundClose)); null != this.stringSoundSuperGameCountUp && (C = b.getResourceManager_0().getSound_1(this.stringSoundSuperGameCountUp)); if (null != this.fontMainCounter) { m = [].createArray(this.fontMainCounter.length); for (var E = 0; E < m.length; E++) m[E] = this.fontMainCounter[E].create_1(b.getResourceManager_0()); } if (null != this.fontNumbers) for (n = [].createArray(this.fontNumbers.length), E = 0; E < n.length; E++) n[E] = this.fontNumbers[E].create_1(b.getResourceManager_0()); GT1650.prototype.assertExp_2(null != f, "imageSuperGameWheel not set for SuperGame"); GT1650.prototype.assertExp_2(null != k, "imageSuperGameLose not set for SuperGame"); d = new GT221( a, this.xPos, this.yPos, d, e, b, this.coordsHighlights, this.centerX, this.centerY, this.radius, this.maxLabelWidth, f, g, k, this.textcolor, this.textoutlinecolor, m, n, p, q, r, t, u, B, A, this.counterDelay, this.no_Win_Delay, C, this.winCountUpDur ); d.setApplicationID_1(this.appId); for (E = 0; E < this.children.size_0(); E++) this.children.elementAt_1(E).create_2(d, b); d.setOtherChildren_1(this.children); d.setDurationOpenClose_1(this.openCloseDuration); d.setWheelStepDurations_2(this.wheelTurboStepDuration, this.wheelStepDuration); d.setWheelSpinningDuration_1(this.wheelSpinningDuration); return d; }, }, "GT681", [] ); GT681.prototype.set_0 = function () { return new GT681(); }; var GT279 = GT787.extend( { initialConstructor_0: function () { GT787.prototype.initialConstructor_0.call(this); this.heightSize = this.widthSize = -1; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, child_1: function (a) { this.children.addElement_1(a); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); d = new GT78(a, this.xPos, this.yPos, d, e); for (e = 0; e < this.children.size_0(); e++) this.children.elementAt_1(e).create_2(d, b); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); }, replace_2: function (a, b) { return this.replaceImpl_2(a, b); }, remove_1: function (a) { return this.removeImpl_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT279); GT1650.prototype.assertExp_2(b, "Descriptor is no DSymbolHighlightMultiplexer"); b && this.modifyDescriptorImpl_1(a); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT279", [GT1272] ); GT279.prototype.set_0 = function () { return new GT279(); }; var GT249 = GT474.extend( { initialConstructor_0: function () { this._loadedSounds = this._sounds = this._vclips = this._videoclips = this._modifications = null; this._lineCount = 0; this.debugAreaColor = this._singleTabImage = this._tabModifications = null; this.debugAreaAlpha = 0; GT474.prototype.initialConstructor_0.call(this); this._modifications = new java_util_JavaScriptHashtable(); this._videoclips = new java_util_JavaScriptHashtable(); this._tabModifications = new java_util_JavaScriptHashtable(); this._sounds = new java_util_JavaScriptHashtable(); this._singleTabImage = null; this._lineCount = 0; this.debugAreaColor = null; this.debugAreaAlpha = 0; }, addWinLineVideo_6: function (a, b, d, e, f, g) { return this.addWinLineVideo_8(a, b, d, e, f, g, !1, !1); }, addWinLineSound_2: function (a, b) { this._sounds.put_2(Integer.toString_1(a), b); return this; }, addWinLineVideo_8: function (a, b, d, e, f, g, k, m) { null == this._videoclips.get_1(Integer.toString_1(a)) && this._lineCount++; this._videoclips.put_2(Integer.toString_1(a), b); b = new java_util_JavaScriptVector(); b.add_1(new Integer(d)); b.add_1(new Integer(e)); b.add_1(new Integer(f)); b.add_1(new Integer(g)); b.add_1(new Integer(k ? 1 : 0)); b.add_1(new Integer(m ? 1 : 0)); this._modifications.put_2(Integer.toString_1(a), b); this.updateMax_1(a); return this; }, winLineTab_5: function (a, b, d, e, f) { var g = new java_util_JavaScriptVector(); g.add_1(new Integer(b)); g.add_1(new Integer(d)); g.add_1(new Integer(e)); g.add_1(new Integer(f)); this._tabModifications.put_2(Integer.toString_1(a), g); this.updateMax_1(a); return this; }, tabImage_1: function (a) { this._singleTabImage = a; return this; }, addWinLineVideo_2: function (a, b) { return this.addWinLineVideo_8(a, b, 0, 0, -1, -1, !1, !1); }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, id_1: function (a) { this.idImpl_1(a); return this; }, load_1: function (a) { a = a.getResourceManager_0(); null == this._vclips && (this._vclips = new java_util_JavaScriptHashtable()); null == this._loadedSounds && (this._loadedSounds = new java_util_JavaScriptHashtable()); for (var b = 0; b < this._lineCount; b++) { var d = this._videoclips.get_1(Integer.toString_1(b)); a.startLoadVideoClip_1(d); d = this._sounds.get_1(Integer.toString_1(b)); null != d && a.startLoadSound_1(d); } null != this._singleTabImage && this._singleTabImage.load_1(a); }, fillVideoAndSoundHashtables_1: function (a) { null == this._vclips && (this._vclips = new java_util_JavaScriptHashtable()); null == this._loadedSounds && (this._loadedSounds = new java_util_JavaScriptHashtable()); for (var b = 0; b < this._lineCount; b++) { var d = this._videoclips.get_1(Integer.toString_1(b)); null != d && ((d = a.getVideoClip_1(d)), null != d && this._vclips.put_2(Integer.toString_1(b), d)); d = this._sounds.get_1(Integer.toString_1(b)); null != d && ((d = a.getSound_1(d)), null != d && this._loadedSounds.put_2(Integer.toString_1(b), d)); } }, create_2: function (a, b) { var d; this.fillVideoAndSoundHashtables_1(b.getResourceManager_0()); d = null; null != this._singleTabImage && (d = this._singleTabImage.create_1(b.getResourceManager_0())); d = new GT198(a, this.xPos, this.yPos, this.widthSize, this.heightSize, this._vclips, this._modifications, b.getSoundPlayer_0(), this._loadedSounds, d, this._tabModifications); d.setApplicationID_1(this.appId); null != this.debugAreaColor && d.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return d; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT249", [] ); GT249.prototype.set_0 = function () { return new GT249(); }; var GT680 = GT474.extend( { initialConstructor_0: function () { this.winLineOffset = this.winLineSpacing = this.outlinethickness = this.linethickness = 0; this.scatterOutlineColor = this.scattercolor = this.outlinecolors = this.colors = null; this.reelContainerOffsetY = this.reelContainerOffsetX = 0; this.tabsimage = null; this.lineSlope = this.winlabelindex = this.linemarginright = this.linemarginleft = this.linemargin = this.numberOfTabsInImage = 0; this.font = null; this.labelOutlineThickness = 0; this.debugAreaColor = this.labelTextsOutlineThicknesses = this.labelTextOutlineColors = this.labelOutlineColor = null; this.debugAreaAlpha = 0; GT474.prototype.initialConstructor_0.call(this); this.colors = new java_util_JavaScriptHashtable(); this.outlinecolors = new java_util_JavaScriptHashtable(); this.linethickness = 6; this.outlinethickness = 2; this.winLineSpacing = 20; this.winLineOffset = 0; this.widthSize = 200; this.heightSize = 100; this.reelContainerOffsetY = this.reelContainerOffsetX = 0; this.scattercolor = GT1634.prototype.black; this.scatterOutlineColor = GT1634.prototype.white; this.winlabelindex = 0; this.lineSlope = 1; this.font = GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160); this.labelOutlineColor = null; this.labelOutlineThickness = -1; this.labelTextOutlineColors = new java_util_JavaScriptHashtable(); this.labelTextsOutlineThicknesses = new java_util_JavaScriptHashtable(); this.debugAreaColor = null; this.debugAreaAlpha = 0; }, id_1: function (a) { this.idImpl_1(a); return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, slope_1: function (a) { this.lineSlope = a; return this; }, lineColor_3: function (a, b, d) { var e = Integer.toString_1(a); this.colors.put_2(e, b.create_0()); this.outlinecolors.put_2(e, d.create_0()); this.updateMax_1(a); return this; }, lineColor_2: function (a, b) { var d = Integer.toString_1(a); this.colors.put_2(d, b.create_0()); this.outlinecolors.put_2(d, new GT1063(75, 0).transform_1(b.create_0())); this.updateMax_1(a); return this; }, scatterColor_2: function (a, b) { this.scattercolor = a.create_0(); this.scatterOutlineColor = b.create_0(); return this; }, scatterColor_1: function (a) { this.scattercolor = a.create_0(); this.scatterOutlineColor = new GT1063(75, 0).transform_1(this.scattercolor); return this; }, lineThickness_1: function (a) { this.linethickness = a; return this; }, outlineThickness_1: function (a) { this.outlinethickness = a; return this; }, lineStartSpacing_1: function (a) { this.winLineSpacing = a; return this; }, lineStartOffset_1: function (a) { this.winLineOffset = a; return this; }, reelContainerOffset_2: function (a, b) { this.reelContainerOffsetX = a; this.reelContainerOffsetY = b; return this; }, tabsImage_2: function (a, b) { this.tabsimage = a; this.numberOfTabsInImage = b; return this; }, margin_1: function (a) { this.linemargin = a; this.linemarginright = this.linemarginleft = -1; return this; }, margin_2: function (a, b) { this.linemarginleft = a; this.linemarginright = b; this.linemargin = -1; return this; }, labelFont_1: function (a) { this.font = a; return this; }, winLabelIndex_1: function (a) { this.winlabelindex = a; return this; }, load_1: function (a) { null != this.tabsimage && a.getResourceManager_0().startLoadImage_4(this.tabsimage, 1, 2 * this.numberOfTabsInImage, !1); null != this.font && this.font.load_1(a.getResourceManager_0()); }, line_2: function (a, b) { this.lineImpl_2(a, b); return this; }, reelsLayout_1: function (a) { this.reelsLayoutImpl_1(a); return this; }, showFrames_1: function (a) { this.showFramesImpl_1(a); return this; }, showLineWinFrames_1: function (a) { this.showLineWinFramesImpl_1(a); return this; }, showScatterWinFrames_1: function (a) { this.showScatterWinFramesImpl_1(a); return this; }, showWinLabels_1: function (a) { this.showWinLabelsImpl_1(a); return this; }, showLineWinLabels_1: function (a) { this.showLineWinLabelsImpl_1(a); return this; }, showScatterWinLabels_1: function (a) { this.showScatterWinLabelsImpl_1(a); return this; }, labelTextOutline_2: function (a, b) { this.labelOutlineColor = a; this.labelOutlineThickness = b; return this; }, lineLabelTextOutline_3: function (a, b, d) { a = Integer.toString_1(a); this.labelTextOutlineColors.put_2(a, b.create_0()); this.labelTextsOutlineThicknesses.put_2(a, new Integer(d)); return this; }, create_2: function (a, b) { for (var d = GT1634.prototype.black, e = GT1634.prototype.white, f = [].createArray(this.getMax_0() + 1), g = [].createArray(this.getMax_0() + 1), k = [].createArray(this.getMax_0() + 1), m = 0; m < f.length; m++) { var n = Integer.toString_1(m); f[m] = this.getLineDef_0().get_1(n); var p = this.colors.get_1(n); null == p ? ((g[m] = d), (k[m] = e)) : ((g[m] = p), (k[m] = this.outlinecolors.get_1(n))); } d = null; null != this.tabsimage && (d = b.getResourceManager_0().getImage_1(this.tabsimage)); e = new GT587( a, this.xPos, this.yPos, this.widthSize, this.heightSize, this.getLayout_0().create_0(), this.winLineSpacing, this.winLineOffset, this.linethickness, this.outlinethickness, this.reelContainerOffsetX, this.reelContainerOffsetY, this.linemargin, this.linemarginleft, this.linemarginright ); null != this.font && e.setLabelFont_1(this.font.create_1(b.getResourceManager_0())); e.setShowLineWinFrames_1(this.isShowLineWinFrames_0()); e.setShowScatterWinFrames_1(this.isShowScatterWinFrames_0()); e.setShowLineWinLabels_1(this.isShowLineWinLabels_0()); e.setShowScatterWinLabels_1(this.isShowScatterWinlabels_0()); e.setSlope_1(this.lineSlope); e.setWinLabelIndex_1(this.winlabelindex); e.setWinLines_3(f, g, k); if (null != this.labelOutlineColor || 0 != this.labelTextOutlineColors.size_0()) for (m = 0; m < f.length; m++) (g = this.labelTextOutlineColors.get_1(Integer.toString_1(m))), null == g ? null != this.labelOutlineColor && e.setWinLineLabelTextOutline_3(m, this.labelOutlineColor.create_0(), this.labelOutlineThickness) : ((k = this.labelTextsOutlineThicknesses.get_1(Integer.toString_1(m))), null != k && e.setWinLineLabelTextOutline_3(m, g, k.intValue_0())); e.setTabImage_1(d); e.setScatterColors_2(this.scattercolor, this.scatterOutlineColor); e.setApplicationID_1(this.appId); null != this.debugAreaColor && e.setDebugAreaColor_2(this.debugAreaColor, this.debugAreaAlpha); return e; }, setDebugAreaColor_2: function (a, b) { this.debugAreaColor = a; this.debugAreaAlpha = b; return this; }, }, "GT680", [] ); GT680.prototype.set_0 = function () { return new GT680(); }; var GT250 = GT787.extend( { initialConstructor_0: function () { GT787.prototype.initialConstructor_0.call(this); }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = a.getWidth_0() - this.xPos); -1 == this.heightSize && (e = a.getHeight_0() - this.yPos); d = new GT199(a, this.xPos, this.yPos, d, e); for (e = 0; e < this.children.size_0(); e++) this.children.elementAt_1(e).create_2(d, b); d.setApplicationID_1(this.appId); return d; }, load_1: function (a) { for (var b = 0; b < this.children.size_0(); b++) this.children.elementAt_1(b).load_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT250); GT1650.prototype.assertExp_2(b, "Descriptor is no DWinlineContainerMultiplexer"); b && this.modifyDescriptorImpl_1(a); }, }, "GT250", [GT1272] ); GT250.prototype.set_0 = function () { return new GT250(); }; var GT277 = GT787.extend( { initialConstructor_0: function () { this.buttontooltip = null; this.dragAreaH = this.dragAreaW = this.dragAreaY = this.dragAreaX = 0; this.buttonStates = null; this.buttonTooltipSet = this.buttonStatesSet = this.consumingMouseEventSet = this.isConsumingMouseEventsWhenInactive = !1; this._data = null; this._dragable = !1; this.clickAreaShape = null; this.soundSet = this.dragAreaSet = this.dragableSet = this.dataSet = this.clickAreaShapeModified = this.showHandCursorSet = this.showHand = !1; this.clicksound = null; this.movementValuesSet = !1; this.mt = this.my = this.mx = 0; this.fadeValuesSet = !1; this.fadeDuration = this.alphaInactive = this.alphaActive = 0; this.partialMovementValuesSet = !1; this.partialMovementDuration = this.partialMovementY = this.partialMovementX = 0; this.inactiveColor = this.pressedColor = this.txt = null; this.inactiveColorSet = this.pressedColorSet = this.txtSet = !1; GT787.prototype.initialConstructor_0.call(this); this.dragAreaX = -1; this.showHand = this.isConsumingMouseEventsWhenInactive = !0; this.showHandCursorSet = !1; this.clicksound = null; this.partialMovementValuesSet = this.fadeValuesSet = this.movementValuesSet = this.soundSet = !1; }, id_1: function (a) { this.appId = a; return this; }, data_1: function (a) { this.dataSet = !0; this._data = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, hide_1: function (a) { this.hideImpl_1(a); return this; }, child_1: function (a) { this.childImpl_1(a); return this; }, states_1: function (a) { this.buttonStatesSet = !0; this.buttonStates = a; return this; }, consumingMouseEventsWhenInactive_1: function (a) { this.consumingMouseEventSet = !0; this.isConsumingMouseEventsWhenInactive = a; return this; }, tooltip_1: function (a) { this.buttonTooltipSet = !0; this.buttontooltip = a; return this; }, dragArea_4: function (a, b, d, e) { this.dragAreaSet = !0; this.dragAreaX = a; this.dragAreaY = b; this.dragAreaW = d; this.dragAreaH = e; this._dragable = this.dragableSet = !0; return this; }, dragable_0: function () { this._dragable = this.dragableSet = !0; return this; }, showHandCursor_1: function (a) { this.showHandCursorSet = !0; this.showHand = a; return this; }, clickableAreaShape_1: function (a) { this.clickAreaShapeModified = !0; this.clickAreaShape = a; return this; }, clickSound_1: function (a) { this.soundSet = !0; this.clicksound = a; return this; }, text_1: function (a) { this.txtSet = !0; this.txt = a; return this; }, textInactiveColor_1: function (a) { this.inactiveColorSet = !0; this.inactiveColor = null == a ? null : a.create_0(); return this; }, textPressedColor_1: function (a) { this.pressedColorSet = !0; this.pressedColor = null == a ? null : a.create_0(); return this; }, movementValues_3: function (a, b, d) { this.movementValuesSet = !0; this.mx = a; this.my = b; this.mt = d; return this; }, fadeValues_3: function (a, b, d) { this.fadeValuesSet = !0; this.alphaActive = a; this.alphaInactive = b; this.fadeDuration = d; return this; }, partialMovementValues_3: function (a, b, d) { this.partialMovementValuesSet = !0; this.partialMovementX = a; this.partialMovementY = b; this.partialMovementDuration = d; return this; }, partialMovementValues_2: function (a, b) { this.partialMovementValues_3(a, -1, b); return this; }, create_2: function (a, b) { var d = this.widthSize, e = this.heightSize; -1 == this.widthSize && (d = 0); -1 == this.heightSize && (e = 0); for (var f = new GT216(a, this.xPos, this.yPos, d, e, b.getTimer_0()), d = 0; d < this.children.size_0(); d++) this.children.elementAt_1(d).create_2(f, b); if (0 > this.widthSize || 0 > this.heightSize) if ((f.resizeToContent_0(), 0 == f.getWidth_0() || 0 == f.getHeight_0())) (d = f.getParent_0().getWidth_0()), (e = f.getParent_0().getHeight_0()), f.resize_2(d, e); f.setApplicationData_2(this.appId, this._data); this._dragable && (f.setDragable_1(!0), -1 != this.dragAreaX && f.setDragArea_4(this.dragAreaX, this.dragAreaY, this.dragAreaW, this.dragAreaH)); null != this.buttontooltip && f.setToolTip_1(b.getText_1(this.buttontooltip)); e = null; if (null != this.buttonStates) for (e = this.buttonStates.create_0(), d = 0; d < e.length; d++) null != e[d] && f.setChildForState_2(e[d], d); this.showHandCursorSet && f.setShowHandCursor_1(this.showHand); null != this.clickAreaShape && f.setClickableAreaShape_1(this.clickAreaShape.create_0()); null != this.clicksound && ((d = new GT68(this.clicksound.create_1(b), b.getSoundPlayer_0())), f.addButtonListener_1(d)); f.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); f.finishButton_0(); f.hide_1(this.initialHide); null != this.txt && f.setText_1(b.getText_1(this.txt)); this.movementValuesSet && f.setMovementValues_3(this.mx, this.my, this.mt); this.fadeValuesSet && f.setFadeValues_3(this.alphaActive, this.alphaInactive, this.fadeDuration); this.partialMovementValuesSet && f.setPartialMovementValues_3(this.partialMovementX, this.partialMovementY, this.partialMovementDuration); if (null != this.inactiveColor) for (e = f.getChild_1(f.getChildIdxForState_1(GT1236.prototype.INACTIVE)), d = 0; d < e.getChildCount_0(); d++) { var g = e.getChild_1(d); instanceOf(g, GT1490) && g.setColor_1(this.inactiveColor); } if (null != this.pressedColor) for (e = f.getChild_1(f.getChildIdxForState_1(GT1236.prototype.PRESSED)), d = 0; d < e.getChildCount_0(); d++) (g = e.getChild_1(d)), instanceOf(g, GT1490) && g.setColor_1(this.pressedColor); return f; }, load_1: function (a) { this.loadImpl_1(a); null != this.clicksound && this.clicksound.load_1(a); }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT277); GT1650.prototype.assertExp_2(b, "Descriptor is no DOneButton"); b && (this.modifyDescriptorImpl_1(a), this.showHandCursorSet && a.showHandCursor_1(this.showHand), this.clickAreaShapeModified && a.clickableAreaShape_1(this.clickAreaShape), this.soundSet && a.clickSound_1(this.clicksound), this.movementValuesSet && a.movementValues_3(this.mx, this.my, this.mt), this.fadeValuesSet && a.fadeValues_3(this.alphaActive, this.alphaInactive, this.fadeDuration), this.partialMovementValuesSet && a.partialMovementValues_3(this.partialMovementX, this.partialMovementY, this.partialMovementDuration), this.consumingMouseEventSet && (a.isConsumingMouseEventsWhenInactive = this.isConsumingMouseEventsWhenInactive), this.dataSet && (a._data = this._data), this.dragableSet && (a._dragable = this._dragable), this.dragAreaSet && ((a.dragAreaX = this.dragAreaX), (a.dragAreaY = this.dragAreaY), (a.dragAreaH = this.dragAreaH), (a.dragAreaW = this.dragAreaW), (a._dragable = this._dragable)), this.buttonStatesSet && (a.buttonStates = this.buttonStates), this.txtSet && (a.txt = this.txt), this.inactiveColorSet && (a.inactiveColor = this.inactiveColor), this.pressedColorSet && (a.pressedColor = this.pressedColor), this.buttonTooltipSet && (a.buttontooltip = this.buttontooltip)); }, modify_2: function (a, b) { return this.modifyImpl_2(a, b); }, }, "GT277", [GT1272] ), GT68 = Class.extend( { initialConstructor_0: function () { this.soundPlayer = this.clickSound = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.soundPlayer = this.clickSound = null; this.clickSound = a; this.soundPlayer = b; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { null != this.soundPlayer && this.soundPlayer.start_1(this.clickSound); }, }, "GT68", [GT1066] ); GT277.prototype.set_0 = function () { return new GT277(); }; var GT907 = Class.extend( { initialConstructor_0: function () { this.slotGame = this.guiStateListeners = this.currentState = this.guiStates = null; this.guiStates = new java_util_JavaScriptVector(); this.guiStateListeners = new java_util_JavaScriptVector(); }, addGuiStateListener_1: function (a) { this.guiStateListeners.addElement_1(a); }, removeGuiStateListener_1: function (a) { this.guiStateListeners.removeElement_1(a); }, addGuiState_1: function (a) { for (var b = this.guiStates.size_0(), d = 0; d < b; d++) if (this.guiStates.elementAt_1(d).getId_0() == a.getId_0()) { this.guiStates.setElementAt_2(a, d); GT907.prototype.LOG.verbose && GT907.prototype.LOG.log_1("[GUI] replaced State " + a); return; } this.guiStates.addElement_1(a); GT907.prototype.LOG.verbose && GT907.prototype.LOG.log_1("[GUI] added gui State " + a); }, changeState_1: function (a) { this.changeState_2(a, null); }, changeState_2: function (a, b) { this.changeState_3(a, b, !1); }, changeState_3: function (a, b, d) { if (GT907.prototype.DEBUGON) this.fireStateFinished_1(a); else { for (var e = null, f = this.guiStates.size_0(), g = 0; g < f; g++) if (this.guiStates.elementAt_1(g).getId_0() == a) { e = this.guiStates.elementAt_1(g); break; } null == e ? (GT1650.prototype.assertFailed_1("GuiState not found " + a), this.fireStateFinished_1(a)) : (GT907.prototype.LOG.verbose && GT907.prototype.LOG.log_1("[GUI] " + this.currentState + " -> " + e.toString()), null != this.currentState && (this.currentState.exit_0(), this.fireStateExited_1(this.currentState.getId_0())), (this.currentState = e), this.currentState.setSkipIntro_1(d), this.currentState.enter_1(b), this.fireStateEntered_1(this.currentState.getId_0())); } }, getCurrentStateId_0: function () { return null == this.currentState ? -1 : this.currentState.getId_0(); }, getCurrentStateConsoleIdentifier_0: function () { return null == this.currentState ? "Undefined" : this.currentState.getConsoleIdentifier_0(); }, notifySilentMode_1: function (a) { null != this.currentState && this.currentState.notifySilentMode_1(a); }, requestFinish_0: function () { this.currentState.requestFinish_0(); }, notifySlotEvent_1: function (a) { this.currentState.notifySlotEvent_1(a); }, fireStateFinished_1: function (a) { for (var b = this.guiStateListeners.size_0(), d = 0; d < b; d++) this.guiStateListeners.elementAt_1(d).guiStateFinished_1(a); null != this.slotGame && this.slotGame.guiStateFinished_1(a); }, fireStateEntered_1: function (a) { for (var b = this.guiStateListeners.size_0(), d = 0; d < b; d++) this.guiStateListeners.elementAt_1(d).guiStateEntered_1(a); null != this.slotGame && this.slotGame.guiStateEntered_1(a); }, fireStateExited_1: function (a) { for (var b = this.guiStateListeners.size_0(), d = 0; d < b; d++) this.guiStateListeners.elementAt_1(d).guiStateExited_1(a); null != this.slotGame && this.slotGame.guiStateExited_1(a); }, destroy_0: function () { null != this.currentState && this.currentState.destroy_0(); this.currentState = null; null != this.guiStates && this.guiStates.removeAllElements_0(); null != this.guiStateListeners && this.guiStateListeners.removeAllElements_0(); this.slotGame = null; }, toString: function () { return "CurrentGUIState: " + this.currentState.toString(); }, transformRules_1: function (a) { a.put_2(GT1185.prototype.VDR_GUISTATE_CONSOLE_ID, null == this.currentState ? "Undefined" : this.currentState.getConsoleIdentifier_0()); null != this.currentState && this.currentState.transformRules_1(a); }, setSlotGame_1: function (a) { this.slotGame = a; }, }, "GT907", [] ); GT907.prototype.generateID_0 = function () { return GT1677.prototype.generateID_0(); }; GT907.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT907.prototype.DEBUGON = !1; var GT475 = GT1254.extend( { initialConstructor_0: function () { this.spin_started = !1; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.spin_started = !1; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT475.prototype.ID; }, getConsoleIdentifier_0: function () { return "PaytableClosing"; }, enter_1: function (a) { this.spin_started = !1; null != a && a.getId_0() == GT1354.prototype.STARTSPIN && (this.spin_started = !0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); 0 == a.getChildCount_0() ? this.fireStateFinished_0() : (this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()), GT1650.prototype.assertExp_2(instanceOf(a.getChild_1(a.getChildCount_0() - 1), GT1437), "Paytable page is no GUIPaytablePage"), GT1650.prototype.assertExp_2(instanceOf(a, GT999), "Paytable is no GUIPaytable"), this.movePaytableOutOfView_1(a)); }, onEnterUpdateConsole_1: function (a) { GT729.prototype.updateConsoleButtonState_1(this.getGui_0()); this.spin_started && a.setState_1(GT725.prototype.FASTSPIN); this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION && a.setState_1(GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART); }, movePaytableOutOfView_1: function (a) { null != a.getSoundClose_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundClose_0()); for (var b = a.getChildCountWithoutArrowContainer_0() - 2; 0 <= b; b--) a.hidePage_2(a.getChild_1(b), !0); var b = a.getChild_1(a.getChildCountWithoutArrowContainer_0() - 1), d = b.getY_0(); 0 != a.getOpenCloseTime_0() && (d = -b.getHeight_0()); var e = new GT653(this.getGui_0().getTimer_0(), b, b.getX_0(), d, a.getOpenCloseTime_0(), !1); e.addFinishCallback_1(new GT569(this)); var f = null; 0 != a.getOpenCloseTime_0() && a.hasNavigationButtons_0() && (a.setNavigationArrowButtonsActive_1(!1), (f = a.getNavigationArrowsContainer_0()), (f = new GT653(this.getGui_0().getTimer_0(), f, b.getX_0(), d, a.getOpenCloseTime_0(), !1)), e.addStartCallback_1(new GT660(f))); e.start_0(); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE), b = instanceOf(a, GT999) && a.isHideContextMenuButtonIfBigPaytable_0(); a.destroy_0(); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT943.prototype.ID_CNTLOGO); if (null != a && a.isAlive_0()) for (var d = a.getChildCount_0(), e = 0; e < d; ++e) { var f = a.getChild_1(e); null != f && f.isAlive_0() && instanceOf(f, GT1559) && f.setActive_1(!0); } b && ((a = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_BUTTON_PAYTABLE)), null != a && a.isAlive_0() && 1 == GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("bigpaytable")) && ((b = 1135), null != a && a.isAlive_0() && instanceOf(a, GT1559) && ((b = a.getX_0()), a.setActive_1(!0), a.hide_1(!1)), (a = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE)), null != a && a.isAlive_0() && a.move_2(b, a.getY_0())), (b = this.getGui_0().getMainContainer_0().getParent_0().getParent_0().findDescendant_1(GT307.prototype.ACTION_CONTEXTMENU)), null != b && b.isAlive_0() && instanceOf(b, GT1559) && (b.setActive_1(!0), b.hide_1(!1))); }, toString: function () { return "GuiStatePaytableClosing (" + this.getId_0() + ")"; }, }, "GT475", [] ); GT475.prototype.ID = GT907.prototype.generateID_0(); var GT622 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT622.prototype.ID; }, getConsoleIdentifier_0: function () { return "PaytableNext"; }, enter_1: function (a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); 1 >= b.getChildCount_0() || (GT1650.prototype.assertExp_2(instanceOf(b, GT999), "Paytable is no GUIPaytable"), b.addPageChangeAnimationFinishCallback_1(new GT177(b, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), b.getPageIndex_0(), !1)), GT1560.prototype.isAlive_1(b) && (this.getGui_0().updatePaytableReelset_1(b), b.setBet_2(this.getSlotState_0().getBaseBet_0(), this.getSlotState_0().getBetMultiplier_0()), null != a && a.getId_0() == GT1354.prototype.PAYTABLE_PREVIOUS ? b.showPreviousPage_0() : b.showNextPage_0())); this.fireStateFinished_0(); }, toString: function () { return "GuiStatePaytableNext (" + this.getId_0() + ")"; }, }, "GT622", [] ); GT622.prototype.ID = GT907.prototype.generateID_0(); var GT617 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT617.prototype.ID; }, getConsoleIdentifier_0: function () { return "PaytableOpen"; }, enter_1: function (a) { this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); null != a && a.isAlive_0() && 0 != a.getChildCount_0() && (GT1650.prototype.assertExp_2(instanceOf(a, GT999), "Paytable is no GUIPaytable"), this.getGui_0().updatePaytableReelset_1(a), a.setNavigationArrowButtonsActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()), a.setBet_2(this.getSlotState_0().getBaseBet_0(), this.getSlotState_0().getBetMultiplier_0()), a.setGambleLimit_3(this.getSlotState_0().getGambleLimit_0(), this.getSlotState_0().getDefinition_0().getMaxGambleSteps_0(), 0 < this.getSlotState_0().getDefinition_0().getMaxGambleAbsoluteWin_0()), a.setMaximumRoundWin_1(this.getSlotState_0().getCasinoState_0().getMaximumRoundWin_0())); this.fireStateFinished_0(); }, onEnterUpdateConsole_1: function (a) { a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() ? this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? a.setState_1(GT725.prototype.PAYTABLE_ONLY) : a.setState_1(GT725.prototype.PAYTABLE_FREESPIN) : (0 == this.getSlotState_0().getCredits_0() ? a.setState_1(GT725.prototype.PAYTABLE_ZERO_CREDITS) : this.getSlotState_0().hasInsufficientTicketsToContinuePlaying_0() || this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? a.setState_1(GT725.prototype.PAYTABLE_MUST_CHANGE_BET) : a.setState_1(GT725.prototype.PAYTABLE), a.setHighlightStatusText_1(GT729.prototype.determineConsoleHighlightStatusText_1(this.getSlotState_0()))); this.getGui_0().updateConsole_0(); this.updateTheConsoleText_1(this.getGui_0()); }, notifySlotEvent_1: function (a) { (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); }, exit_0: function () { this.getGui_0().getSlotConsole_0().setHighlightStatusText_1(!1); }, toString: function () { return "GuiStatePaytableOpen (" + this.getId_0() + ")"; }, }, "GT617", [] ); GT617.prototype.updateTheConsoleText_1 = function (a) { var b = a.getSlotState_0(), d = a.getSlotConsole_0(); if (!b.getFreeSpinState_0().isFreeSpinsRunning_0() || b.getFreeSpinState_0().isAtLastFreeSpin_0()) d.setStatusText_1(a.getSkinManager_0().getText_1("${console_beforespintext}")); else { var e = ""; b.getFreeSpinState_0().isBeforeFirstFreeSpin_0() ? (e = a.getSkinManager_0().getText_1("${console_supergamestart}")) : ((e = a.getSkinManager_0().getText_1("${console_bonusgametext}")), (e = GT1677.prototype.replaceInString_3(e, "#0", "" + b.getFreeSpinState_0().getFreeSpinsPlayed_0())), (e = GT1677.prototype.replaceInString_3(e, "#1", "" + b.getFreeSpinState_0().getFreeSpinsWon_0()))); d.setFreeGames_2(b.getFreeSpinState_0().getFreeSpinsPlayed_0(), b.getFreeSpinState_0().getFreeSpinsWon_0()); d.setStatusText_1(e); } }; GT617.prototype.ID = GT907.prototype.generateID_0(); var GT477 = GT1254.extend( { initialConstructor_0: function () { this.mTimerCallbackToDisableConsole = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mTimerCallbackToDisableConsole = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT477.prototype.ID; }, getConsoleIdentifier_0: function () { return "PaytableOpening"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE_CONTAINER); a = this.getGui_0().getSkin_0().paytable_0().create_4(a, this.getGui_0().getSkinManager_0(), null, this.getFirstPageIndex_0()); if (0 == a.getChildCount_0()) this.fireStateFinished_0(); else { this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); GT1650.prototype.assertExp_2(instanceOf(a, GT999), "Paytable is no GUIPaytable"); this.mTimerCallbackToDisableConsole = new GT289(this); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.mTimerCallbackToDisableConsole, a.getDisableConsoleTime_0()); this.initPaytable_3(a, this.getGui_0(), this.getSlotState_0()); for (var b = 0; b < a.getChildCount_0(); b++) a.getChild_1(b).hide_1(!0); GT1650.prototype.assertExp_2(instanceOf(a.getChild_1(0), GT1437), "Paytable page is no GUIPaytablePage"); this.movePaytableIntoView_1(a); this.disableStarVegasLogoRelatedButtons_1(a); this.handleBigPaytableRelatedButtons_1(a); } }, onEnterUpdateConsole_1: function (a) { a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() ? this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? a.setState_1(GT725.prototype.PAYTABLE_ONLY) : a.setState_1(GT725.prototype.PAYTABLE_FREESPIN) : 0 == this.getSlotState_0().getCredits_0() ? a.setState_1(GT725.prototype.PAYTABLE_ZERO_CREDITS) : this.getSlotState_0().hasInsufficientTicketsToContinuePlaying_0() || this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? a.setState_1(GT725.prototype.PAYTABLE_MUST_CHANGE_BET) : a.setState_1(GT725.prototype.PAYTABLE); GT617.prototype.updateTheConsoleText_1(this.getGui_0()); }, getFirstPageIndex_0: function () { return 0; }, movePaytableIntoView_1: function (a) { null != a.getSoundOpen_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundOpen_0()); var b = a.showFirstPage_0(), d = b.getY_0(); 0 != a.getOpenCloseTime_0() && (b.move_2(b.getX_0(), -b.getHeight_0()), (d = Integer.truncate_1(Math.div(a.getHeight_0(), a.getContentScaleY_0())) - b.getHeight_0())); var e = new GT653(this.getGui_0().getTimer_0(), b, b.getX_0(), d, a.getOpenCloseTime_0(), !1), f = this.getGui_0().getSkin_0().paytable_0(); instanceOf(f, GT1100) && f.getChildrenCount_0() > a.getChildCount_0() ? e.addFinishCallback_1(new GT658(this.getGui_0().getTimer_0(), new GT357(this), 100)) : e.addFinishCallback_1(new GT658(this.getGui_0().getTimer_0(), new GT569(this), 100)); f = null; a.hasNavigationButtons_0() && (a.setNavigationArrowButtonsActive_1(!1), (f = a.getNavigationArrowsContainer_0()), f.move_2(b.getX_0(), -b.getHeight_0()), (f = new GT653(this.getGui_0().getTimer_0(), f, b.getX_0(), d, a.getOpenCloseTime_0(), !1))); a = new GT660(e); this.getGui_0().getTimer_0().triggerCallbackAfter_2(a, 1); null != f && ((a = new GT660(f)), this.getGui_0().getTimer_0().triggerCallbackAfter_2(a, 1)); }, disableStarVegasLogoRelatedButtons_1: function (a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT943.prototype.ID_CNTLOGO); if (null != b && b.isAlive_0() && b.getAbsoluteY_0() + Math.div(b.getHeight_0(), 2) < a.getAbsoluteY_0() + a.getHeight_0()) { a = b.getChildCount_0(); for (var d = 0; d < a; ++d) { var e = b.getChild_1(d); null != e && e.isAlive_0() && instanceOf(e, GT1559) && e.setActive_1(!1); } } }, handleBigPaytableRelatedButtons_1: function (a) { if (null != a && a.isAlive_0() && a.isHideContextMenuButtonIfBigPaytable_0()) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_BUTTON_PAYTABLE); if (null != b && b.isAlive_0() && 1 == GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("bigpaytable"))) { var d = (a = 0), e = this.getGui_0().getMainContainer_0().getParent_0().getParent_0().findDescendant_1(GT307.prototype.ACTION_CONTEXTMENU); null != e && e.isAlive_0() && instanceOf(e, GT1559) && (e.hide_1(!0), e.setActive_1(!1), (d = e.getAbsoluteX_0())); null != b && b.isAlive_0() && instanceOf(b, GT1559) && (a = b.getX_0() + d - b.getAbsoluteX_0()); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE); null != b && b.isAlive_0() && instanceOf(b, GT1559) && b.move_2(a, b.getY_0()); } } }, loadPage_0: function () { var a = this.getGui_0().getSkin_0(); if (null != a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE), d = a.paytable_0().getChildrenCount_0(), e = b.getChildCount_0(); if (e < d) { var f = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE_CONTAINER); b.hasNavigationButtons_0() ? (a.paytable_0().create_4(f, this.getGui_0().getSkinManager_0(), b, (this.getFirstPageIndex_0() + e - 1) % (d - 1)), (a = b.getChild_1(e - 2)), (e = b.getChild_1(e - 1)), a.reorder_1(!0), e.reorder_1(!0)) : (a.paytable_0().create_4(f, this.getGui_0().getSkinManager_0(), b, (this.getFirstPageIndex_0() + e) % d), b.getChild_1(e - 1).reorder_1(!0), b.getChild_1(e - 1).hide_1(!0)); } if (b.getChildCount_0() < d) this.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT357(this), 10); else { d = 0; this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && (d = this.getSlotState_0().getFreeSpinState_0().getNextSpinReelset_0()); b.setCurrentReelset_1(d + 1); b.removeAllPaytableEntries_1(b); b.resetGambleLimitText_0(); this.initPaytable_3(b, this.getGui_0(), this.getSlotState_0()); for (d = 0; d < b.getChildCount_0(); d++) b.getChild_1(d).hide_1(!0); b.showFirstPage_0(); this.getGui_0().updatePaytableIfAvailable_0(); b.updateJackpotFields_0(); this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT569(this)); } } }, exit_0: function () { null != this.mTimerCallbackToDisableConsole && this.getGui_0().getTimer_0().removeCallback_2(this.mTimerCallbackToDisableConsole, !1); this.mTimerCallbackToDisableConsole = null; var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); 0 < a.getChildCount_0() && (GT1650.prototype.assertExp_2(instanceOf(a, GT999), "Paytable is no GUIPaytable"), a.setNavigationArrowButtonsActive_1(this.getGui_0().getSlotState_0().getCasinoState_0().isActivePlayer_0())); GT1254.prototype.exit_0.call(this); }, toString: function () { return "GuiStatePaytableOpening (" + this.getId_0() + ")"; }, }, "GT477", [] ), GT357 = Class.extend( { initialConstructor_0: function () { this.mParentClass = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mParentClass = null; this.mParentClass = a; }, run_0: function () { this.mParentClass.loadPage_0(); }, }, "GT357", [Runnable] ), GT289 = Class.extend( { initialConstructor_0: function () { this.mParentClass = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mParentClass = null; this.mParentClass = a; }, run_0: function () { null != this.mParentClass && this.mParentClass.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); }, }, "GT289", [Runnable] ); GT477.prototype.initPaytable_3 = function (a, b, d) { var e = d.getDefinition_0(); a.setSlotEventManager_1(b.getSlotEventManager_0()); a.setCurrencyFormatter_1(b.getCurrencyFormatter_0()); b.updatePaytableReelset_1(a); var f = e.getPaytableEntries_0(), g = e.getBaseBets_0(), k = e.getBetMultipliers_0(); if (null != g && null != k) { for (var m = Integer.MAX_VALUE, n = 0; n < k.size_0(); n++) m = Math.min_2(m, k.get_1(n)); k = -1; for (n = 0; n < g.size_0(); n++) GT1570.prototype.doPaytableEntriesHaveCents_3(f, g.get_1(n), m) && (k = n); -1 == k || d.getForceIntegerWinsAndBets_0() ? a.setOmitCentThreshold_1(0) : k == g.size_0() - 1 ? a.setOmitCentThreshold_1(Integer.MAX_VALUE) : a.setOmitCentThreshold_1(g.get_1(k + 1)); } null != f && a.setPaytableEntries_1(f.toArray_0()); a.setJackpotContribution_2(e.isShowJackpotContribution_0() ? e.getJackpotContribution_0() : null, d.getCasinoState_0().getJackpotCalculator_0()); a.setJackpotExchangeRate_0(); a.setTheoreticalRTP_1(e.getTheoreticalRTP_0()); d.getCasinoState_0().isActivePlayer_0() && a.setMinTotalBet_1(e.getMinTotalBet_0()); a.setJackpotComplianceInfo_1(d.getCasinoState_0().getJackpotCalculator_0()); a.setActivePlayer_1(d.getCasinoState_0().isActivePlayer_0()); a.setGambleLimit_3(d.getGambleLimit_0(), e.getMaxGambleSteps_0(), 0 < e.getMaxGambleAbsoluteWin_0()); a.setMaximumRoundWin_1(d.getCasinoState_0().getMaximumRoundWin_0()); a.setJackpotCalculator_1(d.getCasinoState_0().getJackpotCalculator_0()); a.updateJackpotFields_0(); b.updatePaytableReelset_1(a); a.setBet_2(0, d.getBetMultiplier_0()); a.setBet_2(d.getBaseBet_0(), d.getBetMultiplier_0()); }; GT477.prototype.ID = GT907.prototype.generateID_0(); var GT572 = GT1254.extend( { initialConstructor_0: function () { this.callback = this.reelsTmp = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.callback = this.reelsTmp = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT572.prototype.ID; }, getConsoleIdentifier_0: function () { return "ReelsSpinning"; }, enter_1: function (a) { this.getSlotState_0().setSpinTriggeredWithAutoplay_1(this.getSlotState_0().isAutoPlaying_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); if (null != a) { var b = a.getPageIndex_0(); a.showFirstPage_0(); 0 != b && this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), b, !0)); } this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).hide_1(!0); a = this.getReels_0(); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!1); for (var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER), d = 0; d < b.getChildCount_0(); ++d) { var e = b.getChild_1(d); null != e && e.isAlive_0() && e.isHidden_0() && e.hide_1(!1); } this.callback = this.createDelayedFireStateFinishedCallback_1(this); a.addStartCallback_1(this.callback); a.setSilent_1(this.getGui_0().isInSilentMode_0()); this.onEnterStartReels_1(a); this.onEnterResetTotalRoundWin_0(); this.onEnterSetConsoleStatusText_1(this.getGui_0().getSlotConsole_0()); this.updateConsoleState_1(this.getGui_0().getSlotConsole_0()); }, onEnterStartReels_1: function (a) { a.start_0(); }, determineFreeSpinsText_1: function (a) { var b = GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() ? "${neon_console_bonusgametext}" : "${console_bonusgametext}", b = this.getGui_0().getSkinManager_0().getText_1(b), b = GT1677.prototype.replaceInString_3(b, "#0", "" + (a.getFreeSpinsPlayed_0() + 1)); return (b = GT1677.prototype.replaceInString_3(b, "#1", "" + a.getFreeSpinsWon_0())); }, onEnterSetConsoleStatusText_1: function (a) { a.setWin_2(0, !0); var b = this.getSlotState_0().getFreeSpinState_0(); b.isFreeSpinsRunning_0() && b.getFreeSpinsPlayed_0() < b.getFreeSpinsWon_0() ? (a.setFreeGames_2(b.getFreeSpinsPlayed_0() + 1, b.getFreeSpinsWon_0()), (b = this.determineFreeSpinsText_1(b)), a.setStatusText_1(b), GT514.prototype.setFreeSpinText_1(b)) : (a.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_whilespintext}")), GT514.prototype.setFreeSpinText_1(null)); }, updateConsoleState_1: function (a) { if (this.getSlotState_0().isAutoPlaying_0()) { var b = this.getSlotState_0().getFreeSpinState_0(); b.isForceAutoplayInFreeGames_0() && b.isFreeSpinsRunning_0() && !b.isAtLastFreeSpin_0() ? a.setConsoleForCurrentStateInActive_0() : 1e3 <= this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0() ? a.setState_1(GT725.prototype.AUTO_SPIN) : a.setState_1(GT725.prototype.AUTO_SPIN_STOP_SPIN); } else a.setState_1(GT725.prototype.FASTSTOP), 1e3 <= this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0() && a.setConsoleForCurrentStateInActive_0(); }, onEnterResetTotalRoundWin_0: function () { (this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0()) || this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(0); }, notifySlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); }, notifyReelsStarted_0: function () { this.fireStateFinished_0(); }, exit_0: function () { var a = this.getReels_0(); GT1650.prototype.assertExp_2(a.isAlive_0(), "Reels were destroyed while starting"); a.removeStartCallback_1(this.callback); this.callback = null; }, getReels_0: function () { (null != this.reelsTmp && this.reelsTmp.isAlive_0()) || (this.reelsTmp = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS)); return this.reelsTmp; }, toString: function () { return "GuiStateReelsSpinning (" + this.getId_0() + ")"; }, }, "GT572", [] ), GT144 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.notifyReelsStarted_0(); }, }, "GT144", [Runnable] ); GT572.prototype.createDelayedFireStateFinishedCallback_1 = function (a) { return new GT144(a); }; GT572.prototype.ID = GT907.prototype.generateID_0(); var GT575 = GT1254.extend( { initialConstructor_0: function () { this.callback = this.reelsTmp = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.callback = this.reelsTmp = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT575.prototype.ID; }, getConsoleIdentifier_0: function () { return "ReelsStopping"; }, enter_1: function (a) { this.getGui_0().triggerSymbolHighlightVideoLoading_1(this.getSlotState_0().getWins_0()); this.callback = this.createDelayedFireStateFinishedCallback_1(this); this.getReels_0().addFinishCallback_1(this.callback); this.stopReels_0(); this.getGui_0().getSlotConsole_0().setCredits_2(this.getSlotState_0().getCredits_0(), !0); this.getSlotState_0().isAutoplayMeter_0() && this.getSlotState_0().wasSpinTriggeredWithAutoplay_0() && (!this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() || this.getSlotState_0().getFreeSpinState_0().isBeforeFirstFreeSpin_0()) && this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAYMETER_DECREASE)); }, stopReels_0: function () { var a = 0; this.getSlotState_0().isPreviousRoundStartFailed_0() ? this.getReels_0().stopImmediately_2(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0()) : (a = this.getReels_0().stop_2(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0())); return a; }, triggerFireStateFinished_0: function () { this.fireStateFinished_0(); }, requestFinish_0: function () { this.getReels_0().stopImmediately_2(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0()); this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); }, exit_0: function () { var a = this.getReels_0(); GT1650.prototype.assertExp_2(a.isAlive_0(), "Reels were destroyed while stopping"); a.removeFinishCallback_1(this.callback); this.callback = null; a.hide_1(!0); for (var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER), b = 0; b < a.getChildCount_0(); ++b) null != a.getChild_1(b) && a.getChild_1(b).hide_1(!0); this.getGui_0().updateStoppedReels_0(); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).hide_1(!1); }, getReels_0: function () { (null != this.reelsTmp && this.reelsTmp.isAlive_0()) || (this.reelsTmp = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS)); return this.reelsTmp; }, toString: function () { return "GuiStateReelsStopping (" + this.getId_0() + ")"; }, }, "GT575", [] ), GT83 = Class.extend( { initialConstructor_0: function () { this.state = null; this.finished = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.finished = !1; this.state = a; this.finished = !1; }, run_0: function () { if (this.finished) this.state.triggerFireStateFinished_0(); else { var a = 0; 0 == this.state.getSlotState_0().getWins_0().length && this.state.getSlotState_0().isAutoPlaying_0() && (a = this.state.getGui_0().getSkin_0().autoSpinDelay_0()); var b; b = instanceOf(this.state, GT575) ? this.state.getReels_0() : this.state.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS); var d = this.state.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0(); b = this.state.getGui_0().getTimer_0().currentTimeMillis_0() - b.getStartTime_0(); d -= b; d > a && (a = d); 0 < a ? instanceOf(this.state, GT575) ? ((this.finished = !0), this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(this, a)) : this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT569(this.state), a) : instanceOf(this.state, GT575) ? ((this.finished = !0), this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(this, 1)) : this.state.fireStateFinished_0(); } }, }, "GT83", [Runnable] ); GT575.prototype.createDelayedFireStateFinishedCallback_1 = function (a) { return new GT83(a); }; GT575.prototype.ID = GT907.prototype.generateID_0(); var GT217 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT217.prototype.ID; }, getConsoleIdentifier_0: function () { return "SpecialWinVisualization"; }, enter_1: function (a) { this.fireStateFinished_0(); }, toString: function () { return "GuiStateSpecialWinVisualization (" + this.getId_0() + ")"; }, }, "GT217", [] ); GT217.prototype.ID = GT907.prototype.generateID_0(); var GT115 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT115.prototype.ID; }, getConsoleIdentifier_0: function () { return "SpecialWinVisualizationClosing"; }, enter_1: function (a) { this.getGui_0().getSlotConsole_0().setActive_1(!1); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_2(this.getGui_0().getSlotState_0().getWinSum_1(!0), !0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SPECIALWINVISUALIZATION); if (GT1560.prototype.isAlive_1(a)) { var b = -a.getY_0() - a.getHeight_0(); a = new GT653(this.getGui_0().getTimer_0(), a, a.getX_0(), b, 500, !1); a.addFinishCallback_1(new GT569(this)); a.start_0(); } else this.fireStateFinished_0(); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SPECIALWINVISUALIZATION); GT1560.prototype.destroyIfAlive_1(a); this.getGui_0().getSlotConsole_0().setActive_1(this.getGui_0().getSlotState_0().getCasinoState_0().isActivePlayer_0()); }, toString: function () { return "GuiStateSpecialWinVisualizationClosing (" + this.getId_0() + ")"; }, }, "GT115", [] ); GT115.prototype.ID = GT907.prototype.generateID_0(); var GT114 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT114.prototype.ID; }, getConsoleIdentifier_0: function () { return "SpecialWinVisualizationOpening"; }, enter_1: function (a) { this.fireStateFinished_0(); }, toString: function () { return "GuiStateSpecialWinVisualizationOpening (" + this.getId_0() + ")"; }, }, "GT114", [] ); GT114.prototype.ID = GT907.prototype.generateID_0(); var GT424 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT424.prototype.ID; }, getConsoleIdentifier_0: function () { return "SuperGameClosing"; }, enter_1: function (a) { this.getGui_0().updateConsole_0(); this.getGui_0().getSlotConsole_0().setActive_1(!1); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setStatusText_3(null, null, !0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); GT1650.prototype.assertExp_2(instanceOf(a, GT440), "GUI container is no superGame screen"); this.moveSuperGameScreenOutOfView_1(a); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_3(0, !0, null); }, moveSuperGameScreenOutOfView_1: function (a) { null != a.getSoundClose_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundClose_0()); var b = -a.getHeight_0(); a = new GT653(this.getGui_0().getTimer_0(), a, a.getX_0(), b, a.getDurationOpenClose_0(), !1); a.addFinishCallback_1(new GT569(this)); a.start_0(); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); GT1560.prototype.destroyIfAlive_1(a); this.getGui_0().getSlotConsole_0().setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); }, toString: function () { return "GuiStateSuperGameClosing (" + this.getId_0() + ")"; }, }, "GT424", [] ); GT424.prototype.ID = GT907.prototype.generateID_0(); var GT576 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT576.prototype.ID; }, getConsoleIdentifier_0: function () { return "SuperGameOpen"; }, enter_1: function (a) { this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().updateConsole_0(); a = this.getGui_0().getSlotConsole_0(); this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && a.setHighlightBackgroundStatusText_1(!0); a.setState_1(GT725.prototype.SUPERGAME); a.setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); a.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_supergamestart}")); var b = this.getSlotState_0().getSuperGameState_0(); a.setSuperGames_4(b.getBalance_0(), b.getLabel_0(), b.getColor_0(), !0); a.setWin_2(0, !0); var d = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); null == d && ((d = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME_CONTAINER)), GT1650.prototype.assertExp_2(null != this.getGui_0().getSkin_0().superGame_0(), "No supergame gui defined. Implement superGame() in your slot skin."), (d = this.getGui_0().getSkin_0().superGame_0().create_2(d, this.getGui_0().getSkinManager_0()).findDescendant_1(GT1618.prototype.SUPERGAME))); GT1650.prototype.assertExp_2(instanceOf(d, GT440), "GUI container is no supergame screen"); d.setActivePlayer_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); d.setInReplayMode_1(this.getSlotState_0().getCasinoState_0().isInReplayMode_0()); d.setSuperGamesState_1(b); d.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); d.setBetPerLine_1(this.getSlotState_0().getBaseBet_0()); d.setInSilentMode_1(this.getGui_0().isInSilentMode_0()); d.setConsole_1(a); d.setTurbo_1(!1); d.buildScreen_1(!0); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_3(0, !0, null); }, notifySilentMode_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); null != a && a.isAlive_0() && a.setInSilentMode_1(this.getGui_0().isInSilentMode_0()); }, toString: function () { return "GuiStateSuperGameOpen (" + this.getId_0() + ")"; }, }, "GT576", [] ); GT576.prototype.ID = GT907.prototype.generateID_0(); var GT425 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT425.prototype.ID; }, getConsoleIdentifier_0: function () { return "SuperGameOpening"; }, enter_1: function (a) { this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().updateConsole_0(); this.getGui_0().getSlotConsole_0().setActive_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME_CONTAINER); GT1650.prototype.assertExp_2(null != this.getGui_0().getSkin_0().superGame_0(), "No supergame gui defined. Implement superGame() in your slot skin."); a = this.getGui_0().getSkin_0().superGame_0().create_2(a, this.getGui_0().getSkinManager_0()).findDescendant_1(GT1618.prototype.SUPERGAME); GT1650.prototype.assertExp_2(instanceOf(a, GT440), "GUI container is no supergame screen"); a.setSuperGamesState_1(this.getGui_0().getSlotState_0().getSuperGameState_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); a.setBetPerLine_1(this.getSlotState_0().getBaseBet_0()); a.setAutoPlaying_1(this.getSlotState_0().isAutoPlaying_0()); a.setInSilentMode_1(this.getGui_0().isInSilentMode_0()); a.setConsole_1(this.getGui_0().getSlotConsole_0()); a.buildScreen_1(!1); this.moveSuperGameScreenIntoView_1(a); }, moveSuperGameScreenIntoView_1: function (a) { null != a.getSoundOpen_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundOpen_0()); var b = a.getY_0(); a.move_2(a.getX_0(), -a.getHeight_0() - b); a = new GT653(this.getGui_0().getTimer_0(), a, a.getX_0(), b, a.getDurationOpenClose_0(), !1); a.addFinishCallback_1(new GT569(this)); a.start_0(); }, exit_0: function () { this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); }, toString: function () { return "GuiStateSuperGameOpening (" + this.getId_0() + ")"; }, }, "GT425", [] ); GT425.prototype.ID = GT907.prototype.generateID_0(); var GT238 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT238.prototype.ID; }, getConsoleIdentifier_0: function () { return "SuperGameWheelSpinning"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); GT1650.prototype.assertExp_2(instanceOf(a, GT440), "gui container is no supergame screen"); var b = this.getSlotState_0().getSuperGameState_0(); this.getGui_0().updateConsole_0(); var d = this.getGui_0().getSlotConsole_0(); this.getSlotState_0().isAutoPlaying_0() ? d.setState_1(GT725.prototype.AUTO_SPIN_STOP_SPIN) : d.setState_1(GT725.prototype.FASTSTOP); d.setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); d.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_whilespintext}")); d.setWin_2(0, !0); b.hasActionGames_0() && d.setCredits_2(this.getSlotState_0().getCredits_0() - GT1677.prototype.division_2(b.getPrice_0(), 100), !0); d.setSuperGames_4(b.getBalance_0() - 1, b.getLabel_0(), b.getColor_0(), !0); a.setActivePlayer_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); a.setInReplayMode_1(this.getSlotState_0().getCasinoState_0().isInReplayMode_0()); a.setSuperGamesState_1(b); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); a.setAutoPlaying_1(this.getSlotState_0().isAutoPlaying_0()); a.setTurbo_1(!1); a.startFastRunning_0(); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_3(0, !0, null); this.fireStateFinished_0(); }, notifySlotEvent_1: function (a) { if ((null != a && a.getId_0() == GT1354.prototype.STARTSPIN) || a.getId_0() == GT1354.prototype.COLLECT) (a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME)), null != a && a.isAlive_0() && a.setTurbo_1(!0); this.getGui_0().getSlotConsole_0().accelerateSuperGameCounters_0(); }, notifySilentMode_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); null != a && a.isAlive_0() && a.setInSilentMode_1(this.getGui_0().isInSilentMode_0()); }, toString: function () { return "GuiStateSuperGameWheelSpinning (" + this.getId_0() + ")"; }, }, "GT238", [] ); GT238.prototype.ID = GT907.prototype.generateID_0(); var GT239 = GT1254.extend( { initialConstructor_0: function () { this.handler = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT239.prototype.ID; }, getConsoleIdentifier_0: function () { return "SuperGameWheelStopping"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); GT1650.prototype.assertExp_2(instanceOf(a, GT440), "gui container is no supergame screen"); a.setSuperGamesState_1(this.getSlotState_0().getSuperGameState_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); this.handler = new GT135(this); a.addSuperGameListener_1(this.handler); a.setTargetPosition_0(); a.setCredits_1(this.getSlotState_0().getCredits_0()); a.setAutoPlaying_1(this.getSlotState_0().isAutoPlaying_0()); }, exit_0: function () { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME).removeSuperGameListener_1(this.handler); this.handler = null; this.getGui_0().getSlotConsole_0().setCredits_2(this.getGui_0().getSlotState_0().getCredits_0(), !1); }, notifySlotEvent_1: function (a) { null == a || (a.getId_0() != GT1354.prototype.STARTSPIN && a.getId_0() != GT1354.prototype.COLLECT) || ((a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME)), null != a && a.isAlive_0() && (a.setTurbo_1(!0), this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0())); this.getGui_0().getSlotConsole_0().accelerateSuperGameCounters_0(); }, notifySilentMode_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.SUPERGAME); null != a && a.isAlive_0() && a.setInSilentMode_1(this.getGui_0().isInSilentMode_0()); }, toString: function () { return "GuiStateSuperGameWheelStopping (" + this.getId_0() + ")"; }, }, "GT239", [] ), GT135 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, targetPositionReached_0: function () { this.state.fireStateFinished_0(); }, }, "GT135", [GT265] ); GT239.prototype.ID = GT907.prototype.generateID_0(); var GT778 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT778.prototype.ID; }, enter_1: function (a) {}, toString: function () { return "GuiStateUndefined (" + this.getId_0() + ")"; }, }, "GT778", [] ); GT778.prototype.ID = GT907.prototype.generateID_0(); var GT568 = GT1254.extend( { initialConstructor_0: function () { this.winSwitcherFinishCallback = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.winSwitcherFinishCallback = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT568.prototype.ID; }, getConsoleIdentifier_0: function () { return "WinAnimations"; }, enter_1: function (a) { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES).hide_1(!1); this.handleReducingBackgroundSoundVolume_0(); this.winSwitcherFinishCallback = new GT328(this); this.getGui_0().getWinSwitcher_0().addFinishCallback_1(this.winSwitcherFinishCallback); this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); this.handleStartWinSwitcherOnEnter_0(); }, handleStartWinSwitcherOnEnter_0: function () { this.getGui_0().getWinSwitcher_0().isRunning_0() || this.getGui_0().startWinSwitcher_1(!1); }, onEnterUpdateConsole_1: function (a) { this.getGui_0().getSlotConsole_0().setStatusText_1(""); this.getGui_0().getSlotConsole_0().setWin_2(0, !0); null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_2(0, !0); var b = this.getSlotState_0().getFreeSpinState_0(); b.isForceAutoplayInFreeGames_0() && b.isFreeSpinsRunning_0() ? b.isBeforeFirstFreeSpin_0() ? a.setState_1(GT725.prototype.FASTCOLLECT) : a.setConsoleForCurrentStateInActive_0() : a.setState_1(this.determineConsoleState_1(this.getGui_0())); this.getSlotState_0().isAutoplayMeter_0() && (this.getSlotState_0().getCredits_0() < this.getSlotState_0().getAutoplayMeter_0() && this.getSlotState_0().setAutoplayMeter_1(this.getSlotState_0().getCredits_0()), a.setAutoplayMeter_2(this.getSlotState_0().getAutoplayMeter_0(), this.getSlotState_0().isAutoPlaying_0())); }, handleReducingBackgroundSoundVolume_0: function () { var a = this.getGui_0().getFreeGameSounds_0(); if (a.hasDynamicBackgroundSoundVolume_0()) { for (var b = -1, d = this.getSlotState_0().getWins_0(), e = 0; e < d.length; e++) { var f = this.getGui_0().determineWinSound_1(d[e]); if (null != f) if (((f = a.getDynamicBackgroundSoundVolume_1(f)), 0 > f)) { b = -1; break; } else { if (-1 == b || f < b) b = f; } else { b = -1; break; } } 0 >= b ? a.reduceBackgroundSoundVolume_1(!0) : 100 > b && a.reduceBackgroundSoundVolume_2(!0, b); } else a.reduceBackgroundSoundVolume_1(!0); this.getGui_0().getBaseGameMelodies_0().reduceVolume_1(!0); }, notifyWinSwitcherFinished_0: function () { this.fireStateFinished_0(); }, requestFinish_0: function () { this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.winSwitcherFinishCallback); this.getGui_0().getWinSwitcher_0().stopFirstRun_0(); this.fireStateFinished_0(); }, onExitHandleBackgroundSoundVolume_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!1); }, exit_0: function () { this.getGui_0().getSlotConsole_0().setWin_2(this.getGui_0().getSlotState_0().getWinSum_1(!0), !0); var a = this.getGui_0().getSlotState_0().getSuperGameState_0(), b = this.getGui_0().getSlotState_0().getSuperGamesSum_1(!0); this.getGui_0().getSlotConsole_0().setWinSuperGames_3(b, a.getLabel_0(), !0); this.getGui_0().getWinSwitcher_0().removeFinishCallback_1(this.winSwitcherFinishCallback); this.winSwitcherFinishCallback = null; this.onExitHandleBackgroundSoundVolume_0(); }, toString: function () { return "GuiStateWinAnimations (" + this.getId_0() + ")"; }, }, "GT568", [] ), GT328 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.notifyWinSwitcherFinished_0(); }, }, "GT328", [Runnable] ); GT568.prototype.determineConsoleState_1 = function (a) { return a.getSlotState_0().isAutoPlaying_0() ? GT725.prototype.AUTO_SPIN_SKIP_WIN : a.getSlotState_0().isFastSpinEnabled_0() ? GT725.prototype.FASTSPIN : a.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && a.getSlotState_0().getServerState_0() != GT1649.prototype.SERVERSTATE_WINVISUALIZATION ? GT725.prototype.FASTCOLLECTORGAMBLE : GT725.prototype.FASTCOLLECT; }; GT568.prototype.ID = GT907.prototype.generateID_0(); var GT1043 = Class.extend( { initialConstructor_0: function () { this.slotState = this.player = this.console = null; this.hideAPCounter = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.slotState = this.player = this.console = null; this.hideAPCounter = !1; this.console = a; this.player = b.getSoundPlayer_0(); this.slotState = d; this.hideAPCounter = b.hasSkinId_1("skyvegas") && "1".equals_1(b.getParameter_1("ukgc.autoplayfeature.enabled")); }, stopAllAutoPlayRelatedSounds_0: function () { null != this.console && null != this.player && (null != this.console.getSoundForAutoPlayStart_0() && this.player.stop_1(this.console.getSoundForAutoPlayStart_0()), null != this.console.getSoundForAutoPlayStop_0() && this.player.stop_1(this.console.getSoundForAutoPlayStop_0()), null != this.console.getSoundForAutoPlayForcedStop_0() && this.player.stop_1(this.console.getSoundForAutoPlayForcedStop_0()), null != this.console.getSoundForAutoPlayStopAtFeatureScreen_0() && this.player.stop_1(this.console.getSoundForAutoPlayStopAtFeatureScreen_0())); }, hideAutoplayCounter_1: function (a) { var b = this.console.findDescendant_1(GT834.prototype.ID_FIELD_AUTOPLAYS); GT1560.prototype.isAlive_1(b) && b.hide_1(a); }, newSlotEvent_1: function (a) { if (a.getId_0() == GT1354.prototype.AUTOPLAY_COUNT && (this.slotState.isAutoPlaying_0() || !this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0())) { var b = a.getNumberOfPlays_0(); this.console.setAutoplayCounter_1(b); } if (null != this.player) if (a.getId_0() == GT1354.prototype.AUTOSTOP_DONE) { this.stopAllAutoPlayRelatedSounds_0(); var d = (b = !1), e = !1, f = !1; instanceOf(a, GT739) && ((b = a.isDefaultStopSound_0()), (d = a.isSilent_0()), (e = a.isStopSoundForced_0()), (f = a.isStopSoundFeatureScreen_0())); b && null != this.console.getSoundForAutoPlayStop_0() ? this.player.start_1(this.console.getSoundForAutoPlayStop_0()) : d || (e && null != this.console.getSoundForAutoPlayForcedStop_0() ? this.player.start_1(this.console.getSoundForAutoPlayForcedStop_0()) : f && null != this.console.getSoundForAutoPlayStopAtFeatureScreen_0() ? this.player.start_1(this.console.getSoundForAutoPlayStopAtFeatureScreen_0()) : instanceOf(a, GT739) && GT1043.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Attempting to apply unsupported auto stop mode: " + a.getState_0())); this.hideAPCounter && this.hideAutoplayCounter_1(!0); } else a.getId_0() == GT1354.prototype.AUTOPLAY_DONE && (this.stopAllAutoPlayRelatedSounds_0(), (d = b = !1), instanceOf(a, GT738) && ((b = a.isDefaultStartSound_0()), (d = a.isSilent_0())), b && null != this.console.getSoundForAutoPlayStart_0() ? this.player.start_1(this.console.getSoundForAutoPlayStart_0()) : d || (instanceOf(a, GT738) && GT1043.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Attempting to apply unsupported auto play mode: " + a.getState_0())), this.hideAPCounter && this.hideAutoplayCounter_1(!1)); a.getId_0() == GT1354.prototype.AUTOSTOP_DONE && this.console.setConsoleForCurrentStateInActive_0(); a.getId_0() == GT1354.prototype.NOTIFY_SESSIONTICKETS_UPDATED && this.console.setCredits_2(this.slotState.getCredits_0(), !0); a.getId_0() == GT1354.prototype.PLAYER_ATTRIBUTES_CHANGED && this.console.setBalance_1(this.slotState.getCasinoState_0().getTickets_0()); a.getId_0() == GT1354.prototype.PLAYLINES_UPDATED && this.console.setPossibleLineNumbers_2(this.slotState.getDefinition_0().getPlayLines_0().toArray_0(), this.slotState.getNumberOfLines_0()); if (a.getId_0() == GT1354.prototype.IGNORE_OVERRIDE_MAXBET || a.getId_0() == GT1354.prototype.IGNORE_OVERRIDE_MINBET) this.console.setBetMultiplier_1(this.slotState.getBetMultiplier_0()), this.console.setPossibleBetPerLine_2(this.slotState.getBaseBets_0(), this.slotState.getBaseBet_0()); }, }, "GT1043", [GT922] ); GT1043.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT1149 = Class.extend( { initialConstructor_0: function () { this.melodies = this.random = this.soundPlayer = null; this.useReducedVolume = this.silent = !1; this.reducedVolumePercentage = this.playingId = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.melodies = this.random = this.soundPlayer = null; this.useReducedVolume = this.silent = !1; this.reducedVolumePercentage = this.playingId = 0; this.soundPlayer = a.getSoundPlayer_0(); this.random = new GT1561(a.getTimer_0().currentTimeMillis_0()); GT1650.prototype.assertExp_2(null != this.soundPlayer, "[MelodyHandler] The sound player that's retrieved through the skin manager provided in the constructor mustn't be null!"); this.melodies = new java_util_JavaScriptVector(); this.useReducedVolume = this.silent = !1; this.playingId = -1; this.reducedVolumePercentage = 100; }, setSilent_1: function (a) { if (this.silent != a) { this.silent = a; var b = this.getMelody_1(this.playingId); null != b && (a ? b.applyVolume_1(0) : this.useReducedVolume ? b.applyVolume_1(this.reducedVolumePercentage) : b.applyVolume_1(b.getRegularVolume_0())); } }, isSilent_0: function () { return this.silent; }, isVolumeReduced_0: function () { return this.useReducedVolume; }, getMelody_1: function (a) { for (var b = 0; b < this.melodies.size_0(); ++b) { var d = this.melodies.get_1(b); if (d.hasIdentifier_1(a)) return d; } return null; }, updateVolume_0: function () { var a = this.getMelody_1(this.playingId); if (null != a) { var b = this.isSilent_0() ? 0 : this.useReducedVolume ? this.reducedVolumePercentage : a.getRegularVolume_0(); !this.isSilent_0() && this.reducedVolumePercentage > a.getRegularVolume_0() && (b = a.getRegularVolume_0()); a.applyVolume_1(b); } }, reduceVolume_1: function (a) { this.useReducedVolume = a; this.updateVolume_0(); }, setReducedVolume_2: function (a, b) { this.reducedVolumePercentage = GT1357.prototype.determineValidVolumePercentage_1(a); b && this.reduceVolume_1(!0); }, hasMelodyWith_1: function (a) { return null != this.getMelody_1(a); }, setMelody_7: function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(null != b, "Given sound in addMelody(int, Sound, double, double, double, int, int) is null!"); GT1650.prototype.assertExp_2(-1 != a, "Given identifier in addMelody(int, Sound, double, double, double, int, int) mustn't be -1!"); null != b && -1 != a && (this.removeMelodyWith_1(a) && GT1149.prototype.LOG.verbose && GT1149.prototype.LOG.log_1("[MelodyHandler] The given sound with identifier " + a + " has been added, replacing the old sound that had the same identifier."), this.melodies.add_1(new GT1518(this.soundPlayer, b, d, e, f, g, k, a))); }, setMelody_6: function (a, b, d, e, f, g) { this.setMelody_7(a, b, d, e, f, g, 0); }, setMelody_5: function (a, b, d, e, f) { this.setMelody_6(a, b, d, e, f, 100); }, setMelody_4: function (a, b, d, e) { this.setMelody_5(a, b, d, e, d); }, setMelody_2: function (a, b) { this.setMelody_4(a, b, 0, 0); }, removeMelodyWith_1: function (a) { for (var b = 0; b < this.melodies.size_0(); ++b) if (this.melodies.get_1(b).hasIdentifier_1(a)) return this.isPlaying_1(a) && this.stop_0(), this.melodies.removeElementAt_1(b), !0; return !1; }, start_1: function (a) { if (a != this.playingId) { var b = this.getMelody_1(a), d = this.getMelody_1(this.playingId); null != b && (this.silent ? b.start_1(0) : this.useReducedVolume ? b.start_1(this.reducedVolumePercentage) : b.start_0()); null != d && d.stop_0(); this.playingId = a; } }, start_0: function () { var a = this.melodies.size_0(); if (0 != a && (1 != a || -1 == this.playingId)) { var b = this.random.nextInt_1(a); if (2 <= a) for (; b == this.playingId; ) b = this.random.nextInt_1(a); null != this.melodies.elementAt_1(b) && instanceOf(this.melodies.elementAt_1(b), GT1518) ? ((a = this.melodies.elementAt_1(b)), this.start_1(a.getIdentifier_0())) : GT1149.prototype.LOG.verbose && GT1149.prototype.LOG.log_1("[MelodyHandler] The randomly determined melody at index " + b + " (size of Vector is: " + a + ") can't be played!"); } }, stop_1: function (a) { var b = this.getMelody_1(this.playingId); null != b && (b.stop_1(0 <= a ? a : 0), (this.playingId = -1)); }, stop_0: function () { var a = this.getMelody_1(this.playingId); null != a && (a.stop_0(), (this.playingId = -1)); }, isPlaying_0: function () { return -1 != this.playingId; }, isPlaying_1: function (a) { return this.isPlaying_0() && null != this.getMelody_1(a) && a == this.playingId; }, }, "GT1149", [] ), GT1518 = GT1357.extend( { initialConstructor_0: function () { this.restartPosition = 0; GT1357.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.restartPosition = 0; GT1357.prototype.initialConstructor_7.call(this, a, b, d, e, g, k, m); this.restartPosition = f; }, getRegularVolume_0: function () { return this.volumePercentage; }, applyVolume_1: function (a) { null != this.soundPlayer && null != this.sound && this.soundPlayer.setVolume_2(this.sound, a); }, start_1: function (a) { null != this.soundPlayer && null != this.sound && this.soundPlayer.startLooped_6(this.sound, this.startPosition, this.endPosition, this.restartPosition, a, 0); }, start_0: function () { this.start_1(this.volumePercentage); }, }, "GT1518", [] ); GT1149.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT1205 = Class.extend( { initialConstructor_0: function () { this.loopedSounds = this.sounds = this.soundPlayer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.loopedSounds = this.sounds = this.soundPlayer = null; this.soundPlayer = a; GT1650.prototype.assertExp_2(null != a, "[SoundHandler] The sound player that's provided in the constructor mustn't be null!"); this.sounds = new java_util_JavaScriptVector(); this.loopedSounds = new java_util_JavaScriptVector(); }, getSound_1: function (a) { for (var b = 0; b < this.sounds.size_0(); ++b) { var d = this.sounds.get_1(b); if (d.hasIdentifier_1(a)) return d; } for (b = 0; b < this.loopedSounds.size_0(); ++b) if (((d = this.loopedSounds.get_1(b)), d.hasIdentifier_1(a))) return d; return null; }, getSoundLength_1: function (a) { return null != this.getSound_1(a) ? this.getSound_1(a).getSound_0().getLength_0() : 0; }, hasSoundWith_1: function (a) { return null != this.getSound_1(a); }, setSound_7: function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(null != b, "Given sound in addSound(int, Sound, Runnable, double, double, int, int) is null!"); null != b && (this.removeSoundWith_1(a) && GT1205.prototype.LOG.verbose && GT1205.prototype.LOG.log_1("[SoundHandler] The given sound with identifier " + a + " has been added, replacing the old sound that had the same identifier"), this.sounds.add_1(new GT1171(this.soundPlayer, b, d, e, f, g, k, a))); }, setSound_6: function (a, b, d, e, f, g) { this.setSound_7(a, b, d, e, f, g, 0); }, setSound_5: function (a, b, d, e, f) { this.setSound_6(a, b, d, e, f, 100); }, setSound_3: function (a, b, d) { this.setSound_5(a, b, d, 0, null != b ? b.getLength_0() : 0); }, setSound_2: function (a, b) { this.setSound_5(a, b, null, 0, 0); }, setLoopedSound_7: function (a, b, d, e, f, g, k) { GT1650.prototype.assertExp_2(null != b, "Given sound in setLoopedSound(int, Sound, double, double, double, int, int) is null!"); null != b && (this.removeSoundWith_1(a) && GT1205.prototype.LOG.verbose && GT1205.prototype.LOG.log_1("[SoundHandler] The given looped sound with identifier " + a + " has been added, replacing the old sound that had the same identifier."), this.loopedSounds.add_1(new GT1058(this.soundPlayer, b, d, e, f, g, k, a))); }, setLoopedSound_6: function (a, b, d, e, f, g) { this.setLoopedSound_7(a, b, d, e, f, g, 0); }, setLoopedSound_5: function (a, b, d, e, f) { this.setLoopedSound_6(a, b, d, e, f, 100); }, setLoopedSound_4: function (a, b, d, e) { this.setLoopedSound_5(a, b, d, e, d); }, setLoopedSound_2: function (a, b) { this.setLoopedSound_4(a, b, 0, 0); }, removeSoundWith_1: function (a) { for (var b = !1, d = 0; d < this.sounds.size_0(); ++d) { var e = this.sounds.get_1(d); if (e.hasIdentifier_1(a)) { this.stop_1(a); this.sounds.removeElementAt_1(d); b = !0; break; } } for (d = 0; d < this.loopedSounds.size_0(); ++d) if (((e = this.loopedSounds.get_1(d)), e.hasIdentifier_1(a))) return this.stop_1(a), this.loopedSounds.removeElementAt_1(d), !0; return b; }, replaceFinishCallbackFor_2: function (a, b) { var d = this.getSound_1(a); null != d && instanceOf(d, GT1171) && d.replaceFinishCallback_1(b); }, start_2: function (a, b) { var d = this.getSound_1(a); null != d && instanceOf(d, GT1171) ? d.start_1(b) : null != b && b.run_0(); }, start_1: function (a) { a = this.getSound_1(a); null != a && instanceOf(a, GT1171) && a.start_0(); }, startLooped_1: function (a) { a = this.getSound_1(a); null != a && instanceOf(a, GT1058) && (a.isPlaying_0() || a.startLooped_0()); }, stop_2: function (a, b) { var d = this.getSound_1(a); null != d && d.stop_1(0 <= b ? b : 0); }, stop_1: function (a) { a = this.getSound_1(a); null != a && a.stop_0(); }, }, "GT1205", [] ), GT1171 = GT1357.extend( { initialConstructor_0: function () { this.finishCallback = null; GT1357.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.finishCallback = null; GT1357.prototype.initialConstructor_7.call(this, a, b, e, f, g, k, m); this.replaceFinishCallback_1(d); }, replaceFinishCallback_1: function (a) { this.finishCallback = a; }, start_1: function (a) { null != this.soundPlayer && null != this.sound && this.soundPlayer.start_6(this.sound, a, this.startPosition, this.endPosition, this.volumePercentage, 0); }, start_0: function () { this.start_1(this.finishCallback); }, }, "GT1171", [] ), GT1058 = GT1357.extend( { initialConstructor_0: function () { this.restartPosition = 0; this.playing = !1; GT1357.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.restartPosition = 0; this.playing = !1; GT1357.prototype.initialConstructor_7.call(this, a, b, d, e, g, k, m); this.restartPosition = f; this.playing = !1; }, isPlaying_0: function () { return this.playing; }, startLooped_0: function () { null != this.soundPlayer && null != this.sound && (this.soundPlayer.startLooped_6(this.sound, this.startPosition, this.endPosition, this.restartPosition, this.volumePercentage, 0), (this.playing = !0)); }, stop_1: function (a) { GT1357.prototype.stop_1.call(this, a); this.playing = !1; }, stop_0: function () { GT1357.prototype.stop_0.call(this); this.playing = !1; }, }, "GT1058", [] ); GT1205.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT940 = GT732.extend( { initialConstructor_0: function () { this.winVisualContainer = null; this.fadeInterval = this.delayTime = this.visibleTime = this.fadeOutTime = this.fadeInTime = 0; this.fadeStarter = this.fadeOutroAnimator = this.fadeIntroAnimator = this.visibleDelayAnimator = this.initialDelayAnimator = null; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.winVisualContainer = null; this.fadeInterval = this.delayTime = this.visibleTime = this.fadeOutTime = this.fadeInTime = 0; this.fadeStarter = this.fadeOutroAnimator = this.fadeIntroAnimator = this.visibleDelayAnimator = this.initialDelayAnimator = null; GT732.prototype.initialConstructor_4.call(this, a, f + b + e + d, k, n); this.winVisualContainer = m; this.fadeInTime = b; this.fadeOutTime = d; this.visibleTime = e; this.delayTime = f; this.fadeInterval = g; }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.winVisualContainer = null; this.fadeInterval = this.delayTime = this.visibleTime = this.fadeOutTime = this.fadeInTime = 0; this.fadeStarter = this.fadeOutroAnimator = this.fadeIntroAnimator = this.visibleDelayAnimator = this.initialDelayAnimator = null; GT732.prototype.initialConstructor_6.call(this, a, b, e, f, n + g + m + k, q); this.winVisualContainer = d; this.fadeInTime = g; this.fadeOutTime = k; this.visibleTime = m; this.delayTime = n; this.fadeInterval = p; }, getWinVisualContainer_0: function () { return this.winVisualContainer; }, start_2: function (a, b) { GT732.prototype.start_2.call(this, a, b); var d = this.winVisualContainer.findDescendant_1(GT940.prototype.WIN_VALUE_FIELD); null != d && d.isAlive_0() && instanceOf(d, GT1584) && d.setText_1(this.getFormattedWinLabelText_1(a.payCash)); if (instanceOf(this.winVisualContainer, GT1480)) { this.winVisualContainer.setAlpha_1(0); var d = [ [this.fadeInTime, 0, 255], [0, 255, 255], [0, 255, 255], ], e = [ [0, 255, 255], [0, 255, 255], [this.fadeOutTime, 255, 0], ]; this.initialDelayAnimator = new GT1129(this.getTimer_0(), this.delayTime, !1); this.fadeIntroAnimator = new GT1191(this.getTimer_0(), this.winVisualContainer, !1, d); this.visibleDelayAnimator = new GT1129(this.getTimer_0(), this.visibleTime, !1); this.fadeOutroAnimator = new GT1191(this.getTimer_0(), this.winVisualContainer, !1, e); this.initialDelayAnimator.addFinishCallback_1(new GT660(this.fadeIntroAnimator)); this.fadeIntroAnimator.addFinishCallback_1(new GT660(this.visibleDelayAnimator)); this.visibleDelayAnimator.addFinishCallback_1(new GT358(this)); } d = this.winVisualContainer.findDescendant_1(GT940.prototype.FADING_OBJECTS); null != d && d.isAlive_0() && instanceOf(d, GT1480) && (d.hide_1(!0), (e = Math.div(this.visibleTime, this.fadeInterval)), (this.fadeStarter = new GT393(this.getTimer_0(), d, this.fadeInterval, e)), null != this.fadeIntroAnimator && this.fadeIntroAnimator.addFinishCallback_1(this.fadeStarter)); null != this.initialDelayAnimator && this.initialDelayAnimator.start_0(); }, getRidOfFadeStarter_1: function (a) { null != this.fadeStarter && (this.fadeStarter.isAnimatorRunning_0() && this.fadeStarter.killAnimatorAndTrigger_1(a), (this.fadeStarter = null)); }, startOutroAnimation_0: function () { this.getRidOfFadeStarter_1(!0); null == this.fadeOutroAnimator || this.fadeOutroAnimator.isRunning_0() || this.fadeOutroAnimator.start_0(); }, stopVisualization_1: function (a) { null != this.initialDelayAnimator && (this.initialDelayAnimator.isRunning_0() && this.initialDelayAnimator.killWithoutTriggers_0(), (this.initialDelayAnimator = null)); null != this.fadeIntroAnimator && (this.fadeIntroAnimator.isRunning_0() && this.fadeIntroAnimator.killWithoutTriggers_0(), (this.fadeIntroAnimator = null)); null != this.visibleDelayAnimator && (this.visibleDelayAnimator.isRunning_0() && this.visibleDelayAnimator.killWithoutTriggers_0(), (this.visibleDelayAnimator = null)); this.getRidOfFadeStarter_1(!1); null != this.fadeOutroAnimator && (this.fadeOutroAnimator.isRunning_0() && this.fadeOutroAnimator.killWithoutTriggers_0(), (this.fadeOutroAnimator = null)); this.winVisualContainer.destroy_0(); GT732.prototype.stopVisualization_1.call(this, a); }, }, "GT940", [] ), GT393 = Class.extend( { initialConstructor_0: function () { this.guiObject = this.timer = null; this.count = this.fadeInterval = 0; this.overlayFade = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.guiObject = this.timer = null; this.count = this.fadeInterval = 0; this.overlayFade = null; this.timer = a; this.guiObject = b; this.fadeInterval = d; this.count = e; }, isAnimatorRunning_0: function () { return null != this.overlayFade && this.overlayFade.isRunning_0(); }, killAnimatorAndTrigger_1: function (a) { null != this.overlayFade && this.overlayFade.killAndTrigger_1(a); }, run_0: function () { null != this.guiObject && this.guiObject.isAlive_0() && instanceOf(this.guiObject, GT1480) && ((this.overlayFade = new GT1191(this.timer, this.guiObject, !1, this.fadeInterval, this.count)), this.overlayFade.addStartCallback_1(new GT869(this.guiObject, !1)), this.overlayFade.addFinishCallback_1(new GT714(this.guiObject)), this.overlayFade.start_0()); }, }, "GT393", [Runnable] ), GT358 = Class.extend( { initialConstructor_0: function () { this.winVisual = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.winVisual = null; this.winVisual = a; }, run_0: function () { null != this.winVisual && this.winVisual.startOutroAnimation_0(); }, }, "GT358", [Runnable] ); GT940.prototype.WIN_VALUE_FIELD = GT1560.prototype.generateID_0(); GT940.prototype.FADING_OBJECTS = GT1560.prototype.generateID_0(); var GT240 = GT732.extend( { initialConstructor_0: function () { this.loopListener = this.congratulationsText = this.console = null; this.m_line = this.remainedLoops = this.fileStepsCount = this.singleRingStepLength = this.highWinNotificationSoundLoopEndPosition = this.highWinNotificationSoundRestartPosition = this.highWinNotificationSoundStartPosition = 0; this.showFrames = this.m_isTabVisible = !1; this.m_Win = null; this.winSumInConsoleAtStart = 0; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.loopListener = this.congratulationsText = this.console = null; this.m_line = this.remainedLoops = this.fileStepsCount = this.singleRingStepLength = this.highWinNotificationSoundLoopEndPosition = this.highWinNotificationSoundRestartPosition = this.highWinNotificationSoundStartPosition = 0; this.showFrames = this.m_isTabVisible = !1; this.m_Win = null; this.winSumInConsoleAtStart = 0; GT732.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.console = g; this.congratulationsText = k.getText_1("${gamble_info_topwon0}"); this.winSumInConsoleAtStart = this.singleRingStepLength = this.fileStepsCount = this.remainedLoops = 0; this.loopListener = null; this.showFrames = !0; }, start_2: function (a, b) { GT1650.prototype.assertExp_2(null == this.animationStopper, "call stop before calling start again"); this.animationStopper = new GT522(this, !0); if (null != a && null != b && ((this.m_Win = a), GT1560.prototype.isAlive_1(this.getWinLines_0()) && this.showFrames)) { var d = this.getFormattedWinText_1(a); instanceOf(a, GT1599) ? ((this.m_line = a.line), -1 != this.m_line && (this.getWinLines_0().setWinningSymbols_3(this.m_line, b, d), this.getWinLines_0().showLine_2(this.m_line, !0), (this.m_isTabVisible = this.getWinLines_0().isTabVisible_1(this.m_line)) || this.getWinLines_0().showTab_2(this.m_line, !0))) : instanceOf(a, GT1512) && ((this.m_line = -1), this.getWinLines_0().setScatterWin_2(b, d), this.getWinLines_0().showScatter_1(!0)); } this.winSumInConsoleAtStart = this.console.getWin_0(); this.setConsoleStatusText_1(this.congratulationsText); this.loopListener = new GT955(this, !0); this.getTimer_0().triggerCallbackAfter_2(this.loopListener, 10); }, stopVisualization_1: function (a) { null == this.getSoundPlayer_0() || null == this.getSound_0() || a || this.getSoundPlayer_0().stop_2(this.getSound_0(), 150); null != this.animationStopper && (this.animationStopper.deactivate_0(), (this.animationStopper = null)); null != this.loopListener && (this.loopListener.deactivate_0(), (this.loopListener = null)); this.setConsoleStatusText_1(""); this.console.setWin_2(this.winSumInConsoleAtStart, !0); GT1560.prototype.isAlive_1(this.getWinLines_0()) && null != this.m_Win && this.showFrames && (this.m_isTabVisible || -1 == this.m_line || this.getWinLines_0().showTab_2(this.m_line, !1), instanceOf(this.m_Win, GT1599) ? this.getWinLines_0().showLine_2(this.m_line, !1) : instanceOf(this.m_Win, GT1512) && this.getWinLines_0().showScatter_1(!1)); this.fireVisualizationFinished_0(); }, setConsoleStatusText_1: function (a) { null != this.console && (this.console.setStatusText_1(a), a.equals_1("") || GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() || this.console.setWin_2(0, !0)); GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && ((a = null == a || a.isEmpty_0() ? null : GT1389.prototype.getInstance_0().getText_1("${neon_gamble_info_topwon0}")), GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setStatusText_1(a)); }, setLoopCount_1: function (a) { this.remainedLoops = a; }, setHighWinNotificationSoundFileStepsCount_1: function (a) { this.fileStepsCount = a; }, setHighWinNotificationSoundSingleRingStepLength_1: function (a) { this.singleRingStepLength = a; }, setHighWinNotificationSoundStartPosition_1: function (a) { this.highWinNotificationSoundStartPosition = a; }, setHighWinNotificationSoundRestartPosition_1: function (a) { this.highWinNotificationSoundRestartPosition = a; }, setHighWinNotificationSoundLoopEndPosition_1: function (a) { this.highWinNotificationSoundLoopEndPosition = a; }, setShowWinLineAndScatterFramesDuringVisualization_1: function (a) { this.showFrames = a; }, startNextLoop_1: function (a) { null != this.loopListener && this.loopListener.deactivate_0(); null != this.getSoundPlayer_0() && (this.getSoundPlayer_0().stop_1(this.getSound_0()), 0 < this.singleRingStepLength ? ((a = this.remainedLoops), (this.remainedLoops = 0), this.getSoundPlayer_0().start_4(this.getSound_0(), this.animationStopper, (this.fileStepsCount - a) * this.singleRingStepLength, 0)) : 0 < --this.remainedLoops ? ((this.loopListener = new GT955(this, !1)), this.getSoundPlayer_0().start_4( this.getSound_0(), this.loopListener, a ? this.highWinNotificationSoundStartPosition : this.highWinNotificationSoundRestartPosition, this.highWinNotificationSoundLoopEndPosition )) : this.getSoundPlayer_0().start_4(this.getSound_0(), this.animationStopper, a ? this.highWinNotificationSoundStartPosition : this.highWinNotificationSoundRestartPosition, 0)); }, }, "GT240", [] ), GT955 = Class.extend( { initialConstructor_0: function () { this.highWinNotificationWinVisual = null; this.beforeFirstLoop = this.active = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.highWinNotificationWinVisual = null; this.beforeFirstLoop = this.active = !1; this.highWinNotificationWinVisual = a; this.beforeFirstLoop = b; this.active = !0; }, deactivate_0: function () { this.active = !1; }, run_0: function () { this.active && this.highWinNotificationWinVisual.startNextLoop_1(this.beforeFirstLoop); }, }, "GT955", [Runnable] ), GT748 = GT732.extend( { initialConstructor_0: function () { this.updater = this.stoppedReels = this.winLinePositions = this.winLineContainer = this.symbolHighlight = null; this.counter = this.winLine = 0; this.valueFormatter = this.animationSound = this.sPlayer = null; this.interval = this.winValue = 0; this.isTabImageVisible = !1; GT732.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.updater = this.stoppedReels = this.winLinePositions = this.winLineContainer = this.symbolHighlight = null; this.counter = this.winLine = 0; this.valueFormatter = this.animationSound = this.sPlayer = null; this.interval = this.winValue = 0; this.isTabImageVisible = !1; GT732.prototype.initialConstructor_4.call(this, a, -1, d, g); this.interval = b; this.winLineContainer = d; this.symbolHighlight = f; this.stoppedReels = e; this.valueFormatter = g; }, setSound_2: function (a, b) { this.sPlayer = b; this.animationSound = a; }, init_2: function (a, b) { instanceOf(a, GT1599) ? (this.winLine = a.line) : (this.winLine = -1); this.winValue = a.payCash; this.winLinePositions = b; }, start_2: function (a, b) { this.init_2(a, b); this.winLineContainer.setWinningSymbols_3(this.winLine, b, 0 == this.winValue ? null : this.valueFormatter.format_1(this.winValue)); this.winLineContainer.showLine_2(this.winLine, !0); (this.isTabImageVisible = this.winLineContainer.isTabVisible_1(this.winLine)) || this.winLineContainer.showTab_2(this.winLine, !0); this.counter = 0; this.symbolHighlight.setSynchronize_1(!1); GT732.prototype.start_2.call(this, a, b); this.action_0(); }, stopVisualization_1: function (a) { GT732.prototype.stopVisualization_1.call(this, a); null != this.updater && this.updater.deactivate_0(); }, action_0: function () { this.counter >= this.winLinePositions.getCount_0() || !this.isVisualizationPossible_0() ? (null != this.winLineContainer && this.winLineContainer.isAlive_0() && this.winLineContainer.showLine_2(this.winLine, !1), this.isTabImageVisible || this.winLineContainer.showTab_2(this.winLine, !1), this.stoppedReels.hideAllSymbols_1(!1), this.symbolHighlight.removeAllHighlights_0(), this.fireVisualizationFinished_0()) : (this.counter < this.winLinePositions.getCount_0() && (null != this.sPlayer && null != this.animationSound && this.sPlayer.start_1(this.animationSound), this.symbolHighlight.setHighlight_4(this.winLinePositions.getSymbolColumn_1(this.counter), this.winLinePositions.getSymbolRow_1(this.counter), this.winLinePositions.getCount_0(), 1)), this.counter++, (this.updater = new GT540(this)), this.getTimer_0().triggerCallbackAfter_2(this.updater, this.interval)); }, isVisualizationPossible_0: function () { return this.winLineContainer.isAlive_0() && this.stoppedReels.isAlive_0() && this.symbolHighlight.isAlive_0(); }, }, "GT748", [] ), GT540 = Class.extend( { initialConstructor_0: function () { this.animator = null; this.isDeactivated = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.animator = null; this.isDeactivated = !1; this.animator = a; this.isDeactivated = !1; }, deactivate_0: function () { this.isDeactivated = !0; }, run_0: function () { this.isDeactivated || this.animator.action_0(); }, }, "GT540", [Runnable] ), GT989 = Class.extend( { initialConstructor_0: function () { this.endpositions = this.winPositions = this.layout = this.timer = this.symbolHighlight = null; this.lastHandledHighWinNotification = this.currentwin = 0; this.stopCallbacks = this.startCallbacks = this.winStartCallbacks = this.finishCallbacks = this.switchWinCallback = this.wins = null; this.highWinNotificationFormulaFactor = this.highWinNotificationSoundMaximumLoops = this.counter = this.repetitions = 0; this.winVisual = this.winVisualFactory = null; this.noHighWinNotification = this.running = this.skipFirstRun = !1; this.slotState = this.soundPlayer = this.winSounds = null; this.countUpSoundStartTime = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.endpositions = this.winPositions = this.layout = this.timer = this.symbolHighlight = null; this.lastHandledHighWinNotification = this.currentwin = 0; this.stopCallbacks = this.startCallbacks = this.winStartCallbacks = this.finishCallbacks = this.switchWinCallback = this.wins = null; this.highWinNotificationFormulaFactor = this.highWinNotificationSoundMaximumLoops = this.counter = this.repetitions = 0; this.winVisual = this.winVisualFactory = null; this.noHighWinNotification = this.running = this.skipFirstRun = !1; this.slotState = this.soundPlayer = this.winSounds = null; this.countUpSoundStartTime = 0; this.timer = a; this.layout = b; this.symbolHighlight = e; this.winPositions = d; this.winVisualFactory = f; this.lastHandledHighWinNotification = this.currentwin = -1; this.switchWinCallback = new GT674(this); this.finishCallbacks = new java_util_JavaScriptVector(); this.winStartCallbacks = new java_util_JavaScriptVector(); this.startCallbacks = new java_util_JavaScriptVector(); this.stopCallbacks = new java_util_JavaScriptVector(); this.wins = [].createArray(0); this.noHighWinNotification = !1; this.highWinNotificationSoundMaximumLoops = 10; this.highWinNotificationFormulaFactor = 50; this.repetitions = 1 > g ? 1e6 : g; this.slotState = k; }, initialConstructor_6: function (a, b, d, e, f, g) { GT989.prototype.initialConstructor_7.call(this, a, b, d, e, f, g, null); }, initialConstructor_5: function (a, b, d, e, f) { GT989.prototype.initialConstructor_6.call(this, a, b, d, e, f, -1); }, destroy_0: function () { this.switchWinCallback = null; this.finishCallbacks.clear_0(); this.winStartCallbacks.clear_0(); }, setSymbolHighlight_1: function (a) { GT1650.prototype.assertExp_2(!this.running, "SymbolHighlight can't be changed when win switcher is running"); this.symbolHighlight = a; }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.addElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, fireSwitchFinished_0: function () { for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) this.timer.triggerCallbackImmediately_1(a.elementAt_1(d)); }, addWinStartCallback_1: function (a) { null == a || this.winStartCallbacks.contains_1(a) || this.winStartCallbacks.addElement_1(a); }, removeWinStartCallback_1: function (a) { this.winStartCallbacks.removeElement_1(a); }, getWinStartCallbacks_0: function () { for (var a = [].createArray(this.winStartCallbacks.size_0()), b = 0; b < a.length; b++) a[b] = this.winStartCallbacks.get_1(b); return a; }, fireWinStarted_0: function () { for (var a = this.winStartCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, addStartCallback_1: function (a) { null == a || this.startCallbacks.contains_1(a) || this.startCallbacks.addElement_1(a); }, removeStartCallback_1: function (a) { this.startCallbacks.removeElement_1(a); }, fireWinSwitcherStarted_0: function () { for (var a = this.startCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, addStopCallback_1: function (a) { null == a || this.stopCallbacks.contains_1(a) || this.stopCallbacks.addElement_1(a); }, removeStopCallback_1: function (a) { this.stopCallbacks.removeElement_1(a); }, fireWinSwitcherStopped_0: function () { for (var a = this.stopCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, setWinSounds_2: function (a, b) { this.winSounds = a; this.soundPlayer = b; }, start_4: function (a, b, d, e) { this.start_5(a, b, d, e, !1); }, start_5: function (a, b, d, e, f) { this.isRunning_0() ? GT1650.prototype.assertExp_2(!1, "Can't start a running win switcher.") : ((this.noHighWinNotification = f), (this.wins = a), (this.lastHandledHighWinNotification = this.currentwin = -1), null == a || 0 == a.length ? this.timer.triggerCallbackAfter_2(new GT329(this), 10) : ((this.counter = e ? 1 : 0), (this.skipFirstRun = e), (this.endpositions = GT1613.prototype.createEndPositions_3(b, d, this.layout.rows)), this.symbolHighlight.init_4(b, d, a, this.winPositions), this.winVisualFactory.showAllWinHighlightsAtStart_2(a, e) && this.showAllHighLights_0(), (this.running = !0), this.fireWinSwitcherStarted_0(), this.showNextWin_0())); }, setRepetitions_1: function (a) { GT1650.prototype.assertExp_2(!this.isRunning_0(), "Dont't change number of repetitions when win switcher is running."); this.repetitions = a; }, stop_0: function () { null != this.wins && (null != this.soundPlayer && null != this.winSounds && (null != this.winSounds.getCountUpSound_0() && this.soundPlayer.stop_2(this.winSounds.getCountUpSound_0(), 10), this.winSounds.hasHighWinNotificationSound_0() && this.soundPlayer.stop_1(this.winSounds.getHighWinNotificationSound_0())), (this.lastHandledHighWinNotification = this.currentwin = this.wins.length), (this.counter = this.repetitions - 1), null != this.winVisual && this.winVisual.stop_0(), this.fireWinSwitcherStopped_0()); }, stopFirstRun_0: function () { null != this.soundPlayer && null != this.winSounds && (null != this.winSounds.getCountUpSound_0() && this.soundPlayer.stop_2(this.winSounds.getCountUpSound_0(), 10), this.winSounds.hasHighWinNotificationSound_0() && this.soundPlayer.stop_1(this.winSounds.getHighWinNotificationSound_0())); this.lastHandledHighWinNotification = this.currentwin = -1; this.counter = 1; null != this.winVisual && this.winVisual.stop_0(); }, getCurrentWinIndex_0: function () { return this.currentwin; }, getCurrentWin_0: function () { return -1 == this.currentwin || null == this.wins || this.currentwin >= this.wins.length ? null : this.wins[this.currentwin]; }, getCurrentRepetition_0: function () { return this.counter; }, setHighWinNotificationSoundMaximumLoops_1: function (a) { this.highWinNotificationSoundMaximumLoops = a; }, getHighWinNotificationSoundMaximumLoops_0: function () { return this.highWinNotificationSoundMaximumLoops; }, setHighWinNotificationFormulaFactor_1: function (a) { this.highWinNotificationFormulaFactor = a; }, getHighWinNotificationFormulaFactor_0: function () { return this.highWinNotificationFormulaFactor; }, isRunning_0: function () { return this.running; }, showNextWin_0: function () { if (null == this.wins) GT989.prototype.LOG.i_1("WARNING: showNextWin() was called and wins is null"); else { null != this.winVisual && this.winVisual.removeFinishCallback_1(this.switchWinCallback); if (!this.noHighWinNotification && null != this.winSounds && !this.skipFirstRun && 0 == this.counter && this.winSounds.hasHighWinNotificationSound_0()) { var a = this.currentwin + 1; if (0 < this.wins.length && a < this.wins.length && a > this.lastHandledHighWinNotification) { var b = null != this.winSounds.getCountUpSound_0() && -1 < this.getNrOfCountUpSteps_0(), d = 0; if (b) if (-1 == this.lastHandledHighWinNotification) for (var e = 0; e < this.wins.length; e++) null == this.winSounds.getSound_2(this.wins[e].symbol, this.wins[e].num) && (d += this.wins[e].payCash); else null != this.winSounds.getSound_2(this.wins[a].symbol, this.wins[a].num) && (d = this.wins[a].payCash); else d = this.wins[a].payCash; this.lastHandledHighWinNotification = a; if (d / this.slotState.getTotalBet_0() >= this.winSounds.getHighWinNotificationSoundRelativePayout_0()) { this.winVisual = this.winVisualFactory.createHighWinNotificationWinVisual_1(this.wins[a]); d = Integer.truncate_1(1 + Math.div(d, this.slotState.getTotalBet_0() * this.highWinNotificationFormulaFactor)); this.winVisual.setLoopCount_1(d > this.highWinNotificationSoundMaximumLoops ? this.highWinNotificationSoundMaximumLoops : d); this.winVisual.addFinishCallback_1(this.switchWinCallback); b ? this.winVisual.start_2(null, null) : this.winVisual.start_2(this.wins[a], this.wins[a].createWinPositions_2(this.endpositions, this.winPositions)); return; } } } this.currentwin++; if (this.currentwin < this.wins.length && (null == this.winVisual || this.winVisual.isVisualizationPossible_0())) if (null == this.wins[this.currentwin]) this.fireSwitchFinished_0(), (this.running = !1), (this.winVisual = null); else { if (instanceOf(this.wins[this.currentwin], GT987) || instanceOf(this.wins[this.currentwin], GT841)) if ( (null != this.soundPlayer && null != this.winSounds && null != this.winSounds.getCountUpSound_0() && this.soundPlayer.stop_2(this.winSounds.getCountUpSound_0(), 10), 0 != this.counter || this.skipFirstRun) ) { this.showNextWin_0(); return; } this.winVisual = this.winVisualFactory.createWinVisual_3(this.wins, this.currentwin, 0 == this.counter && !this.skipFirstRun); this.winVisual.isVisualizationPossible_0() && (null != this.winSounds && ((a = this.getNrOfCountUpSteps_0()), -1 == a || 0 != this.counter || this.skipFirstRun || 0 != this.currentwin || null == this.soundPlayer || null == this.winSounds.getCountUpSound_0() || ((a = a * this.winSounds.getCountUpSoundSoundStepDuration_0() + this.winSounds.getCountUpSoundStartPosition_0()), this.soundPlayer.start_4(this.winSounds.getCountUpSound_0(), null, this.winSounds.getCountUpSoundStartPosition_0(), a), (this.countUpSoundStartTime = this.timer.currentTimeMillis_0()))), this.winVisual.addFinishCallback_1(this.switchWinCallback), this.winVisual.start_2(this.wins[this.currentwin], this.wins[this.currentwin].createWinPositions_2(this.endpositions, this.winPositions)), this.fireWinStarted_0()); } else 0 == this.counter && this.fireSwitchFinished_0(), (this.currentwin = -1), this.counter++, this.counter >= this.repetitions || !this.winVisual.isVisualizationPossible_0() ? ((this.running = !1), (this.winVisual = null), this.symbolHighlight.removeAllHighlights_0()) : this.showNextWin_0(); } }, getNrOfCountUpSteps_0: function () { if (this.getNumberOfCountUpSoundWins_2(this.wins, this.winSounds) < this.winSounds.getCountUpSoundThreshold_0()) return -1; for ( var a = 0, b = 0; b < this.wins.length && !( instanceOf(this.wins[b], GT987) || instanceOf(this.wins[b], GT841) || null != this.winSounds.getSound_2(this.wins[b].symbol, this.wins[b].num) || (null != this.slotState && 0 < this.wins[b].payCash && null != this.winSounds.getRelativePayoutSound_1(this.wins[b].payCash / this.slotState.getTotalBet_0())) ); b++ ) a++; return 0 < a ? a : -1; }, showAllHighLights_0: function () { for (var a = 0; a < this.wins.length; a++) for (var b = this.wins[a].createWinPositions_2(this.endpositions, this.winPositions), d = 0; d < b.getCount_0(); d++) this.symbolHighlight.setHighlight_3(b.getSymbolColumn_1(d), b.getSymbolRow_1(d), this.wins[a].num); }, getCountUpSoundStartTime_0: function () { return this.countUpSoundStartTime; }, }, "GT989", [] ), GT329 = Class.extend( { initialConstructor_0: function () { this.winSwitcher = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.winSwitcher = null; this.winSwitcher = a; }, run_0: function () { this.winSwitcher.fireSwitchFinished_0(); }, }, "GT329", [Runnable] ); GT989.prototype.getNumberOfCountUpSoundWins_2 = function (a, b) { for (var d = 0, e = 0; e < a.length; e++) instanceOf(a[e], GT987) || instanceOf(a[e], GT841) || null != b.getSound_2(a[e].symbol, a[e].num) || ++d; return d; }; GT989.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT956 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, defaultReels_2: function (a, b) { return GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .reel_2(0, b.reel_0()) .layout_1(b.reelLayout_0()) .minDuration_1(800) .reelStopDelay_1(300) .addSoundReelsRun_1("/com/greentube/slot/client/res/novo/reelrun.mp3") .soundReelsRunSilent_1("/com/greentube/slot/client/res/novo/reelsilent.mp3") .addLoopPoint_3(0, 4681.202, 24.195) .addLoopPoint_3(735.057, 4681.202, 24.195) .addLoopPoint_3(1756.825, 4681.202, 24.195) .addLoopPoint_3(2693.492, 4681.202, 24.195) .addLoopPoint_3(3634.558, 4681.202, 24.195); }, defaultReel_2: function (a, b) { return a.stopSound_1("/com/greentube/slot/client/res/novo/reelstop.mp3").stopSoundStartPosition_1(75); }, reelsInFreeGames_2: function (a, b) { return instanceOf(a, GT1252) ? a.removeSoundsReelsRun_0() : b.defaultReels_0().removeSoundsReelsRun_0(); }, defaultWinLines53b10_2: function (a, b) { return a .tabsImage_2("/com/greentube/slot/client/res/novo/winlines.png", 10) .position_2(69, 6) .size_2(1398, b.getReelY_0() + 666 + 10) .margin_1(74) .reelContainerOffset_2(b.getReelX_0() - 69, b.getReelY_0() - 6) .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(74, 154, 253), GT1391.prototype.set_0().compRGB_3(52, 123, 211)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(213, 29, 29), GT1391.prototype.set_0().compRGB_3(176, 12, 11)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(38, 144, 18), GT1391.prototype.set_0().compRGB_3(18, 115, 2)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(238, 220, 24), GT1391.prototype.set_0().compRGB_3(199, 184, 7)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(255, 113, 211), GT1391.prototype.set_0().compRGB_3(213, 89, 175)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(210, 254, 105), GT1391.prototype.set_0().compRGB_3(172, 185, 69)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(246, 189, 169), GT1391.prototype.set_0().compRGB_3(213, 138, 121)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(176, 215, 220), GT1391.prototype.set_0().compRGB_3(132, 166, 180)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(255, 197, 116), GT1391.prototype.set_0().compRGB_3(224, 147, 60)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(234, 176, 255), GT1391.prototype.set_0().compRGB_3(200, 124, 221)); }, defaultWinLines53c10Net_2: function (a, b) { return a .tabsImage_2("/com/greentube/slot/client/res/novo/winlines.png", 10) .margin_1(74) .lineColor_3(0, GT1391.prototype.set_0().compRGB_3(74, 154, 253), GT1391.prototype.set_0().compRGB_3(52, 123, 211)) .lineColor_3(1, GT1391.prototype.set_0().compRGB_3(213, 29, 29), GT1391.prototype.set_0().compRGB_3(176, 12, 11)) .lineColor_3(2, GT1391.prototype.set_0().compRGB_3(38, 144, 18), GT1391.prototype.set_0().compRGB_3(18, 115, 2)) .lineColor_3(3, GT1391.prototype.set_0().compRGB_3(238, 220, 24), GT1391.prototype.set_0().compRGB_3(199, 184, 7)) .lineColor_3(4, GT1391.prototype.set_0().compRGB_3(255, 113, 211), GT1391.prototype.set_0().compRGB_3(213, 89, 175)) .lineColor_3(5, GT1391.prototype.set_0().compRGB_3(210, 254, 105), GT1391.prototype.set_0().compRGB_3(172, 185, 69)) .lineColor_3(6, GT1391.prototype.set_0().compRGB_3(246, 189, 169), GT1391.prototype.set_0().compRGB_3(213, 138, 121)) .lineColor_3(7, GT1391.prototype.set_0().compRGB_3(176, 215, 220), GT1391.prototype.set_0().compRGB_3(132, 166, 180)) .lineColor_3(8, GT1391.prototype.set_0().compRGB_3(255, 197, 116), GT1391.prototype.set_0().compRGB_3(224, 147, 60)) .lineColor_3(9, GT1391.prototype.set_0().compRGB_3(234, 176, 255), GT1391.prototype.set_0().compRGB_3(200, 124, 221)); }, defaultRedBlackGamble_2: function (a, b) { return a .soundGambleWin_1("/com/greentube/slot/client/res/novo/gamblewin.mp3") .soundGambleLost_1(null) .modify_2( GT346.prototype.ID_BUTTON_RED, GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/novo/gamblebutton_r.png").clickableAreaShape_1(GT956.prototype.clickableGambleButtonArea_0()).position_2(103, 335) ) .modify_2( GT346.prototype.ID_BUTTON_BLACK, GT1355.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/novo/gamblebutton_b.png").clickableAreaShape_1(GT956.prototype.clickableGambleButtonArea_0()).position_2(780, 335) ); }, console_2: function (a, b) { return a .soundDecideGamble_3("/com/greentube/slot/client/res/novo/decidegamble.mp3", 60, 4070) .soundAutoPlayStart_1("/com/greentube/slot/client/res/novo/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/novo/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/novo/changebet.mp3") .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1135.prototype.set_0().soundCountEnd_1("/com/greentube/slot/client/res/novo/wincountstop.mp3")) .modify_2(GT834.prototype.ID_FIELD_WIN, GT1135.prototype.set_0().soundCountEnd_1("/com/greentube/slot/client/res/novo/wincountstop.mp3")); }, freeGameSounds_2: function (a, b) { return a .backgroundReducedVolume_1(0) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win2.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win5.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/win10.mp3", 100) .addFileSpecificBackgroundReducedVolume_2("/com/greentube/slot/client/res/novo/wintiny.mp3", 100); }, winSounds_2: function (a, b) { return a .highWinNotificationSound_2(10, "/com/greentube/slot/client/res/novo/winring_10steps.mp3") .highWinNotificationSoundFileStepsCount_1(10) .highWinNotificationSoundSingleRingStepLength_1(725) .highWinNotificationSoundStartPosition_1(50); }, }, "GT956", [] ); GT956.prototype.clickableGambleButtonArea_0 = function () { return GT715.prototype.set_0().scaleFactor_2(1, 1).setCoordinates_1([28, 117, 40, 70, 85, 33, 128, 16, 174, 11, 221, 16, 264, 33, 310, 70, 326, 117, 310, 155, 264, 195, 221, 211, 174, 218, 128, 211, 85, 195, 40, 155]); }; GT956.prototype.getGambleButtonHeight_0 = function () { return 239; }; GT956.prototype.getGambleButtonWidth_0 = function () { return 350; }; var GT441 = GT956.extend( { initialConstructor_0: function () { GT956.prototype.initialConstructor_0.call(this); }, defaultWinLines53b10_2: function (a, b) { return GT956.prototype.defaultWinLines53b10_2 .call(this, a, b) .position_2(106, 0) .size_2(5 * GT1097.prototype.getSymbolSize_0() + 4 * GT1097.prototype.getReelDistance_0() + 219, b.getReelY_0() + 3 * GT1097.prototype.getSymbolSize_0() + 15) .reelContainerOffset_2(109, b.getReelY_0()) .lineStartOffset_1(11) .lineStartSpacing_1(60); }, defaultRedBlackGamble_2: function (a, b) { return GT956.prototype.defaultRedBlackGamble_2 .call(this, a, b) .modify_2( GT346.prototype.ID_BUTTON_RED, GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/novo/gamblebutton_r.png").overrideSize_2(GT1097.prototype.getGambleButtonWidth_0(), GT1097.prototype.getGambleButtonHeight_0())) .clickableAreaShape_1(GT956.prototype.clickableGambleButtonArea_0().scaleFactor_2(GT441.prototype.getXScaleGambleButton_0(), GT441.prototype.getYScaleGambleButton_0())) .position_2(125, 280) ) .modify_2( GT346.prototype.ID_BUTTON_BLACK, GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/novo/gamblebutton_b.png").overrideSize_2(GT1097.prototype.getGambleButtonWidth_0(), GT1097.prototype.getGambleButtonHeight_0())) .clickableAreaShape_1(GT956.prototype.clickableGambleButtonArea_0().scaleFactor_2(GT441.prototype.getXScaleGambleButton_0(), GT441.prototype.getYScaleGambleButton_0())) .position_2(700, 280) ); }, }, "GT441", [] ); GT441.prototype.getYScaleGambleButton_0 = function () { return GT1097.prototype.getGambleButtonHeight_0() / GT956.prototype.getGambleButtonHeight_0(); }; GT441.prototype.getXScaleGambleButton_0 = function () { return GT1097.prototype.getGambleButtonWidth_0() / GT956.prototype.getGambleButtonWidth_0(); }; var GT791 = GT956.extend( { initialConstructor_0: function () { GT956.prototype.initialConstructor_0.call(this); }, defaultRedBlackGamble_2: function (a, b) { return GT785.prototype .set_0() .id_1(GT1618.prototype.GAMBLE) .position_2(b.getSlideInOutScreenX_0(), 0) .size_2(b.getSlideInOutScreenWidth_0(), b.getSlideInOutScreenHeight_0()) .soundGamble_1("/com/greentube/slot/client/res/gamble/gamblesuspense.mp3") .soundGambleLoopPositions_3(0, 1176, 37) .soundGambleWin_1("/com/greentube/slot/client/res/novo/gamblewin.mp3") .soundGambleWinStopPositions_1([430, 644, 858, 1078, 1294]) .soundGambleWinTop_1("/com/greentube/slot/client/res/gamble/gamblewintop.mp3") .imageGambleCard_2("/com/greentube/slot/client/res/gamble/gamble_card.jpg", !0) .imageGambleCardTiny_2("/com/greentube/slot/client/res/gamble/gamble_card_tiny.jpg", !0) .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3") .gambleHistoryCardPosition_2([0, 90, 180, 270, 360, 450], [0, 0, 0, 0, 0, 0]) .child_1(b.gambleBackground_0()) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CARDSELECTED) .text_1("${gamble_redblack_selected}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(130)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CONGRATULATION) .position_2(616, 350) .text_1("${gamble_redblack_info_gratulation}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(190)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .position_2(308, 57) .text_1("${gamble_redblack_info_value}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(this.defaultDynamicTextAreaGamble_0().id_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT).position_2(160, 70).size_2(300, 100)) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .position_2(895, 57) .text_1("${gamble_redblack_info_forwin}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(this.defaultDynamicTextAreaGamble_0().id_1(GT346.prototype.ID_FIELD_GAMBLETOWIN).position_2(750, 70).size_2(300, 100)) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_PREVCARDS) .position_2(400, 190) .text_1("${gamble_redblack_info_history}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO) .position_2(70, 250) .size_2(380, 100) .text_1("${gamble_redblack_info}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE) .position_2(70, 250) .size_2(380, 100) .text_1("${gamble_redblack_info_after_gamble}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.LEFT) .hide_1(!0) ) .child_1(GT1186.prototype.set_0().id_1(GT346.prototype.ID_MAINCARD).position_2(496, 320)) .child_1(GT1186.prototype.set_0().id_1(GT346.prototype.ID_CARDS).position_2(585, 145)) .soundGambleWin_1("/com/greentube/slot/client/res/novo/gamblewin.mp3") .soundGambleLost_1(null) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_RED) .position_2(103, 360) .imageFile_1("/com/greentube/slot/client/res/novo/gamblebutton_r.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_RED) .text_1("${buttontext_gamblered}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().red_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_BLACK) .position_2(780, 360) .imageFile_1("/com/greentube/slot/client/res/novo/gamblebutton_b.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_BLACK) .text_1("${buttontext_gambleblack}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.TIMES).bold_0().size_1(170)) .fontColor_1(GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) ) .child_1(b.defaultDynamicTextAreaSmall_0().id_1(GT737.prototype.CURRENCY_TEXT).hAlign_1(GT1488.prototype.CENTER).vAlign_1(GT1489.prototype.TOP).position_2(0, 20).size_2(1232, 50).text_1("${infotable_currency}")); }, defaultDynamicTextAreaGamble_0: function () { return GT1135.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(140)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0); }, }, "GT791", [] ), GT1576 = Class.extend( { initialConstructor_0: function () { this.rsCharacteristics = this.newSet = this.oldReelset = null; this.delaySymbols = 0; this.reelsLayout = null; this.stopPosition = this.pixelposition = 0; this.modifier = this.reelset = null; }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.rsCharacteristics = this.newSet = this.oldReelset = null; this.delaySymbols = 0; this.reelsLayout = null; this.stopPosition = this.pixelposition = 0; this.modifier = this.reelset = null; this.oldReelset = a; this.newSet = b; this.rsCharacteristics = d; this.delaySymbols = f; this.reelsLayout = e; this.pixelposition = g; this.stopPosition = k; }, setModifier_1: function (a) { this.modifier = a; }, determineReelSetWithDelaySymbols_0: function () { var a = 2 * (this.reelsLayout.rows + 1) + this.delaySymbols + 1, b = (Math.div(a, this.oldReelset.length) + 1) * this.oldReelset.length; this.reelset = [].createArray(b).init(0); var d = this.oldReelset.length * this.reelsLayout.symbolHeight, e = Math.div(d - (this.pixelposition % d), this.reelsLayout.symbolHeight) % this.oldReelset.length, d = this.reelset.length * this.reelsLayout.symbolHeight, f = (d = Math.div(d - (this.pixelposition % d), this.reelsLayout.symbolHeight) % this.reelset.length), g = 1, k = this.oldReelset[e % this.oldReelset.length], m = this.oldReelset[e % this.oldReelset.length], n = 0, p = 0, q = 0; if (null != this.rsCharacteristics) { for ( var n = this.rsCharacteristics.getMinClusterSize_0().containsKey_1(GT1672.prototype.charToString_1(m)) ? this.rsCharacteristics.getMinClusterSize_0().get_1(GT1672.prototype.charToString_1(m)).intValue_0() : 1, p = this.rsCharacteristics.getMaxClusterSize_0().containsKey_1(GT1672.prototype.charToString_1(m)) ? this.rsCharacteristics.getMaxClusterSize_0().get_1(GT1672.prototype.charToString_1(m)).intValue_0() : 1, r = 0; r < this.rsCharacteristics.getMaxMaxClusterSize_0() && ((m = this.oldReelset[(e + r) % this.oldReelset.length]), k == m); r++ ) q++; g = q > n ? 1 : Math.max_2(1, n - q); GT1576.prototype.LOG.info && g > this.delaySymbols && GT1576.prototype.LOG.log_1("too few delaysymbols (" + this.delaySymbols + ") for adding " + g + " symbols to fit minClusterSize of " + n + " for symbol " + k); } for (r = -g; r < this.reelsLayout.rows + 2; r++) this.reelset[this.wrapIndex_2(f + r, this.reelset.length)] = this.oldReelset[this.wrapIndex_2(e + r, this.oldReelset.length)]; f += this.reelsLayout.rows + 2; e = this.stopPosition; a = b - a; for (r = 0; r < a; r++) this.reelset[(f + r + this.reelset.length) % this.reelset.length] = this.newSet[(Math.max_2(0, e - a) + r) % this.newSet.length]; a = f += a; for (r = -1; r < this.reelsLayout.rows + 1; r++) this.reelset[(f + r + 1) % this.reelset.length] = this.newSet[(e + r) % this.newSet.length]; for (var f = f + (this.reelsLayout.rows + 2), e = e + (this.reelsLayout.rows + 1), b = this.newSet[e % this.newSet.length], t = this.newSet[e % this.newSet.length], m = 0, n = !0, r = 0; r < this.delaySymbols - g; r++) { b = this.newSet[(e + r) % this.newSet.length]; b == t ? m++ : (m = 1); if (null != this.rsCharacteristics && n) { var t = this.rsCharacteristics.getMinClusterSize_0().get_1(GT1672.prototype.charToString_1(b)).intValue_0(), u = this.rsCharacteristics.getMinSymbolDistance_0().get_1(GT1672.prototype.charToString_1(b)).intValue_0(), B = this.delaySymbols - g - (r + 1); if ((b == k && m + B + q + g > p && t >= m + B) || (b != k && t > m + B) || (0 == B && b == k && m + B + q + g > p) || (0 < u && this.distanceRuleViolation_4((f + r) % this.reelset.length, b, u, !1))) if (b != k && q + g + m + B <= p) { this.fillWithSymbol_3((f + r) % this.reelset.length, B + 1, k); break; } else if (this.determineSymbols_4((f + r) % this.reelset.length, B + 1, [k, b], f % this.reelset.length)) break; else GT1576.prototype.LOG.info && GT1576.prototype.LOG.log_1("No solution found - fill delay symbols without considering min/maxcluster size,..."), (r = 0), (n = !1); } t = b; this.reelset[(f + r) % this.reelset.length] = b; } null != this.modifier && (this.reelset = this.modifier.modifyReelset_3(this.reelset, d % this.reelset.length, (a + 1) % this.reelset.length)); return this.reelset; }, distanceRuleViolation_4: function (a, b, d, e) { for (e = a - (e ? d : 0); e < a + d; e++) if (this.reelset[(e + this.reelset.length) % this.reelset.length] == b) return !0; return !1; }, wrapIndex_2: function (a, b) { for (; 0 > a; ) a += b; return a % b; }, determineSymbols_4: function (a, b, d, e) { for (var f = this.rsCharacteristics.getMinClusterSize_0().keys_0(), g = "0", k = new java_util_JavaScriptVector(); f.hasMoreElements_0(); ) if (((g = f.nextElement_0()), !this.isDontUseSymbol_2(g.charAt_1(0), d) && this.rsCharacteristics.getMinClusterSize_0().get_1(g).intValue_0() <= b)) { var m = this.rsCharacteristics.getMinSymbolDistance_0().get_1(g).intValue_0(); if (0 == m || !this.distanceRuleViolation_4(a, g.charAt_1(0), m, !0)) { if (this.rsCharacteristics.getMaxClusterSize_0().get_1(g).intValue_0() >= b) return this.fillWithSymbol_3(a, b, g.charAt_1(0)), !0; k.add_1(g); } } if (0 < k.size_0()) return ( (f = k.get_1(0).charAt_1(0)), (g = this.rsCharacteristics.getMaxClusterSize_0().get_1(GT1672.prototype.charToString_1(f)).intValue_0()), this.fillWithSymbol_3(a, g, f), (d[d.length - 1] = f), this.determineSymbols_4((a + g) % this.reelset.length, b - g, d, e) ); f = [].createArray(d.length + 1).init(0); for (g = 0; g < d.length; g++) f[g] = d[g]; f[d.length] = this.reelset[a]; d = this.getLastClusterSize_1(a); return a - d < e ? !1 : this.determineSymbols_4((a - d) % this.reelset.length, b + d, f, e); }, getLastClusterSize_1: function (a) { for (var b = this.reelset[a], d = 0; 0 <= a; a--) if (this.reelset[a] == b) d++; else break; return d; }, isDontUseSymbol_2: function (a, b) { for (var d = 0; d < b.length; d++) if (a == b[d]) return !0; return !1; }, fillWithSymbol_3: function (a, b, d) { for (var e = a; e < a + b; e++) 0 <= e && (this.reelset[e % this.reelset.length] = d); }, setOldReelset_1: function (a) { this.oldReelset = a; }, setNewReelSet_1: function (a) { this.newSet = a; }, setRsCharacteristics_1: function (a) { this.rsCharacteristics = a; }, setNrOfDelaySymbols_1: function (a) { this.delaySymbols = a; }, setReelsLayout_1: function (a) { this.reelsLayout = a; }, setPixelposition_1: function (a) { this.pixelposition = a; }, setStopPosition_1: function (a) { this.stopPosition = a; }, getOldReelset_0: function () { return this.oldReelset; }, getNewReelSet_0: function () { return this.newSet; }, getRsCharacteristics_0: function () { return this.rsCharacteristics; }, getNrOfDelaySymbols_0: function () { return this.delaySymbols; }, getReelsLayout_0: function () { return this.reelsLayout; }, getPixelposition_0: function () { return this.pixelposition; }, getStopPosition_0: function () { return this.stopPosition; }, }, "GT1576", [] ); GT1576.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT1305 = GT1648.extend( { initialConstructor_0: function () { GT1648.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1648.prototype.initialConstructor_8.call(this, 32, 0, 0, 0, 0, 0, 0, a); }, createWinPositions_2: function (a, b) { return new GT1613([].createArray(0).init(0), [].createArray(0).init(0)); }, createCopyWithNewSymbol_1: function (a) { return new GT1305(this.getDetails_0()); }, toString: function () { return "DetailsOnlyWin[" + this.getDetails_0() + "]"; }, }, "GT1305", [] ), GT1599 = GT1648.extend( { initialConstructor_0: function () { this.line = 0; this.jokers = null; GT1648.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.line = 0; this.jokers = null; GT1648.prototype.initialConstructor_9.call(this, a, d, e, f, g, k, m, n, q); this.line = b; this.jokers = null == p || 0 == p.length ? null : p; }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1599.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, null, k, m, n, p); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1599.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, null, null); }, createWinPositions_2: function (a, b) { if (-1 == this.line) return new GT1613([].createArray(0).init(0), [].createArray(0).init(0)); var d = this.num; if (null != this.jokers) for (var e = 0; e < d && !(this.start + e >= b[this.line].getCount_0()); e++) var f = b[this.line].getSymbolColumn_1(this.start + e), g = b[this.line].getSymbolRow_1(this.start + e), f = this.jokerExtendCount_1(a[f][g]), d = d - f; this.start + d > b[this.line].getCount_0() && ((d = b[this.line].getCount_0() - this.start), GT1650.prototype.assertExp_2(!1, "Win length higher than number of reels: " + (this.start + d))); f = [].createArray(d).init(0); g = [].createArray(d).init(0); for (e = 0; e < d; e++) (f[e] = b[this.line].getSymbolColumn_1(this.start + e)), (g[e] = b[this.line].getSymbolRow_1(this.start + e)); return new GT1613(f, g); }, jokerExtendCount_1: function (a) { if (null == this.jokers) return 0; for (var b = 0; b < this.jokers.length; b++) if (this.jokers[b].getSymbol_0() == a && this.jokers[b].isReplacing_2(this.symbol, !1)) return this.jokers[b].getExtendsLineWin_0(); return 0; }, getJokers_0: function () { return this.jokers; }, createCopyWithNewSymbol_1: function (a) { return new GT1599(a, this.line, this.start, this.num, this.freespins, this.jackpot, this.payCash, this.payGames, this.jokers, this.getDetails_0()); }, createCopyWithoutPayout_0: function () { return new GT1599(this.symbol, this.line, this.start, this.num, this.freespins, this.jackpot, 0, 0, this.jokers, this.getDetails_0()); }, }, "GT1599", [] ), GT1092 = GT1599.extend( { initialConstructor_0: function () { GT1599.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1599.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, m); }, createWinPositions_2: function (a, b) { for (var d = 0, e = [].createArray(this.num).init(0), f = [].createArray(this.num).init(0), g = 0; g < b[this.line].getCount_0(); g++) { var k = b[this.line].getSymbolColumn_1(g), m = b[this.line].getSymbolRow_1(g); g >= this.start && a[k][m] == this.symbol && ((e[d] = k), (f[d] = m), d++); if (d >= this.num) break; } return new GT1613(e, f); }, }, "GT1092", [] ), GT987 = GT1599.extend( { initialConstructor_0: function () { GT1599.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1599.prototype.initialConstructor_8.call(this, 88, a, 0, b, 0, 0, 0, 0); }, initialConstructor_3: function (a, b, d) { GT1599.prototype.initialConstructor_8.call(this, 88, a, b, d, 0, 0, 0, 0); }, initialConstructor_4: function (a, b, d, e) { GT1599.prototype.initialConstructor_8.call(this, a, b, d, e, 0, 0, 0, 0); }, }, "GT987", [] ), GT1172 = GT1599.extend( { initialConstructor_0: function () { this.reelFillingSymbols = null; GT1599.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.reelFillingSymbols = null; GT1599.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, m); this.reelFillingSymbols = n; }, createWinPositions_2: function (a, b) { if (-1 == this.line) return new GT1613([].createArray(0).init(0), [].createArray(0).init(0)); for (var d = new java_util_JavaScriptVector(), e = new java_util_JavaScriptVector(), f = 0; f < this.num; f++) { var g = b[this.line].getSymbolColumn_1(this.start + f), k = b[this.line].getSymbolRow_1(this.start + f); if (-1 != this.reelFillingSymbols.indexOf_1(a[g][k])) for (k = 0; k < a[g].length; k++) d.addElement_1(new Integer(g)), e.addElement_1(new Integer(k)); else d.addElement_1(new Integer(g)), e.addElement_1(new Integer(k)); } g = [].createArray(d.size_0()).init(0); k = [].createArray(d.size_0()).init(0); for (f = 0; f < g.length; f++) (g[f] = d.elementAt_1(f).intValue_0()), (k[f] = e.elementAt_1(f).intValue_0()); return new GT1613(g, k); }, createCopyWithNewSymbol_1: function (a) { return new GT1172(a, this.line, this.start, this.num, this.freespins, this.jackpot, this.payCash, this.payGames, this.reelFillingSymbols); }, }, "GT1172", [] ), GT1356 = GT1648.extend( { initialConstructor_0: function () { GT1648.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT1648.prototype.initialConstructor_8.call(this, 32, 0, 0, 0, 0, a, b, d); }, createWinPositions_2: function (a, b) { return new GT1613([].createArray(0).init(0), [].createArray(0).init(0)); }, createCopyWithNewSymbol_1: function (a) { return new GT1356(this.payCash, this.payGames, this.getDetails_0()); }, toString: function () { return "SingleMultiplierWin[cash: " + this.payCash + " games: " + this.payGames + " | " + this.getDetails_0() + "]"; }, }, "GT1356", [] ), GT1512 = GT1648.extend( { initialConstructor_0: function () { this.ordered = !1; this.scatterPositions = null; GT1648.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1512.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1512.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, n, null); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1512.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, null, k, m, n, p); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.ordered = !1; this.scatterPositions = null; GT1648.prototype.initialConstructor_9.call(this, a, b, d, f, g, k, m, n, p); this.ordered = e; this.scatterPositions = q; }, createWinPositions_2: function (a, b) { if (null == this.scatterPositions) { for (var d = new java_util_JavaScriptVector(), e = new java_util_JavaScriptVector(), f = !1, g = 0; g < a.length; g++) { var k = !1; if (!this.ordered || (g >= this.start && g < this.start + this.num && !f)) for (var m = 0; m < a[g].length; m++) a[g][m] == this.symbol && (d.addElement_1(new Integer(g)), e.addElement_1(new Integer(m)), (k = !0)); !k && g >= this.start && (f = !0); } f = [].createArray(d.size_0()).init(0); g = [].createArray(d.size_0()).init(0); for (k = 0; k < f.length; k++) (f[k] = d.elementAt_1(k).intValue_0()), (g[k] = e.elementAt_1(k).intValue_0()); return new GT1613(f, g); } return this.scatterPositions; }, getScatterPositions_0: function () { return this.scatterPositions; }, createCopyWithNewSymbol_1: function (a) { return new GT1512(a, this.start, this.num, this.ordered, this.freespins, this.jackpot, this.payCash, this.payGames, this.getDetails_0(), this.getScatterPositions_0()); }, createCopyWithoutPayout_0: function () { return new GT1512(this.symbol, this.start, this.num, this.ordered, this.freespins, this.jackpot, 0, 0, this.getDetails_0(), this.getScatterPositions_0()); }, }, "GT1512", [] ), GT841 = GT1512.extend( { initialConstructor_0: function () { GT1512.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1512.prototype.initialConstructor_8.call(this, a, b, d, e, 0, 0, 0, 0); }, initialConstructor_5: function (a, b, d, e, f) { GT1512.prototype.initialConstructor_10.call(this, a, b, d, e, 0, 0, 0, 0, null, f); }, }, "GT841", [] ), GT957 = GT1412.extend( { initialConstructor_0: function () { this.scale = this.gap = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.scale = this.gap = this.consoleX = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT1412.prototype.initialConstructor_1.call(this, f); this.gap = 10; this.gameHeight = e; this.consoleHeight = b < Integer.MAX_VALUE ? 166 - this.gap : a.height - this.gameHeight - this.gap - d; this.consoleWidth = Math.min_2(b, a.width) - 2 * this.gap; this.consoleX = a.x + this.gap; a.width > b && (this.consoleX += Math.div(a.width - b, 2)); this.scale = this.consoleHeight / 157; }, buttonWidth_0: function () { return Integer.truncate_1(170 * this.scale); }, buttonPaytableWidth_0: function () { return Integer.truncate_1(103 * this.scale); }, buttonPaytableHeight_0: function () { return Integer.truncate_1(98 * this.scale); }, buttonHeight_0: function () { return this.consoleHeight; }, buttonSmallWidth_0: function () { return this.buttonWidth_0(); }, buttonSmallHeight_0: function () { return Integer.truncate_1(75 * this.scale); }, buttonBigWidth_0: function () { return 2 * this.buttonWidth_0() + this.gap; }, buttonBigHeight_0: function () { return this.buttonHeight_0(); }, statusFieldWidth_0: function () { return this.consoleWidth - 2 * (this.buttonBigWidth_0() + this.gap); }, defaultButtonHighlighted_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start.png").overrideSize_2(this.buttonWidth_0(), this.buttonHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButton_0: function () { return GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start.png").overrideSize_2(this.buttonWidth_0(), this.buttonHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButtonHighlightedSkip_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_skip.png").overrideSize_2(this.buttonWidth_0(), this.buttonHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButtonHighlightedBig_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start_big.png").overrideSize_2(this.buttonBigWidth_0(), this.buttonBigHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButtonHighlightedBigSkip_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_skip_big.png").overrideSize_2(this.buttonBigWidth_0(), this.buttonBigHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, statusBackgroundImage_0: function () { return GT1390.prototype .set_0() .file_1("/com/greentube/slot/client/res/bigbutton/console2.png") .tiling_2(3, 1) .overrideSize_2(Integer.truncate_1((636 * this.scale) / 3), this.consoleHeight); }, statusBackground_0: function () { return GT1186.prototype .set_0() .child_1( GT1392.prototype .set_0() .image_1(this.statusBackgroundImage_0()) .showTile_2(1, 0) .width_1(this.statusFieldWidth_0() - 2 * Integer.truncate_1((636 * this.scale) / 3) + 20) .position_2(Integer.truncate_1((636 * this.scale) / 3) - 10, 0) ) .child_1(GT1392.prototype.set_0().image_1(this.statusBackgroundImage_0()).showTile_2(0, 0)) .child_1( GT1392.prototype .set_0() .image_1(this.statusBackgroundImage_0()) .showTile_2(2, 0) .position_2(this.statusFieldWidth_0() - Integer.truncate_1((636 * this.scale) / 3), 0) ); }, statusBackgroundHighlightImage_0: function () { return GT1390.prototype .set_0() .file_1("/com/greentube/slot/client/res/bigbutton/console2red.png") .tiling_2(3, 1) .overrideSize_2(Integer.truncate_1((636 * this.scale) / 3), this.consoleHeight); }, statusBackgroundHighlight_0: function () { return GT1186.prototype .set_0() .child_1( GT1392.prototype .set_0() .image_1(this.statusBackgroundHighlightImage_0()) .showTile_2(1, 0) .width_1(this.statusFieldWidth_0() - 2 * Integer.truncate_1((636 * this.scale) / 3) + 20) .position_2(Integer.truncate_1((636 * this.scale) / 3) - 10, 0) ) .child_1(GT1392.prototype.set_0().image_1(this.statusBackgroundHighlightImage_0()).showTile_2(0, 0)) .child_1( GT1392.prototype .set_0() .image_1(this.statusBackgroundHighlightImage_0()) .showTile_2(2, 0) .position_2(this.statusFieldWidth_0() - Integer.truncate_1((636 * this.scale) / 3), 0) ); }, defaultTextAreaSmallLabelBigButton_0: function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(250 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(5, 5, 1, 1); }, defaultValueField_0: function () { return this.defaultValueFieldSmall_0().addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(250 * this.scale)) ); }, defaultValueFieldSmall_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(170 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(145 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(130 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(120 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(110 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(90 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(70 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 1, 1) .breakLines_1(!1); }, defaultValueFieldButton_0: function () { return GT1135.prototype .set_0() .size_2(this.buttonWidth_0(), Integer.truncate_1(52 * this.scale)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(180 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(140 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(100 * this.scale)) ) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .insets_4(10, 10, 5, 5); }, defaultDynamicTextAreaButtonBigButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(180 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(140 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().black_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, GT1391.prototype.set_0().white_0()); }, }, "GT957", [] ), GT998 = GT1412.extend( { initialConstructor_0: function () { this.skyVegasSkinEnabled = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.skyVegasSkinEnabled = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.skyVegasSkinEnabled = b; }, console_2: function (a, b) { a.modify_2(GT834.prototype.ID_SPINNER_AUTOPLAY, GT1303.prototype.set_0().size_2(0, 0).position_2(-1e3, -1e3)); this.skyVegasSkinEnabled || a.replace_2( GT834.prototype.ID_BUTTON_AUTOPLAY_S, GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .size_2(171, 74) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 0)) .child_1( this.autoplayTextBigAndFullyCentered_1(b) .fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)) .outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .text_1("${buttontext_autoplay}") ) .child_1(b.autoplayCounter_0().hide_1(!0).fontColor_1(GT1391.prototype.set_0().compRGB_3(120, 120, 120)).outline_2(1, GT1391.prototype.set_0().compRGB_3(150, 150, 150))) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 1)) .child_1(this.autoplayTextBigAndFullyCentered_1(b).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0().hide_1(!0)) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 2)) .child_1(this.autoplayTextBigAndFullyCentered_1(b).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0().hide_1(!0)) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/b_start.png").tiling_2(1, 4)).showTile_2(0, 3)) .child_1(this.autoplayTextBigAndFullyCentered_1(b).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0().hide_1(!0)) ) ); return a; }, autoplayText_2: function (a, b) { return a.insets_4(10, 10, 0, 15); }, autoplayTextBigAndFullyCentered_1: function (a) { return a .autoplayText_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAY) .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .insets_4(10, 10, 7, 7); }, autoplayCounter_2: function (a, b) { return a.insets_4(10, 10, 25, 0); }, }, "GT998", [] ), GT1155 = GT957.extend( { initialConstructor_0: function () { GT957.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT1155.prototype.initialConstructor_4.call(this, a, b, 0, d); }, initialConstructor_4: function (a, b, d, e) { GT1155.prototype.initialConstructor_5.call(this, a, b, d, GT1046.prototype.GAME_HEIGHT, e); }, initialConstructor_5: function (a, b, d, e, f) { GT957.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, console_2: function (a, b) { return b .defaultConsoleStates_0() .id_1(GT1618.prototype.CONSOLE) .hideStatusBackgroundIfNoText_1(!0) .hideLineSpinnerIfLinesAreFixed_1(!0) .position_2(this.consoleX, 0) .size_2(this.consoleWidth, this.consoleHeight + this.gameHeight) .winText_1("${console_wintext}") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/changebet.mp3") .soundDecideGamble_3("/com/greentube/slot/client/res/decidegamble.mp3", 20, 2460) .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .soundAutoPlayStart_1("/com/greentube/slot/client/res/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .child_1( GT1186.prototype .set_0() .position_2(this.buttonBigWidth_0() + this.gap, this.gameHeight) .size_2(this.statusFieldWidth_0(), this.consoleHeight) .child_1(this.statusBackground_0()) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .position_2(0, Integer.truncate_1(45 * this.scale)) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(67 * this.scale)) .appendixes_2("${console_label_bet}%20", "") ) .child_1(this.statusBackground_0().id_1(GT834.prototype.ID_BACKGROUND_STATUS)) .child_1(this.statusBackgroundHighlight_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT)) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .position_2(0, Integer.truncate_1(45 * this.scale)) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(67 * this.scale)) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_WIN) .position_2(0, Integer.truncate_1(45 * this.scale)) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(67 * this.scale)) .duration_1(3e3) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS) .position_2(0, 0) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(50 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .appendixes_2("${console_label_freerounds_winnings}%20", "") .insets_4(5, 5, 5, 5) .hide_1(!0) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .position_2(0, 0) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(50 * this.scale)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .appendixes_2("${console_label_lastwin}%20", "") .insets_4(5, 5, 5, 5) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(0, 0) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(50 * this.scale)) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(150)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).italic_0().bold_0().size_1(120)) .fontColor_1(GT1391.prototype.set_0().compRGB_3(220, 220, 220)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .insets_4(1, 1, 1, 1) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(50 * this.scale)) .text_1("${console_label_lastwin} ${console_lastwin_na}") ) ) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .position_2(this.buttonBigWidth_0() + this.gap, Integer.truncate_1(107 * this.scale) + this.gameHeight) .size_2(this.statusFieldWidth_0(), Integer.truncate_1(50 * this.scale)) .appendixes_2("${console_label_credit}%20", "") .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") .insets_4(5, 5, 1, 5) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(this.buttonWidth_0() + this.gap, this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .cyclic_1(!0) .buttonUp_1(this.defaultButtonHighlighted_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP)) ) .child_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT1155.prototype.ID_TEXT_BETPERLINE) .position_2(this.buttonWidth_0() + this.gap, this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .text_1("${console_label_betperline}") .insets_4(5, 5, 0, Integer.truncate_1(50 * this.scale)) ) .child_1( this.defaultValueFieldButton_0() .id_1(GT834.prototype.ID_FIELD_BETPERLINE) .position_2(this.buttonWidth_0() + this.gap, Integer.truncate_1(75 * this.scale) + this.gameHeight) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_info.png")) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()) .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(1135, 10) ) .child_1( GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_close.png")) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()) .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .position_2(1135, 10) ) .child_1( GT1392.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_DARK) .imageFile_1("/com/greentube/slot/client/res/bigbutton/display_win_lines.png") .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .cyclic_1(!0) .buttonUp_1(this.defaultButtonHighlighted_0().id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP)) ) .child_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT1155.prototype.ID_TEXT_LINES) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .text_1("${console_label_lines}") .insets_4(5, 5, 0, Integer.truncate_1(50 * this.scale)) ) .child_1( this.defaultValueFieldButton_0() .id_1(GT834.prototype.ID_FIELD_LINES) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight + Integer.truncate_1(75 * this.scale)) ) .child_1( GT1186.prototype .set_0() .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .child_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(250)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(225)) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/bigbutton/info_highlight_supergame.png").insets_4(10, 10, 10, 10)) .insets_4(5, 5, 5, 5) ) ) .child_1( this.defaultButtonHighlighted_0() .id_1(GT834.prototype.ID_BUTTON_START) .position_2(this.consoleWidth - this.buttonWidth_0(), this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_START) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_start}") ) ) .child_1( this.defaultButtonHighlightedSkip_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .position_2(this.consoleWidth - this.buttonWidth_0(), this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_STOP) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_start}") ) ) .child_1( this.defaultButtonHighlightedBig_0() .id_1(GT834.prototype.ID_BUTTON_COLLECT) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(300 * this.scale)) ) .text_1("${buttontext_collect}") ) ) .child_1( this.defaultButtonHighlightedBigSkip_0() .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(300 * this.scale)) ) .text_1("${buttontext_collect}") ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .child_1( this.defaultButtonHighlighted_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAY) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_autoplay}") ) .position_2(0, this.gameHeight) ) .child_1( this.defaultButton_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_AUTOSTOP) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_autostop}") ) .position_2(0, this.gameHeight) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .position_2(0, this.gameHeight) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 0)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 1)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 2)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 3)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOPLAY).text_1("${buttontext_autoplay}")) .child_1(b.autoplayCounter_0()) ) ) .child_1( GT873.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .position_2(0, this.gameHeight) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 0)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 1)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 2)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(b.autoplayCounter_0()) ) .child_1( GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().image_1(this.autoButtonImage_0()).showTile_2(0, 3)) .child_1(this.autoplayText_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP).text_1("${buttontext_autostop}")) .child_1(b.autoplayCounter_0()) ) ) ) .child_1(GT1303.prototype.set_0().id_1(GT834.prototype.ID_SPINNER_AUTOPLAY).size_2(171, 74)) .child_1( this.defaultButtonHighlightedBig_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(300 * this.scale)) ) .text_1("${buttontext_gamble}") ) .position_2(0, this.gameHeight) ); }, autoButtonImage_0: function () { return GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start.png").overrideSize_2(this.buttonWidth_0(), this.buttonHeight_0()).tiling_2(1, 4); }, autoplayText_0: function () { return this.defaultDynamicTextAreaButtonBigButton_0() .size_2(this.buttonWidth_0(), this.buttonHeight_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, Integer.truncate_1(50 * this.scale)); }, autoplayCounter_2: function (a, b) { return GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .size_2(this.buttonWidth_0(), Integer.truncate_1(52 * this.scale)) .position_2(0, Integer.truncate_1(75 * this.scale)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(180 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .insets_4(10, 10, 5, 5); }, defaultConsoleStates_2: function (a, b) { return GT949.prototype .set_0() .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_MAX_BET) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2(GT725.prototype.FASTCOLLECTORGAMBLE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).active_1(GT834.prototype.ID_BUTTON_GAMBLE).active_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2(GT725.prototype.BEFORE_GAMBLE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE)) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2(GT725.prototype.GAMBLE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE)) .state_2(GT725.prototype.GAMBLE_MAXWIN, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2( GT725.prototype.GAMBLE_COLLECTHALF, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) .highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_COLLECTHALF) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2(GT725.prototype.GAMBLE_REDBLACK, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ONLY, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) ); }, defaultPConsoleState_2: function (a, b) { return GT670.prototype .set_0() .active_1(GT834.prototype.ID_FIELD_STATUS) .active_1(GT834.prototype.ID_FIELD_WIN) .active_1(GT834.prototype.ID_FIELD_CREDIT) .active_1(GT1155.prototype.ID_TEXT_BETPERLINE) .active_1(GT1155.prototype.ID_TEXT_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_TOTALBET) .active_1(GT834.prototype.ID_FIELD_SUPERGAMES) .active_1(GT834.prototype.ID_FIELD_BALANCE) .active_1(GT834.prototype.ID_LABEL_CREDIT) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_BET) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .active_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .active_1(GT834.prototype.ID_LABEL_BALANCE); }, }, "GT1155", [] ); GT1155.prototype.ID_TEXT_BETPERLINE = GT1560.prototype.generateID_0(); GT1155.prototype.ID_TEXT_LINES = GT1560.prototype.generateID_0(); var GT628 = GT1155.extend( { initialConstructor_0: function () { GT1155.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT628.prototype.initialConstructor_4.call(this, a, b, 0, d); }, initialConstructor_4: function (a, b, d, e) { GT1155.prototype.initialConstructor_5.call(this, a, b, d, GT526.prototype.GAME_HEIGHT_DYN_SCREENS, e); }, console_2: function (a, b) { return GT1155.prototype.console_2 .call(this, a, b) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE, GT1355.prototype.set_0().position_2(1035, 10 + GT1097.prototype.getSafeAreaHeightTop_0())) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE, GT1355.prototype.set_0().position_2(1035, 10 + GT1097.prototype.getSafeAreaHeightTop_0())); }, }, "GT628", [] ), GT527 = GT957.extend( { initialConstructor_0: function () { GT957.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT957.prototype.initialConstructor_5.call(this, a, b, d, GT1046.prototype.GAME_HEIGHT, e); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_SPINNER_LINES) .remove_1(GT834.prototype.ID_LABEL_LINES) .remove_1(GT834.prototype.ID_FIELD_LINES) .childBefore_2( GT834.prototype.ID_BUTTON_COLLECT, this.defaultButtonHighlighted_0() .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_maxbet}").breakLines_1(!0)) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) ); }, }, "GT527", [] ), GT195 = GT957.extend( { initialConstructor_0: function () { GT957.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT957.prototype.initialConstructor_5.call(this, a, b, d, GT526.prototype.GAME_HEIGHT_DYN_SCREENS, e); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_SPINNER_LINES) .remove_1(GT834.prototype.ID_LABEL_LINES) .remove_1(GT834.prototype.ID_FIELD_LINES) .childBefore_2( GT834.prototype.ID_BUTTON_COLLECT, this.defaultButtonHighlighted_0() .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_maxbet}").breakLines_1(!0)) .position_2(this.consoleWidth - this.buttonBigWidth_0(), this.gameHeight) ); }, }, "GT195", [] ), GT629 = GT1155.extend( { initialConstructor_0: function () { GT1155.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1155.prototype.initialConstructor_4.call(this, a, b, d, e); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .remove_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .remove_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .remove_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .child_1( this.defaultButtonSmall_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .position_2(0, this.buttonHeight_0() - this.buttonSmallHeight_0()) .text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_paytable}").id_1(GT834.prototype.ID_TEXT_PAYTABLE)) ) .replace_2( GT834.prototype.ID_BUTTON_PAYTABLE, this.defaultButtonBig_0().id_1(GT834.prototype.ID_BUTTON_PAYTABLE).position_2(0, 0).text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_paytable}").id_1(GT834.prototype.ID_TEXT_PAYTABLE)) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ); }, defaultButtonBig_0: function () { return GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start.png").overrideSize_2(this.buttonSmallWidth_0(), this.buttonBigHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButtonSmall_0: function () { return GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_small.png").overrideSize_2(this.buttonSmallWidth_0(), this.buttonSmallHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, }, "GT629", [] ), GT1173 = GT1412.extend( { initialConstructor_0: function () { this.visibleArea = null; this.maxWidth = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1173.prototype.initialConstructor_3.call(this, a, Integer.MAX_VALUE, b); }, initialConstructor_3: function (a, b, d) { this.visibleArea = null; this.maxWidth = 0; GT1412.prototype.initialConstructor_1.call(this, d); this.visibleArea = a; this.maxWidth = b; }, defaultScreenWidth_0: function () { return 1536; }, screenWidth_0: function () { return Math.min_2(Math.min_2(this.visibleArea.width, this.defaultScreenWidth_0()), this.maxWidth); }, defaultScreenHeight_0: function () { return 835; }, screenX_0: function () { return this.visibleArea.x + Math.max_2(0, Math.div(this.visibleArea.width - this.screenWidth_0(), 2)); }, defaultScreenY_0: function () { return 0; }, }, "GT1173", [] ), GT997 = GT1173.extend( { initialConstructor_0: function () { GT1173.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT997.prototype.initialConstructor_2.call(this, a, Integer.MAX_VALUE); }, initialConstructor_2: function (a, b) { GT997.prototype.initialConstructor_3.call(this, a, Integer.MAX_VALUE, b); }, initialConstructor_3: function (a, b, d) { GT1173.prototype.initialConstructor_3.call(this, a, b, d); }, mainGui_2: function (a, b) { return a.remove_1(GT1618.prototype.SUPERGAME_CONTAINER).child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.SUPERGAME_CONTAINER)); }, superGame_2: function (a, b) { return null != a ? GT385.prototype.set_0().position_2(this.screenX_0(), this.defaultScreenY_0()).onlyChild_1(a).contentScaledSize_2(this.screenWidth_0(), this.defaultScreenHeight_0()) : a; }, }, "GT997", [] ), GT1097 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, getSlideInOutScreenX_2: function (a, b) { return b.getReelX_0() - 24; }, getSlideInOutScreenY_2: function (a, b) { return b.getReelY_0() - 12; }, getSlideInOutScreenWidth_2: function (a, b) { return GT1097.prototype.getCenteredContainerWidth_0(); }, getSlideInOutScreenHeight_2: function (a, b) { return GT1097.prototype.getCenteredContainerHeight_0(); }, getConsoleElementHeight_0: function () { return 74; }, getReelX_2: function (a, b) { return 215; }, getReelY_2: function (a, b) { return 170; }, reelLayout_2: function (a, b) { return a.symbolHeight_1(GT1097.prototype.getSymbolSize_0()).symbolWidth_1(GT1097.prototype.getSymbolSize_0()).reelDist_1(GT1097.prototype.getReelDistance_0()); }, mainGui_2: function (a, b) { return a.modify_2(GT1618.prototype.BACKGROUND_PARENT_CONTAINER, GT871.prototype.set_0().position_2(0, 0)); }, console_2: function (a, b) { return a .position_2(414, 778 + GT1097.prototype.getSafeAreaHeightTop_0()) .modify_2(GT834.prototype.ID_CONTAINER_STATUS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_CONTAINER_STATUS, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_FIELD_FREEROUNDS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_FREEROUNDS, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_BACKGROUND_STATUS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0() - 10)) .modify_2(GT834.prototype.ID_FIELD_STATUS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_WIN, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_FIELD_LASTWIN, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_LASTWIN, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_FIELD_TOTALROUNDWIN, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_FIELD_TOTALROUNDWIN, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_LABEL_FREEROUNDS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_LABEL_FREEROUNDS, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_LABEL_CREDIT, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_LABEL_CREDIT, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_LABEL_LASTWIN, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_LABEL_LASTWIN, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())) .modify_2(GT834.prototype.ID_LABEL_TOTALROUNDWIN, GT1442.prototype.set_0().height_1(this.getConsoleElementHeight_0())) .modify_2(GT834.prototype.ID_LABEL_TOTALROUNDWIN, GT1240.prototype.set_0().y_1(GT1097.prototype.getConsoleOffsetY_0())); }, defaultRedBlackGamble_2: function (a, b) { return a .imageGambleCard_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/gamble/gamble_card.jpg").separateAlphaRegion_1(!0).overrideSize_2(182, 256)) .gambleHistoryCardPosition_2([0, 80, 160, 240, 320, 400], [0, 0, 0, 0, 0, 0]) .modify_2( GT346.prototype.ID_TEXT_GAMBLEAMOUNT, GT1445.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(210).bold_0()).text_1("${gamble_redblack_info_value_capitalized}").position_2(325, 55) ) .modify_2( GT346.prototype.ID_FIELD_GAMBLEAMOUNT, GT1135.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(260)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .position_2(175, 90) ) .modify_2( GT346.prototype.ID_TEXT_GAMBLETOWIN, GT1445.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(210).bold_0()).text_1("${gamble_redblack_info_forwin_capitalized}").position_2(825, 55) ) .modify_2( GT346.prototype.ID_FIELD_GAMBLETOWIN, GT1135.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(260)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .position_2(675, 90) ) .modify_2(GT346.prototype.ID_CARDS, GT1186.prototype.set_0().position_2(570, 155)) .modify_2( GT346.prototype.ID_TEXT_PREVCARDS, GT1445.prototype .set_0() .hAlign_1(GT1488.prototype.RIGHT) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(210).bold_0()) .text_1("${gamble_redblack_info_history_capitalized}") .position_2(550, 180) ) .modify_2( GT346.prototype.ID_TEXT_INFO, GT1239.prototype .set_0() .size_2(905, 90) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .text_1("${gamble_redblack_info}") .position_2(120, 530) ) .modify_2( GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE, GT1239.prototype .set_0() .size_2(905, 90) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .position_2(120, 530) ) .modify_2(GT346.prototype.ID_TEXT_CONGRATULATION_CONCRETE, GT1240.prototype.set_0().y_1(260)) .modify_2(GT346.prototype.ID_TEXT_CARDSELECTED, GT1445.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(150)).text_1("${gamble_redblack_selected_capitalized}")) .modify_2( GT346.prototype.ID_BUTTON_RED, GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/novo/gamblebutton_r.png").overrideSize_2(GT1097.prototype.getGambleButtonWidth_0(), GT1097.prototype.getGambleButtonHeight_0())) .position_2(125, 280) ) .modify_2(GT346.prototype.ID_TEXT_BUTTON_RED, GT1239.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(190).bold_0())) .modify_2(GT346.prototype.ID_MAINCARD, GT1186.prototype.set_0().position_2(485, 270)) .modify_2( GT346.prototype.ID_BUTTON_BLACK, GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/novo/gamblebutton_b.png").overrideSize_2(GT1097.prototype.getGambleButtonWidth_0(), GT1097.prototype.getGambleButtonHeight_0())) .position_2(700, 280) ) .modify_2(GT346.prototype.ID_TEXT_BUTTON_BLACK, GT1239.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(190).bold_0())); }, defaultWinLines53b10_2: function (a, b) { return a .position_2(133, 0) .lineStartOffset_1(11) .lineStartSpacing_1(60) .size_2(5 * GT1097.prototype.getSymbolSize_0() + 4 * GT1097.prototype.getReelDistance_0() + 165, b.getReelY_0() + 3 * GT1097.prototype.getSymbolSize_0() + 15); }, defaultWinLines53b20_2: function (a, b) { return a .line_2(3, "SX,SY6, R,SY6, SX2.15,SY15, SX2.85,SY15, L,SY6, EX,SY6") .line_2(4, "SX,SY14, R,SY14, SX2.14,SY5, SX2.86,SY5, L,SY14, EX,SY14") .line_2(5, "SX,SY11, R,SY11, SX1.55,SY17.75, SX3.45,SY17.75, L,SY11, EX,SY11") .line_2(6, "SX,SY9, R,SY9, SX1.65,SY2, SX3.35,SY2, L,SY9, EX,SY9") .line_2(11, "SX,SY12, R,SY12, MX1,SY17, R,SY16, SX3.12,SY5.2, R,SY5.2, SX4.2,SY8, EX,SY8") .line_2(12, "SX,SY8, R,SY8, SX1.2,SY5, R,SY5, SX3.13,SY14.9, R,SY14.9, SX4.2,SY12, EX,SY12"); }, defaultWinLines53b20Net_2: function (a, b) { return a .position_2(133, 0) .size_2(5 * GT1097.prototype.getSymbolSize_0() + 4 * GT1097.prototype.getReelDistance_0() + 165, b.getReelY_0() + 3 * GT1097.prototype.getSymbolSize_0() + 5) .reelContainerOffset_2(81, b.getReelY_0()) .lineStartSpacing_1(30); }, defaultWinLines53b25_2: function (a, b) { return a .line_2(0, "SX,SY13, A -----, EX,SY13") .line_2(1, "SX,SY04, A ^^^^^, EX,SY04") .line_2(2, "SX,SY22, A _____, EX,SY22") .line_2(3, "SX,SY06, A ^-_-^, EX,SY06") .line_2(4, "SX,SY20, A _-^-_, EX,SY20") .line_2(5, "SX,SY14, A -___-, EX,SY14") .line_2(6, "SX,SY12, A -^^^-, EX,SY12") .line_2(7, "SX,SY23, A __-^^, EX,SY03") .line_2(8, "SX,SY03, A ^^-__, EX,SY23") .line_2(9, "SX,SY19, A _---^, EX,SY07") .line_2(10, "SX,SY07, A ^---_, EX,SY19") .line_2(11, "SX,SY15, A -_-^-, EX,SY11") .line_2(12, "SX,SY11, A -^-_-, EX,SY15") .line_2(13, "SX,SY05, A ^-^-^, EX,SY05") .line_2(14, "SX,SY21, A _-_-_, EX,SY21") .line_2(15, "SX,SY10, A --^--, EX,SY10") .line_2(16, "SX,SY16, A --_--, EX,SY16") .line_2(17, "SX,SY02, A ^_^_^, EX,SY02") .line_2(18, "SX,SY24, A _^_^_, EX,SY24") .line_2(19, "SX,SY26, A _^-^_, EX,SY26") .line_2(20, "SX,SY00, A ^_-_^, EX,SY00") .line_2(21, "SX,SY01, A ^^_^^, EX,SY01") .line_2(22, "SX,SY25, A __^__, EX,SY25") .line_2(23, "SX,SY09, A -^_^-, EX,SY09") .line_2(24, "SX,SY17, A -_^_-, EX,SY17"); }, defaultWinLines53b25Net_2: function (a, b) { return a .position_2(133, 0) .size_2(5 * GT1097.prototype.getSymbolSize_0() + 4 * GT1097.prototype.getReelDistance_0() + 165, b.getReelY_0() + 3 * GT1097.prototype.getSymbolSize_0() + 5) .reelContainerOffset_2(84, b.getReelY_0()) .lineStartOffset_1(13) .lineStartSpacing_1(23); }, defaultWinLines54a40_2: function (a, b) { return a .line_2(4, "SX,SY4, R,SY4, SX1.5,MY1, R,MY1, SX2.5,MY2, R,MY2, SX3.44,MY1, R,MY1, SX4.36,SY4, EX,SY4") .line_2(5, "SX,SY18, R,SY18, SX1.5,MY2, R,MY2, SX2.5,MY3, R,MY3, SX3.43,MY2, R,MY2, SX4.2,SY18, EX,SY18") .line_2(6, "SX,SY25, R,SY25, SX1.5,MY1, R,MY1, SX2.45,MY0, R,MY0, SX3.5,MY1, R,MY1, SX4.275,SY25, EX,SY25") .line_2(7, "SX,SY38, R,SY38, SX1.45,MY2, R,MY2, SX2.625,SY13, R,SY13, SX3.475,MY2, R,MY3, SX4.65,SY38, EX,SY38") .line_2(8, "SX,SY2, R,SY2, MX3,SY2, R,SY2, SX4,SY9, EX,SY9") .line_2(9, "SX,SY9, R,SY9, SX4.525,SY2, EX,SY2") .line_2(10, "SX,SY32, R,SY32, SX4.485,SY39, EX,SY39") .line_2(11, "SX,SY39, R,SY39, SX4.05,SY32, EX,SY32") .line_2(12, "SX,SY1, R,SY1, SX1.245,SY12, EX,SY12") .line_2(13, "SX,SY15, R,SY15, SX4.05,SY22, EX,SY22") .line_2(14, "SX,SY26, R,SY26, SX4.15,SY19, EX,SY19") .line_2(15, "SX,SY40, R,SY40, SX1.15,SY31, EX,SY31") .line_2(16, "SX,SY14, R,SY14, SX1.65,SY1, EX,SY1") .line_2(17, "SX,SY12, R,SY12, SX1.655,SY29, EX,SY29") .line_2(19, "SX,SY31, R,SY31, SX1.625,SY41, EX,SY41") .line_2(20, "SX,SY3, R,SY3, SX3.475,MY1, R,MY1, SX4.4,SY26, EX,SY26") .line_2(21, "SX,SY19, R,SY19, SX3.475,MY2, R,MY2, SX4.275,SY37, EX,SY37") .line_2(23, "SX,SY37, R,SY37, SX3.475,MY2, R,MY2, SX4.475,SY15, EX,SY15") .line_2(24, "SX,SY7, R,SY7, SX1.475,MY1, R,MY1, SX2.475,SY27, EX,SY27") .line_2(25, "SX,SY16, R,SY16, SX1.44,MY2, R,MY2, SX2.53,SY40, EX,SY40") .line_2(26, "SX,SY27, R,SY27, SX1.475,MY1, R,MY1, SX2.475,SY3, EX,SY3") .line_2(27, "SX,SY41, R,SY41, SX1.475,MY2, R,MY2, SX2.4,SY16, EX,SY16") .line_2(29, "SX,SY11, R,SY11, SX2.21,SY6, R,SY6, SX3.135,SY11, EX,SY11") .line_2(30, "SX,SY30, R,SY30, SX2.375,SY38, R,SY38, SX3.22,SY30, EX,SY30") .line_2(32, "SX,SY6, R,SY6, SX1.45,SY14.9, R,SY14.9, SX4.225,SY6, EX,SY6") .line_2(34, "SX,SY24, R,SY24, SX2.15,SY19, R,SY19, SX3.2,SY24, EX,SY24") .line_2(36, "SX,SY10, R,SY10, SX1.4,SY4, R,SY4, SX4.05,SY10, EX,SY10") .line_2(39, "SX,SY33, R,SY33, SX1.5175,SY40, MX3,SY40, L,SY33, EX,SY33"); }, defaultWinLines54a40Net_2: function (a, b) { return a .position_2(133, 0) .lineThickness_1(4) .outlineThickness_1(1) .lineStartOffset_1(39) .size_2(5 * GT1097.prototype.getSymbolSize_0() + 4 * GT1097.prototype.getReelDistance_0() + 165, b.getReelY_0() + 3 * GT1097.prototype.getSymbolSize_0() + 5) .reelContainerOffset_2(83, b.getReelY_0()); }, defaultWinLines54a50_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 624 + 5) .reelContainerOffset_2(83, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14) .line_2(4, "SX,SY4, R,SY4, MX2,SY38.5, L,SY4, EX,SY4") .line_2(5, "SX,SY29, SX0.99,SY29, MX2,SY54.3, SX4.01,SY29, EX,SY29") .line_2(6, "SX,SY30, SX0.99,SY30, MX2,SY7, SX4.01,SY30, EX,SY30") .line_2(7, "SX,SY55, R,SY55, MX2,SY21, L,SY55, EX,SY55") .line_2(8, "SX,SY1, R,SY1, SX3.2,SY1, L,SY19, EX,SY19") .line_2(9, "SX,SY19, R,SY19, SX3.7,SY19, L,SY5, EX,SY5") .line_2(10, "SX,SY40, R,SY40, SX3.7,SY40, L,SY54, EX,SY54") .line_2(11, "SX,SY58, R,SY58, SX3.2,SY58, L,SY40, EX,SY40") .line_2(12, "SX,SY3, R,SY3, SX1.06,SY15, EX,SY15") .line_2(13, "SX,SY21, R,SY21, MX3,SY21, L,SY33, EX,SY33") .line_2(14, "SX,SY38, R,SY38, MX3,SY38, L,SY26, EX,SY26") .line_2(15, "SX,SY56, R,SY56, SX1.1,SY44, EX,SY44") .line_2(16, "SX,SY15, R,SY15, SX1.7,SY3, EX,SY3") .line_2(17, "SX,SY25, R,SY25, SX1.5,SY38, L,SY38, EX,SY38") .line_2(18, "SX,SY34, R,SY34, SX1.5,SY21, L,SY21, EX,SY21") .line_2(19, "SX,SY44, R,SY44, SX1.64,SY56, EX,SY56") .line_2(20, "SX,SY5, SX2.48,SY5, L,SY32, EX,SY32") .line_2(21, "SX,SY27, SX2.88,SY27, L,SY58, EX,SY58") .line_2(22, "SX,SY32, SX2.94,SY32, L,SY1, EX,SY1") .line_2(23, "SX,SY54, SX2.52,SY54, L,SY27, EX,SY27") .line_2(24, "SX,SY7, R,SY7, SX2.2,SY34, EX,SY34") .line_2(25, "SX,SY28, R,SY28, SX2.36,SY52, EX,SY52") .line_2(26, "SX,SY31, R,SY31, SX2.4,SY7, EX,SY7") .line_2(27, "SX,SY52, R,SY52, SX2.24,SY25, EX,SY25") .line_2(28, "SX,SY2, R,SY2, MX2,SY22, L,SY2, EX,SY2") .line_2(29, "SX,SY18, R,SY18, MX2,SY6, L,SY18, EX,SY18") .line_2(30, "SX,SY41, R,SY41, MX2,SY53.5, L,SY41, EX,SY41") .line_2(31, "SX,SY57, R,SY57, MX2,SY37, L,SY57, EX,SY57") .line_2(32, "SX,SY6, R,SY6, SX1.1,SY16, R,SY16, SX4.48,SY6, EX,SY6") .line_2(33, "SX,SY22, R,SY22, MX2,SY38, L,SY22, EX,SY22") .line_2(34, "SX,SY37, R,SY37, MX2,SY21, L,SY37, EX,SY37") .line_2(35, "SX,SY53, R,SY53, SX1.15,SY43, SX3.85,SY43, L,SY53, EX,SY53") .line_2(36, "SX,SY16, R,SY16, SX1.34,SY8, SX3.66,SY8, L,SY16, EX,SY16") .line_2(37, "SX,SY24, R,SY24, SX1.21,SY34, SX3.79,SY34, L,SY24, EX,SY24") .line_2(38, "SX,SY35, R,SY35, SX1.21,SY26, SX3.79,SY26, L,SY35, EX,SY35") .line_2(39, "SX,SY43, R,SY43, SX1.34,SY51, SX3.66,SY51, L,SY43, EX,SY43") .line_2(40, "SX,SY17, R,SY17, SX1.18,SY11, R,SY11, SX2.15,SY17, R,SY17, SX3.18,SY11, R,SY11, SX4.15,SY17, EX,SY17") .line_2(41, "SX,SY36, R,SY36, SX1.06,SY28, R,SY28, SX2.39,SY36, R,SY36, SX3.06,SY28, R,SY28, SX4.39,SY36, EX,SY36") .line_2(42, "SX,SY51, R,SY51, SX1.3,SY40, R,SY40, SX2.33,SY51, R,SY51, SX3.3,SY40, R,SY40, SX4.33,SY51, EX,SY51") .line_2(43, "SX,SY8, R,SY8, SX1.3,SY19, R,SY19, SX2.33,SY8, R,SY8, SX3.3,SY19, R,SY19, SX4.33,SY8, EX,SY8") .line_2(44, "SX,SY23, R,SY23, SX1.35,SY36, R,SY36, SX2.41,SY23, R,SY23, SX3.35,SY36, R,SY36, SX4.41,SY23, EX,SY23") .line_2(45, "SX,SY42, R,SY42, SX1.25,SY50, R,SY50, SX2.2,SY42, R,SY42, SX3.25,SY50, R,SY50, SX4.2,SY42, EX,SY42") .line_2(46, "SX,SY14, R,SY14, MX0,SY22, SX1.28,SY9, R,SY9, SX3.26,SY35, R,SY35, SX4.96,SY14, EX,SY14") .line_2(47, "SX,SY33, R,SY33, SX1.20,SY26, R,SY26, SX3.42,SY53, R,SY53, SX4.91,SY31, EX,SY31") .line_2(48, "SX,SY26, R,SY26, SX1.13,SY33, R,SY33, SX3.22,SY10, R,SY10, SX4.87,SY28, EX,SY28") .line_2(49, "SX,SY45, R,SY45, SX1.56,SY55, R,SY55, SX3.31,SY24, R,SY24, SX4.91,SY45, EX,SY45"); }, defaultWinLines54a50Net_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 832 + 5) .reelContainerOffset_2(81, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14); }, defaultWinLines54a100_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 624 + 5) .reelContainerOffset_2(83, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14) .line_2(0, "SX,SY7, A ^^^^^, EX,SY7") .line_2(1, "SX,SY22, A -----, EX,SY22") .line_2(2, "SX,SY37, A _____, EX,SY37") .line_2(3, "SX,SY52, A VVVVV, EX,SY52") .line_2(4, "SX,SY7, A ^-_-^, EX,SY7") .line_2(5, "SX,SY22, A -_V_-, EX,SY22") .line_2(6, "SX,SY37, A _-^-_, EX,SY37") .line_2(7, "SX,SY52, A V_-_V, EX,SY52") .line_2(8, "SX,SY7, A ^^^^-, EX,SY22") .line_2(9, "SX,SY22, A ----^, EX,SY7") .line_2(10, "SX,SY37, A ____V, EX,SY52") .line_2(11, "SX,SY52, A VVVV_, EX,SY37") .line_2(12, "SX,SY7, A ^----, EX,SY22") .line_2(13, "SX,SY22, A ----_, EX,SY37") .line_2(14, "SX,SY37, A ____-, EX,SY22") .line_2(15, "SX,SY52, A V____, EX,SY37") .line_2(16, "SX,SY22, A -^^^^, EX,SY7") .line_2(17, "SX,SY22, A -____, EX,SY37") .line_2(18, "SX,SY37, A _----, EX,SY22") .line_2(19, "SX,SY37, A _VVVV, EX,SY52") .line_2(20, "SX,SY7, A ^^^-_, EX,SY37") .line_2(21, "SX,SY22, A ---_V, EX,SY52") .line_2(22, "SX,SY37, A ___-^, EX,SY7") .line_2(23, "SX,SY52, A VVV_-, EX,SY22") .line_2(24, "SX,SY7, A ^-___, EX,SY37") .line_2(25, "SX,SY22, A -_VVV, EX,SY52") .line_2(26, "SX,SY37, A _-^^^, EX,SY7") .line_2(27, "SX,SY52, A V_---, EX,SY22") .line_2(28, "SX,SY7, A ^^-^^, EX,SY7") .line_2(29, "SX,SY22, A --^--, EX,SY22") .line_2(30, "SX,SY37, A __V__, EX,SY37") .line_2(31, "SX,SY52, A VV_VV, EX,SY52") .line_2(32, "SX,SY7, A ^---^, EX,SY7") .line_2(33, "SX,SY22, A --_--, EX,SY22") .line_2(34, "SX,SY37, A __-__, EX,SY37") .line_2(35, "SX,SY52, A V___V, EX,SY52") .line_2(36, "SX,SY22, A -^^^-, EX,SY22") .line_2(37, "SX,SY22, A -___-, EX,SY22") .line_2(38, "SX,SY37, A _---_, EX,SY37") .line_2(39, "SX,SY37, A _VVV_, EX,SY37") .line_2(40, "SX,SY22, A -^-^-, EX,SY22") .line_2(41, "SX,SY37, A _-_-_, EX,SY37") .line_2(42, "SX,SY52, A V_V_V, EX,SY52") .line_2(43, "SX,SY7, A ^-^-^, EX,SY7") .line_2(44, "SX,SY22, A -_-_-, EX,SY22") .line_2(45, "SX,SY37, A _V_V_, EX,SY37") .line_2(46, "SX,SY22, A -^-_-, EX,SY22") .line_2(47, "SX,SY37, A _-_V_, EX,SY37") .line_2(48, "SX,SY22, A -_-^-, EX,SY22") .line_2(49, "SX,SY37, A _V_-_, EX,SY37") .line_2(50, "SX,SY52, A VV___, EX,SY37") .line_2(51, "SX,SY37, A __---, EX,SY22") .line_2(52, "SX,SY22, A --^^^, EX,SY7") .line_2(53, "SX,SY7, A ^^---, EX,SY22") .line_2(54, "SX,SY22, A --___, EX,SY37") .line_2(55, "SX,SY37, A __VVV, EX,SY52") .line_2(56, "SX,SY52, A VVV__, EX,SY37") .line_2(57, "SX,SY37, A ___--, EX,SY22") .line_2(58, "SX,SY22, A ---^^, EX,SY7") .line_2(59, "SX,SY7, A ^^^--, EX,SY22") .line_2(60, "SX,SY22, A ---__, EX,SY37") .line_2(61, "SX,SY37, A ___VV, EX,SY52") .line_2(62, "SX,SY52, A V_-^^, EX,SY7") .line_2(63, "SX,SY7, A ^-_VV, EX,SY52") .line_2(64, "SX,SY52, A VV_-^, EX,SY7") .line_2(65, "SX,SY7, A ^^-_V, EX,SY52") .line_2(66, "SX,SY52, A V___-, EX,SY22") .line_2(67, "SX,SY37, A _---^, EX,SY7") .line_2(68, "SX,SY7, A ^---_, EX,SY37") .line_2(69, "SX,SY22, A -___V, EX,SY52") .line_2(70, "SX,SY52, A V__VV, EX,SY52") .line_2(71, "SX,SY37, A _--__, EX,SY37") .line_2(72, "SX,SY22, A -^^--, EX,SY22") .line_2(73, "SX,SY37, A _VV__, EX,SY37") .line_2(74, "SX,SY22, A -__--, EX,SY22") .line_2(75, "SX,SY7, A ^--^^, EX,SY7") .line_2(76, "SX,SY52, A VV__V, EX,SY52") .line_2(77, "SX,SY37, A __--_, EX,SY37") .line_2(78, "SX,SY22, A --^^-, EX,SY22") .line_2(79, "SX,SY7, A ^^--^, EX,SY7") .line_2(80, "SX,SY22, A --__-, EX,SY22") .line_2(81, "SX,SY37, A __VV_, EX,SY37") .line_2(82, "SX,SY52, A VV_--, EX,SY22") .line_2(83, "SX,SY37, A __-^^, EX,SY7") .line_2(84, "SX,SY7, A ^^-__, EX,SY37") .line_2(85, "SX,SY22, A --_VV, EX,SY52") .line_2(86, "SX,SY22, A -^---, EX,SY22") .line_2(87, "SX,SY37, A _-___, EX,SY37") .line_2(88, "SX,SY52, A V_VVV, EX,SY52") .line_2(89, "SX,SY7, A ^-^^^, EX,SY7") .line_2(90, "SX,SY22, A -_---, EX,SY22") .line_2(91, "SX,SY37, A _V___, EX,SY37") .line_2(92, "SX,SY52, A V_--_, EX,SY37") .line_2(93, "SX,SY37, A _-^^-, EX,SY22") .line_2(94, "SX,SY22, A -_VV_, EX,SY37") .line_2(95, "SX,SY7, A ^-__-, EX,SY22") .line_2(96, "SX,SY22, A -^^-_, EX,SY37") .line_2(97, "SX,SY37, A _--_V, EX,SY52") .line_2(98, "SX,SY37, A _VV_-, EX,SY22") .line_2(99, "SX,SY22, A -__-^, EX,SY7"); }, defaultWinLines54b100_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 624 + 5) .reelContainerOffset_2(83, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14) .line_2(0, "SX,SY7, A ^^^^^, EX,SY7") .line_2(1, "SX,SY7, A ^^^^-, EX,SY22") .line_2(2, "SX,SY7, A ^^^--, EX,SY22") .line_2(3, "SX,SY7, A ^^^-_, EX,SY37") .line_2(4, "SX,SY7, A ^^-^^, EX,SY7") .line_2(5, "SX,SY7, A ^^--^, EX,SY7") .line_2(6, "SX,SY7, A ^^---, EX,SY22") .line_2(7, "SX,SY7, A ^^-__, EX,SY37") .line_2(8, "SX,SY7, A ^^-_V, EX,SY52") .line_2(9, "SX,SY7, A ^-^^^, EX,SY7") .line_2(10, "SX,SY7, A ^-^-^, EX,SY7") .line_2(11, "SX,SY7, A ^--^^, EX,SY7") .line_2(12, "SX,SY7, A ^---^, EX,SY7") .line_2(13, "SX,SY7, A ^----, EX,SY22") .line_2(14, "SX,SY7, A ^---_, EX,SY37") .line_2(15, "SX,SY7, A ^-_-^, EX,SY7") .line_2(16, "SX,SY7, A ^-__-, EX,SY22") .line_2(17, "SX,SY7, A ^-___, EX,SY37") .line_2(18, "SX,SY7, A ^-_VV, EX,SY52") .line_2(19, "SX,SY22, A -^^^^, EX,SY7") .line_2(20, "SX,SY22, A -^^^-, EX,SY22") .line_2(21, "SX,SY22, A -^^--, EX,SY22") .line_2(22, "SX,SY22, A -^^-_, EX,SY37") .line_2(23, "SX,SY22, A -^-^-, EX,SY22") .line_2(24, "SX,SY22, A -^---, EX,SY22") .line_2(25, "SX,SY22, A -^-_-, EX,SY22") .line_2(26, "SX,SY22, A --^^^, EX,SY7") .line_2(27, "SX,SY22, A --^^-, EX,SY22") .line_2(28, "SX,SY22, A --^--, EX,SY22") .line_2(29, "SX,SY22, A ---^^, EX,SY7") .line_2(30, "SX,SY22, A ----^, EX,SY7") .line_2(31, "SX,SY22, A -----, EX,SY22") .line_2(32, "SX,SY22, A ----_, EX,SY37") .line_2(33, "SX,SY22, A ---__, EX,SY37") .line_2(34, "SX,SY22, A ---_V, EX,SY52") .line_2(35, "SX,SY22, A --_--, EX,SY22") .line_2(36, "SX,SY22, A --__-, EX,SY22") .line_2(37, "SX,SY22, A --___, EX,SY37") .line_2(38, "SX,SY22, A --_VV, EX,SY52") .line_2(39, "SX,SY22, A -_-^-, EX,SY22") .line_2(40, "SX,SY22, A -_---, EX,SY22") .line_2(41, "SX,SY22, A -_-_-, EX,SY22") .line_2(42, "SX,SY22, A -__-^, EX,SY7") .line_2(43, "SX,SY22, A -__--, EX,SY22") .line_2(44, "SX,SY22, A -___-, EX,SY22") .line_2(45, "SX,SY22, A -____, EX,SY37") .line_2(46, "SX,SY22, A -___V, EX,SY52") .line_2(47, "SX,SY22, A -_V_-, EX,SY22") .line_2(48, "SX,SY22, A -_VV_, EX,SY37") .line_2(49, "SX,SY22, A -_VVV, EX,SY52") .line_2(50, "SX,SY37, A _-^^^, EX,SY7") .line_2(51, "SX,SY37, A _-^^-, EX,SY22") .line_2(52, "SX,SY37, A _-^-_, EX,SY37") .line_2(53, "SX,SY37, A _---^, EX,SY7") .line_2(54, "SX,SY37, A _----, EX,SY22") .line_2(55, "SX,SY37, A _---_, EX,SY37") .line_2(56, "SX,SY37, A _--__, EX,SY37") .line_2(57, "SX,SY37, A _--_V, EX,SY52") .line_2(58, "SX,SY37, A _-_-_, EX,SY37") .line_2(59, "SX,SY37, A _-___, EX,SY37") .line_2(60, "SX,SY37, A _-_V_, EX,SY37") .line_2(61, "SX,SY37, A __-^^, EX,SY7") .line_2(62, "SX,SY37, A __---, EX,SY22") .line_2(63, "SX,SY37, A __--_, EX,SY37") .line_2(64, "SX,SY37, A __-__, EX,SY37") .line_2(65, "SX,SY37, A ___-^, EX,SY7") .line_2(66, "SX,SY37, A ___--, EX,SY22") .line_2(67, "SX,SY37, A ____-, EX,SY22") .line_2(68, "SX,SY37, A _____, EX,SY37") .line_2(69, "SX,SY37, A ____V, EX,SY52") .line_2(70, "SX,SY37, A ___VV, EX,SY52") .line_2(71, "SX,SY37, A __V__, EX,SY37") .line_2(72, "SX,SY37, A __VV_, EX,SY37") .line_2(73, "SX,SY37, A __VVV, EX,SY52") .line_2(74, "SX,SY37, A _V_-_, EX,SY37") .line_2(75, "SX,SY37, A _V___, EX,SY37") .line_2(76, "SX,SY37, A _V_V_, EX,SY37") .line_2(77, "SX,SY37, A _VV_-, EX,SY22") .line_2(78, "SX,SY37, A _VV__, EX,SY37") .line_2(79, "SX,SY37, A _VVV_, EX,SY37") .line_2(80, "SX,SY37, A _VVVV, EX,SY52") .line_2(81, "SX,SY52, A V_-^^, EX,SY7") .line_2(82, "SX,SY52, A V_---, EX,SY22") .line_2(83, "SX,SY52, A V_--_, EX,SY37") .line_2(84, "SX,SY52, A V_-_V, EX,SY52") .line_2(85, "SX,SY52, A V___-, EX,SY22") .line_2(86, "SX,SY52, A V____, EX,SY37") .line_2(87, "SX,SY52, A V___V, EX,SY52") .line_2(88, "SX,SY52, A V__VV, EX,SY52") .line_2(89, "SX,SY52, A V_V_V, EX,SY52") .line_2(90, "SX,SY52, A V_VVV, EX,SY52") .line_2(91, "SX,SY52, A VV_-^, EX,SY7") .line_2(92, "SX,SY52, A VV_--, EX,SY22") .line_2(93, "SX,SY52, A VV___, EX,SY37") .line_2(94, "SX,SY52, A VV__V, EX,SY52") .line_2(95, "SX,SY52, A VV_VV, EX,SY52") .line_2(96, "SX,SY52, A VVV_-, EX,SY22") .line_2(97, "SX,SY52, A VVV__, EX,SY37") .line_2(98, "SX,SY52, A VVVV_, EX,SY37") .line_2(99, "SX,SY52, A VVVVV, EX,SY52"); }, defaultWinLines54a100Net_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 832 + 5) .reelContainerOffset_2(81, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14) .margin_1(82); }, defaultWinLines54b100Net_2: function (a, b) { return a .position_2(133, 0) .size_2(1269, b.getReelY_0() + 832 + 5) .reelContainerOffset_2(81, b.getReelY_0()) .lineStartSpacing_1(10) .lineStartOffset_1(14) .margin_1(82); }, defaultFreeGameStartEndScreen_2: function (a, b) { return a.position_2(b.getReelX_0() - 24, b.getReelY_0() - 12).size_2(GT1097.prototype.getCenteredContainerWidth_0(), GT1097.prototype.getCenteredContainerHeight_0()); }, }, "GT1097", [] ); GT1097.prototype.getGambleButtonHeight_0 = function () { return 228; }; GT1097.prototype.getGambleButtonWidth_0 = function () { return 320; }; GT1097.prototype.getConsoleOffsetY_0 = function () { return 12; }; GT1097.prototype.getSafeAreaHeightBottom_0 = function () { return 36; }; GT1097.prototype.getSafeAreaHeightTop_0 = function () { return 28; }; GT1097.prototype.getCenteredContainerHeight_0 = function () { return 648; }; GT1097.prototype.getCenteredContainerWidth_0 = function () { return 1152; }; GT1097.prototype.getReelDistance_0 = function () { return 16; }; GT1097.prototype.getSymbolSize_0 = function () { return 208; }; var GT678 = GT1412.extend( { initialConstructor_0: function () { this.height = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.height = 0; GT1412.prototype.initialConstructor_1.call(this, b); this.height = a.height; }, backgroundWidth_0: function () { return 2048; }, backgroundHeight_0: function () { return 1024; }, slotBackground_2: function (a, b) { return this.height > this.backgroundHeight_0() ? GT1186.prototype .set_0() .size_2(this.backgroundWidth_0(), this.height) .child_1( GT1186.prototype .set_0() .position_2(0, this.height - this.backgroundHeight_0()) .child_1(a) ) .child_1(a) : a; }, slotBackgroundInFreeGames_2: function (a, b) { return this.height > this.backgroundHeight_0() ? GT1186.prototype .set_0() .size_2(this.backgroundWidth_0(), this.height) .child_1( GT1186.prototype .set_0() .position_2(0, this.height - this.backgroundHeight_0()) .child_1(a) ) .child_1(a) : a; }, }, "GT678", [] ), GT278 = GT1412.extend( { initialConstructor_0: function () { this.height = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.height = 0; GT1412.prototype.initialConstructor_1.call(this, b); this.height = a.height; }, backgroundWidth_0: function () { return 2048; }, backgroundHeight_0: function () { return 1024; }, slotBackground_2: function (a, b) { return this.height + GT1097.prototype.getSafeAreaHeightBottom_0() > this.backgroundHeight_0() ? GT1186.prototype .set_0() .size_2(this.backgroundWidth_0(), this.height + GT1097.prototype.getSafeAreaHeightBottom_0()) .child_1( GT1186.prototype .set_0() .position_2(0, this.height + GT1097.prototype.getSafeAreaHeightBottom_0() - this.backgroundHeight_0()) .child_1(a) ) .child_1(a) : a; }, slotBackgroundInFreeGames_2: function (a, b) { return this.height + GT1097.prototype.getSafeAreaHeightBottom_0() > this.backgroundHeight_0() ? GT1186.prototype .set_0() .size_2(this.backgroundWidth_0(), this.height + GT1097.prototype.getSafeAreaHeightBottom_0()) .child_1( GT1186.prototype .set_0() .position_2(0, this.height + GT1097.prototype.getSafeAreaHeightBottom_0() - this.backgroundHeight_0()) .child_1(a) ) .child_1(a) : a; }, }, "GT278", [] ), GT1099 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultPConsoleState_2: function (a, b) { return a.active_1(GT834.prototype.ID_LABEL_FREEROUNDS).active_1(GT834.prototype.ID_FIELD_FREEROUNDS).active_1(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS).active_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_LABEL_CREDIT) .remove_1(GT834.prototype.ID_FIELD_CREDIT) .remove_1(GT834.prototype.ID_LABEL_LASTWIN) .remove_1(GT834.prototype.ID_FIELD_LASTWIN) .remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER); }, }, "GT1099", [] ), GT792 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL + 1); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, paytable_2: function (a, b) { return instanceOf(a, GT1100) ? a.soundClose_1(null).soundOpen_1(null) : a; }, console_2: function (a, b) { return a.modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1135.prototype.set_0().soundCountEnd_1(null)).soundAutoPlayStart_1(null).soundAutoPlayStop_1(null).soundForAutoPlayForcedStop_1(null); }, gamble_2: function (a, b) { return instanceOf(a, GT785) ? a.soundClose_1(null).soundOpen_1(null).soundGambleLoopPositions_3(0, 6500, 500) : a; }, reels_2: function (a, b) { return null != a && instanceOf(a, GT1252) ? a.removeTeaserSounds_0() : a; }, reelsInFreeGames_2: function (a, b) { return null != a && instanceOf(a, GT1252) ? a.removeTeaserSounds_0() : a; }, defaultReel_2: function (a, b) { return a.stopSound_1(null); }, freeGameSounds_2: function (a, b) { return a.removeAllFileSpecificBackgroundReducedVolume_0(); }, }, "GT792", [] ), GT995 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a.remove_1(GT834.prototype.ID_SPINNER_LINES).remove_1(GT834.prototype.ID_LABEL_LINES).remove_1(GT834.prototype.ID_FIELD_LINES).child_1(GT995.prototype.defaultHighlightedMaxBetButton_0()); }, }, "GT995", [] ); GT995.prototype.defaultDynamicTextAreaMaxBetButton_0 = function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(115)) .fontColor_1(GT1391.prototype.set_0().black_0()) .outline_2(1, GT1391.prototype.set_0().white_0()) .insets_4(10, 10, 7, 7) .breakLines_1(!1); }; GT995.prototype.defaultHighlightedMaxBetButton_0 = function () { return GT613.prototype .set_0() .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .imageFile_1("/com/greentube/slot/client/res/b_maxbet.png") .text_1(GT995.prototype.defaultDynamicTextAreaMaxBetButton_0().text_1("${buttontext_maxbet}")) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(360, 118); }; var GT996 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, gamble_2: function (a, b) { return instanceOf(a, GT785) ? a .gambleHistoryCardPosition_2([0, 85, 170, 255, 340, 425], [7, 7, 7, 7, 7, 7]) .remove_1(GT346.prototype.ID_TEXT_CARDSELECTED) .remove_1(GT346.prototype.ID_BUTTON_RED) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_RED) .position_2(100, 305) .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_gamble_red.png") .text_1(this.defaultDynamicTextAreaButtonBigButton_0().id_1(GT346.prototype.ID_TEXT_BUTTON_RED).text_1("${buttontext_gamblered}")) ) .remove_1(GT346.prototype.ID_BUTTON_BLACK) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_BLACK) .position_2(782, 305) .imageFile_1("/com/greentube/slot/client/res/bigbutton/b_gamble_black.png") .text_1(this.defaultDynamicTextAreaButtonBigButton_0().id_1(GT346.prototype.ID_TEXT_BUTTON_BLACK).text_1("${buttontext_gambleblack}")) ) .remove_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .remove_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT) .remove_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .remove_1(GT346.prototype.ID_FIELD_GAMBLETOWIN) .child_1( GT871.prototype .set_0() .id_1(GT996.prototype.ID_CONTAINER_GAMBLEAMOUNT) .position_2(65, 83) .size_2(800, 45) .horizontal_0() .verticalAlignment_1(GT1489.prototype.BOTTOM) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .text_1("${gamble_redblack_info_value_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(210)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.BOTTOM) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(this.defaultDynamicTextAreaGamble_0().id_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT).size_2(250, 45)) ) .child_1( GT871.prototype .set_0() .id_1(GT996.prototype.ID_CONTAINER_GAMBLETOWIN) .position_2(65, 137) .size_2(800, 45) .horizontal_0() .verticalAlignment_1(GT1489.prototype.BOTTOM) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .text_1("${gamble_redblack_info_forwin_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(210)) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.LEFT) .vAlign_1(GT1489.prototype.BOTTOM) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1(this.defaultDynamicTextAreaGamble_0().id_1(GT346.prototype.ID_FIELD_GAMBLETOWIN).size_2(250, 45)) ) .modify_2( GT346.prototype.ID_TEXT_PREVCARDS, GT1445.prototype .set_0() .position_2(1157, 204) .text_1("${gamble_redblack_info_history_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .hAlign_1(GT1488.prototype.RIGHT) ) .modify_2(GT346.prototype.ID_MAINCARD, GT1186.prototype.set_0().position_2(515, 240)) .modify_2(GT346.prototype.ID_CARDS, GT1186.prototype.set_0().position_2(745, 80)) .modify_2( GT346.prototype.ID_TEXT_INFO, GT1239.prototype .set_0() .position_2(Math.div(232, 2), 540) .size_2(1e3, 130) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .modify_2( GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE, GT1239.prototype .set_0() .position_2(Math.div(232, 2), 540) .size_2(1e3, 130) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(190)) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .modify_2(GT346.prototype.ID_TEXT_CONGRATULATION, GT1445.prototype.set_0().font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(240))) : a; }, defaultDynamicTextAreaGamble_0: function () { return GT1135.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(230)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.BOTTOM) .hAlign_1(GT1488.prototype.LEFT) .breakLines_1(!1) .insets_4(15, 0, 0, 0); }, defaultDynamicTextAreaButtonBigButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(280)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, GT1391.prototype.set_0().black_0()); }, }, "GT996", [] ); GT996.prototype.ID_CONTAINER_GAMBLEAMOUNT = GT1560.prototype.generateID_0(); GT996.prototype.ID_CONTAINER_GAMBLETOWIN = GT1560.prototype.generateID_0(); var GT481 = GT996.extend( { initialConstructor_0: function () { GT996.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT996.prototype.initialConstructor_1.call(this, a); }, defaultDynamicTextAreaGamble_0: function () { return GT996.prototype.defaultDynamicTextAreaGamble_0.call(this).addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(155)); }, gamble_2: function (a, b) { return instanceOf(a, GT785) ? GT996.prototype.gamble_2 .call(this, a, b) .gambleHistoryCardPosition_2([0, 75, 150, 225, 300, 375], [0, 0, 0, 0, 0, 0]) .modify_2(GT996.prototype.ID_CONTAINER_GAMBLEAMOUNT, GT871.prototype.set_0().position_2(100, 78).size_2(560, 45)) .modify_2(GT346.prototype.ID_FIELD_GAMBLEAMOUNT, GT1135.prototype.set_0().size_2(215, 60)) .modify_2(GT996.prototype.ID_CONTAINER_GAMBLETOWIN, GT871.prototype.set_0().position_2(100, 132).size_2(530, 45)) .modify_2(GT346.prototype.ID_FIELD_GAMBLETOWIN, GT1135.prototype.set_0().size_2(215, 60)) .modify_2(GT346.prototype.ID_CARDS, GT1240.prototype.set_0().x_1(680)) .modify_2(GT346.prototype.ID_TEXT_PREVCARDS, GT1445.prototype.set_0().position_2(1045, 175)) .modify_2(GT346.prototype.ID_BUTTON_RED, GT1355.prototype.set_0().position_2(95, 275)) .modify_2(GT346.prototype.ID_MAINCARD, GT1186.prototype.set_0().position_2(485, 225)) .modify_2(GT346.prototype.ID_BUTTON_BLACK, GT1355.prototype.set_0().position_2(705, 275)) .modify_2(GT346.prototype.ID_TEXT_INFO, GT1239.prototype.set_0().position_2(75, 480)) .modify_2(GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE, GT1239.prototype.set_0().position_2(75, 480)) : a; }, }, "GT481", [] ), GT380 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultPaytableEntry_2: function (a, b) { return a.omitCentsForHighValues_1(!1); }, defaultPaytableValue_2: function (a, b) { return a.omitCents_1(!1).omitCentsForHighValues_1(!1); }, }, "GT380", [] ), GT1098 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultPaytable_2: function (a, b) { return a.maxGambleWinAndStepsTexts_4( "${infopt_payouts_maxgamblewin} ${infopt_payouts_gamblepossible_win}", "${infopt_payouts_maxgamblestepsandwin} ${infopt_payouts_gamblepossible_win}", "${infopt_payouts_maxgamblesteps}", "${infopt_payouts_maxgambleabsolutewin} ${infopt_payouts_gamblepossible_win}" ); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE, GT1240.prototype.set_0().x_1(0)) .modify_2(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT, GT1240.prototype.set_0().x_1(180)) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ); }, }, "GT1098", [] ), GT1157 = GT1412.extend( { initialConstructor_0: function () { this.showTotalRoundWin = this.showLastWin = this.showCredits = this.showTotalBet = this.showBetPerLine = this.showSelectedLines = this.showPaytableButton = this.showGambleButton = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.showTotalRoundWin = this.showLastWin = this.showCredits = this.showTotalBet = this.showBetPerLine = this.showSelectedLines = this.showPaytableButton = this.showGambleButton = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.showGambleButton = b; this.showPaytableButton = d; this.showSelectedLines = e; this.showBetPerLine = f; this.showTotalBet = g; this.showCredits = k; this.showLastWin = m; this.showTotalRoundWin = n; }, console_2: function (a, b) { null != a && (a .remove_1(GT834.prototype.ID_CONTAINER_STATUS) .remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .remove_1(GT834.prototype.ID_FIELD_SUPERGAMES) .remove_1(GT834.prototype.ID_BUTTON_START) .remove_1(GT834.prototype.ID_BUTTON_STOP) .remove_1(GT834.prototype.ID_BUTTON_COLLECT) .remove_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .remove_1(GT834.prototype.ID_BUTTON_COLLECTHALF), this.showGambleButton || a.remove_1(GT834.prototype.ID_BUTTON_GAMBLE).remove_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK).remove_1(GT834.prototype.ID_BUTTON_GAMBLE_RED), this.showPaytableButton || a.remove_1(GT834.prototype.ID_BUTTON_PAYTABLE).remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT).remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE), this.showSelectedLines || a .remove_1(GT1150.prototype.ID_FAKE_BUTTON_LINES) .remove_1(GT1150.prototype.ID_TEXT_LINES) .remove_1(GT834.prototype.ID_LABEL_LINES) .remove_1(GT834.prototype.ID_FIELD_LINES) .remove_1(GT834.prototype.ID_SPINNER_DARK) .remove_1(GT834.prototype.ID_SPINNER_LINES), this.showBetPerLine || a .remove_1(GT1150.prototype.ID_FAKE_BUTTON_BETPERLINE) .remove_1(GT1150.prototype.ID_TEXT_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_SPINNER_BETPERLINE), this.showTotalBet || a.remove_1(GT834.prototype.ID_LABEL_BET).remove_1(GT834.prototype.ID_FIELD_TOTALBET), this.showCredits || a.remove_1(GT834.prototype.ID_LABEL_CREDIT).remove_1(GT834.prototype.ID_FIELD_CREDIT), this.showLastWin || a.remove_1(GT834.prototype.ID_LABEL_LASTWIN).remove_1(GT834.prototype.ID_FIELD_LASTWIN).remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER), this.showTotalRoundWin || a.remove_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN).remove_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN), this.showSelectedLines || this.showBetPerLine || this.showTotalBet || a.remove_1(GT834.prototype.ID_BACKGROUND_INFORMATION)); return a; }, }, "GT1157", [] ), GT947 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a.remove_1(GT834.prototype.ID_FIELD_CREDIT).remove_1(GT834.prototype.ID_LABEL_CREDIT); }, }, "GT947", [] ), GT782 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultPaytable_2: function (a, b) { return a.showCurrencyText_1(!0); }, defaultPaytableEntry_2: function (a, b) { return a.showCurrencySymbol_1(!1); }, defaultPaytableValue_2: function (a, b) { return a.showCurrencySymbol_1(!1); }, defaultJackpotField_2: function (a, b) { return a.showCurrencySymbol_1(!1); }, }, "GT782", [] ), GT220 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultRedBlackGamble_2: function (a, b) { return a.showCurrencyText_1(!0); }, defaultSingleButtonGamble_2: function (a, b) { return a.showCurrencyText_1(!0); }, }, "GT220", [] ), GT900 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, gamble_2: function (a, b) { return instanceOf(a, GT785) ? a.soundClose_1(null).soundGamble_1(null).soundGambleLost_1(null).soundGambleWin_1(null).soundGambleWinTop_1(null).soundOpen_1(null).clearSoundGambleLoopSteps_0() : instanceOf(a, GT581) ? a.soundClose_1(null).soundGamble_1(null).soundGambleLost_1(null).soundGambleWinTop_1(null).soundOpen_1(null).clearSoundGambleWinSteps_0() : a; }, }, "GT900", [] ), GT783 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a.remove_1(GT834.prototype.ID_BUTTON_PAYTABLE).remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT).remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE); }, }, "GT783", [] ), GT1049 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, winLines_2: function (a, b) { return a.showLineWinLabels_1(!1).showScatterWinLabels_1(!1); }, }, "GT1049", [] ), GT381 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a.omitCentPolicyCreditAndBalanceField_1(GT711.prototype.OMIT_CENT_IF_ZERO).omitCentPolicyCurrencyFields_1(GT711.prototype.OMIT_CENT_IF_ZERO); }, }, "GT381", [] ), GT180 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultPaytableEntry_2: function (a, b) { return a.omitCentsForHighValues_1(!0); }, defaultPaytableValue_2: function (a, b) { return a.omitCents_1(!0).omitCentsForHighValues_1(!0); }, paytable_2: function (a, b) { return instanceOf(a, GT1100) ? a.omitCentPolicyRulesPage_1(GT711.prototype.OMIT_CENT_IF_ZERO) : a; }, }, "GT180", [] ), GT1150 = GT1412.extend( { initialConstructor_0: function () { this.smallDevice = !1; this.additionalMoveDistance = this.smallIconWidth = this.smallIconHeight = this.bigIconHeight = this.bigIconWidth = this.labels = this.labelsWidth = this.menuX = this.menuHeight = this.menuWidth = this.gap = this.consoleX = this.consoleMaxWidth = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.smallDevice = !1; this.additionalMoveDistance = this.smallIconWidth = this.smallIconHeight = this.bigIconHeight = this.bigIconWidth = this.labels = this.labelsWidth = this.menuX = this.menuHeight = this.menuWidth = this.gap = this.consoleX = this.consoleMaxWidth = this.consoleWidth = this.consoleHeight = this.gameHeight = 0; GT1412.prototype.initialConstructor_1.call(this, e); this.smallDevice = g; this.gameHeight = GT1046.prototype.GAME_HEIGHT; this.consoleHeight = 200; this.consoleWidth = b; this.consoleMaxWidth = a.width + 2 * a.x + 4; this.consoleX = Math.div(this.consoleMaxWidth - this.consoleWidth, 2); this.gap = 20; this.labels = f ? 3 : 2; this.labelsWidth = Math.div(this.consoleWidth - this.labels * this.gap * 2, this.labels); this.bigIconWidth = Integer.truncate_1(140 * (g ? 1.5 : 1)); this.bigIconHeight = Integer.truncate_1(131 * (g ? 1.5 : 1)); this.smallIconWidth = this.smallIconHeight = 86; this.menuWidth = 1032; this.menuHeight = 600; this.menuX = Math.div(this.consoleMaxWidth - this.menuWidth, 2); this.additionalMoveDistance = 2; }, console_2: function (a, b) { var d = 85 + (this.smallDevice ? 20 : 0), e, f; 3 == this.labels ? ((e = this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_BALANCE) .position_2(this.consoleX + 2 * this.labelsWidth + 5 * this.gap, 78) .size_2(this.labelsWidth, 55)), (f = this.defaultDynamicTA_0() .id_1(GT834.prototype.ID_LABEL_BALANCE) .text_1("${balance}") .position_2(this.consoleX + 2 * this.labelsWidth + 5 * this.gap, 115) .size_2(this.labelsWidth, 55))) : ((e = GT1186.prototype.set_0().size_2(0, 0)), (f = GT1186.prototype.set_0().size_2(0, 0))); return b .defaultConsoleStates_0() .id_1(GT1618.prototype.CONSOLE) .hideStatusBackgroundIfNoText_1(!0) .hideLineSpinnerIfLinesAreFixed_1(!0) .position_2(0, 0) .size_2(this.consoleMaxWidth, this.gameHeight + this.consoleHeight) .winText_1("${console_wintext}") .soundForMaxBetChange_1("/com/greentube/slot/client/res/changemaxbet.mp3") .soundForBetChange_1("/com/greentube/slot/client/res/changebet.mp3") .soundDecideGamble_3("/com/greentube/slot/client/res/decidegamble.mp3", 20, 2460) .soundSuperGame_1("/com/greentube/slot/client/res/supergame/supergamewon.mp3") .soundAutoPlayStart_1("/com/greentube/slot/client/res/autoplaystart.mp3") .soundAutoPlayStop_1("/com/greentube/slot/client/res/autoplaystop.mp3") .soundForAutoPlayForcedStop_1("/com/greentube/slot/client/res/autoplayforcedstop.mp3") .colorTextInactive_1(GT1150.prototype.INACTIVE_COLOR) .animateWinField_3( GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/arrow_l.png").tiling_2(1, 4), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/arrow_r.png").tiling_2(1, 4), 25 ) .child_1( GT1186.prototype .set_0() .position_2(Math.div(this.consoleMaxWidth - 400, 2), 15) .size_2(400, 90) .child_1( GT1135.prototype .set_0() .id_1(GT1150.prototype.ID_CLIENT_VERSION) .background_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().black_0())) .fontColor_1(GT1391.prototype.set_0().white_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().size_1(300).name_1(GT1393.prototype.ARIAL)) .addFont_1(GT1441.prototype.set_0().size_1(200).name_1(GT1393.prototype.ARIAL)) ) ) .child_1(GT1186.prototype.set_0().child_1(this.menu_1(b))) .child_1( GT1186.prototype.set_0().child_1( GT1188.prototype .set_0() .id_1(GT1150.prototype.ID_CONTAINER_BLACK_TOP) .size_2(this.consoleMaxWidth, 160) .position_2(0, this.gameHeight - 10) .transparency_1(GT1022.prototype.set_0().alpha_1(180)) .color_1(GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype.set_0().child_1( GT1188.prototype .set_0() .id_1(GT1150.prototype.ID_CONTAINER_BLACK_BOTTOM) .size_2(this.consoleMaxWidth, 35) .position_2(0, this.gameHeight + 150) .color_1(GT1391.prototype.set_0().black_0()) ) ) .child_1( GT1186.prototype .set_0() .position_2(0, this.gameHeight - 10) .size_2(this.consoleMaxWidth, this.consoleHeight) .child_1(GT1186.prototype.set_0().id_1(GT834.prototype.ID_CONTAINER_STATUS).child_1(this.statusBackground_0()).child_1(this.statusBackgroundHighlight_0().id_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT))) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALBET) .position_2(250, 0) .size_2(this.consoleMaxWidth - 500, 76) .appendixes_2("${console_label_bet}%20", "") ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_STATUS) .position_2(400, 0) .size_2(this.consoleMaxWidth - 800, 76) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_WIN) .position_2(250, 0) .size_2(this.consoleMaxWidth - 500, 76) .duration_1(3e3) ) .child_1( GT872.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS) .outline_2(0, null) .position_2(this.consoleX + this.gap, 78) .size_2(this.labelsWidth, 55) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(178)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(152)) .insets_4(5, 5, 5, 5) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_CREDIT) .outline_2(0, null) .position_2(this.consoleX + this.gap, 78) .size_2(this.labelsWidth, 55) .sound_1("/com/greentube/slot/client/res/creditincrease.mp3") ) .child_1( this.defaultDynamicTA_0() .id_1(GT834.prototype.ID_LABEL_FREEROUNDS) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .position_2(this.consoleX + this.gap, 115) .size_2(this.labelsWidth, 55) .text_1("${console_label_freerounds}") ) .child_1( this.defaultDynamicTA_0() .id_1(GT834.prototype.ID_LABEL_CREDIT) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .position_2(this.consoleX + this.gap, 115) .size_2(this.labelsWidth, 55) .text_1("${console_label_credit}") ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS) .position_2(this.consoleX + this.labelsWidth + 3 * this.gap, 78) .size_2(this.labelsWidth, 55) ) .child_1( this.defaultValueFieldSmall_0() .id_1(GT834.prototype.ID_FIELD_LASTWIN) .position_2(this.consoleX + this.labelsWidth + 3 * this.gap, 78) .size_2(this.labelsWidth, 55) ) .child_1( this.defaultDynamicTA_0() .id_1(GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS) .position_2(this.consoleX + this.labelsWidth + 3 * this.gap, 115) .size_2(this.labelsWidth, 55) .text_1("${console_label_freerounds_winnings}") ) .child_1( this.defaultDynamicTA_0() .id_1(GT834.prototype.ID_LABEL_LASTWIN) .position_2(this.consoleX + this.labelsWidth + 3 * this.gap, 115) .size_2(this.labelsWidth, 55) .text_1("${console_label_lastwin}") ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER) .position_2(this.consoleX + this.labelsWidth + 3 * this.gap, 78) .size_2(this.labelsWidth, 55) .child_1(this.defaultDynamicTASmall_0().id_1(GT834.prototype.ID_OBJECT_LASTWIN_NA).size_2(this.labelsWidth, 55).text_1("${console_lastwin_na}").fontColor_1(GT1150.prototype.INACTIVE_COLOR)) ) .child_1(e) .child_1(f) .child_1(this.textClientVersion_0().position_2(this.consoleX + this.labelsWidth + 4 * this.gap + this.labelsWidth - 200, 125)) ) .child_1( GT1186.prototype .set_0() .position_2(this.consoleX + this.consoleWidth - 265, this.gameHeight - 10) .size_2(190, 80) .child_1( this.defaultDynamicTABig_0() .id_1(GT834.prototype.ID_FIELD_SUPERGAMES) .outline_2(2, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .background_1(this.defaultBackground_0().backgroundColor_1(GT1391.prototype.set_0().yellow_0())) .insets_4(5, 5, 5, 5) ) ) .child_1( this.defaultEmptyButton_0() .id_1(GT834.prototype.ID_BUTTON_STOP) .size_2(this.consoleMaxWidth - 100, this.gameHeight - b.getReelY_0()) .position_2(50, b.getReelY_0()) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_RIGHTALIGNED) .size_2(this.buttonBigWidth_0(), 1e3) .position_2(0, 357 - d) .child_1( this.defaultMenuButton_7( this.defaultDynamicTABig_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(150 * (this.smallDevice ? 1.24 : 1))) ) .hAlign_1(GT1488.prototype.CENTER) .insets_4(0, 0, 5, 5), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_menu.png").tiling_2(1, 4), this.buttonBigWidth_0() - GT1150.prototype.BORDER, d, -8, this.smallIconWidth - 20, this.defaultBackground_0() ) .text_1("${menu}") .id_1(GT1150.prototype.ID_BUTTON_MENU) .position_2(0, 0) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) .partialMovementValues_2(GT1150.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED, GT1150.prototype.ANIMATION_DURATION) ) .child_1( this.defaultButtonBig_2( this.defaultDynamicTABig_0() .insets_4(3, 3, 0, 0) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(165 * (this.smallDevice ? 1.24 : 1))) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(150 * (this.smallDevice ? 1.24 : 1))) ) .id_1(GT834.prototype.ID_TEXT_START) .breakLines_1(!0), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_start.png").tiling_2(1, 4) ) .text_1("${autospin}") .id_1(GT1150.prototype.ID_BUTTON_SPIN) .position_2(0, d) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) ) .child_1( this.defaultButtonBig_2(this.defaultDynamicTABig_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_collect.png").tiling_2(1, 4)) .id_1(GT834.prototype.ID_BUTTON_COLLECT) .text_1("${buttontext_collect}") .position_2(0, d) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) ) .child_1( this.defaultButtonBig_2(this.defaultDynamicTABig_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_collect_fast.png").tiling_2(1, 4)) .id_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .text_1("${buttontext_collect}") .position_2(0, d) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .child_1( this.defaultButtonBig_2( this.defaultDynamicTABig_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_auto_stop.png").tiling_2(1, 4) ) .text_1("${buttontext_autostop}") .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(0, d) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) ) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .child_1( this.defaultButtonBig_3( this.defaultDynamicTABig_0().id_1(GT834.prototype.ID_TEXT_AUTOSTOP), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_auto_stop.png").tiling_2(1, 4), b.autoplayCounter_0() ) .text_1("${buttontext_autostop}%0a") .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) .position_2(0, d) .movementValues_3(this.buttonBigWidth_0() + this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) ) ) .child_1(GT1303.prototype.set_0().id_1(GT834.prototype.ID_SPINNER_AUTOPLAY).size_2(171, 74)) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_CONTAINER_LEFTALIGNED) .position_2(0, 357) .size_2(this.buttonBigWidth_0(), 1e3) .child_1( this.defaultButtonBig_2(this.defaultDynamicTABig_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_gamble.png").tiling_2(1, 4)) .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .text_1("${buttontext_gamble}") .position_2(0, 0) .movementValues_3(-this.buttonBigWidth_0() - this.additionalMoveDistance, 0, GT1150.prototype.ANIMATION_DURATION) .partialMovementValues_2(0, GT1150.prototype.ANIMATION_DURATION) ) ); }, textClientVersion_0: function () { return GT1239.prototype .set_0() .id_1(GT307.prototype.TEXT_CLIENTVERSION) .text_1("") .size_2(200, 40) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.RIGHT) .vAlign_1(GT1489.prototype.BOTTOM) .changeHAlignOnRTLLanguages_1(!1) .insets_4(0, 5, 0, 0); }, menu_1: function (a) { return GT1186.prototype .set_0() .id_1(GT1150.prototype.ID_CONTAINER_MENU) .hide_1(!0) .child_1(this.defaultEmptyButton_0().id_1(GT1150.prototype.ID_BUTTON_CLOSEMENU)) .child_1( GT1186.prototype .set_0() .id_1(GT1150.prototype.ID_CONTAINER_MENU_INNER) .position_2(this.menuX, 175) .size_2(this.menuWidth + GT1150.prototype.BORDER, this.menuHeight + GT1150.prototype.BORDER) .child_1(GT1186.prototype.set_0().child_1(this.overlayButtons_0())) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4)) .text_1("${buttontext_paytable}") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(0, 2 * this.buttonMenuHeight_0()) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4)) .text_1("${buttontext_paytable}") .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .position_2(0, 2 * this.buttonMenuHeight_0()) ) .child_1( this.defaultMenuButton_6( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_max_bet.png").tiling_2(1, 4), 2 * this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 127, 215 ) .text_1("${buttontext_maxbet}") .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(this.buttonMenuWidth_0(), 4 * this.buttonMenuHeight_0()) ) .child_1( this.defaultFakeButton_0() .id_1(GT1150.prototype.ID_FAKE_BUTTON_LINES) .size_2(this.buttonMenuWidth_0() + GT1150.prototype.BORDER, 4 * this.buttonMenuHeight_0() + GT1150.prototype.BORDER) .position_2(this.buttonMenuWidth_0(), 0) ) .child_1( this.defaultDynamicTAMedium_0() .id_1(GT1150.prototype.ID_TEXT_LINES) .position_2(this.buttonMenuWidth_0(), 0) .size_2(this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_lines}") ) .child_1( this.defaultFakeButton_0() .id_1(GT1150.prototype.ID_FAKE_BUTTON_BETPERLINE) .size_2(this.buttonMenuWidth_0() + GT1150.prototype.BORDER, 4 * this.buttonMenuHeight_0() + GT1150.prototype.BORDER) .position_2(2 * this.buttonMenuWidth_0(), 0) ) .child_1( this.defaultDynamicTAMedium_0() .id_1(GT1150.prototype.ID_TEXT_BETPERLINE) .position_2(2 * this.buttonMenuWidth_0(), 0) .size_2(this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_betperline}") ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_LINES) .insets_4(7, 7, 5, 5) .position_2(this.buttonMenuWidth_0(), 2 * this.buttonMenuHeight_0() - 15) .size_2(this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .hAlign_1(GT1488.prototype.CENTER) ) .child_1( GT1186.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_DARK) .child_1( GT1392.prototype .set_0() .position_2(this.buttonMenuWidth_0() + Math.div(this.buttonMenuWidth_0() - 110, 2), this.buttonMenuHeight_0()) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_up.png").tiling_2(1, 4)) .showTile_2(0, 0) ) .child_1( GT1392.prototype .set_0() .position_2(this.buttonMenuWidth_0() + Math.div(this.buttonMenuWidth_0() - 110, 2), 3 * this.buttonMenuHeight_0() - 30) .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_down.png").tiling_2(1, 4)) .showTile_2(0, 0) ) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_LINES) .position_2(this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .size_2(this.buttonMenuWidth_0() + GT1150.prototype.BORDER, 3 * this.buttonMenuHeight_0()) .buttonUp_1( this.defaultBetButton_3(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_up.png").tiling_2(1, 4), this.buttonMenuWidth_0(), 118) .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .position_2(0, 0) ) .buttonDown_1( this.defaultBetButton_3(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_down.png").tiling_2(1, 4), this.buttonMenuWidth_0(), 118) .id_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN) .position_2(0, 2 * this.buttonMenuHeight_0() - 30) ) ) .child_1( this.defaultValueField_0() .id_1(GT834.prototype.ID_FIELD_BETPERLINE) .insets_4(7, 7, 5, 5) .position_2(2 * this.buttonMenuWidth_0(), 2 * this.buttonMenuHeight_0() - 15) .size_2(this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .hAlign_1(GT1488.prototype.CENTER) ) .child_1( GT1303.prototype .set_0() .id_1(GT834.prototype.ID_SPINNER_BETPERLINE) .position_2(2 * this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .size_2(this.buttonMenuWidth_0() + GT1150.prototype.BORDER, 3 * this.buttonMenuHeight_0()) .buttonUp_1( this.defaultBetButton_3(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_up.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0()) .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .position_2(0, 0) ) .buttonDown_1( this.defaultBetButton_3( GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_bet_down.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0() ) .id_1(GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN) .position_2(0, 2 * this.buttonMenuHeight_0() - 30) ) ) ); }, overlayButtons_0: function () { return GT898.prototype .set_0() .id_1(GT307.prototype.ID_GAMEMENUDIALOG) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_sound.png").tiling_2(1, 4)) .tooltip_1("${tip_soundoff}") .text_1("${alttext_sound}") .id_1(GT307.prototype.ACTION_SOUNDOFF) .position_2(0, 0) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_sound_on.png").tiling_2(1, 4)) .tooltip_1("${tip_soundon}") .text_1("${alttext_sound}") .id_1(GT307.prototype.ACTION_SOUNDON) .position_2(0, 0) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_music.png").tiling_2(1, 4)) .tooltip_1("${tip_musicoff}") .text_1("${alttext_music}") .id_1(GT307.prototype.ACTION_MUSICOFF) .position_2(0, this.buttonMenuHeight_0()) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_music_on.png").tiling_2(1, 4)) .tooltip_1("${tip_musicon}") .text_1("${alttext_music}") .id_1(GT307.prototype.ACTION_MUSICON) .position_2(0, this.buttonMenuHeight_0()) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_shop.png").tiling_2(1, 4)) .tooltip_1("${alttext_lobby_account}") .text_1("${alttext_lobby_account}") .id_1(GT307.prototype.ACTION_ACCOUNT) .position_2(0, 3 * this.buttonMenuHeight_0()) ) .child_1( this.defaultMenuButton_2(this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_exit.png").tiling_2(1, 4)) .tooltip_1("${exit}") .text_1("${exit}") .id_1(GT307.prototype.ACTION_LEAVETABLE) .position_2(0, 4 * this.buttonMenuHeight_0()) ); }, autoplayCounter_2: function (a, b) { var d = this.smallDevice ? 55 : 68; return GT1135.prototype .set_0() .id_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(203 * (this.smallDevice ? 1.24 : 1))) ) .size_2(this.buttonBigWidth_0(), d) .position_2(0, this.buttonBigHeight_0() - d) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null); }, defaultConsoleStates_2: function (a, b) { return GT949.prototype .set_0() .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .active_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_STOP) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECTHALF) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).inactive_1(GT834.prototype.ID_SPINNER_DARK).active_1(GT834.prototype.ID_BUTTON_COLLECT).active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).inactive_1(GT834.prototype.ID_SPINNER_DARK).active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .inactive_1(GT834.prototype.ID_SPINNER_DARK) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .active_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ONLY, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) ); }, defaultPConsoleState_2: function (a, b) { return GT670.prototype .set_0() .active_1(GT1150.prototype.ID_BUTTON_CLOSEMENU) .active_1(GT834.prototype.ID_FIELD_STATUS) .active_1(GT834.prototype.ID_FIELD_WIN) .active_1(GT834.prototype.ID_FIELD_CREDIT) .inactive_1(GT1150.prototype.ID_FAKE_BUTTON_BETPERLINE) .active_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_FAKE_BUTTON_LINES) .active_1(GT1150.prototype.ID_TEXT_LINES) .active_1(GT834.prototype.ID_FIELD_LINES) .active_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_FIELD_TOTALBET) .active_1(GT834.prototype.ID_FIELD_SUPERGAMES) .active_1(GT834.prototype.ID_FIELD_BALANCE) .active_1(GT834.prototype.ID_LABEL_CREDIT) .active_1(GT834.prototype.ID_LABEL_LINES) .active_1(GT834.prototype.ID_LABEL_BETPERLINE) .active_1(GT834.prototype.ID_LABEL_BET) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT) .active_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) .active_1(GT834.prototype.ID_FIELD_AUTOPLAYS) .active_1(GT834.prototype.ID_CONTAINER_STATUS) .active_1(GT834.prototype.ID_LABEL_BALANCE); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY); }, defaultBackgroundMenu_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .partialMovementValues_2(GT1150.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED, GT1150.prototype.ANIMATION_DURATION); }, defaultMenuButton_2: function (a, b) { return this.defaultMenuButton_4(a, b, this.buttonMenuWidth_0(), this.buttonMenuHeight_0()); }, defaultMenuButton_3: function (a, b, d) { return this.defaultMenuButton_4(a, b, d, this.buttonMenuHeight_0()); }, defaultMenuButton_4: function (a, b, d, e) { return this.defaultMenuButton_5(a, b, d, e, 2); }, defaultMenuButton_5: function (a, b, d, e, f) { return this.defaultMenuButton_6(a, b, d, e, f, this.smallIconWidth + 2 * f); }, defaultMenuButton_6: function (a, b, d, e, f, g) { return this.defaultMenuButton_7(a, b, d, e, f, g, this.defaultBackgroundMenu_0()); }, defaultMenuButton_7: function (a, b, d, e, f, g, k) { e += GT1150.prototype.BORDER; d += GT1150.prototype.BORDER; var m = Math.div(e - this.smallIconHeight, 2); return this.defaultBaseButton_0() .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.position_2(g, 0).size_2(d - g, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, m)) ) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, m))); }, defaultBetButton_3: function (a, b, d) { var e = Math.div(b - 110, 2); return this.defaultBaseButton_0() .size_2(b + GT1150.prototype.BORDER, d) .child_1(GT1186.prototype.set_0().child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 0).position_2(e, 0))) .child_1(GT1186.prototype.set_0().child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 1).position_2(e, 0))) .child_1(GT1186.prototype.set_0().child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 2).position_2(e, 0))) .child_1(GT1186.prototype.set_0().child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 3).position_2(e, 0))); }, defaultButtonBig_3: function (a, b, d) { var e = Math.div(this.buttonBigWidth_0() - this.bigIconWidth, 2), f = 95 + (this.smallDevice ? 20 : 0); return this.defaultBaseButton_0() .size_2(this.buttonBigWidth_0(), this.buttonBigHeight_0()) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( a .spacing_1(Integer.truncate_1(40 * (this.smallDevice ? 1.1 : 1))) .size_2(this.buttonBigWidth_0(), f) .position_2(0, this.buttonBigHeight_0() - f) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(e, e).size_2(this.bigIconWidth, this.bigIconHeight)) .child_1(d) ) .child_1( GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(e, e).size_2(this.bigIconWidth, this.bigIconHeight)).child_1(d) ) .child_1( GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(e, e).size_2(this.bigIconWidth, this.bigIconHeight)).child_1(d) ) .child_1( GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(e, e).size_2(this.bigIconWidth, this.bigIconHeight)).child_1(d) ); }, defaultEmptyButton_0: function () { return GT277.prototype.set_0().states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.DEFAULT)).child_1(GT1186.prototype.set_0()); }, defaultFakeButton_0: function () { return GT277.prototype.set_0().states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.DEFAULT)).child_1(this.defaultBackgroundMenu_0()); }, defaultButtonBig_2: function (a, b) { return this.defaultButtonBig_3(a, b, GT1186.prototype.set_0()); }, statusBackground_0: function () { return GT1186.prototype .set_0() .child_1( GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/message_line.png").overrideSize_2(this.consoleMaxWidth, 85)) .size_2(this.consoleMaxWidth, 85) .position_2(0, 80) ); }, statusBackgroundHighlight_0: function () { return GT1186.prototype .set_0() .child_1( GT1392.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/message_freesp_line.png").overrideSize_2(this.consoleMaxWidth, 85)) .size_2(this.consoleMaxWidth, 85) .position_2(0, 80) ); }, defaultDynamicTABig_0: function () { return this.defaultDynamicTA_0() .removeAllFonts_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(203 * (this.smallDevice ? 1.24 : 1))) ) .hAlign_1(GT1488.prototype.CENTER); }, defaultDynamicTAMedium_0: function () { return this.defaultDynamicTA_0().removeAllFonts_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)).hAlign_1(GT1488.prototype.LEFT); }, defaultDynamicTA_0: function () { return this.defaultDynamicTASmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(190)); }, defaultDynamicTASmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultValueField_0: function () { return this.defaultValueFieldSmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(280)); }, defaultValueFieldSmall_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(178)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(152)) .insets_4(5, 5, 5, 5) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, buttonBigWidth_0: function () { return 175 + (this.smallDevice ? 75 : 0); }, buttonBigHeight_0: function () { return 240 + (this.smallDevice ? 85 : 0); }, buttonMenuHeight_0: function () { return Math.div(this.menuHeight, 5); }, buttonMenuWidth_0: function () { return Math.div(this.menuWidth, 3); }, }, "GT1150", [] ); GT1150.prototype.ID_FAKE_BUTTON_BETPERLINE = GT1560.prototype.generateID_0(); GT1150.prototype.ID_TEXT_BETPERLINE = GT1560.prototype.generateID_0(); GT1150.prototype.ID_FAKE_BUTTON_LINES = GT1560.prototype.generateID_0(); GT1150.prototype.ID_TEXT_LINES = GT1560.prototype.generateID_0(); GT1150.prototype.ID_BUTTON_SPIN = GT1560.prototype.generateID_0(); GT1150.prototype.ID_BUTTON_MENU = GT1560.prototype.generateID_0(); GT1150.prototype.ID_BUTTON_CLOSEMENU = GT1560.prototype.generateID_0(); GT1150.prototype.ID_CONTAINER_MENU = GT1560.prototype.generateID_0(); GT1150.prototype.ID_CONTAINER_MENU_INNER = GT1560.prototype.generateID_0(); GT1150.prototype.ID_CONTAINER_BLACK_TOP = GT1560.prototype.generateID_0(); GT1150.prototype.ID_CONTAINER_BLACK_BOTTOM = GT1560.prototype.generateID_0(); GT1150.prototype.ID_CLIENT_VERSION = GT1560.prototype.generateID_0(); GT1150.prototype.ID_AUTOPLAY_TRIGGER = GT1560.prototype.generateID_0(); GT1150.prototype.BORDER_COLOR = GT1391.prototype.set_0().compRGB_3(51, 204, 255); GT1150.prototype.BACKGROUND_COLOR = GT1391.prototype.set_0().compRGB_3(12, 24, 40); GT1150.prototype.PRESSED_COLOR = GT1391.prototype.set_0().compRGB_3(51, 204, 255); GT1150.prototype.INACTIVE_COLOR = GT1391.prototype.set_0().compRGB_3(130, 130, 130); GT1150.prototype.BORDER = 2; GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU = 230; GT1150.prototype.BACKGROUND_TRANSPARENCY = 200; GT1150.prototype.ANIMATION_DURATION = 150; GT1150.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED = 1628; var GT632 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1412.prototype.initialConstructor_0.call(this); }, console_2: function (a, b) { return a.modify_2(GT1150.prototype.ID_CONTAINER_MENU_INNER, GT1240.prototype.set_0().y_1(180)); }, }, "GT632", [] ), GT132 = GT1412.extend( { initialConstructor_0: function () { this.smallIconWidth = this.smallIconHeight = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.smallIconWidth = this.smallIconHeight = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.smallIconWidth = this.smallIconHeight = 86; }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.PAYTABLE_ONLY, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ); }, console_2: function (a, b) { return a.modify_2( GT834.prototype.ID_CONTAINER_RIGHTALIGNED, GT1186.prototype.set_0().child_1( this.defaultMenuButton_7( this.defaultDynamicTABig_0().hAlign_1(GT1488.prototype.CENTER).insets_4(0, 0, 5, 5), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_max_bet.png").tiling_2(1, 4), 175 - GT1150.prototype.BORDER, 85, 0, this.smallIconWidth - 10, this.defaultBackground_0() ) .text_1("MAX\nBET") .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(0, 240 - GT1150.prototype.BORDER + 85) .movementValues_3(177, 0, GT1150.prototype.ANIMATION_DURATION) ) ); }, defaultMenuButton_7: function (a, b, d, e, f, g, k) { e += GT1150.prototype.BORDER; d += GT1150.prototype.BORDER; var m = Math.div(e - this.smallIconHeight, 2); return this.defaultBaseButton_0() .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.position_2(g, 0).size_2(d - g, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, m)) ) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, m))); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .partialMovementValues_2(GT1150.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED, GT1150.prototype.ANIMATION_DURATION); }, defaultDynamicTABig_0: function () { return GT872.prototype .set_0() .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(Integer.truncate_1(203))) .spacing_1(33); }, defaultBackgroundMenu_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY); }, }, "GT132", [] ), GT848 = GT1412.extend( { initialConstructor_0: function () { this.smallIconWidth = this.smallIconHeight = this.menuHeight = this.menuWidth = this.consoleMaxWidth = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.smallIconWidth = this.smallIconHeight = this.menuHeight = this.menuWidth = this.consoleMaxWidth = 0; GT1412.prototype.initialConstructor_1.call(this, e); this.consoleMaxWidth = a.width + 2 * a.x + 4; this.smallIconWidth = this.smallIconHeight = 86; this.menuWidth = 1032; this.menuHeight = 600; }, defaultConsoleStates_2: function (a, b) { return a .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FASTCOLLECTORGAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.BEFORE_GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.GAMBLE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .active_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_REDBLACK, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_BUTTON_COLLECT) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.PAYTABLE_ONLY, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT1150.prototype.ID_BUTTON_SPIN) .active_1(GT1150.prototype.ID_BUTTON_MENU) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT1150.prototype.ID_TEXT_BETPERLINE) .inactive_1(GT1150.prototype.ID_TEXT_LINES) .inactive_1(GT834.prototype.ID_FIELD_LINES) .inactive_1(GT834.prototype.ID_FIELD_BETPERLINE) .active_1(GT1150.prototype.ID_BUTTON_SPIN) .inactive_1(GT1150.prototype.ID_BUTTON_MENU) ); }, console_2: function (a, b) { return a .remove_1(GT307.prototype.ACTION_SOUNDON) .remove_1(GT307.prototype.ACTION_SOUNDOFF) .remove_1(GT307.prototype.ACTION_MUSICON) .remove_1(GT307.prototype.ACTION_MUSICOFF) .remove_1(GT307.prototype.ACTION_ACCOUNT) .remove_1(GT307.prototype.ACTION_LEAVETABLE) .remove_1(GT834.prototype.ID_BUTTON_MAX_BET) .modify_2(GT1150.prototype.ID_CONTAINER_MENU, GT1186.prototype.set_0().position_2(Math.div(-this.menuWidth, 6), 0)) .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE, this.defaultMenuButton_7( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4), 2 * Math.div(this.menuWidth, 3), Math.div(this.menuHeight, 5), 0, 0, this.defaultBackgroundMenu_0() ).position_2(Math.div(this.menuWidth, 3), 4 * Math.div(this.menuHeight, 5)) ) .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE, this.defaultMenuButton_7( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4), 2 * Math.div(this.menuWidth, 3), Math.div(this.menuHeight, 5), 0, 0, this.defaultBackgroundMenu_0() ).position_2(Math.div(this.menuWidth, 3), 4 * Math.div(this.menuHeight, 5)) ) .modify_2( GT834.prototype.ID_CONTAINER_RIGHTALIGNED, GT1186.prototype.set_0().child_1( this.defaultMenuButton_7( this.defaultDynamicTABig_0().hAlign_1(GT1488.prototype.CENTER).insets_4(0, 0, 5, 5), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_max_bet.png").tiling_2(1, 4), 175 - GT1150.prototype.BORDER, 85, 0, this.smallIconWidth - 10, this.defaultBackground_0() ) .text_1("MAX\nBET") .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(0, 240 - GT1150.prototype.BORDER + 85) .movementValues_3(177, 0, GT848.prototype.ANIMATION_DURATION) .partialMovementValues_3( GT848.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED, GT848.prototype.PARTIAL_MOVEMENT_Y_POSITION_SPIN_BUTTON + 240 - GT1150.prototype.BORDER, GT848.prototype.ANIMATION_DURATION ) ) ); }, defaultMenuButton_7: function (a, b, d, e, f, g, k) { e += GT1150.prototype.BORDER; d += GT1150.prototype.BORDER; var m = Math.div(e - this.smallIconHeight, 2); return this.defaultBaseButton_0() .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.position_2(g, 0).size_2(d - g, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, m)) ) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, m))); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .partialMovementValues_3(GT848.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED, GT848.prototype.PARTIAL_MOVEMENT_Y_POSITION_SPIN_BUTTON, GT848.prototype.ANIMATION_DURATION); }, defaultDynamicTABig_0: function () { return this.defaultDynamicTA_0() .removeAllFonts_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(Integer.truncate_1(203))) .spacing_1(33) .hAlign_1(GT1488.prototype.CENTER); }, defaultDynamicTAMedium_0: function () { return this.defaultDynamicTA_0().removeAllFonts_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)).hAlign_1(GT1488.prototype.LEFT); }, defaultDynamicTA_0: function () { return this.defaultDynamicTASmall_0().addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(190)); }, defaultDynamicTASmall_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(140)) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultBackgroundMenu_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY); }, }, "GT848", [] ); GT848.prototype.ANIMATION_DURATION = 150; GT848.prototype.PARTIAL_MOVEMENT_X_POSITION_RIGHTALIGNED = 1628; GT848.prototype.PARTIAL_MOVEMENT_Y_POSITION_SPIN_BUTTON = 357; var GT580 = GT1412.extend( { initialConstructor_0: function () { this.smallIconHeight = this.menuHeight = this.menuWidth = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.smallIconHeight = this.menuHeight = this.menuWidth = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.smallIconHeight = 86; this.menuWidth = 1032; this.menuHeight = 600; }, console_2: function (a, b) { return a .remove_1(GT307.prototype.ACTION_SOUNDON) .remove_1(GT307.prototype.ACTION_SOUNDOFF) .remove_1(GT307.prototype.ACTION_MUSICON) .remove_1(GT307.prototype.ACTION_MUSICOFF) .remove_1(GT307.prototype.ACTION_ACCOUNT) .remove_1(GT307.prototype.ACTION_LEAVETABLE) .remove_1(GT834.prototype.ID_BUTTON_MAX_BET) .modify_2(GT1150.prototype.ID_CONTAINER_MENU, GT1186.prototype.set_0().position_2(Math.div(-this.menuWidth, 6), 0)) .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE, this.defaultMenuButton_7( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4), 2 * Math.div(this.menuWidth, 3), Math.div(this.menuHeight, 5), 0, 0, this.defaultBackgroundMenu_0() ).position_2(Math.div(this.menuWidth, 3), 4 * Math.div(this.menuHeight, 5)) ) .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE, this.defaultMenuButton_7( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4), 2 * Math.div(this.menuWidth, 3), Math.div(this.menuHeight, 5), 0, 0, this.defaultBackgroundMenu_0() ).position_2(Math.div(this.menuWidth, 3), 4 * Math.div(this.menuHeight, 5)) ); }, defaultMenuButton_7: function (a, b, d, e, f, g, k) { e += GT1150.prototype.BORDER; d += GT1150.prototype.BORDER; var m = Math.div(e - this.smallIconHeight, 2); return this.defaultBaseButton_0() .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.position_2(g, 0).size_2(d - g, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, m)) ) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, m))) .child_1(GT1186.prototype.set_0().child_1(k).child_1(a).child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, m))); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultDynamicTAMedium_0: function () { return GT872.prototype .set_0() .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)) .hAlign_1(GT1488.prototype.LEFT); }, defaultBackgroundMenu_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, }, "GT580", [] ), GT530 = GT1412.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; this.reservedAreaAlpha = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.isUsingDynScreensLayout = !1; this.reservedAreaAlpha = 0; GT1412.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); this.isUsingDynScreensLayout = a; this.reservedAreaAlpha = b; }, mainGui_2: function (a, b) { GT1650.prototype.isDebugMode_0() && a.modify_2( GT1618.prototype.RESERVED_AREA_CONTAINER, GT1186.prototype.set_0().child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().green_0()).transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha))) ); var d = this.isUsingDynScreensLayout ? 395 : 348, e = this.isUsingDynScreensLayout ? 45 : 10; return a.modify_2(GT1618.prototype.RESERVED_AREA_CONTAINER, GT1186.prototype.set_0().position_2(d, e).size_2(260, 100)); }, }, "GT530", [] ), GT736 = GT1412.extend( { initialConstructor_0: function () { this.buttonWidth = this.buttonHeight = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.buttonWidth = this.buttonHeight = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.buttonHeight = 120; this.buttonWidth = 344; }, console_2: function (a, b) { return a .replace_2( GT834.prototype.ID_BUTTON_MAX_BET, this.defaultMenuButton_4( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_max_bet.png").tiling_2(1, 4), this.buttonWidth, this.buttonHeight ) .text_1("${buttontext_maxbet}") .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(2 * this.buttonWidth, 4 * this.buttonHeight) ) .modify_2( GT307.prototype.ID_GAMEMENUDIALOG, GT1186.prototype.set_0().child_1( this.defaultMenuButton_4( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_help.png").tiling_2(1, 4), this.buttonWidth, this.buttonHeight ) .text_1("${alttext_lobby_help}") .id_1(GT307.prototype.ACTION_HELP) .position_2(this.buttonWidth, 4 * this.buttonHeight) ) ); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultMenuButton_4: function (a, b, d, e) { var f = Math.div(e - 86, 2); return this.defaultBaseButton_0() .size_2(d + GT1150.prototype.BORDER, e + GT1150.prototype.BORDER) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(2, f)) ); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultDynamicTAMedium_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)) .insets_4(15, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.LEFT); }, }, "GT736", [] ), GT686 = GT1412.extend( { initialConstructor_0: function () { this.applet = null; this.buttonWidth = this.buttonHeight = this.buttonHeightSmall = this.JSONMode = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.applet = null; this.buttonWidth = this.buttonHeight = this.buttonHeightSmall = this.JSONMode = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.applet = b; this.JSONMode = d; this.buttonHeight = 120; this.buttonHeightSmall = 55; this.buttonWidth = 344; }, console_2: function (a, b) { return a .remove_1(GT1150.prototype.ID_CONTAINER_BLACK_BOTTOM) .replace_2( GT834.prototype.ID_BUTTON_MAX_BET, this.defaultMenuButton_4( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_max_bet.png").tiling_2(1, 4), this.buttonWidth, this.buttonHeight ) .text_1("${buttontext_maxbet}") .id_1(GT834.prototype.ID_BUTTON_MAX_BET) .position_2(2 * this.buttonWidth, 4 * this.buttonHeight) ) .modify_2( GT307.prototype.ID_GAMEMENUDIALOG, GT1186.prototype.set_0().child_1( this.defaultMenuButton_4( this.defaultDynamicTAMedium_0(), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_help.png").tiling_2(1, 4), this.buttonWidth, this.buttonHeight ) .text_1("${alttext_lobby_help}") .id_1(GT307.prototype.ACTION_HELP) .position_2(this.buttonWidth, 4 * this.buttonHeight) ) ) .modify_2(GT1150.prototype.ID_CONTAINER_MENU_INNER, GT1240.prototype.set_0().y_1(147)) .modify_2( GT1150.prototype.ID_CONTAINER_MENU_INNER, GT1186.prototype .set_0() .size_2(3 * this.buttonWidth + GT1150.prototype.BORDER, 600 + this.buttonHeightSmall + GT1150.prototype.BORDER) .child_1( GT1186.prototype .set_0() .position_2(0, 600) .size_2(3 * this.buttonWidth + GT1150.prototype.BORDER, this.buttonHeightSmall + GT1150.prototype.BORDER) .child_1(this.responsibleGaming_0()) .child_1(this.privacy_0()) .child_1(this.AGB_0()) ) ); }, mainGui_2: function (a, b) { return a .modify_2(GT943.prototype.ID_ENTITYSESSION, GT1240.prototype.set_0().y_1(995)) .modify_2(GT943.prototype.ID_ENTITYPARTICIPATION, GT1240.prototype.set_0().y_1(995)) .modify_2(GT943.prototype.ID_ENTITYCONCESSION, GT1240.prototype.set_0().y_1(995)) .modify_2(GT943.prototype.ID_BOTTOMINSETAREA, GT1240.prototype.set_0().y_1(990)) .replace_2( GT943.prototype.ID_BUTTON_BACKGROUND, GT169.prototype .set_0() .id_1(GT943.prototype.ID_BUTTON_BACKGROUND) .borderThickness_1(0) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY) .position_2(10, 10) .size_2(415, 103) ); }, defaultBackground_0: function () { return GT169.prototype .set_0() .borderThickness_1(GT1150.prototype.BORDER) .backgroundColor_1(GT1150.prototype.BACKGROUND_COLOR) .borderColor_1(GT1150.prototype.BORDER_COLOR) .backgroundAlpha_1(GT1150.prototype.BACKGROUND_TRANSPARENCY_MENU); }, defaultMenuButton_4: function (a, b, d, e) { var f = Math.div(e - 86, 2); return this.defaultBaseButton_0() .size_2(d + GT1150.prototype.BORDER, e + GT1150.prototype.BORDER) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(2, f)) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1(a.position_2(90, 0).size_2(d - 90, e)) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(2, f)) ); }, defaultMenuButton_3: function (a, b, d) { return this.defaultBaseButton_0() .size_2(b + GT1150.prototype.BORDER, d + GT1150.prototype.BORDER) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)) .child_1(GT1186.prototype.set_0().child_1(this.defaultBackground_0()).child_1(a)); }, defaultBaseButton_0: function () { return GT277.prototype .set_0() .textPressedColor_1(GT1150.prototype.PRESSED_COLOR) .textInactiveColor_1(GT1150.prototype.INACTIVE_COLOR) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)); }, defaultTextArea_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .spacing_1(50) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultDynamicTAMedium_0: function () { return GT872.prototype .set_0() .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(203)) .insets_4(15, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.LEFT); }, responsibleGaming_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_RESPONSIBLEGAMING) .position_2(0, 0) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK0 + ":linkUrl}")) .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK0 + ":content}")); case GT677.prototype.JSONMODE_LOCAL: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_RESPONSIBLE_GAMING) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_RESPONSIBLEGAMING) .position_2(0, 0) .tooltip_1("/web/Help?xpf=single&tag=responsible_gaming") .text_1("Gioco responsabile"); default: return null; } }, privacy_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_PRIVACY) .position_2(this.buttonWidth, 0) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK1 + ":linkUrl}")) .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK1 + ":content}")); case GT677.prototype.JSONMODE_LOCAL: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_PRIVACY) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_PRIVACY) .position_2(this.buttonWidth, 0) .tooltip_1("/web/Help?xpf=single&tag=privacy") .text_1("Privacy"); default: return null; } }, AGB_0: function () { switch (this.JSONMode) { case GT677.prototype.JSONMODE_APPLET: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_AGB) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AGB) .position_2(2 * this.buttonWidth, 0) .tooltip_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK2 + ":linkUrl}")) .text_1(this.applet.getSkinManager_0().getText_1("${JSON:" + GT570.prototype.STARVEGAS_LINK2 + ":content}")); case GT677.prototype.JSONMODE_LOCAL: return this.defaultMenuButton_3(this.defaultTextArea_0(), this.buttonWidth, this.buttonHeightSmall) .id_1(GT570.prototype.ID_BUTTON_STARVEGAS_AGB) .data_1(GT697.prototype.KEY_OPEN_STARVEGAS_AGB) .position_2(2 * this.buttonWidth, 0) .tooltip_1("/web/Help?xpf=single&tag=agb") .text_1(this.applet.getSkinManager_0().getText_1("Condizioni generali")); default: return null; } }, }, "GT686", [] ), GT290 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.modify_2(GT943.prototype.ID_CNTLOGO, GT1240.prototype.set_0().x_1(120).y_1(30)); }, console_2: function (a, b) { return a.modify_2(GT1150.prototype.ID_CONTAINER_MENU_INNER, GT1240.prototype.set_0().y_1(153)); }, }, "GT290", [] ), GT430 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, paytable_2: function (a, b) { return instanceOf(a, GT1100) ? a .pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP) .animationTime_1(0) .child_1( GT1186.prototype .set_0() .id_1(GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID) .child_1( GT613.prototype .set_0() .id_1(GT999.prototype.BUTTON_PREVIOUS_PAGE_ID) .position_2(0, Integer.truncate_1(0.5 * (b.getSlideInOutScreenHeight_0() - GT430.prototype.PAYTABLE_CHANGE_PAGE_BUTTON_HEIGHT))) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.PRESSED).state_2(0, GT1236.prototype.MOUSEOVER)) .imageFile_1("/com/greentube/slot/client/res/bigbutton/paytable_backward.png") ) .child_1( GT613.prototype .set_0() .id_1(GT999.prototype.BUTTON_NEXT_PAGE_ID) .position_2( b.getSlideInOutScreenWidth_0() - GT430.prototype.PAYTABLE_CHANGE_PAGE_BUTTON_WIDTH, Integer.truncate_1(0.5 * (b.getSlideInOutScreenHeight_0() - GT430.prototype.PAYTABLE_CHANGE_PAGE_BUTTON_HEIGHT)) ) .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.PRESSED).state_2(0, GT1236.prototype.MOUSEOVER)) .imageFile_1("/com/greentube/slot/client/res/bigbutton/paytable_forward.png") ) ) : a; }, }, "GT430", [] ); GT430.prototype.PAYTABLE_CHANGE_PAGE_BUTTON_WIDTH = 160; GT430.prototype.PAYTABLE_CHANGE_PAGE_BUTTON_HEIGHT = 696; var GT948 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, paytable_2: function (a, b) { instanceOf(a, GT1100) && (a .pageChangeAnimationType_1(GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE) .animationTime_1(600) .pageVisualizationImage_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/paytable_page_outline.png")) .pageVisualizationPosition_1(663) .child_1(GT1186.prototype.set_0().id_1(GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID).child_1(GT873.prototype.set_0().id_1(GT999.prototype.BUTTON_SWIPE))), GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() || a.modify_2( GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID, GT1186.prototype.set_0().child_1( GT871.prototype .set_0() .id_1(GT999.prototype.BUTTON_CLOSE_CONTAINER_ID) .horizontalAlignment_1(GT1488.prototype.RIGHT) .verticalAlignment_1(GT1489.prototype.TOP) .child_1( this.defaultButton_1(GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable_exit_outline.png").tiling_2(1, 4)) .id_1(GT999.prototype.BUTTON_CLOSE_ID) .size_2(88, 86) ) ) )); return a; }, defaultButton_1: function (a) { return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(0, GT1236.prototype.DEFAULT).state_2(0, GT1236.prototype.PRESSED).state_2(0, GT1236.prototype.MOUSEOVER)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 0)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 1)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 2)) .child_1(GT1392.prototype.set_0().image_1(a).showTile_2(0, 3)); }, }, "GT948", [] ), GT1047 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, slotBackground_2: function (a, b) { return GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().id_1(GT1047.prototype.BACKGROUND_IMAGE).imageFile_1("playingcards/game.jpg")) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_0.jpg").position_2(this.getReelPositionX_2(0, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_1.jpg").position_2(this.getReelPositionX_2(1, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_2.jpg").position_2(this.getReelPositionX_2(2, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_3.jpg").position_2(this.getReelPositionX_2(3, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_4.jpg").position_2(this.getReelPositionX_2(4, b), b.getReelY_0()).cacheScaledVersion_1(!0)); }, playingCardReel_1: function (a) { return GT727.prototype .set_0() .fadeInTime_1(GT1047.prototype.FADE_IN_TIME) .turnDelayPerSymbol_1(GT1047.prototype.TURN_DELAY_PER_SYMBOL) .turningTime_1(GT1047.prototype.TURNING_TIME) .appearSound_1("/com/greentube/slot/client/res/playingcards/turn_card.mp3") .cardImage_1(GT1390.prototype.set_0().file_1("playingcards/cardback_single.jpg").tiling_2(1, 1)) .symbols_1(a.symbolImages_0()); }, computeMinDuration_0: function () { return (GT1047.prototype.NUMBER_OF_REELS - 1) * GT1047.prototype.REEL_START_DELAY + GT1047.prototype.FADE_IN_TIME + GT1047.prototype.PAUSE; }, defaultReels_2: function (a, b) { return GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .reel_2( 0, this.playingCardReel_1(b) .revealSound_2(0, "/com/greentube/slot/client/res/playingcards/card1.mp3") .revealSound_2(1, "/com/greentube/slot/client/res/playingcards/card2.mp3") .revealSound_2(2, "/com/greentube/slot/client/res/playingcards/card3.mp3") ) .reel_2( 1, this.playingCardReel_1(b) .revealSound_2(0, "/com/greentube/slot/client/res/playingcards/card4.mp3") .revealSound_2(1, "/com/greentube/slot/client/res/playingcards/card5.mp3") .revealSound_2(2, "/com/greentube/slot/client/res/playingcards/card6.mp3") ) .reel_2( 2, this.playingCardReel_1(b) .revealSound_2(0, "/com/greentube/slot/client/res/playingcards/card7.mp3") .revealSound_2(1, "/com/greentube/slot/client/res/playingcards/card8.mp3") .revealSound_2(2, "/com/greentube/slot/client/res/playingcards/card9.mp3") ) .reel_2( 3, this.playingCardReel_1(b) .revealSound_2(0, "/com/greentube/slot/client/res/playingcards/card10.mp3") .revealSound_2(1, "/com/greentube/slot/client/res/playingcards/card11.mp3") .revealSound_2(2, "/com/greentube/slot/client/res/playingcards/card12.mp3") ) .reel_2( 4, this.playingCardReel_1(b) .revealSound_2(0, "/com/greentube/slot/client/res/playingcards/card13.mp3") .revealSound_2(1, "/com/greentube/slot/client/res/playingcards/card14.mp3") .revealSound_2(2, "/com/greentube/slot/client/res/playingcards/card15.mp3") ) .layout_1(b.reelLayout_0()) .minDuration_1(this.computeMinDuration_0()) .reelStartDelay_1(GT1047.prototype.REEL_START_DELAY) .reelStopDelay_1(GT1047.prototype.REEL_STOP_DELAY); }, }, "GT1047", [] ); GT1047.prototype.defaultSlotBackgroundInFreeGames_2 = function (a, b) { return GT1186.prototype .set_0() .child_1(GT1392.prototype.set_0().id_1(GT1047.prototype.BACKGROUND_IMAGE_FREE_GAMES).imageFile_1("playingcards/game_feature.jpg")) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_f_0.jpg").position_2(GT1047.prototype.getReelPositionX_2(0, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_f_1.jpg").position_2(GT1047.prototype.getReelPositionX_2(1, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_f_2.jpg").position_2(GT1047.prototype.getReelPositionX_2(2, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_f_3.jpg").position_2(GT1047.prototype.getReelPositionX_2(3, b), b.getReelY_0()).cacheScaledVersion_1(!0)) .child_1(GT1392.prototype.set_0().imageFile_1("playingcards/reel/bg_f_4.jpg").position_2(GT1047.prototype.getReelPositionX_2(4, b), b.getReelY_0()).cacheScaledVersion_1(!0)); }; GT1047.prototype.getReelPositionX_2 = function (a, b) { return b.getReelX_0() + GT1047.prototype.NEW_OVERSCAN_VALUE + 22 * a + 222 * a; }; GT1047.prototype.NUMBER_OF_REELS = 5; GT1047.prototype.REEL_START_DELAY = 100; GT1047.prototype.REEL_STOP_DELAY = 200; GT1047.prototype.FADE_IN_TIME = 100; GT1047.prototype.PAUSE = 750; GT1047.prototype.TURN_DELAY_PER_SYMBOL = 150; GT1047.prototype.TURNING_TIME = 200; GT1047.prototype.NEW_OVERSCAN_VALUE = 256; GT1047.prototype.BACKGROUND_IMAGE = GT1560.prototype.generateID_0(); GT1047.prototype.BACKGROUND_IMAGE_FREE_GAMES = GT1560.prototype.generateID_0(); var GT1209 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); }, mainGui_2: function (a, b) { return GT1186.prototype .set_0() .child_1( a .modify_2(GT1618.prototype.MAIN_GUI_CONTAINER, GT1442.prototype.set_0().height_1(2048)) .modify_2(GT1618.prototype.BACKGROUND_PARENT_CONTAINER, GT1442.prototype.set_0().height_1(2048)) .size_2(2048, 1024) .position_2(-304, 0) ); }, }, "GT1209", [] ), GT784 = GT1412.extend( { initialConstructor_0: function () { this.isUsingDynScreensLayout = !1; this.layoutId = this.reservedAreaAlpha = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.isUsingDynScreensLayout = !1; this.layoutId = this.reservedAreaAlpha = 0; GT1412.prototype.initialConstructor_1.call(this, a); this.isUsingDynScreensLayout = b; this.reservedAreaAlpha = e; d.equals_1("default") ? (this.layoutId = GT784.prototype.ID_DESKTOP_LAYOUT) : d.equals_1("restricted") ? (this.layoutId = GT784.prototype.ID_MOBILE_LAYOUT) : d.equals_1("terminal") ? (this.layoutId = GT784.prototype.ID_TERMINAL_LAYOUT) : d.equals_1("vipterminal") ? (this.layoutId = GT784.prototype.ID_VIPTERMINAL_LAYOUT) : (this.layoutId = -1); }, outsideCoreReservedArea_1: function (a) { return GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().blue_0()).transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)).size_2(a, GT784.prototype.TOTAL_HEIGHT); }, gameOverlayReservedArea_2: function (a, b) { var d = this.isUsingDynScreensLayout ? Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2) : 0; return GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().red_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .size_2(a, b + d); }, generateReservedAreaForDesktopLayout_2: function (a, b) { var d = Math.div(GT784.prototype.TOTAL_WIDTH - GT784.prototype.CORE_AREA_TOTAL_WIDTH, 2), e = b.getInnerMainGuiX_0() + 128, f = b.getInnerMainGuiX_0() + 1288 + 120 - GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP, g = GT784.prototype.CONSOLE_HEIGHT + 15; this.isUsingDynScreensLayout && (g = GT784.prototype.CONSOLE_HEIGHT + GT1097.prototype.getSafeAreaHeightBottom_0() + GT1097.prototype.getConsoleOffsetY_0()); a.childAfter_2( GT1618.prototype.RESERVED_AREA_CONTAINER, GT1186.prototype .set_0() .id_1(GT1618.prototype.RESERVED_AREA_TOP_CONTAINER) .child_1(this.outsideCoreReservedArea_1(d).position_2(0, 0)) .child_1(this.outsideCoreReservedArea_1(d).position_2(GT784.prototype.TOTAL_WIDTH - d, 0)) .child_1(this.gameOverlayReservedArea_2(GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP, GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_DESKTOP).position_2(e, 0)) .child_1(this.gameOverlayReservedArea_2(GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP, GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_DESKTOP).position_2(f, 0)) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().magenta_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .position_2(d, GT784.prototype.TOTAL_HEIGHT - g) .size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH, g) ) ); this.isUsingDynScreensLayout && a.child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().red_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH - 2 * GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP, Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2)) .position_2(e + GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP, 0) ); return a; }, generateReservedAreaForMobileLayout_2: function (a, b) { var d = GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE_EXTRA, d = d + (this.isUsingDynScreensLayout ? Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2) : 0), e = Math.div(GT784.prototype.TOTAL_WIDTH - GT784.prototype.CORE_AREA_TOTAL_WIDTH, 2), f = GT784.prototype.CONSOLE_HEIGHT + 15; a.childAfter_2( GT1618.prototype.RESERVED_AREA_CONTAINER, GT1186.prototype .set_0() .id_1(GT1618.prototype.RESERVED_AREA_TOP_CONTAINER) .child_1(this.outsideCoreReservedArea_1(e).position_2(0, 0)) .child_1(this.outsideCoreReservedArea_1(e).position_2(GT784.prototype.TOTAL_WIDTH - e, 0)) .child_1(this.gameOverlayReservedArea_2(GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE).position_2(0, 0)) .child_1( this.gameOverlayReservedArea_2(GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE).position_2( GT784.prototype.TOTAL_WIDTH - GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, 0 ) ) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().red_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .size_2(GT784.prototype.TOTAL_WIDTH - 2 * GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, d) .position_2(GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE, 0) ) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().magenta_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .position_2(e, GT784.prototype.TOTAL_HEIGHT - f) .size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH, f) ) ); return a; }, generateReservedAreaForTerminalLayout_2: function (a, b) { var d = Math.div(GT784.prototype.TOTAL_WIDTH - GT784.prototype.CORE_AREA_TOTAL_WIDTH, 2), e = GT784.prototype.CONSOLE_HEIGHT + 15; a.childAfter_2( GT1618.prototype.RESERVED_AREA_CONTAINER, GT1186.prototype .set_0() .id_1(GT1618.prototype.RESERVED_AREA_TOP_CONTAINER) .child_1( GT1188.prototype .set_0() .color_1(GT1391.prototype.set_0().magenta_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)) .position_2(d, GT784.prototype.TOTAL_HEIGHT - e) .size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH, e) ) ); a.child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().green_0()).transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)).size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH, 768)) .position_2(d, 0) ); return a; }, generateReservedAreaForVipTerminalLayout_2: function (a, b) { var d = Math.div(GT784.prototype.TOTAL_WIDTH - GT784.prototype.CORE_AREA_TOTAL_WIDTH, 2); a.child_1( GT1186.prototype .set_0() .child_1(GT1188.prototype.set_0().color_1(GT1391.prototype.set_0().yellow_0()).transparency_1(GT1022.prototype.set_0().alpha_1(this.reservedAreaAlpha)).size_2(GT784.prototype.CORE_AREA_TOTAL_WIDTH, 768)) .position_2(d, 1668) ); return a; }, mainGui_2: function (a, b) { this.layoutId == GT784.prototype.ID_DESKTOP_LAYOUT ? (a = this.generateReservedAreaForDesktopLayout_2(a, b)) : this.layoutId == GT784.prototype.ID_MOBILE_LAYOUT ? (a = this.generateReservedAreaForMobileLayout_2(a, b)) : this.layoutId == GT784.prototype.ID_TERMINAL_LAYOUT ? (a = this.generateReservedAreaForTerminalLayout_2(a, b)) : this.layoutId == GT784.prototype.ID_VIPTERMINAL_LAYOUT && ((a = this.generateReservedAreaForTerminalLayout_2(a, b)), (a = this.generateReservedAreaForVipTerminalLayout_2(a, b))); return a; }, }, "GT784", [] ); GT784.prototype.ID_DESKTOP_LAYOUT = GT1677.prototype.generateID_0(); GT784.prototype.ID_MOBILE_LAYOUT = GT1677.prototype.generateID_0(); GT784.prototype.ID_TERMINAL_LAYOUT = GT1677.prototype.generateID_0(); GT784.prototype.ID_VIPTERMINAL_LAYOUT = GT1677.prototype.generateID_0(); GT784.prototype.TOTAL_WIDTH = 2048; GT784.prototype.TOTAL_HEIGHT = 1024; GT784.prototype.CORE_AREA_TOTAL_WIDTH = 1280; GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_DESKTOP = 260; GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_DESKTOP = 120; GT784.prototype.GAME_OVERLAY_RESERVED_AREA_WIDTH_MOBILE = 814; GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE = 125; GT784.prototype.GAME_OVERLAY_RESERVED_AREA_HEIGHT_MOBILE_EXTRA = 10; GT784.prototype.CONSOLE_HEIGHT = 170; var GT630 = GT1412.extend( { initialConstructor_0: function () { this.showTotalRoundWin = this.showLastWin = this.showCredits = this.showTotalBet = this.showBetPerLine = this.showSelectedLines = this.showGambleButton = this.showMaxBetButton = this.showExitButton = this.showTopUpButton = this.showMusicButtons = this.showSoundButtons = !1; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.showTotalRoundWin = this.showLastWin = this.showCredits = this.showTotalBet = this.showBetPerLine = this.showSelectedLines = this.showGambleButton = this.showMaxBetButton = this.showExitButton = this.showTopUpButton = this.showMusicButtons = this.showSoundButtons = !1; GT1412.prototype.initialConstructor_1.call(this, a); this.showSoundButtons = b; this.showMusicButtons = d; this.showTopUpButton = e; this.showExitButton = f; this.showMaxBetButton = g; this.showGambleButton = k; this.showSelectedLines = m; this.showBetPerLine = n; this.showTotalBet = p; this.showCredits = q; this.showLastWin = r; this.showTotalRoundWin = t; }, console_2: function (a, b) { null != a && (this.showSoundButtons || a.remove_1(GT307.prototype.ACTION_SOUNDOFF).remove_1(GT307.prototype.ACTION_SOUNDON), this.showMusicButtons || a.remove_1(GT307.prototype.ACTION_MUSICOFF).remove_1(GT307.prototype.ACTION_MUSICON), this.showTopUpButton || a.remove_1(GT307.prototype.ACTION_ACCOUNT), this.showExitButton || a.remove_1(GT307.prototype.ACTION_LEAVETABLE), this.showMaxBetButton || a.remove_1(GT834.prototype.ID_BUTTON_MAX_BET), this.showGambleButton || a.remove_1(GT834.prototype.ID_BUTTON_GAMBLE).remove_1(GT834.prototype.ID_BUTTON_GAMBLE_BLACK).remove_1(GT834.prototype.ID_BUTTON_GAMBLE_RED), this.showSelectedLines || a .remove_1(GT1150.prototype.ID_FAKE_BUTTON_LINES) .remove_1(GT1150.prototype.ID_TEXT_LINES) .remove_1(GT834.prototype.ID_LABEL_LINES) .remove_1(GT834.prototype.ID_FIELD_LINES) .remove_1(GT834.prototype.ID_SPINNER_DARK) .remove_1(GT834.prototype.ID_SPINNER_LINES) .remove_1(GT834.prototype.ID_SPINNER_GAME_MODES), this.showBetPerLine || a .remove_1(GT1150.prototype.ID_FAKE_BUTTON_BETPERLINE) .remove_1(GT1150.prototype.ID_TEXT_BETPERLINE) .remove_1(GT834.prototype.ID_LABEL_BETPERLINE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_SPINNER_BETPERLINE), this.showTotalBet || a.remove_1(GT834.prototype.ID_LABEL_BET).remove_1(GT834.prototype.ID_FIELD_TOTALBET), this.showCredits || a.remove_1(GT834.prototype.ID_LABEL_CREDIT).remove_1(GT834.prototype.ID_FIELD_CREDIT), this.showLastWin || a.remove_1(GT834.prototype.ID_LABEL_LASTWIN).remove_1(GT834.prototype.ID_FIELD_LASTWIN).remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER), this.showTotalRoundWin || a.remove_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN).remove_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN), this.showSelectedLines || this.showBetPerLine || this.showTotalBet || a.remove_1(GT834.prototype.ID_BACKGROUND_INFORMATION)); return a; }, }, "GT630", [] ), GT908 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.modify_2(GT943.prototype.ID_CNTLOGO, GT1240.prototype.set_0().x_1(82).y_1(706)); }, slotBackground_2: function (a, b) { return null == a ? a : GT1392.prototype.set_0().imageFile_1("game/game_mobile_sv.jpg").position_2(0, 0); }, slotBackgroundInFreeGames_2: function (a, b) { return null == a ? a : GT1392.prototype.set_0().imageFile_1("game/game_feature_mobile_sv.jpg").position_2(0, 0); }, }, "GT908", [] ), GT394 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a .modify_2(GT943.prototype.ID_CNTLOGO, GT1240.prototype.set_0().x_1(120).y_1(694)) .modify_2(GT943.prototype.ID_ENTITYSESSION, GT1240.prototype.set_0().y_1(986)) .modify_2(GT943.prototype.ID_ENTITYPARTICIPATION, GT1240.prototype.set_0().y_1(986)) .modify_2(GT943.prototype.ID_ENTITYCONCESSION, GT1240.prototype.set_0().y_1(986)) .modify_2(GT943.prototype.ID_BOTTOMINSETAREA, GT1240.prototype.set_0().y_1(986)); }, console_2: function (a, b) { return a .modify_2(GT834.prototype.ID_FIELD_FREEROUNDS, GT1240.prototype.set_0().y_1(935)) .modify_2(GT834.prototype.ID_FIELD_CREDIT, GT1240.prototype.set_0().y_1(935)) .modify_2(GT943.prototype.ID_TEXT_CREDIT, GT1240.prototype.set_0().y_1(935)) .modify_2(GT834.prototype.ID_FIELD_BALANCE, GT1240.prototype.set_0().y_1(935)) .modify_2(GT943.prototype.ID_TEXT_BALANCE, GT1240.prototype.set_0().y_1(935)); }, }, "GT394", [] ), GT946 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, defaultBigValueField_0: function () { return GT1135.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(170)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().yellow_0()) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(5, 5, 5, 5) .breakLines_1(!1); }, defaultTextAreaSmallLabel_0: function () { return GT1239.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(100)) .fontColor_1(GT1391.prototype.set_0().white_0()) .insets_4(0, 0, 0, 3); }, console_2: function (a, b) { return a .childAfter_2( GT834.prototype.ID_LABEL_LASTWIN, this.defaultBigValueField_0() .id_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN) .position_2(1005, 0) .size_2(215, 85) .background_1(GT1025.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/infoback.png").insets_4(15, 15, 15, 15).transparency_1(GT1022.prototype.set_0().alpha_1(230))) .hAlign_1(GT1488.prototype.CENTER) .insets_4(10, 10, 30, 10) ) .childAfter_2( GT834.prototype.ID_FIELD_TOTALROUNDWIN, this.defaultTextAreaSmallLabel_0() .id_1(GT834.prototype.ID_LABEL_TOTALROUNDWIN) .position_2(1005, 0) .size_2(215, 85) .insets_4(10, 10, 15, 55) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .text_1("${console_label_totalroundwin}") ) .remove_1(GT834.prototype.ID_LABEL_LASTWIN) .remove_1(GT834.prototype.ID_FIELD_LASTWIN) .remove_1(GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER); }, }, "GT946", [] ), GT330 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_1.call(this, GT558.prototype.ORDER_EXTERNAL); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, reels_2: function (a, b) { return null != a && instanceOf(a, GT1252) && null != a.getReel_1(1) && instanceOf(a.getReel_1(1), GT1304) ? a.reel_2(0, GT213.prototype.set_0().randomStartPositions_1(!0).symbols_1(b.symbolImages_0()).videoClip_1("game/blurredreel.flv")).minDuration_1(1200).reelStopDelay_1(300).manualSelectSoundsReelsRun_1(!1) : GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .reel_2(0, GT213.prototype.set_0().symbols_1(b.symbolImages_0()).randomStartPositions_1(!0).videoClip_1("game/blurredreel.flv")) .layout_1(b.reelLayout_0()) .minDuration_1(1200) .reelStopDelay_1(300) .manualSelectSoundsReelsRun_1(!1) .addSoundReelsRun_1("/com/greentube/slot/client/res/novo/reelrun.mp3") .soundReelsRunSilent_1("/com/greentube/slot/client/res/novo/reelsilent.mp3"); }, reelsInFreeGames_2: function (a, b) { return null != a && instanceOf(a, GT1252) ? null != a.getReel_1(0) && instanceOf(a.getReel_1(0), GT938) ? a : null != a.getReel_1(0) && null != a.getReel_1(1) && instanceOf(a.getReel_1(1), GT1304) ? a.reel_2(0, GT213.prototype.set_0().symbols_1(b.symbolImages_0()).randomStartPositions_1(!0).videoClip_1("game/blurredreel.flv")).minDuration_1(1200).reelStopDelay_1(300).manualSelectSoundsReelsRun_1(!1) : this.newReels_2(a, b) : this.newReels_2(a, b); }, newReels_2: function (a, b) { return GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .reel_2(0, GT213.prototype.set_0().symbols_1(b.symbolImages_0()).randomStartPositions_1(!0).videoClip_1("game/blurredreel.flv")) .layout_1(b.reelLayout_0()) .minDuration_1(1200) .reelStopDelay_1(300) .manualSelectSoundsReelsRun_1(!1); }, }, "GT330", [] ), GT382 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, console_2: function (a, b) { return a .remove_1(GT834.prototype.ID_BUTTON_START) .remove_1(GT834.prototype.ID_BUTTON_STOP) .remove_1(GT834.prototype.ID_BUTTON_PAYTABLE) .remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .remove_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .remove_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .remove_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .remove_1(GT834.prototype.ID_SPINNER_LINES) .remove_1(GT834.prototype.ID_SPINNER_GAME_MODES) .remove_1(GT834.prototype.ID_SPINNER_DARK) .remove_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .remove_1(GT834.prototype.ID_SPINNER_BETPERLINE) .remove_1(GT834.prototype.ID_FIELD_BETPERLINE) .remove_1(GT834.prototype.ID_FIELD_LINES) .remove_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .remove_1(GT834.prototype.ID_BUTTON_COLLECT) .remove_1(GT834.prototype.ID_BUTTON_COLLECTHALF) .remove_1(GT834.prototype.ID_BUTTON_GAMBLE) .remove_1(GT834.prototype.ID_FIELD_BALANCE) .remove_1(GT1155.prototype.ID_TEXT_BETPERLINE) .remove_1(GT1155.prototype.ID_TEXT_LINES); }, }, "GT382", [] ), GT679 = GT1412.extend( { initialConstructor_0: function () { this.gameHeight = this.scale = this.gap = this.consoleHeight = 0; GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.gameHeight = this.scale = this.gap = this.consoleHeight = 0; GT1412.prototype.initialConstructor_1.call(this, e); this.gap = 10; this.gameHeight = d ? GT526.prototype.GAME_HEIGHT_DYN_SCREENS : GT1046.prototype.GAME_HEIGHT; this.consoleHeight = f < Integer.MAX_VALUE ? 166 - this.gap : a.height - this.gameHeight - this.gap - b; this.scale = this.consoleHeight / 157; }, console_2: function (a, b) { return a .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE, this.defaultButtonSmall_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE) .position_2(0, this.gameHeight + this.consoleHeight - this.buttonSmallHeight_0()) .text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_paytable}").id_1(GT834.prototype.ID_TEXT_PAYTABLE)) ) .modify_2( GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE, this.defaultButtonSmall_0() .id_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .position_2(0, this.gameHeight + this.consoleHeight - this.buttonSmallHeight_0()) .text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_paytable}").id_1(GT834.prototype.ID_TEXT_PAYTABLE)) ) .modify_2( GT834.prototype.ID_BUTTON_AUTOSTOP, this.defaultButtonSmall_0() .id_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .position_2(0, this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_AUTOSTOP) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_autostop}") ) ) .remove_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .child_1( this.defaultButtonHighlightedSmall_0() .id_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .position_2(0, this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .id_1(GT834.prototype.ID_TEXT_AUTOPLAY) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(260 * this.scale)) ) .text_1("${buttontext_autoplay}") ) ) .child_1( this.defaultButtonHighlightedSmall_0().id_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT).position_2(0, this.gameHeight).text_1(this.defaultDynamicTextAreaButtonBigButton_0().text_1("${buttontext_paytablenext}")) ) .remove_1(GT834.prototype.ID_BUTTON_GAMBLE) .child_1( this.defaultButtonHighlightedBig_0() .id_1(GT834.prototype.ID_BUTTON_GAMBLE) .position_2(0, this.gameHeight) .text_1( this.defaultDynamicTextAreaButtonBigButton_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(300 * this.scale)) ) .text_1("${buttontext_gamble}") ) ) .remove_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); }, defaultButtonSmall_0: function () { return GT1355.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_small.png").overrideSize_2(this.buttonSmallWidth_0(), this.buttonSmallHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultButtonHighlightedSmall_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_small.png").overrideSize_2(this.buttonSmallWidth_0(), this.buttonSmallHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, buttonSmallWidth_0: function () { return Integer.truncate_1(170 * this.scale); }, buttonSmallHeight_0: function () { return Integer.truncate_1(75 * this.scale); }, defaultDynamicTextAreaButtonBigButton_0: function () { return GT872.prototype .set_0() .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(180 * this.scale)) ) .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.VERDANA) .bold_0() .size_1(Integer.truncate_1(140 * this.scale)) ) .fontColor_1(GT1391.prototype.set_0().black_0()) .insets_4(10, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, GT1391.prototype.set_0().white_0()); }, buttonBigWidth_0: function () { return 2 * this.buttonSmallWidth_0() + this.gap; }, buttonBigHeight_0: function () { return this.consoleHeight; }, defaultButtonHighlightedBig_0: function () { return GT613.prototype .set_0() .image_1(GT1390.prototype.set_0().file_1("/com/greentube/slot/client/res/bigbutton/b_start_big.png").overrideSize_2(this.buttonBigWidth_0(), this.buttonBigHeight_0())) .textInactiveColor_2(GT1391.prototype.set_0().white_0(), GT1391.prototype.set_0().white_0()); }, defaultConsoleStates_2: function (a, b) { return GT949.prototype .set_0() .state_2( GT725.prototype.BEFORE_SPIN, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_CHANGE_BET, b .defaultPConsoleState_0() .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .highlighted_1(GT834.prototype.ID_BUTTON_MAX_BET) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_SPIN_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) ) .state_2( GT725.prototype.BEFORE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.BEFORE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE) ) .state_2( GT725.prototype.INACTIVE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) ) .state_2( GT725.prototype.FASTSTOP, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) ) .state_2( GT725.prototype.FASTCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.SKIPCOLLECT, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_GAMBLE) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) ) .state_2( GT725.prototype.FASTSPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2(GT725.prototype.FASTCOLLECTORGAMBLE, b.defaultPConsoleState_0().active_1(GT834.prototype.ID_BUTTON_GAMBLE).active_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2(GT725.prototype.BEFORE_GAMBLE, b.defaultPConsoleState_0().highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE)) .state_2(GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2(GT725.prototype.GAMBLE, b.defaultPConsoleState_0().highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE)) .state_2(GT725.prototype.GAMBLE_MAXWIN, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2( GT725.prototype.GAMBLE_COLLECTHALF, b.defaultPConsoleState_0().highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECTHALF) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT).highlighted_1(GT834.prototype.ID_BUTTON_GAMBLE) ) .state_2( GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_COLLECTHALF).inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2(GT725.prototype.GAMBLE_REDBLACK, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT)) .state_2( GT725.prototype.GAMBLE_REDBLACK_MAXWIN, b.defaultPConsoleState_0().inactive_1(GT834.prototype.ID_BUTTON_GAMBLE).inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE).highlighted_1(GT834.prototype.ID_BUTTON_COLLECT) ) .state_2( GT725.prototype.AUTO_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_STOP_SPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_STOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.AUTO_SPIN_SKIP_WIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_SKIP_COLLECT) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP) .active_1(GT834.prototype.ID_BUTTON_AUTOSTOP_S) ) .state_2( GT725.prototype.PAYTABLE, b .defaultPConsoleState_0() .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_FREESPIN_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) .active_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.PAYTABLE_MUST_CHANGE_BET, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_LINES_UP) .highlighted_1(GT834.prototype.ID_BUTTON_SPINNER_BET_UP) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ZERO_CREDITS, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_START) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .active_1(GT834.prototype.ID_SPINNER_BETPERLINE) .active_1(GT834.prototype.ID_BUTTON_MAX_BET) .active_1(GT834.prototype.ID_SPINNER_DARK) .active_1(GT834.prototype.ID_SPINNER_LINES) .active_1(GT834.prototype.ID_SPINNER_GAME_MODES) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.PAYTABLE_ONLY, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE) .active_1(GT834.prototype.ID_BUTTON_PAYTABLE_NEXT) ) .state_2( GT725.prototype.SUPERGAME, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) ) .state_2( GT725.prototype.FEATURE, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .highlighted_1(GT834.prototype.ID_BUTTON_START) .active_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .active_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) ) .state_2( GT725.prototype.FEATURE_NO_AUTOSTART, b .defaultPConsoleState_0() .inactive_1(GT834.prototype.ID_BUTTON_MAX_BET) .inactive_1(GT834.prototype.ID_SPINNER_DARK) .inactive_1(GT834.prototype.ID_SPINNER_LINES) .inactive_1(GT834.prototype.ID_SPINNER_GAME_MODES) .inactive_1(GT834.prototype.ID_SPINNER_BETPERLINE) .inactive_1(GT834.prototype.ID_BUTTON_PAYTABLE) .inactive_1(GT834.prototype.ID_SPINNER_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY) .inactive_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S) .highlighted_1(GT834.prototype.ID_BUTTON_START) ); }, }, "GT679", [] ), GT1600 = GT1256.extend( { initialConstructor_0: function () { this.decorators = this.decoratorTable = null; this.decoratorGroup = 0; GT1256.prototype.initialConstructor_0.call(this); this.decorators = [].createArray(0); this.decoratorTable = new java_util_JavaScriptHashtable(); this.decoratorTable.put_2(new Integer(GT1600.prototype.DEFAULT_DECORATOR_GROUP).toString(), this.decorators); this.decoratorGroup = GT1600.prototype.DEFAULT_DECORATOR_GROUP; }, getDecoratorGroup_0: function () { return this.decoratorGroup; }, setDecoratorGroup_1: function (a) { var b = this.decoratorTable.get_1(new Integer(a).toString()); null != b && ((this.decorators = b), (this.decoratorGroup = a)); }, addDecorator_1: function (a) { for (var b = this.decoratorTable.clone_0().keys_0(); b.hasMoreElements_0(); ) { for (var d = b.nextElement_0(), e = this.decoratorTable.get_1(d), f = [].createArray(e.length + 1), g = a.getDecorationOrder_0(), k = 0, m = 0; k < e.length && e[k].getDecorationOrder_0() <= g; k++, m++) f[m] = e[k]; for (f[m++] = a; k < e.length; k++, m++) f[m] = e[k]; this.decoratorTable.put_2(d, f); e == this.decorators && (this.decorators = f); } }, addDecorator_2: function (a, b) { if (a == GT1600.prototype.DEFAULT_DECORATOR_GROUP) this.addDecorator_1(b); else { var d = new Integer(a), e = this.decoratorTable.get_1(d.toString()); if (null == e) for (var f = this.decoratorTable.get_1(new Integer(GT1600.prototype.DEFAULT_DECORATOR_GROUP).toString()), e = [].createArray(f.length), g = 0; g < f.length; ++g) e[g] = f[g]; for (var f = [].createArray(e.length + 1), g = b.getDecorationOrder_0(), k = 0, m = 0; k < e.length && e[k].getDecorationOrder_0() <= g; k++, m++) f[m] = e[k]; for (f[m++] = b; k < e.length; k++, m++) f[m] = e[k]; this.decoratorTable.put_2(d.toString(), f); e == this.decorators && (this.decorators = f); } }, getReelX_0: function () { for (var a = GT1256.prototype.getReelX_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getReelX_2(a, this); return a; }, getReelY_0: function () { for (var a = GT1256.prototype.getReelY_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getReelY_2(a, this); return a; }, getInnerMainGuiX_0: function () { for (var a = GT1256.prototype.getInnerMainGuiX_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getInnerMainGuiX_2(a, this); return a; }, getSlideInOutScreenX_0: function () { for (var a = GT1256.prototype.getSlideInOutScreenX_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getSlideInOutScreenX_2(a, this); return a; }, getSlideInOutScreenY_0: function () { for (var a = GT1256.prototype.getSlideInOutScreenY_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getSlideInOutScreenY_2(a, this); return a; }, getSlideInOutScreenWidth_0: function () { for (var a = GT1256.prototype.getSlideInOutScreenWidth_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getSlideInOutScreenWidth_2(a, this); return a; }, getSlideInOutScreenHeight_0: function () { for (var a = GT1256.prototype.getSlideInOutScreenHeight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].getSlideInOutScreenHeight_2(a, this); return a; }, reelLayout_0: function () { for (var a = GT1256.prototype.reelLayout_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].reelLayout_2(a, this); return a; }, getDecoratorsCount_0: function () { return this.decorators.length; }, getDecorator_1: function (a) { return a < this.decorators.length ? this.decorators[a] : null; }, mainGui_0: function () { for (var a = GT1256.prototype.mainGui_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].mainGui_2(a, this); return a; }, gameLogoContainer_0: function () { for (var a = GT1256.prototype.gameLogoContainer_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].gameLogoContainer_2(a, this); return a; }, gameLogo_0: function () { for (var a = GT1256.prototype.gameLogo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].gameLogo_2(a, this); return a; }, gameLogoInFreeGames_0: function () { for (var a = GT1256.prototype.gameLogoInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].gameLogoInFreeGames_2(a, this); return a; }, platformLogo_0: function () { for (var a = GT1256.prototype.platformLogo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].platformLogo_2(a, this); return a; }, slotBackground_0: function () { for (var a = GT1256.prototype.slotBackground_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].slotBackground_2(a, this); return a; }, slotBackgroundInFreeGames_0: function () { for (var a = GT1256.prototype.slotBackgroundInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].slotBackgroundInFreeGames_2(a, this); return a; }, reels_0: function () { for (var a = GT1256.prototype.reels_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].reels_2(a, this); return a; }, autoSpinDelay_0: function () { for (var a = GT1256.prototype.autoSpinDelay_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].autoSpinDelay_2(a, this); return a; }, reel_0: function () { for (var a = GT1256.prototype.reel_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].reel_2(a, this); return a; }, defaultReel_0: function () { for (var a = GT1256.prototype.defaultReel_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultReel_2(a, this); return a; }, reelsInFreeGames_0: function () { for (var a = GT1256.prototype.reelsInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].reelsInFreeGames_2(a, this); return a; }, stoppedReels_0: function () { for (var a = GT1256.prototype.stoppedReels_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].stoppedReels_2(a, this); return a; }, stoppedReelsInFreeGames_0: function () { for (var a = GT1256.prototype.stoppedReelsInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].stoppedReelsInFreeGames_2(a, this); return a; }, highlight_0: function () { for (var a = GT1256.prototype.highlight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].highlight_2(a, this); return a; }, highlightInFreeGames_0: function () { for (var a = GT1256.prototype.highlightInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].highlightInFreeGames_2(a, this); return a; }, freeGameStartScreen_0: function () { for (var a = GT1256.prototype.freeGameStartScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].freeGameStartScreen_2(a, this); return a; }, freeGameMoreScreen_0: function () { for (var a = GT1256.prototype.freeGameMoreScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].freeGameMoreScreen_2(a, this); return a; }, freeGameEndScreen_0: function () { for (var a = GT1256.prototype.freeGameEndScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].freeGameEndScreen_2(a, this); return a; }, freeGameScreenBackground_0: function () { for (var a = GT1256.prototype.freeGameScreenBackground_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].freeGameScreenBackground_2(a, this); return a; }, defaultFreeGamesDynamicTextArea_0: function () { for (var a = GT1256.prototype.defaultFreeGamesDynamicTextArea_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultFreeGamesDynamicTextArea_2(a, this); return a; }, freeGameSounds_0: function () { for (var a = GT1256.prototype.freeGameSounds_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].freeGameSounds_2(a, this); return a; }, baseGameMelodies_0: function () { for (var a = GT1256.prototype.baseGameMelodies_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].baseGameMelodies_2(a, this); return a; }, symbolImages_0: function () { for (var a = GT1256.prototype.symbolImages_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].symbolImages_2(a, this); return a; }, symbolImagesBlur_0: function () { for (var a = GT1256.prototype.symbolImagesBlur_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].symbolImagesBlur_2(a, this); return a; }, symbolImagesHighlight_0: function () { for (var a = GT1256.prototype.symbolImagesHighlight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].symbolImagesHighlight_2(a, this); return a; }, symbolVideosHighlight_0: function () { for (var a = GT1256.prototype.symbolVideosHighlight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].symbolVideosHighlight_2(a, this); return a; }, symbolSpinesHighlight_0: function () { for (var a = GT1256.prototype.symbolSpinesHighlight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].symbolSpinesHighlight_2(a, this); return a; }, winLines_0: function () { for (var a = GT1256.prototype.winLines_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].winLines_2(a, this); return a; }, winLinesNet_0: function () { for (var a = GT1256.prototype.winLinesNet_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].winLinesNet_2(a, this); return a; }, console_0: function () { for (var a = GT1256.prototype.console_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].console_2(a, this); return a; }, defaultConsoleStates_0: function () { for (var a = GT1256.prototype.defaultConsoleStates_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultConsoleStates_2(a, this); return a; }, defaultPConsoleState_0: function () { for (var a = GT1256.prototype.defaultPConsoleState_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultPConsoleState_2(a, this); return a; }, paytable_0: function () { for (var a = GT1256.prototype.paytable_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].paytable_2(a, this); return a; }, paytableWinTable_0: function () { for (var a = GT1256.prototype.paytableWinTable_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].paytableWinTable_2(a, this); return a; }, gamble_0: function () { for (var a = GT1256.prototype.gamble_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].gamble_2(a, this); return a; }, gambleBackground_0: function () { for (var a = GT1256.prototype.gambleBackground_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].gambleBackground_2(a, this); return a; }, superGame_0: function () { for (var a = GT1256.prototype.superGame_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].superGame_2(a, this); return a; }, winSounds_0: function () { for (var a = GT1256.prototype.winSounds_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].winSounds_2(a, this); return a; }, winSoundsInFreeGames_0: function () { for (var a = GT1256.prototype.winSoundsInFreeGames_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].winSoundsInFreeGames_2(a, this); return a; }, bigWinVisual_0: function () { for (var a = GT1256.prototype.bigWinVisual_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].bigWinVisual_2(a, this); return a; }, defaultWinLines53a10_0: function () { for (var a = GT1256.prototype.defaultWinLines53a10_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53a10_2(a, this); return a; }, defaultWinLines53a10Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53a10Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53a10Net_2(a, this); return a; }, defaultWinLines53a20_0: function () { for (var a = GT1256.prototype.defaultWinLines53a20_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53a20_2(a, this); return a; }, defaultWinLines53a20Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53a20Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53a20Net_2(a, this); return a; }, defaultWinLines53b10_0: function () { for (var a = GT1256.prototype.defaultWinLines53b10_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b10_2(a, this); return a; }, defaultWinLines53b10Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53b10Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b10Net_2(a, this); return a; }, defaultWinLines53b20_0: function () { for (var a = GT1256.prototype.defaultWinLines53b20_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b20_2(a, this); return a; }, defaultWinLines53b20Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53b20Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b20Net_2(a, this); return a; }, defaultWinLines53b25_0: function () { for (var a = GT1256.prototype.defaultWinLines53b25_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b25_2(a, this); return a; }, defaultWinLines53b25Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53b25Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53b25Net_2(a, this); return a; }, defaultWinLines53c10_0: function () { for (var a = GT1256.prototype.defaultWinLines53c10_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53c10_2(a, this); return a; }, defaultWinLines53c10Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53c10Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53c10Net_2(a, this); return a; }, defaultWinLines53c20_0: function () { for (var a = GT1256.prototype.defaultWinLines53c20_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53c20_2(a, this); return a; }, defaultWinLines53c20Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53c20Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53c20Net_2(a, this); return a; }, defaultWinLines53d20_0: function () { for (var a = GT1256.prototype.defaultWinLines53d20_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53d20_2(a, this); return a; }, defaultWinLines53d20Net_0: function () { for (var a = GT1256.prototype.defaultWinLines53d20Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines53d20Net_2(a, this); return a; }, defaultWinLines54a40_0: function () { for (var a = GT1256.prototype.defaultWinLines54a40_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a40_2(a, this); return a; }, defaultWinLines54a40Net_0: function () { for (var a = GT1256.prototype.defaultWinLines54a40Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a40Net_2(a, this); return a; }, defaultWinLines54a50_0: function () { for (var a = GT1256.prototype.defaultWinLines54a50_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a50_2(a, this); return a; }, defaultWinLines54a50Net_0: function () { for (var a = GT1256.prototype.defaultWinLines54a50Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a50Net_2(a, this); return a; }, defaultWinLines54a100_0: function () { for (var a = GT1256.prototype.defaultWinLines54a100_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a100_2(a, this); return a; }, defaultWinLines54b100_0: function () { for (var a = GT1256.prototype.defaultWinLines54b100_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54b100_2(a, this); return a; }, defaultWinLines54a100Net_0: function () { for (var a = GT1256.prototype.defaultWinLines54a100Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54a100Net_2(a, this); return a; }, defaultWinLines54b100Net_0: function () { for (var a = GT1256.prototype.defaultWinLines54b100Net_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultWinLines54b100Net_2(a, this); return a; }, defaultReels_0: function () { for (var a = GT1256.prototype.defaultReels_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultReels_2(a, this); return a; }, defaultPaytable_0: function () { for (var a = GT1256.prototype.defaultPaytable_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultPaytable_2(a, this); return a; }, defaultFreeGameStartEndScreen_0: function () { for (var a = GT1256.prototype.defaultFreeGameStartEndScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultFreeGameStartEndScreen_2(a, this); return a; }, defaultPaytableEntry_0: function () { for (var a = GT1256.prototype.defaultPaytableEntry_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultPaytableEntry_2(a, this); return a; }, defaultPaytableValue_0: function () { for (var a = GT1256.prototype.defaultPaytableValue_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultPaytableValue_2(a, this); return a; }, defaultJackpotField_0: function () { for (var a = GT1256.prototype.defaultJackpotField_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultJackpotField_2(a, this); return a; }, defaultJackpotFieldInGame_0: function () { for (var a = GT1256.prototype.defaultJackpotFieldInGame_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultJackpotFieldInGame_2(a, this); return a; }, defaultTextAreaSmall_0: function () { for (var a = GT1256.prototype.defaultTextAreaSmall_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultTextAreaSmall_2(a, this); return a; }, defaultTextAreaMedium_0: function () { for (var a = GT1256.prototype.defaultTextAreaMedium_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultTextAreaMedium_2(a, this); return a; }, defaultTextAreaBig_0: function () { for (var a = GT1256.prototype.defaultTextAreaBig_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultTextAreaBig_2(a, this); return a; }, defaultDynamicTextAreaSmall_0: function () { for (var a = GT1256.prototype.defaultDynamicTextAreaSmall_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultDynamicTextAreaSmall_2(a, this); return a; }, defaultDynamicTextAreaMedium_0: function () { for (var a = GT1256.prototype.defaultDynamicTextAreaMedium_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultDynamicTextAreaMedium_2(a, this); return a; }, defaultDynamicTextAreaBig_0: function () { for (var a = GT1256.prototype.defaultDynamicTextAreaBig_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultDynamicTextAreaBig_2(a, this); return a; }, autoplayText_0: function () { for (var a = GT1256.prototype.autoplayText_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].autoplayText_2(a, this); return a; }, autoplayCounter_0: function () { for (var a = GT1256.prototype.autoplayCounter_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].autoplayCounter_2(a, this); return a; }, defaultRedBlackGamble_0: function () { for (var a = GT1256.prototype.defaultRedBlackGamble_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultRedBlackGamble_2(a, this); return a; }, defaultSingleButtonGamble_0: function () { for (var a = GT1256.prototype.defaultSingleButtonGamble_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].defaultSingleButtonGamble_2(a, this); return a; }, loadAll_1: function (a) { for (var b = this.decorators, d = this.decoratorTable.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0(); this.decorators = e = this.decoratorTable.get_1(e); GT1256.prototype.loadAll_1.call(this, a); for (var f = 0; f < e.length; f++) e[f].loadResources_1(a); } this.decorators = b; }, }, "GT1600", [] ); GT1600.prototype.DEFAULT_DECORATOR_GROUP = GT1677.prototype.generateID_0(); GT1600.prototype.VIP_FLIPPED_CONSOLE_DECORATOR_GROUP = GT1677.prototype.generateID_0(); GT1600.prototype.VIP_GAMBLE_DECORATOR_GROUP = GT1677.prototype.generateID_0(); var GT133 = GT787.extend( { initialConstructor_0: function () { GT133.prototype.initialConstructor_1.call(this, 4); this.dragAreaX = -1; this.inactiveOutlineColor = this.inactiveColor = null; this.isConsumingMouseEventsWhenInactive = !0; }, initialConstructor_1: function (a) { this.numberOfStates = 0; this.buttontooltip = this.buttonimage = null; this.dragAreaH = this.dragAreaW = this.dragAreaY = this.dragAreaX = 0; this.buttonStates = this.inactiveOutlineColor = this.inactiveColor = null; this.isConsumingMouseEventsWhenInactive = !1; this.animationFile = null; GT787.prototype.initialConstructor_0.call(this); this.numberOfStates = a; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.xPos = a; this.yPos = b; return this; }, image_1: function (a) { this.buttonimage = a; return this; }, imageFile_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.buttonimage = GT1390.prototype.set_0().file_1(a); return this; }, states_1: function (a) { this.buttonStates = a; return this; }, text_1: function (a) { this.children.setSize_1(0); this.children.addElement_1(a); return this; }, consumingMouseEventsWhenInactive_1: function (a) { this.isConsumingMouseEventsWhenInactive = a; return this; }, textInactiveColor_2: function (a, b) { this.inactiveColor = a.create_0(); this.inactiveOutlineColor = b.create_0(); return this; }, tooltip_1: function (a) { this.buttontooltip = a; return this; }, dragArea_4: function (a, b, d, e) { this.dragAreaX = a; this.dragAreaY = b; this.dragAreaW = d; this.dragAreaH = e; return this; }, animation_1: function (a) { GT1650.prototype.assertExp_2(null != a, "file is null"); this.animationFile = a; return this; }, create_2: function (a, b) { var d = null; null != this.buttonStates && (d = this.buttonStates.create_0()); var e = null == d ? this.numberOfStates : d.length, f = this.buttonimage.create_1(b.getResourceManager_0()), g = null; null != this.animationFile && (g = this.animationFile.create_1(b.getResourceManager_0())); g = new GT106(a, this.xPos, this.yPos, b.getTimer_0(), g); null != this.buttontooltip && g.setToolTip_1(this.buttontooltip); -1 != this.dragAreaX && (g.setDragable_1(!0), g.setDragArea_4(this.dragAreaX, this.dragAreaY, this.dragAreaW, this.dragAreaH)); var k = this.getTextArea_0(); if (null == k) null != f && (GT1650.prototype.assertExp_2(f.isLoaded_0(), "image " + this.buttonimage + " wasn't loaded"), null == d ? g.setImage_1(f) : g.setImageAndStates_2(f, d)); else { GT1650.prototype.assertExp_2(instanceOf(k, GT1239) || instanceOf(k, GT872), "text must be of type DTextArea oder DDynamicTextArea"); GT1650.prototype.assertExp_2(null != f, "no image and no text set for the button"); GT1650.prototype.assertExp_2(f.isLoaded_0(), "image " + this.buttonimage + " wasn't loaded"); var m = f.getWidth_0(), n = f.getHeight_0(), f = Math.div(n, f.getRows_0()); g.resize_2(m, f); g.addContainerSet_3(m, f, e); instanceOf(k, GT1239); k.size_2(m, f); k.position_2(0, 0); m = null; for (f = 0; f < e; f++) { null != d && g.setChildForState_2(d[f], f); m = g.getChild_1(f); m = k.create_2(m, b); if ((null == d && f == GT1236.prototype.INACTIVE.idx_0()) || (null != d && d[f] == GT1236.prototype.INACTIVE)) null != this.inactiveColor && m.setColor_1(this.inactiveColor), null != this.inactiveOutlineColor && m.setOutline_2(m.getOutline_0(), this.inactiveOutlineColor); GT1392.prototype.set_0().image_1(this.buttonimage).showTile_2(0, f).create_2(m.getBackground_0(), b); } null != m && g.setText_1(m.getText_0()); } g.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); g.setApplicationID_1(this.appId); return g; }, load_1: function (a) { var b = this.getTextArea_0(), d = null; null != this.buttonStates && (d = this.buttonStates.create_0()); this.buttonimage.tiling_2(1, null == d ? this.numberOfStates : d.length); this.buttonimage.load_1(a.getResourceManager_0()); null != this.animationFile && this.animationFile.load_1(a.getResourceManager_0()); null != b && b.load_1(a); }, getTextArea_0: function () { var a = null; 0 < this.children.size_0() && (a = this.children.elementAt_1(0)); return a; }, equals_1: function (a) { if (this == a) return !0; if (!GT787.prototype.equals_1.call(this, a) || !instanceOf(a, GT133)) return !1; if (null == this.buttonStates) { if (null != a.buttonStates) return !1; } else if (!this.buttonStates.equals_1(a.buttonStates)) return !1; if (null == this.buttonimage) { if (null != a.buttonimage) return !1; } else if (!this.buttonimage.equals_1(a.buttonimage)) return !1; if (null == this.buttontooltip) { if (null != a.buttontooltip) return !1; } else if (!this.buttontooltip.equals_1(a.buttontooltip)) return !1; if (this.dragAreaH != a.dragAreaH || this.dragAreaW != a.dragAreaW || this.dragAreaX != a.dragAreaX || this.dragAreaY != a.dragAreaY) return !1; if (null == this.inactiveColor) { if (null != a.inactiveColor) return !1; } else if (!this.inactiveColor.equals_1(a.inactiveColor)) return !1; if (null == this.inactiveOutlineColor) { if (null != a.inactiveOutlineColor) return !1; } else if (!this.inactiveOutlineColor.equals_1(a.inactiveOutlineColor)) return !1; return this.isConsumingMouseEventsWhenInactive != a.isConsumingMouseEventsWhenInactive || this.numberOfStates != a.numberOfStates ? !1 : !0; }, }, "GT133", [] ); GT133.prototype.defaultTextArea_0 = function () { return GT1239.prototype.set_0().hAlign_1(GT1488.prototype.CENTER).vAlign_1(GT1489.prototype.CENTER).font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).bold_0().size_1(90)).fontColor_1(GT1391.prototype.set_0().white_0()); }; GT133.prototype.set_0 = function () { return new GT133(); }; var GT982 = GT851.extend( { initialConstructor_0: function () { GT851.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT851.prototype.initialConstructor_3.call(this, a, b, d); }, initialConstructor_2: function (a, b) { GT982.prototype.initialConstructor_3.call(this, GT1354.prototype.BASEBET, a, b); }, getBaseBet_0: function () { return this.getBetPerLine_0(); }, }, "GT982", [] ), GT983 = GT635.extend( { initialConstructor_3: function (a, b, d) { this.transactionType = 0; GT635.prototype.initialConstructor_2.call(this, a, b); this.transactionType = d; }, initialConstructor_2: function (a, b) { this.transactionType = 0; GT635.prototype.initialConstructor_2.call(this, a, b); this.transactionType = -1; }, initialConstructor_1: function (a) { GT983.prototype.initialConstructor_2.call(this, GT1354.prototype.COLLECT, a); this.transactionType = -1; }, initialConstructor_0: function () { GT983.prototype.initialConstructor_1.call(this, 0); this.transactionType = -1; }, getTransactionType_0: function () { return this.transactionType; }, }, "GT983", [] ), GT1005 = Class.extend( { initialConstructor_0: function () { this.slotEventListeners = null; this.slotEventListeners = new java_util_JavaScriptVector(); }, addSlotListener_1: function (a) { this.slotEventListeners.contains_1(a) || this.slotEventListeners.addElement_1(a); }, removeSlotListener_1: function (a) { this.slotEventListeners.contains_1(a) && this.slotEventListeners.removeElement_1(a); }, getSlotListeners_0: function () { for (var a = [].createArray(this.slotEventListeners.size_0()), b = 0; b < a.length; b++) a[b] = this.slotEventListeners.get_1(b); return a; }, fireSlotEvent_1: function (a) { GT1005.prototype.LOG.trace && GT1005.prototype.LOG.log_1("SlotEvent " + a); for (var b = this.slotEventListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).newSlotEvent_1(a); }, clear_0: function () { this.slotEventListeners.clear_0(); }, }, "GT1005", [] ); GT1005.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT885 = GT635.extend( { initialConstructor_0: function () { this.trigger = 0; this.isacceleration = !1; GT635.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.trigger = 0; this.isacceleration = !1; GT635.prototype.initialConstructor_2.call(this, a, e); this.trigger = b; this.isacceleration = d; }, initialConstructor_3: function (a, b, d) { GT885.prototype.initialConstructor_4.call(this, GT1354.prototype.STARTSPIN, b, d, 0); }, initialConstructor_2: function (a, b) { GT885.prototype.initialConstructor_3.call(this, GT1354.prototype.STARTSPIN, a, b); }, getTrigger_0: function () { return this.trigger; }, isAcceleration_0: function () { return this.isacceleration; }, }, "GT885", [] ); GT885.prototype.TRIGGER_BUTTON = 0; GT885.prototype.TRIGGER_EXTERNAL = 1; GT885.prototype.TRIGGER_AUTOPLAY = 2; var GT854 = GT635.extend( { initialConstructor_0: function () { GT635.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT635.prototype.initialConstructor_2.call(this, a, b); }, initialConstructor_1: function (a) { GT854.prototype.initialConstructor_2.call(this, GT1354.prototype.USERSELECT, a); }, }, "GT854", [] ), GT467 = GT635.extend( { initialConstructor_0: function () { GT635.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT635.prototype.initialConstructor_2.call(this, a, b); }, initialConstructor_1: function (a) { GT467.prototype.initialConstructor_2.call(this, GT1354.prototype.VISUALIZATIONSTEP, a); }, }, "GT467", [] ), GT1658 = Class.extend( { initialConstructor_0: function () { this.gestureevents = this.slotEventManager = this.connection = this.clientState = this.guiState = this.slotState = null; this.gambleStoppedAutoplay = !1; this.gameWrapperInterfaceCaller = null; this.initialTotalBet = this.initialOverrideMaxbet = this.initialNumberOfLines = this.initialBaseBet = 0; this.betUtils = null; this.stopAutoplayAtRoundFinish = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.gestureevents = this.slotEventManager = this.connection = this.clientState = this.guiState = this.slotState = null; this.gambleStoppedAutoplay = !1; this.gameWrapperInterfaceCaller = null; this.initialTotalBet = this.initialOverrideMaxbet = this.initialNumberOfLines = this.initialBaseBet = 0; this.betUtils = null; this.stopAutoplayAtRoundFinish = !1; this.connection = a; this.guiState = d; this.slotEventManager = e; this.slotState = b; this.clientState = new GT788(this); this.gestureevents = new GT1204(e.getEventDispatcher_0(), e); this.initialTotalBet = this.initialOverrideMaxbet = this.initialNumberOfLines = this.initialBaseBet = -1; this.betUtils = new GT1657(this); }, initClientStates_0: function () { this.clientState.addClientState_1(new GT953(this)); this.clientState.addClientState_1(new GT523(this)); this.clientState.addClientState_1(new GT246(this)); this.clientState.addClientState_1(new GT625(this)); this.clientState.addClientState_1(new GT675(this)); this.clientState.addClientState_1(new GT624(this)); this.clientState.addClientState_1(new GT276(this)); this.clientState.addClientState_1(new GT524(this)); this.clientState.addClientState_1(new GT480(this)); this.clientState.addClientState_1(new GT321(this)); this.clientState.addClientState_1(new GT428(this)); this.clientState.addClientState_1(new GT842(this)); this.clientState.addClientState_1(new GT734(this)); this.clientState.addClientState_1(new GT733(this)); this.clientState.addClientState_1(new GT479(this)); this.clientState.addClientState_1(new GT623(this)); this.clientState.addClientState_1(new GT178(this)); this.clientState.addClientState_1(new GT241(this)); this.changeToClientStateInit_0(); }, changeToClientStateInit_0: function () { this.clientState.changeState_1(GT953.prototype.ID); }, initSituationDecoders_0: function () { this.connection.addSituationDecoder_1(new GT1267(this.slotState.getDefinition_0(), this.slotState.getSuperGameState_0())); this.connection.addSituationDecoder_1(new GT1414(this.slotState)); this.connection.addSituationDecoder_1(new GT1416(this.slotState)); this.connection.addSituationDecoder_1(new GT1552(this.slotState)); this.connection.addSituationDecoder_1(new GT1470(this.slotState)); this.connection.addSituationDecoder_1(new GT1516(this.slotState)); this.connection.addSituationDecoder_1(new GT1415(this.slotState)); this.connection.addSituationDecoder_1(new GT1575(this.slotState)); this.connection.addSituationDecoder_1(new GT1362(this.slotState)); this.connection.addSituationDecoder_1(new GT1645(this.slotState)); this.connection.addSituationDecoder_1(new GT1517(this.slotState)); this.connection.addSituationDecoder_1(new GT1417(this.slotState)); this.connection.addSituationDecoder_1(new GT1317(this.slotState)); this.connection.addSituationDecoder_1(new GT1361(this.slotState)); this.connection.addSituationDecoder_1(new GT685(this.slotState)); this.connection.addSituationDecoder_1(new GT789(this.slotState)); this.connection.addSituationDecoder_1(new GT1468(this.slotState)); this.connection.addSituationDecoder_1(new GT1268(this.slotState)); this.connection.addSituationDecoder_1(new GT1469(this.slotState)); this.connection.addSituationDecoder_1(new GT1226(this.slotState)); this.connection.addSituationDecoder_1(new GT640(this.slotState)); }, initCommandDecoders_0: function () { this.connection.addCommandDecoder_1(new GT724(this.slotEventManager, this.slotState)); this.connection.addCommandDecoder_1(new GT566(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT368(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT612(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT513(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT668(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT369(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT341(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT512(this.slotEventManager)); this.connection.addCommandDecoder_1(new GT666(this.slotState)); }, destroy_0: function () { this.connection.removeAllSituationDecoders_0(); this.connection.removeAllCommandDecoders_0(); this.clientState.destroy_0(); this.slotEventManager = this.clientState = this.guiState = this.slotState = this.connection = null; this.gestureevents.stop_0(); this.gestureevents = null; }, newGameSituation_0: function () { this.slotState.getCasinoState_0().isActionAllowed_0() || this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); this.clientState.newGameSituation_0(); }, notifySessionTicketsUpdated_0: function () { this.clientState.notifySessionTicketsUpdated_0(); this.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.NOTIFY_SESSIONTICKETS_UPDATED)); }, notifyRoundFinished_0: function () { this.slotState.getCasinoState_0().isActionAllowed_0() || this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); this.clientState.notifyRoundFinished_0(); }, newSlotEvent_1: function (a) { GT1650.prototype.assertExp_2(null != a, "SlotEvent is null"); if (null != a) { if (a.getId_0() == GT1354.prototype.AUTOPLAY_LIMIT) { var b = a.getNumberOfPlays_0(); 0 < b && this.setAutoPlayLimit_1(b); } if (a.getId_0() == GT1354.prototype.AUTOPLAYSETTINGS) { if (this.clientState.getCurrentStateId_0() != GT733.prototype.ID) { a = this.slotState.getFreeSpinState_0(); var d = (b = this.slotState.getDefinition_0().getAutoPlayCountMax_0()); a.isFreeSpinsRunning_0() && !a.isAtLastFreeSpin_0() && this.slotState.isStopAutoplayAtFeatureScreens_0() && ((d = a.getFreeSpinsWon_0() - a.getFreeSpinsPlayed_0()), d > b && (d = b)); this.slotState.getCasinoAutoPlayInterface_0().openAutoPlaySettingsDialog_2(this.slotState.getTotalBet_0(), d); } } else a.getId_0() == GT1354.prototype.PAYOUT_FINISHED && this.clientState.notifySessionTicketsUpdated_0(), (b = !0), !instanceOf(a, GT426) || this.getGuiStateMachine_0().getCurrentStateId_0() == GT729.prototype.ID || this.getGuiStateMachine_0().getCurrentStateId_0() == GT777.prototype.ID || this.getGuiStateMachine_0().getCurrentStateId_0() == GT620.prototype.ID || this.getGuiStateMachine_0().getCurrentStateId_0() == GT617.prototype.ID || this.getClientStateMachine_0().getCurrentStateId_0() == GT428.prototype.ID || this.getClientStateMachine_0().getCurrentStateId_0() == GT480.prototype.ID || this.getClientStateMachine_0().getCurrentStateId_0() == GT524.prototype.ID || this.getClientStateMachine_0().getCurrentStateId_0() == GT178.prototype.ID || (a.getModalDialogId_0() != a.getAutoPlaySettingsDialogId_0() && a.getModalDialogId_0() != a.getInfoDialogId_0()) || (b = !1), b && this.notifyInputEvent_1(a), a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && a.getModalDialogId_0() == a.getAutoPlaySettingsDialogId_0() && ((b = this.slotState.getCasinoAutoPlayInterface_0().createAutoPlaySettings_0()), 0 < b.getRoundsLeft_0() && (this.slotState.setAutoPlaySettings_1(b), this.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAY)))), a.getId_0() != GT1354.prototype.CONNECTION_LOST || this.getSlotState_0().getCasinoState_0().isSpectator_0() || ((GT1658.prototype.savedBet = this.getSlotState_0().getBaseBet_0()), (GT1658.prototype.hasSavedBet = 0 < GT1658.prototype.savedBet)); } }, notifyInputEvent_1: function (a) { this.clientState.notifyInputEvent_1(a); }, guiStateFinished_1: function (a) { this.clientState.notifyGuiStateFinished_1(a); }, guiStateEntered_1: function (a) {}, guiStateExited_1: function (a) {}, getSlotState_0: function () { return this.slotState; }, getSlotEventManager_0: function () { return this.slotEventManager; }, getGuiStateMachine_0: function () { return this.guiState; }, getClientStateMachine_0: function () { return this.clientState; }, getConnection_0: function () { return this.connection; }, setNumberOfLines_1: function (a) { var b = this.slotState.getDefinition_0().findGameModeForLine_1(a); -1 != b ? this.setGameMode_1(b) : GT1650.prototype.assertFailed_1("No game mode for the selected lines found: " + a); }, setGameMode_1: function (a) { this.slotState.setWins_1(this.resetWinAmounts_1(this.slotState.getWinList_0())); var b = this.slotState.getDefinition_0().getLinesForGameMode_1(a), d = this.slotState.getDefinition_0().getBetMultiplierForGameMode_1(a); this.slotState.setGameMode_1(a); var e = this.clipBetAccordingToBetMultiplier_2(this.slotState.getBaseBet_0(), d); this.slotState.setBaseBet_1(e); this.updateSuperGamePrice_0(); this.connection.sendCommand_1(new GT1095(e, b, a)); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_LINES, "" + b); this.getSlotEventManager_0().fireSlotEvent_1(a); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BET, "" + e * d); this.getSlotEventManager_0().fireSlotEvent_1(a); this.slotState.getCasinoState_0().hasJackpot_0() && this.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.JACKPOT_FACTOR_UPDATED)); }, setClientInfo_1: function (a) { this.slotState.setClientInfo_1(a); this.connection.sendCommand_1(new GT1045(a)); }, resetWinAmounts_1: function (a) { for (var b = [].createArray(a.size_0()), d = 0; d < b.length; ++d) if ( (GT1650.prototype.assertExp_2( instanceOf(a.get_1(d), GT1599) || instanceOf(a.get_1(d), GT1512) || instanceOf(a.get_1(d), GT1305) || instanceOf(a.get_1(d), GT1356), "wins[" + d + "] provided by the server is neither a SingleLineWin nor a SingleScatterWin, nor a SingleMultiplierWin and also no SingleDetailsOnlyWin, but must be! If a new type of win needs to be supported then please add it to the if/else structure in the code below." ), instanceOf(a.get_1(d), GT1599)) ) { var e = a.get_1(d); b[d] = e.createCopyWithoutPayout_0(); } else instanceOf(a.get_1(d), GT1512) ? ((e = a.get_1(d)), (b[d] = e.createCopyWithoutPayout_0())) : instanceOf(a.get_1(d), GT1305) ? (b[d] = a.get_1(d)) : instanceOf(a.get_1(d), GT1356) && (b[d] = new GT1356(0, 0, "")); return new GT1665(b); }, setBetPerLine_1: function (a) { this.setBaseBet_1(a); }, setBaseBet_1: function (a) { this.slotState.setWins_1(this.resetWinAmounts_1(this.slotState.getWinList_0())); a = this.clipBetAccordingToBetMultiplier_2(a, this.slotState.getBetMultiplier_0()); this.slotState.setBaseBet_1(a); this.updateSuperGamePrice_0(); this.connection.sendCommand_1(new GT1095(a, this.slotState.getNumberOfLines_0(), this.slotState.getGameMode_0())); a *= this.slotState.getBetMultiplier_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BET, "" + a); this.getSlotEventManager_0().fireSlotEvent_1(a); this.slotState.getCasinoState_0().hasJackpot_0() && this.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.JACKPOT_FACTOR_UPDATED)); }, setBaseBetAfterDisconnect_0: function () { if (!this.getSlotState_0().getCasinoState_0().hasOpenRound_0()) if (GT1658.prototype.hasSavedBet && !this.getSlotState_0().getCasinoState_0().isSpectator_0()) (GT1658.prototype.hasSavedBet = !1), this.setBaseBet_1(GT1658.prototype.savedBet); else if (this.getSlotState_0().getCasinoState_0().isActivePlayer_0()) { if (0 < this.initialBaseBet && -1 == this.initialTotalBet) this.setBaseBet_1(this.initialBaseBet); else if (0 < this.initialTotalBet) { var a = this.initialTotalBet / this.getSlotState_0().getBetMultiplier_0(); this.betUtils.betAvailable_1(a) || (a = this.betUtils.fetchLowerBet_2(a, !1)); -1 != a && this.setBaseBet_1(Integer.truncate_1(a)); } 0 < this.initialNumberOfLines && this.setNumberOfLines_1(this.initialNumberOfLines); } -1 != this.initialOverrideMaxbet && this.getSlotEventManager_0().fireSlotEvent_1(new GT633(this.initialOverrideMaxbet)); }, setInitialBaseBet_1: function (a) { this.initialBaseBet = a; }, setInitialTotalBet_1: function (a) { this.initialTotalBet = a; }, setInitialNumberOfLines_1: function (a) { this.initialNumberOfLines = a; }, setInitialOverrideMaxbet_1: function (a) { this.initialOverrideMaxbet = a; }, updateSuperGamePrice_0: function () { for (var a = this.slotState.getSuperGameState_0(), b = a.getLowestSuperGamePrice_0(), d = this.slotState.getTotalBet_0(); 0 < b && b < d; ) b *= 10; a.hasActionGames_0() && (b = 10 * d); a.setPrice_1(b); }, clipBetAccordingToBetMultiplier_2: function (a, b) { var d = this.slotState.getCasinoState_0(), e = a, f = d.getMaxTotalBet_0(), g = d.getMinTotalBet_0(), k = this.slotState.getDefinition_0().getBaseBets_0(); if (null == k) return a; if (this.slotState.getForceIntegerWinsAndBets_0()) for (f = this.slotState.getBaseBets_0(), e = 0, null != f && 0 < f.length && (e = f[0]), g = Math.abs_1(a - e), d = 1; d < f.length; d++) (k = Math.abs_1(a - f[d])), k < g && ((e = f[d]), (g = k)); else { if (e * b > f) for (d = 0; d < k.size_0(); d++) if (k.get_1(d) * b > f) { GT1650.prototype.assertExp_2(0 != d, "Can't find a bet value for " + b + " lines."); e = k.get_1(d - 1); break; } if (e * b < g) for (d = k.size_0() - 1; 0 <= d; d--) if (k.get_1(d) * b < g) { GT1650.prototype.assertExp_2(d != k.size_0() - 1 && e * b <= f, "Can't find a bet value for " + b + " lines."); e = k.get_1(d + 1); break; } } return e; }, setAutoPlayMode_1: function (a) { var b = !1; if (a == GT1658.prototype.AUTOPLAY_DEFAULT || a == GT1658.prototype.AUTOPLAY_SILENT) b = !0; this.slotState.isAutoPlaying_0() != b && (this.slotState.getCasinoState_0().isActivePlayer_0() && !this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && this.slotState.setAutoPlayCounter_1(this.slotState.getAutoPlayLimit_0()), this.slotState.setAutoPlaying_1(b), this.slotEventManager.fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_AUTOPLAY, b ? GT981.prototype.VALUE_AUTOPLAY_ON : GT981.prototype.VALUE_AUTOPLAY_OFF)), 0 < this.slotState.getDefinition_0().getAutoPlayCountMax_0() && this.slotEventManager.fireSlotEvent_1(new GT370(GT1354.prototype.AUTOPLAY_COUNT, this.slotState.getAutoPlayLimit_0())), a == GT1658.prototype.AUTOPLAY_DEFAULT || a == GT1658.prototype.AUTOPLAY_SILENT ? this.slotEventManager.fireSlotEvent_1(new GT738(a)) : a == GT1658.prototype.AUTOSTOP_DEFAULT || a == GT1658.prototype.AUTOSTOP_SILENT || a == GT1658.prototype.AUTOSTOP_FORCED || a == GT1658.prototype.AUTOSTOP_FEATURE_SCREEN ? this.slotEventManager.fireSlotEvent_1(new GT739(a)) : GT1658.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Attempting to fire a slot event with an unsupported auto play/stop mode: " + a)); }, setAutoPlaying_2: function (a, b) { a ? this.setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT) : b ? this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT) : this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); }, setAutoPlaying_1: function (a) { this.setAutoPlaying_2(a, !0); }, reduceAutoPlayCounter_0: function () { !this.slotState.isAutoPlaying_0() || (this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() && !this.slotState.getFreeSpinState_0().isAtLastFreeSpin_0() && this.slotState.getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || (0 < this.slotState.getDefinition_0().getAutoPlayCountMax_0() && (0 < this.slotState.getAutoPlayCounter_0() ? this.slotState.setAutoPlayCounter_1(this.slotState.getAutoPlayCounter_0() - 1) : this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), this.slotEventManager.fireSlotEvent_1(new GT370(GT1354.prototype.AUTOPLAY_COUNT, this.slotState.getAutoPlayCounter_0()))), this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && null != this.slotState.getAutoPlaySettings_0() && (0 < this.slotState.getAutoPlaySettings_0().getRoundsLeft_0() ? this.slotState.getAutoPlaySettings_0().decRounds_0() : (this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), this.slotState.getCasinoAutoPlayInterface_0().showAutoPlayStopInfo_4(!1, !0, !1, !1)))); }, checkAPSWinLimit_1: function (a) { if (this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && this.getSlotState_0().isAutoPlaying_0() && null != this.getSlotState_0().getAutoPlaySettings_0()) { if (this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() && this.slotState.getFreeSpinState_0().isForceAutoplayInFreeGames_0()) return !1; var b = this.getSlotState_0().getFreeSpinState_0(); if ( (!b.isForceAutoplayInFreeGames_0() || !b.isFreeSpinsRunning_0()) && this.getSlotState_0().getWinSum_1(!1) >= this.getSlotState_0().getAutoPlaySettings_0().getSingleWinLimit_0() && 0 < this.getSlotState_0().getAutoPlaySettings_0().getSingleWinLimit_0() && (a || !this.gambleStoppedAutoplay) ) return this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), this.getSlotState_0().getCasinoAutoPlayInterface_0().showAutoPlayStopInfo_4(!1, !1, !1, !0), a && (this.gambleStoppedAutoplay = !0), !0; } a || (this.gambleStoppedAutoplay = !1); return !1; }, checkAPSLossLimit_0: function () { this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && this.getSlotState_0().isAutoPlaying_0() && (!this.slotState.getFreeSpinState_0().isFreeSpinsRunning_0() || !this.slotState.getFreeSpinState_0().isForceAutoplayInFreeGames_0()) && this.getSlotState_0().getAutoPlaySettings_0().getTicketsAtStart_0() - this.getSlotState_0().getCasinoState_0().getSessionTickets_0() > this.getSlotState_0().getAutoPlaySettings_0().getLossLimit_0() - this.getSlotState_0().getTotalBet_0() && (this.setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), this.getSlotState_0().getCasinoAutoPlayInterface_0().showAutoPlayStopInfo_4(!1, !1, !0, !1)); }, setAutoPlayLimit_1: function (a) { this.slotState.setAutoPlayLimit_1(a); this.slotState.setAutoPlayCounter_1(a); this.slotEventManager.fireSlotEvent_1(new GT370(GT1354.prototype.AUTOPLAY_COUNT, a)); }, updateGameOverlayDialogs_0: function () { instanceOf(this.slotState.getCasinoState_0(), GT1586) && this.slotState.getCasinoState_0().updateGameOverlayDialogs_0(); }, setGameWrapperInterfaceCaller_1: function (a) { this.gameWrapperInterfaceCaller = a; }, getGameWrapperInterfaceCaller_0: function () { return this.gameWrapperInterfaceCaller; }, getBetUtils_0: function () { return this.betUtils; }, isStopAutoplayAtRoundFinish_0: function () { return this.stopAutoplayAtRoundFinish; }, setStopAutoplayAtRoundFinish_1: function (a) { this.stopAutoplayAtRoundFinish = a; }, }, "GT1658", [GT1070, GT811, GT922] ); GT1658.prototype.AUTOPLAY_DEFAULT = GT1677.prototype.generateID_0(); GT1658.prototype.AUTOPLAY_SILENT = GT1677.prototype.generateID_0(); GT1658.prototype.AUTOSTOP_DEFAULT = GT1677.prototype.generateID_0(); GT1658.prototype.AUTOSTOP_SILENT = GT1677.prototype.generateID_0(); GT1658.prototype.AUTOSTOP_FORCED = GT1677.prototype.generateID_0(); GT1658.prototype.AUTOSTOP_FEATURE_SCREEN = GT1677.prototype.generateID_0(); GT1658.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT1658.prototype.hasSavedBet = !1; GT1658.prototype.savedBet = 0; var GT531 = GT787.extend( { initialConstructor_0: function () { this.buttonTooltip = null; this.isConsumingMouseEventsWhenInactive = this.isConsumingMouseEventsWhenInactiveSet = !1; GT787.prototype.initialConstructor_0.call(this); this.buttonTooltip = null; this.isConsumingMouseEventsWhenInactiveSet = !1; this.isConsumingMouseEventsWhenInactive = !0; }, id_1: function (a) { this.appId = a; return this; }, position_2: function (a, b) { this.positionImpl_2(a, b); return this; }, size_2: function (a, b) { this.sizeImpl_2(a, b); return this; }, createButton_5: function (a, b, d, e, f) { return new GT1559(a, b, d, e, f); }, consumingMouseEventsWhenInactive_1: function (a) { this.isConsumingMouseEventsWhenInactiveSet = !0; this.isConsumingMouseEventsWhenInactive = a; return this; }, create_2: function (a, b) { var d = this.createButton_5(a, this.xPos, this.yPos, this.widthSize, this.heightSize); null != this.buttonTooltip && d.setToolTip_1(b.getText_1(this.buttonTooltip)); d.setConsumingMouseEventsWhenInactive_1(this.isConsumingMouseEventsWhenInactive); d.setApplicationID_1(this.appId); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT531); GT1650.prototype.assertExp_2(b, "Descriptor is no DSimpleButton"); b && (this.modifyDescriptorImpl_1(a), null != this.buttonTooltip && (a.buttonTooltip = this.buttonTooltip), this.isConsumingMouseEventsWhenInactiveSet && (a.isConsumingMouseEventsWhenInactive = this.isConsumingMouseEventsWhenInactive)); }, }, "GT531", [GT1272] ); GT531.prototype.set_0 = function () { return new GT531(); }; var GT27 = GT1412.extend( { initialConstructor_0: function () { GT1412.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1412.prototype.initialConstructor_1.call(this, a); }, mainGui_2: function (a, b) { return a.remove_1(GT1618.prototype.GAMBLE_CONTAINER).child_1(GT1186.prototype.set_0().id_1(GT1618.prototype.GAMBLE_CONTAINER).position_2(0, GT27.prototype.GAMBLE_CONTAINER_Y_POSITION)); }, gamble_2: function (a, b) { var d = 152 + b.getInnerMainGuiX_0(); return GT785.prototype .set_0() .id_1(GT1618.prototype.GAMBLE) .position_2(0, 0) .size_2(1920, 648) .soundGamble_1("/com/greentube/slot/client/res/gamble/gamblesuspense.mp3") .soundGambleLoopPositions_3(0, 1176, 37) .soundGambleWin_1("/com/greentube/slot/client/res/gamble/gamblewin12.mp3") .soundGambleWinStopPositions_1([430, 644, 858, 1078, 1294]) .soundGambleWinTop_1("/com/greentube/slot/client/res/gamble/gamblewintop.mp3") .soundGambleLost_1("/com/greentube/slot/client/res/gamble/gamblelost.mp3") .imageGambleCard_2(GT27.prototype.resourcePath + "VIP_cards.png", !0) .soundClose_1("/com/greentube/slot/client/res/overlayclose.mp3") .soundOpen_1("/com/greentube/slot/client/res/overlayopen.mp3") .gambleHistoryCardPosition_2([0, 90, 180, 270, 360, 450], [0, 0, 0, 0, 0, 0]) .child_1( GT1392.prototype .set_0() .imageFile_1(GT27.prototype.resourcePath + "vip_bgbar_gamble.png") .position_2(0, 583) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_CONGRATULATION) .position_2(616 + d, 344) .text_1("${gamble_redblack_info_gratulation_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT) .position_2(308 + d, 15) .text_1("${gamble_redblack_info_value_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1135.prototype .set_0() .id_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT) .position_2(160 + d, 45) .size_2(300, 60) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT27.prototype.GAMBLE_AMOUNT_COLOR) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_GAMBLETOWIN) .position_2(GT27.prototype.DEFAULT_SLIDE_IN_OUT_SCREEN_WIDTH - 308 + d, 15) .text_1("${gamble_redblack_info_forwin_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .hAlign_1(GT1488.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1135.prototype .set_0() .id_1(GT346.prototype.ID_FIELD_GAMBLETOWIN) .position_2(GT27.prototype.DEFAULT_SLIDE_IN_OUT_SCREEN_WIDTH - 300 - 160 + d, 45) .size_2(300, 60) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .addFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT27.prototype.GAMBLE_AMOUNT_COLOR) .outline_2(1, GT1391.prototype.set_0().black_0()) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) .breakLines_1(!1) .insets_4(0, 0, 0, 0) ) .child_1( GT1445.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_PREVCARDS) .position_2(520 + d, 165) .text_1("${gamble_redblack_info_history_capitalized}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(200)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .hAlign_1(GT1488.prototype.RIGHT) .outline_2(1, GT1391.prototype.set_0().black_0()) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO) .position_2(Math.div(GT27.prototype.DEFAULT_SLIDE_IN_OUT_SCREEN_WIDTH - 1100, 2) + d, 583) .size_2(1100, 50) .text_1("${gamble_redblack_info}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE) .position_2(Math.div(GT27.prototype.DEFAULT_SLIDE_IN_OUT_SCREEN_WIDTH - 1100, 2) + d, 583) .size_2(1100, 50) .text_1("${gamble_redblack_info_after_gamble}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(140)) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .hide_1(!0) ) .child_1( GT1186.prototype .set_0() .id_1(GT346.prototype.ID_MAINCARD) .position_2(515 + d, 270) ) .child_1( GT1186.prototype .set_0() .id_1(GT346.prototype.ID_CARDS) .position_2(585 + d, 130) ) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_RED) .imageFile_1(GT27.prototype.resourcePath + "VIP_gamble_red.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_RED) .text_1("${buttontext_gamblered}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(300).bold_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(80 + d, 300) ) .child_1( GT1355.prototype .set_0() .id_1(GT346.prototype.ID_BUTTON_BLACK) .imageFile_1(GT27.prototype.resourcePath + "VIP_gamble_black.png") .text_1( GT1239.prototype .set_0() .id_1(GT346.prototype.ID_TEXT_BUTTON_BLACK) .text_1("${buttontext_gambleblack}") .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).size_1(300).bold_0()) .fontColor_1(GT1391.prototype.set_0().white_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER) .outline_2(1, GT1391.prototype.set_0().black_0()) .insets_4(0, 0, 0, 10) ) .textInactiveColor_2(GT1391.prototype.set_0().compRGB_3(120, 120, 120), GT1391.prototype.set_0().compRGB_3(150, 150, 150)) .position_2(820 + d, 300) ) .child_1( b .defaultDynamicTextAreaSmall_0() .id_1(GT737.prototype.CURRENCY_TEXT) .fontColor_1(GT27.prototype.GAMBLE_TEXT_COLOR) .outline_2(1, GT1391.prototype.set_0().black_0()) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.TOP) .position_2(0 + d, 0) .size_2(b.getSlideInOutScreenWidth_0(), 50) .text_1("${infotable_currency}") ); }, }, "GT27", [] ); GT27.prototype.GAMBLE_CONTAINER_Y_POSITION = 950; GT27.prototype.resourcePath = "/com/greentube/slot/client/res/thinclient/plurius_2015/"; GT27.prototype.GAMBLE_TEXT_COLOR = GT1391.prototype.set_0().white_0(); GT27.prototype.GAMBLE_AMOUNT_COLOR = GT1391.prototype.set_0().yellow_0(); GT27.prototype.DEFAULT_SLIDE_IN_OUT_SCREEN_WIDTH = 1232; var GT1363 = Class.extend( { initialConstructor_0: function () { this.events = this.casinoApplet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.events = this.casinoApplet = null; this.casinoApplet = a; this.events = new java_util_JavaScriptHashtable(); }, newSlotEvent_1: function (a) { if (instanceOf(a, GT981) && a.getId_0() == GT1354.prototype.WRAPPER) { var b = a.getKey_0(), d = a.getValue_0(); a = a.isUpdatedAlways_0(); GT981.prototype.KEY_GAMEMODE.equals_1(b) && (this.casinoApplet.isSpectator_0() ? (d = GT981.prototype.VALUE_GAMEMODE_SPECTATOR) : this.casinoApplet.isReplayDialogOpen_0() && (d = GT981.prototype.VALUE_GAMEMODE_REPLAY)); this.events.put_2(b, d); GT1363.prototype.LOG.trace && GT1650.prototype.log_1("WRAPPER: " + b + " " + d + " " + a); a ? this.casinoApplet.notifyPropertyChangedImpl_2(b, d) : this.casinoApplet.sendPropertyToWrapperIfChanged_2(b, d); } else instanceOf(a, GT376) ? this.sendConsoleState_2(a.getConsoleState_0(), a.isActive_0()) : instanceOf(a, GT1101) && (this.casinoApplet.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, a.getErrorDescription_0()), this.casinoApplet.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_ERROR)); }, sendConsoleState_2: function (a, b) { var d = "", e = !0; if (b) { for (var f = 0; f < a.getActiveCount_0(); f++) { var g = this.getButtonNameFromId_1(a.getActiveId_1(f)); null != g && (e ? ((d = g + ":" + GT1363.prototype.BUTTON_TAG_ON), (e = !1)) : (d = d + ";" + g + ":" + GT1363.prototype.BUTTON_TAG_ON)); } for (f = 0; f < a.getHighlightedCount_0(); f++) (g = this.getButtonNameFromId_1(a.getHighlightedId_1(f))), null != g && (e ? ((d = g + ":" + GT1363.prototype.BUTTON_TAG_FLASH), (e = !1)) : (d = d + ";" + g + ":" + GT1363.prototype.BUTTON_TAG_FLASH)); } this.casinoApplet.sendPropertyToWrapperIfChanged_2(GT981.prototype.KEY_BUTTONSTATE, d); }, getButtonNameFromId_1: function (a) { return a == GT834.prototype.ID_BUTTON_START ? "START" : a == GT834.prototype.ID_BUTTON_STOP ? "STOP" : a == GT834.prototype.ID_BUTTON_COLLECT ? "COLLECT" : a == GT834.prototype.ID_BUTTON_SKIP_COLLECT ? "SKIP_COLLECT" : a == GT834.prototype.ID_BUTTON_PAYTABLE ? "PAYTABLE" : a == GT834.prototype.ID_BUTTON_PAYTABLE_NEXT ? "PAYTABLE_NEXT" : a == GT834.prototype.ID_BUTTON_GAMBLE ? "GAMBLE" : a == GT834.prototype.ID_BUTTON_GAMBLE_RED ? "GAMBLE_RED" : a == GT834.prototype.ID_BUTTON_GAMBLE_BLACK ? "GAMBLE_BLACK" : a == GT834.prototype.ID_BUTTON_COLLECTHALF ? "GAMBLE_COLLECTHALF" : a == GT834.prototype.ID_BUTTON_AUTOPLAY ? "AUTOPLAY" : a == GT834.prototype.ID_BUTTON_AUTOSTOP ? "AUTOSTOP" : a == GT834.prototype.ID_SPINNER_LINES ? "LINES" : a == GT834.prototype.ID_SPINNER_GAME_MODES ? "GAME_MODES" : a == GT834.prototype.ID_SPINNER_BETPERLINE ? "BETPERLINE" : a == GT834.prototype.ID_BUTTON_PAYOUT ? "PAYOUT" : a == GT834.prototype.ID_BUTTON_GAME_SELECT ? "GAME_SELECT" : a == GT834.prototype.ID_BUTTON_FLIP_SCREEN ? "FLIP_SCREEN" : a == GT834.prototype.ID_BUTTON_AUTOPLAYMETER ? "AUTOPLAYMETER" : null; }, reset_0: function () { for (var a = this.events.keys_0(); a.hasMoreElements_0(); ) { var b = a.nextElement_0(); this.events.get_1(b).equals_1("") || b.equals_1(GT981.prototype.KEY_GAMEMODE) || (this.casinoApplet.sendPropertyToWrapperIfChanged_2(b, ""), GT1363.prototype.LOG.verbose && GT1650.prototype.log_1("WRAPPER: " + b + " ''")); } this.events.clear_0(); this.casinoApplet.sendPropertyToWrapperIfChanged_2(GT981.prototype.KEY_GAMEMODE, GT981.prototype.VALUE_GAMEMODE_LOBBY); GT1363.prototype.LOG.verbose && GT1650.prototype.log_1("WRAPPER: " + GT981.prototype.KEY_GAMEMODE + " " + GT981.prototype.VALUE_GAMEMODE_LOBBY); }, }, "GT1363", [GT922] ); GT1363.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT1363.prototype.BUTTON_TAG_ON = "1"; GT1363.prototype.BUTTON_TAG_FLASH = "3"; var GT291 = Class.extend( { initialConstructor_0: function () { this.forcedEventVersion = this.possibleEventVersions = null; this.possibleEventVersions = this.analyzePossibleEvents_0(); }, getPossibleEventVersions_0: function () { return this.possibleEventVersions; }, isEventVersionsArrayEqual_1: function (a) { this.forcedEventVersion = a; GT1650.prototype.assertExp_2(0 == this.forcedEventVersion.length % 5, "version byte[] has to have a length divisible by 5"); a = !0; for (var b = 0; b < this.forcedEventVersion.length; b += 5) { var d = this.forcedEventVersion[b], e = GT902.prototype.byteArrayToInt_2(this.forcedEventVersion, b + 1), f = this.getPossibleVersionOfEvent_1(d); -1 == f && (GT291.prototype.LOG.log_1("This EventCreator (v" + this.getEventCreatorVersion_0() + ") can't build an event with id " + d), (a = !1)); e != f && (GT291.prototype.LOG.log_1("This EventCreator (v" + this.getEventCreatorVersion_0() + ") builds events with id " + d + " in the version " + f + " but the data given was created withversionen " + e), (a = !1)); } return a; }, getPossibleVersionOfEvent_1: function (a) { GT1650.prototype.assertExp_2(0 == this.possibleEventVersions.length % 5, "version byte[] has to have a length divisible by 5"); for (var b = 0; b < this.possibleEventVersions.length; b += 5) if (this.possibleEventVersions[b] == a) return GT902.prototype.byteArrayToInt_2(this.possibleEventVersions, b + 1); return -1; }, analyzePossibleEvents_0: function () { for (var a = new java_util_JavaScriptVector(), b = this.getMinID_0(); b <= this.getMaxID_0(); b++) { var d = this.createEvent_3(b, null, 0); null != d && a.add_1(d); } for (var b = [].createArray(5 * a.size_0()).init(0), e = 0; e < a.size_0(); e++) (d = a.get_1(e)), (b[5 * e] = d.getId_0()), GT902.prototype.intToByteArray_3(d.getEventVersion_0(), b, 5 * e + 1); return b; }, }, "GT291", [GT548] ); GT291.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT492 = GT291.extend( { initialConstructor_0: function () { GT291.prototype.initialConstructor_0.call(this); }, getMinID_0: function () { return -10; }, getMaxID_0: function () { return 20; }, getEventCreatorVersion_0: function () { return 1; }, createEvent_3: function (a, b, d) { return this.createEvent_4(a, b, d, !0); }, createEvent_4: function (a, b, d, e) { switch (a) { case GT533.prototype.KEY_PRESSED: return null != b ? (GT1650.prototype.assertExp_2(instanceOf(b, Array), "KEY_PRESSED needs String [] not " + b), GT1650.prototype.assertExp_2(2 == b.length, "Need two parameters in String[]! Keyname and modifiers"), new GT407(b[0], b[1])) : new GT407(); case GT533.prototype.SERVER_PACKETS: return null != b ? (GT1650.prototype.assertExp_2(instanceOf(b, java_util_JavaScriptVector), "SERVER_PACKETS needs Vector not " + b), new GT14(b)) : new GT14(); case GT533.prototype.SCREEN_SHOT: return null != b ? new GT408(b) : new GT408(); case GT533.prototype.GAME_TICKS: return new GT534(d); case GT533.prototype.PARAMETERS: return null != b ? (GT1650.prototype.assertExp_2(instanceOf(b, java_util_JavaScriptHashtable), "PARAMETERS needs HashTable not " + b), new GT434(b)) : new GT434(); case GT533.prototype.MOUSE_WHEEL: if (null == b) return new GT406(); GT1650.prototype.assertExp_2(instanceOf(b, GT1196), "MouseWheel id with wrong object! " + b); return new GT406(b); case GT533.prototype.MOUSE_CLICKED: case GT533.prototype.MOUSE_DRAGGED: case GT533.prototype.MOUSE_MOVED: case GT533.prototype.MOUSE_PRESSED: case GT533.prototype.MOUSE_RELEASED: if (null != b) return GT1650.prototype.assertExp_2(instanceOf(b, GT1451), "Needs MouseEvent not " + b.toString()), new GT650(b); GT1650.prototype.assertExp_2(null == b, "If there would be a MouseEvent it should have been used earlier?!?"); if (-1 != GT650.prototype.translateFromRecordingId_1(a)) return new GT650(a, 0, 0, 0); GT1650.prototype.assertFailed_1("Problem creating mouse Event! o==null, eventID == -1"); return null; default: return ( GT492.prototype.LOG.trace && GT492.prototype.LOG.log_1( "Don't know what event to create with id '" + a + "', object " + b + " and nr " + d + ". Maybe someone has forgot to increase a version number (Eventcreator-Version = " + this.getEventCreatorVersion_0() + ")?" ), null ); } }, }, "GT492", [] ); GT492.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT493 = GT492.extend( { initialConstructor_0: function () { GT492.prototype.initialConstructor_0.call(this); }, getEventCreatorVersion_0: function () { return 2; }, createEvent_3: function (a, b, d) { switch (a) { case GT533.prototype.META_VERSION: return null != b ? (GT1650.prototype.assertExp_2(instanceOf(b, Array), "Needs byte[] not " + b), new GT352(b)) : new GT352(null); case GT533.prototype.META_RECID: return GT1650.prototype.assertFailed_1("Not used?! This info is given by the arms url now"), null; case GT533.prototype.META_ENDOFDATA: return new GT298(); case GT533.prototype.META_EMPTYQUEUE: return new GT283(); default: return GT492.prototype.createEvent_3.call(this, a, b, d); } }, }, "GT493", [] ), GT494 = GT493.extend( { initialConstructor_0: function () { GT493.prototype.initialConstructor_0.call(this); }, getEventCreatorVersion_0: function () { return 3; }, createEvent_3: function (a, b, d) { switch (a) { case GT533.prototype.SERVER_PACKETS: if (null != b) { if (instanceOf(b, java_util_JavaScriptVector)) return new GT309(b); GT494.prototype.LOG.log_1("Corrupt data: The given data needs to be a vector! But is " + b); GT1650.prototype.assertFailed_1("SERVER_PACKETS needs Vector not " + b); } return new GT309(); default: return GT493.prototype.createEvent_3.call(this, a, b, d); } }, }, "GT494", [] ); GT494.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT495 = GT494.extend( { initialConstructor_0: function () { GT494.prototype.initialConstructor_0.call(this); }, getEventCreatorVersion_0: function () { return 4; }, createEvent_3: function (a, b, d) { switch (a) { case GT533.prototype.TOUCH_START: case GT533.prototype.TOUCH_MOVE: case GT533.prototype.TOUCH_END: case GT533.prototype.TOUCH_CANCEL: if (null != b) return GT1650.prototype.assertExp_2(instanceOf(b, GT1447), "Needs TouchEvent not " + b.toString()), new GT651(b); GT1650.prototype.assertExp_2(null == b, "If there would be a TouchEvent it should have been used earlier?!?"); if (-1 != GT651.prototype.translateFromRecordingId_1(a)) return new GT651(a, 0, 0, 0, 0); GT1650.prototype.assertFailed_1("Problem creating touch Event! o==null, eventID == -1"); return null; default: return GT494.prototype.createEvent_3.call(this, a, b, d); } }, }, "GT495", [] ), GT482 = GT495.extend( { initialConstructor_0: function () { GT495.prototype.initialConstructor_0.call(this); }, getEventCreatorVersion_0: function () { return 5; }, createEvent_3: function (a, b, d) { switch (a) { case GT533.prototype.WRAPPER_EVENT: return null != b ? (GT1650.prototype.assertExp_2("string" === typeof b, "Needs String not " + b.toString()), new GT338(b)) : new GT338(null); case GT533.prototype.WRAPPER_V2_EVENT: return null != b ? (GT1650.prototype.assertExp_2(instanceOf(b, java_util_JavaScriptHashtable), "Needs Hashtable not " + b.toString()), new GT293(b)) : new GT293(null); default: return GT495.prototype.createEvent_3.call(this, a, b, d); } }, }, "GT482", [] ), GT14 = GT533.extend( { initialConstructor_0: function () { GT14.prototype.initialConstructor_1.call(this, null); }, initialConstructor_1: function (a) { this.packets = null; GT533.prototype.initialConstructor_2.call(this, GT533.prototype.SERVER_PACKETS, -1); null != a && 0 == a.size_0() && GT1650.prototype.assertFailed_1("Serverpackets are empty?!!"); this.packets = new java_util_JavaScriptVector(); if (null != a) for (var b = 0; b < a.size_0(); b++) { var d = a.get_1(b); GT1650.prototype.assertExp_2(null != d, "There is a null in the serverpackets?!"); GT1650.prototype.assertExp_2(instanceOf(d, Array) || instanceOf(d, java_util_JavaScriptVector), "o is neither byte[] nor Vector?!?"); this.packets.add_1(d); } }, getPackets_0: function () { return this.packets; }, setPackets_1: function (a) { this.packets = a; }, encodeData_3: function (a, b, d) { this.encodeByteArrayVector_4(this.packets, a, b, d); }, decodeData_3: function (a, b, d) { this.packets = this.decodeByteArrayVector_3(a, b, d); }, getLengthOfData_1: function (a) { return this.getBytesNeededFor_1(this.packets); }, getEventVersion_0: function () { return 1; }, encodeByteArrayVector_4: function (a, b, d, e) { e = a.size_0(); GT902.prototype.intToByteArray_3(e, b, d); var f = 4 * e; b.length - d - 1 < f && GT14.prototype.LOG.log_1("Corrupt data: the given array is to small. For encoding the length of the packets " + f + " bytes are needed."); for (f = 0; f < e; f++) { var g = a.get_1(f).length; GT902.prototype.intToByteArray_3(g, b, d + 4 + 4 * f); } d += 4 * (e + 1); for (f = 0; f < e; f++) { var k = a.get_1(f), g = null, m = -1; if (instanceOf(k, Array)) (g = k), (m = k.length); else { GT14.prototype.LOG.log_1("ERROR: entry of vector is not a byte[]!!"); GT1650.prototype.assertFailed_1("err"); break; } java_lang_System.prototype.arraycopy_5(g, 0, b, d, m); d += m; } }, decodeByteArrayVector_3: function (a, b, d) { if (null == a || 0 == a.length) return GT14.prototype.LOG.log_1("No data to decode for RecordingEventServerPackets!"), null; if (b >= a.length) return GT14.prototype.LOG.log_1("The given bytes for a RecordingEventServerPackets seem to be corrupt! I can't start to read at idx " + b + " from a byte[] with length " + a.length), null; var e = a.length - b; if (4 > e) return ( GT14.prototype.LOG.log_1( "The given bytes for a RecordingEventServerPackets seem to be corrupt! I need at least 4 bytes to get the number of packets (32bit int) from it. But there are just " + e + " bytes left in the array beginning from the given index " + b ), null ); d = GT902.prototype.byteArrayToInt_2(a, b); for (var f = b + 4 * (1 + d), g = new java_util_JavaScriptVector(), k = 0; k < d; k++) { var m = b + 4 * (1 + k), e = a.length - m; if (4 > e) return ( GT14.prototype.LOG.log_1( "The given bytes for a RecordingEventServerPackets seem to be corrupt! I need at least 4 bytes to get the length of the packet with index " + k + " (of " + d + ") from it. But there are just " + e + " bytes left in the array beginning from the given index " + m ), null ); m = GT902.prototype.byteArrayToInt_2(a, m); e = a.length - f; if (e < m) return ( GT14.prototype.LOG.log_1( "The given bytes for a RecordingEventServerPackets seem to be corrupt!The packet with index " + k + " should start at idx " + f + " and should consist of " + m + " bytes, but there are just " + e + " bytes left from this position!" ), null ); e = [].createArray(m).init(0); java_lang_System.prototype.arraycopy_5(a, f, e, 0, m); f += m; GT1650.prototype.assertExp_2(instanceOf(e, Array), "o != byte[]?!"); g.add_1(e); } return g; }, toString: function () { var a = 0; 0 != this.packets.size_0() && (a = this.packets.size_0()); return "RecordingEventServerPackets [" + a + " packets, " + this.getLengthOfData_1(this.getEventVersion_0()) + " bytes]"; }, }, "GT14", [] ); GT14.prototype.getBytesNeededFor_1 = function (a) { if (null == a) return GT14.prototype.LOG.log_1("WARN: packets are NULL!!"), 0; for (var b = 4, d = 0; d < a.size_0(); d++) { var e = a.get_1(d); GT1650.prototype.assertExp_2(null != e, "null e?!"); b += a.get_1(d).length + 4; } return b; }; GT14.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT395 = Class.extend( { initialConstructor_0: function () { this.paramPlayRecord = this.paramRecord = null; this.establishARMSOutputStream = this.establishARMSInputStream = !1; this.reader = this.writer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.paramPlayRecord = this.paramRecord = null; this.establishARMSOutputStream = this.establishARMSInputStream = !1; this.reader = this.writer = null; if (null == a) GT1650.prototype.assertFailed_1("No startParameters no ARMSRecordStreamProvider!!"); else { this.paramPlayRecord = a.get_1("playrecord"); this.paramRecord = a.get_1("record"); this.establishARMSOutputStream = this.establishARMSInputStream = !1; GT1318.prototype.isArmsUrl_1(this.paramPlayRecord) ? (this.establishARMSInputStream = !0) : null != this.paramPlayRecord && 0 < this.paramPlayRecord.length_0() && GT395.prototype.LOG.log_1("A 'playrecord' parameter is set, but it's not an arms url! '" + this.paramPlayRecord + "'"); GT1318.prototype.isArmsUrl_1(this.paramRecord) ? (this.establishARMSOutputStream = !0) : null != this.paramRecord && 0 < this.paramRecord.length_0() && GT395.prototype.LOG.log_1("A 'record' parameter is set, but it's not an arms url! '" + this.paramRecord + "'"); if (this.establishARMSInputStream) { var d = this.getPlaybackConnection_2(this.paramPlayRecord, b); if (null != d) { if (GT223.prototype.isAsynchronousChannel_1(d)) { var e = d.connect_0(); null != e && GT1650.prototype.assertFailed_1("err: " + e); } this.informConnectionItsForPlayback_2(d, a); GT395.prototype.LOG.info && GT395.prototype.LOG.log_1("PLAYBACK-Connection to ARMS at " + d.getHost_0() + ":" + d.getPort_0()); this.reader = new GT442(d); } else GT395.prototype.LOG.log_1("You have set an ARMS link but do not return a connectionInstance!"); } this.establishARMSOutputStream && ((d = this.getRecordConnection_2(this.paramRecord, b)), null != d ? (GT223.prototype.isAsynchronousChannel_1(d) && d.connect_0(), this.informConnectionItsForRecording_1(d), GT395.prototype.LOG.info && GT395.prototype.LOG.log_1("RECORDING-Connection to ARMS at " + d.getHost_0() + ":" + d.getPort_0()), (this.writer = new GT443(d))) : GT395.prototype.LOG.log_1("You have set an ARMS link but do not return a connectionInstance!")); } }, getNewConnectionInstance_5: function (a, b, d, e, f) { return null; }, informConnectionItsForRecording_1: function (a) { a.writeBytes_1(GT902.prototype.intToByteArray_1(2)); }, informConnectionItsForPlayback_2: function (a, b) { a.writeBytes_1(GT902.prototype.intToByteArray_1(1)); var d = new GT443(a), e = GT297.prototype.newInstanceOfNewestEventCreator_0(), f = d.setStreamStartVersion_2(this.getStreamStartVersion_0(), !0); null != f && GT1650.prototype.assertFailed_1("err: " + f); d.writeNextEvent_1(e.createEvent_3(GT533.prototype.META_VERSION, e.getPossibleEventVersions_0(), e.getEventCreatorVersion_0())); d.writeNextEvent_1(e.createEvent_3(GT533.prototype.PARAMETERS, b, 0)); }, getPlaybackConnection_2: function (a, b) { var d = new GT1318(a); return d.isValid_0() ? d.isPlayBack_0() ? this.getNewConnectionInstance_5(d.getHost_0(), d.getPort_0(), d.getPath_0(), d.getProtocol_0(), b) : (GT1650.prototype.assertFailed_1("Not a valid playback arms url '" + a + "'"), null) : (GT1650.prototype.assertFailed_1("Not a valid arms url '" + a + "'"), null); }, getRecordConnection_2: function (a, b) { var d = new GT1318(a); return d.isValid_0() ? d.isRecording_0() ? this.getNewConnectionInstance_5(d.getHost_0(), d.getPort_0(), d.getPath_0(), d.getProtocol_0(), b) : (GT1650.prototype.assertFailed_1("Not a valid recording arms url '" + a + "'"), null) : (GT1650.prototype.assertFailed_1("Not a valid arms url '" + a + "'"), null); }, getRecordOutputWriter_0: function () { if (null == this.paramRecord) return null; if (this.establishARMSOutputStream) if (null == this.writer) GT1650.prototype.assertFailed_1("Problem with arms connection. Can't get writer from NULL!"); else return this.writer; return null; }, getRecordInputReader_0: function () { if (null == this.paramPlayRecord) return null; if (this.establishARMSInputStream) if (null == this.reader) GT1650.prototype.assertFailed_1("Problem with arms connection. Can't get reader from NULL!"); else return this.reader; return null; }, getStreamStartVersion_0: function () { return 2; }, getParamRecord_0: function () { return this.paramRecord; }, getParamPlayRecord_0: function () { return this.paramPlayRecord; }, }, "GT395", [GT551, GT924] ); GT395.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT687 = Class.extend({ initialConstructor_0: function () {} }, "GT687", []); GT687.prototype.streamAllEvents_2 = function (a, b) { for (var d = 0, e = 0; ; ) { var f = a.readNextEvent_0(); if (null == f) { GT687.prototype.LOG.info && GT687.prototype.LOG.log_1("Stream end without END OF DATA EVENT!!"); break; } if (instanceOf(f, GT298)) { GT687.prototype.LOG.t_1("END OF DATA EVENT!!"); break; } d++; GT687.prototype.LOG.trace && (e = b.getDataSink_0().getWrittenByteCount_0()); b.writeNextEvent_1(f); if (GT687.prototype.LOG.trace) { var g = b.getDataSink_0().getWrittenByteCount_0(), k = g - e; GT687.prototype.LOG.log_1(d + ": " + f.toString() + " (" + f.getLengthOfData_1(f.getEventVersion_0()) + ", " + k + "/" + g + " written)"); } } return d; }; GT687.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT1174 = Class.extend( { initialConstructor_0: function () { this.buf = null; this.idxStart = this.idxEnd = this.initialCapacity = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.buf = null; this.idxStart = this.idxEnd = this.initialCapacity = 0; this.initialCapacity = a; this.buf = [].createArray(a).init(0); this.idxEnd = 0; }, available_0: function () { var a = this.idxEnd - this.idxStart; 0 > a && GT1650.prototype.assertFailed_1("available<0?!? " + this.idxEnd + " - " + this.idxStart + " = " + a); return a; }, clenupIfNeccessary_0: function () { var a = this.available_0(); if (this.idxStart > this.initialCapacity || (this.buf.length > 4 * this.initialCapacity && a < Math.div(this.buf.length, 4))) this.resizeBuf_1(Math.max_2(this.initialCapacity, 2 * a)), GT1174.prototype.LOG.trace && GT1174.prototype.LOG.log_1("cleaned up queue"); }, resizeBuf_1: function (a) { a = [].createArray(a).init(0); var b = this.available_0(); java_lang_System.prototype.arraycopy_5(this.buf, this.idxStart, a, 0, b); this.buf = a; this.idxStart = 0; this.idxEnd = b; }, pullByte_0: function () { if (1 > this.available_0()) return GT1650.prototype.assertFailed_1("No data available"), -1; var a = -123; this.idxStart < this.buf.length && this.idxStart < this.idxEnd ? (a = this.buf[this.idxStart++]) : GT1650.prototype.assertFailed_1("Should not be reached!"); this.clenupIfNeccessary_0(); return a; }, pullBytes_3: function (a, b, d) { if (0 == d) return null; if (this.available_0() < d) return "Not enough data available"; if (this.idxStart + d <= this.buf.length && this.idxStart + d <= this.idxEnd) java_lang_System.prototype.arraycopy_5(this.buf, this.idxStart, a, b, d), (this.idxStart += d); else return "Should not be reached! " + a.length + "/" + b + "/" + d + " - " + this.idxStart + "/" + this.idxEnd + "/" + this.buf.length; this.clenupIfNeccessary_0(); return null; }, pushBytes_3: function (a, b, d) { b + d > a.length && GT1650.prototype.assertFailed_1("Can't get " + d + " bytes from idx " + b + " with a byte[] with size " + a.length); var e = this.idxEnd + d; e > this.buf.length && (this.resizeBuf_1(Math.max_2(this.buf.length << 1, e)), (e = this.idxEnd + d)); java_lang_System.prototype.arraycopy_5(a, b, this.buf, this.idxEnd, d); this.idxEnd = e; }, pushBytes_1: function (a) { this.pushBytes_3(a, 0, a.length); }, }, "GT1174", [] ); GT1174.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT223 = GT395.extend( { initialConstructor_0: function () { GT395.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT395.prototype.initialConstructor_2.call(this, a, b); }, getNewConnectionInstance_5: function (a, b, d, e, f) { return new GT28(new GT772(f), a, b, d, null); }, isAsynchronousChannel_1: function (a) { return !0; }, }, "GT223", [] ), GT444 = Class.extend( { initialConstructor_0: function () { this.eventCreator = this.stream = null; this.countEventsRead = this.receivedStreamStartVersion = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.eventCreator = this.stream = null; this.countEventsRead = this.receivedStreamStartVersion = 0; this.stream = a; this.receivedStreamStartVersion = this.readInt_1(-1); this.countEventsRead = 0; -1 == this.receivedStreamStartVersion && GT1650.prototype.assertFailed_1("Can't receive int (streamStartVersion) from stream!"); this.eventCreator = GT297.prototype.newInstanceOfNewestEventCreator_0(); }, close_0: function () { null != this.stream && this.stream.close_0(); }, getEventCreator_0: function () { return this.eventCreator; }, getDecoderVersion_0: function () { return 1; }, readNextEvent_0: function () { if (null == this.eventCreator) return GT1650.prototype.assertFailed_1("An EventCreator has to be set before the first call of readNextEvent!"), null; var a = this.stream.read_0(); if (-1 == a) return null; if (-1 == JSUTIL.MathUtil.castToByte(a)) return GT1650.prototype.assertFailed_1("(byte)id = " + JSUTIL.MathUtil.castToByte(a)), null; var b = this.eventCreator.createEvent_3(JSUTIL.MathUtil.castToByte(a), null, 0); if (null == b) return GT1650.prototype.assertFailed_1("Should not be reached! This means the event creator can't create an event for the id '" + a + "'."), null; a = b.getDefaultLength_0(); if (-1 == a) { for (var a = [].createArray(4).init(0), d = 0; d < a.length; d++) { var e = this.stream.read_0(); if (-1 == e) return GT1650.prototype.assertExp_2(!1, "Recording incomplete."), null; a[d] = JSUTIL.MathUtil.castToByte(e); } a = GT902.prototype.byteArrayToInt_1(a); } d = [].createArray(a).init(0); this.readBytes_3(d, 0, a); b.decodeData_1(d); this.countEventsRead++; return b; }, readBytes_3: function (a, b, d) { if (null == this.stream) return "No underlying stream set!"; for (b = 0; b < a.length; b++) { d = this.stream.read_0(); if (-1 == d) return "Recording incomplete."; a[b] = JSUTIL.MathUtil.castToByte(d); } return null; }, readInt_1: function (a) { var b = [].createArray(4).init(0), d = this.readBytes_3(b, 0, b.length); return null != d ? (GT444.prototype.LOG.log_1("Can't read int! " + d), a) : GT902.prototype.byteArrayToInt_1(b); }, getReceivedStreamStartVersion_0: function () { return this.receivedStreamStartVersion; }, getDataSource_0: function () { return this.stream; }, getNumberOfEventsRead_0: function () { return this.countEventsRead; }, }, "GT444", [GT703] ); GT444.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT442 = Class.extend( { initialConstructor_0: function () { this.incomingEventsQueue = this.byteBuffer = this.connection = this.eventEncoder = this.eventCreator = null; this.receivedStreamStartVersion = 0; this.bufferSizeOptimizationMessageWritten = this.newDataAllowed = this.receivedStreamStratVersionWritten = !1; this.numberOfEventsAlreadyRead = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.incomingEventsQueue = this.byteBuffer = this.connection = this.eventEncoder = this.eventCreator = null; this.receivedStreamStartVersion = 0; this.bufferSizeOptimizationMessageWritten = this.newDataAllowed = this.receivedStreamStratVersionWritten = !1; this.numberOfEventsAlreadyRead = 0; this.connection = a; this.receivedStreamStartVersion = -1; this.numberOfEventsAlreadyRead = 0; this.bufferSizeOptimizationMessageWritten = !1; if (null != a) if ( ((this.eventEncoder = new GT483()), GT442.prototype.LOG.info && GT442.prototype.LOG.log_1("EventEncoder initialized. Version: " + this.eventEncoder.getEncoderVersion_0()), (this.eventCreator = GT297.prototype.newInstanceOfNewestEventCreator_0()), GT442.prototype.LOG.info && GT442.prototype.LOG.log_1("EventCreator initialized. Version: " + this.eventCreator.getEventCreatorVersion_0()), GT223.prototype.isAsynchronousChannel_1(a)) ) a.addAsyncDataChannelListener_1(this), (this.incomingEventsQueue = new GT1461()), (GT442.prototype.EMPTY_QUEUE = this.eventCreator.createEvent_3(GT533.prototype.META_EMPTYQUEUE, null, -1)), (GT442.prototype.END_OF_DATA = this.eventCreator.createEvent_3(GT533.prototype.META_ENDOFDATA, null, -1)), (this.receivedStreamStratVersionWritten = !1), (this.newDataAllowed = !0); else { var b = [].createArray(4).init(0); a = a.readBytes_1(b); null != a ? GT1650.prototype.assertFailed_1("err: " + a) : this.setReceivedStreamStartVersion_1(b); } else GT1650.prototype.assertFailed_1("This Reader needs a connection!"); }, setReceivedStreamStartVersion_1: function (a) { this.receivedStreamStartVersion = GT902.prototype.byteArrayToInt_1(a); this.receivedStreamStratVersionWritten = !0; 0 < this.receivedStreamStartVersion ? GT442.prototype.LOG.verbose && GT442.prototype.LOG.log_1("Received stream start version " + this.receivedStreamStartVersion) : GT1650.prototype.assertFailed_1("receivedStreamStartVersion = " + this.receivedStreamStartVersion); }, getEventEncoder_0: function () { return this.eventEncoder; }, getEventCreator_0: function () { return this.eventCreator; }, getDecoderVersion_0: function () { return 1; }, readNextEvent_0: function () { if (null != this.incomingEventsQueue) { GT1650.prototype.assertExp_2(null == this.connection || GT223.prototype.isAsynchronousChannel_1(this.connection), "If there is a queue, the connection has to be an async connection (or null after connection lost)!"); var a = this.pullFromEventsQueue_0(); if (null != a) { if (instanceOf(a, GT298)) return null; this.numberOfEventsAlreadyRead++; return a; } return GT442.prototype.EMPTY_QUEUE; } if (GT223.prototype.isAsynchronousChannel_1(this.connection)) return GT1650.prototype.assertFailed_1("It's an aysync connection but there is no queue?!?"), null; a = this.readNextEventSynchron_0(); null != a && this.numberOfEventsAlreadyRead++; return a; }, close_0: function () { null != this.connection && this.connection.close_0(); }, isReceivedStreamStratVersionWritten_0: function () { return this.receivedStreamStratVersionWritten; }, getReceivedStreamStartVersion_0: function () { this.receivedStreamStratVersionWritten || GT1650.prototype.assertFailed_1("receivedstreamstartversion not written yet"); return this.receivedStreamStartVersion; }, readNextEventSynchron_0: function () { if (null == this.connection) return GT1650.prototype.assertFailed_1("connection= null!"), null; if (GT223.prototype.isAsynchronousChannel_1(this.connection)) return GT1650.prototype.assertFailed_1("May not be used by async connection!"), null; if (null == this.eventCreator) return GT1650.prototype.assertFailed_1("An EventCreator has to be set before the first call of readNextEvent!"), null; var a = this.connection, b = a.readByte_0(); if (0 > b) return GT442.prototype.LOG.info && GT442.prototype.LOG.log_1("Received " + b + " from connection."), null; var d = this.eventCreator.createEvent_3(JSUTIL.MathUtil.castToByte(b), null, 0); if (null == d) return GT1650.prototype.assertFailed_1("Can't create event from id " + b), null; b = d.getDefaultLength_0(); -1 == b && ((b = [].createArray(4).init(0)), a.readBytes_1(b), (b = GT902.prototype.byteArrayToInt_1(b))); 0 == b ? GT442.prototype.LOG.info && GT442.prototype.LOG.log_1("The event '" + d + "' has a data length of 0!") : ((b = [].createArray(b).init(0)), a.readBytes_1(b), d.decodeData_1(b)); return d; }, connectionEstablished_1: function (a) {}, connectionNotEstablished_2: function (a, b) { this.incomingEventsQueue = this.connection = null; this.newDataAllowed = !1; }, connectionLost_1: function (a) { this.connection = null; this.newDataAllowed && this.pushToEventsQueue_1(GT442.prototype.END_OF_DATA); this.newDataAllowed = !1; }, dataArrived_2: function (a, b) { if (this.newDataAllowed) { if (!this.receivedStreamStratVersionWritten) { this.setReceivedStreamStartVersion_1(b); this.receivedStreamStratVersionWritten = !0; if (4 == b.length) return; b = this.removeFirstBytesFromByteArray_2(b, 4); } this.writeToByteBuffer_1(b); } else GT442.prototype.LOG.i_1("dataArrive() but no new data allowed!"), GT1650.prototype.stackTrace_0(); }, dataEnd_1: function (a) { null != this.connection && GT223.prototype.isAsynchronousChannel_1(this.connection) && this.pushToEventsQueue_1(GT442.prototype.END_OF_DATA); }, stateChanged_1: function (a) { if (null == a) GT1650.prototype.assertFailed_1("Makes no sense to call a listener without a source"); else if (GT223.prototype.isAsynchronousChannel_1(a)) if (a != this.connection && null != this.connection) GT1650.prototype.assertFailed_1("datasource != connection?!? " + a + " != " + this.connection); else switch (a.getStatus_0()) { case GT484.prototype.ACTIVE: this.connectionEstablished_1(a); break; case GT484.prototype.LOST: this.connectionLost_1(a); break; case GT484.prototype.ACTIVATION_NOT_POSSIBLE: this.connectionNotEstablished_2(a, a.getErrorText_0()); break; case GT484.prototype.FINISHED: this.dataEnd_1(a); } else GT1650.prototype.assertFailed_1("RecordTCPReader need a TCPConnectionAsync as async Data source!"); }, writeToByteBuffer_1: function (a) { if (null == this.byteBuffer) (this.byteBuffer = [].createArray(a.length).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, this.byteBuffer, 0, a.length); else { var b = [].createArray(this.byteBuffer.length + a.length).init(0); java_lang_System.prototype.arraycopy_5(this.byteBuffer, 0, b, 0, this.byteBuffer.length); java_lang_System.prototype.arraycopy_5(a, 0, b, this.byteBuffer.length, a.length); this.byteBuffer = b; } this.byteBuffer = this.tryToRetrieveEvents_1(this.byteBuffer); 0 < this.byteBuffer.length && !this.bufferSizeOptimizationMessageWritten && (GT442.prototype.LOG.info && GT442.prototype.LOG.log_1( "THere are " + this.byteBuffer.length + "bytes left in the buffer. That means, that the asynchronous connection (ARMSConnectionAsync)does not get whole events with the dataArrived callback.But just parts. See if you can optimize the connectionin the way that a byte[] that is sent, almost always contains whole events!" ), (this.bufferSizeOptimizationMessageWritten = !0)); }, pushToEventsQueue_1: function (a) { this.incomingEventsQueue.push_1(a); }, pullFromEventsQueue_0: function () { var a = this.incomingEventsQueue.pull_0(); GT442.prototype.LOG.trace && null != a && GT442.prototype.LOG.log_1("Event read from EventQueue " + a); return a; }, tryToRetrieveEvents_1: function (a) { if (null == a || 0 == a.length) return a; for (; 0 < a.length; ) { var b = 0, d = a[b]; b++; if (0 > d) { this.pushToEventsQueue_1(GT442.prototype.END_OF_DATA); break; } var e = this.eventCreator.createEvent_3(JSUTIL.MathUtil.castToByte(d), null, 0); if (null == e) { GT1650.prototype.assertFailed_1("Can't create event from id " + d); this.pushToEventsQueue_1(GT442.prototype.END_OF_DATA); break; } d = e.getDefaultLength_0(); if (-1 == d) { if (a.length < b + 4) break; d = GT902.prototype.byteArrayToInt_2(a, b); b += 4; if (0 > d) { GT1650.prototype.assertFailed_1("Length of event = " + d); this.pushToEventsQueue_1(GT442.prototype.END_OF_DATA); break; } } if (a.length < b + d) break; e.decodeData_3(a, b, d); this.pushToEventsQueue_1(e); b += d; e = a.length; a = this.removeFirstBytesFromByteArray_2(a, b); GT1650.prototype.assertExp_2(e - b == a.length, "Something went wrong at removing the frist bytes of a byte array"); } return a; }, getHost_0: function () { return null == this.connection ? null : this.connection.getHost_0(); }, getPort_0: function () { return null == this.connection ? -1 : this.connection.getPort_0(); }, getDataSource_0: function () { return this.connection; }, getNumberOfEventsRead_0: function () { return this.numberOfEventsAlreadyRead; }, }, "GT442", [GT598] ); GT442.prototype.removeFirstBytesFromByteArray_2 = function (a, b) { if (b > a.length) return GT1650.prototype.assertFailed_1("Can't remove " + b + " bytes from array that has a length of " + a.length), []; var d = a.length - b, e = [].createArray(d).init(0); java_lang_System.prototype.arraycopy_5(a, b, e, 0, d); return e; }; GT442.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); GT442.prototype.EMPTY_QUEUE = null; GT442.prototype.END_OF_DATA = null; var GT443 = Class.extend( { initialConstructor_0: function () { this.connection = this.eventEncoder = null; this.countWrittenEvents = this.streamStartVersion = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.connection = this.eventEncoder = null; this.countWrittenEvents = this.streamStartVersion = 0; this.connection = a; this.streamStartVersion = -1; this.countWrittenEvents = 0; null != a ? ((this.eventEncoder = new GT483()), GT443.prototype.LOG.info && GT443.prototype.LOG.log_1("EventEncoder initialized. Version: " + this.eventEncoder.getEncoderVersion_0()), instanceOf(a, GT456)) : GT1650.prototype.assertFailed_1("This Writer needs a connection!"); }, setStreamStartVersion_2: function (a, b) { if (-1 != this.streamStartVersion) return "The stream start Version has been set earlier!"; if (0 > a) return "" + a + " is not a valid streamStartVerison!"; GT443.prototype.LOG.i_1(">>>>>>>>>>> setStreamStartVersion to " + a); this.streamStartVersion = a; b && this.writeBytesInternal_1(GT902.prototype.intToByteArray_1(this.streamStartVersion)); return null; }, getEventEncoder_0: function () { return this.eventEncoder; }, writeBytesInternal_1: function (a) { if (null == this.connection) return "Connection is null!"; this.connection.writeBytes_1(a); return null; }, getDecoderVersion_0: function () { return 1; }, writeNextEvent_2: function (a, b) { if (null == this.connection) return "Can't write event. No connection!"; if (-1 == this.streamStartVersion) return "Can't write events before streamStartVersion is written!"; this.countWrittenEvents++; GT443.prototype.LOG.trace && GT443.prototype.LOG.log_1(this.countWrittenEvents + "th event " + a); return this.writeBytesInternal_1(this.getEventEncoder_0().encode_3(a, !1, b)); }, writeNextEvent_1: function (a) { return this.writeNextEvent_2(a, this.getEventEncoder_0().getEncoderVersion_0()); }, close_0: function () { null != this.connection && this.connection.close_0(); }, getHost_0: function () { return null == this.connection ? null : this.connection.getHost_0(); }, getPort_0: function () { return null == this.connection ? -1 : this.connection.getPort_0(); }, getDataSink_0: function () { return this.connection; }, }, "GT443", [GT599] ); GT443.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT28 = Class.extend( { initialConstructor_0: function () { this.server = this.nativeWebsocket = this.nativeWebsocketConnector = null; this.port = 0; this.dataSinkListeners = this.dataSourceListeners = this.protocol = this.path = null; this.writtenBytes = 0; this.outgoingByteQueue = this.noConnectionText = null; this.connectionState = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.server = this.nativeWebsocket = this.nativeWebsocketConnector = null; this.port = 0; this.dataSinkListeners = this.dataSourceListeners = this.protocol = this.path = null; this.writtenBytes = 0; this.outgoingByteQueue = this.noConnectionText = null; this.connectionState = 0; this.server = b; this.port = d; this.path = e; this.protocol = f; this.writtenBytes = 0; this.nativeWebsocketConnector = a; this.noConnectionText = null; this.connectionState = GT484.prototype.NOT_INIT; }, informTextReceived_1: function (a) { if (null != this.dataSourceListeners) for (var b = 0; b < this.dataSourceListeners.size_0(); b++) { var d = this.dataSourceListeners.elementAt_1(b); instanceOf(d, GT125) ? d.receivedText_1(a) : GT1650.prototype.assertFailed_1("Text arrived?! '" + a + "'"); } }, informDataArrived_1: function (a) { 8182 == a.length && GT28.prototype.LOG.log_1( "You received a byte[] with size 8182. Seems like thats the max byte[] size of the used Websocket (at least in java). That's just a warning, but I only received that in casethe CLIENT SIDE WEBSOCKET BUFFER WAS TO SMALL.That always led to problems during decoding afterwards!" ); if (null != this.dataSourceListeners) for (var b = 0; b < this.dataSourceListeners.size_0(); b++) this.dataSourceListeners.elementAt_1(b).dataArrived_2(this, a); }, informConEstablished_0: function () { GT28.prototype.LOG.verbose && GT28.prototype.LOG.log_1("ARMS-Connection established!"); this.setDataSourceState_1(GT484.prototype.ACTIVE); this.tryToSendDataFromOutgoingQueue_0(); }, informConNotEstablished_1: function (a) { java_lang_System.prototype.out.println_1( ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n WARNING! ARMS-Websocket-Connection not established! " + a + "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ); this.noConnectionText = a; this.setDataSourceState_1(GT484.prototype.ACTIVATION_NOT_POSSIBLE); }, informConLost_0: function () { GT28.prototype.LOG.verbose && GT28.prototype.LOG.log_1("ARMS-Disconnected!"); this.setDataSourceState_1(GT484.prototype.LOST); }, setDataSourceState_1: function (a) { this.connectionState = a; if (null != this.dataSourceListeners) for (a = 0; a < this.dataSourceListeners.size_0(); a++) this.dataSourceListeners.elementAt_1(a).stateChanged_1(this); }, isConnected_0: function () { return this.connectionState == GT484.prototype.ACTIVE; }, writeText_1: function (a) { if (null == this.nativeWebsocket) return "You have to call connect before you can write text!"; this.isConnected_0() || GT1650.prototype.assertFailed_1("writeText() is not queued. You have to wait for the connection to be established before you can call it!"); this.nativeWebsocket.sendText_1(a); return null; }, writeBytes_1: function (a) { if (null == this.nativeWebsocket) return "You have to call connect before you can write data!"; if (null != this.noConnectionText) return this.noConnectionText; null == this.outgoingByteQueue && (this.outgoingByteQueue = new GT1174(1024)); this.outgoingByteQueue.pushBytes_1(a); this.writtenBytes += a.length; this.tryToSendDataFromOutgoingQueue_0(); return null; }, tryToSendDataFromOutgoingQueue_0: function () { if (this.connectionState != GT484.prototype.ACTIVE) return null; var a = this.outgoingByteQueue.available_0(); if (0 == a) return null; var b = [].createArray(a).init(0), a = this.outgoingByteQueue.pullBytes_3(b, 0, a); if (null != a) return a; this.nativeWebsocket.sendBinary_1(b); return null; }, close_0: function () { null == this.nativeWebsocket ? GT28.prototype.LOG.info && GT28.prototype.LOG.log_1("Can't close a websocket thats null!") : (GT28.prototype.LOG.info && GT28.prototype.LOG.log_1("Closing websocket after sending " + this.writtenBytes + " bytes"), this.nativeWebsocket.close_0()); }, getHost_0: function () { return this.server; }, getPort_0: function () { return this.port; }, getWrittenByteCount_0: function () { return this.writtenBytes; }, addAsyncDataChannelListener_1: function (a) { if (null != a) { if (null == this.dataSourceListeners) this.dataSourceListeners = new java_util_JavaScriptVector(); else if (this.dataSourceListeners.contains_1(a)) return; this.dataSourceListeners.add_1(a); } }, addDataSinkAsyncListener_1: function (a) { if (null != a) { if (null == this.dataSinkListeners) this.dataSinkListeners = new java_util_JavaScriptVector(); else if (this.dataSinkListeners.contains_1(a)) return; this.dataSinkListeners.add_1(a); } }, connect_0: function () { if (null == this.nativeWebsocketConnector) return "Can't connect websocket because the WebsocketConnector is null!"; var a = new GT62(this); this.nativeWebsocket = this.nativeWebsocketConnector.connect_5(this.server, this.port, this.path, this.protocol, a); return null == this.nativeWebsocket ? "websockt == null!!" : null; }, getStatus_0: function () { return this.connectionState; }, getErrorText_0: function () { return this.noConnectionText; }, isAsynchronous_0: function () { return !0; }, }, "GT28", [GT41] ), GT62 = Class.extend( { initialConstructor_0: function () { this.armsWScon = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.armsWScon = null; this.armsWScon = a; }, receivedText_1: function (a) { this.armsWScon.informTextReceived_1(a); }, receivedBinary_1: function (a) { this.armsWScon.informDataArrived_1(a); }, onSocketNotConnected_1: function (a) { this.armsWScon.informConNotEstablished_1(a); }, onSocketDisconnected_0: function () { this.armsWScon.informConLost_0(); }, onSocketConnected_0: function () { this.armsWScon.informConEstablished_0(); }, }, "GT62", [GT1068] ); GT28.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT1318 = Class.extend( { initialConstructor_0: function () { this.valid = !1; this.host = null; this.port = 0; this.protocol = this.clientVersion = this.platformInfo = this.id = this.recordName = this.projectName = this.path = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.valid = !1; this.host = null; this.port = 0; this.protocol = this.clientVersion = this.platformInfo = this.id = this.recordName = this.projectName = this.path = null; this.host = a; this.port = b; this.path = d; this.projectName = e; this.recordName = f; this.clientVersion = g; this.platformInfo = k; this.protocol = m; this.id = n; }, initialConstructor_1: function (a) { this.valid = !1; this.host = null; this.port = 0; this.protocol = this.clientVersion = this.platformInfo = this.id = this.recordName = this.projectName = this.path = null; a = this.decomposeArmsUrl_2(a, this); null != a && GT1650.prototype.assertFailed_1("err: " + a); }, getUrlString_0: function () { if (null == this.host) return GT1318.prototype.LOG.log_1("No host - no url!"), null; if (null == this.path) return GT1318.prototype.LOG.log_1("No path - no url!"), null; if (null != this.projectName && 0 < this.projectName.length_0() && (null == this.recordName || 0 == this.recordName.length_0())) return GT1650.prototype.assertFailed_1("There is a projectname but no recordname - not valid!"), null; var a = new java_util_JavaScriptHashtable(); null != this.host && a.put_2(GT1318.prototype.HOST, this.host); 0 < this.port && a.put_2(GT1318.prototype.PORT, "" + this.port); null != this.path && a.put_2(GT1318.prototype.WEBSOCKET_PATH, this.path); null != this.projectName && a.put_2(GT1318.prototype.PROJECTNAME, this.projectName); null != this.recordName && a.put_2(GT1318.prototype.RECORDNAME, this.recordName); null != this.platformInfo && a.put_2(GT1318.prototype.PLATFORM_INFO, this.platformInfo); null != this.clientVersion && a.put_2(GT1318.prototype.CLIENT_VERSION, this.clientVersion); null != this.protocol && a.put_2(GT1318.prototype.PROTOCOL, this.protocol); null != this.id && a.put_2(GT1318.prototype.RECORD_ID, this.id); a = GT1678.prototype.serialize_1(a); return "" + GT1318.prototype.ARMS_PREFIX + GT485.prototype.urlEncode_1(a); }, getProtocol_0: function () { return this.protocol; }, isValid_0: function () { return this.valid; }, getHost_0: function () { return this.host; }, getPath_0: function () { return this.path; }, getPort_0: function () { return this.port; }, getProjectName_0: function () { return this.projectName; }, getRecordName_0: function () { return this.recordName; }, getId_0: function () { return this.id; }, getClientVersion_0: function () { return this.clientVersion; }, getPlatformInfo_0: function () { return this.platformInfo; }, isPlayBack_0: function () { return null != this.host && 0 != this.port && null != this.path; }, isRecording_0: function () { return null != this.host && 0 != this.port && null != this.path && null != this.clientVersion && null != this.recordName && null != this.projectName; }, }, "GT1318", [] ); GT1318.prototype.decomposeArmsUrl_2 = function (a, b) { if (null == a) return "Can't get arms data out of NULL!"; if (a.length_0() <= GT1318.prototype.ARMS_PREFIX.length_0() || !a.startsWith_1(GT1318.prototype.ARMS_PREFIX)) return "'" + a + "' is not an ARMS url!"; var d = a.substring_1(GT1318.prototype.ARMS_PREFIX.length_0()), d = GT485.prototype.urlDecode_1(d), d = GT1678.prototype.deserializeObject_1(d); if (null != d) { var e = new StringBuffer(); if (null == d.get_1(GT1318.prototype.RECORD_ID)) for (var f = 0; f < GT1318.prototype.REQUIRED_PARAMETERS_RECORD.length; f++) { var g = d.get_1(GT1318.prototype.REQUIRED_PARAMETERS_RECORD[f]); (null != g && 0 != g.length_0()) || e.append_1("Parameter " + GT1318.prototype.REQUIRED_PARAMETERS_RECORD[f] + " must be set\n"); } else for (f = 0; f < GT1318.prototype.REQUIRED_PARAMETERS_PLAYBACK.length; f++) (g = d.get_1(GT1318.prototype.REQUIRED_PARAMETERS_PLAYBACK[f])), (null != g && 0 != g.length_0()) || e.append_1("Parameter " + GT1318.prototype.REQUIRED_PARAMETERS_PLAYBACK[f] + " must be set!\n"); f = 0 == e.length_0(); null != b && ((b.host = d.get_1(GT1318.prototype.HOST)), (b.port = GT1672.prototype.stringToInt_1(d.get_1(GT1318.prototype.PORT))), (b.path = d.get_1(GT1318.prototype.WEBSOCKET_PATH)), (b.projectName = d.get_1(GT1318.prototype.PROJECTNAME)), (b.recordName = d.get_1(GT1318.prototype.RECORDNAME)), (b.id = d.get_1(GT1318.prototype.RECORD_ID)), (b.platformInfo = d.get_1(GT1318.prototype.PLATFORM_INFO)), (b.clientVersion = d.get_1(GT1318.prototype.CLIENT_VERSION)), (b.protocol = d.get_1(GT1318.prototype.PROTOCOL)), (b.valid = f)); if (f) return null; e.append_1("not valid! '" + a + "'"); return e.toString(); } return "Could not deserialize url: " + a; }; GT1318.prototype.isArmsUrl_1 = function (a) { return null == this.decomposeArmsUrl_2(a, null); }; GT1318.prototype.composeExampleUrl_0 = function () { var a = new java_util_JavaScriptHashtable(); a.put_2(GT1318.prototype.HOST, "ato-app-devmux"); a.put_2(GT1318.prototype.PORT, "1234"); a.put_2(GT1318.prototype.WEBSOCKET_PATH, "websocketpath"); a.put_2(GT1318.prototype.PROJECTNAME, "luckylady"); a.put_2(GT1318.prototype.RECORDNAME, "paytable_recording"); a.put_2(GT1318.prototype.PLATFORM_INFO, "chrome1234"); a.put_2(GT1318.prototype.CLIENT_VERSION, "luckylady_2016-05-25_0211"); a.put_2(GT1318.prototype.RECORD_ID, "123456"); a.put_2(GT1318.prototype.PROTOCOL, "WS"); return "" + GT1318.prototype.ARMS_PREFIX + GT485.prototype.urlEncode_1(GT1678.prototype.serialize_1(a)); }; GT1318.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); GT1318.prototype.ARMS_PREFIX = "arms"; GT1318.prototype.HOST = "host"; GT1318.prototype.PORT = "port"; GT1318.prototype.PROJECTNAME = "projectname"; GT1318.prototype.RECORDNAME = "recordname"; GT1318.prototype.RECORD_ID = "recordid"; GT1318.prototype.PLATFORM_INFO = "platforminfo"; GT1318.prototype.CLIENT_VERSION = "clientversion"; GT1318.prototype.WEBSOCKET_PATH = "websocketpath"; GT1318.prototype.PROTOCOL = "protocol"; GT1318.prototype.KNOWN_PARAMETERS = [ GT1318.prototype.HOST, GT1318.prototype.PORT, GT1318.prototype.PROJECTNAME, GT1318.prototype.RECORDNAME, GT1318.prototype.RECORD_ID, GT1318.prototype.PLATFORM_INFO, GT1318.prototype.CLIENT_VERSION, GT1318.prototype.WEBSOCKET_PATH, GT1318.prototype.PROTOCOL, ]; GT1318.prototype.REQUIRED_PARAMETERS_RECORD = [GT1318.prototype.HOST, GT1318.prototype.PORT, GT1318.prototype.PROJECTNAME, GT1318.prototype.RECORDNAME, GT1318.prototype.CLIENT_VERSION, GT1318.prototype.WEBSOCKET_PATH]; GT1318.prototype.REQUIRED_PARAMETERS_PLAYBACK = [GT1318.prototype.HOST, GT1318.prototype.PORT, GT1318.prototype.WEBSOCKET_PATH, GT1318.prototype.RECORD_ID]; GT1318.prototype.EXAMPLE_URL = GT1318.prototype.composeExampleUrl_0(); var GT902 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT902", [] ); GT902.prototype.getHashTableFromString_1 = function (a) { if (null == a || 0 == a.length_0()) return null; if (-1 == a.indexOf_1(";")) { var b = GT1677.prototype.tokenize_2(a.replace_2("RunChecker (Java)", "Java").trim_0(), " "); if (null == b || 0 == b.length || 0 != b.length % 2) return GT902.prototype.LOG.log_1("Can't get parameters out of '" + a + "'"), null; a = new java_util_JavaScriptHashtable(); for (var d = 0; d < b.length - 1; d += 2) a.put_2(b[d], b[d + 1]); return a; } b = GT1677.prototype.tokenize_2(a.trim_0(), ";"); a = new java_util_JavaScriptHashtable(); for (d = 0; d < b.length; d++) { var e = b[d].indexOf_1(61); if (0 < e) { var f = b[d].substring_2(0, e), e = b[d].substring_2(e + 1, b[d].length_0()); a.put_2(f, e); } else GT902.prototype.LOG.i_1("Parameter does not contain '=' " + b[d]); } return a; }; GT902.prototype.getHashTableAsString_1 = function (a) { if (null == a) return null; for (var b = new StringBuffer(), d = a.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0().toString(); 0 < b.length_0() && b.append_1(";"); b.append_1(e); b.append_1("="); b.append_1(a.get_1(e).toString()); } return b.toString(); }; GT902.prototype.debugByteArray_3 = function (a, b, d) { if (null == a) return "null"; var e = new StringBuffer(); e.append_1("{"); var f = d, g = !1; b + d > a.length ? (f = a.length - b) : (g = !0); for (var k = !0, m = b; m < b + f; m++) k ? (k = !1) : e.append_1(","), e.append_1("" + a[m]); g && e.append_1("...(" + (a.length - d) + ")"); e.append_1("}"); return e.toString(); }; GT902.prototype.bytesToStringASCII_3 = function (a, b, d) { d = [].createArray(d).init(0); for (var e = 0; e < d.length; e++) d[e] = JSUTIL.MathUtil.castToChar(a[e + b]); return new JavaScriptString(d); }; GT902.prototype.stringToBytesASCII_1 = function (a) { var b = [].createArray(a.length_0()).init(0); this.stringToBytesASCII_3(a, b, 0); return b; }; GT902.prototype.stringToBytesASCII_3 = function (a, b, d) { if (null != a) for (var e = 0; e < a.length_0(); e++) b[e + d] = JSUTIL.MathUtil.castToByte(a.charAt_1(e)); }; GT902.prototype.byteArrayToInt_1 = function (a) { return this.byteArrayToInt_2(a, 0); }; GT902.prototype.intToByteArray_1 = function (a) { var b = [].createArray(4).init(0); this.intToByteArray_3(a, b, 0); return b; }; GT902.prototype.byteArrayToInt_2 = function (a, b) { return (a[b] << 24) + ((a[b + 1] & 255) << 16) + ((a[b + 2] & 255) << 8) + (a[b + 3] & 255); }; GT902.prototype.intToByteArray_3 = function (a, b, d) { b[d] = JSUTIL.MathUtil.castToByte(a >>> 24); b[d + 1] = JSUTIL.MathUtil.castToByte(a >>> 16); b[d + 2] = JSUTIL.MathUtil.castToByte(a >>> 8); b[d + 3] = JSUTIL.MathUtil.castToByte(a); }; GT902.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT1006 = Class.extend( { initialConstructor_0: function () { this.streamWriter = null; this.recordTimeDependentEvents = this.started = !1; this.eventDispatcher = this.eventCreator = null; this.stopping = this.lastEventGivenToWriter = !1; this.recordedEventsCount = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.streamWriter = null; this.recordTimeDependentEvents = this.started = !1; this.eventDispatcher = this.eventCreator = null; this.stopping = this.lastEventGivenToWriter = !1; this.recordedEventsCount = 0; GT1006.prototype.LOG.verbose && GT1006.prototype.LOG.log_1("initialize GameClientRecorder"); this.eventDispatcher = d; this.streamWriter = a; this.eventCreator = b; this.stopping = this.lastEventGivenToWriter = !1; this.recordedEventsCount = 0; for ( var f = [ GT1451.prototype.MOUSE_CLICKED, GT1451.prototype.MOUSE_DRAGGED, GT1451.prototype.MOUSE_MOVED, GT1451.prototype.MOUSE_PRESSED, GT1451.prototype.MOUSE_RELEASED, GT1196.prototype.MOUSE_WHEEL, GT1447.prototype.TOUCH_START, GT1447.prototype.TOUCH_MOVE, GT1447.prototype.TOUCH_END, GT1447.prototype.TOUCH_CANCEL, ], g = 0; g < f.length; g++ ) d.registerHandler_4(f[g], null, this, -Integer.MAX_VALUE); a = a.setStreamStartVersion_2(this.getStreamStartVersion_0(), !0); null != a && GT1650.prototype.assertFailed_1("err: " + a); GT1006.prototype.LOG.verbose && GT1006.prototype.LOG.log_1("GameClientRecorder wrote version"); a = this.streamWriter.writeNextEvent_1(b.createEvent_3(GT533.prototype.META_VERSION, b.getPossibleEventVersions_0(), b.getEventCreatorVersion_0())); null != a ? GT1650.prototype.assertFailed_1("err: '" + a + "'") : this.recordedEventsCount++; b = b.createEvent_3(GT533.prototype.PARAMETERS, e, 0); a = this.streamWriter.writeNextEvent_1(b); null != a ? GT1650.prototype.assertFailed_1("err: '" + a + "'") : this.recordedEventsCount++; }, getStreamStartVersion_0: function () { return 2; }, record_1: function (a) { if (this.started) if (this.lastEventGivenToWriter) GT1650.prototype.assertFailed_1("EndOfData already written!! Recorder does not except further events! (Recorded events " + this.recordedEventsCount + ")"); else { if (instanceOf(a, GT298)) { GT1006.prototype.LOG.log_1("Recorder writes END OF DATA EVENT!!!!!!!!!!!"); this.lastEventGivenToWriter = !0; var b = this.streamWriter.getDataSink_0(); instanceOf(b, GT923) && b.addAsyncDataChannelListener_1(this); } a = this.streamWriter.writeNextEvent_1(a); null != a ? GT1650.prototype.assertFailed_1("err: '" + a + "'") : this.recordedEventsCount++; } }, stop_0: function () { this.stopping || (instanceOf(this.streamWriter.getDataSink_0(), GT923) ? (this.record_1(this.eventCreator.createEvent_3(GT533.prototype.META_ENDOFDATA, null, -1)), GT1006.prototype.LOG.log_1("ARMS_STOP - recorder has to wait for its asynchronous sink!")) : this.stopInternal_0()); }, stopInternal_0: function () { this.stopping || ((this.stopping = !0), GT1006.prototype.LOG.log_1("ARMS_STOP- Recorder closes connection (if not closed earlier)!"), this.streamWriter.close_0(), GT1006.prototype.LOG.log_1("ARMS_STOP- Recorder Finished (connection closed)"), this.eventDispatcher.raiseEvent_1(new GT536())); }, start_0: function () { this.started = !0; }, setRecordTicks_1: function (a) { this.recordTimeDependentEvents = a; }, isRecording_0: function () { return this.recordTimeDependentEvents; }, handleMouseEvent_1: function (a) { var b = this.eventCreator.createEvent_3(GT533.prototype.MOUSE_CLICKED, a, 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-handleMouseEvent(" + b + ")"); null == b && GT1650.prototype.assertFailed_1("Can't get RecordingEventMouse from " + a); this.record_1(b); return !1; }, handleMouseWheelEvent_1: function (a) { a = this.eventCreator.createEvent_3(GT533.prototype.MOUSE_WHEEL, a, 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-handleMouseWheelEvent(" + a + ")"); this.record_1(a); return !1; }, handleTouchEvent_1: function (a) { var b = this.eventCreator.createEvent_3(GT533.prototype.TOUCH_START, a, 0); null == b && GT1650.prototype.assertFailed_1("Can't get RecordingEventTouch from " + a); this.record_1(b); return !1; }, recordKeyPressed_2: function (a, b) { var d = this.eventCreator.createEvent_3(GT533.prototype.KEY_PRESSED, [a, b], 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-recordKeyPressed(" + d + ")"); this.record_1(d); }, recordScreenShot_1: function (a) { this.recordTimeDependentEvents ? ((a = this.eventCreator.createEvent_3(GT533.prototype.SCREEN_SHOT, a, 0)), GT1006.prototype.LOG.log_1("Recorder-Screenshot(" + a + ")"), this.record_1(a)) : GT1006.prototype.LOG.log_1("Screenshot not recorded - recordTicks not yet set!"); }, packets_1: function (a) { a = this.eventCreator.createEvent_3(GT533.prototype.SERVER_PACKETS, a, 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-packets(" + a + ")"); this.record_1(a); }, recordTick_1: function (a) { this.lastEventGivenToWriter ? GT1006.prototype.LOG.info && GT1006.prototype.LOG.log_1("Tick not recorded! (" + this.recordTimeDependentEvents + " && " + !this.lastEventGivenToWriter + ")") : ((a = this.eventCreator.createEvent_3(GT533.prototype.GAME_TICKS, null, a)), this.record_1(a)); }, stateChanged_1: function (a) { a.getStatus_0() == GT484.prototype.LOST && this.stopInternal_0(); }, isStopping_0: function () { return this.stopping; }, notifyAction_1: function (a) { a = this.eventCreator.createEvent_3(GT533.prototype.WRAPPER_V2_EVENT, a, 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-WrapperV2(" + a + ")"); this.record_1(a); }, notifyProperty_2: function (a, b) { null == b && (b = ""); var d = this.eventCreator.createEvent_3(GT533.prototype.WRAPPER_EVENT, a + "=" + b, 0); GT1006.prototype.DEBUG_RECORDED_EVENTS && GT1006.prototype.LOG.log_1("Recorder-Wrapper(" + d + ")"); this.record_1(d); }, }, "GT1006", [GT1011, GT756, GT1012, GT1529, GT924, GT364, GT758, GT864] ); GT1006.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); GT1006.prototype.DEBUG_RECORDED_EVENTS = !1; var GT793 = Class.extend( { initialConstructor_0: function () { this.lastWasEmptyQueue = !1; this.currentEvent = this.listener = this.streamReader = null; this.currentTime = 0; this.startParameters = null; this.streamStartVersionOfRecording = 0; this.stopInvoked = this.event_parameters_read = this.event_metaVersion_read = this.isEndOfDataEventSent = !1; Class.prototype.initialConstructor_0.call(this); }, getStreamStartVersion_0: function () { return 2; }, initialConstructor_2: function (a, b) { this.lastWasEmptyQueue = !1; this.currentEvent = this.listener = this.streamReader = null; this.currentTime = 0; this.startParameters = null; this.streamStartVersionOfRecording = 0; this.stopInvoked = this.event_parameters_read = this.event_metaVersion_read = this.isEndOfDataEventSent = !1; this.streamReader = a; this.listener = b; this.event_parameters_read = this.event_metaVersion_read = this.isEndOfDataEventSent = this.lastWasEmptyQueue = !1; this.streamStartVersionOfRecording = -1; this.stopInvoked = !1; this.currentTime = -1; }, tryToReadMetaData_0: function () { if (!this.isDataSourceActive_0()) GT1650.prototype.assertFailed_1("Can't read meta data as long as the players data source is not active!"); else if (null != this.streamReader.getDataSource_0()) { var a = GT223.prototype.isAsynchronousChannel_1(this.streamReader.getDataSource_0()); a && GT1650.prototype.assertExp_2(instanceOf(this.streamReader, GT442), "The only reader I implemented thats capable of handling async dataSources is the RecordTCPReaderImpl? Whats " + this.streamReader); if (0 > this.streamStartVersionOfRecording && (!a || this.streamReader.isReceivedStreamStratVersionWritten_0())) { this.streamStartVersionOfRecording = this.streamReader.getReceivedStreamStartVersion_0(); if (this.streamStartVersionOfRecording > this.getStreamStartVersion_0()) { GT793.prototype.LOG.log_1("Can't play recording because of unknown stream start version! (recording: v" + this.streamStartVersionOfRecording + ", available: v" + this.getStreamStartVersion_0() + ")"); return; } GT793.prototype.LOG.info && GT793.prototype.LOG.log_1("Stream start version of that recording: v" + this.streamStartVersionOfRecording + ", available: v" + this.getStreamStartVersion_0()); } if (2 == this.streamStartVersionOfRecording && !this.event_metaVersion_read) { a = this.readNextEvent_0(); if (instanceOf(a, GT283)) return; if (instanceOf(a, GT352)) { var b = a; this.streamReader.getEventCreator_0().isEventVersionsArrayEqual_1(b.getPossibleEventVersions_0()) ? GT793.prototype.LOG.trace && GT793.prototype.LOG.log_1("Client version is supported (" + a + ")") : GT793.prototype.LOG.log_1( "WARNING At least on recording event was recorded with another version than this player has!If problems occure it's probably because of that.\n Recording: " + b + "\n YourVers.: " + this.streamReader.getEventCreator_0().getPossibleEventVersions_0() ); this.event_metaVersion_read = !0; } else { GT793.prototype.LOG.log_1("With start version 2 the first event should be a RecordingMetaEvent_Version. Is " + a); return; } } this.event_parameters_read || ((a = this.readNextEvent_0()), instanceOf(a, GT283) || (instanceOf(a, GT434) ? ((this.startParameters = a.getParameters_0()), (this.event_parameters_read = !0)) : GT793.prototype.LOG.log_1("Version " + this.streamStartVersionOfRecording + ". The first/next event should be a RecordingEventParameters. Is " + a))); } }, readNextEvent_0: function () { if (null == this.streamReader) return GT793.prototype.LOG.log_1("Can't read from reader (it's NULL)"), null; if (this.isEndOfDataEventSent) return null; var a = this.streamReader.readNextEvent_0(); if (null == a) { GT793.prototype.LOG.verbose && GT793.prototype.LOG.log_1("No next event returned by the reader!"); if (this.isEndOfDataEventSent) return null; this.isEndOfDataEventSent = !0; a = this.streamReader.getEventCreator_0().createEvent_3(GT533.prototype.META_ENDOFDATA, null, -1); } else instanceOf(a, GT298) && (this.isEndOfDataEventSent = !0), GT793.prototype.LOG.verbose && (instanceOf(a, GT283) ? 0 == this.lastWasEmptyQueue && (GT793.prototype.LOG.log_1("Queue is empty"), (this.lastWasEmptyQueue = !0)) : this.lastWasEmptyQueue && ((this.lastWasEmptyQueue = !1), GT793.prototype.LOG.log_1("First event after empty queue: "))); GT793.prototype.LOG.trace && !instanceOf(a, GT283) && GT793.prototype.LOG.log_1("Reading: " + a); return a; }, print_0: function () { GT223.prototype.isAsynchronousChannel_1(this.streamReader.getDataSource_0()) && GT1650.prototype.assertFailed_1("print with DataSourceAsync..."); for (var a = this.readNextEvent_0(); null != a; ) java_lang_System.prototype.out.println_1(a.toString()), (a = this.readNextEvent_0()); this.streamReader.close_0(); }, start_0: function () { if (null == this.streamReader) GT793.prototype.LOG.log_1( "ERROR: start was called on the RecordPlayer, but the reader is null! Probably a problem with your conection to the ARMS server? You will find the problem causing your connection loss either in your client logs or the arms server logs!" ); else if (null == this.streamReader.getDataSource_0()) GT793.prototype.LOG.log_1( "ERROR: start was called on the RecordPlayer, but the readers data source is null! Probably a problem with your connection to the ARMS server? You will find the problem causing your connection loss either in your client logs or the arms server logs!" ); else if (this.isDataSourceActive_0()) { var a = GT223.prototype.isAsynchronousChannel_1(this.streamReader.getDataSource_0()); GT793.prototype.LOG.info && GT793.prototype.LOG.log_1("RecordPlayer starts reading from " + (a ? "async " : "") + "data source"); this.tryToReadMetaData_0(); this.currentTime = 0; } else this.streamReader.getDataSource_0().addAsyncDataChannelListener_1(this), GT793.prototype.LOG.i_1("RecordPlayer waits for async data source..."); }, isDataSourceActive_0: function () { return null == this.streamReader || null == this.streamReader.getDataSource_0() ? !1 : GT223.prototype.isAsynchronousChannel_1(this.streamReader.getDataSource_0()) ? this.streamReader.getDataSource_0().getStatus_0() != GT484.prototype.NOT_INIT : !0; }, tick_1: function (a) { a[0] = !1; if (-1 == this.currentTime) return -1; if (this.isEndOfDataEventSent) return -2; if (this.stopInvoked) return -3; if (!this.event_parameters_read && (this.tryToReadMetaData_0(), !this.event_parameters_read)) return -1; this.currentEvent = this.readNextEvent_0(); for (var b = !1; null != this.currentEvent && !instanceOf(this.currentEvent, GT534); ) { if (instanceOf(this.currentEvent, GT283)) return this.currentTime; null != this.listener && (GT793.prototype.DEBUG_PLAYED_EVENTS && GT793.prototype.LOG.log_1("Player-notify(" + this.streamReader.getNumberOfEventsRead_0() + ", " + this.currentEvent + ")"), this.listener.notifyEvent_1(this.currentEvent)); if (instanceOf(this.currentEvent, GT298)) { b = !0; this.currentEvent = null; break; } this.currentEvent = this.readNextEvent_0(); } if (null == this.currentEvent) return ( null != this.listener && (GT793.prototype.DEBUG_PLAYED_EVENTS && GT793.prototype.LOG.log_1("Player-notifyFinished(" + this.streamReader.getNumberOfEventsRead_0() + ")"), this.listener.notifyFinished_2(b, this.streamReader.getNumberOfEventsRead_0())), this.streamReader.close_0(), this.currentTime ); GT793.prototype.DEBUG_PLAYED_EVENTS && GT793.prototype.LOG.log_1("Player-notifyTick(" + this.streamReader.getNumberOfEventsRead_0() + ", " + this.currentEvent + ")"); b = this.currentEvent.getTime_0(); this.currentTime += b; a[0] = !0; return this.currentTime; }, getParameters_0: function () { return this.startParameters; }, stateChanged_1: function (a) { a != this.streamReader && GT1650.prototype.assertFailed_1("The dataSource listened is not the streamReader?!? " + this.streamReader + " != " + a); a.getStatus_0() == GT484.prototype.ACTIVE && this.start_0(); }, invokeStop_0: function () { this.stopInvoked = !0; null != this.streamReader && this.streamReader.close_0(); }, }, "GT793", [GT966, GT364] ); GT793.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); GT793.prototype.DEBUG_PLAYED_EVENTS = !1; var GT855 = GT1400.extend( { initialConstructor_0: function () { this.recorder = this.player = null; this.ticksPlayed = this.ticksRecorded = this.startTime = this.currentRecorderTime = this.currentPlayerTime = 0; this.playerDidATick = null; GT1400.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.recorder = this.player = null; this.ticksPlayed = this.ticksRecorded = this.startTime = this.currentRecorderTime = this.currentPlayerTime = 0; this.playerDidATick = null; GT1400.prototype.initialConstructor_0.call(this); this.recorder = a; this.player = b; this.currentRecorderTime = this.currentPlayerTime = this.ticksPlayed = this.ticksRecorded = 0; this.startTime = -1; this.playerDidATick = [].createArray(1).init(0); }, preTickActions_1: function (a) { var b = 0; if (null != this.player) { var d = this.player.tick_1(this.playerDidATick); 0 <= d && ((b = d - this.currentPlayerTime), (this.currentPlayerTime = d), -1 == this.startTime && null == this.recorder && ((this.startTime = a), GT855.prototype.LOG.info && GT855.prototype.LOG.log_1("[Timermodifier] (1) Start time set to " + this.startTime))); this.playerDidATick[0] && (this.ticksPlayed++, GT855.prototype.LOG.trace && GT855.prototype.LOG.log_1("Tick " + this.ticksPlayed + " (" + b + ") " + d)); } if (null != this.recorder && (null == this.player || this.playerDidATick[0])) { var e = !1; -1 == this.startTime && this.recorder.isRecording_0() && ((e = !0), (this.startTime = a), GT855.prototype.LOG.info && GT855.prototype.LOG.log_1("[Timermodifier] (2) Start time set to " + this.startTime)); d = this.timeForCurrentTick_1(a); if (e || d != this.currentRecorderTime) (e = d - this.currentRecorderTime), this.recorder.recordTick_1(e), 0 == this.ticksRecorded && GT855.prototype.LOG.info && GT855.prototype.LOG.log_1("[Timermodifier] (3) First tick recorded at " + a + " => " + d + ", former recTime = " + this.currentRecorderTime), this.ticksRecorded++, null == this.player && GT855.prototype.LOG.trace && GT855.prototype.LOG.log_1("Recorded Tick " + this.ticksRecorded + " (" + e + ") " + d), (this.currentRecorderTime = d), null != this.player ? (e != b && GT1650.prototype.assertFailed_1("If both player and recorder are set player and recorder FRAME times must be equal! " + b + "!=" + e), this.currentPlayerTime != this.currentRecorderTime ? GT1650.prototype.assertFailed_1("If both player and recorder are set player and recorder time must be equal! " + this.currentPlayerTime + "!=" + this.currentRecorderTime) : GT855.prototype.LOG.trace && GT855.prototype.LOG.log_1("rec/playertime = " + this.currentRecorderTime)) : GT855.prototype.LOG.trace && GT855.prototype.LOG.log_1("rectime(" + e + ") = " + this.currentRecorderTime); } null != this.recorder && null != this.player && this.currentPlayerTime != this.currentRecorderTime && GT1650.prototype.assertFailed_1("currentPlayerTime != currentRecorderTime (" + this.currentPlayerTime + " != " + this.currentRecorderTime + ")"); }, timeForCurrentTick_1: function (a) { return -1 == this.startTime ? 0 : null == this.player ? a - this.startTime : this.currentPlayerTime; }, }, "GT855", [] ); GT855.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT1577 = Class.extend( { initialConstructor_0: function () { this.components = null; this.enabled = !1; this.currentLocationMouse = this.locationMousePressed = this.draggedComponent = null; this.allowDrag = !1; this.timer = this.dragStartCallback = null; this.overruleDisabled = this.movingComponentsProgrammatically = !1; this.draggedDistance = 0; this.locationsUnderThreshold = null; this.dragThresholdDistance = this.dragThresholdTime = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1577.prototype.initialConstructor_3.call(this, a, GT1577.prototype.DRAG_START_TIME_THRESHOLD, GT1577.prototype.DRAG_START_MOVE_THRESHOLD); }, initialConstructor_3: function (a, b, d) { this.components = null; this.enabled = !1; this.currentLocationMouse = this.locationMousePressed = this.draggedComponent = null; this.allowDrag = !1; this.timer = this.dragStartCallback = null; this.overruleDisabled = this.movingComponentsProgrammatically = !1; this.draggedDistance = 0; this.locationsUnderThreshold = null; this.dragThresholdDistance = this.dragThresholdTime = 0; Class.prototype.initialConstructor_0.call(this); this.components = new java_util_JavaScriptVector(); this.enabled = !0; this.timer = a; this.dragThresholdTime = b; this.dragThresholdDistance = d; this.dragStartCallback = new GT831(this); this.locationsUnderThreshold = new java_util_JavaScriptVector(); this.movingComponentsProgrammatically = !1; }, addComponent_1: function (a) { this.components.add_1(a); }, removeComponent_1: function (a) { return this.components.removeElement_1(a); }, handleDragStart_1: function (a) { this.draggedDistance = 0; this.enabled || this.overruleDisabled ? (GT1577.prototype.Log.t_1("CoMo: Handling drag start at (" + a.x + ", " + a.y + ") "), this.locationsUnderThreshold.clear_0(), this.locationsUnderThreshold.add_1(a), (this.allowDrag = !1), (this.draggedComponent = this.findComponentByLocation_1(a)), null == this.draggedComponent ? GT1577.prototype.Log.v_1("CoMo: component not found at location (" + a.x + ", " + a.y + ")") : ((this.currentLocationMouse = this.locationMousePressed = a), this.movingComponentsProgrammatically ? (GT1577.prototype.Log.t_1("CoMo: automatic movement - immediate timeout"), this.handleDragTimeOver_0()) : this.timer.triggerCallbackAfter_2(this.dragStartCallback, this.dragThresholdTime))) : GT1577.prototype.Log.v_1("CoMo: component mover is not enabled, drag start will be omitted."); }, handleDragMove_1: function (a) { GT1577.prototype.Log.t_1("CoMo: Handling drag move (" + a.x + ", " + a.y + ") "); this.draggedDistance += this.getEuclidianDistance_2(this.currentLocationMouse, a); this.currentLocationMouse = a; null == this.draggedComponent || this.allowDrag ? GT1577.prototype.Log.t_1("CoMo: WARNING: dragged component is null or no dragging is in progress!") : this.draggedDistance > this.dragThresholdDistance ? (GT1577.prototype.Log.t_1("CoMo: dragged distance above threshold"), this.timer.removeCallback_2(this.dragStartCallback, !1), this.handleDragTimeOver_0()) : this.locationsUnderThreshold.add_1(a); null != a && null != this.locationMousePressed && null != this.draggedComponent && this.allowDrag ? this.draggedComponent.moveToLocation_2(a.x, a.y) : GT1577.prototype.Log.t_1("CoMo: drag move aborted (allowDrag=" + this.allowDrag + ")"); }, getEuclidianDistance_2: function (a, b) { return null != a && null != b ? Integer.truncate_1(Math.round_1(Math.abs_1(Math.sqrt_1(Math.pow_2(a.x - b.x, 2) + Math.pow_2(a.y - b.y, 2))))) : -1; }, handleDragEnd_1: function (a) { var b = !1; this.timer.removeCallback_2(this.dragStartCallback, !1); if (null == this.draggedComponent) return GT1577.prototype.Log.v_1("CoMo: Handling drag end but there is no dragged component. Skipping. "), !1; GT1577.prototype.Log.t_1("CoMo: Handling drag end (" + a.x + ", " + a.y + ") "); this.allowDrag && (this.draggedComponent.notifyDragEnd_0(), (a = this.draggedComponent.getGuiLocation_0()), GT1577.prototype.Log.t_1("CoMo: triggering moveFinishedAtLocation (" + a.x + ", " + a.y + ") "), this.draggedComponent.moveFinishedAtLocation_2(Integer.truncate_1(a.x), Integer.truncate_1(a.y))); this.draggedDistance > this.dragThresholdDistance && (b = !0); this.allowDrag = !1; this.draggedComponent = null; GT1577.prototype.Log.t_1("CoMo: Handling drag end consumed the event: " + b); return b; }, moveTo_3: function (a, b, d) { this.movingComponentsProgrammatically = !0; this.overruleDisabled = d; this.handleDragStart_1(a); this.handleDragMove_1(b); this.handleDragEnd_1(b); this.overruleDisabled = this.movingComponentsProgrammatically = !1; }, disable_0: function () { this.enabled = !1; }, enable_0: function () { this.enabled = !0; }, handleDragTimeOver_0: function () { if (null != this.draggedComponent && (this.draggedDistance > this.dragThresholdDistance || this.draggedComponent.equals_1(this.findComponentByLocation_1(this.currentLocationMouse)))) { GT1577.prototype.Log.t_1("CoMo: in handleDragTimeOver - allowDrag=true"); this.allowDrag = !0; this.components.removeElement_1(this.draggedComponent); this.components.add_2(0, this.draggedComponent); this.draggedComponent.notifyDragStart_0(); for (var a = 0; a < this.locationsUnderThreshold.size_0(); a++) { var b = this.locationsUnderThreshold.get_1(a); this.draggedComponent.moveToLocation_2(b.x, b.y); } this.draggedComponent.moveToLocation_2(this.currentLocationMouse.x, this.currentLocationMouse.y); } }, findComponentByLocation_1: function (a) { for (var b = null, d = this.components.clone_0(), e = 0; e < d.size_0(); e++) { var f = d.get_1(e); if (f.getDragArea_0().isClickablePosition_2(a.x, a.y) && f.isPointVisible_1(a)) { b = f; break; } } return b; }, isDisabled_0: function () { return !this.enabled; }, actionCompleted_0: function () { GT1577.prototype.Log.t_1("CoMo: drag start timeout"); this.handleDragTimeOver_0(); }, }, "GT1577", [GT1632, GT454] ); GT1577.prototype.LOGGER_KEY = "como"; GT1577.prototype.Log = GT1650.prototype.getLogFlags_1(GT1577.prototype.LOGGER_KEY); GT1577.prototype.DRAG_START_TIME_THRESHOLD = 400; GT1577.prototype.DRAG_START_MOVE_THRESHOLD = 80; var java_net_URL = Class.extend( { initialConstructor_4: function (a, b, d, e) { this.initialConstructor_5(a, b, d, e, null); }, initialConstructor_5: function (a, b, d, e, f) { this.protocol = a = a.toLowerCase_0(); if (null != b) { 0 <= b.indexOf_1(":") && !b.startsWith_1("[") && (b = "[" + b + "]"); this.host = b; if (-1 > d) throw new java_net_MalformedURLException("Invalid port number :" + d); this.port = d; this.authority = -1 == d ? b : b + ":" + d; } this.query = this.path = e; this.file = null != this.query ? this.path + "?" + this.query : this.path; this.ref = e; }, initialConstructor_1: function (a) { this.initialConstructor_2(null, a); }, initialConstructor_2: function (a, b) { this.initialConstructor_3(a, b, null); }, initialConstructor_3: function (a, b, d) { var e = 0, f = null, g = !1; null != d && ((d = java_lang_System.prototype.getSecurityManager_0()), null != d && this.checkSpecifyHandler_1(d)); for (limit = b.length_0(); 0 < limit && " " >= b.charAt_1(limit - 1); ) limit--; for (; e < limit && " " >= b.charAt_1(e); ) e++; b.regionMatches_5(!0, e, "url:", 0, 4) && (e += 4); e < b.length_0() && "#" == b.charAt_1(e) && (g = !0); for (i = e; !g && i < limit && "/" != (c = b.charAt_1(i)); i++) if (58 == c) { e = b.substring_2(e, i).toLowerCase_0(); this.isValidProtocol_1(e) && (f = e); break; } this.protocol = f; null == a || (null != f && !f.equalsIgnoreCase_1(a.protocol)) || (null != a.path && a.path.startsWith_1("/") && (f = null), null == f && ((this.protocol = a.protocol), (this.authority = a.authority), (this.userInfo = a.userInfo), (this.host = a.host), (this.port = a.port), (this.file = a.file), (this.path = a.path))); if (null == this.protocol) throw new java_net_MalformedURLException("no protocol: " + b); this.path = b; }, isValidProtocol_1: function (a) { return 1 > a.length_0() ? !1 : !0; }, checkSpecifyHandler_1: function (a) { a.checkPermission_1(sun_security_util_SecurityConstants.prototype.SPECIFY_HANDLER_PERMISSION); }, set_5: function (a, b, d, e, f) { this; this.protocol = a; this.host = b; this.authority = -1 == d ? b : b + ":" + d; this.port = d; this.file = e; this.ref = f; this.hashCode = -1; this.hostAddress = null; a = e.lastIndexOf_1("?"); -1 != a ? ((this.query = e.substring_1(a + 1)), (this.path = e.substring_2(0, a))) : (this.path = e); }, set_8: function (a, b, d, e, f, g, k, m) { this; this.protocol = a; this.host = b; this.port = d; this.file = null == k ? g : g + "?" + k; this.userInfo = f; this.path = g; this.ref = m; this.hashCode = -1; this.hostAddress = null; this.query = k; this.authority = e; }, getQuery_0: function () { return this.query; }, getPath_0: function () { return this.path; }, getUserInfo_0: function () { return this.userInfo; }, getAuthority_0: function () { return this.authority; }, getPort_0: function () { return this.port; }, getDefaultPort_0: function () { return this.handler.getDefaultPort_0(); }, getProtocol_0: function () { return this.protocol; }, getHost_0: function () { return this.host; }, getFile_0: function () { return this.file; }, getRef_0: function () { return this.ref; }, equals_1: function (a) { return instanceOf(a, java_net_URL) ? this.handler.equals_2(this, a) : !1; }, hashCode_0: function () { return -1 != this.hashCode ? this.hashCode : (this.hashCode = this.handler.hashCode_1(this)); }, sameFile_1: function (a) { return this.handler.sameFile_2(this, a); }, toString: function () { return this.toExternalForm_0(); }, toExternalForm_0: function () { return this.file; }, toURI_0: function () { return this.file; }, openConnection_0: function () { return this.handler.openConnection_1(this); }, openConnection_1: function (a) { if (null == a) throw new IllegalArgumentException("proxy can not be null"); var b = java_lang_System.prototype.getSecurityManager_0(); if (a.type_0() != java_lang_reflect_Proxy.prototype.Type.DIRECT && null != b) { var d = a.address_0(); d.isUnresolved_0() ? b.checkConnect_2(d.getHostName_0(), d.getPort_0()) : b.checkConnect_2(d.getAddress_0().getHostAddress_0(), d.getPort_0()); } return this.handler.openConnection_2(this, a); }, openStream_0: function () { return this.openConnection_0().getInputStream_0(); }, getContent_0: function () { return this.openConnection_0().getContent_0(); }, getContent_1: function (a) { return this.openConnection_0().getContent_1(a); }, writeObject_1: function (a) { a.defaultWriteObject_0(); }, readObject_1: function (a) { a.defaultReadObject_0(); if (null == (this.handler = this.getURLStreamHandler_1(this.protocol))) throw new java_io_IOException("unknown protocol: " + this.protocol); null == this.authority && ((null != this.host && 0 < this.host.length_0()) || -1 != this.port) ? (null == this.host && (this.host = ""), (this.authority = -1 == this.port ? this.host : this.host + ":" + this.port), (a = this.host.lastIndexOf_1("@")), -1 != a && ((this.userInfo = this.host.substring_2(0, a)), (this.host = this.host.substring_1(a + 1)))) : null != this.authority && ((a = this.authority.indexOf_1("@")), -1 != a && (this.userInfo = this.authority.substring_2(0, a))); this.query = this.path = null; null != this.file && ((a = this.file.lastIndexOf_1("?")), -1 != a ? ((this.query = this.file.substring_1(a + 1)), (this.path = this.file.substring_2(0, a))) : (this.path = this.file)); }, }, "java_net_URL", [] ); java_net_URL.prototype.protocolPathProp = "java.protocol.handler.pkgs"; java_net_URL.prototype.factory; java_net_URL.prototype.setURLStreamHandlerFactory_1 = function (a) { java_net_URL.prototype.streamHandlerLock; if (null != java_net_URL.prototype.factory) throw Error("factory already defined"); var b = java_lang_System.prototype.getSecurityManager_0(); null != b && b.checkSetFactory_0(); handlers.clear_0(); java_net_URL.prototype.factory = a; }; java_net_URL.prototype.handlers = new java_util_JavaScriptHashtable(); java_net_URL.prototype.streamHandlerLock = {}; java_net_URL.prototype.getURLStreamHandler_1 = function (a) { var b = handlers.get_1(a); if (null == b) { var d = !1; null != java_net_URL.prototype.factory && ((b = factory.createURLStreamHandler_1(a)), (d = !0)); if (null == b) { var e = null, e = this.java.security.AccessController.doPrivileged_1(new sun.security.action.GetPropertyAction(java_net_URL.prototype.protocolPathProp, "")); "" != e && (e += "|"); for (e = new java_util_StringTokenizer(e + "sun.net.www.protocol", "|"); null == b && e.hasMoreTokens_0(); ) { var f = e.nextToken_0().trim_0() + "." + a + ".Handler", g = null, g = this.Class.forName_1(f); null != g && (b = g.newInstance_0()); } } java_net_URL.prototype.streamHandlerLock; e = null; e = handlers.get_1(a); if (null != e) return e; d || null == java_net_URL.prototype.factory || (e = factory.createURLStreamHandler_1(a)); null != e && (b = e); null != b && handlers.put_2(a, b); } return b; }; var GT445 = GT1658.extend( { initialConstructor_0: function () { GT1658.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1658.prototype.initialConstructor_4.call(this, a, b, d, e); }, initClientStates_0: function () { GT1658.prototype.initClientStates_0.call(this); this.getClientStateMachine_0().addClientState_1(new GT19(this)); }, destroy_0: function () { GT21.prototype.setAnimationDone_0(); GT1658.prototype.destroy_0.call(this); }, }, "GT445", [] ), GT331 = GT1618.extend( { initialConstructor_0: function () { this.normalSymbols = this.symbols = null; this.animateExpandingSymbols = !1; GT1618.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.normalSymbols = this.symbols = null; this.animateExpandingSymbols = !1; GT1618.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, m); this.symbols = [90, 89, 88, 73, 72, 71, 70, 69, 68]; this.normalSymbols = [80, 77, 83, 67, 65, 75, 81, 74, 49]; this.animateExpandingSymbols = !0; }, initGuiStates_0: function () { GT1618.prototype.initGuiStates_0.call(this); this.getGuiStateMachine_0().addGuiState_1(new GT7(this)); this.getGuiStateMachine_0().addGuiState_1(new GT29(this, this.symbols)); this.getGuiStateMachine_0().addGuiState_1(new GT23(this, this.symbols)); this.getGuiStateMachine_0().addGuiState_1(new GT21(this)); this.getGuiStateMachine_0().addGuiState_1(new GT2(this)); this.getGuiStateMachine_0().addGuiState_1(new GT24(this)); this.getGuiStateMachine_0().addGuiState_1(new GT25(this)); this.getGuiStateMachine_0().addGuiState_1( new GT4(this, this.symbols, this.getSkinManager_0().getResourceManager_0().getSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_thud.mp3"), this.getSkinManager_0().getSoundPlayer_0(), 500) ); }, updateStoppedReels_0: function () { this.updateStoppedReels_1(!1); }, updateStoppedReels_1: function (a) { var b = GT4.prototype.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); null == b ? ((this.animateExpandingSymbols = !1), GT4.prototype.resetColorOfStoppedReels_1(this), GT1618.prototype.updateStoppedReels_0.call(this)) : (GT4.prototype.updateStoppedReels_4(b.symbol, this, this.animateExpandingSymbols, a), (this.animateExpandingSymbols = !0)); }, resetEpandingSymbolsAnimation_0: function () { this.animateExpandingSymbols = !1; }, startWinSwitcherWithWins_2: function (a, b) { var d = GT4.prototype.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); if (0 != a.length && 66 == a[a.length - 1].symbol && !b && 2 < a[a.length - 1].num) { var e = a[a.length - 1]; a[a.length - 1] = new GT1512(66, e.num, 0, !0, e.freespins, e.jackpot, e.payCash, e.payGames); } null != d && b ? GT4.prototype.startWinSwitcherWithExpandedWins_3(d, this, b) : GT1618.prototype.startWinSwitcherWithWins_2.call(this, a, b); }, determineFinalWinSound_2: function (a, b) { GT331.prototype.LOG.verbose && GT331.prototype.LOG.log_1("determineFinalWinSound(SingleWins[" + a.length + "], " + b + ")"); if (!this.allWinsSpecialSymbol_1(a) || b < a.length - 1) return this.allWinsSpecialSymbol_1(a) && GT331.prototype.LOG.v_1("NO -> winindex!"), null; GT331.prototype.LOG.v_1("returning final special sym sound!"); return this.getWinSounds_0().getSound_2(this.getSpecialSymbol_0(), a[0].num); }, determineWinSound_2: function (a, b) { GT331.prototype.LOG.verbose && GT331.prototype.LOG.log_1("determineWinSound(SingleWins[" + a.length + "], " + b + ")"); if (!this.allWinsSpecialSymbol_1(a)) return GT1618.prototype.determineWinSound_2.call(this, a, b); if (b < a.length - 1) return this.getSkinManager_0().getResourceManager_0().getSound_1("/com/greentube/slot/client/bookofradeluxe/res/sound/brd_fx_chime.mp3"); if (b == a.length - 1) { for (var d = a[b].symbol, e = d, f = 0; f < this.normalSymbols.length; ++f) if (d == this.symbols[f]) { e = this.normalSymbols[f]; break; } return this.getWinSounds_0().getSound_2(e, a[b].num); } return null; }, determineCustomWinTime_2: function (a, b) { return this.allWinsSpecialSymbol_1(a) ? (b < a.length - 1 ? 200 : -1) : GT1618.prototype.determineCustomWinTime_2.call(this, a, b); }, createWinVisual_3: function (a, b, d) { if (66 == a[b].symbol && d && 2 != a[b].num) { d = a[b]; a[b] = new GT1512(66, 0, d.start, !1, d.freespins, d.jackpot, d.payCash, d.payGames); d = this.getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); var e = this.getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT), f = this.getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); a = this.determineWinSound_2(a, b); return new GT17(this.getTimer_0(), d, a, this.getSkinManager_0().getSoundPlayer_0(), this.getCurrencyFormatter_0(), e, f); } return GT1618.prototype.createWinVisual_3.call(this, a, b, d); }, allWinsSpecialSymbol_1: function (a) { for (var b = 0; b < a.length; b++) if (a[b].symbol != this.getSpecialSymbol_0()) return !1; return !0; }, getSpecialSymbol_0: function () { switch (this.getReelsetNumberOfSymbolToStop_0() - 2) { case 0: return 90; case 1: return 89; case 2: return 88; case 3: return 73; case 4: return 72; case 5: return 71; case 6: return 70; case 7: return 69; case 8: return 68; case 10: return 90; case 11: return 89; case 12: return 88; case 13: return 73; case 14: return 72; case 15: return 71; case 16: return 70; case 17: return 69; case 18: return 68; case 20: return 90; case 21: return 89; case 22: return 88; case 23: return 73; case 24: return 72; case 25: return 71; case 26: return 70; case 27: return 69; case 28: return 68; } return 117; }, getReelsetNumberOfSymbolToStop_0: function () { return this.getSlotState_0().getCurrentReelSetIndex_0(); }, }, "GT331", [] ); GT331.prototype.LOG = GT1650.prototype.getLogFlags_1("bookofradeluxe.slotgui"); GT331.prototype.FREEGAMES_BOOK_CONTAINER = GT1560.prototype.generateID_0(); GT331.prototype.FREEGAMES_BOOK_BG_IMAGE = GT1560.prototype.generateID_0(); var GT23 = GT1254.extend( { initialConstructor_0: function () { this.symbols = this.finishCallback = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.symbols = this.finishCallback = null; GT1254.prototype.initialConstructor_1.call(this, a); this.symbols = [].createArray(b.length).init(0); for (var d = 0; d < b.length; d++) this.symbols[d] = b[d]; }, getId_0: function () { return GT573.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesMore"; }, enter_1: function (a) { this.getGui_0().getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); 0 < this.getGui_0().getSlotState_0().getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().startWinSwitcher_1(!0); a = this.getGui_0().getSkinManager_0().getText_1("${console_bonusgametext}"); a = GT1677.prototype.replaceInString_3(a, "#0", "" + this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0()); a = GT1677.prototype.replaceInString_3(a, "#1", "" + this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0()); this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0()); this.getGui_0().getSlotConsole_0().setWin_2(0, !0); this.getGui_0().getSlotConsole_0().setStatusText_1(a); this.getGui_0().getSlotConsole_0().setLastWin_1(this.getSlotState_0().getLastWin_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); a.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); instanceOf(a, GT1158) && a.reflow_0(); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); GT1650.prototype.assertExp_2(instanceOf(this.getGui_0().getSkin_0().freeGameMoreScreen_0(), GT383), "freegamesstartendscreen is no freegamesstartendscreen"); a = this.getGui_0().getSkin_0().freeGameMoreScreen_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); a.setFreeGamesWon_1(this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsWonNow_0()); this.refreshSymbols_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMEMODE, GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(a); null != this.finishCallback && this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); this.finishCallback = new GT1(this); a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesRetriggerSound_0() ? (a.reduceBackgroundSoundVolume_1(!0), a.startFreeGamesRetriggerSound_1(this.finishCallback)) : this.isSupposedToProceedWithAutoplay_0() && 0 < a.getFreeGamesBannerPresentationDuration_0() ? this.freeGamesRetriggerSoundSkipped_0() : this.freeGamesRetriggerSoundFinished_0(); }, refreshSymbols_0: function () { var a = this.getSlotState_0().getWins_0(), a = GT4.prototype.containsSplittedScatter_2(a, this.symbols); if (null != this.symbols && -1 < a && null != GT4.prototype.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[a])) { var b, d, e = 0, f = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); f.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); d = this.getGui_0().getSlotState_0().getReelPositions_0(); var g = this.getGui_0().getSlotState_0().getCurrentReelSet_0(); b = GT4.prototype.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[a]); f.setSymbols_3(d, g, new GT1613()); d = GT4.prototype.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); g = GT1613.prototype.createEndPositions_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getGui_0().getLayout_0().rows); d = d.createWinPositions_2(g, this.getSlotState_0().getDefinition_0().getWinLines_0()); for (g = 0; g < d.getCount_0(); g++) f.setSymbol_3(d.getSymbolColumn_1(g), d.getSymbolRow_1(g), this.symbols[a]); for (; e < b.getCount_0(); ) { f = b.getSymbolColumn_1(e); for (g = b.getSymbolRow_1(e); d.isWinningPosition_2(f, g) && e < b.getCount_0() - 1; ) e++, (f = b.getSymbolColumn_1(e)), (g = b.getSymbolRow_1(e)); if (e >= b.getCount_0() || d.isWinningPosition_2(f, g)) break; this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbol_3(f, g, this.symbols[a]); e++; } } }, isSupposedToProceedWithAutoplay_0: function () { return ( (!this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() || this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().isAutoPlaying_0() ); }, freeGamesRetriggerSoundSkipped_0: function () { this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, this.getGui_0().getFreeGameSounds_0().getFreeGamesBannerPresentationDuration_0()); }, freeGamesRetriggerSoundFinished_0: function () { this.fireStateFinished_0(); }, requestFinish_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); this.getGui_0().getFreeGameSounds_0().stopFreeGamesRetriggerSound_0(); this.fireStateFinished_0(); }, exit_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); var a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesRetriggerSound_0() && (a.reduceBackgroundSoundVolume_1(!1), a.stopFreeGamesRetriggerSound_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); a.destroyChildren_0(); a = this.getGui_0().getSkin_0().reelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); a.destroyChildren_0(); a = this.getGui_0().getSkin_0().stoppedReelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setSymbols_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getAllWinPositions_0()); var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); b.destroyChildren_0(); b = this.getGui_0().getSkin_0().highlightInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); b.setStoppedReels_1(a); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(b); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); }, toString: function () { return "GuiStateFreeGamesMore (" + this.getId_0() + ")"; }, }, "GT23", [] ), GT1 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.freeGamesRetriggerSoundFinished_0(); }, }, "GT1", [Runnable] ); GT23.prototype.ID = GT788.prototype.generateID_0(); var GT2 = GT1254.extend( { initialConstructor_0: function () { this.symbolseries = this.popupFont = this.freeSpinPopupContainer = this.bookContainer = this.imageBookFlipSymbols = this.imageBookBonusGlow = this.imageBookFlipBack = this.imageBookBG = null; this.stepinsym = this.stepinseries = 0; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.symbolseries = this.popupFont = this.freeSpinPopupContainer = this.bookContainer = this.imageBookFlipSymbols = this.imageBookBonusGlow = this.imageBookFlipBack = this.imageBookBG = null; this.stepinsym = this.stepinseries = 0; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT2.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesStart"; }, enter_1: function (a) { GT2.prototype.animationDone = !1; this.doLoadResources_0(); a = this.getGui_0().getSlotState_0(); a.getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); 0 < a.getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().startWinSwitcher_1(!0); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); a.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); instanceOf(a, GT1158) && a.reflow_0(); this.getGui_0().getSlotConsole_0().setHighlightBackgroundStatusText_1(!0); a = this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && (a = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0() - (this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? this.getSlotState_0().getWinSum_1(!0) : 0)); this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(a); this.getGui_0().getSlotConsole_0().setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_supergamestart}")); 0 < this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0() ? ((GT2.prototype.animationDone = !0), this.fireStateFinished_0()) : (this.getGui_0() .getMainContainer_0() .findDescendant_1(GT1618.prototype.STOPPED_REELS) .setSymbols_3(this.getGui_0().getSlotState_0().getReelPositions_0(), this.getGui_0().getSlotState_0().getCurrentReelSet_0(), new GT1613()), this.getGui_0().getWinSwitcher_0().stop_0(), this.visualizeFreeGameStart_0()); }, doLoadResources_0: function () { if (null == this.imageBookBG) { this.imageBookBG = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/dialogbox.jpg"); this.imageBookFlipBack = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_back.jpg"); this.imageBookBonusGlow = this.getGui_0().getSkinManager_0().getResourceManager_0().getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/book_bonusglow.png"); this.imageBookFlipSymbols = [].createArray(4); for (var a = 0; 4 > a; a++) this.imageBookFlipSymbols[a] = this.getGui_0() .getSkinManager_0() .getResourceManager_0() .getImage_1("/com/greentube/slot/client/bookofradeluxe/res/game/bookflip_symbol_" + (a + 1) + ".jpg"); } }, visualizeFreeGameStart_0: function () { this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.INACTIVE); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); this.freeSpinPopupContainer = new GT1437(a, 356, this.getGui_0().getSkin_0().getReelY_0() + 92, this.imageBookBG.getWidth_0(), this.imageBookBG.getHeight_0()); new GT1591(this.freeSpinPopupContainer, 0, 0, this.imageBookBG); this.popupFont = this.getGui_0().getSkinManager_0().getResourceManager_0().getFont_6(GT1393.prototype.GEORGIA.name_0(), !0, !0, 0, 270, 0); var a = GT1677.prototype.replaceInString_3( this.getGui_0().getSkinManager_0().getSkinDescription_0().getString_1("bookofra_congratulationfreespins"), "#0", this.getGui_0().getSkinManager_0().getSkinDescription_0().getString_1("bookofra_paytabletext0") ), b = new GT1490( this.freeSpinPopupContainer, GT21.prototype.BOOK_TEXT_X_POS_CORRECTOR + GT21.prototype.BOOK_X_POS_CORRECTOR, 0, this.freeSpinPopupContainer.getWidth_0() - GT21.prototype.BOOK_X_POS_CORRECTOR, this.freeSpinPopupContainer.getHeight_0(), this.popupFont, new GT1634(251, 206, 42), GT1488.prototype.CENTER, GT1489.prototype.CENTER ); b.setText_1(a); b.setOutline_2(2, GT1634.prototype.black); b.setSpacing_1(270); this.bookContainer = new GT1437( this.freeSpinPopupContainer, ((this.imageBookBG.getWidth_0() - this.imageBookFlipBack.getWidth_0()) >> 1) + GT21.prototype.BOOK_X_POS_CORRECTOR, (this.imageBookBG.getHeight_0() - this.imageBookFlipBack.getHeight_0()) >> 1, this.imageBookFlipBack.getWidth_0(), this.imageBookFlipBack.getHeight_0() ); a = this.getReelsetNumberOfSymbolToStop_0() - 2; if (0 > a || 8 < a) a = 0; this.symbolseries = [].createArray(12 + a).init(0); this.symbolseries[0] = -1; this.symbolseries[1] = -1; for (b = 0; 9 > b; b++) this.symbolseries[2 + b] = b; for (b = 0; b <= a; b++) this.symbolseries[11 + b] = b; this.stepinsym = this.stepinseries = 0; this.stepinseries = this.symbolseries.length; this.updategraphics_0(); this.getGui_0().getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_FREESPIN); GT2.prototype.animationDone = !0; this.fireStateFinished_0(); }, getReelsetNumberOfSymbolToStop_0: function () { return this.getGui_0().getSlotState_0().getFreeSpinState_0().getNextSpinReelset_0(); }, exit_0: function () { this.getGui_0().getFreeGameSounds_0().stopFreeGamesStartSound_0(); var a = this.getGui_0().getFreeGameSounds_0(); a.isBackgroundSoundRunning_0() || a.startBackgroundSound_0(); a = this.getGui_0().getSlotState_0(); this.getGui_0().getSlotConsole_0().setStatusText_1(""); var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); b.destroyChildren_0(); b = this.getGui_0().getSkin_0().reelsInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); b.setReelSet_2(a.getCurrentReelSet_0(), a.getReelPositions_0()); b.hide_1(!0); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); b.destroyChildren_0(); b = this.getGui_0().getSkin_0().stoppedReelsInFreeGames_0().create_2(b, this.getGui_0().getSkinManager_0()); b.setSymbols_3(a.getReelPositions_0(), a.getCurrentReelSet_0(), a.getAllWinPositions_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); a.destroyChildren_0(); a = this.getGui_0().getSkin_0().highlightInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setStoppedReels_1(b); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(a); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); null != this.freeSpinPopupContainer && this.freeSpinPopupContainer.isAlive_0() && this.freeSpinPopupContainer.destroy_0(); GT2.prototype.animationDone = !0; }, toString: function () { return "BookOfRaDeluxeGuiStateFreeGamesStartWithoutAnimation (" + this.getId_0() + ")"; }, updategraphics_0: function () { this.bookContainer.destroyChildren_0(); new GT1591(this.bookContainer, 0, 0, this.imageBookFlipBack); var a = this.stepinseries - 1; 0 <= a && a < this.symbolseries.length && 0 <= this.symbolseries[a] && new GT1591(this.bookContainer, 96, 78, this.imageBookFlipSymbols[3], this.symbolseries[a], 0); 5 <= this.stepinsym && this.stepinseries < this.symbolseries.length && 0 <= this.symbolseries[this.stepinseries] && new GT1591( this.bookContainer, GT2.prototype.BOOK_FLIP_SYM_X[this.stepinsym - 5], GT2.prototype.BOOK_FLIP_SYM_Y[this.stepinsym - 5], this.imageBookFlipSymbols[this.stepinsym - 5], this.symbolseries[this.stepinseries], 0 ); this.stepinseries == this.symbolseries.length && new GT1591(this.bookContainer, 87, 69, this.imageBookBonusGlow); }, }, "GT2", [] ); GT2.prototype.isAnimationDone_0 = function () { return GT2.prototype.animationDone; }; GT2.prototype.ID = GT788.prototype.generateID_0(); GT2.prototype.BOOK_FLIP_SYM_X = [174, 124, 93, 96, 78]; GT2.prototype.BOOK_FLIP_SYM_Y = [63, 60, 70, 78]; GT2.prototype.animationDone = !0; var GT25 = GT572.extend( { initialConstructor_0: function () { GT572.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT572.prototype.initialConstructor_1.call(this, a); }, enter_1: function (a) { GT572.prototype.enter_1.call(this, a); this.getGui_0().resetEpandingSymbolsAnimation_0(); }, toString: function () { return "BookOfRaDeluxeGuiStateReelsSpinning (" + this.getId_0() + ")"; }, }, "GT25", [] ), GT24 = GT575.extend( { initialConstructor_0: function () { this.updateConsoleCallback = null; GT575.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.updateConsoleCallback = null; GT575.prototype.initialConstructor_1.call(this, a); }, enter_1: function (a) { GT575.prototype.enter_1.call(this, a); a = GT575.prototype.stopReels_0.call(this); 0 != this.getGui_0().getSlotConsole_0().getWin_0() && ((this.updateConsoleCallback = new GT8(this.getGui_0())), 0 == a ? this.updateConsoleCallback.runImmediately_0() : this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.updateConsoleCallback, a)); this.getGui_0().getSlotConsole_0().setCredits_2(this.getSlotState_0().getCredits_0(), !0); }, stopReels_0: function () { return -1; }, exit_0: function () { GT575.prototype.exit_0.call(this); null != this.updateConsoleCallback && this.updateConsoleCallback.runImmediately_0(); this.updateConsoleCallback = null; }, toString: function () { return "BookOfRaGuiStateReelsStopping (" + this.getId_0() + ")"; }, }, "GT24", [] ), GT8 = Class.extend( { initialConstructor_0: function () { this.gui = null; this.cancelled = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gui = null; this.cancelled = !1; this.gui = a; this.cancelled = !1; }, runImmediately_0: function () { this.run_0(); this.cancelled = !0; }, run_0: function () { if (!this.cancelled) { var a = this.gui.getSlotConsole_0(); a.setWin_2(0, !0); var b = this.gui.getSlotState_0().getFreeSpinState_0(); if (b.isFreeSpinsRunning_0() && !b.isBeforeFirstFreeSpin_0()) { var d = this.gui.getSkinManager_0().getText_1("${console_bonusgametext}"), d = GT1677.prototype.replaceInString_3(d, "#0", "" + b.getFreeSpinsPlayed_0()), d = GT1677.prototype.replaceInString_3(d, "#1", "" + (b.getFreeSpinsWon_0() - b.getFreeSpinsWonNow_0())); a.setStatusText_1(d); } else this.gui.getSlotConsole_0().setStatusText_1(this.gui.getSkinManager_0().getText_1("${console_whilespintext}")); this.cancelled = !0; } }, }, "GT8", [Runnable] ), GT103 = GT1092.extend( { initialConstructor_0: function () { GT1092.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1092.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, m); }, }, "GT103", [] ), GT162 = GT1047.extend( { initialConstructor_0: function () { GT1047.prototype.initialConstructor_0.call(this); }, slotBackgroundInFreeGames_2: function (a, b) { return this.defaultSlotBackgroundInFreeGames_2(a, b); }, paytable_2: function (a, b) { return a.modify_2(GT243.prototype.SPECIAL_EXPANDING_DESCRIPTION_ID, GT872.prototype.set_0().text_1("${bookofra_paytabletext5} ${bookofra_paytabletext5b}")); }, }, "GT162", [] ), GT1386 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1386", [] ); GT1386.prototype.IN = new GT1309(); GT1386.prototype.OUT = new GT1257(); GT1386.prototype.INOUT = new GT1159(); var GT1283 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1283", [] ); GT1283.prototype.IN = new GT1212(); GT1283.prototype.OUT = new GT1160(); GT1283.prototype.INOUT = new GT1050(); var GT1383 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1383", [] ); GT1383.prototype.IN = new GT1310(); GT1383.prototype.OUT = new GT1258(); GT1383.prototype.INOUT = new GT1161(); var GT1330 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1330", [] ); GT1330.prototype.IN = new GT1259(); GT1330.prototype.OUT = new GT1214(); GT1330.prototype.INOUT = new GT1103(); var GT1235 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1235", [] ); GT1235.prototype.IN = new GT1163(); GT1235.prototype.OUT = new GT1104(); GT1235.prototype.INOUT = new GT1001(); var GT1385 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1385", [] ); GT1385.prototype.IN = new GT1311(); GT1385.prototype.OUT = new GT1260(); GT1385.prototype.INOUT = new GT1164(); var GT1282 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1282", [] ); GT1282.prototype.INOUT = new GT1052(); var GT1382 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1382", [] ); GT1382.prototype.IN = new GT1312(); GT1382.prototype.OUT = new GT1261(); GT1382.prototype.INOUT = new GT1165(); var GT1331 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1331", [] ); GT1331.prototype.IN = new GT1262(); GT1331.prototype.OUT = new GT1217(); GT1331.prototype.INOUT = new GT1106(); var GT1332 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1332", [] ); GT1332.prototype.IN = new GT1263(); GT1332.prototype.OUT = new GT1218(); GT1332.prototype.INOUT = new GT1107(); var GT1384 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1384", [] ); GT1384.prototype.IN = new GT1313(); GT1384.prototype.OUT = new GT1264(); GT1384.prototype.INOUT = new GT1168(); var GT1418 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1418", [] ); GT1418.prototype.easeNone = GT1282.prototype.INOUT; GT1418.prototype.easeInQuad = GT1382.prototype.IN; GT1418.prototype.easeOutQuad = GT1382.prototype.OUT; GT1418.prototype.easeInOutQuad = GT1382.prototype.INOUT; GT1418.prototype.easeInCubic = GT1330.prototype.IN; GT1418.prototype.easeOutCubic = GT1330.prototype.OUT; GT1418.prototype.easeInOutCubic = GT1330.prototype.INOUT; GT1418.prototype.easeInQuart = GT1331.prototype.IN; GT1418.prototype.easeOutQuart = GT1331.prototype.OUT; GT1418.prototype.easeInOutQuart = GT1331.prototype.INOUT; GT1418.prototype.easeInQuint = GT1332.prototype.IN; GT1418.prototype.easeOutQuint = GT1332.prototype.OUT; GT1418.prototype.easeInOutQuint = GT1332.prototype.INOUT; GT1418.prototype.easeInCirc = GT1383.prototype.IN; GT1418.prototype.easeOutCirc = GT1383.prototype.OUT; GT1418.prototype.easeInOutCirc = GT1383.prototype.INOUT; GT1418.prototype.easeInSine = GT1384.prototype.IN; GT1418.prototype.easeOutSine = GT1384.prototype.OUT; GT1418.prototype.easeInOutSine = GT1384.prototype.INOUT; GT1418.prototype.easeInExpo = GT1385.prototype.IN; GT1418.prototype.easeOutExpo = GT1385.prototype.OUT; GT1418.prototype.easeInOutExpo = GT1385.prototype.INOUT; GT1418.prototype.easeInBack = GT1386.prototype.IN; GT1418.prototype.easeOutBack = GT1386.prototype.OUT; GT1418.prototype.easeInOutBack = GT1386.prototype.INOUT; GT1418.prototype.easeInBounce = GT1283.prototype.IN; GT1418.prototype.easeOutBounce = GT1283.prototype.OUT; GT1418.prototype.easeInOutBounce = GT1283.prototype.INOUT; GT1418.prototype.easeInElastic = GT1235.prototype.IN; GT1418.prototype.easeOutElastic = GT1235.prototype.OUT; GT1418.prototype.easeInOutElastic = GT1235.prototype.INOUT; var GT414 = GT711.extend( { initialConstructor_0: function () { this.currency = this.casinoApplet = null; this.currencyfactor = 0; GT711.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.currency = this.casinoApplet = null; this.currencyfactor = 0; GT711.prototype.initialConstructor_0.call(this); this.casinoApplet = a; this.currency = b; this.currencyfactor = d; }, format_1: function (a) { return this.casinoApplet.getCurrencyMoneyString_5(a, this.currency, this.currencyfactor, !1, !0); }, format_3: function (a, b, d) { var e = !1; b == this.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO ? (e = 1 > this.currencyfactor) : b == this.OMIT_CENT_IF_ZERO ? (e = !0) : GT1650.prototype.assertExp_2(b == this.OMIT_CENT_NEVER, "Wrong omitCentPolicy"); return null == this.currency ? "" : this.casinoApplet.getMoneyString_5(a, this.currency, 1 != this.currencyfactor, e, d); }, isWeakCurrency_0: function () { return 1 > this.currencyfactor; }, getCurrencySymbol_0: function () { return null == this.currency || 1 > this.currency.length_0() ? "" : this.casinoApplet.currencySymbols.getSymbol_1(this.currency); }, getCurrencyFactor_0: function () { return this.currencyfactor; }, update_2: function (a, b) { this.currency = a; this.currencyfactor = b; }, getCurrencyCode_0: function () { return null == this.currency || 1 > this.currency.length_0() ? "" : this.casinoApplet.currencySymbols.getCode_1(this.currency); }, }, "GT414", [] ), GT884 = GT787.extend( { initialConstructor_0: function () { this.psound = null; this.postdelay = 0; this.postdelaySet = !1; this.backColor = null; this.isColorSet = !1; this.anim = this.images = null; GT787.prototype.initialConstructor_0.call(this); this.postdelay = -1; this.postdelaySet = !1; this.images = new java_util_JavaScriptVector(); this.anim = null; }, id_1: function (a) { this.appId = a; return this; }, animation_1: function (a) { this.anim = a; return this; }, sound_1: function (a) { this.psound = a; return this; }, addImageToLoad_1: function (a) { this.images.addElement_1(a); return this; }, postDelay_1: function (a) { this.postdelay = a; this.postdelaySet = !0; return this; }, backgroundColor_1: function (a) { this.backColor = a.create_0(); this.isColorSet = !0; return this; }, load_1: function (a) { GT787.prototype.load_1.call(this, a); null != this.psound && this.psound.load_1(a); for (var b = 0; b < this.images.size_0(); b++) a.getResourceManager_0().startLoadImage_4(this.images.elementAt_1(b).toString(), 1, 1, !1); }, create_2: function (a, b) { var d = null; null != this.psound && (d = this.psound.create_1(b)); this.isColorSet && new GT1440(a, this.backColor); for (var e = [].createArray(this.images.size_0()), f = 0; f < e.length; f++) e[f] = b.getResourceManager_0().getImage_1(this.images.elementAt_1(f).toString()); d = new GT496(a, e, d, this.anim, this.postdelay, b); d.setApplicationID_1(this.appId); return d; }, modifyDescriptor_1: function (a) { var b = instanceOf(a, GT873); GT1650.prototype.assertExp_2(b, "Descriptor is no DButtonContainer"); b && (this.modifyDescriptorImpl_1(a), null != this.psound && (a.psound = this.psound), this.postdelaySet && (a.postdelay = this.postdelay), this.isColorSet && (a.backColor = this.backColor)); }, }, "GT884", [GT1272] ); GT884.prototype.set_0 = function () { return new GT884(); }; var GT688 = Class.extend( { initialConstructor_0: function () { this.applet = null; this.counter = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.counter = 0; this.applet = a; a.getEventDispatcher_0().registerHandler_2(GT1451.prototype.MOUSE_PRESSED, this); a.getEventDispatcher_0().registerHandler_2(GT767.prototype.ID, this); this.counter = 0; }, stop_0: function () { this.applet.getEventDispatcher_0().unregisterHandler_1(this); this.applet = null; }, resetCounter_0: function () { this.counter = 0; }, getImpatienceCount_0: function () { return this.counter; }, handleMouseEvent_1: function (a) { this.checkImpatienceClick_2(a.getX_0(), a.getY_0()); return !1; }, handleGestureEvent_1: function (a) { a.getId_0() == GT767.prototype.ID && ((a = a.getDownEvent_0()), this.checkImpatienceClick_2(a.getX_0(), a.getY_0())); return !1; }, checkImpatienceClick_2: function (a, b) { var d = GT1559.prototype.findButton_3(this.applet.getTopContainer_0(), a, b); null != d && !d.isActive_0() && this.applet.isInBusyState_0() && (GT688.prototype.Log.i_1("IMPATIENCE DETECTED"), this.counter++); }, }, "GT688", [GT1011, GT920] ); GT688.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); var GT307 = GT160.extend( { initialConstructor_0: function () { this.decorators = null; GT160.prototype.initialConstructor_0.call(this); this.decorators = [].createArray(0); }, addDecorator_1: function (a) { for (var b = [].createArray(this.decorators.length + 1), d = a.getDecorationOrder_0(), e = 0, f = 0; e < this.decorators.length && this.decorators[e].getDecorationOrder_0() <= d; e++, f++) b[f] = this.decorators[e]; for (b[f++] = a; e < this.decorators.length; e++, f++) b[f] = this.decorators[e]; this.decorators = b; }, loadAll_1: function (a) { GT160.prototype.loadAll_1.call(this, a); for (var b = 0; b < this.decorators.length; b++) this.decorators[b].loadResources_1(a); }, buttonMenuFullscreen_0: function () { for (var a = GT160.prototype.buttonMenuFullscreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuFullscreen_2(a, this); return a; }, buttonMenuWindowed_0: function () { for (var a = GT160.prototype.buttonMenuWindowed_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuWindowed_2(a, this); return a; }, buttonMenuSoundOn_0: function () { for (var a = GT160.prototype.buttonMenuSoundOn_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuSoundOn_2(a, this); return a; }, buttonMenuSoundOff_0: function () { for (var a = GT160.prototype.buttonMenuSoundOff_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuSoundOff_2(a, this); return a; }, buttonMenuMusicOn_0: function () { for (var a = GT160.prototype.buttonMenuMusicOn_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuMusicOn_2(a, this); return a; }, buttonMenuMusicOff_0: function () { for (var a = GT160.prototype.buttonMenuMusicOff_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuMusicOff_2(a, this); return a; }, buttonMenuWideAspect_0: function () { for (var a = GT160.prototype.buttonMenuWideAspect_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuWideAspect_2(a, this); return a; }, buttonMenuNormalAspect_0: function () { for (var a = GT160.prototype.buttonMenuNormalAspect_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuNormalAspect_2(a, this); return a; }, buttonMenuAccount_0: function () { for (var a = GT160.prototype.buttonMenuAccount_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuAccount_2(a, this); return a; }, buttonMenuHelp_0: function () { for (var a = GT160.prototype.buttonMenuHelp_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuHelp_2(a, this); return a; }, buttonMenuLeaveTable_0: function () { for (var a = GT160.prototype.buttonMenuLeaveTable_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuLeaveTable_2(a, this); return a; }, buttonMenuPayIn_0: function () { for (var a = GT160.prototype.buttonMenuPayIn_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuPayIn_2(a, this); return a; }, textTime_0: function () { for (var a = GT160.prototype.textTime_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textTime_2(a, this); return a; }, textSessionTime_0: function () { for (var a = GT160.prototype.textSessionTime_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textSessionTime_2(a, this); return a; }, textBalance_0: function () { for (var a = GT160.prototype.textBalance_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textBalance_2(a, this); return a; }, textRoundId_0: function () { for (var a = GT160.prototype.textRoundId_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textRoundId_2(a, this); return a; }, textAdminInfo_0: function () { for (var a = GT160.prototype.textAdminInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textAdminInfo_2(a, this); return a; }, textClientVersion_0: function () { for (var a = GT160.prototype.textClientVersion_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textClientVersion_2(a, this); return a; }, containerSessionSummary_0: function () { for (var a = GT160.prototype.containerSessionSummary_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerSessionSummary_2(a, this); return a; }, buttonOpenReplay_0: function () { for (var a = GT160.prototype.buttonOpenReplay_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonOpenReplay_2(a, this); return a; }, containerReplayDialog_0: function () { for (var a = GT160.prototype.containerReplayDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerReplayDialog_2(a, this); return a; }, isReplayDialogModal_0: function () { for (var a = GT160.prototype.isReplayDialogModal_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].isReplayDialogModal_2(a, this); return a; }, isSpectatorModeBlockingInput_0: function () { for (var a = GT160.prototype.isSpectatorModeBlockingInput_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].isSpectatorModeBlockingInput_2(a, this); return a; }, containerPayInDialog_0: function () { for (var a = GT160.prototype.containerPayInDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerPayInDialog_2(a, this); return a; }, containerSessionSettingsDialog_0: function () { for (var a = GT160.prototype.containerSessionSettingsDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerSessionSettingsDialog_2(a, this); return a; }, containerRCSettingsDialog_0: function () { for (var a = GT160.prototype.containerRCSettingsDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerRCSettingsDialog_2(a, this); return a; }, containerAutoplaySettingsDialog_0: function () { for (var a = GT160.prototype.containerAutoplaySettingsDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerAutoplaySettingsDialog_2(a, this); return a; }, containerWatcherInfo_0: function () { for (var a = GT160.prototype.containerWatcherInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerWatcherInfo_2(a, this); return a; }, containerRealityCheckDialogIntervalTime_0: function () { for (var a = GT160.prototype.containerRealityCheckDialogIntervalTime_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerRealityCheckDialogIntervalTime_2(a, this); return a; }, containerRealityCheckDialogLeavingGame_0: function () { for (var a = GT160.prototype.containerRealityCheckDialogLeavingGame_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerRealityCheckDialogLeavingGame_2(a, this); return a; }, containerRealityCheckDialogIntervalRounds_0: function () { for (var a = GT160.prototype.containerRealityCheckDialogIntervalRounds_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerRealityCheckDialogIntervalRounds_2(a, this); return a; }, containerErrorDialog_0: function () { for (var a = GT160.prototype.containerErrorDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerErrorDialog_2(a, this); return a; }, containerClientVersionInfo_0: function () { for (var a = GT160.prototype.containerClientVersionInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerClientVersionInfo_2(a, this); return a; }, containerMaximumWinReachedDialog_0: function () { for (var a = GT160.prototype.containerMaximumWinReachedDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerMaximumWinReachedDialog_2(a, this); return a; }, containerResponsibleGamingInfoDialog_0: function () { for (var a = GT160.prototype.containerResponsibleGamingInfoDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerResponsibleGamingInfoDialog_2(a, this); return a; }, hasReplayFeature_0: function () { for (var a = GT160.prototype.hasReplayFeature_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].hasReplayFeature_2(a, this); return a; }, buttonOpenContextMenu_0: function () { for (var a = GT160.prototype.buttonOpenContextMenu_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonOpenContextMenu_2(a, this); return a; }, buttonCloseContextMenu_0: function () { for (var a = GT160.prototype.buttonCloseContextMenu_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonCloseContextMenu_2(a, this); return a; }, layoutSafeAreaHeightTop_0: function () { for (var a = GT160.prototype.layoutSafeAreaHeightTop_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutSafeAreaHeightTop_2(a, this); return a; }, containerGameMenu_0: function () { for (var a = GT160.prototype.containerGameMenu_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerGameMenu_2(a, this); return a; }, containerGameMenuExtended_0: function () { for (var a = GT160.prototype.containerGameMenuExtended_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerGameMenuExtended_2(a, this); return a; }, containerClock_0: function () { for (var a = GT160.prototype.containerClock_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerClock_2(a, this); return a; }, containerPortraitModeOverlay_0: function () { for (var a = GT160.prototype.containerPortraitModeOverlay_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerPortraitModeOverlay_2(a, this); return a; }, containerDisableGamblingDialog_0: function () { for (var a = GT160.prototype.containerDisableGamblingDialog_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerDisableGamblingDialog_2(a, this); return a; }, }, "GT307", [] ); GT307.prototype.ACTION_FULLSCREEN = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_WINDOWED = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SOUNDON = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SOUNDOFF = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_MUSICON = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_MUSICOFF = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_ASPECTWIDE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_ASPECTNORMAL = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_HELP = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_LEAVETABLE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_ACCOUNT = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_PAYIN = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CONTEXTMENU = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CONTEXTMENU_BACKGROUND = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_OPENREPLAY = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CLOSEREPLAY = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SLIDERREPLAY = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_PLAY = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_REWIND = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_FORWARD = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REPLAYINFO = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REPLAYTIME = GT1677.prototype.generateID_0(); GT307.prototype.BG_WATCHERINFO = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_WATCHERINFO = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_TIME = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_SESSIONTIME = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_BALANCE = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_ROUNDID = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_BUYTICKETS = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CLOSEPAYINDIALOG1 = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CLOSEPAYINDIALOG2 = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_PAYINACCOUNT = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_PAYINACCOUNT2 = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_DRAGWINDOW = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_PAYINDESC = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_PAYINVALUE1 = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_PAYINVALUE2 = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_PAYINSLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_PAYINSLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REALITYCHECK1 = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REALITYCHECK2 = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REALITYCHECK3 = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_REALITYCHECK4 = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_KEEPPLAYING = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_STOPGAME = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_VIEW_HISTORY = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_RESPONSIBLE_LINK = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_TOGGLEREALITYCHECK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_ERRORMSG = GT1677.prototype.generateID_0(); GT307.prototype.ID_ERRORMSG_BACKGROUND = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_CLIENTVERSIONINFO = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_SUMWINNINGS = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_SUMSTAKES = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_WINBALANCE = GT1677.prototype.generateID_0(); GT307.prototype.ID_PAYINDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_PAYINDIALOGBACKGROUND = GT1677.prototype.generateID_0(); GT307.prototype.ID_REPLAYDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_REALITYCHECKDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_ERRORDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_INFODIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_GAMEMENUDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_GAMEMENUDIALOGINNER = GT1677.prototype.generateID_0(); GT307.prototype.ID_SESSIONSETTINGSDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_RCSETTINGSDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_APSETTINGSDIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ID_CLIENTVERSIONINFO = GT1677.prototype.generateID_0(); GT307.prototype.ID_DIALOG_BACKGROUND = GT1677.prototype.generateID_0(); GT307.prototype.ID_DISABLE_GAMBLING_DIALOG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_SESSIONTIME_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_SESSIONTIME_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SESSIONTIME_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_RCINTERVAL_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_RCINTERVAL_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_RCINTERVAL_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_RCINTERVAL_SLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_RGBLOCK_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_RGBLOCK_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_RGBLOCK_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_RGBLOCK_SLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.ID_RGBLOCK_TOGGLE = GT1677.prototype.generateID_0(); GT307.prototype.ID_CONTAINER_RGBLOCK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APROUNDS_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APROUNDS_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_APROUNDS_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_APROUNDS_SLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APLOSSLIMIT_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APLOSSLIMIT_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_APLOSSLIMIT_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_APLOSSLIMIT_SLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APSINGLEWIN_MSG = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_APSINGLEWIN_VALUE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_APSINGLEWIN_SLIDER = GT1677.prototype.generateID_0(); GT307.prototype.ID_APSINGLEWIN_SLIDERBACK = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SENDSETTINGS = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SETRCSETTINGS = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_SETAPSETTINGS = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CLOSEAPSETTINGS = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_GAMBLING_DIALOG_TITLE = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_GAMBLING_DIALOG_SEPARATOR = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_GAMBLING_DIALOG_TEXT = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_GAMBLING_DIALOG_SAVED = GT1677.prototype.generateID_0(); GT307.prototype.IMG_GAMBLING_CARD = GT1677.prototype.generateID_0(); GT307.prototype.IMG_GAMBLING_SINGLE = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_ENABLE_GAMBLING = GT1677.prototype.generateID_0(); GT307.prototype.ACTION_DISABLE_GAMBLING = GT1677.prototype.generateID_0(); GT307.prototype.CLOCK_CONTAINER = GT1677.prototype.generateID_0(); GT307.prototype.CLOCK_BACKGROUND = GT1677.prototype.generateID_0(); GT307.prototype.CLOCK_TIME_FIELD = GT1677.prototype.generateID_0(); GT307.prototype.TEXT_CLIENTVERSION = GT1677.prototype.generateID_0(); GT307.prototype.DIALOG_BOX = GT1677.prototype.generateID_0(); GT307.prototype.RESERVED_AREA_CONTAINER = GT1677.prototype.generateID_0(); var GT554 = GT286.extend( { initialConstructor_0: function () { this.decorators = null; GT286.prototype.initialConstructor_0.call(this); this.decorators = [].createArray(0); }, addDecorator_1: function (a) { for (var b = [].createArray(this.decorators.length + 1), d = a.getDecorationOrder_0(), e = 0, f = 0; e < this.decorators.length && this.decorators[e].getDecorationOrder_0() <= d; e++, f++) b[f] = this.decorators[e]; for (b[f++] = a; e < this.decorators.length; e++, f++) b[f] = this.decorators[e]; this.decorators = b; }, buttonMenuAccount_0: function () { for (var a = GT286.prototype.buttonMenuAccount_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuAccount_2(a, this); return a; }, buttonMenuFullscreen_0: function () { for (var a = GT286.prototype.buttonMenuFullscreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuFullscreen_2(a, this); return a; }, buttonMenuHelp_0: function () { for (var a = GT286.prototype.buttonMenuHelp_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuHelp_2(a, this); return a; }, buttonMenuNormalAspect_0: function () { for (var a = GT286.prototype.buttonMenuNormalAspect_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuNormalAspect_2(a, this); return a; }, buttonMenuQuit_0: function () { for (var a = GT286.prototype.buttonMenuQuit_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuQuit_2(a, this); return a; }, buttonMenuSoundOff_0: function () { for (var a = GT286.prototype.buttonMenuSoundOff_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuSoundOff_2(a, this); return a; }, buttonMenuSoundOn_0: function () { for (var a = GT286.prototype.buttonMenuSoundOn_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuSoundOn_2(a, this); return a; }, buttonMenuWideAspect_0: function () { for (var a = GT286.prototype.buttonMenuWideAspect_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuWideAspect_2(a, this); return a; }, buttonMenuWindowed_0: function () { for (var a = GT286.prototype.buttonMenuWindowed_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonMenuWindowed_2(a, this); return a; }, dropDownFilter_0: function () { for (var a = GT286.prototype.dropDownFilter_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].dropDownFilter_2(a, this); return a; }, fontTooltip_0: function () { for (var a = GT286.prototype.fontTooltip_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].fontTooltip_2(a, this); return a; }, imageBorder_0: function () { for (var a = GT286.prototype.imageBorder_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].imageBorder_2(a, this); return a; }, imageJackpotLogo_0: function () { for (var a = GT286.prototype.imageJackpotLogo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].imageJackpotLogo_2(a, this); return a; }, imageLobbyBanner_0: function () { for (var a = GT286.prototype.imageLobbyBanner_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].imageLobbyBanner_2(a, this); return a; }, containerLobbyBanner_0: function () { for (var a = GT286.prototype.containerLobbyBanner_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerLobbyBanner_2(a, this); return a; }, layoutDesignedHeight_0: function () { for (var a = GT286.prototype.layoutDesignedHeight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutDesignedHeight_2(a, this); return a; }, layoutDesignedWidth_0: function () { for (var a = GT286.prototype.layoutDesignedWidth_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutDesignedWidth_2(a, this); return a; }, layoutHorizontalAdjustment_0: function () { for (var a = GT286.prototype.layoutHorizontalAdjustment_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutHorizontalAdjustment_2(a, this); return a; }, layoutOverscanLeft_0: function () { for (var a = GT286.prototype.layoutOverscanLeft_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutOverscanLeft_2(a, this); return a; }, layoutOverscanRight_0: function () { for (var a = GT286.prototype.layoutOverscanRight_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutOverscanRight_2(a, this); return a; }, layoutOverscanTop_0: function () { for (var a = GT286.prototype.layoutOverscanTop_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutOverscanTop_2(a, this); return a; }, layoutOverscanBottom_0: function () { for (var a = GT286.prototype.layoutOverscanBottom_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutOverscanBottom_2(a, this); return a; }, layoutSafeAreaHeightTop_0: function () { for (var a = GT286.prototype.layoutSafeAreaHeightTop_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutSafeAreaHeightTop_2(a, this); return a; }, layoutWideAspect_0: function () { for (var a = GT286.prototype.layoutWideAspect_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].layoutWideAspect_2(a, this); return a; }, lobbyJackpotBaseWin_0: function () { for (var a = GT286.prototype.lobbyJackpotBaseWin_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].lobbyJackpotBaseWin_2(a, this); return a; }, maintenanceInfo_0: function () { for (var a = GT286.prototype.maintenanceInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].maintenanceInfo_2(a, this); return a; }, scrollBarTables_0: function () { for (var a = GT286.prototype.scrollBarTables_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].scrollBarTables_2(a, this); return a; }, scrollBarRooms_0: function () { for (var a = GT286.prototype.scrollBarRooms_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].scrollBarRooms_2(a, this); return a; }, showAspectButton_0: function () { for (var a = GT286.prototype.showAspectButton_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].showAspectButton_2(a, this); return a; }, soundLobby_0: function () { for (var a = GT286.prototype.soundLobby_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].soundLobby_2(a, this); return a; }, soundLobbyLoopEnd_0: function () { for (var a = GT286.prototype.soundLobbyLoopEnd_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].soundLobbyLoopEnd_2(a, this); return a; }, soundLobbyLoopStart_0: function () { for (var a = GT286.prototype.soundLobbyLoopStart_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].soundLobbyLoopStart_2(a, this); return a; }, tableView_0: function () { for (var a = GT286.prototype.tableView_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].tableView_2(a, this); return a; }, subRoomView_0: function () { for (var a = GT286.prototype.subRoomView_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].subRoomView_2(a, this); return a; }, tableViewBackColor_0: function () { for (var a = GT286.prototype.tableViewBackColor_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].tableViewBackColor_2(a, this); return a; }, tableViewBackColor2_0: function () { for (var a = GT286.prototype.tableViewBackColor2_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].tableViewBackColor2_2(a, this); return a; }, textJackpotMaxBetInfo_0: function () { for (var a = GT286.prototype.textJackpotMaxBetInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textJackpotMaxBetInfo_2(a, this); return a; }, textJackpotMaxJackpotInfo_0: function () { for (var a = GT286.prototype.textJackpotMaxJackpotInfo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textJackpotMaxJackpotInfo_2(a, this); return a; }, jackpotCounterReel_0: function () { for (var a = GT286.prototype.jackpotCounterReel_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].jackpotCounterReel_2(a, this); return a; }, textPlayerAccount_0: function () { for (var a = GT286.prototype.textPlayerAccount_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textPlayerAccount_2(a, this); return a; }, buttonPlayNow_0: function () { for (var a = GT286.prototype.buttonPlayNow_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonPlayNow_2(a, this); return a; }, containerErrorScreen_0: function () { for (var a = GT286.prototype.containerErrorScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerErrorScreen_2(a, this); return a; }, progressBar_0: function () { for (var a = GT286.prototype.progressBar_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].progressBar_2(a, this); return a; }, disclaimer_0: function () { for (var a = GT286.prototype.disclaimer_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].disclaimer_2(a, this); return a; }, textSplashScreen_0: function () { for (var a = GT286.prototype.textSplashScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textSplashScreen_2(a, this); return a; }, containerInfoPages_0: function () { for (var a = GT286.prototype.containerInfoPages_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerInfoPages_2(a, this); return a; }, infoPagesTimeout_0: function () { for (var a = GT286.prototype.infoPagesTimeout_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].infoPagesTimeout_2(a, this); return a; }, containerSplashScreen_0: function () { for (var a = GT286.prototype.containerSplashScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerSplashScreen_2(a, this); return a; }, containerCustomLoadingScreen_0: function () { for (var a = GT286.prototype.containerCustomLoadingScreen_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerCustomLoadingScreen_2(a, this); return a; }, customLoadingScreenPostDelay_0: function () { for (var a = GT286.prototype.customLoadingScreenPostDelay_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].customLoadingScreenPostDelay_2(a, this); return a; }, casinoProgressBar_0: function () { for (var a = GT286.prototype.casinoProgressBar_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].casinoProgressBar_2(a, this); return a; }, containerDeveloperLogo_0: function () { for (var a = GT286.prototype.containerDeveloperLogo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerDeveloperLogo_2(a, this); return a; }, containerIntroVideo_0: function () { for (var a = GT286.prototype.containerIntroVideo_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerIntroVideo_2(a, this); return a; }, buttonIntroVideoSkip_0: function () { for (var a = GT286.prototype.buttonIntroVideoSkip_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonIntroVideoSkip_2(a, this); return a; }, buttonInfoPagesClose_0: function () { for (var a = GT286.prototype.buttonInfoPagesClose_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonInfoPagesClose_2(a, this); return a; }, buttonInfoPagesNext_0: function () { for (var a = GT286.prototype.buttonInfoPagesNext_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonInfoPagesNext_2(a, this); return a; }, buttonInfoPagesToggle_0: function () { for (var a = GT286.prototype.buttonInfoPagesToggle_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonInfoPagesToggle_2(a, this); return a; }, textInfoPagesToggleMessage_0: function () { for (var a = GT286.prototype.textInfoPagesToggleMessage_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].textInfoPagesToggleMessage_2(a, this); return a; }, buttonInfoPagesPrev_0: function () { for (var a = GT286.prototype.buttonInfoPagesPrev_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].buttonInfoPagesPrev_2(a, this); return a; }, containerLobbyIndented_0: function () { for (var a = GT286.prototype.containerLobbyIndented_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerLobbyIndented_2(a, this); return a; }, containerLobby_0: function () { for (var a = GT286.prototype.containerLobby_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerLobby_2(a, this); return a; }, containerInfoPagesIndicators_0: function () { for (var a = GT286.prototype.containerInfoPagesIndicators_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerInfoPagesIndicators_2(a, this); return a; }, containerInfoPagesBackground_0: function () { for (var a = GT286.prototype.containerInfoPagesBackground_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerInfoPagesBackground_2(a, this); return a; }, containerOneInfoPageIndicator_0: function () { for (var a = GT286.prototype.containerOneInfoPageIndicator_0.call(this), b = 0; b < this.decorators.length; b++) a = this.decorators[b].containerOneInfoPageIndicator_2(a, this); return a; }, loadAll_1: function (a) { GT286.prototype.loadAll_1.call(this, a); for (var b = 0; b < this.decorators.length; b++) this.decorators[b].loadResources_1(a); }, }, "GT554", [] ); GT554.prototype.ACTION_ENTERTABLE = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_SOUND_ON = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_SOUND_OFF = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_BTNASPECT = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_BTNFULLSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_BTNACCOUNT = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_BTNHELP = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_QUITPROGRAM = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_CLOSEAFTERKICK = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_CLOSEAFTERKICK2 = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_RECONNECT = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_PLAYNOW = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_SELECTROOM = GT1677.prototype.generateID_0(); GT554.prototype.ACTION_SPLASHSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.CONTAINER_BANNER = GT1677.prototype.generateID_0(); GT554.prototype.ID_CONTAINER_BANNER_PARENT = GT1677.prototype.generateID_0(); GT554.prototype.TEXT_ERRORMSG = GT1677.prototype.generateID_0(); GT554.prototype.ID_ERRORMSG_BACKGROUND = GT1677.prototype.generateID_0(); GT554.prototype.ID_ERRORSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.ID_ERRORSCREENBACKGROUND = GT1677.prototype.generateID_0(); GT554.prototype.ID_ERRORSCREENBOX = GT1677.prototype.generateID_0(); GT554.prototype.ID_DIALOG_BACKGROUND = GT1677.prototype.generateID_0(); GT554.prototype.ID_WRAPPERDIALOG = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_CONTENT = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_INDICATOR = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_CLOSE = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_LOADINGINDICATOR = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_NEXT = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_PREV = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_TOGGLE = GT1677.prototype.generateID_0(); GT554.prototype.ID_INFOPAGES_TOGGLEMESSAGE = GT1677.prototype.generateID_0(); GT554.prototype.ID_CONTAINER_TABLEVIEW = GT1677.prototype.generateID_0(); GT554.prototype.ID_CONTAINER_LOBBY = GT1677.prototype.generateID_0(); GT554.prototype.ID_CONTAINER_LOBBYINDENTED = GT1677.prototype.generateID_0(); GT554.prototype.ID_CONTAINER_SUBROOMVIEW = GT1677.prototype.generateID_0(); GT554.prototype.ID_TEXT_SPLASHSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.ID_REFLOW_SPLASHSCREENTEXT = GT1677.prototype.generateID_0(); GT554.prototype.ID_REFLOW_SPLASHSCREEN_IMAGE = GT1677.prototype.generateID_0(); GT554.prototype.ID_IMAGE_SPLASHSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.ID_PROGRESSBAR_SPLASHSCREEN = GT1677.prototype.generateID_0(); GT554.prototype.ID_DEVELOPERLOGO_VIDEO = GT1677.prototype.generateID_0(); GT554.prototype.ID_INTRO_VIDEO = GT1677.prototype.generateID_0(); GT554.prototype.ID_INTROVIDEO_SKIP = GT1677.prototype.generateID_0(); GT554.prototype.ID_INTROVIDEO_LOADINGINDICATOR = GT1677.prototype.generateID_0(); GT554.prototype.ID_CUSTOMLOADINGSCREEN_PROGRESSBAR = GT1677.prototype.generateID_0(); GT554.prototype.ID_CUSTOMLOADINGSCREEN_GAMELOGO_CNT = GT1677.prototype.generateID_0(); GT554.prototype.ID_CUSTOMLOADINGSCREEN_GAMELOGO_IMG = GT1677.prototype.generateID_0(); var GT898 = GT1186.extend( { initialConstructor_0: function () { GT1186.prototype.initialConstructor_0.call(this); }, createContainer_5: function (a, b, d, e, f) { return new GT749(a, b, d, e, f); }, }, "GT898", [] ); GT898.prototype.set_0 = function () { return new GT898(); }; var GT366 = GT339.extend( { initialConstructor_0: function () { this.smallDevice = !1; this.overScanCompensation = this.fullHeight = this.scale = this.smallIconWidth = this.smallIconHeight = this.bigIconHeight = this.bigIconWidth = 0; GT339.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.smallDevice = !1; this.overScanCompensation = this.fullHeight = this.scale = this.smallIconWidth = this.smallIconHeight = this.bigIconHeight = this.bigIconWidth = 0; GT339.prototype.initialConstructor_1.call(this, a); this.smallDevice = b; this.bigIconWidth = Integer.truncate_1(140 * (this.smallDevice ? 1.5 : 1)); this.bigIconHeight = Integer.truncate_1(131 * (this.smallDevice ? 1.5 : 1)); this.smallIconWidth = this.smallIconHeight = 86; this.scale = 1.27; this.fullHeight = GT366.prototype.GAME_HEIGHT; this.overScanCompensation = 0; }, tableView_2: function (a, b) { return a .id_1(GT554.prototype.ID_CONTAINER_TABLEVIEW) .position_2(Math.div(b.layoutDesignedWidth_0() - GT366.prototype.TABLES_WIDTH, 2), 70) .addIndentToEvenRows_1(0) .tablesInRow_1(6) .tableOffset_2(70, 75) .tableIndent_2(35, 50) .size_2(GT366.prototype.TABLES_WIDTH, b.layoutDesignedHeight_0() - 20) .tableAddressIndent_2(77, 13) .tableAddressFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(220)) .tableAddressAlignment_1(GT1606.prototype.ALIGN_CENTER) .showDetailSwitchWhenIdle_1(!1) .showLastPayout_1(!1); }, subRoomView_2: function (a, b) { return a .position_2(0 + b.layoutHorizontalAdjustment_0(), b.layoutDesignedHeight_0() - 50) .size_2(b.layoutDesignedWidth_0() + b.layoutOverscanLeft_0() + b.layoutOverscanRight_0(), 50) .imageRoom_1([ GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/paytable_page.png").tiling_2(1, 1), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/paytable_page.png").tiling_2(1, 1), ]) .buttonIndent_1(50) .hideTableInfo_1(!0) .useIndicatorAnimation_1(!0) .centerButtons_1(!0) .skipFullRooms_1(!0); }, imageBorder_2: function (a, b) { return null; }, scrollBarRooms_2: function (a, b) { return null; }, scrollBarTables_2: function (a, b) { return null; }, buttonPlayNow_2: function (a, b) { return this.defaultButtonBig_2( this.defaultDynamicTABig_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(130 * this.scale * (this.smallDevice ? 1.24 : 1))) ) .breakLines_1(!0) .text_1("${alttext_playnow}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_start.png").tiling_2(1, 4) ) .id_1(GT554.prototype.ACTION_PLAYNOW) .position_2(0, 400); }, defaultButtonBig_2: function (a, b) { var d = Math.div(this.buttonBigWidth_0() - this.bigIconWidth, 2), e = GT872.prototype.set_0(); a.modifyDescriptor_1(e); return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .size_2(this.buttonBigWidth_0(), this.buttonBigHeight_0()) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( e .spacing_1(Integer.truncate_1(40 * (this.smallDevice ? 1.1 : 1))) .size_2(this.buttonBigWidth_0(), 90 + (this.smallDevice ? 20 : 0)) .position_2(0, this.buttonBigHeight_0() - 90 - (this.smallDevice ? 20 : 0)) .fontColor_1(GT1391.prototype.set_0().gray_0()) .transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY)) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(d, d).size_2(this.bigIconWidth, this.bigIconHeight).transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY))) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( a .spacing_1(Integer.truncate_1(40 * (this.smallDevice ? 1.1 : 1))) .size_2(this.buttonBigWidth_0(), 90 + (this.smallDevice ? 20 : 0)) .position_2(0, this.buttonBigHeight_0() - 90 - (this.smallDevice ? 20 : 0)) .transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY)) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(d, d).size_2(this.bigIconWidth, this.bigIconHeight).transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY))) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( a .spacing_1(Integer.truncate_1(40 * (this.smallDevice ? 1.1 : 1))) .size_2(this.buttonBigWidth_0(), 90 + (this.smallDevice ? 20 : 0)) .position_2(0, this.buttonBigHeight_0() - 90 - (this.smallDevice ? 20 : 0)) .transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY)) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(d, d).size_2(this.bigIconWidth, this.bigIconHeight).transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY))) ) .child_1( GT1186.prototype .set_0() .child_1(this.defaultBackground_0()) .child_1( a .spacing_1(Integer.truncate_1(40 * (this.smallDevice ? 1.1 : 1))) .size_2(this.buttonBigWidth_0(), 90 + (this.smallDevice ? 20 : 0)) .position_2(0, this.buttonBigHeight_0() - 90 - (this.smallDevice ? 20 : 0)) .transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY)) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(d, d).size_2(this.bigIconWidth, this.bigIconHeight).transparency_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BUTTON_TRANSPARENCY))) ); }, defaultBackground_0: function () { return GT1187.prototype .set_0() .borderThickness_1(GT366.prototype.BORDER) .colorArea_1(GT366.prototype.BACKGROUND_COLOR) .colorBorder_1(GT366.prototype.BORDER_COLOR) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BACKGROUND_TRANSPARENCY)) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BACKGROUND_TRANSPARENCY)) .innerRadius_1(3) .outerRadius_1(3); }, defaultBackgroundMenu_0: function () { return GT1187.prototype .set_0() .borderThickness_1(GT366.prototype.BORDER) .colorArea_1(GT366.prototype.BACKGROUND_COLOR) .colorBorder_1(GT366.prototype.BORDER_COLOR) .transparencyArea_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BACKGROUND_TRANSPARENCY_MENU)) .transparencyBorder_1(GT1022.prototype.set_0().alpha_1(GT366.prototype.BACKGROUND_TRANSPARENCY_MENU)) .innerRadius_1(3) .outerRadius_1(3); }, buttonBigWidth_0: function () { return 175 + (this.smallDevice ? 85 : 0); }, buttonBigHeight_0: function () { return 235 + (this.smallDevice ? 85 : 0); }, buttonMenuHeight_0: function () { return 120; }, buttonMenuWidth_0: function () { return 350; }, defaultDynamicTABig_0: function () { return this.defaultDynamicTA_0() .removeAllFonts_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(160 * this.scale * (this.smallDevice ? 1.24 : 1))) ) .hAlign_1(GT1488.prototype.CENTER); }, defaultDynamicTAMedium_0: function () { return this.defaultDynamicTA_0() .removeAllFonts_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(160 * this.scale)) ) .hAlign_1(GT1488.prototype.LEFT); }, defaultDynamicTA_0: function () { return this.defaultDynamicTASmall_0().addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(150 * this.scale)) ); }, defaultDynamicTASmall_0: function () { return GT872.prototype .set_0() .addFont_1( GT1441.prototype .set_0() .name_1(GT1393.prototype.ARIAL) .size_1(Integer.truncate_1(110 * this.scale)) ) .insets_4(15, 10, 0, 0) .breakLines_1(!1) .fontColor_1(GT1391.prototype.set_0().white_0()) .outline_2(0, null) .hAlign_1(GT1488.prototype.CENTER) .vAlign_1(GT1489.prototype.CENTER); }, defaultDesignedWidth_0: function () { return 1380; }, containerLobby_2: function (a, b) { return a.child_1( GT1186.prototype .set_0() .id_1(GT366.prototype.ID_CONTAINER_RIGHTALIGN) .resizeToContent_1(!0) .child_1(b.buttonPlayNow_0()) .child_1( this.defaultMenuButton_8( this.defaultDynamicTABig_0().hAlign_1(GT1488.prototype.CENTER).insets_4(0, 0, 5, 5).text_1("${menu}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_menu.png").tiling_2(1, 4), this.buttonBigWidth_0() - GT366.prototype.BORDER, 70, -8, this.smallIconWidth + -16, this.defaultBackground_0(), GT366.prototype.MENU_BUTTON_TRANSPARENCY ) .id_1(GT366.prototype.ID_BUTTON_MENU) .position_2(0, 330) ) ); }, containerLobbyIndented_2: function (a, b) { return a .position_2(b.layoutOverscanLeft_0(), 0) .size_2(b.layoutDesignedWidth_0(), b.layoutDesignedHeight_0() + b.layoutOverscanTop_0() + b.layoutOverscanBottom_0()) .remove_1(GT554.prototype.ACTION_BTNACCOUNT) .remove_1(GT554.prototype.ACTION_QUITPROGRAM) .remove_1(GT554.prototype.ACTION_BTNHELP) .remove_1(GT554.prototype.ACTION_SOUND_ON) .remove_1(GT554.prototype.ACTION_SOUND_OFF) .remove_1(GT554.prototype.ACTION_PLAYNOW) .child_1( b .tableView_0() .id_1(GT366.prototype.ID_TABLES_NEXT) .position_2(5 + b.layoutDesignedWidth_0(), 70) ) .child_1( b .tableView_0() .id_1(GT366.prototype.ID_TABLES_PREV) .position_2(-GT366.prototype.TABLES_WIDTH - 5, 70) ) .child_1( GT871.prototype .set_0() .horizontalAlignment_1(GT1488.prototype.CENTER) .verticalAlignment_1(GT1489.prototype.CENTER) .child_1( GT1186.prototype .set_0() .resizeToContent_1(!0) .id_1(GT366.prototype.ID_CONTAINER_MENU) .position_2(0, 0) .hide_1(!0) .child_1(b.buttonMenuQuit_0()) .child_1(b.buttonMenuAccount_0()) .child_1(b.buttonMenuHelp_0()) .child_1(b.buttonMenuSoundOn_0()) .child_1(b.buttonMenuSoundOff_0()) ) ); }, textPlayerAccount_2: function (a, b) { return a .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .position_2(100 + b.layoutHorizontalAdjustment_0(), 1) .size_2(250, 60) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER); }, textJackpotMaxBetInfo_2: function (a, b) { return a .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(160)) .position_2(870 + b.layoutHorizontalAdjustment_0(), 1) .size_2(295, 61); }, textJackpotMaxJackpotInfo_2: function (a, b) { return a .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(180)) .position_2(870 + b.layoutHorizontalAdjustment_0(), 3) .size_2(295, 61); }, buttonMenuFullscreen_2: function (a, b) { return null; }, buttonMenuWindowed_2: function (a, b) { return null; }, buttonMenuNormalAspect_2: function (a, b) { return null; }, buttonMenuWideAspect_2: function (a, b) { return null; }, buttonMenuQuit_2: function (a, b) { return this.defaultMenuButton_8( this.defaultDynamicTAMedium_0().text_1("${alttext_leavecasinotable}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_exit.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 2, this.smallIconWidth + 4, this.defaultBackgroundMenu_0(), 255 ) .tooltip_1("${alttext_leavecasinotable}") .id_1(GT554.prototype.ACTION_QUITPROGRAM) .position_2(0, 3 * this.buttonMenuHeight_0()); }, buttonMenuAccount_2: function (a, b) { return this.defaultMenuButton_8( this.defaultDynamicTAMedium_0().text_1("${alttext_lobby_account}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_shop.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 2, this.smallIconWidth + 4, this.defaultBackgroundMenu_0(), 255 ) .tooltip_1("${alttext_lobby_account}") .id_1(GT554.prototype.ACTION_BTNACCOUNT) .position_2(0, 2 * this.buttonMenuHeight_0()); }, buttonMenuHelp_2: function (a, b) { return this.defaultMenuButton_8( this.defaultDynamicTAMedium_0().text_1("${alttext_lobby_help}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_paytable.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 2, this.smallIconWidth + 4, this.defaultBackgroundMenu_0(), 255 ) .id_1(GT554.prototype.ACTION_BTNHELP) .position_2(0, this.buttonMenuHeight_0()); }, buttonMenuSoundOn_2: function (a, b) { return this.defaultMenuButton_8( this.defaultDynamicTAMedium_0().text_1("${alttext_sound}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_sound_on.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 2, this.smallIconWidth + 4, this.defaultBackgroundMenu_0(), 255 ) .tooltip_1("${tip_soundon}") .id_1(GT554.prototype.ACTION_SOUND_ON) .position_2(0, 0); }, buttonMenuSoundOff_2: function (a, b) { return this.defaultMenuButton_8( this.defaultDynamicTAMedium_0().text_1("${alttext_sound}"), GT1390.prototype.set_0().file_1("/com/greentube/casinolobbymanager/client/res/onebutton/b_sound.png").tiling_2(1, 4), this.buttonMenuWidth_0(), this.buttonMenuHeight_0(), 2, this.smallIconWidth + 4, this.defaultBackgroundMenu_0(), 255 ) .tooltip_1("${tip_soundoff}") .id_1(GT554.prototype.ACTION_SOUND_OFF) .position_2(0, 0); }, defaultMenuButton_8: function (a, b, d, e, f, g, k, m) { e += GT366.prototype.BORDER; d += GT366.prototype.BORDER; var n = Math.div(e - this.smallIconHeight, 2); return GT873.prototype .set_0() .states_1(GT1021.prototype.set_0().state_2(0, GT1236.prototype.INACTIVE).state_2(1, GT1236.prototype.DEFAULT).state_2(2, GT1236.prototype.PRESSED).state_2(3, GT1236.prototype.MOUSEOVER)) .size_2(d, e) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1( a .position_2(g, 0) .size_2(d - g, e) .transparency_1(GT1022.prototype.set_0().alpha_1(m)) ) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 0).position_2(f, n).transparency_1(GT1022.prototype.set_0().alpha_1(m))) ) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.transparency_1(GT1022.prototype.set_0().alpha_1(m))) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 1).position_2(f, n).transparency_1(GT1022.prototype.set_0().alpha_1(m))) ) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.transparency_1(GT1022.prototype.set_0().alpha_1(m))) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 2).position_2(f, n).transparency_1(GT1022.prototype.set_0().alpha_1(m))) ) .child_1( GT1186.prototype .set_0() .child_1(k) .child_1(a.transparency_1(GT1022.prototype.set_0().alpha_1(m))) .child_1(GT1392.prototype.set_0().image_1(b).showTile_2(0, 3).position_2(f, n).transparency_1(GT1022.prototype.set_0().alpha_1(m))) ); }, }, "GT366", [] ); GT366.prototype.ID_BUTTON_MENU = GT1677.prototype.generateID_0(); GT366.prototype.ID_CONTAINER_MENU = GT1677.prototype.generateID_0(); GT366.prototype.ID_CONTAINER_RIGHTALIGN = GT1677.prototype.generateID_0(); GT366.prototype.ID_TABLES_NEXT = GT1677.prototype.generateID_0(); GT366.prototype.ID_TABLES_PREV = GT1677.prototype.generateID_0(); GT366.prototype.TABLES_WIDTH = 1280; GT366.prototype.GAME_HEIGHT = 840; GT366.prototype.BORDER_COLOR = GT1391.prototype.set_0().compRGB_3(51, 204, 255); GT366.prototype.BACKGROUND_COLOR = GT1391.prototype.set_0().compRGB_3(12, 24, 40); GT366.prototype.PRESSED_COLOR = GT1391.prototype.set_0().compRGB_3(51, 204, 255); GT366.prototype.INACTIVE_COLOR = GT1391.prototype.set_0().compRGB_3(130, 130, 130); GT366.prototype.BORDER = 2; GT366.prototype.BACKGROUND_TRANSPARENCY_MENU = 230; GT366.prototype.BACKGROUND_TRANSPARENCY = 130; GT366.prototype.BUTTON_TRANSPARENCY = 195; GT366.prototype.MENU_BUTTON_TRANSPARENCY = 155; var GT224 = Class.extend( { initialConstructor_0: function () { this.applet = null; this.didSetError = this.didNotify = this.isrunning = !1; this.notifyTimeStamp = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.didSetError = this.didNotify = this.isrunning = !1; this.notifyTimeStamp = 0; this.applet = a; this.isrunning = !1; }, startRun_0: function () { this.isrunning || ((this.isrunning = !0), (this.didNotify = !1), this.run_0()); }, stop_0: function () { this.isrunning = !1; var a = this.applet.getTimer_0(); null != a && a.removeCallback_2(this, !1); }, run_0: function () { if (this.isrunning && GT1560.prototype.isAlive_1(this.applet.containerGame)) { var a = this.applet.getWaitingForServerResponseTimeout_0(); GT1650.prototype.assertExp_2(0 < a, "timeout must not be <=0"); !this.applet.isSpectator_0() && this.applet.isWaitingForServerResponse_0() && !this.applet.isBlockingPackets_0() && !this.applet.isAnyModalDialogOpen_0() && this.applet.currentTimeMillis_0() - this.applet.getTimeOfLastSendPacket_0() > a ? (this.didNotify || (this.applet.notifyIsWaitingLongForServerResponse_0(), (this.didNotify = !0), (this.notifyTimeStamp = this.applet.currentTimeMillis_0())), this.didNotify && ((a = this.applet.getIntParameter_2("connectionlosterrortimeout", 12)), 0 < a && !this.didSetError && this.applet.currentTimeMillis_0() - this.applet.getTimeOfLastSendPacket_0() > 1e3 * a && (GT224.prototype.Log.info && GT224.prototype.Log.logRemote_2("closing connection because of waitingForServerResponseTimeout (" + a + " seconds)", null), this.applet.getConnection_0().close_1(!0), (this.didSetError = !0)))) : this.didNotify && 2e3 < this.applet.currentTimeMillis_0() - this.notifyTimeStamp && ((this.didNotify = this.didSetError = !1), this.applet.stopShowWaitForServerResponseMessage_0()); this.applet.triggerCallbackAfter_2(this, this.didNotify ? 50 : 500); } }, }, "GT224", [Runnable] ); GT224.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); var GT446 = GT487.extend( { initialConstructor_0: function () { this.buttonImagePagingNext = this.buttonImagePagingBack = this.buttonImageUndocked = this.panelCloseButton = this.gridButtonTemplate = null; this.spacerY = this.spacerX = this.maxNumberofGridButtons = this.gridButtonCols = this.gridButtonRows = 0; this.betInfoType = this.valueTextMap = this.lastValueText = this.undockedTextAttributes = null; GT487.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.buttonImagePagingNext = this.buttonImagePagingBack = this.buttonImageUndocked = this.panelCloseButton = this.gridButtonTemplate = null; this.spacerY = this.spacerX = this.maxNumberofGridButtons = this.gridButtonCols = this.gridButtonRows = 0; this.betInfoType = this.valueTextMap = this.lastValueText = this.undockedTextAttributes = null; GT487.prototype.initialConstructor_1.call(this, a); }, initialConstructor_2: function (a, b) { this.buttonImagePagingNext = this.buttonImagePagingBack = this.buttonImageUndocked = this.panelCloseButton = this.gridButtonTemplate = null; this.spacerY = this.spacerX = this.maxNumberofGridButtons = this.gridButtonCols = this.gridButtonRows = 0; this.betInfoType = this.valueTextMap = this.lastValueText = this.undockedTextAttributes = null; GT487.prototype.initialConstructor_2.call(this, a, b); this.gridButtonTemplate = b.gridButtonTemplate; this.panelCloseButton = b.panelCloseButton; this.buttonImageUndocked = b.buttonImageUndocked; this.gridButtonRows = b.gridButtonRows; this.gridButtonCols = b.gridButtonCols; this.maxNumberofGridButtons = b.maxNumberofGridButtons; this.spacerX = b.spacerX; this.spacerY = b.spacerY; }, getGridButtonTemplate_0: function () { return this.gridButtonTemplate; }, setGridButtonTemplate_1: function (a) { this.gridButtonTemplate = a; return this; }, getPanelCloseButton_0: function () { return this.panelCloseButton; }, setPanelCloseButton_1: function (a) { this.panelCloseButton = a; return this; }, getGridButtonRows_0: function () { return this.gridButtonRows; }, setGridButtonRows_1: function (a) { this.gridButtonRows = a; return this; }, getGridButtonCols_0: function () { return this.gridButtonCols; }, setGridButtonCols_1: function (a) { this.gridButtonCols = a; return this; }, setMaxNumberOfGridButtons_1: function (a) { this.maxNumberofGridButtons = a; return this; }, getMaxNumberofGridButtons_0: function () { return this.maxNumberofGridButtons; }, getSpacerX_0: function () { return this.spacerX; }, setSpacerX_1: function (a) { this.spacerX = a; return this; }, getSpacerY_0: function () { return this.spacerY; }, setSpacerY_1: function (a) { this.spacerY = a; return this; }, getButtonImageUndocked_0: function () { return this.buttonImageUndocked; }, setButtonImageUndocked_1: function (a) { this.buttonImageUndocked = a; }, getButtonImagePagingBack_0: function () { return this.buttonImagePagingBack; }, setButtonImagePagingBack_1: function (a) { this.buttonImagePagingBack = a; return this; }, getButtonImagePagingNext_0: function () { return this.buttonImagePagingNext; }, setButtonImagePagingNext_1: function (a) { this.buttonImagePagingNext = a; return this; }, setUndockedTextAttributes_1: function (a) { this.undockedTextAttributes = a; }, getUndockedTextAttributes_0: function () { return this.undockedTextAttributes; }, setLastValueText_1: function (a) { this.lastValueText = a; return this; }, getLastValueText_0: function () { return this.lastValueText; }, setValueTextMap_1: function (a) { this.valueTextMap = a; return this; }, getValueTextMap_0: function () { return null == this.valueTextMap ? null : this.valueTextMap.clone_0(); }, setBetInfoType_1: function (a) { this.betInfoType = a; return this; }, getBetInfoType_0: function () { return this.betInfoType; }, getImageResources_0: function () { var a = GT487.prototype.getImageResources_0.call(this); GT1533.prototype.vectorCopy_2(this.gridButtonTemplate.getImageResources_0(), a); GT1533.prototype.vectorCopy_2(this.panelCloseButton.getImageResources_0(), a); a.addElement_1(this.buttonImageUndocked); a.addElement_1(this.buttonImagePagingBack); a.addElement_1(this.buttonImagePagingNext); return a; }, getSoundResources_0: function () { var a = GT487.prototype.getSoundResources_0.call(this); GT1533.prototype.vectorCopy_2(this.gridButtonTemplate.getSoundResources_0(), a); GT1533.prototype.vectorCopy_2(this.panelCloseButton.getSoundResources_0(), a); return a; }, }, "GT446", [] ), GT1389 = Class.extend( { initialConstructor_0: function () { this.storedPositions = this.mainGuiContainer = this.gameConsoleContainer = this.gameConsole = this.formatter = this.skinManager = this.deviceStrategy = null; this.layout = 0; this.textProvider = null; }, getDeviceStrategy_0: function () { return this.deviceStrategy; }, getSkinManager_0: function () { return this.skinManager; }, getResourceManager_0: function () { return this.skinManager.getResourceManager_0(); }, getText_1: function (a) { return this.skinManager.getText_1(a); }, getImage_1: function (a) { return null == a ? null : this.skinManager.getResourceManager_0().getImage_1(a); }, getTimer_0: function () { return this.skinManager.getTimer_0(); }, getSoundPlayer_0: function () { return this.skinManager.getSoundPlayer_0(); }, getEventDispatcher_0: function () { return this.skinManager.getEventDispatcher_0(); }, setFormatter_1: function (a) { this.formatter = a; }, getFormatter_0: function () { return this.formatter; }, enableCatcher_0: function () { GT1650.prototype.assertExp_2(null != this.gameConsole, "GameConsole must be set before usage!"); this.gameConsole.enableCatcher_0(); }, disableCatcher_0: function () { GT1650.prototype.assertExp_2(null != this.gameConsole, "GameConsole must be set before usage!"); this.gameConsole.disableCatcher_0(); }, refreshMask_0: function () { null != this.gameConsole && this.gameConsole.refreshMask_0(); }, removeMask_0: function () { null != this.gameConsole && this.gameConsole.removeMask_0(); }, setGameConsole_1: function (a) { this.gameConsole = a; }, setGameConsoleContainer_1: function (a) { this.gameConsoleContainer = a; }, getGameConsoleContainer_0: function () { return this.gameConsoleContainer; }, setMainGuiContainer_1: function (a) { this.mainGuiContainer = a; }, getMainGuiContainer_0: function () { return this.mainGuiContainer; }, storePositions_1: function (a) { this.storedPositions = a; GT1389.prototype.Log.t_1("UI Neon: component positions are going to be saved " + a); var b = new GT1284(GT1284.prototype.STORE_CONSOLE_POSITIONS_EVENT, this), d = new java_util_JavaScriptHashtable(); d.put_2("param1", null == a ? "" : a); b.setParameters_1(d); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(b); null == a || a.isEmpty_0() || (this.layout = GT1533.prototype.LAYOUT_CUSTOM); }, getStoredPositions_0: function () { return this.storedPositions; }, setLayout_1: function (a) { this.layout = a; }, getLayout_0: function () { return this.layout; }, isPositioningInProgress_0: function () { return null != this.gameConsole ? this.gameConsole.isPositioningInProgress_0() : !0; }, getBetInfo_4: function (a, b, d, e) { var f = null; GT1533.prototype.INFO_BASE_BET.equals_1(a) ? (f = "(" + this.getText_1(GT1607.prototype.TT_BASE_BET) + " " + this.formatMoney_2(b, !0) + ")") : GT1533.prototype.INFO_TOTAL_BET.equals_1(a) ? (f = this.getText_1(GT1607.prototype.TT_TOTAL_BET) + " " + this.formatMoney_2(b * d, !0)) : GT1533.prototype.INFO_HIDDEN.equals_1(a) ? (f = " ") : ((a = Math.div(b * d, e)), (f = 1 > a ? " " : "(" + this.getText_1(GT1607.prototype.TT_BET_PER_LINE) + " " + this.formatMoney_2(a, !0) + ")")); return f; }, formatMoney_2: function (a, b) { var d = this.getFormatter_0(); return instanceOf(d, GT414) ? d.format_3(a, GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO, b) : d.format_1(a); }, setTextProvider_1: function (a) { this.textProvider = a; }, getTextProvider_0: function () { return this.textProvider; }, getWinPrefix_3: function (a, b, d) { return null == this.textProvider ? null : this.getText_1(this.textProvider.getWinPrefix_3(a, b, d)); }, }, "GT1389", [] ); GT1389.prototype.setAdaptiveSpacingUsingFactor_2 = function (a, b) { if (GT1560.prototype.isAlive_1(a)) { a.setAdaptiveSpacing_1(!1); var d = a.getAllFontMetrics_0(); if (null != d) { for (var e = [].createArray(d.length).init(0), f = 0; f < d.length; f++) e[f] = Integer.truncate_1(d[f].getHeight_0() * b); a.setSpacings_1(e); } } }; GT1389.prototype.destroy_0 = function () { null != GT1389.prototype.instance && (GT1389.prototype.Log.t_1("GameConsole: Helper destroyed."), (GT1389.prototype.instance.skinManager = null), (GT1389.prototype.instance.deviceStrategy = null), (GT1389.prototype.instance.formatter = null), (GT1389.prototype.instance.gameConsole = null), (GT1389.prototype.instance = null)); }; GT1389.prototype.getInstance_0 = function () { return GT1389.prototype.instance; }; GT1389.prototype.createInstance_2 = function (a, b) { null == GT1389.prototype.instance && (GT1389.prototype.Log.t_1("GameConsole: Helper instantiated."), (GT1389.prototype.instance = new GT1389()), (GT1389.prototype.instance.deviceStrategy = a), (GT1389.prototype.instance.skinManager = b)); return GT1389.prototype.instance; }; GT1389.prototype.LOGGER_KEY = "ui.neon"; GT1389.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT1389.prototype.instance = null; var GT1519 = Class.extend( { initialConstructor_0: function () { this.gameConsoleHandlerGeneral = this.gameConsoleHandlerSlot = this.viewData = this.consoleTopContainer = this.componentMover = this.builder = this.deviceStrategy = null; this.layout = 0; this.coreArea = this.contentArea = this.canvas = this.blurFilter = null; this.deepWalletPlayer = this.maskDisabled = this.catcherEnabled = this.resetPositionsInProgress = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1519.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, GT1533.prototype.LAYOUT_STANDARD, k); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.gameConsoleHandlerGeneral = this.gameConsoleHandlerSlot = this.viewData = this.consoleTopContainer = this.componentMover = this.builder = this.deviceStrategy = null; this.layout = 0; this.coreArea = this.contentArea = this.canvas = this.blurFilter = null; this.deepWalletPlayer = this.maskDisabled = this.catcherEnabled = this.resetPositionsInProgress = !1; Class.prototype.initialConstructor_0.call(this); this.layout = k; this.deviceStrategy = GT1389.prototype.getInstance_0().getDeviceStrategy_0(); this.builder = a; this.componentMover = b; this.contentArea = f; this.coreArea = g; this.deepWalletPlayer = m; this.consoleTopContainer = this.deviceStrategy.createLayout_4(this.builder.getFactory_0(), f, g, k); this.applyAppletParemeters_1(this.consoleTopContainer); this.registerMoveable_1(this.consoleTopContainer); a.createUIComponents_1(this.consoleTopContainer); a = GT1389.prototype.getInstance_0().getEventDispatcher_0(); this.gameConsoleHandlerGeneral = new GT588(a, d); this.gameConsoleHandlerSlot = new GT743(a, e); }, applyAppletParemeter_3: function (a, b, d) { null != a && "0".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(b)) && (null != d && d.startsWith_1(GT1607.prototype.MENUITEM_PREFIX) ? this.removeMenuItemFromMenu_2(a, d) : this.removeComponentFromConsole_2(a, d)); }, applyAppletParemeters_1: function (a) { this.applyAppletParemeter_3(a, "bottombar.show", GT1607.prototype.OVERLAY_CONTAINER); this.applyAppletParemeter_3(a, "gamemenu.logo.show", GT1607.prototype.OVERLAY_LOGO); this.applyAppletParemeter_3(a, "button.fullscreen.show", GT1607.prototype.OVERLAY_SCREENMODE); this.applyAppletParemeter_3(a, "field.roundid.show", GT1607.prototype.OVERLAY_ROUNDID); this.applyAppletParemeter_3(a, "clock.show", GT1607.prototype.OVERLAY_CLOCK); this.applyAppletParemeter_3(a, "button.deposit.show", GT1607.prototype.MENUITEM_DEPOSIT); this.applyAppletParemeter_3(a, "button.paytable.show", GT1607.prototype.MENUITEM_PAYTABLE); this.deepWalletPlayer && this.removeMenuItemFromMenu_2(a, GT1607.prototype.MENUITEM_DEPOSIT); this.applyAppletParemeter_3(a, "button.exit.show", GT1607.prototype.MENUITEM_EXIT); this.applyAppletParemeter_3(a, "button.exit.show", GT1607.prototype.OVERLAY_EXIT); this.applyAppletParemeter_3(a, "button.sound.show", GT1607.prototype.OVERLAY_SOUND_ONLY); this.applyAppletParemeter_3(a, "button.sound.show", GT1607.prototype.OVERLAY_SOUND_AND_MUSIC); this.applyAppletParemeter_3(a, "button.sound.show", GT1607.prototype.OVERLAY_SOUND_OFF); this.applyAppletParemeter_3(a, "button.help.show", GT1607.prototype.MENUITEM_HELP); this.applyAppletParemeter_3(a, "button.replay.show", GT1607.prototype.MENUITEM_REPLAY); this.applyAppletParemeter_3(a, "button.settings.show", GT1607.prototype.MENUITEM_SETTINGS); this.applyAppletParemeter_3(a, "hasreplay", GT1607.prototype.MENUITEM_REPLAY); null != a && "0".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("gamemenu.show")) && (this.removeComponentFromConsole_2(a, GT1607.prototype.OVERLAY_CONTAINER), this.removeMenuItemFromMenu_2(a, GT1607.prototype.MENUITEM_EXIT), this.removeMenuItemFromMenu_2(a, GT1607.prototype.MENUITEM_HELP), this.removeMenuItemFromMenu_2(a, GT1607.prototype.MENUITEM_REPLAY)); this.applyAppletParemeter_3(a, "neon.maxbet.show", GT1607.prototype.MAXBET); this.applyAppletParemeter_3(a, "button.menu.show", GT1607.prototype.MENU); this.applyAppletParemeter_3(a, "spinner.lines.show", GT1607.prototype.LINES); this.applyAppletParemeter_3(a, "spinner.autoplay.show", GT1607.prototype.AUTOPLAY); this.applyAppletParemeter_3(a, "spinner.betperline.show", GT1607.prototype.BETMENU); this.applyAppletParemeter_3(a, "button.start.show", GT1607.prototype.SPIN); this.applyAppletParemeter_3(a, "field.status.show", GT1607.prototype.CREDIT_WIN_BUTTON); }, removeComponentFromConsole_2: function (a, b) { var d = a.getComponentByName_1(b); if (null != d) { var e = d.getParent_0(); if (null != e) { e.removeComponent_1(d); var f = GT1607.prototype.OVERLAY_LEFT_SIDE_CONTAINER.equals_1(e.getName_0()), d = GT1607.prototype.OVERLAY_RIGHT_SIDE_CONTAINER.equals_1(e.getName_0()); if (f || d) (e = e.getChildren_0().get_1(0)), instanceOf(e, GT710) ? (d ? e.setBorderRight_1(!0) : e.setBorderLeft_1(!0)) : instanceOf(e, GT816) && (d ? e.setBorderRight_1(!0) : e.setBorderLeft_1(!0)); } } }, removeMenuItemFromMenu_2: function (a, b) { var d = a.getComponentByName_1(GT1607.prototype.MENU); instanceOf(d, GT269) && (d = d.getAdaptee_0()); instanceOf(d, GT904) && d.removeMenuItemByName_1(b); }, refreshMask_0: function () { if (null != this.consoleTopContainer && !this.resetPositionsInProgress && !this.maskDisabled) { var a = this.retrieveMainContainer_0(); null != this.blurFilter && a.removeFilter_1(this.blurFilter); this.blurFilter = new GT1395(); this.blurFilter.setBlurParameter_2(GT1519.prototype.BLUR_X, GT1519.prototype.BLUR_Y); var b = this.createMask_1(a); this.blurFilter.setMaskTextureImageParameter_1(b); a.addFilter_1(this.blurFilter); } }, removeMask_0: function () { if (null != this.consoleTopContainer) { GT1560.prototype.destroyIfAlive_1(this.canvas); var a = this.retrieveMainContainer_0(); null != this.blurFilter && (a.removeFilter_1(this.blurFilter), (this.blurFilter = null)); } }, disableMask_0: function () { this.maskDisabled = !0; this.removeMask_0(); }, createMask_1: function (a) { GT1519.prototype.Log.t_1("UI Neon: blur mask is being created..."); GT1560.prototype.destroyIfAlive_1(this.canvas); this.canvas = new GT1573(a, 0, 0, a.getWidth_0(), a.getHeight_0()); this.canvas.fillRect_5(GT1634.prototype.black, 0, 0, a.getWidth_0(), a.getHeight_0()); this.canvas.hide_1(!0); this.createMask_2(this.consoleTopContainer, this.canvas); return this.canvas.getImage_0(); }, createMask_2: function (a, b) { var d = a.getObject_0(); null != d && d.drawMask_1(b); if (instanceOf(a, GT461)) for (var d = a.getChildren_0(), e = 0; e < d.size_0(); e++) this.createMask_2(d.get_1(e), b); }, updateConsole_1: function (a) { if (null == this.consoleTopContainer) GT1519.prototype.Log.i_1("UI Neon: Console update requested but console has been destroyed!"); else if (null == a) GT1519.prototype.Log.i_1("UI Neon: Console update skipped as no viewdata is set!"); else { var b = a.getViewData_1(GT1184.prototype.TRIGGERING_TIME); GT1519.prototype.Log.trace && GT1519.prototype.Log.t_1("UI Neon: Console update at " + b + " for view data: " + a); this.viewData = a; this.updateUi_1(this.consoleTopContainer); GT1519.prototype.Log.trace && GT1519.prototype.Log.t_1("UI Neon: Console update finished."); } }, updateConsoleTime_1: function (a) { null != this.consoleTopContainer && this.updateUiTime_2(this.consoleTopContainer, a); }, registerMoveable_1: function (a) { if (null != this.componentMover && (instanceOf(a, GT1587) && (this.componentMover.addComponent_1(a), GT1519.prototype.Log.t_1("UI Neon: Container is registered for moveable support " + a)), instanceOf(a, GT461))) { a = a.getChildren_0(); for (var b = 0; b < a.size_0(); b++) this.registerMoveable_1(a.get_1(b)); } }, updateUi_1: function (a) { var b = a.getObject_0(); null != b && b.updateUi_1(this.viewData); if (instanceOf(a, GT461)) for (a = a.getChildren_0(), b = 0; b < a.size_0(); b++) this.updateUi_1(a.get_1(b)); }, updateUiTime_2: function (a, b) { var d = a.getObject_0(); null != d && d.updateUiTime_1(b); if (instanceOf(a, GT461)) for (var d = a.getChildren_0(), e = 0; e < d.size_0(); e++) this.updateUiTime_2(d.get_1(e), b); }, setActive_2: function (a, b) { if (null != a) { var d = a.getObject_0(); null != d && d.setComponentActive_1(b); if (instanceOf(a, GT461)) for (var d = a.getChildren_0(), e = 0; e < d.size_0(); e++) this.setActive_2(d.get_1(e), b); } }, generateJSONSaveState_0: function () { return this.consoleTopContainer.generateSaveStateJSON_0(); }, loadJSONSaveState_1: function (a) { this.deviceStrategy.restoreLayoutFromJSON_1(a); }, destroy_0: function () { this.destroy_1(this.consoleTopContainer); this.consoleTopContainer = null; this.gameConsoleHandlerGeneral.removeAllConsoleEvents_0(); this.gameConsoleHandlerGeneral = null; this.gameConsoleHandlerSlot.removeAllConsoleEvents_0(); this.gameConsoleHandlerSlot = null; }, destroy_1: function (a) { if (instanceOf(a, GT461)) { for (var b = a.getChildren_0(), d = 0; d < b.size_0(); d++) { var e = b.get_1(d); this.destroy_1(e); } b.removeAllElements_0(); } instanceOf(a, GT1587) && (this.componentMover.removeComponent_1(a), GT1519.prototype.Log.t_1("Container is removed from moveable support " + a)); a.destroy_0(); }, setActive_1: function (a) { GT1519.prototype.Log.trace && GT1519.prototype.Log.t_1("UI Neon: Console set to " + (a ? "active" : "inactive")); this.setActive_2(this.consoleTopContainer, a); }, updateConsole_2: function (a, b) { this.updateUi_3(this.consoleTopContainer, a, b); }, updateUi_3: function (a, b, d) { GT1650.prototype.assertExp_2(null != b, "Invalid parameter. ComponentKey cannot be null."); var e = a.getObject_0(); null != e && 0 <= b.indexOf_1(a.getName_0()) && e.updateUi_1(d); if (instanceOf(a, GT461)) for (a = a.getChildren_0(), e = 0; e < a.size_0(); e++) this.updateUi_3(a.get_1(e), b, d); }, getPositionsForLayout_1: function (a) { return this.deviceStrategy.createLayout_4(null, this.contentArea, this.coreArea, a).generateSaveStateJSON_0(); }, isConsoleDialogOpen_0: function () { var a = this.consoleTopContainer.getComponentByName_1(GT1607.prototype.SETTINGS_PANEL), b = null != a && null != a.getObject_0(); b && (b = a.getObject_0().isVisible_0()); return b; }, disableCatcher_0: function () { if (this.catcherEnabled) { this.retrieveMainContainer_0().setColorTransformation_1(null); var a = this.consoleTopContainer.getCatcher_0(); null != a && a.setComponentActive_1(!1); } this.catcherEnabled = !1; }, enableCatcher_0: function () { this.retrieveMainContainer_0().setColorTransformation_1(GT1063.prototype.GrayOut); var a = this.consoleTopContainer.getCatcher_0(); null != a && a.setComponentActive_1(!0); this.catcherEnabled = !0; }, retrieveMainContainer_0: function () { return GT1389.prototype.getInstance_0().getMainGuiContainer_0(); }, setVisibleArea_1: function (a) { this.consoleTopContainer.setVisibleArea_1(a); }, getLayout_0: function () { return this.layout; }, resetPositions_1: function (a) { null == a || a.isEmpty_0() || (this.removeMask_0(), (this.resetPositionsInProgress = !0), (a = GT1678.prototype.deserializeObject_1(a)), this.resetPositions_2(this.consoleTopContainer, a), this.consoleTopContainer.requestLayout_0(), (this.resetPositionsInProgress = !1), this.refreshMask_0()); }, resetPositions_2: function (a, b) { if (instanceOf(a, GT461)) { for (var d = a.getChildren_0().clone_0(), e = 0; e < d.size_0(); e++) { var f = b.get_1(d.get_1(e).getName_0()); null != f && ((f = Integer.truncate_1(f.get_1("order").doubleValue_0())), d.get_1(e).setOrder_1(f)); } GT1679.prototype.sortVector_3(d, new GT1020(), !0); for (e = 0; e < d.size_0(); e++) { var g = !1, f = b.get_1(d.get_1(e).getName_0()); if (null != f) { var k = Integer.truncate_1(f.get_1("x").doubleValue_0()), m = Integer.truncate_1(f.get_1("y").doubleValue_0()); if (k < a.getComponentX_0() || m < a.getComponentY_0() || k > a.getComponentX_0() + a.getComponentWidth_0() || m > a.getComponentY_0() + a.getComponentHeight_0()) g = !0; } (a.isAutoLayoutingSupported_0() && !g) || this.resetPositions_2(d.get_1(e), b); } } else instanceOf(a, GT269) && b.containsKey_1(a.getName_0()) && ((f = b.get_1(a.getName_0())), null != f && ((k = Integer.truncate_1(f.get_1("x").doubleValue_0())), (m = Integer.truncate_1(f.get_1("y").doubleValue_0())), (f = Integer.truncate_1(f.get_1("order").doubleValue_0())), (d = new GT1633(k, m)), (e = new GT1633(a.getComponentX_0(), a.getComponentY_0())), a.setOrder_1(f), (d.x == e.x && d.y == e.y) || this.componentMover.moveTo_3(e, d, !0))); }, isPositioningInProgress_0: function () { return this.resetPositionsInProgress; }, }, "GT1519", [GT1604] ); GT1519.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT1519.prototype.BLUR_X = 11; GT1519.prototype.BLUR_Y = 22; var GT588 = GT712.extend( { initialConstructor_0: function () { GT712.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT712.prototype.initialConstructor_3.call(this, a, GT588.prototype.eventIDs, b); }, handleConsoleEvent_1: function (a) { GT588.prototype.Log.t_1("Handling console event: " + a); this.sendConsoleEventToClient_1(a); return !1; }, }, "GT588", [] ); GT588.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT588.prototype.eventIDs = [ GT1284.prototype.GENERIC_CONSOLE_EVENT, GT1284.prototype.MENU_BUTTON_PRESSED, GT1284.prototype.EXIT_BUTTON_PRESSED, GT1284.prototype.DEPOSIT_BUTTON_PRESSED, GT1284.prototype.SCREEN_TOGGLE_BUTTON_PRESSED, GT1284.prototype.SETTINGS_BUTTON_PRESSED, GT1284.prototype.REPLAY_BUTTON_PRESSED, GT1284.prototype.HELP_BUTTON_PRESSED, GT1284.prototype.SOUND_BUTTON_PRESSED, ]; var GT1059 = GT1189.extend( { initialConstructor_0: function () { GT1189.prototype.initialConstructor_0.call(this); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_MEDIUM, new GT1443(GT1059.prototype.FONT, !0, !1, 90, -10, 5)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_LARGE, new GT1443(GT1059.prototype.FONT, !0, !1, 160, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_EXTRA_LARGE, new GT1443(GT1059.prototype.FONT, !0, !1, 240, -10, 15)); this.addFontConfig_2(GT1237.prototype.FCK_SECONDARY_BUTTON, new GT1443(GT1059.prototype.FONT, !0, !1, 120, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_PRIMARY_BUTTON, new GT1443(GT1059.prototype.FONT, !0, !1, 200, -15, 10)); this.addFontConfig_2(GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON, new GT1443(GT1059.prototype.FONT, !0, !1, 120, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_MENUITEM, new GT1443(GT1059.prototype.FONT, !1, !1, 230, -10, 15)); this.addFontConfig_2(GT1237.prototype.FCK_OVERLAY, new GT1443(GT1059.prototype.FONT, !0, !1, 90, -10, 1)); this.addFontConfig_2(GT1237.prototype.FCK_WIN, new GT1443(GT1059.prototype.FONT, !0, !1, 170, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_STATUS, new GT1443(GT1059.prototype.FONT_LIGHT, !1, !1, 170, -5, 15)); this.addFontConfig_2(GT1237.prototype.FCK_CREDITS, new GT1443(GT1059.prototype.FONT, !0, !1, 120, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_VERSION, new GT1443(GT1059.prototype.FONT, !0, !1, 90, -10, 5)); }, }, "GT1059", [] ); GT1059.prototype.FONT = GT1393.prototype.ROBOTO.name_0(); GT1059.prototype.FONT_LIGHT = GT1393.prototype.ROBOTO_LIGHT.name_0(); var GT1109 = GT1189.extend( { initialConstructor_0: function () { GT1189.prototype.initialConstructor_0.call(this); var a = new GT1443(GT1109.prototype.FONT, !0, !1, 240, -10, 15); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_MEDIUM, new GT1443(GT1109.prototype.FONT, !0, !1, 130, -10, 7)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_LARGE, new GT1443(GT1109.prototype.FONT, !0, !1, 200, -10, 12)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_EXTRA_LARGE, a); this.addFontConfig_2(GT1237.prototype.FCK_SECONDARY_BUTTON, new GT1443(GT1109.prototype.FONT, !0, !1, 140, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_MENUITEM, new GT1443(GT1109.prototype.FONT, !1, !1, 260, -10, 15)); this.addFontConfig_2(GT1237.prototype.FCK_BET_LINES_PANEL_BUTTON, new GT1443(GT1109.prototype.FONT, !0, !1, 200, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_PRIMARY_BUTTON, a); this.addFontConfig_2(GT1237.prototype.FCK_WIN, a); this.addFontConfig_2(GT1237.prototype.FCK_STATUS, new GT1443(GT1109.prototype.FONT_LIGHT, !1, !1, 240, -10, 13)); this.addFontConfig_2(GT1237.prototype.FCK_CREDITS, new GT1443(GT1109.prototype.FONT, !0, !1, 160, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_VERSION, new GT1443(GT1109.prototype.FONT, !0, !1, 130, -10, 7)); }, }, "GT1109", [] ); GT1109.prototype.FONT = GT1393.prototype.ROBOTO.name_0(); GT1109.prototype.FONT_LIGHT = GT1393.prototype.ROBOTO_LIGHT.name_0(); var GT689 = GT1109.extend( { initialConstructor_0: function () { GT1109.prototype.initialConstructor_0.call(this); this.addFontConfig_2(GT1237.prototype.FCK_WIN, new GT1443(GT1109.prototype.FONT, !0, !1, 350, -10, 15)); this.addFontConfig_2(GT1237.prototype.FCK_LABEL_LARGE, new GT1443(GT1109.prototype.FONT, !0, !1, 200, -20, 8)); this.addFontConfig_2(GT1237.prototype.FCK_STATUS, new GT1443(GT1109.prototype.FONT_LIGHT, !1, !1, 400, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_CREDITS, new GT1443(GT1109.prototype.FONT, !0, !1, 230, -10, 10)); this.addFontConfig_2(GT1237.prototype.FCK_MENUITEM, new GT1443(this.FONT, !1, !1, 300, -10, 10)); }, }, "GT689", [] ), GT1419 = GT653.extend( { initialConstructor_0: function () { this.finishCallback = this.button = null; GT653.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1419.prototype.initialConstructor_6.call(this, a, b, d, e, f, !0); }, initialConstructor_6: function (a, b, d, e, f, g) { this.finishCallback = this.button = null; GT653.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); this.button = b; this.finishCallback = new GT870(b, d, e); this.addFinishCallback_1(this.finishCallback); }, setTargetX_1: function (a) { GT653.prototype.setTargetX_1.call(this, a); this.removeFinishCallback_1(this.finishCallback); this.finishCallback = new GT870(this.getObject_0(), this.getTargetX_0(), this.getTargetY_0()); this.addFinishCallback_1(this.finishCallback); }, setTargetY_1: function (a) { GT653.prototype.setTargetY_1.call(this, a); this.removeFinishCallback_1(this.finishCallback); this.finishCallback = new GT870(this.getObject_0(), this.getTargetX_0(), this.getTargetY_0()); this.addFinishCallback_1(this.finishCallback); }, start_0: function () { GT653.prototype.start_0.call(this); this.button.setMover_1(this); }, killAndTrigger_1: function (a) { GT653.prototype.killAndTrigger_1.call(this, a); this.button.getMover_0() == this && this.button.setMover_1(null); }, stopAnimation_0: function () { this.killWithoutTriggers_0(); }, finishAnimation_0: function () { this.kill_0(); }, action_1: function (a) { a = GT653.prototype.action_1.call(this, a); this.button.getAnchorX_0() == this.getTargetX_0() && this.button.getAnchorY_0() == this.getTargetY_0() && (a = !1); a || (this.button.getMover_0() == this && this.button.setMover_1(null)); return a; }, getCardButton_0: function () { return this.button; }, }, "GT1419", [] ), GT447 = GT1190.extend( { initialConstructor_0: function () { this.container = this.colorTransformation = this.initialColorTransformation = null; this.initialColorTransformationProvided = !1; this.duration = this.pausedTime = this.startTime = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT447.prototype.initialConstructor_6.call(this, a, b, e, f, g, k); this.setInitialColorTransformation_1(d); }, determineInitialColorTransformation_0: function () { null != this.container ? null != this.container.getColorTransformation_0() ? (this.initialColorTransformation = this.container.getColorTransformation_0()) : (this.initialColorTransformation = new GT1063(100)) : (this.initialColorTransformation = new GT1063(100)); }, initialConstructor_6: function (a, b, d, e, f, g) { this.container = this.colorTransformation = this.initialColorTransformation = null; this.initialColorTransformationProvided = !1; this.duration = this.pausedTime = this.startTime = 0; GT1190.prototype.initialConstructor_3.call(this, a, f, g); GT1650.prototype.assertExp_2(GT1560.prototype.isAlive_1(b), "Given GUIContainer object is null and/or not alive!"); GT1650.prototype.assertExp_2(e > f, "Animation's duration must be bigger than the given update interval!"); this.container = b; this.determineInitialColorTransformation_0(); this.colorTransformation = null == d ? new GT1063(100) : d; this.pausedTime = this.startTime = -1; this.setDuration_1(e); GT447.prototype.LOG.verbose && (GT1650.prototype.log_1("INITIAL => " + this.initialColorTransformation.toString()), GT1650.prototype.log_1("TARGET => " + this.colorTransformation.toString())); }, initialConstructor_5: function (a, b, d, e, f) { GT447.prototype.initialConstructor_6.call(this, a, b, d, e, 50, f); }, initialConstructor_4: function (a, b, d, e) { GT447.prototype.initialConstructor_5.call(this, a, b, d, e, !1); }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, getDuration_0: function () { return this.duration; }, setInitialColorTransformation_1: function (a) { this.isRunning_0() || ((this.initialColorTransformation = null != a ? a : new GT1063(100)), (this.initialColorTransformationProvided = !0)); }, getInitialColorTransformation_0: function () { return this.initialColorTransformation; }, setColorTransformation_1: function (a) { this.isRunning_0() || (this.colorTransformation = null != a ? a : new GT1063(100)); }, getColorTransformation_0: function () { return this.colorTransformation; }, setContainer_1: function (a) { GT1650.prototype.assertExp_2(GT1560.prototype.isAlive_1(a), "Given GUIContainer object to apply the color transformation to is null and/or not alive!"); !this.isRunning_0() && GT1560.prototype.isAlive_1(a) && (this.container = a); }, getContainer_0: function () { return this.container; }, reset_0: function () { this.resetImpl_0(); this.initialColorTransformationProvided || this.determineInitialColorTransformation_0(); this.pausedTime = this.startTime = -1; }, calculateTransformation_1: function (a) { var b = this.initialColorTransformation.getPercentageRedFromRed_0(), d = this.initialColorTransformation.getPercentageGreenFromRed_0(), e = this.initialColorTransformation.getPercentageBlueFromRed_0(), f = this.initialColorTransformation.getOffsetRed_0(), g = this.initialColorTransformation.getPercentageRedFromGreen_0(), k = this.initialColorTransformation.getPercentageGreenFromGreen_0(), m = this.initialColorTransformation.getPercentageBlueFromGreen_0(), n = this.initialColorTransformation.getOffsetGreen_0(), p = this.initialColorTransformation.getPercentageRedFromBlue_0(), q = this.initialColorTransformation.getPercentageGreenFromBlue_0(), r = this.initialColorTransformation.getPercentageBlueFromBlue_0(), t = this.initialColorTransformation.getOffsetBlue_0(), u = this.colorTransformation.getPercentageRedFromRed_0(), B = this.colorTransformation.getPercentageGreenFromRed_0(), A = this.colorTransformation.getPercentageBlueFromRed_0(), C = this.colorTransformation.getOffsetRed_0(), E = this.colorTransformation.getPercentageRedFromGreen_0(), F = this.colorTransformation.getPercentageGreenFromGreen_0(), D = this.colorTransformation.getPercentageBlueFromGreen_0(), H = this.colorTransformation.getOffsetGreen_0(), I = this.colorTransformation.getPercentageRedFromBlue_0(), L = this.colorTransformation.getPercentageGreenFromBlue_0(), J = this.colorTransformation.getPercentageBlueFromBlue_0(), M = this.colorTransformation.getOffsetBlue_0(), N = GT1677.prototype.division_2(a, this.duration); GT447.prototype.LOG.verbose && GT1650.prototype.log_1("Applying color transformation for " + N + " (started at " + this.startTime + "; passed time is " + a + "; should end at " + (this.startTime + this.duration) + ")"); return new GT1063( GT1672.prototype.doubleToInt_1((u - b) * N + b), GT1672.prototype.doubleToInt_1((E - g) * N + g), GT1672.prototype.doubleToInt_1((I - p) * N + p), GT1672.prototype.doubleToInt_1((C - f) * N + f), GT1672.prototype.doubleToInt_1((B - d) * N + d), GT1672.prototype.doubleToInt_1((F - k) * N + k), GT1672.prototype.doubleToInt_1((L - q) * N + q), GT1672.prototype.doubleToInt_1((H - n) * N + n), GT1672.prototype.doubleToInt_1((A - e) * N + e), GT1672.prototype.doubleToInt_1((D - m) * N + m), GT1672.prototype.doubleToInt_1((J - r) * N + r), GT1672.prototype.doubleToInt_1((M - t) * N + t) ); }, action_1: function (a) { if (!GT1560.prototype.isAlive_1(this.container)) return GT447.prototype.LOG.verbose && GT1650.prototype.log_1("ColorTransformationAnimator is stopped because the given GUIContainer object is null and/or not alive!"), !1; if (this.colorTransformation.isSame_1(this.initialColorTransformation)) return GT447.prototype.LOG.verbose && GT1650.prototype.log_1("ColorTransformationAnimator stops during first action call because both the initial & target color transformations are equal!"), !1; 0 > this.startTime && ((this.startTime = this.getStartTime_0()), (null != this.container.getColorTransformation_0() && this.container.getColorTransformation_0().isSame_1(this.initialColorTransformation)) || (this.container.setColorTransformation_1(this.initialColorTransformation), GT447.prototype.LOG.verbose && GT1650.prototype.log_1("Setting a new color transformation as initial value(s) " + this.initialColorTransformation.toString()))); var b = a - this.startTime; if (b >= this.duration) return ( this.container.setColorTransformation_1(this.colorTransformation), GT447.prototype.LOG.verbose && (GT1650.prototype.log_1("Applying color transformation for 1.0 (started at " + this.startTime + "; current time is " + a + " -> total time passed is " + b + ")"), GT1650.prototype.log_1(this.colorTransformation.toString())), !1 ); a = this.calculateTransformation_1(b); this.container.setColorTransformation_1(a); GT447.prototype.LOG.verbose && GT1650.prototype.log_1(a.toString()); return a.isSame_1(this.colorTransformation) ? !1 : !0; }, pause_0: function () { this.isRunning_0() && !this.isPaused_0() && (this.pausedTime = this.getTimer_0().currentTimeMillis_0()); GT1190.prototype.pause_0.call(this); }, resume_0: function () { if (this.isRunning_0() && this.isPaused_0()) { var a = this.pausedTime - this.startTime; this.startTime = this.getTimer_0().currentTimeMillis_0() - a; } GT1190.prototype.resume_0.call(this); }, }, "GT447", [GT1271] ); GT447.prototype.LOG = GT1650.prototype.getLogFlags_1("core.animator"); var GT1253 = Class.extend( { initialConstructor_0: function () { GT1253.prototype.initialConstructor_2.call(this, 0, 0); }, initialConstructor_2: function (a, b) { this.B = this.A = 0; GT1650.prototype.assertExp_2(0 <= a && 1 >= a && 0 <= b && 1 >= b && 1 >= a + b, "values not in range"); this.A = a; this.B = b; }, computeWay_1: function (a) { if (0 >= a) return 0; if (1 <= a) return 1; var b = this.B / (2 - this.A - this.B), d = this.A / (2 - this.A - this.B); return a <= this.A ? (d / (1 * this.A * this.A)) * a * a : a >= 1 - this.B ? 1 - (b / (1 * this.B * this.B)) * (1 - a) * (1 - a) : d + ((1 - b - d) / (1 - this.B - this.A)) * (a - this.A); }, }, "GT1253", [] ); GT1253.prototype.PREDEFINED_ACCELERATION = new GT1253(1, 0); GT1253.prototype.PREDEFINED_DECELERATION = new GT1253(0, 1); GT1253.prototype.PREDEFINED_PLAYCARD = new GT1253(0, 0.5); GT1253.prototype.PREDEFINED_TAKETRICK = new GT1253(0.3, 0.2); GT1253.prototype.PREDEFINED_ACCEL_DECEL = new GT1253(0.5, 0.5); var GT909 = GT1253.extend( { initialConstructor_0: function () { GT909.prototype.initialConstructor_1.call(this, 1); }, initialConstructor_1: function (a) { this.v = 0; GT1253.prototype.initialConstructor_0.call(this); this.v = a; }, computeWay_1: function (a) { return 0 >= a ? 0 : 1 <= a ? 1 : Math.pow_2(0.5 + Math.cos_1((1 + a) * Math.PI) / 2, this.v); }, }, "GT909", [] ), GT690 = GT1253.extend( { initialConstructor_0: function () { this.frequency = this.amplitude = this.pointOfOscillation = 0; GT1253.prototype.initialConstructor_0.call(this); this.pointOfOscillation = 0.4; this.amplitude = 0.15; this.frequency = 2; }, initialConstructor_3: function (a, b, d) { this.frequency = this.amplitude = this.pointOfOscillation = 0; GT1253.prototype.initialConstructor_0.call(this); 1 < a && (a = 1); 0 > a && (a = 0); this.pointOfOscillation = a; this.amplitude = b; this.frequency = d; }, computeWay_1: function (a) { var b = a; a < this.pointOfOscillation ? ((a /= this.pointOfOscillation), (b = a * a)) : ((a = (a - this.pointOfOscillation) / (1 - this.pointOfOscillation)), (b = 1 + this.amplitude * Math.sin_1(2 * this.frequency * Math.PI * a) * (1 - a))); return b; }, }, "GT690", [] ), GT794 = GT1076.extend( { initialConstructor_0: function () { this.pausedTime = this.startTime = this.duration = this.targetScaleY = this.targetScaleX = this.startScaleY = this.startScaleX = this.targetMoveY = this.targetMoveX = this.startMoveY = this.startMoveX = 0; this.useAnchorToMove = !1; this.motionGraph = null; GT1076.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT794.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, n, !1); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT794.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, k, m, m, n, p); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT794.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, n, p, q, !1); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.pausedTime = this.startTime = this.duration = this.targetScaleY = this.targetScaleX = this.startScaleY = this.startScaleX = this.targetMoveY = this.targetMoveX = this.startMoveY = this.startMoveX = 0; this.useAnchorToMove = !1; this.motionGraph = null; GT1076.prototype.initialConstructor_4.call(this, a, b, 1, r); this.setStartingPosition_2(d, e); this.setTargetPosition_2(f, g); this.setInitialScaling_2(k, m); this.setTargetScaling_2(n, p); this.setDuration_1(q); this.pausedTime = this.startTime = -1; this.useAnchorToMove = !0; }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.isRunning_0() || (this.duration = a); }, setStartingPosition_2: function (a, b) { this.isRunning_0() || ((this.startMoveX = a), (this.startMoveY = b)); }, setTargetPosition_2: function (a, b) { this.isRunning_0() || ((this.targetMoveX = a), (this.targetMoveY = b)); }, setInitialScaling_2: function (a, b) { this.isRunning_0() || ((this.startScaleX = a), (this.startScaleY = b)); }, setTargetScaling_2: function (a, b) { this.isRunning_0() || ((this.targetScaleX = a), (this.targetScaleY = b)); }, isUseAnchorToMove_0: function () { return this.useAnchorToMove; }, setUseAnchorToMove_1: function (a) { this.useAnchorToMove = a; }, setMotionGraph_1: function (a) { this.motionGraph = a; }, reset_0: function () { this.resetImpl_0(); this.pausedTime = this.startTime = -1; }, applyMovementAndScaleValues_4: function (a, b, d, e) { this.useAnchorToMove ? this.getObject_0().moveAnchor_2(a, b) : this.getObject_0().move_2(a, b); instanceOf(this.getObject_0(), GT1373) ? this.getObject_0().setScale_2(d, e) : GT794.prototype.LOG.v_1("Provided GUIObject doesn't implement the Transformable interface, so it can't be scaled! Use the MoveToPositionAnimator class instead if scaling isn't required."); }, action_1: function (a) { if (!GT1560.prototype.isAlive_1(this.getObject_0())) return !1; -1 == this.startTime && (this.startTime = this.getStartTime_0()); a -= this.startTime; if (a >= this.duration) return this.applyMovementAndScaleValues_4(this.targetMoveX, this.targetMoveY, this.targetScaleX, this.targetScaleY), !1; a = 0 >= this.duration ? 0 : (1 * a) / this.duration; 0 > a ? (a = 0) : 1 < a && (a = 1); null != this.motionGraph && 0 < a && 1 > a && (a = this.motionGraph.computeWay_1(a)); var b = GT1672.prototype.doubleToInt_1(this.startMoveX + (this.targetMoveX - this.startMoveX) * a), d = GT1672.prototype.doubleToInt_1(this.startMoveY + (this.targetMoveY - this.startMoveY) * a); this.applyMovementAndScaleValues_4(b, d, this.startScaleX + (this.targetScaleX - this.startScaleX) * a, this.startScaleY + (this.targetScaleY - this.startScaleY) * a); return !0; }, pause_0: function () { this.isRunning_0() && !this.isPaused_0() && (this.pausedTime = this.getTimer_0().currentTimeMillis_0()); GT1076.prototype.pause_0.call(this); }, resume_0: function () { if (this.isRunning_0() && this.isPaused_0()) { var a = this.pausedTime - this.startTime; this.startTime = this.getTimer_0().currentTimeMillis_0() - a; } GT1076.prototype.resume_0.call(this); }, }, "GT794", [GT1271] ); GT794.prototype.LOG = GT1650.prototype.getLogFlags_1("core.animator"); var GT1138 = GT1532.extend( { initialConstructor_0: function () { GT1532.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1532.prototype.initialConstructor_4.call(this, a, b, null, null); }, }, "GT1138", [] ); GT1138.prototype.KEYCODE_BACK = GT1677.prototype.generateID_0(); GT1138.prototype.KEYCODE_MENU = GT1677.prototype.generateID_0(); var GT1333 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.am = null; null != b && null != d && ((this.am = new AppMeasurement()), (this.am.trackingServer = b), (this.am.account = d)); }, track_3: function (a, b, d) { if (null != this.am) { var e = GT1333.prototype.LOG.verbose; this.am.pageName = "html5 game"; this.am.events = ""; for (var f = new StringBuffer(), g = 0; g < a.size_0(); g++) if (null != a.elementAt_1(g)) { var k = a.elementAt_1(g).intValue_0(); this.am.events = "" == this.am.events ? "event" + g + "=" + k.intValue_0() : this.am.events + ",event" + g + "=" + k.intValue_0(); 0 != f.length_0() && f.append_1(","); f.append_1("event" + g + "=" + k); } e && GT1650.prototype.log_1("TRACK: " + f.toString()); f = new StringBuffer(); for (g = 0; g < b.size_0(); g++) null != b.elementAt_1(g) && ((a = b.elementAt_1(g)), (this.am["eVar" + g] = a), 0 != f.length_0() && f.append_1(","), f.append_1("eVar" + g + "=" + a)); e && GT1650.prototype.log_1("EVARS: " + f.toString()); f = new StringBuffer(); for (g = 0; g < d.size_0(); g++) null != d.elementAt_1(g) && ((a = d.elementAt_1(g)), (this.am["prop" + g] = a), 0 != f.length_0() && f.append_1(","), f.append_1("prop" + g + "=" + a)); e && GT1650.prototype.log_1("PROPS: " + f.toString()); this.am.track(); for (g = 0; g < b.size_0(); g++) null != b.elementAt_1(g) && (this.am["eVar" + g] = ""); for (g = 0; g < d.size_0(); g++) null != d.elementAt_1(g) && (this.am["prop" + g] = ""); } }, }, "GT1333", [] ); GT1333.prototype.LOG = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); var GT1124 = Class.extend( { initialConstructor_0: function () { this.yCoords = this.xCoords = this.yCoords = this.xCoords = null; }, initialConstructor_1: function (a) { this.yCoords = this.xCoords = null; this.setCoordinates_1(a); }, setCoordinates_1: function (a) { GT1650.prototype.assertExp_2(0 == a.length % 2, "anzahl der koordinaten muss gerade sein (xy-paare)"); for (var b = [].createArray(Math.div(a.length, 2)).init(0), d = [].createArray(Math.div(a.length, 2)).init(0), e = 0; e < b.length; ++e) { var f = 2 * e; b[e] = a[f]; d[e] = a[f + 1]; } this.xCoords = b; this.yCoords = d; }, isClickablePosition_2: function (a, b) { var d = this.xCoords.length, e, f, g = !1; e = 0; for (f = d - 1; e < d; f = e++) ((this.yCoords[e] <= b && b < this.yCoords[f]) || (this.yCoords[f] <= b && b < this.yCoords[e])) && a < Math.div((this.xCoords[f] - this.xCoords[e]) * (b - this.yCoords[e]), this.yCoords[f] - this.yCoords[e]) + this.xCoords[e] && (g = !g); return g; }, getXCoords_0: function () { return this.xCoords; }, getYCoords_0: function () { return this.yCoords; }, }, "GT1124", [] ), GT1437 = GT1244.extend( { initialConstructor_0: function () { GT1244.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1437.prototype.initialConstructor_5.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0()); }, initialConstructor_5: function (a, b, d, e, f) { GT1244.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, resizeToContent_0: function () { for (var a = 0, b = 0, d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d), f = e.getX_0() + e.getWidth_0() - 0; f > a && (a = f); e = e.getY_0() + e.getHeight_0() - 0; e > b && (b = e); } (a == this.width && b == this.height) || this.resize_2(a, b); }, shrinkWrap_0: function () { if (0 < this.getChildCount_0()) { for (var a = Integer.MAX_VALUE, b = Integer.MAX_VALUE, d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d); e.getX_0() < a && (a = e.getX_0()); e.getY_0() < b && (b = e.getY_0()); } if (0 != a || 0 != b) this.scrollContent_2(-a, -b), this.move_2(this.x + a - 0, this.y + b - 0); } this.resizeToContent_0(); }, scrollContent_2: function (a, b) { if (0 != a || 0 != b) for (var d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d); e.move_2(e.getX_0() + a - 0, e.getY_0() + b - 0); } }, destroyChildrenOutside_0: function () { for (var a = this.getChildCount_0() - 1; 0 <= a; a--) { var b = this.getChild_1(a); (b.getX_0() >= this.width || b.getY_0() >= this.height || 0 >= b.getX_0() + b.getWidth_0() - 0 || 0 >= b.getY_0() + b.getHeight_0() - 0) && b.destroyImpl_2(a, !0); } }, moveToShowObjectPart_5: function (a, b, d, e, f) { var g = a.x; 0 >= g + b ? (g = -b) : g + b + e > this.width && (g = this.width - e - b); b = a.y; 0 >= b + d ? (b = -d) : b + d + f > this.height && (b = this.height - f - d); a.move_2(g, b); }, moveToShowMaximumContent_1: function (a) { var b = this.determinePositionToShowMaximumContent_3(this.width, a.getX_0(), a.getWidth_0()), d = this.determinePositionToShowMaximumContent_3(this.height, a.getY_0(), a.getHeight_0()); a.move_2(b, d); }, isFullyVisible_0: function () { return this.isRectangleFullyVisible_4(0, 0, this.width, this.height); }, isRectangleFullyVisible_4: function (a, b, d, e) { if (this.hidden || 0 > a || 0 > b || a + d > this.width || b + e > this.height) return !1; var f = this.getParent_0(); return null == f ? !0 : f.isRectangleFullyVisible_4(this.x + a, this.y + b, d, e); }, findDescendant_1: function (a) { if (this.getApplicationID_0() == a) return this; for (var b = 1; b < Integer.MAX_VALUE; b += 2) { var d = this.performDepthSearch_3(a, b, this); if (d != this) return d; } return null; }, performDepthSearch_3: function (a, b, d) { var e = this.getChildCount_0(); if (0 >= e) return null; for (var f = 1; e > 1 << f; ) f++; if (b < f) return d; for (var g = !1, k = 0; k < e; k++) { var m = this.getChild_1(k); if (null == m) GT1650.prototype.assertFailed_1("GUIContainer.performDepthSearch : a child is null, index: " + k); else { if (m.getApplicationID_0() == a) return m; if (instanceOf(m, GT1437) && ((m = m.performDepthSearch_3(a, b - f, d)), null != m)) { if (m != d) return m; g = !0; } } } return g ? d : null; }, findDescendantByPath_1: function (a) { for (var b = this, d = null, e = 0; e < a.length; e++) { d = b.findDescendant_1(a[e]); if (null == d) break; if (e == a.length - 1) return d; if (instanceOf(d, GT1437)) b = d; else break; } return null; }, hasDescendant_1: function (a) { for (; null != a; ) { if (a == this) return !0; a = a.getParent_0(); } return !1; }, getBounds_0: function () { return new GT1553(this.x, this.y, this.width, this.height); }, isOutsideParent_0: function () { var a = this.getParent_0(); return null == a || 0 >= this.x + this.width || 0 >= this.y + this.height || this.x >= a.width || this.y >= a.height ? !0 : !1; }, resizeAllRecursive_2: function (a, b) { for (var d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d); instanceOf(e, GT1437) ? e.resizeAllRecursive_2(a, b) : instanceOf(e, GT1525) && e.resize_2(a, b); } this.resize_2(a, b); }, resizeDirectional_4: function (a, b, d, e) { this.move_2(this.x - a, this.y - d); this.scrollContent_2(a, d); this.resize_2(this.width + a + b, this.height + d + e); }, print_2: function (a, b) { if (!(1 > b)) { GT1244.prototype.print_2.call(this, a, b); for (var d = 0; d < this.getChildCount_0(); d++) this.getChild_1(d).print_2(a + 1, b - 1); } }, count_0: function () { for (var a = GT1244.prototype.count_0.call(this), b = 0; b < this.getChildCount_0(); b++) a += this.getChild_1(b).count_0(); return a; }, centerChildrenHorizontally_0: function () { if (0 != this.getChildCount_0()) { for (var a = this.getWidth_0(), b = 0, d = 0; d < this.getChildCount_0(); d++) b += this.getChild_1(d).getWidth_0(); for (var d = Math.div(a - b, this.getChildCount_0()), e = Math.min_2(15, d), b = b + e * (this.getChildCount_0() - 1), a = Math.div(a - b, 2), d = (b = 0); d < this.getChildCount_0(); d++) this.getChild_1(d).move_2(a + b, this.getChild_1(d).getY_0()), (b += this.getChild_1(d).getWidth_0()), (b += e); } }, isAbsPositionInside_2: function (a, b) { var d = this.getXInTopContainer_0(), e = this.getYInTopContainer_0(); return a >= d && a < d + this.width && b >= e && b < e + this.height; }, }, "GT1437", [] ); GT1437.prototype.determinePositionToShowMaximumContent_3 = function (a, b, d) { var e = -b; a = b + d - a; if (0 >= e) { if (0 >= a) return b; e = -e; return b - (e < a ? e : a); } return 0 >= a ? ((a = -a), b + (a < e ? a : e) - 0) : b; }; GT1437.prototype.PARALLAX_DEPTH_SAME_AS_PARENT = GT1244.prototype.PARALLAX_DEPTH_SAME_AS_PARENT; var GT1578 = GT1437.extend( { initialConstructor_0: function () { this.gcButtons = this.gcContent = this.gcBack = null; this.contentMarginBottom = this.contentMarginTop = this.marginRight = this.marginLeft = this.buttonDistance = this.buttonMarginBottom = this.buttonMarginTop = this.minHeight = this.minWidth = this.maxHeight = this.maxWidth = 0; this.showBorders = !1; this.debugRecs = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.gcButtons = this.gcContent = this.gcBack = null; this.contentMarginBottom = this.contentMarginTop = this.marginRight = this.marginLeft = this.buttonDistance = this.buttonMarginBottom = this.buttonMarginTop = this.minHeight = this.minWidth = this.maxHeight = this.maxWidth = 0; this.showBorders = !1; this.debugRecs = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.showBorders = !1; this.minWidth = Math.min_2(100, e); this.maxWidth = Math.max_2(600, e); this.minHeight = Math.min_2(100, f); this.maxHeight = Math.max_2(400, f); this.buttonMarginTop = this.contentMarginBottom = this.contentMarginTop = this.marginRight = this.marginLeft = 5; this.buttonMarginBottom = 6; this.buttonDistance = 10; a = this.getHeight_0() - this.buttonMarginBottom - this.contentMarginTop; b = this.getWidth_0() - this.marginLeft - this.marginRight; this.gcBack = new GT1437(this, 0, 0, e, f); this.gcContent = new GT1437(this, this.marginLeft, this.contentMarginTop, b, Integer.truncate_1(0.8 * a)); this.gcButtons = new GT1437(this, this.marginLeft, this.contentMarginTop + this.gcContent.getHeight_0(), b, Integer.truncate_1(0.2 * a)); this.debugContainers_0(); -1 != g && ((e = new GT1559(this.gcBack, 0, 0, this.gcBack.getWidth_0(), this.gcBack.getHeight_0())), e.setDragable_4(!0, !1, 0, 0), e.setApplicationData_2(g, new Integer(2))); }, debugContainers_0: function () { if (null != this.debugRecs) { for (var a = 0; a < this.debugRecs.size_0(); a++) { var b = this.debugRecs.elementAt_1(a); GT1560.prototype.destroyIfAlive_1(b); } this.debugRecs.removeAllElements_0(); } else this.debugRecs = new java_util_JavaScriptVector(); this.showBorders && ((a = new GT1439(this.gcBack, 0, 0, this.gcBack.getWidth_0(), this.gcBack.getHeight_0(), 1, 0, 0, 0, [GT1634.prototype.white], [GT1634.prototype.black], null, null, 80, 80)), this.debugRecs.addElement_1(a), (a = new GT1615(this.gcContent, GT1634.prototype.red)), a.setAlpha_1(50), this.debugRecs.addElement_1(a), (a = new GT1615(this.gcButtons, GT1634.prototype.blue)), a.setAlpha_1(50), this.debugRecs.addElement_1(a), (a = new GT1439( this.gcBack, this.gcContent.getX_0(), this.gcContent.getY_0() - this.contentMarginTop, this.gcContent.getWidth_0(), this.gcContent.getHeight_0() + this.contentMarginBottom + this.contentMarginTop, 1, 0, 0, 0, [GT1634.prototype.white], [GT1634.prototype.red], null, null, 0, 200 )), this.debugRecs.addElement_1(a), (a = new GT1439( this.gcBack, this.gcButtons.getX_0(), this.gcButtons.getY_0() - this.buttonMarginTop, this.gcButtons.getWidth_0(), this.gcButtons.getHeight_0() + this.buttonMarginBottom + this.buttonMarginTop, 1, 0, 0, 0, [GT1634.prototype.white], [GT1634.prototype.blue], null, null, 0, 200 )), this.debugRecs.addElement_1(a)); }, getButtonDistance_0: function () { return this.buttonDistance; }, setButtonDistance_1: function (a) { this.buttonDistance = a; this.update_0(); }, getMaxWidth_0: function () { return this.maxWidth; }, setMaxWidth_1: function (a) { this.maxWidth = a; this.update_0(); }, getMaxHeight_0: function () { return this.maxHeight; }, setMaxHeight_1: function (a) { this.maxHeight = a; this.update_0(); }, getMinWidth_0: function () { return this.minWidth; }, setMinWidth_1: function (a) { this.minWidth = a; this.update_0(); }, getMinHeight_0: function () { return this.minHeight; }, setMinHeight_1: function (a) { this.minHeight = a; this.update_0(); }, getButtonMarginTop_0: function () { return this.buttonMarginTop; }, getButtonMarginBottom_0: function () { return this.buttonMarginBottom; }, getContentContainer_0: function () { return this.gcContent; }, getButtonContainer_0: function () { return this.gcButtons; }, getBackContainer_0: function () { return this.gcBack; }, getMarginLeft_0: function () { return this.marginLeft; }, setMarginLeft_1: function (a) { this.marginLeft = a; this.update_0(); }, getMarginRight_0: function () { return this.marginRight; }, setMarginRight_1: function (a) { this.marginRight = a; this.update_0(); }, getContentMarginTop_0: function () { return this.contentMarginTop; }, setContentMarginTop_1: function (a) { this.contentMarginTop = a; this.update_0(); }, getContentMarginBottom_0: function () { return this.contentMarginBottom; }, setContentMarginBottom_1: function (a) { this.contentMarginBottom = a; this.update_0(); }, setButtonMarginTop_1: function (a) { this.buttonMarginTop = a; this.update_0(); }, setButtonMarginBottom_1: function (a) { this.buttonMarginBottom = a; this.update_0(); }, update_0: function () { this.updateInnerContainers_0(); this.orderButtons_0(); this.debugContainers_0(); }, orderButtons_0: function () { for (var a = Math.div(this.gcButtons.getWidth_0() - this.getWidthOfAllButtonsInALine_0(), 2), b = 0; b < this.gcButtons.getChildCount_0(); b++) { var d = this.gcButtons.getChild_1(b); instanceOf(d, GT1559) && (d.move_2(a, 0), (a += d.getWidth_0() + this.buttonDistance)); } }, getWidthOfAllButtonsInALine_0: function () { for (var a = (this.gcButtons.getChildCount_0() - 1) * this.buttonDistance, b = 0; b < this.gcButtons.getChildCount_0(); b++) instanceOf(this.gcButtons.getChild_1(b), GT1559) && (a += this.gcButtons.getChild_1(b).getWidth_0()); return a; }, getHighestButtonHeight_0: function () { for (var a = 0, b = 0; b < this.gcButtons.getChildCount_0(); b++) instanceOf(this.gcButtons.getChild_1(b), GT1559) && (a = Math.max_2(a, this.gcButtons.getChild_1(b).getHeight_0())); return a; }, updateInnerContainers_0: function () { this.gcButtons.resize_2(this.getWidth_0() - this.marginLeft - this.marginRight, this.getHighestButtonHeight_0()); this.gcButtons.move_2(this.marginLeft, this.getHeight_0() - this.gcButtons.getHeight_0() - this.buttonMarginBottom); this.gcContent.resize_2( this.getWidth_0() - this.marginLeft - this.marginRight, this.getHeight_0() - this.contentMarginTop - this.contentMarginBottom - this.gcButtons.getHeight_0() - this.buttonMarginTop - this.buttonMarginBottom ); this.gcContent.move_2(this.marginLeft, this.contentMarginTop); }, isShowBorders_0: function () { return this.showBorders; }, setShowBorders_1: function (a) { this.showBorders = a; this.update_0(); }, toString: function () { return ( GT1437.prototype.toString.call(this) + "\nx: " + this.getX_0() + ", y: " + this.getY_0() + ", w: " + this.getWidth_0() + ", h: " + this.getHeight_0() + "\ncontent-container: w: " + this.getContentContainer_0().getWidth_0() + ", h: " + this.getContentContainer_0().getHeight_0() + "\nbutton-container: w: " + this.getButtonContainer_0().getWidth_0() + ", h: " + this.getButtonContainer_0().getHeight_0() + "" ); }, }, "GT1578", [] ); GT1578.prototype.createDialogWithVertBGPics_6 = function (a, b, d, e, f, g) { for (var k = 0; k < f.length; k++) GT1650.prototype.assertExp_2(0 < f[k].getHeight_0() && 0 < f[k].getWidth_0(), "image" + k + " (" + f[k] + ") height: " + f[k].getHeight_0() + ", width: " + f[k].getWidth_0()); if (3 != f.length) for (k = e = 0; k < f.length; k++) e += f[k].getHeight_0(); a = new GT1578(a, b, d, f[0].getWidth_0(), e, g); b = a.getBackContainer_0(); if (3 == f.length) { new GT1591(b, 0, 0, f[0]); for (d = f[0].getHeight_0(); d < b.getHeight_0() - f[2].getHeight_0(); ) new GT1591(b, 0, d, f[1]), (d += f[1].getHeight_0()); new GT1591(b, 0, b.getHeight_0() - f[2].getHeight_0(), f[2]); } else for (k = d = 0; k < f.length; k++) new GT1591(b, 0, d, f[k]), (d += f[k].getHeight_0()); return a; }; var GT1315 = GT1437.extend( { initialConstructor_0: function () { this.imageDropDown = this.background = this.foreground = this.font = null; this.foldedwidth = this.foldedheight = this.foldedy = this.foldedx = 0; this.isopen = !1; this.currentselection = 0; this.listButtons = this.whyforbidden = this.entries = null; this.maxy = this.miny = 0; this.openAbove = !1; this.dropDownMenuHandler = this.applicationData = this.mouseoverColor = this.dropdownListeners = null; this.rtl = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1315.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1315.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, m, n, 0, 0, 0, a.getHeight_0(), !1); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { this.imageDropDown = this.background = this.foreground = this.font = null; this.foldedwidth = this.foldedheight = this.foldedy = this.foldedx = 0; this.isopen = !1; this.currentselection = 0; this.listButtons = this.whyforbidden = this.entries = null; this.maxy = this.miny = 0; this.openAbove = !1; this.dropDownMenuHandler = this.applicationData = this.mouseoverColor = this.dropdownListeners = null; this.rtl = !1; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.font = g; this.foreground = k; this.background = m; this.imageDropDown = n; this.foldedx = b; this.foldedy = d; this.foldedheight = f; this.foldedwidth = e; this.openAbove = this.isopen = !1; this.setCurrentSelectionInternal_1(0); this.entries = new java_util_JavaScriptVector(); this.miny = r; this.maxy = t; this.rtl = u; this.mouseoverColor = GT1315.prototype.selectionColor; this.dropDownMenuHandler = new GT933(this); this.listButtons = new java_util_JavaScriptVector(); this.updateGUI_0(); }, move_2: function (a, b) { this.foldedx = a; this.foldedy = b; GT1437.prototype.move_2.call(this, a, b); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.dropdownListeners = null; }, setEntries_2: function (a, b) { this.setEntries_3(a, b, null); }, setEntries_3: function (a, b, d) { this.currentselection = -1; this.setCurrentSelectionInternal_1(b); this.entries = a.clone_0(); this.whyforbidden = null == d ? null : d.clone_0(); this.updateGUI_0(); this.informListenersSelectionChanged_0(); }, getCurrentSelection_0: function () { return this.currentselection; }, getSelectedEntry_0: function () { if (null == this.entries || 0 == this.entries.size_0()) return null; if (0 <= this.currentselection && this.currentselection < this.entries.size_0()) { var a = this.entries.elementAt_1(this.currentselection); if ("string" === typeof a) return a; GT1650.prototype.assertFailed_1("Entry " + this.currentselection + " in dropDown " + this + " is not a String! (" + a + ")"); } return null; }, setCurrentSelectionInternal_1: function (a) { this.currentselection != a && (this.currentselection = a); }, informListenersSelectionChanged_0: function () { var a = this.dropdownListeners; if (null != a) for (var b = 0; this.isAlive_0() && b < a.size_0(); b++) a.elementAt_1(b).selectionChanged_1(this); }, setApplicationData_1: function (a) { this.applicationData = a; }, getApplicationData_0: function () { return this.applicationData; }, getMaxHeight_0: function () { return this.foldedheight + 4 + this.entries.size_0() * this.font.getHeight_0(); }, setMouseOverColor_1: function (a) { this.mouseoverColor = a; this.updateGUI_0(); }, setRtl_1: function (a) { this.rtl = a; this.updateGUI_0(); }, setOpenAbove_1: function (a) { this.openAbove = a; }, isOpenAbove_0: function () { return this.openAbove; }, handleClick_1: function (a) { var b = this.currentselection; if (this.isopen) { for (var d = -1, e = 0; e < this.listButtons.size_0(); e++) if (this.listButtons.elementAt_1(e) == a) { d = e; break; } this.listButtons.removeAllElements_0(); 0 > d || d >= this.entries.size_0() || this.setCurrentSelectionInternal_1(d); this.isopen = !1; this.updateGUI_0(); this.getParent_0().setModalInputReceiver_1(null); } else (this.isopen = !0), this.reorder_1(!0), this.updateGUI_0(), this.getParent_0().setModalInputReceiver_1(this); b != this.currentselection && this.informListenersSelectionChanged_0(); }, updateGUI_0: function () { this.destroyChildren_0(); var a = 0, b = 0; this.isopen ? (this.resize_2(this.getParent_0().getWidth_0(), this.getParent_0().getHeight_0()), GT1437.prototype.move_2.call(this, 0, 0), (b = this.foldedx), (a = this.foldedy)) : (this.resize_2(this.foldedwidth, this.foldedheight), this.move_2(this.foldedx, this.foldedy)); var d = ""; 0 <= this.currentselection && this.currentselection < this.entries.size_0() && (d = this.entries.elementAt_1(this.currentselection)); if (null != this.imageDropDown) { var e = this.imageDropDown.getWidth_0(), f = Math.div(this.imageDropDown.getHeight_0(), 4), g = new GT1559(this, b, a, e, f); g.addButtonListener_1(this.dropDownMenuHandler); g.setImage_1(this.imageDropDown); g.finishButton_0(); g = new GT1490(this, b + (this.rtl ? f : 0), a + 1, e - f, f, this.font, this.foreground, this.rtl ? GT1488.prototype.RIGHT : GT1488.prototype.LEFT, GT1489.prototype.TOP); g.setShowToolTipIfTextToLong_1(!1); g.setText_1(d); } else { var e = this.foldedwidth, k = this.foldedheight; new GT1440(this, b, a, e, k, GT1634.prototype.white); new GT1440(this, b, a, e - 1, k - 1, new GT1634(128, 128, 128)); new GT1440(this, b + 1, a + 1, e - 2, k - 2, new GT1634(192, 192, 192)); new GT1440(this, b + 1, a + 1, e - 3, k - 3, GT1634.prototype.black); new GT1440(this, b + 2, a + 2, e - 4, k - 4, this.background); f = k - 4; g = new GT1490(this, b + (this.rtl ? f : 0), a + 1, e - f, k, this.font, this.foreground, this.rtl ? GT1488.prototype.RIGHT : GT1488.prototype.LEFT, GT1489.prototype.TOP); g.setShowToolTipIfTextToLong_1(!1); g.setText_1(d); g = new GT1559(this, 0, 0, e, k); g.addButtonListener_1(this.dropDownMenuHandler); new GT1437(g, 0, 0, 0, 0); this.createArrowContainer_2(new GT1437(g, b + (this.rtl ? 2 : e - f - 2), a + 2, f, f), 1); this.createArrowContainer_2(new GT1437(g, b + (this.rtl ? 2 : e - f - 2), a + 2, f, f), 2); g.finishButton_0(); } if (this.isopen) { e = new GT1559(this, 0, 0, this.getWidth_0(), this.getHeight_0()); e.addButtonListener_1(this.dropDownMenuHandler); e.setShowHandCursor_1(!1); d = this.font.getHeight_0(); e = 0; e = this.isOpenAbove_0() ? a - 4 - d * this.entries.size_0() : a + this.foldedheight; k = 4 + this.entries.size_0() * d; a = this.foldedwidth; for (g = 0; g < this.entries.size_0(); g++) (f = this.entries.elementAt_1(g)), (f = this.stringWidth_2(this.font, f) + 4), f > a && (a = f); new GT1440(this, b, e, a, k, this.foreground); new GT1440(this, b + 1, e + 1, a - 2, k - 2, this.background); this.listButtons.removeAllElements_0(); k = e + 2; for (g = 0; g < this.entries.size_0(); g++) { var m = null == this.whyforbidden ? null : this.whyforbidden.elementAt_1(g), n = new GT1559(this, b + 2, k, a - 4, d); n.addButtonListener_1(this.dropDownMenuHandler); new GT1440(n, GT1634.prototype.lightGray); new GT1440(n, 0, 0, 0, 0, GT1634.prototype.black); new GT1440(n, this.mouseoverColor); new GT1440(n, this.mouseoverColor); f = this.entries.elementAt_1(g); e = 1; this.rtl && (e = -6); var e = a - 2 + e, p = b + 2 + (this.rtl ? e : 0); new GT1606(this, p, k, e, (this.rtl ? GT1606.prototype.ALIGN_RIGHT : GT1606.prototype.ALIGN_LEFT) | GT1606.prototype.VALIGN_TOP, f, this.font, this.foreground); n.finishButton_0(); null != m ? (n.setActive_1(!1), n.setToolTip_1(m)) : this.stringWidth_2(this.font, f) > this.getWidth_0() - p && n.setToolTip_1(f); this.listButtons.addElement_1(n); k += d; } } }, createArrowContainer_2: function (a, b) { var d = a.getWidth_0(), e = a.getHeight_0(), f = new GT1437(a, 0, 0, d, e), g = 2 == b; g ? (new GT1440(f, 0, 0, d, e, new GT1634(132, 130, 132)), new GT1440(f, 1, 1, d - 2, e - 2, new GT1634(198, 195, 198))) : (new GT1440(f, 0, 0, d, e, GT1634.prototype.black), new GT1440(f, 0, 0, d - 1, e - 1, new GT1634(198, 195, 198)), new GT1440(f, 1, 1, d - 2, e - 2, new GT1634(132, 130, 132)), new GT1440(f, 1, 1, d - 2, e - 2, new GT1634(132, 130, 132)), new GT1440(f, 1, 1, d - 3, e - 3, GT1634.prototype.white), new GT1440(f, 2, 2, d - 4, e - 4, new GT1634(198, 195, 198))); var k = Math.div(d, 2), m = Math.div(e, 2) - 2, n = Math.div(d - 6, 2); new GT1223(f, 0, g ? 1 : 0, d, e, [k - n, m, k + n, m, k, m + n], [GT1634.prototype.black]); }, getNumberOfEntries_0: function () { return this.entries.size_0(); }, numberOfVisibleEntries_0: function () { var a = this.font.getHeight_0(); return this.isOpenAbove_0() ? Math.div(this.foldedy - this.miny - 4, a) : Math.div(this.maxy - (this.foldedy + this.foldedheight + 2), a); }, addDropDownMenuListener_1: function (a) { null == this.dropdownListeners && (this.dropdownListeners = new java_util_JavaScriptVector()); this.dropdownListeners.addElement_1(a); }, }, "GT1315", [] ); GT1315.prototype.selectionColor = new GT1634(98, 145, 213); var GT1420 = GT1437.extend( { initialConstructor_0: function () { this.timer = this.txt = null; this.prevtick = 0; this.delays = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.timer = this.txt = null; this.prevtick = 0; this.delays = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = n; this.prevtick = n.currentTimeMillis_0(); this.delays = [].createArray(5).init(0); new GT1440(this, 0, 0, e, f, k); this.txt = new GT1606(this, Math.div(e, 2), Math.div(f, 2), GT1606.prototype.ALIGN_CENTER | GT1606.prototype.VALIGN_CENTER, "?", m, g); n.addFramerateListener_1(this); }, run_0: function () { var a = this.timer.currentTimeMillis_0(), b = a - this.prevtick; if (0 < b) { this.prevtick = a; for (var a = b, d = 0; d < this.delays.length - 1; d++) (this.delays[d] = this.delays[d + 1]), (a += this.delays[d]); this.delays[this.delays.length - 1] = b; 0 < a && this.txt.setText_1("" + Integer.truncate_1(Math.round_1((1e3 * this.delays.length) / a))); } }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.txt = null; null != this.timer && (this.timer.removeFramerateListener_1(this), (this.timer = null)); }, }, "GT1420", [Runnable] ), GT1055 = GT906.extend( { initialConstructor_0: function () { this.alphaBlendMode = this.particles = this.image = null; this.dynamicColor = this.dynamicAlpha = this.dynamicUV = this.dynamicRotation = this.dynamicScale = this.dynamicPosition = this.textureMipMapping = !1; this.maxParticlesNumberLimit = 0; GT906.prototype.initialConstructor_0.call(this); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { this.alphaBlendMode = this.particles = this.image = null; this.dynamicColor = this.dynamicAlpha = this.dynamicUV = this.dynamicRotation = this.dynamicScale = this.dynamicPosition = this.textureMipMapping = !1; this.maxParticlesNumberLimit = 0; GT906.prototype.initialConstructor_14.call(this, a, b, d, e, f, g, k, m, n, p, q, r, t, u); this.particles = new GT1663(); this.image = b; this.dynamicPosition = m; this.dynamicScale = n; this.dynamicRotation = p; this.dynamicUV = q; this.dynamicAlpha = r; this.dynamicColor = t; this.textureMipMapping = u; this.alphaBlendMode = GT1323.prototype.NONE; GT1650.prototype.assertExp_2(k <= GT1055.prototype.MAX_PARTICLE_COUNT_LIMIT, "Maximum particles number limit can't be bigger than " + GT1055.prototype.MAX_PARTICLE_COUNT_LIMIT + "!"); this.maxParticlesNumberLimit = k > GT1055.prototype.MAX_PARTICLE_COUNT_LIMIT ? GT1055.prototype.MAX_PARTICLE_COUNT_LIMIT : k; this.initNative_0(); }, setContainerDirty_0: function () { GT906.prototype.setContainerDirty_0.call(this); }, getMaxParticlesNumberLimit_0: function () { return this.maxParticlesNumberLimit; }, addParticle_1: function (a) { GT1650.prototype.assertExp_2(this.particles.size_0() < this.maxParticlesNumberLimit, "Number of added particles exceed the maximum amount: " + this.maxParticlesNumberLimit + "!"); a.setAllDirtyFlags_0(); a.setOwner_1(this); this.particles.push_1(a); this.setContainerDirty_0(); }, insertParticleAt_2: function (a, b) { GT1650.prototype.assertExp_2(this.particles.size_0() < this.maxParticlesNumberLimit, "Number of added particles exceed the maximum amount: " + this.maxParticlesNumberLimit + "!"); a.setOwner_1(this); this.particles.insertAt_2(a, b); a.setForceFullUpdateStart_1(!0); this.setContainerDirty_0(); }, getParticlesCount_0: function () { return null != this.particles ? this.particles.size_0() : 0; }, getParticles_0: function () { return this.particles; }, getImage_0: function () { return this.image; }, setAlphaBlendMode_1: function (a) { this.alphaBlendMode = a; this.setContainerDirty_0(); }, getAlphaBlendMode_0: function () { return this.alphaBlendMode; }, isDynamicPosition_0: function () { return this.dynamicPosition; }, isDynamicScale_0: function () { return this.dynamicScale; }, isDynamicRotation_0: function () { return this.dynamicRotation; }, isDynamicUV_0: function () { return this.dynamicUV; }, isDynamicAlpha_0: function () { return this.dynamicAlpha; }, isDynamicColor_0: function () { return this.dynamicColor; }, isTextureMipMapping_0: function () { return this.textureMipMapping; }, removeParticle_1: function (a) { null != a && (a.setNextElementForceFullUpdateStart_0(), this.particles.remove_1(a), a.setOwner_1(null), this.setContainerDirty_0()); }, destroyChildren_0: function () { GT906.prototype.destroyChildren_0.call(this); this.particles.removeAllElements_0(); this.setContainerDirty_0(); }, destroyImpl_2: function (a, b) { GT906.prototype.destroyImpl_2.call(this, a, b); null != this.particles && this.particles.removeAllElements_0(); this.image = this.particles = null; }, }, "GT1055", [] ); GT1055.prototype.MAX_PARTICLE_COUNT_LIMIT = 1e4; var GT1364 = GT1437.extend( { initialConstructor_0: function () { this.maincolor = this.timer = null; this.progress = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.maincolor = this.timer = null; this.progress = 0; GT1437.prototype.initialConstructor_5.call(this, a, Math.div(a.getWidth_0(), 4), Math.div(a.getHeight_0(), 2) - 20, Math.div(a.getWidth_0(), 2), 40); this.maincolor = b; this.progress = 0; }, init_1: function (a) { this.timer = a; a.triggerCallbackAfter_2(this, 50); this.updateContent_0(); }, setProgress_1: function (a) { this.progress = a; this.updateContent_0(); }, setProgressPercentage_1: function (a) { this.setProgress_1(a / 100); }, setProgress_4: function (a, b, d, e) { this.setProgress_1(a + Math.div((b - a) * d, e)); }, run_0: function () { this.isAlive_0() && (this.updateContent_0(), this.timer.triggerCallbackAfter_2(this, 50)); }, updateContent_0: function () { this.destroyChildren_0(); for (var a = Math.div(Integer.truncate_1(this.timer.currentTimeMillis_0() % 1500), 15), b = null, d = 0; 2 > d; d++) { var e = 10, b = new GT1634(150, 150, 150); 1 == d && ((e = 10 - Math.div(a, 10)), (b = 255 - Math.div(254 * a, 100)), (b = new GT1634(b, b, b))); new GT1440(this, e, e, this.width - 2 * e, 1, b); new GT1440(this, e, e, 1, this.height - 2 * e, b); new GT1440(this, e, this.height - 1 - e, this.width - 2 * e, 1, b); new GT1440(this, this.width - 1 - e, e, 1, this.height - 2 * e, b); } b = 255 - (50 > a ? 2 * a : 2 * (100 - a)); a = Integer.truncate_1((this.width - 24) * this.progress); b = new GT1634(Math.div(this.maincolor.getRed_0() * b, 255), Math.div(this.maincolor.getGreen_0() * b, 255), Math.div(this.maincolor.getBlue_0() * b, 255)); new GT1440(this, 12, 12, a, this.height - 24, b); }, }, "GT1364", [Runnable] ); GT1364.prototype.INTERPOLATIONSPEED = 0.001; var GT1286 = GT1364.extend( { initialConstructor_0: function () { this.font = null; this.numpieces = 0; this.polyColor2 = this.polyColor1 = this.polygons = this.txtPercent = null; this.hidePolygons = !1; this.yPosSplashScreen = this.xPosSplashScreen = 0; this.showOuterPolygon = this.showInnerPolygon = this.showPercent = this.hidePolygonsSplashScreen = !1; this.rotstep = this.globalzoom = 0; GT1364.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.font = null; this.numpieces = 0; this.polyColor2 = this.polyColor1 = this.polygons = this.txtPercent = null; this.hidePolygons = !1; this.yPosSplashScreen = this.xPosSplashScreen = 0; this.showOuterPolygon = this.showInnerPolygon = this.showPercent = this.hidePolygonsSplashScreen = !1; this.rotstep = this.globalzoom = 0; GT1364.prototype.initialConstructor_2.call(this, a, g); this.font = k; this.polyColor1 = m; this.polyColor2 = n; this.hidePolygons = p; this.move_2(b, d); 0 < e && 0 < f ? this.resize_2(e, f) : this.resize_2(a.getWidth_0(), a.getHeight_0()); this.showOuterPolygon = this.showInnerPolygon = this.showPercent = !0; this.globalzoom = 1; this.rotstep = Math.PI / 24; }, initialConstructor_3: function (a, b, d) { GT1286.prototype.initialConstructor_10.call(this, a, 0, 0, -1, -1, b, d, GT1634.prototype.white, GT1634.prototype.white, !1); }, setPartsShown_5: function (a, b, d, e, f) { this.showPercent = a; this.showInnerPolygon = b; this.showOuterPolygon = d; this.globalzoom = e; this.rotstep = f; }, init_1: function (a) { this.createContent_0(); GT1364.prototype.init_1.call(this, a); }, createContent_0: function () { var a = (this.globalzoom * this.getWidth_0()) / 780, b = 45 * a, d = 2 * a, e = 75 * a, f = 4 * a, g = this.getWidth_0(), k = this.getHeight_0(), m = this.stringWidth_2(this.font, "100%"), n = 75 / m; this.showPercent && ((this.txtPercent = new GT1134(this, 0, 0, g, k, " 00%", this.font, this.maincolor, Math.div(m, 2), Math.div(this.font.getHeight_0(), 2))), this.txtPercent.setTranslation_2(g / 2, k / 2), this.txtPercent.setScale_2(n * a, n * a), this.txtPercent.setText_1(" 0%")); if (!this.hidePolygons) { this.numpieces = GT1672.prototype.doubleToInt_1((2 * Math.PI) / this.rotstep); this.polygons = [].createArray(this.numpieces); for ( var p = Math.cos_1(this.rotstep / 2), q = Math.sin_1(this.rotstep / 2), a = p * (b - d) + this.getWidth_0() / 2 + 0.5, g = q * (b - d) + this.getHeight_0() / 2 + 0.5, k = p * (b + d) + this.getWidth_0() / 2 + 0.5, m = q * (b + d) + this.getHeight_0() / 2 + 0.5, n = p * (e - f) + this.getWidth_0() / 2 + 0.5, r = q * (e - f) + this.getHeight_0() / 2 + 0.5, p = p * (e + f) + this.getWidth_0() / 2 + 0.5, q = q * (e + f) + this.getHeight_0() / 2 + 0.5, t = 0; t < this.numpieces; t++ ) { var u = t * this.rotstep, B = Math.cos_1(-u - this.rotstep / 2), A = Math.sin_1(-u - this.rotstep / 2), u = B * (b + d) + this.getWidth_0() / 2 + 0.5, C = A * (b + d) + this.getHeight_0() / 2 + 0.5, E = B * (b - d) + this.getWidth_0() / 2 + 0.5, F = A * (b - d) + this.getHeight_0() / 2 + 0.5, D = B * (e + f) + this.getWidth_0() / 2 + 0.5, H = A * (e + f) + this.getHeight_0() / 2 + 0.5, B = B * (e - f) + this.getWidth_0() / 2 + 0.5, A = A * (e - f) + this.getHeight_0() / 2 + 0.5; 0 == t % 2 && ((this.polygons[t] = this.createVectorCanvas_2([a, g, k, m, E, F, u, C], this.polyColor1)), (this.polygons[t + 1] = this.createVectorCanvas_2([n, r, p, q, B, A, D, H], this.polyColor2))); a = E; g = F; k = u; m = C; n = B; r = A; p = D; q = H; } } }, createVectorCanvas_2: function (a, b) { for (var d = a[0], e = d, f = a[1], g = f, k = 2; k + 1 < a.length; k += 2) { var m = a[k], n = a[k + 1]; m < d && (d = m); m > e && (e = m); n < f && (f = n); n > g && (g = n); } d = Math.floor_1(d); f = Math.floor_1(f); e = Math.ceil_1(e); g = Math.ceil_1(g); for (k = 0; k + 1 < a.length; k += 2) (a[k] -= d), (a[k + 1] -= f); d = new GT1288(this, Integer.truncate_1(d), Integer.truncate_1(f), Integer.truncate_1(e - d), Integer.truncate_1(g - f)); d.addTriangleStrip_3(a, [b], null); return d; }, updateContent_0: function () { if (null != this.font && null != this.timer) { var a = Math.div(Integer.truncate_1(this.timer.currentTimeMillis_0() % 1e3), 10), b = Integer.truncate_1(100 * this.progress), a = 255 - (50 > a ? 2 * a : 2 * (100 - a)), a = new GT1634(Math.div(this.maincolor.getRed_0() * a, 255), Math.div(this.maincolor.getGreen_0() * a, 255), Math.div(this.maincolor.getBlue_0() * a, 255)), d = 10 > b ? " " : 100 > b ? " " : ""; GT1560.prototype.isAlive_1(this.txtPercent) && (this.txtPercent.setColor_1(a), this.txtPercent.setText_1("" + d + b + "%")); if (!this.hidePolygons) for (a = Math.div(Integer.truncate_1((this.timer.currentTimeMillis_0() % 1500) * this.numpieces), 1500), d = 0; d < this.numpieces; d += 2) { var e = 0, e = Integer.truncate_1(b * this.numpieces) > ((this.numpieces - d + Math.div(this.numpieces, 4) + this.numpieces) % this.numpieces) * 100; this.polygons[d].setAlpha_1(e && this.showInnerPolygon ? 255 : 0); e = 0; this.polygons[d + 1].setAlpha_1(this.showOuterPolygon ? Math.div((255 - e) * (this.numpieces - ((d + a) % this.numpieces)), this.numpieces) + e : 0); } } }, }, "GT1286", [] ), GT1158 = GT1437.extend( { initialConstructor_0: function () { this.horizontalReflow = this.resize2content = !1; this.vAlign = this.hAlign = null; this.space = this.dynamicChild = this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.reverseContent = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.horizontalReflow = this.resize2content = !1; this.vAlign = this.hAlign = null; this.space = this.dynamicChild = this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.reverseContent = !1; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.dynamicChild = -1; this.reverseContent = !1; }, setInsets_4: function (a, b, d, e) { if (this.insetLeft != a || this.insetRight != b || this.insetTop != d || this.insetBottom != e) (this.insetLeft = a), (this.insetRight = b), (this.insetTop = d), (this.insetBottom = e); }, getHorizontalAlignment_0: function () { return this.hAlign; }, setHorizontalAlignment_1: function (a) { this.hAlign != a && (this.hAlign = a); }, getVerticalAlignment_0: function () { return this.vAlign; }, setVerticalAlignment_1: function (a) { this.vAlign != a && (this.vAlign = a); }, setReverseContent_1: function (a) { this.reverseContent = a; }, getDynamicChild_0: function () { return this.dynamicChild; }, setDynamicChild_1: function (a) { this.dynamicChild = a; }, reflow_0: function () { this.space = this.horizontalReflow ? this.insetLeft : this.insetTop; if (0 <= this.dynamicChild && this.dynamicChild < this.getChildCount_0() && this.getChild_1(this.dynamicChild).isAlive_0() && instanceOf(this.getChild_1(this.dynamicChild), GT1525)) { var a = 0, b = this.getChild_1(this.dynamicChild); if (this.horizontalReflow) { for (var d = 0; d < this.getChildCount_0(); d++) this.dynamicChild != d && (a += this.getChild_1(d).getWidth_0()); d = this.getWidth_0() - a - this.insetLeft - this.insetRight; 0 >= d ? (b.resize_2(0, this.getChild_1(this.dynamicChild).height), (this.space = Math.div(this.getWidth_0() - a, 2))) : b.resize_2(d, this.getChild_1(this.dynamicChild).height); } else { for (d = 0; d < this.getChildCount_0(); d++) this.dynamicChild != d && (a += this.getChild_1(d).getHeight_0()); d = this.getHeight_0() - a - this.insetTop - this.insetBottom; 0 >= d ? (b.resize_2(this.getChild_1(this.dynamicChild).width, 0), (this.space = Math.div(this.getHeight_0() - a, 2))) : b.resize_2(this.getChild_1(this.dynamicChild).width, d); } } else if (this.horizontalReflow && (this.hAlign == GT1488.prototype.RIGHT || this.hAlign == GT1488.prototype.CENTER)) { for (d = a = 0; d < this.getChildCount_0(); d++) a += this.getChild_1(d).getWidth_0(); this.space = this.hAlign == GT1488.prototype.RIGHT ? this.getWidth_0() - this.insetRight - a : Math.div(this.getWidth_0() - a, 2); } else if (!this.horizontalReflow && (this.vAlign == GT1489.prototype.BOTTOM || this.vAlign == GT1489.prototype.CENTER)) { for (d = a = 0; d < this.getChildCount_0(); d++) a += this.getChild_1(d).getHeight_0(); this.space = this.vAlign == GT1489.prototype.BOTTOM ? this.getHeight_0() - this.insetBottom - a : Math.div(this.getHeight_0() - a, 2) + this.insetTop; } if (this.reverseContent) for (d = this.getChildCount_0() - 1; 0 <= d; d--) (a = this.getChild_1(d)), this.moveChild_1(a); else for (d = 0; d < this.getChildCount_0(); d++) (a = this.getChild_1(d)), this.moveChild_1(a); }, moveChild_1: function (a) { if (this.horizontalReflow) { var b = a.getY_0(); this.vAlign == GT1489.prototype.TOP ? (b = this.insetTop) : this.vAlign == GT1489.prototype.BOTTOM ? (b = this.getHeight_0() - a.getHeight_0() - this.insetBottom) : this.vAlign == GT1489.prototype.CENTER && (b = Math.div(this.getHeight_0() - a.getHeight_0(), 2)); a.move_2(this.space, b); this.space += a.getWidth_0(); } else (b = a.getX_0()), this.hAlign == GT1488.prototype.LEFT ? (b = this.insetLeft) : this.hAlign == GT1488.prototype.RIGHT ? (b = this.getWidth_0() - a.getWidth_0() - this.insetRight) : this.hAlign == GT1488.prototype.CENTER && (b = Math.div(this.getWidth_0() - a.getWidth_0(), 2)), a.move_2(b, this.space), (this.space += a.getHeight_0()); this.resize2content && (this.resizeToContent_0(), this.resize_2(this.getWidth_0() + this.insetRight, this.getHeight_0() + this.insetBottom)); return this.space; }, isHorizontalReflow_0: function () { return this.horizontalReflow; }, setHorizontalReflow_1: function (a) { this.horizontalReflow = a; }, isResize2content_0: function () { return this.resize2content; }, setResize2content_1: function (a) { this.resize2content = a; }, handleChildResized_1: function (a) { a = this.getWidth_0(); var b = this.getHeight_0(); this.reflow_0(); !this.resize2content || (a == this.getWidth_0() && b == this.getHeight_0()) || ((a = this.getParent_0()), instanceOf(a, GT1158) && a.handleChildResized_1(this)); }, }, "GT1158", [] ), GT1444 = GT1437.extend( { initialConstructor_0: function () { this.scrollback = this.buttonHandle = this.cntscrollbg = this.buttonPageDown = this.buttonPageUp = this.buttonScrollDown = this.buttonScrollUp = null; this.arrowButtonWidth = this.arrowButtonHeight = 0; this.scrollBarHandler = this.listeners = null; this.horizontal = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1444.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, n, p, !1, !1); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.scrollback = this.buttonHandle = this.cntscrollbg = this.buttonPageDown = this.buttonPageUp = this.buttonScrollDown = this.buttonScrollUp = null; this.arrowButtonWidth = this.arrowButtonHeight = 0; this.scrollBarHandler = this.listeners = null; this.horizontal = !1; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.horizontal = q; this.scrollBarHandler = new GT1084(this); this.listeners = new java_util_JavaScriptVector(); r ? (this.arrowButtonHeight = this.arrowButtonWidth = 0) : ((this.arrowButtonWidth = this.arrowButtonHeight = GT1444.prototype.ARROWBUTTON_DEFAULT_SIZE), null != k && ((this.arrowButtonHeight = k.getRowHeight_0()), (this.arrowButtonWidth = k.getColumnWidth_0())), null != m && ((this.arrowButtonHeight = Math.max_2(this.arrowButtonHeight, m.getRowHeight_0())), (this.arrowButtonWidth = Math.max_2(this.arrowButtonWidth, m.getColumnWidth_0())))); this.scrollback = n; this.cntscrollbg = new GT1437(this); this.updateScrollBg_0(); this.buttonPageDown = new GT1559(this, 0, 0, e, f); new GT1440(this.buttonPageDown, GT1634.prototype.black); this.buttonPageDown.removeChildrenForStates_0(); this.buttonPageDown.setChildForState_2(GT1236.prototype.PRESSED, 0); this.buttonPageDown.finishButton_0(); this.buttonPageDown.addButtonListener_1(this.scrollBarHandler); this.buttonPageUp = new GT1559(this, 0, 0, e, f); new GT1440(this.buttonPageUp, GT1634.prototype.black); this.buttonPageUp.removeChildrenForStates_0(); this.buttonPageUp.setChildForState_2(GT1236.prototype.PRESSED, 0); this.buttonPageUp.finishButton_0(); this.buttonPageUp.addButtonListener_1(this.scrollBarHandler); r || (null != k ? ((this.buttonScrollUp = new GT1559(this, 0, 0, k.getWidth_0(), Math.div(k.getHeight_0(), 4))), this.buttonScrollUp.setImage_1(k)) : ((this.buttonScrollUp = new GT1559(this, 0, 0, q ? this.arrowButtonWidth : e, q ? f : this.arrowButtonHeight)), this.createArrowContainer_3(this.buttonScrollUp, !0, !1), this.createArrowContainer_3(this.buttonScrollUp, !0, !0), this.buttonScrollUp.setChildForState_2(GT1236.prototype.DEFAULT, 0), this.buttonScrollUp.setChildForState_2(GT1236.prototype.PRESSED, 1)), this.buttonScrollUp.addButtonListener_1(this.scrollBarHandler), this.buttonScrollUp.finishButton_0()); r || (null != m ? ((a = Math.div(m.getHeight_0(), 4)), (b = m.getWidth_0()), (this.buttonScrollDown = new GT1559(this, q ? e - b : 0, q ? 0 : f - a, b, a)), this.buttonScrollDown.setImage_1(m)) : ((this.buttonScrollDown = new GT1559(this, 0, f - this.arrowButtonHeight, e, this.arrowButtonHeight)), this.createArrowContainer_3(this.buttonScrollDown, !1, !1), this.createArrowContainer_3(this.buttonScrollDown, !1, !0), this.buttonScrollDown.setChildForState_2(GT1236.prototype.DEFAULT, 0), this.buttonScrollDown.setChildForState_2(GT1236.prototype.PRESSED, 1)), this.buttonScrollDown.addButtonListener_1(this.scrollBarHandler), this.buttonScrollDown.finishButton_0()); this.buttonHandle = new GT1175(this, g, p); this.buttonHandle.addButtonListener_1(this.scrollBarHandler); }, getScrollHandle_0: function () { return this.buttonHandle; }, setRangeAndValue_3: function (a, b, d) { this.buttonHandle.setRangeAndValue_3(a, b, d); this.refreshDisplay_0(); }, setRange_2: function (a, b) { this.buttonHandle.setRange_2(a, b); }, getValue_0: function () { return this.buttonHandle.getValue_0(); }, initiateScroll_1: function (a) { this.buttonHandle.initiateScroll_1(a); this.refreshDisplay_0(); this.fireValueChangedEvent_0(); }, initiateFastScroll_1: function (a) { this.buttonHandle.initiateScroll_2(a, !0); this.refreshDisplay_0(); this.fireValueChangedEvent_0(); }, setMinHandleSize_1: function (a) { this.buttonHandle.setMinHandleSize_1(a); this.refreshDisplay_0(); }, getTotalPixelSize_0: function () { return this.horizontal ? this.getWidth_0() - 2 * this.arrowButtonWidth : this.getHeight_0() - 2 * this.arrowButtonHeight; }, moveScrollBarHandle_1: function (a) { this.horizontal ? this.buttonHandle.move_2(this.arrowButtonWidth + a - 0, 0) : this.buttonHandle.move_2(0, this.arrowButtonHeight + a - 0); }, getHandleXByPixelpos_1: function (a) { return this.horizontal ? this.arrowButtonWidth + a - 0 : 0; }, getHandleYByPixelpos_1: function (a) { return this.horizontal ? 0 : this.arrowButtonHeight + a - 0; }, getHandlePixelPos_0: function () { return GT1560.prototype.isAlive_1(this.buttonHandle) ? (this.horizontal ? this.buttonHandle.getX_0() - this.arrowButtonWidth : this.buttonHandle.getY_0() - this.arrowButtonHeight) : 0; }, getHandlePixelRange_0: function () { var a = this.getTotalPixelSize_0(), b = Math.div(a * this.buttonHandle.getVisibleContent_0(), this.buttonHandle.getTotalContent_0()); b < this.buttonHandle.getMinHandleSize_0() && (b = this.buttonHandle.getMinHandleSize_0()); return a - b; }, refreshDisplay_0: function () { var a = this.getTotalPixelSize_0(), b = Math.div(a * this.buttonHandle.getVisibleContent_0(), this.buttonHandle.getTotalContent_0()); b < this.buttonHandle.getMinHandleSize_0() && (b = this.buttonHandle.getMinHandleSize_0()); this.horizontal ? (this.buttonHandle.resize_2(b, this.getHeight_0()), this.buttonHandle.setDragArea_4(this.arrowButtonWidth, 0, a - b, 0)) : (this.buttonHandle.resize_2(this.getWidth_0(), b), this.buttonHandle.setDragArea_4(0, this.arrowButtonHeight, 0, a - b)); this.buttonHandle.refreshDisplay_0(); this.horizontal ? ((a = this.buttonHandle.getX_0() + this.buttonHandle.getWidth_0()), this.buttonPageUp.resize_2(this.buttonHandle.getX_0(), this.getHeight_0()), this.buttonPageDown.resize_2(this.getWidth_0() - a, this.getHeight_0()), this.buttonPageDown.move_2(a, 0)) : ((a = this.buttonHandle.getY_0() + this.buttonHandle.getHeight_0()), this.buttonPageUp.resize_2(this.getWidth_0(), this.buttonHandle.getY_0()), this.buttonPageDown.resize_2(this.getWidth_0(), this.getHeight_0() - a), this.buttonPageDown.move_2(0, a)); }, isHorizontal_0: function () { return this.horizontal; }, isMouseOver_0: function () { return ( (GT1560.prototype.isAlive_1(this.buttonScrollUp) && this.buttonScrollUp.isMouseOver_0()) || (GT1560.prototype.isAlive_1(this.buttonScrollDown) && this.buttonScrollDown.isMouseOver_0()) || (GT1560.prototype.isAlive_1(this.buttonPageUp) && this.buttonPageUp.isMouseOver_0()) || (GT1560.prototype.isAlive_1(this.buttonPageDown) && this.buttonPageDown.isMouseOver_0()) || (GT1560.prototype.isAlive_1(this.buttonHandle) && this.buttonHandle.isMouseOver_0()) ); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.listeners.setSize_1(0); this.buttonScrollUp = this.buttonScrollDown = this.buttonPageUp = this.buttonPageDown = this.buttonHandle = null; }, addScrollBarListener_1: function (a) { this.listeners.addElement_1(a); }, fireValueChangedEvent_0: function () { for (var a = 0; a < this.listeners.size_0(); a++) this.listeners.elementAt_1(a).scrollValueChanged_1(this); }, getButtonScrollUp_0: function () { return this.buttonScrollUp; }, getButtonScrollDown_0: function () { return this.buttonScrollDown; }, getButtonPageUp_0: function () { return this.buttonPageUp; }, getButtonPageDown_0: function () { return this.buttonPageDown; }, getButtonHandle_0: function () { return this.buttonHandle; }, updateScrollBg_0: function () { this.cntscrollbg.destroyChildren_0(); (this.getWidth_0() <= 2 * this.arrowButtonWidth && this.horizontal) || (this.getHeight_0() <= 2 * this.arrowButtonHeight && !this.horizontal) || (null == this.scrollback ? (new GT1440(this.cntscrollbg, 0, 0, this.getWidth_0(), this.getHeight_0(), new GT1634(132, 130, 132)), new GT1440(this.cntscrollbg, 1, 1, this.getWidth_0() - 2, this.getHeight_0() - 2, new GT1634(198, 195, 198))) : this.horizontal ? new GT1287(this.cntscrollbg, this.scrollback, this.arrowButtonWidth, 0, this.getWidth_0() - 2 * this.arrowButtonWidth, this.scrollback.getHeight_0()) : new GT1287(this.cntscrollbg, this.scrollback, 0, this.arrowButtonHeight, this.scrollback.getWidth_0(), this.getHeight_0() - 2 * this.arrowButtonHeight), this.cntscrollbg.resizeToContent_0()); }, resize_2: function (a, b) { GT1437.prototype.resize_2.call(this, a, b); GT1560.prototype.isAlive_1(this.buttonScrollDown) && (this.horizontal ? this.buttonScrollDown.move_2(a - this.buttonScrollDown.getWidth_0(), 0) : this.buttonScrollDown.move_2(0, b - this.buttonScrollDown.getHeight_0())); this.buttonHandle.setRange_2(this.buttonHandle.getTotalContent_0(), this.buttonHandle.getVisibleContent_0()); this.refreshDisplay_0(); this.updateScrollBg_0(); }, }, "GT1444", [] ); GT1444.prototype.createArrowContainer_3 = function (a, b, d) { var e = a.getWidth_0(), f = a.getHeight_0(); a = new GT1437(a, 0, 0, e, f); d ? (new GT1440(a, 0, 0, e, f, new GT1634(132, 130, 132)), new GT1440(a, 1, 1, e - 2, f - 2, new GT1634(198, 195, 198))) : (new GT1440(a, 0, 0, e, f, GT1634.prototype.black), new GT1440(a, 0, 0, e - 1, f - 1, new GT1634(198, 195, 198)), new GT1440(a, 1, 1, e - 2, f - 2, new GT1634(132, 130, 132)), new GT1440(a, 1, 1, e - 2, f - 2, new GT1634(132, 130, 132)), new GT1440(a, 1, 1, e - 3, f - 3, GT1634.prototype.white), new GT1440(a, 2, 2, e - 4, f - 4, new GT1634(198, 195, 198))); for (var g = 2; 0 <= g; g--) new GT1440(a, (d ? 0 : -1) + Math.div(e, 2) - g, (d ? 0 : -1) + Math.div(f, 2) + (b ? g : 2 - g) - 0, 1 + 2 * g - 0, 1, GT1634.prototype.black); }; GT1444.prototype.ARROWBUTTON_DEFAULT_SIZE = 15; var GT1562 = GT1437.extend( { initialConstructor_0: function () { this.backbutton = this.slider = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.backbutton = this.slider = null; GT1437.prototype.initialConstructor_5.call(this, a, d, null != b ? e - Math.div(b.getHeight_0(), 2 * b.getRows_0()) : e, f, null != b ? Math.div(b.getHeight_0(), b.getRows_0()) : g); this.recreateBtnSliderBack_1(this); this.slider = new GT1319(this, 0, 0, f, k, m); null != b && this.slider.setImageHandle_1(b); }, setBackground_1: function (a) { this.slider.setBackground_1(a); }, recreateBtnSliderBack_1: function (a) { GT1560.prototype.destroyIfAlive_1(this.backbutton); this.backbutton = new GT1559(a, 0, 0, this.getWidth_0(), this.getHeight_0()); this.backbutton.addButtonListener_1(this); this.backbutton.finishButton_0(); this.backbutton.reorder_1(!1); }, getHandle_0: function () { return this.slider; }, setActive_1: function (a) { this.slider.setActive_1(a); this.backbutton.setActive_1(a); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { a = a.getMouseX_0() - 4 + this.slider.getDragAreaX_0() - Math.div(this.slider.getWidth_0(), 2); a < this.slider.getDragAreaX_0() && (a = this.slider.getDragAreaX_0()); a >= this.slider.getDragAreaX_0() + this.slider.getDragAreaWidth_0() && (a = this.slider.getDragAreaX_0() + this.slider.getDragAreaWidth_0()); this.slider.move_2(a, this.slider.getY_0()); this.slider.handleDrag_0(); this.slider.handleUp_0(); }, }, "GT1562", [GT1066] ), GT1365 = GT1437.extend( { initialConstructor_0: function () { this.values = null; this.currentStep = 0; this.spinnerListeners = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.values = null; this.currentStep = 0; this.spinnerListeners = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.spinnerListeners = new java_util_JavaScriptVector(); this.currentStep = 0; this.values = [0]; }, setValuesImpl_2: function (a, b) { for (var d = this.getValue_0(), e = !1, f = (this.currentStep = 0); f < a.length; f++) if (a[f] == b) { this.currentStep = f; e = !0; break; } GT1650.prototype.assertExp_2(e, "Value not part of the array " + b); this.values = a; return d; }, setValueImpl_1: function (a) { var b = this.getValue_0(); if (this.values[this.currentStep] == a) return b; for (var d = !1, e = 0; e < this.values.length; e++) if (this.values[e] == a) { this.currentStep = e; d = !0; break; } GT1650.prototype.assertExp_2(d, "Value " + a + " not found"); return b; }, setStepUpImpl_1: function (a) { return this.currentStep < this.values.length - 1 || a ? (this.currentStep < this.values.length - 1 ? this.currentStep++ : (this.currentStep = 0), !0) : !1; }, setStepDownImpl_1: function (a) { return 0 < this.currentStep || a ? (0 < this.currentStep ? this.currentStep-- : (this.currentStep = this.values.length - 1), !0) : !1; }, setFirstValueImpl_0: function () { if (null == this.values || 0 == this.values.length) return !1; this.currentStep = 0; return !0; }, setLastValueImpl_0: function () { if (null == this.values || 0 == this.values.length) return !1; this.currentStep = this.values.length - 1; return !0; }, notifySpinnerValueChanged_0: function () { for (var a = this.spinnerListeners.clone_0(), b = 0; b < a.size_0(); b++) a.elementAt_1(b).spinnerValueChanged_1(this); }, getSpinnterListeners_0: function () { return this.spinnerListeners; }, getValues_0: function () { return this.values; }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.spinnerListeners.setSize_1(0); }, getValue_0: function () { return this.values[this.currentStep]; }, getNumberOfValues_0: function () { return this.values.length; }, addSpinnerListener_1: function (a) { this.spinnerListeners.contains_1(a) || this.spinnerListeners.addElement_1(a); }, getCurrentStep_0: function () { return this.currentStep; }, }, "GT1365", [GT1230] ), GT1449 = GT1437.extend( { initialConstructor_0: function () { this.clipTextContainer = this.debugContainer = this.background = this.guitext = this.text = this.color = this.fontMetrics = this.hAlign = this.vAlign = null; this.outline = 0; this.outlineColor = null; this.showToolTipIfTextTooLong = !1; this.toolTipButton = null; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.gradient = null; this.alpha = 0; this.textHidden = !1; this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowColor = null; this.updateLocked = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1449.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, GT1488.prototype.LEFT, GT1489.prototype.TOP); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1449.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, n, !0); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.clipTextContainer = this.debugContainer = this.background = this.guitext = this.text = this.color = this.fontMetrics = this.hAlign = this.vAlign = null; this.outline = 0; this.outlineColor = null; this.showToolTipIfTextTooLong = !1; this.toolTipButton = null; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = 0; this.gradient = null; this.alpha = 0; this.textHidden = !1; this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowColor = null; this.updateLocked = !1; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.vAlign = n; this.hAlign = m; this.fontMetrics = g; this.color = k; this.showToolTipIfTextTooLong = p; this.gradient = null; this.insetRight = this.insetLeft = 4; this.insetBottom = this.insetTop = 2; this.outline = 0; this.outlineColor = null; this.alpha = 255; this.update_0(); }, getAnchorX_0: function () { return this.hAlign == GT1488.prototype.LEFT ? this.getX_0() : this.hAlign == GT1488.prototype.CENTER ? this.getX_0() + Math.div(this.getWidth_0(), 2) : this.getX_0() + this.getWidth_0(); }, getAnchorY_0: function () { return this.vAlign == GT1489.prototype.TOP ? this.getY_0() : this.vAlign == GT1489.prototype.CENTER ? this.getY_0() + Math.div(this.getHeight_0(), 2) : this.getY_0() + this.getHeight_0(); }, getFontMetrics_0: function () { return this.fontMetrics; }, setOutline_2: function (a, b) { (this.outline == a && GT1677.prototype.isEqual_2(this.outlineColor, b)) || ((this.outline = a), (this.outlineColor = b), this.update_0()); }, getOutline_0: function () { return this.outline; }, getOutlineColor_0: function () { return this.outlineColor; }, setShadow_3: function (a, b, d) { (this.shadowOffsetX == a && this.shadowOffsetY == b && GT1677.prototype.isEqual_2(this.shadowColor, d)) || ((this.shadowOffsetX = a), (this.shadowOffsetY = b), (this.shadowColor = d), 0 == this.shadowOffsetX && 0 == this.shadowOffsetY && (this.shadowColor = null), null == this.shadowColor && (this.shadowOffsetY = this.shadowOffsetX = 0), this.update_0()); }, getShadowOffsetX_0: function () { return this.shadowOffsetX; }, getShadowOffsetY_0: function () { return this.shadowOffsetY; }, getShadowColor_0: function () { return this.shadowColor; }, setColor_1: function (a) { GT1677.prototype.isEqual_2(this.color, a) || ((this.color = a), this.update_0()); }, getColor_0: function () { return this.color; }, getGradient_0: function () { return this.gradient; }, setGradientColor_2: function (a, b) { this.setGradient_1(new GT1592([a, b], [48 / 255, 207 / 255], Math.PI / 2)); }, setGradient_1: function (a) { var b = null != a && !a.equals_1(this.gradient), d = null != this.gradient && null == a; if (b || d) (this.gradient = a), this.update_0(); }, setInsets_4: function (a, b, d, e) { if (this.insetLeft != a || this.insetRight != b || this.insetTop != d || this.insetBottom != e) (this.insetLeft = a), (this.insetRight = b), (this.insetTop = d), (this.insetBottom = e), this.update_0(); }, getInsetLeft_0: function () { return this.insetLeft; }, getInsetRight_0: function () { return this.insetRight; }, getInsetTop_0: function () { return this.insetTop; }, getInsetBottom_0: function () { return this.insetBottom; }, setText_1: function (a) { a != this.text && ((this.text = a), this.update_0()); }, getText_0: function () { return this.text; }, setHAlign_1: function (a) { this.hAlign != a && ((this.hAlign = a), this.update_0()); }, getHAlign_0: function () { return this.hAlign; }, setVAlign_1: function (a) { this.vAlign != a && ((this.vAlign = a), this.update_0()); }, getVAlign_0: function () { return this.vAlign; }, getTextAnchorX_1: function (a) { a == GT1488.prototype.RIGHT ? ((a = this.getWidth_0() - this.insetRight - this.getHorizontalMargin_2(this.getFontMetrics_0(), this.getOutline_0())), 0 < this.shadowOffsetX && (a -= this.shadowOffsetX)) : a == GT1488.prototype.CENTER ? (a = Math.div(this.getHorizontalSpaceForText_0(), 2) + this.insetLeft) : ((a = this.insetLeft + this.getHorizontalMargin_2(this.getFontMetrics_0(), this.getOutline_0())), 0 > this.shadowOffsetX && (a -= this.shadowOffsetX)); return a; }, getTextAnchorX_0: function () { return this.getTextAnchorX_1(this.hAlign); }, getTextAnchorY_1: function (a) { this.getVAlign_0() == GT1489.prototype.BOTTOM ? ((a = this.getHeight_0() - a - this.getInsetBottom_0()), 0 < this.shadowOffsetY && (a -= this.shadowOffsetY)) : this.getVAlign_0() == GT1489.prototype.CENTER ? (a = Math.div(this.getVerticalSpaceForText_0() - a, 2) + this.getInsetTop_0()) : ((a = this.getInsetTop_0()), 0 < this.shadowOffsetY && (a -= this.shadowOffsetY)); return a + this.getVerticalMargin_2(this.getFontMetrics_0(), this.getOutline_0()); }, getHorizontalSpaceForText_0: function () { return this.getWidth_0() - this.insetLeft - this.insetRight; }, getVerticalSpaceForText_0: function () { return this.getHeight_0() - this.insetTop - this.insetBottom; }, resize_2: function (a, b) { if (this.width != a || this.height != b) GT1437.prototype.resize_2.call(this, a, b), this.adaptBackground_0(), this.update_0(); }, adaptBackground_0: function () { null != this.background && (this.background.resize_2(this.width, this.height), 1 == this.background.getChildCount_0() && instanceOf(this.background.getChild_1(0), GT1525) && this.background.getChild_1(0).resize_2(this.width, this.height)); }, getBackground_0: function () { (null != this.background && this.background.isAlive_0()) || ((this.background = new GT1437(this, 0, 0, this.getWidth_0(), this.getHeight_0())), this.background.reorder_1(!1), instanceOf(this.background, GT1480) && this.background.setAlpha_1(this.alpha), this.update_0()); return this.background; }, setUpdateLock_2: function (a, b) { a && b && this.update_0(); this.updateLocked = a; !a && b && this.update_0(); }, isUpdateLocked_0: function () { return this.updateLocked; }, update_0: function () { if (!this.isUpdateLocked_0() && (GT1560.prototype.destroyIfAlive_1(this.guitext), GT1560.prototype.destroyIfAlive_1(this.clipTextContainer), null != this.text)) { var a = GT1489.prototype.TOP.combinedFlags_1(this.isAllTextVisible_0() ? this.hAlign : GT1488.prototype.LEFT), b; b = this.isAllTextVisible_0() ? this.getTextAnchorX_0() : this.getTextAnchorX_1(GT1488.prototype.LEFT); var d = this.getTextAnchorY_1(this.fontMetrics.getHeight_0() + 2 * this.getVerticalMargin_2(this.fontMetrics, this.getOutline_0())); this.isAllTextVisible_0() ? (this.guitext = new GT1606(this, b, d, a, this.text, this.fontMetrics, this.color, this.outline, this.outlineColor)) : ((this.clipTextContainer = new GT1437(this, this.insetLeft, this.insetTop, this.getHorizontalSpaceForText_0(), this.getVerticalSpaceForText_0())), (this.guitext = new GT1606(this.clipTextContainer, 0, 0, a, this.text, this.fontMetrics, this.color, this.outline, this.outlineColor))); (0 == this.shadowOffsetX && 0 == this.shadowOffsetY) || this.guitext.setShadow_3(this.shadowOffsetX, this.shadowOffsetY, this.shadowColor); this.guitext.setAlpha_1(this.alpha); this.guitext.hide_1(this.textHidden); null != this.gradient && this.guitext.setGradient_1(this.gradient); this.checkToolTipNeeded_0(); this.hasDebugBorder_0() && this.showBorders_1(!0); } }, hasDebugBorder_0: function () { return null != this.debugContainer && this.debugContainer.isAlive_0(); }, showBorders_1: function (a) { a ? (GT1560.prototype.destroyIfAlive_1(this.debugContainer), (this.debugContainer = new GT1437(this.getBackground_0())), this.debugContainer.setApplicationID_1(GT1449.prototype.DEBUG_CONTAINER_ID), (a = new GT1440(this.debugContainer, 0, 0, this.getWidth_0(), this.getHeight_0(), GT1634.prototype.gray)), a.setAlpha_1(200), (a = new GT1440(this.debugContainer, this.insetLeft, this.insetTop, this.getHorizontalSpaceForText_0(), this.getVerticalSpaceForText_0(), GT1634.prototype.white)), a.setAlpha_1(150), new GT1606(this.debugContainer, 0, 0, GT1606.prototype.VALIGN_TOP, this.toString(), this.fontMetrics, GT1634.prototype.black).setAlpha_1(100), this.debugContainer.reorder_1(!0)) : null != this.debugContainer && (this.debugContainer.destroy_0(), (this.debugContainer = null)); }, isAllTextVisible_0: function () { return null == this.text ? !0 : this.getTextWidth_0() + 2 * this.getHorizontalMargin_2(this.fontMetrics, this.outline) < this.getHorizontalSpaceForText_0() + Math.abs_1(this.shadowOffsetX); }, getTextWidth_0: function () { return this.stringWidth_2(this.fontMetrics, this.text); }, isShowToolTipIfTextToLong_0: function () { return this.showToolTipIfTextTooLong; }, setShowToolTipIfTextToLong_1: function (a) { this.showToolTipIfTextTooLong = a; this.checkToolTipNeeded_0(); }, getToolTipButton_0: function () { return this.toolTipButton; }, checkToolTipNeeded_0: function () { !this.showToolTipIfTextTooLong || this.isAllTextVisible_0() ? null != this.toolTipButton && (this.toolTipButton.isAlive_0() && this.toolTipButton.destroy_0(), (this.toolTipButton = null)) : this.createToolTip_0(); }, createToolTip_0: function () { (null != this.toolTipButton && this.toolTipButton.isAlive_0()) || ((this.toolTipButton = new GT1559(this, 0, 0, this.getWidth_0(), this.getHeight_0())), this.toolTipButton.setDragable_4(!0, !1, 0, 0), this.toolTipButton.setDragArea_4(0, 0, 0, 0), this.toolTipButton.setShowHandCursor_1(!1), this.toolTipButton.setToolTipAlwaysOn_1(!0)); this.toolTipButton.setToolTip_1(this.text); }, setHideText_1: function (a) { this.textHidden = a; GT1560.prototype.isAlive_1(this.guitext) && this.guitext.hide_1(a); }, setAlpha_1: function (a) { this.alpha = a; GT1560.prototype.isAlive_1(this.guitext) && this.guitext.setAlpha_1(a); if (null != this.background && this.background.isAlive_0()) for (var b = 0; b < this.background.getChildCount_0(); b++) { var d = this.background.getChild_1(b); instanceOf(d, GT1480) && d.setAlpha_1(a); } }, getAlpha_0: function () { return this.alpha; }, toString: function () { return "[x: " + this.getX_0() + ", y: " + this.getY_0() + ", w: " + this.getWidth_0() + ", h: " + this.getHeight_0() + "]"; }, }, "GT1449", [GT1584, GT1480] ); GT1449.prototype.getVerticalMargin_2 = function (a, b) { return b; }; GT1449.prototype.getHorizontalMargin_2 = function (a, b) { return b; }; GT1449.prototype.DEBUG_CONTAINER_ID = GT1677.prototype.generateID_0(); var GT1060 = GT1437.extend( { initialConstructor_0: function () { this.texture = null; this.wsquare = this.texheight = this.texwidth = 0; this.poly = this.corners = this.p3 = this.p2 = this.p1 = this.p0 = null; this.initialshowpoly = this.showpoly = !1; this.refpoint = null; this.py = this.px = 0; this.polycolor = null; this.useExactVisibility = !1; this.sheary = this.shearx = this.scaley = this.scalex = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.texture = null; this.wsquare = this.texheight = this.texwidth = 0; this.poly = this.corners = this.p3 = this.p2 = this.p1 = this.p0 = null; this.initialshowpoly = this.showpoly = !1; this.refpoint = null; this.py = this.px = 0; this.polycolor = null; this.useExactVisibility = !1; this.sheary = this.shearx = this.scaley = this.scalex = 0; GT1437.prototype.initialConstructor_1.call(this, a); this.texwidth = null != b ? Math.div(b.getWidth_0(), d) : 60; this.texheight = null != b ? b.getHeight_0() : 60; this.wsquare = this.texwidth * this.texwidth; null == b || f || ((this.texture = new GT1075(this, 0, 0, this.getParent_0().getWidth_0(), this.getParent_0().getHeight_0(), b, 0.5, 0.5, e, 0)), this.texture.setTranslation_2(this.texwidth, this.texheight), this.texture.hide_1(!0)); this.p0 = new GT1641(this.texwidth / 2, -this.texheight / 2, 0); this.p1 = new GT1641(-this.texwidth / 2, -this.texheight / 2, 0); this.p2 = new GT1641(-this.texwidth / 2, this.texheight / 2, 0); this.p3 = new GT1641(this.texwidth / 2, this.texheight / 2, 0); this.corners = [].createArray(8).init(0); this.initialshowpoly = this.showpoly = f || null == this.texture; this.refpoint = new GT1631(this.texwidth / 2, -this.texheight / 2); this.polycolor = g; this.useExactVisibility = !0; }, initialConstructor_4: function (a, b, d, e) { GT1060.prototype.initialConstructor_6.call(this, a, b, d, e, !1, GT1634.prototype.red); }, usePolygonFallback_1: function (a) { a != this.showpoly && (a ? (this.showpoly = !0) : this.initialshowpoly || null == this.texture || (this.showpoly = !1)); }, setUseExactVisibility_1: function (a) { this.useExactVisibility = a; }, getP0_0: function () { return this.p0; }, getP1_0: function () { return this.p1; }, getP2_0: function () { return this.p2; }, getP3_0: function () { return this.p3; }, setShading_1: function (a) { a = Integer.truncate_1(100 * a); this.setColorTransformation_1(new GT1063(a)); }, setPosition_2: function (a, b) { GT1560.prototype.isAlive_1(this.texture) && this.texture.setTranslation_2(a, b); }, setTransformAndLightning_5: function (a, b, d, e, f) { if (!this.isAlive_0()) return null; null != this.poly && this.poly.isAlive_0() && this.poly.destroy_0(); null != this.texture && this.texture.isAlive_0() && this.texture.hide_1(!0); var g = GT1640.prototype.transformVector_2(this.p0, d), k = GT1640.prototype.transformVector_2(this.p1, d), m = GT1640.prototype.transformVector_2(this.p2, d); d = GT1640.prototype.transformVector_2(this.p3, d); if (this.useExactVisibility) { if (!this.isPlaneVisible_3(g, k, m)) return null; } else if (!this.isPlaneVisible_4(g, k, m, 0.2)) return null; this.corners[0] = GT1672.prototype.doubleToInt_1(g.x) + a; this.corners[1] = GT1672.prototype.doubleToInt_1(g.y) + b; this.corners[2] = GT1672.prototype.doubleToInt_1(k.x) + a; this.corners[3] = GT1672.prototype.doubleToInt_1(k.y) + b; this.corners[4] = GT1672.prototype.doubleToInt_1(m.x) + a; this.corners[5] = GT1672.prototype.doubleToInt_1(m.y) + b; this.corners[6] = GT1672.prototype.doubleToInt_1(d.x) + a; this.corners[7] = GT1672.prototype.doubleToInt_1(d.y) + b; this.px = (g.x + k.x + m.x + d.x) / 4 + a; this.py = (g.y + k.y + m.y + d.y) / 4 + b; a = null; for (d = b = 0; 8 > d; d += 2) { this.calculateShearAndScale_1(d); if (0 == this.scalex || 0 == this.scaley) return null; if ( !((0 < this.shearx && 0 < this.sheary && this.sheary >= 1 / this.shearx) || (0 > this.shearx && 0 > this.sheary && -this.sheary >= 1 / -this.shearx) || 100 < Math.abs_1(this.shearx) || 100 < Math.abs_1(this.sheary)) ) { a = GT1639.prototype.multiply_2(GT1639.prototype.scaleMatrix_2(this.scalex, this.scaley), GT1639.prototype.shearMatrix_2(this.shearx, this.sheary)); var n = GT1639.prototype.transformVector_2(this.refpoint, a); n.x += this.px; n.y += this.py; d = GT1672.prototype.doubleToInt_1(n.x); var n = GT1672.prototype.doubleToInt_1(n.y), p = 2 * Math.PI; 1 >= Math.abs_1(d - this.corners[0]) && 1 >= Math.abs_1(n - this.corners[1]) && (p = 0); 1 >= Math.abs_1(d - this.corners[2]) && 1 >= Math.abs_1(n - this.corners[3]) && (p = Math.PI / 2); 1 >= Math.abs_1(d - this.corners[4]) && 1 >= Math.abs_1(n - this.corners[5]) && (p = Math.PI); 1 >= Math.abs_1(d - this.corners[6]) && 1 >= Math.abs_1(n - this.corners[7]) && (p = -Math.PI / 2); a = GT1639.prototype.multiply_2(GT1639.prototype.rotMatrix_1(p), a); b++; break; } } if (0 == b) return null; this.setPosition_2(this.px, this.py); if (this.showpoly) { this.setColorTransformation_1(null); d = b = 0; for (var p = (n = 1e5), q = 0; q < this.corners.length; q += 2) (this.corners[q] = Integer.truncate_1(this.corners[q] - this.px + Math.div(this.getWidth_0(), 2))), (b = Math.max_2(this.corners[q], b)), (n = Math.min_2(n, this.corners[q])); for (q = 1; q < this.corners.length; q += 2) (this.corners[q] = Integer.truncate_1(this.corners[q] - this.py + Math.div(this.getHeight_0(), 2))), (d = Math.max_2(this.corners[q], d)), (p = Math.min_2(p, this.corners[q])); this.move_2(Integer.truncate_1(this.px) - Math.div(this.getWidth_0(), 2), Integer.truncate_1(this.py) - Math.div(this.getHeight_0(), 2)); e = this.calculateShading_5(g, k, m, e, f); e = new GT1634( Math.min_2(Integer.truncate_1(this.polycolor.getRed_0() * e), 255), Math.min_2(Integer.truncate_1(this.polycolor.getGreen_0() * e), 255), Math.min_2(Integer.truncate_1(this.polycolor.getBlue_0() * e), 255) ); this.poly = new GT1223(this, 0, 0, b, d, this.corners, [e]); this.poly.reorder_1(!1); } else this.move_2(0, 0), this.setShading_1(this.calculateShading_5(g, k, m, e, f)), this.texture.hide_1(!1), null != a && this.texture.setTransformation_1(a.getArray_0()); return a; }, calculateShearAndScale_1: function (a) { var b, d, e, f; b = this.corners[(a + 1) % 8] - this.corners[(a + 7) % 8]; d = this.corners[a] - this.corners[(a + 6) % 8]; e = this.corners[(a + 2) % 8] - this.corners[a]; f = this.corners[(a + 3) % 8] - this.corners[(a + 1) % 8]; this.shearx = 0 != d ? b / d : 1e3; this.sheary = 0 != f ? e / f : 1e3; a = this.wsquare + this.wsquare * this.sheary * this.sheary; e = e * e + f * f; this.scalex = Math.sqrt_1((b * b + d * d) / (this.wsquare + this.wsquare * this.shearx * this.shearx)); this.scaley = Math.sqrt_1(e / a); }, }, "GT1060", [] ); GT1060.prototype.isPlaneVisible_4 = function (a, b, d, e) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); b = GT1641.prototype.cross_2(a, b); b.normalize_0(); return b.z > e; }; GT1060.prototype.isPlaneVisible_3 = function (a, b, d) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); return 0 < a.x * b.y - a.y * b.x; }; GT1060.prototype.calculateShading_5 = function (a, b, d, e, f) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); b = GT1641.prototype.cross_2(a, b); e = GT1641.prototype.cosAlpha_2(e, b); 0 > e && (e = 0); return f + (1.1 - f) * e; }; GT1060.prototype.zzzz_dummyguiobject = null; var GT1463 = GT1449.extend( { initialConstructor_0: function () { this.timer = this.updateTimeCallback = null; this.showSeconds = !1; GT1449.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { GT1463.prototype.initialConstructor_12.call(this, a, b, d, e, f, g, k, m, n, p, !0, !1); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.timer = this.updateTimeCallback = null; this.showSeconds = !1; GT1449.prototype.initialConstructor_10.call(this, a, d, e, f, g, k, m, n, p, q); this.timer = b; this.showSeconds = r; this.updateTimeCallback = new GT1509(this, GT1463.prototype.UPDATETIME); b.triggerCallbackImmediately_1(this.updateTimeCallback); }, run_1: function (a) { GT1463.prototype.UPDATETIME.equals_1(a) && GT1560.prototype.isAlive_1(this) && (GT1449.prototype.setText_1.call(this, GT1563.prototype.timeOfDay_1(this.showSeconds)), this.timer.triggerCallbackAfter_2(this.updateTimeCallback, 1e3)); }, }, "GT1463", [GT1482] ); GT1463.prototype.UPDATETIME = "updatetime"; var GT1291 = GT1437.extend( { initialConstructor_0: function () { GT1437.prototype.initialConstructor_0.call(this); this.transferAreas = this.tempRectangle = this.dirtyRectSet = this.inputfields = this.listener = this.syncObject = this.clock = this.awtcontainer = this.toolkit = null; this.suppressautomaticupdate = this.hasfocus = this.started = !1; this.awtheight = this.awtwidth = this.awty = this.awtx = this.realheight = this.realwidth = this.aspectratio = this.designedcoreareaheight = this.designedcoreareawidth = this.designedcoreareay = this.designedcoreareax = this.designedheight = this.designedwidth = 0; this.cursor = this.offGraphics = this.offImage = null; this.mouseDown = !1; this.pointerStateProvider = this.sizeChangedCallback = null; }, initialConstructor_6: function (a, b, d, e, f, g) { GT1437.prototype.initialConstructor_0.call(this); this.suppressautomaticupdate = this.hasfocus = this.started = !1; this.awty = this.awtx = this.designedcoreareaheight = this.designedcoreareawidth = this.designedcoreareay = this.designedcoreareax = 0; this.cursor = this.offGraphics = this.offImage = null; this.mouseDown = !1; this.sizeChangedCallback = null; this.y = this.x = 0; this.width = b; this.height = d; this.toolkit = f; this.clock = g; this.designedheight = this.designedwidth = -1; this.aspectratio = 1; this.realwidth = b; this.realheight = d; this.awtwidth = b; this.awtheight = d; this.awtcontainer = a; this.syncObject = e; this.listener = null; this.inputfields = new java_util_JavaScriptVector(); this.dirtyRect = new GT1553(); this.tempRectangle = new GT1553(); STAGE = new PIXI.Stage(0); STAGE.interactive = !1; this._displayObject = new PIXI.DisplayObjectContainer(); this.topcontaineroffset = 1 == JSUTIL.getParameter("html5") ? CONFIG.TOPCONTAINEROFFSET : 0; this.smartRepaint = "1" !== CONFIG.webgl && "1" === CONFIG.smartrepaint; this.webglSmartRepaint = "1" === CONFIG.webgl && "1" === CONFIG.webglsmartrepaint; this.anyKindOfSmartRepaint = this.smartRepaint || this.webglSmartRepaint; this.textureAsDrawingBuffer = !1; a = null != CONFIG.get("record") && "1" === CONFIG.webgl; b = !this.smartRepaint && "1" === CONFIG.clearbeforerender; this.webglDirty = !0; a = { antialias: !1, transparent: "1" === CONFIG.webgltransparentbg, clearBeforeRender: b, preserveDrawingBuffer: a, resolution: 1 }; RENDERER = "1" === CONFIG.webgl ? new PIXI.WebGLRenderer(this.designedwidth * CONFIG.SCALINGFACTOR, this.designedheight * CONFIG.SCALINGFACTOR, a) : new PIXI.CanvasRenderer(this.designedwidth * CONFIG.SCALINGFACTOR, this.designedheight * CONFIG.SCALINGFACTOR, a); this.textureAsDrawingBuffer ? ((this.renderTexture = new PIXI.RenderTexture(100, 100, RENDERER)), (a = new PIXI.Sprite(this.renderTexture)), STAGE.addChild(a)) : STAGE.addChild(this._displayObject); this.dirtyAreaRects = []; G.append(CONFIG.CONTAINERS.container, RENDERER.view); if (0 != CONFIG.CLIENTSLOTAPPLET.getIntParameter_2("debug", 0) && 0 != CONFIG.CLIENTSLOTAPPLET.getIntParameter_2("debugvisuals", 1)) { var k = this; setTimeout(function () { var a = Math.ceil(30 * CONFIG.SCALINGFACTOR); ONSCREEN_RENDERER_TYPE_TEXT = new PIXI.Text((RENDERER.type == PIXI.WEBGL_RENDERER ? "WebGL" : "Canvas") + (CONFIG.get("webp") ? " WebP" : ""), { font: a + "px Arial", fill: "yellow" }); ONSCREEN_RENDERER_TYPE_TEXT.position.x = (k.designedcoreareax + k.topcontaineroffset + 40) * CONFIG.SCALINGFACTOR; ONSCREEN_RENDERER_TYPE_TEXT.position.y = 803 * CONFIG.SCALINGFACTOR; STAGE.addChild(ONSCREEN_RENDERER_TYPE_TEXT); }, 100); } }, _updateScreenSize: function () { null != this.sizeChangedCallback && this.sizeChangedCallback.screenSizeChanged_1(this.realwidth >= this.realheight ? GT1371.prototype.ORIENTATION_LANDSCAPE : GT1371.prototype.ORIENTATION_PORTRAIT); }, addFullscreenDirtyAreaRect: function () { this.smartRepaint ? ((this.dirtyAreaRects.length = 0), (this.dirtyAreaRects[0] = 0), (this.dirtyAreaRects[1] = 0), (this.dirtyAreaRects[2] = this._displayObject.width), (this.dirtyAreaRects[3] = this._displayObject.height)) : (this.webglDirty = !0); }, _updateDisplayObject: function () { GT1560.prototype._updateDisplayObject.call(this); this.addFullscreenDirtyAreaRect(); }, _isAInsideOfB: function (a, b, d, e, f, g, k, m) { return a >= f && b >= g && d <= k && e <= m; }, addDirtyAreaRect: function (a) { if (this.smartRepaint) { if (G.isNotNullAndDefined(this._displayObject)) if (a instanceof GT1055) this._resetDirtyArea(), this.addFullscreenDirtyAreaRect(); else if (((a = a instanceof PIXI.DisplayObjectContainer ? a : a._displayObject), G.isNotNullAndDefined(a))) { var b = a.width, d = a.height; 0 == b && (b = a._width); 0 == d && (d = a._height); var e = a instanceof PIXI.Graphics; 1 == e && (a.updateLocalBounds(), isFinite(a._bounds.width) && (b = a._bounds.width), isFinite(a._bounds.height) && (d = a._bounds.height)); G.isNotNullAndDefined(a.texture) && ((b = a.texture.frame.width), (d = a.texture.frame.height)); var f = this._getDisplayObjectScaleX(a), g = this._getDisplayObjectScaleY(a), k = b * f, m = d * g, d = this._getDisplayObjectXInTopContainer(a), b = this._getDisplayObjectYInTopContainer(a); if (G.isNotNullAndDefined(a.rotation) && 0 != a.rotation) { var n, p, q, r, t, u, B = d; u = b; if (a.greentube_matrix && 3 < a.greentube_matrix.length) { k /= a.scale.x; m /= a.scale.y; r = a.greentube_matrix[0]; var A = a.greentube_matrix[1], C = a.greentube_matrix[2], E = a.greentube_matrix[3]; a.gt_overridewidth_factor && ((r *= a.gt_overridewidth_factor), (C *= a.gt_overridewidth_factor)); a.gt_overrideheight_factor && ((A *= a.gt_overrideheight_factor), (E *= a.gt_overrideheight_factor)); var F = 0.5 * k, D = 0.5 * m, B = -F; u = -D; n = r * B + C * u; t = A * B + E * u; B = F; p = r * B + C * u; k = A * B + E * u; u = D; q = r * B + C * u; m = A * B + E * u; B = -F; r = r * B + C * u; u = A * B + E * u; B = Math.min(n, p, q, r); p = Math.max(n, p, q, r); n = Math.min(t, k, m, u); m = Math.max(t, k, m, u); k = Math.ceil(p - B + 2); m = Math.ceil(m - n + 2); d = d + F * a.scale.x + Math.ceil(B - 2); b = b + D * a.scale.y + Math.ceil(n - 2); } else (t = a.rotation), (F = Math.sin(t)), (D = Math.cos(t)), (A = d + (a.pivot ? a.pivot.x * k : 0)), (E = b + (a.pivot ? a.pivot.y * m : 0)), (n = D * (B - A) - F * (u - E) + A), (t = F * (B - A) + D * (u - E) + E), (B = d + k), (p = D * (B - A) - F * (u - E) + A), (k = F * (B - A) + D * (u - E) + E), (u = b + m), (q = D * (B - A) - F * (u - E) + A), (m = F * (B - A) + D * (u - E) + E), (B = d), (r = D * (B - A) - F * (u - E) + A), (u = F * (B - A) + D * (u - E) + E), (B = Math.min(n, p, q, r)), (p = Math.max(n, p, q, r)), (n = Math.min(t, k, m, u)), (m = Math.max(t, k, m, u)), (k = Math.ceil(p - B + 2)), (m = Math.ceil(m - n + 2)), (d = Math.ceil(B - 2)), (b = Math.ceil(n - 2)); } !a.pivot || a instanceof PIXI.Sprite || (a.pivot.x && 0 != a.pivot.x && (d -= a.pivot.x * f), a.pivot.y && 0 != a.pivot.y && (b -= a.pivot.y * g)); 1 == e && (isFinite(a._bounds.x) && ((f = a.parent), (d = G.isNotNullAndDefined(f) ? d + a._bounds.x * this._getDisplayObjectScaleX(f) : d + a._bounds.x)), isFinite(a._bounds.y) && ((f = a.parent), (b = G.isNotNullAndDefined(f) ? b + a._bounds.y * this._getDisplayObjectScaleY(f) : b + a._bounds.y))); G.isNotNullAndDefined(a._bounds) && (isFinite(a._bounds.x) && 0 > a._bounds.x && ((f = d + k), (d += a._bounds.x), (k = f - d)), isFinite(a._bounds.y) && 0 > a._bounds.y && ((f = b + m), (b += a._bounds.y), (m = f - b)), isFinite(a._bounds.width) && k < a._bounds.width && (k = a._bounds.width), isFinite(a._bounds.height) && m < a._bounds.height && (m = a._bounds.height)); f = d + k; g = b + m; t = 0 < f && 0 < g && (1 == e || (d < this._displayObject.width && b < this._displayObject.height)); if (!0 === t) { 0 > d && ((d = 0), (k = f)); 0 > b && ((b = 0), (m = g)); 0 != e || (G.isNotNullAndDefined(a.rotation) && 0 != a.rotation) || (f > this._displayObject.width && ((f = this._displayObject.width), (k = f - d)), g > this._displayObject.height && ((g = this._displayObject.height), (m = g - b))); a = this.dirtyAreaRects.length; for (e = 0; e < a && !0 === t; e += 4) this._isAInsideOfB(d, b, f, g, this.dirtyAreaRects[e], this.dirtyAreaRects[e + 1], this.dirtyAreaRects[e] + this.dirtyAreaRects[e + 2], this.dirtyAreaRects[e + 1] + this.dirtyAreaRects[e + 3]) && (t = !1); if (!0 === t) for (e = 0; e < a; e += 4) this._isAInsideOfB(this.dirtyAreaRects[e], this.dirtyAreaRects[e + 1], this.dirtyAreaRects[e] + this.dirtyAreaRects[e + 2], this.dirtyAreaRects[e + 1] + this.dirtyAreaRects[e + 3], d, b, f, g) && (!0 === t ? ((this.dirtyAreaRects[e] = d), (this.dirtyAreaRects[e + 1] = b), (this.dirtyAreaRects[e + 2] = k), (this.dirtyAreaRects[e + 3] = m), (t = !1)) : ((this.dirtyAreaRects[e] = 0), (this.dirtyAreaRects[e + 1] = 0), (this.dirtyAreaRects[e + 2] = 0), (this.dirtyAreaRects[e + 3] = 0))); !0 === t && ((this.dirtyAreaRects[a] = d), (this.dirtyAreaRects[a + 1] = b), (this.dirtyAreaRects[a + 2] = k), (this.dirtyAreaRects[a + 3] = m)); } } } else this.webglDirty = !0; }, createDirtyAreaMask: function () { if (this.smartRepaint && this._needScreenRedraw()) { for (var a = 1 == JSUTIL.getParameter("debugsmartrepaint"), b = 0; b < this.dirtyAreaRects.length; b += 4) (this.dirtyAreaRects[b] = Math.floor(this.dirtyAreaRects[b]) - 2), (this.dirtyAreaRects[b + 1] = Math.floor(this.dirtyAreaRects[b + 1]) - 2), (this.dirtyAreaRects[b + 2] = Math.ceil(this.dirtyAreaRects[b + 2]) + 4), (this.dirtyAreaRects[b + 3] = Math.ceil(this.dirtyAreaRects[b + 3]) + 4); !1 === a ? ((a = this._displayObject.mask), "undefined" === typeof a || null == a ? (a = new PIXI.Graphics()) : a.clear(), a.beginFill(), a.drawMultiRects(this.dirtyAreaRects), a.endFill(), (this._displayObject.mask = a), 0 > this._displayObject.children.indexOf(this._displayObject.mask) && this._displayObject.addChild(a)) : ("undefined" === typeof DIRTYMASK_VISUALIZER || null == DIRTYMASK_VISUALIZER ? (DIRTYMASK_VISUALIZER = new PIXI.Graphics()) : DIRTYMASK_VISUALIZER.clear(), DIRTYMASK_VISUALIZER.lineStyle(4, 65280, 0.9), DIRTYMASK_VISUALIZER.drawMultiRects(this.dirtyAreaRects), 0 > this._displayObject.children.indexOf(DIRTYMASK_VISUALIZER) && this._displayObject.addChild(DIRTYMASK_VISUALIZER)); } }, _resetDirtyArea: function () { this.smartRepaint ? ((this.dirtyAreaRects.length = 0), "undefined" != typeof this._displayObject.mask && null != this._displayObject.mask && -1 !== this._displayObject.children.indexOf(this._displayObject.mask) && (this._displayObject.removeChild(this._displayObject.mask), (this._displayObject.mask = null))) : (this.webglDirty = !1); }, _needScreenRedraw: function () { return ( !0 !== this.anyKindOfSmartRepaint || (!0 === this.smartRepaint && 4 <= this.dirtyAreaRects.length) || (!0 === this.webglSmartRepaint && !0 === this.webglDirty) || (CONFIG.CLIENTSLOTAPPLET.orientationSensorManager && CONFIG.CLIENTSLOTAPPLET.orientationSensorManager.isStarted_0()) ); }, destroyImpl_2: function (a, b) { this.destroyChildren_0(); this.sizeChangedCallback = null; }, start_0: function () { this.started = !0; this.hasfocus = !1; this.adjustAWTSize_0(); }, stop_0: function () { this.started = !1; this.offGraphics = this.offImage = null; }, setDesignedSize_6: function (a, b, d, e, f, g) { this.designedwidth = a; this.designedheight = b; this.designedcoreareax = d; this.designedcoreareay = e; this.designedcoreareawidth = f; this.designedcoreareaheight = g; a = Math.floor((this.designedwidth - 2 * this.topcontaineroffset) * CONFIG.SCALINGFACTOR); b = Math.floor(this.designedheight * CONFIG.SCALINGFACTOR); RENDERER.resize(a, b); this.textureAsDrawingBuffer && this.renderTexture.resize(a, b); this._displayObject.position.x = -1 * Math.ceil(this.topcontaineroffset * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.position.y = 0; this._displayObject.height = Math.ceil(this.designedheight * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.width = Math.ceil(this.designedwidth * CONFIG.SCALINGFACTOR - 0.5); this._displayObject.scale.x = 1; this._displayObject.scale.y = 1; "1" === CONFIG.webgl && JSUTIL.GLUtil.updateMainClipRegion_0(); this.adjustAWTSize_0(); "undefined" !== typeof ONSCREEN_RENDERER_TYPE_TEXT && ONSCREEN_RENDERER_TYPE_TEXT && ((ONSCREEN_RENDERER_TYPE_TEXT.position.x = (this.designedcoreareax - this.topcontaineroffset + 40) * CONFIG.SCALINGFACTOR), (ONSCREEN_RENDERER_TYPE_TEXT.position.y = 0.78 * this._displayObject.height)); }, setAspectRatio_1: function (a) { this.aspectratio = a; this.adjustAWTSize_0(); }, setRealSize_2: function (a, b) { if (this.realwidth != a || this.realheight != b) (this.realwidth = a), (this.realheight = b), this.adjustAWTSize_0(), this._updateScreenSize(); }, getVisibleArea_0: function () { var a = new GT1553(-this.awtx, -this.awty, this.realwidth, this.realheight).intersection_1(new GT1553(0, 0, this.awtwidth, this.awtheight)), b = this.width / this.awtwidth, d = this.height / this.awtheight; return new GT1553(Integer.truncate_1(a.x * b), Integer.truncate_1(a.y * d), Integer.truncate_1(a.width * b), Integer.truncate_1(a.height * d)); }, setSizeChangedCallback_1: function (a) { this.sizeChangedCallback = a; }, setUsingCursor_1: function (a) { this.cursor != a && ((this.cursor = a), a == GT1537.prototype.STANDARD ? (G.query("canvas").style.cursor = "default") : a == GT1537.prototype.NONE ? (G.query("canvas").style.cursor = "none") : a == GT1537.prototype.HAND ? (G.query("canvas").style.cursor = "pointer") : a == GT1537.prototype.MOVE ? (G.query("canvas").style.cursor = "move") : a == GT1537.prototype.WAIT ? (G.query("canvas").style.cursor = "wait") : a == GT1537.prototype.TEXT && (G.query("canvas").style.cursor = "text")); }, adjustAWTSize_0: function () { var a = [].createArray(2).init(0), b = this.determineCorrectDrawingSize_1(a), d = a[0], a = a[1]; if (d != this.width || a != this.height || this.awtwidth != b.width || this.awtheight != b.height || this.awtx != b.x || this.awty != b.y || null == this.offGraphics) (this.width = d), (this.height = a), (this.awtx = b.x), (this.awty = b.y), (this.awtwidth = b.width), (this.awtheight = b.height), (this.scalex = this.awtwidth / this.width), (this.scaley = this.awtheight / this.height), (b = G.query("canvas")), G.css(b, { position: "absolute", top: "0px", left: "0px" }), G.css(b, { transform: "translate(" + ((this.awtx + this.topcontaineroffset * this.scalex) * CONFIG.SCALINGFACTOR + G.body().scrollLeft) + "px ," + Math.round(this.awty * CONFIG.SCALINGFACTOR) + "px) scale3d(" + this.scalex + "," + this.scaley + ",1) ", "transform-origin": "0% 0%", }), this.setAsDirtyArea_1(this); }, adjustInputfield_1: function (a) { G.css(a, { transform: "translate(" + ((this.awtx + this.topcontaineroffset * this.scalex) * CONFIG.SCALINGFACTOR + G.body().scrollLeft) + "px ," + Math.round(this.awty * CONFIG.SCALINGFACTOR) + "px) scale3d(" + this.scalex + "," + this.scaley + ",1) ", "transform-origin": "-" + a.style.left + " -" + a.style.top, }); }, determineCorrectDrawingSize_1: function (a) { if (0 >= this.designedwidth || 0 >= this.designedheight) return (a[0] = this.realwidth), (a[1] = this.realheight), new GT1553(0, 0, this.realwidth, this.realheight); var b = this.realwidth, d = this.realheight, e = Math.min(b / (this.designedcoreareawidth * this.aspectratio), d / this.designedcoreareaheight), f = e * this.aspectratio, g = this.designedwidth * f, k = this.designedheight * e, m = -(this.designedcoreareax * f), n = -(this.designedcoreareay * e), b = b - this.designedcoreareawidth * f, d = d - this.designedcoreareaheight * e; 0 < b && (m = this.designedcoreareawidth < this.designedwidth ? m + (this.designedcoreareax / (this.designedwidth - this.designedcoreareawidth)) * b : m + 0.5 * b); 0 < d && (n = this.designedcoreareaheight < this.designedheight ? n + (this.designedcoreareay / (this.designedheight - this.designedcoreareaheight)) * d : n + 0.5 * d); a[0] = this.designedwidth; a[1] = this.designedheight; return new GT1553(m, n, g, k); }, setListener_1: function (a) { this.listener = a; }, move_2: function (a, b) { throw new RuntimeException("not supported in GUITopContainer"); }, hide_1: function (a) { throw new RuntimeException("not supported in GUITopContainer"); }, getCurrentScalingX_0: function () { return (1 * this.awtwidth) / this.width; }, getCurrentScalingY_0: function () { return (1 * this.awtheight) / this.height; }, getAWTCoordinates_1: function (a) { var b = Math.div(a.x * this.awtwidth + this.width - 1, this.width), d = Math.div(a.y * this.awtheight + this.height - 1, this.height), e = Math.div((a.x + a.width) * this.awtwidth, this.width); a = Math.div((a.y + a.height) * this.awtheight, this.height); return new GT1553(this.awtx + b, this.awty + d, e - b, a - d); }, getGUICoordinates_1: function (a) { var b = Math.div((a.x - this.awtx) * this.width, this.awtwidth), d = Math.div((a.y - this.awty) * this.height, this.awtheight), e = Math.div((a.x + a.width - this.awtx) * this.width + this.awtwidth - 1, this.awtwidth); a = Math.div((a.y + a.height - this.awty) * this.height + this.awtheight - 1, this.awtheight); return new GT1553(b, d, e - b, a - d); }, getXInTopContainer_0: function () { return 0; }, getYInTopContainer_0: function () { return 0; }, findGUIInputField_1: function (a) { for (var b = 0; b < this.inputfields.size_0(); b++) { var d = this.inputfields.elementAt_1(b); if (d.textField == a) return d; } return null; }, hasInputFieldWithFocus_0: function () { for (var a = 0; a < this.inputfields.size_0(); a++) if (this.inputfields.elementAt_1(a).hasfocus) return !0; return !1; }, cache: {}, stringWidthImpl_2: function (a, b) { if (null == b || "" == b) return 0; var d = !0, e = JSUTIL.getOpenTypeCustomFont(a.name, a.weight, a.style); null !== e && (d = !1); d && (b = b.replace_2(String.fromCharCode(8239), String.fromCharCode(160))); var f = a.name + a.style + a.weight + a.size + b + "_" + (d ? "ntiv" : "cstm"), g = this.cache[f]; if (void 0 != g) return g; g = 0; if (d) null == this.context && ((this.canvas = document.createElement("canvas")), (this.context = this.canvas.getContext("2d"))), (this.context.font = (a.weight ? "bold " : "") + (a.style ? "italic " : "") + a.size + "px " + a.name), (g = this.context.measureText(b).width); else { var k = 0, m = 0; e.forEachGlyph(b, 0, 0, a.size, { kerning: !0 }, function (a, b, d, e) { k = b; m = a.advanceWidth; }); k += (1 / e.unitsPerEm) * m * a.size; g = Math.ceil(k); } return (this.cache[f] = g); }, isBlockedScreenArea_1: function (a) { for (var b = 0; b < this.inputfields.size_0(); b++) { var d = this.inputfields.elementAt_1(b), e = d.getXInTopContainer_0(), f = d.getXInTopContainer_0() + d.getWidth_0(), g = d.getYInTopContainer_0(), d = d.getYInTopContainer_0() + d.getHeight_0(), k = a.x + a.width, m = a.y, n = a.y + a.height; if (!(a.x > f || k < e || m > d || n < g)) return !0; } return !1; }, transformNativeToGUISpace_2: function (a, b) { return new GT1631(Math.round_1(Math.div((a - this.awtx) * this.width, this.awtwidth)), Math.round_1(Math.div((b - this.awty) * this.height, this.awtheight))); }, transformGUISpaceToNative_2: function (a, b) { return new GT1631((Math.div(a * this.awtwidth, this.width) + this.awtx) * CONFIG.SCALINGFACTOR, (Math.div(b * this.awtheight, this.height) + this.awty) * CONFIG.SCALINGFACTOR); }, transformGuiSpaceToParallax_2: function (a, b) { return new GT1631(2 * (((a * this.awtwidth) / this.width + this.awtx) / this.realwidth - 0.5), 2 * (((b * this.awtheight) / this.height + this.awty) / this.realheight - 0.5)); }, getNativeCoordinatesOfObject_1: function (a) { a = this.findDescendant_1(a); if (null == a) return { x: 0, y: 0, width: 0, height: 0 }; var b = this._getFinalContentScalingX(a), d = this._getFinalContentScalingY(a), e = this.transformGUISpaceToNative_2(a._getAbsoluteXwithContentScale_0(), a._getAbsoluteYwithContentScale_0()); return { x: e.x, y: e.y, width: CONFIG.SCALINGFACTOR * Math.div(a.width * this.awtwidth, this.width) * b, height: CONFIG.SCALINGFACTOR * Math.div(a.height * this.awtheight, this.height) * d }; }, keyPressed_1: function (a) { this.syncObject; this.clock.updateCurrentTime_0(); var b = "", d = a.getModifiers_0(); 0 != (d & java_awt_event_InputEvent.prototype.CTRL_MASK) && (b += "ctrl"); 0 != (d & java_awt_event_InputEvent.prototype.SHIFT_MASK) && (b += "shift"); 0 != (d & java_awt_event_InputEvent.prototype.ALT_MASK) && (b += "alt"); d = a.getKeyCode_0(); d = this.keyCodeToName_1(d); 0 < d.length_0() && null != this.listener && this.listener.keyPressed_3(this.findGUIInputField_1(a.getComponent_0()), d, b) && a.consume_0(); }, keyReleased_1: function (a) { this.syncObject; this.clock.updateCurrentTime_0(); var b = a.getKeyCode_0(), b = this.keyCodeToName_1(b); 0 < b.length_0() && null != this.listener && (this.listener.keyReleased_2(this.findGUIInputField_1(a.getComponent_0()), b), a.consume_0()); }, keyTyped_1: function (a) { this.syncObject; this.clock.updateCurrentTime_0(); a.getKeyCode_0() == java_awt_event_KeyEvent.prototype.VK_F10 && a.consume_0(); }, focusGained_1: function (a) { this.syncObject; this.clock.updateCurrentTime_0(); this.hasfocus = !0; 0 < this.inputfields.size_0() && this.inputfields.elementAt_1(0).textField.requestFocus_0(); }, focusLost_1: function (a) { this.syncObject; this.clock.updateCurrentTime_0(); this.hasfocus = !1; }, setPointerStateProvider_1: function (a) { this.pointerStateProvider = a; }, getMouseX_0: function () { return null != this.pointerStateProvider && null != this.pointerStateProvider.getPointerState_0() ? this.pointerStateProvider.getPointerState_0().currentPosition.x : -1; }, getMouseY_0: function () { return null != this.pointerStateProvider && null != this.pointerStateProvider.getPointerState_0() ? this.pointerStateProvider.getPointerState_0().currentPosition.y : -1; }, isMouseDown_0: function () { return null != this.pointerStateProvider && null != this.pointerStateProvider.getPointerState_0() ? this.isAlive_0() && this.pointerStateProvider.getPointerState_0().mouseButtonDown : !1; }, isAlive_0: function () { return this.started; }, }, "GT1291", [java_awt_event_KeyListener, java_awt_event_FocusListener, GT699, GT1428] ); GT1291.prototype.keyCodeToName_1 = function (a) { switch (a) { case java_awt_event_KeyEvent.prototype.VK_F1: return "f1"; case java_awt_event_KeyEvent.prototype.VK_F2: return "f2"; case java_awt_event_KeyEvent.prototype.VK_F3: return "f3"; case java_awt_event_KeyEvent.prototype.VK_F4: return "f4"; case java_awt_event_KeyEvent.prototype.VK_F5: return "f5"; case java_awt_event_KeyEvent.prototype.VK_F6: return "f6"; case java_awt_event_KeyEvent.prototype.VK_F7: return "f7"; case java_awt_event_KeyEvent.prototype.VK_F8: return "f8"; case java_awt_event_KeyEvent.prototype.VK_F9: return "f9"; case java_awt_event_KeyEvent.prototype.VK_F10: return "f10"; case java_awt_event_KeyEvent.prototype.VK_F11: return "f11"; case java_awt_event_KeyEvent.prototype.VK_F12: return "f12"; case java_awt_event_KeyEvent.prototype.VK_UP: return "up"; case java_awt_event_KeyEvent.prototype.VK_DOWN: return "down"; case java_awt_event_KeyEvent.prototype.VK_LEFT: return "left"; case java_awt_event_KeyEvent.prototype.VK_RIGHT: return "right"; case java_awt_event_KeyEvent.prototype.VK_PAGE_UP: return "pageup"; case java_awt_event_KeyEvent.prototype.VK_PAGE_DOWN: return "pagedown"; case java_awt_event_KeyEvent.prototype.VK_HOME: return "home"; case java_awt_event_KeyEvent.prototype.VK_END: return "end"; case java_awt_event_KeyEvent.prototype.VK_INSERT: return "insert"; case java_awt_event_KeyEvent.prototype.VK_DELETE: return "delete"; case java_awt_event_KeyEvent.prototype.VK_ENTER: return "enter"; case java_awt_event_KeyEvent.prototype.VK_BACK_SPACE: return "backspace"; case java_awt_event_KeyEvent.prototype.VK_TAB: return "tab"; case java_awt_event_KeyEvent.prototype.VK_CONTROL: return "control"; case java_awt_event_KeyEvent.prototype.VK_SHIFT: return "shift"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD0: return "num0"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD1: return "num1"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD2: return "num2"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD3: return "num3"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD4: return "num4"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD5: return "num5"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD6: return "num6"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD7: return "num7"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD8: return "num8"; case java_awt_event_KeyEvent.prototype.VK_NUMPAD9: return "num9"; case java_awt_event_KeyEvent.prototype.VK_DECIMAL: return "num,"; case java_awt_event_KeyEvent.prototype.VK_MULTIPLY: return "num*"; case java_awt_event_KeyEvent.prototype.VK_ADD: return "num+"; case java_awt_event_KeyEvent.prototype.VK_SUBTRACT: return "num-"; case java_awt_event_KeyEvent.prototype.VK_DIVIDE: return "num/"; case 403: return "red"; case 404: return "green"; case 405: return "yellow"; case 406: return "blue"; default: if (32 <= a && 255 >= a) return "" + a; } return ""; }; var GT852 = GT1437.extend( { initialConstructor_0: function () { this.alpha = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.alpha = 0; GT1437.prototype.initialConstructor_1.call(this, a); this.alpha = 255; }, initialConstructor_5: function (a, b, d, e, f) { this.alpha = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.alpha = 255; }, setAlpha_1: function (a) { if (this.alpha != a) { this.alpha = a; for (var b = 0; b < this.getChildCount_0(); b++) { var d = this.getChild_1(b); instanceOf(d, GT1480) && d.setAlpha_1(a); } } }, getAlpha_0: function () { return this.alpha; }, }, "GT852", [GT1480] ), GT1221 = GT1437.extend( { initialConstructor_0: function () { this.guiObjects = this.tweens = this.tweenManager = this.quadToImageMapping = this.timer = null; this.lastUpdateTime = 0; this.mIsPaused = this.mIsRunning = !1; this.updateCallback = this.mParent = null; this.tweensFinished = 0; this.startCallbacks = this.finishCallbacks = null; this.nrOfRestarts = this.updateInterval = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.guiObjects = this.tweens = this.tweenManager = this.quadToImageMapping = this.timer = null; this.lastUpdateTime = 0; this.mIsPaused = this.mIsRunning = !1; this.updateCallback = this.mParent = null; this.tweensFinished = 0; this.startCallbacks = this.finishCallbacks = null; this.nrOfRestarts = this.updateInterval = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.mParent = a; this.quadToImageMapping = k; this.tweenManager = new GT1487(); this.tweens = m; this.guiObjects = new java_util_JavaScriptVector(); this.updateCallback = new GT1366(this); this.finishCallbacks = new java_util_JavaScriptVector(); this.startCallbacks = new java_util_JavaScriptVector(); this.updateInterval = n; this.tweenManager = new GT1487(); this.nrOfRestarts = 0; }, addStartCallback_1: function (a) { null == a || this.startCallbacks.contains_1(a) || this.startCallbacks.add_1(a); }, removeStartCallbacks_1: function (a) { this.startCallbacks.removeElement_1(a); }, clearStartCallbacks_0: function () { this.startCallbacks.clear_0(); }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.add_1(a); }, removeFinishCallbacks_1: function (a) { this.finishCallbacks.removeElement_1(a); }, clearFinishCallbacks_0: function () { this.finishCallbacks.clear_0(); }, setUpdateInterval_1: function (a) { this.updateInterval = a; }, start_0: function () { if (this.mIsRunning) GT1650.prototype.assertExp_2(!1, "GUITweenContainer start() should not be called while the animations are running, call will be IGNORED ..."); else { this.tweenManager.isPaused_0() && this.tweenManager.resume_0(); this.tweensFinished = 0; this.lastUpdateTime = this.timer.currentTimeMillis_0(); this.timer.removeCallback_2(this.updateCallback, !1); this.destroyAllGuiObjects_0(); if (null != this.tweens) for (var a = 0; a < this.tweens.size_0(); a++) { var b = this.tweens.get_1(a); GT1487.prototype.setAutoRemove_2(b, !1); b.isFinished_0() ? b.update_1(-b.getDuration_0()) : this.tweenManager.containsTween_1(b) ? (b.update_1(-b.getDuration_0()), b.start_0()) : (b.setCallback_1(this), b.start_1(this.tweenManager)); } this.mIsRunning = !0; this.mIsPaused = !1; this.triggerCallbacksInVector_1(this.startCallbacks); this.update_0(); } }, pause_0: function () { this.mIsRunning = !1; this.mIsPaused = !0; this.tweenManager.pause_0(); }, isRunning_0: function () { return this.mIsRunning; }, isPaused_0: function () { return this.mIsPaused; }, isFinished_0: function () { return this.tweensFinished == this.tweens.size_0(); }, resume_0: function () { this.mIsPaused && ((this.mIsPaused = !1), (this.mIsRunning = !0), this.tweenManager.resume_0(), (this.lastUpdateTime = this.timer.currentTimeMillis_0()), this.update_0()); }, kill_1: function (a) { this.mIsPaused = this.mIsRunning = !1; this.timer.removeCallback_2(this.updateCallback, !1); this.destroyAllGuiObjects_0(); a && this.triggerCallbacksInVector_1(this.finishCallbacks); }, destroyAllGuiObjects_0: function () { for (var a = 0; a < this.guiObjects.size_0(); a++) { var b = this.guiObjects.get_1(a); GT1560.prototype.destroyIfAlive_1(b); } this.guiObjects.clear_0(); }, update_0: function () { var a = this.timer.currentTimeMillis_0(), b = 0; -1 != this.lastUpdateTime && (b = a - this.lastUpdateTime); this.lastUpdateTime = a; this.tweenManager.update_1(b / 1e3); for (a = 0; a < this.quadToImageMapping.size_0(); a++) { var b = this.quadToImageMapping.getQuadAt_1(a), d = this.quadToImageMapping.getImageAt_1(a), e = null; a < this.guiObjects.size_0() && (e = this.guiObjects.get_1(a)); var f = null; null == e ? ((f = new GT1075(this, 0, 0, this.getWidth_0(), this.getHeight_0(), d, 0.5, 0.5, 0, 0)), this.guiObjects.add_1(f)) : (f = e); f.setTranslation_2(b.getX_0(), b.getY_0()); e = Math.div(b.getWidth_0(), d.getWidth_0()); d = Math.div(b.getHeight_0(), d.getHeight_0()); f.setScale_2(b.getScaleX_0() * e, b.getScaleY_0() * d); f.setRotation_1(b.getRotation_0()); } this.mIsRunning && this.timer.triggerCallbackAfter_2(this.updateCallback, this.updateInterval); }, onEvent_2: function (a, b) { this.tweensFinished++; this.tweensFinished == this.tweens.size_0() && (this.triggerCallbacksInVector_1(this.finishCallbacks), (this.mIsRunning = !1)); }, triggerCallbacksInVector_1: function (a) { for (var b = 0; b < a.size_0(); b++) a.get_1(b).run_0(); }, destroyImpl_2: function (a, b) { this.kill_1(!1); GT1437.prototype.destroyImpl_2.call(this, a, b); }, destroyChildren_0: function () { this.kill_1(!1); GT1437.prototype.destroyChildren_0.call(this); }, }, "GT1221", [GT1426] ), GT1366 = Class.extend( { initialConstructor_0: function () { this.containerToUpdate = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.containerToUpdate = null; this.containerToUpdate = a; }, run_0: function () { null != this.containerToUpdate && this.containerToUpdate.isAlive_0() && this.containerToUpdate.update_0(); }, }, "GT1366", [Runnable] ), GT1265 = GT1437.extend( { initialConstructor_0: function () { this.values = null; this.currentStep = 0; this.formatter = this.timer = this.fontColor = this.valueTexts = this.fontMetrics = this.button = this.textContainer = this.spinnerButton = this.spinnerListeners = null; this.clickY = this.lastMouseY = 0; this.popupContainer = this.mtpa = null; this.textHeight = this.otherId = this.oldValue = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.values = null; this.currentStep = 0; this.formatter = this.timer = this.fontColor = this.valueTexts = this.fontMetrics = this.button = this.textContainer = this.spinnerButton = this.spinnerListeners = null; this.clickY = this.lastMouseY = 0; this.popupContainer = this.mtpa = null; this.textHeight = this.otherId = this.oldValue = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d - f.getHeight_0() + GT1265.prototype.BOTTOM_OVERLAP, p, f.getHeight_0() + e.getRowHeight_0() - GT1265.prototype.BOTTOM_OVERLAP); this.textHeight = Math.div(p, 4); this.button = new GT1559(this, 0, f.getHeight_0() - GT1265.prototype.BOTTOM_OVERLAP); this.button.setImage_1(e); this.button.addButtonListener_1(this); this.button.setApplicationData_2(0, "button"); this.popupContainer = new GT1437(this, 0, 0, Integer.truncate_1(f.getWidth_0()), f.getHeight_0()); this.spinnerButton = new GT1559(this.popupContainer, 0, 0, Integer.truncate_1(f.getWidth_0()), f.getHeight_0()); this.spinnerButton.setImage_1(f); this.spinnerButton.setImageAndStates_2(f, [GT1236.prototype.DEFAULT]); this.spinnerButton.addButtonListener_1(this); this.spinnerButton.setApplicationData_2(0, "spinnerButton"); this.spinnerButton.setDragable_1(!0); this.spinnerButton.setDragArea_4(this.spinnerButton.getX_0(), this.spinnerButton.getY_0(), 0, 0); this.textContainer = new GT1437(this.popupContainer, 0, 0, Integer.truncate_1(f.getWidth_0()), f.getHeight_0()); new GT1591(this.popupContainer, 0, 0, g).setAlpha_1(200); this.textContainer.reorder_1(!0); this.spinnerButton.reorder_1(!0); this.button.reorder_1(!0); this.popupContainer.hide_1(!0); this.spinnerListeners = new java_util_JavaScriptVector(); this.valueTexts = new java_util_JavaScriptVector(); this.fontMetrics = k; this.fontColor = m; this.timer = n; this.otherId = q; this.currentStep = 0; this.values = [0]; }, updateValues_0: function () { if (null != this.values && null != this.valueTexts && null != this.valueTexts) { for (var a = 0; a < this.valueTexts.size_0(); ++a) this.valueTexts.elementAt_1(a).destroy_0(); this.valueTexts.clear_0(); for (a = 0; a < this.values.length; ++a) { var b = this.formatNumber_1(this.values[a]), d = a * this.textHeight, b = new GT1606(this.textContainer, Math.div(this.spinnerButton.getWidth_0(), 2), Integer.truncate_1(d), GT1606.prototype.ALIGN_CENTER, b, this.fontMetrics, this.fontColor); this.valueTexts.add_1(b); } } this.updateActiveState_0(); }, updateActiveState_0: function () { 1 == this.values.length ? this.button.setActive_1(!1) : (this.button.setActive_1(!0), this.updateRepresentation_0(), this.textContainer.resize_2(this.textContainer.getWidth_0(), this.textHeight * this.values.length)); }, updateRepresentation_0: function () { null != this.mtpa && (this.mtpa.kill_0(), (this.mtpa = null)); var a = this.calculatePositionFromStep_1(this.currentStep), b = 150; this.popupContainer.isHidden_0() && (b = 0); this.mtpa = new GT653(this.timer, this.textContainer, this.textContainer.getX_0(), a, b, !1); this.mtpa.setMotionGraph_1(GT1253.prototype.PREDEFINED_DECELERATION); this.mtpa.start_0(); }, addSpinnerListener_1: function (a) { this.spinnerListeners.contains_1(a) || this.spinnerListeners.addElement_1(a); }, setValues_2: function (a, b) { var d = !1; this.oldValue = this.values[this.currentStep]; this.currentStep = 0; this.values = [].createArray(a.length).init(0); for (var e = 0; e < a.length; e++) this.values[a.length - e - 1] = a[e]; for (e = 0; e < this.values.length; e++) if (this.values[e] == b) { this.currentStep = e; d = !0; break; } GT1650.prototype.assertExp_2(d, "Value not part of the array"); this.updateValues_0(); if (this.oldValue != a[this.currentStep]) for (d = this.spinnerListeners.clone_0(), e = 0; e < d.size_0(); e++) d.elementAt_1(e).spinnerValueChanged_1(this); }, getValue_0: function () { return this.values[this.currentStep]; }, setValue_1: function (a) { if (this.values[this.currentStep] != a) { this.oldValue = this.values[this.currentStep]; for (var b = !1, d = 0; d < this.values.length; d++) if (this.values[d] == a) { this.currentStep = d; b = !0; this.update_0(); break; } GT1650.prototype.assertExp_2(b, "Value " + a + " not found"); } }, getNumberOfValues_0: function () { return this.values.length; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) { a == this.spinnerButton && (null != this.mtpa && (this.mtpa.kill_0(), (this.mtpa = null)), (this.lastMouseY = this.textContainer.getY_0()), (this.clickY = a.getMouseY_0())); }, up_1: function (a) { if (a == this.spinnerButton) if ( ((a = this.calculateStep_0()), this.textContainer.getY_0() == this.lastMouseY && ((a = Math.div(this.textContainer.getMouseY_0(), this.textHeight)), 0 > a && (a = 0), a >= this.values.length && (a = this.values.length - 1)), this.currentStep != a) ) { this.currentStep = a; a = this.spinnerListeners.clone_0(); for (var b = 0; b < a.size_0(); b++) a.elementAt_1(b).spinnerValueChanged_1(this); } else this.updateRepresentation_0(); }, drag_1: function (a) { a = a.getMouseY_0(); this.textContainer.move_2(this.textContainer.getX_0(), a - this.clickY + this.lastMouseY); }, calculatePositionFromStep_1: function (a) { return -a * this.textHeight + Math.div(this.spinnerButton.getHeight_0(), 2) - Math.div(this.fontMetrics.getHeight_0(), 2); }, calculateStep_0: function () { var a = Integer.truncate_1(Math.div(-this.textContainer.getY_0() + Math.div(this.textHeight, 2) + Math.div(this.spinnerButton.getHeight_0(), 2) - Math.div(this.fontMetrics.getHeight_0(), 2), this.textHeight)); 0 > a && (a = 0); a >= this.values.length && (a = this.values.length - 1); return a; }, click_1: function (a) { a.equals_1(this.button) && (this.hidePopup_1(!this.popupContainer.isHidden_0()), this.popupContainer.isHidden_0() || this.getParent_0().findDescendant_1(this.otherId).hidePopup_1(!0)); }, hidePopup_1: function (a) { this.popupContainer.hide_1(a); }, setActive_1: function (a) { this.button.setActive_1(a); a || this.hidePopup_1(!0); }, getCurrentStep_0: function () { return this.currentStep; }, update_0: function () { this.updateActiveState_0(); for (var a = this.spinnerListeners.clone_0(), b = 0; b < a.size_0(); b++) a.elementAt_1(b).spinnerValueChanged_1(this); }, setFormatter_1: function (a) { this.formatter = a; }, formatNumber_1: function (a) { return null == this.formatter ? Integer.toString_1(a) : this.formatter.format_1(a); }, isActive_0: function () { return this.button.isActive_0(); }, }, "GT1265", [GT1230, GT1066] ); GT1265.prototype.BOTTOM_OVERLAP = 15; var GT1471 = Class.extend( { initialConstructor_0: function () { this.timer = this.defaultCursorType = this.cursorManager = this.eventDispatcher = this.mousePointerId = this.topContainer = this.eventButtonUp = this.eventButtonDownOnEnter = this.eventButtonDown = this.eventButtonDrag = this.eventButtonClick = this.eventButtonMouseEnter = this.eventButtonMouseLeave = this.pointerStates = null; this.disableMouseOverEffect = this.isCurrentlyDragging = this.stopped = !1; this.currentPointerState = null; this.lastScaleY = this.lastScaleX = this.resty = this.restx = 0; this.lastScaleButton = null; Class.prototype.initialConstructor_0.call(this); }, getDefaultCursorType_0: function () { return this.defaultCursorType; }, setDefaultCursorType_1: function (a) { this.defaultCursorType = a; }, initialConstructor_4: function (a, b, d, e) { this.timer = this.defaultCursorType = this.cursorManager = this.eventDispatcher = this.mousePointerId = this.topContainer = this.eventButtonUp = this.eventButtonDownOnEnter = this.eventButtonDown = this.eventButtonDrag = this.eventButtonClick = this.eventButtonMouseEnter = this.eventButtonMouseLeave = this.pointerStates = null; this.disableMouseOverEffect = this.isCurrentlyDragging = this.stopped = !1; this.currentPointerState = null; this.lastScaleY = this.lastScaleX = this.resty = this.restx = 0; this.lastScaleButton = null; this.pointerStates = new java_util_JavaScriptVector(); this.eventButtonMouseLeave = new java_util_JavaScriptVector(); this.eventButtonMouseEnter = new java_util_JavaScriptVector(); this.eventButtonClick = new java_util_JavaScriptVector(); this.eventButtonDrag = new java_util_JavaScriptVector(); this.eventButtonDown = new java_util_JavaScriptVector(); this.eventButtonDownOnEnter = new java_util_JavaScriptVector(); this.eventButtonUp = new java_util_JavaScriptVector(); this.topContainer = a; this.eventDispatcher = b; this.cursorManager = d; this.defaultCursorType = GT1537.prototype.STANDARD; this.mousePointerId = "mousePointerId"; this.disableMouseOverEffect = !1; this.timer = e; this.eventDispatcher.registerHandlerForMultipleEvents_2( [ GT977.prototype.ID, GT767.prototype.ID, GT652.prototype.ID, GT459.prototype.ID, GT926.prototype.ID, GT458.prototype.ID, GT1451.prototype.MOUSE_PRESSED, GT1451.prototype.MOUSE_RELEASED, GT1451.prototype.MOUSE_CLICKED, GT1451.prototype.MOUSE_MOVED, GT1451.prototype.MOUSE_DRAGGED, ], this ); }, stop_0: function () { this.stopped = !0; this.topContainer = this.eventButtonUp = this.eventButtonDownOnEnter = this.eventButtonDown = this.eventButtonDrag = this.eventButtonClick = this.eventButtonMouseEnter = this.eventButtonMouseLeave = this.pointerStates = null; null != this.eventDispatcher && this.eventDispatcher.unregisterHandler_1(this); this.defaultCursorType = this.cursorManager = this.eventDispatcher = null; }, handleGestureEvent_1: function (a) { GT1471.prototype.Log.t_1(a.toString()); if (a.getId_0() == GT977.prototype.ID) { if (!this.isButtonDraggedCurrently_0()) { var b = a.getDownEvent_0(), d = Integer.toString_1(b.getTouchId_0()), e = new GT1633(b.getX_0(), b.getY_0()); this.pointerMoved_4(e, d, !0, !0); } } else if (a.getId_0() == GT767.prototype.ID) (b = a.getDownEvent_0()), (d = Integer.toString_1(b.getTouchId_0())), (e = new GT1633(b.getX_0(), b.getY_0())), this.pointerMoved_4(e, d, !1, !0); else { if (a.getId_0() == GT652.prototype.ID) return ( (a = a.getUpEvent_0()), (d = Integer.toString_1(a.getTouchId_0())), (e = new GT1633(a.getX_0(), a.getY_0())), this.activatePointerState_1(d), this.currentPointerState.mouseButtonDown || this.pointerMoved_4(e, d, !0, !0), this.releaseButton_2(e, d), !0 ); if (a.getId_0() == GT459.prototype.ID) { if ( !this.isButtonDraggedCurrently_0() && ((b = a.getDownEvent_0()), (a = !1), null != b && ((d = Integer.toString_1(b.getTouchId_0())), this.pointerMoved_4(new GT1633(-1, -1), d, !1, !0), (b = this.findPointerStateIndex_1(d)), -1 != b && (this.pointerStates.removeElementAt_1(b), (a = !0))), !a) ) { for (d = 0; d < this.pointerStates.size_0(); d++) (a = this.pointerStates.elementAt_1(d)), this.pointerMoved_4(new GT1633(-1, -1), a.pointerId, !1, !0); this.pointerStates.removeAllElements_0(); } return !0; } if (instanceOf(a, GT507)) { b = a.getCurrentTouchEvent_0(); d = Integer.toString_1(b.getTouchId_0()); e = new GT1633(b.getX_0(), b.getY_0()); b = this.findPointerStateIndex_1(d); if (-1 == b) return !1; this.pointerMoved_4(e, d, !0, !0); this.isButtonDraggedCurrently_0() && a.isLastEvent_0() && this.releaseButton_2(e, d); return this.isButtonDraggedCurrently_0(); } } return !1; }, releaseButton_2: function (a, b) { this.pointerMoved_4(a, b, !1, !0); this.pointerMoved_4(new GT1633(-1, -1), b, !1, !0); var d = this.findPointerStateIndex_1(b); -1 != d && this.pointerStates.removeElementAt_1(d); }, handleMouseEvent_1: function (a) { var b = a.getId_0(); a = new GT1633(a.getX_0(), a.getY_0()); this.activatePointerState_1(this.mousePointerId); b == GT1451.prototype.MOUSE_PRESSED ? this.updateButtonsUntilStable_3(a, !0, this.disableMouseOverEffect) : b == GT1451.prototype.MOUSE_RELEASED ? this.updateButtonsUntilStable_3(a, !1, this.disableMouseOverEffect) : b == GT1451.prototype.MOUSE_MOVED ? this.pointerMoved_4(a, this.mousePointerId, this.currentPointerState.mouseButtonDown, this.disableMouseOverEffect) : b == GT1451.prototype.MOUSE_DRAGGED && (this.currentPointerState.mouseButtonDown || ((this.currentPointerState.mouseButtonDown = !0), this.updateButtonsUntilStable_3(this.currentPointerState.currentPosition, this.currentPointerState.mouseButtonDown, this.disableMouseOverEffect)), this.pointerMoved_4(a, this.mousePointerId, this.currentPointerState.mouseButtonDown, this.disableMouseOverEffect)); this.stopped || this.rememberCurrentPointerState_0(); return !1; }, rememberCurrentPointerState_0: function () { -1 == this.findPointerStateIndex_1(this.currentPointerState.pointerId) && this.pointerStates.add_1(this.currentPointerState); }, pointerMoved_4: function (a, b, d, e) { this.activatePointerState_1(b); d || (this.resty = this.restx = 0); this.currentPointerState.previousPosition = this.currentPointerState.currentPosition; this.currentPointerState.currentPosition = a; if ( null != this.currentPointerState.buttonCurrent && this.currentPointerState.buttonCurrent.isDragable_0() && this.currentPointerState.mouseButtonDown && this.currentPointerState.buttonCurrent.isAlive_0() && this.currentPointerState.buttonCurrent == this.currentPointerState.downButton && ((b = this.currentPointerState.buttonCurrent), !b.isUsingDragArea_0() || 0 != b.getDragAreaWidth_0() || 0 != b.getDragAreaHeight_0()) ) { var f = 1, g = 1; if (b == this.lastScaleButton) (f = this.lastScaleX), (g = this.lastScaleY); else { for (var k = b; null != k; ) (f *= k.getContentScaleX_0()), (g *= k.getContentScaleY_0()), (k = k.getParent_0()); this.lastScaleX = f; this.lastScaleY = g; this.lastScaleButton = b; } var f = this.restx + b.getX_0() + (a.x - this.currentPointerState.previousPosition.x) / f, g = this.resty + b.getY_0() + (a.y - this.currentPointerState.previousPosition.y) / g, k = Integer.truncate_1(f), m = Integer.truncate_1(g); this.restx = f - k; this.resty = g - m; b.isUsingDragArea_0() ? b.moveConsideringDragArea_2(k, m) : b.move_2(k, m); b.reorder_1(!0); } this.updateButtonsUntilStable_3(a, d, e); }, findPointerStateIndex_1: function (a) { for (var b = 0; b < this.pointerStates.size_0(); b++) if (this.pointerStates.elementAt_1(b).pointerId.equals_1(a)) return b; return -1; }, activatePointerState_1: function (a) { var b = this.findPointerStateIndex_1(a); this.currentPointerState = -1 != b ? this.pointerStates.elementAt_1(b) : new GT1452(a); }, updateButtonsUntilStable_3: function (a, b, d) { this.isCurrentlyDragging = !1; for (var e = 0; 10 > e && (this.stopped || !(0 >= this.updateButtonsAndFireEvents_3(a, b, d))); e++); }, addEventButton_2: function (a, b) { null != a && a.addElement_1(b); }, fireAndCleanUpEventButtonVector_3: function (a, b, d) { if (null == a || 0 == a.size_0()) return 0; for (var e = (b = 0); e < a.size_0(); e++) { var f = a.elementAt_1(e); this.raiseButtonEvent_2(f, d); var g = !0; d == GT1387.prototype.BUTTON_CLICKED ? f.handleClick_0() : d == GT1387.prototype.BUTTON_PRESSED ? f.handleDown_0() : d == GT1387.prototype.BUTTON_DRAGGING ? f.handleDrag_0() : d == GT1387.prototype.BUTTON_RELEASED ? f.handleUp_0() : d == GT1387.prototype.BUTTON_MOUSE_EXITED ? f.handleMouseLeave_0() : d == GT1387.prototype.BUTTON_MOUSE_ENTERED ? f.handleMouseEnter_0() : (GT1471.prototype.Log.t_1("No valid action defined for button event with ID: " + d), (g = !1)); g && b++; } a.setSize_1(0); return b; }, updateButtonsAndFireEvents_3: function (a, b, d) { var e = this.currentPointerState.buttonCurrent, f = this.currentPointerState.mouseButtonDown, g = GT1559.prototype.findButton_3(this.topContainer, a.x, a.y); null == g || g.isActive_0() || (g = null); b && f && null != e && e.isDragable_0() && e.isAlive_0() && (g = e); for (var k = !0, m = 0; m < this.pointerStates.size_0(); m++) { var n = this.pointerStates.elementAt_1(m); n != this.currentPointerState && null != n.buttonCurrent && (0 == n.buttonCurrent.isSupportingMultitouch_0() || (null != g && 0 == g.isSupportingMultitouch_0())) && (k = !1); } m = b && k; this.currentPointerState.mouseButtonDown = m; this.currentPointerState.buttonCurrent = k ? g : null; this.rememberCurrentPointerState_0(); !f && b && (this.currentPointerState.downButton = g); null != e && e.isAlive_0() && (g != e ? e.changeVisual_2(!1, !1) : m != f && null != g && g.changeVisual_2(m && g == this.currentPointerState.downButton, !d)); null != g && (b && g.isDragable_0() && g.isUsingDragAnchor_0() && !this.isCurrentlyDragging && g == this.currentPointerState.downButton && ((n = a.x - (g.getXInTopContainer_0() + g.getDragAnchorX_0())), (a = a.y - (g.getYInTopContainer_0() + g.getDragAnchorY_0())), g.move_2(g.getX_0() + n, g.getY_0() + a)), g != e ? g.changeVisual_2(m && g == this.currentPointerState.downButton, !d) : m != f && g.changeVisual_2(m && g == this.currentPointerState.downButton, !d)); this.cursorManager.setUsingCursor_1(null != this.currentPointerState.buttonCurrent ? this.currentPointerState.buttonCurrent.showCursor : this.defaultCursorType); null != e && g != e && this.addEventButton_2(this.eventButtonMouseLeave, e); null != g && g != e && k ? (this.addEventButton_2(this.eventButtonMouseEnter, g), !f && b && this.addEventButton_2(this.eventButtonDownOnEnter, g)) : null != g && g == e && !f && b && k && this.addEventButton_2(this.eventButtonDown, g); null != this.currentPointerState.downButton && this.currentPointerState.downButton.isAlive_0() && f && !b && k && this.addEventButton_2(this.eventButtonUp, this.currentPointerState.downButton); null != e && e.isAlive_0() && g == this.currentPointerState.downButton && (e.isDragable_0() ? g == e && b && !this.isCurrentlyDragging && k && (this.addEventButton_2(this.eventButtonDrag, g), (this.isCurrentlyDragging = !0)) : g == e && f && !b && k && this.addEventButton_2(this.eventButtonClick, g)); f && !b && (this.currentPointerState.downButton = null); b = 0 + this.fireAndCleanUpEventButtonVector_3(this.eventButtonClick, "click", GT1387.prototype.BUTTON_CLICKED); b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonDown, "down", GT1387.prototype.BUTTON_PRESSED); b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonDrag, "drag", GT1387.prototype.BUTTON_DRAGGING); b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonUp, "up", GT1387.prototype.BUTTON_RELEASED); b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonMouseLeave, "leave", GT1387.prototype.BUTTON_MOUSE_EXITED); b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonMouseEnter, "enter", GT1387.prototype.BUTTON_MOUSE_ENTERED); return (b += this.fireAndCleanUpEventButtonVector_3(this.eventButtonDownOnEnter, "down", GT1387.prototype.BUTTON_PRESSED)); }, raiseButtonEvent_2: function (a, b) { this.eventDispatcher.raiseEvent_1(new GT1387(b, a)); }, getPointerState_0: function () { return this.currentPointerState; }, isButtonDraggedCurrently_0: function () { return null != this.currentPointerState && null != this.currentPointerState.buttonCurrent && this.currentPointerState.mouseButtonDown && this.currentPointerState.buttonCurrent.isDragable_0(); }, setDisableMouseOverEffect_1: function (a) { this.disableMouseOverEffect = a; }, }, "GT1471", [GT1011, GT963, GT920] ), GT641 = Class.extend( { initialConstructor_0: function () { this.button = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.button = null; this.button = a; }, run_0: function () { this.button.changeVisual_2(!1, !1); }, }, "GT641", [Runnable] ); GT1471.prototype.Log = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); var GT245 = GT1437.extend( { initialConstructor_0: function () { this.scrollBar = this.itemXY = this.assignedGui = this.elementsThatNeedGui = this.freeAssignableGui = null; this.scrollbarvalue = 0; this.adapter = null; this.selected = 0; this.listener = null; this.itemsClickable = !1; this.eventHandler = null; this.elementsinrow = this.evenrowindent = this.offsety = this.offsetx = this.indenty = this.indentx = 0; this.autoScrollToBottom = !1; this.listheight = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.scrollBar = this.itemXY = this.assignedGui = this.elementsThatNeedGui = this.freeAssignableGui = null; this.scrollbarvalue = 0; this.adapter = null; this.selected = 0; this.listener = null; this.itemsClickable = !1; this.eventHandler = null; this.elementsinrow = this.evenrowindent = this.offsety = this.offsetx = this.indenty = this.indentx = 0; this.autoScrollToBottom = !1; this.listheight = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.freeAssignableGui = new java_util_JavaScriptVector(); this.elementsThatNeedGui = new java_util_JavaScriptVector(); this.assignedGui = new java_util_JavaScriptHashtable(); this.selected = -1; this.itemsClickable = !1; this.indentx = m; this.indenty = n; this.offsetx = g; this.offsety = k; this.evenrowindent = p; this.elementsinrow = q; this.itemXY = new java_util_JavaScriptVector(); this.autoScrollToBottom = !1; this.listheight = 0; }, setAutoScrollToBottom_1: function (a) { this.autoScrollToBottom = a; }, setSelected_1: function (a) { this.selected = a; }, getSelected_0: function () { return this.selected; }, destroyImpl_2: function (a, b) { this.freeAllGui_0(); this.freeAssignableGui.setSize_1(0); null != this.eventHandler && this.eventHandler.stop_0(); GT1437.prototype.destroyImpl_2.call(this, a, b); }, setEventHandler_1: function (a) { this.eventHandler = a; }, setAdapter_1: function (a) { this.freeAllGui_0(); this.adapter = a; }, getAdapter_0: function () { return this.adapter; }, scrollValueChanged_1: function (a) { this.scrollbarvalue = a.getValue_0(); this.reassignGuiToListElements_1(!1); }, freeAllGui_0: function () { for (var a = this.assignedGui.elements_0(); a.hasMoreElements_0(); ) { var b = a.nextElement_0(); GT1560.prototype.isAlive_1(b) && (this.freeAssignableGui.addElement_1(b), this.adapter.deactivateGUI_1(b), b.hide_1(!0)); } this.assignedGui.clear_0(); this.itemXY.setSize_1(0); }, attachScrollBar_1: function (a) { this.scrollBar = a; a.addScrollBarListener_1(this); }, getNumberOfElementsInRow_0: function () { return this.elementsinrow; }, getIndentX_0: function () { return this.indentx; }, getIndentY_0: function () { return this.indenty; }, getOffsetX_0: function () { return this.offsetx; }, getOffsetY_0: function () { return this.offsety; }, getEvenRowIndent_0: function () { return this.evenrowindent; }, assignGuiToData_1: function (a) { var b = "" + a, d = this.itemXY.elementAt_1(a); if (null == this.assignedGui.get_1(b)) { var e; 0 < this.freeAssignableGui.size_0() ? ((e = this.freeAssignableGui.elementAt_1(0)), this.freeAssignableGui.removeElementAt_1(0)) : (e = this.adapter.createGUI_1(this)); this.assignedGui.put_2(b, e); e.hide_1(!1); e.move_2(d[0], d[1]); this.adapter.activateGUI_2(e, a); this.itemsClickable && this.makeSelectable_2(e, a); } }, makeSelectable_2: function (a, b) { var d = a.findDescendant_1(GT245.prototype.BUTTON_ID); null != d ? d.reorder_1(!0) : ((d = new GT1559(a, 0, 0, this.getWidth_0(), this.getHeight_0())), d.addButtonListener_1(new GT200(this))); d.setApplicationData_2(GT245.prototype.BUTTON_ID, "" + b); }, setItemsSelectable_1: function (a) { this.itemsClickable = a; }, updateItemAtPosition_1: function (a) { var b = this.assignedGui.get_1("" + a); GT1560.prototype.isAlive_1(b) && this.adapter.updateGUI_2(b, a); }, updateAllVisibleItems_0: function () { for (var a = 0; a < this.adapter.getElementCount_0(); a++) { var b = this.assignedGui.get_1("" + a); GT1560.prototype.isAlive_1(b) && this.adapter.updateGUI_2(b, a); } }, getGuiAtPosition_1: function (a) { return this.assignedGui.get_1("" + a); }, reassignGuiToListElements_1: function (a) { var b = GT1560.prototype.isAlive_1(this.scrollBar) ? this.scrollBar.getValue_0() : 0; if (!a) for (var d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d); e.move_2(e.getX_0(), -b); } var f = 0, g = 0, k = !0, m = 0, m = 0, n = this.getOffsetY_0() - b - this.getIndentY_0(), p = 0, q = 0; this.elementsThatNeedGui.setSize_1(0); e = this.adapter.createGUI_1(this); this.itemXY.setSize_1(this.adapter.getElementCount_0()); for (d = 0; d < this.adapter.getElementCount_0(); d++) { var r = "" + d, t = this.assignedGui.get_1(r); this.adapter.isActiveElement_1(d) ? (k ? ((n += p + this.getIndentY_0()), (p = 0), (k = !1), (m = 1 == f % 2 ? this.evenrowindent : 0), (m += this.getOffsetX_0())) : (m += q + this.getIndentX_0()), this.adapter.measureGUI_2(e, d), (q = e.getWidth_0()), (p = Math.max_2(p, e.getHeight_0())), (this.listheight = n + e.getHeight_0() - (this.getOffsetY_0() - b)), a || (this.itemXY.setElementAt_2([m, n], d), 0 < n + e.getHeight_0() && n < this.getHeight_0() ? null == t ? this.elementsThatNeedGui.addElement_1(new Integer(d)) : (t.move_2(m, n), (q = t.getWidth_0()), (p = Math.max_2(p, t.getHeight_0())), (this.listheight = n + t.getHeight_0() - (this.getOffsetY_0() - b))) : null != t && (this.freeAssignableGui.addElement_1(t), this.adapter.deactivateGUI_1(t), t.hide_1(!0), this.assignedGui.remove_1(r))), g++, g == this.getNumberOfElementsInRow_0() && (f++, (g = 0), (k = !0))) : null != t && (this.freeAssignableGui.addElement_1(t), this.adapter.deactivateGUI_1(t), t.hide_1(!0), this.assignedGui.remove_1(r)); } if (!a) { for (d = 0; d < this.elementsThatNeedGui.size_0(); d++) (a = this.elementsThatNeedGui.elementAt_1(d).intValue_0()), this.assignGuiToData_1(a); this.sortChildrenByXY_2(1, 1); } e.destroy_0(); }, freeGui_1: function (a) { a = "" + a; var b = this.assignedGui.get_1(a); GT1560.prototype.isAlive_1(b) && (this.freeAssignableGui.addElement_1(b), this.adapter.deactivateGUI_1(b), b.hide_1(!0), this.assignedGui.remove_1(a)); }, setScrollBarValue_1: function (a) { this.scrollbarvalue = a; this.updateScrollBar_0(); }, scrollToListElement_1: function (a) { if (!(0 > a || a >= this.itemXY.size_0())) { a = this.itemXY.elementAt_1(a); var b = GT1560.prototype.isAlive_1(this.scrollBar) ? this.scrollBar.getValue_0() : 0; ((null != a && a[1] + this.getIndentY_0() > this.getHeight_0()) || 0 > a[1] - b + this.getIndentY_0()) && this.setScrollBarValue_1(a[1] + b - Math.div(this.getHeight_0(), 2)); } }, updateScrollBar_0: function () { if (this.isAlive_0()) if (null == this.scrollBar) this.reassignGuiToListElements_1(!1); else { GT1650.prototype.assertExp_2(null != this.scrollBar, "scrollBar is null"); 0 > this.scrollbarvalue && (this.scrollbarvalue = 0); var a = this.listheight, b = this.getHeight_0(), d = a - b; 0 > d && (d = 0); this.scrollbarvalue = Math.min_2(this.scrollbarvalue, d); this.scrollBar.setRangeAndValue_3(a, b, this.scrollbarvalue); } }, updateViewToNewData_1: function (a) { this.freeAllGui_0(); if (null != this.scrollBar) { this.reassignGuiToListElements_1(!0); if (0 > this.scrollbarvalue || a) this.scrollbarvalue = 0; var b = this.listheight, d = this.getHeight_0(), e = b - d; 0 > e && (e = 0); this.autoScrollToBottom && !a && (this.scrollbarvalue = e); this.scrollbarvalue = Math.min_2(this.scrollbarvalue, e); this.scrollBar.setRangeAndValue_3(b, d, this.scrollbarvalue); } else this.reassignGuiToListElements_1(!1); }, setItemClickListener_1: function (a) { this.listener = a; }, listItemClicked_1: function (a) { this.setSelected_1(a); if (null != this.listener) this.listener.onListItemClicked_2(this.getApplicationID_0(), a); this.updateAllVisibleItems_0(); }, }, "GT245", [GT921] ), GT200 = Class.extend( { initialConstructor_0: function () { this._parent = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this._parent = null; this._parent = a; }, click_1: function (a) { a = GT1672.prototype.stringToInt_1(a.getApplicationData_0().toString()); this._parent.listItemClicked_1(a); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, }, "GT200", [GT1066] ); GT245.prototype.BUTTON_ID = GT1677.prototype.generateID_0(); var GT1320 = Class.extend( { initialConstructor_0: function () { this.designedHeight = this.designedWidth = 0; this.jsonFiles = this.skinParameter = this.readStack = this.myListener = this.resourceManager = this.appletParameters = null; this.numFilesTriedToLoad = 0; this.pendingJsonObject = this.pendingTextDocument = this.pendingFile = null; this.pendingFileIsOptional = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.designedHeight = this.designedWidth = 0; this.jsonFiles = this.skinParameter = this.readStack = this.myListener = this.resourceManager = this.appletParameters = null; this.numFilesTriedToLoad = 0; this.pendingJsonObject = this.pendingTextDocument = this.pendingFile = null; this.pendingFileIsOptional = !1; this.designedWidth = a; this.designedHeight = b; this.appletParameters = d; this.resourceManager = null; this.readStack = new java_util_JavaScriptVector(); this.skinParameter = new java_util_JavaScriptHashtable(); this.jsonFiles = new java_util_JavaScriptHashtable(); this.numFilesTriedToLoad = 0; this.pendingTextDocument = this.pendingFile = null; this.pendingFileIsOptional = !1; }, startLoad_4: function (a, b, d, e) { this.resourceManager = a; this.myListener = b; a.setListener_1(this); for (a = d.length - 1; 0 <= a; a--) (b = "#include " + d[a]), null != e && a < e.length && e[a] && (b = "#mayincl " + d[a]), this.readStack.addElement_1(""), this.readStack.addElement_1(b); this.processNextLines_0(); }, wasInstantlyLoaded_0: function () { return 0 == this.readStack.size_0() && 0 == this.numFilesTriedToLoad; }, setDesignedSize_2: function (a, b) { this.designedWidth = a; this.designedHeight = b; }, processNextLines_0: function () { for (var a; 0 < (a = this.readStack.size_0()); ) { var b = this.readStack.elementAt_1(a - 2), d = this.readStack.elementAt_1(a - 1); this.readStack.setSize_1(a - 2); if (instanceOf(d, GT1616)) this.extractXMLSkinEntries_2(d, ""); else { a = d; d = a.indexOf_1("//"); 0 <= d && 0 > a.indexOf_1("http://") && (a = a.substring_2(0, d)); a = a.trim_0(); for (d = 0; d < a.length_0(); d++) 32 > Integer.truncate_1(a.charAt_1(d)) && (a = "" + a.substring_2(0, d) + " " + a.substring_1(d + 1)); for (; a.startsWith_1("#if "); ) { a = a.substring_1(4).trim_0(); var e = !1, f = !1, g = !1, k = a.indexOf_1("=="); if (0 <= k) e = !0; else if (((k = a.indexOf_1("!=")), 0 <= k)) f = !0; else if (((k = a.indexOf_1(">=")), 0 <= k)) g = !0; else continue; var m = a.substring_2(0, k).trim_0(), n = a.substring_1(k + 2).trim_0(), k = n.indexOf_1(" "); if (!(0 > k)) if (((d = n.substring_2(0, k).trim_0()), (a = n.substring_1(k + 1).trim_0()), (k = m.startsWith_1("$") ? this.skinParameter.get_1(m.substring_1(1)) : this.appletParameters.getParameter_1(m)), e)) (null != k && GT1677.prototype.equalsIgnoreCaseAZ_2(k, d)) || (a = ""); else if (f) null != k && GT1677.prototype.equalsIgnoreCaseAZ_2(k, d) && (a = ""); else if (g) { if (null == k || 0 > GT1677.prototype.toLowerCaseAZ_1(k).indexOf_1(GT1677.prototype.toLowerCaseAZ_1(d))) a = ""; } else a = ""; } if (a.startsWith_1("#include ") || a.startsWith_1("#mayincl ")) { this.pendingFileIsOptional = a.startsWith_1("#mayincl "); a = a.substring_1(9).trim_0(); a.startsWith_1("http://") || a.startsWith_1("https://") ? (this.pendingFile = a) : (this.pendingFile = this.buildRelativeResourcePath_2(b, a)); a.endsWith_1(".json") ? this.resourceManager.isResourceInCache_1(this.pendingFile) ? ((this.pendingJsonObject = this.resourceManager.getJSONObject_1(this.pendingFile)), this.resourceLoaded_3(this.pendingFile, 0, 0)) : (this.numFilesTriedToLoad++, (this.pendingJsonObject = this.resourceManager.startLoadJSONObject_1(this.pendingFile))) : this.resourceManager.isResourceInCache_1(this.pendingFile) ? ((this.pendingTextDocument = this.resourceManager.getTextDocument_1(this.pendingFile)), this.resourceLoaded_3(this.pendingFile, 0, 0)) : (this.numFilesTriedToLoad++, (this.pendingTextDocument = this.resourceManager.startLoadTextDocument_1(this.pendingFile))); return; } d = a.indexOf_1("="); 0 < d && ((b = a.substring_2(0, d).trim_0()), (d = this.performSubstitution_1(a.substring_1(d + 1))), 0 < b.length_0() && 91 == b.charAt_1(0) && ((a = b.indexOf_1(93)), 0 < a && (b = b.substring_1(a + 1).trim_0())), 0 < b.length_0() && ((97 <= b.charAt_1(0) && 122 >= b.charAt_1(0)) || (65 <= b.charAt_1(0) && 90 >= b.charAt_1(0)) || 95 == b.charAt_1(0)) && this.skinParameter.put_2(b, d)); } } 0 < this.numFilesTriedToLoad && this.myListener.resourceLoaded_3(this.pendingFile, this.numFilesTriedToLoad, this.numFilesTriedToLoad); this.resourceManager.setListener_1(null); this.myListener = this.resourceManager = null; }, buildRelativeResourcePath_2: function (a, b) { if (b.startsWith_1("/")) return b; var d = a.lastIndexOf_1("/"); return 0 > d ? b : "" + a.substring_2(0, d + 1) + b; }, extractXMLSkinEntries_2: function (a, b) { var d = a.getTag_0(); if (d.equals_1("group")) { var d = a.getAttribute_2("key", null), e = b; null != d && (e = "" + b + d + "."); for (var f = 0; f < a.numberOfChildren_0(); f++) { var g = a.getChild_1(f); this.extractXMLSkinEntries_2(g, e); } } else if (d.equals_1("text")) { if (((d = a.getAttribute_2("key", null)), null != d)) { e = a.findChild_2("default", 0); null == e && (e = a); for (f = 0; f < a.numberOfChildren_0(); f++) { var g = a.getChild_1(f), k = g.getTag_0(); k.equals_1("polite") ? GT1677.prototype.equalsIgnoreCaseAZ_2(this.appletParameters.getParameter_1("polite"), "yes") && (e = g) : k.startsWith_1("cardset") && k.substring_1(7).equals_1(this.appletParameters.getParameter_1("cardset")) && (e = g); } this.skinParameter.put_2("" + b + d, e.getText_0()); } } else for (f = 0; f < a.numberOfChildren_0(); f++) this.extractXMLSkinEntries_2(a.getChild_1(f), b); }, substituteKeys_1: function (a) { var b = a.indexOf_1("${"); if (0 > b) return a; var d = a.indexOf_2("}", b + 2); if (0 > d) return a; var e = a.substring_2(b + 2, d), f = this.performSubstitution_1(this.appletParameters.getParameter_1("settext_" + e)); null == f && (f = this.skinParameter.get_1(e)); return null == f ? "" + a.substring_2(0, b) + this.substituteKeys_1(a.substring_1(d + 1)) : "" + a.substring_2(0, b) + this.substituteKeys_1(f) + this.substituteKeys_1(a.substring_1(d + 1)); }, performSubstitution_1: function (a) { return null == a ? null : this.substituteKeys_1(this.processEscapeCharacters_1(a.trim_0())); }, resourceLoaded_3: function (a, b, d) { if (null != this.pendingTextDocument && 0 < this.pendingTextDocument.getNumberOfLines_0() && this.pendingTextDocument.getLine_1(0).trim_0().startsWith_1("= d.length_0() ? b : d; }, getString_1: function (a) { return this.getString_2(a, ""); }, getInt_1: function (a) { return this.getInt_2(a, 0); }, getInt_2: function (a, b) { var d = this.getString_2(a, null); return null == d ? b : this.decodeIntValue_1(d); }, getBoolean_1: function (a) { return 0 != this.getInt_2(a, 0); }, getBoolean_2: function (a, b) { return 0 != this.getInt_2(a, b ? 1 : 0); }, getDouble_1: function (a) { a = this.getString_2(a, null); return null == a ? 0 : GT1672.prototype.stringToDouble_2(a, 0); }, getColor_2: function (a, b) { var d = this.getString_2(a, null); return null == d ? b : this.decodeColorValue_1(d); }, getColor_1: function (a) { return this.getColor_2(a, GT1634.prototype.black); }, getColorTransformation_1: function (a) { a = this.getIntArray_1(a); return 12 <= a.length ? new GT1063(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11]) : 6 <= a.length ? new GT1063(a[0], a[1], a[2], a[3], a[4], a[5]) : 2 <= a.length ? new GT1063(a[0], a[1]) : 1 <= a.length ? new GT1063(a[0]) : null; }, getStyle_2: function (a, b) { var d = this.getString_2(a, null); if (null == d) return b; var d = GT1677.prototype.toUpperCaseAZ_1(d), e = 0; 0 <= d.indexOf_1("PLAIN") && (e |= 0); 0 <= d.indexOf_1("BOLD") && (e |= 1); 0 <= d.indexOf_1("ITALIC") && (e |= 2); return e; }, getAlignment_1: function (a) { a = this.getString_2(a, null); return null == a ? 0 : GT1677.prototype.equalsIgnoreCaseAZ_2(a, "center") ? 1 : GT1677.prototype.equalsIgnoreCaseAZ_2(a, "right") ? 2 : 0; }, getIntArray_1: function (a) { a = this.getString_2(a, null); return null == a ? [].createArray(0).init(0) : this.decodeIntArray_1(a); }, getDoubleArray_1: function (a) { a = this.getString_2(a, null); return null == a ? [].createArray(0).init(0) : this.decodeDoubleArray_1(a); }, getStringArray_1: function (a) { a = this.getString_2(a, null); return null == a ? [].createArray(0) : this.getSeperatedString_2(a, 44); }, getParameterArrayString_2: function (a, b) { for (var d = this.getString_1(a), e = 0; 0 <= (e = d.indexOf_2("#", e)); ) { for ( var f = e + 1; f < d.length_0() && (48 == d.charAt_1(f) || 49 == d.charAt_1(f) || 50 == d.charAt_1(f) || 51 == d.charAt_1(f) || 52 == d.charAt_1(f) || 53 == d.charAt_1(f) || 54 == d.charAt_1(f) || 55 == d.charAt_1(f) || 56 == d.charAt_1(f) || 57 == d.charAt_1(f)); ) f++; var g = GT1672.prototype.stringToInt_2(d.substring_2(e + 1, f), 0); 0 == g && 48 != d.charAt_1(e + 1) ? (e = f) : g < b.length ? ((d = "" + d.substring_2(0, e) + b[g] + d.substring_1(f)), (e += b[g].length_0())) : (e = f); } return d; }, getParameterString_2: function (a, b) { return this.getParameterArrayString_2(a, [b]); }, getParameterString_3: function (a, b, d) { return this.getParameterArrayString_2(a, [b, d]); }, getParameterString_4: function (a, b, d, e) { return this.getParameterArrayString_2(a, [b, d, e]); }, decodeIntValue_1: function (a) { a = a.trim_0(); var b = 0; if (a.startsWith_1("w") || a.startsWith_1("W")) (b = this.designedWidth), (a = a.substring_1(1).trim_0()); else if (a.startsWith_1("h") || a.startsWith_1("H")) (b = this.designedHeight), (a = a.substring_1(1).trim_0()); return b + GT1672.prototype.stringToInt_2(a, 0) - 0; }, decodeIntArray_1: function (a) { a = this.getSeperatedString_2(a, 44); for (var b = [].createArray(a.length).init(0), d = 0; d < b.length; d++) b[d] = this.decodeIntValue_1(a[d]); return b; }, decodeDoubleArray_1: function (a) { a = this.getSeperatedString_2(a, 44); for (var b = [].createArray(a.length).init(0), d = 0; d < b.length; d++) b[d] = GT1672.prototype.stringToDouble_2(a[d], 0); return b; }, decodeColorValue_1: function (a) { a = this.decodeIntArray_1(a); return 3 > a.length ? GT1634.prototype.black : new GT1634(a[0], a[1], a[2]); }, containsAllKeys_1: function (a) { var b = !0; if (null != a) for (a = a.skinParameter.keys_0(); a.hasMoreElements_0(); ) { var d = a.nextElement_0(); this.skinParameter.containsKey_1(d) || ((b = !1), GT1320.prototype.LOG.verbose && GT1320.prototype.LOG.log_1("[SkinDescription] Missing key '" + d + "'")); } return b; }, addMissingKeys_1: function (a) { if (null != a) { for (var b = !1, d = a.skinParameter.keys_0(); d.hasMoreElements_0(); ) { var e = d.nextElement_0(); if (!this.skinParameter.containsKey_1(e)) { var f = a.getString_1(e); this.skinParameter.put_2(e, f); b = !0; GT1320.prototype.LOG.verbose && GT1320.prototype.LOG.log_1("[SkinDescription] Missing key '" + e + "' replace with '" + f + "'"); } } return b; } return !1; }, }, "GT1320", [GT863] ), GT1616 = Class.extend( { initialConstructor_0: function () { this.text = this.children = this.attributes = this.tag = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.text = this.children = this.attributes = this.tag = null; this.tag = a; this.children = this.attributes = null; this.text = ""; }, getTag_0: function () { return this.tag; }, numberOfChildren_0: function () { return null == this.children ? 0 : this.children.size_0(); }, getChild_1: function (a) { return this.children.elementAt_1(a); }, findChild_2: function (a, b) { for (var d = 0, e = 0; null != this.children && e < this.children.size_0(); e++) { var f = this.children.elementAt_1(e); if (f.tag.equals_1(a)) { if (b == d) return f; d++; } } return null; }, getAttribute_2: function (a, b) { var d = null == this.attributes ? null : this.attributes.get_1(a); return null == d ? b : d; }, getText_0: function () { return this.text; }, print_1: function (a) { for (var b = 0; b < a; b++) java_lang_System.prototype.out.print_1(" "); java_lang_System.prototype.out.print_1("<"); java_lang_System.prototype.out.print_1(this.tag); if (null != this.attributes) for (b = this.attributes.keys_0(); b.hasMoreElements_0(); ) { var d = b.nextElement_0(), e = this.attributes.get_1(d); java_lang_System.prototype.out.print_1(" "); java_lang_System.prototype.out.print_1(d); java_lang_System.prototype.out.print_1('="'); java_lang_System.prototype.out.print_1(e); java_lang_System.prototype.out.print_1('"'); } java_lang_System.prototype.out.println_1(">"); for (b = 0; null != this.children && b < this.children.size_0(); b++) this.children.elementAt_1(b).print_1(a + 4); 0 < this.text.length_0() && java_lang_System.prototype.out.println_1(this.text); for (b = 0; b < a; b++) java_lang_System.prototype.out.print_1(" "); java_lang_System.prototype.out.print_1(""); }, }, "GT1616", [] ); GT1616.prototype.decodeEntities_1 = function (a) { var b = a.indexOf_1("&#"); if (0 > b) return a; var d = a.indexOf_2(59, b + 2); if (0 > d) return a; var e = [JSUTIL.MathUtil.castToChar(GT1672.prototype.stringToInt_4(a, b + 2, d - (b + 2), 63))]; return a .substring_2(0, b) .concat_1(new JavaScriptString(e)) .concat_1(this.decodeEntities_1(a.substring_1(d + 1))); }; GT1616.prototype.decodeAttributes_1 = function (a) { for (var b = new java_util_JavaScriptHashtable(), d = 0; ; ) { var e = a.indexOf_2(61, d); if (0 >= e) break; var f = a.indexOf_2(34, e + 1); if (0 >= f) break; var g = a.indexOf_2(34, f + 1); if (0 >= g) break; d = a.substring_2(d, e).trim_0(); f = this.decodeEntities_1(a.substring_2(f + 1, g)); b.put_2(d, f); d = g + 1; } return b; }; GT1616.prototype.readUntil_3 = function (a, b, d) { for (var e = ""; !(b[1] >= a.getNumberOfLines_0()); ) { var f = a.getLine_1(b[1]); if (b[0] >= f.length_0()) (b[0] = 0), b[1]++; else { var g = f.indexOf_2(d, b[0]); if (0 > g) (e = e.concat_1(f.substring_2(b[0], g))), (b[0] = 0), b[1]++; else return g > b[0] && (e = e.concat_1(f.substring_2(b[0], g))), (b[0] = g + 1), e; } } return null; }; GT1616.prototype.parseNode_2 = function (a, b) { var d = this.readUntil_3(a, b, 62); if (null == d || d.startsWith_1("/")) return null; var e = null, f = d.indexOf_1(32); 0 >= f ? (e = new GT1616(d.trim_0())) : ((e = new GT1616(d.substring_2(0, f).trim_0())), (e.attributes = this.decodeAttributes_1(d.substring_1(f + 1)))); if (!d.endsWith_1("/")) for (;;) { d = this.readUntil_3(a, b, 60); if (null == d) break; 0 < d.length_0() && (e.text = e.text.concat_1(this.decodeEntities_1(d))); d = this.parseNode_2(a, b); if (null == d) break; null == e.children && (e.children = new java_util_JavaScriptVector()); e.children.addElement_1(d); } return e; }; GT1616.prototype.parseDocument_1 = function (a) { var b = [].createArray(2).init(0); 0 < a.getNumberOfLines_0() && a.getLine_1(0).startsWith_1(" b || b + 2 >= a.length_0()) return a; if (37 == a.charAt_1(b + 1) && b + 5 < a.length_0()) { var d = this.hexToInt_1(a.charAt_1(b + 2)), e = this.hexToInt_1(a.charAt_1(b + 3)), f = this.hexToInt_1(a.charAt_1(b + 4)), g = this.hexToInt_1(a.charAt_1(b + 5)); return "" + a.substring_2(0, b) + GT1672.prototype.charToString_1(JSUTIL.MathUtil.castToChar((d << 12) + (e << 8) + (f << 4) + g)) + this.processEscapeCharacters_1(a.substring_1(b + 6)); } d = this.hexToInt_1(a.charAt_1(b + 1)); e = this.hexToInt_1(a.charAt_1(b + 2)); return "" + a.substring_2(0, b) + GT1672.prototype.charToString_1(JSUTIL.MathUtil.castToChar((d << 4) + e)) + this.processEscapeCharacters_1(a.substring_1(b + 3)); }; GT1320.prototype.hexToInt_1 = function (a) { return 48 <= a && 57 >= a ? a - 48 : 97 <= a && 102 >= a ? 10 + (a - 97) : 65 <= a && 70 >= a ? 10 + (a - 65) : 0; }; GT1320.prototype.getSeperatedString_2 = function (a, b) { for (var d = 0, e = 0; e < a.length_0(); e++) a.charAt_1(e) == b && d++; for (var e = [].createArray(d + 1 - 0), f = 0, g = 0; g < d + 1; g++) { var k = a.indexOf_2(b, f); 0 > k && (k = a.length_0()); e[g] = a.substring_2(f, k); f = k + 1 - 0; } return e; }; GT1320.prototype.LOG = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); var GT1643 = Class.extend( { initialConstructor_0: function () { this.framerateListeners = this.actionstocall = this.timerTimes = this.timerAction = this.clock = null; this.runningBlockingAnimatorCount = 0; this.modifier = this.blockingChanged = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.framerateListeners = this.actionstocall = this.timerTimes = this.timerAction = this.clock = null; this.runningBlockingAnimatorCount = 0; this.modifier = this.blockingChanged = null; this.clock = a; this.timerAction = new java_util_JavaScriptVector(); this.timerTimes = [].createArray(4).init(0); this.framerateListeners = new java_util_JavaScriptVector(); this.runningBlockingAnimatorCount = 0; this.blockingChanged = null; this.actionstocall = new java_util_JavaScriptVector(); }, setModifier_1: function (a) { var b = this.currentTimeMillis_0(); this.modifier = a; GT1643.prototype.LOG.log_1("[TimerModifier set] Current time before setting modifier " + b + ", afterwards " + this.currentTimeMillis_0()); }, tick_0: function () { var a = this.clock.currentTime; null != this.modifier && (this.modifier.preTickActions_1(a), (a = this.modifier.timeForCurrentTick_1(a))); this.processCallbacks_1(a); }, processCallbacks_1: function (a) { for (var b = this.framerateListeners.size_0(), d = 0; d < b; d++) { var e = this.framerateListeners.elementAt_1(d); null != e && e.run_0(); } for (d = this.framerateListeners.size_0() - 1; 0 <= d; d--) null == this.framerateListeners.elementAt_1(d) && this.framerateListeners.removeElementAt_1(d); for (;;) { e = this.timerAction.size_0(); for (b = 0; b < e && a >= this.timerTimes[b]; ) b++; if (0 >= b) break; this.actionstocall.setSize_1(b); for (d = 0; d < b; d++) this.actionstocall.setElementAt_2(this.timerAction.elementAt_1(d), d); if (1 == b) this.timerAction.removeElementAt_1(0), this.removeIntAt_3(this.timerTimes, e, 0); else { for (d = 0; d < e - b; d++) this.timerAction.setElementAt_2(this.timerAction.elementAt_1(d + b), d), (this.timerTimes[d] = this.timerTimes[d + b]); this.timerAction.setSize_1(e - b); } for (d = 0; d < b; d++) (e = this.actionstocall.elementAt_1(d)), null != e && e.run_0(); this.actionstocall.setSize_1(0); } }, setBlockingChangedListener_1: function (a) { this.blockingChanged = a; }, currentTimeMillis_0: function () { if (null != this.modifier) { var a = this.clock.currentTimeMillis_0(); return this.modifier.timeForCurrentTick_1(a); } return this.clock.currentTimeMillis_0(); }, triggerCallback_2: function (a, b) { if (null != a) { for (var d = this.timerAction.size_0() - 1; 0 <= d; d--) if (b >= this.timerTimes[d]) { this.timerTimes = this.insertIntAt_4(this.timerTimes, this.timerAction.size_0(), d + 1, b); this.timerAction.insertElementAt_2(a, d + 1); return; } this.timerTimes = this.insertIntAt_4(this.timerTimes, this.timerAction.size_0(), 0, b); this.timerAction.insertElementAt_2(a, 0); } }, triggerCallbackAfter_2: function (a, b) { this.triggerCallback_2(a, this.currentTimeMillis_0() + b); }, triggerCallbackImmediately_1: function (a) { this.triggerCallback_2(a, this.currentTimeMillis_0()); }, removeCallback_2: function (a, b) { if (null != a) { for (var d = 0, e = 0; ; ) { e = this.timerAction.indexOf_2(a, e); if (0 > e) break; this.removeIntAt_3(this.timerTimes, this.timerAction.size_0(), e); this.timerAction.removeElementAt_1(e); d++; } for (;;) { e = this.actionstocall.indexOf_1(a); if (0 > e) break; this.actionstocall.setElementAt_2(null, e); d++; } if (b) for (e = 0; e < d; e++) a.run_0(); } }, countActionBlockerAnimator_1: function (a) { var b = this.isBlockingAnimatorRunning_0(); this.runningBlockingAnimatorCount += a; GT1650.prototype.assertExp_2(0 <= this.runningBlockingAnimatorCount, "More blocking animators counted down than up"); b != this.isBlockingAnimatorRunning_0() && null != this.blockingChanged && this.blockingChanged.run_0(); }, isBlockingAnimatorRunning_0: function () { return 0 < this.runningBlockingAnimatorCount; }, addFramerateListener_1: function (a) { null != a && this.framerateListeners.addElement_1(a); }, removeFramerateListener_1: function (a) { null != a && ((a = this.framerateListeners.indexOf_1(a)), 0 <= a && this.framerateListeners.setElementAt_2(null, a)); }, hasCallbacks_0: function () { return 0 != this.timerAction.size_0() || 0 != this.framerateListeners.size_0(); }, resetAndRemoveAllCallbacks_0: function () { this.runningBlockingAnimatorCount = 0; this.timerAction = new java_util_JavaScriptVector(); this.timerTimes = [].createArray(4).init(0); this.blockingChanged = null; for (var a = 0; a < this.framerateListeners.size_0(); a++) this.framerateListeners.setElementAt_2(null, a); for (a = 0; a < this.actionstocall.size_0(); a++) this.actionstocall.setElementAt_2(null, a); }, }, "GT1643", [] ); GT1643.prototype.insertIntAt_4 = function (a, b, d, e) { var f = a; b >= a.length && ((f = [].createArray(a.length + 4).init(0)), java_lang_System.prototype.arraycopy_5(a, 0, f, 0, b)); for (a = b; a > d; a--) f[a] = f[a - 1]; f[d] = e; return f; }; GT1643.prototype.removeIntAt_3 = function (a, b, d) { for (d += 1; d < b; d++) a[d - 1] = a[d]; }; GT1643.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT1496 = Class.extend( { initialConstructor_0: function () { this.timelines = this.name = null; this.hashcode = this.duration = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.timelines = this.name = null; this.hashcode = this.duration = 0; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: name cannot be null."); null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: timelines cannot be null."); this.name = a; this.timelines = b; this.duration = d; this.hashcode = (GT1347.prototype.getAndIncrement_0() & 65535) << 11; }, getTimelines_0: function () { return this.timelines; }, getDuration_0: function () { return this.duration; }, setDuration_1: function (a) { this.duration = a; }, apply_8: function (a, b, d, e, f, g, k, m) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); e && 0 != this.duration && ((d %= this.duration), 0 < b && (b %= this.duration)); e = this.timelines; for (var n = 0, p = e.size; n < p; n++) e.get_1(n).apply_7(a, b, d, f, g, k, m); }, getName_0: function () { return this.name; }, toString: function () { return this.name; }, hashCode_0: function () { return this.hashcode; }, }, "GT1496", [] ); GT1496.prototype.linearSearch_3 = function (a, b, d) { for (var e = 0, f = a.length - d; e <= f; e += d) if (a[e] > b) return e; return -1; }; GT1496.prototype.binarySearch_2 = function (a, b) { var d = 0, e = a.length - 2; if (0 == e) return 1; for (var f = e >>> 1; ; ) { a[f + 1] <= b ? (d = f + 1) : (e = f); if (d == e) return d + 1; f = (d + e) >>> 1; } }; GT1496.prototype.binarySearch_3 = function (a, b, d) { var e = 0, f = Math.div(a.length, d) - 2; if (0 == f) return d; for (var g = f >>> 1; ; ) { a[(g + 1) * d] <= b ? (e = g + 1) : (f = g); if (e == f) return (e + 1) * d; g = (e + f) >>> 1; } }; GT1496.prototype.dependenyHack = GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND; var GT1250 = Class.extend( { initialConstructor_0: function () { this.mixingTo = this.propertyIDs = this.queue = this.listeners = this.events = this.tracks = this.data = null; this.animationsChanged = !1; this.timeScale = 0; this.trackEntryPool = null; this.tracks = new GT1497(); this.events = new GT1497(); this.listeners = new GT1497(); this.propertyIDs = new GT1472(); this.mixingTo = new GT1497(); this.timeScale = 1; this.createPool_0(); }, initialConstructor_1: function (a) { this.mixingTo = this.propertyIDs = this.queue = this.listeners = this.events = this.tracks = this.data = null; this.animationsChanged = !1; this.timeScale = 0; this.trackEntryPool = null; null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); this.data = a; this.tracks = new GT1497(); this.events = new GT1497(); this.listeners = new GT1497(); this.propertyIDs = new GT1472(); this.mixingTo = new GT1497(); this.timeScale = 1; this.createPool_0(); }, createPool_0: function () { this.trackEntryPool = new GT1251(); this.queue = new GT1454(this); }, update_1: function (a) { a *= this.timeScale; for (var b = 0, d = this.tracks.size; b < d; b++) { var e = this.tracks.get_1(b); if (null != e) { e.animationLast = e.nextAnimationLast; e.trackLast = e.nextTrackLast; var f = a * e.timeScale; if (0 < e.delay) { e.delay -= f; if (0 < e.delay) continue; f = -e.delay; e.delay = 0; } var g = e.next; if (null != g) { var k = e.trackLast - g.delay; if (0 <= k) { g.delay = 0; g.trackTime = k + a * g.timeScale; e.trackTime += f; for (this.setCurrent_3(b, g, !0); null != g.mixingFrom; ) (g.mixTime += f), (g = g.mixingFrom); continue; } } else if (e.trackLast >= e.trackEnd && null == e.mixingFrom) { this.tracks.set_2(b, null); this.queue.end_1(e); this.disposeNext_1(e); continue; } if (null != e.mixingFrom && this.updateMixingFrom_2(e, a)) for (g = e.mixingFrom, e.mixingFrom = null; null != g; ) this.queue.end_1(g), (g = g.mixingFrom); e.trackTime += f; } } this.queue.drain_0(); }, updateMixingFrom_2: function (a, b) { var d = a.mixingFrom; if (null == d) return !0; var e = this.updateMixingFrom_2(d, b); if (0 < a.mixTime && (a.mixTime >= a.mixDuration || 0 == a.timeScale)) { if (0 == d.totalAlpha || 0 == a.mixDuration) (a.mixingFrom = d.mixingFrom), (a.interruptAlpha = d.interruptAlpha), this.queue.end_1(d); return e; } d.animationLast = d.nextAnimationLast; d.trackLast = d.nextTrackLast; d.trackTime += b * d.timeScale; a.mixTime += b * a.timeScale; return !1; }, apply_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: skeleton cannot be null."); this.animationsChanged && this.applyAnimationsChanged_0(); for (var b = this.events, d = !1, e = 0, f = this.tracks.size; e < f; e++) { var g = this.tracks.get_1(e); if (!(null == g || 0 < g.delay)) { var d = !0, k = 0 == e ? GT1565.prototype.current : GT1565.prototype.currentLayered, m = g.alpha; null != g.mixingFrom ? (m *= this.applyMixingFrom_3(g, a, k)) : g.trackTime >= g.trackEnd && null == g.next && (m = 0); var n = g.animationLast, p = g.getAnimationTime_0(), q = g.animation.timelines.size, r = g.animation.timelines.items; if (1 == m) for (var t = 0; t < q; t++) r[t].apply_7(a, n, p, b, 1, GT1565.prototype.setup, GT1345.prototype.inxxx); else { var u = g.timelineData.items, B = 0 == g.timelinesRotation.size; B && g.timelinesRotation.setSize_1(q << 1); for (var A = g.timelinesRotation.items, t = 0; t < q; t++) { var C = r[t], E = u[t] >= GT1250.prototype.FIRST ? GT1565.prototype.setup : k; instanceOf(C, GT1248) ? this.applyRotateTimeline_8(C, a, p, m, E, A, t << 1, B) : C.apply_7(a, n, p, b, m, E, GT1345.prototype.inxxx); } } this.queueEvents_2(g, p); b.clear_0(); g.nextAnimationLast = p; g.nextTrackLast = g.trackTime; } } this.queue.drain_0(); return d; }, applyMixingFrom_3: function (a, b, d) { var e = a.mixingFrom; null != e.mixingFrom && this.applyMixingFrom_3(e, b, d); var f; 0 == a.mixDuration ? ((f = 1), (d = GT1565.prototype.setup)) : ((f = a.mixTime / a.mixDuration), 1 < f && (f = 1)); var g = f < e.eventThreshold ? this.events : null, k = f < e.attachmentThreshold, m = f < e.drawOrderThreshold, n = e.animationLast, p = e.getAnimationTime_0(), q = e.animation.timelines.size, r = e.animation.timelines.items, t = e.timelineData.items, u = e.timelineDipMix.items, B = 0 == e.timelinesRotation.size; B && e.timelinesRotation.setSize_1(q << 1); for (var A = e.timelinesRotation.items, C, E = e.alpha * a.interruptAlpha, F = E * (1 - f), D, H = (e.totalAlpha = 0); H < q; H++) { var I = r[H]; switch (t[H]) { case GT1250.prototype.SUBSEQUENT: if (!k && instanceOf(I, GT1030)) continue; if (!m && instanceOf(I, GT1085)) continue; C = d; D = F; break; case GT1250.prototype.FIRST: C = GT1565.prototype.setup; D = F; break; case GT1250.prototype.DIP: C = GT1565.prototype.setup; D = E; break; default: (C = GT1565.prototype.setup), (D = u[H]), (D = E * Math.max_2(0, 1 - D.mixTime / D.mixDuration)); } e.totalAlpha += D; instanceOf(I, GT1248) ? this.applyRotateTimeline_8(I, b, p, D, C, A, H << 1, B) : I.apply_7(b, n, p, g, D, C, GT1345.prototype.out); } 0 < a.mixDuration && this.queueEvents_2(e, p); this.events.clear_0(); e.nextAnimationLast = p; e.nextTrackLast = e.trackTime; return f; }, applyRotateTimeline_8: function (a, b, d, e, f, g, k, m) { m && (g[k] = 0); if (1 == e) a.apply_7(b, 0, d, null, 1, f, GT1345.prototype.inxxx); else { b = b.bones.get_1(a.boneIndex); var n = a.frames; if (d < n[0]) f == GT1565.prototype.setup && (b.rotation = b.data.rotation); else { if (d >= n[n.length - GT1248.prototype.ENTRIES]) d = b.data.rotation + n[n.length + GT1248.prototype.PREV_ROTATION]; else { var p = GT1496.prototype.binarySearch_3(n, d, GT1248.prototype.ENTRIES), q = n[p + GT1248.prototype.PREV_ROTATION], r = n[p]; a = a.getCurvePercent_2((p >> 1) - 1, 1 - (d - r) / (n[p + GT1248.prototype.PREV_TIME] - r)); d = n[p + GT1248.prototype.ROTATION] - q; d -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - d / 360)); d = q + d * a + b.data.rotation; d -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - d / 360)); } f = f == GT1565.prototype.setup ? b.data.rotation : b.rotation; q = d - f; 0 == q ? (n = g[k]) : ((q -= 360 * (16384 - Integer.truncate_1(16384.499999999996 - q / 360))), m ? ((m = 0), (n = q)) : ((m = g[k]), (n = g[k + 1])), (a = 0 < q), (d = 0 <= m), this.mathSignum_1(n) != this.mathSignum_1(q) && 90 >= Math.abs_1(n) && (180 < Math.abs_1(m) && (m += 360 * this.mathSignum_1(m)), (d = a)), (n = q + m - (m % 360)), d != a && (n += 360 * this.mathSignum_1(m)), (g[k] = n)); g[k + 1] = q; f += n * e; b.rotation = f - 360 * (16384 - Integer.truncate_1(16384.499999999996 - f / 360)); } } }, mathSignum_1: function (a) { return 0 == a ? 0 : 0 < a ? 1 : -1; }, queueEvents_2: function (a, b) { for (var d = a.animationStart, e = a.animationEnd, f = e - d, g = a.trackLast % f, k = this.events, m = 0, n = k.size; m < n; m++) { var p = k.get_1(m); if (p.time < g) break; p.time > e || this.queue.event_2(a, p); } for ((a.loop ? g > a.trackTime % f : b >= e && a.animationLast < e) && this.queue.complete_1(a); m < n; m++) (p = k.get_1(m)), p.time < d || this.queue.event_2(a, k.get_1(m)); }, clearTracks_0: function () { var a = this.queue.drainDisabled; this.queue.drainDisabled = !0; for (var b = 0, d = this.tracks.size; b < d; b++) this.clearTrack_1(b); this.tracks.clear_0(); this.queue.drainDisabled = a; this.queue.drain_0(); }, clearTrack_1: function (a) { if (!(a >= this.tracks.size) && ((a = this.tracks.get_1(a)), null != a)) { this.queue.end_1(a); this.disposeNext_1(a); for (var b = a; ; ) { var d = b.mixingFrom; if (null == d) break; this.queue.end_1(d); b.mixingFrom = null; b = d; } this.tracks.set_2(a.trackIndex, null); this.queue.drain_0(); } }, setCurrent_3: function (a, b, d) { var e = this.expandToIndex_1(a); this.tracks.set_2(a, b); null != e && (d && this.queue.interrupt_1(e), (b.mixingFrom = e), (b.mixTime = 0), null != e.mixingFrom && 0 < e.mixDuration && (b.interruptAlpha *= Math.min_2(1, e.mixTime / e.mixDuration)), e.timelinesRotation.clear_0()); this.queue.start_1(b); }, setAnimation_3: function (a, b, d) { var e = this.data.skeletonData.findAnimation_1(b); null == e && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Animation not found: " + b); return this.setAnimation_4(a, e, d, !0); }, setAnimation_4: function (a, b, d, e) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: animation cannot be null."); e = !0; var f = this.expandToIndex_1(a); null != f && (-1 == f.nextTrackLast ? (this.tracks.set_2(a, f.mixingFrom), this.queue.interrupt_1(f), this.queue.end_1(f), this.disposeNext_1(f), (f = f.mixingFrom), (e = !1)) : this.disposeNext_1(f)); b = this.trackEntry_4(a, b, d, f); this.queue.drain_0(); this.setCurrent_3(a, b, e); return b; }, addAnimation_4: function (a, b, d, e) { var f = this.data.skeletonData.findAnimation_1(b); null == f && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Animation not found: " + b); return this.addAnimation_5(a, f, d, e, !0); }, addAnimation_5: function (a, b, d, e, f) { null == b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: animation cannot be null."); f = this.expandToIndex_1(a); if (null != f) for (; null != f.next; ) f = f.next; d = this.trackEntry_4(a, b, d, f); null == f ? (this.setCurrent_3(a, d, !0), this.queue.drain_0()) : ((f.next = d), 0 >= e && ((a = f.animationEnd - f.animationStart), 0 != a ? ((e = f.loop ? e + a * (1 + Integer.truncate_1(f.trackTime / a)) : e + a), (e -= this.data.getMix_2(f.animation, b))) : (e = 0))); d.delay = e; return d; }, setEmptyAnimation_2: function (a, b) { var d = this.setAnimation_4(a, GT1250.prototype.emptyAnimation, !1, !0); d.mixDuration = b; d.trackEnd = b; return d; }, addEmptyAnimation_3: function (a, b, d) { 0 >= d && (d -= b); a = this.addAnimation_5(a, GT1250.prototype.emptyAnimation, !1, d, !0); a.mixDuration = b; a.trackEnd = b; return a; }, setEmptyAnimations_1: function (a) { var b = this.queue.drainDisabled; this.queue.drainDisabled = !0; for (var d = 0, e = this.tracks.size; d < e; d++) { var f = this.tracks.get_1(d); null != f && this.setEmptyAnimation_2(f.trackIndex, a); } this.queue.drainDisabled = b; this.queue.drain_0(); }, expandToIndex_1: function (a) { if (a < this.tracks.size) return this.tracks.get_1(a); this.tracks.ensureCapacity_1(a - this.tracks.size + 1); this.tracks.size = a + 1; return null; }, trackEntry_4: function (a, b, d, e) { var f = this.trackEntryPool.obtain_0(); f.trackIndex = a; f.animation = b; f.loop = d; f.eventThreshold = 0; f.attachmentThreshold = 0; f.drawOrderThreshold = 0; f.animationStart = 0; f.animationEnd = b.getDuration_0(); f.animationLast = -1; f.nextAnimationLast = -1; f.delay = 0; f.trackTime = 0; f.trackLast = -1; f.nextTrackLast = -1; f.trackEnd = Double.MAX_VALUE; f.timeScale = 1; f.alpha = 1; f.interruptAlpha = 1; f.mixTime = 0; f.mixDuration = null == e ? 0 : this.data.getMix_2(e.animation, b); return f; }, disposeNext_1: function (a) { for (var b = a.next; null != b; ) this.queue.dispose_1(b), (b = b.next); a.next = null; }, applyAnimationsChanged_0: function () { this.animationsChanged = !1; var a = this.propertyIDs; a.clear_0(); for (var b = this.mixingTo, d = 0, e = this.tracks.size; d < e; d++) { var f = this.tracks.get_1(d); null != f && f.setTimelineData_3(null, b, a); } }, getCurrent_1: function (a) { return a >= this.tracks.size ? null : this.tracks.get_1(a); }, addListener_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: listener cannot be null."); this.listeners.add_1(a); }, removeListener_1: function (a) { this.listeners.removeValue_2(a, !0); }, clearListeners_0: function () { this.listeners.clear_0(); }, clearListenerNotifications_0: function () { this.queue.clear_0(); }, getTimeScale_0: function () { return this.timeScale; }, setTimeScale_1: function (a) { this.timeScale = a; }, getData_0: function () { return this.data; }, setData_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: data cannot be null."); this.data = a; }, getTracks_0: function () { return this.tracks; }, toString: function () { for (var a = "", b = 0, d = this.tracks.size; b < d; b++) { var e = this.tracks.get_1(b); null != e && (0 < a.length_0() && (a += ", "), (a += e.toString())); } return 0 == a.length_0() ? "" : a.toString(); }, }, "GT1250", [] ); GT1250.prototype.emptyAnimation = new GT1496("", new GT1497(0), 0); GT1250.prototype.SUBSEQUENT = 0; GT1250.prototype.FIRST = 1; GT1250.prototype.DIP = 2; GT1250.prototype.DIP_MIX = 3; var GT510 = GT830.extend( { initialConstructor_0: function () { this.id = 0; this.vertices = this.bones = null; this.worldVerticesLength = 0; GT830.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.id = 0; this.vertices = this.bones = null; this.worldVerticesLength = 0; GT830.prototype.initialConstructor_1.call(this, a); this.id = (GT1347.prototype.getAndIncrement_0() & 65535) << 11; }, computeWorldVertices_6: function (a, b, d, e, f, g) { d = f + (d >> 1) * g; var k = a.getSkeleton_0(), m = a.getAttachmentVertices_0(), n = this.vertices, p = this.bones; if (null == p) { 0 < m.size && (n = m.items); var q = a.getBone_0(), p = q.getWorldX_0(), r = q.getWorldY_0(), t = q.getA_0(), m = q.getB_0(), u = q.getC_0(), q = q.getD_0(); for (a = b; f < d; a += 2, f += g) (b = n[a]), (k = n[a + 1]), (e[f] = b * t + k * m + p), (e[f + 1] = b * u + k * q + r); } else { for (t = q = a = 0; t < b; t += 2) (r = p[a]), (a += r + 1), (q += r); t = k.getBones_0().items; if (0 == m.size) for (m = 3 * q; f < d; f += g) { for (var B = 0, A = 0, r = p[a++], r = r + a; a < r; a++, m += 3) { q = t[p[a]]; b = n[m]; var k = n[m + 1], C = n[m + 2], B = B + (b * q.getA_0() + k * q.getB_0() + q.getWorldX_0()) * C, A = A + (b * q.getC_0() + k * q.getD_0() + q.getWorldY_0()) * C; } e[f] = B; e[f + 1] = A; } else for (var u = m.items, m = 3 * q, E = q << 1; f < d; f += g) { A = B = 0; r = p[a++]; for (r += a; a < r; a++, m += 3, E += 2) (q = t[p[a]]), (b = n[m] + u[E]), (k = n[m + 1] + u[E + 1]), (C = n[m + 2]), (B += (b * q.getA_0() + k * q.getB_0() + q.getWorldX_0()) * C), (A += (b * q.getC_0() + k * q.getD_0() + q.getWorldY_0()) * C); e[f] = B; e[f + 1] = A; } } }, applyDeform_1: function (a) { return this == a; }, getBones_0: function () { return this.bones; }, setBones_1: function (a) { this.bones = a; }, getVertices_0: function () { return this.vertices; }, setVertices_1: function (a) { this.vertices = a; }, getWorldVerticesLength_0: function () { return this.worldVerticesLength; }, setWorldVerticesLength_1: function (a) { this.worldVerticesLength = a; }, getId_0: function () { return this.id; }, }, "GT510", [] ); GT510.prototype.dependenyHack = GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND; var GT1472 = Class.extend( { initialConstructor_0: function () { GT1472.prototype.initialConstructor_2.call(this, 51, 0.8); }, initialConstructor_1: function (a) { GT1472.prototype.initialConstructor_2.call(this, a, 0.8); }, initialConstructor_2: function (a, b) { this.size = 0; this.keyTable = null; this.stashSize = this.capacity = 0; this.hasZeroValue = !1; this.pushIterations = this.stashCapacity = this.threshold = this.mask = this.hashShift = this.loadFactor = 0; this.iterator2 = this.iterator1 = null; 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: initialCapacity must be >= 0: " + a); a = GT1294.prototype.nextPowerOfTwo_1(Integer.truncate_1(Math.ceil_1(a / b))); 1073741824 < a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: initialCapacity is too large: " + a); this.capacity = a; 0 >= b && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: loadFactor must be > 0: " + b); this.loadFactor = b; this.threshold = Integer.truncate_1(this.capacity * b); this.mask = this.capacity - 1; this.hashShift = 31 - GT1347.prototype.numberOfTrailingZeros_1(this.capacity); this.stashCapacity = Math.max_2(3, 2 * Integer.truncate_1(Math.ceil_1(Math.log_1(this.capacity)))); this.pushIterations = Math.max_2(Math.min_2(this.capacity, 8), Math.div(Integer.truncate_1(Math.sqrt_1(this.capacity)), 8)); this.keyTable = [].createArray(this.capacity + this.stashCapacity).init(0); }, add_1: function (a) { if (0 == a) { if (this.hasZeroValue) return !1; this.hasZeroValue = !0; this.size++; return !0; } var b = this.keyTable, d = a & this.mask, e = b[d]; if (e == a) return !1; var f = this.hash2_1(a), g = b[f]; if (g == a) return !1; var k = this.hash3_1(a), m = b[k]; if (m == a) return !1; for (var n = this.capacity, p = n + this.stashSize; n < p; n++) if (b[n] == a) return !1; if (e == GT1472.prototype.EMPTY) return (b[d] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1), !0; if (g == GT1472.prototype.EMPTY) return (b[f] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1), !0; if (m == GT1472.prototype.EMPTY) return (b[k] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1), !0; this.push_7(a, d, e, f, g, k, m); return !0; }, addAll_1: function (a) { this.addAll_3(a, 0, a.length); }, addAll_3: function (a, b, d) { this.ensureCapacity_1(d); for (d = b + d; b < d; b++) this.add_1(a[b]); }, addResize_1: function (a) { if (0 == a) this.hasZeroValue = !0; else { var b = a & this.mask, d = this.keyTable[b]; if (d == GT1472.prototype.EMPTY) (this.keyTable[b] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1); else { var e = this.hash2_1(a), f = this.keyTable[e]; if (f == GT1472.prototype.EMPTY) (this.keyTable[e] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1); else { var g = this.hash3_1(a), k = this.keyTable[g]; k == GT1472.prototype.EMPTY ? ((this.keyTable[g] = a), this.size++ >= this.threshold && this.resize_1(this.capacity << 1)) : this.push_7(a, b, d, e, f, g, k); } } } }, push_7: function (a, b, d, e, f, g, k) { var m = this.keyTable, n = this.mask, p, q = 0, r = this.pushIterations; do { switch (GT1294.prototype.random_1(2)) { case 0: p = d; m[b] = a; break; case 1: p = f; m[e] = a; break; default: (p = k), (m[g] = a); } b = p & n; d = m[b]; if (d == GT1472.prototype.EMPTY) { m[b] = p; this.size++ >= this.threshold && this.resize_1(this.capacity << 1); return; } e = this.hash2_1(p); f = m[e]; if (f == GT1472.prototype.EMPTY) { m[e] = p; this.size++ >= this.threshold && this.resize_1(this.capacity << 1); return; } g = this.hash3_1(p); k = m[g]; if (k == GT1472.prototype.EMPTY) { m[g] = p; this.size++ >= this.threshold && this.resize_1(this.capacity << 1); return; } if (++q == r) break; a = p; } while (1); this.addStash_1(p); }, addStash_1: function (a) { this.stashSize == this.stashCapacity ? (this.resize_1(this.capacity << 1), this.add_1(a)) : ((this.keyTable[this.capacity + this.stashSize] = a), this.stashSize++, this.size++); }, remove_1: function (a) { if (0 == a) { if (!this.hasZeroValue) return !1; this.hasZeroValue = !1; this.size--; return !0; } var b = a & this.mask; if (this.keyTable[b] == a) return (this.keyTable[b] = GT1472.prototype.EMPTY), this.size--, !0; b = this.hash2_1(a); if (this.keyTable[b] == a) return (this.keyTable[b] = GT1472.prototype.EMPTY), this.size--, !0; b = this.hash3_1(a); return this.keyTable[b] == a ? ((this.keyTable[b] = GT1472.prototype.EMPTY), this.size--, !0) : this.removeStash_1(a); }, removeStash_1: function (a) { for (var b = this.keyTable, d = this.capacity, e = d + this.stashSize; d < e; d++) if (b[d] == a) return this.removeStashIndex_1(d), this.size--, !0; return !1; }, removeStashIndex_1: function (a) { this.stashSize--; var b = this.capacity + this.stashSize; a < b && (this.keyTable[a] = this.keyTable[b]); }, shrink_1: function (a) { 0 > a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: maximumCapacity must be >= 0: " + a); this.size > a && (a = this.size); this.capacity <= a || ((a = GT1294.prototype.nextPowerOfTwo_1(a)), this.resize_1(a)); }, clear_1: function (a) { this.capacity <= a ? this.clear_0() : ((this.hasZeroValue = !1), (this.size = 0), this.resize_1(a)); }, clear_0: function () { if (0 != this.size) { for (var a = this.keyTable, b = this.capacity + this.stashSize; 0 < b--; ) a[b] = GT1472.prototype.EMPTY; this.stashSize = this.size = 0; this.hasZeroValue = !1; } }, contains_1: function (a) { if (0 == a) return this.hasZeroValue; var b = a & this.mask; return this.keyTable[b] != a && ((b = this.hash2_1(a)), this.keyTable[b] != a && ((b = this.hash3_1(a)), this.keyTable[b] != a)) ? this.containsKeyStash_1(a) : !0; }, containsKeyStash_1: function (a) { for (var b = this.keyTable, d = this.capacity, e = d + this.stashSize; d < e; d++) if (b[d] == a) return !0; return !1; }, first_0: function () { if (this.hasZeroValue) return 0; for (var a = this.keyTable, b = 0, d = this.capacity + this.stashSize; b < d; b++) if (a[b] != GT1472.prototype.EMPTY) return a[b]; GT1650.prototype.assertExp_2(!1, "IllegalStateException: IntSet is empty."); return 0; }, ensureCapacity_1: function (a) { a = this.size + a; a >= this.threshold && this.resize_1(GT1294.prototype.nextPowerOfTwo_1(Integer.truncate_1(Math.ceil_1(a / this.loadFactor)))); }, resize_1: function (a) { var b = this.capacity + this.stashSize; this.capacity = a; this.threshold = Integer.truncate_1(a * this.loadFactor); this.mask = a - 1; this.hashShift = 31 - GT1347.prototype.numberOfTrailingZeros_1(a); this.stashCapacity = Math.max_2(3, 2 * Integer.truncate_1(Math.ceil_1(Math.log_1(a)))); this.pushIterations = Math.max_2(Math.min_2(a, 8), Math.div(Integer.truncate_1(Math.sqrt_1(a)), 8)); var d = this.keyTable; this.keyTable = [].createArray(a + this.stashCapacity).init(0); a = this.size; this.size = this.hasZeroValue ? 1 : 0; this.stashSize = 0; if (0 < a) for (a = 0; a < b; a++) { var e = d[a]; e != GT1472.prototype.EMPTY && this.addResize_1(e); } }, hash2_1: function (a) { a *= GT1472.prototype.PRIME2; return (a ^ (a >>> this.hashShift)) & this.mask; }, hash3_1: function (a) { a *= GT1472.prototype.PRIME3; return (a ^ (a >>> this.hashShift)) & this.mask; }, hashCode_0: function () { for (var a = 0, b = 0, d = this.capacity + this.stashSize; b < d; b++) this.keyTable[b] != GT1472.prototype.EMPTY && (a += this.keyTable[b]); return a; }, equals_1: function (a) { if (!instanceOf(a, GT1472) || a.size != this.size || a.hasZeroValue != this.hasZeroValue) return !1; for (var b = 0, d = this.capacity + this.stashSize; b < d; b++) if (this.keyTable[b] != GT1472.prototype.EMPTY && !a.contains_1(this.keyTable[b])) return !1; return !0; }, toString: function () { if (0 == this.size) return "[]"; var a; a = "91"; var b = this.keyTable, d = b.length; if (this.hasZeroValue) a += "0"; else for (; 0 < d--; ) { var e = b[d]; if (e != GT1472.prototype.EMPTY) { a += e; break; } } for (; 0 < d--; ) (e = b[d]), e != GT1472.prototype.EMPTY && ((a += ", "), (a += e)); return a + 93; }, iterator_0: function () { null == this.iterator1 && ((this.iterator1 = new GT1061(this)), (this.iterator2 = new GT1061(this))); if (!this.iterator1.valid) return this.iterator1.reset_0(), (this.iterator1.valid = !0), (this.iterator2.valid = !1), this.iterator1; this.iterator2.reset_0(); this.iterator2.valid = !0; this.iterator1.valid = !1; return this.iterator2; }, }, "GT1472", [] ), GT1061 = Class.extend( { initialConstructor_0: function () { this.hasNext = !1; this.set = null; this.currentIndex = this.nextIndex = 0; this.valid = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.hasNext = !1; this.set = null; this.currentIndex = this.nextIndex = 0; this.valid = !1; this.valid = !0; this.set = a; this.reset_0(); }, reset_0: function () { this.currentIndex = GT1061.prototype.INDEX_ILLEGAL; this.nextIndex = GT1061.prototype.INDEX_ZERO; this.set.hasZeroValue ? (this.hasNext = !0) : this.findNextIndex_0(); }, findNextIndex_0: function () { this.hasNext = !1; for (var a = this.set.keyTable, b = this.set.capacity + this.set.stashSize; ++this.nextIndex < b; ) if (a[this.nextIndex] != GT1472.prototype.EMPTY) { this.hasNext = !0; break; } }, remove_0: function () { this.currentIndex == GT1061.prototype.INDEX_ZERO && this.set.hasZeroValue ? (this.set.hasZeroValue = !1) : 0 > this.currentIndex ? GT1650.prototype.assertExp_2(!1, "IllegalStateException: next must be called before remove.") : this.currentIndex >= this.set.capacity ? (this.set.removeStashIndex_1(this.currentIndex), (this.nextIndex = this.currentIndex - 1), this.findNextIndex_0()) : (this.set.keyTable[this.currentIndex] = GT1472.prototype.EMPTY); this.currentIndex = GT1061.prototype.INDEX_ILLEGAL; this.set.size--; }, next_0: function () { this.hasNext || GT1650.prototype.assertExp_2(!1, "NoSuchElementException()"); this.valid || GT1650.prototype.assertExp_2(!1, "#iterator() cannot be used nested."); var a = this.nextIndex == GT1061.prototype.INDEX_ZERO ? 0 : this.set.keyTable[this.nextIndex]; this.currentIndex = this.nextIndex; this.findNextIndex_0(); return a; }, toArray_0: function () { for (var a = new GT1346(!0, this.set.size); this.hasNext; ) a.add_1(this.next_0()); return a; }, }, "GT1061", [] ); GT1472.prototype.with_1 = function (a) { var b = new GT1472(); b.addAll_1(a); return b; }; GT1472.prototype.dependenyHack = GT1347.prototype.DUMMY_DEPENDENCY_WORKAROUND; GT1472.prototype.PRIME1 = -1105390415; GT1472.prototype.PRIME2 = -1262997959; GT1472.prototype.PRIME3 = -1262997959; GT1472.prototype.EMPTY = 0; GT1061.prototype.INDEX_ILLEGAL = -2; GT1061.prototype.INDEX_ZERO = -1; var GT1294 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1294", [] ), GT1579 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1579", [] ); GT1579.prototype.getTable_0 = function () { if (!GT1579.prototype.initialized) { GT1579.prototype.initialized = !0; for (var a = 0; a < GT1294.prototype.SIN_COUNT; a++) GT1579.prototype.table[a] = Math.sin_1(((a + 0.5) / GT1294.prototype.SIN_COUNT) * GT1294.prototype.radFull); for (a = 0; 360 > a; a += 90) GT1579.prototype.table[Integer.truncate_1(a * GT1294.prototype.degToIndex) & GT1294.prototype.SIN_MASK] = Math.sin_1(a * GT1294.prototype.degreesToRadians); } return GT1579.prototype.table; }; GT1294.prototype.log2_1 = function (a) { return this.log_2(2, a); }; GT1294.prototype.log_2 = function (a, b) { return Math.log_1(b) / Math.log_1(a); }; GT1294.prototype.isEqual_3 = function (a, b, d) { return Math.abs_1(a - b) <= d; }; GT1294.prototype.isEqual_2 = function (a, b) { return Math.abs_1(a - b) <= GT1294.prototype.FLOAT_ROUNDING_ERROR; }; GT1294.prototype.isZero_2 = function (a, b) { return Math.abs_1(a) <= b; }; GT1294.prototype.isZero_1 = function (a) { return Math.abs_1(a) <= GT1294.prototype.FLOAT_ROUNDING_ERROR; }; GT1294.prototype.roundPositive_1 = function (a) { return Integer.truncate_1(a + 0.5); }; GT1294.prototype.round_1 = function (a) { return Integer.truncate_1(a + GT1294.prototype.BIG_ENOUGH_ROUND) - GT1294.prototype.BIG_ENOUGH_INT; }; GT1294.prototype.ceilPositive_1 = function (a) { return Integer.truncate_1(a + GT1294.prototype.CEIL); }; GT1294.prototype.ceil_1 = function (a) { return GT1294.prototype.BIG_ENOUGH_INT - Integer.truncate_1(GT1294.prototype.BIG_ENOUGH_FLOOR - a); }; GT1294.prototype.floorPositive_1 = function (a) { return Integer.truncate_1(a); }; GT1294.prototype.floor_1 = function (a) { return Integer.truncate_1(a + GT1294.prototype.BIG_ENOUGH_FLOOR) - GT1294.prototype.BIG_ENOUGH_INT; }; GT1294.prototype.lerpAngleDeg_3 = function (a, b, d) { return (a + (((b - a + 540) % 360) - 180) * d + 360) % 360; }; GT1294.prototype.lerpAngle_3 = function (a, b, d) { return (a + (((b - a + GT1294.prototype.PI2 + GT1294.prototype.PI) % GT1294.prototype.PI2) - GT1294.prototype.PI) * d + GT1294.prototype.PI2) % GT1294.prototype.PI2; }; GT1294.prototype.lerp_3 = function (a, b, d) { return a + (b - a) * d; }; GT1294.prototype.clamp_3 = function (a, b, d) { return a < b ? b : a > d ? d : a; }; GT1294.prototype.isPowerOfTwo_1 = function (a) { return 0 != a && 0 == (a & (a - 1)); }; GT1294.prototype.nextPowerOfTwo_1 = function (a) { if (0 == a) return 1; a--; a |= a >> 1; a |= a >> 2; a |= a >> 4; a |= a >> 8; return (a | (a >> 16)) + 1; }; GT1294.prototype.randomTriangular_3 = function (a, b, d) { var e = GT1294.prototype.rnd.nextDouble_0(), f = b - a; return e <= (d - a) / f ? a + Math.sqrt_1(e * f * (d - a)) : b - Math.sqrt_1((1 - e) * f * (b - d)); }; GT1294.prototype.randomTriangular_2 = function (a, b) { return this.randomTriangular_3(a, b, 0.5 * (a + b)); }; GT1294.prototype.randomTriangular_1 = function (a) { return (GT1294.prototype.rnd.nextDouble_0() - GT1294.prototype.rnd.nextDouble_0()) * a; }; GT1294.prototype.randomTriangular_0 = function () { return GT1294.prototype.rnd.nextDouble_0() - GT1294.prototype.rnd.nextDouble_0(); }; GT1294.prototype.randomSign_0 = function () { return 1 | (GT1294.prototype.rnd.nextInt_0() >> 31); }; GT1294.prototype.randomDouble_2 = function (a, b) { return a + GT1294.prototype.rnd.nextDouble_0() * (b - a); }; GT1294.prototype.random_0 = function () { return GT1294.prototype.rnd.nextDouble_0(); }; GT1294.prototype.randomBoolean_1 = function (a) { return GT1294.prototype.random_0() < a; }; GT1294.prototype.randomBoolean_0 = function () { return GT1294.prototype.rnd.nextBool_1(50); }; GT1294.prototype.random_2 = function (a, b) { return a + GT1294.prototype.rnd.nextInt_1(b - a + 1); }; GT1294.prototype.random_1 = function (a) { return GT1294.prototype.rnd.nextInt_1(a + 1); }; GT1294.prototype.atan2_2 = function (a, b) { if (0 == b) return 0 < a ? GT1294.prototype.PI / 2 : 0 == a ? 0 : -GT1294.prototype.PI / 2; var d; d = a / b; if (1 > Math.abs_1(d)) return (d /= 1 + 0.28 * d * d), 0 > b ? d + (0 > a ? -GT1294.prototype.PI : GT1294.prototype.PI) : d; d = GT1294.prototype.PI / 2 - d / (d * d + 0.28); return 0 > a ? d - GT1294.prototype.PI : d; }; GT1294.prototype.cosDeg_1 = function (a) { return GT1579.prototype.getTable_0()[Integer.truncate_1((a + 90) * GT1294.prototype.degToIndex) & GT1294.prototype.SIN_MASK]; }; GT1294.prototype.sinDeg_1 = function (a) { return GT1579.prototype.getTable_0()[Integer.truncate_1(a * GT1294.prototype.degToIndex) & GT1294.prototype.SIN_MASK]; }; GT1294.prototype.cos_1 = function (a) { return GT1579.prototype.getTable_0()[Integer.truncate_1((a + GT1294.prototype.PI / 2) * GT1294.prototype.radToIndex) & GT1294.prototype.SIN_MASK]; }; GT1294.prototype.sin_1 = function (a) { return GT1579.prototype.getTable_0()[Integer.truncate_1(a * GT1294.prototype.radToIndex) & GT1294.prototype.SIN_MASK]; }; GT1294.prototype.nanoToSec = 1e-9; GT1294.prototype.FLOAT_ROUNDING_ERROR = 1e-6; GT1294.prototype.PI = 3.1415927; GT1294.prototype.PI2 = 2 * GT1294.prototype.PI; GT1294.prototype.E = 2.7182818; GT1294.prototype.SIN_BITS = 14; GT1294.prototype.SIN_MASK = ~(-1 << GT1294.prototype.SIN_BITS); GT1294.prototype.SIN_COUNT = GT1294.prototype.SIN_MASK + 1; GT1294.prototype.radFull = 2 * GT1294.prototype.PI; GT1294.prototype.degFull = 360; GT1294.prototype.radToIndex = GT1294.prototype.SIN_COUNT / GT1294.prototype.radFull; GT1294.prototype.degToIndex = GT1294.prototype.SIN_COUNT / GT1294.prototype.degFull; GT1294.prototype.radiansToDegrees = 180 / GT1294.prototype.PI; GT1294.prototype.radDeg = GT1294.prototype.radiansToDegrees; GT1294.prototype.degreesToRadians = GT1294.prototype.PI / 180; GT1294.prototype.degRad = GT1294.prototype.degreesToRadians; GT1294.prototype.rnd = new GT1561(151515); GT1294.prototype.BIG_ENOUGH_INT = 16384; GT1294.prototype.BIG_ENOUGH_FLOOR = GT1294.prototype.BIG_ENOUGH_INT; GT1294.prototype.CEIL = 0.9999999; GT1294.prototype.BIG_ENOUGH_CEIL = 16384.999999999996; GT1294.prototype.BIG_ENOUGH_ROUND = GT1294.prototype.BIG_ENOUGH_INT + 0.5; GT1579.prototype.table = [].createArray(GT1294.prototype.SIN_COUNT).init(0); GT1579.prototype.initialized = !1; var GT163 = GT1254.extend( { initialConstructor_0: function () { this.handler = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT163.prototype.ID; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1650.prototype.assertExp_2(instanceOf(a, GT737), "gui container is no gamble screen"); this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getSlotConsole_0().setWin_3(this.getSlotState_0().getWinSum_1(!0), !1, 1e3); this.getGui_0().getSlotConsole_0().setCredits_3(this.getSlotState_0().getCredits_0(), !1, 1e3); this.getGui_0().getSlotConsole_0().setWinSuperGames_3(this.getSlotState_0().getSuperGamesSum_1(!0), this.getSlotState_0().getSuperGameState_0().getSuperGamesLabel_0(), !0); a.setCurrentWin_2(this.getSlotState_0().getWinSum_1(!0), this.getSlotState_0().getSuperGamesSum_1(!0)); a.setGambleState_1(this.getSlotState_0().getGambleState_0()); this.handler = new GT69(this); a.addGambleListener_1(this.handler); instanceOf(a, GT161) && a.showHalfCollect_0(); }, exit_0: function () { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE).removeGambleListener_1(this.handler); this.handler = null; }, toString: function () { return "GuiStateGambleShowHalfCollect (" + this.getId_0() + ")"; }, }, "GT163", [] ), GT69 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, animationFinished_0: function () { this.state.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT569(this.state)); }, gambleButtonPressed_2: function (a, b) {}, }, "GT69", [GT455] ); GT163.prototype.ID = GT907.prototype.generateID_0(); var GT523 = GT1147.extend( { initialConstructor_0: function () { this.autoCollect = !1; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.autoCollect = !1; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT523.prototype.ID; }, enter_1: function (a) { a = this.autoCollect = !1; var b = this.getSlotState_0().getFreeSpinState_0(), d = 0 < b.getWinMeter_0() + this.getSlotState_0().getWinSum_1(!0), b = ((this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && b.isFreeSpinsRunning_0() && d) || b.isStopAutoplayAfterFreeGames_0()) && b.isForceAutoplayInFreeGames_0() && b.isAtLastFreeSpin_0(); !this.getSlotState_0().getCasinoState_0().isActionAllowed_0() || b ? this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED) : (a = this.getSlotGame_0().checkAPSWinLimit_1(!0)); (a = this.isDecideGambleAllowed_1(a)) || ((b || !this.getSlotState_0().getCasinoState_0().isActivePlayer_0()) && !GT514.prototype.isGamblingDisabled_0()) ? (a && this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_DECIDEGAMBLE), this.changeGuiState_1(GT620.prototype.ID), this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && (this.getSlotState_0().isMaximumRoundWinExceeded_0() || !a) && b && ((this.autoCollect = !0), this.notifyInputEvent_1(new GT1354(GT1354.prototype.COLLECT)))) : ((this.autoCollect = !0), this.notifyInputEvent_1(new GT1354(GT1354.prototype.COLLECT))); this.isFirstStateAfterInit_0() && (this.getSlotState_0().isMaximumRoundWinExceeded_0() && this.getSlotGame_0() .getSlotEventManager_0() .fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT697.prototype.KEY_MAXIMUMROUNDWIN, "" + this.getSlotState_0().getMaximumRoundWin_0(), !0)), this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() && this.getSlotGame_0().getGuiStateMachine_0().getCurrentStateId_0() == GT620.prototype.ID && this.requestFinishGuiState_0()); }, isDecideGambleAllowed_1: function (a) { return GT514.prototype.isGamblingDisabled_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() ? !1 : this.isDecideGambleAllowedLogic_1(a); }, isDecideGambleAllowedLogic_1: function (a) { var b = this.getSlotState_0().getFreeSpinState_0(), d = this.getSlotState_0().getDefinition_0(), e = 0 < b.getWinMeter_0() + this.getSlotState_0().getWinSum_1(!0), f = d.isCollectAtEndOfRound_0() && b.isFreeSpinsRunning_0() && e, e = 0 < this.getSlotState_0().getWinSum_1(!1) || 0 < this.getSlotState_0().getSuperGamesSum_1(!1) || f, b = b.isForceAutoplayInFreeGames_0() && b.isFreeSpinsRunning_0() && !b.isBeforeFirstFreeSpin_0() && !(b.isAtLastFreeSpin_0() && f), d = 0 < this.getSlotState_0().getGambleLimit_0() && 0 < d.getMaxGambleSteps_0() && this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0(); return !this.getSlotState_0().isAutoPlaying_0() && ((!b && e && d) || a); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.AUTOSTOP && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT); (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a); a.getId_0() == GT1354.prototype.COLLECT && this.autoCollect ? this.handleChangeStateForNoGamble_0() : this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && (a.getId_0() == GT1354.prototype.GAMBLE && this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() ? this.handleChangeStateForGamble_0() : a.getId_0() == GT1354.prototype.COLLECT ? this.handleChangeStateForNoGamble_0() : a.getId_0() == GT1354.prototype.AUTOPLAY && (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.handleChangeStateForNoGamble_0())); }, notifyGuiStateFinished_1: function (a) {}, handleChangeStateForGamble_0: function () { this.changeState_1(GT842.prototype.ID); }, handleChangeStateForNoGamble_0: function () { this.changeState_1(GT624.prototype.ID); }, toString: function () { return "ClientStateBeforeGamble (" + this.getId_0() + ")"; }, }, "GT523", [] ); GT523.prototype.ID = GT788.prototype.generateID_0(); var GT625 = GT438.extend( { initialConstructor_0: function () { this.acceptInput = this.autoSpin = !1; GT438.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.acceptInput = this.autoSpin = !1; GT438.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT625.prototype.ID; }, enter_1: function (a) { GT514.prototype.getInstance_0().getApplet_0().openDisableGamblingDialogIfAppropriate_0(); var b = this.getSlotGame_0().getSlotState_0().getBaseBets_0(); this.getSlotState_0().getBaseBet_0() > b[b.length - 1] && this.getSlotGame_0().setBaseBet_1(b[b.length - 1]); this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.autoSpin = null != a && a.getId_0() == GT1354.prototype.STARTSPIN) : this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); this.getSlotGame_0().reduceAutoPlayCounter_0(); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_READY); (!this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0()) || (this.getSlotState_0().isAutoPlaying_0() && this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && this.getSlotState_0().getCasinoAutoPlayInterface_0().showAutoPlayStopInfo_4(!0, !1, !1, !1), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), (this.autoSpin = !1)); this.getSlotGame_0().checkAPSLossLimit_0(); this.getSlotGame_0().checkAPSWinLimit_1(!1); this.acceptInput = !0; this.getConnection_0().setBlocking_1(!0); this.onEnterChangeGuiState_0(); this.getSlotState_0().isAutoPlaying_0() || this.autoSpin ? this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT885(GT1354.prototype.STARTSPIN, GT885.prototype.TRIGGER_AUTOPLAY, !1)) : this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLE)); this.getSlotState_0().isFreeRoundsMode_0() && this.getSlotState_0().getFreeRoundsPlayed_0() == this.getSlotState_0().getFreeRoundsWon_0() && this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.REQUEST_LEAVEGAME)); }, newGameSituation_0: function () { this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), (this.autoSpin = !1)); this.changeGuiState_1(GT729.prototype.ID); }, notifySessionTicketsUpdated_0: function () { this.newGameSituation_0(); this.acceptInput = !0; }, canAcceptInput_0: function () { return this.acceptInput; }, notifyInputEvent_1: function (a) { if ((!this.getSlotState_0().isFreeRoundsMode_0() || this.getSlotState_0().getFreeRoundsPlayed_0() != this.getSlotState_0().getFreeRoundsWon_0()) && this.acceptInput) if (a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0()) this.handleChangeStateWhenSpinIsTriggered_0(); else if ( a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0() ) this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0(); else if (a.getId_0() == GT1354.prototype.AUTOSTOP) this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT), this.changeGuiState_1(GT729.prototype.ID); else if (a.getId_0() == GT1354.prototype.GAMEMODE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()) { var b = a.getGameMode_0(); a = a.isSilentChange_0(); b != this.getSlotState_0().getGameMode_0() && (this.getSlotGame_0().setGameMode_1(b), a ? this.changeGuiState_1(GT729.prototype.ID) : this.handleChangeStateBetOrLinesChanged_0()); } else a.getId_0() == GT1354.prototype.NUMLINES && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((b = a.getNumberOfLines_0()), (a = a.isSilentChange_0()), b != this.getSlotState_0().getNumberOfLines_0() && (this.getSlotGame_0().setNumberOfLines_1(b), a ? this.changeGuiState_1(GT729.prototype.ID) : this.handleChangeStateBetOrLinesChanged_0())) : a.getId_0() == GT1354.prototype.BASEBET && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((b = a.getBetPerLine_0()), (a = a.isSilentChange_0()), b != this.getSlotState_0().getBaseBet_0() && (this.getSlotGame_0().setBaseBet_1(b), a ? this.changeGuiState_1(GT729.prototype.ID) : this.handleChangeStateBetOrLinesChanged_0())) : a.getId_0() == GT1354.prototype.PAYOUT ? ((this.acceptInput = !1), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYOUT, GT981.prototype.VALUE_PAYOUT_OK, !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)) : a.getId_0() == GT1354.prototype.GAME_SELECT ? ((this.acceptInput = !1), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMESELECT, "", !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)) : a.getId_0() == GT984.prototype.ID ? this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a) : GT438.prototype.notifyInputEvent_1.call(this, a); }, notifyGuiStateFinished_1: function (a) { a == GT729.prototype.ID && this.getConnection_0().setBlocking_1(!1); }, handleChangeStateWhenSpinIsTriggered_0: function () { this.changeState_1(GT733.prototype.ID); }, handleChangeStateBetOrLinesChanged_0: function () { this.changeState_1(GT675.prototype.ID); }, toString: function () { return "ClientStateBeforeSpin (" + this.getId_0() + ")"; }, }, "GT625", [] ); GT625.prototype.ID = GT788.prototype.generateID_0(); var GT675 = GT491.extend( { initialConstructor_0: function () { GT491.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT491.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT675.prototype.ID; }, enter_1: function (a) { this.changeGuiState_1(GT777.prototype.ID); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () { this.changeGuiState_1(GT777.prototype.ID); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.PAYTABLE ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT ? this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a) : a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED ? this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a) : GT491.prototype.notifyInputEvent_1.call(this, a); }, handleChangeStateForPaytable_0: function () { this.changeState_1(GT734.prototype.ID); }, notifyGuiStateFinished_1: function (a) {}, toString: function () { return "ClientStateChangeBet (" + this.getId_0() + ")"; }, }, "GT675", [] ); GT675.prototype.ID = GT788.prototype.generateID_0(); var GT246 = GT1147.extend( { initialConstructor_0: function () { this.e = null; this.updateGameOverlayDialogsOnEnter = !1; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.e = null; this.updateGameOverlayDialogsOnEnter = !1; GT1147.prototype.initialConstructor_1.call(this, a); this.updateGameOverlayDialogsOnEnter = b; }, initialConstructor_1: function (a) { GT246.prototype.initialConstructor_2.call(this, a, !0); }, getId_0: function () { return GT246.prototype.ID; }, enter_1: function (a) { this.e = a; !this.getSlotState_0().getCasinoState_0().hasOpenRound_0() || (this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0()) ? (this.getSlotGame_0().isStopAutoplayAtRoundFinish_0() && (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT), this.getSlotGame_0().setStopAutoplayAtRoundFinish_1(!1)), this.updateGameOverlayDialogsOnEnter && this.getSlotGame_0().updateGameOverlayDialogs_0(), null != this.getSlotState_0() && this.handleChangeStates_0()) : this.getConnection_0().setWaitingForServerResponse_1(!0); }, newGameSituation_0: function () {}, notifyInputEvent_1: function (a) {}, notifyGuiStateFinished_1: function (a) {}, notifyRoundFinished_0: function () { this.getConnection_0().setWaitingForServerResponse_1(!1); this.getSlotGame_0().isStopAutoplayAtRoundFinish_0() && (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT), this.getSlotGame_0().setStopAutoplayAtRoundFinish_1(!1)); this.updateGameOverlayDialogsOnEnter && this.getSlotGame_0().updateGameOverlayDialogs_0(); this.handleChangeStates_0(); }, handleChangeStates_0: function () { var a = this.getSlotState_0().getFreeSpinState_0(); a.isFreeSpinsRunning_0() ? a.isBeforeFirstFreeSpin_0() ? this.handleChangeStatetoClientStateFreeGamesStart_1(this.e) : a.hasFreeSpinsWon_0() && this.getSlotState_0().getServerState_0() != GT1649.prototype.SERVERSTATE_BEFORESPIN ? this.handleChangeStatetoClientStateFreeGamesMore_1(this.e) : a.isAtLastFreeSpin_0() ? 0 < this.getSlotState_0().getSuperGameState_0().getBalance_0() && this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_SUPERGAME ? this.handleChangeStatetoClientStateSuperGames_1(this.e) : this.handleChangeStatetoClientStateFreeGamesEnd_1(this.e) : this.handleChangeStatetoClientStateFreeGamesBeforeSpin_1(this.e) : 0 < this.getSlotState_0().getSuperGameState_0().getBalance_0() ? this.handleChangeStatetoClientStateSuperGames_1(this.e) : this.handleChangeStatetoClientStateBeforeSpin_1(this.e); }, handleChangeStatetoClientStateFreeGamesStart_1: function (a) { this.changeState_2(GT428.prototype.ID, a); }, handleChangeStatetoClientStateFreeGamesMore_1: function (a) { this.changeState_2(GT480.prototype.ID, a); }, handleChangeStatetoClientStateFreeGamesBeforeSpin_1: function (a) { this.changeState_2(GT276.prototype.ID, a); }, handleChangeStatetoClientStateFreeGamesEnd_1: function (a) { this.changeState_2(GT524.prototype.ID, a); }, handleChangeStatetoClientStateSpinning_1: function (a) { this.changeState_2(GT733.prototype.ID, a); }, handleChangeStatetoClientStateBeforeSpin_1: function (a) { this.changeState_2(GT625.prototype.ID, a); }, handleChangeStatetoClientStateSuperGames_1: function (a) { this.changeState_2(GT623.prototype.ID, a); }, toString: function () { return "ClientStateCheckingForOpenRound (" + this.getId_0() + ")"; }, }, "GT246", [] ); GT246.prototype.ID = GT788.prototype.generateID_0(); var GT241 = GT1147.extend( { initialConstructor_0: function () { GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT241.prototype.ID; }, enter_1: function (a) {}, newGameSituation_0: function () {}, notifyInputEvent_1: function (a) {}, notifyGuiStateFinished_1: function (a) {}, toString: function () { return "ClientStateCollectVisualization (" + this.getId_0() + ")"; }, }, "GT241", [] ); GT241.prototype.ID = GT788.prototype.generateID_0(); var GT624 = GT539.extend( { initialConstructor_0: function () { this.acceptInput = !1; this.handpayEvent = this.startEvent = null; GT539.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.acceptInput = !1; this.handpayEvent = this.startEvent = null; GT539.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT624.prototype.ID; }, enter_1: function (a) { this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN || this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFORESPIN ? this.handleChangeStateAfterCollect_0() : ((this.acceptInput = !1), (this.startEvent = a), (this.handpayEvent = null), !this.getSlotState_0().isWaitingForCollect_0() || (this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0()) || !this.getSlotState_0().getCasinoState_0().isActivePlayer_0() ? this.handleEnter_1(a) : ((a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_WAITFORCOLLECT)), this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() && (0 == this.getSlotState_0().getGambleState_0().getNumberOfWins_0() || this.getSlotState_0().isMaximumRoundWinExceeded_0()) ? a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_SUMWINNINGS, new Double(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0())) : a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_SUMWINNINGS, new Double(this.getSlotState_0().getWinSum_1(!0))), GT1242.prototype.fireWrapperStateEvent_2(this.getSlotGame_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()))); }, handleEnter_1: function (a) { this.acceptInput = !0; this.onEnterHandleStartEvent_1(a); if (this.getSlotState_0().getCasinoState_0().isActivePlayer_0()) this.onEnterSendRequest_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAID, "" + this.getSlotState_0().getWinSum_1(!0)); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); }, onEnterHandleStartEvent_1: function (a) { null != a && a.getId_0() != GT1354.prototype.COLLECT ? this.setStartEvent_1(a) : this.setStartEvent_1(null); null == a && (this.onEnterChangeGuiState_0(), this.getConnection_0().setBlocking_1(!0)); }, onEnterChangeGuiState_0: function () { this.changeGuiState_1(GT731.prototype.ID); }, onEnterSendRequest_0: function () { null == this.handpayEvent ? this.getConnection_0().sendCommand_1(new GT1152()) : this.getConnection_0().sendCommand_1(new GT1152(0, this.handpayEvent.getTransactionType_0())); }, newGameSituation_0: function () { this.getConnection_0().setBlocking_1(!0); this.getConnection_0().setWaitingForServerResponse_1(!1); this.changeGuiState_1(GT476.prototype.ID); }, notifyInputEvent_1: function (a) { this.acceptInput ? a.getId_0() == GT1354.prototype.COLLECT ? ((this.acceptInput = !1), this.requestFinishGuiState_0()) : a.getId_0() == GT1354.prototype.STARTSPIN ? ((this.acceptInput = !1), this.setStartEvent_1(new GT1354(GT1354.prototype.STARTSPIN)), this.requestFinishGuiState_0()) : a.getId_0() == GT1354.prototype.AUTOSTOP && ((this.acceptInput = !1), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT)) : a.getId_0() == GT1354.prototype.COLLECT_CONFIRM ? ((this.handpayEvent = null), this.handleEnter_1(this.startEvent)) : a.getId_0() == GT1354.prototype.COLLECT_HANDPAY && ((this.handpayEvent = a), null == this.startEvent && (this.startEvent = new GT1354(GT1354.prototype.COLLECT)), this.handleEnter_1(this.startEvent)); }, notifyGuiStateFinished_1: function (a) { a == GT731.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), this.getConnection_0().setWaitingForServerResponse_1(!0)) : a == GT476.prototype.ID && (this.getConnection_0().setBlocking_1(!1), this.handleChangeStateAfterCollect_0()); }, toString: function () { return "ClientStateCollectWin (" + this.getId_0() + ")"; }, }, "GT624", [] ); GT624.prototype.ID = GT788.prototype.generateID_0(); var GT276 = GT438.extend( { initialConstructor_0: function () { GT438.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT438.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT276.prototype.ID; }, enter_1: function (a) { var b = this.getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0() - this.getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0(), b = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEBETS, "" + b); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(b); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getSlotGame_0().reduceAutoPlayCounter_0(); this.getSlotGame_0().checkAPSWinLimit_1(!1); this.changeGuiState_1(GT729.prototype.ID); this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && !this.getSlotState_0().isAutoPlaying_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && (this.getSlotState_0().getCasinoState_0().isInReplayMode_0() || this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT)); this.getSlotState_0().isAutoPlaying_0() || (null != a && a.getId_0() == GT1354.prototype.STARTSPIN) ? this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN)) : this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLEFEATURE)); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? this.handleChangeStateWhenSpinIsTriggered_0() : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : GT438.prototype.notifyInputEvent_1.call(this, a); }, notifyGuiStateFinished_1: function (a) {}, handleChangeStateWhenSpinIsTriggered_0: function () { this.changeState_1(GT321.prototype.ID); }, toString: function () { return "ClientStateFreeGamesBeforeSpin (" + this.getId_0() + ")"; }, }, "GT276", [] ); GT276.prototype.ID = GT788.prototype.generateID_0(); var GT524 = GT1147.extend( { initialConstructor_0: function () { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT524.prototype.ID; }, enter_1: function (a) { a = this.getSlotGame_0().getSlotState_0().getBaseBets_0(); this.getSlotState_0().getBaseBet_0() > a[a.length - 1] && this.getSlotGame_0().setBaseBet_1(a[a.length - 1]); this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; this.getConnection_0().setBlocking_1(!0); ((this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && this.getSlotState_0().getFreeSpinState_0().isStopAutoplayAfterFreeGames_0()) || (this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || !this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0() || this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0()) && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FEATURE_SCREEN); this.getSlotGame_0().checkAPSWinLimit_1(!1); this.onEnterChangeGuiState_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEBETS, "0"); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLE)); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_READY); this.isFirstStateAfterInit_0() && this.requestFinishGuiState_0(); }, onEnterChangeGuiState_0: function () { this.changeGuiState_3(GT621.prototype.ID, null, this.isFirstStateAfterInit_0()); }, newGameSituation_0: function () { this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); this.changeGuiState_1(GT729.prototype.ID); }, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED ? instanceOf(a, GT426) && a.getModalDialogId_0() != a.getReplayDialogId_0() && a.getModalDialogId_0() != a.getErrorDialogId_0() && (this.getSlotGame_0().getGuiStateMachine_0().getCurrentStateId_0() == GT621.prototype.ID ? this.requestFinishGuiState_0() : this.changeGuiState_1(GT729.prototype.ID)) : a.getId_0() == GT1354.prototype.PAYOUT_FINISHED && this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a); if ( a.getId_0() == GT1354.prototype.STARTSPIN || a.getId_0() == GT1354.prototype.AUTOPLAY || a.getId_0() == GT1354.prototype.AUTOSTOP || a.getId_0() == GT1354.prototype.PAYTABLE || a.getId_0() == GT1354.prototype.PAYTABLE_NEXT || a.getId_0() == GT1354.prototype.GAMEMODE || a.getId_0() == GT1354.prototype.NUMLINES || a.getId_0() == GT1354.prototype.BASEBET || a.getId_0() == GT1354.prototype.PAYOUT || a.getId_0() == GT1354.prototype.GAME_SELECT ) this.hasFinished ? this.handleInputEvent_1(a) : ((this.lastSlotEvent = a), this.requestFinishGuiState_0()); }, notifyGuiStateFinished_1: function (a) { a == GT621.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), (this.hasFinished = !0), this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED) : (!this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() || (this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && !this.getSlotState_0().getFreeSpinState_0().isStopAutoplayAfterFreeGames_0())) && this.getSlotState_0().isAutoPlaying_0() && null == this.lastSlotEvent && (this.getSlotGame_0().reduceAutoPlayCounter_0(), this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN))), null != this.lastSlotEvent && this.handleInputEvent_1(this.lastSlotEvent)) : a == GT729.prototype.ID && null != this.paytableNext && (this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(this.paytableNext), (this.paytableNext = null)); }, handleInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? this.handleChangeStateWhenSpinIsTriggered_0() : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.getSlotState_0().hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && this.getSlotState_0().isAutoplayNotPreventedByAutoplayMeter_0() ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.AUTOSTOP ? this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT) : a.getId_0() == GT1354.prototype.PAYTABLE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.changeGuiState_1(GT729.prototype.ID), (this.paytableNext = a)) : a.getId_0() == GT1354.prototype.GAMEMODE && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((a = a.getGameMode_0()), a != this.getSlotState_0().getGameMode_0() && (this.getSlotGame_0().setGameMode_1(a), this.handleChangeStateBetOrLinesChanged_0())) : a.getId_0() == GT1354.prototype.NUMLINES && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((a = a.getNumberOfLines_0()), a != this.getSlotState_0().getNumberOfLines_0() && (this.getSlotGame_0().setNumberOfLines_1(a), this.handleChangeStateBetOrLinesChanged_0())) : a.getId_0() == GT1354.prototype.BASEBET && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? ((a = a.getBetPerLine_0()), a != this.getSlotState_0().getBaseBet_0() && (this.getSlotGame_0().setBaseBet_1(a), this.handleChangeStateBetOrLinesChanged_0())) : a.getId_0() == GT1354.prototype.PAYOUT ? ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAYOUT, GT981.prototype.VALUE_PAYOUT_OK, !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)) : a.getId_0() == GT1354.prototype.GAME_SELECT && ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMESELECT, "", !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); }, handleChangeStateWhenSpinIsTriggered_0: function () { this.changeState_1(GT733.prototype.ID); }, handleChangeStateBetOrLinesChanged_0: function () { this.changeState_1(GT675.prototype.ID); }, handleChangeStateForPaytable_0: function () { this.changeState_1(GT734.prototype.ID); }, toString: function () { return "ClientStateFreeGamesEnd (" + this.getId_0() + ")"; }, }, "GT524", [] ); GT524.prototype.ID = GT788.prototype.generateID_0(); var GT480 = GT1147.extend( { initialConstructor_0: function () { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT480.prototype.ID; }, enter_1: function (a) { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; this.getConnection_0().setBlocking_1(!0); this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() ? this.getSlotState_0().isAutoPlaying_0() || this.getSlotState_0().getCasinoState_0().isInReplayMode_0() || this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT) : this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FEATURE_SCREEN); this.getSlotGame_0().checkAPSWinLimit_1(!1); this.onEnterChangeGuiState_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEGAMESMORE, "" + this.isFirstStateAfterInit_0(), !0); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLEFEATURE)); this.isFirstStateAfterInit_0() && this.requestFinishGuiState_0(); }, onEnterChangeGuiState_0: function () { this.changeGuiState_3(GT573.prototype.ID, null, this.isFirstStateAfterInit_0()); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) { (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED) && instanceOf(a, GT426) && a.getModalDialogId_0() != a.getReplayDialogId_0() && (this.getSlotGame_0().getGuiStateMachine_0().getCurrentStateId_0() == GT573.prototype.ID ? this.requestFinishGuiState_0() : this.changeGuiState_1(GT729.prototype.ID)); if (a.getId_0() == GT1354.prototype.STARTSPIN || a.getId_0() == GT1354.prototype.AUTOPLAY || a.getId_0() == GT1354.prototype.PAYTABLE || a.getId_0() == GT1354.prototype.PAYTABLE_NEXT) this.hasFinished ? this.handleInputEvent_1(a) : ((this.lastSlotEvent = a), this.requestFinishGuiState_0()); }, handleInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? this.handleChangeStateWhenSpinIsTriggered_0() : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.PAYTABLE ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT && (this.changeGuiState_1(GT729.prototype.ID), (this.paytableNext = a)); }, clearLastSlotEvent_0: function () { this.lastSlotEvent = null; }, handleChangeStateWhenSpinIsTriggered_0: function () { this.changeState_1(GT321.prototype.ID); }, handleChangeStateForPaytable_0: function () { this.changeState_1(GT734.prototype.ID); }, notifyGuiStateFinished_1: function (a) { a == GT573.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), (this.hasFinished = !0), null != this.lastSlotEvent && this.handleInputEvent_1(this.lastSlotEvent), (this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || !this.getSlotState_0().isAutoPlaying_0() || (this.getSlotGame_0().reduceAutoPlayCounter_0(), this.getSlotState_0().isAutoPlaying_0() && (null == this.lastSlotEvent || (this.lastSlotEvent.getId_0() != GT1354.prototype.AUTOPLAY && this.lastSlotEvent.getId_0() != GT1354.prototype.STARTSPIN)) && this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN)))) : a == GT729.prototype.ID && null != this.paytableNext && (this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(this.paytableNext), (this.paytableNext = null), this.getSlotState_0().isAutoPlaying_0() && this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN))); }, toString: function () { return "ClientStateFreeGamesMore (" + this.getId_0() + ")"; }, }, "GT480", [] ); GT480.prototype.ID = GT788.prototype.generateID_0(); var GT321 = GT733.extend( { initialConstructor_0: function () { GT733.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT733.prototype.initialConstructor_1.call(this, a); }, setIlluminatorModeForWrapper_0: function () { this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_REELSPINFEATURE)); }, getId_0: function () { return GT321.prototype.ID; }, onEnterSendRequest_0: function () { this.getConnection_0().sendCommand_1(new GT1151()); }, handleChangeStateAfterReelsHaveStopped_0: function () { 0 < this.getSlotState_0().getSuperGameState_0().getBalance_0() && this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_SUPERGAME ? this.changeState_1(GT623.prototype.ID) : GT733.prototype.handleChangeStateAfterReelsHaveStopped_0.call(this); }, toString: function () { return "ClientStateFreeGamesSpinning (" + this.getId_0() + ")"; }, }, "GT321", [] ); GT321.prototype.ID = GT788.prototype.generateID_0(); var GT428 = GT1147.extend( { initialConstructor_0: function () { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT428.prototype.ID; }, enter_1: function (a) { this.hasFinished = !1; this.paytableNext = this.lastSlotEvent = null; this.getConnection_0().setBlocking_1(!0); ((this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0()) && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FEATURE_SCREEN); this.getSlotState_0().isAutoPlaying_0() && this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED); this.getSlotGame_0().checkAPSWinLimit_1(!1); this.onEnterChangeGuiState_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEBETS, "" + this.getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0()); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEGAMESSTART, "" + this.isFirstStateAfterInit_0(), !0); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_BONUSGAME); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_IDLEFEATURE)); }, onEnterChangeGuiState_0: function () { this.changeGuiState_3(GT519.prototype.ID, null, this.isFirstStateAfterInit_0()); }, newGameSituation_0: function () {}, notifySessionTicketsUpdated_0: function () {}, notifyGuiStateFinished_1: function (a) { a == GT519.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), (this.hasFinished = !0), null != this.lastSlotEvent ? this.handleInputEvent_1(this.lastSlotEvent) : (this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() && !this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) || !this.getSlotState_0().isAutoPlaying_0() || (this.getSlotGame_0().reduceAutoPlayCounter_0(), this.getSlotState_0().isAutoPlaying_0() && this.notifyInputEvent_1(new GT1354(GT1354.prototype.STARTSPIN)))) : a == GT729.prototype.ID && null != this.paytableNext && (this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(this.paytableNext), (this.paytableNext = null)); }, notifyInputEvent_1: function (a) { (a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED) && instanceOf(a, GT426) && (this.getSlotGame_0().getGuiStateMachine_0().getCurrentStateId_0() == GT519.prototype.ID ? this.requestFinishGuiState_0() : this.changeGuiState_1(GT729.prototype.ID)); if (a.getId_0() == GT1354.prototype.STARTSPIN || a.getId_0() == GT1354.prototype.AUTOPLAY || a.getId_0() == GT1354.prototype.PAYTABLE || a.getId_0() == GT1354.prototype.PAYTABLE_NEXT) this.hasFinished ? this.handleInputEvent_1(a) : ((this.lastSlotEvent = a), this.requestFinishGuiState_0()); }, handleInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.STARTSPIN && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.getSlotState_0().getFreeSpinState_0().setStopAutoplayAfterFreeGames_1(!this.getSlotState_0().isAutoPlaying_0()), this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && (this.getSlotState_0().getCasinoState_0().isInReplayMode_0() || this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT)), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.AUTOPLAY && this.getSlotState_0().getCasinoState_0().isActionAllowed_0() ? (this.getSlotState_0().getFreeSpinState_0().setStopAutoplayAfterFreeGames_1(!1), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getSlotGame_0().reduceAutoPlayCounter_0(), this.handleChangeStateWhenSpinIsTriggered_0()) : a.getId_0() == GT1354.prototype.PAYTABLE ? this.handleChangeStateForPaytable_0() : a.getId_0() == GT1354.prototype.PAYTABLE_NEXT && (this.changeGuiState_1(GT729.prototype.ID), (this.paytableNext = a)); }, handleChangeStateWhenSpinIsTriggered_0: function () { this.changeState_1(GT321.prototype.ID); }, handleChangeStateForPaytable_0: function () { this.changeState_1(GT734.prototype.ID); }, toString: function () { return "ClientStateFreeGamesStart (" + this.getId_0() + ")"; }, }, "GT428", [] ); GT428.prototype.ID = GT788.prototype.generateID_0(); var GT842 = GT539.extend( { initialConstructor_0: function () { this.blockInput = this.requestGamble = this.collecting = this.collected = !1; GT539.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.blockInput = this.requestGamble = this.collecting = this.collected = !1; GT539.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT842.prototype.ID; }, enter_1: function (a) { this.requestGamble = this.collecting = this.collected = !1; this.blockInput = !0; this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? ((this.requestGamble = !0), this.changeGuiState_1(GT237.prototype.ID), this.getConnection_0().setWaitingForServerResponse_1(!0), this.getConnection_0().sendCommand_1(new GT992())) : (0 != this.getSlotState_0().getGambleState_0().getNumberOfWins_0() || this.isFirstStateAfterInit_0() ? ((this.blockInput = !1), this.changeGuiState_3(GT422.prototype.ID, null, this.isFirstStateAfterInit_0()), this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() ? this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE) : this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MAX_WIN_REACHED)) : (this.getConnection_0().setBlocking_1(!0), this.changeGuiState_1(GT318.prototype.ID), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEIN)), this.buildAndFireWrapperGambleStepsEvent_0()); this.setIlluminatorModeForWrapperGamble_0(); }, setIlluminatorModeForWrapperGamble_0: function () { this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() ? this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERFEATURE)) : this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLER)); }, setIlluminatorModeForWrapperGambleWin_0: function () { this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() ? this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERWINFEATURE)) : this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_ILLUMINATORMODE, GT981.prototype.VALUE_ILLUMINATORMODE_GAMBLERWIN)); }, newGameSituation_0: function () { this.getConnection_0().setBlocking_1(!0); this.getConnection_0().setWaitingForServerResponse_1(!1); if (this.requestGamble) GT1650.prototype.assertExp_2(this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_GAMBLE, "Wrong game situation"), (this.requestGamble = !1), this.changeGuiState_1(GT318.prototype.ID), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEIN), this.buildAndFireWrapperGambleStepsEvent_0(); else if (this.collected) this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEOUT), this.changeGuiState_1(GT317.prototype.ID); else { var a = this.getSlotState_0().getServerState_0(); a == GT1649.prototype.SERVERSTATE_BEFORESPIN || a == GT1649.prototype.SERVERSTATE_BEFOREFREESPIN || a == GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION ? this.changeGuiState_1(GT520.prototype.ID) : a == GT1649.prototype.SERVERSTATE_GAMBLE && (this.changeGuiState_1(GT574.prototype.ID), this.setIlluminatorModeForWrapperGambleWin_0(), this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_WIN), this.notifyWrapperUncollectedWin_1(this.getSlotState_0().getWinSum_1(!0))); this.buildAndFireWrapperGambleEvent_1(this.getSlotState_0().getWinSum_1(!0)); this.buildAndFireWrapperGambleStepsEvent_0(); } }, buildAndFireWrapperGambleStepsEvent_0: function () { var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_GAMBLESTEPS); this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && (a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLEAMOUNT, new Double(this.getSlotState_0().getWinSum_1(!0))), a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLEWIN, new Double(this.getSlotState_0().getGambleState_0().getPossibleGambleStep_1(this.getSlotState_0().getGambleState_0().getNumberOfWins_0())))); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_POSSIBLEGAMBLESTEPS, new Double(this.getSlotState_0().getGambleState_0().getNumberOfPossibleGambleSteps_0())); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_NUMBEROFGAMBLEWINS, new Double(this.getSlotState_0().getGambleState_0().getNumberOfWins_0())); null != this.getSlotState_0().getGambleState_0().getHistory_0() ? a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_GAMBLEHISTORY, this.getSlotState_0().getGambleState_0().getHistory_0()) : a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_GAMBLEHISTORY, ""); GT1242.prototype.fireWrapperStateEvent_2(this.getSlotGame_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, buildAndFireWrapperGambleEvent_1: function (a) { var b = this.getSlotGame_0().getGameWrapperInterfaceCaller_0(); if (null != b) { if (0 < a) { var d = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_GAMBLEWIN); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(a)); } else d = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_GAMBLELOSS); b.fireStateEvent_1(d.getMainTable_0()); } }, notifyWrapperUncollectedWin_1: function (a) { 0 >= a || ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_UNCOLLECTEDWIN, "" + a, !0)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); }, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) { a.getId_0() == GT1354.prototype.AUTOSTOP && this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT); this.getSlotGame_0().getGuiStateMachine_0().getCurrentStateId_0() != GT422.prototype.ID || (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a); if (this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.blockInput) { if ( !this.collecting && this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && (a.getId_0() == GT1354.prototype.GAMBLE_BLACK || a.getId_0() == GT1354.prototype.GAMBLE || a.getId_0() == GT1354.prototype.GAMBLE_RED) ) if (((this.blockInput = !0), this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a), this.getConnection_0().setWaitingForServerResponse_1(!0), instanceOf(a, GT1037))) { var b = a.getUserChoice_0(); this.getConnection_0().sendCommand_1(new GT1255(b)); } else a.getId_0() == GT1354.prototype.GAMBLE_BLACK || a.getId_0() == GT1354.prototype.GAMBLE ? this.getConnection_0().sendCommand_1(new GT1255(GT1255.prototype.BLACK)) : this.getConnection_0().sendCommand_1(new GT1255(GT1255.prototype.RED)); a.getId_0() == GT1354.prototype.HALF_COLLECT ? ((this.blockInput = !0), this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a), this.getConnection_0().setWaitingForServerResponse_1(!0), this.getConnection_0().sendCommand_1(new GT991())) : a.getId_0() == GT1354.prototype.COLLECT ? this.getSlotState_0().isWaitingForCollect_0() ? (this.getConnection_0().setBlocking_1(!0), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEOUT), this.changeGuiState_1(GT317.prototype.ID)) : this.collected ? this.requestFinishGuiState_0() : this.collecting ? this.requestFinishGuiState_0() : (this.getConnection_0().setBlocking_1(!0), this.getConnection_0().setWaitingForServerResponse_1(!0), this.onInputEventNotificationSendRequest_1(a), this.changeGuiState_1(GT731.prototype.ID), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAID, "" + this.getSlotState_0().getWinSum_1(!0))), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a), (this.collecting = !0)) : a.getId_0() == GT1354.prototype.AUTOPLAY && (this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOPLAY_DEFAULT), this.getConnection_0().setBlocking_1(!0), this.getSlotState_0().isWaitingForCollect_0() ? (this.getConnection_0().setBlocking_1(!0), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEOUT), this.changeGuiState_1(GT317.prototype.ID)) : (this.onInputEventNotificationSendRequest_1(a), this.changeGuiState_1(GT731.prototype.ID), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_PAID, "" + this.getSlotState_0().getWinSum_1(!0))), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a))); } }, onInputEventNotificationSendRequest_1: function (a) { this.getConnection_0().sendCommand_1(new GT1152()); }, notifyGuiStateFinished_1: function (a) { a == GT318.prototype.ID ? ((this.blockInput = !1), this.getConnection_0().setBlocking_1(!1), this.changeGuiState_1(GT422.prototype.ID), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE)) : a == GT317.prototype.ID ? this.getSlotState_0().isWaitingForCollect_0() ? (this.getConnection_0().setBlocking_1(!1), this.changeState_1(GT624.prototype.ID)) : this.changeGuiState_1(GT476.prototype.ID) : a == GT476.prototype.ID ? (this.getConnection_0().setBlocking_1(!1), this.handleChangeStateAfterCollect_0()) : a == GT731.prototype.ID ? ((this.collecting = !1), (this.collected = !0), this.getConnection_0().setBlocking_1(!1)) : a == GT520.prototype.ID ? ((this.blockInput = !1), this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MOVEOUT), this.changeGuiState_1(GT317.prototype.ID)) : a == GT574.prototype.ID && ((this.blockInput = !1), this.getConnection_0().setBlocking_1(!1), this.changeGuiState_1(GT422.prototype.ID), this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() ? this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE) : this.setGameStateForWrapper_1(GT981.prototype.VALUE_GAMEMODE_GAMBLE_MAX_WIN_REACHED), this.setIlluminatorModeForWrapperGamble_0()); }, toString: function () { return "ClientStateGamble (" + this.getId_0() + ")"; }, }, "GT842", [] ); GT842.prototype.ID = GT788.prototype.generateID_0(); var GT953 = GT1147.extend( { initialConstructor_0: function () { GT1147.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1147.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT953.prototype.ID; }, enter_1: function (a) { GT953.prototype.initDone = !1; }, changeClientState_2: function (a, b) { switch (a) { case GT1649.prototype.SERVERSTATE_BEFOREFREESPIN: (b.isBeforeFirstFreeSpin_0() && !this.getSlotState_0().isPaytableOpen_0()) || this.changeGuiState_3(GT519.prototype.ID, null, !0); this.getSlotState_0().isPaytableOpen_0() ? this.changeState_1(GT734.prototype.ID) : b.isBeforeFirstFreeSpin_0() ? this.changeState_1(GT428.prototype.ID) : b.hasFreeSpinsWon_0() ? this.changeState_1(GT480.prototype.ID) : this.changeState_1(GT276.prototype.ID); break; case GT1649.prototype.SERVERSTATE_BEFOREGAMBLE: b.isFreeSpinsRunning_0() && !b.isBeforeFirstFreeSpin_0() && this.changeGuiState_3(GT519.prototype.ID, null, !0); this.getSlotState_0().isFastSpinEnabled_0() && !this.getSlotState_0().getCasinoState_0().isInReplayMode_0() ? this.changeState_2(GT624.prototype.ID, new GT1354(GT1354.prototype.COLLECT)) : this.changeState_1(GT523.prototype.ID); break; case GT1649.prototype.SERVERSTATE_BEFORESPIN: this.getSlotState_0().isPaytableOpen_0() ? this.changeState_1(GT734.prototype.ID) : b.isAtLastFreeSpin_0() ? this.changeState_1(GT524.prototype.ID) : this.changeState_1(GT625.prototype.ID); break; case GT1649.prototype.SERVERSTATE_GAMBLE: b.isFreeSpinsRunning_0() && !b.isBeforeFirstFreeSpin_0() && this.changeGuiState_3(GT519.prototype.ID, null, !0); this.changeState_1(GT842.prototype.ID); break; case GT1649.prototype.SERVERSTATE_SUPERGAME: this.changeState_1(GT623.prototype.ID); break; case GT1649.prototype.SERVERSTATE_UNDEFINED: break; case GT1649.prototype.SERVERSTATE_WINVISUALIZATION: this.changeState_1(GT178.prototype.ID); break; case GT1649.prototype.SERVERSTATE_COLLECTVISUALIZATION: this.changeState_1(GT241.prototype.ID); break; default: GT953.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Default case occurred for server state: " + a); } }, newGameSituation_0: function () { !GT953.prototype.initDone && 0 < this.getSlotState_0().getDefinition_0().getNumberOfReelSets_0() && null != this.getSlotState_0().getReelPositions_0() && (this.changeGuiState_1(GT1042.prototype.ID), this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_FORCED), (GT953.prototype.initDone = !0)); if (this.getSlotState_0().getCasinoState_0().hasOpenSession_0()) { this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && 0 < this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0() && 0 >= this.getSlotGame_0().getSlotState_0().getAutoPlayCounter_0() && (0 >= this.getSlotGame_0().getSlotState_0().getAutoPlayLimit_0() ? this.getSlotGame_0().setAutoPlayLimit_1(this.getSlotState_0().getDefinition_0().getAutoPlayCountDefaultValue_0()) : this.getSlotGame_0().setAutoPlayLimit_1(this.getSlotGame_0().getSlotState_0().getAutoPlayLimit_0())); this.getSlotState_0().getBaseBet_0() < this.getSlotState_0().getMinPossibleBet_0() && this.getSlotGame_0().setBaseBet_1(this.getSlotState_0().getBaseBets_0()[0]); this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && 0 >= this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0() && (this.getSlotState_0().getDefinition_0().setAutoPlayCountMax_1(100), this.getSlotGame_0().setAutoPlayLimit_1(100)); var a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_LINES, "" + this.getSlotState_0().getNumberOfLines_0()); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_BET, "" + this.getSlotState_0().getTotalBet_0()); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = this.getSlotState_0().getDefinition_0().getPlayLines_0(); null != a && 1 <= a.size_0() && ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_MAX_LINES, "" + a.get_1(a.size_0() - 1))), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); var a = this.getSlotState_0().getDefinition_0().getBetMultipliers_0(), b = this.getSlotState_0().getDefinition_0().getBaseBets_0(); null != a && 1 <= a.size_0() && null != b && 1 <= b.size_0() && ((a = a.get_1(a.size_0() - 1) * b.get_1(b.size_0() - 1)), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_MAXBET_ON_MAXLINES, "" + a)), this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a)); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.JACKPOT_FACTOR_UPDATED)); this.getSlotGame_0().updateGameOverlayDialogs_0(); this.getSlotGame_0().setBaseBetAfterDisconnect_0(); this.changeClientState_2(this.getSlotState_0().getServerState_0(), this.getSlotState_0().getFreeSpinState_0()); } }, notifySessionTicketsUpdated_0: function () {}, notifyInputEvent_1: function (a) {}, notifyGuiStateFinished_1: function (a) {}, toString: function () { return "ClientStateInit (" + this.getId_0() + ")"; }, }, "GT953", [] ); GT953.prototype.ID = GT788.prototype.generateID_0(); GT953.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT953.prototype.initDone = !1; var GT589 = Class.extend( { initialConstructor_0: function () { this.slotState = this.slotEventManager = null; this.menuEventCounter = 0; }, handleEvent_1: function (a) { this.slotEventManager = GT514.prototype.getInstance_0().getSlotGui_0().getSlotEventManager_0(); this.slotState = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(); var b = this.slotState.getCasinoState_0().isSpectator_0(); GT1650.prototype.assertExp_2(null != a, "ConsoleEvent cannot be null."); GT1284.prototype.STORE_CONSOLE_POSITIONS_EVENT == a.getId_0() ? (GT589.prototype.Log.t_1("UI Neon: storing positions. No further action for this event."), (a = a.getParameter_1("param1")), GT514.prototype.getInstance_0().getApplet_0().storeParameter_2(GT642.prototype.CONSOLE_NEON_POSITIONS, a)) : b && !this.isOverlayEvent_1(a) ? GT589.prototype.Log.v_1("UI Neon: action omitted in spectator mode.") : ((b = 0), GT1284.prototype.MENU_BUTTON_PRESSED == a.getId_0() && (b = ++this.menuEventCounter), this.slotState.setLastConsoleEvent_1(a), GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().disableCatcher_0(), this.handleConsoleEvent_1(a), (this.menuEventCounter = b), this.menuEventCounter >= GT589.prototype.SHOW_VERSION_THRESHOLD && (GT514.prototype.getInstance_0().getApplet_0().showClientVersion_0(), (this.menuEventCounter = 0)), this.handleInGameTracking_1(a)); }, handleConsoleEvent_1: function (a) { if (GT1284.prototype.START_BUTTON_PRESSED == a.getId_0()) this.handleStart_0(); else if (GT1284.prototype.MAXBET_BUTTON_PRESSED == a.getId_0()) this.handleMaxBet_0(); else if (GT1284.prototype.MENU_BUTTON_PRESSED == a.getId_0() || GT1284.prototype.BET_MENU_BUTTON_PRESSED == a.getId_0() || GT1284.prototype.LINE_MENU_BUTTON_PRESSED == a.getId_0()) this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); else if (GT1284.prototype.EXIT_BUTTON_PRESSED == a.getId_0()) this.forwardToCasinoLobby_1(GT307.prototype.ACTION_LEAVETABLE); else if (GT1284.prototype.SOUND_BUTTON_PRESSED == a.getId_0()) { var b = !1; a.isPlayMusic_0() != GT514.prototype.getInstance_0().getApplet_0().isMusicActive_0() && (GT514.prototype.getInstance_0().getApplet_0().buttonMusicClicked_0(), (b = !0)); a.isPlaySound_0() != GT514.prototype.getInstance_0().getApplet_0().getSoundPlayer_0().isActive_0() && (GT514.prototype.getInstance_0().getApplet_0().buttonSoundClicked_0(), (b = !0)); b && (GT1389.prototype.getInstance_0().disableCatcher_0(), this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE))); } else GT1284.prototype.SCREEN_TOGGLE_BUTTON_PRESSED == a.getId_0() ? this.handleToggle_4(GT514.prototype.getInstance_0().getApplet_0().getFullscreenMode_0(), GT307.prototype.ACTION_WINDOWED, GT307.prototype.ACTION_FULLSCREEN, GT589.prototype.SKIP_UPDATE) : GT1284.prototype.GENERIC_CONSOLE_EVENT == a.getId_0() ? this.handleGenericEvent_1(a) : GT1284.prototype.AUTOPLAY_BUTTON_PRESSED == a.getId_0() && this.handleToggleAutoplay_0(); }, handleInGameTracking_1: function (a) { GT1044.prototype.trackEvent_1(a); }, isOverlayEvent_1: function (a) { return a.getConsoleComponentKey_0().startsWith_1(GT1607.prototype.OVERLAY_PREFIX); }, handleToggleAutoplay_0: function () { this.slotState.isAutoPlaying_0() ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOSTOP)) : this.slotState.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAYSETTINGS)) : this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.AUTOPLAY)); }, forwardToCasinoLobby_1: function (a) { GT514.prototype.getInstance_0().getApplet_0().forwardButtonClick_1(a); }, handleGenericEvent_1: function (a) { var b = a.getConsoleComponentKey_0(); b.startsWith_1(GT1607.prototype.MENUITEM_PREFIX) ? this.handleMenuEvent_1(b) : b.startsWith_1(GT1607.prototype.PAYTABLE_PREFIX) ? this.handlePaytableEvent_1(b) : b.startsWith_1(GT1607.prototype.BETMENU_PREFIX) ? this.handleBetMenuEvent_1(b) : b.startsWith_1(GT1607.prototype.LINEMENU_PREFIX) ? this.handleLineMenuEvent_1(b) : b.startsWith_1(GT1607.prototype.SETTINGS_PREFIX) ? this.handleSettingsEvent_1(a) : b.equals_1(GT1607.prototype.GAMBLE) ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.GAMBLE)) : b.equals_1(GT1607.prototype.CLICKED_ANYWHERE) && this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); }, handleBetMenuEvent_1: function (a) { GT1389.prototype.getInstance_0().getDeviceStrategy_0().isBetSettingsChangeGameMode_0() ? this.handleBetMenuEventGameMode_1(a) : this.handleBetMenuEventBet_1(a); }, handleBetMenuEventGameMode_1: function (a) { var b = this.slotState.getDefinition_0().getGameModes_0().toArray_0(), d = GT514.prototype.getInstance_0().getApplet_0().getSlotGame_0().getBetUtils_0(); GT1607.prototype.BETMENU_DOWN.equals_1(a) ? ((b = d.fetchPreviousGameMode_1(!1)), -1 != b && this.changeGameModeTo_1(b)) : GT1607.prototype.BETMENU_UP.equals_1(a) ? ((b = d.fetchNextGameMode_1(!1)), -1 != b && this.changeGameModeTo_1(b)) : null != a && a.startsWith_1(GT1607.prototype.BETMENU_BET) && ((a = GT1672.prototype.stringToInt_1(a.substring_1(GT1607.prototype.BETMENU_BET.length_0()))), b.length > a && this.changeGameModeTo_1(a)); }, handleBetMenuEventBet_1: function (a) { for (var b = this.slotState.getDefinition_0().getPlayLines_0().toArray_0(), d = this.slotState.getNumberOfLines_0(), e = 0; e < b.length && b[e] != d; e++); b = GT514.prototype.getInstance_0().getApplet_0().getSlotGame_0().getBetUtils_0(); GT1607.prototype.BETMENU_DOWN.equals_1(a) ? ((a = Integer.truncate_1(b.fetchLowerBet_2(this.slotState.getBaseBet_0(), !1))), -1 != a && this.slotEventManager.fireSlotEvent_1(new GT982(a, !1))) : GT1607.prototype.BETMENU_UP.equals_1(a) ? ((a = Integer.truncate_1(b.fetchHigherBet_2(this.slotState.getBaseBet_0(), !1))), -1 != a && this.slotEventManager.fireSlotEvent_1(new GT982(a, !1))) : null != a && a.startsWith_1(GT1607.prototype.BETMENU_BET) && ((b = this.slotState.getBaseBets_0()), (a = GT1672.prototype.stringToInt_1(a.substring_1(GT1607.prototype.BETMENU_BET.length_0()))), b.length > a && this.slotEventManager.fireSlotEvent_1(new GT982(b[a], !1))); }, handleLineMenuEvent_1: function (a) { null != a && a.startsWith_1(GT1607.prototype.LINEMENU_LINE) && ((a = GT1672.prototype.stringToInt_1(a.substring_1(GT1607.prototype.LINEMENU_LINE.length_0()))), this.changeGameModeTo_1(a)); }, changeGameModeTo_1: function (a) { var b = this.slotState.getDefinition_0().getGameModes_0().toArray_0(); b.length > a && this.slotEventManager.fireSlotEvent_1(new GT937(b[a])); }, handleSettingsEvent_1: function (a) { var b = a.getConsoleComponentKey_0(); GT1607.prototype.SETTINGS_SWITCH_LAYOUT.equals_1(b) ? ((a = a.getParameter_1("param1")), GT1650.prototype.assertExp_2(null != a, 'Expected parameter "param1" for switching layout console event is null. This parameter cannot be null.'), GT514.prototype.setConsoleActive_1(!1), GT1389.prototype.getInstance_0().getTimer_0().triggerCallbackAfter_2(new GT691(a.intValue_0()), 200)) : GT1607.prototype.SETTINGS_CLOSE.equals_1(b) ? (GT514.prototype.getInstance_0().getSlotGui_0().getSlotConsole_0().isActive_0() || ((a = this.slotState.getCasinoState_0()), GT514.prototype.setConsoleActive_1(a.isActivePlayer_0() && a.isActionAllowed_0())), this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE))) : null != b && b.startsWith_1(GT1607.prototype.SETTINGS_GAMBLING) && ((a = GT514.prototype.getInstance_0().getApplet_0()), null != a && (a.toggleGambling_0(), this.slotState.setFastSpinEnabled_1(a.isGamblingDisabled_0()), this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)))); }, handleMenuEvent_1: function (a) { GT1607.prototype.MENUITEM_PAYTABLE.equals_1(a) ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)) : GT1607.prototype.MENUITEM_REPLAY.equals_1(a) ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.START_REPLAY)) : GT1607.prototype.MENUITEM_DEPOSIT.equals_1(a) ? this.forwardToCasinoLobby_1(GT307.prototype.ACTION_PAYIN) : GT1607.prototype.MENUITEM_EXIT.equals_1(a) ? this.forwardToCasinoLobby_1(GT307.prototype.ACTION_LEAVETABLE) : GT1607.prototype.MENUITEM_HELP.equals_1(a) ? this.forwardToCasinoLobby_1(GT307.prototype.ACTION_HELP) : this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); }, handlePaytableEvent_1: function (a) { GT1607.prototype.PAYTABLE_NEXT.equals_1(a) ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_NEXT)) : GT1607.prototype.PAYTABLE_BACK.equals_1(a) ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_PREVIOUS)) : GT1607.prototype.PAYTABLE_CLOSE.equals_1(a) && this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)); }, handleToggle_4: function (a, b, d, e) { a = a ? b : d; GT514.prototype.getInstance_0().getApplet_0().forwardButtonClick_1(a); e || this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); }, handleMaxBet_0: function () { if (GT1389.prototype.getInstance_0().getDeviceStrategy_0().isBetSettingsChangeGameMode_0()) { for (var a = this.slotState.getDefinition_0().getBetMultipliers_0().toArray_0(), b = a.length, d = this.slotState.getBaseBet_0(); 0 < b && this.slotState.getCredits_0() < d * a[--b]; ); this.changeGameModeTo_1(b); } else (a = this.slotState.getMaxPossibleBet_0()), this.slotEventManager.fireSlotEvent_1(new GT982(a, !1)); }, handleStart_0: function () { var a = this.slotState.getServerState_0(), b = GT514.prototype.getInstance_0().getSlotGui_0(), d = "ReelsSpinning".equals_1(b.getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0()) || "ReelsStopping".equals_1(b.getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0()), b = "WinAnimations".equals_1(b.getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0()) && a == GT1649.prototype.SERVERSTATE_WINVISUALIZATION; !((a != GT1649.prototype.SERVERSTATE_BEFOREGAMBLE && a != GT1649.prototype.SERVERSTATE_GAMBLE) || d || this.slotState.isFastSpinEnabled_0()) || b ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.COLLECT)) : this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.STARTSPIN)); }, isLast_2: function (a, b) { return null != a && 0 < a.length && a[a.length - 1] == b; }, }, "GT589", [GT919] ), GT691 = Class.extend( { initialConstructor_0: function () { this.layoutCode = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.layoutCode = 0; this.layoutCode = a; }, run_0: function () { GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().switchLayout_1(this.layoutCode); var a = new GT682(GT1607.prototype.SETTINGS_SWITCH_LAYOUT_COMPLETED); GT514.prototype.getInstance_0().getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(a); }, }, "GT691", [Runnable] ); GT589.prototype.SHOW_VERSION_THRESHOLD = 6; GT589.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT589.prototype.SKIP_UPDATE = !0; GT589.prototype.DO_UPDATE = !1; var GT514 = Class.extend( { initialConstructor_0: function () { this.guiSlotConsoleNeon = this.applet = null; }, getSlotGui_0: function () { return this.applet.getSlotGui_0(); }, getGUISlotConsoleNeon_0: function () { return this.guiSlotConsoleNeon; }, setGUISlotConsoleNeon_1: function (a) { this.guiSlotConsoleNeon = a; }, getApplet_0: function () { return this.applet; }, getDecimalSeparator_0: function () { var a = GT1677.prototype.toLowerCaseAZ_1(this.applet.getPlayerAttribute_2("CCODE", "")); return this.applet.getCommaSeperatorFor_1(a); }, getThousandSeparator_0: function () { return this.applet.getSkin_0().getString_1("thousandseperator"); }, getCursymbolwithNoBreakingSpace_1: function (a) { return a + "" + this.applet.getSkin_0().getString_1("cursymbolseperator"); }, isConsoleDialogOpen_0: function () { return null != this.guiSlotConsoleNeon ? this.guiSlotConsoleNeon.isConsoleDialogOpen_0() : !1; }, isFeatureFilterSupported_0: function () { return null != this.applet ? GT692.prototype.FS_AVAILABLE.equals_1(GT514.prototype.getInstance_0().getApplet_0().getSupportLevelForFeature_1(GT692.prototype.FS_FEATURE_FILTERS)) : !1; }, isGambleDisabledServerOrClientSide_0: function () { if (null == GT514.prototype.instance || null == GT514.prototype.instance.applet || !GT514.prototype.instance.applet.isUiNeonEnabled_0()) return !1; var a = this.getSlotGui_0().getSlotState_0().getDefinition_0(), a = 0 == a.getMaxGambleSteps_0() || 0 == a.getMaxGambleAbsoluteWin_0() || 0 == a.getMaxGambleWin_0(); return GT1389.prototype.getInstance_0().getDeviceStrategy_0().isGameClientDisableGamble_0() || a; }, }, "GT514", [] ); GT514.prototype.isGamblingDisabled_0 = function () { var a = !1; null != GT514.prototype.instance && null != GT514.prototype.instance.applet && GT514.prototype.instance.applet.isUiNeonEnabled_0() && !GT514.prototype.instance.isGambleDisabledServerOrClientSide_0() && (a = GT514.prototype.instance.applet.isGamblingDisabled_0()); return a; }; GT514.prototype.setConsoleActive_1 = function (a) { null != GT514.prototype.instance && null != GT514.prototype.instance.guiSlotConsoleNeon && null != GT514.prototype.instance.applet && GT514.prototype.instance.applet.isUiNeonEnabled_0() && null != GT514.prototype.instance.guiSlotConsoleNeon.getConsoleBridge_0() && GT514.prototype.instance.guiSlotConsoleNeon.getConsoleBridge_0().setActive_1(a); }; GT514.prototype.setFreeSpinText_1 = function (a) { null != GT514.prototype.instance && null != GT514.prototype.instance.guiSlotConsoleNeon && null != GT514.prototype.instance.applet && GT514.prototype.instance.applet.isUiNeonEnabled_0() && GT514.prototype.instance.guiSlotConsoleNeon.setFreeSpinText_1(a); }; GT514.prototype.setStatusText_3 = function (a, b, d) { null != GT514.prototype.instance && null != GT514.prototype.instance.guiSlotConsoleNeon && null != GT514.prototype.instance.applet && GT514.prototype.instance.applet.isUiNeonEnabled_0() && GT514.prototype.instance.guiSlotConsoleNeon.setStatusText_3(a, d, b); }; GT514.prototype.setStatusText_2 = function (a, b) { a ? this.setStatusText_3(b, !1, null) : this.setStatusText_1(b); }; GT514.prototype.setStatusText_1 = function (a) { null != GT514.prototype.instance && null != GT514.prototype.instance.guiSlotConsoleNeon && null != GT514.prototype.instance.applet && GT514.prototype.instance.applet.isUiNeonEnabled_0() && GT514.prototype.instance.guiSlotConsoleNeon.setStatusText_1(a); }; GT514.prototype.destroy_0 = function () { null != GT514.prototype.instance && (GT514.prototype.Log.t_1("GameConsole: ClientGameConsoleHelper destroyed."), (GT514.prototype.instance.applet = null), (GT514.prototype.instance = null)); }; GT514.prototype.getInstance_0 = function () { return GT514.prototype.instance; }; GT514.prototype.createInstance_1 = function (a) { null == GT514.prototype.instance && (GT514.prototype.Log.t_1("GameConsole: ClientGameConsoleHelper instantiated."), (GT514.prototype.instance = new GT514()), (GT514.prototype.instance.applet = a)); return GT514.prototype.instance; }; GT514.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT514.prototype.instance = null; var GT432 = GT1548.extend( { initialConstructor_0: function () { this.possibleBets = null; this.augmentedBet = 0; GT1548.prototype.initialConstructor_0.call(this); this.augmentedBet = -1; }, getBetsPerLine_1: function (a) { var b = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getMaxNumberOfBets_0(); if (null == a || a.size_0() <= b) return a; var d = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(); GT514.prototype.getInstance_0().getSlotGui_0().getSlotEventManager_0(); var e = GT514.prototype.getInstance_0().getApplet_0().getSlotGame_0(); this.possibleBets = [].createArray(b).init(0); b = d.getBaseBet_0(); GT432.prototype.Log.t_1("UI Neon: reducing bets... Base Bet before reduce is " + b); a = this.reduce_3(a.toArray_0(), b, this.possibleBets); b != a && e.setBaseBet_1(a); this.augmentedBet = a; GT432.prototype.Log.t_1("UI Neon: Base Bet after reduce is " + a); return new GT1595(this.possibleBets); }, reduce_3: function (a, b, d) { var e = a.length, f = d.length, g = Math.div(e, f), k = Math.div(f - (e - g * f), 2), m = 0, n = a[0]; d[0] = a[0]; d[f - 1] = a[e - 1]; for (e = 1; e < f - 1; e++) { var p = 1 < g ? 1 : 2 + (f % 2), m = e < k || e > f - k - p ? m + g : m + (g + 1); d[e] = a[m]; Math.abs_1(b - n) > Math.abs_1(b - d[e]) && (n = d[e]); } Math.abs_1(b - n) > Math.abs_1(b - d[f - 1]) && (n = d[f - 1]); if (GT432.prototype.Log.trace) { a = "["; for (e = 0; e < d.length; e++) a = a.concat_1((0 < e ? "," : "") + d[e]); a = a.concat_1("]"); GT432.prototype.Log.t_1("UI Neon: bet steps reduced to " + a); } return n; }, }, "GT432", [] ); GT432.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); var GT795 = Class.extend( { initialConstructor_0: function () { this.guiSlotConsoleNeon = this.gameConsole = null; this.delay = 0; this.timeUpdateCallback = this.previousTimeData = null; this.guiStateUpdateDone = this.packetBlockingStateListenerInitialized = this.lastPacketBlockingState = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.guiSlotConsoleNeon = this.gameConsole = null; this.delay = 0; this.timeUpdateCallback = this.previousTimeData = null; this.guiStateUpdateDone = this.packetBlockingStateListenerInitialized = this.lastPacketBlockingState = !1; Class.prototype.initialConstructor_0.call(this); this.gameConsole = a; this.guiSlotConsoleNeon = b; this.delay = 1e3; this.run_1("time_update"); this.getApplet_0().getTimer_0().addFramerateListener_1(new GT1509(this, "connection_state_update")); }, newSlotEvent_1: function (a) { var b = instanceOf(a, GT682) ? a.getReason_0() : null; (a.getId_0() != GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE && a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || (!this.guiStateUpdateDone && !GT1607.prototype.SETTINGS_SWITCH_LAYOUT_COMPLETED.equals_1(b)) || (a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && a.getModalDialogId_0() == a.getDisableGamblingDialogId_0() && this.getApplet_0().isGamblingDisabled_0() && this.getApplet_0().getSlotGui_0().getSlotState_0().setFastSpinEnabled_1(this.getApplet_0().isGamblingDisabled_0()), (a = this.convert_1(a)), this.guiSlotConsoleNeon.updateConsole_1(a)); }, convert_1: function (a) { GT795.prototype.Log.t_1("UI Neon: Updating console with slot event " + a); var b = this.convertGuiState_2(GT514.prototype.getInstance_0().getSlotGui_0().getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0(), GT820.prototype.TRIGGER_TIME_EVENT); instanceOf(a, GT682) ? (b.addViewData_2(GT1184.prototype.KEEP_DIALOGS_OPEN, new Boolean(a.isKeepDialogsOpen_0())), (a = a.getReason_0()), null != a && b.addViewData_2(GT1184.prototype.UPDATE_REASON, a)) : a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED || (a.getModalDialogId_0() != a.getErrorDialogId_0() && a.getModalDialogId_0() != a.getFatalErrorDialogId_0()) || (b.addViewData_2(GT1184.prototype.KEEP_DIALOGS_OPEN, new Boolean(!1)), b.addViewData_2(GT1184.prototype.UPDATE_REASON, "MODAL_OPEN")); return b; }, convertGuiState_2: function (a, b) { this.guiStateUpdateDone = !0; this.lastPacketBlockingState = this.getApplet_0().isBlockingPackets_0(); var d = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(), e = new GT820(); e.addViewData_2(GT1184.prototype.SERVER_STATE, new Integer(d.getServerState_0())); e.addViewData_2(GT1184.prototype.GAMEMODE, new Integer(d.getGameMode_0())); d.isAutoPlaying_0() && 0 < d.getDefinition_0().getAutoPlayCountMax_0() && e.addViewData_2(GT1184.prototype.AUTOPLAY_COUNTER, new Integer(d.getAutoPlayCounter_0())); e.addViewData_2(GT1184.prototype.AUTOPLAY_RUNNING, new Boolean(d.isAutoPlaying_0())); e.addViewData_2(GT1184.prototype.CREDITS, new Double(d.getCredits_0())); e.addViewData_2(GT1184.prototype.LAST_WIN, new Double(d.getLastWin_0())); if ( !( "ReelsSpinning".equals_1(a) || "ReelsStopping".equals_1(a) || "SuperGameOpen".equals_1(a) || "SuperGameClosing".equals_1(a) || "SuperGameWheelSpinning".equals_1(a) || "SuperGameWheelStopping".equals_1(a) || (e.addViewData_2(GT1184.prototype.WIN, new Double(d.getWinSum_1(!0))), "BeforeSpin".equals_1(a) || null == d.getSuperGameState_0()) ) ) { var f = d.getSuperGameState_0(), g = d.getSuperGamesSum_1(!0); 0 < g && ((f = " + " + g + " " + f.getLabel_0()), e.addViewData_2(GT1184.prototype.SUPERGAME_TEXT, f)); } e.addViewData_2(GT1184.prototype.NUMBER_OF_LINES, new Integer(d.getNumberOfLines_0())); e.addViewData_2(GT1184.prototype.BASE_BET, new Integer(d.getBaseBet_0())); e.addViewData_2(GT1184.prototype.TOTAL_BET, new Integer(d.getTotalBet_0())); f = this.getApplet_0().hasOpenSession_0() ? this.getApplet_0().getRoundNumber_0() : ""; e.addViewData_2(GT1184.prototype.ROUNDID, f); e.addViewData_2(GT1184.prototype.PAYTABLE_OPEN, new Boolean(d.isPaytableOpen_0() && "PaytableOpen".equals_1(a))); e.addViewData_2(GT1184.prototype.PLAYLINES, d.getDefinition_0().getPlayLines_0()); e.addViewData_2(GT1184.prototype.BASE_BETS, d.getBaseBets_0()); e.addViewData_2(GT1184.prototype.BET_MULTIPLIER, new Integer(d.getBetMultiplier_0())); e.addViewData_2(GT1184.prototype.TRIGGERING_EVENT, d.getLastConsoleEvent_0()); e.addViewData_2(GT1184.prototype.BET_MULTIPLIERS, d.getDefinition_0().getBetMultipliers_0()); e.addViewData_2(GT1184.prototype.GAMEMODES, d.getDefinition_0().getGameModes_0().toArray_0()); f = (f = d.getFreeSpinState_0().isFreeSpinsRunning_0()) && !"FreeGamesEnd".equals_1(a) && !(d.getFreeSpinState_0().isAtLastFreeSpin_0() && ("ReelsSpinning".equals_1(a) || "CollectWin".equals_1(a))); e.addViewData_2(GT1184.prototype.FREESPINS_RUNNING, new Boolean(f)); e.addViewData_2(GT1184.prototype.FREESPINS_PLAYED, new Integer(d.getFreeSpinState_0().getFreeSpinsPlayed_0())); e.addViewData_2(GT1184.prototype.FREESPINS_WINNINGS, new Double(d.getFreeSpinState_0().getFreeSpinWinnings_0())); f = d.getFreeSpinState_0().getFreeSpinsWon_0(); g = d.getFreeSpinState_0().getFreeSpinsWonNow_0(); 0 < g && (f -= g); e.addViewData_2(GT1184.prototype.FREESPINS_WON, new Integer(f)); e.addViewData_2(GT1184.prototype.FREESPINS_WON_NOW, new Integer(g)); e.addViewData_2(GT1184.prototype.VISIBLE_AREA, GT514.prototype.getInstance_0().getApplet_0().getVisibleArea_0()); e.addViewData_2(GT1184.prototype.TRIGGERING_TIME, b); e.addViewData_2(GT1184.prototype.FREEROUNDS_WON, new Integer(d.getFreeRoundsWon_0())); e.addViewData_2(GT1184.prototype.FREEROUNDS_PLAYED, new Integer(d.getFreeRoundsPlayed_0())); e.addViewData_2(GT1184.prototype.FREEROUNDS_WINNINGS, new Double(d.getFreeRoundsWinnings_0())); e.addViewData_2(GT1184.prototype.VERSION, GT514.prototype.getInstance_0().getApplet_0().clientVersion_0()); e.addViewData_2(GT1184.prototype.GAMBLING_DISABLED, new Boolean(this.getApplet_0().isGamblingDisabled_0())); f = this.guiSlotConsoleNeon.getDefaultRules_2(a, b); GT514.prototype.getInstance_0().getSlotGui_0().getGuiStateMachine_0().transformRules_1(f); d.setLastConsoleEvent_1(null); e.addRules_1(f); return e; }, destroy_0: function () { this.guiSlotConsoleNeon = this.gameConsole = null; }, guiStateFinished_1: function (a) { this.update_1(GT820.prototype.TRIGGER_TIME_FINISH); }, guiStateEntered_1: function (a) { a = GT514.prototype.getInstance_0().getSlotGui_0().getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0(); ("GambleScreenOpen".equals_1(a) || "PaytableOpen".equals_1(a)) && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().disableCatcher_0(); this.update_1(GT820.prototype.TRIGGER_TIME_ENTER); this.packetBlockingStateListenerInitialized = !0; }, guiStateExited_1: function (a) { GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().disableCatcher_0(); }, update_1: function (a) { var b = GT514.prototype.getInstance_0().getSlotGui_0().getGuiStateMachine_0().getCurrentStateConsoleIdentifier_0(); "GambleWaitingForServer".equals_1(b) || ((b = this.convertGuiState_2(b, a)), GT820.prototype.TRIGGER_TIME_FINISH.equals_1(a) && b.addViewData_2(GT1184.prototype.KEEP_DIALOGS_OPEN, new Boolean(!0)), this.guiSlotConsoleNeon.updateConsole_1(b)); }, run_1: function (a) { null != this.gameConsole && ("time_update".equals_1(a) ? this.timeUpdate_0() : this.connectionUpdate_0()); }, timeUpdate_0: function () { var a = this.getApplet_0(), b = GT1563.prototype.timeOfDay_1(!1), b = new GT819(a.timeSinceSessionStart_1(!1), b), d = !1; null == this.previousTimeData && ((this.previousTimeData = b), (d = !0)); b.equals_1(this.previousTimeData) || ((this.delay = 3e4), (d = !0)); d && null != this.gameConsole && GT1560.prototype.isAlive_1(GT1389.prototype.getInstance_0().getGameConsoleContainer_0()) && this.gameConsole.updateConsoleTime_1(b); null == this.timeUpdateCallback && (this.timeUpdateCallback = new GT1509(this, "time_update")); a.triggerCallbackAfter_2(this.timeUpdateCallback, this.delay); }, connectionUpdate_0: function () { if (this.packetBlockingStateListenerInitialized) { var a = this.getApplet_0().isBlockingPackets_0(); this.lastPacketBlockingState != a && (GT795.prototype.Log.trace && GT795.prototype.Log.t_1("UI Neon: updating console from frame listener - due to packet blocking state change - from " + this.lastPacketBlockingState + " to " + a), GT514.prototype.getInstance_0().getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE))); } }, getApplet_0: function () { return GT514.prototype.getInstance_0().getApplet_0(); }, }, "GT795", [GT811, GT922, GT1482] ); GT795.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); var GT1044 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1044", [] ); GT1044.prototype.getMapping_0 = function () { null == GT1044.prototype.keyToIgtId && ((GT1044.prototype.keyToIgtId = new java_util_JavaScriptHashtable()), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_PAYTABLE, "PAYTABLE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.PAYTABLE_CLOSE, "PAYTABLE_CLOSE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_DEPOSIT, "DEPOSIT"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_SETTINGS, "SETTINGS"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_REPLAY, "REPLAY"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_HELP, "HELP"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MENUITEM_EXIT, "EXIT"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SETTINGS_CLOSE, "SETTINGS_CLOSE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SETTINGS_SOUND_AND_MUSIC, "SETTINGS_MUSIC_SOUND"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SETTINGS_SOUND_ONLY, "SETTINGS_SOUND"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SETTINGS_SOUND_OFF, "SETTINGS_SOUND_OFF"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.OVERLAY_EXIT, "OVERLAY_EXIT"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.OVERLAY_SCREENMODE, "OVERLAY_SCREENMODE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.OVERLAY_SOUND_AND_MUSIC, "OVERLAY_MUSIC_SOUND"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.OVERLAY_SOUND_ONLY, "OVERLAY_SOUND"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.OVERLAY_SOUND_OFF, "OVERLAY_SOUND_OFF"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.AUTOPLAY, "AUTO"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SPIN + "#collect", "COLLECT"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.SPIN, "START"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.BETMENU_BET + "#min", "BET_MIN"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.BETMENU_BET + "#max", "BET_MAX"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.BETMENU_BET, "BET"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.GAMBLE, "GAMBLE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.MAXBET, "MAXBET"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.EXTRABET, "EXTRABET"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.BETMENU_CLOSE, "BET_CLOSE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.LINEMENU_CLOSE, "LINE_CLOSE"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.LINEMENU_LINE + "#min", "LINE_MIN"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.LINEMENU_LINE + "#max", "LINE_MAX"), GT1044.prototype.keyToIgtId.put_2(GT1607.prototype.LINEMENU_LINE, "LINE"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.GAMEMODE_PREVIOUS, "KBD_LINE_DOWN"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.GAMEMODE_PREVIOUS + "#min", "KBD_LINE_DOWN_MIN"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.GAMEMODE_NEXT, "KBD_LINE_UP"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.GAMEMODE_NEXT + "#max", "KBD_LINE_UP_MAX"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.BET_DOWN, "KBD_BET_DOWN"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.BET_DOWN + "#min", "KBD_BET_DOWN_MIN"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.BET_UP, "KBD_BET_UP"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.BET_UP + "#min", "KBD_BET_UP_MAX"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.COLLECT, "KBD_COLLECT"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.START_SPIN, "KBD_START"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.GAMBLE, "KBD_GAMBLE"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.PAYTABLE, "KBD_PAYTABLE"), GT1044.prototype.keyToIgtId.put_2(GT990.prototype.AUTOPLAY_TOGGLE, "KBD_AUTO")); return GT1044.prototype.keyToIgtId; }; GT1044.prototype.transformKeyboardKey_1 = function (a) { if (null == GT514.prototype.getInstance_0() || null == GT514.prototype.getInstance_0().getSlotGui_0()) return a; var b = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(); if (GT990.prototype.BET_DOWN.equals_1(a) || GT990.prototype.BET_UP.equals_1(a)) { var d = b.getBaseBet_0(), b = b.getBaseBets_0(); if (0 < b.length) { if (d == b[0]) return GT990.prototype.BET_DOWN + "#min"; if (d == b[b.length - 1]) return GT990.prototype.BET_UP + "#max"; } } else if (GT990.prototype.GAMEMODE_NEXT.equals_1(a) || GT990.prototype.GAMEMODE_PREVIOUS.equals_1(a)) { if (((d = b.getNumberOfLines_0()), (b = b.getDefinition_0().getPlayLines_0().toArray_0()), 0 < b.length)) { if (d == b[0]) return GT990.prototype.GAMEMODE_PREVIOUS + "#min"; if (d == b[b.length - 1]) return GT990.prototype.GAMEMODE_NEXT + "#max"; } } else if (GT990.prototype.AUTOPLAY_TOGGLE.equals_1(a)) { if (!b.isAutoPlaying_0()) return ""; } else if (GT990.prototype.START_SPIN.equals_1(a) && b.isAutoPlaying_0()) return ""; return a; }; GT1044.prototype.transformKey_1 = function (a) { if (null == GT514.prototype.getInstance_0() || null == GT514.prototype.getInstance_0().getSlotGui_0()) return a; var b = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(), d = b.getBaseBet_0(), e = b.getBaseBets_0(); if (GT1607.prototype.BETMENU_DOWN.equals_1(a)) { if (0 < e.length && d == e[0]) return a + "#min"; } else if (GT1607.prototype.BETMENU_UP.equals_1(a)) { if (0 < e.length && d == e[e.length - 1]) return a + "#max"; } else if (a.startsWith_1(GT1607.prototype.BETMENU_BET)) { if (0 < e.length) return d == e[0] ? GT1607.prototype.BETMENU_BET + "#min" : d == e[e.length - 1] ? GT1607.prototype.BETMENU_BET + "#max" : GT1607.prototype.BETMENU_BET; } else if (a.startsWith_1(GT1607.prototype.LINEMENU_LINE)) { if (((d = b.getNumberOfLines_0()), (b = b.getDefinition_0().getPlayLines_0().toArray_0()), 0 < b.length)) return d == b[0] ? GT1607.prototype.LINEMENU_LINE + "#min" : d == b[b.length - 1] ? GT1607.prototype.LINEMENU_LINE + "#max" : GT1607.prototype.LINEMENU_LINE; } else { if (a.startsWith_1(GT1607.prototype.SPIN.concat_1("#undocked"))) return (a = GT1607.prototype.SPIN + a.substring_1(GT1607.prototype.SPIN.concat_1("#undocked").length_0())); a.startsWith_1(GT1607.prototype.BETMENU.concat_1("#undocked")) && (a = GT1607.prototype.BETMENU + a.substring_1(GT1607.prototype.BETMENU.concat_1("#undocked").length_0())); } return a; }; GT1044.prototype.getKeyboardEventId_1 = function (a) { GT1650.prototype.assertExp_2(null != a, "In game tracking: Invalid input parameter. KeyboardEvent must be provided."); var b = GT1044.prototype.getMapping_0(); GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: mapping key " + a); a = this.transformKeyboardKey_1(a); GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: transformed mapping key " + a); b = b.get_1(a); null == b && GT1044.prototype.Log.i_1("UI Neon: In-Game-Tracking: missing mapping for key " + a); GT1044.prototype.Log.trace && GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: key=" + a + " ---- value=" + b); return b; }; GT1044.prototype.getEventId_1 = function (a) { GT1650.prototype.assertExp_2(null != a, "In game tracking: Invalid input parameter. ConsoleEvent must be provided."); GT1650.prototype.assertExp_2(null != a.getConsoleComponentKey_0(), "In game tracking: Invalid input parameter. ConsoleComponentKey must be provided."); var b = GT1044.prototype.getMapping_0(); a = a.getConsoleComponentKey_0(); GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: mapping key " + a); a = this.transformKey_1(a); GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: transformed mapping key " + a); b = b.get_1(a); null == b && GT1044.prototype.Log.i_1("UI Neon: In-Game-Tracking: missing mapping for key " + a); GT1044.prototype.Log.trace && GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: key=" + a + " ---- value=" + b); return b; }; GT1044.prototype.convertEventId_1 = function (a) { if (null == a) return null; var b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_INGAMETRACKING), d = b.getValueTable_0(); d.put_2(GT697.prototype.EVENT_IGT_ID, a); d.put_2(GT697.prototype.EVENT_IGT_DATA, "1"); return b; }; GT1044.prototype.convertKeyboardEvent_1 = function (a) { return this.convertEventId_1(this.getKeyboardEventId_1(a)); }; GT1044.prototype.convert_1 = function (a) { return this.convertEventId_1(this.getEventId_1(a)); }; GT1044.prototype.skipEvent_1 = function (a) { if (null == a || null == a.getConsoleComponentKey_0() || a.getConsoleComponentKey_0().isEmpty_0()) return !0; a = a.getConsoleComponentKey_0(); a = this.transformKey_1(a); return (GT1607.prototype.SPIN + "#fast").equals_1(a) || GT1607.prototype.PAYTABLE_NEXT.equals_1(a) || GT1607.prototype.PAYTABLE_BACK.equals_1(a) || GT1607.prototype.BETMENU.equals_1(a) || GT1607.prototype.LINES.equals_1(a) || GT1607.prototype.MENU.equals_1(a) || GT1607.prototype.CLICKED_ANYWHERE.equals_1(a) || GT1607.prototype.SETTINGS_LAYOUT_LEFT.equals_1(a) || GT1607.prototype.SETTINGS_LAYOUT_RIGHT.equals_1(a) || GT1607.prototype.SETTINGS_SWITCH_LAYOUT.equals_1(a) || (GT1607.prototype.AUTOPLAY + "#stop").equals_1(a) ? !0 : !1; }; GT1044.prototype.trackKeyboardEvent_2 = function (a, b) { GT1044.prototype.Log.t_1("========================== IN GAME TRACKING START ======================"); var d = GT514.prototype.getInstance_0().getApplet_0().getParameter_1(GT1044.prototype.PARAM_IGT_TRACKING_ID); null == d || d.trim_0().isEmpty_0() ? GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: suppressed as no tracking id is given.") : ((d = this.convertKeyboardEvent_1(a)), null != d ? GT1242.prototype.fireWrapperStateEvent_2(GT514.prototype.getInstance_0().getApplet_0().getGameWrapperInterfaceCaller_0(), d.getMainTable_0()) : GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: KeyboardEvent cannot be mapped, therefore discarded. " + a)); GT1044.prototype.Log.t_1("========================== IN GAME TRACKING END ======================"); }; GT1044.prototype.trackEvent_1 = function (a) { GT1044.prototype.Log.t_1("========================== IN GAME TRACKING START ======================"); var b = GT514.prototype.getInstance_0().getApplet_0().getParameter_1(GT1044.prototype.PARAM_IGT_TRACKING_ID); null == b || b.trim_0().isEmpty_0() ? GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: suppressed as no tracking id is given.") : this.skipEvent_1(a) ? GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: ConsoleEvent skipped " + a) : ((b = this.convert_1(a)), null != b ? GT1242.prototype.fireWrapperStateEvent_2(GT514.prototype.getInstance_0().getApplet_0().getGameWrapperInterfaceCaller_0(), b.getMainTable_0()) : GT1044.prototype.Log.t_1("UI Neon: In-Game-Tracking: ConsoleEvent cannot be mapped, therefore discarded. " + a)); GT1044.prototype.Log.t_1("========================== IN GAME TRACKING END ======================"); }; GT1044.prototype.LOGGER_KEY = GT1389.prototype.LOGGER_KEY + ".igt"; GT1044.prototype.PARAM_IGT_TRACKING_ID = "igt.tracking.id"; GT1044.prototype.Log = GT1650.prototype.getLogFlags_1(GT1044.prototype.LOGGER_KEY); GT1044.prototype.keyToIgtId = null; var GT737 = GT1437.extend( { initialConstructor_0: function () { this.supergamesLabel = this.soundClose = this.soundOpen = this.gambleState = this.gambleListener = this.currencyFormatter = null; this.currentSuperGames = this.currentWin = 0; this.removeCurrencySymbol = this.showCurrencyText = this.omitCentsIfZero = this.activePlayer = !1; this.randomSeed = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.supergamesLabel = this.soundClose = this.soundOpen = this.gambleState = this.gambleListener = this.currencyFormatter = null; this.currentSuperGames = this.currentWin = 0; this.removeCurrencySymbol = this.showCurrencyText = this.omitCentsIfZero = this.activePlayer = !1; this.randomSeed = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.soundOpen = g; this.soundClose = k; this.currencyFormatter = new GT1285(); this.gambleListener = new java_util_JavaScriptVector(); }, setGambleState_1: function (a) { this.gambleState = a; }, getPossibleGambleStep_1: function (a) { return this.gambleState.getPossibleGambleStep_1(a); }, getPossibleSuperGameGambleStep_1: function (a) { return this.gambleState.getPossibleSuperGameGambleStep_1(a); }, getGambleHistory_0: function () { return this.gambleState.getHistory_0(); }, getWin_1: function (a) { return this.gambleState.getWin_1(a); }, getHalfCollects_0: function () { return this.gambleState.getNumberOfHalfCollects_0(); }, isLuckyLoser_0: function () { return this.gambleState.isLuckyLoser_0(); }, isMoreGamblePossible_0: function () { return this.gambleState.isMoreGamblePossible_0(); }, getNumberOfPossibleGambleSteps_0: function () { return this.gambleState.getNumberOfPossibleGambleSteps_0(); }, getNumberOfWins_0: function () { return this.gambleState.getNumberOfWins_0(); }, addGambleListener_1: function (a) { this.gambleListener.contains_1(a) || this.gambleListener.addElement_1(a); }, removeGambleListener_1: function (a) { this.gambleListener.contains_1(a) && this.gambleListener.removeElement_1(a); }, getGambleListener_0: function () { return this.gambleListener; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, getSoundOpen_0: function () { return this.soundOpen; }, getSoundClose_0: function () { return this.soundClose; }, getSuperGamesLabel_0: function () { return this.supergamesLabel; }, setSuperGamesLabel_1: function (a) { this.supergamesLabel = a; }, setCurrentWin_2: function (a, b) { this.currentWin = a; this.currentSuperGames = b; }, getCurrentWin_0: function () { return this.currentWin; }, getCurrentSuperGames_0: function () { return this.currentSuperGames; }, isActivePlayer_0: function () { return this.activePlayer; }, setActivePlayer_1: function (a) { this.activePlayer = a; }, shouldOmitCentsIfZero_0: function () { return this.omitCentsIfZero; }, setOmitCentsIfZero_1: function (a) { this.omitCentsIfZero = a; }, setRandomSeed_1: function (a) { this.randomSeed = a; }, setShowCurrencyText_1: function (a) { this.showCurrencyText = a; }, setRemoveCurrencySymbol_1: function (a) { this.removeCurrencySymbol = a; }, isRemoveCurrencySymbol_0: function () { return this.removeCurrencySymbol; }, isShowCurrencyText_0: function () { return this.showCurrencyText; }, getRandomSeed_0: function () { return this.randomSeed; }, getWinText_2: function (a, b) { var d = ""; return (d = 0 == b ? a : a + " + " + b + " " + this.getSuperGamesLabel_0()); }, formatWin_2: function (a, b) { var d = this.getCurrencyFormatter_0().format_1(a); instanceOf(this.getCurrencyFormatter_0(), GT711) && ((d = this.getCurrencyFormatter_0()), (d = this.isRemoveCurrencySymbol_0() ? d.format_3(a, b, !1) : d.format_2(a, b))); return d; }, getOmitCentPolicy_2: function (a, b) { if (this.shouldOmitCentsIfZero_0()) return GT711.prototype.OMIT_CENT_IF_ZERO; if (b) for (var d = 0; d < a.length; d++) if (1e5 < a[d]) return GT711.prototype.OMIT_CENT_IF_ZERO; return GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO; }, }, "GT737", [] ); GT737.prototype.CURRENCY_TEXT = GT1560.prototype.generateID_0(); GT737.prototype.DEFAULT_OPEN_CLOSE_TIME = 250; var GT346 = GT737.extend( { initialConstructor_0: function () { this.currencyText = this.fieldGambleToWin = this.fieldGambleAmount = this.textInfoAfterGamble = this.textInfo = this.textCongratulationConcrete = this.textCongratulation = this.textGambleWin = this.textGambleAmount = this.textCardSelected = this.historyCards = this.mainCard = this.buttonBlack = this.buttonRed = null; this.scaleFactorY = this.scaleFactorX = 0; this.imageGambleCard = null; this.gambleHistoryLength = 0; this.gambleHistoryY = this.gambleHistoryX = null; this.gambleHistoryScaleFactor = 0; this.soundGambleLoopStepsPositions = this.soundGambleLoopSteps = this.skinManager = this.soundLoopPositions = this.soundGambleWinStopPositions = null; this.winStep = 0; this.soundGamble = this.soundGambleLost = this.soundGambleWinTop = this.soundGambleWin = null; this.animationTime = 0; this.cardTurnAnimator = this.blinkAnimator = this.frontside = this.lastTinyCard = null; this.selectedCardTextOffsetY = this.selectedCardTextOffsetX = this.col = this.cardTinyHeight = this.cardTinyWidth = this.cardHeight = this.cardWidth = 0; this.historyCardsPos = this.mainCardPos = null; this.shouldReplacePercental = this.useConcreteCongratsText = !1; this.maxGambleSteps = 0; GT737.prototype.initialConstructor_0.call(this); }, initialConstructor_23: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L) { this.currencyText = this.fieldGambleToWin = this.fieldGambleAmount = this.textInfoAfterGamble = this.textInfo = this.textCongratulationConcrete = this.textCongratulation = this.textGambleWin = this.textGambleAmount = this.textCardSelected = this.historyCards = this.mainCard = this.buttonBlack = this.buttonRed = null; this.scaleFactorY = this.scaleFactorX = 0; this.imageGambleCard = null; this.gambleHistoryLength = 0; this.gambleHistoryY = this.gambleHistoryX = null; this.gambleHistoryScaleFactor = 0; this.soundGambleLoopStepsPositions = this.soundGambleLoopSteps = this.skinManager = this.soundLoopPositions = this.soundGambleWinStopPositions = null; this.winStep = 0; this.soundGamble = this.soundGambleLost = this.soundGambleWinTop = this.soundGambleWin = null; this.animationTime = 0; this.cardTurnAnimator = this.blinkAnimator = this.frontside = this.lastTinyCard = null; this.selectedCardTextOffsetY = this.selectedCardTextOffsetX = this.col = this.cardTinyHeight = this.cardTinyWidth = this.cardHeight = this.cardWidth = 0; this.historyCardsPos = this.mainCardPos = null; this.shouldReplacePercental = this.useConcreteCongratsText = !1; this.maxGambleSteps = 0; GT737.prototype.initialConstructor_7.call(this, a, b, d, e, f, E, F); this.skinManager = g; this.imageGambleCard = k; this.gambleHistoryX = m; this.gambleHistoryY = n; this.gambleHistoryScaleFactor = p; this.gambleHistoryLength = m.length; this.soundGambleWin = q; this.soundGambleWinStopPositions = null == r ? [].createArray(0).init(0) : r; this.soundGambleWinTop = t; this.soundGambleLost = u; this.soundGamble = B; this.soundGambleLoopSteps = A; this.soundGambleLoopStepsPositions = C; this.winStep = 0; this.selectedCardTextOffsetX = D; this.selectedCardTextOffsetY = H; this.soundLoopPositions = I; this.useConcreteCongratsText = !0; this.shouldReplacePercental = L; this.cardWidth = GT1672.prototype.doubleToInt_1(k.getWidth_0() / 6); this.cardHeight = k.getHeight_0(); this.cardTinyWidth = GT1672.prototype.doubleToInt_1(this.cardWidth * p); this.cardTinyHeight = GT1672.prototype.doubleToInt_1(this.cardHeight * p); this.scaleFactorX = this.cardTinyWidth / this.cardWidth; this.scaleFactorY = this.cardTinyHeight / this.cardHeight; this.animationTime = 500; }, getPercentalPosition_3: function (a, b, d) { if (b) return (a = Integer.truncate_1(Math.round_1(this.getWidth_0() * (a / 1232)))), d ? Integer.truncate_1(this.getWidth_0()) - a : a; a = Integer.truncate_1(Math.round_1(this.getHeight_0() * (a / 708))); return d ? Integer.truncate_1(this.getHeight_0()) - a : a; }, scalePercental_0: function () { var a = this.getWidth_0() / 1232, b = this.getHeight_0() / 708, d = this.getPercentalPosition_3(160, !0, !1), e = this.getPercentalPosition_3(44, !1, !1); this.fieldGambleAmount.resize_2(Integer.truncate_1(Math.round_1(this.fieldGambleAmount.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.fieldGambleAmount.getHeight_0() * b))); this.fieldGambleAmount.move_2(d, e + 31); instanceOf(this.textGambleAmount, GT1123) && this.textGambleAmount.resize_2(Integer.truncate_1(Math.round_1(this.textGambleAmount.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textGambleAmount.getHeight_0() * b))); this.textGambleAmount.move_2(d + Math.div(this.fieldGambleAmount.getWidth_0() - this.textGambleAmount.getWidth_0(), 2), e); d = this.getPercentalPosition_3(160, !0, !0); this.fieldGambleToWin.resize_2(Integer.truncate_1(Math.round_1(this.fieldGambleToWin.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.fieldGambleToWin.getHeight_0() * b))); this.fieldGambleToWin.move_2(d - this.fieldGambleToWin.getWidth_0(), e + 31); instanceOf(this.textGambleWin, GT1123) && this.textGambleWin.resize_2(Integer.truncate_1(Math.round_1(this.textGambleWin.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textGambleWin.getHeight_0() * b))); this.textGambleWin.move_2(this.fieldGambleToWin.getX_0() + Math.div(this.fieldGambleToWin.getWidth_0() - this.textGambleWin.getWidth_0(), 2), e); d = Math.div(this.getWidth_0() - this.mainCard.getWidth_0(), 2); e = this.getPercentalPosition_3(300, !1, !1); this.mainCard.move_2(d, e); this.mainCardPos = new GT1633(this.mainCard.getX_0(), this.mainCard.getY_0()); var f = this.findDescendant_1(GT346.prototype.ID_TEXT_PREVCARDS); instanceOf(f, GT1123) && f.resize_2(Integer.truncate_1(Math.round_1(f.getWidth_0() * a)), Integer.truncate_1(Math.round_1(f.getHeight_0() * b))); var d = this.lastTinyCard.getX_0() + this.lastTinyCard.getWidth_0() + f.getWidth_0(), g = 63; this.getWidth_0() < d + g && ((g -= d + g - this.getWidth_0()), 20 > g && (g = 20)); d += g; d = Math.div(this.getWidth_0() - d, 2); e = Math.div(this.fieldGambleAmount.getY_0() + this.fieldGambleAmount.getHeight_0() + this.mainCard.getY_0(), 2); f.move_2(d, e - Math.div(f.getHeight_0(), 2)); this.historyCards.move_2(d + f.getWidth_0() + g, e - Math.div(this.historyCards.getHeight_0(), 2)); this.historyCardsPos = new GT1633(this.historyCards.getX_0(), this.historyCards.getY_0()); f = Math.min_2(a, b); d = this.getPercentalPosition_3(103, !0, !1); e = this.mainCard.getY_0() + Math.div(this.mainCard.getHeight_0(), 2); this.scaleContainer_2(this.buttonRed, f); this.buttonRed.resize_2(Integer.truncate_1(Math.round_1(this.buttonRed.getWidth_0() * f)), Integer.truncate_1(Math.round_1(this.buttonRed.getHeight_0() * f))); this.buttonRed.move_2(d, e - Math.div(this.buttonRed.getHeight_0(), 2)); d = this.getPercentalPosition_3(102, !0, !0); this.scaleContainer_2(this.buttonBlack, Math.min_2(a, b)); this.buttonBlack.resize_2(Integer.truncate_1(Math.round_1(this.buttonBlack.getWidth_0() * f)), Integer.truncate_1(Math.round_1(this.buttonBlack.getHeight_0() * f))); this.buttonBlack.move_2(d - this.buttonBlack.getWidth_0(), e - Math.div(this.buttonBlack.getHeight_0(), 2)); d = this.getPercentalPosition_3(66, !0, !1); e = this.getPercentalPosition_3(38, !1, !0); this.textInfo.resize_2(Integer.truncate_1(Math.round_1(this.textInfo.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textInfo.getHeight_0() * b))); this.textInfo.move_2(d, e - this.textInfo.getHeight_0()); this.textInfoAfterGamble.resize_2(Integer.truncate_1(Math.round_1(this.textInfoAfterGamble.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textInfoAfterGamble.getHeight_0() * b))); this.textInfoAfterGamble.move_2(d, e - this.textInfoAfterGamble.getHeight_0()); e = this.getPercentalPosition_3(300, !1, !1); this.textCongratulationConcrete.resize_2(Integer.truncate_1(Math.round_1(this.textCongratulationConcrete.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textCongratulationConcrete.getHeight_0() * b))); this.textCongratulationConcrete.move_2(d, e - this.textCongratulationConcrete.getHeight_0()); d = Math.div(this.getWidth_0() - this.textCongratulation.getWidth_0(), 2); e = this.getPercentalPosition_3(373, !1, !1); instanceOf(this.textCongratulation, GT1123) && this.textCongratulation.resize_2(Integer.truncate_1(Math.round_1(this.textCongratulation.getWidth_0() * a)), Integer.truncate_1(Math.round_1(this.textCongratulation.getHeight_0() * b))); this.textCongratulation.move_2(d, e); instanceOf(this.currencyText, GT1123) && (this.currencyText.resize_2(this.getWidth_0(), this.currencyText.getHeight_0()), this.currencyText.move_2(0, this.getPercentalPosition_3(20, !1, !1))); }, scaleContainer_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1525) ? (e.move_2(Integer.truncate_1(Math.round_1(e.getX_0() * b)), Integer.truncate_1(Math.round_1(e.getY_0() * b))), instanceOf(e, GT1437) && this.scaleContainer_2(e, b), instanceOf(e, GT1449) && e.resize_2(Integer.truncate_1(Math.round_1(e.getWidth_0() * b)), Integer.truncate_1(Math.round_1(e.getHeight_0() * b)))) : instanceOf(e, GT1591) ? (new GT1591( e.getParent_0(), Integer.truncate_1(Math.round_1(e.getX_0() * b)), Integer.truncate_1(Math.round_1(e.getY_0() * b)), Integer.truncate_1(Math.round_1(e.getWidth_0() * b)), Integer.truncate_1(Math.round_1(e.getHeight_0() * b)), e.getImage_0(), e.getSourcePointX_0(), e.getSourcePointY_0(), e.getSourceWidth_0(), e.getSourceHeight_0(), e.isCacheScaledVersion_0(), e.getColorTransformation_0() ).reorderToPosition_1(d), GT1560.prototype.destroyIfAlive_1(e)) : e.move_2(Integer.truncate_1(Math.round_1(e.getX_0() * b)), Integer.truncate_1(Math.round_1(e.getY_0() * b))); } }, start_0: function () { this.setWinAmount_0(); this.winStep < this.soundGambleLoopSteps.length && null != this.soundGambleLoopSteps[this.winStep] && this.isMoreGamblePossible_0() ? null != this.soundGambleLoopStepsPositions[this.winStep] ? this.skinManager .getSoundPlayer_0() .startLooped_6( this.soundGambleLoopSteps[this.winStep], this.soundGambleLoopStepsPositions[this.winStep][0], this.soundGambleLoopStepsPositions[this.winStep][1], this.soundGambleLoopStepsPositions[this.winStep][2], 100, 0 ) : this.skinManager.getSoundPlayer_0().startLooped_1(this.soundGambleLoopSteps[this.winStep]) : null != this.soundGamble && this.isMoreGamblePossible_0() && (null != this.soundLoopPositions ? this.skinManager.getSoundPlayer_0().startLooped_6(this.soundGamble, this.soundLoopPositions[0], this.soundLoopPositions[1], this.soundLoopPositions[2], 100, 0) : this.skinManager.getSoundPlayer_0().startLooped_1(this.soundGamble)); this.isMoreGamblePossible_0() ? (null != this.buttonBlack && this.buttonBlack.setActive_1(!0), null != this.buttonRed && this.buttonRed.setActive_1(!0), this.buildMainCard_1(!0)) : null != this.buttonBlack && null != this.buttonRed && (this.buttonBlack.hide_1(!0), this.buttonRed.hide_1(!0), this.useConcreteCongratsText && null != this.textCongratulationConcrete ? (this.getNumberOfPossibleGambleSteps_0() == this.maxGambleSteps ? this.textCongratulationConcrete.setText_1(this.skinManager.getText_1("${gamble_redblack_info_gratulation_maxsteps}")) : this.textCongratulationConcrete.setText_1(this.skinManager.getText_1("${gamble_redblack_info_gratulation_maxpayout}")), this.textCongratulationConcrete.hide_1(!1)) : this.textCongratulation.hide_1(!1)); this.buildHistoryCards_1(!1); this.isMoreGamblePossible_0() || this.mainCard.hide_1(!0); this.textCardSelected.hide_1(!0); }, showWin_0: function () { this.setWinAmount_0(); this.isMoreGamblePossible_0() || null == this.soundGambleWinTop ? null != this.soundGambleWin && this.skinManager .getSoundPlayer_0() .start_4( this.soundGambleWin, null, 0, this.soundGambleWinStopPositions.length > this.getNumberOfWins_0() - 1 && 0 < this.getNumberOfWins_0() ? this.soundGambleWinStopPositions[this.getNumberOfWins_0() - 1] : 0 ) : this.skinManager.getSoundPlayer_0().start_1(this.soundGambleWinTop); this.selectedCard_1(!0); this.buildMainCard_1(!1); this.refreshColVariable_0(); this.cardTurnAnimation_1(!0); null != this.soundGamble && this.skinManager.getSoundPlayer_0().stop_1(this.soundGamble); this.winStep < this.soundGambleLoopSteps.length && null != this.soundGambleLoopSteps[this.winStep] && this.skinManager.getSoundPlayer_0().stop_1(this.soundGambleLoopSteps[this.winStep]); this.winStep++; }, showLost_0: function () { null != this.currencyText && this.currencyText.isAlive_0() && this.currencyText.hide_1(!0); null != this.soundGambleLost && this.skinManager.getSoundPlayer_0().start_1(this.soundGambleLost); null != this.textInfo && this.textInfo.isAlive_0() && this.textInfo.hide_1(!0); this.textGambleAmount.destroy_0(); this.textGambleWin.destroy_0(); this.fieldGambleAmount.destroy_0(); this.fieldGambleToWin.destroy_0(); this.selectedCard_1(!1); this.buildMainCard_1(!1); this.refreshColVariable_0(); this.cardTurnAnimation_1(!1); }, refreshColVariable_0: function () { for (var a = this.gambleHistoryLength - 1; 0 <= a; a--) if (((this.col = -1), null != this.getGambleHistory_0())) { var b = this.getGambleHistory_0().length_0() - 1 - a; if (0 <= b && b < this.getGambleHistory_0().length_0()) if (((b = this.getGambleHistory_0().charAt_1(b)), 99 == b || 67 == b)) this.col = 0; else if (115 == b || 83 == b) this.col = 1; else if (104 == b || 72 == b) this.col = 2; else if (100 == b || 68 == b) this.col = 3; } }, init_0: function () { this.setRemoveCurrencySymbol_1(!1); this.currencyText = this.findDescendant_1(this.CURRENCY_TEXT); if (null != this.currencyText) { if ( (this.setRemoveCurrencySymbol_1(this.isShowCurrencyText_0() && instanceOf(this.getCurrencyFormatter_0(), GT711) && 0 < this.getCurrencyFormatter_0().getCurrencySymbol_0().length_0()), this.currencyText.hide_1(!this.isRemoveCurrencySymbol_0()), instanceOf(this.getCurrencyFormatter_0(), GT711) && instanceOf(this.currencyText, GT1584)) ) { var a = GT1677.prototype.replaceInString_3(this.currencyText.getText_0(), "#0", this.getCurrencyFormatter_0().getCurrencySymbol_0()); this.currencyText.setText_1(a); } } else GT1650.prototype.assertExp_2(!this.isShowCurrencyText_0(), "CURRENCY_TEXT missing in paytable"); a = this.findDescendant_1(GT346.prototype.ID_BUTTON_BLACK); null != a && instanceOf(a, GT1559) && ((this.buttonBlack = a), this.buttonBlack.addButtonListener_1(this), this.isMoreGamblePossible_0() || this.buttonBlack.setActive_1(!1)); a = this.findDescendant_1(GT346.prototype.ID_BUTTON_RED); null != a && instanceOf(a, GT1559) && ((this.buttonRed = a), this.buttonRed.addButtonListener_1(this), this.isMoreGamblePossible_0() || this.buttonRed.setActive_1(!1)); this.mainCard = this.findDescendant_1(GT346.prototype.ID_MAINCARD); this.mainCardPos = new GT1633(this.mainCard.getX_0(), this.mainCard.getY_0()); this.historyCards = this.findDescendant_1(GT346.prototype.ID_CARDS); this.historyCardsPos = new GT1633(this.historyCards.getX_0(), this.historyCards.getY_0()); this.textCongratulation = this.findDescendant_1(GT346.prototype.ID_TEXT_CONGRATULATION); this.textCongratulation.hide_1(!0); this.textCongratulationConcrete = this.findDescendant_1(GT346.prototype.ID_TEXT_CONGRATULATION_CONCRETE); null != this.textCongratulationConcrete && this.textCongratulationConcrete.hide_1(!0); this.textInfo = this.findDescendant_1(GT346.prototype.ID_TEXT_INFO); this.textInfoAfterGamble = this.findDescendant_1(GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE); this.textCardSelected = this.findDescendant_1(GT346.prototype.ID_TEXT_CARDSELECTED); null == this.textCardSelected && (this.textCardSelected = new GT1560(this, 0, 0, 0, 0)); this.textCardSelected.hide_1(!0); this.textGambleAmount = this.findDescendant_1(GT346.prototype.ID_TEXT_GAMBLEAMOUNT); this.textGambleWin = this.findDescendant_1(GT346.prototype.ID_TEXT_GAMBLETOWIN); this.fieldGambleAmount = this.findDescendant_1(GT346.prototype.ID_FIELD_GAMBLEAMOUNT); this.fieldGambleToWin = this.findDescendant_1(GT346.prototype.ID_FIELD_GAMBLETOWIN); if (instanceOf(this.textGambleAmount, GT1123)) { var b = this.textGambleAmount, a = b.getAllFontMetrics_0()[0]; b.resize_2(a.stringWidth_1(b.getText_0()) + 20, b.getHeight_0()); b.move_2(this.fieldGambleAmount.getX_0() + Math.div(this.fieldGambleAmount.getWidth_0() - this.textGambleAmount.getWidth_0(), 2), this.textGambleAmount.getY_0()); } instanceOf(this.textGambleWin, GT1123) && ((b = this.textGambleWin), (a = b.getAllFontMetrics_0()[0]), b.resize_2(a.stringWidth_1(b.getText_0()) + 20, b.getHeight_0()), b.move_2(this.fieldGambleToWin.getX_0() + Math.div(this.fieldGambleToWin.getWidth_0() - this.textGambleWin.getWidth_0(), 2), this.textGambleWin.getY_0())); b = this.findDescendant_1(GT346.prototype.ID_TEXT_PREVCARDS); instanceOf(b, GT1123) && ((a = b.getAllFontMetrics_0()[0]), b.resize_2(a.stringWidth_1(b.getText_0()) + 20, b.getHeight_0()), b.move_2(this.historyCardsPos.x - 63 - b.getWidth_0(), b.getY_0())); this.isMoreGamblePossible_0() && this.buildMainCard_1(!1); this.buildHistoryCards_1(!1); this.setWinAmount_0(); this.shouldReplacePercental && this.scalePercental_0(); }, stop_0: function () { null != this.blinkAnimator && this.blinkAnimator.pause_0(); null != this.soundGamble && this.skinManager.getSoundPlayer_0().stop_1(this.soundGamble); this.winStep < this.soundGambleLoopSteps.length && null != this.soundGambleLoopSteps[this.winStep] && this.skinManager.getSoundPlayer_0().stop_1(this.soundGambleLoopSteps[this.winStep]); null != this.soundGambleWinTop && this.skinManager.getSoundPlayer_0().stop_2(this.soundGambleWinTop, 600); null != this.buttonBlack && (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 0), this.buttonBlack.setActive_1(!0), this.buttonBlack.setActive_1(!1)); null != this.buttonRed && (this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 0), this.buttonRed.setActive_1(!0), this.buttonRed.setActive_1(!1)); }, buildMainCard_1: function (a) { this.mainCard.move_2(this.mainCardPos.x, this.mainCardPos.y); this.mainCard.destroyChildren_0(); if (!this.isMoreGamblePossible_0() && 0 <= this.col) new GT1591(this.mainCard, 0, 0, this.cardWidth, this.cardHeight, this.imageGambleCard, (this.col + 2) * this.cardWidth, 0, this.cardWidth, this.cardHeight); else { var b = Math.min_2(this.getWidth_0() / 1232, this.getHeight_0() / 708), d = new GT1591( this.mainCard, 0, 0, Integer.truncate_1(this.cardWidth * (this.shouldReplacePercental ? b : 1)), Integer.truncate_1(this.cardHeight * (this.shouldReplacePercental ? b : 1)), this.imageGambleCard, this.cardWidth, 0, this.cardWidth, this.cardHeight ), b = new GT1591( this.mainCard, 0, 0, Integer.truncate_1(this.cardWidth * (this.shouldReplacePercental ? b : 1)), Integer.truncate_1(this.cardHeight * (this.shouldReplacePercental ? b : 1)), this.imageGambleCard, 0, 0, this.cardWidth, this.cardHeight ); a && ((this.blinkAnimator = new GT1127(this.skinManager.getTimer_0(), [d, b], 100, 100, 2e9)), this.blinkAnimator.setHideInversion_1(1), this.blinkAnimator.start_0()); } this.mainCard.resizeToContent_0(); }, buildHistoryCards_1: function (a) { this.historyCards.move_2(this.historyCardsPos.x, this.historyCardsPos.y); this.historyCards.destroyChildren_0(); for (var b = Math.min_2(this.getWidth_0() / 1232, this.getHeight_0() / 708), d = this.gambleHistoryLength - 1; 1 <= d; d--) { var e = this.gambleHistoryX[d - 1], f = this.gambleHistoryY[d - 1]; this.col = -1; if (null != this.getGambleHistory_0()) { var g = this.getGambleHistory_0().length_0() - 1 - d; a || g++; if (0 <= g && g < this.getGambleHistory_0().length_0()) { g = this.getGambleHistory_0().charAt_1(g); if (99 == g || 67 == g) this.col = 0; if (115 == g || 83 == g) this.col = 1; if (104 == g || 72 == g) this.col = 2; if (100 == g || 68 == g) this.col = 3; } } 0 == d && 0 <= this.col ? new GT1591( this.historyCards, e, f, Integer.truncate_1(this.cardTinyWidth * (this.shouldReplacePercental ? b : 1)), Integer.truncate_1(this.cardTinyHeight * (this.shouldReplacePercental ? b : 1)), this.imageGambleCard, (this.col + 2) * this.cardWidth, 0, this.cardWidth, this.cardHeight ) : d == this.gambleHistoryLength - 1 ? (this.lastTinyCard = new GT1591( this.historyCards, e, f, Integer.truncate_1(this.cardTinyWidth * (this.shouldReplacePercental ? b : 1)), Integer.truncate_1(this.cardTinyHeight * (this.shouldReplacePercental ? b : 1)), this.imageGambleCard, 0 > this.col ? 0 : (this.col + 2) * this.cardWidth, 0, this.cardWidth, this.cardHeight )) : new GT1591( this.historyCards, e, f, Integer.truncate_1(this.cardTinyWidth * (this.shouldReplacePercental ? b : 1)), Integer.truncate_1(this.cardTinyHeight * (this.shouldReplacePercental ? b : 1)), this.imageGambleCard, 0 > this.col ? 0 : (this.col + 2) * this.cardWidth, 0, this.cardWidth, this.cardHeight ); } this.historyCards.resizeToContent_0(); }, replaceCardsAfterTopWin_0: function () { this.buildHistoryCards_1(!1); this.mainCard.destroyChildren_0(); }, setWinAmount_0: function () { if (this.isMoreGamblePossible_0()) { var a = this.getOmitCentPolicy_2([this.getCurrentWin_0(), this.getPossibleGambleStep_1(this.getNumberOfWins_0())], !0); this.fieldGambleAmount.setText_1(this.getWinText_2(this.formatWin_2(this.getCurrentWin_0(), a), this.getCurrentSuperGames_0())); this.fieldGambleToWin.setText_1(this.getWinText_2(this.formatWin_2(this.getPossibleGambleStep_1(this.getNumberOfWins_0()), a), this.getPossibleSuperGameGambleStep_1(this.getNumberOfWins_0()))); } else null != this.currencyText && this.currencyText.isAlive_0() && this.currencyText.hide_1(!0), null != this.textInfo && this.textInfo.isAlive_0() && this.textInfo.hide_1(!0), null != this.textInfoAfterGamble && this.textInfoAfterGamble.isAlive_0() && this.textInfoAfterGamble.hide_1(!1), GT1560.prototype.destroyIfAlive_1(this.textGambleAmount), GT1560.prototype.destroyIfAlive_1(this.textGambleWin), GT1560.prototype.destroyIfAlive_1(this.fieldGambleAmount), GT1560.prototype.destroyIfAlive_1(this.fieldGambleToWin); }, selectedCard_1: function (a) { var b = this.getGambleHistory_0().charAt_1(this.getGambleHistory_0().length_0() - 1); a = ((99 == b || 67 == b || 115 == b || 83 == b) && a) || ((104 == b || 72 == b || 100 == b || 68 == b) && !a) ? this.buttonBlack : this.buttonRed; null != a && (this.textCardSelected.move_2(this.selectedCardTextOffsetX + a.getX_0() + Math.div(a.getWidth_0() - this.textCardSelected.getWidth_0(), 2), a.getY_0() + 40 + this.selectedCardTextOffsetY), this.textCardSelected.reorder_1(!0), this.textCardSelected.hide_1(!1)); null != this.buttonBlack && null != this.buttonRed && (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 0), this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 0), null != a && a.setChildForState_2(GT1236.prototype.INACTIVE, 2), this.buttonBlack.setActive_1(!0), this.buttonRed.setActive_1(!0), this.buttonBlack.setActive_1(!1), this.buttonRed.setActive_1(!1)); }, cardTurnAnimation_1: function (a) { this.mainCard.destroyChildren_0(); var b = new GT1075(this.mainCard, 0, 0, this.cardWidth, this.cardHeight, this.imageGambleCard, Math.div(this.cardWidth, 2), Math.div(this.cardHeight, 2), 0, 0, this.cardWidth, this.cardHeight); b.setTranslation_2(this.cardWidth / 2, this.cardHeight / 2); var d = (this.col + 2) * this.cardWidth; this.frontside = new GT1075(this.mainCard, 0, 0, this.cardWidth, this.cardHeight, this.imageGambleCard, d + Math.div(this.cardWidth, 2), Math.div(this.cardHeight, 2), d, 0, this.cardWidth, this.cardHeight); this.frontside.setTranslation_2(this.cardWidth / 2, this.cardHeight / 2); this.frontside.hide_1(!0); this.cardTurnAnimator = new GT371(this.skinManager.getTimer_0(), b, this.frontside); this.cardTurnAnimator.start_0(); a ? this.cardTurnAnimator.addFinishCallback_1(new GT1509(this, "moveMainCard")) : this.cardTurnAnimator.addFinishCallback_1(new GT1509(this, "showWrongCard")); this.mainCard.resizeToContent_0(); }, moveMainCard_0: function () { this.mainCard.reorder_1(!0); new GT653( this.skinManager.getTimer_0(), this.mainCard, this.gambleHistoryX[0] + this.historyCardsPos.x - Math.div(this.cardWidth - this.cardTinyWidth, 2), this.gambleHistoryY[0] + this.historyCardsPos.y - Math.div(this.cardHeight - this.cardTinyHeight, 2), this.animationTime, !1 ).start_0(); var a = new GT1132(this.skinManager.getTimer_0(), this.frontside, 1, this.animationTime, 1, this.scaleFactorX, 1, this.scaleFactorY, !1); this.isMoreGamblePossible_0() || a.addFinishCallback_1(new GT448(this)); a.start_0(); this.isMoreGamblePossible_0() || this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "animationFinished"), this.animationTime + 500); }, moveHistoryCards_0: function () { new GT653(this.skinManager.getTimer_0(), this.historyCards, this.historyCardsPos.x + this.gambleHistoryX[1] - this.gambleHistoryX[0], this.historyCardsPos.y, this.animationTime, !1).start_0(); var a = [[this.animationTime, 255, 0]]; new GT1191(this.skinManager.getTimer_0(), this.lastTinyCard, !1, a).start_0(); this.isMoreGamblePossible_0() && this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "animationFinished"), this.animationTime); }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { for (var b = this.getGambleListener_0().clone_0(), d = b.size_0(), e = 0; e < d; e++) a.getApplicationID_0() == GT346.prototype.ID_BUTTON_RED && b.elementAt_1(e).gambleButtonPressed_2(GT1354.prototype.GAMBLE_RED, 45), a.getApplicationID_0() == GT346.prototype.ID_BUTTON_BLACK && b.elementAt_1(e).gambleButtonPressed_2(GT1354.prototype.GAMBLE_BLACK, 45); null != this.buttonBlack && null != this.buttonRed && (a.getApplicationID_0() == GT346.prototype.ID_BUTTON_BLACK ? (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 2), this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 0)) : (this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 2), this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 0)), this.buttonBlack.setActive_1(!1), this.buttonRed.setActive_1(!1)); }, run_1: function (a) { if (null != this && this.isAlive_0() && null != a) if (a.equals_1("moveMainCard")) this.moveMainCard_0(), this.moveHistoryCards_0(); else if (a.equals_1("animationFinished")) { a = this.getGambleListener_0().clone_0(); for (var b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).animationFinished_0(); } else a.equals_1("showWrongCard") && this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "animationFinished"), 1600); }, setActive_1: function (a) { null != this.buttonBlack && (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 1), this.buttonBlack.setActive_1(!a), this.buttonBlack.setActive_1(a)); null != this.buttonRed && (this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 1), this.buttonRed.setActive_1(!a), this.buttonRed.setActive_1(a)); }, setUseConcreteCongratulationsText_1: function (a) { this.useConcreteCongratsText = a; }, forwardEvent_1: function (a) { a.getId_0() == GT1354.prototype.GAMBLE_BLACK ? (null != this.buttonRed && (this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 0), this.buttonRed.setActive_1(!0), this.buttonRed.setActive_1(!1)), null != this.buttonBlack && (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 2), this.buttonBlack.setActive_1(!0), this.buttonBlack.setActive_1(!1))) : a.getId_0() == GT1354.prototype.GAMBLE_RED && (null != this.buttonBlack && (this.buttonBlack.setChildForState_2(GT1236.prototype.INACTIVE, 0), this.buttonBlack.setActive_1(!0), this.buttonBlack.setActive_1(!1)), null != this.buttonRed && (this.buttonRed.setChildForState_2(GT1236.prototype.INACTIVE, 2), this.buttonRed.setActive_1(!0), this.buttonRed.setActive_1(!1))); }, setAnimationTime_1: function (a) { this.animationTime = a; }, setMaxGambleSteps_1: function (a) { this.maxGambleSteps = a; }, }, "GT346", [GT1066, GT1482] ), GT448 = Class.extend( { initialConstructor_0: function () { this.gamble = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gamble = null; this.gamble = a; }, run_0: function () { this.gamble.replaceCardsAfterTopWin_0(); }, }, "GT448", [Runnable] ); GT346.prototype.ID_BUTTON_RED = GT1560.prototype.generateID_0(); GT346.prototype.ID_BUTTON_BLACK = GT1560.prototype.generateID_0(); GT346.prototype.ID_MAINCARD = GT1560.prototype.generateID_0(); GT346.prototype.ID_CARDS = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_BUTTON_RED = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_BUTTON_BLACK = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_PREVCARDS = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_INFO = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_INFO_AFTER_GAMBLE = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_CARDSELECTED = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_CONGRATULATION = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_CONGRATULATION_CONCRETE = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_GAMBLETOWIN = GT1560.prototype.generateID_0(); GT346.prototype.ID_TEXT_GAMBLEAMOUNT = GT1560.prototype.generateID_0(); GT346.prototype.ID_FIELD_GAMBLEAMOUNT = GT1560.prototype.generateID_0(); GT346.prototype.ID_FIELD_GAMBLETOWIN = GT1560.prototype.generateID_0(); GT346.prototype.GAMBLE_RED = "gamblered"; GT346.prototype.GAMBLE_BLACK = "gambleblack"; var GT242 = GT737.extend( { initialConstructor_0: function () { this.pyramidPosX = 0; this.soundLoopPositions = this.soundgamblewinstoppositions = this.soundGamble = this.soundGambleLost = this.soundGambleWinTop = this.soundGambleWinSteps = this.colorWins = this.fontWin = this.fontTopWin = this.imageGambleTopWin = this.imageGambleWins = this.skinManager = null; this.collectHalf = !1; this.containerTop = this.containerPyramid = this.containerMain = this.imgPyramid = this.imgTop = this.fieldGambleToWin = this.fieldGambleAmount = this.textLost = this.textCongratulations = this.textGambleWin = this.textGambleAmount = null; this.numPyramidSteps = 0; this.animatorGamble = this.wintextOffset = null; this.isHalfCollect = !1; this.speed = this.minSpacingBelowPyramid = this.minSpacingAbovePyramid = this.delay = this.lastBlinking = this.halfCollectsLastTime = this.stepsDoneLastTime = 0; this.otherDarknessAnimators = this.objectsToDarkenWhenLostGamble = this.colorTransMid = this.colorTransDark = this.colorTransBright = null; GT737.prototype.initialConstructor_0.call(this); }, initialConstructor_22: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I) { this.pyramidPosX = 0; this.soundLoopPositions = this.soundgamblewinstoppositions = this.soundGamble = this.soundGambleLost = this.soundGambleWinTop = this.soundGambleWinSteps = this.colorWins = this.fontWin = this.fontTopWin = this.imageGambleTopWin = this.imageGambleWins = this.skinManager = null; this.collectHalf = !1; this.containerTop = this.containerPyramid = this.containerMain = this.imgPyramid = this.imgTop = this.fieldGambleToWin = this.fieldGambleAmount = this.textLost = this.textCongratulations = this.textGambleWin = this.textGambleAmount = null; this.numPyramidSteps = 0; this.animatorGamble = this.wintextOffset = null; this.isHalfCollect = !1; this.speed = this.minSpacingBelowPyramid = this.minSpacingAbovePyramid = this.delay = this.lastBlinking = this.halfCollectsLastTime = this.stepsDoneLastTime = 0; this.otherDarknessAnimators = this.objectsToDarkenWhenLostGamble = this.colorTransMid = this.colorTransDark = this.colorTransBright = null; GT737.prototype.initialConstructor_7.call(this, a, b, d, e, f, C, E); this.pyramidPosX = g; this.skinManager = k; this.imageGambleWins = m; this.imageGambleTopWin = n; this.fontTopWin = p; this.fontWin = q; this.colorWins = r; this.soundGambleWinSteps = t; this.soundgamblewinstoppositions = H; this.soundLoopPositions = I; this.soundGambleWinTop = u; this.soundGambleLost = B; this.soundGamble = A; this.collectHalf = F; this.delay = 100 < D ? D : 600; this.minSpacingBelowPyramid = this.minSpacingAbovePyramid = 30; this.speed = 65; this.colorTransBright = new GT1063(100); this.colorTransDark = new GT1063(50); this.colorTransMid = new GT1063(75); this.objectsToDarkenWhenLostGamble = new java_util_JavaScriptVector(); this.otherDarknessAnimators = new java_util_JavaScriptVector(); this.numPyramidSteps = 15; this.initPyramidArrays_1(this.numPyramidSteps); this.wintextOffset = [0, -13, -26, -38, -49, -60, -69, -78, -88, -95, -102, -109, -113, -117, -120]; null == this.fontTopWin && (this.fontTopWin = this.fieldGambleAmount.getFontMetrics_0()); null == this.fontWin && (this.fontWin = this.fieldGambleAmount.getFontMetrics_0()); }, initPyramidArrays_1: function (a) { this.imgPyramid = [].createArray(a); this.containerPyramid = [].createArray(a); }, hideGuiObject_2: function (a, b) { null != a && a.isAlive_0() && a.hide_1(b); }, init_0: function () { this.setRemoveCurrencySymbol_1(!1); var a = this.findDescendant_1(this.CURRENCY_TEXT); if (null != a) { if ( (this.setRemoveCurrencySymbol_1(this.isShowCurrencyText_0() && instanceOf(this.getCurrencyFormatter_0(), GT711) && 0 < this.getCurrencyFormatter_0().getCurrencySymbol_0().length_0()), a.hide_1(!this.isRemoveCurrencySymbol_0()), instanceOf(this.getCurrencyFormatter_0(), GT711) && instanceOf(a, GT1584)) ) { var b = GT1677.prototype.replaceInString_3(a.getText_0(), "#0", this.getCurrencyFormatter_0().getCurrencySymbol_0()); a.setText_1(b); } } else GT1650.prototype.assertExp_2(!this.isShowCurrencyText_0(), "CURRENCY_TEXT missing in paytable"); this.textLost = this.findDescendant_1(GT242.prototype.ID_TEXT_LOST); this.hideGuiObject_2(this.textLost, !0); this.textCongratulations = this.findDescendant_1(GT242.prototype.ID_TEXT_CONGRATULATION); this.hideGuiObject_2(this.textCongratulations, !0); this.textGambleAmount = this.findDescendant_1(GT242.prototype.ID_TEXT_GAMBLEAMOUNT); this.textGambleWin = this.findDescendant_1(GT242.prototype.ID_TEXT_GAMBLETOWIN); this.fieldGambleAmount = this.findDescendant_1(GT242.prototype.ID_FIELD_GAMBLEAMOUNT); this.fieldGambleToWin = this.findDescendant_1(GT242.prototype.ID_FIELD_GAMBLETOWIN); this.containerMain = new GT1437(this); this.buildPyramid_0(); this.setWinAmount_0(); }, start_0: function () { this.containerMain.destroyChildren_0(); this.buildPyramid_0(); this.hideGuiObject_2(this.textGambleAmount, !1); this.hideGuiObject_2(this.textGambleWin, !1); this.hideGuiObject_2(this.fieldGambleAmount, !1); this.hideGuiObject_2(this.fieldGambleToWin, !1); null != this.soundGamble && this.isMoreGamblePossible_0() && (null != this.soundLoopPositions ? this.skinManager.getSoundPlayer_0().startLooped_6(this.soundGamble, this.soundLoopPositions[0], this.soundLoopPositions[1], this.soundLoopPositions[2], 100, 0) : this.skinManager.getSoundPlayer_0().startLooped_1(this.soundGamble)); }, showWin_0: function () { null != this.containerTop && this.containerTop.isAlive_0() && this.containerTop.setColorTransformation_1(this.colorTransBright); this.getHalfCollects_0() < this.halfCollectsLastTime ? (this.isHalfCollect = !0) : (this.isHalfCollect = !1); this.halfCollectsLastTime = this.getHalfCollects_0(); this.isLuckyLoser_0() && !this.isHalfCollect ? (null != this.soundGambleLost && this.skinManager.getSoundPlayer_0().start_1(this.soundGambleLost), this.hideLabels_1(!0), this.startLoseAnimation_0(), this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "luckyloser"), 3e3)) : this.startWinAnimation_0(); }, showLost_0: function () { null != this.animatorGamble && this.animatorGamble.darkenAndStop_1(this.colorTransDark); null != this.soundGambleLost && this.skinManager.getSoundPlayer_0().start_1(this.soundGambleLost); this.hideLabels_1(!0); this.startLoseAnimation_0(); this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "animationFinished"), 1e3); }, stop_0: function () { null != this.soundGamble && this.skinManager.getSoundPlayer_0().stop_1(this.soundGamble); null != this.soundGambleWinTop && this.skinManager.getSoundPlayer_0().stop_2(this.soundGambleWinTop, 600); null != this.animatorGamble && this.animatorGamble.darkenAndStop_1(this.colorTransDark); this.containerMain.isAlive_0() && null != this.containerMain && 0 < this.getNumberOfPossibleGambleSteps_0() && (this.getNumberOfPossibleGambleSteps_0() == this.getNumberOfWins_0() + 1 ? (this.containerMain.destroyChildren_0(), this.buildPyramid_2(!0, !1)) : this.getNumberOfPossibleGambleSteps_0() == this.getNumberOfWins_0() && (this.containerMain.destroyChildren_0(), this.buildPyramid_2(!0, !0))); }, determineRealHeight_1: function (a) { if (null != this.imgPyramid && 0 < this.imgPyramid.length) for (var b = this.imgPyramid.length - 1; 0 <= b; --b) if (null != this.imgPyramid[b]) return this.imgPyramid[b].getY_0() + a + this.minSpacingAbovePyramid + this.minSpacingBelowPyramid; return 0; }, buildPyramid_0: function () { this.buildPyramid_2(!1, !1); }, buildPyramid_2: function (a, b) { var d = this.getNumberOfPossibleGambleSteps_0(), e = this.getNumberOfWins_0(), f = this.imageGambleWins.getWidth_0(), g = Math.div(this.imageGambleWins.getHeight_0(), this.numPyramidSteps), k = this.imageGambleTopWin.getWidth_0(), m = Math.div(this.imageGambleTopWin.getHeight_0(), 2), n = (d - 1) * g + m, p = (0 < this.pyramidPosX ? this.pyramidPosX : Math.div(this.getWidth_0(), 2) - Math.div(k, 2)) + Math.div(k - f, 2), n = Math.div(this.getHeight_0() - n, 2); n < this.minSpacingAbovePyramid && (n = this.minSpacingAbovePyramid); this.objectsToDarkenWhenLostGamble.clear_0(); this.otherDarknessAnimators.clear_0(); this.stepsDoneLastTime = this.getNumberOfWins_0(); this.containerTop = new GT1437(this.containerMain); var q = (e >= d - 1 && !a) || b, r = 0 < this.pyramidPosX ? this.pyramidPosX : Math.div(this.containerTop.getWidth_0(), 2) - Math.div(k, 2); this.imgTop = new GT1591(this.containerTop, r, n, k, m, this.imageGambleTopWin, 0, q ? 0 : m); var n = n + m, t = this.getOmitCentPolicy_2([this.getPossibleGambleStep_1(d - 1)], !1), k = new GT1606( this.containerMain, 0, 0, GT1606.prototype.ALIGN_LEFT, this.getWinText_2(this.formatWin_2(this.getPossibleGambleStep_1(d - 1), t), this.getPossibleSuperGameGambleStep_1(d - 1)), this.fontTopWin, this.colorWins, 1, GT1634.prototype.black ); k.move_2(this.imgTop.getX_0() + Math.div(this.imgTop.getWidth_0(), 2) - Math.div(k.getWidth_0(), 2), this.imgTop.getY_0() + Math.div(this.imgTop.getHeight_0(), 2) - Math.div(k.getHeight_0(), 2)); this.getNumberOfWins_0() != d - 1 || a ? e == d && ((q = d - 1), a || ((r = new GT372(this.skinManager.getTimer_0(), this.containerTop, this.speed, d + 2 - q, 1 + q, 1 + q)), r.start_0(), this.otherDarknessAnimators.add_1(r))) : ((this.animatorGamble = new GT372(this.skinManager.getTimer_0(), this.containerTop, this.speed)), this.animatorGamble.start_0()); if (d > this.numPyramidSteps) for ( this.initPyramidArrays_1(d), m = [].createArray(this.wintextOffset.length).init(0), java_lang_System.prototype.arraycopy_5(this.wintextOffset, 0, m, 0, this.wintextOffset.length), this.wintextOffset = [].createArray(d).init(0), java_lang_System.prototype.arraycopy_5(m, 0, this.wintextOffset, 0, m.length), k = m.length; k < this.wintextOffset.length; ++k ) this.wintextOffset[k] = m[m.length - 1]; for (k = 0; k < d - 1; k++) (this.containerPyramid[k] = new GT1437(this.containerMain)), (this.imgPyramid[k] = new GT1591(this.containerPyramid[k], p, n, f, g, this.imageGambleWins, 0, k < this.numPyramidSteps ? g * k : g * (this.numPyramidSteps - 1))), (n += g), this.objectsToDarkenWhenLostGamble.addElement_1(this.containerPyramid[k]), (m = this.imgPyramid[k].getX_0() + this.imgPyramid[k].getWidth_0() + 50 + this.wintextOffset[k]), (q = d - 2 - k), e != q || a ? e <= q ? this.containerPyramid[k].setColorTransformation_1(this.colorTransDark) : e != d || a || ((r = new GT372(this.skinManager.getTimer_0(), this.containerPyramid[k], this.speed, d + 2 - q, 1 + q, 1 + q)), r.start_0(), this.otherDarknessAnimators.add_1(r)) : ((this.lastBlinking = k), (this.animatorGamble = new GT372(this.skinManager.getTimer_0(), this.containerPyramid[k], this.speed)), this.animatorGamble.start_0()), e > q && ((r = new GT1437(this.containerMain)), (t = this.getOmitCentPolicy_2([this.getPossibleGambleStep_1(q)], !1)), (q = new GT1606( r, m, this.imgPyramid[k].getY_0(), GT1606.prototype.ALIGN_LEFT, this.getWinText_2(this.formatWin_2(this.getPossibleGambleStep_1(q), t), this.getPossibleSuperGameGambleStep_1(q)), this.fontWin, this.colorWins, 1, GT1634.prototype.black )), q.move_2(m, this.imgPyramid[k].getY_0() + Math.div(this.imgPyramid[k].getHeight_0(), 2) - Math.div(q.getHeight_0(), 2)), r.shrinkWrap_0(), this.objectsToDarkenWhenLostGamble.addElement_1(r)); d = this.determineRealHeight_1(g); d > this.getHeight_0() && (this.containerMain.resize_2(this.containerMain.getWidth_0(), d), (d = GT1677.prototype.division_2(this.getHeight_0(), d)), this.containerMain.setContentScaling_2(d, d), (d = Math.div(this.getWidth_0() - GT1672.prototype.doubleToInt_1(this.containerMain.getWidth_0() * d), 2)), this.containerMain.move_2(d, 0)); }, startWinAnimation_0: function () { if (!this.isHalfCollect && !this.isLuckyLoser_0()) if (!this.isMoreGamblePossible_0() && null != this.soundGambleWinTop) this.skinManager.getSoundPlayer_0().start_1(this.soundGambleWinTop); else if (null != this.soundGambleWinSteps) { var a = 0 < this.getNumberOfWins_0() ? this.getNumberOfWins_0() - 1 : 0; if (null != this.soundgamblewinstoppositions) this.skinManager.getSoundPlayer_0().start_4(this.soundGambleWinSteps[0], null, 0, this.soundgamblewinstoppositions.length > a ? this.soundgamblewinstoppositions[a] : 0); else { var b = this.getNextAvailableWinSound_1(a); a < this.soundGambleWinSteps.length && null != this.soundGambleWinSteps[a] ? this.skinManager.getSoundPlayer_0().start_1(this.soundGambleWinSteps[a]) : null != b && this.skinManager.getSoundPlayer_0().start_1(b); } } this.setWinAmount_0(); if (null != this.imgPyramid[this.lastBlinking]) { var a = this.imgPyramid[this.lastBlinking].getX_0() + this.imgPyramid[this.lastBlinking].getWidth_0() + 50 + this.wintextOffset[this.lastBlinking], d = this.getNumberOfPossibleGambleSteps_0() - 2 - this.lastBlinking, d = 0 > d ? 0 : d, b = new GT1437(this.containerMain), e = this.getOmitCentPolicy_2([this.getPossibleGambleStep_1(d)], !1), d = new GT1606( b, a, this.imgPyramid[this.lastBlinking].getY_0(), GT1606.prototype.ALIGN_LEFT, this.getWinText_2(this.formatWin_2(this.getPossibleGambleStep_1(d), e), this.getPossibleSuperGameGambleStep_1(d)), this.fontWin, this.colorWins, 1, GT1634.prototype.black ), e = this.imgPyramid[this.lastBlinking].getY_0() + Math.div(this.imgPyramid[this.lastBlinking].getHeight_0(), 2) - Math.div(d.getHeight_0(), 2); d.move_2(a, e); b.shrinkWrap_0(); } GT1560.prototype.isAlive_1(this.containerPyramid[this.lastBlinking]) && this.containerPyramid[this.lastBlinking].setColorTransformation_1(this.colorTransBright); this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "animationFinished"), this.delay); }, getNextAvailableWinSound_1: function (a) { for (var b = a; b < this.soundGambleWinSteps.length; b++) if (null != this.soundGambleWinSteps[b]) return this.soundGambleWinSteps[b]; for (b = a; 0 <= b; b--) if (b < this.soundGambleWinSteps.length && null != this.soundGambleWinSteps[b]) return this.soundGambleWinSteps[b]; return null; }, startLoseAnimation_0: function () { for (var a = 20, b = 0; b < this.objectsToDarkenWhenLostGamble.size_0(); b++) { var d = this.objectsToDarkenWhenLostGamble.elementAt_1(b); null == d.getColorTransformation_0() && d.setColorTransformation_1(this.colorTransMid); d = new GT372(this.skinManager.getTimer_0(), d, 20, a, 0, 0, this.colorTransDark); d.start_0(); this.otherDarknessAnimators.add_1(d); a++; } null != this.containerPyramid[this.lastBlinking] && this.containerPyramid[this.lastBlinking].isAlive_0() && this.containerPyramid[this.lastBlinking].setColorTransformation_1(this.colorTransMid); }, startLuckyLoserAnimation_0: function () { for (var a = 20, b = this.objectsToDarkenWhenLostGamble.size_0() - (2 * this.stepsDoneLastTime + this.getNumberOfWins_0() - this.stepsDoneLastTime), d = this.objectsToDarkenWhenLostGamble.size_0() - 1; d >= b; d--) { var e = this.objectsToDarkenWhenLostGamble.elementAt_1(d); null == e.getColorTransformation_0() && e.setColorTransformation_1(this.colorTransBright); d < this.objectsToDarkenWhenLostGamble.size_0() - 2 * this.stepsDoneLastTime ? ((a += 25), null != this.soundGambleWinSteps && (null != this.soundGambleWinSteps[this.getNumberOfWins_0() - 1] ? this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT876(this.skinManager.getSoundPlayer_0(), this.soundGambleWinSteps[this.getNumberOfWins_0() - 1]), 20 * a) : null != this.getNextAvailableWinSound_1(this.getNumberOfWins_0() - 1) && this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT876(this.skinManager.getSoundPlayer_0(), this.getNextAvailableWinSound_1(this.getNumberOfWins_0() - 1)), 20 * a))) : a++; d == b && this.skinManager.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "winanimation"), 20 * a + 800); e = new GT372(this.skinManager.getTimer_0(), e, 20, a, 0, 0, this.colorTransBright); e.start_0(); this.otherDarknessAnimators.add_1(e); } null != this.animatorGamble && this.animatorGamble.darkenAndStop_1(this.colorTransMid); }, hideLabels_1: function (a) { this.hideGuiObject_2(this.textGambleAmount, a); this.hideGuiObject_2(this.textGambleWin, a); this.hideGuiObject_2(this.fieldGambleAmount, a); this.hideGuiObject_2(this.fieldGambleToWin, a); this.hideGuiObject_2(this.textLost, !a); }, setWinAmount_0: function () { if (this.isMoreGamblePossible_0()) { var a = this.getOmitCentPolicy_2([this.getCurrentWin_0(), this.getPossibleGambleStep_1(this.getNumberOfWins_0())], !1); this.fieldGambleAmount.setText_1(this.getWinText_2(this.formatWin_2(this.getCurrentWin_0(), a), this.getCurrentSuperGames_0())); this.fieldGambleToWin.setText_1(this.getWinText_2(this.formatWin_2(this.getPossibleGambleStep_1(this.getNumberOfWins_0()), a), this.getPossibleSuperGameGambleStep_1(this.getNumberOfWins_0()))); } else GT1560.prototype.destroyIfAlive_1(this.textGambleAmount), GT1560.prototype.destroyIfAlive_1(this.textGambleWin), GT1560.prototype.destroyIfAlive_1(this.fieldGambleAmount), GT1560.prototype.destroyIfAlive_1(this.fieldGambleToWin), this.hideGuiObject_2(this.textCongratulations, !1); }, run_1: function (a) { if (null != a && a.equals_1("animationFinished")) for (var b = this.getGambleListener_0().clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).animationFinished_0(); null != a && a.equals_1("luckyloser") && this.startLuckyLoserAnimation_0(); null != a && a.equals_1("winanimation") && (this.hideLabels_1(!1), this.startWinAnimation_0()); }, getCollectHalf_0: function () { return this.collectHalf; }, setActive_1: function (a) {}, forwardEvent_1: function (a) {}, }, "GT242", [GT1482] ); GT242.prototype.ID_TEXT_LOST = GT1560.prototype.generateID_0(); GT242.prototype.ID_TEXT_GAMBLEAMOUNT = GT1560.prototype.generateID_0(); GT242.prototype.ID_TEXT_GAMBLETOWIN = GT1560.prototype.generateID_0(); GT242.prototype.ID_TEXT_CONGRATULATION = GT1560.prototype.generateID_0(); GT242.prototype.ID_FIELD_GAMBLEAMOUNT = GT1560.prototype.generateID_0(); GT242.prototype.ID_FIELD_GAMBLETOWIN = GT1560.prototype.generateID_0(); var GT248 = GT1437.extend( { initialConstructor_0: function () { this.reelset = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.reelset = null; GT1437.prototype.initialConstructor_1.call(this, a); this.reelset = b; }, initialConstructor_6: function (a, b, d, e, f, g) { this.reelset = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.reelset = g; }, setCurrentReelset_1: function (a) { for (var b = 0; b < this.reelset.length; b++) if (this.reelset[b] == a) { this.hide_1(!1); return; } this.hide_1(!0); }, isVisibleWithReelset_1: function (a) { for (var b = 0; b < this.reelset.length; b++) if (this.reelset[b] == a) return !0; return !1; }, }, "GT248", [] ), GT323 = GT1437.extend( { initialConstructor_0: function () { this.currencyFormatter = null; this.omitCentPolicy = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.currencyFormatter = null; this.omitCentPolicy = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.currencyFormatter = new GT1285(); this.omitCentPolicy = GT711.prototype.OMIT_CENT_NEVER; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, setOmitCentPolicy_1: function (a) { this.omitCentPolicy = a; }, setFreeGamesWon_1: function (a) { var b = this.findDescendant_1(GT323.prototype.ID_CONTAINER_TEXT_GAME), d = this.findDescendant_1(GT323.prototype.ID_CONTAINER_TEXT_GAMES); this.setParameter_2("#0", "" + a); null != b && null != d && (1 < a ? (d.hide_1(!1), b.hide_1(!0)) : (d.hide_1(!0), b.hide_1(!1))); }, setFreeGamesWinnings_1: function (a) { var b = this.findDescendant_1(GT323.prototype.ID_CONTAINER_WIN), d = this.findDescendant_1(GT323.prototype.ID_CONTAINER_NOWIN), e; e = instanceOf(this.currencyFormatter, GT711) ? this.currencyFormatter.format_2(a, this.omitCentPolicy) : this.currencyFormatter.format_1(a); this.setParameter_2("#0", e); null != b && null != d && (0 < a ? (b.hide_1(!1), d.hide_1(!0)) : (b.hide_1(!0), d.hide_1(!1))); }, setFreeGamesPlayed_1: function (a) { var b = this.findDescendant_1(GT323.prototype.ID_CONTAINER_TEXT_GAME), d = this.findDescendant_1(GT323.prototype.ID_CONTAINER_TEXT_GAMES); this.setParameter_2("#1", "" + a); null != b && null != d && (1 < a ? (d.hide_1(!1), b.hide_1(!0)) : (d.hide_1(!0), b.hide_1(!1))); }, setParameter_2: function (a, b) { this.replaceTextInChildren_3(this, a, b); }, replaceTextInChildren_3: function (a, b, d) { for (var e = a.getChildCount_0(), f = 0; f < e; f++) if (instanceOf(a.getChild_1(f), GT1584)) { var g = a.getChild_1(f).getText_0(); null != g && 0 <= g.indexOf_1(b) && ((g = GT1677.prototype.replaceInString_3(g, b, d)), a.getChild_1(f).setText_1(g)); } else instanceOf(a.getChild_1(f), GT1437) && this.replaceTextInChildren_3(a.getChild_1(f), b, d); }, }, "GT323", [] ); GT323.prototype.ID_CONTAINER_WIN = GT1560.prototype.generateID_0(); GT323.prototype.ID_CONTAINER_NOWIN = GT1560.prototype.generateID_0(); GT323.prototype.ID_CONTAINER_TEXT_GAME = GT1560.prototype.generateID_0(); GT323.prototype.ID_CONTAINER_TEXT_GAMES = GT1560.prototype.generateID_0(); var GT521 = GT1365.extend( { initialConstructor_0: function () { this.pageMapping = this.moveHighlightAnim = this.movePageAnim = this.valueButtons = this.pages = this.highlightArea = this.buttonListener = this.highlightContainer = this.slidingContainer = this.clippingContainer = null; this.active = !1; this.dividerImage = null; this.movementDuration = this.indicatorAlpha = this.nrOfValuesPerPage = this.horizontalInsets = 0; this.timer = this.color = this.fonts = null; this.hasDoneInit = !1; this.valueFormatter = null; GT1365.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.pageMapping = this.moveHighlightAnim = this.movePageAnim = this.valueButtons = this.pages = this.highlightArea = this.buttonListener = this.highlightContainer = this.slidingContainer = this.clippingContainer = null; this.active = !1; this.dividerImage = null; this.movementDuration = this.indicatorAlpha = this.nrOfValuesPerPage = this.horizontalInsets = 0; this.timer = this.color = this.fonts = null; this.hasDoneInit = !1; this.valueFormatter = null; GT1365.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.valueFormatter = new GT1285(); this.buttonListener = new GT145(this); this.hasDoneInit = !1; this.active = !0; this.indicatorAlpha = this.horizontalInsets = 100; this.movementDuration = 500; this.color = GT1634.prototype.white; this.nrOfValuesPerPage = 1; this.clippingContainer = new GT1437(this, this.horizontalInsets, 0, e - 2 * this.horizontalInsets, f); this.highlightContainer = new GT1437(this, this.horizontalInsets, 0, e - 2 * this.horizontalInsets, f); this.fonts = [].createArray(10); }, setFormatter_1: function (a) { this.valueFormatter = a; 0 < this.getValues_0().length && (this.createPages_0(), this.update_0()); }, createValueButton_5: function (a, b, d, e, f) { this.valueButtons[f] = new GT1559(e, b, 0, d, this.clippingContainer.getHeight_0()); this.valueButtons[f].setApplicationData_2(GT1677.prototype.generateID_0(), new Integer(a)); this.valueButtons[f].addButtonListener_1(this.buttonListener); b = new GT1123(this.valueButtons[f], 0, 0, d, this.clippingContainer.getHeight_0(), this.fonts, this.color); b.setHAlign_1(GT1488.prototype.CENTER); b.setVAlign_1(GT1489.prototype.CENTER); b.setBreakLines_1(!1); b.setText_1(this.valueFormatter.format_1(a)); this.valueButtons[f].setChildForState_2(GT1236.prototype.INACTIVE, 0); this.valueButtons[f].setChildForState_2(GT1236.prototype.DEFAULT, 1); this.valueButtons[f].setChildForState_2(GT1236.prototype.MOUSEOVER, 1); this.valueButtons[f].setChildForState_2(GT1236.prototype.PRESSED, 1); return this.valueButtons[f]; }, applyFontSizeToAllEntries_2: function (a, b) { for (var d = 0; d < a.length; d++) for (var e = 0; e < a[d].getChildCount_0(); e++) instanceOf(a[d].getChild_1(e), GT1123) && a[d].getChild_1(e).setFontSearchStartIndex_1(b); }, findIndexForSmallestUsedFont_1: function (a) { for (var b = -1, d = 0; d < a.length; d++) for (var e = a[d].getChildCount_0(), f = 0; f < e; f++) { var g = -1; instanceOf(a[d].getChild_1(f), GT1123) && (g = a[d].getChild_1(f).getUsedFontIndex_0()); g > b && (b = g); } return b; }, init_0: function () {}, setValues_2: function (a, b) { var d = a.length != this.getNumberOfValues_0(); if (!d) for (var e = 0; e < a.length; e++) if (a[e] != this.getValues_0()[e]) { d = !0; break; } var f = this.setValuesImpl_2(a, b); if (d) for (this.createPages_0(), this.setValue_1(b), e = 0; e < this.pages.length; e++) { for (var d = new java_util_JavaScriptVector(), g = 0; g < a.length; g++) this.pageMapping[g] == e && d.add_1(this.valueButtons[g]); d = this.vectorToArray_1(d); g = this.findIndexForSmallestUsedFont_1(d); this.applyFontSizeToAllEntries_2(d, g); } this.update_0(); f != this.getValue_0() && this.notifySpinnerValueChanged_0(); }, vectorToArray_1: function (a) { for (var b = [].createArray(a.size_0()), d = 0; d < b.length; d++) b[d] = a.get_1(d); return b; }, createPages_0: function () { if (null != this.valueButtons) for (var a = 0; a < this.valueButtons.length; a++) GT1560.prototype.destroyIfAlive_1(this.valueButtons[a]); var b = this.getValues_0(); this.valueButtons = [].createArray(b.length); this.pageMapping = [].createArray(b.length).init(0); if (0 != b.length) { a = Integer.truncate_1(Math.ceil_1(b.length / this.nrOfValuesPerPage)); this.pages = [].createArray(a); var d = 0; null != this.dividerImage && (d = this.dividerImage.getWidth_0()); var e = Integer.truncate_1(Math.floor_1((this.clippingContainer.getWidth_0() - d * (this.nrOfValuesPerPage + 1)) / this.nrOfValuesPerPage)); GT1560.prototype.destroyIfAlive_1(this.slidingContainer); this.slidingContainer = new GT1437(this.clippingContainer, 0, 0, this.clippingContainer.getWidth_0() * a, this.clippingContainer.getHeight_0()); for (a = 0; a < this.pages.length; a++) null != this.pages[a] && (this.pages[a].destroyChildren_0(), GT1560.prototype.destroyIfAlive_1(this.pages[a])), (this.pages[a] = new GT1437(this.slidingContainer, a * this.clippingContainer.getWidth_0(), 0, this.clippingContainer.getWidth_0(), this.clippingContainer.getHeight_0())); for (var f = Math.div(this.clippingContainer.getWidth_0() - e * this.nrOfValuesPerPage - d * (this.nrOfValuesPerPage + 1), 2), g = 0, a = 0; a < b.length; a++) { var k = Math.div(a, this.nrOfValuesPerPage), m = Math.div(a - 1, this.nrOfValuesPerPage); if (0 == a || m != k) null != this.dividerImage && new GT1591(this.pages[k], f, 0, this.dividerImage), (g = d); this.createValueButton_5(b[a], f + g, e, this.pages[k], a); this.pageMapping[a] = k; null != this.dividerImage && new GT1591(this.pages[k], f + g + e, 0, this.dividerImage); g += e + d; } } }, setValue_1: function (a) { a = this.setValueImpl_1(a); this.update_0(); this.notifySpinnerValueChanged_0(); a != this.getValue_0() && this.notifySpinnerValueChanged_0(); }, setAllBetButtonsStatus_1: function (a) { if (null != this.valueButtons) for (var b = 0; b < this.valueButtons.length; b++) this.valueButtons[b].setActive_1(a); }, update_0: function () { if (!(2 > this.getValues_0().length)) { var a = this.findDescendant_1(GT521.prototype.BUTTON_NEXT); instanceOf(a, GT1559) && (a.addButtonListener_1(this.buttonListener), a.setActive_1(this.active && this.getCurrentStep_0() < this.getNumberOfValues_0() - 1)); a = this.findDescendant_1(GT521.prototype.BUTTON_PREV); instanceOf(a, GT1559) && (a.addButtonListener_1(this.buttonListener), a.setActive_1(this.active && 0 < this.getCurrentStep_0())); this.setAllBetButtonsStatus_1(this.active); null != this.moveHighlightAnim && this.moveHighlightAnim.kill_0(); null != this.movePageAnim && this.movePageAnim.kill_0(); var b = this.getCurrentStep_0(), a = this.pageMapping[b], d = this.valueButtons[b].getX_0(), e = this.valueButtons[b].getWidth_0(), b = this.valueButtons[b].getHeight_0(); null == this.highlightArea ? ((this.highlightArea = new GT1440(this.highlightContainer, d, 0, e, b, GT1634.prototype.white)), this.highlightArea.setAlpha_1(100)) : ((this.movePageAnim = new GT653(this.timer, this.slidingContainer, -this.clippingContainer.getWidth_0() * a, this.slidingContainer.getY_0(), this.movementDuration)), this.movePageAnim.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.movePageAnim.start_0(), (this.moveHighlightAnim = new GT653(this.timer, this.highlightArea, d, 0, this.movementDuration)), this.moveHighlightAnim.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.moveHighlightAnim.start_0()); this.highlightSelectedValue_0(); } }, highlightSelectedValue_0: function () { for (var a = this.getValues_0(), b = 0; b < a.length; b++) { var d = this.valueButtons[b].getChild_1(0); b == this.getCurrentStep_0() ? d.setAlpha_1(255) : d.setAlpha_1(170); } }, setActive_1: function (a) { this.active != a && ((this.active = a), this.update_0()); }, isActive_0: function () { return this.active; }, buttonPressed_1: function (a) { this.getParent_0().fireDownCallback_1(a); if (a.getApplicationID_0() == GT521.prototype.BUTTON_NEXT) { a = this.pageMapping[this.getCurrentStep_0()]; for (var b = this.getCurrentStep_0(); b < this.getNumberOfValues_0(); b++) if (this.pageMapping[b] == a + 2) { this.setValue_1(this.getValues_0()[b - 1]); break; } else if (b == this.getNumberOfValues_0() - 1) { this.setValue_1(this.getValues_0()[b]); break; } } else if (a.getApplicationID_0() == GT521.prototype.BUTTON_PREV) for (a = this.pageMapping[this.getCurrentStep_0()], b = this.getCurrentStep_0(); 0 <= b; b--) if (this.pageMapping[b] == a - 2) { this.setValue_1(this.getValues_0()[b + 1]); break; } else { if (0 == b) { this.setValue_1(this.getValues_0()[b]); break; } } else a.equals_1(this.valueButtons[this.getCurrentStep_0()]) || ((a = a.getApplicationData_0()), this.setValue_1(a.intValue_0())); }, setMovementDuration_1: function (a) { this.movementDuration = a; }, getMovementDuration_0: function () { return this.movementDuration; }, setDividerImage_1: function (a) { this.dividerImage = a; }, setHorizontalInsets_1: function (a) { this.horizontalInsets = a; }, setNrOfValuesPerPage_1: function (a) { this.nrOfValuesPerPage = a; }, setIndicatorAlpha_1: function (a) { this.indicatorAlpha = a; }, setFonts_1: function (a) { this.fonts = a; }, setColor_1: function (a) { this.color = a; }, }, "GT521", [GT1231] ), GT145 = Class.extend( { initialConstructor_0: function () { this.list = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.list = null; this.list = a; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) { this.list.buttonPressed_1(a); }, click_1: function (a) { this.list.buttonPressed_1(a); }, }, "GT145", [GT1066] ); GT521.prototype.BUTTON_PREV = GT1560.prototype.generateID_0(); GT521.prototype.BUTTON_NEXT = GT1560.prototype.generateID_0(); var GT433 = GT1365.extend( { initialConstructor_0: function () { this.timer = null; this.buttonSpacing = this.spacing = 0; this.containerMoveAnimator = this.barResizeAnimator = this.barMoveAnimator = this.color = this.dragButton = this.valueBar = this.valueBarContainer = this.valuesContainer = this.slidingContainer = this.valueFormatter = this.font = null; this.active = !1; this.buttonListener = this.pageMapping = this.pageCoordinates = null; GT1365.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.timer = null; this.buttonSpacing = this.spacing = 0; this.containerMoveAnimator = this.barResizeAnimator = this.barMoveAnimator = this.color = this.dragButton = this.valueBar = this.valueBarContainer = this.valuesContainer = this.slidingContainer = this.valueFormatter = this.font = null; this.active = !1; this.buttonListener = this.pageMapping = this.pageCoordinates = null; GT1365.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.buttonSpacing = 50; this.slidingContainer = new GT1437(this); this.valueBarContainer = new GT1437(this.slidingContainer, 0, this.getHeight_0() - 5, this.getWidth_0(), 5); this.valuesContainer = new GT1437(this.slidingContainer); this.dragButton = new GT1559(this.slidingContainer, 0, 0, this.slidingContainer.getWidth_0(), this.slidingContainer.getHeight_0()); this.buttonListener = new GT119(this); this.dragButton.addButtonListener_1(this.buttonListener); this.dragButton.setDragable_1(!0); this.dragButton.setDragArea_4(0, 0, 0, 0); this.valueFormatter = new GT1285(); this.timer = g; this.active = !0; }, setFormatter_1: function (a) { this.valueFormatter = a; 0 < this.getValues_0().length && (this.createButtons_0(), this.update_0()); }, setButtonSpacing_1: function (a) { this.buttonSpacing = a; }, setIndicatorHeight_1: function (a) { this.valueBarContainer.resize_2(this.valueBarContainer.getWidth_0(), a); }, setIndicatorPosition_1: function (a) { this.valueBarContainer.move_2(this.valueBarContainer.getX_0(), a); }, setFont_2: function (a, b) { this.font = a; this.color = b; }, buttonPressed_1: function (a) { if (a.getApplicationID_0() == GT433.prototype.BUTTON_NEXT) { var b = this.pageMapping[this.getCurrentStep_0()]; for (a = this.getCurrentStep_0(); a < this.getNumberOfValues_0(); a++) if (this.pageMapping[a] == b + 2) { this.setValue_1(this.getValues_0()[a - 1]); break; } else if (a == this.getNumberOfValues_0() - 1) { this.setValue_1(this.getValues_0()[a]); break; } } else if (a.getApplicationID_0() == GT433.prototype.BUTTON_PREV) for (b = this.pageMapping[this.getCurrentStep_0()], a = this.getCurrentStep_0(); 0 <= a; a--) if (this.pageMapping[a] == b - 2) { this.setValue_1(this.getValues_0()[a + 1]); break; } else { if (0 == a) { this.setValue_1(this.getValues_0()[a]); break; } } else for (b = a.getMouseX_0(), a = 0; a < this.valuesContainer.getChildCount_0(); a++) { var d = this.valuesContainer.getChild_1(a); if (b >= d.getX_0() && b <= d.getX_0() + d.getWidth_0()) { d.isActive_0() && this.getCurrentStep_0() != a && this.setValue_1(this.getValues_0()[a]); break; } } }, setSpacing_1: function (a) { this.spacing = a; }, setValues_2: function (a, b) { var d = a.length != this.getNumberOfValues_0(); if (!d) for (var e = 0; e < a.length; e++) if (a[e] != this.getValues_0()[e]) { d = !0; break; } e = this.setValuesImpl_2(a, b); d && this.createButtons_0(); this.update_0(); e != this.getValue_0() && this.notifySpinnerValueChanged_0(); }, setValue_1: function (a) { a = this.setValueImpl_1(a); this.update_0(); this.notifySpinnerValueChanged_0(); a != this.getValue_0() && this.notifySpinnerValueChanged_0(); }, setActive_1: function (a) { this.active != a && ((this.active = a), this.update_0()); }, isActive_0: function () { return this.active; }, update_0: function () { var a = this.findDescendant_1(GT433.prototype.BUTTON_NEXT); instanceOf(a, GT1559) && (a.addButtonListener_1(this.buttonListener), a.setActive_1(this.active && this.getCurrentStep_0() < this.getNumberOfValues_0() - 1)); a = this.findDescendant_1(GT433.prototype.BUTTON_PREV); instanceOf(a, GT1559) && (a.addButtonListener_1(this.buttonListener), a.setActive_1(this.active && 0 < this.getCurrentStep_0())); null != this.barMoveAnimator && this.barMoveAnimator.killAndTrigger_1(!1); null != this.barResizeAnimator && this.barResizeAnimator.kill_0(); null != this.containerMoveAnimator && this.containerMoveAnimator.kill_0(); if (0 != this.valuesContainer.getChildCount_0()) { var b = this.valuesContainer.getChild_1(this.getCurrentStep_0()), a = b.getX_0(), b = b.getWidth_0(), d = this.valueBarContainer.getHeight_0(); null == this.valueBar || this.valueBar.getChild_1(0).getWidth_0() != this.valueBarContainer.getWidth_0() || d != this.valueBar.getChild_1(0).getHeight_0() ? (null != this.valueBar && this.valueBar.destroy_0(), (this.valueBar = new GT1437(this.valueBarContainer, a, 0, b, d)), new GT1440(this.valueBar, 0, 0, this.valueBarContainer.getWidth_0(), this.valueBar.getHeight_0(), GT1634.prototype.white)) : ((this.barMoveAnimator = new GT653(this.timer, this.valueBar, a, 0, 400)), this.barMoveAnimator.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.barMoveAnimator.start_0(), (this.barResizeAnimator = new GT1077(this.timer, this.valueBar, this.valueBar.getWidth_0(), this.valueBar.getHeight_0(), b, d, 500)), this.barResizeAnimator.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.barResizeAnimator.start_0()); a = this.pageCoordinates[this.pageMapping[this.getCurrentStep_0()]]; a != this.slidingContainer.getX_0() && (null != this.containerMoveAnimator && this.containerMoveAnimator.kill_0(), (this.containerMoveAnimator = new GT653(this.timer, this.slidingContainer, a, 0, 400)), this.containerMoveAnimator.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.containerMoveAnimator.start_0()); for (a = 0; a < this.valuesContainer.getChildCount_0(); a++) (b = this.valuesContainer.getChild_1(a)), (d = this.pageMapping[a] == this.pageMapping[this.getCurrentStep_0()]), b.setActive_1(d && this.active); this.active ? this.valueBar.getChild_1(0).setAlpha_1(255) : this.valueBar.getChild_1(0).setAlpha_1(100); this.highlightSelectedValue_0(); } }, createButtons_0: function () { this.valuesContainer.destroyChildren_0(); var a = this.getValues_0(); if (0 != a.length) { this.pageMapping = [].createArray(a.length).init(0); for (var b = new java_util_JavaScriptVector(), d = 0, e = 0, f = 0, g = 0, k = this.getWidth_0() - 2 * this.buttonSpacing, m = 0; m < a.length; m++) this.createValueButton_1(a[m]); for (var n = this.findButtonSpacing_3(k, a, 1), m = 0; m < a.length; m++) { var p = this.valuesContainer.getChild_1(m); p.move_2(d, Math.div(this.valuesContainer.getHeight_0() - p.getHeight_0(), 2)); if (e + p.getWidth_0() > k) { var q = Math.div(k - e + n, 2), q = q - g + this.buttonSpacing; b.add_1(new Integer(q)); f++; e = 0; g = d; } else m == a.length - 1 && ((q = Math.div(k - (e + p.getWidth_0()), 2)), (q = q - g + this.buttonSpacing), b.add_1(new Integer(q))); d += p.getWidth_0() + n; e += p.getWidth_0() + n; this.pageMapping[m] = f; } this.pageCoordinates = [].createArray(b.size_0()).init(0); for (m = 0; m < this.pageCoordinates.length; m++) this.pageCoordinates[m] = b.get_1(m).intValue_0(); this.valuesContainer.resizeToContent_0(); this.valueBarContainer.resize_2(this.valuesContainer.getWidth_0(), this.valueBarContainer.getHeight_0()); this.slidingContainer.resize_2(this.valuesContainer.getWidth_0(), this.valuesContainer.getHeight_0()); this.dragButton.resize_2(this.valuesContainer.getWidth_0(), this.valuesContainer.getHeight_0()); } }, findButtonSpacing_3: function (a, b, d) { return 1 >= b.length ? 0 : this.findButtonSpacing_5(-1, a, b, -d, d); }, findButtonSpacing_5: function (a, b, d, e, f) { for (var g = 0, k = 0, m = e + f, n = 0; n < d.length; n++) { var p = this.valuesContainer.getChild_1(n); g + p.getWidth_0() > b && (k++, (g = 0)); g += p.getWidth_0() + m; } k++; if (-1 == a) a = k; else if (k > a) return e; return this.findButtonSpacing_5(a, b, d, m, f); }, createValueButton_1: function (a) { var b = new GT1559(this.valuesContainer, 0, 0), d = new GT1606(b, 0, 0, GT1606.prototype.ALIGN_CENTER | GT1606.prototype.VALIGN_CENTER, this.valueFormatter.format_1(a), this.font, this.color); d.setAlpha_1(100); b.resize_2(d.getWidth_0() + this.spacing, this.valuesContainer.getHeight_0()); d.moveAnchor_2(Math.div(b.getWidth_0(), 2), Math.div(b.getHeight_0(), 2)); d = new GT1606(b, 0, 0, GT1606.prototype.ALIGN_CENTER | GT1606.prototype.VALIGN_CENTER, this.valueFormatter.format_1(a), this.font, this.color); d.moveAnchor_2(Math.div(b.getWidth_0(), 2), Math.div(b.getHeight_0(), 2)); b.setChildForState_2(GT1236.prototype.INACTIVE, 0); b.setChildForState_2(GT1236.prototype.DEFAULT, 1); b.setChildForState_2(GT1236.prototype.MOUSEOVER, 1); b.setChildForState_2(GT1236.prototype.PRESSED, 1); return b; }, highlightSelectedValue_0: function () { for (var a = this.getValues_0(), b = 0; b < a.length; b++) { var d = this.valuesContainer.getChild_1(b).getChild_1(1); b == this.getCurrentStep_0() ? d.setAlpha_1(255) : d.setAlpha_1(170); } }, }, "GT433", [GT1231] ), GT119 = Class.extend( { initialConstructor_0: function () { this.list = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.list = null; this.list = a; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) { this.list.buttonPressed_1(a); }, click_1: function (a) { this.list.buttonPressed_1(a); }, }, "GT119", [GT1066] ); GT433.prototype.BUTTON_PREV = GT1560.prototype.generateID_0(); GT433.prototype.BUTTON_NEXT = GT1560.prototype.generateID_0(); var GT740 = GT1437.extend( { initialConstructor_0: function () { this.soundClose = this.soundOpen = this.pageChangeAnimationFinishCallbacks = this.pageAnimationStartCallback = this.pageAnimationCallback = this.firstPage = this.buttonClose = this.buttonPrevious = this.buttonNext = this.slotEventManager = null; this.reelset = 0; this.timer = null; this.pageChangeAnimationType = this.animationTime = 0; this.activePlayer = !1; this.closeButtonID = this.previousPageButtonID = this.nextPageButtonID = this.buttonsContainerID = this.disableConsoleTime = this.openCloseTime = 0; this.swipeStartPosition = this.pageVisualization = this.pageNrVisualization = null; this.swipeEndTime = this.swipeStartTime = 0; this.swipePage = this.swipeButtonBackup = null; this.pageVisualizationAlpha = this.pageVisualizationPosition = this.swipeLastX = 0; this.animVisCurrentPageNr = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.soundClose = this.soundOpen = this.pageChangeAnimationFinishCallbacks = this.pageAnimationStartCallback = this.pageAnimationCallback = this.firstPage = this.buttonClose = this.buttonPrevious = this.buttonNext = this.slotEventManager = null; this.reelset = 0; this.timer = null; this.pageChangeAnimationType = this.animationTime = 0; this.activePlayer = !1; this.closeButtonID = this.previousPageButtonID = this.nextPageButtonID = this.buttonsContainerID = this.disableConsoleTime = this.openCloseTime = 0; this.swipeStartPosition = this.pageVisualization = this.pageNrVisualization = null; this.swipeEndTime = this.swipeStartTime = 0; this.swipePage = this.swipeButtonBackup = null; this.pageVisualizationAlpha = this.pageVisualizationPosition = this.swipeLastX = 0; this.animVisCurrentPageNr = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.soundOpen = k; this.soundClose = m; this.buttonClose = this.buttonPrevious = this.buttonNext = this.pageAnimationCallback = this.firstPage = null; this.pageChangeAnimationType = GT740.prototype.ANIMATION_TYPE_NONE; this.swipeStartPosition = new GT1553(); this.swipeStartPosition.x = -1; this.swipeButtonBackup = new GT1633(); this.swipeLastX = Integer.MIN_VALUE; this.reelset = -1; this.pageChangeAnimationFinishCallbacks = new java_util_JavaScriptVector(); }, initSwipeContainer_0: function () { var a = this.findDescendant_1(GT999.prototype.BUTTON_SWIPE); null != a && instanceOf(a, GT1559) && 1 < this.getChildCountWithoutArrowContainer_0() && (a.addButtonListener_1(this), a.resize_2(this.getWidth_0(), this.getHeight_0()), this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && a.setDragable_1(!0)); }, initPageNrVisualization_0: function () { if (1 != this.getChildCountWithoutArrowContainer_0() && null != this.pageVisualization) { var a = this.findDescendant_1(GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID); GT1650.prototype.assertExp_2(null != a, "For displaying the page visualization a guicontainer with ID GUIPaytable.NAVIGATION_BUTTONS_CONTAINER_ID is needed."); null != this.pageNrVisualization && this.pageNrVisualization.isAlive_0() ? this.pageNrVisualization.destroyChildren_0() : (this.pageNrVisualization = new GT1437(a)); a = this.pageVisualization.getWidth_0(); 0 > this.pageVisualizationPosition && (this.pageVisualizationPosition = 0); this.pageVisualizationPosition + this.pageVisualization.getRowHeight_0() > Math.div(this.getHeight_0(), this.getContentScaleY_0()) && (this.pageVisualizationPosition = Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - this.pageVisualization.getRowHeight_0()); this.pageNrVisualization.move_2(Math.div(this.pageNrVisualization.getWidth_0() - this.getWidth_0(), 2), this.pageVisualizationPosition); this.pageNrVisualization.resize_2(this.getWidth_0(), a); for (var b = 0, d = 0; d < this.getChildCountWithoutArrowContainer_0(); ++d) { var e = this.getChild_1(d); instanceOf(e, GT248) ? e.isVisibleWithReelset_1(this.reelset) && b++ : b++; } e = Math.div(this.getWidth_0() - b * (a + 20), 2); for (d = 0; d < b; d++) { var f = new GT1075( this.pageNrVisualization, 0, 0, this.pageVisualization.getWidth_0(), this.pageVisualization.getHeight_0(), this.pageVisualization, Math.div(this.pageVisualization.getWidth_0(), 2), Math.div(this.pageVisualization.getHeight_0(), 2), 0, 0, this.pageVisualization.getWidth_0(), this.pageVisualization.getHeight_0() ); f.setTranslation_2(Math.div(f.getWidth_0(), 2), Math.div(f.getHeight_0(), 2)); f.move_2(e + 10 + d * (a + 20), 0); f.setScale_2(0.65, 0.65); f.setAlpha_1(this.pageVisualizationAlpha); } this.updatePageNrVisualization_0(); this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && new GT658(this.timer, new GT120(this), 1).run_0(); } }, updatePageNrVisualization_0: function () { if (1 != this.getChildCountWithoutArrowContainer_0() && null != this.pageNrVisualization) { var a = this.getPageIndex_0(); null != this.animVisCurrentPageNr && this.animVisCurrentPageNr.kill_0(); for (var b = 0; b < this.pageNrVisualization.getChildCount_0(); b++) { var d = this.pageNrVisualization.getChild_1(b); b == a ? ((this.animVisCurrentPageNr = new GT1132(this.timer, d, 0, 500, 0.65, 1)), this.animVisCurrentPageNr.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL), this.animVisCurrentPageNr.start_0()) : d.setScale_2(0.65, 0.65); } } }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) { a.getApplicationID_0() == GT999.prototype.BUTTON_SWIPE && ((this.swipeStartPosition.x = this.getMouseX_0()), (this.swipeStartPosition.y = this.getMouseY_0()), (this.swipeButtonBackup.x = a.getX_0()), (this.swipeButtonBackup.y = a.getY_0()), (this.swipeStartTime = this.timer.currentTimeMillis_0())); }, up_1: function (a) { if (a.getApplicationID_0() == GT999.prototype.BUTTON_SWIPE) { var b = this.findDescendant_1(this.getCloseButtonID_0()); GT1560.prototype.isAlive_1(b) && b.getParent_0().reorder_1(!0); if (-1 != this.swipeStartPosition.x) if (30 < Math.abs_1(this.swipeStartPosition.x - this.getMouseX_0())) { b = !0; if (this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE) { a.setActive_1(!1); this.swipeEndTime = this.timer.currentTimeMillis_0(); var d = 0 < this.swipeStartPosition.x - this.getMouseX_0(), e = this.getChild_1(this.getChildCountWithoutArrowContainer_0() - 1), e = Integer.truncate_1(GT1677.prototype.division_2(Math.abs_1(e.getX_0()), (this.swipeEndTime - this.swipeStartTime) / 1e3)); if ((d && this.getMouseX_0() > this.swipeLastX) || (!d && this.getMouseX_0() < this.swipeLastX) || 400 > e) b = !1; } b ? (0 < this.swipeStartPosition.x - this.getMouseX_0() ? this.nextPage_0() : this.previousPage_0()) : this.resetCurrentPage_0(); } else this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && this.resetCurrentPage_0(); this.swipeLastX = Integer.MIN_VALUE; a.move_2(this.swipeButtonBackup.x, this.swipeButtonBackup.y); } }, drag_1: function (a) { if (this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && a.getApplicationID_0() == GT999.prototype.BUTTON_SWIPE && -1 != this.swipeStartPosition.x) { var b = this.getMouseX_0(); if (b != this.swipeStartPosition.x) { var d = this.getChildCountWithoutArrowContainer_0(); a = b < this.swipeStartPosition.x; var e = this.swipeLastX > this.swipeStartPosition.x != b > this.swipeStartPosition.x; this.swipeLastX == Integer.MIN_VALUE && ((this.swipeLastX = this.swipeStartPosition.x), (e = !0)); var f = b - this.swipeLastX; this.swipeLastX = b; b = this.getChild_1(d - 1); b.move_2(b.getX_0() + f, b.getY_0()); if (e) { for (d -= 2; 0 <= d; d--) this.getChild_1(d).move_2(b.getWidth_0(), 0); this.swipePage = a ? this.getNextAvailablePage_1(!1) : this.getPreviousAvailablePage_1(!1); } a ? this.swipePage.move_2(b.getX_0() + this.swipePage.getWidth_0(), b.getY_0()) : this.swipePage.move_2(b.getX_0() - this.swipePage.getWidth_0(), b.getY_0()); } } }, click_1: function (a) { a.getApplicationID_0() == this.getNextPageButtonID_0() && null != this.buttonNext && this.buttonNext.isActive_0() && this.nextPage_0(); a.getApplicationID_0() == this.getPreviousPageButtonID_0() && null != this.buttonPrevious && this.buttonPrevious.isActive_0() && this.previousPage_0(); a.getApplicationID_0() == this.getCloseButtonID_0() && null != this.buttonClose && this.buttonClose.isActive_0() && this.closePaytable_0(); }, closePaytable_0: function () { null != this.slotEventManager && this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)); }, nextPage_0: function () { null != this.slotEventManager ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_NEXT)) : this.showNextPage_0(); }, previousPage_0: function () { null != this.slotEventManager ? this.slotEventManager.fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE_PREVIOUS)) : this.showPreviousPage_0(); }, resetCurrentPage_0: function () { var a = this.getChildCountWithoutArrowContainer_0() - 1, a = this.getChild_1(a); if (0 != a.getX_0()) { var b = 0 > a.getX_0(), d = b ? this.getNextAvailablePage_1(!1) : this.getPreviousAvailablePage_1(!1), b = b ? new GT653(this.timer, d, d.getWidth_0(), 0, 300, !1) : new GT653(this.timer, d, -d.getWidth_0(), 0, 300, !1); b.addStartCallback_1(new GT660(new GT653(this.timer, a, 0, 0, 300, !1))); b.addFinishCallback_1(new GT84(this.findDescendant_1(GT999.prototype.BUTTON_SWIPE))); b.start_0(); } a.reorder_1(!0); this.bringNavigationArrowsContainerToFront_0(); this.swipeStartTime = this.swipeEndTime = 0; }, setSlotEventManager_1: function (a) { this.slotEventManager = a; }, setNextPageButtonID_1: function (a) { this.nextPageButtonID = a; }, setCloseButtonID_1: function (a) { this.closeButtonID = a; }, getNextPageButtonID_0: function () { return this.nextPageButtonID; }, setPreviousPageButtonID_1: function (a) { this.previousPageButtonID = a; }, getPreviousPageButtonID_0: function () { return this.previousPageButtonID; }, getCloseButtonID_0: function () { return this.closeButtonID; }, setButtonsContainerID_1: function (a) { this.buttonsContainerID = a; }, getButtonsContainerID_0: function () { return this.buttonsContainerID; }, setCurrentReelset_1: function (a) { a != this.reelset && (this.applyReelsetToContainer_2(this, a), (this.reelset = a)); }, applyReelsetToContainer_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) instanceOf(a.getChild_1(e), GT248) && a.getChild_1(e).setCurrentReelset_1(b), instanceOf(a.getChild_1(e), GT746) && a.getChild_1(e).setCurrentReelset_1(b), instanceOf(a.getChild_1(e), GT1437) && this.applyReelsetToContainer_2(a.getChild_1(e), b); }, getPageIndex_0: function () { if (!this.isAlive_0() || 0 == this.getChildCount_0()) return -1; null == this.firstPage && this.setFirstPage_0(); for (var a = null, b = 0, d = (this.hasNavigationButtons_0() ? this.getChildCountWithoutArrowContainer_0() : this.getChildCount_0()) - 1; ; d--) { a = this.getChild_1(d); if (a == this.firstPage) break; (instanceOf(a, GT248) && !a.isVisibleWithReelset_1(this.reelset)) || b++; } return b; }, isAtFirstPage_0: function () { return this.isAlive_0() && 0 != this.getChildCount_0() ? 0 == this.getPageIndex_0() : !1; }, isAtPageIndex_1: function (a) { if (!this.isAlive_0() || 0 == this.getChildCount_0()) return !1; var b = this.getPageIndex_0(); return a == b; }, isAtLastPage_0: function () { return this.getPageIndex_0() == this.getChildCount_0() - 1; }, getOpenCloseTime_0: function () { return this.openCloseTime; }, getDisableConsoleTime_0: function () { return this.disableConsoleTime; }, hasNavigationButtons_0: function () { return null != this.findDescendant_1(this.getButtonsContainerID_0()); }, getNavigationArrowsContainer_0: function () { return this.findDescendant_1(this.getButtonsContainerID_0()); }, bringNavigationArrowsContainerToFront_0: function () { var a = this.findDescendant_1(this.getButtonsContainerID_0()); null != a && (a.reorder_1(!0), a.moveAnchor_2(a.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - a.getHeight_0()), a.hide_1(!1)); }, getChildCountWithoutArrowContainer_0: function () { return this.hasNavigationButtons_0() ? this.getChildCount_0() - 1 : this.getChildCount_0(); }, setFirstPage_0: function () { this.firstPage = this.getChild_1(0); if (this.hasNavigationButtons_0()) { if (null == this.buttonNext) { var a = this.findDescendant_1(this.getNextPageButtonID_0()); null != a && instanceOf(a, GT1559) && ((this.buttonNext = a), this.buttonNext.addButtonListener_1(this), this.isActivePlayer_0() || this.buttonNext.setActive_1(!1)); } null == this.buttonPrevious && ((a = this.findDescendant_1(this.getPreviousPageButtonID_0())), null != a && instanceOf(a, GT1559) && ((this.buttonPrevious = a), this.buttonPrevious.addButtonListener_1(this), this.isActivePlayer_0() || this.buttonPrevious.setActive_1(!1))); null == this.buttonClose && ((a = this.findDescendant_1(this.getCloseButtonID_0())), null != a && instanceOf(a, GT1559) && ((this.buttonClose = a), this.buttonClose.addButtonListener_1(this), this.isActivePlayer_0() || this.buttonClose.setActive_1(!1))); } }, setNavigationArrowButtonsActive_1: function (a) { if (null != this.buttonNext && this.buttonNext.isAlive_0()) { var b = this.buttonNext.isActive_0() != a; b && this.buttonNext.setActive_1(a); instanceOf(this.buttonNext, GT515) && b && this.buttonNext.setHighlighted_1(a); } null != this.buttonPrevious && this.buttonPrevious.isAlive_0() && ((b = this.buttonPrevious.isActive_0() != a) && this.buttonPrevious.setActive_1(a), instanceOf(this.buttonPrevious, GT515) && b && this.buttonPrevious.setHighlighted_1(a)); }, showNextPage_0: function () { this.showPage_1(!0); }, showPreviousPage_0: function () { this.showPage_1(!1); }, showPage_1: function (a) { if (this.isAlive_0() && 0 != this.getChildCountWithoutArrowContainer_0()) if (this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_NONE || 0 == this.animationTime) a ? this.showNextPageWithoutAnim_0() : this.showPreviousPageWithoutAnim_0(); else { if (null != this.pageAnimationCallback && null != this.pageAnimationCallback.getOldPage_0()) { if (GT740.prototype.IGNORE_INPUT_DURING_ANIMATION) return; var b = this.pageAnimationCallback.getOldPage_0(); b.moveAnchor_2(b.getAnchorX_0(), -b.getHeight_0()); this.pageAnimationCallback.cancel_0(); this.timer.removeCallback_2(this.pageAnimationStartCallback, !1); } this.bringNavigationArrowsContainerToFront_0(); null == this.firstPage && this.setFirstPage_0(); this.hasNavigationButtons_0() && (null != this.buttonNext && this.buttonNext.isActive_0() && this.buttonNext.setActive_1(!1), null != this.buttonPrevious && this.buttonPrevious.isActive_0() && this.buttonPrevious.setActive_1(!1)); for (var d = (b = this.getChildCountWithoutArrowContainer_0()), e = 0; e < b; ++e) { var f = this.getChild_1(e); instanceOf(f, GT248) && (f.isVisibleWithReelset_1(this.reelset) || --d); } if (1 < d) { b = this.getChildCountWithoutArrowContainer_0() - 1; b = this.getChild_1(b); d = a ? this.getNextAvailablePage_1(!0) : this.getPreviousAvailablePage_1(!0); this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL ? d.moveAnchor_2(d.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - d.getHeight_0()) : this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL ? d.moveAnchor_2(Math.div(this.getWidth_0() - d.getWidth_0(), 2), d.getAnchorY_0()) : this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP ? ((e = Math.div(this.getWidth_0() - b.getWidth_0(), 2)), b.moveAnchor_2(e, b.getAnchorY_0()), a ? d.moveAnchor_2(e + b.getWidth_0(), d.getAnchorY_0()) : d.moveAnchor_2(e - d.getWidth_0(), d.getAnchorY_0())) : this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && GT1650.prototype.assertExp_2(!1, "WARNING: GUIPageContainer.pageChangeAnimationType is unknown! pageChangeAnimationType=" + this.pageChangeAnimationType); this.hidePage_2(d, !1); this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && b.reorder_1(!0); this.bringNavigationArrowsContainerToFront_0(); instanceOf(d, GT1437) && d.setCacheAsBitmap_2(!0, null); instanceOf(b, GT1437) && b.setCacheAsBitmap_2(!0, null); e = f = null; if (this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL) a ? (f = new GT653(this.timer, b, -this.getWidth_0() - 50, b.getAnchorY_0(), this.animationTime, !1)) : (d.moveAnchor_2(0 - d.getWidth_0() - 50, d.getAnchorY_0()), (f = new GT653(this.timer, d, Math.div(this.getWidth_0() - d.getWidth_0(), 2), d.getAnchorY_0(), this.animationTime, !1)), d.reorder_1(!0), this.bringNavigationArrowsContainerToFront_0()); else if (this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE) { var f = this.getChild_1(this.getChildCountWithoutArrowContainer_0() - 1), g = 0; 0 < this.swipeEndTime - this.swipeStartTime && ((f = Integer.truncate_1(GT1677.prototype.division_2(Math.abs_1(f.getX_0()), (this.swipeEndTime - this.swipeStartTime) / 1e3))), (g = Integer.truncate_1(1e3 * GT1677.prototype.division_2(b.getWidth_0() - Math.abs_1(b.getX_0()), f))), 800 < g && (g = 800)); this.swipeStartTime = this.swipeEndTime = 0; f = a ? new GT653(this.timer, b, -b.getWidth_0(), 0, g, !1) : new GT653(this.timer, b, b.getWidth_0(), 0, g, !1); f.addStartCallback_1(new GT660(new GT653(this.timer, d, 0, 0, g, !1))); } else this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP ? ((e = Math.div(this.getWidth_0() - b.getWidth_0(), 2)), (f = e - b.getWidth_0()), (g = e + b.getWidth_0()), b.moveAnchor_2(e, b.getAnchorY_0()), a ? (d.moveAnchor_2(g, d.getAnchorY_0()), (f = new GT653(this.timer, b, f, b.getAnchorY_0(), this.animationTime, !1))) : ((f = new GT653(this.timer, b, g, d.getAnchorY_0(), this.animationTime, !1)), d.reorder_1(!0), this.bringNavigationArrowsContainerToFront_0()), (e = new GT653(this.timer, d, e, d.getAnchorY_0(), this.animationTime, !1))) : this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL && (f = new GT653(this.timer, b, b.getAnchorX_0(), -b.getHeight_0() - 50, this.animationTime, !1)); null != f ? ((this.pageAnimationCallback = new GT44( f, b, d, this.findDescendant_1(this.getButtonsContainerID_0()), a, this.isActivePlayer_0() ? this.buttonPrevious : null, this.isActivePlayer_0() ? this.buttonNext : null, this.isActivePlayer_0() ? this.findDescendant_1(GT999.prototype.BUTTON_SWIPE) : null, this )), f.addFinishCallback_1(this.pageAnimationCallback), (this.pageAnimationStartCallback = new GT660(f)), this.timer.triggerCallbackAfter_2(this.pageAnimationStartCallback, 30), null != e && this.timer.triggerCallbackAfter_2(new GT660(e), 30)) : (GT1650.prototype.assertFailed_1("Unknown pageChangeAnimationType"), a ? this.showNextPageWithoutAnim_0() : this.showPreviousPageWithoutAnim_0()); } } }, hidePage_2: function (a, b) { a.hide_1(b); var d = this.getIndexFromPage_1(a); instanceOf(this, GT999) && -1 < d && null != this.slotEventManager && this.slotEventManager.fireSlotEvent_1(new GT431(d, b)); }, getIndexFromPage_1: function (a) { if (!this.isAlive_0() || 0 == this.getChildCount_0()) return -1; null == this.firstPage && this.setFirstPage_0(); for (var b = -1, d = -1, e = 0; e < this.getChildCountWithoutArrowContainer_0(); e++) a.equals_1(this.getChild_1(e)) && (b = e), this.firstPage.equals_1(this.getChild_1(e)) && (d = e); return -1 == b || -1 == d ? -1 : (b - d + this.getChildCountWithoutArrowContainer_0()) % this.getChildCountWithoutArrowContainer_0(); }, showNextPageWithoutAnim_0: function () { if (this.isAlive_0() && 0 != this.getChildCountWithoutArrowContainer_0()) { this.bringNavigationArrowsContainerToFront_0(); null == this.firstPage && this.setFirstPage_0(); if (1 < this.getChildCountWithoutArrowContainer_0()) { var a = this.getChildCountWithoutArrowContainer_0() - 1, a = this.getChild_1(a); this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && this.hidePage_2(a, !0); a = this.getNextAvailablePage_1(!0); null != a && (a.moveAnchor_2(a.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - a.getHeight_0()), this.hidePage_2(a, !1)); this.bringNavigationArrowsContainerToFront_0(); } this.updatePageNrVisualization_0(); this.firePageChangeAnimationFinishCallbacks_0(); } }, getNextAvailablePage_1: function (a) { var b = this.getChildCountWithoutArrowContainer_0(); if (a) for (a = 0; a < b; ++a) { var d = this.getChild_1(0); d.reorder_1(!0); this.bringNavigationArrowsContainerToFront_0(); if (!instanceOf(d, GT248) || d.isVisibleWithReelset_1(this.reelset)) return d; } else for (a = 0; a < b - 1; ++a) if (((d = this.getChild_1(a)), this.bringNavigationArrowsContainerToFront_0(), !instanceOf(d, GT248) || d.isVisibleWithReelset_1(this.reelset))) return d; GT1650.prototype.assertExp_2(!1, "WARNING: GUIPageContainer.getNextAvailablePage()-> No page for current reelset found! current reelset=" + this.reelset); return null; }, showPreviousPageWithoutAnim_0: function () { if (this.isAlive_0() && 0 != this.getChildCountWithoutArrowContainer_0()) { this.bringNavigationArrowsContainerToFront_0(); null == this.firstPage && this.setFirstPage_0(); if (1 < this.getChildCountWithoutArrowContainer_0()) { var a = this.getChildCountWithoutArrowContainer_0() - 1, a = this.getChild_1(a); this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && this.hidePage_2(a, !0); a = this.getPreviousAvailablePage_1(!0); null != a && (a.moveAnchor_2(a.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - a.getHeight_0()), this.hidePage_2(a, !1)); this.bringNavigationArrowsContainerToFront_0(); } this.updatePageNrVisualization_0(); this.firePageChangeAnimationFinishCallbacks_0(); } }, getPreviousAvailablePage_1: function (a) { var b = this.getChildCountWithoutArrowContainer_0(); if (a) { a = b - 1; for (var d = 0; d < b; ++d) { this.getChild_1(a).reorder_1(!1); var e = this.getChild_1(a); this.bringNavigationArrowsContainerToFront_0(); if (!instanceOf(e, GT248) || e.isVisibleWithReelset_1(this.reelset)) return e; } } else if (1 < b) for (d = b - 2; 0 <= d; d--) if (((e = this.getChild_1(d)), this.bringNavigationArrowsContainerToFront_0(), !instanceOf(e, GT248) || e.isVisibleWithReelset_1(this.reelset))) return e; GT1650.prototype.assertExp_2(!1, "WARNING: GUIPageContainer.getPreviousAvailablePage()-> No page for current reelset found! current reelset=" + this.reelset); return null; }, showFirstPage_0: function () { if (!this.isAlive_0() || 0 == this.getChildCountWithoutArrowContainer_0()) return null; this.initPageNrVisualization_0(); this.initSwipeContainer_0(); if (null != this.pageAnimationCallback && null != this.pageAnimationCallback.getOldPage_0()) { var a = this.pageAnimationCallback.getOldPage_0(); a.moveAnchor_2(a.getAnchorX_0(), -a.getHeight_0()); this.pageAnimationCallback.cancel_0(); this.timer.removeCallback_2(this.pageAnimationStartCallback, !1); } this.bringNavigationArrowsContainerToFront_0(); null == this.firstPage && this.setFirstPage_0(); a = this.getChild_1(this.getChildCountWithoutArrowContainer_0() - 1); if (a == this.firstPage) this.hidePage_2(a, !1); else for (; a != this.firstPage; ) this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && this.hidePage_2(this.getChild_1(this.getChildCountWithoutArrowContainer_0() - 1), !0), (a = this.getChild_1(0)), a.reorder_1(!0), this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL || this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP || this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE ? a.moveAnchor_2(0, 0) : a.moveAnchor_2(a.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - a.getHeight_0()), this.hidePage_2(a, !1), this.bringNavigationArrowsContainerToFront_0(); if (instanceOf(a, GT248) && !a.isVisibleWithReelset_1(this.reelset)) { for (var b = this.getChildCountWithoutArrowContainer_0(); instanceOf(a, GT248) && !a.isVisibleWithReelset_1(this.reelset) && 0 < b; ) this.pageChangeAnimationType != GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE && this.hidePage_2(this.getChild_1(this.getChildCountWithoutArrowContainer_0() - 1), !0), (a = this.getChild_1(0)), a.reorder_1(!0), this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL || this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP || this.pageChangeAnimationType == GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE ? a.moveAnchor_2(0, 0) : a.moveAnchor_2(a.getAnchorX_0(), Integer.truncate_1(Math.div(this.getHeight_0(), this.getContentScaleY_0())) - a.getHeight_0()), this.hidePage_2(a, !1), this.bringNavigationArrowsContainerToFront_0(), --b; instanceOf(a, GT248) && !a.isVisibleWithReelset_1(this.reelset) && (this.hidePage_2(a, !0), GT1650.prototype.assertExp_2(!1, "WARNING: GUIPageContainer.showFirstPage()-> No page for current reelset found! current reelset=" + this.reelset)); } return a; }, isActivePlayer_0: function () { return this.activePlayer; }, setActivePlayer_1: function (a) { this.activePlayer = a; this.setNavigationArrowButtonsActive_1(a); }, setAnimated_1: function (a) { this.animationTime = a; }, setPageChangeAnimationType_1: function (a) { this.pageChangeAnimationType = a; }, setOpenCloseTime_1: function (a) { this.openCloseTime = a; }, setDisableConsoleTime_1: function (a) { this.disableConsoleTime = a; }, getSoundOpen_0: function () { return this.soundOpen; }, getSoundClose_0: function () { return this.soundClose; }, setPageVisualization_3: function (a, b, d) { this.pageVisualization = a; this.pageVisualizationPosition = b; this.pageVisualizationAlpha = d; }, addPageChangeAnimationFinishCallback_1: function (a) { null == a || this.pageChangeAnimationFinishCallbacks.contains_1(a) || this.pageChangeAnimationFinishCallbacks.addElement_1(a); }, removePageChangeAnimationFinishCallback_1: function (a) { this.pageChangeAnimationFinishCallbacks.removeElement_1(a); }, firePageChangeAnimationFinishCallbacks_0: function () { for (var a = this.pageChangeAnimationFinishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, }, "GT740", [GT1066] ), GT84 = Class.extend( { initialConstructor_0: function () { this.cmdSwipe = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.cmdSwipe = null; this.cmdSwipe = a; }, run_0: function () { this.cmdSwipe.setActive_1(!0); }, }, "GT84", [Runnable] ), GT120 = Class.extend( { initialConstructor_0: function () { this.cntPages = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.cntPages = null; this.cntPages = a; }, run_0: function () { for (var a = this.cntPages.getChildCountWithoutArrowContainer_0(), b = a; 0 <= b; b--) this.cntPages.hidePage_2(this.cntPages.getChild_1(b), !1); for (var d = this.cntPages.getChild_1(a - 1), b = a - 2; 0 <= b; b--) this.cntPages.getChild_1(b).move_2(d.getWidth_0(), 0); }, }, "GT120", [Runnable] ), GT44 = Class.extend( { initialConstructor_0: function () { this.buttonSwipe = this.buttonNext = this.buttonPrevious = this.arrowContainer = this.newPage = this.oldPage = this.animator = null; this.cancelled = this.showNextPage = !1; this.guiPageContainer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.buttonSwipe = this.buttonNext = this.buttonPrevious = this.arrowContainer = this.newPage = this.oldPage = this.animator = null; this.cancelled = this.showNextPage = !1; this.guiPageContainer = null; this.animator = a; this.oldPage = b; this.newPage = d; this.showNextPage = f; this.arrowContainer = e; this.buttonPrevious = g; this.buttonNext = k; this.buttonSwipe = m; this.guiPageContainer = n; this.cancelled = !1; }, getOldPage_0: function () { return this.oldPage; }, cancel_0: function () { null != this.newPage && this.newPage.isAlive_0() && instanceOf(this.newPage, GT1437) && this.newPage.setCacheAsBitmap_1(!1); null != this.oldPage && this.oldPage.isAlive_0() && instanceOf(this.oldPage, GT1437) && this.oldPage.setCacheAsBitmap_1(!1); this.showNextPage ? null != this.newPage && this.newPage.isAlive_0() && this.newPage.reorder_1(!0) : null != this.oldPage && this.oldPage.isAlive_0() && this.oldPage.reorder_1(!1); null != this.arrowContainer && this.arrowContainer.isAlive_0() && this.arrowContainer.reorder_1(!0); null != this.oldPage && this.oldPage.isAlive_0(); this.cancelled = !0; this.newPage = this.oldPage = null; null != this.animator && this.animator.killAndTrigger_1(!1); this.arrowContainer = this.animator = null; }, run_0: function () { this.cancelled || (null != this.newPage && this.newPage.isAlive_0() && instanceOf(this.newPage, GT1437) && this.newPage.setCacheAsBitmap_1(!1), null != this.oldPage && this.oldPage.isAlive_0() && instanceOf(this.oldPage, GT1437) && this.oldPage.setCacheAsBitmap_1(!1), this.showNextPage ? null != this.newPage && this.newPage.isAlive_0() && this.newPage.reorder_1(!0) : null != this.oldPage && this.oldPage.isAlive_0() && this.oldPage.reorder_1(!1), null != this.arrowContainer && this.arrowContainer.isAlive_0() && this.arrowContainer.reorder_1(!0), null != this.buttonPrevious && this.buttonPrevious.isAlive_0() && this.buttonPrevious.setActive_1(!0), null != this.buttonNext && this.buttonNext.isAlive_0() && this.buttonNext.setActive_1(!0), null != this.buttonSwipe && this.buttonSwipe.isAlive_0() && this.buttonSwipe.setActive_1(!0), (this.buttonNext = this.buttonPrevious = this.arrowContainer = this.animator = this.newPage = this.oldPage = null), this.guiPageContainer.updatePageNrVisualization_0(), this.guiPageContainer.firePageChangeAnimationFinishCallbacks_0()); }, }, "GT44", [Runnable] ); GT740.prototype.IGNORE_INPUT_DURING_ANIMATION = !0; GT740.prototype.ANIMATION_TYPE_NONE = 0; GT740.prototype.ANIMATION_TYPE_SLIDE_VERTICAL = 1; GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL = 2; GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_STRIP = 3; GT740.prototype.ANIMATION_TYPE_SLIDE_HORIZONTAL_LIVE = 4; GT740.prototype.DEFAULT_OPEN_CLOSE_TIME = 250; GT740.prototype.DEFAULT_DISABLE_CONSOLE_TIME = 600; var GT999 = GT740.extend( { initialConstructor_0: function () { this.reelsetMultiplierMapping = this.formatter = this.jackpotExchangeRateText = this.multiJackpotContributionText = this.jackpotContributionText = this.maxRoundWinText = this.oldGambleText = this.multiAllWinJackpotInfoText = this.allWinJackpotInfoText = this.multiJackpotInfoText = this.jackpotInfoText = this.maxGambleAbsoluteWinText = this.maxGambleStepsText = this.maxGambleStepsAndWinText = this.maxGambleWinText = this.minTotalBetText = this.explanationRTPText = this.theoreticalRTPText = null; this.omitCentPolicyRulesPage = this.maxGambleSteps = this.maxGambleWin = this.numLines = this.betPerLine = this.currentMultiplier = 0; this.reelsetUpdated = this.linkEntryFonts = this.reelsetDependentEntries = this.hideContextMenuButtonIfIsBigPaytable = this.showCurrencyText = !1; GT740.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.reelsetMultiplierMapping = this.formatter = this.jackpotExchangeRateText = this.multiJackpotContributionText = this.jackpotContributionText = this.maxRoundWinText = this.oldGambleText = this.multiAllWinJackpotInfoText = this.allWinJackpotInfoText = this.multiJackpotInfoText = this.jackpotInfoText = this.maxGambleAbsoluteWinText = this.maxGambleStepsText = this.maxGambleStepsAndWinText = this.maxGambleWinText = this.minTotalBetText = this.explanationRTPText = this.theoreticalRTPText = null; this.omitCentPolicyRulesPage = this.maxGambleSteps = this.maxGambleWin = this.numLines = this.betPerLine = this.currentMultiplier = 0; this.reelsetUpdated = this.linkEntryFonts = this.reelsetDependentEntries = this.hideContextMenuButtonIfIsBigPaytable = this.showCurrencyText = !1; GT740.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, k, m); this.theoreticalRTPText = "#0"; this.explanationRTPText = ""; this.jackpotContributionText = this.maxRoundWinText = this.minTotalBetText = "#0"; this.formatter = new GT1285(); this.currentMultiplier = 1; this.numLines = this.betPerLine = -1; this.maxGambleWin = -10; this.reelsetUpdated = this.reelsetDependentEntries = this.linkEntryFonts = this.hideContextMenuButtonIfIsBigPaytable = this.showCurrencyText = !1; this.setButtonsContainerID_1(GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID); this.setNextPageButtonID_1(GT999.prototype.BUTTON_NEXT_PAGE_ID); this.setCloseButtonID_1(GT999.prototype.BUTTON_CLOSE_ID); this.setPreviousPageButtonID_1(GT999.prototype.BUTTON_PREVIOUS_PAGE_ID); }, applyReelsetToContainer_2: function (a, b) { this.reelsetUpdated = !0; this.reelsetMultiplierMapping.containsKey_1(Integer.toString_1(b)) ? (this.currentMultiplier = this.reelsetMultiplierMapping.get_1(Integer.toString_1(b)).doubleValue_0()) : (this.currentMultiplier = 1); GT740.prototype.applyReelsetToContainer_2.call(this, a, b); }, setEnableReelsetDependentEntries_1: function (a) { this.reelsetDependentEntries = a; }, setPaytableEntries_1: function (a) { for (var b = 0; b < a.length; b++) this.setPaytableEntry_2(this, a[b]); }, setPaytableEntry_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) if (instanceOf(a.getChild_1(e), GT1120)) { var f = a.getChild_1(e); f.getSymbol_0() != b.symbol || (-1 != f.getNumber_0() && f.getNumber_0() != b.number) || f.addPayTableEntry_1(b); instanceOf(f, GT746) && f.setReelsetDependent_1(this.reelsetDependentEntries); } else instanceOf(a.getChild_1(e), GT1437) && this.setPaytableEntry_2(a.getChild_1(e), b); }, removeAllPaytableEntries_1: function (a) { for (var b = a.getChildCount_0(), d = 0; d < b; d++) instanceOf(a.getChild_1(d), GT1120) ? a.getChild_1(d).removeAllPayTableEntries_0() : instanceOf(a.getChild_1(d), GT1437) && this.removeAllPaytableEntries_1(a.getChild_1(d)); }, setBet_2: function (a, b) { if (a != this.betPerLine || b != this.numLines || this.reelsetUpdated) { this.setBet_3(this, a, b); this.betPerLine = a; this.numLines = b; if (this.linkEntryFonts) { this.applyFontSizeToAllEntries_2(this, 0); var d = this.findIndexForSmallestUsedFont_1(this); this.applyFontSizeToAllEntries_2(this, d); } this.reelsetUpdated = !1; } }, applyFontSizeToAllEntries_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) instanceOf(a.getChild_1(d), GT1120) ? instanceOf(a.getChild_1(d), GT1123) && a.getChild_1(d).setFontSearchStartIndex_1(b) : instanceOf(a.getChild_1(d), GT1437) && this.applyFontSizeToAllEntries_2(a.getChild_1(d), b); }, findIndexForSmallestUsedFont_1: function (a) { for (var b = a.getChildCount_0(), d = -1, e = 0; e < b; e++) { var f = -1; instanceOf(a.getChild_1(e), GT1120) ? instanceOf(a.getChild_1(e), GT1123) && (f = a.getChild_1(e).getUsedFontIndex_0()) : instanceOf(a.getChild_1(e), GT1437) && (f = this.findIndexForSmallestUsedFont_1(a.getChild_1(e))); f > d && (d = f); } return d; }, setBet_3: function (a, b, d) { for (var e = a.getChildCount_0(), f = 0; f < e; f++) instanceOf(a.getChild_1(f), GT1120) ? a.getChild_1(f).setBet_3(b, d, this.currentMultiplier) : instanceOf(a.getChild_1(f), GT1437) && this.setBet_3(a.getChild_1(f), b, d); }, setOmitCentThreshold_1: function (a) { this.setOmitCentThreshold_2(this, a); }, setOmitCentThreshold_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) instanceOf(a.getChild_1(e), GT746) ? a.getChild_1(e).setOmitCentThreshold_1(b) : instanceOf(a.getChild_1(e), GT1437) && this.setOmitCentThreshold_2(a.getChild_1(e), b); }, setOmitCentPolicyRulesPage_1: function (a) { this.omitCentPolicyRulesPage = a; }, setCurrencyFormatter_1: function (a) { this.formatter = a; this.setCurrencyFormatter_2(this, a); var b = new java_util_JavaScriptVector(); this.getCurrencyTexts_2(b, this); if (b.isEmpty_0()) GT1650.prototype.assertExp_2(!this.showCurrencyText, "CURRENCY_TEXT missing in paytable"); else for (var d = 0; d < b.size_0(); d++) { var e = b.get_1(d); e.hide_1(!this.showCurrencyText || (instanceOf(a, GT711) && 0 == a.getCurrencySymbol_0().length_0())); if (instanceOf(a, GT711) && instanceOf(e, GT1584)) { var f = GT1677.prototype.replaceInString_3(e.getText_0(), "#0", a.getCurrencySymbol_0()); e.setText_1(f); } } }, getCurrencyTexts_2: function (a, b) { for (var d = 0; d < b.getChildCount_0(); d++) { var e = b.getChild_1(d); e.getApplicationID_0() == GT999.prototype.CURRENCY_TEXT ? a.add_1(e) : instanceOf(e, GT1437) && this.getCurrencyTexts_2(a, e); } }, setCurrencyFormatter_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) instanceOf(a.getChild_1(e), GT1120) ? a.getChild_1(e).setCurrencyFormatter_1(b) : instanceOf(a.getChild_1(e), GT1437) && this.setCurrencyFormatter_2(a.getChild_1(e), b); }, isShowCurrencyText_0: function () { return this.showCurrencyText; }, setShowCurrencyText_1: function (a) { this.showCurrencyText = a; }, isHideContextMenuButtonIfBigPaytable_0: function () { return this.hideContextMenuButtonIfIsBigPaytable; }, hideContextMenuButtonIfBigPaytable_1: function (a) { this.hideContextMenuButtonIfIsBigPaytable = a; }, setTheoreticalRTPText_1: function (a) { this.theoreticalRTPText = a; }, setJackpotContributionText_2: function (a, b) { this.jackpotContributionText = a; this.multiJackpotContributionText = b; }, setJackpotExchangeRateText_1: function (a) { this.jackpotExchangeRateText = a; }, setRTPExplanationText_1: function (a) { this.explanationRTPText = a; }, setMinTotalBetText_1: function (a) { this.minTotalBetText = a; }, setMaxGambleWinAndStepsTexts_4: function (a, b, d, e) { this.maxGambleWinText = a; this.maxGambleStepsAndWinText = b; this.maxGambleStepsText = d; this.maxGambleAbsoluteWinText = e; }, setJackpotComplianceInfoTexts_4: function (a, b, d, e) { this.jackpotInfoText = a; this.multiJackpotInfoText = b; this.allWinJackpotInfoText = d; this.multiAllWinJackpotInfoText = e; }, setMaximumRoundWinText_1: function (a) { this.maxRoundWinText = a; }, setTheoreticalRTP_1: function (a) { null == a ? ((a = this.replaceTextInChildren_3(this, " THEORETICALRTP", "")) || this.replaceTextInChildren_3(this, "THEORETICALRTP", ""), (a = this.replaceTextInChildren_3(this, " RTPEXPLANATION", "")) || this.replaceTextInChildren_3(this, "RTPEXPLANATION", "")) : ((a = GT1677.prototype.replaceInString_3(this.theoreticalRTPText, "#0", a)), this.replaceTextInChildren_3(this, "THEORETICALRTP", a), this.replaceTextInChildren_3(this, "RTPEXPLANATION", this.explanationRTPText)); }, setJackpotContribution_1: function (a) { this.setJackpotContribution_2(a, null); }, setJackpotContribution_2: function (a, b) { var d = !1; null != b && instanceOf(b, GT410) && (d = null != b.getJackpotValueTexts_0() && 1 < b.getJackpotValueTexts_0().size_0()); null == a ? this.replaceTextInChildren_3(this, "JACKPOTCONTRIBUTION", "") : ((d = d ? GT1677.prototype.replaceInString_3(this.multiJackpotContributionText, "#0", a) : GT1677.prototype.replaceInString_3(this.jackpotContributionText, "#0", a)), this.replaceTextInChildren_3(this, "JACKPOTCONTRIBUTION", d)); }, setJackpotComplianceInfo_1: function (a) { if (!instanceOf(a, GT410) || null == a.getJackpotValueTexts_0() || 1 > a.getJackpotValueTexts_0().size_0()) this.replaceTextInChildren_3(this, " JACKPOTCOMPLIANCEINFO", "") || this.replaceTextInChildren_3(this, "JACKPOTCOMPLIANCEINFO", ""); else { for (var b = "", d = 0; d < a.getJackpotValueTexts_0().size_0(); d++) b = b.equals_1("") ? "" + a.getJackpotValueTexts_0().get_1(d) : b + (" / " + a.getJackpotValueTexts_0().get_1(d)); var d = a.isTriggerProbabilitySet_0(), e = ""; 1 < a.getJackpotValueTexts_0().size_0() && d && (e = this.multiAllWinJackpotInfoText); 1 >= a.getJackpotValueTexts_0().size_0() && d && (e = this.allWinJackpotInfoText); 1 < a.getJackpotValueTexts_0().size_0() && !d && (e = this.multiJackpotInfoText); 1 >= a.getJackpotValueTexts_0().size_0() && !d && (e = this.jackpotInfoText); e = GT1677.prototype.replaceInString_3(e, "#0", b); this.replaceTextInChildren_3(this, "JACKPOTCOMPLIANCEINFO", e); } }, setJackpotExchangeRate_0: function () { var a = -1; null != this.formatter && instanceOf(this.formatter, GT414) && (a = this.formatter.getCurrencyFactor_0()); -1 == a || 1 == a || 100 == a ? this.replaceTextInChildren_3(this, " JACKPOTEXCHANGERATE", "") || this.replaceTextInChildren_3(this, "JACKPOTEXCHANGERATE", "") : this.replaceTextInChildren_3(this, "JACKPOTEXCHANGERATE", this.jackpotExchangeRateText); }, setGambleLimit_2: function (a, b) { this.setGambleLimit_3(a, b, !1); }, setGambleLimit_3: function (a, b, d) { if (a != this.maxGambleWin || b != this.maxGambleSteps) { var e = ""; if (0 < b && 0 < a) { var f = a >= Double.MAX_VALUE, g = 999 <= b; g || f || null == this.maxGambleStepsAndWinText ? g || null == this.maxGambleStepsText ? !f && d && null != this.maxGambleAbsoluteWinText ? (e = GT1677.prototype.replaceInString_3(this.maxGambleAbsoluteWinText, "#0", this.formatter.format_1(a))) : f || null == this.maxGambleWinText || ((e = GT1677.prototype.replaceInString_3(this.maxGambleWinText, "#0", this.formatter.format_1(a / 2))), (e = GT1677.prototype.replaceInString_3(e, "#1", this.formatter.format_1(a)))) : (e = GT1677.prototype.replaceInString_3(this.maxGambleStepsText, "#0", "" + b)) : ((e = GT1677.prototype.replaceInString_3(this.maxGambleStepsAndWinText, "#0", "" + b)), (e = GT1677.prototype.replaceInString_3(e, "#1", this.formatter.format_1(a / 2)))); } a = !1; null == this.oldGambleText && ((this.oldGambleText = "GAMBLELIMITS"), e.equals_1("") && (a = this.replaceTextInChildren_3(this, " " + this.oldGambleText, e))); a || (a = this.replaceTextInChildren_3(this, this.oldGambleText, e)); a && (this.oldGambleText = e); } }, resetGambleLimitText_0: function () { null != this.oldGambleText && (this.replaceTextInChildren_3(this, this.oldGambleText, "GAMBLELIMITS"), (this.oldGambleText = null)); }, setMinTotalBet_1: function (a) { a = instanceOf(this.formatter, GT711) ? this.formatter.format_2(a, this.omitCentPolicyRulesPage) : this.formatter.format_1(a); a = GT1677.prototype.replaceInString_3(this.minTotalBetText, "#0", a); this.replaceTextInChildren_3(this, "MINIMUMTOTALBET", a); }, setMaximumRoundWin_1: function (a) { if (null == a || a.equals_1("0")) this.replaceTextInChildren_3(this, " MAXROUNDWIN", "") || this.replaceTextInChildren_3(this, "MAXROUNDWIN", ""); else { var b = GT1677.prototype.replaceInString_3(this.maxRoundWinText, "#0", this.formatter.format_1(GT1672.prototype.stringToDouble_1(a))); this.replaceTextInChildren_3(this, "MAXROUNDWIN", b); a = GT1672.prototype.stringToDouble_1(a); this.setMaximumRoundWin_2(this, a); } }, setMaximumRoundWin_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) instanceOf(a.getChild_1(e), GT1120) ? a.getChild_1(e).setMaximumRoundWin_1(b) : instanceOf(a.getChild_1(e), GT1437) && this.setMaximumRoundWin_2(a.getChild_1(e), b); }, replaceTextInChildren_3: function (a, b, d) { for (var e = !1, f = a.getChildCount_0(), g = 0; g < f; g++) if (instanceOf(a.getChild_1(g), GT1584)) { var k = a.getChild_1(g).getText_0(); null != k && 0 <= k.indexOf_1(b) && ((k = GT1677.prototype.replaceInString_3(k, b, d)), a.getChild_1(g).setText_1(k), (e = !0)); } else instanceOf(a.getChild_1(g), GT1437) && (e = this.replaceTextInChildren_3(a.getChild_1(g), b, d) || e); return e; }, setReelsetMultiplierMapping_1: function (a) { this.reelsetMultiplierMapping = a; }, setLinkPaytableEntryFonts_1: function (a) { this.linkEntryFonts = a; }, setJackpotCalculator_1: function (a) { this.setJackpotCalculator_2(a, this); }, setJackpotCalculator_2: function (a, b) { for (var d = b.getChildCount_0(), e = 0; e < d; e++) instanceOf(b.getChild_1(e), GT779) ? b.getChild_1(e).setCalculator_1(a) : instanceOf(b.getChild_1(e), GT1437) && this.setJackpotCalculator_2(a, b.getChild_1(e)); }, updateJackpotFields_0: function () { this.updateJackpotFields_1(this); }, updateJackpotFields_1: function (a) { for (var b = a.getChildCount_0(), d = 0; d < b; d++) instanceOf(a.getChild_1(d), GT779) ? a.getChild_1(d).updateJackpot_0() : instanceOf(a.getChild_1(d), GT1437) && this.updateJackpotFields_1(a.getChild_1(d)); }, setJackpotVisualsLocked_1: function (a) { this.setJackpotVisualsLocked_2(this, a); }, setJackpotVisualsLocked_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) instanceOf(a.getChild_1(e), GT917) ? a.getChild_1(e).setLocked_1(b) : instanceOf(a.getChild_1(e), GT1437) && this.setJackpotVisualsLocked_2(a.getChild_1(e), b); }, }, "GT999", [] ); GT999.prototype.RULES_PAGE = GT1560.prototype.generateID_0(); GT999.prototype.RULES_TEXT = GT1560.prototype.generateID_0(); GT999.prototype.CURRENCY_TEXT = GT1560.prototype.generateID_0(); GT999.prototype.NAVIGATION_BUTTONS_CONTAINER_ID = GT1560.prototype.generateID_0(); GT999.prototype.BUTTON_NEXT_PAGE_ID = GT1560.prototype.generateID_0(); GT999.prototype.BUTTON_PREVIOUS_PAGE_ID = GT1560.prototype.generateID_0(); GT999.prototype.BUTTON_SWIPE = GT1560.prototype.generateID_0(); GT999.prototype.BUTTON_CLOSE_CONTAINER_ID = GT1560.prototype.generateID_0(); GT999.prototype.BUTTON_CLOSE_ID = GT1560.prototype.generateID_0(); var GT774 = GT1437.extend( { initialConstructor_0: function () { this.color = this.layout = null; this.activeReels = this.activeRow = this.alpha = 0; this.colorAreas = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.color = this.layout = null; this.activeReels = this.activeRow = this.alpha = 0; this.colorAreas = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.layout = g; this.color = k; this.alpha = m; this.activeRow = n; this.activeReels = p; this.colorAreas = [].createArray(g.columns, g.rows); this.initialize_0(); }, getActiveRow_0: function () { return this.activeRow; }, setActiveRow_1: function (a) { this.activeRow = a; }, isActive_2: function (a, b) { return a < this.activeReels || b == this.activeRow; }, repaint_0: function () { for (var a = 0; a < this.colorAreas.length; ++a) for (var b = 0; b < this.colorAreas[a].length; ++b) this.colorAreas[a][b].hide_1(this.isActive_2(a, b)); }, initialize_0: function () { for (var a = 0; a < this.colorAreas.length; ++a) for (var b = 0; b < this.colorAreas[a].length; ++b) (this.colorAreas[a][b] = new GT1440(this, this.layout.getColumnPos_1(a), this.layout.getRowPos_1(b), this.layout.symbolWidth, this.layout.symbolHeight, this.color)), this.colorAreas[a][b].setAlpha_1(this.alpha), this.colorAreas[a][b].hide_1(this.isActive_2(a, b)); }, hideColorArea_3: function (a, b, d) { a < this.colorAreas.length && b < this.colorAreas[a].length && this.colorAreas[a][b].hide_1(d); }, update_1: function (a) { this.activeReels = a; this.repaint_0(); }, }, "GT774", [] ); GT774.prototype.TOP = 0; GT774.prototype.MIDDLE = 1; GT774.prototype.BOTTOM = 2; var GT834 = GT1437.extend( { initialConstructor_0: function () { this.valueCountFinishCallbackCredits = this.valueCountFinishCallbackWin = this.handler = this.timer = this.winFieldFormatter = this.currencyFormatter = null; this.autoplayMeter = this.currentSuperGamesCount = this.winSuperGames = this.totalRoundWin = this.win = this.betPerLine = this.gameMode = this.numberOfLines = this.betMultiplier = 0; this.state = null; this.soundDecideGambleLoopPlaying = !1; this.soundPlayer = this.soundSuperGameCounter = this.soundDecideGamble = null; this.maximumRoundWin = this.decideGambleLoopEnd = this.decideGambleLoopStart = 0; this.winSuperGameCounter = this.superGameCounter = this.colorHighlightStatusTextAndWin = this.colorWinDefault = this.colorTextInactive = this.colorStatusTextDefault = this.autoplayMeterHandler = this.statusHighlighter = this.customCallbackHandler = this.slotConsoleListeners = null; this.showStatusHighlightBackground = this.hideStatusBackgroundIfNoText = !1; this.consoleStates = null; this.currentState = 0; this.showTotalBetInBetPerLineField = this.showTotalBetForBetSpinner = this.consoleNeonEnabled = this.ignoreAPCounter = this.neverHideWinField = this.hideCreditValue = this.lastWinAvailable = this.hideLineSpinnerIfLinesAreFixed = this.active = !1; this.gameConsoleSlotConsoleBridge = this.consoleStateHandler = this.customListener = this.customConsoles = this.formatterBetSpinner = this.formatterCurrencyFields = this.formatterCreditAndBalanceField = this.hideMoneyAnimator = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.valueCountFinishCallbackCredits = this.valueCountFinishCallbackWin = this.handler = this.timer = this.winFieldFormatter = this.currencyFormatter = null; this.autoplayMeter = this.currentSuperGamesCount = this.winSuperGames = this.totalRoundWin = this.win = this.betPerLine = this.gameMode = this.numberOfLines = this.betMultiplier = 0; this.state = null; this.soundDecideGambleLoopPlaying = !1; this.soundPlayer = this.soundSuperGameCounter = this.soundDecideGamble = null; this.maximumRoundWin = this.decideGambleLoopEnd = this.decideGambleLoopStart = 0; this.winSuperGameCounter = this.superGameCounter = this.colorHighlightStatusTextAndWin = this.colorWinDefault = this.colorTextInactive = this.colorStatusTextDefault = this.autoplayMeterHandler = this.statusHighlighter = this.customCallbackHandler = this.slotConsoleListeners = null; this.showStatusHighlightBackground = this.hideStatusBackgroundIfNoText = !1; this.consoleStates = null; this.currentState = 0; this.showTotalBetInBetPerLineField = this.showTotalBetForBetSpinner = this.consoleNeonEnabled = this.ignoreAPCounter = this.neverHideWinField = this.hideCreditValue = this.lastWinAvailable = this.hideLineSpinnerIfLinesAreFixed = this.active = !1; this.gameConsoleSlotConsoleBridge = this.consoleStateHandler = this.customListener = this.customConsoles = this.formatterBetSpinner = this.formatterCurrencyFields = this.formatterCreditAndBalanceField = this.hideMoneyAnimator = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = k.getTimer_0(); this.currencyFormatter = new GT1285(); this.formatterCreditAndBalanceField = new GT332(this.currencyFormatter, GT711.prototype.OMIT_CENT_NEVER); this.formatterCurrencyFields = new GT332(this.currencyFormatter, GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO); this.formatterBetSpinner = new GT332(this.currencyFormatter, GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO); this.formatterBetSpinner.setShowCurrency_1(!1); this.slotConsoleListeners = new java_util_JavaScriptVector(); this.winFieldFormatter = new GT251(this.currencyFormatter, "", ""); this.handler = new GT468(this); this.autoplayMeter = -1; this.totalRoundWin = this.win = 0; this.hideStatusBackgroundIfNoText = !1; this.consoleStates = new java_util_JavaScriptHashtable(); if (null != g) for (a = g.keys_0(); a.hasMoreElements_0(); ) (b = a.nextElement_0()), (d = g.get_1(b)), instanceOf(d, GT725) ? this.consoleStates.put_2(b, d) : GT1650.prototype.assertExp_2(!1, "console state is wrong object"); this.lastWinAvailable = !0; this.neverHideWinField = !1; this.ignoreAPCounter = k.hasSkinId_1("skyvegas") && "1".equals_1(k.getParameter_1("ukgc.autoplayfeature.enabled")); this.consoleNeonEnabled = GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0(); this.winFieldFormatter.setHideWhenValueIsZero_1(!1); this.customConsoles = new java_util_JavaScriptVector(); this.customListener = new java_util_JavaScriptVector(); this.customCallbackHandler = new GT497(this); this.showTotalBetInBetPerLineField = !1; }, addCustomConsole_1: function (a) { GT1650.prototype.assertExp_2(null != a, "console must not be null"); GT1650.prototype.assertExp_2(!this.customConsoles.contains_1(a), "console already added"); this.customConsoles.add_1(a); a.init_1(this); }, removeCustomConsole_1: function (a) { this.customConsoles.contains_1(a) && this.customConsoles.removeElement_1(a); }, getCustomConsoles_0: function () { return this.customConsoles; }, addCustomConsoleListener_1: function (a) { GT1650.prototype.assertExp_2(null != a, "listener must not be null"); GT1650.prototype.assertExp_2(!this.customListener.contains_1(a), "listener already added"); this.customListener.add_1(a); for (var b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).addConsoleListener_1(a); }, removeCustomConsoleListener_1: function (a) { if (this.customListener.contains_1(a)) { this.customListener.removeElement_1(a); for (var b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).removeConsoleListener_1(a); } }, setConsoleStateHandler_1: function (a) { this.consoleStateHandler = a; }, setShowTotalBetForBetSpinner_1: function (a) { this.showTotalBetForBetSpinner = a; }, setShowTotalBetInBetPerLineField_1: function (a) { this.showTotalBetInBetPerLineField = a; }, setOmitCentPolicyCurrencyFields_1: function (a) { this.formatterCurrencyFields.setOmitCentPolicy_1(a); }, setOmitCentPolicyCreditAndBalanceField_1: function (a) { this.formatterCreditAndBalanceField.setOmitCentPolicy_1(a); }, setHideStatusBackgroundIfNoText_1: function (a) { this.hideStatusBackgroundIfNoText = a; }, setHideCreditValue_2: function (a, b) { if (this.hideCreditValue != a) if (((this.hideCreditValue = a), null == this.customConsoles || 0 >= this.customConsoles.size_0())) this.updateHideMoneyBarrier_2(!a, b), this.fireCreditsHiddenCallback_1(a); else for (var d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setHideCreditValue_3(a, b, null); }, updateHideMoneyBarrier_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS); if (GT1560.prototype.isAlive_1(d)) { var e = d.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE); if (GT1560.prototype.isAlive_1(e)) { var f = GT834.prototype.HIDE_MONEY_BARRIER_TIME, g = 0, g = a ? d.getWidth_0() - e.getWidth_0() : 0; g == e.getX_0() ? (e.setClickableAreaShape_1(GT70.prototype.clickAreaShapeForDragableCoverCreditsButton_1(a)), GT70.prototype.setImageForCoverCreditsButton_2(e, a)) : 0 != f && b ? (null != this.hideMoneyAnimator && this.hideMoneyAnimator.isRunning_0() && this.hideMoneyAnimator.killWithoutTriggers_0(), (this.hideMoneyAnimator = new GT653(this.timer, e, g, e.getY_0(), f, !1)), this.hideMoneyAnimator.addFinishCallback_1(new GT70(e, a)), this.hideMoneyAnimator.start_0()) : (e.move_2(g, e.getY_0()), GT70.prototype.setImageForCoverCreditsButton_2(e, a)); } } }, isHideCreditValue_0: function () { return this.hideCreditValue; }, setColorHighlightStatusTextAndWin_1: function (a) { this.colorHighlightStatusTextAndWin = a; }, setColorTextInactive_1: function (a) { this.colorTextInactive = a; }, setSoundForBetChange_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.handler.setSound_2(a, b); }, setSoundForMaxBetChange_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.handler.setMaxBetSound_2(a, b); }, getSoundForBetChange_0: function () { return this.handler.getSound_0(); }, getSoundForMaxBetChange_0: function () { return this.handler.getMaxBetSound_0(); }, isSpinnerAtLastStep_1: function (a) { return null != a && instanceOf(a, GT1230) && a.getCurrentStep_0() == a.getNumberOfValues_0() - 1 ? !0 : !1; }, isBetPerLineSpinnerAtLastStep_0: function () { return this.isSpinnerAtLastStep_1(this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE)); }, isLinesSpinnerAtLastStep_0: function () { return this.isSpinnerAtLastStep_1(this.findDescendant_1(GT834.prototype.ID_SPINNER_LINES)); }, isGameModesSpinnerAtLastStep_0: function () { return this.isSpinnerAtLastStep_1(this.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES)); }, setSoundForStart_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.handler.setSoundStart_2(a, b); }, getSoundForStart_0: function () { return this.handler.getSoundForStart_0(); }, setSoundForAutoPlayStart_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.handler.setSoundAutoPlayStart_2(a, b); }, getSoundForAutoPlayStart_0: function () { return this.handler.getSoundForAutoPlayStart_0(); }, setSoundForAutoPlayStop_3: function (a, b, d) { GT1650.prototype.assertExp_2(null == d || null != b, "Sound player is null, but sound isn't"); this.handler.setSoundAutoPlayStop_3(a, b, d); }, getSoundForAutoPlayStop_0: function () { return this.handler.getSoundForAutoPlayStop_0(); }, getSoundForAutoPlayForcedStop_0: function () { return this.handler.getSoundForAutoPlayForcedStop_0(); }, setSoundForAutoPlayStopAtFeatureScreen_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.handler.setSoundAutoPlayStopAtFeatureScreen_2(a, b); }, setAnimateWinField_3: function (a, b, d) { var e = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN); null != e && instanceOf(e, GT1410) && e.addUpdateCallback_1(new GT396(e, this.timer, a, b, d)); }, getSoundForAutoPlayStopAtFeatureScreen_0: function () { return this.handler.getSoundForAutoPlayStopAtFeatureScreen_0(); }, setSoundDecideGamble_4: function (a, b, d, e) { this.stopDecideGambleSound_0(); GT1650.prototype.assertExp_2(null == e || null != a, "Sound player is null, but sound isn't"); this.soundDecideGamble = a; this.decideGambleLoopStart = b; this.decideGambleLoopEnd = d; null != e && (this.soundPlayer = e); }, setSoundSuperGameCounter_2: function (a, b) { GT1650.prototype.assertExp_2(null == b || null != a, "Sound player is null, but sound isn't"); this.soundSuperGameCounter = a; null != b && (this.soundPlayer = b); }, startDecideGambleSound_0: function () { null == this.soundPlayer || null == this.soundDecideGamble || this.soundDecideGambleLoopPlaying || (this.soundPlayer.startLooped_4(this.soundDecideGamble, 0, this.decideGambleLoopEnd, this.decideGambleLoopStart), (this.soundDecideGambleLoopPlaying = !0)); }, stopDecideGambleSound_0: function () { null != this.soundPlayer && null != this.soundDecideGamble && (this.soundPlayer.stop_1(this.soundDecideGamble), (this.soundDecideGambleLoopPlaying = !1)); }, startDecideGambleSound_1: function (a) { a ? this.startDecideGambleSound_0() : this.stopDecideGambleSound_0(); }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) this.formatterCreditAndBalanceField.setCurrencyFormatter_1(a), this.formatterCurrencyFields.setCurrencyFormatter_1(a), this.formatterBetSpinner.setCurrencyFormatter_1(a), this.showTotalBetForBetSpinner && this.formatterBetSpinner.setMultiplier_1(this.betMultiplier), this.winFieldFormatter.setCurrencyFormatter_1(this.formatterCurrencyFields), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCreditAndBalanceField), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCreditAndBalanceField), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields), (a = this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterBetSpinner), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields), (a = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN)), null != a && instanceOf(a, GT1231) && a.setFormatter_1(this.formatterCurrencyFields); else { a = null; instanceOf(this.currencyFormatter, GT414) && (a = this.currencyFormatter); for (var b = 0; b < this.customConsoles.size_0(); b++) if (null != a) { var d = GT514.prototype.getInstance_0(), e = d.getApplet_0().getSessionCurrency_0(); this.customConsoles.elementAt_1(b).setCurrencyFormatter_6(e, a.getCurrencyFactor_0(), a.getCurrencySymbol_0(), d.getCursymbolwithNoBreakingSpace_1(e), d.getDecimalSeparator_0(), d.getThousandSeparator_0()); } } }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, setMaximumRoundWin_1: function (a) { this.maximumRoundWin = a; }, setWinFieldText_2: function (a, b) { this.winFieldFormatter.setPrefix_1(a); this.winFieldFormatter.setSuffix_1(b); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.slotConsoleListeners.setSize_1(0); this.soundSuperGameCounter = this.soundDecideGamble = this.valueCountFinishCallbackCredits = this.valueCountFinishCallbackWin = this.handler = null; }, addSpinnerListener_2: function (a, b) { null != a && instanceOf(a, GT1230) && a.addSpinnerListener_1(b); }, init_0: function () { if (!(null != this.customConsoles && 0 < this.customConsoles.size_0())) { var a; a = this.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); null != a && instanceOf(a, GT1410) && (this.colorStatusTextDefault = a.getColor_0()); this.addSpinnerListener_2(this.findDescendant_1(GT834.prototype.ID_SPINNER_LINES), this.handler); this.addSpinnerListener_2(this.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES), this.handler); this.addSpinnerListener_2(this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE), this.handler); this.addSpinnerListener_2(this.findDescendant_1(GT834.prototype.ID_SPINNER_AUTOPLAY), this.handler); a = this.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); null != a && instanceOf(a, GT1410) && (a.setFormatter_1(this.formatterCreditAndBalanceField), (this.valueCountFinishCallbackCredits = new GT90(this, !0)), a.addFinishCallback_1(this.valueCountFinishCallbackCredits)); a = this.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCreditAndBalanceField); a = this.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_FIELD_BASEBET); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN); if (null != a && instanceOf(a, GT1410)) { a.setFormatter_1(this.winFieldFormatter); var b = this.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); this.valueCountFinishCallbackWin = new GT90(this, !GT1560.prototype.isAlive_1(b)); a.addFinishCallback_1(this.valueCountFinishCallbackWin); this.colorWinDefault = a.getColor_0(); } a = this.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT); null != a && a.hide_1(!0); this.setNumberOfLines_1(0); this.setGameMode_1(0); this.setBetPerLine_1(0); this.setSuperGames_4(0, "", GT1634.prototype.red, !0); a = this.getChildCount_0(); for (b = 0; b < a; b++) instanceOf(this.getChild_1(b), GT1559) && this.getChild_1(b).addButtonListener_1(this.handler); var d = this.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); d = this.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); d = this.findDescendant_1(GT834.prototype.ID_CONTAINER_LEFTALIGNED); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); d = this.findDescendant_1(GT834.prototype.ID_CONTAINER_RIGHTALIGNED); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); d = this.findDescendant_1(GT1150.prototype.ID_CONTAINER_MENU); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); d = this.findDescendant_1(GT1150.prototype.ID_CONTAINER_MENU_INNER); if (null != d) for (a = d.getChildCount_0(), b = 0; b < a; b++) instanceOf(d.getChild_1(b), GT1559) && d.getChild_1(b).addButtonListener_1(this.handler); a = this.findDescendant_1(GT834.prototype.ID_OBJECT_LASTWIN_NA); null != a && a.hide_1(!0); this.setState_1(GT725.prototype.BEFORE_SPIN_ZERO_CREDITS); a = this.findDescendant_1(GT834.prototype.ID_CONTAINER_COVER_CREDITS); var b = this.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE), d = this.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS), e = this.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE), f = this.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN); if (null != a && a.isAlive_0()) { var g = null; null != b && b.isAlive_0() && instanceOf(b, GT1559) && ((g = b), g.setDragable_4(!0, !1, 0, 0), g.setDragArea_4(0, 0, a.getWidth_0() - b.getWidth_0(), 0), g.addButtonListener_1(new GT136(this)), g.addButtonListener_1(this.handler)); null != d && d.isAlive_0() && instanceOf(d, GT1559) && ((g = d), g.addButtonListener_1(new GT136(this)), g.addButtonListener_1(this.handler)); GT1560.prototype.isAlive_1(e) && e.hide_1(!0); GT1560.prototype.isAlive_1(f) && f.hide_1(!0); } a = this.findDescendant_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER); null != a && instanceOf(a, GT1410) && a.setFormatter_1(this.formatterCurrencyFields); a = this.findDescendant_1(GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL); null != a && instanceOf(a, GT1559) && (a.addButtonListener_1(this.handler), a.setDragable_1(!1), a.setActive_1(!1), (this.autoplayMeterHandler = new GT300(a, this.timer))); } }, setHideText_2: function (a, b) { null != a && instanceOf(a, GT1449) && a.setHideText_1(b); }, setHideValueFields_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_LINES), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_BASEBET), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN), a), this.setHideText_2(this.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN), !this.lastWinAvailable); else for (var b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setHideValueFields_1(a); }, addConsoleListener_1: function (a) { this.slotConsoleListeners.contains_1(a) || this.slotConsoleListeners.addElement_1(a); }, removeConsoleListener_1: function (a) { this.slotConsoleListeners.contains_1(a) && this.slotConsoleListeners.removeElement_1(a); }, isActive_0: function () { return this.active; }, setActive_1: function (a) { this.active = a; this.setState_2(this.currentState, !0); }, setConsoleForCurrentStateInActive_0: function () { this.setState_2(this.currentState, !1); }, setObjectInactive_1: function (a) { a = this.findDescendant_1(a); null != a && (instanceOf(a, GT1559) ? a.setActive_1(!1) : instanceOf(a, GT1230) && a.setActive_1(!1)); }, setState_1: function (a) { this.setState_2(a, !0); }, setState_2: function (a, b) { this.currentState = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var d = this.consoleStates.get_1("" + a); if (null != d) { this.applyState_3(this, d, b); if (!this.consoleNeonEnabled) { var e = this.findDescendant_1(GT1150.prototype.ID_CONTAINER_MENU_INNER); null != e && this.applyState_3(e, d, b); e = this.findDescendant_1(GT834.prototype.ID_SPINNER_AUTOPLAY); e = null == e || -1 == e.getValue_0() ? this.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT) : this.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); null != e && e.hide_1(!0); } this.fireConsoleStateChangedCallback_2(d, b && this.active); } } else for (d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setState_2(this.consoleStateHandler.getCustomState_1(a), this.consoleStateHandler.getGuiStateConsoleIdentifier_0()), this.customConsoles.elementAt_1(d).setActive_1(this.active && b); }, applyState_3: function (a, b, d) { this.state = b; for (var e = a.getChildCount_0(), f = 0; f < e; f++) { var g = a.getChild_1(f), k = g.getApplicationID_0(); if (-1 != k) { var m = b.isActive_1(k), n = b.isInActive_1(k); if ( k != GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL && (k == GT834.prototype.ID_CONTAINER_LEFTALIGNED || k == GT834.prototype.ID_CONTAINER_RIGHTALIGNED || (k == GT834.prototype.ID_FIELD_AUTOPLAYS && this.ignoreAPCounter) || g.hide_1(!m && !n), instanceOf(g, GT1230) && (g.setActive_1(!n && this.active && d), k == GT834.prototype.ID_SPINNER_LINES && this.hideLineSpinnerIfLinesAreFixed && 2 > g.getNumberOfValues_0() && g.hide_1(!0)), null != this.colorTextInactive && instanceOf(g, GT1449) && (n ? g.setColor_1(this.colorTextInactive) : g.setColor_1(this.colorStatusTextDefault)), instanceOf(g, GT1559) && (g.setActive_1(!n && this.active && d), instanceOf(g, GT515) && ((m = b.isHighlighted_1(k)) && g.hide_1(!1), g.setHighlighted_1(m && this.active && d))), !instanceOf(g, GT1437) || (k != GT834.prototype.ID_AREA_AUTOPLAY_SELECT && k != GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT && k != GT834.prototype.ID_CONTAINER_LEFTALIGNED && k != GT834.prototype.ID_CONTAINER_RIGHTALIGNED) || this.applyState_3(g, b, d), instanceOf(g, GT1230) && instanceOf(g, GT1437)) ) for (k = g.getChildCount_0(), m = 0; m < k; m++) (n = g.getChild_1(m)), -1 != n.getApplicationID_0() && instanceOf(n, GT515) && n.setHighlighted_1(b.isHighlighted_1(n.getApplicationID_0()) && this.active); } } }, getState_0: function () { return this.state; }, setPossibleLineNumbers_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_SPINNER_LINES); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.numberOfLines = b); if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) for (d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setPossibleLineNumbers_2(a, b); this.setNumberOfLines_1(b); this.updateTotalBet_0(); }, setPossibleGameModes_2: function (a, b) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var d = this.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.gameMode = b); } else for (d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setPossibleGameModes_2(a, b); this.setGameMode_1(b); this.updateTotalBet_0(); }, setPossibleBetPerLine_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != d && instanceOf(d, GT1230) ? d.setValues_2(a, b) : (this.betPerLine = b); if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) for (d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setPossibleBetPerLine_2(a, b); this.setBetPerLine_1(b); this.updateTotalBet_0(); }, setBetMultiplier_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { if (!this.consoleNeonEnabled && this.showTotalBetForBetSpinner && this.betMultiplier != a) { this.formatterBetSpinner.setMultiplier_1(a); var b = this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != b && instanceOf(b, GT1231) && b.setFormatter_1(this.formatterBetSpinner); } } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setBetMultiplier_1(a); this.betMultiplier = a; this.updateTotalBet_0(); }, getBetMultiplier_0: function () { return this.betMultiplier; }, setNumberOfLines_1: function (a) { this.numberOfLines = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { if (!this.consoleNeonEnabled) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_LINES); null != b && instanceOf(b, GT1584) && b.setText_1("" + a); b = this.findDescendant_1(GT834.prototype.ID_SPINNER_LINES); null != b && instanceOf(b, GT1230) && b.setValue_1(a); } this.updateTotalBet_0(); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setNumberOfLines_1(a); }, getNumberOfLines_0: function () { return this.numberOfLines; }, setGameMode_1: function (a) { this.gameMode = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_SPINNER_GAME_MODES); null != b && instanceOf(b, GT1230) && b.setValue_1(a); this.updateTotalBet_0(); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setGameMode_1(a); }, getGameMode_0: function () { return this.gameMode; }, setHideLineSpinnerIfLinesAreFixed_1: function (a) { this.hideLineSpinnerIfLinesAreFixed = a; }, setBetPerLine_1: function (a) { this.betPerLine = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE); null != b && instanceOf(b, GT1410) && (0 < this.betMultiplier && 0 < this.numberOfLines && this.betMultiplier != this.numberOfLines ? b.setValue_2((this.betMultiplier / this.numberOfLines) * a, !0) : b.setValue_2(a, !0)); b = this.findDescendant_1(GT834.prototype.ID_FIELD_BASEBET); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); b = this.findDescendant_1(GT834.prototype.ID_SPINNER_BETPERLINE); null != b && instanceOf(b, GT1230) && b.setValue_1(a); this.updateTotalBet_0(); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setBetPerLine_1(a); }, getBetPerLine_0: function () { return this.betPerLine; }, updateTotalBet_0: function () { var a = this.betPerLine * this.betMultiplier; if (!this.consoleNeonEnabled) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); this.showTotalBetInBetPerLineField && ((b = this.findDescendant_1(GT834.prototype.ID_FIELD_BETPERLINE)), null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0)); } }, setCredits_2: function (a, b) { this.setCredits_3(a, b, -1); }, setCredits_3: function (a, b, d) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var e = this.findDescendant_1(GT834.prototype.ID_FIELD_CREDIT); if (null != e && instanceOf(e, GT1410)) { if (instanceOf(this.currencyFormatter, GT711)) { var f = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT711.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || f) e.setRoundDuringAnimation_1(2), f && e.setMinimumNumberOfSteps_1(1); } 0 <= d && e.setDuration_1(d); e.setValue_2(a, b); } } else for (e = b ? null : this.customCallbackHandler.getFinishCallback_1("setCreditsFinished"), f = 0; f < this.customConsoles.size_0(); f++) b ? this.customConsoles.elementAt_1(f).setCredits_1(a) : this.customConsoles.elementAt_1(f).setCreditsAnimation_3(a, d, e); }, setLastWin_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setLastWin_1(a); }, setTotalRoundWin_1: function (a) { this.setTotalRoundWin_2(a, -1); }, setTotalRoundWin_2: function (a, b) { var d = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_TOTALROUNDWINCHANGED); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(a)); d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_ANIMATIONDURATION, new Integer(b)); GT1242.prototype.fireWrapperStateEvent_2(GT514.prototype.getInstance_0().getSlotGui_0().getGameWrapperInterfaceCaller_0(), d.getMainTable_0()); d = this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN); if (null != d && instanceOf(d, GT1410)) { if (0 <= b) { if (instanceOf(this.currencyFormatter, GT711)) { var e = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT711.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || e) d.setRoundDuringAnimation_1(2), e && d.setMinimumNumberOfSteps_1(1); } d.setDuration_1(b); d.setValue_2(a, !1); } else d.setValue_2(a, !0); this.totalRoundWin = a; } }, setFreeRoundsWinnings_1: function (a) { this.setFreeRoundsWinnings_2(a, -1); }, setFreeRoundsWinnings_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS); if (null != d && instanceOf(d, GT1410)) if (0 <= b) { if (instanceOf(this.currencyFormatter, GT711)) { var e = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT711.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || e) d.setRoundDuringAnimation_1(2), e && d.setMinimumNumberOfSteps_1(1); } d.setDuration_1(b); d.setValue_2(a, !1); } else d.setValue_2(a, !0); }, setFreeRoundsText_1: function (a) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_FREEROUNDS); null != b && (instanceOf(b, GT1584) && b.setText_1(a), b.hide_1(null == a || a.equals_1("")), this.updateBackgrounds_0()); }, setBalance_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_BALANCE); null != b && instanceOf(b, GT1410) && b.setValue_2(a, !0); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setBalance_1(a); }, setLastWinAvailable_1: function (a) { if (this.lastWinAvailable != a) if (((this.lastWinAvailable = a), null == this.customConsoles || 0 >= this.customConsoles.size_0())) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_LASTWIN); null != b && instanceOf(b, GT1449) && b.setHideText_1(!a); b = this.findDescendant_1(GT834.prototype.ID_OBJECT_LASTWIN_NA); null != b && b.hide_1(a); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setLastWinAvailable_1(a); }, setPossibleNumberOfAutoplays_2: function (a, b) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var d = this.findDescendant_1(GT834.prototype.ID_SPINNER_AUTOPLAY); null != d && instanceOf(d, GT1230) && d.setValues_2(a, b); this.setAutoplayCounter_1(b); } else for (d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setPossibleNumberOfAutoplays_2(a, b); }, setAutoplayCounter_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); null != b && b.isAlive_0() && instanceOf(b, GT1437) && !b.isSomehowHidden_0() && this.setAPCounter_2(b, a); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setAutoplayCounter_1(a); }, setAPCounter_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); e.isAlive_0() && e.getApplicationID_0() == GT834.prototype.ID_FIELD_AUTOPLAYS && instanceOf(e, GT1584) ? e.setText_1("" + b) : instanceOf(e, GT1437) && this.setAPCounter_2(e, b); } }, accelerateSuperGameCounters_0: function () { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) null != this.superGameCounter && this.superGameCounter.setTurbo_1(!0), null != this.winSuperGameCounter && this.winSuperGameCounter.setTurbo_1(!0); else for (var a = 0; a < this.customConsoles.size_0(); a++) this.customConsoles.elementAt_1(a).accelerateSuperGameCounters_0(); }, updateTextColors_0: function () { if (!this.consoleNeonEnabled && null != this.colorHighlightStatusTextAndWin) { var a = this.findDescendant_1(GT834.prototype.ID_FIELD_STATUS), b = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN); null != a && instanceOf(a, GT1410) && a.setColor_1(this.showStatusHighlightBackground ? this.colorHighlightStatusTextAndWin : this.colorStatusTextDefault); null != b && instanceOf(b, GT1410) && b.setColor_1(this.showStatusHighlightBackground ? this.colorHighlightStatusTextAndWin : this.colorWinDefault); } }, updateBackgrounds_0: function () { if (!this.consoleNeonEnabled) { var a = this.findDescendant_1(GT834.prototype.ID_FIELD_STATUS), b = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN), a = (null == a || a.isHidden_0()) && (null == b || b.isHidden_0()), b = this.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUS); null != b && this.hideStatusBackgroundIfNoText && b.hide_1(a); null == b && this.hideStatusBackgroundIfNoText && null != this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET) && this.findDescendant_1(GT834.prototype.ID_FIELD_TOTALBET).hide_1(!a || this.showStatusHighlightBackground); b = this.findDescendant_1(GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT); null != b && b.hide_1(!this.showStatusHighlightBackground); this.updateTextColors_0(); } }, setFreeGames_2: function (a, b) { if (null != this.customConsoles && 0 < this.customConsoles.size_0()) for (var d = 0; d < this.customConsoles.size_0(); d++) this.customConsoles.elementAt_1(d).setFreeGames_2(a, b); }, setSuperGames_3: function (a, b, d) { var e = GT1634.prototype.red; "AG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(255, 0, 0).create_0()); "HG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(0, 235, 255).create_0()); "UG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(50, 255, 50).create_0()); "GG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(222, 0, 255).create_0()); "MG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(50, 150, 255).create_0()); "SG".equals_1(b) && (e = GT1391.prototype.set_0().compRGB_3(255, 0, 0).create_0()); this.setSuperGames_5(this.currentSuperGamesCount, a, b, e, d); }, setSuperGames_4: function (a, b, d, e) { this.setSuperGames_5(this.currentSuperGamesCount, a, b, d, e); }, setSuperGames_5: function (a, b, d, e, f) { this.setSuperGames_6(a, b, d, e, f, !1); }, setSuperGames_6: function (a, b, d, e, f, g) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var k = this.findDescendant_1(GT834.prototype.ID_FIELD_SUPERGAMES); null != k && instanceOf(k, GT1584) && (f ? (null != this.superGameCounter && this.superGameCounter.stop_0(), k.setText_1("" + b + " " + d), k.hide_1(0 == b)) : ((this.superGameCounter = new GT201(this, this.timer, a, b, null, null, k, d, g)), this.superGameCounter.run_0()), instanceOf(k, GT1449) && null != e && k.setColor_1(e)); } else for (e = this.customCallbackHandler.getFinishCallback_1("superGamesCounted"), k = 0; k < this.customConsoles.size_0(); k++) this.customConsoles.elementAt_1(k).setSuperGames_6(a, b, d, f, g, e); this.currentSuperGamesCount = b; }, setWin_2: function (a, b) { this.setWin_3(a, b, -1); }, setWin_3: function (a, b, d) { 0 < this.maximumRoundWin && a > this.maximumRoundWin && (GT1650.prototype.assertExp_2(a <= this.maximumRoundWin, "GUISlotConsole: Attempted to setWin(" + a + ", boolean, int) even though the maximum round win is " + this.maximumRoundWin), (a = this.maximumRoundWin)); this.win = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var e = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN); if (null != e && instanceOf(e, GT1410)) { if (instanceOf(this.currencyFormatter, GT711)) { var f = this.formatterCreditAndBalanceField.getOmitCentPolicy_0() == GT711.prototype.OMIT_CENT_IF_ZERO; if (this.currencyFormatter.isWeakCurrency_0() || f) e.setRoundDuringAnimation_1(2), f && e.setMinimumNumberOfSteps_1(1); } 0 <= d && e.setDuration_1(d); this.neverHideWinField || (b && 0 == this.win && 0 == this.winSuperGames ? e.hide_1(!0) : e.hide_1(!1)); this.updateBackgrounds_0(); e.setValue_2(a, b); } } else for (e = 0; e < this.customConsoles.size_0(); e++) b ? this.customConsoles.elementAt_1(e).setWin_1(a) : this.customConsoles.elementAt_1(e).setWinAnimation_3(a, d, null); }, getWin_0: function () { return this.win; }, getTotalRoundWin_0: function () { return this.totalRoundWin; }, setWinSuperGames_3: function (a, b, d) { this.setWinSuperGames_4(a, b, d, !1); }, setWinSuperGames_4: function (a, b, d, e) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var f = this.findDescendant_1(GT834.prototype.ID_FIELD_WIN); d ? (null != this.winSuperGameCounter && this.winSuperGameCounter.stop_0(), 0 != a ? this.winFieldFormatter.setSuperGameText_1(" + " + a + " " + b) : this.winFieldFormatter.setSuperGameText_1(""), null != f && (f.hide_1(0 == this.win && 0 == a && !this.neverHideWinField), instanceOf(f, GT1410) && f.refresh_0())) : ((this.winSuperGameCounter = new GT201(this, this.timer, this.winSuperGames, a, this.winFieldFormatter, f, null, b, e)), this.winSuperGameCounter.run_0()); this.updateBackgrounds_0(); } else for (f = 0; f < this.customConsoles.size_0(); f++) this.customConsoles.elementAt_1(f).setWinSuperGames_4(a, b, d, e); this.winSuperGames = a; }, getWinSuperGames_0: function () { return this.winSuperGames; }, setStatusText_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { if (!this.consoleNeonEnabled) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); null != b && (instanceOf(b, GT1584) && b.setText_1(a), b.hide_1(null == a || a.equals_1("")), this.updateBackgrounds_0()); } } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setStatusText_1(a); }, setHighlightStatusText_1: function (a) { if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) { var b = this.findDescendant_1(GT834.prototype.ID_FIELD_STATUS); a ? null == this.statusHighlighter && null != b && b.isAlive_0() && instanceOf(b, GT1437) && ((this.statusHighlighter = new GT464(this.timer, b)), this.statusHighlighter.start_0()) : null != this.statusHighlighter && (this.statusHighlighter.kill_0(), (this.statusHighlighter = null)); } else for (b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setHighlightStatusText_1(a); }, setHighlightBackgroundStatusText_1: function (a) { this.showStatusHighlightBackground = a; if (null == this.customConsoles || 0 >= this.customConsoles.size_0()) this.updateBackgrounds_0(); else for (var b = 0; b < this.customConsoles.size_0(); b++) this.customConsoles.elementAt_1(b).setHighlightBackgroundStatusText_1(a); }, setAutoplayMeter_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_FIELD_AUTOPLAYMETER); instanceOf(d, GT1410) && d.setValue_2(a, !0); null != this.autoplayMeterHandler && (b && this.autoplayMeterHandler.isCancelVisible_0() ? this.autoplayMeterHandler.hideCancelButton_0() : b || (this.autoplayMeterHandler.isCancelVisible_0() && 0 < this.autoplayMeter && 0 == a ? this.autoplayMeterHandler.hideCancelButton_0() : !this.autoplayMeterHandler.isCancelVisible_0() && 0 < a && this.autoplayMeterHandler.showCancelButton_0())); this.autoplayMeter = a; }, setCasinoAutoPlayInterface_1: function (a) { null != this.handler && this.handler.setCasinoAutoPlayInterface_1(a); }, superGamesCounted_1: function (a) { null != this.soundSuperGameCounter && null != this.soundPlayer && this.soundPlayer.start_1(this.soundSuperGameCounter); this.fireSuperGamesCountedCallback_1(a); }, fireConsoleStateChangedCallback_2: function (a, b) { for (var d = this.slotConsoleListeners.clone_0(), e = d.size_0(), f = 0; f < e; f++) d.elementAt_1(f).consoleStateChanged_2(a, b); }, fireNumberOfLinesChangedCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).numberOfLinesChanged_1(a); }, fireGameModeChangedCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).gameModeChanged_1(a); }, fireBetPerLineChangedCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).betPerLineChanged_1(a); }, fireAutoPlayChangedCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).numberOfAutoPlaysChanged_1(a); }, fireClickCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).click_1(a); }, fireUpCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).up_1(a); }, fireDownCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).down_1(a); }, fireWinFieldCountFinishedCallback_0: function () { for (var a = this.slotConsoleListeners.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).winFieldCountFinished_0(); }, fireSuperGamesCountedCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).superGamesCounted_1(a); }, fireSuperGamesCountedFinishedCallback_0: function () { for (var a = this.slotConsoleListeners.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).superGamesCountedFinished_0(); }, fireCreditsHiddenCallback_1: function (a) { for (var b = this.slotConsoleListeners.clone_0(), d = b.size_0(), e = 0; e < d; e++) b.elementAt_1(e).creditsHidden_1(a); }, setNeverHideWinField_1: function (a) { this.neverHideWinField = a; null != this.winFieldFormatter && this.winFieldFormatter.setHideWhenValueIsZero_1(!a); }, getNeverHideWinField_0: function () { return this.neverHideWinField; }, alignElements_2: function (a, b) { var d = this.findDescendant_1(GT834.prototype.ID_CONTAINER_LEFTALIGNED), e = this.findDescendant_1(GT834.prototype.ID_CONTAINER_RIGHTALIGNED); GT1560.prototype.isAlive_1(d) && d.move_2(a, d.getY_0()); GT1560.prototype.isAlive_1(e) && e.move_2(a + b - e.getWidth_0(), e.getY_0()); for (d = 0; d < this.slotConsoleListeners.size_0(); d++) (e = this.slotConsoleListeners.get_1(d)), instanceOf(e, GT728) && e.updatePartiallyMovedButtons_1(!1); }, getCurrentSuperGamesCount_0: function () { return this.currentSuperGamesCount; }, setConsoleNeonBridge_1: function (a) { this.gameConsoleSlotConsoleBridge = a; }, }, "GT834", [] ), GT90 = Class.extend( { initialConstructor_0: function () { this.console = null; this.fireFinishedCallback = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.console = null; this.fireFinishedCallback = !1; this.console = a; this.fireFinishedCallback = b; }, run_0: function () { var a = this.console.findDescendant_1(GT834.prototype.ID_FIELD_WIN); null != a && (this.console.getNeverHideWinField_0() || a.hide_1(0 == this.console.getWin_0() && 0 == this.console.getWinSuperGames_0()), this.console.updateBackgrounds_0()); this.fireFinishedCallback && this.console.fireWinFieldCountFinishedCallback_0(); }, }, "GT90", [Runnable] ), GT201 = Class.extend( { initialConstructor_0: function () { this.timer = null; this.value = this.countTo = 0; this.superGameLabel = this.console = this.superGamesField = this.winField = this.winFieldFormatter = null; this.totalcounter = 0; this.turbo = this.stopped = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.timer = null; this.value = this.countTo = 0; this.superGameLabel = this.console = this.superGamesField = this.winField = this.winFieldFormatter = null; this.totalcounter = 0; this.turbo = this.stopped = !1; this.timer = b; this.value = d; this.countTo = e; this.winFieldFormatter = f; this.superGamesField = k; this.winField = g; this.console = a; this.superGameLabel = m; this.turbo = n; this.totalcounter = 0; this.stopped = !1; }, stop_0: function () { this.stopped = !0; }, setTurbo_1: function (a) { this.turbo = a; }, run_0: function () { if (!this.stopped) { this.countTo > this.value ? this.value++ : this.value--; null != this.winFieldFormatter && (this.winFieldFormatter.setSuperGameText_1(" + " + this.value + " " + this.superGameLabel), null != this.winField && instanceOf(this.winField, GT1410) && this.winField.refresh_0()); null != this.superGamesField && instanceOf(this.superGamesField, GT1560) && GT1560.prototype.isAlive_1(this.superGamesField) && (this.superGamesField.setText_1("" + this.value + " " + this.superGameLabel), this.console.superGamesCounted_1(this.value)); if (this.value != this.countTo) { var a = 100 + (this.turbo ? 0 : 400 * Math.exp_1((this.totalcounter * Math.log_1(0.5)) / 2)); this.totalcounter++; this.timer.triggerCallbackAfter_2(this, Integer.truncate_1(Math.round_1(a))); } else null != this.winField && this.winField.hide_1(0 == this.console.getWin_0() && 0 == this.console.getWinSuperGames_0()), null != this.winFieldFormatter && this.winFieldFormatter.setSuperGameText_1(""), this.stop_0(); null != this.superGamesField && instanceOf(this.superGamesField, GT1560) && this.superGamesField.hide_1(0 == this.value); this.console.updateBackgrounds_0(); } }, }, "GT201", [Runnable] ), GT251 = GT1285.extend( { initialConstructor_0: function () { this.superGameText = this.suffix = this.prefix = this.currencyFormatter = null; this.hideIfZero = !1; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.superGameText = this.suffix = this.prefix = this.currencyFormatter = null; this.hideIfZero = !1; GT1285.prototype.initialConstructor_0.call(this); this.currencyFormatter = a; this.prefix = b; this.suffix = d; this.superGameText = ""; }, format_1: function (a) { var b = "", b = this.hideIfZero ? (0 == a ? "" : this.currencyFormatter.format_1(a)) : this.currencyFormatter.format_1(a); return 0 == this.superGameText.length_0() && 0 == b.length_0() ? "" : "" + this.prefix + b + this.superGameText + this.suffix; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, setPrefix_1: function (a) { this.prefix = a; }, setSuffix_1: function (a) { this.suffix = a; }, setSuperGameText_1: function (a) { this.superGameText = a; }, setHideWhenValueIsZero_1: function (a) { this.hideIfZero = a; }, }, "GT251", [] ), GT332 = GT1285.extend( { initialConstructor_0: function () { this.currencyFormatter = null; this.omitCentPolicy = 0; this.showCurrency = !1; this.multiplier = 0; GT1285.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.currencyFormatter = null; this.omitCentPolicy = 0; this.showCurrency = !1; this.multiplier = 0; GT1285.prototype.initialConstructor_0.call(this); this.currencyFormatter = a; this.omitCentPolicy = b; this.showCurrency = !0; this.multiplier = 1; }, setOmitCentPolicy_1: function (a) { this.omitCentPolicy = a; }, getOmitCentPolicy_0: function () { return this.omitCentPolicy; }, setMultiplier_1: function (a) { this.multiplier = a; }, setShowCurrency_1: function (a) { this.showCurrency = a; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, format_1: function (a) { return instanceOf(this.currencyFormatter, GT711) ? this.currencyFormatter.format_3(a * this.multiplier, this.omitCentPolicy, this.showCurrency) : this.currencyFormatter.format_1(a * this.multiplier); }, }, "GT332", [] ), GT136 = Class.extend( { initialConstructor_0: function () { this.console = null; this.startX = this.x = 0; this.moved = this.movingRight = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.console = null; this.startX = this.x = 0; this.moved = this.movingRight = !1; this.console = a; this.x = a.findDescendant_1(GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE).getX_0(); }, up_1: function (a) { this.x != this.startX ? this.console.isHideCreditValue_0() == this.movingRight && this.console.setHideCreditValue_2(!this.movingRight, !0) : this.moved || this.console.setHideCreditValue_2(!this.console.isHideCreditValue_0(), !0); }, drag_1: function (a) { a.getX_0() != this.x && (this.movingRight = a.getX_0() > this.x); a.getX_0() != this.startX && (this.moved = !0); this.x = a.getX_0(); }, down_1: function (a) { this.startX = a.getX_0(); this.moved = !1; this.x = this.startX; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, click_1: function (a) {}, }, "GT136", [GT1066] ), GT70 = Class.extend( { initialConstructor_0: function () { this.button = null; this.movingRight = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.button = null; this.movingRight = !1; this.button = a; this.movingRight = b; }, run_0: function () { null != this.button && this.button.isAlive_0() && (this.button.setClickableAreaShape_1(this.clickAreaShapeForDragableCoverCreditsButton_1(this.movingRight)), this.setImageForCoverCreditsButton_2(this.button, this.movingRight)); }, }, "GT70", [Runnable] ), GT497 = Class.extend( { initialConstructor_0: function () { this.returnedCallbacks = this.console = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.returnedCallbacks = this.console = null; this.console = a; this.returnedCallbacks = new java_util_JavaScriptHashtable(); }, getFinishCallback_1: function (a) { a += "" + GT1677.prototype.generateID_0(); this.returnedCallbacks.put_2(a, new Integer(0)); return new GT1509(this, a); }, run_1: function (a) { if ("string" === typeof a && this.returnedCallbacks.containsKey_1(a)) { var b = this.returnedCallbacks.get_1(a).intValue_0() + 1; b < this.console.getCustomConsoles_0().size_0() ? this.returnedCallbacks.put_2(a, new Integer(b)) : (this.returnedCallbacks.remove_1(a), a.startsWith_1("setCreditsFinished") ? this.console.fireWinFieldCountFinishedCallback_0() : a.startsWith_1("superGamesCounted") && this.console.fireSuperGamesCountedFinishedCallback_0()); } }, }, "GT497", [GT1482] ), GT396 = Class.extend( { initialConstructor_0: function () { this.imageRight = this.imageLeft = this.winField = null; this.imageSpacing = 0; this.timer = this.animatorRight = this.animatorLeft = this.winFieldContainerRight = this.winFieldContainerLeft = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.imageRight = this.imageLeft = this.winField = null; this.imageSpacing = 0; this.timer = this.animatorRight = this.animatorLeft = this.winFieldContainerRight = this.winFieldContainerLeft = null; this.winField = a; this.timer = b; this.imageLeft = d; this.imageRight = e; this.imageSpacing = f; }, run_0: function () { if (null != this.imageLeft && null != this.imageRight) if (GT1560.prototype.isAlive_1(this.winFieldContainerLeft) && GT1560.prototype.isAlive_1(this.winFieldContainerRight)) this.winFieldContainerLeft.move_2(this.winField.getGUIText_0().getX_0() - this.imageLeft.getWidth_0() - this.imageSpacing, this.winFieldContainerLeft.getY_0()), this.winFieldContainerRight.move_2(this.winField.getGUIText_0().getX_0() + this.winField.getGUIText_0().getWidth_0() + this.imageSpacing, this.winFieldContainerLeft.getY_0()); else { var a = this.winField.getGUIText_0().getY_0() + Math.div(this.winField.getGUIText_0().getHeight_0() - this.imageLeft.getRowHeight_0(), 2); this.winFieldContainerLeft = new GT1437( this.winField.getGUIText_0().getParent_0(), this.winField.getGUIText_0().getX_0() - this.imageLeft.getWidth_0() - this.imageSpacing, a, this.imageLeft.getColumnWidth_0(), this.imageLeft.getRowHeight_0() ); this.winFieldContainerRight = new GT1437( this.winField.getGUIText_0().getParent_0(), this.winField.getGUIText_0().getX_0() + this.winField.getGUIText_0().getWidth_0() + this.imageSpacing, a, this.imageRight.getColumnWidth_0(), this.imageRight.getRowHeight_0() ); this.animatorLeft = new GT927(this.timer, this.winFieldContainerLeft, this.imageLeft, 300, !0, !1); this.animatorLeft.start_0(); this.animatorRight = new GT927(this.timer, this.winFieldContainerRight, this.imageRight, 300, !0, !1); this.animatorRight.start_0(); } }, }, "GT396", [Runnable] ), GT300 = Class.extend( { initialConstructor_0: function () { this.timer = this.cancelButton = this.animator = null; this.startY = 0; this.visible = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.timer = this.cancelButton = this.animator = null; this.startY = 0; this.visible = !1; this.cancelButton = a; this.timer = b; this.startY = a.getY_0(); }, isCancelVisible_0: function () { return this.visible; }, showCancelButton_0: function () { null != this.animator && this.animator.isRunning_0() && this.animator.killWithoutTriggers_0(); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_AUTOPLAYMETERCANCELBUTTON); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_MOVEIN); GT1242.prototype.fireWrapperStateEvent_2(GT514.prototype.getInstance_0().getSlotGui_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); this.animator = new GT653( this.timer, this.cancelButton, this.cancelButton.getX_0(), this.startY == this.cancelButton.getDragAreaY_0() ? this.cancelButton.getDragAreaY_0() + this.cancelButton.getDragAreaHeight_0() : this.cancelButton.getDragAreaY_0(), 500 ); this.animator.addFinishCallback_1(new GT657(this.cancelButton, !0)); this.animator.start_0(); this.visible = !0; }, hideCancelButton_0: function () { null != this.animator && this.animator.isRunning_0() && this.animator.killWithoutTriggers_0(); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_AUTOPLAYMETERCANCELBUTTON); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_MOVEOUT); GT1242.prototype.fireWrapperStateEvent_2(GT514.prototype.getInstance_0().getSlotGui_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); this.cancelButton.setActive_1(!1); this.animator = new GT653( this.timer, this.cancelButton, this.cancelButton.getX_0(), this.startY == this.cancelButton.getDragAreaY_0() ? this.cancelButton.getDragAreaY_0() : this.cancelButton.getDragAreaY_0() + this.cancelButton.getDragAreaHeight_0(), 500 ); this.animator.start_0(); this.visible = !1; }, }, "GT300", [] ); GT70.prototype.setImageForCoverCreditsButton_2 = function (a, b) { var d = a.getParent_0().findDescendant_1(b ? GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN : GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE); GT1560.prototype.isAlive_1(d) && instanceOf(d, GT1591) && a.setImage_1(d.getImage_0()); }; GT70.prototype.clickAreaShapeForDragableCoverCreditsButton_1 = function (a) { var b = new GT1124(); a ? b.setCoordinates_1([0, 0, 50, 0, 50, 60, 0, 60]) : b.setCoordinates_1([0, 0, 270, 0, 270, 60, 0, 60]); return b; }; GT834.prototype.HIDE_MONEY_BARRIER_TIME = 200; GT834.prototype.ID_FIELD_STATUS = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_WIN = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_CREDIT = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_BALANCE = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_LASTWIN = GT1560.prototype.generateID_0(); GT834.prototype.ID_OBJECT_LASTWIN_NA_CONTAINER = GT1560.prototype.generateID_0(); GT834.prototype.ID_OBJECT_LASTWIN_NA = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_LINES = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_BETPERLINE = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_TOTALBET = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_SUPERGAMES = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_BASEBET = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_TOTALROUNDWIN = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_FREEROUNDS = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_FREEROUNDS_WINNINGS = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_CREDIT = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_BALANCE = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_LASTWIN = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_LINES = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_BETPERLINE = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_BET = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_TOTALROUNDWIN = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_FREEROUNDS = GT1560.prototype.generateID_0(); GT834.prototype.ID_LABEL_FREEROUNDS_WINNINGS = GT1560.prototype.generateID_0(); GT834.prototype.ID_CONTAINER_STATUS = GT1560.prototype.generateID_0(); GT834.prototype.ID_BACKGROUND_STATUS = GT1560.prototype.generateID_0(); GT834.prototype.ID_BACKGROUND_STATUSHIGHLIGHT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BACKGROUND_INFORMATION = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_START = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_START = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COLLECT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_SKIP_COLLECT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_STOP = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_STOP = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_PAYTABLE = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_PAYTABLE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_PAYTABLE_NEXT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_GAMBLE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_GAMBLE_RED = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_GAMBLE_BLACK = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COLLECTHALF = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_PAYTABLE_CLOSE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_MAX_BET = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_MIN_BET = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_PAYOUT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_GAME_SELECT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_GOMOBILE = GT1560.prototype.generateID_0(); GT834.prototype.ID_CONTAINER_COVER_CREDITS = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COVER_CREDITS_DRAGABLE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COVER_CREDITS = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_COVER_CREDITS_IMAGE_OPEN = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_TOGGLE_BETLINES = GT1560.prototype.generateID_0(); GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT = GT1560.prototype.generateID_0(); GT834.prototype.ID_AREA_AUTOPLAY_SELECT = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOPLAY = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOSTOP = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOPLAY_S = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOSTOP_S = GT1560.prototype.generateID_0(); GT834.prototype.ID_SPINNER_AUTOPLAY = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_AUTOPLAYS = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_AUTOPLAY = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_AUTOSTOP = GT1560.prototype.generateID_0(); GT834.prototype.ID_TEXT_AUTOPLAYMETER = GT1560.prototype.generateID_0(); GT834.prototype.ID_FIELD_AUTOPLAYMETER = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOPLAYMETER = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_AUTOPLAYMETER_CANCEL = GT1560.prototype.generateID_0(); GT834.prototype.ID_SPINNER_LINES = GT1560.prototype.generateID_0(); GT834.prototype.ID_SPINNER_GAME_MODES = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_SPINNER_LINES_UP = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_SPINNER_LINES_DOWN = GT1560.prototype.generateID_0(); GT834.prototype.ID_SPINNER_BETPERLINE = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_SPINNER_BET_UP = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_SPINNER_BET_DOWN = GT1560.prototype.generateID_0(); GT834.prototype.ID_SPINNER_DARK = GT1560.prototype.generateID_0(); GT834.prototype.ID_CONTAINER_LEFTALIGNED = GT1560.prototype.generateID_0(); GT834.prototype.ID_CONTAINER_RIGHTALIGNED = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_PLURIUS_SETTINGS = GT1560.prototype.generateID_0(); GT834.prototype.ID_BUTTON_FLIP_SCREEN = GT1560.prototype.generateID_0(); var GT642 = Class.extend( { initialConstructor_0: function () { this.consoleBridge = this.eventDispatcher = this.componentMoverDriverImpl = this.gameConsoleUpdater = this.console = this.componentBuilder = this.componentMover = null; this.uiNeonEnabled = !1; this.guiGamble = null; this.inFreeSpinsMode = this.insufficientTicketsToContinuePlaying = !1; this.lastStatusTextGradient = this.lastStatusTextOverride = this.lastFreeSpinTextOverride = null; this.lastFullSize = !1; this.lastWin = 0; this.lastSkipAnimation = !1; GT642.prototype.Log.t_1("UI Neon: GUISlotConsoleNeon created"); (this.uiNeonEnabled = GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0()) ? this.initConsole_0() : GT642.prototype.Log.i_1("UI Neon: disabled"); }, initConsole_0: function () { GT642.prototype.Log.log_1("UI Neon: being configured..."); var a = GT514.prototype.getInstance_0().getSlotGui_0(); this.componentMover = this.createComponentMover_1(a.getTimer_0()); var b = GT514.prototype.getInstance_0().getApplet_0().getParameter_1(GT642.prototype.CONSOLE_NEON_LAYOUT), b = GT1672.prototype.stringToInt_2(b, GT1533.prototype.LAYOUT_RIGHT_HANDED); GT1389.prototype.getInstance_0().setLayout_1(b); GT1389.prototype.getInstance_0().storePositions_1(GT514.prototype.getInstance_0().getApplet_0().getParameter_1(GT642.prototype.CONSOLE_NEON_POSITIONS)); var d = GT1389.prototype.getInstance_0().getGameConsoleContainer_0(); GT1650.prototype.assertExp_2(null != d, "slot console container must be defined"); this.componentBuilder = this.createComponentBuilder_1(d); this.eventDispatcher = a.getSkinManager_0().getEventDispatcher_0(); this.componentMoverDriverImpl = this.createComponentMoverDriver_2(this.componentMover, this.eventDispatcher); a = GT1389.prototype.getInstance_0().getStoredPositions_0(); GT642.prototype.Log.t_1("UI Neon: layoutcode " + b); GT642.prototype.Log.t_1("UI Neon: positions " + a); this.createConsole_2(b, a); GT642.prototype.Log.log_1("UI Neon: Configured."); }, createComponentMover_1: function (a) { return new GT1577(a); }, createComponentBuilder_1: function (a) { return new GT188(a); }, createComponentMoverDriver_2: function (a, b) { return new GT541(a, !1, b); }, createClientEventHandlerGeneral_0: function () { return new GT589(); }, createClientEventHandlerSlot_0: function () { return new GT589(); }, createGameConsoleUpdater_2: function (a, b) { return new GT795(a, b); }, createGameConsoleSlotConsoleBridge_0: function () { return new GT314(); }, reinitConsole_0: function () { if ((this.uiNeonEnabled = GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0())) { GT642.prototype.Log.t_1("UI Neon: console being reinitialized..."); var a = GT514.prototype.getInstance_0().getSlotGui_0(); a.getGuiStateMachine_0().addGuiStateListener_1(this.gameConsoleUpdater); a.getSlotEventManager_0().addSlotListener_1(this.gameConsoleUpdater); GT642.prototype.Log.t_1("UI Neon: Reinitialized."); } else GT642.prototype.Log.i_1("UI Neon: disabled"); }, hideConsoleWithId_1: function (a) { GT514.prototype.getInstance_0().getSlotGui_0().getMainContainer_0().findDescendant_1(a).hide_1(!0); }, createConsole_2: function (a, b) { var d = GT1389.prototype.getInstance_0().getGameConsoleContainer_0(); d.setDisableImmediateUpdate_1(!0); var e = GT514.prototype.getInstance_0().getSlotGui_0(), f = new GT1553(e.getReelsX_0(), e.getReelsY_0(), e.getReelsWidth_0(), e.getReelsHeight_0()), g = GT514.prototype.getInstance_0().getApplet_0().getLobbySkin_0(), k = g.layoutDesignedWidth_0(), m = g.layoutDesignedHeight_0(), n = g.layoutOverscanLeft_0(), g = g.layoutOverscanTop_0(), k = new GT1553(n, g, k, m), m = GT514.prototype.getInstance_0().getApplet_0().isDeepWalletPlayer_0(); GT514.prototype.getInstance_0().getApplet_0().getGameWrapperInterfaceCaller_0(); this.console = new GT1519(this.componentBuilder, this.componentMover, this.createClientEventHandlerGeneral_0(), this.createClientEventHandlerSlot_0(), f, k, a, m); f = "1".equals_1(GT514.prototype.getInstance_0().getApplet_0().getParameter_1(GT642.prototype.CONSOLE_NEON_BLUR)); (GT514.prototype.getInstance_0().isFeatureFilterSupported_0() && f) || (GT642.prototype.Log.t_1("UI Neon: filter will be disabled as it is either not supported or not performant. (" + GT642.prototype.CONSOLE_NEON_BLUR + ":" + f + ")"), this.console.disableMask_0()); this.console.setVisibleArea_1(GT514.prototype.getInstance_0().getApplet_0().getVisibleArea_0()); this.console.resetPositions_1(b); GT1389.prototype.getInstance_0().setGameConsole_1(this.console); GT1389.prototype.getInstance_0().setLayout_1(a); this.gameConsoleUpdater = this.createGameConsoleUpdater_2(this.console, this); e.getGuiStateMachine_0().addGuiStateListener_1(this.gameConsoleUpdater); e.getSlotEventManager_0().addSlotListener_1(this.gameConsoleUpdater); null == this.consoleBridge && (this.consoleBridge = this.createGameConsoleSlotConsoleBridge_0()); this.consoleBridge.setGameConsole_1(this.console); d.setDisableImmediateUpdate_1(!1); }, switchLayout_1: function (a) { var b = GT514.prototype.getInstance_0().getSlotGui_0(), d = GT1389.prototype.getInstance_0().getGameConsoleContainer_0(); d.setModalInputReceiver_1(d); GT514.prototype .getInstance_0() .getApplet_0() .storeParameter_2(GT642.prototype.CONSOLE_NEON_LAYOUT, "" + a); GT514.prototype.getInstance_0().getApplet_0().storeParameter_2(GT642.prototype.CONSOLE_NEON_POSITIONS, ""); GT1389.prototype.getInstance_0().storePositions_1(null); var d = this.console, e = this.gameConsoleUpdater; this.setLoadingInProgress_1(!0); this.console.removeMask_0(); this.createConsole_2(a, null); b.getGuiStateMachine_0().removeGuiStateListener_1(e); b.getSlotEventManager_0().removeSlotListener_1(e); e.destroy_0(); d.destroy_0(); GT1389.prototype.getInstance_0().setLayout_1(a); b.getSlotConsole_0().setActive_1(!1); this.setStatusText_3(this.lastStatusTextOverride, this.lastStatusTextGradient, this.lastFullSize); this.setFreeSpinText_1(this.lastFreeSpinTextOverride); 0 < GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0().getNumberOfWins_0() && this.setWin_2(this.lastWin, this.lastSkipAnimation); b.getTimer_0().triggerCallbackAfter_2(new GT359(), 100); }, getDefaultRules_2: function (a, b) { var d = new java_util_JavaScriptHashtable(); this.addAppletRules_2(d, a); this.addSoundRule_2(d, a); this.addFullScreenRule_2(d, a); this.addCollectWinRules_2(d, a); this.addVisibilityRules_3(d, a, b); d.put_2(GT1185.prototype.VDR_FREE_SPIN_OFFSET, new Integer(GT514.prototype.getInstance_0().getApplet_0().getFreeSpinOffset_0())); return d; }, destroy_0: function () { var a = GT514.prototype.getInstance_0().getSlotGui_0(); null != a && (null != a.getSlotEventManager_0() && a.getSlotEventManager_0().removeSlotListener_1(this.gameConsoleUpdater), null != a.getGuiStateMachine_0() && a.getGuiStateMachine_0().removeGuiStateListener_1(this.gameConsoleUpdater), null != a.getSlotConsole_0() && (a.getSlotConsole_0().setConsoleNeonBridge_1(null), a.getSlotConsole_0().removeCustomConsole_1(this.consoleBridge))); this.consoleBridge = null; null != this.gameConsoleUpdater && (this.gameConsoleUpdater.destroy_0(), (this.gameConsoleUpdater = null)); null != this.eventDispatcher && this.eventDispatcher.unregisterHandler_1(this.componentMoverDriverImpl); this.guiGamble = this.componentMover = this.componentBuilder = this.componentMoverDriverImpl = null; }, destroyConsole_0: function () { this.destroy_0(); null != this.console && (this.console.destroy_0(), (this.console = null)); }, addAppletRules_2: function (a, b) { var d = GT514.prototype.getInstance_0().getSlotGui_0(), e = GT514.prototype.getInstance_0().getApplet_0(), f = e.isExitAllowed_0(); a.put_2(GT1185.prototype.VDR_EXIT_ALLOWED, new Boolean(f)); a.put_2(GT1185.prototype.VDR_REPLAY_ALLOWED, new Boolean(e.isReplayAllowed_0() && !e.isReplayDialogOpen_0())); a.put_2(GT1185.prototype.VDR_PAYIN_ALLOWED, new Boolean(e.isPayInAllowed_0())); a.put_2(GT1185.prototype.VDR_VR_SPECTATOR_MODE, new Boolean(d.getSlotState_0().getCasinoState_0().isSpectator_0())); a.put_2(GT1185.prototype.VDR_VR_GAME_ACTION_DISABLED, new Boolean(d.getSlotState_0().getCasinoState_0().isSpectator_0() || d.getSlotState_0().getCasinoState_0().isInReplayMode_0())); }, addSoundRule_2: function (a, b) { var d = GT514.prototype.getInstance_0().getApplet_0().getSoundPlayer_0().isActive_0(); a.put_2(GT1185.prototype.VDR_SOUNDPLAYER_ACTIVE, new Boolean(d)); d = GT514.prototype.getInstance_0().getApplet_0().isMusicActive_0(); a.put_2(GT1185.prototype.VDR_MUSICPLAYER_ACTIVE, new Boolean(d)); }, addFullScreenRule_2: function (a, b) { var d = GT514.prototype.getInstance_0().getApplet_0().getFullscreenMode_0(); a.put_2(GT1185.prototype.VDR_FULLSCREEN, new Boolean(d)); }, addCollectWinRules_2: function (a, b) { var d = "CollectWin".equals_1(b); a.put_2(GT1185.prototype.VDR_COLLECT_WIN, new Boolean(d)); }, addVisibilityRules_3: function (a, b, d) { null == this.guiGamble && "GambleScreenOpen".equals_1(b) && (this.guiGamble = GT514.prototype.getInstance_0().getSlotGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE)); this.insufficientTicketsToContinuePlaying = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0().hasInsufficientTicketsToContinuePlaying_0(); this.inFreeSpinsMode = "1".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("freeSpinsMode")); this.addGambleRule_2(a, b); this.addStartRule_3(a, b, d); this.addPaytableRule_2(a, b); this.addBetChangeRule_2(a, b); this.addCollectRule_2(a, b); this.addStopRule_2(a, b); this.addMenuRules_2(a, b); this.addSetingsRules_2(a, b); }, addMenuRules_2: function (a, b) { var d = GT514.prototype.getInstance_0().getSlotGui_0(), e = null, e = !this.isActionAllowed_0() || d.getSlotState_0().isAutoPlaying_0() || "ReelsSpinning".equals_1(b) || "ReelsStopping".equals_1(b) || "WinAnimations".equals_1(b) || "CollectWin".equals_1(b) ? GT1534.prototype.inactive_0() : GT1534.prototype.active_0(); a.put_2(GT1185.prototype.VDR_VR_MENU, e); }, addSetingsRules_2: function (a, b) { var d = GT514.prototype.getInstance_0().isGambleDisabledServerOrClientSide_0(); a.put_2(GT1185.prototype.VDR_VR_SETTINGS_DISABLE_GAMBLE, new Boolean(d)); }, addStopRule_2: function (a, b) { var d = GT514.prototype.getInstance_0().getSlotGui_0(), e = null, f = d.getSlotState_0(), g = f.getFreeSpinState_0().isForceAutoplayInFreeGames_0() && f.getFreeSpinState_0().isFreeSpinsRunning_0(), e = ("ReelsSpinning".equals_1(b) && 1e3 > f.getDefinition_0().getMinimumRoundDuration_0()) || ("CollectWin".equals_1(b) && !f.isFastSpinEnabled_0()) || ("WinAnimations".equals_1(b) && !f.isFastSpinEnabled_0()) || ("ReelsStopping".equals_1(b) && 1e3 > d.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0()) ? GT1534.prototype.active_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_STOP, e); e = f.isAutoPlaying_0() && !g ? GT1534.prototype.active_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_STOP_AUTO, e); }, addCollectRule_2: function (a, b) { var d = null, d = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(), e = d.getFreeSpinState_0().isForceAutoplayInFreeGames_0() && d.getFreeSpinState_0().isBeforeFirstFreeSpin_0(), f = !d.isFastSpinEnabled_0() && ("DecideGamble".equals_1(b) || ("WinAnimations".equals_1(b) && !(d.getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && d.isAutoPlaying_0())) || "GambleScreenOpen".equals_1(b) || "GambleScreenOpening".equals_1(b) || "GambleWaitingForServer".equals_1(b) || "GambleShowWin".equals_1(b) || "GambleShowLost".equals_1(b)) && this.isNoRealModalDialogOpen_0(), g = instanceOf(this.guiGamble, GT242), g = "DecideGamble".equals_1(b) || (!"WinAnimations".equals_1(b) && !d.getGambleState_0().isMoreGamblePossible_0()) || (g && "GambleScreenOpen".equals_1(b)), d = GT1534.prototype.inactive_0(); f && !e && g ? (d = GT1534.prototype.highlighted_0()) : f && (d = GT1534.prototype.active_0()); a.put_2(GT1185.prototype.VDR_VR_COLLECT, d); }, addBetChangeRule_2: function (a, b) { var d = null, e = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(), f = !this.insufficientTicketsToContinuePlaying && !e.hasInsufficientTicketsToPlayWithCurrentBetSettings_0(), g = ("BeforeSpin".equals_1(b) || "ChangeBet".equals_1(b) || "PaytableOpen".equals_1(b) || "FreeGamesEnd".equals_1(b)) && (!e.getFreeSpinState_0().isFreeSpinsRunning_0() || e.getFreeSpinState_0().getFreeSpinsPlayed_0() == e.getFreeSpinState_0().getFreeSpinsWon_0()) && !e.isAutoPlaying_0(), d = (g && f) || (g && this.insufficientTicketsToContinuePlaying) ? GT1534.prototype.active_0() : g && !f ? GT1534.prototype.highlighted_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_BET, this.inFreeSpinsMode ? GT1534.prototype.inactive_0() : d); var k = !1; if (GT1389.prototype.getInstance_0().getDeviceStrategy_0().isBetSettingsChangeGameMode_0()) var k = e.getDefinition_0().getGameModes_0().toArray_0(), m = e.getDefinition_0().getBetMultipliers_0().toArray_0(), n = e.getGameMode_0(), k = (n == k.length - 1 && e.getCredits_0() >= e.getBaseBet_0() * m[n]) || (n < k.length - 1 && e.getCredits_0() < e.getBaseBet_0() * m[n + 1] && e.getCredits_0() >= e.getBaseBet_0() * m[n]); else k = e.getMaxPossibleBet_0() == e.getBaseBet_0(); d = k ? GT1534.prototype.inactive_0() : f || !g ? d : GT1534.prototype.highlighted_0(); a.put_2(GT1185.prototype.VDR_VR_MAXBET, this.inFreeSpinsMode ? GT1534.prototype.inactive_0() : d); e = (null != e.getDefinition_0() && e.getDefinition_0().getPlayLines_0().get_1(0) == e.getNumberOfLines_0()) || e.hasZeroTicketsRemaining_0(); f = (g && f) || (g && !f && e) ? GT1534.prototype.active_0() : g && !f ? GT1534.prototype.highlighted_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_LINE, f); }, addPaytableRule_2: function (a, b) { var d = null, d = "BeforeSpin".equals_1(b) || "FreeGamesStart".equals_1(b) || "FreeGamesMore".equals_1(b) || "FreeGamesEnd".equals_1(b) || "PaytableOpen".equals_1(b) || "ChangeBet".equals_1(b) ? GT1534.prototype.active_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_PAYTABLE, d); }, addStartRule_3: function (a, b, d) { var e = null; d = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(); var f = (!this.insufficientTicketsToContinuePlaying && !d.hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && !d.hasZeroTicketsRemaining_0()) || (d.getFreeSpinState_0().isFreeSpinsRunning_0() && !d.getFreeSpinState_0().isAtLastFreeSpin_0()), g = !d.isAutoPlaying_0() && d.isFastSpinEnabled_0(), e = ("WinAnimations".equals_1(b) || "CollectWin".equals_1(b)) && g, g = ("BeforeSpin".equals_1(b) || "FreeGamesStart".equals_1(b) || "FreeGamesMore".equals_1(b) || "FreeGamesEnd".equals_1(b) || "ChangeBet".equals_1(b) || "SuperGameOpen".equals_1(b) || "SuperGameWheelStopping".equals_1(b)) && f && this.isActionAllowed_0(), k = d.getFreeSpinState_0().isForceAutoplayInFreeGames_0() && d.getFreeSpinState_0().isFreeSpinsRunning_0() && !d.getFreeSpinState_0().isAtLastFreeSpin_0(), m = k && !d.getFreeSpinState_0().isBeforeFirstFreeSpin_0(), e = !g || e || m ? (("PaytableOpen".equals_1(b) || e) && !m && f ? GT1534.prototype.active_0() : GT1534.prototype.inactive_0()) : GT1534.prototype.highlighted_0(); a.put_2(GT1185.prototype.VDR_VR_START, e); e = (g || "DecideGamble".equals_1(b) || "PaytableOpen".equals_1(b)) && !d.isAutoPlaying_0() && this.isNoRealModalDialogOpen_0() && !k && f ? GT1534.prototype.active_0() : GT1534.prototype.inactive_0(); a.put_2(GT1185.prototype.VDR_VR_START_AUTO, e); }, addGambleRule_2: function (a, b) { var d = null, d = GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0(), e = d.getGambleState_0().isMoreGamblePossible_0(), f = instanceOf(this.guiGamble, GT242), g = ("DecideGamble".equals_1(b) || ("WinAnimations".equals_1(b) && !GT514.prototype.isGamblingDisabled_0()) || (f && "GambleScreenOpen".equals_1(b))) && this.isNoRealModalDialogOpen_0(), k = d.getFreeSpinState_0(), m = k.getWinMeter_0() - d.getWinSum_1(!0), k = d.getDefinition_0().isCollectAtEndOfRound_0() && k.isFreeSpinsRunning_0() && 0 < m && k.isForceAutoplayInFreeGames_0() && k.isStopAutoplayAfterFreeGames_0() && k.isAtLastFreeSpin_0(), m = d.getFreeSpinState_0().isForceAutoplayInFreeGames_0() && d.getFreeSpinState_0().isFreeSpinsRunning_0() && !d.getFreeSpinState_0().isAtLastFreeSpin_0(), g = g && (!d.isAutoPlaying_0() || k) && !m, f = "DecideGamble".equals_1(b) || (f && "GambleScreenOpen".equals_1(b)), d = GT1534.prototype.inactive_0(); f && g && e ? (d = GT1534.prototype.highlighted_0()) : g && e && (d = GT1534.prototype.active_0()); a.put_2(GT1185.prototype.VDR_VR_GAMBLE, d); }, isNoRealModalDialogOpen_0: function () { return !GT514.prototype.getInstance_0().getApplet_0().isAnyModalDialogOpen_0() || GT514.prototype.getInstance_0().getApplet_0().isReplayDialogOpen_0() || GT514.prototype.getInstance_0().isConsoleDialogOpen_0(); }, isActionAllowed_0: function () { var a = GT514.prototype.getInstance_0().getSlotGui_0(); return a.getSlotState_0().getCasinoState_0().isActivePlayer_0() && (a.getSlotState_0().getCasinoState_0().isActionAllowed_0() || GT514.prototype.getInstance_0().isConsoleDialogOpen_0()); }, isConsoleDialogOpen_0: function () { return null == this.console ? !1 : this.console.isConsoleDialogOpen_0(); }, disableCatcher_0: function () { null != this.console && this.console.disableCatcher_0(); }, enableCatcher_0: function () { null != this.console && this.console.enableCatcher_0(); }, setStatusText_1: function (a) { var b = this.getGameConsoleViewDataForTextUpdate_2(a, GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE); GT642.prototype.Log.t_1("UI Neon: ****** TARGETED UPDATE FOR STATUS TEXT " + b); this.updateConsole_2(GT1607.prototype.CREDIT_WIN_BUTTON, b); this.updateLastStatusTextParams_3(a, null, !1); }, getGameConsoleViewDataForTextUpdate_2: function (a, b) { var d = new GT820(), e = new java_util_JavaScriptHashtable(); e.put_2(b, new GT602(a)); d.addRules_1(e); return d; }, setStatusText_3: function (a, b, d) { var e = this.getGameConsoleViewDataForTextUpdate_2(a, GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_ENFORCE); null != b && e.getRules_0().put_2(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_GRADIENT, b); e.getRules_0().put_2(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_FULLSIZE, new Boolean(d)); GT642.prototype.Log.t_1("UI Neon: ****** TARGETED UPDATE FOR STATUS TEXT " + e); this.updateConsole_2(GT1607.prototype.CREDIT_WIN_BUTTON, e); this.updateLastStatusTextParams_3(a, b, d); }, updateLastStatusTextParams_3: function (a, b, d) { this.lastStatusTextOverride = a; this.lastStatusTextGradient = b; this.lastFullSize = d; }, setFreeSpinText_1: function (a) { var b = this.getGameConsoleViewDataForTextUpdate_2(a, GT1185.prototype.VDR_VR_CONSOLE_FREESPIN_TEXT_OVERRIDE); GT642.prototype.Log.t_1("UI Neon: ****** TARGETED UPDATE FOR FREESPIN TEXT " + b); this.updateConsole_2(GT1607.prototype.CREDIT_WIN_BUTTON, b); this.lastFreeSpinTextOverride = a; }, setWin_4: function (a, b, d, e) { this.setWin_5(a, b, null, d, e); this.updateLastWinTextParams_2(a, b); }, setWin_2: function (a, b) { this.setWin_5(a, b, null, !1, -1); this.updateLastWinTextParams_2(a, b); }, setWin_3: function (a, b, d) { this.setWin_5(a, b, d, !1, -1); this.updateLastWinTextParams_2(a, b); }, setWin_5: function (a, b, d, e, f) { this.setWin_6(a, b, d, e, f, 0); this.updateLastWinTextParams_2(a, b); }, setWin_6: function (a, b, d, e, f, g) { var k = !b, m = new GT820(); m.addViewData_2(GT1184.prototype.WIN, new Double(a)); m.addViewData_2(GT1184.prototype.WIN_ANIMATION, new Boolean(k)); m.addViewData_2(GT1184.prototype.WIN_COUNT_UP, new Boolean(e)); m.addViewData_2(GT1184.prototype.WIN_ANIMATION_DURATION, new Integer(f)); m.addViewData_2(GT1184.prototype.WIN_COUNT_UP_START, new Double(g)); null != d && m.addViewData_2(GT1184.prototype.WIN_ANIMATION_CALLBACK, d); GT642.prototype.Log.t_1("UI Neon: ******TARGETED UPDATE FOR WIN " + m); this.updateConsole_2(GT1607.prototype.CREDIT_WIN_BUTTON, m); this.updateLastWinTextParams_2(a, b); }, updateLastWinTextParams_2: function (a, b) { this.lastWin = a; this.lastSkipAnimation = b; }, setWinAndSuperGames_6: function (a, b, d, e, f, g) { d = !d; var k = new GT820(); k.addViewData_2(GT1184.prototype.SUPERGAME_TEXT, b); k.addViewData_2(GT1184.prototype.WIN, new Double(a)); k.addViewData_2(GT1184.prototype.WIN_ANIMATION, new Boolean(d)); k.addViewData_2(GT1184.prototype.WIN_COUNT_UP, new Boolean(f)); k.addViewData_2(GT1184.prototype.WIN_ANIMATION_DURATION, new Integer(g)); null != e && k.addViewData_2(GT1184.prototype.WIN_ANIMATION_CALLBACK, e); GT642.prototype.Log.t_1("UI Neon: ******TARGETED UPDATE FOR WIN " + k); this.updateConsole_2(GT1607.prototype.CREDIT_WIN_BUTTON, k); }, setVisibleArea_1: function (a) { null != this.console && this.console.setVisibleArea_1(a); }, getConsoleBridge_0: function () { return this.consoleBridge; }, refreshBlurEffect_0: function () { null != this.console && this.console.refreshMask_0(); }, run_0: function () { GT642.prototype.Log.t_1("UI Neon: refreshing blur ..."); this.refreshBlurEffect_0(); }, setLoadingInProgress_1: function (a) { null != this.console && this.console.setActive_1(!a && GT514.prototype.getInstance_0().getSlotGui_0().getSlotState_0().getCasinoState_0().isActivePlayer_0()); var b = new GT820(); b.addViewData_2(GT1184.prototype.LOADING_IN_PROGRESS, new Boolean(a)); GT642.prototype.Log.t_1("UI Neon: ******TARGETED UPDATE FOR SPIN " + b); this.updateConsole_2(GT1607.prototype.SPIN, b); }, updateConsole_1: function (a) { this.updateConsole_2(null, a); }, updateConsole_2: function (a, b) { null != this.console && GT1560.prototype.isAlive_1(GT1389.prototype.getInstance_0().getGameConsoleContainer_0()) && (null == a ? this.console.updateConsole_1(b) : this.console.updateConsole_2(a, b)); }, }, "GT642", [Runnable] ), GT359 = Class.extend( { initialConstructor_0: function () { this.notFirstCall = !1; Class.prototype.initialConstructor_0.call(this); }, run_0: function () { this.notFirstCall ? GT514.prototype.getInstance_0().getSlotGui_0().getSlotConsole_0().setActive_1(!0) : ((this.notFirstCall = !0), GT1389.prototype.getInstance_0().getGameConsoleContainer_0().setModalInputReceiver_1(null), GT514.prototype.getInstance_0().getSlotGui_0().getTimer_0().triggerCallbackAfter_2(this, 125)); }, }, "GT359", [Runnable] ); GT642.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT642.prototype.ID_CONSOLE_NEON = GT1560.prototype.generateID_0(); GT642.prototype.CONSOLE_NEON_LAYOUT = "ui.neon.layout"; GT642.prototype.CONSOLE_NEON_POSITIONS = "ui.neon.positions"; GT642.prototype.CONSOLE_NEON_BLUR = "ui.neon.blur"; var GT225 = GT642.extend( { initialConstructor_0: function () { GT642.prototype.initialConstructor_0.call(this); this.Log.t_1("UI Neon: GUISlotConsoleNeonWrapperOnly created"); (this.uiNeonEnabled = GT514.prototype.getInstance_0().getApplet_0().isUiNeonWrapperOnlyEnabled_0()) ? this.initConsole_0() : this.Log.i_1("UI Neon: disabled"); }, initConsole_0: function () { this.Log.log_1("UI Neon: GUISlotConsoleNeonWrapperOnly being configured..."); this.eventDispatcher = GT514.prototype.getInstance_0().getSlotGui_0().getSkinManager_0().getEventDispatcher_0(); this.createConsole_0(); this.Log.log_1("UI Neon: Configured."); }, createConsole_0: function () { var a = GT514.prototype.getInstance_0().getSlotGui_0(); this.gameConsoleUpdater = this.createGameConsoleUpdater_2(this.console, this); a.getGuiStateMachine_0().addGuiStateListener_1(this.gameConsoleUpdater); a.getSlotEventManager_0().addSlotListener_1(this.gameConsoleUpdater); null == this.consoleBridge && (this.consoleBridge = this.createGameConsoleSlotConsoleBridge_0()); }, reinitConsole_0: function () { if ((this.uiNeonEnabled = GT514.prototype.getInstance_0().getApplet_0().isUiNeonWrapperOnlyEnabled_0())) { this.Log.t_1("UI Neon: console being reinitialized..."); var a = GT514.prototype.getInstance_0().getSlotGui_0(); a.getGuiStateMachine_0().addGuiStateListener_1(this.gameConsoleUpdater); a.getSlotEventManager_0().addSlotListener_1(this.gameConsoleUpdater); this.Log.t_1("UI Neon: GUISlotConsoleNeonWrapperOnly Reinitialized."); } else this.Log.i_1("UI Neon: GUISlotConsoleNeonWrapperOnly disabled"); }, switchLayout_1: function (a) { GT514.prototype.getInstance_0().getSlotGui_0().getTimer_0().triggerCallbackImmediately_1(new SwitchLayoutModalRemoval()); }, refreshBlurEffect_0: function () {}, updateConsole_2: function (a, b) { this.doWrapperReporting_2(b, a); }, doWrapperReporting_2: function (a, b) { var d = a.convertToWrapper_1(b); if (null != d) { var e = GT514.prototype.getInstance_0().getApplet_0().getGameWrapperInterfaceCaller_0(); GT1242.prototype.fireWrapperConsoleEvent_2(e, d.getMainTable_0()); } else this.Log.log_1("UI Neon: Viewdata could not be converted. Wrapper reporing skipped."); }, }, "GT225", [] ), GT775 = GT1437.extend( { initialConstructor_0: function () { this.losingSymbolColorTransformation = this.symbolColorTransformation = this.images = this.reelsLayout = null; this.darkenLosingSymbolBackground = !1; this.darkenLosingSymbolBackgroundColor = null; this.losingSymbolAlpha = this.darkenLosingSymbolBackgroundAlpha = 0; this.debugFont = this.animationHandler = this.timer = null; this.winningSymbolsOnTop = this.clipOverlappingSymbolAboveReel = this.drawVisibleRowsOnly = this.reverseDrawingOrder = !1; this.symbolChars = this.children = null; this.marginBottom = this.marginTop = this.maxImageRows = this.yOffset = 0; this.slotEventManager = null; this.slotEventErrorReported = !1; this.overlappingSymbolsToReorderBack = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.losingSymbolColorTransformation = this.symbolColorTransformation = this.images = this.reelsLayout = null; this.darkenLosingSymbolBackground = !1; this.darkenLosingSymbolBackgroundColor = null; this.losingSymbolAlpha = this.darkenLosingSymbolBackgroundAlpha = 0; this.debugFont = this.animationHandler = this.timer = null; this.winningSymbolsOnTop = this.clipOverlappingSymbolAboveReel = this.drawVisibleRowsOnly = this.reverseDrawingOrder = !1; this.symbolChars = this.children = null; this.marginBottom = this.marginTop = this.maxImageRows = this.yOffset = 0; this.slotEventManager = null; this.slotEventErrorReported = !1; this.overlappingSymbolsToReorderBack = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.reelsLayout = new GT1545(k, m, n); this.images = g; this.darkenLosingSymbolBackgroundColor = GT1634.prototype.black; this.darkenLosingSymbolBackgroundAlpha = 128; this.losingSymbolAlpha = -1; this.animationHandler = new GT55(); this.children = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows + 2); this.symbolChars = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows + 2).init(0); for (a = 0; a < g.length; a++) null != g[a] && (this.maxImageRows = Math.max_2(this.maxImageRows, this.getSymbolImageRows_1(g[a]))); this.slotEventErrorReported = !1; this.overlappingSymbolsToReorderBack = null; }, getSymbolImageRows_1: function (a) { if (null == a) return 1; 0 < a.getHeight_0() % this.reelsLayout.symbolHeight && GT1650.prototype.assertExp_2(!1, "Symbol image: " + a.toString() + " height is " + a.getHeight_0() + " which is not a multiply of layout symbol height:" + this.reelsLayout.symbolHeight); return Integer.truncate_1(Math.round_1(a.getHeight_0() / this.reelsLayout.symbolHeight)); }, setTimer_1: function (a) { this.timer = a; }, setSlotEventManager_1: function (a) { this.slotEventManager = a; }, notifySlotEventError_0: function () { this.slotEventErrorReported || null == this.slotEventManager || ((this.slotEventErrorReported = !0), this.slotEventManager.fireSlotEvent_1(new GT1101("Attempting to create a debug symbol on the stopped reels, this means that the used room ID perhaps doesn't match the slot client."))); }, setSymbolColorTransformation_1: function (a) { this.symbolColorTransformation = a; }, setLosingSymbolColorTransformation_1: function (a) { this.losingSymbolColorTransformation = a; }, setDarkenLosingSymbolBackground_1: function (a) { this.darkenLosingSymbolBackground = a; }, setDarkenLosingSymbolBackground_3: function (a, b, d) { this.setDarkenLosingSymbolBackground_1(a); this.darkenLosingSymbolBackgroundColor = b; this.darkenLosingSymbolBackgroundAlpha = d; }, setLosingSymbolAlpha_1: function (a) { this.losingSymbolAlpha = a; }, setYOffset_1: function (a) { this.yOffset = a; }, setDebugFont_1: function (a) { this.debugFont = a; }, setMargin_2: function (a, b) { this.marginTop = a; this.marginBottom = b; }, setSymbols_3: function (a, b, d) { this.setSymbols_4(a, b, d, 0); }, setSymbols_4: function (a, b, d, e) { this.animationHandler.clearAnimators_1(!1); this.destroyChildren_0(); var f = !1, g = 0; 0 < this.marginTop && g--; var k = this.reelsLayout.rows; 0 < this.marginBottom && k++; for (var m = 0; m < this.reelsLayout.columns; m++) { this.setSymbolContainerInChildrenArray_4(null, 32, m, -1); this.setSymbolContainerInChildrenArray_4(null, 32, m, this.reelsLayout.rows); for (var n = g; n < k; n++) { var p = b.getSymbol_2(m, (a[m] + n + b.getNumberOfSymbols_1(m)) % b.getNumberOfSymbols_1(m)), q = this.images[p]; if (null != q && q.isLoaded_0()) { var r = this.getSymbolImageRows_1(q); 0 != r && (f = !0); q = this.createSymbol_7(q, r, m, n, 0 < d.getCount_0() && !d.isWinningPosition_2(m, n), !0, e); this.setSymbolContainerInChildrenArray_4(q, p, m, n); } else null != this.debugFont ? ((q = new GT1437( this, this.reelsLayout.getColumnPos_1(m), this.reelsLayout.getReelY_1(m) + this.reelsLayout.getRowPos_1(n) + this.marginTop, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight )), this.setSymbolContainerInChildrenArray_4(q, p, m, n), new GT856(q, 0, 0, q.getWidth_0(), q.getHeight_0(), p, !1, this.debugFont, !GT1650.prototype.isDebugMode_0())) : GT775.prototype.LOG.info && GT775.prototype.LOG.log_1("no image " + GT1672.prototype.charToString_1(p)), this.notifySlotEventError_0(); } } !this.drawVisibleRowsOnly && 1 < this.maxImageRows && (this.reverseDrawingOrder ? this.createImagesBelowReel_4(a, b, 0 < d.getCount_0(), e) : this.createImagesAboveReel_4(a, b, 0 < d.getCount_0(), e)); f && this.reorderOverlappingSymbols_0(); !this.drawVisibleRowsOnly && 1 < this.maxImageRows && (this.reverseDrawingOrder ? this.createImagesAboveReel_4(a, b, 0 < d.getCount_0(), e) : this.createImagesBelowReel_4(a, b, 0 < d.getCount_0(), e)); 0 < d.getCount_0() && this.winningSymbolsOnTop && this.reorderWinningSymbols_1(d); this.animationHandler.startAnimators_0(); }, reorderOverlappingSymbols_0: function () { if (this.reverseDrawingOrder) for (var a = this.reelsLayout.columns - 1; 0 <= a; a--) for (var b = this.reelsLayout.rows - 1; 0 <= b; b--) { if (this.hasTiledImage_2(a, b)) { var d = this.getSymbolObjectFromChildrenArray_2(a, b), e = !0; if (null != this.overlappingSymbolsToReorderBack) for (var f = 0; f < this.overlappingSymbolsToReorderBack.length_0(); f++) { var g = d.getChild_1(0); null != g && instanceOf(g, GT1591) && ((g = g.getImage_0()), null != g && g.equals_1(this.images[this.overlappingSymbolsToReorderBack.charAt_1(f)]) && (e = !1)); } d.reorder_1(e); } } else for (a = 0; a < this.reelsLayout.columns; a++) for (b = 0; b < this.reelsLayout.rows; b++) if (this.hasTiledImage_2(a, b)) { d = this.getSymbolObjectFromChildrenArray_2(a, b); e = !0; if (null != this.overlappingSymbolsToReorderBack) for (f = 0; f < this.overlappingSymbolsToReorderBack.length_0(); f++) (g = d.getChild_1(0)), null != g && instanceOf(g, GT1591) && ((g = g.getImage_0()), null != g && g.equals_1(this.images[this.overlappingSymbolsToReorderBack.charAt_1(f)]) && (e = !1)); d.reorder_1(e); } }, reorderWinningSymbols_1: function (a) { for (var b = this.getChildCount_0(), d = 0; d < b; d++) for (var e = this.getChild_1(d), f = this.reelsLayout.columns - 1; 0 <= f; f--) { for (var g = !1, k = this.reelsLayout.rows - 1; 0 <= k; k--) if (this.getSymbolObjectFromChildrenArray_2(f, k) == e && a.isWinningPosition_2(f, k)) { b--; d--; e.reorder_1(!0); g = !0; break; } if (g) break; } }, createImagesBelowReel_4: function (a, b, d, e) { for (var f = 0; f < this.reelsLayout.columns; f++) { var g = b.getSymbol_2(f, (a[f] + this.reelsLayout.rows) % b.getNumberOfSymbols_1(f)), k = this.images[g], m = this.getRowOffset_1(this.getSymbolImageRows_1(k)); if (0 > m) { var n = this.reelsLayout.getColumnPos_1(f), p = this.yOffset + this.reelsLayout.getReelY_1(f) + this.reelsLayout.getRowPos_1(this.reelsLayout.rows - 1) + (m + 1) * this.reelsLayout.symbolHeight, q = this.reelsLayout.symbolWidth, r = this.reelsLayout.getRowPos_1(this.reelsLayout.rows - 1) + this.reelsLayout.symbolHeight - p + this.yOffset, k = this.createSymbol_10(k, n, p, q, r, 0, m, d, !0, e); if (null != this.overlappingSymbolsToReorderBack && null != k) for (m = 0; m < this.overlappingSymbolsToReorderBack.length_0(); m++) g == this.overlappingSymbolsToReorderBack.charAt_1(m) && k.reorder_1(!1); this.setSymbolContainerInChildrenArray_4(k, g, f, this.reelsLayout.rows); } } }, createImagesAboveReel_4: function (a, b, d, e) { for (var f = this.reelsLayout.columns - 1; 0 <= f; f--) { var g = b.getSymbol_2(f, (a[f] - 1 + b.getNumberOfSymbols_1(f)) % b.getNumberOfSymbols_1(f)), k = this.images[g], m = this.getSymbolImageRows_1(k), n = this.getRowOffset_1(m); if (0 < n - 1 + m) { var p = this.reelsLayout.getColumnPos_1(f), q = -(this.reelsLayout.getRowPos_1(0) + (n - 1) * this.reelsLayout.symbolHeight), r = this.yOffset + this.reelsLayout.getReelY_1(f); this.clipOverlappingSymbolAboveReel && ((q += this.reelsLayout.getRowPos_1(0)), (r += this.reelsLayout.getRowPos_1(0))); k = this.createSymbol_10(k, p, r, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight * m - q, q, n, d, !0, e); if (null != this.overlappingSymbolsToReorderBack && null != k) for (m = 0; m < this.overlappingSymbolsToReorderBack.length_0(); m++) g == this.overlappingSymbolsToReorderBack.charAt_1(m) && k.reorder_1(!1); this.setSymbolContainerInChildrenArray_4(k, g, f, -1); } } }, getRowOffset_1: function (a) { var b = 0; 1 < a && ((b = Math.div(-a, 2)), this.reverseDrawingOrder && 2 * -b == a && b++); return b; }, createSymbol_7: function (a, b, d, e, f, g, k) { var m = this.getRowOffset_1(b), n = this.reelsLayout.getColumnPos_1(d); d = this.yOffset + this.reelsLayout.getReelY_1(d) + this.reelsLayout.getRowPos_1(e) + m * this.reelsLayout.symbolHeight + this.marginTop; return this.createSymbol_10(a, n, d, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight * b, 0, m, f, g, k); }, createSymbol_10: function (a, b, d, e, f, g, k, m, n, p) { b = new GT1437(this, b, d, e, f); null != this.losingSymbolColorTransformation && m ? (0 < p && null != this.timer ? this.animationHandler.addAnimator_1(new GT447(this.timer, b, this.losingSymbolColorTransformation, p, !1)) : b.setColorTransformation_1(this.losingSymbolColorTransformation), this.darkenLosingSymbolBackground && new GT1615(b, 0, -k * this.reelsLayout.symbolHeight, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight, this.darkenLosingSymbolBackgroundColor).setAlpha_1(this.darkenLosingSymbolBackgroundAlpha)) : n && b.setColorTransformation_1(this.symbolColorTransformation); k = a.getHeight_0(); 1 != this.getSymbolImageRows_1(a) && (k = b.getHeight_0()); a = new GT1591(b, 0, 0, b.getWidth_0(), b.getHeight_0(), a, 0, g, a.getWidth_0(), k, !0); 0 <= this.losingSymbolAlpha && m && (a.getAlpha_0() != this.losingSymbolAlpha && 0 < p && null != this.timer ? ((m = [ [0, a.getAlpha_0(), a.getAlpha_0()], [0, a.getAlpha_0(), a.getAlpha_0()], [p, a.getAlpha_0(), this.losingSymbolAlpha], ]), this.animationHandler.addAnimator_1(new GT1191(this.timer, a, !1, m))) : a.setAlpha_1(this.losingSymbolAlpha)); return b; }, removeLosingSymbolEffect_1: function (a) { this.animationHandler.clearAnimators_1(!1); for (var b = 0; b < this.children.length; b++) for (var d = 0; d < this.children[b].length; d++) if ( GT1560.prototype.isAlive_1(this.children[b][d]) && (0 < a && null != this.timer ? this.animationHandler.addAnimator_1(new GT447(this.timer, this.children[b][d], this.symbolColorTransformation, a, !1)) : this.children[b][d].setColorTransformation_1(this.symbolColorTransformation), this.darkenLosingSymbolBackground && 0 < this.children[b][d].getChildCount_0() && GT1560.prototype.isAlive_1(this.children[b][d].getChild_1(0)) && instanceOf(this.children[b][d].getChild_1(0), GT1615) && this.children[b][d].getChild_1(0).destroy_0(), 0 <= this.losingSymbolAlpha && 0 < this.children[b][d].getChildCount_0() && GT1560.prototype.isAlive_1(this.children[b][d].getChild_1(0)) && instanceOf(this.children[b][d].getChild_1(0), GT1591)) ) { var e = this.children[b][d].getChild_1(0); if (255 != e.getAlpha_0() && 0 < a && null != this.timer) { var f = [ [a, e.getAlpha_0(), 255], [0, 255, 255], [0, 255, 255], ]; this.animationHandler.addAnimator_1(new GT1191(this.timer, e, !1, f)); } else e.setAlpha_1(255); } this.animationHandler.startAnimators_0(); }, removeLosingSymbolEffect_0: function () { this.removeLosingSymbolEffect_1(0); }, hasTiledImage_2: function (a, b) { var d = this.getSymbolObjectFromChildrenArray_2(a, b); if (null != d) for (var e = d.getChildCount_0(), f = 0; f < e; f++) if (instanceOf(d.getChild_1(f), GT1591)) { var g = d.getChild_1(f).getImage_0(); if (1 < this.getSymbolImageRows_1(g)) return !0; } return !1; }, setSymbol_3: function (a, b, d) { this.setSymbol_5(a, b, d, !1, !1); }, setSymbol_5: function (a, b, d, e, f) { this.setSymbol_6(a, b, d, e, f, 0); }, setSymbol_6: function (a, b, d, e, f, g) { this.animationHandler.clearAnimators_1(!1); for (var k = 0, m = 0; m < this.getChildCount_0(); m++) if (this.getSymbolObjectFromChildrenArray_2(a, b) == this.getChild_1(m)) { k = m; break; } GT1560.prototype.destroyIfAlive_1(this.getSymbolObjectFromChildrenArray_2(a, b)); var n = this.images[d]; null != n && n.isLoaded_0() && ((m = this.getSymbolImageRows_1(n)), (e = this.createSymbol_7(n, m, a, b, e, f, g)), e.reorderToPosition_1(k), this.setSymbolContainerInChildrenArray_4(e, d, a, b), 1 < m && this.reorderOverlappingSymbols_0()); this.animationHandler.startAnimators_0(); }, hideAllSymbols_1: function (a) { for (var b = this.getChildCount_0(), d = 0; d < b; d++) this.getChild_1(d).hide_1(a); }, getSymbols_0: function () { return this.symbolChars; }, getSymbol_2: function (a, b) { var d = 0 <= a && a < this.children.length, e = d && -1 <= b && b + 1 < this.children[a].length; return d && e ? this.symbolChars[a][b + 1] : 32; }, getSymbolObject_2: function (a, b) { return this.getSymbolObjectFromChildrenArray_2(a, b); }, getSymbolObjectFromChildrenArray_2: function (a, b) { var d = 0 <= a && a < this.children.length, e = d && -1 <= b && b + 1 < this.children[a].length; return d && e ? this.children[a][b + 1] : null; }, setSymbolContainerInChildrenArray_4: function (a, b, d, e) { this.children[d][e + 1] = a; this.symbolChars[d][e + 1] = b; }, setReverseDrawingOrder_1: function (a) { this.reverseDrawingOrder = a; }, setDrawVisibleRowsOnly_1: function (a) { this.drawVisibleRowsOnly = a; }, setClipOverlappingSymbolAboveReel_1: function (a) { this.clipOverlappingSymbolAboveReel = a; }, setWinningSymbolsOnTop_1: function (a) { this.winningSymbolsOnTop = a; }, setOverlappingSymbolsToReorderBack_1: function (a) { this.overlappingSymbolsToReorderBack = a; }, getReelsLayout_0: function () { return this.reelsLayout; }, }, "GT775", [] ), GT55 = Class.extend( { initialConstructor_0: function () { this.fadeAnimators = this.colorTransformationAnimators = null; this.colorTransformationAnimators = new java_util_JavaScriptVector(); this.fadeAnimators = new java_util_JavaScriptVector(); }, addAnimator_1: function (a) { instanceOf(a, GT447) ? this.colorTransformationAnimators.add_1(a) : instanceOf(a, GT1191) && this.fadeAnimators.add_1(a); }, getNumberOfColorTransformationAnimators_0: function () { return this.colorTransformationAnimators.size_0(); }, getNumberOfFadeAnimators_0: function () { return this.fadeAnimators.size_0(); }, clearColorTransformationAnimators_1: function (a) { for (var b = 0; b < this.colorTransformationAnimators.size_0(); ++b) this.colorTransformationAnimators.elementAt_1(b).killAndTrigger_1(a); this.colorTransformationAnimators.clear_0(); }, clearFadeAnimators_1: function (a) { for (var b = 0; b < this.fadeAnimators.size_0(); ++b) this.fadeAnimators.elementAt_1(b).killAndTrigger_1(a); this.fadeAnimators.clear_0(); }, clearAnimators_1: function (a) { this.clearColorTransformationAnimators_1(a); this.clearFadeAnimators_1(a); }, startColorTransformationAnimators_0: function () { for (var a = 0; a < this.colorTransformationAnimators.size_0(); ++a) this.colorTransformationAnimators.elementAt_1(a).start_0(); }, startFadeAnimators_0: function () { for (var a = 0; a < this.fadeAnimators.size_0(); ++a) this.fadeAnimators.elementAt_1(a).start_0(); }, startAnimators_0: function () { this.startColorTransformationAnimators_0(); this.startFadeAnimators_0(); }, }, "GT55", [] ); GT775.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT856 = GT1437.extend( { initialConstructor_0: function () { GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT856.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, !1); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); n || (new GT1440(this, GT1634.prototype.white), new GT1440(this, 1, 1, e - 2, f - 2, GT1634.prototype.black), new GT1440(this, 2, 2, e - 4, f - 4, k ? GT1634.prototype.red : GT1634.prototype.white)); null != m && ((a = new GT1606(this, Math.div(e, 2), Math.div(f, 2), GT1606.prototype.ALIGN_CENTER | GT1606.prototype.VALIGN_CENTER, GT1672.prototype.charToString_1(g), m, GT1634.prototype.black, 2, GT1634.prototype.white)), n && a.setAlpha_1(100)); }, }, "GT856", [] ), GT1004 = GT1437.extend( { initialConstructor_0: function () { this.parentCanvas = null; this.anchory = this.anchorX = 0; this.outlineColor = this.foregroundColor = this.font = this.winString = null; this.borderThickness = 0; this.vAlign = this.hAlign = null; this.labelTextOutlineThickness = 0; this.text = this.labelTextOutlineColor = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT1004.prototype.initialConstructor_13.call(this, a, b, d, e, f, g, k, m, n, p, q, null, -1); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.parentCanvas = null; this.anchory = this.anchorX = 0; this.outlineColor = this.foregroundColor = this.font = this.winString = null; this.borderThickness = 0; this.vAlign = this.hAlign = null; this.labelTextOutlineThickness = 0; this.text = this.labelTextOutlineColor = null; GT1437.prototype.initialConstructor_1.call(this, a); this.parentCanvas = b; this.anchorX = d; this.anchory = e; this.winString = k; this.font = m; this.foregroundColor = n; this.outlineColor = p; this.borderThickness = q; this.hAlign = f; this.vAlign = g; this.labelTextOutlineColor = r; this.labelTextOutlineThickness = t; this.text = null; this.createLabel_1(!0); }, setLabelTextOutline_2: function (a, b) { this.labelTextOutlineThickness = b; this.labelTextOutlineColor = a; }, recreateText_0: function () { this.createLabel_1(!1); }, createLabel_1: function (a) { this.destroyChildren_0(); var b = GT1063.prototype.Highlight.transform_1(this.foregroundColor); this.text = new GT1606(this, 0, 0, GT1488.prototype.CENTER.combinedFlags_1(GT1489.prototype.CENTER), this.winString, this.font, b); null != this.labelTextOutlineColor && 0 < this.labelTextOutlineThickness && this.text.setOutline_2(this.labelTextOutlineThickness, this.labelTextOutlineColor); var b = this.text.getWidth_0() + 2 * this.borderThickness + 8, d = this.text.getHeight_0() + 2 * this.borderThickness; this.resize_2(b, d); a && this.parentCanvas.addPolyLine_3( [this.anchorX, this.anchory + Math.div(this.getHeight_0(), 2), this.anchorX + this.getWidth_0(), this.anchory + Math.div(this.getHeight_0(), 2)], this.getHeight_0() - 1, GT1634.prototype.black ); b = Math.div(this.getWidth_0() - this.text.getWidth_0(), 2); d = Math.div(this.getHeight_0() - this.text.getHeight_0(), 2); this.text.move_2(b, d); this.text.reorder_1(!0); a && (this.addLineFrame_7(0, 0, this.getWidth_0(), this.getHeight_0(), this.borderThickness, this.outlineColor, !1), (a = Math.div(this.borderThickness, 2)), this.addLineFrame_7(a, a, this.getWidth_0() - 2 * a, this.getHeight_0() - 2 * a, a, this.foregroundColor, !0)); this.moveAnchor_2(this.anchorX, this.anchory); }, getAnchorX_0: function () { return this.hAlign.getX_2(this.getX_0(), this.getWidth_0()); }, getAnchorY_0: function () { return this.vAlign.getY_2(this.getY_0(), this.getHeight_0()); }, addLineFrame_7: function (a, b, d, e, f, g, k) { this.addLine_9( GT954.prototype.calculateCoordinate_3(a, f, k), GT954.prototype.calculateCoordinate_3(b, f, k), GT954.prototype.calculateDimension_3(d, f, k), GT954.prototype.calculateDimension_3(e, f, k), f, GT954.prototype.createCoordinates_4(d, e, f, k), g, 0, 0 ); }, addLine_9: function (a, b, d, e, f, g, k, m, n) { d = [].createArray(g.length).init(0); d = g; for (g = 0; g < d.length; g += 2) (d[g] = d[g] + a + this.anchorX), (d[g + 1] = d[g + 1] + b + this.anchory); this.parentCanvas.addPolyLine_3(d, f, k); }, }, "GT1004", [] ), GT397 = GT1437.extend( { initialConstructor_0: function () { this.showScatterWinLabels = this.showLineWinLabels = this.showScatterWinFrames = this.showLineWinFrames = !1; this.def = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT397.prototype.initialConstructor_6.call(this, a, b, d, e, f, null); }, initialConstructor_6: function (a, b, d, e, f, g) { this.showScatterWinLabels = this.showLineWinLabels = this.showScatterWinFrames = this.showLineWinFrames = !1; this.def = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.def = g; this.showLineWinFrames = this.showScatterWinFrames = this.showLineWinLabels = this.showScatterWinLabels = !0; }, isShowLineWinFrames_0: function () { return this.showLineWinFrames; }, isShowScatterWinFrames_0: function () { return this.showScatterWinFrames; }, isShowLineWinLabels_0: function () { return this.showLineWinLabels; }, isShowScatterWinLabels_0: function () { return this.showScatterWinLabels; }, getReelsLayout_0: function () { return this.def; }, setShowFrames_1: function (a) { this.setShowLineWinFrames_1(a); this.setShowScatterWinFrames_1(a); }, setShowLineWinFrames_1: function (a) { this.showLineWinFrames = a; }, setShowScatterWinFrames_1: function (a) { this.showScatterWinFrames = a; }, setShowWinLabels_1: function (a) { this.setShowLineWinLabels_1(a); this.setShowScatterWinLabels_1(a); }, setShowLineWinLabels_1: function (a) { this.showLineWinLabels = a; }, setShowScatterWinLabels_1: function (a) { this.showScatterWinLabels = a; }, }, "GT397", [] ), GT199 = GT397.extend( { initialConstructor_0: function () { GT397.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT397.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, showTab_2: function (a, b) { for (var d, e = this.getChildCount_0(), f = 0; f < e; f++) (d = this.getChild_1(f)), instanceOf(d, GT397) && d.showTab_2(a, b); }, showAllTabs_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.showAllTabs_1(a); }, showLine_2: function (a, b) { for (var d, e = this.getChildCount_0(), f = 0; f < e; f++) (d = this.getChild_1(f)), instanceOf(d, GT397) && d.showLine_2(a, b); }, showAllLines_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.showAllLines_1(a); }, showLines_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.showLines_1(a); }, showScatter_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.showScatter_1(a); }, setWinningSymbols_3: function (a, b, d) { for (var e, f = this.getChildCount_0(), g = 0; g < f; g++) (e = this.getChild_1(g)), instanceOf(e, GT397) && e.setWinningSymbols_3(a, b, d); }, setScatterWin_2: function (a, b) { for (var d, e = this.getChildCount_0(), f = 0; f < e; f++) (d = this.getChild_1(f)), instanceOf(d, GT397) && d.setScatterWin_2(a, b); }, isTabVisible_1: function (a) { for (var b = !1, d, e = this.getChildCount_0(), f = 0; f < e; f++) (d = this.getChild_1(f)), instanceOf(d, GT397) && (b = d.isTabVisible_1(a)); return b; }, setShowFrames_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.setShowFrames_1(a); }, setShowLineWinFrames_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.setShowLineWinFrames_1(a); }, setShowScatterWinFrames_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT397) && b.setShowScatterWinFrames_1(a); }, }, "GT199", [] ), GT643 = GT1437.extend( { initialConstructor_0: function () { this._tabsImage = this.tabs = this._tabModifiers = null; this._lineCount = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this._tabsImage = this.tabs = this._tabModifiers = null; this._lineCount = 0; GT1437.prototype.initialConstructor_1.call(this, a); GT1650.prototype.assertExp_2(null != b, "TabsImage must not be null"); GT1650.prototype.assertExp_2(null != a, "Parent must not be null"); GT1650.prototype.assertExp_2(0 < e, "Linecount must be positive"); GT1650.prototype.assertExp_2(b.getColumns_0() * b.getRows_0() >= 2 * e, "Image must contain >= 2x linecount tiles!"); this._tabsImage = b; this._tabModifiers = d; this._lineCount = e; this.createTabImages_0(); }, killTabs_0: function () { if (null != this.tabs) for (var a = 0; a < this.tabs.length; a++) GT1560.prototype.destroyIfAlive_1(this.tabs[a]); this.tabs = null; }, hasTabImage_0: function () { return null != this.tabs; }, showAllTabs_1: function (a) { if (this.hasTabImage_0()) for (var b = 0; b < this._lineCount; b++) this.showTab_2(b, a); }, showTab_2: function (a, b) { this.hasTabImage_0() && (this.tabs[2 * a].hide_1(!b), this.tabs[2 * a + 1].hide_1(!b)); }, isTabVisible_1: function (a) { return this.hasTabImage_0() ? !this.tabs[2 * a].isHidden_0() : !1; }, createTabImages_0: function () { this.killTabs_0(); this.tabs = [].createArray(this._tabsImage.getColumns_0() * this._tabsImage.getRows_0()); for (var a = 0; a < this._lineCount; a++) { var b = 0, d = Math.div(this.getHeight_0(), this._lineCount) * a, e = this.getWidth_0() - this._tabsImage.getColumnWidth_0(), f = Math.div(this.getHeight_0(), this._lineCount) * a; if (null != this._tabModifiers) { var g = this._tabModifiers.get_1(Integer.toString_1(a)); null != g && ((b = g.get_1(0).intValue_0()), (d = g.get_1(1).intValue_0()), (e = g.get_1(2).intValue_0()), (f = g.get_1(3).intValue_0())); } this.tabs[2 * a] = new GT1591( this, b, d, this._tabsImage.getColumnWidth_0(), this._tabsImage.getRowHeight_0(), this._tabsImage, Math.min_2((2 * a) % this._tabsImage.getColumns_0(), this._tabsImage.getColumns_0() - 1), Math.min_2(Math.div(2 * a, this._tabsImage.getColumns_0()), this._tabsImage.getRows_0() - 1), !1 ); this.tabs[2 * a + 1] = new GT1591( this, e, f, this._tabsImage.getColumnWidth_0(), this._tabsImage.getRowHeight_0(), this._tabsImage, Math.min_2((2 * a + 1) % this._tabsImage.getColumns_0(), this._tabsImage.getColumns_0() - 1), Math.min_2(Math.div(2 * a + 1, this._tabsImage.getColumns_0()), this._tabsImage.getRows_0() - 1), !1 ); } }, }, "GT643", [] ), GT319 = GT1437.extend( { initialConstructor_0: function () { GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, }, "GT319", [] ), GT143 = GT852.extend( { initialConstructor_0: function () { GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT852.prototype.initialConstructor_5.call(this, a, b, d, e, f); a = new GT1288(this, 0, 0, e, f); 0 < n && a.addPolygon_4([0, 0, e - 0, 0, e - 0, f - 0, 0, f - 0, 0, 0], [m], null, n); 0 < g && ((m = Math.div(g, 2)), a.addPolyLine_3([m, m, e - m, m, e - m, f - m, m, f - m, m, m], g, k)); }, }, "GT143", [] ), GT542 = GT1437.extend( { initialConstructor_0: function () { this.timer = this.colorTransformation = this.reelsLayout = this.images = null; this.idx = 0; this.reelListeners = this.debugFont = null; this.skipStopSound = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.timer = this.colorTransformation = this.reelsLayout = this.images = null; this.idx = 0; this.reelListeners = this.debugFont = null; this.skipStopSound = !1; GT1437.prototype.initialConstructor_5.call(this, a, f.getColumnPos_1(d), f.getReelY_1(d), this.calculateMinWidth_1(f), this.calculateMinHeight_1(f)); this.timer = b; this.images = e; this.reelsLayout = f; this.idx = d; this.skipStopSound = !1; this.reelListeners = new java_util_JavaScriptVector(); }, getSymbolImage_1: function (a) { return this.images[a]; }, getTimer_0: function () { return this.timer; }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.reelListeners.setSize_1(0); }, addReelListener_1: function (a) { this.reelListeners.contains_1(a) || this.reelListeners.addElement_1(a); }, removeReelListener_1: function (a) { this.reelListeners.removeElement_1(a); }, getReelsLayout_0: function () { return this.reelsLayout; }, setSymbolColorTransformation_1: function (a) { this.colorTransformation = a; }, getSymbolColorTransformation_0: function () { return this.colorTransformation; }, getIndex_0: function () { return this.idx; }, getSkipStopSound_0: function () { return this.skipStopSound; }, setSkipStopSound_1: function (a) { this.skipStopSound = a; }, setDebugFont_1: function (a) { this.debugFont = a; }, createDebugSymbol_6: function (a, b, d, e, f, g) { return new GT856(a, b, d, e, f, g, !1, this.debugFont, !GT1650.prototype.isDebugMode_0()); }, notifyReelStarted_0: function () { for (var a = this.reelListeners.size_0() - 1; -1 < a; a--) this.reelListeners.elementAt_1(a).reelStarted_1(this); }, notifyReelStopped_0: function () { for (var a = this.reelListeners.size_0() - 1; -1 < a; a--) this.reelListeners.elementAt_1(a).reelStopped_1(this); }, getListeners_0: function () { return this.reelListeners.clone_0(); }, }, "GT542", [] ); GT542.prototype.calculateMinHeight_1 = function (a) { return a.getRowPos_1(a.rows - 1) + a.symbolHeight; }; GT542.prototype.calculateMinWidth_1 = function (a) { return a.symbolWidth; }; GT542.prototype.REELSTATE_STOPPED = 0; GT542.prototype.REELSTATE_RUNNING = 1; GT542.prototype.REELSTATE_STOPPING = 2; var GT567 = GT542.extend( { initialConstructor_0: function () { this.reelset = null; this.state = 0; this.cover = null; this.finalPosition = this.interval = this.uncoverTime = this.coverFrameTime = 0; this.coveredReelAnimators = this.stopCallback = this.coverContainer = this.symbolContainer = this.unCover = null; this.frameForSymbolUnveiledTrigger = this.currentrow = 0; GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.reelset = null; this.state = 0; this.cover = null; this.finalPosition = this.interval = this.uncoverTime = this.coverFrameTime = 0; this.coveredReelAnimators = this.stopCallback = this.coverContainer = this.symbolContainer = this.unCover = null; this.frameForSymbolUnveiledTrigger = this.currentrow = 0; GT542.prototype.initialConstructor_5.call(this, a, b, d, e, k); this.cover = f; this.unCover = g; this.coverFrameTime = 100; this.uncoverTime = 500; this.interval = 300; this.state = this.REELSTATE_STOPPED; this.symbolContainer = new GT1437(this); this.coverContainer = [].createArray(k.rows); for (a = 0; a < this.coverContainer.length; a++) this.coverContainer[a] = new GT1437(this, 0, k.getRowPos_1(a), this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight); this.stopCallback = new GT252(this); this.coveredReelAnimators = new java_util_JavaScriptVector(); this.frameForSymbolUnveiledTrigger = 0; }, setFrameForSymbolUnveiledTrigger_1: function (a) { GT1650.prototype.assertExp_2(a <= this.unCover.getColumns_0() * this.unCover.getRows_0(), "frameForSymbolUnveiledTrigger must be <= the number of frames in the uncover animation image"); this.frameForSymbolUnveiledTrigger = a; }, setCoverAnimationTimePerFrame_1: function (a) { this.coverFrameTime = a; }, setUncoverTime_1: function (a) { this.uncoverTime = a; }, setUncoverInterval_1: function (a) { this.interval = a; }, setReelSet_2: function (a, b) { this.reelset = [].createArray(a.length).init(0); for (var d = 0; d < a.length; d++) this.reelset[d] = a[(b + d) % this.reelset.length]; }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(this.reelset.length == a.length, "Reel set to be exchanged must have the same length as the old reel set!"); for (var d = 0; d < this.reelset.length; d++) d < a.length && (this.reelset[d] = a[(b + d) % a.length]); }, start_1: function (a) { GT1650.prototype.assertExp_2(0 == a, "Functionality for this parameter hasn't been implemented yet for this kind of reel."); GT1650.prototype.assertExp_2(this.state == this.REELSTATE_STOPPED, "Can only start a stopped reel"); this.state = this.REELSTATE_RUNNING; this.currentrow = -1; a = this.getReelsLayout_0(); for (var b = 0; b < a.rows; b++) if (1 < this.cover.getRows_0() || 1 < this.cover.getColumns_0()) { var d = new GT852(this.coverContainer[b]), d = new GT927(this.getTimer_0(), d, this.cover, this.coverFrameTime, !0, !1); d.setSize_2(a.symbolWidth, a.symbolHeight); d.start_0(); } else new GT1591(this.coverContainer[b], 0, 0, a.symbolWidth, a.symbolHeight, this.cover, 0, 0, this.cover.getWidth_0(), this.cover.getHeight_0()); this.notifyReelStarted_0(); }, uncoverSymbol_1: function (a) { if (!(a <= this.currentrow)) { this.currentrow = a; var b = null; null == this.unCover || (1 == this.unCover.getRows_0() && 1 == this.unCover.getColumns_0()) ? (null != this.unCover && (this.coverContainer[a].destroyChildren_0(), new GT1591(this.coverContainer[a], 0, 0, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight, this.unCover, 0, 0, this.unCover.getWidth_0(), this.unCover.getHeight_0())), instanceOf(this.coverContainer[a].getChild_1(0), GT1480) && ((b = new GT1191(this.getTimer_0(), this.coverContainer[a].getChild_1(0), !1, 0, 0, this.uncoverTime)), b.addFinishCallback_1(new GT714(this.coverContainer[a].getChild_1(0))))) : (this.coverContainer[a].destroyChildren_0(), (b = new GT927(this.getTimer_0(), this.coverContainer[a], this.unCover, this.uncoverTime, !1, !1)), b.setSize_2(this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight), b.setKeepLastFrame_1(!1)); if (null != b) { a == this.getReelsLayout_0().rows - 1 && b.addFinishCallback_1(this.stopCallback); for (var d = this.getListeners_0(), e = d.size_0(), f = this.reelset[(this.finalPosition + a) % this.reelset.length], g = 0; g < e; g++) instanceOf(b, GT927) ? b.addFrameChangedCallback_1(new GT146(this, f, a, d.elementAt_1(g), this.frameForSymbolUnveiledTrigger)) : d.elementAt_1(g).symbolUnveiled_3(this, f, a); b.start_0(); } } }, stop_3: function (a, b, d) { this.finalPosition = a; null == b && (b = this.reelset); GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPING, "Can't stop if reel is already stopping"); this.reelset = b; this.symbolContainer.destroyChildren_0(); for (var e = this.getReelsLayout_0(), f = 0; f < e.rows; f++) { var g = new GT1437(this.symbolContainer, 0, f * e.symbolHeight, e.symbolWidth, e.symbolHeight), k = b[(a + f) % b.length], m = this.getSymbolImage_1(k); null != m && m.isLoaded_0() ? new GT1591(g, 0, 0, e.symbolWidth, e.symbolHeight, m, 0, 0, m.getWidth_0(), m.getHeight_0(), !0, this.getSymbolColorTransformation_0()) : this.createDebugSymbol_6(g, 0, 0, e.symbolWidth, e.symbolHeight, k); } 0 != d ? ((a = new GT1129(this.getTimer_0(), d, !1)), (d = new GT344(this.getTimer_0(), this, this.interval)), this.coveredReelAnimators.add_1(d), a.addFinishCallback_1(new GT660(d)), a.start_0()) : ((d = new GT344(this.getTimer_0(), this, this.interval)), this.coveredReelAnimators.add_1(d), d.start_0()); this.state = this.REELSTATE_STOPPING; }, stopImmediately_2: function (a, b) { this.finalPosition = a; this.reelset = [].createArray(b.length).init(0); for (var d = 0; d < this.reelset.length; d++) this.reelset[d] = b[d]; GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPED, "Can't stop if reel is already stopping"); this.symbolContainer.destroyChildren_0(); for (var e = this.getReelsLayout_0(), d = 0; d < e.rows; d++) this.uncoverSymbol_1(d); for (d = 0; d < e.rows; d++) { var f = new GT1437(this.symbolContainer, 0, d * e.symbolHeight, e.symbolWidth, e.symbolHeight), g = this.reelset[(this.finalPosition + d) % this.reelset.length], k = this.getSymbolImage_1(g); null != k && k.isLoaded_0() ? new GT1591(f, 0, 0, e.symbolWidth, e.symbolHeight, k, 0, 0, k.getWidth_0(), k.getHeight_0(), !0, this.getSymbolColorTransformation_0()) : this.createDebugSymbol_6(f, 0, 0, e.symbolWidth, e.symbolHeight, g); } this.state = this.REELSTATE_STOPPING; }, finalStop_0: function () { for (var a = 0; a < this.coveredReelAnimators.size_0(); a++) this.coveredReelAnimators.elementAt_1(a).deactivate_0(); this.coveredReelAnimators.setSize_1(0); this.state = this.REELSTATE_STOPPED; this.notifyReelStopped_0(); }, isRunning_0: function () { return this.state != this.REELSTATE_STOPPED; }, hideSymbolAtRow_2: function (a, b) { GT1650.prototype.assertExp_2(this.state != this.REELSTATE_RUNNING, "Can only hide symbol when reel isn't running any more."); this.state != this.REELSTATE_RUNNING && (a >= this.symbolContainer.getChildCount_0() || this.symbolContainer.getChild_1(a).hide_1(b)); }, destroyImpl_2: function (a, b) { GT542.prototype.destroyImpl_2.call(this, a, b); this.stopCallback = this.coverContainer = this.symbolContainer = null; }, }, "GT567", [] ), GT252 = Class.extend( { initialConstructor_0: function () { this.reel = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reel = null; this.reel = a; }, run_0: function () { this.reel.finalStop_0(); }, }, "GT252", [Runnable] ), GT146 = Class.extend( { initialConstructor_0: function () { this.currentFrame = 0; this.reel = null; this.rowPosition = this.symbol = 0; this.reelListener = null; this.frameForSymbolUnveiledTrigger = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.currentFrame = 0; this.reel = null; this.rowPosition = this.symbol = 0; this.reelListener = null; this.frameForSymbolUnveiledTrigger = 0; this.reelListener = e; this.reel = a; this.symbol = b; this.rowPosition = d; this.currentFrame = 0; this.frameForSymbolUnveiledTrigger = f; }, run_0: function () { this.currentFrame == this.frameForSymbolUnveiledTrigger && this.reelListener.symbolUnveiled_3(this.reel, this.symbol, this.rowPosition); this.currentFrame++; }, }, "GT146", [Runnable] ), GT796 = GT542.extend( { initialConstructor_0: function () { GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT542.prototype.initialConstructor_5.call(this, a, b, d, e, g); }, setStopSound_3: function (a, b, d) {}, getStopSound_0: function () { return null; }, setFastStopDelay_1: function (a) {}, getStopSoundStartPosition_0: function () { return 0; }, setMargin_2: function (a, b) {}, start_1: function (a) {}, stop_3: function (a, b, d) {}, stopImmediately_2: function (a, b) {}, setReelSet_2: function (a, b) {}, exchangeReelSetSymbols_2: function (a, b) {}, setSpeed_1: function (a) {}, getSpeed_0: function () { return 0; }, getBounceSoftness_0: function () { return 0; }, setBounceSoftness_1: function (a) {}, isRunning_0: function () { return !1; }, isBouncing_0: function () { return !1; }, hideSymbolAtRow_2: function (a, b) {}, setReverseDrawingOrder_1: function (a) {}, hasReversedDrawingOrder_0: function () { return !1; }, setStopSoundPanning_1: function (a) {}, }, "GT796", [] ), GT373 = GT542.extend( { initialConstructor_0: function () { this.m_reelset = null; this.m_stopPosition = this.m_turningTime = this.m_turnDelayPerSymbol = this.m_fadeInTime = this.m_state = 0; this.m_callbacks = this.cardObjects = this.m_turnCardsDelayedCallback = this.m_showCardsDelayedCallback = this.m_cardHandler = this.m_revealSounds = this.m_appearSound = this.m_soundPlayer = null; GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.m_reelset = null; this.m_stopPosition = this.m_turningTime = this.m_turnDelayPerSymbol = this.m_fadeInTime = this.m_state = 0; this.m_callbacks = this.cardObjects = this.m_turnCardsDelayedCallback = this.m_showCardsDelayedCallback = this.m_cardHandler = this.m_revealSounds = this.m_appearSound = this.m_soundPlayer = null; GT542.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.m_cardHandler = new GT398(this); this.m_showCardsDelayedCallback = new GT1509(this.m_cardHandler, "showCards"); this.m_turnCardsDelayedCallback = new GT1509(this.m_cardHandler, "turnCards"); this.cardObjects = [].createArray(this.getReelsLayout_0().rows); for (a = 0; a < this.cardObjects.length; ++a) this.cardObjects[a] = new GT449( this, 0, a * this.getReelsLayout_0().symbolHeight, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight, this.m_cardHandler, b, this.getSymbolColorTransformation_0(), a ); this.m_revealSounds = new java_util_JavaScriptVector(); this.m_callbacks = new java_util_JavaScriptVector(); }, setAppearSound_2: function (a, b) { this.m_appearSound = a; this.m_soundPlayer = b; }, setRevealSounds_2: function (a, b) { this.m_revealSounds = a; this.m_soundPlayer = b; }, setCardImage_1: function (a) { for (var b = 0; b < this.cardObjects.length; ++b) this.cardObjects[b].setCardImage_1(a); }, setFadeInAnimationTime_1: function (a) { this.m_fadeInTime = a; }, setTurnDelayPerSymbol_1: function (a) { this.m_turnDelayPerSymbol = a; }, setTurningTime_1: function (a) { this.m_turningTime = a; }, playAppearSound_0: function () { null != this.m_soundPlayer && null != this.m_appearSound && this.m_soundPlayer.start_6(this.m_appearSound, null, 0, 0, 100, 0.4 * (this.getIndex_0() - 2)); }, playRevealSound_1: function (a) { null != this.m_soundPlayer && null != this.m_revealSounds && a < this.m_revealSounds.size_0() && this.m_soundPlayer.start_6(this.m_revealSounds.elementAt_1(a), null, 0, 0, 100, 0.4 * (this.getIndex_0() - 2)); }, notifySymbolUnveiled_2: function (a, b) { for (var d = this.getListeners_0(), e = d.size_0(), f = 0; f < e; f++) d.elementAt_1(f).symbolUnveiled_3(this, a, b); GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("-> Symbol '" + a + "' has been unveiled in row " + b + " of reel " + this.getIndex_0()); }, turnCards_0: function () { GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("turnCards() was called at " + this.getTimer_0().currentTimeMillis_0() + " for reel " + this.getIndex_0()); this.getTimer_0().removeCallback_2(this.m_showCardsDelayedCallback, !1); this.killCurrentObjectAnimators_3(!0, !0, !0); this.setAndTriggerObjectCallbacks_4("turnCard", this.m_turningTime, this.m_turnDelayPerSymbol, !0); }, drawSymbols_0: function () { for (var a = 0; a < this.cardObjects.length; ++a) null != this.cardObjects[a] && this.cardObjects[a].isAlive_0() && this.cardObjects[a].drawSymbolGUIImage_0(); }, setObjectSymbolImages_0: function () { for (var a = 0; a < this.cardObjects.length; ++a) if (null != this.cardObjects[a] && this.cardObjects[a].isAlive_0()) { var b = this.m_reelset[(this.m_stopPosition + a) % this.m_reelset.length]; this.cardObjects[a].setSymbolImage_1(this.getSymbolImage_1(b)); this.cardObjects[a].setSymbol_1(b); } }, removeCurrentCallbacks_0: function () { for (var a = 0; a < this.m_callbacks.size_0(); ++a) this.getTimer_0().removeCallback_2(this.m_callbacks.elementAt_1(a), !1); this.m_callbacks.clear_0(); }, setAndTriggerObjectCallbacks_4: function (a, b, d, e) { this.removeCurrentCallbacks_0(); for (var f = 0; f < this.cardObjects.length; ++f) null != this.cardObjects[f] && this.cardObjects[f].isAlive_0() && (this.m_callbacks.add_1(new GT1509(this.cardObjects[f], a + " " + b)), this.getTimer_0().triggerCallbackAfter_2(this.m_callbacks.lastElement_0(), d * (e ? f : 1))); }, killCurrentObjectAnimators_3: function (a, b, d) { for (var e = 0; e < this.cardObjects.length; ++e) null != this.cardObjects[e] && this.cardObjects[e].isAlive_0() && this.cardObjects[e].isRunning_0() && this.cardObjects[e].stopAnimations_3(a, b, d); }, destroyObjectCardImages_0: function () { for (var a = 0; a < this.cardObjects.length; ++a) null != this.cardObjects[a] && this.cardObjects[a].isAlive_0() && this.cardObjects[a].destroyCardGUIImage_0(); }, getNumberOfRunningObjectAnimators_0: function () { for (var a = 0, b = 0; b < this.cardObjects.length; ++b) null != this.cardObjects[b] && this.cardObjects[b].isAlive_0() && this.cardObjects[b].isRunning_0() && a++; return a; }, showCards_0: function () { GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("showCards() was called at " + this.getTimer_0().currentTimeMillis_0() + " for reel " + this.getIndex_0()); this.killCurrentObjectAnimators_3(!0, !0, !0); this.setAndTriggerObjectCallbacks_4("showCard", this.m_fadeInTime, 0, !1); this.playAppearSound_0(); this.notifyReelStarted_0(); }, setReelSet_2: function (a, b) { this.m_stopPosition = 0; this.m_reelset = [].createArray(a.length).init(0); for (var d = 0; d < a.length; d++) this.m_reelset[d] = a[(b + d) % this.m_reelset.length]; this.setObjectSymbolImages_0(); this.drawSymbols_0(); }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(this.m_reelset.length == a.length, "Reel set to be exchanged must have the same length as the old reel set!"); for (var d = 0; d < this.m_reelset.length; d++) d < a.length && (this.m_reelset[d] = a[(b + d) % a.length]); }, start_1: function (a) { GT1650.prototype.assertExp_2(this.m_state == this.REELSTATE_STOPPED, "Can only start a stopped reel"); this.m_state = this.REELSTATE_RUNNING; this.getTimer_0().triggerCallbackAfter_2(this.m_showCardsDelayedCallback, a); }, stop_3: function (a, b, d) { null == b && (b = this.m_reelset); GT1650.prototype.assertExp_2(this.m_state != this.REELSTATE_STOPPING, "Can't stop if reel is already stopping"); this.m_state = this.REELSTATE_STOPPING; this.m_reelset = b; this.m_stopPosition = a; this.setObjectSymbolImages_0(); this.getTimer_0().triggerCallbackAfter_2(this.m_turnCardsDelayedCallback, d); }, stopImmediately_2: function (a, b) { GT1650.prototype.assertExp_2(this.m_state != this.REELSTATE_STOPPED, "Can't stop a not running reel"); this.m_stopPosition = a; this.getTimer_0().removeCallback_2(this.m_showCardsDelayedCallback, !1); this.getTimer_0().removeCallback_2(this.m_turnCardsDelayedCallback, !1); this.killCurrentObjectAnimators_3(!0, !1, !0); this.removeCurrentCallbacks_0(); this.setObjectSymbolImages_0(); for (var d = 0, e = 0; e < this.cardObjects.length; ++e) GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("Is finished: " + this.cardObjects[e].isFinished_0() + " - is running: " + this.cardObjects[e].isRunning_0()), null != this.cardObjects[e] && this.cardObjects[e].isAlive_0() && !this.cardObjects[e].isFinished_0() && (d++, this.cardObjects[e].drawCardGUIImage_0(), this.cardObjects[e].destroySymbolGUIImage_0(), this.getTimer_0().triggerCallbackImmediately_1(new GT1509(this.cardObjects[e], "turnCard " + this.m_turningTime))); 0 == d ? this.getTimer_0().triggerCallbackImmediately_1(new GT1509(this.m_cardHandler, "finalStop")) : this.getTimer_0().triggerCallbackAfter_2(new GT1509(this.m_cardHandler, "finalStop"), this.m_turningTime); }, finalStop_0: function () { this.m_state = this.REELSTATE_STOPPED; for (var a = 0; a < this.cardObjects.length; ++a) null != this.cardObjects[a] && this.cardObjects[a].isAlive_0() && this.cardObjects[a].setFinished_1(!1); this.notifyReelStopped_0(); }, isRunning_0: function () { return this.m_state != this.REELSTATE_STOPPED; }, hideSymbolAtRow_2: function (a, b) { GT1650.prototype.assertExp_2(0 <= a && a < this.cardObjects.length, "Attempted to access an array index that would have caused an out-of-bounds exception!"); null != this.cardObjects[a] && this.cardObjects[a].isAlive_0() ? this.cardObjects[a].hide_1(b) : GT373.prototype.LOG.verbose && GT373.prototype.LOG.log_1("The symbol in row " + a + " of reel " + this.getIndex_0() + " couldn't be accessed - it's not available :'-("); }, }, "GT373", [] ), GT398 = Class.extend( { initialConstructor_0: function () { this.reel = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reel = null; this.reel = a; }, run_1: function (a) { if (null != a) { var b = GT1677.prototype.tokenize_2(a, " "); GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("Called " + a + " in PlayingCardHandler -> run()"); a.equals_1("showCards") ? this.reel.showCards_0() : a.equals_1("turnCards") ? this.reel.turnCards_0() : a.startsWith_1("turningStarted") ? 2 == b.length ? this.reel.playRevealSound_1(GT1672.prototype.stringToInt_1(b[1])) : GT373.prototype.LOG.verbose && GT373.prototype.LOG.log_1('Turning started notification couldn\'t play the "reveal" sound for reel ' + this.reel.getIndex_0()) : a.startsWith_1("symbolUnveiled") ? 3 == b.length ? ((a = b[1].charAt_1(0)), (b = GT1672.prototype.stringToInt_1(b[2])), this.reel.notifySymbolUnveiled_2(a, b)) : GT373.prototype.LOG.verbose && GT373.prototype.LOG.log_1("Symbol unveiled notification couldn't be triggered for reel " + this.reel.getIndex_0()) : a.equals_1("turningFinished") ? 0 == this.reel.getNumberOfRunningObjectAnimators_0() && this.reel.finalStop_0() : a.equals_1("finalStop") && this.reel.finalStop_0(); } }, }, "GT398", [GT1482] ), GT449 = GT1437.extend( { initialConstructor_0: function () { this.timer = this.runnable = this.colorTransformation = null; this.symbol = this.row = 0; this.finished = !1; this.notifySymbolUnveiledDelay = 0; this.iCard = this.iSymbol = this.turningSymbolImage = this.turningCardImage = this.cardImage = this.symbolImage = this.turnAnimator = this.fadeAnimator = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.timer = this.runnable = this.colorTransformation = null; this.symbol = this.row = 0; this.finished = !1; this.notifySymbolUnveiledDelay = 0; this.iCard = this.iSymbol = this.turningSymbolImage = this.turningCardImage = this.cardImage = this.symbolImage = this.turnAnimator = this.fadeAnimator = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.colorTransformation = m; this.runnable = g; this.timer = k; this.row = n; }, isRunning_0: function () { var a = null == this.fadeAnimator ? !1 : this.fadeAnimator.isRunning_0(), b = null == this.turnAnimator ? !1 : this.turnAnimator.isRunning_0(); return a || b; }, isFinished_0: function () { return this.finished; }, setFinished_1: function (a) { this.finished = a; }, setSymbol_1: function (a) { this.symbol = a; }, setSymbolImage_1: function (a) { this.iSymbol = a; }, drawSymbolGUIImage_0: function () { var a = this.symbolImage; this.symbolImage = new GT1591(this, 0, 0, this.getWidth_0(), this.getHeight_0(), this.iSymbol, 0, 0, this.iSymbol.getWidth_0(), this.iSymbol.getHeight_0(), !0, this.colorTransformation); GT1560.prototype.destroyIfAlive_1(a); }, destroySymbolGUIImage_0: function () { GT1560.prototype.destroyIfAlive_1(this.symbolImage); this.symbolImage = null; }, setCardImage_1: function (a) { this.iCard = a; }, fetchCardGUIImage_0: function () { null == this.cardImage && this.drawCardGUIImage_0(); return this.cardImage; }, getCardImageY_1: function (a) { return 1 == this.iCard.getRows_0() ? 0 : this.row * this.getHeight_0() * (a ? -1 : 1); }, drawCardGUIImage_0: function () { var a = this.cardImage; this.cardImage = new GT1591(this, 0, this.getCardImageY_1(!0), this.iCard); GT1560.prototype.destroyIfAlive_1(a); }, destroyCardGUIImage_0: function () { GT1560.prototype.destroyIfAlive_1(this.cardImage); this.cardImage = null; }, destroyTurningRelatedImages_0: function () { GT1560.prototype.destroyIfAlive_1(this.turningCardImage); this.turningCardImage = null; GT1560.prototype.destroyIfAlive_1(this.turningSymbolImage); this.turningSymbolImage = null; }, stopAnimations_3: function (a, b, d) { null != this.fadeAnimator && a && this.fadeAnimator.killAndTrigger_1(d); null != this.turnAnimator && b && this.turnAnimator.killAndTrigger_1(d); }, run_1: function (a) { if (null != a) { var b = GT1677.prototype.tokenize_2(a, " "), d = 2 == b.length ? GT1672.prototype.stringToInt_1(b[1]) : 0; GT373.prototype.LOG.trace && GT373.prototype.LOG.log_1("Called " + b[0] + " at " + this.timer.currentTimeMillis_0() + (2 == b.length ? " with a value of " + d : "")); a.startsWith_1("showCard") ? ((this.finished = !1), (this.fadeAnimator = new GT1191(this.timer, this.fetchCardGUIImage_0(), !1, 0, d, 1e3, -1)), this.fadeAnimator.addFinishCallback_1(new GT1509(this, "cardHasAppeared")), this.fadeAnimator.start_0()) : a.equals_1("cardHasAppeared") ? (this.drawCardGUIImage_0(), this.destroySymbolGUIImage_0()) : a.startsWith_1("turnCard") ? ((this.finished = !0), (this.turningCardImage = new GT1075( this, 0, 0, this.getWidth_0(), this.getHeight_0(), this.iCard, Math.div(this.getWidth_0(), 2), this.getCardImageY_1(!1) + Math.div(this.getHeight_0(), 2), 0, this.getCardImageY_1(!1), this.iCard.getWidth_0(), this.iCard.getHeight_0() )), this.turningCardImage.setTranslation_2(this.getWidth_0() / 2, this.getHeight_0() / 2), (this.turningSymbolImage = new GT1075( this, 0, 0, this.getWidth_0(), this.getHeight_0(), this.iSymbol, Math.div(this.getWidth_0(), 2), Math.div(this.getHeight_0(), 2), 0, 0, this.iSymbol.getWidth_0(), this.iSymbol.getHeight_0() )), this.turningSymbolImage.setTranslation_2(this.getWidth_0() / 2, this.getHeight_0() / 2), (this.notifySymbolUnveiledDelay = Integer.truncate_1(0.3 * d)), (this.turnAnimator = new GT253(this.timer, this.turningCardImage, this.turningSymbolImage, d)), this.turnAnimator.addStartCallback_1(new GT1509(this, "turningStarted")), this.turnAnimator.addFinishCallback_1(new GT1509(this, "turningFinished")), this.turnAnimator.start_0()) : a.equals_1("turningStarted") ? (this.destroyCardGUIImage_0(), this.timer.triggerCallbackImmediately_1(new GT1509(this.runnable, "turningStarted " + this.row)), this.timer.triggerCallbackAfter_2(new GT1509(this.runnable, "symbolUnveiled " + GT1672.prototype.charToString_1(this.symbol) + " " + this.row), this.notifySymbolUnveiledDelay)) : a.equals_1("turningFinished") && (this.drawSymbolGUIImage_0(), this.destroyTurningRelatedImages_0(), this.timer.triggerCallbackImmediately_1(new GT1509(this.runnable, "turningFinished"))); } }, }, "GT449", [GT1482] ), GT253 = GT1190.extend( { initialConstructor_0: function () { this.totalTime = this.startTime = 0; this.symbolImage = this.cardImage = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.totalTime = this.startTime = 0; this.symbolImage = this.cardImage = null; GT1190.prototype.initialConstructor_3.call(this, a, 10, !1); this.cardImage = b; this.symbolImage = d; this.totalTime = e; this.startTime = 0; d.hide_1(!0); }, action_1: function (a) { if (!this.cardImage.isAlive_0() || !this.symbolImage.isAlive_0()) return !1; 0 == this.startTime && (this.startTime = a); a -= this.startTime; var b = Math.div(this.totalTime, 2); if (a >= this.totalTime) return this.cardImage.hide_1(!0), this.symbolImage.hide_1(!1), this.symbolImage.setScale_2(1, 1), !1; a < b ? (this.cardImage.hide_1(!1), this.symbolImage.hide_1(!0), this.cardImage.setScale_2((1 * (b - a)) / b, 1)) : (this.cardImage.hide_1(!0), this.symbolImage.hide_1(!1), this.symbolImage.setScale_2((1 * (a - b)) / b, 1)); return !0; }, }, "GT253", [] ); GT373.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT398.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT449.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT939 = GT542.extend( { initialConstructor_0: function () { this.state = this.fastStopDelay = 0; this.newReelset = this.reelAnimator = this.blurimages = null; this.symbolsPerSecond = this.bounceSoftness = this.stopPixelPosition = this.stopPosition = 0; this.stopSound = this.soundPlayer = null; this.stopSoundStartPosition = 0; this.stopEarlySound = null; this.stopEarlySoundStartPosition = 0; this.speedsDuration = this.speeds = null; this.detailedSpeedsApplyingTime = 0; this.startReelAnimatorCallback = this.positionUpdatedCallback = this.rsCharacteristics = this.lastReelset = this.reelset = null; this.visibleSymbolOffsets = this.reelsNumber = 0; this.visibleSymbolObjects = this.visibleSymbols = null; this.firstSymbolYCoordinate = 0; this.reversedrawingorder = !1; this.panning = this.marginTop = 0; this.rsBuilder = null; this.nrOfSymbolsUntilStopposition = 0; this.overlappingSymbolsToReorderBack = this.debugSymbols = this.blurredImageUsed = this.imageUsed = this.guiBlurredImageCache = this.guiImageCache = null; this.isStopImmediately = this.skipNextStopSound = !1; this.dynamicBlurringfilter = null; this.dynamicBlurTexelStep = this.dynamicBlurLowPassFilterFactor = this.dynamicBlurFactor = 0; GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT939.prototype.initialConstructor_7.call(this, a, b, d, e, f, g, 0); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.state = this.fastStopDelay = 0; this.newReelset = this.reelAnimator = this.blurimages = null; this.symbolsPerSecond = this.bounceSoftness = this.stopPixelPosition = this.stopPosition = 0; this.stopSound = this.soundPlayer = null; this.stopSoundStartPosition = 0; this.stopEarlySound = null; this.stopEarlySoundStartPosition = 0; this.speedsDuration = this.speeds = null; this.detailedSpeedsApplyingTime = 0; this.startReelAnimatorCallback = this.positionUpdatedCallback = this.rsCharacteristics = this.lastReelset = this.reelset = null; this.visibleSymbolOffsets = this.reelsNumber = 0; this.visibleSymbolObjects = this.visibleSymbols = null; this.firstSymbolYCoordinate = 0; this.reversedrawingorder = !1; this.panning = this.marginTop = 0; this.rsBuilder = null; this.nrOfSymbolsUntilStopposition = 0; this.overlappingSymbolsToReorderBack = this.debugSymbols = this.blurredImageUsed = this.imageUsed = this.guiBlurredImageCache = this.guiImageCache = null; this.isStopImmediately = this.skipNextStopSound = !1; this.dynamicBlurringfilter = null; this.dynamicBlurTexelStep = this.dynamicBlurLowPassFilterFactor = this.dynamicBlurFactor = 0; GT542.prototype.initialConstructor_5.call(this, a, b, d, e, g); this.blurimages = f; this.state = this.REELSTATE_STOPPED; this.bounceSoftness = 0.7; this.symbolsPerSecond = 9; this.visibleSymbolOffsets = k; this.visibleSymbols = [].createArray(g.rows + 1 + 2 * k).init(0); this.visibleSymbolObjects = [].createArray(g.rows + 1 + 2 * k); this.reelsNumber = g.columns; this.speedsDuration = this.speeds = null; this.fastStopDelay = 50; this.rsBuilder = new GT1576(); this.startReelAnimatorCallback = new GT450(this); this.panning = -2; this.nrOfSymbolsUntilStopposition = -1; this.overlappingSymbolsToReorderBack = null; this.skipNextStopSound = !1; }, setCacheGUIImages_1: function (a) { if (a) for ( this.guiImageCache = [].createArray(this.blurimages.length, this.visibleSymbols.length + 1), this.guiBlurredImageCache = [].createArray(this.blurimages.length, this.visibleSymbols.length + 1), this.imageUsed = [].createArray(this.blurimages.length, this.visibleSymbols.length + 1).init(0), this.blurredImageUsed = [].createArray(this.blurimages.length, this.visibleSymbols.length + 1).init(0), this.debugSymbols = new java_util_JavaScriptVector(), a = 0; a < this.guiImageCache.length; a++ ) { if (null != this.blurimages[a]) for (var b = 0; b < this.guiImageCache[a].length; b++) { var d = new GT1591( this, 0, 0, this.getWidth_0(), this.getReelsLayout_0().symbolHeight * this.getSymbolImageRows_1(this.blurimages[a]), this.blurimages[a], 0, 0, this.blurimages[a].getWidth_0(), this.blurimages[a].getHeight_0(), !0, this.getSymbolColorTransformation_0() ); d.hide_1(!0); this.guiBlurredImageCache[a][b] = d; d = new GT1591( this, 0, 0, this.getWidth_0(), this.getReelsLayout_0().symbolHeight * this.getSymbolImageRows_1(this.getSymbolImage_1(JSUTIL.MathUtil.castToChar(a))), this.getSymbolImage_1(JSUTIL.MathUtil.castToChar(a)), 0, 0, this.getSymbolImage_1(JSUTIL.MathUtil.castToChar(a)).getWidth_0(), this.getSymbolImage_1(JSUTIL.MathUtil.castToChar(a)).getHeight_0(), !0, this.getSymbolColorTransformation_0() ); d.hide_1(!0); this.guiImageCache[a][b] = d; this.imageUsed[a][b] = !1; this.blurredImageUsed[a][b] = !1; } } else this.blurredImageUsed = this.imageUsed = this.guiImageCache = this.guiBlurredImageCache = null; }, clearCacheImageUsage_0: function () { for (var a = 0; a < this.guiImageCache.length; a++) if (null != this.blurimages[a]) for (var b = 0; b < this.guiImageCache[a].length; b++) this.imageUsed[a][b] || this.guiImageCache[a][b].hide_1(!0), this.blurredImageUsed[a][b] || this.guiBlurredImageCache[a][b].hide_1(!0); }, resetImageUsed_0: function () { for (var a = 0; a < this.guiImageCache.length; a++) if (null != this.blurimages[a]) for (var b = 0; b < this.guiImageCache[a].length; b++) (this.imageUsed[a][b] = !1), (this.blurredImageUsed[a][b] = !1); }, getFreeImage_2: function (a, b) { if (null == this.guiImageCache) return null; var d; d = b ? this.guiBlurredImageCache[a] : this.guiImageCache[a]; for (var e = 0; e < d.length; e++) { var f = d[e]; if (b ? !this.blurredImageUsed[a][e] : !this.imageUsed[a][e]) return f.hide_1(!1), b ? (this.blurredImageUsed[a][e] = !0) : (this.imageUsed[a][e] = !0), f; } return null; }, setReelSetBuilder_1: function (a) { this.rsBuilder = a; }, getPositionUpdatedCallback_0: function () { return this.positionUpdatedCallback; }, setPositionUpdatedCallback_1: function (a) { this.positionUpdatedCallback = a; }, setStopSound_3: function (a, b, d) { this.stopSound = a; this.soundPlayer = b; this.stopSoundStartPosition = d; }, setStopEarlySound_3: function (a, b, d) { this.stopEarlySound = a; this.soundPlayer = b; this.stopEarlySoundStartPosition = d; }, getStopSound_0: function () { return this.stopSound; }, setFastStopDelay_1: function (a) { this.fastStopDelay = a; }, getStopSoundStartPosition_0: function () { return this.stopSoundStartPosition; }, setMargin_2: function (a, b) { this.marginTop = a; this.resize_2(this.calculateMinWidth_1(this.getReelsLayout_0()), this.calculateMinHeight_1(this.getReelsLayout_0()) + a + b); }, startReelAnimator_0: function () { null != this.reelAnimator && (this.reelAnimator.start_0(), this.getTimer_0().removeCallback_2(this.startReelAnimatorCallback, !1)); this.notifyReelStarted_0(); }, start_1: function (a) { GT1650.prototype.assertExp_2(this.state == this.REELSTATE_STOPPED, "Can only start a stopped reel"); this.state = this.REELSTATE_RUNNING; null != this.soundPlayer && null != this.stopSound && this.soundPlayer.prepareSound_2(this.stopSound, this.stopSoundStartPosition); null != this.soundPlayer && null != this.stopEarlySound && this.soundPlayer.prepareSound_2(this.stopEarlySound, this.stopEarlySoundStartPosition); this.reelAnimator = new GT669(this.getTimer_0(), this); 0 == a ? this.startReelAnimator_0() : this.getTimer_0().triggerCallbackAfter_2(this.startReelAnimatorCallback, a); this.isStopImmediately = this.skipNextStopSound = !1; }, setSpeedChangeDelay_2: function (a, b) { this.speeds = a; this.speedsDuration = b; }, getSpeeds_0: function () { return this.speeds; }, getSpeedsDuration_0: function () { return this.speedsDuration; }, getDetailedSpeedsApplyingTime_0: function () { return this.detailedSpeedsApplyingTime; }, stop_3: function (a, b, d) { this.getTimer_0().removeCallback_2(this.startReelAnimatorCallback, !0); this.detailedSpeedsApplyingTime = this.getTimer_0().currentTimeMillis_0(); null == b && (b = this.reelset); if (this.state == this.REELSTATE_STOPPED) { this.newReelset = [].createArray(b.length).init(0); for (var e = 0; e < b.length; e++) this.newReelset[e] = b[e]; this.stopPosition = a; this.state = this.REELSTATE_STOPPING; this.finalStop_0(); } else { GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPING && this.state != GT939.prototype.REELSTATE_ENDPOSITIONREACHED, "Can't stop if reel is already stopping"); this.stopPosition = a + b.length; this.newReelset = [].createArray(b.length).init(0); for (e = 0; e < b.length; e++) this.newReelset[e] = b[e]; a = this.reelAnimator.getPixelPosition_0(); var e = this.reelset, f = this.getReelsLayout_0(), g = 0; if (null == this.speeds || 0 == this.speeds.length) g = Math.div(999 + d * this.symbolsPerSecond, 1e3); else { GT1650.prototype.assertExp_2( null != this.speedsDuration && 0 < this.speedsDuration.length && this.speeds.length == this.speedsDuration.length, "Can't use speedsDuration array, its length in zero or has different length than speeds!" ); for (var k = 0, m = 0; m < this.speedsDuration.length; ++m) k += this.speedsDuration[m]; d = Math.max_2(0, d - k); this.detailedSpeedsApplyingTime = this.getTimer_0().currentTimeMillis_0() + d; g += d * this.symbolsPerSecond; for (m = 0; m < this.speeds.length; ++m) g += this.speeds[m] * this.speedsDuration[m]; g = Math.div(999 + g, 1e3); } d = this.reelset.length * f.symbolHeight; d -= a % d; if (null == this.lastReelset || this.isDifferentReelset_2(this.lastReelset, b)) (this.rsCharacteristics = GT1546.prototype.getReelsetCharacteristics_2(b, this.getReelsLayout_0().rows)), (this.lastReelset = b); this.rsBuilder.setOldReelset_1(e); this.rsBuilder.setNewReelSet_1(b); this.rsBuilder.setRsCharacteristics_1(this.rsCharacteristics); this.rsBuilder.setReelsLayout_1(f); this.rsBuilder.setNrOfDelaySymbols_1(g); this.rsBuilder.setPixelposition_1(a); this.rsBuilder.setStopPosition_1(this.stopPosition); this.reelset = this.rsBuilder.determineReelSetWithDelaySymbols_0(); this.stopPixelPosition = a + (d % f.symbolHeight) + (g + f.rows) * f.symbolHeight; this.state = this.REELSTATE_STOPPING; } }, isDifferentReelset_2: function (a, b) { if (a.length != b.length) return !0; for (var d = 0; d < a.length; d++) if (b[d] != a[d]) return !0; return !1; }, stopImmediately_2: function (a, b) { GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPED, "Can't stop a not running reel"); this.isStopImmediately = !0; this.getTimer_0().removeCallback_2(this.startReelAnimatorCallback, !0); if (this.state != GT939.prototype.REELSTATE_ENDPOSITIONREACHED) { var d = this.getReelsLayout_0(), e = b; null == e && (e = this.reelset); this.stopPosition = a + e.length; this.newReelset = [].createArray(e.length).init(0); for (var f = 0; f < e.length; f++) this.newReelset[f] = e[f]; var g = this.reelAnimator.getPixelPosition_0(), f = this.reelset, k = this.getIndex_0(); if (null != this.getListeners_0() && 0 < this.getListeners_0().size_0()) { var m = this.getListeners_0().get_1(this.getListeners_0().size_0() - 1); null != m && instanceOf(m, GT516) && ((m = this.reelsNumber - m.getNumberOfRunningReels_0()), 0 < m && ((k = this.getIndex_0() - m), 0 > k && (k = 0))); } m = Math.div(this.getSpeed_0() * this.fastStopDelay * k + 500, 1e3); f = (Math.div(d.rows + 1 + m, f.length) + 2) * f.length; this.reelset = [].createArray(f).init(0); for (var f = this.reelset.length * d.symbolHeight, n = f - (g % f), p = (Math.div(n, d.symbolHeight) % this.reelset.length) + this.reelset.length, f = -1; f < d.rows + 2 + m; f++) this.reelset[(p + f) % this.reelset.length] = e[(this.stopPosition + f) % e.length]; this.stopPixelPosition = g + (n % d.symbolHeight); this.reelAnimator.setTimeOffset_1(k * this.fastStopDelay); this.state = this.REELSTATE_STOPPING; this.getSkipStopSound_0() && (this.skipNextStopSound = !0); } }, finalStop_0: function () { this.state = this.REELSTATE_STOPPED; this.reelset = [].createArray(this.newReelset.length).init(0); for (var a = 0; a < this.newReelset.length; a++) this.reelset[a] = this.newReelset[(this.stopPosition + a) % this.newReelset.length]; this.setPixelPosition_1(0); this.nrOfSymbolsUntilStopposition = -1; this.notifyReelStopped_0(); }, setReelSet_2: function (a, b) { this.reelset = [].createArray(a.length).init(0); for (var d = 0; d < a.length; d++) this.reelset[d] = a[(b + d) % a.length]; this.setPixelPosition_1(0); }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(this.reelset.length == a.length, "Reel set to be exchanged must have the same length as the old reel set!"); for (var d = 0; d < this.reelset.length; d++) d < a.length && (this.reelset[d] = a[(b + d) % a.length]); }, getSymbolObject_1: function (a) { return 0 <= a && a < this.visibleSymbolObjects.length ? this.visibleSymbolObjects[a] : null; }, setPixelPosition_1: function (a) { var b = this.getReelsLayout_0(), d = this.reelset.length * b.symbolHeight, d = this.state == this.REELSTATE_STOPPING && a > this.stopPixelPosition + b.symbolHeight ? d - ((this.stopPixelPosition + b.symbolHeight) % d) : d - (a % d), e = (Math.div(d, b.symbolHeight) - this.visibleSymbolOffsets) % this.reelset.length; this.firstSymbolYCoordinate = -(d % b.symbolHeight) - b.symbolHeight * this.visibleSymbolOffsets; d = !1; this.state == this.REELSTATE_STOPPING && a > this.stopPixelPosition && ((this.state = GT939.prototype.REELSTATE_ENDPOSITIONREACHED), (d = !0)); this.nrOfSymbolsUntilStopposition = this.state == this.REELSTATE_STOPPING || this.state == GT939.prototype.REELSTATE_ENDPOSITIONREACHED ? GT1677.prototype.division_2(this.stopPixelPosition - a, b.symbolHeight) : -1; if (null == this.guiImageCache) this.destroyChildren_0(); else if ((this.resetImageUsed_0(), 0 < this.debugSymbols.size_0())) { for (a = 0; a < this.debugSymbols.size_0(); a++) GT1560.prototype.destroyIfAlive_1(this.debugSymbols.get_1(a)); this.debugSymbols = new java_util_JavaScriptVector(); } var f = !1; for (a = -1; a <= b.rows + 1 + 2 * this.visibleSymbolOffsets; a++) { var g = this.reelset[(e + a + this.reelset.length) % this.reelset.length], k = this.displayBlurredSymbols_0() ? this.blurimages[g] : this.getSymbolImage_1(g); 0 <= a && a < this.visibleSymbols.length && (this.visibleSymbols[a] = g); if (null != k && k.isLoaded_0()) { var m = null == k ? 0 : this.getSymbolImageRows_1(k), n = a; 1 < m && ((f = !0), (n -= Math.div(m, 2)), this.reversedrawingorder && 2 * Math.div(m, 2) == m && n++); var n = this.firstSymbolYCoordinate + n * b.symbolHeight + this.marginTop, p = (m *= b.symbolHeight), q = 0; null != this.guiImageCache ? ((g = this.getFreeImage_2(g, this.displayBlurredSymbols_0())), null != g && g.isAlive_0() && (g.move_2(0, n), 0 <= a && a < this.visibleSymbolObjects.length && (this.visibleSymbolObjects[a] = g))) : (0 > n ? ((p = m + n), (q = -n), (n = 0)) : n + m > this.getHeight_0() && (p = this.getHeight_0() - n), 0 < p && ((g = p), 0 != m && m != k.getHeight_0() && ((g = Math.div(p * k.getHeight_0(), m)), (q = Math.div(q * k.getHeight_0(), m))), q < k.getHeight_0() && ((g = new GT1591(this, 0, n, this.getWidth_0(), p, k, 0, q, k.getWidth_0(), g, !0, this.getSymbolColorTransformation_0())), 0 <= a && a < this.visibleSymbolObjects.length && (this.visibleSymbolObjects[a] = g)))); } else (k = this.firstSymbolYCoordinate + a * b.symbolHeight), 0 < k + b.symbolHeight && k < this.getHeight_0() && ((g = this.createDebugSymbol_6(this, 0, k, b.symbolWidth, b.symbolHeight, g)), 0 <= a && a < this.visibleSymbolObjects.length && (this.visibleSymbolObjects[a] = g), null != this.debugSymbols && this.debugSymbols.add_1(g)); } null != this.guiImageCache && this.clearCacheImageUsage_0(); if (f) for (e = 0, this.reversedrawingorder && (e = this.getChildCount_0() - 1), a = 0; a < this.getChildCount_0(); a++) { g = !1; if (instanceOf(this.getChild_1(e), GT1591) && ((f = this.getChild_1(e).getImage_0()), 1 < this.getSymbolImageRows_1(f))) { g = !0; if (null != this.overlappingSymbolsToReorderBack) for (k = 0; k < this.overlappingSymbolsToReorderBack.length_0(); k++) if (f.equals_1(this.getSymbolImage_1(this.overlappingSymbolsToReorderBack.charAt_1(k))) || f.equals_1(this.blurimages[this.overlappingSymbolsToReorderBack.charAt_1(k)])) g = !1; this.getChild_1(e).reorder_1(g); } this.reversedrawingorder ? e-- : g || e++; } if (d) { d = this.getListeners_0(); e = d.size_0(); for (a = 0; a < b.rows; a++) for (g = this.newReelset[(this.stopPosition + a) % this.newReelset.length], f = 0; f < e; f++) d.elementAt_1(f).symbolUnveiled_3(this, g, a); this.skipNextStopSound || null == this.soundPlayer || ((b = this.getStopSoundPanning_0()), this.isStopImmediately && null != this.stopEarlySound ? this.soundPlayer.start_6(this.stopEarlySound, null, this.stopEarlySoundStartPosition, 0, 100, b) : null != this.stopSound && this.soundPlayer.start_6(this.stopSound, null, this.stopSoundStartPosition, 0, 100, b)); } null != this.positionUpdatedCallback && this.positionUpdatedCallback.run_0(); }, getVisibleSymbols_0: function () { return this.visibleSymbols; }, getFirstSymbolYCoordinate_0: function () { return this.firstSymbolYCoordinate; }, displayBlurredSymbols_0: function () { return this.state == this.REELSTATE_RUNNING || this.state == this.REELSTATE_STOPPING; }, setSpeed_1: function (a) { this.symbolsPerSecond = a; }, getSpeed_0: function () { return this.symbolsPerSecond; }, setDynamicBlurring_3: function (a, b, d) { 0 >= a ? null != this.dynamicBlurringfilter && this.removeFilter_1(this.dynamicBlurringfilter) : (null == this.dynamicBlurringfilter && ((this.dynamicBlurringfilter = new GT1082(new GT1631(0, 1))), this.addFilter_1(this.dynamicBlurringfilter)), (this.dynamicBlurFactor = a), (this.dynamicBlurLowPassFilterFactor = b), (this.dynamicBlurTexelStep = d), this.dynamicBlurringfilter.setTextelStepParameter_1(this.dynamicBlurTexelStep), this.dynamicBlurringfilter.setLowPassFilterFactorParameter_1(this.dynamicBlurLowPassFilterFactor)); }, getDynamicBlurringFactor_0: function () { return this.dynamicBlurFactor; }, getDynamicBlurLowPassFilterFactor_0: function () { return this.dynamicBlurLowPassFilterFactor; }, getDynamicBlurringFilter_0: function () { return this.dynamicBlurringfilter; }, removeAllFilters_0: function () { GT542.prototype.removeAllFilters_0.call(this); null != this.dynamicBlurringfilter && this.addFilter_1(this.dynamicBlurringfilter); }, getBounceSoftness_0: function () { return this.bounceSoftness; }, setBounceSoftness_1: function (a) { this.bounceSoftness = a; }, getStopPixelPosition_0: function () { GT1650.prototype.assertExp_2(this.state == this.REELSTATE_STOPPING || this.state == GT939.prototype.REELSTATE_ENDPOSITIONREACHED, "Can't return a valide stopPixelPosition when not stopping"); return this.stopPixelPosition; }, isRunning_0: function () { return this.state != this.REELSTATE_STOPPED; }, isBouncing_0: function () { return this.state == GT939.prototype.REELSTATE_ENDPOSITIONREACHED; }, hideSymbolAtRow_2: function (a, b) { GT1650.prototype.assertExp_2(!this.isRunning_0(), "Can only hide symbol when reel has stopped."); this.isRunning_0() || a >= this.getChildCount_0() || this.getChild_1(a).hide_1(b); }, setReverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; }, hasReversedDrawingOrder_0: function () { return this.reversedrawingorder; }, getSymbolImageRows_1: function (a) { var b = this.getReelsLayout_0().symbolHeight; 0 < a.getHeight_0() % b && GT1650.prototype.assertExp_2(!1, "Symbol image: " + a.toString() + " height is " + a.getHeight_0() + " which is not a multiply of layout symbol height:" + b); return Integer.truncate_1(Math.round_1(a.getHeight_0() / b)); }, setStopSoundPanning_1: function (a) { this.panning = a; }, getStopSoundPanning_0: function () { var a = this.getReelsLayout_0(); return -1 > this.panning || 1 < this.panning ? (1 < a.columns ? (1.6 * this.getIndex_0()) / (a.columns - 1) - 0.8 : 0) : this.panning; }, getNrOfSymbolsUntilStopposition_0: function () { return this.nrOfSymbolsUntilStopposition; }, setOverlappingSymbolsToReorderBack_1: function (a) { this.overlappingSymbolsToReorderBack = a; }, }, "GT939", [] ), GT450 = Class.extend( { initialConstructor_0: function () { this.reel = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reel = null; this.reel = a; }, run_0: function () { null != this.reel && this.reel.isAlive_0() && this.reel.startReelAnimator_0(); }, }, "GT450", [Runnable] ); GT939.prototype.REELSTATE_ENDPOSITIONREACHED = 3; var GT89 = GT1437.extend( { initialConstructor_0: function () { this.reels = null; this.reelOffsetY = this.reelOffsetX = 0; this.listeners = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.reels = null; this.reelOffsetY = this.reelOffsetX = 0; this.listeners = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, init_0: function () { this.cleanup_0(); this.removeAllListeners_0(); if (0 < this.getChildCount_0() && instanceOf(this.getChild_1(0), GT887)) { this.reels = this.getChild_1(0); this.reelOffsetX = this.reels.getX_0(); this.reelOffsetY = this.reels.getY_0(); this.listeners = new java_util_JavaScriptVector(); for (var a = 0; a < this.reels.getChildCount_0(); a++) if (instanceOf(this.reels.getChild_1(a), GT939)) { var b = this.reels.getChild_1(a), d = new GT45(this, b); b.addReelListener_1(d); b.setPositionUpdatedCallback_1(d); this.listeners.add_1(d); } else this.listeners.add_1(null); } }, cleanup_0: function () { for (; 1 < this.getChildCount_0(); ) this.getChild_1(1).destroy_0(); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.removeAllListeners_0(); }, removeAllListeners_0: function () { if (null != this.reels) { for (var a = 0; a < this.reels.getChildCount_0(); a++) if (instanceOf(this.reels.getChild_1(a), GT939)) { var b = this.reels.getChild_1(a); null != this.listeners.get_1(a) && (b.removeReelListener_1(this.listeners.get_1(a)), b.setPositionUpdatedCallback_1(null)); } this.listeners = null; } }, getReelOffsetX_0: function () { return this.reelOffsetX; }, getReelOffsetY_0: function () { return this.reelOffsetY; }, }, "GT89", [] ), GT45 = Class.extend( { initialConstructor_0: function () { this.reel = this.overlay = null; this.currentPosition = this.state = 0; this.topImage = this.bottomImage = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.reel = this.overlay = null; this.currentPosition = this.state = 0; this.topImage = this.bottomImage = null; this.overlay = a; this.reel = b; this.state = GT45.prototype.STOPPED; }, reelStarted_1: function (a) { this.overlay.init_0(); this.state = GT45.prototype.STARTED; this.currentPosition = this.reel.getFirstSymbolYCoordinate_0(); }, reelStopped_1: function (a) { this.state = GT45.prototype.STOPPED; this.currentPosition = this.reel.getFirstSymbolYCoordinate_0(); if (null != this.bottomImage) { if (this.bottomImage.isAlive_0()) { var b = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), a.getReelsLayout_0().rows - 1, this.bottomImage.getImage_0()); this.bottomImage.move_2(a.getX_0() + this.overlay.getReelOffsetX_0(), this.currentPosition + b * a.getReelsLayout_0().symbolHeight + this.overlay.getReelOffsetY_0()); } this.bottomImage = null; } null != this.topImage && (this.topImage.isAlive_0() && ((b = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), 0, this.topImage.getImage_0())), this.topImage.move_2(a.getX_0() + this.overlay.getReelOffsetX_0(), this.currentPosition + b * a.getReelsLayout_0().symbolHeight + this.overlay.getReelOffsetY_0())), (this.topImage = null)); }, symbolUnveiled_3: function (a, b, d) { this.state = GT45.prototype.BOUNCE; var e = a.getReelsLayout_0(); this.currentPosition = this.reel.getFirstSymbolYCoordinate_0(); if (d == e.rows - 1) { var f = a.getSymbolImage_1(b); if (1 < this.getSymbolImageRows_1(f)) { var g = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), a.getChildCount_0() - 1, f), k = a.getX_0() + this.overlay.getReelOffsetX_0(), g = this.currentPosition + g * e.symbolHeight + this.overlay.getReelOffsetY_0(); this.bottomImage = new GT1591(this.overlay, k, g, f.getWidth_0(), f.getHeight_0(), f, 0, 0, f.getWidth_0(), f.getHeight_0(), !0, a.getSymbolColorTransformation_0()); } } 0 == d && ((f = a.getSymbolImage_1(b)), 1 < this.getSymbolImageRows_1(f) && ((g = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), 0, f)), (k = a.getX_0() + this.overlay.getReelOffsetX_0()), (g = this.currentPosition + g * e.symbolHeight + this.overlay.getReelOffsetY_0()), (this.topImage = new GT1591(this.overlay, k, g, f.getWidth_0(), f.getHeight_0(), f, 0, 0, f.getWidth_0(), f.getHeight_0(), !0, a.getSymbolColorTransformation_0())), this.topImage.hide_1(!0))); }, run_0: function () { this.reel.getFirstSymbolYCoordinate_0() < this.currentPosition && this.state != GT45.prototype.BOUNCEBACK && ((this.state = GT45.prototype.BOUNCEBACK), null != this.topImage && this.topImage.hide_1(!1)); this.currentPosition = this.reel.getFirstSymbolYCoordinate_0(); if (this.state == GT45.prototype.BOUNCE || this.state == GT45.prototype.BOUNCEBACK) { var a = this.reel.getReelsLayout_0(), b = this.reel.getNrOfSymbolsUntilStopposition_0(); if (null != this.bottomImage) { var d = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), a.rows - 1, this.bottomImage.getImage_0()), e = this.reel.getX_0() + this.overlay.getReelOffsetX_0(), d = this.currentPosition + d * a.symbolHeight + this.overlay.getReelOffsetY_0(); this.bottomImage.move_2(e, d); this.bottomImage.isHidden_0() || ((e = 0 <= b || -1 == b ? a.rows - 1 : a.rows), this.hideSymbolObjectAtRowPosition_2(e, this.bottomImage.getImage_0())); } null != this.topImage && ((d = this.getRowOffset_3(this.reel.hasReversedDrawingOrder_0(), 0, this.topImage.getImage_0())), (e = this.reel.getX_0() + this.overlay.getReelOffsetX_0()), (d = this.currentPosition + d * a.symbolHeight + this.overlay.getReelOffsetY_0()), this.topImage.move_2(e, d), this.topImage.isHidden_0() || this.hideSymbolObjectAtRowPosition_2(0 <= b || -1 == b ? 0 : 1, this.topImage.getImage_0())); } }, getRowOffset_3: function (a, b, d) { d = this.getSymbolImageRows_1(d); 1 < d && ((b -= Math.div(d, 2)), a && 2 * b == d && b++); this.currentPosition < Math.div(-this.reel.getReelsLayout_0().symbolHeight, 3) && b++; return b; }, getSymbolImageRows_1: function (a) { var b = this.reel.getReelsLayout_0().symbolHeight; 0 < a.getHeight_0() % b && GT1650.prototype.assertExp_2(!1, "Symbol image: " + a.toString() + " height is " + a.getHeight_0() + " which is not a multiply of layout symbol height:" + b); return Math.div(a.getHeight_0(), b); }, hideSymbolObjectAtRowPosition_2: function (a, b) { var d = this.reel.getSymbolObject_1(a), e = this.getSymbolImageRows_1(b), f = b.toString(); if (GT1560.prototype.isAlive_1(d) && instanceOf(d, GT1591)) { var g = this.getSymbolImageRows_1(d.getImage_0()), k = d.getImage_0().toString(); if (g == e && k == f) return d.hide_1(!0), !0; } return !1; }, }, "GT45", [GT647, Runnable] ); GT45.prototype.STOPPED = 0; GT45.prototype.STARTED = 1; GT45.prototype.BOUNCE = 2; GT45.prototype.BOUNCEBACK = 3; var GT887 = GT1437.extend( { initialConstructor_0: function () { this.timer = null; this.reelStopDelay = this.reelStartDelay = this.minDuration = this.startTime = 0; this.teaserHandler = this.reelsHandler = this.finishCallbacks = this.startCallbacks = this.stopEarlySound = this.soundPlayer = this.detailedReelStopDelay = null; this.silent = this.randomizeReelStoppingOrder = !1; this.reelsLayout = this.reelsRunSoundSilent = this.reelsRunSound = this.rand = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.timer = null; this.reelStopDelay = this.reelStartDelay = this.minDuration = this.startTime = 0; this.teaserHandler = this.reelsHandler = this.finishCallbacks = this.startCallbacks = this.stopEarlySound = this.soundPlayer = this.detailedReelStopDelay = null; this.silent = this.randomizeReelStoppingOrder = !1; this.reelsLayout = this.reelsRunSoundSilent = this.reelsRunSound = this.rand = null; GT1437.prototype.initialConstructor_5.call(this, a, d, e, this.maxWidth_1(f), this.maxHeight_1(f)); this.timer = b; this.minDuration = 0; this.startCallbacks = new java_util_JavaScriptVector(); this.finishCallbacks = new java_util_JavaScriptVector(); this.teaserHandler = new java_util_JavaScriptVector(); this.reelsHandler = new GT516(this.startCallbacks, this.finishCallbacks); this.rand = new GT1561(b.currentTimeMillis_0()); this.reelsLayout = f; }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.startCallbacks.setSize_1(0); this.finishCallbacks.setSize_1(0); }, addStartCallback_1: function (a) { null == a || this.startCallbacks.contains_1(a) || this.startCallbacks.addElement_1(a); }, removeStartCallback_1: function (a) { this.startCallbacks.removeElement_1(a); }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.addElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, addTeaserSounds_1: function (a) { a.init_1(this.getChildCount_0()); this.teaserHandler.add_1(a); }, getTeaserHandlerCount_0: function () { return this.teaserHandler.size_0(); }, getTeaserHandler_1: function (a) { return this.teaserHandler.get_1(a); }, setReelsRunSound_1: function (a) { this.reelsRunSound = a; this.reelsHandler.setReelsRunSound_1(a); }, getReelsRunSound_0: function () { return this.reelsRunSound; }, getReelsLayout_0: function () { return this.reelsLayout; }, setReelsRunSoundSilent_1: function (a) { this.reelsRunSoundSilent = a; this.reelsHandler.setReelsRunSoundSilent_1(a); }, getReelsRunSoundSilent_0: function () { return this.reelsRunSoundSilent; }, getStartTime_0: function () { return this.startTime; }, getMinDuration_0: function () { return this.minDuration; }, setMinDuration_1: function (a) { this.minDuration = a; }, setReelSet_2: function (a, b) { GT1650.prototype.assertExp_2(null != a, "Reel set mustn't be null!"); var d = this.getChildCount_0(); if (null != a) for (var e = 0; e < d; e++) { var f = this.getChild_1(e); GT1650.prototype.assertExp_2(instanceOf(f, GT542), "Child of GUIReels is no AbstractGUIReel"); f.setReelSet_2(a.getSymbols_1(e), null == b ? 0 : b[e]); } }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(null != a, "Reel set mustn't be null!"); var d = this.getChildCount_0(); if (null != a) for (var e = 0; e < d; e++) { var f = this.getChild_1(e); GT1650.prototype.assertExp_2(instanceOf(f, GT542), "Child of GUIReels is no AbstractGUIReel"); f.exchangeReelSetSymbols_2(a.getSymbols_1(e), null == b ? 0 : b[e]); } }, getReelStartDelay_0: function () { return this.reelStartDelay; }, setReelStartDelay_1: function (a) { this.reelStartDelay = a; }, getReelStopDelay_0: function () { return this.reelStopDelay; }, setReelStopDelay_1: function (a) { this.reelStopDelay = a; }, setDetailedReelStopDelay_1: function (a) { if (null == a) this.detailedReelStopDelay = null; else { this.detailedReelStopDelay = [].createArray(a.length).init(0); for (var b = 0; b < a.length; b++) this.detailedReelStopDelay[b] = a[b]; } }, getDetailedReelStopDelay_0: function () { return this.detailedReelStopDelay; }, getFullStopDelay_0: function () { var a = 0; if (null != this.detailedReelStopDelay) for (var b = 0; b < this.detailedReelStopDelay.length; b++) a = Math.max_2(a, this.detailedReelStopDelay[b]); else a = this.reelStopDelay * (this.getChildCount_0() - 1); return a; }, setRandomizeStoppingOrder_1: function (a) { this.randomizeReelStoppingOrder = a; }, shuffle_1: function (a) { for (var b = 0; b < a.length; ++b) { var d = this.rand.nextInt_1(a.length), e = a[b]; a[b] = a[d]; a[d] = e; } return a; }, start_0: function () { this.start_1(null); }, start_1: function (a) { if (null != this.teaserHandler) for (var b = 0; b < this.teaserHandler.size_0(); b++) this.teaserHandler.elementAt_1(b).reset_0(); var d = this.getChildCount_0(); if (null != a) { if (a.length > d) { GT1650.prototype.assertExp_2(!1, "Array of provided reel indices to start is larger than the number of available reels ([" + a.length + "] vs. [" + d + "])"); return; } d = a.length; } this.reelsHandler.setNumberOfStartingReels_1(d); for (var e = new java_util_JavaScriptVector(), b = 0; b < d; b++) { var f = null; if (null != a) { if (a[b] >= this.getChildCount_0()) { GT1650.prototype.assertExp_2(!1, "Can't start reel with index " + a[b] + " (number of available reels is " + this.getChildCount_0() + ")"); return; } if (0 <= a[b]) { if (e.contains_1(new Integer(a[b]))) { GT1650.prototype.assertExp_2(!1, "Reel " + a[b] + " has already been started in the current method call -> duplicate indices have been provided in start(int[])"); return; } e.add_1(new Integer(a[b])); f = this.getChild_1(a[b]); } } else f = this.getChild_1(b); if (null != f) { if (!instanceOf(f, GT542)) { GT1650.prototype.assertExp_2(!1, "Child of GUIReels is no AbstractGUIReel"); return; } if (null != this.teaserHandler) for (var g = 0; g < this.teaserHandler.size_0(); g++) f.addReelListener_1(this.teaserHandler.elementAt_1(g)); g = b; null != a && (g = a[b]); f.addReelListener_1(this.reelsHandler); f.start_1(this.reelStartDelay * g); } } this.startTime = this.timer.currentTimeMillis_0(); e.clear_0(); this.silent ? null != this.reelsRunSoundSilent && this.reelsRunSoundSilent.reelsStarted_0() : null != this.reelsRunSound && this.reelsRunSound.reelsStarted_0(); }, stop_2: function (a, b) { for (var d = this.timer.currentTimeMillis_0() - this.startTime, d = Math.max_2(0, this.minDuration - d), e = this.getChildCount_0(), f = 0, g = 0; g < e; g++) this.getChild_1(g).addReelListener_1(this.reelsHandler), this.getChild_1(g).isRunning_0() && f++; this.reelsHandler.setNumberOfRunningReels_1(f); f = [].createArray(e).init(0); for (g = 0; g < f.length; ++g) f[g] = g; f = this.shuffle_1(f); for (g = 0; g < e; g++) { var k = this.getChild_1(g); GT1650.prototype.assertExp_2(instanceOf(k, GT542), "Child of GUIReels is no AbstractGUIReel"); if (k.isRunning_0()) { var m; m = null != this.detailedReelStopDelay && this.detailedReelStopDelay.length > g ? d + this.detailedReelStopDelay[g] : d + this.reelStopDelay * (this.randomizeReelStoppingOrder ? f[g] : g); k.stop_3(a[g], b.getSymbols_1(g), m); } } return d; }, stopImmediately_2: function (a, b) { for (var d = this.getChildCount_0(), e = 0, f = 0; f < d; f++) this.getChild_1(f).addReelListener_1(this.reelsHandler), this.getChild_1(f).isRunning_0() && e++; this.reelsHandler.setNumberOfRunningReels_1(e); for (f = 0; f < d; f++) (e = this.getChild_1(f)), GT1650.prototype.assertExp_2(instanceOf(e, GT542), "Child of GUIReels is no AbstractGUIReel"), e.isRunning_0() && e.stopImmediately_2(a[f], b.getSymbols_1(f)); null != this.reelsRunSound && this.reelsRunSound.isPlaying_0() && this.reelsRunSound.reelsStopImmediately_1(null != this.stopEarlySound); null != this.reelsRunSoundSilent && this.reelsRunSoundSilent.isPlaying_0() && this.reelsRunSoundSilent.reelsStopImmediately_1(null != this.stopEarlySound); null != this.stopEarlySound && this.soundPlayer.start_1(this.stopEarlySound); }, setSoundStopEarly_2: function (a, b) { this.soundPlayer = b; this.stopEarlySound = a; }, setSilent_1: function (a) { this.silent = a; }, getSoundPlayer_0: function () { return this.soundPlayer; }, getCurrentSoundReelsRun_0: function () { this.createReelsRunSoundDeprecatedIfNeeded_0(); return this.reelsRunSoundSilent.isPlaying_0() && instanceOf(this.reelsRunSoundSilent, GT235) ? this.reelsRunSoundSilent.getCurrentSoundReelsRun_0() : instanceOf(this.reelsRunSound, GT235) ? this.reelsRunSound.getCurrentSoundReelsRun_0() : null; }, setSoundsReelsRun_2: function (a, b) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && (this.reelsRunSound.setSoundPlayer_1(b), this.reelsRunSound.setSoundsReelsRun_1(a)); }, setSoundReelsRunSilent_2: function (a, b) { this.createReelsRunSoundDeprecatedIfNeeded_0(); if (instanceOf(this.reelsRunSoundSilent, GT235)) { this.reelsRunSoundSilent.setSoundPlayer_1(b); var d = [].createArray(1); d[0] = a; this.reelsRunSoundSilent.setSoundsReelsRun_1(d); } }, setRandomizeReelRunSounds_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && this.reelsRunSound.setRandomizeReelRunSounds_1(a); }, setManualSelectReelRunSounds_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && this.reelsRunSound.setManualSelectReelRunSounds_1(a); }, setSilentReelRunLoopPoints_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); if (instanceOf(this.reelsRunSoundSilent, GT235)) { var b = [].createArray(1, 3).init(0); b[0] = a; this.reelsRunSoundSilent.setLoopPoints_1(b); } }, setReelRunSoundIndex_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && this.reelsRunSound.setReelRunSoundIndex_1(a); }, setReelSoundFadeoutDuration_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && this.reelsRunSound.setReelSoundFadeoutDuration_1(a); }, setLoopPoints_1: function (a) { this.createReelsRunSoundDeprecatedIfNeeded_0(); instanceOf(this.reelsRunSound, GT235) && this.reelsRunSound.setLoopPoints_1(a); }, createReelsRunSoundDeprecatedIfNeeded_0: function () { null == this.reelsRunSound && ((this.reelsRunSound = new GT235()), this.reelsHandler.setReelsRunSound_1(this.reelsRunSound)); null == this.reelsRunSoundSilent && ((this.reelsRunSoundSilent = new GT235()), this.reelsHandler.setReelsRunSoundSilent_1(this.reelsRunSoundSilent)); }, }, "GT887", [] ); GT887.prototype.maxWidth_1 = function (a) { for (var b = 0, d = 0; d < a.getNumberOfReels_0(); d++) b = Math.max_2(b, a.getReelX_1(d)); return b + a.symbolWidth; }; GT887.prototype.maxHeight_1 = function (a) { for (var b = 0, d = 0; d < a.getNumberOfReels_0(); d++) b = Math.max_2(b, a.getReelY_1(d)); return b + a.getRowPos_1(a.rows - 1) + a.symbolHeight; }; var GT111 = GT542.extend( { initialConstructor_0: function () { this.reelSpinVideoPlayer = this.reelset = null; this.state = 0; this.reelSpinVideoClip = this.stopCallback = this.spinAnimationContainer = null; this.finalPosition = 0; this.randomStartPosition = !1; GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.reelSpinVideoPlayer = this.reelset = null; this.state = 0; this.reelSpinVideoClip = this.stopCallback = this.spinAnimationContainer = null; this.finalPosition = 0; this.randomStartPosition = !1; GT542.prototype.initialConstructor_5.call(this, a, b, d, e, g); this.state = this.REELSTATE_STOPPED; this.spinAnimationContainer = new GT1437(this); this.reelSpinVideoClip = f; this.randomStartPosition = k; }, setReelSet_2: function (a, b) { this.reelset = [].createArray(a.length).init(0); for (var d = 0; d < a.length; d++) this.reelset[d] = a[(b + d) % this.reelset.length]; }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(this.reelset.length == a.length, "Reel set to be exchanged must have the same length as the old reel set!"); for (var d = 0; d < this.reelset.length; d++) d < a.length && (this.reelset[d] = a[(b + d) % a.length]); }, start_1: function (a) { GT1650.prototype.assertExp_2(this.state == this.REELSTATE_STOPPED, "Can only start a stopped reel"); GT1650.prototype.assertExp_2(0 == a, "Functionality for this parameter hasn't been implemented yet for this kind of reel."); null != this.stopCallback && this.stopCallback.kill_0(); this.state = this.REELSTATE_RUNNING; this.spinAnimationContainer.destroyChildren_0(); this.reelSpinVideoPlayer = new GT1336(this.spinAnimationContainer, 0, 0, this.spinAnimationContainer.getWidth_0(), this.spinAnimationContainer.getHeight_0(), this.reelSpinVideoClip); 0 < this.getIndex_0() && this.randomStartPosition && ((a = new GT1561(this.getTimer_0().currentTimeMillis_0() << this.getIndex_0()).nextByte_0() % 100), (a = 0 > a ? -a : a), this.reelSpinVideoPlayer.addStartNotification_1(new GT71(this.reelSpinVideoPlayer, this.getTimer_0(), a))); this.reelSpinVideoPlayer.start_0(); this.notifyReelStarted_0(); }, stop_3: function (a, b, d) { this.finalPosition = a; a = b; null == a && (a = this.reelset); GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPING, "Can't stop if reel is already stopping"); this.reelset = a; this.state = this.REELSTATE_STOPPING; null != this.stopCallback && this.stopCallback.kill_0(); this.stopCallback = new GT85(this); 0 >= d ? this.getTimer_0().triggerCallbackImmediately_1(this.stopCallback) : this.getTimer_0().triggerCallbackAfter_2(this.stopCallback, d); }, stopImmediately_2: function (a, b) { this.finalPosition = a; this.reelset = [].createArray(b.length).init(0); for (var d = 0; d < this.reelset.length; d++) this.reelset[d] = b[d]; GT1650.prototype.assertExp_2(this.state != this.REELSTATE_STOPPED, "Can't stop if reel is already stopping"); this.state = this.REELSTATE_STOPPING; null != this.stopCallback && this.stopCallback.kill_0(); this.stopCallback = new GT85(this); this.getTimer_0().triggerCallbackImmediately_1(this.stopCallback); }, finalStop_0: function () { this.state = this.REELSTATE_STOPPED; null != this.reelSpinVideoPlayer && this.reelSpinVideoPlayer.isAlive_0() && this.reelSpinVideoPlayer.destroy_0(); null != this.spinAnimationContainer && this.spinAnimationContainer.isAlive_0() && this.spinAnimationContainer.destroyChildren_0(); for (var a = this.getReelsLayout_0(), b = 0; b < a.rows; b++) { var d = new GT1437(this.spinAnimationContainer, 0, b * a.symbolHeight, a.symbolWidth, a.symbolHeight), e = this.reelset[(this.finalPosition + b) % this.reelset.length], f = this.getSymbolImage_1(e); null != f && f.isLoaded_0() ? new GT1591(d, 0, 0, a.symbolWidth, a.symbolHeight, f, 0, 0, f.getWidth_0(), f.getHeight_0(), !0, this.getSymbolColorTransformation_0()) : this.createDebugSymbol_6(d, 0, 0, a.symbolWidth, a.symbolHeight, e); } this.getTimer_0().triggerCallbackAfter_2(new GT72(this), 100); }, isRunning_0: function () { return this.state != this.REELSTATE_STOPPED; }, hideSymbolAtRow_2: function (a, b) {}, }, "GT111", [] ), GT71 = Class.extend( { initialConstructor_0: function () { this.videoPlayer = this.timer = null; this.delay = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.videoPlayer = this.timer = null; this.delay = 0; this.videoPlayer = a; this.timer = b; this.delay = d; }, run_0: function () { null != this.videoPlayer && this.videoPlayer.isAlive_0() && (this.videoPlayer.pause_0(), this.timer.triggerCallbackAfter_2(new GT164(this.videoPlayer), this.delay)); }, }, "GT71", [Runnable] ), GT164 = Class.extend( { initialConstructor_0: function () { this.videoPlayer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.videoPlayer = null; this.videoPlayer = a; }, run_0: function () { null != this.videoPlayer && this.videoPlayer.isAlive_0() && (this.videoPlayer.resume_0(), this.videoPlayer.seek_1(0)); }, }, "GT164", [Runnable] ), GT85 = Class.extend( { initialConstructor_0: function () { this.reel = null; this.killed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reel = null; this.killed = !1; this.reel = a; this.killed = !1; }, kill_0: function () { this.killed = !0; }, run_0: function () { this.killed || ((this.killed = !0), null != this.reel && GT1560.prototype.isAlive_1(this.reel) && this.reel.finalStop_0()); }, }, "GT85", [Runnable] ), GT72 = Class.extend( { initialConstructor_0: function () { this.reel = null; this.killed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.reel = null; this.killed = !1; this.reel = a; this.killed = !1; }, kill_0: function () { this.killed = !0; }, run_0: function () { this.killed || ((this.killed = !0), null != this.reel && GT1560.prototype.isAlive_1(this.reel) && this.reel.notifyReelStopped_0()); }, }, "GT72", [Runnable] ), GT518 = GT542.extend( { initialConstructor_0: function () { this.m_motionGraph = this.m_entireReelset = this.m_currentReelset = null; this.m_forceSymbolDroppedSoundForEverySymbol = this.m_forceSymbolDroppedSound = this.m_playDisappearanceTumblingAnimation = !1; this.m_alphaAfterStart = this.m_symbolDifferenceRandomization = this.m_animationEndTime = this.m_stopPosition = this.m_initialDisappearanceDelay = this.m_totalTumblingDurationInitialDisappearance = this.m_tumblingDurationDifferencePerSymbol = this.m_tumblingDurationMinimum = this.m_state = 0; this.m_symbolDroppedSound = this.m_bottomReachedSound = this.m_soundPlayer = null; this.m_symbolDroppedSoundEndPosition = this.m_symbolDroppedSoundStartPosition = 0; this.m_animators = null; this.finalized = !1; this.m_random = this.m_symbolsWithoutDroppedSounds = this.m_symbolUnveiledNotifications = this.m_delayedStopCallback = this.m_callback = null; this.m_notifySymbolUnveiledOnSymbolDropped = !1; GT542.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.m_motionGraph = this.m_entireReelset = this.m_currentReelset = null; this.m_forceSymbolDroppedSoundForEverySymbol = this.m_forceSymbolDroppedSound = this.m_playDisappearanceTumblingAnimation = !1; this.m_alphaAfterStart = this.m_symbolDifferenceRandomization = this.m_animationEndTime = this.m_stopPosition = this.m_initialDisappearanceDelay = this.m_totalTumblingDurationInitialDisappearance = this.m_tumblingDurationDifferencePerSymbol = this.m_tumblingDurationMinimum = this.m_state = 0; this.m_symbolDroppedSound = this.m_bottomReachedSound = this.m_soundPlayer = null; this.m_symbolDroppedSoundEndPosition = this.m_symbolDroppedSoundStartPosition = 0; this.m_animators = null; this.finalized = !1; this.m_random = this.m_symbolsWithoutDroppedSounds = this.m_symbolUnveiledNotifications = this.m_delayedStopCallback = this.m_callback = null; this.m_notifySymbolUnveiledOnSymbolDropped = !1; GT542.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.m_state = this.REELSTATE_STOPPED; this.m_animationEndTime = 0; this.m_animators = new java_util_JavaScriptVector(); this.m_callback = new GT333(this); this.m_symbolUnveiledNotifications = new java_util_JavaScriptVector(); this.m_random = new GT1561(this.getTimer_0().currentTimeMillis_0() + this.getIndex_0()); this.m_notifySymbolUnveiledOnSymbolDropped = !1; }, setNotifySymbolUnveiledOnSymbolDropped_1: function (a) { this.m_notifySymbolUnveiledOnSymbolDropped = a; }, getNotifySymbolUnveiledOnSymbolDropped_0: function () { return this.m_notifySymbolUnveiledOnSymbolDropped; }, setBottomReachedSound_2: function (a, b) { this.m_bottomReachedSound = a; this.m_soundPlayer = b; }, setSymbolDroppedSound_2: function (a, b) { this.m_symbolDroppedSound = a; this.m_soundPlayer = b; }, setSymbolDroppedSoundStartPosition_1: function (a) { this.m_symbolDroppedSoundStartPosition = a; }, setSymbolDroppedSoundEndPosition_1: function (a) { this.m_symbolDroppedSoundEndPosition = a; }, getCurrentReelset_0: function () { return this.m_currentReelset; }, getCurrentStopPosition_0: function () { return this.m_stopPosition; }, getEntireReelset_0: function () { return null == this.m_entireReelset ? this.m_currentReelset : this.m_entireReelset; }, setMinTumblingDuration_1: function (a) { this.m_tumblingDurationMinimum = a; }, getMinTumblingDuration_0: function () { return this.m_tumblingDurationMinimum; }, setTumblingDurationDifference_1: function (a) { this.m_tumblingDurationDifferencePerSymbol = a; }, getTumblingDurationDifference_0: function () { return this.m_tumblingDurationDifferencePerSymbol; }, setInitialDisappearanceDuration_1: function (a) { this.m_totalTumblingDurationInitialDisappearance = a; }, getInitialDisappearanceAnimation_0: function () { return this.m_totalTumblingDurationInitialDisappearance; }, setInitialDisappearanceDelay_1: function (a) { this.m_initialDisappearanceDelay = a * this.getIndex_0(); }, getInitialDisappearanceDelay_0: function () { return this.m_initialDisappearanceDelay; }, setSymbolDifferenceRandomization_1: function (a) { this.m_symbolDifferenceRandomization = a; }, setDisappearanceTumblingAnimation_1: function (a) { this.m_playDisappearanceTumblingAnimation = a; }, getDisappearanceTumblingAnimation_0: function () { return this.m_playDisappearanceTumblingAnimation; }, setForcePlaySymbolDroppedSound_1: function (a) { this.m_forceSymbolDroppedSound = a; }, getForcePlaySymbolDroppedSound_0: function () { return this.m_forceSymbolDroppedSound; }, setForcePlaySymbolDroppedSoundForEverySymbol_1: function (a) { this.m_forceSymbolDroppedSoundForEverySymbol = a; }, getForcePlaySymbolDroppedSoundForEverySymbol_0: function () { return this.m_forceSymbolDroppedSoundForEverySymbol; }, setAlphaAfterStart_1: function (a) { this.m_alphaAfterStart = Integer.truncate_1(Math.ceil_1(0 <= a && 1 >= a ? 255 * a : 128)); }, getAlphaAfterStart_0: function () { return this.m_alphaAfterStart; }, setMotionGraph_1: function (a) { this.m_motionGraph = a; }, getMotionGraph_0: function () { return this.m_motionGraph; }, getAnimationEndTime_0: function () { return this.m_animationEndTime; }, setSymbolsWithoutDroppedSounds_1: function (a) { this.m_symbolsWithoutDroppedSounds = null == a ? "" : a; }, getSymbolsWithoutDroppedSounds_0: function () { return this.m_symbolsWithoutDroppedSounds; }, getNumberOfRunningAnimators_0: function () { for (var a = 0, b = 0; b < this.m_animators.size_0(); ++b) this.m_animators.elementAt_1(b).isRunning_0() && a++; return a; }, containsSymbolUnveiledNotification_2: function (a, b) { for (var d = 0; d < this.m_symbolUnveiledNotifications.size_0(); ++d) if (this.m_symbolUnveiledNotifications.elementAt_1(d).equalsSymbolAndRow_2(a, b)) return !0; return !1; }, removeSymbolUnveiledNotification_2: function (a, b) { for (var d = 0; d < this.m_symbolUnveiledNotifications.size_0(); ++d) if (this.m_symbolUnveiledNotifications.elementAt_1(d).equalsSymbolAndRow_2(a, b)) { this.m_symbolUnveiledNotifications.removeElementAt_1(d); break; } }, notifySymbolUnveiled_2: function (a, b) { if (this.containsSymbolUnveiledNotification_2(a, b)) { this.removeSymbolUnveiledNotification_2(a, b); for (var d = this.getListeners_0(), e = d.size_0(), f = 0; f < e; f++) d.elementAt_1(f).symbolUnveiled_3(this, a, b); } }, getRow_1: function (a) { return Math.div(a, this.getReelsLayout_0().symbolHeight); }, getUnveilingDelay_3: function (a, b, d) { return Integer.truncate_1(a / (b + (d ? 1.1 : 1.9))); }, createSymbolImageSafely_2: function (a, b) { var d = this.getSymbolImage_1(b); null != d && d.isLoaded_0() ? new GT1591(a, 0, 0, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight, d, 0, 0, !0) : this.createDebugSymbol_6(a, 0, 0, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight, b); }, adjustTumblingDuration_1: function (a) { if (0 != this.m_symbolDifferenceRandomization) { var b = this.m_random.nextInt_1(2 * this.m_symbolDifferenceRandomization); a += b - this.m_symbolDifferenceRandomization; } return a; }, playInitialDisappearanceAnimation_1: function (a) { for (var b = this.m_currentReelset.length - 1; 0 <= b; --b) { var d = this.getY_0() + b * this.getReelsLayout_0().symbolHeight, d = new GT1437(this, 0, Integer.truncate_1(d), this.getReelsLayout_0().symbolWidth, (this.getReelsLayout_0().rows + 1 - b) * this.getReelsLayout_0().symbolHeight); this.createSymbolImageSafely_2(d, this.m_currentReelset[b]); var e = (this.getReelsLayout_0().rows + 1) * this.getReelsLayout_0().symbolHeight, f = this.getReelsLayout_0().rows - (b + 2), g = a * (this.getReelsLayout_0().rows - b) + this.m_totalTumblingDurationInitialDisappearance, g = g + f * this.m_tumblingDurationDifferencePerSymbol; -1 == f && (g += 50); d = new GT653(this.getTimer_0(), d, 0, e, g, !1); this.m_animationEndTime = this.getTimer_0().currentTimeMillis_0() + d.getDuration_0(); this.m_animators.add_1(d); d.setMotionGraph_1(this.m_motionGraph); d.start_0(); } }, showInitialSymbols_3: function (a, b, d) { this.m_symbolUnveiledNotifications.clear_0(); this.finalized = !1; this.destroyChildren_0(); for (var e = 0; e < this.getReelsLayout_0().rows; ++e) { var f = this.getY_0() - Math.ceil_1(this.getReelsLayout_0().symbolHeight * (e + 1) * 1.75), g = new GT1437(this, 0, Integer.truncate_1(f), this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight), f = this.m_currentReelset[this.getReelsLayout_0().rows - (e + 1)]; this.createSymbolImageSafely_2(g, f); var k = (this.getReelsLayout_0().rows - 1) * this.getReelsLayout_0().symbolHeight - e * this.getReelsLayout_0().symbolHeight; d && this.m_symbolUnveiledNotifications.add_1(new GT137(f, this.getRow_1(k))); if (0 < b) { var m = a + e * this.m_tumblingDurationDifferencePerSymbol; m < b && (m = b); m = this.adjustTumblingDuration_1(m); g = new GT653(this.getTimer_0(), g, 0, k, m, !1); d && !this.getNotifySymbolUnveiledOnSymbolDropped_0() && this.getTimer_0().triggerCallbackAfter_2( new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(f), Integer.toString_1(this.getRow_1(k))]), this.getUnveilingDelay_3(m, this.getRow_1(k), !0) ); this.m_animationEndTime = this.getTimer_0().currentTimeMillis_0() + g.getDuration_0(); this.m_animators.add_1(g); 0 == e && g.addFinishCallback_1(new GT1509(this.m_callback, "playBottomReachedSound")); this.m_forceSymbolDroppedSoundForEverySymbol && -1 == this.m_symbolsWithoutDroppedSounds.indexOf_1(GT1672.prototype.charToString_1(f)) && g.addFinishCallback_1(new GT1509(this.m_callback, "playSymbolDroppedSound")); g.addFinishCallback_1(new GT1509(this.m_callback, "animatorFinished")); d && this.getNotifySymbolUnveiledOnSymbolDropped_0() && (g.addFinishCallback_1(new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(f), Integer.toString_1(this.getRow_1(k))])), GT1650.prototype.log_1("New Notify Unveiled " + f + " " + this.getRow_1(k) + " Reel : " + this.getIndex_0())); g.setMotionGraph_1(this.m_motionGraph); g.start_0(); } else d && this.getTimer_0().triggerCallbackImmediately_1(new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(f), Integer.toString_1(this.getRow_1(k))])), g.moveAnchor_2(0, k); } }, dropSingleSymbol_5: function (a, b, d, e, f) { var g, k = !1; 0 > a ? (0 == this.m_stopPosition ? (this.m_stopPosition = this.m_entireReelset.length - 1) : this.m_stopPosition--, (g = this.m_entireReelset[this.m_stopPosition]), (k = !0)) : (g = this.m_currentReelset[a]); a = this.getY_0() + this.getReelsLayout_0().symbolHeight * a; var m = new GT1437(this, 0, Integer.truncate_1(a), this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight * this.getReelsLayout_0().rows); this.m_currentReelset[b] = g; this.createSymbolImageSafely_2(m, g); a = b * this.getReelsLayout_0().symbolHeight; k && this.m_symbolUnveiledNotifications.add_1(new GT137(g, this.getRow_1(a))); if (0 < e) { var n = this.getReelsLayout_0().rows - (b + 1); d += n * this.m_tumblingDurationDifferencePerSymbol; d < e && (d = e); d = this.adjustTumblingDuration_1(d); m = new GT653(this.getTimer_0(), m, 0, a, d, !1); k && !this.m_notifySymbolUnveiledOnSymbolDropped && this.getTimer_0().triggerCallbackAfter_2( new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(g), Integer.toString_1(this.getRow_1(a))]), this.getUnveilingDelay_3(d, this.getRow_1(a), !1) ); this.m_animationEndTime = this.getTimer_0().currentTimeMillis_0() + m.getDuration_0(); this.m_animators.add_1(m); (this.m_forceSymbolDroppedSoundForEverySymbol || f || b == this.getReelsLayout_0().rows - 1) && -1 == this.m_symbolsWithoutDroppedSounds.indexOf_1(GT1672.prototype.charToString_1(g)) && m.addFinishCallback_1(new GT1509(this.m_callback, "playSymbolDroppedSound")); m.addFinishCallback_1(new GT1509(this.m_callback, "animatorFinished")); k && this.m_notifySymbolUnveiledOnSymbolDropped && m.addFinishCallback_1(new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(g), Integer.toString_1(this.getRow_1(a))])); m.setMotionGraph_1(this.m_motionGraph); m.start_0(); } else k && this.getTimer_0().triggerCallbackImmediately_1(new GT1509(this.m_callback, ["symbolUnveiled", GT1672.prototype.charToString_1(g), Integer.toString_1(this.getRow_1(a))])), m.moveAnchor_2(0, a); return 0 < e ? 1 : 0; }, setReelstateStopping_1: function (a) { 0 <= a && (this.m_state = this.REELSTATE_STOPPING); }, playBottomReachedSound_0: function () { null != this.m_soundPlayer && null != this.m_bottomReachedSound && this.m_soundPlayer.start_6(this.m_bottomReachedSound, null, 0, 0, 100, 0.4 * (this.getIndex_0() - 2)); }, playSymbolDroppedSound_0: function () { if (null != this.m_soundPlayer && null != this.m_symbolDroppedSound) { var a = 0.4 * (this.getIndex_0() - 2); this.m_soundPlayer.start_6(this.m_symbolDroppedSound, null, this.m_symbolDroppedSoundStartPosition, this.m_symbolDroppedSoundEndPosition, 100, a); } }, setReelSet_2: function (a, b) { this.m_stopPosition = b; this.m_currentReelset = [].createArray(this.getReelsLayout_0().rows).init(0); for (var d = 0; d < this.getReelsLayout_0().rows; d++) this.m_currentReelset[d] = a[(b + d) % a.length]; this.m_playDisappearanceTumblingAnimation && this.showInitialSymbols_3(0, 0, !1); }, exchangeReelSetSymbols_2: function (a, b) { GT1650.prototype.assertExp_2(null == a, "This method isn't supported for tumbling reels!"); }, start_1: function (a) { GT1650.prototype.assertExp_2(0 == a, "Functionality for this parameter hasn't been implemented yet for this kind of reel."); GT1650.prototype.assertExp_2(this.m_state == this.REELSTATE_STOPPED, "Can only start a stopped reel"); if (this.m_playDisappearanceTumblingAnimation) this.destroyChildren_0(), this.playInitialDisappearanceAnimation_1(this.m_initialDisappearanceDelay); else { if (0 == this.getChildCount_0()) for (a = 0; a < this.getReelsLayout_0().rows; ++a) { var b = new GT1437(this, 0, a * this.getReelsLayout_0().symbolHeight, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight); this.createSymbolImageSafely_2(b, this.m_currentReelset[a]); } for (a = 0; a < this.getChildCount_0(); ++a) if (instanceOf(this.getChild_1(a), GT1437)) for (b = 0; b < this.getChild_1(a).getChildCount_0(); ++b) instanceOf(this.getChild_1(a).getChild_1(b), GT1591) && this.getChild_1(a).getChild_1(b).setAlpha_1(this.m_alphaAfterStart); } this.m_state = this.REELSTATE_RUNNING; this.notifyReelStarted_0(); }, stop_3: function (a, b, d) { var e = b; null == e && (e = this.m_currentReelset); 0 <= d && GT1650.prototype.assertExp_2(this.m_state != this.REELSTATE_STOPPING, "Can't stop if reel is already stopping"); if (this.getTimer_0().currentTimeMillis_0() < this.m_animationEndTime && 0 <= d) this.m_callback.isStopCallbackQueuedAlready_0() || (this.m_callback.setQueuedStopCallbackData_3(a, d, b), (this.m_delayedStopCallback = new GT1509(this.m_callback, "delayedStopCallback")), (a = this.m_animationEndTime - this.getTimer_0().currentTimeMillis_0()), this.getTimer_0().triggerCallbackAfter_2(this.m_delayedStopCallback, a)); else { this.m_entireReelset = [].createArray(e.length).init(0); java_lang_System.prototype.arraycopy_5(e, 0, this.m_entireReelset, 0, e.length); for (b = 0; b < this.m_currentReelset.length; ++b) this.m_currentReelset[b] = e[(a + b) % e.length]; this.m_stopPosition = a; this.showInitialSymbols_3(d, this.m_tumblingDurationMinimum, !0); this.setReelstateStopping_1(d); } }, tumble_2: function (a, b) { if (0 == this.getNumberOfRunningAnimators_0() && null != this.m_entireReelset && 0 < this.m_entireReelset.length) { this.finalized = !1; this.m_symbolUnveiledNotifications.clear_0(); this.destroyChildren_0(); for (var d = 0, e = a.length - 1; 0 <= e; --e) if (0 == a[e]) { var f = e * this.getReelsLayout_0().symbolHeight, f = new GT1437(this, 0, f, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight); this.createSymbolImageSafely_2(f, this.m_currentReelset[e]); } else break; f = this.m_forceSymbolDroppedSound; for (e = a.length - 1; 0 <= e; --e) if (1 == a[e]) for (var g = e, k = e - 1; 0 <= k; --k) if (0 == a[k]) { d += this.dropSingleSymbol_5(k, g, b, this.m_tumblingDurationMinimum, f); a[k] = !0; a[g] = !1; f && (f = !1); break; } for (e = a.length - 1; 0 <= e; --e) 1 == a[e] && ((k = -this.getReelsLayout_0().rows + e), (d += this.dropSingleSymbol_5(k, e, b, this.m_tumblingDurationMinimum, f)), f && (f = !1)); 0 == d ? this.finalStop_0() : this.setReelstateStopping_1(b); } else GT1650.prototype.assertExp_2( null != this.m_entireReelset, "The tumble() call in GUITumblingReel for reel " + this.getIndex_0() + " has been blocked because the entire reel set member variable hasn't been initialized yet by calling stop() first" ), GT1650.prototype.assertExp_2( 0 == this.getNumberOfRunningAnimators_0(), "The tumble() call in GUITumblingReel for reel " + this.getIndex_0() + " has been blocked because at least one animation was already (and is still) being played" ); }, switchToReelset_3: function (a, b, d) { for (var e = 0; e < this.m_animators.size_0(); ++e) this.m_animators.elementAt_1(e).killWithoutTriggers_0(); this.m_callback.setQueuedStopCallbackData_3(0, 0, null); this.getTimer_0().removeCallback_2(this.m_delayedStopCallback, !1); this.destroyChildren_0(); for (e = 0; e < this.getReelsLayout_0().rows; ++e) { var f = a[(b + e) % a.length], g = new GT1437(this, 0, this.getReelsLayout_0().symbolHeight * e, this.getReelsLayout_0().symbolWidth, this.getReelsLayout_0().symbolHeight); this.createSymbolImageSafely_2(g, f); this.notifySymbolUnveiled_2(f, e); d && (this.m_currentReelset[e] = f); } }, intermediateTumblingStep_1: function (a) { this.switchToReelset_3(a, 0, !1); this.finalStop_0(); }, stopImmediately_2: function (a, b) { this.m_stopPosition = a; this.m_entireReelset = b; this.switchToReelset_3(b, a, !0); this.finalStop_0(); }, finalStop_0: function () { this.finalized = !0; this.m_state = this.REELSTATE_STOPPED; this.m_animators.clear_0(); this.notifyReelStopped_0(); }, isRunning_0: function () { return this.m_state != this.REELSTATE_STOPPED; }, hideSymbolAtRow_2: function (a, b) { GT1650.prototype.assertExp_2(!this.isRunning_0(), "Can only hide symbol when reel has stopped."); this.isRunning_0() || a >= this.getChildCount_0() || this.getChild_1(a).hide_1(b); }, destroyImpl_2: function (a, b) { GT542.prototype.destroyImpl_2.call(this, a, b); for (var d = 0; d < this.m_animators.size_0(); ++d) this.m_animators.elementAt_1(d).killWithoutTriggers_0(); }, }, "GT518", [] ), GT333 = Class.extend( { initialConstructor_0: function () { this.m_reel = null; this.m_delay = this.m_position = 0; this.m_newReelset = null; this.m_isStopQueuedAlready = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.m_reel = null; this.m_delay = this.m_position = 0; this.m_newReelset = null; this.m_isStopQueuedAlready = !1; this.m_reel = a; this.setQueuedStopCallbackData_3(0, 0, null); }, isStopCallbackQueuedAlready_0: function () { return this.m_isStopQueuedAlready; }, setQueuedStopCallbackData_3: function (a, b, d) { this.m_position = a; this.m_delay = b; this.m_newReelset = d; this.m_isStopQueuedAlready = null != d ? !0 : !1; }, run_1: function (a) { if (null != a) if (instanceOf(a, Array)) { var b = [].createArray(3); java_lang_System.prototype.arraycopy_5(a, 0, b, 0, b.length); b[0].equals_1("symbolUnveiled") && (0 < this.m_reel.getNumberOfRunningAnimators_0() || this.m_reel.getNotifySymbolUnveiledOnSymbolDropped_0()) && this.m_reel.notifySymbolUnveiled_2(b[1].charAt_1(0), GT1672.prototype.stringToInt_1(b[2])); } else "string" === typeof a && (a.equals_1("playBottomReachedSound") ? this.m_reel.playBottomReachedSound_0() : a.equals_1("playSymbolDroppedSound") ? this.m_reel.playSymbolDroppedSound_0() : a.equals_1("animatorFinished") ? 0 != this.m_reel.getNumberOfRunningAnimators_0() || this.m_reel.finalized || this.m_reel.finalStop_0() : a.equals_1("delayedStopCallback") && null != this.m_newReelset && (this.m_reel.stop_3(this.m_position, this.m_newReelset, this.m_delay), this.setQueuedStopCallbackData_3(0, 0, null))); }, }, "GT333", [GT1482] ), GT137 = Class.extend( { initialConstructor_0: function () { this.row = this.symbol = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.row = this.symbol = 0; this.symbol = a; this.row = b; }, getSymbol_0: function () { return this.symbol; }, getRow_0: function () { return this.row; }, equalsSymbolAndRow_2: function (a, b) { return this.symbol == a && this.row == b; }, }, "GT137", [] ), GT473 = GT887.extend( { initialConstructor_0: function () { GT887.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT887.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, tumble_1: function (a) { for (var b = this.timer.currentTimeMillis_0() - this.getStartTime_0(), b = Math.max_2(0, this.minDuration - b), d = this.getChildCount_0(), e = 0; e < d; e++) this.getChild_1(e).addReelListener_1(this.reelsHandler); this.reelsHandler.setNumberOfRunningReels_1(d); for (e = 0; e < d; e++) { var f = this.getChild_1(e); GT1650.prototype.assertExp_2(instanceOf(f, GT518), "Child of GUITumblingReels is no GUITumblingReel"); var g; g = null != this.detailedReelStopDelay && this.detailedReelStopDelay.length > e ? b + this.detailedReelStopDelay[e] : b + this.getReelStopDelay_0() * e; f.tumble_2(a[e], g); } }, intermediateTumblingStep_1: function (a) { for (var b = this.getChildCount_0(), d = 0; d < b; d++) this.getChild_1(d).addReelListener_1(this.reelsHandler); this.reelsHandler.setNumberOfRunningReels_1(b); for (d = 0; d < b; d++) { var e = this.getChild_1(d); GT1650.prototype.assertExp_2(instanceOf(e, GT518), "Child of GUITumblingReels is no GUITumblingReel"); e.intermediateTumblingStep_1(a.getSymbols_1(d)); } }, getCurrentReelSet_0: function () { for (var a = [].createArray(this.getChildCount_0(), this.getChild_1(0).getReelsLayout_0().rows).init(0), b = 0; b < this.getChildCount_0(); ++b) a[b] = this.getChild_1(b).getCurrentReelset_0(); return new GT1664(a); }, getReelPositions_0: function () { for (var a = [].createArray(this.getChildCount_0()).init(0), b = 0; b < a.length; ++b) a[b] = this.getChild_1(b).getCurrentStopPosition_0(); return a; }, getEntireReelSet_0: function () { for (var a = [].createArray(this.getChildCount_0(), this.getChild_1(0).getReelsLayout_0().rows).init(0), b = 0; b < this.getChildCount_0(); ++b) a[b] = this.getChild_1(b).getEntireReelset_0(); return new GT1664(a); }, }, "GT473", [] ), GT20 = GT852.extend( { initialConstructor_0: function () { this.skinManager = this.currencyFormatter = null; this.silentMode = this.activePlayer = !1; GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.skinManager = this.currencyFormatter = null; this.silentMode = this.activePlayer = !1; GT852.prototype.initialConstructor_1.call(this, a); this.skinManager = b; this.activePlayer = d; this.silentMode = e; this.currencyFormatter = new GT1285(); }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, getSkinManager_0: function () { return this.skinManager; }, isActivePlayer_0: function () { return this.activePlayer; }, setActivePlayer_1: function (a) { this.activePlayer = a; }, isSilentMode_0: function () { return this.silentMode; }, setSilentMode_1: function (a) { this.silentMode = a; }, }, "GT20", [] ), GT440 = GT1437.extend( { initialConstructor_0: function () { this.slotConsole = this.superGameState = this.currencyFormatter = this.superGameListeners = this.soundClose = this.soundOpen = null; this.durationOpenClose = 0; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.slotConsole = this.superGameState = this.currencyFormatter = this.superGameListeners = this.soundClose = this.soundOpen = null; this.durationOpenClose = 0; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.soundOpen = g; this.soundClose = k; this.currencyFormatter = new GT1285(); this.superGameListeners = new java_util_JavaScriptVector(); this.durationOpenClose = 500; }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, getSoundOpen_0: function () { return this.soundOpen; }, getSoundClose_0: function () { return this.soundClose; }, setSuperGamesState_1: function (a) { this.superGameState = a; }, addSuperGameListener_1: function (a) { this.superGameListeners.contains_1(a) || this.superGameListeners.addElement_1(a); }, removeSuperGameListener_1: function (a) { this.superGameListeners.contains_1(a) && this.superGameListeners.removeElement_1(a); }, getSuperGameListeners_0: function () { return this.superGameListeners; }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, getSuperGameWheel_0: function () { return this.superGameState.getSuperGameWheel_0(); }, getAccumulator_0: function () { return this.superGameState.getAccumulator_0(); }, getSuperGamePrice_0: function () { return this.superGameState.getSuperGamePrice_0(); }, getLabel_0: function () { return this.superGameState.getLabel_0(); }, getColor_0: function () { return this.superGameState.getColor_0(); }, getBalance_0: function () { return this.superGameState.getBalance_0(); }, getPositionOnWheel_0: function () { return this.superGameState.getPositionOnWheel_0(); }, getWinCash_0: function () { return this.superGameState.getWinCash_0(); }, getWinSuperGames_0: function () { return this.superGameState.getWinSuperGames_0(); }, hasActionGames_0: function () { return this.superGameState.hasActionGames_0(); }, setConsole_1: function (a) { this.slotConsole = a; this.slotConsole.addConsoleListener_1(this); }, getSlotConsole_0: function () { return this.slotConsole; }, setDurationOpenClose_1: function (a) { GT1650.prototype.assertExp_2(0 <= a, "It is not possible to handover a negative duration!"); this.durationOpenClose = a; }, getDurationOpenClose_0: function () { return this.durationOpenClose; }, numberOfAutoPlaysChanged_1: function (a) {}, consoleStateChanged_2: function (a, b) {}, creditsHidden_1: function (a) {}, }, "GT440", [GT547] ), GT221 = GT440.extend( { initialConstructor_0: function () { this.coordsHighlights = this.skinManager = this.imageWheelLose = this.imageWheelHighlight = this.imageSupergameWheel = null; this.betPerLine = this.wheelTurboStepDuration = this.wheelSpinningDuration = this.wheelStepDuration = this.skipNumber = this.maxLabelWidth = this.cy = this.cx = 0; this.winFieldCountingFinished = this.soundWheelSpinFaded = this.inSilentMode = this.inReplayMode = this.activePlayer = this.autoPlaying = this.turbo = !1; this.credits = this.radius = 0; this.superGameCounter = this.counterSuperGames = this.animatorWheel = this.soundSuperGamesWin = this.soundCounterIncrease = this.soundNoWin = this.soundWheelSpin = this.soundWheelStep = this.fontNumbers = this.fontMainCounter = this.textColor = this.textOutlineColor = null; this.winCountUpDuration = this.noWinDelay = 0; this.otherChildren = null; GT440.prototype.initialConstructor_0.call(this); }, initialConstructor_29: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L, J, M, N, P, O, K) { this.coordsHighlights = this.skinManager = this.imageWheelLose = this.imageWheelHighlight = this.imageSupergameWheel = null; this.betPerLine = this.wheelTurboStepDuration = this.wheelSpinningDuration = this.wheelStepDuration = this.skipNumber = this.maxLabelWidth = this.cy = this.cx = 0; this.winFieldCountingFinished = this.soundWheelSpinFaded = this.inSilentMode = this.inReplayMode = this.activePlayer = this.autoPlaying = this.turbo = !1; this.credits = this.radius = 0; this.superGameCounter = this.counterSuperGames = this.animatorWheel = this.soundSuperGamesWin = this.soundCounterIncrease = this.soundNoWin = this.soundWheelSpin = this.soundWheelStep = this.fontNumbers = this.fontMainCounter = this.textColor = this.textOutlineColor = null; this.winCountUpDuration = this.noWinDelay = 0; this.otherChildren = null; GT440.prototype.initialConstructor_7.call(this, a, b, d, e, f, J, M); this.imageSupergameWheel = r; this.imageWheelHighlight = t; this.imageWheelLose = u; this.skinManager = g; this.coordsHighlights = k; this.cx = m; this.cy = n; this.radius = p; this.maxLabelWidth = q; this.textColor = B; this.textOutlineColor = A; this.fontNumbers = E; this.fontMainCounter = C; this.soundWheelStep = F; this.soundWheelSpin = D; this.soundNoWin = H; this.soundCounterIncrease = I; this.soundSuperGamesWin = L; this.superGameCounter = new GT301(this, N, O); this.wheelTurboStepDuration = 150; this.wheelStepDuration = 300; this.wheelSpinningDuration = 25; this.noWinDelay = P; this.winCountUpDuration = K; this.skipNumber = 3; this.soundWheelSpinFaded = this.turbo = !1; this.winFieldCountingFinished = !0; }, setOtherChildren_1: function (a) { this.otherChildren = a; }, placePriceTextObject_6: function (a, b, d, e, f, g) { var k = this.getCurrencyFormatter_0().format_1(a); instanceOf(this.getCurrencyFormatter_0(), GT711) && ((k = 100 <= this.betPerLine ? GT711.prototype.OMIT_CENT_IF_ZERO : GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO), (k = this.getCurrencyFormatter_0().format_3(a, k, !1))); a = new GT1123(this, b - Math.div(e, 2), d - Math.div(f, 2), e, f, this.fontNumbers, this.textColor, 7 <= k.length_0() ? g : GT1488.prototype.CENTER, GT1489.prototype.CENTER); a.setOutline_2(1, this.textOutlineColor); a.setText_1(k); }, buildScreen_1: function (a) { this.destroyChildren_0(); new GT1591(this, 0, 0, this.imageSupergameWheel); for (var b = new GT1437(this), d = null == this.getSuperGameWheel_0() ? 2 : this.getSuperGameWheel_0().length, e = 0; e < d; e++) { var f = this.coordsHighlights[e][4], g = this.coordsHighlights[e][5], k = this.coordsHighlights[e][2] - (this.hasActionGames_0() ? 0 : this.coordsHighlights[e][0]), m = this.coordsHighlights[e][3] - (this.hasActionGames_0() ? 0 : this.coordsHighlights[e][1]); new GT1591(b, f, g, k, m, this.imageWheelHighlight, this.coordsHighlights[e][0], this.coordsHighlights[e][1]).hide_1(!0); } e = null != this.animatorWheel ? this.animatorWheel.position : 0; this.animatorWheel = new GT392(this, this.skinManager, b, null == this.getSuperGameWheel_0() ? 2 : this.getSuperGameWheel_0().length, e, this.soundWheelStep); this.animatorWheel.setInSilentMode_1(this.inSilentMode); a && this.animatorWheel.start_0(); for (e = 0; null != this.getSuperGameWheel_0() && e < this.getSuperGameWheel_0().length; e++) { b = GT1488.prototype.CENTER; a = -(e * Math.PI * 2) / this.getSuperGameWheel_0().length + Math.PI / 2; b = e < Math.div(this.getSuperGameWheel_0().length, 2) ? GT1488.prototype.RIGHT : GT1488.prototype.LEFT; if (3 == e || 4 == e || 12 == e || 13 == e) b = GT1488.prototype.CENTER; f = this.cx + Integer.truncate_1(Math.cos_1(a) * this.radius * 0.95); g = this.cy - Integer.truncate_1(Math.sin_1(a) * this.radius * 0.95); switch (this.getSuperGameWheel_0()[e]) { case 65: a = "" + this.getAccumulator_0(); d = b = 70; f = new GT1123(this, f - Math.div(b, 2), g - Math.div(d, 2), b, d, this.fontMainCounter, this.getColor_0(), GT1488.prototype.CENTER, GT1489.prototype.CENTER); f.setOutline_2(1, this.textOutlineColor); f.setText_1(a); break; case 80: if (1 == e || 7 == e) f += 5; else if (9 == e || 15 == e) f -= 2; this.placePriceTextObject_6(this.getSuperGamePrice_0(), f, g, 100, 30, b); break; case 55: this.placePriceTextObject_6(0.7 * this.getSuperGamePrice_0(), f, g, Math.max_2(100, Integer.truncate_1(Math.abs_1(155 * Math.cos_1(a)))), 40, b); break; case 43: new GT1606(this, f, g, GT1606.prototype.ALIGN_CENTER | GT1606.prototype.VALIGN_CENTER, "+1", this.fontNumbers[0], this.getColor_0(), 1, this.textOutlineColor); break; case 126: break; default: (b = this.imageWheelLose.getWidth_0()), (d = this.imageWheelLose.getHeight_0()), (k = b > d ? b : d), (f = new GT1075(this, f - k, g - k, 2 * k, 2 * k, this.imageWheelLose, Math.div(b, 2), Math.div(d, 2))), f.setTranslation_2(k, k), f.setRotation_1(a + Math.PI); } } d = 70; b = 75; this.counterSuperGames = new GT1123(this, this.cx - b, this.cy - d, 2 * b, d, this.fontMainCounter, this.getColor_0(), GT1488.prototype.CENTER, GT1489.prototype.CENTER); this.counterSuperGames.setOutline_2(2, GT1634.prototype.black); this.counterSuperGames.setText_1("" + this.getBalance_0()); this.counterSuperGames.setInsets_4(0, 0, 4, 0); a = new GT1490(this, this.cx - b, this.cy, 2 * b, d, this.getLabel_0(), this.fontMainCounter[0], this.getColor_0(), GT1488.prototype.CENTER, GT1489.prototype.CENTER, 0); a.setOutline_2(2, GT1634.prototype.black); a.setInsets_4(0, 0, 0, 4); if (null != this.otherChildren) for (e = 0; e < this.otherChildren.size_0(); ++e) (f = this.otherChildren.elementAt_1(e).create_2(this, this.skinManager)), f.getApplicationID_0() == GT221.prototype.CURRENCY_TEXT_ID && instanceOf(f, GT1584) && instanceOf(this.getCurrencyFormatter_0(), GT711) && ((g = GT1677.prototype.replaceInString_3(f.getText_0(), "#0", this.getCurrencyFormatter_0().getCurrencySymbol_0())), f.setText_1(g), f.hide_1(0 == this.getCurrencyFormatter_0().getCurrencySymbol_0().length_0())); }, isTurboEnabled_0: function () { return this.turbo || !this.activePlayer; }, fadeOutWheelSpinSound_1: function (a) { null == this.soundWheelSpin || this.soundWheelSpinFaded || (this.skinManager.getSoundPlayer_0().stop_2(this.soundWheelSpin, a), (this.soundWheelSpinFaded = !0), GT221.prototype.LOG.verbose && GT221.prototype.LOG.log_1("[GUISuperGameDefault] Fading out sound wheel spin at " + this.skinManager.getTimer_0().currentTimeMillis_0() + " for " + a)); }, updateConsoleState_0: function () { this.autoPlaying ? this.getSlotConsole_0().setState_1(GT725.prototype.AUTO_SPIN_SKIP_WIN) : this.getSlotConsole_0().setState_1(GT725.prototype.SKIPCOLLECT); }, notifyWheelTargetReached_0: function () { null != this.soundWheelSpin && (this.skinManager.getSoundPlayer_0().stop_2(this.soundWheelSpin, 50), GT221.prototype.LOG.verbose && GT221.prototype.LOG.log_1("[GUISuperGameDefault] Stopping sound wheel spin at " + this.skinManager.getTimer_0().currentTimeMillis_0())); this.getSlotConsole_0().setStatusText_1(""); if (0 < this.getWinCash_0()) (this.winFieldCountingFinished = !1), this.updateConsoleState_0(), this.getSlotConsole_0().setWin_2(this.getWinCash_0(), !0), this.getSlotConsole_0().setCredits_3(this.credits, !1, this.isTurboEnabled_0() ? 500 : this.winCountUpDuration), null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_3(this.getWinCash_0(), !1, this); else if (0 < this.getWinSuperGames_0()) { this.updateConsoleState_0(); this.getSlotConsole_0().setWinSuperGames_3(this.getWinSuperGames_0(), this.getLabel_0(), !0); if (null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0()) { var a = " + " + this.getWinSuperGames_0() + " " + this.getLabel_0(); GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWinAndSuperGames_6(0, a, !1, this, !1, -1); } null != this.soundSuperGamesWin ? this.skinManager.getSoundPlayer_0().start_2(this.soundSuperGamesWin, new GT63(this)) : this.skinManager.getTimer_0().triggerCallbackImmediately_1(new GT63(this)); } else 0 <= this.determineTargetPosition_0() && this.determineTargetPosition_0() < this.getSuperGameWheel_0().length && 43 == this.getSuperGameWheel_0()[this.determineTargetPosition_0()] ? (this.getSlotConsole_0().setStatusText_1(this.skinManager.getText_1("${console_supergamesincreased}")), null != this.soundCounterIncrease ? this.skinManager.getSoundPlayer_0().start_2(this.soundCounterIncrease, this) : this.skinManager.getTimer_0().triggerCallbackAfter_2(this, this.isTurboEnabled_0() ? 250 : 1e3)) : (this.getSlotConsole_0().setActive_1(!1), this.getSlotConsole_0().setStatusText_1(this.skinManager.getText_1("${console_supergamenowin}")), null != this.soundNoWin && this.skinManager.getSoundPlayer_0().start_1(this.soundNoWin), this.skinManager.getTimer_0().triggerCallbackAfter_2(this, this.isTurboEnabled_0() ? 250 : this.noWinDelay)); }, startFastRunning_0: function () { null != this.soundWheelSpin && (this.skinManager.getSoundPlayer_0().stop_1(this.soundWheelSpin), this.isTurboEnabled_0() || (this.skinManager.getSoundPlayer_0().startLooped_1(this.soundWheelSpin), (this.soundWheelSpinFaded = !1))); this.counterSuperGames.setText_1("" + (this.getBalance_0() - 1)); this.animatorWheel.startFastRunning_0(); }, determineTargetPosition_0: function () { var a = this.getPositionOnWheel_0(), b = "Target position is " + this.getPositionOnWheel_0(); this.hasActionGames_0() && (5 == a ? (a = 6) : 5 < a && (a += 2), (b = "Original target position is " + this.getPositionOnWheel_0() + ", the modified position is " + a)); GT221.prototype.LOG.verbose && GT221.prototype.LOG.log_1("[GUISuperGameDefault] " + b); return a; }, getWheelStepDuration_0: function () { return this.wheelStepDuration; }, getWheelSpinningDuration_0: function () { return this.wheelSpinningDuration; }, getWheelTurboStepDuration_0: function () { return this.wheelTurboStepDuration; }, setWheelStepDurations_2: function (a, b) { GT1650.prototype.assertExp_2(25 <= a && a <= b, "Duration for one turbo wheel step has to have a min. value of 25ms and the value of wheelStepDuration has to be higher than wheelTurboStepDuration!"); this.wheelTurboStepDuration = a; this.wheelStepDuration = b; }, setWheelSpinningDuration_1: function (a) { this.wheelSpinningDuration = a; }, setTargetPosition_0: function () { this.animatorWheel.setTargetPosition_1(this.determineTargetPosition_0()); if (0 != this.skipNumber && this.animatorWheel.getNumberOfPositions_0() > this.skipNumber) { var a = this.determineTargetPosition_0() - this.animatorWheel.getPosition_0(); 0 > a && (a += this.animatorWheel.getNumberOfPositions_0()); this.animatorWheel.setSkipTargetOnce_1(0 != a && a <= this.skipNumber && !this.isTurboEnabled_0()); } }, setCredits_1: function (a) { this.credits = a; }, setBetPerLine_1: function (a) { this.betPerLine = a; }, setTurbo_1: function (a) { this.turbo = a; this.superGameCounter.update_0(); a && 0 < this.getWinCash_0() && !this.winFieldCountingFinished && (this.getSlotConsole_0().setCredits_2(this.credits, !0), this.getSlotConsole_0().setWin_2(0, !0)); }, setActivePlayer_1: function (a) { this.activePlayer = a; }, setInReplayMode_1: function (a) { this.inReplayMode = a; }, setInSilentMode_1: function (a) { this.inSilentMode = a; null != this.animatorWheel && this.animatorWheel.setInSilentMode_1(a); }, setAutoPlaying_1: function (a) { this.autoPlaying = a; }, skipOnceIfLessThan_1: function (a) { this.skipNumber = a; }, run_0: function () { for (var a = this.getSuperGameListeners_0().clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).targetPositionReached_0(); }, numberOfLinesChanged_1: function (a) {}, betPerLineChanged_1: function (a) {}, click_1: function (a) {}, actionCompleted_0: function () { this.winFieldCountFinished_0(); }, winFieldCountFinished_0: function () { this.winFieldCountingFinished || ((this.winFieldCountingFinished = !0), this.run_0()); }, superGamesCounted_1: function (a) { null != this.counterSuperGames && this.counterSuperGames.isAlive_0() && this.counterSuperGames.setText_1("" + a); a == this.getBalance_0() && (this.getSlotConsole_0().setWinSuperGames_3(0, this.getLabel_0(), !0), this.getSlotConsole_0().setWin_2(0, !0), this.skinManager.getTimer_0().triggerCallbackAfter_2(this, this.isTurboEnabled_0() ? 250 : 500)); }, up_1: function (a) {}, down_1: function (a) {}, gameModeChanged_1: function (a) {}, getSkinManager_0: function () { return this.skinManager; }, getCounter_0: function () { return this.counterSuperGames; }, superGamesCountedFinished_0: function () {}, getSuperGameCounter_0: function () { return this.superGameCounter; }, }, "GT221", [Runnable, GT454] ), GT63 = Class.extend( { initialConstructor_0: function () { this.sg = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.sg = null; this.sg = a; }, run_0: function () { this.sg.getSuperGameCounter_0().update_0(); this.sg.getSuperGameCounter_0().run_0(); }, }, "GT63", [Runnable] ), GT301 = Class.extend( { initialConstructor_0: function () { this.timer = this.sg = null; this.value = this.countTo = 0; this.superGamesField = null; this.totalcounter = 0; this.turbo = this.stopped = !1; this.soundPlayer = this.soundSuperGameCounter = null; this.mintime = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.timer = this.sg = null; this.value = this.countTo = 0; this.superGamesField = null; this.totalcounter = 0; this.turbo = this.stopped = !1; this.soundPlayer = this.soundSuperGameCounter = null; this.mintime = 0; this.sg = a; this.timer = a.getSkinManager_0().getTimer_0(); this.superGamesField = a.getCounter_0(); this.turbo = a.isTurboEnabled_0(); this.soundSuperGameCounter = d; this.soundPlayer = a.getSkinManager_0().getSoundPlayer_0(); this.totalcounter = 0; this.stopped = !1; this.mintime = b; }, update_0: function () { this.totalcounter = 0; this.stopped = !1; this.timer = this.sg.getSkinManager_0().getTimer_0(); this.superGamesField = this.sg.getCounter_0(); this.value = this.sg.getBalance_0() - this.sg.getWinSuperGames_0(); this.countTo = this.sg.getBalance_0(); this.turbo = this.sg.isTurboEnabled_0(); this.soundPlayer = this.sg.getSkinManager_0().getSoundPlayer_0(); }, stop_0: function () { this.stopped = !0; this.sg.superGamesCounted_1(this.value); }, setTurbo_1: function (a) { this.turbo = a; }, run_0: function () { if (!this.stopped) { this.countTo > this.value ? this.value++ : this.value--; null != this.superGamesField && (this.superGamesField.setText_1("" + this.value), this.sg.getSlotConsole_0().setSuperGames_4(this.value, this.sg.getLabel_0(), this.sg.getColor_0(), !0), this.sg.getSlotConsole_0().setWinSuperGames_3(this.countTo - this.value, this.sg.getLabel_0(), !0), null != this.soundSuperGameCounter && null != this.soundPlayer && this.soundPlayer.start_1(this.soundSuperGameCounter)); if (this.value != this.countTo) { var a = this.mintime; this.totalcounter++; this.timer.triggerCallbackAfter_2(this, Integer.truncate_1(Math.round_1(a))); } else this.stop_0(); null != this.superGamesField && instanceOf(this.superGamesField, GT1560) && this.superGamesField.hide_1(0 == this.value); } }, }, "GT301", [Runnable] ); GT221.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT221.prototype.CURRENCY_TEXT_ID = GT1677.prototype.generateID_0(); var GT476 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT476.prototype.ID; }, getConsoleIdentifier_0: function () { return "AfterCollectWin"; }, enter_1: function (a) { this.getGui_0().getSlotConsole_0().setCredits_2(this.getSlotState_0().getCredits_0(), !0); a = this.getGui_0().getSlotState_0().getSuperGameState_0(); var b = this.getSlotState_0().getSuperGameState_0().getBalance_0(); this.getGui_0().getSlotConsole_0().setSuperGames_4(b, a.getLabel_0(), a.getColor_0(), !0); a = this.getGui_0().getSlotState_0().getTimeToWaitAfterCollect_0(); 0 < a ? this.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT569(this), a) : this.fireStateFinished_0(); }, exit_0: function () { this.getGui_0().getBaseGameMelodies_0().reduceVolume_1(!1); }, toString: function () { return "GuiStateAfterCollectWin (" + this.getId_0() + ")"; }, }, "GT476", [] ); GT476.prototype.ID = GT907.prototype.generateID_0(); var GT729 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT729.prototype.ID; }, getConsoleIdentifier_0: function () { return "BeforeSpin"; }, enter_1: function (a) { this.onEnterResetWinTabs_0(); this.onEnterStartWinSwitcher_1(this.getSlotState_0().getNumberOfWins_0()); this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); this.getGui_0().updatePaytableIfAvailable_0(); this.fireStateFinished_0(); }, onEnterUpdateConsole_1: function (a) { this.getGui_0().updateConsole_0(); this.updateConsoleText_1(this.getGui_0()); var b = this.getSlotState_0().getFreeSpinState_0(); b.isFreeSpinsRunning_0() && b.isForceAutoplayInFreeGames_0() ? a.setConsoleForCurrentStateInActive_0() : this.updateConsoleButtonState_1(this.getGui_0()); }, onEnterResetWinTabs_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllTabs_1(!1); for (var b = 0; b < this.getSlotState_0().getNumberOfLines_0(); b++) a.showTab_2(b, !0); b = this.getGui_0().getWinSwitcher_0().getCurrentWin_0(); null != b && instanceOf(b, GT1599) && a.showTab_2(b.line, !0); }, onEnterStartWinSwitcher_1: function (a) { 0 < a && !this.getGui_0().getWinSwitcher_0().isRunning_0() && (this.getGui_0().updateStoppedReels_0(), this.getGui_0().startWinSwitcher_1(!0)); }, notifySlotEvent_1: function (a) { if (a.getId_0() == GT1354.prototype.PAYTABLE_NEXT) (a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE)), null != a && (a.addPageChangeAnimationFinishCallback_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), a.getPageIndex_0(), !1)), a.showNextPage_0(), this.getGui_0().showWinLines_0()); else if (a.getId_0() == GT984.prototype.ID) { a = a.getGesture_0(); var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS); b.isAlive_0() && (a.getId_0() == GT652.prototype.ID ? b.isAbsPositionInside_2(a.getUpEvent_0().getX_0(), a.getUpEvent_0().getY_0()) && this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.STARTSPIN)) : a.getId_0() == GT969.prototype.ID ? b.isAbsPositionInside_2(a.getDownEvent_0().getX_0(), a.getDownEvent_0().getY_0()) && Math.abs_1(a.getVelocityY_0()) > Math.abs_1(a.getVelocityX_0()) && 700 < a.getVelocityY_0() && this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.STARTSPIN)) : a.getId_0()); } this.updateConsoleButtonState_1(this.getGui_0()); }, exit_0: function () { this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES_NET).showAllLines_1(!1); var a = this.getGui_0().getSlotConsole_0(), b = this.getSlotState_0().getFreeSpinState_0(); b.isFreeSpinsRunning_0() && b.isForceAutoplayInFreeGames_0() ? a.setConsoleForCurrentStateInActive_0() : a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); a.setAutoplayCounter_1(this.getSlotState_0().getAutoPlayCounter_0()); }, toString: function () { return "GuiStateBeforeSpin (" + this.getId_0() + ")"; }, }, "GT729", [] ); GT729.prototype.updateConsoleButtonState_1 = function (a) { var b = a.getSlotState_0(); a = a.getSlotConsole_0(); var d = b.getFreeSpinState_0(); a.setActive_1(b.getCasinoState_0().isActivePlayer_0() && b.getCasinoState_0().isActionAllowed_0()); b.isFreeRoundsMode_0() && b.getFreeRoundsPlayed_0() == b.getFreeRoundsWon_0() && a.setActive_1(!1); b.isAutoPlaying_0() ? 1e3 <= b.getDefinition_0().getMinimumRoundDuration_0() ? a.setState_1(GT725.prototype.AUTO_SPIN) : a.setState_1(GT725.prototype.AUTO_SPIN_STOP_SPIN) : d.isFreeSpinsRunning_0() && !d.isAtLastFreeSpin_0() ? a.setState_1(GT725.prototype.BEFORE_FREESPIN) : this.setConsoleStateBeforeSpin_2(b, a); }; GT729.prototype.setConsoleStateBeforeSpin_2 = function (a, b) { a.hasZeroTicketsRemaining_0() ? b.setState_1(GT725.prototype.BEFORE_SPIN_ZERO_CREDITS) : a.hasInsufficientTicketsToContinuePlaying_0() || a.hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? b.setState_1(GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET) : b.setState_1(GT725.prototype.BEFORE_SPIN); b.setHighlightStatusText_1(this.determineConsoleHighlightStatusText_1(a)); }; GT729.prototype.updateConsoleText_1 = function (a) { var b = a.getSlotState_0(), d = a.getSlotConsole_0(), e = b.getFreeSpinState_0(); b.isAutoPlaying_0() || (d.setWin_2(0, !0), e.isFreeSpinsRunning_0() && !e.isAtLastFreeSpin_0() ? ((b = ""), e.isBeforeFirstFreeSpin_0() ? (b = a.getSkinManager_0().getText_1("${console_supergamestart}")) : ((b = a.getSkinManager_0().getText_1("${console_bonusgametext}")), (b = GT1677.prototype.replaceInString_3(b, "#0", "" + e.getFreeSpinsPlayed_0())), (b = GT1677.prototype.replaceInString_3(b, "#1", "" + e.getFreeSpinsWon_0()))), d.setFreeGames_2(e.getFreeSpinsPlayed_0(), e.getFreeSpinsWon_0()), d.setStatusText_1(b)) : b.isAutoPlaying_0() || d.setStatusText_1(a.getSkinManager_0().getText_1("${console_beforespintext}"))); }; GT729.prototype.determineConsoleHighlightStatusText_1 = function (a) { return a.hasInsufficientTicketsToPlayWithCurrentBetSettings_0() && !a.hasInsufficientTicketsToContinuePlaying_0() ? !0 : !1; }; GT729.prototype.ID = GT907.prototype.generateID_0(); var GT173 = GT729.extend( { initialConstructor_0: function () { GT729.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT729.prototype.initialConstructor_1.call(this, a); }, exit_0: function () { GT729.prototype.exit_0.call(this); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbolColorTransformation_1(null); }, toString: function () { return "GUIStateBeforeSpinExpandingSymbols (" + this.getId_0() + ")"; }, }, "GT173", [] ), GT777 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT777.prototype.ID; }, getConsoleIdentifier_0: function () { return "ChangeBet"; }, enter_1: function (a) { this.getGui_0().showWinLines_0(); a = this.getGui_0().getSlotConsole_0(); var b = a.getBetPerLine_0(), d = a.getNumberOfLines_0(), e = a.getGameMode_0(), f = a.getBetMultiplier_0(); this.onEnterUpdateConsole_1(a); this.getGui_0().updatePaytableIfAvailable_0(); this.onEnterPlayBetChangedSound_5(a, b, d, e, f); this.fireStateFinished_0(); }, onEnterUpdateConsole_1: function (a) { this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); this.updateConsoleButtonState_1(this.getGui_0()); a.setWin_2(0, !0); a.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_beforespintext}")); this.getGui_0().updateConsole_0(); }, onEnterPlayBetChangedSound_5: function (a, b, d, e, f) { var g = this.getGui_0().getSkinManager_0().getSoundPlayer_0(); if (null != g && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()) { var k = a.getBetPerLine_0(), m = a.getNumberOfLines_0(), n = a.getGameMode_0(), p = a.getBetMultiplier_0(), q = this.getSlotState_0().getDefinition_0().getBaseBets_0().toArray_0(), r = this.getSlotState_0().getDefinition_0().getPlayLines_0().toArray_0(), t = this.getSlotState_0().getDefinition_0().getBetMultipliers_0().toArray_0(); if (k != b || m != d || n != e || p != f) (b = k > b && (a.isBetPerLineSpinnerAtLastStep_0() || (1 < q.length && k == q[q.length - 1]))), (d = m > d && (a.isLinesSpinnerAtLastStep_0() || (1 < r.length && m == r[r.length - 1]))), (f = p > f && 1 < t.length && p == t[t.length - 1]), (a = (b || d || f) && null != a.getSoundForMaxBetChange_0() ? a.getSoundForMaxBetChange_0() : a.getSoundForBetChange_0()), null != a && g.start_1(a); } }, notifySlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.PAYTABLE_NEXT ? ((a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE)), null != a && a.isAlive_0() && (a.addPageChangeAnimationFinishCallback_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), a.getPageIndex_0(), !1)), a.showNextPage_0())) : (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); this.updateConsoleButtonState_1(this.getGui_0()); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES_NET); a.showAllLines_1(!1); var b = this.getGui_0().getSlotConsole_0(); b.setStatusText_1(""); b.setHighlightStatusText_1(!1); b.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); for (var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES), d = 0; d < this.getSlotState_0().getNumberOfLines_0(); d++) a.isTabVisible_1(d) && b.showTab_2(d, !0); a.showAllTabs_1(!1); }, toString: function () { return "GuiStateChangeBet (" + this.getId_0() + ")"; }, }, "GT777", [] ); GT777.prototype.updateConsoleButtonState_1 = function (a) { var b = a.getSlotState_0(); a = a.getSlotConsole_0(); a.setActive_1(b.getCasinoState_0().isActivePlayer_0() && b.getCasinoState_0().isActionAllowed_0()); b.hasZeroTicketsRemaining_0() ? b.isPaytableOpen_0() || a.setState_1(GT725.prototype.BEFORE_SPIN_ZERO_CREDITS) : b.hasInsufficientTicketsToContinuePlaying_0() || b.hasInsufficientTicketsToPlayWithCurrentBetSettings_0() ? b.isPaytableOpen_0() || a.setState_1(GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET) : b.isPaytableOpen_0() || a.setState_1(GT725.prototype.BEFORE_SPIN_CHANGE_BET); a.setHighlightStatusText_1(GT729.prototype.determineConsoleHighlightStatusText_1(b)); }; GT777.prototype.ID = GT907.prototype.generateID_0(); var GT731 = GT1254.extend( { initialConstructor_0: function () { this.totalRoundWinField = this.totalRoundWinFieldHandler = this.handler = null; this.fullCredits = 0; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.totalRoundWinField = this.totalRoundWinFieldHandler = this.handler = null; this.fullCredits = 0; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT731.prototype.ID; }, getConsoleIdentifier_0: function () { return "CollectWin"; }, enter_1: function (a) { GT1560.prototype.isAlive_1(this.totalRoundWinField) || (this.totalRoundWinField = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN)); a = this.getSlotState_0().getWinSum_1(!0); var b = 0 == a; this.fullCredits = this.getSlotState_0().getCredits_0(); var d = this.getGui_0().getSlotConsole_0(); if (this.checkCollectToTotalRoundWinField_0()) { if (this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0()) { var e = d.getTotalRoundWin_0() + a; 0 < e && (b = !1); this.fullCredits += e; } } else this.fullCredits += a; b ? (d.setCredits_2(this.fullCredits, !0), this.getSlotState_0().isFreeRoundsMode_0() && d.setFreeRoundsWinnings_1(this.getSlotState_0().getFreeRoundsWinnings_0() + a), this.fireStateFinished_0()) : ((this.handler = new GT399(this)), GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() ? GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setWin_3(a, !1, this.handler) : (d.addConsoleListener_1(this.handler), this.onEnterUpdateConsole_1(d), this.onEnterHandleBackgroundSoundVolume_0(), this.onEnterHandleCreditsTransfer_2(d, a))); }, checkCollectToTotalRoundWinField_0: function () { var a = this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && GT1560.prototype.isAlive_1(this.totalRoundWinField), b = this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_GAMBLE; return a && !b; }, onEnterUpdateConsole_1: function (a) { var b = this.getSlotState_0().getFreeSpinState_0(); (b.isForceAutoplayInFreeGames_0() && b.isFreeSpinsRunning_0()) || (this.getSlotState_0().isAutoPlaying_0() ? a.setState_1(GT725.prototype.AUTO_SPIN_SKIP_WIN) : this.getSlotState_0().isFastSpinEnabled_0() ? a.setState_1(GT725.prototype.FASTSPIN) : a.setState_1(GT725.prototype.SKIPCOLLECT)); b.isForceAutoplayInFreeGames_0() && (a.setWin_2(this.getSlotState_0().getWinSum_1(!0), !0), b.isFreeSpinsRunning_0() && !b.isBeforeFirstFreeSpin_0() ? a.setConsoleForCurrentStateInActive_0() : b.isFreeSpinsRunning_0() && b.isBeforeFirstFreeSpin_0() && a.setState_1(GT725.prototype.SKIPCOLLECT)); }, onEnterHandleBackgroundSoundVolume_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolumeDuringCollect_1(!0); }, handleCreditsTransferToTotalRoundWinField_2: function (a, b) { this.totalRoundWinFieldHandler = new GT46(this); if (0 < b && !this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0()) { var d = this.getSlotState_0().getTotalBet_0(), d = GT731.prototype.determineMoneyTransferTime_1(b / d); this.totalRoundWinField.addFinishCallback_1(this.totalRoundWinFieldHandler); a.setTotalRoundWin_2(a.getTotalRoundWin_0() + b, d); a.setWin_3(0, !1, d); this.getSlotState_0().isFreeRoundsMode_0() && a.setFreeRoundsWinnings_2(this.getSlotState_0().getFreeRoundsWinnings_0() + b, d); } else a.setWin_2(0, !0), a.setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0()), this.totalRoundWinFieldHandler.skipRegularWins_0(); }, handleCreditsTransferToBalanceField_2: function (a, b) { var d = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_FIELD_CREDIT), e = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_FIELD_WIN); GT1560.prototype.isAlive_1(d) && instanceOf(d, GT1410) && GT1560.prototype.isAlive_1(e) && instanceOf(e, GT1410) && (null != d.getSound_0() && null != e.getSound_0() && e.setSound_2(null, this.getGui_0().getSoundPlayer_0()), null != d.getEndSound_0() && null != e.getEndSound_0() && e.setEndSound_2(null, this.getGui_0().getSoundPlayer_0())); var f = this.getSlotState_0().getTotalBet_0(), f = GT731.prototype.determineMoneyTransferTime_1(b / f); a.setCredits_3(this.getSlotState_0().getCredits_0() + b, !1, f); (this.getSlotState_0().isAutoPlaying_0() && 0 == this.getSlotState_0().getSuperGamesSum_1(!0)) || (a.setWin_3(0, !1, f), this.getSlotState_0().isFreeRoundsMode_0() && a.setFreeRoundsWinnings_2(this.getSlotState_0().getFreeRoundsWinnings_0() + b, f)); GT1560.prototype.isAlive_1(d) || (GT1560.prototype.isAlive_1(e) && !this.getSlotState_0().isAutoPlaying_0()) || this.fireStateFinished_0(); }, onEnterHandleCreditsTransfer_2: function (a, b) { this.checkCollectToTotalRoundWinField_0() ? this.handleCreditsTransferToTotalRoundWinField_2(a, b) : this.handleCreditsTransferToBalanceField_2(a, b); }, requestFinish_0: function () { var a = this.getGui_0().getSlotConsole_0(); if (GT1560.prototype.isAlive_1(a)) { a.removeConsoleListener_1(this.handler); a.setCredits_2(this.fullCredits, !0); a.setWin_2(0, !0); this.getSlotState_0().isFreeRoundsMode_0() && a.setFreeRoundsWinnings_1(this.getSlotState_0().getFreeRoundsWinnings_0() + this.getSlotState_0().getWinSum_1(!0)); if (this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && GT1560.prototype.isAlive_1(this.totalRoundWinField)) { null != this.totalRoundWinFieldHandler && this.totalRoundWinFieldHandler.disable_0(); this.totalRoundWinField.removeFinishCallback_1(this.totalRoundWinFieldHandler); var b = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0(), b = 0 < b ? b : this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_GAMBLE && (b = this.getSlotState_0().getWinSum_1(!0)); a.setTotalRoundWin_1(b); } var b = this.getSlotState_0().getSuperGameState_0().getLabel_0(), d = this.getSlotState_0().getSuperGamesSum_1(!0) + this.getSlotState_0().getSuperGameState_0().getBalance_0(); a.setWinSuperGames_3(0, b, !0); a.setSuperGames_4(d, b, this.getSlotState_0().getSuperGameState_0().getColor_0(), !0); a.setConsoleForCurrentStateInActive_0(); } this.fireStateFinished_0(); }, onExitHandleBackgroundSoundVolume_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolumeDuringCollect_1(!1); }, exit_0: function () { this.onExitHandleBackgroundSoundVolume_0(); this.getSlotState_0().isAutoPlaying_0() && this.getGui_0().getSlotConsole_0().setWin_2(0, !0); this.getGui_0().getSlotConsole_0().removeConsoleListener_1(this.handler); this.handler = null; GT1560.prototype.isAlive_1(this.totalRoundWinField) && this.totalRoundWinField.removeFinishCallback_1(this.totalRoundWinFieldHandler); this.totalRoundWinFieldHandler = null; this.onExitSetTotalRoundWin_0(); }, onExitSetTotalRoundWin_0: function () { this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() || this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(this.getSlotState_0().getWinSum_1(!0)); }, toString: function () { return "GuiStateCollectWin (" + this.getId_0() + ")"; }, }, "GT731", [] ), GT399 = Class.extend( { initialConstructor_0: function () { this.superGameState = this.state = null; this.nSuperGamesTotal = this.nSuperGamesWon = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.superGameState = this.state = null; this.nSuperGamesTotal = this.nSuperGamesWon = 0; this.state = a; this.superGameState = a.getSlotState_0().getSuperGameState_0(); this.nSuperGamesWon = a.getSlotState_0().getSuperGamesSum_1(!0); this.nSuperGamesTotal = this.nSuperGamesWon + this.superGameState.getBalance_0(); }, winFieldCountFinished_0: function () { GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() ? (this.state.getGui_0().getSlotConsole_0().setWinSuperGames_3(0, this.superGameState.getLabel_0(), !1), this.state.fireStateFinished_0()) : 0 < this.nSuperGamesWon ? this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(this, 1e3) : this.state.fireStateFinished_0(); }, actionCompleted_0: function () { this.winFieldCountFinished_0(); }, superGamesCounted_1: function (a) { a == this.nSuperGamesTotal && this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT569(this.state), 1e3); }, superGamesCountedFinished_0: function () { this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(new GT569(this.state), 1e3); }, numberOfLinesChanged_1: function (a) {}, betPerLineChanged_1: function (a) {}, click_1: function (a) {}, numberOfAutoPlaysChanged_1: function (a) {}, consoleStateChanged_2: function (a, b) {}, run_0: function () { this.state.getGui_0().getSlotConsole_0().setWinSuperGames_3(0, this.superGameState.getLabel_0(), !1); this.state .getGui_0() .getSlotConsole_0() .setSuperGames_5(this.nSuperGamesTotal - this.nSuperGamesWon, this.nSuperGamesTotal, this.superGameState.getLabel_0(), this.superGameState.getColor_0(), !1); }, up_1: function (a) {}, down_1: function (a) {}, creditsHidden_1: function (a) {}, gameModeChanged_1: function (a) {}, }, "GT399", [GT547, Runnable, GT454] ), GT107 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { if (null != this.state) { var a = this.state.getGui_0().getSlotConsole_0(), b = this.state.getSlotState_0().getTotalBet_0(), d = this.state.getSlotState_0().getCredits_0() + a.getTotalRoundWin_0(), b = GT731.prototype.determineMoneyTransferTime_1(a.getTotalRoundWin_0() / b); a.setCredits_3(d, !1, b); } }, }, "GT107", [Runnable] ), GT46 = Class.extend( { initialConstructor_0: function () { this.collectHandler = this.state = null; this.active = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.collectHandler = this.state = null; this.active = !1; this.state = a; this.collectHandler = new GT107(a); this.active = !0; }, disable_0: function () { this.active = !1; this.state.getGui_0().getTimer_0().removeCallback_2(this.collectHandler, !1); }, skipRegularWins_0: function () { this.active && null != this.state && null != this.collectHandler && this.collectHandler.run_0(); }, run_0: function () { this.active && null != this.state && (this.state.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() ? (null != this.state.totalRoundWinField && this.state.totalRoundWinField.removeFinishCallback_1(this), this.state.getGui_0().getTimer_0().triggerCallbackAfter_2(this.collectHandler, 1e3)) : this.state.fireStateFinished_0()); }, }, "GT46", [Runnable] ); GT731.prototype.determineMoneyTransferTime_1 = function (a) { a = 250 + Integer.truncate_1(500 * Math.sqrt_1(1 > a ? 1 : a)); return 7e3 < a ? 7e3 : a; }; GT731.prototype.ID = GT907.prototype.generateID_0(); var GT620 = GT1254.extend( { initialConstructor_0: function () { this.totalRoundWinField = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.totalRoundWinField = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT620.prototype.ID; }, getConsoleIdentifier_0: function () { return "DecideGamble"; }, enter_1: function (a) { this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() ? this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_GAMBLE) : this.getGui_0().getSlotConsole_0().setState_1(GT725.prototype.BEFORE_GAMBLE_GAMBLEINACTIVE); this.handleStartWinSwitcherOnEnter_0(); this.getGui_0().getSlotConsole_0().setWin_2(this.getSlotState_0().getWinSum_1(!0), !0); a = this.getSlotState_0().getSuperGameState_0(); var b = this.getSlotState_0().getSuperGamesSum_1(!0); this.getGui_0().getSlotConsole_0().setWinSuperGames_3(b, a.getLabel_0(), !0); a = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0() - this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && 0 < a && this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() && (0 < this.getSlotState_0().getWinSum_1(!0) && this.handleCreditsTransferToTotalRoundWinField_0(), this.getGui_0().getFreeGameSounds_0().stopBackgroundSound_0()); this.checkPlayDecideGambleSound_0() && this.getGui_0().getSlotConsole_0().startDecideGambleSound_1(!0); this.fireStateFinished_0(); }, notifySilentMode_1: function (a) { GT1254.prototype.notifySilentMode_1.call(this, a); this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isBeforeFirstFreeSpin_0() && this.getGui_0().getSlotConsole_0().startDecideGambleSound_1(this.checkPlayDecideGambleSound_0()); }, handleStartWinSwitcherOnEnter_0: function () { 0 < this.getSlotState_0().getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && (this.getGui_0().updateStoppedReels_0(), this.getGui_0().startWinSwitcher_1(!0)); }, checkPlayDecideGambleSound_0: function () { return this.getSlotState_0().getGambleState_0().isMoreGamblePossible_0() && !this.getGui_0().getFreeGameSounds_0().isBackgroundSoundRunning_0(); }, notifySlotEvent_1: function (a) { (a.getId_0() != GT1354.prototype.MODAL_DIALOG_OPENED && a.getId_0() != GT1354.prototype.MODAL_DIALOG_CLOSED) || this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()); a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && !this.getSlotState_0().getFreeSpinState_0().isBeforeFirstFreeSpin_0() && this.getGui_0().getFreeGameSounds_0().hasBackgroundSound_0() && !this.getGui_0().isInSilentMode_0() && this.getGui_0().getSlotConsole_0().startDecideGambleSound_1(!1); }, requestFinish_0: function () { this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() && (this.getGui_0().getSlotConsole_0().setWin_2(0, !0), this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0())); }, exit_0: function () { this.getGui_0().getSlotConsole_0().startDecideGambleSound_1(!1); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isAtLastFreeSpin_0() && (this.getGui_0().getSlotConsole_0().setWin_2(0, !0), this.getGui_0().getSlotConsole_0().setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0())); }, handleCreditsTransferToTotalRoundWinField_0: function () { GT1560.prototype.isAlive_1(this.totalRoundWinField) || (this.totalRoundWinField = this.getGui_0().getMainContainer_0().findDescendant_1(GT834.prototype.ID_FIELD_TOTALROUNDWIN)); var a = this.getSlotState_0().getTotalBet_0(), a = GT731.prototype.determineMoneyTransferTime_1(this.getSlotState_0().getWinSum_1(!0) / a); this.getGui_0().getSlotConsole_0().setWin_3(0, !1, a); this.getGui_0().getSlotConsole_0().setTotalRoundWin_2(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0(), a); }, toString: function () { return "GuiStateDecideGamble (" + this.getId_0() + ")"; }, }, "GT620", [] ); GT620.prototype.ID = GT907.prototype.generateID_0(); var GT621 = GT1254.extend( { initialConstructor_0: function () { this.helper = this.finishCallback = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.helper = this.finishCallback = null; GT1254.prototype.initialConstructor_1.call(this, a); this.helper = new GT1570(a.getSlotState_0(), a.isOmitCentsOnPaytableForHighValuesEnabled_0()); }, getId_0: function () { return GT621.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesEnd"; }, isSupposedToProceedWithAutoplay_0: function () { return ( (!this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() || (this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && !this.getSlotState_0().getFreeSpinState_0().isStopAutoplayAfterFreeGames_0())) && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().isAutoPlaying_0() ); }, enter_1: function (a) { this.finishCallback = new GT86(this); this.onEnterStartWinSwitcher_1(this.getSlotState_0().getNumberOfWins_0()); this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); this.onEnterChangeBackground_0(); this.onEnterChangeLogo_0(); this.onEnterUpdatePaytable_0(); this.createFreeGameEndScreen_0(); this.onEnterHandleFreeGameSounds_1(this.getGui_0().getFreeGameSounds_0()); }, onEnterStartWinSwitcher_1: function (a) { 0 < a && !this.getGui_0().getWinSwitcher_0().isRunning_0() && (this.getGui_0().updateStoppedReels_0(), this.getGui_0().startWinSwitcher_1(!0)); }, onEnterUpdateConsole_1: function (a) { this.isSupposedToProceedWithAutoplay_0() ? a.setConsoleForCurrentStateInActive_0() : (a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()), GT729.prototype.setConsoleStateBeforeSpin_2(this.getSlotState_0(), a)); a.setHighlightBackgroundStatusText_1(!1); a.setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getFreeSpinWinnings_0()); a.setWin_2(0, !0); a.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_beforespintext}")); a.setLastWin_1(this.getSlotState_0().getLastWin_0()); GT514.prototype.setFreeSpinText_1(null); }, onEnterChangeBackground_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); a.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackground_0().create_2(a, this.getGui_0().getSkinManager_0()); instanceOf(a, GT1158) && a.reflow_0(); }, onEnterChangeLogo_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAME_LOGO_CONTAINER); GT1560.prototype.isAlive_1(a) && (a.destroyChildren_0(), null != this.getGui_0().getSkin_0().gameLogo_0() && this.getGui_0().getSkin_0().gameLogo_0().size_2(a.getWidth_0(), a.getHeight_0()).create_2(a, this.getGui_0().getSkinManager_0())); }, onEnterUpdatePaytable_0: function () { this.getGui_0().updatePaytableIfAvailable_0(); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); null != a && 0 < a.getChildCount_0() && (a.showFirstPage_0(), this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), a.getPageIndex_0(), !0))); }, createFreeGameEndScreen_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); GT1650.prototype.assertExp_2(instanceOf(this.getGui_0().getSkin_0().freeGameEndScreen_0(), GT383), "freegamesstartendscreen is no freegamesstartendscreen"); a = this.getGui_0().getSkin_0().freeGameEndScreen_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); this.helper.shouldOmitCentsIfZero_0() && a.setOmitCentPolicy_1(GT711.prototype.OMIT_CENT_IF_ZERO); a.setFreeGamesPlayed_1(this.getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0()); a.setFreeGamesWinnings_1(this.getSlotState_0().getFreeSpinState_0().getFreeSpinWinnings_0()); }, onEnterHandleFreeGameSounds_1: function (a) { a.stopBackgroundSound_0(); this.shouldSkipIntro_0() ? this.fireStateFinished_0() : a.hasFreeGamesEndSound_0() ? this.getSlotState_0().getFreeSpinState_0().getFreeSpinWinnings_0() > 10 * this.getSlotState_0().getTotalBet_0() ? a.startFreeGamesEndSoundLong_1(this.finishCallback) : a.startFreeGamesEndSound_1(this.finishCallback) : this.isSupposedToProceedWithAutoplay_0() && 0 < a.getFreeGamesBannerPresentationDuration_0() ? this.freeGamesEndSoundSkipped_0() : this.freeGamesEndSoundFinished_0(); }, freeGamesEndSoundSkipped_0: function () { this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, this.getGui_0().getFreeGameSounds_0().getFreeGamesBannerPresentationDuration_0()); }, freeGamesEndSoundFinished_0: function () { this.fireStateFinished_0(); }, notifySlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.PAYOUT_FINISHED ? (this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()), this.getGui_0().updateConsole_0()) : GT1254.prototype.notifySlotEvent_1.call(this, a); }, requestFinish_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); this.getGui_0().getFreeGameSounds_0().stopEndSounds_0(); var a = this.getGui_0().getSlotConsole_0(); a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); a.setHighlightStatusText_1(GT729.prototype.determineConsoleHighlightStatusText_1(this.getSlotState_0())); this.fireStateFinished_0(); }, onExitStartBaseGameMelody_0: function () { this.getGui_0().getBaseGameMelodies_0().isPlaying_0() || this.getGui_0().startBaseGameMelody_0(); }, onExitCreateRunningReels_1: function (a) { return this.getGui_0().getSkin_0().reels_0().create_2(a, this.getGui_0().getSkinManager_0()).findDescendant_1(GT1618.prototype.REELS); }, onExitCreateStoppedReels_1: function (a) { return this.getGui_0().getSkin_0().stoppedReels_0().create_2(a, this.getGui_0().getSkinManager_0()); }, onExitCreateSymbolHighlight_1: function (a) { return this.getGui_0().getSkin_0().highlight_0().create_2(a, this.getGui_0().getSkinManager_0()); }, exit_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); this.getGui_0().getFreeGameSounds_0().stopEndSounds_0(); this.onExitStartBaseGameMelody_0(); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateRunningReels_1(a); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); var b = this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0(); 0 != b && a.setMinDuration_1(Math.max_2(b - a.getFullStopDelay_0(), a.getMinDuration_0())); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateStoppedReels_1(a); this.getGui_0().updateStoppedReels_0(); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); b.destroyChildren_0(); b = this.onExitCreateSymbolHighlight_1(b); b.setStoppedReels_1(a); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(b); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); this.finishCallback = null; }, toString: function () { return "GuiStateFreeGamesEnd (" + this.getId_0() + ")"; }, }, "GT621", [] ), GT86 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.freeGamesEndSoundFinished_0(); }, }, "GT86", [Runnable] ); GT621.prototype.ID = GT907.prototype.generateID_0(); var GT573 = GT1254.extend( { initialConstructor_0: function () { this.finishCallback = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.finishCallback = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT573.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesMore"; }, isSupposedToProceedWithAutoplay_0: function () { return ( (!this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() || this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().isAutoPlaying_0() ); }, enter_1: function (a) { this.finishCallback = new GT73(this); this.onEnterStartWinSwitcher_1(this.getSlotState_0().getNumberOfWins_0()); this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); this.onEnterChangeBackground_0(); this.createFreeGameMoreScreen_0(); this.onEnterHandleFreeGameSounds_1(this.getGui_0().getFreeGameSounds_0()); }, onEnterStartWinSwitcher_1: function (a) { 0 < a && !this.getGui_0().getWinSwitcher_0().isRunning_0() && (this.getGui_0().updateStoppedReels_0(), this.getGui_0().startWinSwitcher_1(!0)); }, determineFreeSpinsText_1: function (a) { var b = GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() ? "${neon_console_bonusgametext}" : "${console_bonusgametext}", b = this.getGui_0().getSkinManager_0().getText_1(b), b = GT1677.prototype.replaceInString_3(b, "#0", "" + a.getFreeSpinsPlayed_0()); return (b = GT1677.prototype.replaceInString_3(b, "#1", "" + a.getFreeSpinsWon_0())); }, onEnterUpdateConsole_1: function (a) { this.isSupposedToProceedWithAutoplay_0() ? a.setConsoleForCurrentStateInActive_0() : a.setState_1(GT725.prototype.BEFORE_FREESPIN); a.setTotalRoundWin_1(this.getSlotState_0().getFreeSpinState_0().getWinMeter_0()); a.setWin_2(0, !0); a.setFreeGames_2(this.getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0(), this.getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0()); var b = this.determineFreeSpinsText_1(this.getSlotState_0().getFreeSpinState_0()); a.setStatusText_1(b); a.setLastWin_1(this.getSlotState_0().getLastWin_0()); GT514.prototype.setFreeSpinText_1(b); }, onEnterChangeBackground_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); a.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); instanceOf(a, GT1158) && a.reflow_0(); }, createFreeGameMoreScreen_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); GT1650.prototype.assertExp_2(instanceOf(this.getGui_0().getSkin_0().freeGameMoreScreen_0(), GT383), "freegamesstartendscreen is no freegamesstartendscreen"); a = this.getGui_0().getSkin_0().freeGameMoreScreen_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); a.setFreeGamesWon_1(this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsWonNow_0()); }, onEnterHandleFreeGameSounds_1: function (a) { this.shouldSkipIntro_0() ? this.fireStateFinished_0() : a.hasFreeGamesRetriggerSound_0() ? (a.reduceBackgroundSoundVolume_1(!0), a.startFreeGamesRetriggerSound_1(this.finishCallback)) : this.isSupposedToProceedWithAutoplay_0() && 0 < a.getFreeGamesBannerPresentationDuration_0() ? this.freeGamesRetriggerSoundSkipped_0() : this.freeGamesRetriggerSoundFinished_0(); }, freeGamesRetriggerSoundSkipped_0: function () { this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, this.getGui_0().getFreeGameSounds_0().getFreeGamesBannerPresentationDuration_0()); }, freeGamesRetriggerSoundFinished_0: function () { this.fireStateFinished_0(); }, requestFinish_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); var a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesRetriggerSound_0() && a.stopFreeGamesRetriggerSound_0(); this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); this.fireStateFinished_0(); }, onExitCreateRunningReels_1: function (a) { return this.getGui_0().getSkin_0().reelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()).findDescendant_1(GT1618.prototype.REELS); }, onExitCreateStoppedReels_1: function (a) { return this.getGui_0().getSkin_0().stoppedReelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); }, onExitCreateSymbolHighlight_1: function (a) { return this.getGui_0().getSkin_0().highlightInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); }, exit_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); var a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesRetriggerSound_0() && (a.reduceBackgroundSoundVolume_1(!1), a.stopFreeGamesRetriggerSound_0()); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateRunningReels_1(a); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); var b = this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0(); 0 != b && a.setMinDuration_1(Math.max_2(b - a.getFullStopDelay_0(), a.getMinDuration_0())); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateStoppedReels_1(a); this.getGui_0().updateStoppedReels_0(); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); b.destroyChildren_0(); b = this.onExitCreateSymbolHighlight_1(b); b.setStoppedReels_1(a); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(b); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); this.finishCallback = null; }, toString: function () { return "GuiStateFreeGamesMore (" + this.getId_0() + ")"; }, }, "GT573", [] ), GT73 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.freeGamesRetriggerSoundFinished_0(); }, }, "GT73", [Runnable] ); GT573.prototype.ID = GT907.prototype.generateID_0(); var GT519 = GT1254.extend( { initialConstructor_0: function () { this.finishCallback = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.finishCallback = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT519.prototype.ID; }, getConsoleIdentifier_0: function () { return "FreeGamesStart"; }, isSupposedToProceedWithAutoplay_0: function () { return ( (!this.getSlotState_0().isStopAutoplayAtFeatureScreens_0() || this.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0()) && this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().isAutoPlaying_0() ); }, enter_1: function (a) { this.finishCallback = new GT64(this); this.onEnterStartWinSwitcher_1(this.getSlotState_0().getNumberOfWins_0()); this.onEnterUpdateConsole_1(this.getGui_0().getSlotConsole_0()); this.onEnterChangeBackground_0(); this.onEnterChangeLogo_0(); this.onEnterUpdatePaytable_0(); this.onEnterStopBaseGameMelody_0(); 0 < this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsPlayed_0() ? this.fireStateFinished_0() : this.visualizeFreeGameStart_0(); }, onEnterStartWinSwitcher_1: function (a) { 0 < a && !this.getGui_0().getWinSwitcher_0().isRunning_0() && (this.getGui_0().updateStoppedReels_0(), this.getGui_0().startWinSwitcher_1(!0)); }, onEnterChangeBackground_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER); a.destroyChildren_0(); this.getGui_0().getSkin_0().slotBackgroundInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); instanceOf(a, GT1158) && a.reflow_0(); }, onEnterChangeLogo_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAME_LOGO_CONTAINER); GT1560.prototype.isAlive_1(a) && (a.destroyChildren_0(), null != this.getGui_0().getSkin_0().gameLogoInFreeGames_0() && this.getGui_0().getSkin_0().gameLogoInFreeGames_0().size_2(a.getWidth_0(), a.getHeight_0()).create_2(a, this.getGui_0().getSkinManager_0())); }, onEnterUpdatePaytable_0: function () { this.getGui_0().updatePaytableIfAvailable_0(); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); null != a && 0 < a.getChildCount_0() && (a.showFirstPage_0(), this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), a.getPageIndex_0(), !0))); }, onEnterStopBaseGameMelody_0: function () { this.getGui_0().getBaseGameMelodies_0().isPlaying_0() && this.getGui_0().getBaseGameMelodies_0().stop_0(); }, onEnterUpdateConsole_1: function (a) { this.isSupposedToProceedWithAutoplay_0() ? a.setConsoleForCurrentStateInActive_0() : a.setState_1(GT725.prototype.BEFORE_FREESPIN); var b = this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && (b = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0() - (this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? this.getSlotState_0().getWinSum_1(!0) : 0)); a.setTotalRoundWin_1(b); a.setHighlightBackgroundStatusText_1(!0); a.setWin_2(0, !0); a.setStatusText_1(this.getGui_0().getSkinManager_0().getText_1("${console_supergamestart}")); a.setLastWin_1(this.getSlotState_0().getLastWin_0()); }, createFreeGameStartScreen_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND_CONTAINER); GT1650.prototype.assertExp_2(instanceOf(this.getGui_0().getSkin_0().freeGameStartScreen_0(), GT383), "freegamesstartendscreen is no freegamesstartendscreen"); a = this.getGui_0().getSkin_0().freeGameStartScreen_0().create_2(a, this.getGui_0().getSkinManager_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); a.setFreeGamesWon_1(this.getGui_0().getSlotState_0().getFreeSpinState_0().getFreeSpinsWon_0()); }, visualizeFreeGameStart_0: function () { this.visualizeFreeGameStart_1(this.getGui_0().getFreeGameSounds_0()); }, visualizeFreeGameStart_1: function (a) { this.createFreeGameStartScreen_0(); this.shouldSkipIntro_0() ? this.fireStateFinished_0() : a.hasFreeGamesStartSound_0() ? a.startFreeGamesStartSound_1(this.finishCallback) : this.isSupposedToProceedWithAutoplay_0() && 0 < a.getFreeGamesBannerPresentationDuration_0() ? this.freeGamesStartSoundSkipped_0() : this.freeGamesStartSoundFinished_0(); }, freeGamesStartSoundSkipped_0: function () { this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getTimer_0().triggerCallbackAfter_2(this.finishCallback, this.getGui_0().getFreeGameSounds_0().getFreeGamesBannerPresentationDuration_0()); }, freeGamesStartSoundFinished_0: function () { this.fireStateFinished_0(); }, requestFinish_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); var a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesStartSound_0() && a.stopFreeGamesStartSound_0(); this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()); this.fireStateFinished_0(); }, onExitCreateRunningReels_1: function (a) { return this.getGui_0().getSkin_0().reelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()).findDescendant_1(GT1618.prototype.REELS); }, onExitCreateStoppedReels_1: function (a) { return this.getGui_0().getSkin_0().stoppedReelsInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); }, onExitCreateSymbolHighlight_1: function (a) { return this.getGui_0().getSkin_0().highlightInFreeGames_0().create_2(a, this.getGui_0().getSkinManager_0()); }, onExitStartFreeGamesBackgroundSound_1: function (a) { a.isBackgroundSoundRunning_0() || a.startBackgroundSound_0(); }, exit_0: function () { this.getGui_0().getTimer_0().removeCallback_2(this.finishCallback, !1); var a = this.getGui_0().getFreeGameSounds_0(); a.hasFreeGamesStartSound_0() && a.stopFreeGamesStartSound_0(); this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_GAMBLE && a.reduceBackgroundSoundVolume_2(!0, 0); this.onExitStartFreeGamesBackgroundSound_1(a); this.getGui_0().getSlotConsole_0().setStatusText_1(""); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateRunningReels_1(a); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); var b = this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0(); 0 != b && a.setMinDuration_1(Math.max_2(b - a.getFullStopDelay_0(), a.getMinDuration_0())); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS_CONTAINER); a.destroyChildren_0(); a = this.onExitCreateStoppedReels_1(a); this.getGui_0().updateStoppedReels_0(); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT_CONTAINER); b.destroyChildren_0(); b = this.onExitCreateSymbolHighlight_1(b); b.setStoppedReels_1(a); this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); this.getGui_0().getWinSwitcher_0().setSymbolHighlight_1(b); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllLines_1(!1); a.showScatter_1(!1); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.FREEGAMESTARTEND); GT1560.prototype.destroyIfAlive_1(a); this.finishCallback = null; }, toString: function () { return "GuiStateFreeGamesStart (" + this.getId_0() + ")"; }, }, "GT519", [] ), GT64 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, run_0: function () { this.state.freeGamesStartSoundFinished_0(); }, }, "GT64", [Runnable] ); GT519.prototype.ID = GT907.prototype.generateID_0(); var GT317 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT317.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleScreenClosing"; }, enter_1: function (a) { 0 == this.getGui_0().getSlotState_0().getWinSum_1(!0) && 0 == this.getGui_0().getSlotState_0().getSuperGamesSum_1(!0) && this.getGui_0().updateStoppedReels_0(); this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1560.prototype.isAlive_1(a) ? this.moveGambleScreenOutOfView_1(a) : this.fireStateFinished_0(); }, moveGambleScreenOutOfView_1: function (a) { null != a.getSoundClose_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundClose_0()); var b = -a.getY_0() - a.getHeight_0(); a = new GT653(this.getGui_0().getTimer_0(), a, a.getX_0(), b, GT737.prototype.DEFAULT_OPEN_CLOSE_TIME, !1); a.addFinishCallback_1(new GT569(this)); a.start_0(); }, exit_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!1, -1); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1560.prototype.destroyIfAlive_1(a); }, toString: function () { return "GuiStateGambleScreenClosing (" + this.getId_0() + ")"; }, }, "GT317", [] ); GT317.prototype.ID = GT907.prototype.generateID_0(); var GT422 = GT1254.extend( { initialConstructor_0: function () { this.handler = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT422.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleScreenOpen"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); (null != a && a.isAlive_0()) || (this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, 0), (a = GT318.prototype.initGambleScreen_2(this.getGui_0(), this.getSlotState_0())), this.getGui_0().getWinSwitcher_0().isRunning_0() && 3 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel")) && 4 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel")) && this.getGui_0().getWinSwitcher_0().stop_0()); instanceOf(a, GT346) && a.setMaxGambleSteps_1(this.getSlotState_0().getDefinition_0().getMaxGambleSteps_0()); this.handler = new GT226(this); a.addGambleListener_1(this.handler); a.start_0(); this.onEnterUpdateConsole_2(this.getSlotState_0().getGambleState_0(), this.getGui_0().getSlotConsole_0()); }, onEnterUpdateConsole_2: function (a, b) { var d = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE), e = !a.isMoreGamblePossible_0(); instanceOf(d, GT346) ? e ? b.setState_1(GT725.prototype.GAMBLE_REDBLACK_MAXWIN) : b.setState_1(GT725.prototype.GAMBLE_REDBLACK) : instanceOf(d, GT242) && d.getCollectHalf_0() ? e ? b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE) : 0 == a.getNumberOfWins_0() || (1 == a.getNumberOfWins_0() && 0 > a.getWin_1(0)) ? b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE) : b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF) : e ? b.setState_1(GT725.prototype.GAMBLE_MAXWIN) : b.setState_1(GT725.prototype.GAMBLE); d = this.getSlotState_0().getWinSum_1(!0); this.getSlotState_0().getDefinition_0().isCollectAtEndOfRound_0() && this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0() && 0 == this.getSlotState_0().getGambleState_0().getNumberOfWins_0() && (d = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0()); b.setStatusText_1(""); b.setWin_2(d, !0); b.setWinSuperGames_3(this.getSlotState_0().getSuperGamesSum_1(!0), this.getSlotState_0().getSuperGameState_0().getLabel_0(), !0); d = this.getSlotState_0().getFreeSpinState_0().getWinMeter_0(); e = 0 == this.getSlotState_0().getGambleState_0().getNumberOfWins_0(); b.setTotalRoundWin_1(0 != d && e ? d : this.getSlotState_0().getWinSum_1(!0)); }, notifySlotEvent_1: function (a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); a.getId_0() == GT1354.prototype.MODAL_DIALOG_OPENED || a.getId_0() == GT1354.prototype.MODAL_DIALOG_CLOSED ? (this.getGui_0() .getSlotConsole_0() .setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()), null != b && b.isAlive_0() && (instanceOf(a, GT426) && a.getModalDialogId_0() == a.getReplayDialogId_0() ? b.stop_0() : b.setActive_1(this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && this.getSlotState_0().getCasinoState_0().isActivePlayer_0()))) : (this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(), null != b && b.isAlive_0() && (b.setActive_1(!1), b.forwardEvent_1(a))); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); null != a && a.isAlive_0() && (a.stop_0(), a.removeGambleListener_1(this.handler)); this.handler = null; }, toString: function () { return "GuiStateGambleScreenOpen (" + this.getId_0() + ")"; }, }, "GT422", [] ), GT226 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, gambleButtonPressed_2: function (a, b) { a == GT1354.prototype.GAMBLE ? this.state.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1037(a, b)) : this.state.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(a)); }, animationFinished_0: function () {}, }, "GT226", [GT455] ); GT422.prototype.ID = GT907.prototype.generateID_0(); var GT318 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT318.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleScreenOpening"; }, enter_1: function (a) { this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, 0); this.getGui_0().getWinSwitcher_0().isRunning_0() && 3 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel")) && 4 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel")) && this.getGui_0().getWinSwitcher_0().stop_0(); a = this.initGambleScreen_2(this.getGui_0(), this.getSlotState_0()); GT1560.prototype.isAlive_1(a) ? this.moveGambleScreenIntoView_1(a) : this.fireStateFinished_0(); }, moveGambleScreenIntoView_1: function (a) { null != a.getSoundOpen_0() && this.getGui_0().getSkinManager_0().getSoundPlayer_0().start_1(a.getSoundOpen_0()); var b = a.getY_0(); a.move_2(a.getX_0(), -a.getHeight_0() - b); a = new GT653(this.getGui_0().getTimer_0(), a, a.getX_0(), b, GT737.prototype.DEFAULT_OPEN_CLOSE_TIME, !1); a.addFinishCallback_1(new GT569(this)); this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT660(a)); }, exit_0: function () { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1560.prototype.isAlive_1(a) && (a.move_2(a.getX_0(), a.getY_0() + 1), a.move_2(a.getX_0(), a.getY_0() - 1)); }, toString: function () { return "GuiStateGambleScreenOpening (" + this.getId_0() + ")"; }, }, "GT318", [] ); GT318.prototype.initGambleScreen_2 = function (a, b) { var d = a.getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); if (null == d || !d.isAlive_0()) if ( ((d = a.getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE_CONTAINER)), (d = a.getSkin_0().gamble_0().create_2(d, a.getSkinManager_0()).findDescendant_1(GT1618.prototype.GAMBLE)), GT1560.prototype.isAlive_1(d) && instanceOf(d, GT737)) ) { var e = new GT1570(b, a.isOmitCentsOnPaytableForHighValuesEnabled_0()).shouldOmitCentsIfZero_0(); d.setOmitCentsIfZero_1(e); } GT1650.prototype.assertExp_2(instanceOf(d, GT737), "GUI container is no gamble screen"); d.setSuperGamesLabel_1(b.getSuperGameState_0().getLabel_0()); e = b.getWinSum_1(!0); b.getDefinition_0().isCollectAtEndOfRound_0() && 0 == b.getGambleState_0().getNumberOfWins_0() && b.getFreeSpinState_0().isFreeSpinsRunning_0() && (e = b.getFreeSpinState_0().getWinMeter_0()); d.setCurrentWin_2(e, b.getSuperGamesSum_1(!0)); d.setGambleState_1(b.getGambleState_0()); d.setCurrencyFormatter_1(a.getCurrencyFormatter_0()); d.setActivePlayer_1(b.getCasinoState_0().isActivePlayer_0()); d.setRandomSeed_1(b.getRandomSeed_0()); d.init_0(); return d; }; GT318.prototype.ID = GT907.prototype.generateID_0(); var GT520 = GT1254.extend( { initialConstructor_0: function () { this.handler = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT520.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleShowLost"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1650.prototype.assertExp_2(instanceOf(a, GT737), "gui container is no gamble screen"); var b = this.getGui_0().getSlotConsole_0(); GT1560.prototype.isAlive_1(b) && (b.setConsoleForCurrentStateInActive_0(), b.setWinSuperGames_3(0, "", !0), b.setStatusText_1(""), b.setWin_2(0, !0), b.setTotalRoundWin_1(0)); a.setGambleState_1(this.getGui_0().getSlotState_0().getGambleState_0()); a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()); this.handler = new GT292(this); a.addGambleListener_1(this.handler); a.showLost_0(); !this.getGui_0().getWinSwitcher_0().isRunning_0() || (3 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel")) && 4 != GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("buttonpanel"))) || this.getGui_0().getWinSwitcher_0().stop_0(); }, exit_0: function () { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE).removeGambleListener_1(this.handler); this.handler = null; }, toString: function () { return "GuiStateGambleShowLost (" + this.getId_0() + ")"; }, }, "GT520", [] ), GT292 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, animationFinished_0: function () { this.state.fireStateFinished_0(); }, gambleButtonPressed_2: function (a, b) {}, }, "GT292", [GT455] ); GT520.prototype.ID = GT907.prototype.generateID_0(); var GT574 = GT1254.extend( { initialConstructor_0: function () { this.handler = null; GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.handler = null; GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT574.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleShowWin"; }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); GT1650.prototype.assertExp_2(instanceOf(a, GT737), "gui container is no gamble screen"); var b = this.getGui_0().getSlotConsole_0(); GT1560.prototype.isAlive_1(b) && (b.setConsoleForCurrentStateInActive_0(), b.setWin_2(this.getSlotState_0().getWinSum_1(!0), !0), b.setWinSuperGames_3(this.getSlotState_0().getSuperGamesSum_1(!0), this.getSlotState_0().getSuperGameState_0().getLabel_0(), !0), b.setTotalRoundWin_1(this.getSlotState_0().getWinSum_1(!0))); a.setCurrentWin_2(this.getSlotState_0().getWinSum_1(!0), this.getSlotState_0().getSuperGamesSum_1(!0)); a.setGambleState_1(this.getSlotState_0().getGambleState_0()); this.handler = new GT302(this); a.addGambleListener_1(this.handler); a.showWin_0(); }, exit_0: function () { this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE).removeGambleListener_1(this.handler); this.handler = null; }, toString: function () { return "GuiStateGambleShowWin (" + this.getId_0() + ")"; }, }, "GT574", [] ), GT302 = Class.extend( { initialConstructor_0: function () { this.state = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.state = null; this.state = a; }, animationFinished_0: function () { this.state.fireStateFinished_0(); }, gambleButtonPressed_2: function (a, b) {}, }, "GT302", [GT455] ); GT574.prototype.ID = GT907.prototype.generateID_0(); var GT237 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT237.prototype.ID; }, getConsoleIdentifier_0: function () { return "GambleWaitingForServer"; }, enter_1: function (a) { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, 0); this.getGui_0().getSlotConsole_0().setConsoleForCurrentStateInActive_0(); }, exit_0: function () { this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_1(!1); }, toString: function () { return "GuiStateGambleWaitingForServer (" + this.getId_0() + ")"; }, }, "GT237", [] ); GT237.prototype.ID = GT907.prototype.generateID_0(); var GT1042 = GT1254.extend( { initialConstructor_0: function () { GT1254.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1254.prototype.initialConstructor_1.call(this, a); }, getId_0: function () { return GT1042.prototype.ID; }, getConsoleIdentifier_0: function () { return "Init"; }, stopInitializationEarlyDueToWrongRoomId_0: function () { if (1 == GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("handlewrongroomaserror"))) { var a = this.getGui_0().getLayout_0().getNumberOfReels_0(), b = this.getSlotState_0().getCurrentReelSet_0().getNumberOfReels_0(), d = this.getSlotState_0().getReelPositions_0().length; if (a > b || a > d) return ( (b = a > b ? b : d), this.getGui_0() .getSlotEventManager_0() .fireSlotEvent_1(new GT1101("Attempting to apply symbols for " + b + " reels, but there are " + a + " available - perhaps the used room ID doesn't match the slot client?")), !0 ); } return !1; }, onEnterHandleGameLogo_1: function (a) { if (GT1560.prototype.isAlive_1(a)) for (var b = a.getChildCount_0(), d = 0; d < b; d++) { var e = a.getChild_1(d); if ((e.getWidth_0() > e.getParent_0().getWidth_0() || e.getHeight_0() > e.getParent_0().getHeight_0()) && instanceOf(e, GT1591)) { var f, g, k, m; f = e.getWidth_0() > a.getWidth_0() && e.getHeight_0() > a.getHeight_0() ? a.getWidth_0() > a.getHeight_0() ? a.getWidth_0() / e.getWidth_0() : a.getHeight_0() / e.getHeight_0() : e.getWidth_0() > a.getWidth_0() ? a.getWidth_0() / e.getWidth_0() : a.getHeight_0() / e.getHeight_0(); g = Integer.truncate_1(e.getWidth_0() * f); f = Integer.truncate_1(e.getHeight_0() * f); k = Math.div(Math.abs_1(a.getWidth_0() - g), 2); m = Math.div(Math.abs_1(a.getHeight_0() - f), 2); new GT1591(a, k, m, g, f, e.getImage_0(), e.getSourcePointX_0(), e.getSourcePointY_0(), e.getSourceWidth_0(), e.getSourceHeight_0()).reorderToPosition_1(d); GT1560.prototype.destroyIfAlive_1(e); } } }, onEnterInitializeReels_0: function () { if (!this.stopInitializationEarlyDueToWrongRoomId_0()) { var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.REELS); a.setReelSet_2(this.getSlotState_0().getCurrentReelSet_0(), this.getSlotState_0().getReelPositions_0()); a.hide_1(!0); var b = this.getSlotState_0().getDefinition_0().getMinimumRoundDuration_0(); 0 != b && a.setMinDuration_1(Math.max_2(b - a.getFullStopDelay_0(), a.getMinDuration_0())); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); a.setTimer_1(this.getGui_0().getTimer_0()); 1 == GT1672.prototype.stringToInt_1(this.getGui_0().getSkinManager_0().getParameter_1("handlewrongroomaserror")) && a.setSlotEventManager_1(this.getGui_0().getSlotEventManager_0()); this.getGui_0().updateStoppedReels_0(); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.HIGHLIGHT).setStoppedReels_1(a); } }, onEnterConfigureConsole_1: function (a) { if (GT1560.prototype.isAlive_1(a)) if ( (GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && (this.getGui_0().getSlotConsole_0().addCustomConsole_1(GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().getConsoleBridge_0()), this.getGui_0().getSlotConsole_0().hide_1(!0), this.onEnterGrayoutConsoleIfModalOpen_0(), "1".equals_1(GT514.prototype.getInstance_0().getApplet_0().getLocalStorage_0().getItem_1(GT334.prototype.PARAM_DISABLE_GAMBLING)) && !GT514.prototype.getInstance_0().isGambleDisabledServerOrClientSide_0() && this.getGui_0().getSlotState_0().setFastSpinEnabled_1(!0), this.getGui_0().getTimer_0().triggerCallbackAfter_2(GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0(), 200)), a.setActive_1(!1), a.setCurrencyFormatter_1(this.getGui_0().getCurrencyFormatter_0()), a.setHideValueFields_1(!0), a.setLastWinAvailable_1(!this.getSlotState_0().getCasinoState_0().isInReplayMode_0()), GT514.prototype.setFreeSpinText_1(null), GT514.prototype.setStatusText_1(null), GT514.prototype.setStatusText_2(!0, null), 0 < this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0() && 0 <= this.getSlotState_0().getAutoPlayCounter_0()) ) { var b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); if (null != b) { b.hide_1(!1); for (var b = [].createArray(this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0()).init(0), d = 0; d < b.length; d++) b[d] = d + 1; a.setPossibleNumberOfAutoplays_2(b, this.getSlotState_0().getAutoPlayLimit_0()); b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); null != b && b.hide_1(!0); } this.getSlotState_0().isAutoPlaying_0() ? a.setAutoplayCounter_1(this.getSlotState_0().getAutoPlayCounter_0()) : a.setAutoplayCounter_1(this.getSlotState_0().getAutoPlayLimit_0()); } else (b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT)), null != b && (b.hide_1(!1), (b = [].createArray(1).init(0)), (b[0] = -1), a.setPossibleNumberOfAutoplays_2(b, -1), (b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT)), null != b && b.hide_1(!0)); }, onEnterGrayoutConsoleIfModalOpen_0: function () { GT514.prototype.getInstance_0().getApplet_0().isUiNeonEnabled_0() && GT514.prototype.getInstance_0().getApplet_0().isAnyModalDialogOpen_0() && !GT514.prototype.getInstance_0().getApplet_0().isReplayDialogOpen_0() && !GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().isConsoleDialogOpen_0() && (this.getGui_0().getSlotConsole_0().setActive_1(!1), this.getGui_0().getMainContainer_0().setColorTransformation_1(null), this.getGui_0().getMainContainer_0().setColorTransformation_1(GT1063.prototype.GrayOut)); }, onEnterStartWinSwitcher_0: function () { 0 < this.getSlotState_0().getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && !this.getSlotState_0().isPaytableOpen_0() && this.getGui_0().startWinSwitcher_1(!0); }, enter_1: function (a) { a = this.getGui_0().getMainContainer_0(); a.destroyChildren_0(); this.getGui_0().getSkin_0().mainGui_0().create_2(a, this.getGui_0().getSkinManager_0()); null != this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.MAIN_GUI_CONTAINER) && this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.MAIN_GUI_CONTAINER).resizeToContent_0(); this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.BACKGROUND_CONTAINER).setCacheAsBitmap_1(!0); this.onEnterHandleGameLogo_1(this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAME_LOGO_CONTAINER)); this.onEnterInitializeReels_0(); 0 != this.getSlotState_0().getSuperGameState_0().getBalance_0() && this.getGui_0() .getSlotConsole_0() .setSuperGames_4(this.getSlotState_0().getSuperGameState_0().getBalance_0(), this.getSlotState_0().getSuperGameState_0().getLabel_0(), this.getSlotState_0().getSuperGameState_0().getColor_0(), !0); var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); b.showAllLines_1(!1); for (a = 0; a < this.getSlotState_0().getNumberOfLines_0(); a++) b.showTab_2(a, !0); this.onEnterStartWinSwitcher_0(); this.onEnterConfigureConsole_1(this.getGui_0().getSlotConsole_0()); b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); if (null != b) { for (a = 0; a < b.getChildCount_0(); a++) b.getChild_1(a).hide_1(!0); b.setCurrentReelset_1(0); b.showFirstPage_0(); } a = this.getGui_0().getMainContainer_0().getParent_0().getParent_0().findDescendant_1(GT307.prototype.ACTION_CONTEXTMENU); null != a && a.isAlive_0() && instanceOf(a, GT1559) && a.hide_1(!1); }, determineMaxPossibleTotalBet_0: function () { for ( var a = this.getSlotState_0().getCasinoState_0().getMaxTotalBet_0(), b = this.getSlotState_0().getDefinition_0().getGameModes_0().toArray_0(), d = null != this.getSlotState_0().getDefinition_0().getBaseBets_0() ? this.getSlotState_0().getDefinition_0().getBaseBets_0().toArray_0() : this.getSlotState_0().getBaseBets_0(), e = [].createArray(b.length).init(0), f = [].createArray(b.length).init(0), g = 0; g < b.length; ++g ) e[g] = this.getSlotState_0().getDefinition_0().getBetMultiplierForGameMode_1(b[g]); for (g = 0; g < f.length; ++g) for (b = d.length - 1; 0 <= b && !((f[g] = e[g] * d[b]), f[g] <= a); --b); GT1679.prototype.sortIntArray_2(f, !1); return 0 != f.length ? f[0] : 0; }, updateOldJackpotCalculator_0: function () { if (null == this.getSlotState_0()) GT1042.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Exiting updateOldJackpotCalculator() early because the slot state is null!"); else if (null == this.getSlotState_0().getCasinoState_0()) GT1042.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Exiting updateOldJackpotCalculator() early because the casino state is null!"); else if (null == this.getSlotState_0().getDefinition_0()) GT1042.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Exiting updateOldJackpotCalculator() early because the slot definition is null!"); else { var a = this.getSlotState_0().getCasinoState_0().getJackpotCalculator_0(); if (null != a && instanceOf(a, GT294)) { var b = new java_util_JavaScriptVector(), d = this.getSlotState_0().getDefinition_0().getPaytableEntries_0(); if (null == d) GT1042.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Exiting updateOldJackpotCalculator() early because the pay table entries provided by the slot definition are null!"); else { for (var e = 0; e < d.size_0(); ++e) 0 != d.get_1(e).getJackpotPercentage_0() && b.add_1(d.get_1(e)); var d = [].createArray(b.size_0()).init(0), e = 0, f = !1, g = [].createArray(b.size_0()).init(0), k = this.determineMaxPossibleTotalBet_0(); if (null == this.getSlotState_0().getDefinition_0().getPlayLines_0()) GT1042.prototype.LOG.verbose && GT1650.prototype.log_1("[CLIENT] Exiting updateOldJackpotCalculator() method early because the playable lines provided by the slot definition are null!"); else { for (var m = this.getSlotState_0().getDefinition_0().getPlayLines_0().toArray_0(), m = m[m.length - 1], n = 0; n < b.size_0(); ++n) (f = b.get_1(n)), (d[n] = f.getPayout_0()), (g[n] = f.getJackpotPercentage_0()), (e = f.getPayOnMinBet_0()), (f = f.getMultipliedByLines_0()); GT1679.prototype.sortIntArray_2(d, !0); GT1679.prototype.sortDoubleArray_2(g, !0); a.updateForClient_6(d, e, f, g, m, k); } } } } }, onExitStartBaseGameMelody_0: function () { if (!this.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0()) { var a = this.getSlotState_0().getServerState_0(); (a != GT1649.prototype.SERVERSTATE_BEFOREGAMBLE && a != GT1649.prototype.SERVERSTATE_GAMBLE) || this.getGui_0().getBaseGameMelodies_0().reduceVolume_1(!0); this.getGui_0().getBaseGameMelodies_0().isPlaying_0() || this.getGui_0().startBaseGameMelody_0(); } }, hideChildrenWithId_3: function (a, b, d) { if (GT1560.prototype.isAlive_1(a)) for (var e = 0; e < a.getChildCount_0(); ++e) { var f = a.getChild_1(e); GT1560.prototype.isAlive_1(f) && f.getApplicationID_0() == b ? f.hide_1(d) : instanceOf(f, GT1437) && this.hideChildrenWithId_3(f, b, d); } }, onExitConfigureConsole_1: function (a) { if (GT1560.prototype.isAlive_1(a)) if ( (a.setHideValueFields_1(!1), a.setBetMultiplier_1(this.getSlotState_0().getBetMultiplier_0()), a.setPossibleLineNumbers_2(this.getSlotState_0().getDefinition_0().getPlayLines_0().toArray_0(), this.getSlotState_0().getNumberOfLines_0()), 0 != this.getSlotState_0().getBaseBet_0() && a.setPossibleBetPerLine_2(this.getSlotState_0().getBaseBets_0(), this.getSlotState_0().getBaseBet_0()), a.setPossibleGameModes_2(this.getSlotState_0().getDefinition_0().getGameModes_0().toArray_0(), this.getSlotState_0().getGameMode_0()), a.setCasinoAutoPlayInterface_1(this.getSlotState_0().getCasinoAutoPlayInterface_0()), a.setBalance_1(this.getSlotState_0().getCasinoState_0().getTickets_0()), a.setCredits_2(this.getSlotState_0().getCredits_0(), !0), a.setTotalRoundWin_1(this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_BEFOREGAMBLE ? 0 : this.getSlotState_0().getWinSum_1(!0)), a.setMaximumRoundWin_1(this.getSlotState_0().getMaximumRoundWin_0()), a.setLastWin_1(this.getSlotState_0().getLastWin_0()), a.setWin_2(0, !0), a.setActive_1(this.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.getSlotState_0().getCasinoState_0().isActionAllowed_0()), this.getSlotState_0().isAutoplayMeter_0() && (this.getSlotState_0().getCredits_0() < this.getSlotState_0().getAutoplayMeter_0() && this.getSlotState_0().setAutoplayMeter_1(this.getSlotState_0().getCredits_0()), a.setAutoplayMeter_2(this.getSlotState_0().getAutoplayMeter_0(), this.getSlotState_0().isAutoPlaying_0())), this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT478(!0)), 0 < this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0() && 0 <= this.getSlotState_0().getAutoPlayCounter_0()) ) { var b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT); if (null != b) { b.hide_1(!1); for (var d = [].createArray(this.getSlotState_0().getDefinition_0().getAutoPlayCountMax_0()).init(0), e = 0; e < d.length; e++) d[e] = e + 1; a.setPossibleNumberOfAutoplays_2(d, this.getSlotState_0().getAutoPlayLimit_0()); d = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT); null != d && d.hide_1(!0); this.getSlotState_0().getCasinoAutoPlayInterface_0().needToShowAutoPlaySettings_0() && ((a = this.getGui_0().getSkinManager_0().hasSkinId_1("skyvegas") ? b : b.findDescendant_1(GT834.prototype.ID_BUTTON_AUTOPLAY_S)), GT1560.prototype.isAlive_1(a) && instanceOf(a, GT1437) && this.hideChildrenWithId_3(a, GT834.prototype.ID_FIELD_AUTOPLAYS, !0)); } } else (d = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_DEFAULT)), null != d && (d.hide_1(!1), (d = [].createArray(1).init(0)), (d[0] = -1), a.setPossibleNumberOfAutoplays_2(d, -1), (b = a.findDescendant_1(GT834.prototype.ID_AREA_AUTOPLAY_SELECT)), null != b && b.hide_1(!0)); }, onExitStartWinSwitcher_0: function () { 0 < this.getSlotState_0().getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && !this.getSlotState_0().isPaytableOpen_0() && this.getGui_0().startWinSwitcher_1(!0); }, exit_0: function () { this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0(); var a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.WINLINES); a.showAllTabs_1(!1); for (var b = 0; b < this.getSlotState_0().getNumberOfLines_0(); b++) a.showTab_2(b, !0); this.onExitStartWinSwitcher_0(); a = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.PAYTABLE); null != a && (GT477.prototype.initPaytable_3(a, this.getGui_0(), this.getSlotState_0()), this.getGui_0().getTimer_0().triggerCallbackImmediately_1(new GT177(a, this.getGui_0().getSlotEventManager_0(), this.getGui_0().getGameWrapperInterfaceCaller_0(), a.getPageIndex_0(), !0))); this.onExitStartBaseGameMelody_0(); this.updateOldJackpotCalculator_0(); this.onExitConfigureConsole_1(this.getGui_0().getSlotConsole_0()); null != this.getSlotState_0().getCasinoState_0().getEntityParticipationId_0() && ((a = this.getGui_0().getMainContainer_0().findDescendant_1(GT943.prototype.ID_ENTITYPARTICIPATION)), null != a && a.isAlive_0() && a.setText_1(this.getGui_0().getSkinManager_0().getText_1("${entityparticipationid}") + " " + this.getSlotState_0().getCasinoState_0().getEntityParticipationId_0())); null != this.getSlotState_0().getCasinoState_0().getEntitySessionId_0() && ((a = this.getGui_0().getMainContainer_0().findDescendant_1(GT943.prototype.ID_ENTITYSESSION)), null != a && a.isAlive_0() && a.setText_1(this.getGui_0().getSkinManager_0().getText_1("${entitysessionid}") + " " + this.getSlotState_0().getCasinoState_0().getEntitySessionId_0())); }, toString: function () { return "GuiStateInit (" + this.getId_0() + ")"; }, }, "GT1042", [] ); GT1042.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT1042.prototype.ID = GT907.prototype.generateID_0(); var GT1110 = GT1005.extend( { initialConstructor_0: function () { this.eventDispatcher = null; GT1005.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.eventDispatcher = null; GT1005.prototype.initialConstructor_0.call(this); this.eventDispatcher = a; }, getEventDispatcher_0: function () { return this.eventDispatcher; }, }, "GT1110", [] ), GT750 = GT956.extend( { initialConstructor_0: function () { GT956.prototype.initialConstructor_0.call(this); }, defaultReels_2: function (a, b) { return GT1252.prototype .set_0() .id_1(GT1618.prototype.REELS) .position_2(b.getReelX_0(), b.getReelY_0()) .reel_2(0, b.reel_0()) .layout_1(b.reelLayout_0()) .minDuration_1(800) .reelStopDelay_1(300) .reelsRunSound_1( GT215.prototype .set_0() .sound_1(GT1396.prototype.set_0().file_1("/com/greentube/slot/client/res/novo/reelrun.mp3")) .addLoopPoint_3(0, 4681.202, 24.195) .addLoopPoint_3(735.057, 4681.202, 24.195) .addLoopPoint_3(1756.825, 4681.202, 24.195) .addLoopPoint_3(2693.492, 4681.202, 24.195) .addLoopPoint_3(3634.558, 4681.202, 24.195) ) .reelsRunSoundSilent_1(GT215.prototype.set_0().sound_1(GT1396.prototype.set_0().file_1(GT750.prototype.REELSILENT))) .soundReelsStopEarly_1(GT750.prototype.REELSTOP); }, defaultReel_2: function (a, b) { return a.stopSound_1(GT750.prototype.REELSTOP).stopSoundStartPosition_1(0).skipReelStopSound_1(!0); }, loadResources_1: function (a) { GT956.prototype.loadResources_1.call(this, a); a.getResourceManager_0().startLoadSound_1(GT750.prototype.REELSILENT); a.getResourceManager_0().startLoadSound_1(GT750.prototype.REELSTOP); }, }, "GT750", [] ); GT750.prototype.REELSILENT = "/com/greentube/slot/client/res/novo/reelsilent2016.mp3"; GT750.prototype.REELSTOP = "/com/greentube/slot/client/res/novo/reelstop2016.mp3"; var GT1156 = GT1173.extend( { initialConstructor_0: function () { GT1173.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1156.prototype.initialConstructor_2.call(this, a, Integer.MAX_VALUE); }, initialConstructor_2: function (a, b) { GT1156.prototype.initialConstructor_3.call(this, a, Integer.MAX_VALUE, b); }, initialConstructor_3: function (a, b, d) { GT1173.prototype.initialConstructor_3.call(this, a, b, d); }, mainGui_2: function (a, b) { return a.remove_1(GT1618.prototype.GAMBLE_CONTAINER).childBefore_2(GT1618.prototype.CONSOLE, GT1186.prototype.set_0().id_1(GT1618.prototype.GAMBLE_CONTAINER)); }, gamble_2: function (a, b) { return GT385.prototype.set_0().position_2(this.screenX_0(), this.defaultScreenY_0()).onlyChild_1(a).contentScaledSize_2(this.screenWidth_0(), this.defaultScreenHeight_0()); }, }, "GT1156", [] ), GT631 = GT1156.extend( { initialConstructor_0: function () { GT1156.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1156.prototype.initialConstructor_2.call(this, a, b); }, defaultScreenWidth_0: function () { return 1268; }, defaultScreenHeight_0: function () { return 785; }, defaultScreenY_0: function () { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, }, "GT631", [] ), GT1048 = GT1173.extend( { initialConstructor_0: function () { GT1173.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1048.prototype.initialConstructor_3.call(this, a, Integer.MAX_VALUE, b); }, initialConstructor_3: function (a, b, d) { GT1173.prototype.initialConstructor_3.call(this, a, b, d); }, mainGui_2: function (a, b) { return a.modify_2(GT1618.prototype.PAYTABLE, GT1186.prototype.set_0().position_2(this.screenX_0(), this.defaultScreenY_0()).contentScaledSize_2(this.screenWidth_0(), this.defaultScreenHeight_0())); }, paytable_2: function (a, b) { return instanceOf(a, GT1100) ? a.position_2(this.screenX_0(), this.defaultScreenY_0()).contentScaledSize_2(this.screenWidth_0(), this.defaultScreenHeight_0()) : a; }, }, "GT1048", [] ), GT528 = GT1048.extend( { initialConstructor_0: function () { GT1048.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1048.prototype.initialConstructor_2.call(this, a, b); }, defaultScreenWidth_0: function () { return 1268; }, defaultScreenHeight_0: function () { return 785; }, defaultScreenY_0: function () { return Math.div(GT844.prototype.getSafeAreaTotalHeight_0(), 2); }, }, "GT528", [] ), GT1111 = GT554.extend( { initialConstructor_0: function () { GT554.prototype.initialConstructor_0.call(this); }, tableViewBackColor_0: function () { return GT1391.prototype.set_0().compRGB_3(109, 148, 211); }, soundLobby_0: function () { return "/com/greentube/slot/client/res/room/lobby2.mp3"; }, soundLobbyLoopEnd_0: function () { return 4220; }, soundLobbyLoopStart_0: function () { return 257.46; }, imageLobbyBanner_0: function () { return GT1392.prototype.set_0().imageFile_1("/com/greentube/slot/client/res/room/room.jpg").position_2(this.layoutHorizontalAdjustment_0(), 0); }, tableView_0: function () { return GT847.prototype .set_0() .position_2(50 + this.layoutHorizontalAdjustment_0(), 65) .size_2(1280, 959) .imageUserPlaying_1( "/com/greentube/slot/client/res/room/user.png /com/greentube/slot/client/res/room/user_r.png /com/greentube/slot/client/res/room/user_b.png /com/greentube/slot/client/res/room/user_v.png /com/greentube/slot/client/res/room/user_g.png /com/greentube/slot/client/res/room/user_c.png".split( " " ) ) .userImageIndent_2(26, 60) .imageUserWinning_1( "/com/greentube/slot/client/res/room/user_bonus.png /com/greentube/slot/client/res/room/user_bonus_r.png /com/greentube/slot/client/res/room/user_bonus_b.png /com/greentube/slot/client/res/room/user_bonus_v.png /com/greentube/slot/client/res/room/user_bonus_g.png /com/greentube/slot/client/res/room/user_bonus_c.png".split( " " ) ) .userImageWinningIndent_2(6, 30) .buttonEnterID_1(this.ACTION_ENTERTABLE) .tablesInRow_1(7) .tableIndent_2(10, -28) .tableAddressIndent_2(14, 23) .tableAddressFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(110)) .tableAddressColor_1(GT1391.prototype.set_0().yellow_0()) .userNamePosition_4(36, 163, 92, 20) .addPayoutFont_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(120)) .payoutColor_1(GT1391.prototype.set_0().yellow_0()) .tableDetailIndent_2(14, 66) .showLastPayout_0() .showDetailSwitchWhenIdle_0() .tableHighlight_1(GT656.prototype.set_0().percentage_offset_2(130, 20)) .imageTable_1("/com/greentube/slot/client/res/room/machine.png") .imageTableDetail_1("/com/greentube/slot/client/res/room/slot.png") .numberOfTableDetails_1(6) .tableAddressColor_1(GT1391.prototype.set_0().compRGB_3(255, 255, 233)); }, layoutDesignedWidth_0: function () { return 1280 + 2 * this.layoutHorizontalAdjustment_0(); }, layoutDesignedHeight_0: function () { return 1024; }, layoutOverscanLeft_0: function () { return 384 - this.layoutHorizontalAdjustment_0(); }, layoutOverscanRight_0: function () { return 384 - this.layoutHorizontalAdjustment_0(); }, }, "GT1111", [] ), GT309 = GT14.extend( { initialConstructor_1: function (a) { GT14.prototype.initialConstructor_1.call(this, a); }, initialConstructor_0: function () { GT14.prototype.initialConstructor_0.call(this); }, encodeData_3: function (a, b, d) { var e = this.convert_StringVector_To_ByteArrayVector_1(this.getPackets_0()); this.encodeByteArrayVector_4(e, a, b, d); }, decodeData_3: function (a, b, d) { a = this.decodeByteArrayVector_3(a, b, d); null == a && GT309.prototype.LOG.log_1("WARN: byteArrayVector is null!"); a = this.convert_ByteArrayVector_To_StringVector_1(a); null == a && GT309.prototype.LOG.log_1("WARN: stringArrayVector is null!"); this.setPackets_1(a); }, getEventVersion_0: function () { return 1; }, toString: function () { var a = this.getPackets_0(), b = 0; null != a && 0 != a.size_0() && (b = a.size_0()); return "RecordingEventServerPackets [" + b + " packets, " + this.getLengthOfData_1(this.getEventVersion_0()) + " bytes]"; }, getLengthOfData_1: function (a) { a = this.convert_StringVector_To_ByteArrayVector_1(this.getPackets_0()); return this.getBytesNeededFor_1(a); }, convert_StringVector_To_ByteArrayVector_1: function (a) { if (null == a) return null; for (var b = new java_util_JavaScriptVector(), d = 0; d < a.size_0(); d++) { var e = a.elementAt_1(d); if (instanceOf(e, java_util_JavaScriptVector)) if (2 == e.size_0()) { e = this.vectorToByteArray_1(e); if (null == e) return null; b.addElement_1(e); } else return GT309.prototype.LOG.log_1("Corrupt Data: This vector should have 2 elements but has " + e.size_0()), null; else return GT309.prototype.LOG.log_1("Corrupt Data: This is not a vector! " + e), null; } if (b.size_0() == a.size_0()) return b; GT309.prototype.LOG.log_1("Corrupt: the generated Vector has a different size as the original Vector!" + b.size_0() + " vs " + a.size_0()); return null; }, convert_ByteArrayVector_To_StringVector_1: function (a) { if (null == a) return null; for (var b = new java_util_JavaScriptVector(), d = 0; d < a.size_0(); d++) { var e = a.elementAt_1(d); if (instanceOf(e, Array)) { e = this.byteArrayToVector_1(e); if (null == e) return null; b.addElement_1(e); } else return GT309.prototype.LOG.log_1("Corrupt Data: This is not a byte[]! " + e), null; } if (b.size_0() == a.size_0()) return b; GT309.prototype.LOG.log_1("Corrupt: the generated Vector has a different size as the original Vector!" + b.size_0() + " vs " + a.size_0()); return null; }, getPacketString_0: function () { for (var a = new StringBuffer(), b = this.getPackets_0(), d = 0; d < b.size_0(); d++) { var e = b.elementAt_1(d); if (!instanceOf(e, java_util_JavaScriptVector)) { GT309.prototype.LOG.log_1("packets are not vectors!"); break; } var f = e, e = f.elementAt_1(0), f = f.elementAt_1(1); if (!instanceOf(e, java_lang_Byte)) { GT309.prototype.LOG.log_1("Corrupt Data: Should be Byte but is " + e); break; } if (!instanceOf(f, Array)) { GT309.prototype.LOG.log_1("Corrupt Data: Should be String[] but is " + f); break; } 0 != d && a.append_1("|"); e = f; for (f = 0; f < e.length; f++) 0 != f && a.append_1(","), a.append_1(e[f]); } return a.toString(); }, }, "GT309", [] ); GT309.prototype.vectorToByteArray_1 = function (a) { var b = a.elementAt_1(0); a = a.elementAt_1(1); return instanceOf(b, java_lang_Byte) ? instanceOf(a, Array) ? GT1388.prototype.composePacket_2(b.byteValue_0(), a) : (GT309.prototype.LOG.log_1("Corrupt Data: Should be String[] but is " + a), null) : (GT309.prototype.LOG.log_1("Corrupt Data: Should be Byte but is " + b), null); }; GT309.prototype.byteArrayToVector_1 = function (a) { if (null == a) return GT309.prototype.LOG.log_1("Corrupt: byte[] is NULL!"), null; if (0 == a.length) return GT309.prototype.LOG.log_1("Corrupt: byte[] has length 0!"), null; var b = new java_util_JavaScriptVector(); b.addElement_1(new java_lang_Byte(a[0])); b.addElement_1(GT1388.prototype.decomposePacket_1(a)); return b; }; GT309.prototype.LOG = GT1650.prototype.getLogFlags_1("dev.arms"); var GT541 = GT1515.extend( { initialConstructor_0: function () { this.isDragging = !1; this.eventDispatcher = null; this.touchIdDragStartEvent = 0; this.receivedMoveEvent = !1; GT1515.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.isDragging = !1; this.eventDispatcher = null; this.touchIdDragStartEvent = 0; this.receivedMoveEvent = !1; GT1515.prototype.initialConstructor_2.call(this, a, b); this.touchIdDragStartEvent = -1; a = [GT1451.prototype.MOUSE_PRESSED, GT1451.prototype.MOUSE_RELEASED, GT1451.prototype.MOUSE_MOVED, GT1447.prototype.TOUCH_START, GT1447.prototype.TOUCH_MOVE, GT1447.prototype.TOUCH_END, GT1447.prototype.TOUCH_CANCEL]; this.eventDispatcher = d; for (b = 0; b < a.length; b++) d.registerHandler_4(a[b], null, this, -Integer.MAX_VALUE); }, handleMouseEvent_1: function (a) { if (null != a) if (a.getId_0() == GT1451.prototype.MOUSE_PRESSED) this.mousePressed_2(a.getX_0(), a.getY_0()); else if (a.getId_0() == GT1451.prototype.MOUSE_RELEASED && this.isDragging) { if (this.mouseReleased_2(a.getX_0(), a.getY_0())) return ( this.eventDispatcher.raiseEvent_1(new GT1451(GT1451.prototype.MOUSE_RELEASED, -100, -100, -1)), this.eventDispatcher.raiseEvent_1(new GT1451(GT1451.prototype.MOUSE_MOVED, a.getX_0(), a.getY_0(), a.getButton_0())), !0 ); } else a.getId_0() == GT1451.prototype.MOUSE_MOVED && this.mouseMoved_2(a.getX_0(), a.getY_0()); return !1; }, mousePressed_2: function (a, b) { this.componentMover.handleDragStart_1(new GT1633(a, b)); this.isDragging = !0; }, mouseReleased_2: function (a, b) { this.isDragging = !1; return this.componentMover.handleDragEnd_1(new GT1633(a, b)); }, mouseMoved_2: function (a, b) { this.isDragging && this.componentMover.handleDragMove_1(new GT1633(a, b)); }, handleTouchEvent_1: function (a) { if (null != a && (a.getTouchId_0() == this.touchIdDragStartEvent || 0 > this.touchIdDragStartEvent)) if (a.getId_0() == GT1447.prototype.TOUCH_START && !this.isDragging) GT541.prototype.Log.t_1("CoMo: converting touch start to mouse click"), this.mousePressed_2(a.getX_0(), a.getY_0()), (this.receivedMoveEvent = !1); else if ((a.getId_0() != GT1447.prototype.TOUCH_END && a.getId_0() != GT1447.prototype.TOUCH_CANCEL) || !this.isDragging) a.getId_0() == GT1447.prototype.TOUCH_MOVE && this.isDragging && (this.mouseMoved_2(a.getX_0(), a.getY_0()), (this.receivedMoveEvent = !0)); else if ( ((this.touchIdDragStartEvent = -1), this.receivedMoveEvent || a.getId_0() != GT1447.prototype.TOUCH_END || (GT541.prototype.Log.t_1("CoMo: generating fake mouse move event"), this.mouseMoved_2(a.getX_0(), a.getY_0())), GT541.prototype.Log.t_1("CoMo: converting touch end or touch cancel to mouse released event"), this.mouseReleased_2(a.getX_0(), a.getY_0())) ) return this.eventDispatcher.raiseEvent_1(new GT1447(GT1447.prototype.TOUCH_CANCEL, a.getX_0(), a.getY_0(), a.getTouchId_0(), a.getEventTime_0())), !0; return !1; }, }, "GT541", [GT1011, GT1012] ); GT541.prototype.Log = GT1650.prototype.getLogFlags_1(GT1577.prototype.LOGGER_KEY); var GT7 = GT173.extend( { initialConstructor_0: function () { GT173.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT173.prototype.initialConstructor_1.call(this, a); }, onEnterResetWinTabs_0: function () { 0 < this.getGui_0().getSlotState_0().getCurrentReelSetIndex_0() && GT173.prototype.onEnterResetWinTabs_0.call(this); }, }, "GT7", [] ), GT29 = GT621.extend( { initialConstructor_0: function () { this.symbols = null; GT621.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.symbols = null; GT621.prototype.initialConstructor_1.call(this, a); this.symbols = [].createArray(b.length).init(0); for (var d = 0; d < b.length; d++) this.symbols[d] = b[d]; }, enter_1: function (a) { GT621.prototype.enter_1.call(this, a); this.refreshSymbols_0(); a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GAMEMODE, GT981.prototype.VALUE_GAMEMODE_READY); this.getGui_0().getSlotEventManager_0().fireSlotEvent_1(a); }, onEnterStartWinSwitcher_1: function (a) { 0 < this.getGui_0().getSlotState_0().getNumberOfWins_0() && !this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().startWinSwitcher_1(!0); }, refreshSymbols_0: function () { var a = this.getSlotState_0().getWins_0(), a = GT4.prototype.containsSplittedScatter_2(a, this.symbols); if (null != this.symbols && -1 < a && null != GT4.prototype.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[a])) { var b, d, e = 0, f = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS); f.setSymbolColorTransformation_1(new GT1063(33, 33, 33, 0, 33, 33, 33, 0, 33, 33, 33, 0)); d = this.getGui_0().getSlotState_0().getReelPositions_0(); var g = this.getGui_0().getSlotState_0().getCurrentReelSet_0(); b = GT4.prototype.createExpandedScatterWinPositions_2(this.getGui_0(), this.symbols[a]); f.setSymbols_3(d, g, new GT1613()); d = GT4.prototype.getExpandingWin_2(this.getSlotState_0().getWins_0(), this.symbols); g = GT1613.prototype.createEndPositions_3(this.getSlotState_0().getReelPositions_0(), this.getSlotState_0().getCurrentReelSet_0(), this.getGui_0().getLayout_0().rows); d = d.createWinPositions_2(g, this.getSlotState_0().getDefinition_0().getWinLines_0()); for (g = 0; g < d.getCount_0(); g++) f.setSymbol_3(d.getSymbolColumn_1(g), d.getSymbolRow_1(g), this.symbols[a]); for (; e < b.getCount_0(); ) { f = b.getSymbolColumn_1(e); for (g = b.getSymbolRow_1(e); d.isWinningPosition_2(f, g) && e < b.getCount_0() - 1; ) e++, (f = b.getSymbolColumn_1(e)), (g = b.getSymbolRow_1(e)); if (e >= b.getCount_0() || d.isWinningPosition_2(f, g)) break; this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.STOPPED_REELS).setSymbol_3(f, g, this.symbols[a]); e++; } } }, }, "GT29", [] ), GT360 = GT1437.extend( { initialConstructor_0: function () { this.sendButton = this.applet = this.txtSingleWinValue = this.swValues = this.swSlider = this.txtLossLimitValue = this.llValues = this.llSlider = this.txtRoundsValue = this.defRoundsValues = this.roundsValues = this.roundsSlider = this.cntDialog = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sendButton = this.applet = this.txtSingleWinValue = this.swValues = this.swSlider = this.txtLossLimitValue = this.llValues = this.llSlider = this.txtRoundsValue = this.defRoundsValues = this.roundsValues = this.roundsSlider = this.cntDialog = null; GT1437.prototype.initialConstructor_1.call(this, b); this.applet = a; this.defRoundsValues = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100]; }, open_2: function (a, b) { GT1560.prototype.destroyIfAlive_1(this.cntDialog); this.cntDialog = this.applet.getGameOverlaySkin_0().containerAutoplaySettingsDialog_0().create_2(this, this.applet.getSkinManager_0()); this.roundsValues = 0 >= b ? this.defRoundsValues : GT1677.prototype.determineSliderValues_4(0, b, GT360.prototype.ROUNDS_SLIDER_SINGLE_STEP_LIMIT, GT360.prototype.ROUNDS_SLIDER_BIG_STEP_SIZE); this.roundsSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_APROUNDS_SLIDER); this.roundsSlider.getHandle_0().setMinMax_2(0, this.roundsValues.length - 1); this.roundsSlider.getHandle_0().setValue_1(0); this.roundsSlider.getHandle_0().addSliderListener_1(this); this.llValues = new java_util_JavaScriptVector(); this.llValues.addElement_1(new Double(0)); this.addTicketValuesToVector_3(this.llValues, a, this.applet.getSessionTickets_0()); this.llSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_APLOSSLIMIT_SLIDER); this.llSlider.getHandle_0().setMinMax_2(0, this.llValues.size_0() - 1); this.llSlider.getHandle_0().setValue_1(0); this.llSlider.getHandle_0().addSliderListener_1(this); this.swValues = new java_util_JavaScriptVector(); this.swValues.addElement_1(new Double(0)); this.addTicketValuesToVector_3(this.swValues, a, 500 * a); this.swSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_APSINGLEWIN_SLIDER); this.swSlider.getHandle_0().setMinMax_2(0, this.swValues.size_0() - 1); this.swSlider.getHandle_0().setValue_1(0); this.swSlider.getHandle_0().addSliderListener_1(this); this.txtRoundsValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_APROUNDS_VALUE); this.txtLossLimitValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_APLOSSLIMIT_VALUE); this.txtSingleWinValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_APSINGLEWIN_VALUE); this.sendButton = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_SETAPSETTINGS); this.sendButton.setActive_1(!1); this.sliderValueChanged_1(this.roundsSlider.getHandle_0()); this.sliderValueChanged_1(this.llSlider.getHandle_0()); this.sliderValueChanged_1(this.swSlider.getHandle_0()); }, addTicketValuesToVector_3: function (a, b, d) { for (var e = 1; e < d; ) 1 * e < d && 1 * e >= b && a.addElement_1(new Double(1 * e)), 2 * e < d && 2 * e >= b && a.addElement_1(new Double(2 * e)), 3 * e < d && 3 * e >= b && a.addElement_1(new Double(3 * e)), 4 * e < d && 4 * e >= b && a.addElement_1(new Double(4 * e)), 5 * e < d && 5 * e >= b && a.addElement_1(new Double(5 * e)), 6 * e < d && 6 * e >= b && a.addElement_1(new Double(6 * e)), 7 * e < d && 7 * e >= b && a.addElement_1(new Double(7 * e)), 8 * e < d && 8 * e >= b && a.addElement_1(new Double(8 * e)), 9 * e < d && 9 * e >= b && a.addElement_1(new Double(9 * e)), (e *= 10); a.addElement_1(new Double(d)); }, close_0: function () { this.isOpen_0() && GT1560.prototype.destroyIfAlive_1(this.cntDialog); }, isOpen_0: function () { return null != this.cntDialog && this.cntDialog.isAlive_0(); }, reset_0: function () { this.roundsSlider.getHandle_0().setValue_1(0); this.llSlider.getHandle_0().setValue_1(0); this.swSlider.getHandle_0().setValue_1(0); }, getRounds_0: function () { return this.roundsValues[this.roundsSlider.getHandle_0().getValue_0()]; }, getLossLimit_0: function () { return this.llValues.elementAt_1(this.llSlider.getHandle_0().getValue_0()).doubleValue_0(); }, getSingleWinLimit_0: function () { return this.swValues.elementAt_1(this.swSlider.getHandle_0().getValue_0()).doubleValue_0(); }, sliderValueChanged_1: function (a) { if (a == this.roundsSlider.getHandle_0()) { var b = this.getRounds_0(); 0 >= b ? this.txtRoundsValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue")) : this.txtRoundsValue.setText_1("" + b); } a == this.llSlider.getHandle_0() && ((b = this.getLossLimit_0()), 0 >= b ? this.txtLossLimitValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue")) : this.txtLossLimitValue.setText_1(this.applet.getSessionMoneyString_3(b, !1, !0))); a == this.swSlider.getHandle_0() && ((b = this.getSingleWinLimit_0()), 0 >= b ? this.txtSingleWinValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue")) : this.txtSingleWinValue.setText_1(this.applet.getSessionMoneyString_3(b, !1, !0))); this.sendButton.setActive_1(0 < this.getRounds_0() && 0 < this.getLossLimit_0()); }, sliderDropped_1: function (a) { this.sliderValueChanged_1(a); }, }, "GT360", [GT1067] ); GT360.prototype.ROUNDS_SLIDER_BIG_STEP_SIZE = 5; GT360.prototype.ROUNDS_SLIDER_SINGLE_STEP_LIMIT = 20; var GT496 = GT1158.extend( { initialConstructor_0: function () { this.sound = null; this.postdelay = 0; this.anim = this.images = null; GT1158.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.sound = null; this.postdelay = 0; this.anim = this.images = null; GT1158.prototype.initialConstructor_5.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0()); this.setHorizontalAlignment_1(GT1488.prototype.CENTER); this.setVerticalAlignment_1(GT1489.prototype.CENTER); this.setResize2content_1(!0); this.sound = d; this.postdelay = f; this.images = b; this.anim = null != e ? e : new GT254(); }, initAndStart_3: function (a, b, d) { var e = new GT1437(this, 0, 0, 2048, 300); d ? (this.anim.skipDeveloperLogoAnimation_3(e, this.images, a), this.reflow_0(), b.run_0()) : ((d = new GT958(this, a.getSoundPlayer_0(), this.sound)), (b = new GT910(a.getTimer_0(), b, this.postdelay)), this.anim.createDeveloperLogoAnimation_5(e, this.images, a, d, b)); }, }, "GT496", [] ), GT254 = Class.extend( { initialConstructor_0: function () {}, createDeveloperLogoAnimation_5: function (a, b, d, e, f) { var g = b[1], k = b[2], m = b[3], n = b[4], p = b[5], q = b[6], r = new GT1591(a, -350, 27, b[0]); b = new GT653(d.getTimer_0(), r, 350, 27, 100); r = new GT653(d.getTimer_0(), r, 763, 27, 1100); r.setMotionGraph_1(new GT1062(2, 4.5)); b.addFinishCallback_1(new GT660(r)); var t = new GT1591(a, 2060, 96, g), g = new GT653(d.getTimer_0(), t, 1360, 96, 100), t = new GT653(d.getTimer_0(), t, 1001, 96, 1200); t.setMotionGraph_1(new GT1062(2.5, 5.5)); g.addFinishCallback_1(new GT660(t)); t = new GT1591(a, -772, 221, k); k = new GT653(d.getTimer_0(), t, -72, 221, 100); t = new GT653(d.getTimer_0(), t, 766, 221, 900); t.setMotionGraph_1(new GT1062(2, 5)); k.addFinishCallback_1(new GT660(t)); t = new GT1591(a, -589, 232, m); m = new GT653(d.getTimer_0(), t, 111, 232, 100); t = new GT653(d.getTimer_0(), t, 949, 232, 1350); t.setMotionGraph_1(new GT1062(3, 7)); m.addFinishCallback_1(new GT660(t)); t = new GT852(a); new GT1591(t, 876, 154, n); new GT1591(t, 764, 154, p); new GT1591(t, 803, 154, p); new GT1591(t, 838, 154, p); new GT1591(t, 915, 154, p); new GT1591(t, 951, 154, p); t.setAlpha_1(0); n = new GT1191(d.getTimer_0(), t, !1, [[200, 0, 255]]); r.addFinishCallback_1(new GT660(n)); a = new GT1591(a, 733, 0, q); a.setAlpha_1(0); a = new GT1191(d.getTimer_0(), a, !1, [ [750, 0, 255], [750, 255, 0], ]); n.addFinishCallback_1(new GT660(a)); a.addFinishCallback_1(f); d = new GT1129(d.getTimer_0(), 500, !1); d.addFinishCallback_1(e); d.addFinishCallback_1(new GT660(b)); d.addFinishCallback_1(new GT660(g)); d.addFinishCallback_1(new GT660(k)); d.addFinishCallback_1(new GT660(m)); d.start_0(); }, skipDeveloperLogoAnimation_3: function (a, b, d) { d = b[1]; var e = b[2], f = b[3], g = b[4], k = b[5]; new GT1591(a, 763, 27, b[0]); new GT1591(a, 1001, 96, d); new GT1591(a, 766, 221, e); new GT1591(a, 766, 232, f); new GT1591(a, 876, 154, g); new GT1591(a, 764, 154, k); new GT1591(a, 803, 154, k); new GT1591(a, 838, 154, k); new GT1591(a, 915, 154, k); new GT1591(a, 951, 154, k); }, }, "GT254", [GT405] ), GT958 = Class.extend( { initialConstructor_0: function () { this.sound = this.sp = this.cntReflow = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.sound = this.sp = this.cntReflow = null; this.cntReflow = a; this.sp = b; this.sound = d; }, run_0: function () { this.cntReflow.reflow_0(); null != this.sp && null != this.sound && this.sp.start_1(this.sound); }, }, "GT958", [Runnable] ), GT910 = Class.extend( { initialConstructor_0: function () { this.timer = this.cb = null; this.delay = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.timer = this.cb = null; this.delay = 0; this.timer = a; this.cb = b; this.delay = d; }, run_0: function () { this.timer.triggerCallbackAfter_2(this.cb, this.delay); }, }, "GT910", [Runnable] ), GT1062 = GT1253.extend( { initialConstructor_0: function () { this.bounce = this.waves = 0; GT1253.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.bounce = this.waves = 0; GT1253.prototype.initialConstructor_0.call(this); this.waves = a + 0.25; this.bounce = b; }, initialConstructor_1: function (a) { GT1062.prototype.initialConstructor_2.call(this, a, GT1062.prototype.NORMAL_BOUNCE); }, computeWay_1: function (a) { return 1 - Math.exp_1(-this.bounce * a * this.waves) * Math.cos_1(2 * Math.PI * a * this.waves); }, }, "GT1062", [] ); GT1062.prototype.NORMAL_BOUNCE = 1; GT1062.prototype.LIGHT_BOUNCE = 2.5; GT1062.prototype.STRONG_BOUNCE = 0.5; var GT227 = GT1437.extend( { initialConstructor_0: function () { this.singleGambleImage = this.cardGambleImage = this.settingsSavedMessage = this.disableGamblingButton = this.enableGamblingButton = this.cntDisableGamblingDialog = this.applet = null; this.proposeDisableGambling = this.gamblingDisabled = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.singleGambleImage = this.cardGambleImage = this.settingsSavedMessage = this.disableGamblingButton = this.enableGamblingButton = this.cntDisableGamblingDialog = this.applet = null; this.proposeDisableGambling = this.gamblingDisabled = !1; GT1437.prototype.initialConstructor_1.call(this, b); this.applet = a; var d = a.getParameter_1(GT334.prototype.PARAM_DISABLE_GAMBLING), e = a.getParameter_1(GT227.prototype.PARAM_PROPOSE_DISABLE_GAMBLING); null == e && (e = GT227.prototype.DEFAULT_PROPOSE_DISABLE_GAMBLING); this.proposeDisableGambling = GT1672.prototype.stringToBoolean_1(e); null == d && ((d = a.getLocalStorage_0().getItem_1(GT334.prototype.PARAM_DISABLE_GAMBLING)), null == d || d.isEmpty_0() ? (d = null) : (this.proposeDisableGambling = !1)); this.gamblingDisabled = "1".equals_1(d); }, open_0: function () { GT1560.prototype.destroyIfAlive_1(this.cntDisableGamblingDialog); this.applet.layerMain.setModalInputReceiver_1(null); this.cntDisableGamblingDialog = this.applet.getGameOverlaySkin_0().containerDisableGamblingDialog_0().create_2(this, this.applet.getSkinManager_0()); if (null != this.cntDisableGamblingDialog) { var a = this.applet.isSingleButtonGambling_0(); this.setApplicationID_1(this.cntDisableGamblingDialog.getApplicationID_0()); this.disableGamblingButton = this.cntDisableGamblingDialog.findDescendant_1(GT307.prototype.ACTION_DISABLE_GAMBLING); this.enableGamblingButton = this.cntDisableGamblingDialog.findDescendant_1(GT307.prototype.ACTION_ENABLE_GAMBLING); this.settingsSavedMessage = this.cntDisableGamblingDialog.findDescendant_1(GT307.prototype.TEXT_GAMBLING_DIALOG_SAVED); this.cardGambleImage = this.cntDisableGamblingDialog.findDescendant_1(GT307.prototype.IMG_GAMBLING_CARD); this.singleGambleImage = this.cntDisableGamblingDialog.findDescendant_1(GT307.prototype.IMG_GAMBLING_SINGLE); this.hideObject_2(this.disableGamblingButton, this.gamblingDisabled); this.hideObject_2(this.enableGamblingButton, !this.gamblingDisabled); this.hideObject_2(this.settingsSavedMessage, !0); this.hideObject_2(this.cardGambleImage, a); this.hideObject_2(this.singleGambleImage, !a); this.attenuateObject_2(this.cardGambleImage, this.gamblingDisabled); this.attenuateObject_2(this.singleGambleImage, this.gamblingDisabled); this.applet.layerMain.setModalInputReceiver_1(this.applet.containerAboveGame); } }, close_0: function () { this.isOpen_0() && (GT1560.prototype.destroyIfAlive_1(this.cntDisableGamblingDialog), this.applet.layerMain.setModalInputReceiver_1(null)); }, isOpen_0: function () { return null != this.cntDisableGamblingDialog && this.cntDisableGamblingDialog.isAlive_0(); }, toggle_0: function () { this.setGamblingDisabled_1(!this.isGamblingDisabled_0()); }, setGamblingDisabled_1: function (a) { this.gamblingDisabled = a; this.proposeDisableGambling = !1; this.applet.getLocalStorage_0().setItem_2(GT334.prototype.PARAM_DISABLE_GAMBLING, a ? "1" : "0"); this.hideObject_2(this.disableGamblingButton, a); this.hideObject_2(this.enableGamblingButton, !a); this.hideObject_2(this.settingsSavedMessage, !1); this.attenuateObject_2(this.cardGambleImage, a); this.attenuateObject_2(this.singleGambleImage, a); }, isGamblingDisabled_0: function () { return this.gamblingDisabled; }, isDisableGamblingProposal_0: function () { return this.proposeDisableGambling; }, hideObject_2: function (a, b) { GT1560.prototype.isAlive_1(a) && a.hide_1(b); }, attenuateObject_2: function (a, b) { GT1560.prototype.isAlive_1(a) && !a.isHidden_0() && a.setAlpha_1(b ? 160 : 255); }, }, "GT227", [] ); GT227.prototype.PARAM_PROPOSE_DISABLE_GAMBLING = "disable.gamble.popup.show"; GT227.prototype.DEFAULT_PROPOSE_DISABLE_GAMBLING = "false"; var GT749 = GT1437.extend( { initialConstructor_0: function () { this.payinblinkanim = this.updateTimeCallback = this.txtSessionTime = this.txtTime = this.txtRoundId = this.txtBalance = this.buttonOpenReplay = this.buttonNormalAspect = this.buttonWideAspect = this.buttonMusicOff = this.buttonMusicOn = this.buttonSoundOff = this.buttonSoundOn = this.buttonWindow = this.buttonFullscreen = this.buttonPayIn = this.buttonLeaveTable = this.applet = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.payinblinkanim = this.updateTimeCallback = this.txtSessionTime = this.txtTime = this.txtRoundId = this.txtBalance = this.buttonOpenReplay = this.buttonNormalAspect = this.buttonWideAspect = this.buttonMusicOff = this.buttonMusicOn = this.buttonSoundOff = this.buttonSoundOn = this.buttonWindow = this.buttonFullscreen = this.buttonPayIn = this.buttonLeaveTable = this.applet = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.updateTimeCallback = new GT1509(this, GT749.prototype.UPDATETIME); }, showSessionTime_0: function () { var a = 0 != this.applet.getIntParameter_2("showsessiontime", 0), b = 0 != this.applet.getIntParameter_2("sessiontime.show", 0); return a || b; }, init_1: function (a) { this.applet = a; a.triggerCallbackAfter_2(new GT1509(this, GT749.prototype.UPDATETIME), 0); this.buttonLeaveTable = this.findDescendant_1(GT307.prototype.ACTION_LEAVETABLE); this.buttonPayIn = this.findDescendant_1(GT307.prototype.ACTION_PAYIN); a.isDeepWalletPlayer_0() && GT1560.prototype.destroyIfAlive_1(this.buttonPayIn); this.buttonFullscreen = this.findDescendant_1(GT307.prototype.ACTION_FULLSCREEN); this.buttonWindow = this.findDescendant_1(GT307.prototype.ACTION_WINDOWED); a.isFullscreenModeSupported_0() || (GT1560.prototype.destroyIfAlive_1(this.buttonFullscreen), GT1560.prototype.destroyIfAlive_1(this.buttonWindow)); this.buttonSoundOn = this.findDescendant_1(GT307.prototype.ACTION_SOUNDON); this.buttonSoundOff = this.findDescendant_1(GT307.prototype.ACTION_SOUNDOFF); this.buttonMusicOn = this.findDescendant_1(GT307.prototype.ACTION_MUSICON); this.buttonMusicOff = this.findDescendant_1(GT307.prototype.ACTION_MUSICOFF); this.buttonWideAspect = this.findDescendant_1(GT307.prototype.ACTION_ASPECTWIDE); this.buttonNormalAspect = this.findDescendant_1(GT307.prototype.ACTION_ASPECTNORMAL); a = 0 != a.getIntParameter_2("hasreplay", 1); this.buttonOpenReplay = this.findDescendant_1(GT307.prototype.ACTION_OPENREPLAY); a || GT1560.prototype.destroyIfAlive_1(this.buttonOpenReplay); this.txtBalance = this.findDescendant_1(GT307.prototype.TEXT_BALANCE); this.txtRoundId = this.findDescendant_1(GT307.prototype.TEXT_ROUNDID); this.txtTime = this.findDescendant_1(GT307.prototype.TEXT_TIME); this.txtSessionTime = this.findDescendant_1(GT307.prototype.TEXT_SESSIONTIME); this.showSessionTime_0() || GT1560.prototype.destroyIfAlive_1(this.txtSessionTime); }, updateAll_0: function () { this.updateButtons_0(); this.updateBalance_0(); this.updateRoundid_0(); }, updateButtons_0: function () { GT1560.prototype.isAlive_1(this.buttonLeaveTable) && this.buttonLeaveTable.setActive_1(this.applet.isExitAllowed_0()); this.applet.isDeepWalletPlayer_0() ? GT1560.prototype.isAlive_1(this.buttonPayIn) && this.buttonPayIn.destroy_0() : GT1560.prototype.isAlive_1(this.buttonPayIn) && this.buttonPayIn.setActive_1(this.applet.isPayInAllowed_0()); GT1560.prototype.isAlive_1(this.buttonFullscreen) && this.buttonFullscreen.hide_1(this.applet.getFullscreenMode_0()); GT1560.prototype.isAlive_1(this.buttonWindow) && this.buttonWindow.hide_1(!this.applet.getFullscreenMode_0()); this.applet.getSoundPlayer_0().isActive_0() ? (GT1560.prototype.isAlive_1(this.buttonSoundOff) && this.buttonSoundOff.hide_1(!0), GT1560.prototype.isAlive_1(this.buttonSoundOn) && this.buttonSoundOn.hide_1(!1)) : (GT1560.prototype.isAlive_1(this.buttonSoundOff) && this.buttonSoundOff.hide_1(!1), GT1560.prototype.isAlive_1(this.buttonSoundOn) && this.buttonSoundOn.hide_1(!0)); this.applet.isMusicActive_0() ? (GT1560.prototype.isAlive_1(this.buttonMusicOff) && this.buttonMusicOff.hide_1(!0), GT1560.prototype.isAlive_1(this.buttonMusicOn) && (this.buttonMusicOn.hide_1(!1), this.buttonMusicOn.setActive_1(this.applet.getSoundPlayer_0().isActive_0()))) : (GT1560.prototype.isAlive_1(this.buttonMusicOff) && (this.buttonMusicOff.hide_1(!1), this.buttonMusicOff.setActive_1(this.applet.getSoundPlayer_0().isActive_0())), GT1560.prototype.isAlive_1(this.buttonMusicOn) && this.buttonMusicOn.hide_1(!0)); var a = 1 == this.applet.getAspectRatio_0(); GT1560.prototype.isAlive_1(this.buttonWideAspect) && this.buttonWideAspect.hide_1(!a); GT1560.prototype.isAlive_1(this.buttonNormalAspect) && this.buttonNormalAspect.hide_1(a); GT1560.prototype.isAlive_1(this.buttonOpenReplay) && (this.buttonOpenReplay.hide_1(this.applet.hasReplayParameter_0() || 0 == this.applet.getRoundNumber_0().length_0() || !this.applet.isMainPlayer_0()), this.buttonOpenReplay.setActive_1(this.applet.isReplayAllowed_0()), GT749.prototype.Log.trace && GT749.prototype.Log.t_1("buttonOpenReplay is: " + this.buttonOpenReplay.isActive_0())); this.updatePayInBlinkAnimation_0(); }, updatePayInBlinkAnimation_0: function () { null != this.payinblinkanim && this.payinblinkanim.isStarted_0() && (this.payinblinkanim.kill_0(), (this.payinblinkanim = null)); GT1560.prototype.isAlive_1(this.buttonPayIn) && this.buttonPayIn.isActive_0() && this.applet.hasOpenSession_0() && this.applet.hasTooLittleMoneyToPlay_0() && !this.applet.isPayInDialogOpen_0() && this.applet.isActivePlayer_0() && !this.applet.hasOpenRound_0() && !this.applet.isDeepWalletPlayer_0() && ((this.payinblinkanim = new GT464(this.applet.getTimer_0(), this.buttonPayIn, 500, 40, 50)), this.payinblinkanim.start_0()); }, updateBalance_0: function () { GT1560.prototype.isAlive_1(this) && GT1560.prototype.isAlive_1(this.txtBalance) && this.applet.isConnected_0() && (this.applet.isDeepWalletPlayer_0() || (this.applet.isReplayDialogOpen_0() ? this.txtBalance.setText_1("") : this.txtBalance.setText_1(this.applet.getTicketString_1(this.applet.getTickets_0())))); }, updateRoundid_0: function () { GT1560.prototype.isAlive_1(this) && GT1560.prototype.isAlive_1(this.txtRoundId) && (this.applet.hasOpenSession_0() ? this.txtRoundId.setText_1(this.applet.getRoundNumber_0()) : this.txtRoundId.setText_1("")); }, run_1: function (a) { GT749.prototype.UPDATETIME.equals_1(a) && ((a = !1), GT1560.prototype.isAlive_1(this.txtTime) && (this.txtTime.setText_1(GT1563.prototype.timeOfDay_1(!1)), (a = !0)), GT1560.prototype.isAlive_1(this.txtSessionTime) && (this.txtSessionTime.setText_1(this.applet.timeSinceSessionStart_1(!0)), (a = !0)), a && this.applet.triggerCallbackAfter_2(this.updateTimeCallback, 100)); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.updateTimeCallback = null; }, }, "GT749", [GT1482] ); GT749.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); GT749.prototype.UPDATETIME = "updatetime"; var GT683 = GT852.extend( { initialConstructor_0: function () { this.newjackpotvalue = this.currentvalue = 0; this.idleAnims = this.reelAnims = this.timer = this.font = this.formatter = null; this.speed = this.stepTime = this.time2Run = 0; this.front = this.back = this.imgGapBack = this.imgNumberBack = this.imgRightEdge = this.imgLeftEdge = this.csymColor = this.fontColor = null; this.minimumReels = 0; this.idleanimcallback = this.reelanimcallback = null; GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_15: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B) { this.newjackpotvalue = this.currentvalue = 0; this.idleAnims = this.reelAnims = this.timer = this.font = this.formatter = null; this.speed = this.stepTime = this.time2Run = 0; this.front = this.back = this.imgGapBack = this.imgNumberBack = this.imgRightEdge = this.imgLeftEdge = this.csymColor = this.fontColor = null; this.minimumReels = 0; this.idleanimcallback = this.reelanimcallback = null; GT852.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.back = new GT852(this); this.front = new GT852(this, 0, 4, e, f - 8); this.formatter = null; this.font = k; this.timer = p; this.currentvalue = -1; this.reelAnims = new java_util_JavaScriptVector(); this.idleAnims = new java_util_JavaScriptVector(); this.time2Run = g; this.fontColor = m; this.csymColor = n; this.imgGapBack = u; this.imgLeftEdge = q; this.imgRightEdge = r; this.imgNumberBack = t; this.minimumReels = B; this.reelanimcallback = new GT1509(this, "reelanim"); this.idleanimcallback = new GT1509(this, "idleanim"); }, createBackContainer_1: function (a) { this.back.destroyChildren_0(); var b = new GT1437(this.back), d = this.back.getWidth_0() - this.imgRightEdge.getWidth_0(); new GT1591(this.back, d, 0, this.imgRightEdge); 1 != this.formatter.getCurrencyFactor_0() && ((d -= this.imgNumberBack.getWidth_0() - 1), new GT1591(this.back, d, 0, this.imgNumberBack), new GT1440(b, d - 1, 3, 2, this.imgNumberBack.getHeight_0() - 6, GT1634.prototype.black).setAlpha_1(30), (d -= this.imgNumberBack.getWidth_0() - 1), new GT1591(this.back, d, 0, this.imgNumberBack), new GT1440(b, d - 1, 3, 2, this.imgNumberBack.getHeight_0() - 6, GT1634.prototype.black).setAlpha_1(30)); for (var e = 0; e < a; e += 3) { if (1 != this.formatter.getCurrencyFactor_0() || 0 != e) (d -= this.imgGapBack.getWidth_0() - 1), new GT1591(this.back, d, 0, this.imgGapBack), new GT1440(b, d - 1, 3, 2, this.imgNumberBack.getHeight_0() - 6, GT1634.prototype.black).setAlpha_1(30); for (var f = e; f < a && f < e + 3; f++) (d -= this.imgNumberBack.getWidth_0() - 1), new GT1591(this.back, d, 0, this.imgNumberBack), new GT1440(b, d - 1, 3, 2, this.imgNumberBack.getHeight_0() - 6, GT1634.prototype.black).setAlpha_1(30); } d -= this.imgGapBack.getWidth_0() - 1; new GT1591(this.back, d, 0, this.imgGapBack); d -= this.imgLeftEdge.getWidth_0() - 1; new GT1591(this.back, d, 0, this.imgLeftEdge); b.reorder_1(!0); }, setFormatter_1: function (a) { this.formatter = a; }, setJackpotValue_1: function (a) { if (0 > this.currentvalue || a <= this.currentvalue) this.createBackContainer_1(0 == a ? this.minimumReels : Math.max_2(Integer.truncate_1(Math.log10_1(a)) + 1 + (1 == this.formatter.getCurrencyFactor_0() ? 0 : -2), this.minimumReels)), this.buildCharsFromString_1(a), (this.currentvalue = a); else { var b = Integer.truncate_1(Math.log10_1(a)) + 1, d = Integer.truncate_1(Math.log10_1(this.currentvalue)) + 1; b > d && this.createBackContainer_1(Math.max_2(b + (1 == this.formatter.getCurrencyFactor_0() ? 0 : -2), this.minimumReels)); this.buildReelAnimation_1(a); } }, buildCharsFromString_1: function (a) { var b = Math.max_2(this.minimumReels + (1 == this.formatter.getCurrencyFactor_0() ? -1 : 1), Integer.truncate_1(Math.log10_1(a))), b = this.formatter.format_3(Math.pow_2(10, b), GT711.prototype.OMIT_CENT_NEVER, !0); a = GT1672.prototype.doubleToStringRounded_1(a); this.front.destroyChildren_0(); for (var d = this.getWidth_0() - this.imgRightEdge.getWidth_0(), e = a.length_0() - 1, f = b.length_0() - 1; 0 <= f; f--) { var g = b.substring_2(f, f + 1); this.formatter.getCurrencySymbol_0().equals_1(b.substring_2(0, f + 1)) && ((g = b.substring_2(0, f + 1)), (f = 0)); var k = 10; this.isNumber_1(g) ? ((k = this.imgNumberBack.getWidth_0()), (g = 0 <= e ? a.substring_2(e, e + 1) : "0"), e--) : this.isShortChar_1(g) ? (k = this.imgGapBack.getWidth_0()) : 0 == f && (k = this.imgLeftEdge.getWidth_0()); d -= k - 1; this.createChar_4(g, d, 0, k); } }, buildReelAnimation_1: function (a) { var b = Math.max_2(this.minimumReels + (1 == this.formatter.getCurrencyFactor_0() ? -1 : 1), Math.max_2(Integer.truncate_1(Math.log10_1(a)), Integer.truncate_1(Math.log10_1(this.currentvalue)))), b = this.formatter.format_3(Math.pow_2(10, b), GT711.prototype.OMIT_CENT_NEVER, !0), d = GT1672.prototype.doubleToStringRounded_1(this.currentvalue), e = GT1672.prototype.doubleToStringRounded_1(a); this.newjackpotvalue = a; for (var f = this.newjackpotvalue - this.currentvalue, g = Math.div(this.time2Run, f), k = (this.speed = 0); 120 > g && 10 < f; ) this.speed++, (g = f / 10), (k += f - 10 * Math.floor_1(g)), (f = g), (g = Math.div(this.time2Run, f + k)); this.stepTime = GT1672.prototype.doubleToInt_1(g); this.front.destroyChildren_0(); this.timer.removeCallback_2(this.reelanimcallback, !1); for (f = 0; f < this.reelAnims.size_0(); f++) this.reelAnims.elementAt_1(f).killWithoutTriggers_0(); for (f = 0; f < this.idleAnims.size_0(); f++) this.idleAnims.elementAt_1(f).killWithoutTriggers_0(); this.reelAnims.setSize_1(0); this.idleAnims.setSize_1(0); k = this.getWidth_0() - this.imgRightEdge.getWidth_0(); for (f = g = 0; f < b.length_0(); f++) { var m = b.substring_2(b.length_0() - f - 1, b.length_0() - f); this.formatter.getCurrencySymbol_0().equals_1(b.substring_2(0, b.length_0() - f)) && ((m = b.substring_2(0, b.length_0() - f)), (f = b.length_0() - 1)); var n = 10; this.isNumber_1(m) ? ((n = this.imgNumberBack.getWidth_0()), (m = g < e.length_0() ? e.substring_2(e.length_0() - 1 - g, e.length_0() - g) : "0")) : this.isShortChar_1(m) ? (n = this.imgGapBack.getWidth_0()) : f == b.length_0() - 1 && (n = this.imgLeftEdge.getWidth_0()); n--; k -= n; if (this.isNumber_1(m)) { var p = "0"; g < d.length_0() && (p = d.substring_2(d.length_0() - 1 - g, d.length_0() - g)); g++; var q = new GT852(this.front, k, 0, n, 0), r = new GT852(this.front, k, 0, n, 0), t = 57, u = 0, B = 0; do this.createChar_5(q, GT1672.prototype.charToString_1(t), 0, u, n), 57 == t ? (t = 48) : t++, (u -= this.front.getHeight_0()); while (t != p.charAt_1(0)); var B = u, A = Integer.truncate_1(Math.div(this.currentvalue, Math.pow_2(10, g))) != Integer.truncate_1(Math.div(a, Math.pow_2(10, g))), C = !1, t = p.charAt_1(0); for (this.createChar_5(q, GT1672.prototype.charToString_1(t), 0, u, n); t != m.charAt_1(0) || (!C && A); ) 57 == t ? ((t = 48), (C = !0)) : t++, (u -= this.front.getHeight_0()), this.createChar_5(q, GT1672.prototype.charToString_1(t), 0, u, n); q.shrinkWrap_0(); q.move_2(k, this.front.getHeight_0() - B - q.getHeight_0()); t = new GT653(this.timer, q, k, q.getY_0() + this.front.getHeight_0(), this.stepTime, !1); t.setUpdateEveryFrame_1(!1); t.setTargetY_1(q.getY_0() + this.front.getHeight_0()); t.setKillWhenObjectIsDestroyed_2(!0, !0); g - 1 == this.speed && t.addFinishCallback_1(this.reelanimcallback); this.reelAnims.addElement_1(t); t = p.charAt_1(0); for (p = u = 0; 11 > p; p++) this.createChar_5(r, GT1672.prototype.charToString_1(t), 0, u, n), 57 == t ? (t = 48) : t++, (u -= this.front.getHeight_0()); r.shrinkWrap_0(); r.move_2(k, this.front.getHeight_0() - r.getHeight_0()); r.hide_1(!0); n = new GT653(this.timer, r, k, 11 * this.front.getHeight_0() - r.getHeight_0(), this.stepTime * Integer.truncate_1(Math.pow_2(3, g)), !1); n.setUpdateEveryFrame_1(!1); n.addStartCallback_1(new GT870(r, k, this.front.getHeight_0() - r.getHeight_0())); n.addStartCallback_1(new GT869(q, !0)); n.addStartCallback_1(new GT869(r, !1)); n.addFinishCallback_1(new GT869(r, !0)); n.addFinishCallback_1(new GT869(q, !1)); n.addFinishCallback_1(this.idleanimcallback); n.setKillWhenObjectIsDestroyed_2(!0, !0); this.idleAnims.addElement_1(n); } else this.createChar_4(m, k, 0, n); } this.run_1("reelanim"); this.run_1("idleanim"); }, createChar_4: function (a, b, d, e) { this.createChar_5(this.front, a, b, d, e); }, createChar_5: function (a, b, d, e, f) { var g = this.fontColor; this.formatter.getCurrencySymbol_0().equals_1(b) && (g = this.csymColor); new GT1490(a, d, e, f, this.front.getHeight_0(), b, this.font, g, GT1488.prototype.CENTER, GT1489.prototype.CENTER, -1).setInsets_4(2, 2, 2, 2); }, run_1: function (a) { if ("reelanim".equals_1(a)) { if (!(this.currentvalue >= this.newjackpotvalue)) { for (; Math.pow_2(10, this.speed) > this.newjackpotvalue - this.currentvalue; ) this.speed--, (a = this.reelAnims.elementAt_1(this.speed + 1)), a.removeFinishCallback_1(this.reelanimcallback), (a = this.reelAnims.elementAt_1(this.speed)), a.addFinishCallback_1(this.reelanimcallback); if (this.speed <= this.idleAnims.size_0() && ((a = this.idleAnims.elementAt_1(this.speed)), a.isRunning_0())) { this.timer.triggerCallbackAfter_2(this.reelanimcallback, Math.div(this.stepTime, 10)); return; } for (var b = Math.div(this.currentvalue, Math.pow_2(10, this.speed)), d = this.speed, e = !0; e; ) (a = b / 10), (e = 9 <= b - 10 * Math.floor_1(a)), (b = a), (a = this.reelAnims.elementAt_1(d)), GT1650.prototype.assertExp_2(!a.isRunning_0(), "anim is running " + d), a.reset_0(), e && a.getObject_0().move_2(a.getObject_0().getX_0(), -a.getObject_0().getHeight_0() + this.front.getHeight_0()), a.setTargetY_1(a.getObject_0().getY_0() + this.front.getHeight_0()), a.start_0(), (a = this.idleAnims.elementAt_1(d)), a.killAndTrigger_1(!0), d++; this.currentvalue += Math.pow_2(10, this.speed); } } else if ("idleanim".equals_1(a)) for (b = 10 * this.stepTime, d = this.speed - 1; 0 <= d; d--) (a = this.idleAnims.elementAt_1(d)), a.isRunning_0() || (a.setDuration_1(Integer.truncate_1(b)), a.reset_0(), a.start_0()), (b /= 2); }, }, "GT683", [GT1482] ); GT683.prototype.isNumber_1 = function (a) { if (null == a || 1 != a.length_0()) return !1; a = a.charAt_1(0); return 48 <= a && 57 >= a; }; GT683.prototype.isShortChar_1 = function (a) { if (1 != a.length_0()) return !1; a = a.charAt_1(0); return 46 == a || 32 == a || 44 == a || 8239 == a || 1643 == a; }; var GT590 = GT1437.extend( { initialConstructor_0: function () { this.applet = this.colaDialogBack = this.payInSteps = this.txtSelectedSliderValue = this.sliderPayIn = this.cntPayinDialog = null; this.showZeroValue = !1; this.buyButton = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.applet = this.colaDialogBack = this.payInSteps = this.txtSelectedSliderValue = this.sliderPayIn = this.cntPayinDialog = null; this.showZeroValue = !1; this.buyButton = null; GT1437.prototype.initialConstructor_1.call(this, b); this.applet = a; }, open_3: function (a, b, d) { GT1560.prototype.destroyIfAlive_1(this.cntPayinDialog); GT1560.prototype.destroyIfAlive_1(this.colaDialogBack); this.showZeroValue = !"0".equals_1(this.applet.getPlayerAttribute_2("NEEDSSESSIONTIMEOUT", "0")); this.cntPayinDialog = this.applet.getGameOverlaySkin_0().containerPayInDialog_0().create_2(this, this.applet.getSkinManager_0()); a && ((a = this.cntPayinDialog.findDescendant_1(GT307.prototype.TEXT_PAYINDESC)), GT1560.prototype.isAlive_1(a) && a.setText_1(this.applet.getSkin_0().getString_1("payindescriptionerrortext"))); a = this.applet.hasOpenSession_0() ? GT1677.prototype.getCentFromCurrencyValue_2(d, this.applet.getSessionCurrencyFactor_0()) : 0; this.payInSteps = this.getPaySliderValues_2(b, a); this.sliderPayIn = this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_PAYINSLIDER); GT1560.prototype.isAlive_1(this.sliderPayIn) && (this.sliderPayIn.getHandle_0().setMinMax_2(0, this.payInSteps.size_0() - 1), this.sliderPayIn.getHandle_0().setValue_1(this.showZeroValue ? 0 : this.payInSteps.size_0() - 1), this.sliderPayIn.getHandle_0().addSliderListener_1(new GT601(this)), this.sliderPayIn.setActive_1(1 < this.payInSteps.size_0()), (this.txtSelectedSliderValue = this.cntPayinDialog.findDescendant_1(GT307.prototype.TEXT_PAYINVALUE1)), this.payInSliderDropped_0(), (a = this.applet.getPlayerCurrencyFactor_0()), (b = GT1677.prototype.getCurrencyValueFromCent_2(b, a)), (a = this.payInSteps.elementAt_1(this.payInSteps.size_0() - 1).doubleValue_0()), 0 < a && a + d >= b ? (this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_BUYTICKETS).hide_1(!1), this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_PAYINACCOUNT2).hide_1(!0)) : (this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_PAYINACCOUNT2).hide_1(!1), this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_BUYTICKETS).hide_1(!0))); this.buyButton = this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_BUYTICKETS); this.applet.getCasinoBaseCustomization_0().showExitButtonInPayInDialog_0() ? this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG1).hide_1(!0) : this.cntPayinDialog.findDescendant_1(GT307.prototype.ACTION_CLOSEPAYINDIALOG2).hide_1(!0); this.update_0(); }, close_0: function () { this.isOpen_0() && (GT1560.prototype.destroyIfAlive_1(this.cntPayinDialog), GT1560.prototype.destroyIfAlive_1(this.colaDialogBack)); }, isOpen_0: function () { return null != this.cntPayinDialog && this.cntPayinDialog.isAlive_0(); }, update_0: function () { if (this.isOpen_0()) { var a = GT1559.prototype.findButtonByID_2(this.cntPayinDialog, GT307.prototype.ACTION_PAYINACCOUNT); GT1560.prototype.isAlive_1(a) && a.setActive_1(!this.applet.didSendPayInRequest_0()); a = GT1559.prototype.findButtonByID_2(this.cntPayinDialog, GT307.prototype.ACTION_CLOSEPAYINDIALOG1); GT1560.prototype.isAlive_1(a) && a.setActive_1(!this.applet.didSendPayInRequest_0()); a = GT1559.prototype.findButtonByID_2(this.cntPayinDialog, GT307.prototype.ACTION_CLOSEPAYINDIALOG2); GT1560.prototype.isAlive_1(a) && a.setActive_1(!this.applet.didSendPayInRequest_0()); a = GT1559.prototype.findButtonByID_2(this.cntPayinDialog, GT307.prototype.ACTION_BUYTICKETS); GT1560.prototype.isAlive_1(a) && a.setActive_1(!this.applet.didSendPayInRequest_0() && 0 < this.getSelectedValue_0()); GT1560.prototype.isAlive_1(this.sliderPayIn) && this.sliderPayIn.setActive_1(!this.applet.didSendPayInRequest_0()); } }, payInSliderValueChanged_0: function () { var a = this.getSelectedValue_0(); 0 == a && this.showZeroValue ? this.txtSelectedSliderValue.setText_1(this.applet.getSkinManager_0().getText_1("${selectvalue}")) : this.txtSelectedSliderValue.setText_1(this.getPaySliderString_1(a)); GT1560.prototype.isAlive_1(this.buyButton) && this.buyButton.setActive_1(!this.applet.didSendPayInRequest_0() && 0 < a); }, payInSliderDropped_0: function () { this.payInSliderValueChanged_0(); }, getPaySliderValues_2: function (a, b) { var d = GT1672.prototype.stringToDouble_1(this.applet.getPlayerAttribute_2("CURRENCYFACTOR", "100")), e = a; this.applet.hasOpenSession_0() && (e = b >= a ? 1 : a - Integer.truncate_1(b)); for ( var f = this.applet.mustUseMaxBuyIn_0() ? Math.min_2(this.applet.getMaxBuyIn_EuroCent_0(), this.applet.getTickets_0()) : this.applet.getTickets_0(), g = Math.ceil_1(GT1677.prototype.getCurrencyValueFromCent_2(f, d)); Math.ceil_1(GT1677.prototype.getCentFromCurrencyValue_2(g, d)) > f && 0 < g; ) g--; d = Math.ceil_1(GT1677.prototype.getCurrencyValueFromCent_2(e, d)); g > 1e3 * d && (d = Math.floor_1(g / 1e3)); e = new java_util_JavaScriptVector(); !this.applet.hasOpenSession_0() && this.showZeroValue && 0 < g && e.addElement_1(new Double(0)); for (f = 1; f < g; ) 1 * f < g && 1 * f >= d && e.addElement_1(new Double(1 * f)), 2 * f < g && 2 * f >= d && e.addElement_1(new Double(2 * f)), 3 * f < g && 3 * f >= d && e.addElement_1(new Double(3 * f)), 4 * f < g && 4 * f >= d && e.addElement_1(new Double(4 * f)), 5 * f < g && 5 * f >= d && e.addElement_1(new Double(5 * f)), (f *= 10); e.addElement_1(new Double(g)); return e; }, getSelectedValue_0: function () { return this.payInSteps.elementAt_1(this.sliderPayIn.getHandle_0().getValue_0()).doubleValue_0(); }, isMaxValueSelected_0: function () { return this.sliderPayIn.getHandle_0().getValue_0() == this.payInSteps.size_0() - 1; }, getPaySliderString_1: function (a) { var b = this.applet.getPlayerAttribute_2("CURRENCY", ""), d = GT1672.prototype.stringToDouble_1(this.applet.getPlayerAttribute_2("CURRENCYFACTOR", "100")); this.applet.hasOpenSession_0() && ((d = this.applet.getSessionCurrencyFactor_0()), (b = this.applet.getSessionCurrency_0())); return 1 == d ? this.applet.getMoneyString_5(a, b, !1, !0, !0) : this.applet.getMoneyString_5(a, b, !0, 1 > d, !0); }, }, "GT590", [] ), GT361 = GT1437.extend( { initialConstructor_0: function () { this.sendButton = this.applet = this.txtRCIntervalSliderValue = this.defrcintervalvalues = this.rcintervalvalues = this.rcIntervalSlider = this.cntDialog = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sendButton = this.applet = this.txtRCIntervalSliderValue = this.defrcintervalvalues = this.rcintervalvalues = this.rcIntervalSlider = this.cntDialog = null; GT1437.prototype.initialConstructor_1.call(this, b); this.applet = a; this.defrcintervalvalues = [0, 1, 15, 30, 45, 60, 80, 100, 120]; }, open_1: function (a) { GT1560.prototype.destroyIfAlive_1(this.cntDialog); this.cntDialog = this.applet.getGameOverlaySkin_0().containerRCSettingsDialog_0().create_2(this, this.applet.getSkinManager_0()); this.rcintervalvalues = 0 >= a ? this.defrcintervalvalues : GT1677.prototype.determineSliderValues_4(0, a, 31, 10); this.rcIntervalSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER); this.rcIntervalSlider.getHandle_0().setMinMax_2(0, this.rcintervalvalues.length - 1); this.rcIntervalSlider.getHandle_0().setValue_1(0); this.rcIntervalSlider.getHandle_0().addSliderListener_1(this); this.txtRCIntervalSliderValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_RCINTERVAL_VALUE); this.sendButton = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_SETRCSETTINGS); this.sliderDropped_1(this.rcIntervalSlider.getHandle_0()); this.sendButton.setActive_1(!1); }, close_0: function () { this.isOpen_0() && GT1560.prototype.destroyIfAlive_1(this.cntDialog); }, isOpen_0: function () { return null != this.cntDialog && this.cntDialog.isAlive_0(); }, getRCIntervalValue_0: function () { return this.rcintervalvalues[this.rcIntervalSlider.getHandle_0().getValue_0()]; }, sliderValueChanged_1: function (a) { a == this.rcIntervalSlider.getHandle_0() && ((a = this.getRCIntervalValue_0()), 0 >= a ? this.txtRCIntervalSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue")) : 1 == a ? this.txtRCIntervalSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneminute")) : this.txtRCIntervalSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("minutes", "" + a) )); this.sendButton.setActive_1(0 < this.getRCIntervalValue_0()); }, sliderDropped_1: function (a) { this.sliderValueChanged_1(a); }, }, "GT361", [GT1067] ), GT228 = GT1437.extend( { initialConstructor_0: function () { this.sendButton = this.applet = this.txtRGBlockSliderValue = this.txtRCIntervalSliderValue = this.txtSessiontimeSliderValue = this.defrcintervalvalues = this.rcintervalvalues = this.rgblockvalues = this.sessiontimes = this.rgBlockSlider = this.rcIntervalSlider = this.sessionTimeSlider = this.cntDialog = null; this.showRgblock = !1; this.cntRgBlock = this.btnRgblockToggle = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.sendButton = this.applet = this.txtRGBlockSliderValue = this.txtRCIntervalSliderValue = this.txtSessiontimeSliderValue = this.defrcintervalvalues = this.rcintervalvalues = this.rgblockvalues = this.sessiontimes = this.rgBlockSlider = this.rcIntervalSlider = this.sessionTimeSlider = this.cntDialog = null; this.showRgblock = !1; this.cntRgBlock = this.btnRgblockToggle = null; GT1437.prototype.initialConstructor_1.call(this, b); this.applet = a; this.sessiontimes = [0, 5, 10, 15, 30, 45, 60, 90, 120]; this.defrcintervalvalues = [0, 1, 15, 30, 45, 60, 80, 100, 120]; this.rgblockvalues = [0, 30, 60, 120, 180, 240, 300, 360, 720, 1440, 2880, 4320, 5760, 7200, 8640, 10080, 20160, 30240, 44640]; }, open_1: function (a) { GT1560.prototype.destroyIfAlive_1(this.cntDialog); this.cntDialog = this.applet.getGameOverlaySkin_0().containerSessionSettingsDialog_0().create_2(this, this.applet.getSkinManager_0()); this.sessionTimeSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_SESSIONTIME_SLIDER); this.sessionTimeSlider.getHandle_0().setMinMax_2(0, this.sessiontimes.length - 1); this.sessionTimeSlider.getHandle_0().setValue_1(0); this.sessionTimeSlider.getHandle_0().addSliderListener_1(this); this.rcintervalvalues = 0 >= a ? this.defrcintervalvalues : GT1677.prototype.determineSliderValues_4(0, a, 31, 10); this.rcIntervalSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_RCINTERVAL_SLIDER); this.rcIntervalSlider.getHandle_0().setMinMax_2(0, this.rcintervalvalues.length - 1); this.rcIntervalSlider.getHandle_0().setValue_1(0); this.rcIntervalSlider.getHandle_0().addSliderListener_1(this); this.cntRgBlock = this.cntDialog.findDescendant_1(GT307.prototype.ID_CONTAINER_RGBLOCK); this.showRgblock = !1; this.btnRgblockToggle = this.cntDialog.findDescendant_1(GT307.prototype.ID_RGBLOCK_TOGGLE); this.btnRgblockToggle.addButtonClickListener_1(this); this.updateRGBlockToggleButton_0(); this.cntRgBlock.hide_1(!this.showRgblock); this.rgBlockSlider = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_RGBLOCK_SLIDER); this.rgBlockSlider.getHandle_0().setMinMax_2(0, this.rgblockvalues.length - 1); this.rgBlockSlider.getHandle_0().setValue_1(0); this.rgBlockSlider.getHandle_0().addSliderListener_1(this); this.txtSessiontimeSliderValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_SESSIONTIME_VALUE); this.txtRCIntervalSliderValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_RCINTERVAL_VALUE); this.txtRGBlockSliderValue = this.cntDialog.findDescendant_1(GT307.prototype.TEXT_RGBLOCK_VALUE); this.sendButton = this.cntDialog.findDescendant_1(GT307.prototype.ACTION_SENDSETTINGS); this.sliderDropped_1(this.sessionTimeSlider.getHandle_0()); this.sliderDropped_1(this.rcIntervalSlider.getHandle_0()); this.sliderDropped_1(this.rgBlockSlider.getHandle_0()); this.sendButton.setActive_1(!1); }, close_0: function () { this.isOpen_0() && GT1560.prototype.destroyIfAlive_1(this.cntDialog); }, isOpen_0: function () { return null != this.cntDialog && this.cntDialog.isAlive_0(); }, getSessionTimeValue_0: function () { return this.sessiontimes[this.sessionTimeSlider.getHandle_0().getValue_0()]; }, getRCIntervalValue_0: function () { return this.rcintervalvalues[this.rcIntervalSlider.getHandle_0().getValue_0()]; }, getRGBlockValue_0: function () { return this.rgblockvalues[this.rgBlockSlider.getHandle_0().getValue_0()]; }, sliderValueChanged_1: function (a) { a == this.sessionTimeSlider.getHandle_0() ? ((a = this.getSessionTimeValue_0()), 0 < a ? 1 == a ? this.txtSessiontimeSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneminute")) : this.txtSessiontimeSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("minutes", "" + a) ) : this.txtSessiontimeSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue"))) : a == this.rcIntervalSlider.getHandle_0() ? ((a = this.getRCIntervalValue_0()), 0 >= a ? this.txtRCIntervalSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("selectvalue")) : 1 == a ? this.txtRCIntervalSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneminute")) : this.txtRCIntervalSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("minutes", "" + a) )) : a == this.rgBlockSlider.getHandle_0() && ((a = this.getRGBlockValue_0()), 60 > a ? 1 == a ? this.txtRGBlockSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneminute")) : this.txtRGBlockSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("minutes", "" + a) ) : ((a = Math.div(a, 60)), 24 > a ? 1 == a ? this.txtRGBlockSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("onehour")) : this.txtRGBlockSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("hours", "" + a) ) : ((a = Math.div(a, 24)), 7 > a ? 1 == a ? this.txtRGBlockSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneday")) : this.txtRGBlockSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("days", "" + a) ) : ((a = Math.div(a, 7)), 4 > a ? 1 == a ? this.txtRGBlockSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("oneweek")) : this.txtRGBlockSliderValue.setText_1( this.applet .getSkinManager_0() .getSkinDescription_0() .getParameterString_2("weeks", "" + a) ) : this.txtRGBlockSliderValue.setText_1(this.applet.getSkinManager_0().getSkinDescription_0().getString_1("onemonth")))))); this.sendButton.setActive_1(0 < this.getSessionTimeValue_0() && 0 < this.getRCIntervalValue_0()); }, sliderDropped_1: function (a) { this.sliderValueChanged_1(a); }, updateRGBlockToggleButton_0: function () { this.btnRgblockToggle.setChildForState_2(GT1236.prototype.INACTIVE, 0); this.showRgblock ? this.btnRgblockToggle.setChildForState_2(GT1236.prototype.DEFAULT, 1) : this.btnRgblockToggle.setChildForState_2(GT1236.prototype.DEFAULT, 0); this.btnRgblockToggle.finishButton_0(); }, click_1: function (a) { a == this.btnRgblockToggle && ((this.showRgblock = !this.showRgblock), this.updateRGBlockToggleButton_0(), this.cntRgBlock.hide_1(!this.showRgblock), this.rgBlockSlider.getHandle_0().setValue_1(0)); }, }, "GT228", [GT1067, GT807] ), GT486 = GT1364.extend( { initialConstructor_0: function () { this.fontColor = this.bar = this.txtPercent = this.font = null; this.showPercent = !1; GT1364.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.fontColor = this.bar = this.txtPercent = this.font = null; this.showPercent = !1; GT1364.prototype.initialConstructor_2.call(this, a, g); this.font = k; this.fontColor = m; this.showPercent = n; this.move_2(b, d); 0 < e && 0 < f ? this.resize_2(e, f) : this.resize_2(a.getWidth_0(), a.getHeight_0()); this.bar = new GT1437(this, Integer.truncate_1(this.getWidth_0() / 2) - 350, Integer.truncate_1(this.getHeight_0() / 2), 700, 30); }, initialConstructor_4: function (a, b, d, e) { GT486.prototype.initialConstructor_9.call(this, a, 0, 0, -1, -1, b, d, e, !0); }, init_1: function (a) { this.createContent_0(); GT1364.prototype.init_1.call(this, a); }, createContent_0: function () { this.showPercent && ((this.txtPercent = new GT1606(this, Integer.truncate_1(this.getWidth_0() / 2), Integer.truncate_1(this.getHeight_0() / 2) - 30, GT1606.prototype.ALIGN_CENTER, " 0%", this.font, this.maincolor)), this.txtPercent.setText_1(" 0%")); }, updateContent_0: function () { if (null != this.font && null != this.timer) { var a = Math.div(Integer.truncate_1(this.timer.currentTimeMillis_0() % 1e3), 10), b = Integer.truncate_1(100 * this.progress), a = 255 - (50 > a ? 2 * a : 2 * (100 - a)), d = new GT1634(Math.div(this.fontColor.getRed_0() * a, 255), Math.div(this.fontColor.getGreen_0() * a, 255), Math.div(this.fontColor.getBlue_0() * a, 255)), e = 10 > b ? " " : 100 > b ? " " : ""; GT1560.prototype.isAlive_1(this.txtPercent) && (this.txtPercent.setColor_1(d), this.txtPercent.setText_1("" + e + b + "%")); this.bar.destroyChildren_0(); d = new GT1634(70, 70, 70); new GT1440(this.bar, 8, 8, this.bar.getWidth_0() - 16, 2, d); new GT1440(this.bar, 8, 8, 2, this.bar.getHeight_0() - 16, d); new GT1440(this.bar, 8, this.bar.getHeight_0() - 1 - 8, this.bar.getWidth_0() - 16, 2, d); new GT1440(this.bar, this.bar.getWidth_0() - 1 - 8, 8, 2, this.bar.getHeight_0() - 16, d); b = Integer.truncate_1((this.bar.getWidth_0() - 24) * this.progress); d = new GT1634(Math.div(this.maincolor.getRed_0() * a, 255), Math.div(this.maincolor.getGreen_0() * a, 255), Math.div(this.maincolor.getBlue_0() * a, 255)); new GT1440(this.bar, 12, 12, b, this.bar.getHeight_0() - 24, d); } }, }, "GT486", [] ), GT584 = GT1437.extend( { initialConstructor_0: function () { this.imageRoom = null; this.actionid = 0; this.infofont = null; this.buttonIndent = 0; this.scrollbar = this.infoColor = null; this.scrollvalue = this.visiblecontent = 0; this.containerbuttons = null; this.buttonOffsetX = 0; this.eh = null; this.hideTableInfo = !1; this.timer = null; this.skipFullRooms = this.centerButtons = this.useIndicatorAnimation = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_17: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C) { this.imageRoom = null; this.actionid = 0; this.infofont = null; this.buttonIndent = 0; this.scrollbar = this.infoColor = null; this.scrollvalue = this.visiblecontent = 0; this.containerbuttons = null; this.buttonOffsetX = 0; this.eh = null; this.hideTableInfo = !1; this.timer = null; this.skipFullRooms = this.centerButtons = this.useIndicatorAnimation = !1; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); GT1650.prototype.assertExp_2(2 <= g.length, "there must be at least 2 room images (0=empty, 1=full)"); this.imageRoom = g; this.actionid = k; this.infofont = m; this.buttonIndent = p; this.infoColor = n; this.scrollvalue = 0; this.buttonOffsetX = q; this.timer = u; this.useIndicatorAnimation = B; this.centerButtons = A; this.skipFullRooms = C; this.containerbuttons = new GT1437(new GT1437(this, 0, r, e, g[0].getRowHeight_0()), 0, 0, 0, g[0].getRowHeight_0()); this.visiblecontent = e; this.hideTableInfo = t; }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); null != this.eh && this.eh.stop_0(); }, setEventHandler_1: function (a) { this.eh = a; }, updateSubRoomView_2: function (a, b) { this.containerbuttons.destroyChildren_0(); var d = 0; if (this.skipFullRooms) for (var e = 0; e < a.size_0(); e++) { var f = a.elementAt_1(e); 0 == f[0] && d++; } for (var d = this.centerButtons ? Math.div(this.getWidth_0(), 2) - Math.div(this.buttonIndent * (a.size_0() - d), 2) : this.buttonOffsetX, g = 1, e = 0; e < a.size_0(); e++) { var f = a.elementAt_1(e), k = f[0], f = f[1]; if (0 != k || !this.skipFullRooms || e == b) { var m = g + f - 1, n = null, n = 0 == k ? this.imageRoom[this.imageRoom.length - 1] : k == f ? this.imageRoom[0] : this.imageRoom[Math.div((f - k) * (this.imageRoom.length - 2), f) + 1]; GT1650.prototype.assertExp_2(null != n, "no image for button found"); k = "" + g + "\n-\n" + m; m = new GT1559(this.containerbuttons, d, 0, 0, 0); m.setApplicationData_2(this.actionid, "" + e); var p = new GT1437(m); if (1 == n.getRows_0() && this.useIndicatorAnimation) { var q = new GT1075(p, 0, 0, n.getWidth_0(), n.getHeight_0(), n, 0.5, 0.5, 0, 0); q.setTranslation_2(Math.div(n.getWidth_0(), 2), Math.div(n.getHeight_0(), 2)); q = new GT1132(this.timer, q, 0, 500, 0.65, 1); q.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCEL_DECEL); q.start_0(); } else new GT1591(p, 0, 0, n, 0, 0); this.hideTableInfo || ((q = new GT1490(p, 0, 0, n.getColumnWidth_0(), n.getRowHeight_0(), this.infofont, this.infoColor, GT1488.prototype.CENTER, GT1489.prototype.CENTER)), q.setOutline_2(1, GT1634.prototype.black), q.setSpacing_1(19), q.setText_1(k)); p.resizeToContent_0(); p = new GT1437(m); 1 == n.getRows_0() && this.useIndicatorAnimation ? ((q = new GT1075(p, 0, 0, n.getWidth_0(), n.getHeight_0(), n, 0.5, 0.5, 0, 0)), q.setTranslation_2(Math.div(n.getWidth_0(), 2), Math.div(n.getHeight_0(), 2)), q.setScale_2(0.65, 0.65)) : new GT1591(p, 0, 0, n, 0, 1 < n.getRows_0() ? 1 : 0); this.hideTableInfo || ((q = new GT1490(p, 0, 0, n.getColumnWidth_0(), n.getRowHeight_0(), this.infofont, this.infoColor, GT1488.prototype.CENTER, GT1489.prototype.CENTER)), q.setOutline_2(1, GT1634.prototype.black), q.setSpacing_1(19), q.setText_1(k)); p.resizeToContent_0(); p = new GT1437(m); new GT1591(p, 0, 0, n, 0, 2 < n.getRows_0() ? 2 : 0); this.hideTableInfo || ((q = new GT1490(p, 0, 0, n.getColumnWidth_0(), n.getRowHeight_0(), this.infofont, this.infoColor, GT1488.prototype.CENTER, GT1489.prototype.CENTER)), q.setOutline_2(1, GT1634.prototype.black), q.setSpacing_1(17), q.setText_1(k)); p.resizeToContent_0(); p = new GT1437(m); new GT1591(p, 0, 0, n, 0, 3 < n.getRows_0() ? 3 : 0); this.hideTableInfo || ((n = new GT1490(p, 0, 0, n.getColumnWidth_0(), n.getRowHeight_0(), this.infofont, this.infoColor, GT1488.prototype.CENTER, GT1489.prototype.CENTER)), n.setOutline_2(1, GT1634.prototype.black), n.setSpacing_1(19), n.setText_1(k)); p.resizeToContent_0(); d += this.buttonIndent; m.resizeToContent_0(); m.finishButton_0(); e == b && m.setActive_1(!1); g += f; } } this.containerbuttons.resizeToContent_0(); GT1560.prototype.isAlive_1(this.scrollbar) && (this.scrollbar.setRangeAndValue_3(this.containerbuttons.getWidth_0(), this.visiblecontent, this.scrollvalue), this.containerbuttons.move_2(-this.scrollvalue, this.containerbuttons.getY_0())); }, setAllButtonsActive_1: function (a) { this.setAllButtonsActive_2(a, !1); }, setAllButtonsActive_2: function (a, b) { for (var d = 0; d < this.containerbuttons.getChildCount_0(); d++) { var e = this.containerbuttons.getChild_1(d), f = 0, g = 1; b && ((f = e.getChildIdxForState_1(GT1236.prototype.INACTIVE)), (g = e.getChildIdxForState_1(GT1236.prototype.DEFAULT)), e.setChildForState_2(GT1236.prototype.INACTIVE, g)); e.setActive_1(a); e.finishButton_0(); b && e.setChildForState_2(GT1236.prototype.INACTIVE, f); } }, attachScrollBar_2: function (a, b) { null != a && ((this.scrollbar = a), (this.visiblecontent = b), a.setRangeAndValue_3(this.containerbuttons.getWidth_0(), b, 0), a.addScrollBarListener_1(this)); }, scrollValueChanged_1: function (a) { this.scrollvalue = a.getValue_0(); this.containerbuttons.move_2(-this.scrollvalue, this.containerbuttons.getY_0()); }, setScrollBarValue_1: function (a) { if (null != this.scrollbar) { GT1650.prototype.assertExp_2(null != this.scrollbar, "scrollbar is null"); 0 > a && (a = 0); var b = this.containerbuttons.getWidth_0(), d = a; this.scrollbar.setRangeAndValue_3(b, this.visiblecontent, d); this.scrollvalue = d; this.containerbuttons.move_2(-a, this.containerbuttons.getY_0()); } }, }, "GT584", [GT921] ), GT1182 = GT1437.extend( { initialConstructor_0: function () { this.tvc = this.switchanim = this.imgUserPicsWinning = this.imgUserPics = this.btnEnter = this.sitdownanim = this.standupanim = this.txtPayout = this.unhidecallback = this.unhideanim = this.imgDetail = this.txtAddress = this.cntPayoutText = this.cntNicknames = this.cntUserPic = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.tvc = this.switchanim = this.imgUserPicsWinning = this.imgUserPics = this.btnEnter = this.sitdownanim = this.standupanim = this.txtPayout = this.unhidecallback = this.unhideanim = this.imgDetail = this.txtAddress = this.cntPayoutText = this.cntNicknames = this.cntUserPic = null; GT1437.prototype.initialConstructor_5.call(this, b, 0, 0, d, e); this.tvc = a; }, }, "GT1182", [] ), GT684 = GT245.extend( { initialConstructor_0: function () { this.tablebuttons = null; this.dropDownSelection = 0; this.tablehighlight = this.tablesdetailanim = this.imageTableOccupiedWinning = this.imageTableOccupied = this.imageLobbyTableDetail = this.imageLobbyTable = this.timer = null; this.addressAlign = this.addressy = this.addressx = 0; this.colorAddress = this.fontAddress = null; this.outlineRadiusAddress = 0; this.outlineColorAddress = null; this.detaily = this.detailx = 0; this.colorPayout = this.fontPayout = null; this.occupiednameheight = this.occupiednamewidth = this.occupiednamey = this.occupiednamex = this.occupiedwiny = this.occupiedwinx = this.occupiedy = this.occupiedx = 0; this.showdetailswitchwhenidle = this.showlastpayout = !1; this.actionID = 0; this.tableDetailSwitchRandom = null; GT245.prototype.initialConstructor_0.call(this); }, initialConstructor_37: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B, A, C, E, F, D, H, I, L, J, M, N, P, O, K, Q, S, T, R, V, Z, W, ba) { this.tablebuttons = null; this.dropDownSelection = 0; this.tablehighlight = this.tablesdetailanim = this.imageTableOccupiedWinning = this.imageTableOccupied = this.imageLobbyTableDetail = this.imageLobbyTable = this.timer = null; this.addressAlign = this.addressy = this.addressx = 0; this.colorAddress = this.fontAddress = null; this.outlineRadiusAddress = 0; this.outlineColorAddress = null; this.detaily = this.detailx = 0; this.colorPayout = this.fontPayout = null; this.occupiednameheight = this.occupiednamewidth = this.occupiednamey = this.occupiednamex = this.occupiedwiny = this.occupiedwinx = this.occupiedy = this.occupiedx = 0; this.showdetailswitchwhenidle = this.showlastpayout = !1; this.actionID = 0; this.tableDetailSwitchRandom = null; GT245.prototype.initialConstructor_11.call(this, a, b, d, e, f, k, m + 5, n, p, r, q); this.dropDownSelection = 0; this.tablebuttons = new java_util_JavaScriptVector(); this.timer = g; this.imageLobbyTable = t; this.imageLobbyTableDetail = u; this.imageTableOccupied = B; this.imageTableOccupiedWinning = A; this.tablehighlight = C; this.addressx = E; this.addressy = F; this.addressAlign = D; this.fontAddress = H; this.colorAddress = I; this.detailx = L; this.detaily = J; this.fontPayout = M; this.colorPayout = N; this.occupiedx = P; this.occupiedy = O; this.occupiedwinx = K; this.occupiedwiny = Q; this.occupiednamex = S; this.occupiednamey = T; this.occupiednamewidth = R; this.occupiednameheight = V; this.showlastpayout = Z; this.showdetailswitchwhenidle = W; this.actionID = ba; this.tableDetailSwitchRandom = new GT1561(g.currentTimeMillis_0()); this.setAdapter_1(new GT970(this)); }, setAddressOutline_2: function (a, b) { this.outlineRadiusAddress = a; this.outlineColorAddress = b; }, destroyImpl_2: function (a, b) { GT245.prototype.destroyImpl_2.call(this, a, b); null != this.tablesdetailanim && this.tablesdetailanim.isRunning_0() && this.tablesdetailanim.kill_0(); }, attachTablesVector_1: function (a) { null != this.tablesdetailanim && this.tablesdetailanim.isRunning_0() && this.tablesdetailanim.kill_0(); GT1650.prototype.assertExp_2(null != a, "tables is null"); null != this.imageLobbyTableDetail && 1 < this.imageLobbyTableDetail.getHeight_0() ? ((this.tablesdetailanim = new GT353(this.timer, a, this.imageLobbyTableDetail.getRows_0(), this)), this.tablesdetailanim.start_0()) : ((this.imageLobbyTableDetail = null), (this.showlastpayout = !1)); this.getAdapter_0().setListElements_1(a); }, selectionChanged_1: function (a) { this.dropDownSelection = a.getCurrentSelection_0(); this.setScrollBarValue_1(0); }, enterTable_1: function (a) { this.setAllButtonsActive_1(!1); 0 == a.numplayers && null != this.imageLobbyTable && ((a = this.getTableGUI_1(a)), null != a && (a.standupanim.reset_0(), a.sitdownanim.start_0())); }, getTableGUI_1: function (a) { return this.getGuiAtPosition_1(a.listpos); }, setAllButtonsActive_1: function (a) { for (var b = 0; b < this.tablebuttons.size_0(); b++) this.tablebuttons.elementAt_1(b).setActive_1(a); }, finishRoomInfo_3: function (a, b, d) { GT684.prototype.Log.t_0(); GT684.prototype.Log.v_1("lsv:" + b); this.dropDownSelection = d; d = this.getAdapter_0().getListElements_0(); for (var e = 0; e < d.size_0(); e++) { var f = d.elementAt_1(e); if (null != f && 0 == b && 0 == f.numplayers && 0 == this.dropDownSelection) { this.scrollToListElement_1(e); break; } } null != this.tablesdetailanim && this.tablesdetailanim.setAllFrames_0(); this.updateViewToNewData_1(!1); this.setAllButtonsActive_1(!0); if (null != a) for (e = 0; e < d.size_0(); e++) if (((f = d.elementAt_1(e)), null != f && f.address.equals_1(a.address))) { f.oldnumplayers += 1; this.updateItemAtPosition_1(e); break; } }, updateTableView_2: function (a, b) { this.isAlive_0() && (1 == this.dropDownSelection ? (this.updateViewToNewData_1(!1), null != this.tablesdetailanim && this.tablesdetailanim.setAllFrames_0()) : this.updateItemAtPosition_1(b)); }, updateTablePayoutText_1: function (a) { var b = a.getLastPayout_0(), d = this.getTableGUI_1(a); if (null != d) { var e = !0; if (null != this.imageLobbyTableDetail && 0 < this.imageLobbyTableDetail.getRows_0()) if ((null != d.unhideanim && d.unhideanim.killAndTrigger_1(!1), d.imgDetail.hide_1(!1), (e = !1), 0 < a.numplayers)) (a.useSpinAnim = !0), (a.useSwitchAnim = !1); else { if (this.showlastpayout) { for (var f = a.getLastPayoutTime_0() - (this.timer.currentTimeMillis_0() - a.timeOfLastTableInfo); 6e6 < f; ) f = Math.div(f, 10); 0 < b.length_0() && 1e3 < f && (null != d.unhideanim && d.unhideanim.killAndTrigger_1(!1), d.imgDetail.hide_1(!0), (d.unhideanim = new GT1129(this.timer, f, !1)), d.unhideanim.addFinishCallback_1(d.unhidecallback), d.unhideanim.start_0(), (e = !0)); } this.showdetailswitchwhenidle && ((a.useSwitchAnim = !0), (a.useSpinAnim = !1)); } null != d.switchanim && d.switchanim.setFrame_0(); this.showlastpayout && e && (d.txtPayout.hide_1(!1), d.txtPayout.setText_1(a.payouttext)); } }, addNicknames_2: function (a, b) { if (null == b || 1 > b.length_0()) return null; for (var d = GT1677.prototype.tokenize_2(b, "\n"), e = null, f = 0; f < d.length; f++) { var g = a.stringWidth_2(this.fontAddress, d[f]), k = new GT1134( a, this.occupiednamex, this.occupiednamey - this.occupiednameheight * f, this.occupiednamewidth, this.occupiednameheight, d[f], this.fontAddress, GT1634.prototype.white, Integer.truncate_1(g / 2), Math.div(this.occupiednameheight, 2) ); k.setTranslation_2(this.occupiednamewidth / 2, this.occupiednameheight / 2); g = this.occupiednamewidth / g; g *= 0.95; 1 < g && (g = 1); k.setScale_2(g, g); 0 == f && (e = k); } return e; }, numberOfDetailFrames_0: function () { return null != this.imageLobbyTableDetail && 1 < this.imageLobbyTableDetail.getHeight_0() ? this.imageLobbyTableDetail.getRows_0() : -1; }, }, "GT684", [GT757] ); GT684.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); var GT959 = GT446.extend( { initialConstructor_0: function () { this.betButtonImageUndocked = this.gambleButtonImageUndocked = this.gambleButtonImage = null; this.showSpinner = !1; GT446.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.betButtonImageUndocked = this.gambleButtonImageUndocked = this.gambleButtonImage = null; this.showSpinner = !1; GT446.prototype.initialConstructor_1.call(this, a); }, initialConstructor_2: function (a, b) { this.betButtonImageUndocked = this.gambleButtonImageUndocked = this.gambleButtonImage = null; this.showSpinner = !1; GT446.prototype.initialConstructor_2.call(this, a, b); this.gambleButtonImage = b.gambleButtonImage; this.gambleButtonImageUndocked = b.gambleButtonImageUndocked; this.betButtonImageUndocked = b.betButtonImageUndocked; this.setBetInfoType_1(b.getBetInfoType_0()); }, setGambleButtonImage_1: function (a) { this.gambleButtonImage = a; return this; }, getGambleButtonImage_0: function () { return this.gambleButtonImage; }, getGambleButtonImageUndocked_0: function () { return this.gambleButtonImageUndocked; }, setGambleButtonImageUndocked_1: function (a) { this.gambleButtonImageUndocked = a; }, getButtonImageUndocked_0: function () { return this.betButtonImageUndocked; }, setButtonImageUndocked_1: function (a) { this.betButtonImageUndocked = a; }, isShowSpinner_0: function () { return this.showSpinner; }, setShowSpinner_1: function (a) { this.showSpinner = a; }, getImageResources_0: function () { var a = GT446.prototype.getImageResources_0.call(this); a.addElement_1(this.gambleButtonImage); a.addElement_1(this.gambleButtonImageUndocked); a.addElement_1(this.betButtonImageUndocked); return a; }, }, "GT959", [] ), GT269 = Class.extend( { initialConstructor_0: function () { this.lastMovedPosition = this.adaptee = null; this.snapToMiddlePoint = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.lastMovedPosition = this.adaptee = null; this.snapToMiddlePoint = !1; this.adaptee = a; this.snapToMiddlePoint = !1; }, getAdaptee_0: function () { return this.adaptee; }, requestLayout_0: function () { this.adaptee.requestLayout_0(); }, moveToLocation_2: function (a, b) { var d = this.getComponentX_0(), e = this.getComponentY_0(), f = GT1389.prototype.getInstance_0().isPositioningInProgress_0(); this.snapToMiddlePoint && !f && (GT269.prototype.Log.t_1("UI Neon: moveToLocation: snapping to middle point"), (d = a - Math.div(this.getComponentWidth_0(), 2)), (e = b - Math.div(this.getComponentHeight_0(), 2)), (this.snapToMiddlePoint = !1)); null != this.lastMovedPosition && ((f = new GT1633(a - this.lastMovedPosition.x, b - this.lastMovedPosition.y)), (d += f.x), (e += f.y)); d = Math.max_2(this.adaptee.getRoot_0().getVisibleArea_0().x - Math.div(this.adaptee.getComponentWidth_0(), 2), d); e = Math.max_2(this.adaptee.getRoot_0().getVisibleArea_0().y, e); d = Math.min_2(d, this.adaptee.getRoot_0().getVisibleArea_0().x + this.adaptee.getRoot_0().getVisibleArea_0().width - Math.div(this.adaptee.getComponentWidth_0(), 2)); e = Math.min_2(e, this.adaptee.getRoot_0().getVisibleArea_0().y + this.adaptee.getRoot_0().getVisibleArea_0().height - this.adaptee.getComponentHeight_0()); this.adaptee.setComponentX_1(d); this.adaptee.setComponentY_1(e); this.getRoot_0().updateComponentParentAtLocation_3(this, a, b); this.lastMovedPosition = new GT1633(a, b); }, moveFinishedAtLocation_2: function (a, b) { this.getRoot_0().finalizeComponentMovement_3(this, a, b); this.lastMovedPosition = null; this.snapToMiddlePoint = !1; }, getGuiLocation_0: function () { return new GT1633(this.adaptee.getComponentX_0(), this.adaptee.getComponentY_0()); }, getDragArea_0: function () { return this.adaptee.getDragArea_0(); }, getMinMaxWidth_0: function () { return this.adaptee.getMinMaxWidth_0(); }, setComponentX_1: function (a) { this.adaptee.setComponentX_1(a); return this; }, setComponentY_1: function (a) { this.adaptee.setComponentY_1(a); return this; }, setComponentSize_2: function (a, b) { return this.adaptee.setComponentSize_2(a, b); }, getComponentX_0: function () { return this.adaptee.getComponentX_0(); }, getComponentY_0: function () { return this.adaptee.getComponentY_0(); }, getComponentWidth_0: function () { return this.adaptee.getComponentWidth_0(); }, getComponentHeight_0: function () { return this.adaptee.getComponentHeight_0(); }, getName_0: function () { return this.adaptee.getName_0(); }, setObject_1: function (a) { this.adaptee.setObject_1(a); }, getObject_0: function () { return this.adaptee.getObject_0(); }, setParent_1: function (a) { this.adaptee.setParent_1(a); }, getParent_0: function () { return this.adaptee.getParent_0(); }, setRoot_1: function (a) { this.adaptee.setRoot_1(a); }, getRoot_0: function () { return this.adaptee.getRoot_0(); }, getPlaceHolder_0: function () { return this.adaptee.getPlaceHolder_0(); }, createPlaceHolder_0: function () { return this.adaptee.createPlaceHolder_0(); }, toString: function () { return "ConsoleComponentMoveableAdapter " + this.adaptee.toString(); }, destroy_0: function () { this.adaptee.destroy_0(); this.adaptee = null; }, getOrder_0: function () { return this.adaptee.getOrder_0(); }, setOrder_1: function (a) { this.adaptee.setOrder_1(a); return this; }, getResizePriority_0: function () { return this.adaptee.getResizePriority_0(); }, setResizePriority_1: function (a) { this.adaptee.setResizePriority_1(a); }, getComponentSpacing_0: function () { return this.adaptee.getComponentSpacing_0(); }, setComponentSpacing_1: function (a) { this.adaptee.setComponentSpacing_1(a); return this; }, generateSaveState_2: function (a, b) { this.adaptee.generateSaveState_2(a, !0); }, notifyDragStart_0: function () { GT269.prototype.Log.t_1("UI Neon: notifyDragStart"); this.adaptee.notifyDragStart_0(); }, notifyDragEnd_0: function () { GT269.prototype.Log.t_1("UI Neon: notifyDragEnd"); this.adaptee.notifyDragEnd_0(); }, isDropSupported_0: function () { return this.adaptee.isDropSupported_0(); }, setMinWidth_1: function (a) { this.adaptee.setMinWidth_1(a); return this; }, setMinHeight_1: function (a) { this.adaptee.setMinHeight_1(a); return this; }, setMaxWidth_1: function (a) { this.adaptee.setMaxWidth_1(a); return this; }, setMaxHeight_1: function (a) { this.adaptee.setMaxHeight_1(a); return this; }, notifyLayoutAreaLeave_0: function () { GT269.prototype.Log.t_1("UI Neon: notifyLayoutAreaLeave"); this.adaptee.notifyLayoutAreaLeave_0(); }, notifyLayoutAreaEnter_0: function () { GT269.prototype.Log.t_1("UI Neon: notifyLayoutAreaEnter"); this.adaptee.notifyLayoutAreaEnter_0(); this.snapToMiddlePoint = !0; }, setListenedComponentKeys_1: function (a) { this.adaptee.setListenedComponentKeys_1(a); return this; }, getListenedComponentKeys_0: function () { return this.adaptee.getListenedComponentKeys_0(); }, addImageResource_1: function (a) { this.adaptee.addImageResource_1(a); return null; }, getImageResources_0: function () { return this.adaptee.getImageResources_0(); }, addSoundResource_1: function (a) { this.adaptee.addSoundResource_1(a); return null; }, getSoundResources_0: function () { return this.adaptee.getSoundResources_0(); }, setPlaceholder_1: function (a) { this.adaptee.setPlaceholder_1(a); return this; }, isPlaceholder_0: function () { return this.adaptee.isPlaceholder_0(); }, setCornerRadius_1: function (a) { this.adaptee.setCornerRadius_1(a); return this; }, getCornerRadius_0: function () { return this.adaptee.getCornerRadius_0(); }, isPointVisible_1: function (a) { if (instanceOf(this.adaptee.getObject_0(), GT1437)) { var b = this.adaptee.getObject_0(), d = b.getParent_0(); if (null == d) return !1; for (var b = b.getDepth_0(), e = !1, f = 0, g = b; g < d.getChildCount_0(); g++) { var k = d.getChild_1(g); k.isHidden_0() ? f++ : k.contains_2(a.x, a.y) && (e = g == b + f); } return e; } return !0; }, isAutoLayoutingSupported_0: function () { return this.adaptee.isAutoLayoutingSupported_0(); }, setComponentFactory_1: function (a) { this.adaptee.setComponentFactory_1(a); return this; }, getComponentFactory_0: function () { return this.adaptee.getComponentFactory_0(); }, }, "GT269", [GT918, GT1587] ); GT269.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); var GT797 = GT461.extend( { initialConstructor_0: function () { this.visibleArea = this.catcher = this.factory = this.currentPlaceholder = null; GT461.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.visibleArea = this.catcher = this.factory = this.currentPlaceholder = null; GT461.prototype.initialConstructor_1.call(this, a); this.setRoot_1(this); this.factory = b; }, updateComponentParentAtLocation_3: function (a, b, d) { GT1650.prototype.assertExp_2(null != a, "NPE - Argument 'component' must not be null"); GT1650.prototype.assertExp_2(null != a.getParent_0(), "A moveable ConsoleComponent's parent must not be null"); d = new GT1633(b, d); var e = this.getContainerForLocation_3(this.getChildren_0(), d.x, d.y); if (null != e) { GT797.prototype.Log.trace && GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: parentContainer at (" + d.x + ", " + d.y + ") is " + e); var f = !1; if (null == this.currentPlaceholder) { GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: placeholder is null, placeholder will be created"); this.currentPlaceholder = a.createPlaceHolder_0(); e.addComponent_1(this.currentPlaceholder); this.currentPlaceholder.setParent_1(e); this.factory.addPlaceholderForComponent_1(this.currentPlaceholder); f = -1; a.getParent_0() != this && (a.getParent_0().removeComponent_1(a), this.addComponent_1(a), (f = a.getOrder_0())); var g = e.getChildren_0(), k = 0; for (b = 0; b < g.size_0(); b++) { var m = g.get_1(b); instanceOf(m, GT918) && (m != this.currentPlaceholder && m.getComponentX_0() + Math.div(m.getComponentWidth_0(), 2) < d.x ? (k = m.getOrder_0() + 1) : k != f && m.setOrder_1(m.getOrder_0() + 1)); } f = !0; GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: layoutAreaEnter is " + f); this.currentPlaceholder.setOrder_1(k); } else { GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: placeholder is not null"); var k = 0, g = e.getChildren_0(), n = this.currentPlaceholder.getOrder_0(); for (b = 0; b < g.size_0(); b++) (m = g.get_1(b)), instanceOf(m, GT918) && m != this.currentPlaceholder && m.getComponentX_0() + Math.div(m.getComponentWidth_0(), 2) < d.x && (k = m.getOrder_0() + 1); k != n && (this.reorderChildren_3(g, k, n), this.currentPlaceholder.setOrder_1(k)); } e.requestLayout_0(); f && a.notifyLayoutAreaEnter_0(); } else if ((GT797.prototype.Log.trace && GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: parentContainer at (" + d.x + ", " + d.y + ") is null"), null != this.currentPlaceholder)) { GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: no new parent, placeholder is not null"); d = this.currentPlaceholder.getParent_0(); this.currentPlaceholder.getParent_0().removeComponent_1(this.currentPlaceholder); for (b = 0; b < d.getChildren_0().size_0(); b++) (m = d.getChildren_0().get_1(b)), instanceOf(m, GT918) && m.getOrder_0() > this.currentPlaceholder.getOrder_0() && m.setOrder_1(m.getOrder_0() - 1); this.currentPlaceholder.destroy_0(); this.currentPlaceholder = null; a.notifyLayoutAreaLeave_0(); a.requestLayout_0(); d.requestLayout_0(); } else if ((GT797.prototype.Log.t_1("UI Neon: updateComponentParentAtLocation: no new parent, placeholder is null"), (d = a.getParent_0()), d != this)) { d.removeComponent_1(a); for (b = 0; b < d.getChildren_0().size_0(); b++) (m = d.getChildren_0().get_1(b)), instanceOf(m, GT918) && m.getOrder_0() > a.getOrder_0() && m.setOrder_1(m.getOrder_0() - 1); this.addComponent_1(a); d.requestLayout_0(); } }, reorderChildren_3: function (a, b, d) { for (var e = 0; e < a.size_0(); e++) { var f = a.get_1(e); instanceOf(f, GT918) && (b < d ? f.getOrder_0() < d && f.getOrder_0() >= b && f.setOrder_1(f.getOrder_0() + 1) : f.getOrder_0() > d && f.getOrder_0() <= b && f.setOrder_1(f.getOrder_0() - 1)); } }, finalizeComponentMovement_3: function (a, b, d) { null != this.currentPlaceholder && null != a && (GT797.prototype.Log.t_1("UI Neon: finalizeComponentMovement: cleaning up"), a.setOrder_1(this.currentPlaceholder.getOrder_0()), (b = this.currentPlaceholder.getParent_0()), b.removeComponent_1(this.currentPlaceholder), this.currentPlaceholder.destroy_0(), (this.currentPlaceholder = null), a.getParent_0().removeComponent_1(a), b.addComponent_1(a), b.requestLayout_0()); GT797.prototype.Log.t_1("UI Neon: finalizeComponentMovement: store positoions and refresh mask"); GT1389.prototype.getInstance_0().storePositions_1(this.generateSaveStateJSON_0()); GT1389.prototype.getInstance_0().refreshMask_0(); }, getContainerForLocation_3: function (a, b, d) { for (var e = null, f = 0; f < a.size_0(); f++) { var g = a.get_1(f); instanceOf(g, GT461) && g.isDropSupported_0() && g.getDragArea_0().isClickablePosition_2(b, d) && ((e = g), (g = this.getContainerForLocation_3(g.getChildren_0(), b, d)), null != g && (e = g)); } return e; }, generateSaveStateJSON_0: function () { var a = new java_util_JavaScriptHashtable(); GT461.prototype.generateSaveState_2.call(this, a, !1); return GT1678.prototype.serialize_1(a); }, getComponentByName_1: function (a) { return this.getComponentByName_2(this.getChildren_0(), a); }, getComponentByName_2: function (a, b) { for (var d = null, e = 0; e < a.size_0(); e++) { var f = a.get_1(e); b.equals_1(f.getName_0()) ? (d = f) : instanceOf(f, GT461) && (d = this.getComponentByName_2(f.getChildren_0(), b)); if (null != d) break; } return d; }, getCatcher_0: function () { return this.catcher; }, setCatcher_1: function (a) { this.catcher = a; }, destroy_0: function () { null != this.catcher && this.catcher.destroyObject_0(); GT461.prototype.destroy_0.call(this); }, setVisibleArea_1: function (a) { this.visibleArea = a; }, getVisibleArea_0: function () { return this.visibleArea; }, }, "GT797", [] ); GT797.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); var GT751 = GT852.extend( { initialConstructor_0: function () { this.identifier = this.innerContainer = null; this.dragStartAnimationScaleFactor = 0; this.dragStartAnimationOffset = null; this.active = !1; GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.identifier = this.innerContainer = null; this.dragStartAnimationScaleFactor = 0; this.dragStartAnimationOffset = null; this.active = !1; GT852.prototype.initialConstructor_5.call(this, a, b.getComponentX_0(), b.getComponentY_0(), b.getComponentWidth_0(), b.getComponentHeight_0()); this.identifier = b.getName_0(); var d = b.getComponentX_0(), e = b.getComponentY_0(), f = b.getComponentWidth_0(), g = b.getComponentHeight_0(); this.dragStartAnimationScaleFactor = 1; this.calculateDragStartAnimationOffset_2(f, g); this.resize_2(f + this.dragStartAnimationOffset.x, g + this.dragStartAnimationOffset.y); this.move_2(d - Math.div(this.dragStartAnimationOffset.x, 2), e - Math.div(this.dragStartAnimationOffset.y, 2)); this.createInnerContainer_2(f, g); }, setDragStartAnimationScaleFactor_1: function (a) { this.dragStartAnimationScaleFactor = a; }, setLocation_2: function (a, b) { this.isAlive_0() && this.move_2(a - Math.div(this.dragStartAnimationOffset.x, 2), b - Math.div(this.dragStartAnimationOffset.y, 2)); }, setSize_2: function (a, b) { if (this.isAlive_0() && (a != this.getWidth_0() - this.dragStartAnimationOffset.x || b != this.getHeight_0() - this.dragStartAnimationOffset.y)) { var d = this.getX_0() + Math.div(this.dragStartAnimationOffset.x, 2), e = this.getY_0() + Math.div(this.dragStartAnimationOffset.y, 2); this.calculateDragStartAnimationOffset_2(a, b); this.resize_2(a + this.dragStartAnimationOffset.x, b + this.dragStartAnimationOffset.y); this.move_2(d - Math.div(this.dragStartAnimationOffset.x, 2), e - Math.div(this.dragStartAnimationOffset.y, 2)); this.destroyChildren_0(); this.createInnerContainer_2(a, b); } }, getDragArea_0: function () { return null; }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this); }, updateUi_1: function (a) {}, notifyDragStart_0: function () { this.reorder_1(!0); }, notifyDragEnd_0: function () {}, getIdentifier_0: function () { return this.identifier; }, getInnerContainer_0: function () { return this.innerContainer; }, handleDragStartAnimationFinished_0: function () {}, notifyLayoutAreaEnter_0: function () {}, notifyLayoutAreaLeave_0: function () {}, createInnerContainer_2: function (a, b) { this.innerContainer = new GT852(this, Math.div(this.dragStartAnimationOffset.x, 2), Math.div(this.dragStartAnimationOffset.y, 2), a, b); }, calculateDragStartAnimationOffset_2: function (a, b) { this.dragStartAnimationOffset = new GT1633(Integer.truncate_1(a * this.dragStartAnimationScaleFactor - a), Integer.truncate_1(b * this.dragStartAnimationScaleFactor - b)); }, updateUiTime_1: function (a) {}, setComponentActive_1: function (a) { this.active = a; }, isActive_0: function () { return this.active; }, isVisible_0: function () { return !this.isHidden_0(); }, drawMask_1: function (a) { var b = this.getInnerContainer_0(); a.fillRect_5(GT1634.prototype.red, b.getAbsoluteX_0(), b.getAbsoluteY_0(), b.getWidth_0(), b.getHeight_0()); }, }, "GT751", [GT754] ), GT91 = Class.extend( { initialConstructor_0: function () { this.component = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.component = null; this.component = a; }, run_0: function () { this.component.handleDragStartAnimationFinished_0(); }, }, "GT91", [Runnable] ), GT413 = GT751.extend( { initialConstructor_0: function () { this.buttonText = this.buttonImage = this.nameTextFonts = this.guiTextObject = this.guiButtonObject = this.buttonContainer = this.textContainer = null; this.forPlaceholder = !1; this.viewDataRule = this.clickIdentifier = this.toolTip = this.textAttributes = null; this.shape = 0; this.supressColorTransformation = this.supressBackground = !1; this.colorSetKey = null; this.borderThickness = this.radius = this.imageOffset = this.imagePosition = 0; this.activeFromLastViewData = this.mIsDragging = this.suppressBlackBorder = !1; this.buttonSound = this.highlightAnimator = this.clickParams = null; this.buttonSoundLength = 0; this.buttonStateHoverOmitted = !1; this.clickArea = null; GT751.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.buttonText = this.buttonImage = this.nameTextFonts = this.guiTextObject = this.guiButtonObject = this.buttonContainer = this.textContainer = null; this.forPlaceholder = !1; this.viewDataRule = this.clickIdentifier = this.toolTip = this.textAttributes = null; this.shape = 0; this.supressColorTransformation = this.supressBackground = !1; this.colorSetKey = null; this.borderThickness = this.radius = this.imageOffset = this.imagePosition = 0; this.activeFromLastViewData = this.mIsDragging = this.suppressBlackBorder = !1; this.buttonSound = this.highlightAnimator = this.clickParams = null; this.buttonSoundLength = 0; this.buttonStateHoverOmitted = !1; this.clickArea = null; GT751.prototype.initialConstructor_2.call(this, a, b); this.activeFromLastViewData = !0; this.shape = b.getShape_0(); this.supressBackground = b.isSuppressBackground_0(); this.supressColorTransformation = b.isSuppressColorTransformation_0(); this.colorSetKey = b.getColorSetKey_0(); this.imagePosition = b.getImagePosition_0(); this.imageOffset = b.getImageOffset_0(); this.radius = 0 == b.getCornerRadius_0() ? GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getPopupRadius_0() : b.getCornerRadius_0(); this.borderThickness = b.getBorderThickness_0(); this.suppressBlackBorder = b.isBlackBorderSuppressed_0(); this.clickParams = GT1533.prototype.hashtableDefCopy_1(b.getClickParams_0()); this.buttonSound = b.getButtonSound_0(); this.buttonSoundLength = b.getButtonSoundLength_0(); this.buttonStateHoverOmitted = b.isButtonStateHoverOmitted_0(); var d = b.getComponentWidth_0(), e = b.getComponentHeight_0(); this.textAttributes = null == b.getTextAttributes_0() ? new GT817().insets_1(15) : b.getTextAttributes_0(); this.nameTextFonts = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(b.getFontKey_0()); null != b.getButtonImage_0() && (this.buttonImage = b.getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0())); this.buttonText = GT1389.prototype.getInstance_0().getText_1(b.getButtonText_0()); this.clickIdentifier = b.getClickIdentifier_0(); this.viewDataRule = b.getViewDataRule_0(); this.toolTip = GT1389.prototype.getInstance_0().getText_1(b.getToolTip_0()); this.clickArea = b.getClickArea_0(); this.createText_2(d, e); this.createButton_2(d, e); }, setIsForPlaceholder_1: function (a) { this.forPlaceholder = !0; this.destroyChildren_0(); this.createInnerContainer_2(this.buttonContainer.getWidth_0(), this.buttonContainer.getHeight_0()); this.createText_2(this.buttonContainer.getWidth_0(), this.buttonContainer.getHeight_0()); this.createButton_2(this.buttonContainer.getWidth_0(), this.buttonContainer.getHeight_0()); this.reorder_1(!1); }, setAlpha_1: function (a) { GT751.prototype.setAlpha_1.call(this, a); this.setAlphaForButton_1(a); }, setSize_2: function (a, b) { var d = this.getGuiButtonObject_0().isActive_0(), e = this.buttonContainer.getWidth_0(), f = this.buttonContainer.getHeight_0(); GT751.prototype.setSize_2.call(this, a, b); !this.isAlive_0() || (a == e && b == f) || (this.createButton_2(a, b), this.createText_2(a, b)); this.setActive_1(d); }, playSound_0: function () { null != this.buttonSound && GT1389.prototype.getInstance_0().getSoundPlayer_0().start_4(this.buttonSound.create_1(GT1389.prototype.getInstance_0().getSkinManager_0()), null, 0, this.buttonSoundLength); }, click_1: function (a) { this.playSound_0(); a = this.getClickIdentifier_0(); a = new GT1284(GT1284.prototype.GENERIC_CONSOLE_EVENT, this, a); a.setParameters_1(this.clickParams); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(a); }, getClickIdentifier_0: function () { return null == this.clickIdentifier ? this.getIdentifier_0() : this.clickIdentifier; }, notifyDragStart_0: function () { GT751.prototype.notifyDragStart_0.call(this); this.mIsDragging = !0; }, notifyDragEnd_0: function () { GT751.prototype.notifyDragEnd_0.call(this); this.mIsDragging = !1; this.guiButtonObject.setChildForState_2(GT1236.prototype.DEFAULT, 1); }, notifyLayoutAreaEnter_0: function () { GT751.prototype.notifyLayoutAreaEnter_0.call(this); this.mIsDragging && this.guiButtonObject.setChildForState_2(GT1236.prototype.DEFAULT, 2); }, notifyLayoutAreaLeave_0: function () { GT751.prototype.notifyLayoutAreaLeave_0.call(this); this.mIsDragging && this.guiButtonObject.setChildForState_2(GT1236.prototype.DEFAULT, 2); }, setActive_1: function (a) { a = a && this.activeFromLastViewData; this.guiButtonObject.setActive_1(a); a ? (this.textContainer.setColorTransformation_1(null), this.buttonContainer.setColorTransformation_1(null), this.guiButtonObject.setColorTransformation_1(null)) : (this.textContainer.setColorTransformation_1(GT1063.prototype.GrayOut), this.buttonContainer.setColorTransformation_1(GT1063.prototype.GrayOut), this.guiButtonObject.setColorTransformation_1(GT1063.prototype.GrayOut)); }, getTextContainer_0: function () { return this.textContainer; }, getButtonContainer_0: function () { return this.buttonContainer; }, getGuiButtonObject_0: function () { return this.guiButtonObject; }, getGuiTextObject_0: function () { return this.guiTextObject; }, isForPlaceholder_0: function () { return this.forPlaceholder; }, setComponentActive_1: function (a) { GT751.prototype.setComponentActive_1.call(this, a); this.setActive_1(a); this.toggleHighlight_1(!1); }, createInnerContainer_2: function (a, b) { GT751.prototype.createInnerContainer_2.call(this, a, b); this.buttonContainer = new GT852(this.getInnerContainer_0()); this.textContainer = new GT852(this.getInnerContainer_0()); }, updateUi_1: function (a) { GT751.prototype.updateUi_1.call(this, a); null != this.viewDataRule && ((a = a.getRules_0().get_1(this.viewDataRule)), (this.activeFromLastViewData = !0), instanceOf(a, Boolean) ? (this.activeFromLastViewData = a.booleanValue_0()) : instanceOf(a, GT1534) && (this.activeFromLastViewData = a.isActive_0()), this.setActive_1(this.activeFromLastViewData && this.isActive_0())); }, createButton_2: function (a, b) { GT1560.prototype.destroyIfAlive_1(this.guiButtonObject); this.guiButtonObject = new GT1559(this.buttonContainer, 0, 0, a, b); null != this.buttonImage && 4 == this.buttonImage.getRows_0() ? (this.makeButton_6(this.guiButtonObject, this.buttonImage, 0, 0, GT1236.prototype.INACTIVE, this.getButtonShape_0()), this.makeButton_6(this.guiButtonObject, this.buttonImage, 1 < this.buttonImage.getRows_0() ? 1 : 0, 0, GT1236.prototype.DEFAULT, this.getButtonShape_0()), this.makeButton_6(this.guiButtonObject, this.buttonImage, 1 < this.buttonImage.getRows_0() ? (3 < this.buttonImage.getRows_0() ? 2 : 1) : 0, 0, GT1236.prototype.PRESSED, this.getButtonShape_0()), this.buttonStateHoverOmitted || this.makeButton_6(this.guiButtonObject, this.buttonImage, 1 < this.buttonImage.getRows_0() ? (3 < this.buttonImage.getRows_0() ? 3 : 1) : 0, 0, GT1236.prototype.MOUSEOVER, this.getButtonShape_0())) : (this.makeButton_6(this.guiButtonObject, this.buttonImage, 0, 0, GT1236.prototype.INACTIVE, this.getButtonShape_0()), this.makeButton_6(this.guiButtonObject, this.buttonImage, 0, 0, GT1236.prototype.DEFAULT, this.getButtonShape_0()), this.makeButton_6(this.guiButtonObject, this.buttonImage, 0, 0, GT1236.prototype.PRESSED, this.getButtonShape_0()), this.buttonStateHoverOmitted || this.makeButton_6(this.guiButtonObject, this.buttonImage, 0, 0, GT1236.prototype.MOUSEOVER, this.getButtonShape_0())); this.forPlaceholder && (this.guiButtonObject.setChildForState_2(GT1236.prototype.DEFAULT, 1), this.guiButtonObject.setChildForState_2(GT1236.prototype.INACTIVE, 1), this.guiButtonObject.setChildForState_2(GT1236.prototype.MOUSEOVER, 1), this.guiButtonObject.setChildForState_2(GT1236.prototype.PRESSED, 1)); this.buttonStateHoverOmitted && this.guiButtonObject.removeChildForState_1(GT1236.prototype.MOUSEOVER); this.guiButtonObject.addButtonClickListener_1(this); null != this.toolTip && this.guiButtonObject.setToolTip_1(this.toolTip); null != this.clickArea && this.guiButtonObject.setClickableAreaShape_1(this.clickArea); this.guiButtonObject.finishButton_0(); }, getButtonShape_0: function () { return this.shape; }, makeButton_6: function (a, b, d, e, f, g) { return this.makeButton_15( a, b, d, e, f, g, this.colorSetKey, this.supressBackground, this.supressColorTransformation, this.radius, this.imagePosition, this.imageOffset, this.getAlpha_0(), this.borderThickness, this.suppressBlackBorder ); }, createText_2: function (a, b) { var d = null == this.textAttributes.getColor_0() ? GT1634.prototype.white : this.textAttributes.getColor_0(), e = this.textAttributes.getGradient_0(); this.guiTextObject = new GT1123(this.textContainer, 0, 0, a, b, this.nameTextFonts, d); this.guiTextObject.setHAlign_1(this.textAttributes.getHAlign_0()); this.guiTextObject.setVAlign_1(this.textAttributes.getVAlign_0()); this.guiTextObject.setGradient_1(e); this.guiTextObject.setInsets_4(this.textAttributes.getInsetLeft_0(), this.textAttributes.getInsetRight_0(), this.textAttributes.getInsetTop_0(), this.textAttributes.getInsetBottom_0()); this.guiTextObject.setAlpha_1(this.getAlpha_0()); this.guiTextObject.setBreakLines_1(this.textAttributes.getBreakLines_0()); null != this.buttonText && this.guiTextObject.setText_1(this.buttonText); }, getButtonText_0: function () { return this.buttonText; }, setAlphaForButton_1: function (a) { if (GT1560.prototype.isAlive_1(this.guiButtonObject)) for (var b = 0; b < this.guiButtonObject.getChildCount_0(); b++) instanceOf(this.guiButtonObject.getChild_1(b), GT1480) && this.guiButtonObject.getChild_1(b).setAlpha_1(a); }, isDragging_0: function () { return this.mIsDragging; }, toggleHighlight_1: function (a) { a && this.isActive_0() ? (null != this.highlightAnimator && this.highlightAnimator.isRunning_0() && (this.highlightAnimator.killWithoutTriggers_0(), (this.highlightAnimator = null)), null == this.highlightAnimator && ((this.highlightAnimator = new GT464(GT1389.prototype.getInstance_0().getTimer_0(), this.getInnerContainer_0())), this.highlightAnimator.start_0())) : (null != this.highlightAnimator && this.highlightAnimator.killWithoutTriggers_0(), (this.highlightAnimator = null)); }, getHighlightAnimator_0: function () { return this.highlightAnimator; }, drawMask_1: function (a) { var b = this.getInnerContainer_0(); if (null != this.getGuiButtonObject_0() && !this.getGuiButtonObject_0().isHidden_0() && !this.isDragging_0()) if (this.shape == GT1073.prototype.BUTTON_SHAPE_ROUND) { var d = b.getAbsoluteX_0() + Math.div(b.getWidth_0(), 2), e = b.getAbsoluteY_0() + Math.div(b.getHeight_0(), 2); d >= Math.div(b.getWidth_0(), 2) && e >= Math.div(b.getHeight_0(), 2) && d <= a.getWidth_0() - Math.div(b.getWidth_0(), 2) && e <= a.getHeight_0() - Math.div(b.getHeight_0(), 2) && a.fillCircle_4(GT1634.prototype.red, d, e, Math.div(b.getWidth_0(), 2)); } else this.shape == GT1073.prototype.BUTTON_SHAPE_ROUND_RECT ? a.fillRoundRect_6(GT1634.prototype.red, b.getAbsoluteX_0(), b.getAbsoluteY_0(), b.getWidth_0(), b.getHeight_0(), this.radius) : a.fillRect_5(GT1634.prototype.red, b.getAbsoluteX_0(), b.getAbsoluteY_0(), b.getWidth_0(), b.getHeight_0()); }, hide_1: function (a) { GT751.prototype.hide_1.call(this, a); GT1560.prototype.isAlive_1(this.guiButtonObject) && this.guiButtonObject.hide_1(a); GT1560.prototype.isAlive_1(this.guiTextObject) && this.guiTextObject.hide_1(a); }, }, "GT413", [GT807] ); GT413.prototype.getColorTransformation_1 = function (a) { return null == a ? null : a.create_0(); }; GT413.prototype.makeButton_15 = function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B) { a = new GT1437(a); var A = a.getWidth_0(), C = a.getHeight_0(), E = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(), F = E.getPopupEdges_0(), D = E.getConsoleColorSet_0().getButtonColorSet_1(k), H = D.getActive_0().getBorder_0().create_0(), E = D.getActive_0().getBackground_0().create_0(), I = D.getActive_0().getBackgroundAlpha_0(), L = D.getActive_0().getBorderAlpha_0(); k = this.getColorTransformation_1(D.getActive_0().getColorTransformation_0()); f == GT1236.prototype.INACTIVE ? ((H = D.getInactive_0().getBorder_0().create_0()), (E = D.getInactive_0().getBackground_0().create_0()), (I = D.getInactive_0().getBackgroundAlpha_0()), (L = D.getInactive_0().getBorderAlpha_0()), (k = this.getColorTransformation_1(D.getInactive_0().getColorTransformation_0()))) : f == GT1236.prototype.MOUSEOVER ? ((H = D.getHover_0().getBorder_0().create_0()), (E = D.getHover_0().getBackground_0().create_0()), (I = D.getHover_0().getBackgroundAlpha_0()), (L = D.getHover_0().getBorderAlpha_0()), (k = this.getColorTransformation_1(D.getHover_0().getColorTransformation_0()))) : f == GT1236.prototype.PRESSED && ((H = D.getPressed_0().getBorder_0().create_0()), (E = D.getPressed_0().getBackground_0().create_0()), (I = D.getPressed_0().getBackgroundAlpha_0()), (L = D.getPressed_0().getBorderAlpha_0()), (k = this.getColorTransformation_1(D.getPressed_0().getColorTransformation_0()))); m || (g == GT1073.prototype.BUTTON_SHAPE_ROUND_RECT ? (B || new GT1439(a, 0, 0, A, C, 2, p, F, GT1634.prototype.black, GT1634.prototype.black, 0, 222), new GT1439(a, 1, 1, A - u, C - u, u, p, F, E, H, I, L)) : g == GT1073.prototype.BUTTON_SHAPE_RECT ? new GT1439(a, 0, 0, A, C, u, p, 0, E, H, I, L) : g == GT1073.prototype.BUTTON_SHAPE_ROUND && ((f = Math.div(a.getWidth_0(), 2)), (g = Math.div(a.getHeight_0(), 2)), new GT1108(a, f, g, f - 2, f, 4 * F, E).setAlpha_1(222), (m = new GT1108(a, f, g, f - 2 - u, f - 2, 4 * F, H)), m.setAlpha_1(L), (m = new GT1108(a, f, g, 0, f - 2 - u, 4 * F, E)), m.setAlpha_1(I))); null != b && (q == GT1073.prototype.IMAGE_LEFT ? ((q = r), (r = Math.max_2(Math.div(a.getHeight_0() - b.getRowHeight_0(), 2), 0))) : q == GT1073.prototype.IMAGE_RIGHT ? ((q = a.getWidth_0() - r - b.getColumnWidth_0()), (r = Math.max_2(Math.div(a.getHeight_0() - b.getRowHeight_0(), 2), 0))) : q == GT1073.prototype.IMAGE_TOP ? (q = Math.max_2(Math.div(a.getWidth_0() - b.getColumnWidth_0(), 2), 0)) : q == GT1073.prototype.IMAGE_BOTTOM ? ((q = Math.max_2(Math.div(a.getWidth_0() - b.getColumnWidth_0(), 2), 0)), (r = a.getHeight_0() - r - b.getHeight_0())) : ((q = Math.max_2(Math.div(a.getWidth_0() - b.getColumnWidth_0(), 2), 0)), (r = Math.max_2(Math.div(a.getHeight_0() - b.getRowHeight_0(), 2), 0))), (b = new GT1591(a, q, r, b.getColumnWidth_0(), b.getRowHeight_0(), b, e, d, !1)), b.setAlpha_1(t), n || b.setColorTransformation_1(k)); return a; }; GT413.prototype.makeButton_13 = function (a, b, d, e, f, g, k, m, n, p, q, r, t) { return this.makeButton_15(a, b, d, e, f, g, k, m, n, p, q, r, t, 3, !1); }; var GT121 = GT751.extend( { initialConstructor_0: function () { this.isShowingWin = this.isFreeSpinsRunning = !1; this.winLine2 = this.winLine1 = this.freeGameLine1 = this.statusLine2 = this.statusLine1f = this.statusLine1 = this.creditLine = this.textInnerContainer = this.displayInnerContainer = this.backgroundImage = null; this.creditValueFromLastUpdate = this.componentHeight = this.componentWidth = this.lineHeight = 0; this.freeSpinsRunning = this.suppressStatusText = !1; this.freeSpinsPlayed = this.freeSpinsWon = 0; this.doWinAnimation = !1; this.winAnimationDuration = this.cumulatedWinValue = this.winValue = 0; this.doCreditAnimation = !1; this.creditValue = this.creditAnimationDuration = 0; this.statusTextOverride = null; this.showOverridenStatusText = !1; this.superGameText = null; this.doCreditUpdate = this.doWinUpdate = this.targetedUpdateOrInit = this.targetedUpdate = !1; this.statusText = this.freeGameText = null; this.changeWinPrefix = !1; this.animationCompletedCallback = this.guiStateId = null; this.animatorsFinished = 0; this.winPrefix = this.collectWinSound = this.creditAnimator = this.winAnimator = null; this.mIsDragging = this.autoplayRunning = !1; this.triggerTime = null; this.freeSpinsRunningUnmodified = !1; this.winValueEarly = this.radius = 0; this.showStatus = this.showWin = !1; this.freeRoundsPlayed = this.freeRoundsWon = 0; this.creditLabelText = null; this.inFreeSpinsMode = !1; this.creditLineContainer = this.winLineContainer = this.freeSpinTextOverride = null; this.countUp = !1; this.freeSpinsWonNow = this.countUpStartValue = 0; this.statusTextOverrideGradient = this.statusTextOverrideHard = this.updateReason = null; this.statusTextOverrideFullSize = !1; GT751.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.isShowingWin = this.isFreeSpinsRunning = !1; this.winLine2 = this.winLine1 = this.freeGameLine1 = this.statusLine2 = this.statusLine1f = this.statusLine1 = this.creditLine = this.textInnerContainer = this.displayInnerContainer = this.backgroundImage = null; this.creditValueFromLastUpdate = this.componentHeight = this.componentWidth = this.lineHeight = 0; this.freeSpinsRunning = this.suppressStatusText = !1; this.freeSpinsPlayed = this.freeSpinsWon = 0; this.doWinAnimation = !1; this.winAnimationDuration = this.cumulatedWinValue = this.winValue = 0; this.doCreditAnimation = !1; this.creditValue = this.creditAnimationDuration = 0; this.statusTextOverride = null; this.showOverridenStatusText = !1; this.superGameText = null; this.doCreditUpdate = this.doWinUpdate = this.targetedUpdateOrInit = this.targetedUpdate = !1; this.statusText = this.freeGameText = null; this.changeWinPrefix = !1; this.animationCompletedCallback = this.guiStateId = null; this.animatorsFinished = 0; this.winPrefix = this.collectWinSound = this.creditAnimator = this.winAnimator = null; this.mIsDragging = this.autoplayRunning = !1; this.triggerTime = null; this.freeSpinsRunningUnmodified = !1; this.winValueEarly = this.radius = 0; this.showStatus = this.showWin = !1; this.freeRoundsPlayed = this.freeRoundsWon = 0; this.creditLabelText = null; this.inFreeSpinsMode = !1; this.creditLineContainer = this.winLineContainer = this.freeSpinTextOverride = null; this.countUp = !1; this.freeSpinsWonNow = this.countUpStartValue = 0; this.statusTextOverrideGradient = this.statusTextOverrideHard = this.updateReason = null; this.statusTextOverrideFullSize = !1; GT751.prototype.initialConstructor_2.call(this, a, b); this.lineHeight = Math.div(b.getComponentHeight_0() - 2 * GT121.prototype.SPACER_Y - 2 * GT121.prototype.OFFSET_Y, 3) - 2; this.componentWidth = b.getComponentWidth_0(); this.componentHeight = b.getComponentHeight_0(); this.radius = 0 == b.getCornerRadius_0() ? GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getPopupRadius_0() : b.getCornerRadius_0(); null != b.getBackgroundImageFile_0() && (this.backgroundImage = b.getBackgroundImageFile_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0())); null != b.getWinAnimationSound_0() && (this.collectWinSound = b.getWinAnimationSound_0().create_1(GT1389.prototype.getInstance_0().getSkinManager_0())); this.createBackground_0(); this.recreateTexts_0(); }, createStatusLine_2: function (a, b) { var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getStatusColor_0().create_0(), e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getStatusGradient_0(); this.statusLine1f = new GT543(this.getTextInnerContainer_0(), 0, GT121.prototype.OFFSET_Y + 3, a, this.lineHeight, 25, 25, 0, 0, d, e, GT1237.prototype.FCK_STATUS); this.statusLine1 = new GT543(this.getTextInnerContainer_0(), 0, GT121.prototype.OFFSET_Y + this.lineHeight + GT121.prototype.SPACER_Y, a, this.lineHeight, 25, 25, 0, 0, d, e, GT1237.prototype.FCK_STATUS); this.statusLine2 = new GT543(this.getTextInnerContainer_0(), 0, GT121.prototype.OFFSET_Y + GT121.prototype.SPACER_Y - 2, a, 2 * this.lineHeight, 25, 25, 0, 0, d, e, GT1237.prototype.FCK_STATUS); this.setStatusLineText_1(this.statusText); }, createFreeGameLine_0: function () { var a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getFeatureColor_0().create_0(); this.freeGameLine1 = new GT543( this.getTextInnerContainer_0(), 0, GT121.prototype.OFFSET_Y + this.lineHeight + GT121.prototype.SPACER_Y, this.width, this.lineHeight, 10, 10, 0, 0, a, null, GT1237.prototype.FCK_LABEL_LARGE ); this.freeGameLine1.setText_1(this.freeGameText); }, createWinLine_3: function (a, b, d) { b = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getFeatureColor_0().create_0(); this.winLineContainer = new GT1437(this.getTextInnerContainer_0()); d = this.getWinPrefix_3(!1, !1, !1); this.winLine1 = new GT543(this.winLineContainer, d, 0, GT121.prototype.OFFSET_Y + 3, a, this.lineHeight, 10, 10, 0, 0, b, null, GT1237.prototype.FCK_WIN); this.winLine2 = new GT543(this.winLineContainer, d, 0, GT121.prototype.OFFSET_Y + GT121.prototype.SPACER_Y, a, 2 * this.lineHeight, 10, 10, 0, 0, b, null, GT1237.prototype.FCK_WIN); this.winLine1.setAnimationProperties_2(2, 2); this.winLine2.setAnimationProperties_2(2, 2); }, createCreditLine_2: function (a, b) { var d = GT121.prototype.OFFSET_Y + 2 * (this.lineHeight + GT121.prototype.SPACER_Y), e = b - GT121.prototype.SPACER_Y - d; this.creditLineContainer = new GT1437(this.getTextInnerContainer_0()); this.creditLine = new GT543(this.creditLineContainer, "${neon_windisplay_credit}", 0, d, a, e); this.creditLine.setAnimationProperties_2(2, 2); this.creditLine.setValue_1(this.creditValueFromLastUpdate); }, updateUi_1: function (a) { var b = GT1389.prototype.getInstance_0().getSoundPlayer_0(), d = a.getRules_0().get_1(GT1185.prototype.VDR_GUISTATE_CONSOLE_ID); this.targetedUpdateOrInit = (this.targetedUpdate = null == d) || "Init".equals_1(d); null != d && (this.guiStateId = d); this.triggerTime = a.getViewData_1(GT1184.prototype.TRIGGERING_TIME); this.updateReason = a.getViewData_1(GT1184.prototype.UPDATE_REASON); "Init".equals_1(d) && GT820.prototype.TRIGGER_TIME_ENTER.equals_1(this.triggerTime) && (this.statusTextOverride = null); this.skipUpdate_0() || (this.retrieveData_1(a), (this.changeWinPrefix = "AfterCollectWin".equals_1(d) || "FreeGamesStart".equals_1(d) || "FreeGamesMore".equals_1(d) || "FreeGamesEnd".equals_1(d) || "GambleShowLost".equals_1(d) || "BeforeSpin".equals_1(d) || "PaytableClosing".equals_1(d) || "ChangeBet".equals_1(d)), (this.showOverridenStatusText = null != this.statusTextOverride && !this.statusTextOverride.isEmpty_0()), GT121.prototype.Log.trace && (GT121.prototype.Log.t_1("UI Neon: updateUI: changeWinPrefix=" + this.changeWinPrefix), GT121.prototype.Log.t_1("UI Neon: updateUI: showOverridenStatusText=" + this.showOverridenStatusText + " statusTextOverride=" + this.statusTextOverride)), (this.suppressStatusText = null != this.statusTextOverride && this.statusTextOverride.isEmpty_0()), this.updateWin_0(), this.updateStatus_0(), this.updateFreegame_0(), this.updateCredit_0(), this.updateVisibilities_0(), "FreeGamesEnd".equals_1(d) && GT820.prototype.TRIGGER_TIME_FINISH.equals_1(this.triggerTime) && (this.inFreeSpinsMode || (this.cumulatedWinValue = 0), (this.winValue = 0)), this.doWinAnimation && (GT121.prototype.Log.t_1("UI Neon: win animation is starting..."), (this.animatorsFinished = 0), (this.winAnimator = new GT196(GT1389.prototype.getInstance_0().getTimer_0(), this.winLineContainer, 1.36, 350)), (this.creditAnimator = new GT196(GT1389.prototype.getInstance_0().getTimer_0(), this.creditLineContainer, this.inFreeSpinsMode ? 1 : 1.36, 350)), (a = new GT831(this)), this.winAnimator.addFinishCallback_1(a), this.creditAnimator.addFinishCallback_1(a), null != b && b.start_1(this.collectWinSound), this.winAnimator.start_0(), this.creditAnimator.start_0())); }, skipUpdate_0: function () { return !this.targetedUpdateOrInit && ("Undefined".equals_1(this.guiStateId) || "WinAnimations".equals_1(this.guiStateId) || "SpecialWinVisualizationOpening".equals_1(this.guiStateId) || "SpecialWinVisualization".equals_1(this.guiStateId) || "GambleWaitingForServer".equals_1(this.guiStateId) || "GambleScreenClosing".equals_1(this.guiStateId) || this.isPaytableCall_0() || ("ReelStopping".equals_1(this.guiStateId) && !GT820.prototype.TRIGGER_TIME_FINISH.equals_1(this.triggerTime))) ? (GT121.prototype.Log.t_1("skipping update for credit/win; win switcher will do that"), !0) : !1; }, updateVisibilities_0: function () { var a = ((!("ReelsSpinning".equals_1(this.guiStateId) || ("ReelsStopping".equals_1(this.guiStateId) && !this.doWinUpdate)) && !this.autoplayRunning) || (!("ReelsStopping".equals_1(this.guiStateId) && GT820.prototype.TRIGGER_TIME_FINISH.equals_1(this.triggerTime)) && this.autoplayRunning) || (this.freeSpinsRunningUnmodified && !("ReelsStopping".equals_1(this.guiStateId) && 0 == this.freeSpinsPlayed))) && !("FreeGamesStart".equals_1(this.guiStateId) && 0 == this.freeSpinsPlayed) && (this.doWinUpdate || 0 < this.winValue + this.cumulatedWinValue); this.showWin = (0 < this.winValue + this.cumulatedWinValue || null != this.superGameText) && a; this.showStatus = null != this.statusText && !this.statusText.isEmpty_0() && (!this.showWin || ("FreeGamesStart".equals_1(this.guiStateId) && 0 == this.freeSpinsPlayed) || this.showOverridenStatusText); var a = null != this.freeGameText && !this.freeGameText.isEmpty_0(), b = this.showWin && (this.showStatus || a), d = this.showWin && !(this.showStatus || a), e = this.showStatus && this.showWin && !a, f = this.showStatus && !this.showWin && a, g = this.showStatus && !(this.showWin || a), k = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0(); null != this.statusTextOverrideHard ? ((g = g || this.statusTextOverrideFullSize), (b = (b || d) && !a && !this.statusTextOverrideFullSize), (d = !1), (e = !a && !g && !this.statusTextOverrideFullSize), (f = a && !this.statusTextOverrideFullSize), (a = a && !this.statusTextOverrideFullSize), null != this.statusTextOverrideGradient && (k = this.statusTextOverrideGradient), this.statusLine1.setText_2(this.statusTextOverrideHard, k), this.statusLine1f.setText_2(this.statusTextOverrideHard, k), this.statusLine2.setText_2(this.statusTextOverrideHard, k)) : (this.statusLine1.setGradient_1(k), this.statusLine1f.setGradient_1(k), this.statusLine2.setGradient_1(k)); this.winLine1.hide_1(!b); this.winLine2.hide_1(!d); this.statusLine1.hide_1(!e); this.statusLine1f.hide_1(!f); this.statusLine2.hide_1(!g); this.freeGameLine1.hide_1(!a); }, updateStatus_0: function () { var a = null; if (null != this.statusTextOverride) a = this.statusTextOverride; else if (null != this.guiStateId) if ("SuperGameOpen".equals_1(this.guiStateId) && null == this.superGameText) a = GT1389.prototype.getInstance_0().getText_1("${console_supergamestart}"); else if ( "ReelsSpinning".equals_1(this.guiStateId) || "ReelsStopping".equals_1(this.guiStateId) || ("BeforeSpin".equals_1(this.guiStateId) && 0 < this.freeSpinsPlayed && this.freeSpinsPlayed != this.freeSpinsWon) || ("AfterCollectWin".equals_1(this.guiStateId) && 0 == this.cumulatedWinValue && this.freeSpinsRunning) || ("BeforeSpin".equals_1(this.guiStateId) && this.inFreeSpinsMode) || ("SuperGameWheelStopping".equals_1(this.guiStateId) && null == this.superGameText) || ("SuperGameOpen".equals_1(this.guiStateId) && null == this.superGameText) || ("SuperGameWheelSpinning".equals_1(this.guiStateId) && null == this.superGameText) ) a = GT1389.prototype.getInstance_0().getText_1("${neon_console_whilespintext}"); else if ( "DecideGamble".equals_1(this.guiStateId) || "Undefined".equals_1(this.guiStateId) || "WinAnimations".equals_1(this.guiStateId) || "CollectWin".equals_1(this.guiStateId) || ("GambleShowLost".equals_1(this.guiStateId) && this.freeSpinsRunningUnmodified) || ("BeforeSpin".equals_1(this.guiStateId) && this.freeSpinsPlayed == this.freeSpinsWon && 0 < this.freeSpinsPlayed) || ("Init".equals_1(this.guiStateId) && 0 < this.winValue) ) a = ""; else if ( "FreeGamesStart".equals_1(this.guiStateId) || "FreeGamesMore".equals_1(this.guiStateId) || (("BeforeSpin".equals_1(this.guiStateId) || "PaytableClosing".equals_1(this.guiStateId)) && 0 == this.freeSpinsPlayed && 0 < this.freeSpinsWon) ) a = GT1389.prototype.getInstance_0().getText_1("${neon_gamble_info_topwon0}"); else { if ( this.isPaytableCall_0() || "GambleScreenOpening".equals_1(this.guiStateId) || "GambleScreenOpen".equals_1(this.guiStateId) || "GambleScreenClosing".equals_1(this.guiStateId) || ("ChangeBet".equals_1(this.guiStateId) && null != this.statusText && !this.statusText.equals_1("")) || null != this.statusTextOverrideHard ) return; a = GT1389.prototype.getInstance_0().getText_1("${neon_console_beforespintext}"); } null == a && (a = ""); GT121.prototype.Log.t_1("UI Neon: status text 'calculated' in state " + this.guiStateId + " as " + a); this.statusText = a; this.setStatusLineText_1(a); }, updateFreegame_0: function () { if (null != this.guiStateId && !this.isPaytableCall_0()) { var a = null, b = this.freeSpinsWon == this.freeSpinsPlayed && ("FreeGamesEnd".equals_1(this.guiStateId) || "BeforeSpin".equals_1(this.guiStateId) || "ChangeBet".equals_1(this.guiStateId)), d = this.freeSpinsWon == this.freeSpinsPlayed && 0 == this.freeSpinsWonNow && "ReelsSpinning".equals_1(this.guiStateId), e = 0 < this.freeSpinsWonNow && 0 == this.freeSpinsPlayed && "ReelsSpinning".equals_1(this.guiStateId); d || (null != this.freeSpinTextOverride && (0 < this.freeSpinsWon || e) ? (a = this.freeSpinTextOverride) : 0 < this.freeSpinsPlayed && 0 < this.freeSpinsWon && !b ? ((a = GT1389.prototype.getInstance_0().getText_1("${neon_console_bonusgametext}")), (a = GT1677.prototype.replaceInString_3(a, "#0", "" + this.freeSpinsPlayed)), (a = GT1677.prototype.replaceInString_3(a, "#1", "" + this.freeSpinsWon))) : 0 < this.freeSpinsWon && b && ((a = GT1389.prototype.getInstance_0().getText_1("${neon_windisplay_feature_spins_won}")), (a = GT1677.prototype.replaceInString_3(a, "#0", "" + this.freeSpinsPlayed)))); GT121.prototype.Log.t_1("UI Neon: freeSpin text 'calculated' in state " + this.guiStateId + " as " + a + " (override:" + this.freeSpinTextOverride + ", freeSpinsWon:" + this.freeSpinsWon + ")"); this.freeGameText = a; this.freeGameLine1.setText_1(this.freeGameText); } }, isPaytableCall_0: function () { return null != this.guiStateId && this.guiStateId.startsWith_1("Paytable") && !GT1607.prototype.SETTINGS_SWITCH_LAYOUT_COMPLETED.equals_1(this.updateReason); }, updateCredit_0: function () { var a = GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("field.credits.show"); "0".equals_1(a) && !this.inFreeSpinsMode ? this.creditLine.hide_1(!0) : (this.creditLine.hide_1(!1), null != this.creditLine && (this.inFreeSpinsMode ? this.setFreeRoundText_0() : ((a = !0), this.doCreditAnimation && (a = !this.doCreditAnimation), this.creditLine.setGradient_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0()), (this.creditValueFromLastUpdate = this.creditValue), this.creditLine.setValue_4(this.creditValueFromLastUpdate, a, this.creditAnimationDuration, 0)))); }, setFreeRoundText_0: function () { var a = GT1389.prototype.getInstance_0().getText_1("${neon_console_freerounds}"); this.freeRoundsPlayed != this.freeRoundsWon ? ((a = GT1677.prototype.replaceInString_3(a, "#0", "" + (this.freeRoundsPlayed + 1))), (a = GT1677.prototype.replaceInString_3(a, "#1", "" + this.freeRoundsWon))) : (a = ""); this.creditLine.setText_2(a, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getFeatureGradient_0()); }, updateWin_0: function () { if (!this.targetedUpdate || (null == this.statusTextOverride && null == this.freeSpinTextOverride) || this.doWinUpdate || this.changeWinPrefix) { GT121.prototype.Log.t_1("UI Neon: updateWin: before update winPrefix=" + this.winPrefix); if (this.changeWinPrefix) { var a; this.inFreeSpinsMode ? ((this.winPrefix = this.getWinPrefix_3(!0, !1, !1)), (this.winValue = a = this.cumulatedWinValue)) : this.freeSpinsRunningUnmodified || "FreeGamesStart".equals_1(this.guiStateId) || "FreeGamesMore".equals_1(this.guiStateId) || "FreeGamesEnd".equals_1(this.guiStateId) ? ((this.winPrefix = this.getWinPrefix_3(!1, !0, !1)), (this.winValue = a = this.cumulatedWinValue)) : ((this.winPrefix = this.getWinPrefix_3(!1, !1, !0)), (a = this.winValue)); GT121.prototype.Log.trace && GT121.prototype.Log.t_1("UI Neon: changing win prefix to " + this.winPrefix); this.doWinUpdate = !0; this.winLine1.setValueAndPrefix_6(a, this.winPrefix, this.superGameText, !this.countUp, this.winAnimationDuration, this.countUpStartValue); this.winLine2.setValueAndPrefix_6(a, this.winPrefix, this.superGameText, !this.countUp, this.winAnimationDuration, this.countUpStartValue); } if ((this.doWinUpdate || "Init".equals_1(this.guiStateId) || "DecideGamble".equals_1(this.guiStateId)) && !this.changeWinPrefix && (!"ReelsStopping".equals_1(this.guiStateId) || this.targetedUpdate)) { if (!this.freeSpinsRunning || 0 < this.freeSpinsPlayed) "FreeGamesStart".equals_1(this.guiStateId) || 0 == this.winValueEarly ? !this.inFreeSpinsMode && this.freeSpinsRunning && 0 == this.winValueEarly && (this.winPrefix = this.getWinPrefix_3(!1, !0, !1)) : (this.winPrefix = this.getWinPrefix_3(!1, !1, !1)), 0 == this.winValueEarly && 0 < this.cumulatedWinValue ? (this.winValue = this.cumulatedWinValue) : "FreeGamesMore".equals_1(this.guiStateId) || (this.winValue = this.winValueEarly); this.winLine1.setValueAndPrefix_6(this.winValue, this.winPrefix, this.superGameText, !this.countUp, this.winAnimationDuration, this.countUpStartValue); this.winLine2.setValueAndPrefix_6(this.winValue, this.winPrefix, this.superGameText, !this.countUp, this.winAnimationDuration, this.countUpStartValue); GT121.prototype.Log.trace && GT121.prototype.Log.t_1("UI Neon: changing win prefix to " + this.winPrefix + " winValue to " + this.winValue); } } }, getWinPrefix_3: function (a, b, d) { var e = GT1389.prototype.getInstance_0().getWinPrefix_3(a, b, d); return null != e ? e : a ? GT1389.prototype.getInstance_0().getText_1("${neon_console_label_freerounds_winnings}") : b ? GT1389.prototype.getInstance_0().getText_1("${neon_windisplay_feature_won}") : d ? GT1389.prototype.getInstance_0().getText_1("${neon_windisplay_won}") : GT1389.prototype.getInstance_0().getText_1("${neon_windisplay_win}"); }, retrieveData_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_FREE_SPIN_OFFSET), d = 0; null != b && (d = b.intValue_0()); b = a.getViewData_1(GT1184.prototype.FREESPINS_RUNNING); null != b && ((this.freeSpinsRunning = b.booleanValue_0()), (this.freeSpinsRunningUnmodified = b.booleanValue_0())); b = a.getViewData_1(GT1184.prototype.FREESPINS_WON); null != b && (this.freeSpinsWon = b.intValue_0() + d); b = a.getViewData_1(GT1184.prototype.FREESPINS_WON_NOW); null != b && (this.freeSpinsWonNow = b.intValue_0()); b = a.getViewData_1(GT1184.prototype.FREESPINS_PLAYED); null != b && ((this.freeSpinsPlayed = b.intValue_0() + d), (this.freeSpinsRunning = this.freeSpinsRunning && 0 < this.freeSpinsPlayed)); d = a.getViewData_1(GT1184.prototype.FREESPINS_WINNINGS); null != d && (this.cumulatedWinValue = d.doubleValue_0()); this.inFreeSpinsMode = "1".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("freeSpinsMode")); d = a.getViewData_1(GT1184.prototype.FREEROUNDS_WON); null != d && (this.freeRoundsWon = d.intValue_0()); d = a.getViewData_1(GT1184.prototype.FREEROUNDS_PLAYED); null != d && (this.freeRoundsPlayed = d.intValue_0()); d = a.getViewData_1(GT1184.prototype.FREEROUNDS_WINNINGS); null != d && this.inFreeSpinsMode && (this.cumulatedWinValue = d.doubleValue_0()); d = a.getViewData_1(GT1184.prototype.AUTOPLAY_RUNNING); null != d && (this.autoplayRunning = d.booleanValue_0()); this.countUp = !1; d = a.getViewData_1(GT1184.prototype.WIN_COUNT_UP); null != d && (this.countUp = d.booleanValue_0()); this.countUpStartValue = 0; d = a.getViewData_1(GT1184.prototype.WIN_COUNT_UP_START); null != d && (this.countUpStartValue = d.doubleValue_0()); this.doWinUpdate = !1; d = a.getViewData_1(GT1184.prototype.WIN_ANIMATION); null != d ? ((this.doWinAnimation = d.booleanValue_0()), (this.doWinUpdate = !0)) : (this.doWinAnimation = !1); d = a.getViewData_1(GT1184.prototype.WIN); null != d && (this.targetedUpdateOrInit || "GambleScreenOpening".equals_1(this.guiStateId) || "GambleScreenOpen".equals_1(this.guiStateId)) && ((this.winValue = d.doubleValue_0()), (this.doWinUpdate = !0)); this.superGameText = a.getViewData_1(GT1184.prototype.SUPERGAME_TEXT); null != this.superGameText && (this.doWinUpdate = !0); null != d && (this.winValueEarly = d.doubleValue_0()); if (("ReelsStopping".equals_1(this.guiStateId) && !this.freeSpinsRunningUnmodified) || "FreeGamesStart".equals_1(this.guiStateId)) this.autoplayRunning || (this.winValue = 0), (this.doWinUpdate = !0); this.autoplayRunning && !this.freeSpinsRunningUnmodified && "ReelsStopping".equals_1(this.guiStateId) && GT820.prototype.TRIGGER_TIME_FINISH.equals_1(this.triggerTime) && ((this.winValue = 0), (this.doWinUpdate = !0)); d = a.getViewData_1(GT1184.prototype.WIN_ANIMATION_DURATION); null != d && (this.winAnimationDuration = d.intValue_0()); null == this.animationCompletedCallback && (this.animationCompletedCallback = a.getViewData_1(GT1184.prototype.WIN_ANIMATION_CALLBACK)); d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE); null != d && (this.statusTextOverride = d.getOverride_0()); d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_ENFORCE); null != d && ((this.statusTextOverrideHard = d.getOverride_0()), (this.statusTextOverrideGradient = a.getRules_0().get_1(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_GRADIENT)), (d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_CONSOLE_STATUS_TEXT_OVERRIDE_FULLSIZE)), (this.statusTextOverrideFullSize = null == d ? !1 : d.booleanValue_0())); d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_CONSOLE_FREESPIN_TEXT_OVERRIDE); null != d && (this.freeSpinTextOverride = d.getOverride_0()); d = a.getViewData_1(GT1184.prototype.CREDITS); null == d || "SuperGameWheelStopping".equals_1(this.guiStateId) || "SuperGameWheelSpinning".equals_1(this.guiStateId) || (this.creditValue = d.doubleValue_0()); d = a.getViewData_1(GT1184.prototype.CREDITS_ANIMATION); this.doCreditUpdate = !1; null != d ? ((this.doCreditAnimation = d.booleanValue_0()), (this.doCreditUpdate = !0)) : (this.doCreditAnimation = !1); a = a.getViewData_1(GT1184.prototype.CREDITS_ANIMATION_DURATION); null != a && (this.creditAnimationDuration = a.intValue_0()); }, recreateTexts_0: function () { var a = this.winValue; this.getDisplayInnerContainer_0().destroyChildren_0(); this.createBackground_0(); this.createCreditLine_2(this.componentWidth, this.componentHeight); this.createInfoLines_3(this.componentWidth, this.componentHeight, a); }, createInfoLines_3: function (a, b, d) { this.createStatusLine_2(a, b); this.createFreeGameLine_0(); this.createWinLine_3(a, b, d); }, createBackground_0: function () { var a = this.getInnerContainer_0().getWidth_0(), b = this.getInnerContainer_0().getHeight_0(), d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(), e = d.getPopupEdges_0(), f = d.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_DISPLAY), d = f.getActive_0().getBorder_0().create_0(), g = f.getActive_0().getBackground_0().create_0(), k = f.getActive_0().getBackgroundAlpha_0(), f = f.getActive_0().getBorderAlpha_0(); this.displayInnerContainer = new GT1437(this.getInnerContainer_0()); new GT1439(this.getDisplayInnerContainer_0(), 0, 0, a, b, 2, this.radius, e, GT1634.prototype.black, GT1634.prototype.black, 0, 222); new GT1439(this.getDisplayInnerContainer_0(), 1, 1, a - 2, b - 2, 2, this.radius, e, g, d, k, f); new GT1440(this.getDisplayInnerContainer_0(), 3, Math.div(2 * b, 3) - GT121.prototype.SPACER_Y, this.componentWidth - 6, 1, GT1634.prototype.white).setAlpha_1(f); this.textInnerContainer = new GT1437(this.getDisplayInnerContainer_0()); }, getDisplayInnerContainer_0: function () { return this.displayInnerContainer; }, getTextInnerContainer_0: function () { return this.textInnerContainer; }, getWinLineContainer_0: function () { return this.winLineContainer; }, getIsFreeSpinsRunning_0: function () { return this.isFreeSpinsRunning; }, setFreeSpinsRunning_1: function (a) { this.isFreeSpinsRunning = a; }, setIsForPlaceholder_1: function (a) { this.isFreeSpinsRunning = a.getIsFreeSpinsRunning_0(); this.isShowingWin = a.getIsShowingWin_0(); this.recreateTexts_0(); this.winLine1.setValue_1(a.winValue); this.winLine2.setValue_1(a.winValue); this.setStatusLineText_1(a.statusText); this.statusLine1.hide_1(this.isShowingWin); this.statusLine2.hide_1(this.isShowingWin); }, setStatusLineText_1: function (a) { this.statusLine1.setText_1(a); this.statusLine1f.setText_1(a); this.statusLine2.setText_1(a); }, getIsShowingWin_0: function () { return this.isShowingWin; }, setShowingWin_1: function (a) { this.isShowingWin = a; }, actionCompleted_0: function () { this.animatorsFinished++; 1 < this.animatorsFinished && null != this.animationCompletedCallback && (("CollectWin".equals_1(this.guiStateId) || "SuperGameWheelStopping".equals_1(this.guiStateId)) && this.animationCompletedCallback.actionCompleted_0(), (this.animationCompletedCallback = null)); var a = this.getInnerContainer_0().getWidth_0(), b = this.getInnerContainer_0().getHeight_0(); !GT1560.prototype.isAlive_1(this.winLineContainer) || (0 == this.winLineContainer.getX_0() && 0 == this.winLineContainer.getY_0() && this.winLineContainer.getWidth_0() == a && this.winLineContainer.getHeight_0() == b) || (this.winLineContainer.move_2(0, 0), this.winLineContainer.resize_2(a, b)); !GT1560.prototype.isAlive_1(this.creditLineContainer) || (0 == this.creditLineContainer.getX_0() && 0 == this.creditLineContainer.getY_0() && this.creditLineContainer.getWidth_0() == a && this.creditLineContainer.getHeight_0() == b) || (this.creditLineContainer.move_2(0, 0), this.creditLineContainer.resize_2(a, b)); }, setSize_2: function (a, b) { this.componentWidth = a; this.componentHeight = b; GT751.prototype.setSize_2.call(this, a, b); this.recreateTexts_0(); this.winLine1.setValueAndPrefix_6(this.winValue, this.winPrefix, this.superGameText, !0, -1, 0); this.winLine2.setValueAndPrefix_6(this.winValue, this.winPrefix, this.superGameText, !0, -1, 0); this.setStatusLineText_1(this.statusText); this.freeGameLine1.setText_1(this.freeGameText); this.updateVisibilities_0(); }, hideAllText_1: function (a) { GT1560.prototype.isAlive_1(this.getDisplayInnerContainer_0()) && this.getDisplayInnerContainer_0().hide_1(a); }, notifyDragStart_0: function () { GT751.prototype.notifyDragStart_0.call(this); this.mIsDragging = !0; }, notifyDragEnd_0: function () { GT751.prototype.notifyDragEnd_0.call(this); this.mIsDragging = !1; }, isDragging_0: function () { return this.mIsDragging; }, drawMask_1: function (a) { if (!this.isDragging_0()) { var b = this.getInnerContainer_0(); a.fillRoundRect_6(GT1634.prototype.red, b.getAbsoluteX_0(), b.getAbsoluteY_0(), b.getWidth_0(), b.getHeight_0(), this.radius); } }, }, "GT121", [GT454] ), GT543 = Class.extend( { initialConstructor_0: function () { this.labelGradient = this.textField = this.valueField = this.fontConfigKey = this.labelSuffix = this.labelText = null; this.suffixHasChangedSinceLastUpdate = this.labelTextHasChangedSinceLastUpdate = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT543.prototype.initialConstructor_13.call( this, a, b, d, e, f, g, 10, 10, 1, 1, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getValueColor_0().create_0(), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0(), GT1237.prototype.FCK_CREDITS ); }, setAnimationProperties_2: function (a, b) { null != this.valueField && (this.valueField.setRoundDuringAnimation_1(a), this.valueField.setMinimumNumberOfSteps_1(b)); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { GT543.prototype.initialConstructor_13.call(this, a, null, b, d, e, f, g, k, m, n, p, q, r); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.labelGradient = this.textField = this.valueField = this.fontConfigKey = this.labelSuffix = this.labelText = null; this.suffixHasChangedSinceLastUpdate = this.labelTextHasChangedSinceLastUpdate = !1; this.labelText = GT1389.prototype.getInstance_0().getText_1(b); this.fontConfigKey = t; t = new GT1437(a, d, e, f, g); var u = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(this.fontConfigKey); null != b ? ((this.valueField = new GT1410(t, 0, 0, f, g, u, q, GT1488.prototype.CENTER, GT1489.prototype.CENTER, GT1389.prototype.getInstance_0().getTimer_0())), this.valueField.setBreakLines_1(!1), this.valueField.setFormatter_1(GT1389.prototype.getInstance_0().getFormatter_0()), this.valueField.setInsets_4(k, m, n, p)) : ((this.textField = new GT1123(a, d, e, f, g, u, q)), this.textField.setHAlign_1(GT1488.prototype.CENTER), this.textField.setVAlign_1(GT1489.prototype.CENTER), this.textField.setInsets_4(k, m, n, p)); this.setGradient_1(r); }, setGradient_1: function (a) { this.labelGradient = a; null != this.valueField && this.valueField.setGradient_1(GT1533.prototype.getGradient_1(this.labelGradient)); null != this.textField && this.textField.setGradient_1(GT1533.prototype.getGradient_1(this.labelGradient)); }, setValueAndPrefix_6: function (a, b, d, e, f, g) { this.labelTextHasChangedSinceLastUpdate = null != b ? !b.equals_1(this.labelText) : null != this.labelText; this.suffixHasChangedSinceLastUpdate = null != d ? !d.equals_1(this.labelSuffix) : null != this.labelSuffix; this.labelText = b; this.labelSuffix = d; this.setValue_4(a, e, f, g); }, setValue_1: function (a) { this.setValue_2(a, !0); }, setValue_2: function (a, b) { this.setValue_4(a, b, -1, 0); }, setValue_4: function (a, b, d, e) { if (this.valueField.getValue_0() != a || this.labelTextHasChangedSinceLastUpdate || this.suffixHasChangedSinceLastUpdate) 0 == a && null != this.labelSuffix ? this.valueField.setText_1(this.labelSuffix) : null != this.valueField && (b || (this.valueField.setValue_2(e, !0), this.valueField.setValue_2(e, !0)), this.valueField.setDuration_1(d), this.valueField.setAppendixes_2(this.labelText, this.labelSuffix), this.valueField.setValue_2(a, b), b && this.valueField.setText_1(GT1389.prototype.getInstance_0().getFormatter_0().format_1(a))); }, setText_1: function (a) { null != this.valueField && (this.valueField.setAppendixes_2(null, null), this.valueField.setText_1(a)); null != this.textField && this.textField.setText_1(a); }, setText_2: function (a, b) { this.setText_1(null); this.setGradient_1(b); this.setText_1(a); }, hide_1: function (a) { GT1560.prototype.isAlive_1(this.valueField) && this.valueField.hide_1(a); GT1560.prototype.isAlive_1(this.textField) && this.textField.hide_1(a); }, isHidden_0: function () { return null != this.valueField ? this.valueField.isHidden_0() : null != this.textField ? this.textField.isHidden_0() : !0; }, }, "GT543", [] ); GT121.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT121.prototype.SPACER_Y = 5; GT121.prototype.OFFSET_Y = 5; var GT400 = GT751.extend( { initialConstructor_0: function () { this.valueFonts = this.labelFonts = this.backgroundImage = this.guiValues = this.guiLabels = this.values = this.labels = this.valuesContainer = this.labelsContainer = this.backgroundContainer = null; GT751.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.valueFonts = this.labelFonts = this.backgroundImage = this.guiValues = this.guiLabels = this.values = this.labels = this.valuesContainer = this.labelsContainer = this.backgroundContainer = null; GT751.prototype.initialConstructor_2.call(this, a, b); this.labels = b.getLabels_0(); this.values = b.getValues_0(); this.labelFonts = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_MEDIUM); this.valueFonts = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_MEDIUM); this.guiLabels = new java_util_JavaScriptHashtable(); this.guiValues = new java_util_JavaScriptHashtable(); null != b.getBackgroundImageFile_0() && (this.backgroundImage = b.getBackgroundImageFile_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0())); this.createBackground_2(b.getComponentWidth_0(), b.getComponentHeight_0()); this.createLabels_2(b.getComponentWidth_0(), b.getComponentHeight_0()); this.createValues_2(b.getComponentWidth_0(), b.getComponentHeight_0()); }, createInnerContainer_2: function (a, b) { GT751.prototype.createInnerContainer_2.call(this, a, b); this.backgroundContainer = new GT852(this.getInnerContainer_0()); this.labelsContainer = new GT852(this.getInnerContainer_0()); this.valuesContainer = new GT852(this.getInnerContainer_0()); var d = new GT1559(this.backgroundContainer, 0, 0, a, b); d.setActive_1(!1); d.setConsumingMouseEventsWhenInactive_1(!0); }, createLabels_2: function (a, b) { this.guiLabels.clear_0(); for (var d = 0; d < this.labels.size_0(); d++) { var e = this.labels.get_1(d), f = e.getTextAttributes_0(), g = e.getLocationSizeAttributes_0(), k = null == f.getColor_0() ? GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0().create_0() : f.getColor_0(), g = new GT1123( this.labelsContainer, Integer.truncate_1(g.getRelativeX_0() * a), Integer.truncate_1(g.getRelativeY_0() * b), Integer.truncate_1(g.getRelativeWidth_0() * a), Integer.truncate_1(g.getRelativeHeight_0() * b), this.labelFonts, k ); g.setHAlign_1(f.getHAlign_0()); g.setVAlign_1(f.getVAlign_0()); g.setGradient_1(f.getGradient_0()); g.setInsets_4(f.getInsetLeft_0(), f.getInsetRight_0(), f.getInsetTop_0(), f.getInsetBottom_0()); g.setText_1(GT1389.prototype.getInstance_0().getText_1(e.getLabelText_0())); g.setAlpha_1(this.getAlpha_0()); this.guiLabels.put_2(e.getIdentifier_0(), g); } }, createValues_2: function (a, b) { var d = this.guiValues.clone_0(); this.guiValues.clear_0(); for (var e = 0; e < this.values.size_0(); e++) { var f = this.values.get_1(e), g = f.getTextAttributes_0(), k = f.getLocationSizeAttributes_0(), m = null == g.getColor_0() ? GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getValueColor_0().create_0() : g.getColor_0(), k = new GT1410( this.valuesContainer, Integer.truncate_1(k.getRelativeX_0() * a), Integer.truncate_1(k.getRelativeY_0() * b), Integer.truncate_1(k.getRelativeWidth_0() * a), Integer.truncate_1(k.getRelativeHeight_0() * b), this.valueFonts, m, g.getHAlign_0(), g.getVAlign_0(), GT1389.prototype.getInstance_0().getSkinManager_0().getTimer_0() ); k.setInsets_4(g.getInsetLeft_0(), g.getInsetRight_0(), g.getInsetTop_0(), g.getInsetBottom_0()); g = d.get_1(f.getIdentifier_0()); null != g && (k.setValue_2(g.getValue_0(), !0), k.setText_1(g.getText_0())); k.setAlpha_1(this.getAlpha_0()); this.guiValues.put_2(f.getIdentifier_0(), k); } }, createBackground_2: function (a, b) { null != this.backgroundImage && new GT1591(this.backgroundContainer, 0, 0, a, b, this.backgroundImage, 0, 0, !1); }, getGUIValue_1: function (a) { return this.guiValues.get_1(a); }, getGUILabel_1: function (a) { return this.guiLabels.get_1(a); }, setSize_2: function (a, b) { var d = this.backgroundContainer.getWidth_0(), e = this.backgroundContainer.getHeight_0(); GT751.prototype.setSize_2.call(this, a, b); !this.isAlive_0() || (a == d && b == e) || (this.createBackground_2(a, b), this.createLabels_2(a, b), this.createValues_2(a, b)); }, getBackgroundContainer_0: function () { return this.backgroundContainer; }, getLabelsContainer_0: function () { return this.labelsContainer; }, getValuesContainer_0: function () { return this.valuesContainer; }, setBackgroundImage_1: function (a) { this.backgroundImage = a; }, getBackgroundImage_0: function () { return this.backgroundImage; }, setIsForPlaceholder_1: function (a) { for (var b = this.guiValues.clone_0().keys_0(); b.hasMoreElements_0(); ) { var d = b.nextElement_0(), e = this.getGUIValue_1(d); null != e && ((d = a.getGUIValue_1(d)), null != d && (e.setFormatter_1(GT1389.prototype.getInstance_0().getFormatter_0()), e.setValue_2(d.getValue_0(), !0))); } this.reorder_1(!1); }, getLabelFonts_0: function () { return this.labelFonts; }, setLabelFonts_1: function (a) { this.labelFonts = a; }, getValueFonts_0: function () { return this.valueFonts; }, setValueFonts_1: function (a) { this.valueFonts = a; }, }, "GT400", [] ), GT202 = GT413.extend( { initialConstructor_0: function () { this.lastValidViewData = this.panel = this.linesValue = null; this.disableLineSettings = !1; this.valueOverride = this.lastValueOverride = null; this.singlePlayLines = !1; GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.lastValidViewData = this.panel = this.linesValue = null; this.disableLineSettings = !1; this.valueOverride = this.lastValueOverride = null; this.singlePlayLines = !1; GT413.prototype.initialConstructor_2.call(this, a, b); this.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.disableLineSettings = !GT1389.prototype.getInstance_0().getDeviceStrategy_0().isLineSettingsChangeable_0(); this.lastValueOverride = b.getLastValueText_0(); this.valueOverride = b.getValueTextMap_0(); b.isPlaceholder_0() || this.disableLineSettings || (this.panel = this.getPanel_3(a, this, b)); this.setComponentActive_1(!this.disableLineSettings); }, getPanel_3: function (a, b, d) { return new GT311(a, b, d); }, createLinesValue_4: function (a, b, d, e) { var f = ""; null != this.linesValue && (f = this.linesValue.getText_0()); this.linesValue = new GT1410( this.getTextContainer_0(), a, b, d, e, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_LARGE), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0().create_0(), GT1488.prototype.CENTER, GT1489.prototype.TOP, GT1389.prototype.getInstance_0().getTimer_0() ); a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0(); this.linesValue.setGradient_1(a); this.linesValue.setInsets_4(10, 10, 0, 0); this.linesValue.setBreakLines_1(!1); this.linesValue.setText_1(f); this.linesValue.setAlpha_1(this.getAlpha_0()); }, createText_2: function (a, b) { GT413.prototype.createText_2.call(this, a, b); var d = Math.div(b, 2); this.createLinesValue_4(0, d + -2, a, d); }, updateUi_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_LINE); null != b && ((this.activeFromLastViewData = b.isActive_0() || (b.isHighlighted_0() && !this.disableLineSettings)), this.setActive_1(this.activeFromLastViewData && this.isActive_0()), b.isHighlighted_0() ? this.toggleHighlight_1(!0) : this.toggleHighlight_1(!1), b.isActive_0() || b.isHighlighted_0() || null == this.panel || this.panel.hide_0()); var b = a.getViewData_1(GT1184.prototype.NUMBER_OF_LINES), d = a.getViewData_1(GT1184.prototype.GAMEMODE), e = a.getViewData_1(GT1184.prototype.PLAYLINES); (this.singlePlayLines = null != e && 1 == e.size_0()) && this.setComponentActive_1(!1); null != b && null != d && ((b = this.getLineValueText_3(b.intValue_0(), d.intValue_0(), e)), this.linesValue.setText_1(b), (this.lastValidViewData = a)); null != this.panel && this.panel.updateUi_1(a); }, getLineValueText_3: function (a, b, d) { a = "" + a; null != this.valueOverride && this.valueOverride.containsKey_1(a) && (a = this.valueOverride.get_1(a)); null != this.lastValueOverride && null != d && b == d.toArray_0().length - 1 && (a = this.lastValueOverride); return a; }, destroyObject_0: function () { null != this.panel && this.panel.destroyObject_0(); GT413.prototype.destroyObject_0.call(this); }, click_1: function (a) { this.disableLineSettings || (null != this.panel && this.panel.toggle_0(), GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.LINE_MENU_BUTTON_PRESSED, this))); }, setLocation_2: function (a, b) { GT413.prototype.setLocation_2.call(this, a, b); }, setComponentActive_1: function (a) { a = a && !this.disableLineSettings; GT413.prototype.setComponentActive_1.call(this, a); this.applyColorTransformation_1(a); }, setIsForPlaceholder_1: function (a) { GT413.prototype.setIsForPlaceholder_1.call(this, a); this.notifyLayoutAreaEnter_0(); null != a.getLastValidViewData_0() && this.updateUi_1(a.getLastValidViewData_0()); }, getLastValidViewData_0: function () { return this.lastValidViewData; }, setSize_2: function (a, b) { var d = this.getGuiButtonObject_0().isActive_0(); GT413.prototype.setSize_2.call(this, a, b); this.getGuiButtonObject_0().setActive_1(d); this.applyColorTransformation_1(d); }, applyColorTransformation_1: function (a) { a ? this.linesValue.setColorTransformation_1(null) : this.linesValue.setColorTransformation_1(GT1063.prototype.GrayOut); }, setActive_1: function (a) { GT413.prototype.setActive_1.call(this, a && !this.singlePlayLines); }, }, "GT202", [] ), GT255 = GT413.extend( { initialConstructor_0: function () { GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT413.prototype.initialConstructor_2.call(this, a, b); this.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.setComponentActive_1(!0); }, click_1: function (a) { GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.MAXBET_BUTTON_PRESSED, this, this.getClickIdentifier_0())); }, createText_2: function (a, b) { GT413.prototype.createText_2.call(this, a, b); GT1389.prototype.setAdaptiveSpacingUsingFactor_2(this.getGuiTextObject_0(), 1.05); }, updateUi_1: function (a) { GT413.prototype.updateUi_1.call(this, a); a = a.getRules_0().get_1(GT1185.prototype.VDR_VR_MAXBET); null != a && ((this.activeFromLastViewData = a.isActive_0() || a.isHighlighted_0()), this.setActive_1(this.activeFromLastViewData && this.isActive_0()), this.toggleHighlight_1(a.isHighlighted_0())); }, }, "GT255", [] ), GT303 = GT413.extend( { initialConstructor_0: function () { this.clock = this.menu = null; this.showClock = !1; GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.clock = this.menu = null; this.showClock = !1; GT413.prototype.initialConstructor_2.call(this, a, b); b.isPlaceholder_0() || (this.menu = new GT503(a, this, b.getMenuItems_0())); this.setComponentActive_1(!0); (this.showClock = b.isShowClock_0()) && this.createClock_2(b.getComponentWidth_0(), b.getComponentHeight_0()); }, click_1: function (a) { null != this.menu && this.menu.toggle_0(); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.MENU_BUTTON_PRESSED, this)); }, createText_2: function (a, b) { GT413.prototype.createText_2.call(this, a, b); this.showClock && this.createClock_2(a, b); }, createClock_2: function (a, b) { var d = null; null != this.clock && ((d = this.clock.getText_0()), GT1560.prototype.destroyIfAlive_1(this.clock)); var e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0(), f = GT1533.prototype.getGradient_1(GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0()); this.clock = new GT1123( this.getTextContainer_0(), 0, Integer.truncate_1(0.66666666 * b), a, Math.div(b, 3), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getConsoleFont_0().getFonts_1(GT1237.prototype.FCK_LABEL_MEDIUM), null == e ? GT1634.prototype.white : e.create_0() ); this.clock.setGradient_1(f); this.clock.setInsets_4(5, 5, 5, 5); this.clock.setHAlign_1(GT1488.prototype.CENTER); this.clock.setText_1(d); }, setLocation_2: function (a, b) { null != this.menu && this.menu.setLocation_2(a, b); GT413.prototype.setLocation_2.call(this, a, b); }, updateUi_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_MENU); null != b && ((this.activeFromLastViewData = b.isActive_0() || b.isHighlighted_0()), this.setActive_1(this.isActive_0() && this.activeFromLastViewData)); null != this.menu && this.menu.updateUi_1(a); }, updateUiTime_1: function (a) { GT1560.prototype.isAlive_1(this.clock) && this.showClock && this.clock.setText_1(a.getCurrentTime_0()); }, destroyObject_0: function () { null != this.menu && this.menu.destroyObject_0(); GT413.prototype.destroyObject_0.call(this); }, drawMask_1: function (a) { GT413.prototype.drawMask_1.call(this, a); this.isDragging_0() || this.menu.drawMask_1(a); }, }, "GT303", [] ), GT138 = GT413.extend( { initialConstructor_0: function () { GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT413.prototype.initialConstructor_2.call(this, a, b); this.setVisibility_1(!0); }, updateUi_1: function (a) { a = a.getViewData_1(GT1184.prototype.PAYTABLE_OPEN); null != a && this.setVisibility_1(!a.booleanValue_0()); }, setVisibility_1: function (a) { GT1560.prototype.isAlive_1(this.getGuiButtonObject_0()) && this.getGuiButtonObject_0().hide_1(a); GT1560.prototype.isAlive_1(this.getGuiTextObject_0()) && this.getGuiTextObject_0().hide_1(a); }, }, "GT138", [] ), GT122 = GT413.extend( { initialConstructor_0: function () { GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT413.prototype.initialConstructor_2.call(this, a, b); this.setVisibility_1(!0); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.PAYTABLE_OPEN), d = a.getRules_0().get_1(GT1185.prototype.VDR_GUISTATE_CONSOLE_ID); a = a.getViewData_1(GT1184.prototype.TRIGGERING_TIME); ("PaytableOpening".equals_1(d) || "PaytableOpen".equals_1(d)) && GT820.prototype.TRIGGER_TIME_ENTER.equals_1(a) ? this.setVisibility_1(!1) : "PaytableClosing".equals_1(d) && GT820.prototype.TRIGGER_TIME_ENTER.equals_1(a) ? this.setVisibility_1(!0) : "Init".equals_1(d) && GT820.prototype.TRIGGER_TIME_ENTER.equals_1(a) && this.setVisibility_1(!0); null != b && this.setActive_1(b.booleanValue_0() && this.isActive_0()); }, setVisibility_1: function (a) { this.isAlive_0() && !a && this.reorder_1(!0); this.hide_1(a); }, }, "GT122", [] ), GT229 = GT367.extend( { initialConstructor_0: function () { this.hideSwitchLayout = this.hideGambling = this.hideSounds = !1; this.textAreasWithCommonFont = this.hint = this.gambleHintButton = this.gambling = this.layoutRight = this.layoutLeft = this.soundOff = this.soundOnly = this.soundAndMusic = this.closePanel = this.panelConfig = this.settingsContainerBg = this.settingsContainer = this.settingsContainerModalBtn = this.settingsContainerModalBg = null; this.height = this.width = 0; this.labelGradient = this.labelColor = this.fonts = null; this.lastY = this.textHeightSingleLine = 0; this.infoMessageContainer = null; this.preventUpdate = !1; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.hideSwitchLayout = this.hideGambling = this.hideSounds = !1; this.textAreasWithCommonFont = this.hint = this.gambleHintButton = this.gambling = this.layoutRight = this.layoutLeft = this.soundOff = this.soundOnly = this.soundAndMusic = this.closePanel = this.panelConfig = this.settingsContainerBg = this.settingsContainer = this.settingsContainerModalBtn = this.settingsContainerModalBg = null; this.height = this.width = 0; this.labelGradient = this.labelColor = this.fonts = null; this.lastY = this.textHeightSingleLine = 0; this.infoMessageContainer = null; this.preventUpdate = !1; GT367.prototype.initialConstructor_0.call(this); this.textAreasWithCommonFont = new java_util_JavaScriptVector(); this.panelConfig = b; this.fonts = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(); this.labelColor = d.getLabelColor_0().create_0(); this.labelGradient = GT1533.prototype.getGradient_1(d.getLabelGradient_0()); var e = Math.div(a.getWidth_0(), 2), f = Math.div(a.getHeight_0(), 2); this.width = b.getComponentWidth_0(); this.height = b.getComponentHeight_0(); this.textHeightSingleLine = this.determineSingleLineHeight_0(); this.settingsContainerModalBg = new GT1437(a, 0, 0, a.getWidth_0(), a.getHeight_0()); new GT1615(this.settingsContainerModalBg, d.getModalOverlayColor_0().create_0()).setAlpha_1(d.getModalOverlayAlpha_0().create_0()); this.settingsContainerModalBtn = new GT1559(this.settingsContainerModalBg, 0, 0, a.getWidth_0(), a.getHeight_0()); this.settingsContainerModalBtn.setActive_1(!1); this.settingsContainerModalBtn.setConsumingMouseEventsWhenInactive_1(!0); this.settingsContainer = new GT1437(this.settingsContainerModalBg, e - Math.div(this.width, 2), f - Math.div(this.height, 2), this.width, this.height); this.addCloseButtonAndTitle_0(); this.hideSounds = "0".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT229.prototype.BUTTON_SOUND_SHOW)) || null == b.getSoundOffButton_0(); this.hideGambling = "0".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT229.prototype.PARAM_PLAYER_CAN_DISABLE_GAMBLE)) || null == b.getGamblingButton_0(); this.hideSwitchLayout = "0".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT229.prototype.BUTTON_SWITCH_LAYOUT_SHOW)); this.hideSounds || this.addSoundButtons_0(); this.hideGambling || this.addGamblingButton_0(); this.hideSwitchLayout || this.addLayoutButtons_0(); this.ensureCommonFont_0(); this.height != this.lastY + b.getSpacerY_0() && ((this.height = this.lastY + b.getSpacerY_0()), this.settingsContainer.resize_2(this.width, this.height)); this.settingsContainerBg = new GT1439( this.settingsContainer, 0, 0, this.width, this.height, 1, d.getPopupRadius_0(), d.getPopupEdges_0(), d.getPopupBgColor_0().create_0(), d.getPopupBorderColor_0().create_0(), d.getPopupBgAlpha_0().create_0(), d.getPopupBorderAlpha_0().create_0() ); this.settingsContainerBg.reorderToPosition_1(0); this.settingsContainerModalBg.hide_1(!0); this.createInfoMessagePanel_1(a); }, createInfoMessagePanel_1: function (a) { var b = Math.div(this.width, 2) + 2 * this.panelConfig.getSpacerX_0(), d = 2 * this.textHeightSingleLine + this.panelConfig.getSpacerY_0(), e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(); this.infoMessageContainer = new GT1437(this.settingsContainerModalBg, Math.div(a.getWidth_0() - b, 2), Math.div(a.getHeight_0() - d, 2), b, d); a = new GT1123( this.infoMessageContainer, this.panelConfig.getSpacerX_0(), Math.div(this.panelConfig.getSpacerY_0(), 2), b - 2 * this.panelConfig.getSpacerX_0(), 2 * this.textHeightSingleLine, this.fonts, this.labelColor ); a.setGradient_1(this.labelGradient); a.setHAlign_1(GT1488.prototype.CENTER); a.setVAlign_1(GT1489.prototype.CENTER); a.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_SETTINGS_LAYOUT_WAITING)); new GT1439( this.infoMessageContainer, 0, 0, this.width, this.height, 1, e.getPopupRadius_0(), e.getPopupEdges_0(), e.getPopupBgColor_0().create_0(), e.getPopupBorderColor_0().create_0(), e.getPopupBgAlpha_0().create_0(), e.getPopupBorderAlpha_0().create_0() ).reorderToPosition_1(0); this.infoMessageContainer.hide_1(!0); }, ensureCommonFont_0: function () { for (var a = 0, b = 0; b < this.textAreasWithCommonFont.size_0(); b++) { var d = this.textAreasWithCommonFont.get_1(b), d = d.getUsedFontIndex_0(); a < d && (a = d); } for (b = 0; b < this.textAreasWithCommonFont.size_0(); b++) (d = this.textAreasWithCommonFont.get_1(b)), d.setFontSearchStartIndex_1(a); }, determineSingleLineHeight_0: function () { var a = this.panelConfig.getPanelCloseButton_0().getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()); return Math.max_2(30, a.getRowHeight_0()); }, addGamblingButton_0: function () { var a = this.panelConfig, b = a.getGamblingButton_0(); if (null != b) { this.lastY += b.getComponentHeight_0() > this.textHeightSingleLine ? Math.div(b.getComponentHeight_0() - this.textHeightSingleLine, 2) : 0; var d = Math.div(this.width - 6 * this.getBorderSpacer_0(), 2), d = new GT1123(this.settingsContainer, this.getBorderSpacer_0(), this.lastY, d, this.textHeightSingleLine, this.fonts, this.labelColor); d.setGradient_1(this.labelGradient); d.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_SETTINGS_GAMBLING)); this.textAreasWithCommonFont.add_1(d); a.getGamblingButton_0().getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()).getColumnWidth_0(); this.getBorderSpacer_0(); a = this.width - this.getBorderSpacer_0() - b.getComponentWidth_0(); b.setComponentX_1(a); this.lastY -= Math.div(b.getComponentHeight_0() - this.textHeightSingleLine, 2); b.setComponentY_1(this.lastY); this.gambling = new GT256(this.settingsContainer, b); this.gambling.getGuiButtonObject_0().removeButtonClickListener_1(this.gambling); this.gambling.getGuiButtonObject_0().addButtonClickListener_1(this); this.gambling.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2); d = new GT1073("hint1"); d.setButtonText_1("?"); d.setShape_1(GT1073.prototype.BUTTON_SHAPE_ROUND); d.setComponentSize_2(b.getComponentHeight_0(), b.getComponentHeight_0()); d.setComponentX_1(a - b.getComponentHeight_0() - this.panelConfig.getSpacerX_0()); d.setComponentY_1(this.lastY); d.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); this.gambleHintButton = new GT413(this.settingsContainer, d); this.gambleHintButton.getGuiButtonObject_0().removeButtonClickListener_1(this.gambleHintButton); this.gambleHintButton.getGuiButtonObject_0().addButtonClickListener_1(this); this.gambleHintButton.hide_1(!0); this.lastY += b.getComponentHeight_0() + this.panelConfig.getSpacerY_0(); } }, addLayoutButtons_0: function () { if (instanceOf(this.panelConfig, GT411)) { var a = this.panelConfig, b = a.getLayoutLeftButton_0(), d = a.getLayoutRightButton_0(); if (null != b || null != d) { var e = new GT1123(this.settingsContainer, this.getBorderSpacer_0(), this.lastY, this.width - 2 * this.getBorderSpacer_0(), this.textHeightSingleLine, this.fonts, this.labelColor); e.setGradient_1(this.labelGradient); e.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_SETTINGS_LAYOUT)); this.textAreasWithCommonFont.add_1(e); this.lastY += this.textHeightSingleLine + 20; var e = a.getSpacerX_0(), f = 0; if (null != b) { var g = a.getLayoutLeftButton_0().getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()), e = this.width - 2 * g.getColumnWidth_0() - 2 * this.getBorderSpacer_0(); b.setComponentX_1(this.getBorderSpacer_0()); f += this.getBorderSpacer_0() + g.getColumnWidth_0(); b.setComponentY_1(this.lastY); b.setComponentSize_2(g.getColumnWidth_0(), g.getRowHeight_0() + a.getSpacerX_0()); this.layoutLeft = new GT413(this.settingsContainer, b); this.layoutLeft.getGuiButtonObject_0().removeButtonClickListener_1(this.layoutLeft); this.layoutLeft.getGuiButtonObject_0().addButtonClickListener_1(this); } null != d && ((g = a.getLayoutRightButton_0().getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0())), d.setComponentX_1(f + e), g.getColumnWidth_0(), d.setComponentY_1(this.lastY), d.setComponentSize_2(g.getColumnWidth_0(), g.getRowHeight_0() + a.getSpacerX_0()), (this.layoutRight = new GT413(this.settingsContainer, d)), this.layoutRight.getGuiButtonObject_0().removeButtonClickListener_1(this.layoutRight), this.layoutRight.getGuiButtonObject_0().addButtonClickListener_1(this), (this.lastY += g.getRowHeight_0() + a.getSpacerX_0() + this.panelConfig.getSpacerY_0())); } } }, addSoundButtons_0: function () { var a = this.panelConfig.getSoundAndMusicButton_0(), b = Integer.truncate_1(0.4 * this.panelConfig.getSpacerY_0()), d = 4 * this.panelConfig.getSpacerX_0(), e = a.getComponentWidth_0(), f = this.width - this.getBorderSpacer_0() - 3 * e - 2 * d; a.setComponentX_1(f); a.setComponentY_1(this.lastY); this.soundAndMusic = new GT413(this.settingsContainer, a); this.soundAndMusic.getGuiButtonObject_0().addButtonClickListener_1(this); var g = Math.div(this.getBorderSpacer_0(), 2), k = new GT1123(this.settingsContainer, f - g, this.lastY + a.getComponentHeight_0(), e + 2 * g, this.textHeightSingleLine + b, this.fonts, this.labelColor); k.setGradient_1(this.labelGradient); k.setHAlign_1(GT1488.prototype.CENTER); k.setVAlign_1(GT1489.prototype.CENTER); k.setText_1(GT1389.prototype.getInstance_0().getText_1(a.getToolTip_0())); GT1389.prototype.setAdaptiveSpacingUsingFactor_2(k, 1.05); var m = this.panelConfig.getSoundOnlyButton_0(), f = this.width - this.getBorderSpacer_0() - 2 * m.getComponentWidth_0() - d; m.setComponentX_1(f); m.setComponentY_1(this.lastY); this.soundOnly = new GT413(this.settingsContainer, m); this.soundOnly.getGuiButtonObject_0().addButtonClickListener_1(this); var n = new GT1123(this.settingsContainer, f - g, this.lastY + m.getComponentHeight_0(), e + 2 * g, this.textHeightSingleLine + b, this.fonts, this.labelColor); n.setGradient_1(this.labelGradient); n.setHAlign_1(GT1488.prototype.CENTER); n.setVAlign_1(GT1489.prototype.CENTER); n.setText_1(GT1389.prototype.getInstance_0().getText_1(m.getToolTip_0())); GT1389.prototype.setAdaptiveSpacingUsingFactor_2(n, 1.05); m = this.panelConfig.getSoundOffButton_0(); f = this.width - this.getBorderSpacer_0() - m.getComponentWidth_0(); m.setComponentX_1(f); m.setComponentY_1(this.lastY); this.soundOff = new GT413(this.settingsContainer, m); this.soundOff.getGuiButtonObject_0().addButtonClickListener_1(this); e = new GT1123(this.settingsContainer, f - g, this.lastY + m.getComponentHeight_0(), e + 2 * g, this.textHeightSingleLine + b, this.fonts, this.labelColor); e.setGradient_1(this.labelGradient); e.setHAlign_1(GT1488.prototype.CENTER); e.setVAlign_1(GT1489.prototype.CENTER); e.setText_1(GT1389.prototype.getInstance_0().getText_1(m.getToolTip_0())); GT1389.prototype.setAdaptiveSpacingUsingFactor_2(e, 1.05); f = Math.max_2(k.getUsedFontIndex_0(), Math.max_2(n.getUsedFontIndex_0(), e.getUsedFontIndex_0())); k.setFontSearchStartIndex_1(f); n.setFontSearchStartIndex_1(f); e.setFontSearchStartIndex_1(f); this.lastY += Math.div(a.getComponentHeight_0() - this.textHeightSingleLine, 2); d = new GT1123(this.settingsContainer, this.getBorderSpacer_0(), this.lastY, this.width - 2 * this.getBorderSpacer_0() - 3 * m.getComponentWidth_0() - 2 * d, this.textHeightSingleLine, this.fonts, this.labelColor); d.setGradient_1(this.labelGradient); d.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_SETTINGS_SOUND)); this.textAreasWithCommonFont.add_1(d); this.lastY += m.getComponentHeight_0() - Math.div(a.getComponentHeight_0() - this.textHeightSingleLine, 2) + this.textHeightSingleLine + b + this.panelConfig.getSpacerY_0(); }, getBorderSpacer_0: function () { return Math.max_2(10, 2 * this.panelConfig.getSpacerX_0()); }, getMaxTextAreaWidth_0: function () { return Math.div(this.width, 2) - this.getBorderSpacer_0(); }, addCloseButtonAndTitle_0: function () { var a = this.panelConfig.getPanelCloseButton_0().getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()), b = this.panelConfig.getPanelCloseButton_0(), d = this.width - a.getColumnWidth_0() - Math.div(3 * this.getBorderSpacer_0(), 2), e = Math.div(this.getBorderSpacer_0(), 2); b.setComponentX_1(d); b.setComponentY_1(e); b.setComponentSize_2(a.getColumnWidth_0() + this.getBorderSpacer_0(), a.getRowHeight_0() + this.getBorderSpacer_0()); b.setSuppressBackground_1(!0); this.closePanel = new GT413(this.settingsContainer, b); this.closePanel.getGuiButtonObject_0().removeButtonClickListener_1(this.closePanel); this.closePanel.getGuiButtonObject_0().addButtonClickListener_1(this); b = a.getRowHeight_0(); b = this.getBorderSpacer_0() + Math.div(b, 2) - Math.div(Integer.truncate_1(1.2 * this.textHeightSingleLine), 2); b = new GT1123(this.settingsContainer, this.getBorderSpacer_0(), b, this.getMaxTextAreaWidth_0(), Integer.truncate_1(1.2 * this.textHeightSingleLine), this.fonts, this.labelColor); b.setGradient_1(this.labelGradient); b.setText_1(GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_SETTINGS_TITLE)); this.lastY = e + a.getRowHeight_0() + this.getBorderSpacer_0(); new GT1440(this.settingsContainer, this.getBorderSpacer_0(), this.lastY, this.width - 2 * this.getBorderSpacer_0(), 2, this.labelColor).setAlpha_1( 2 * GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getPopupBorderAlpha_0().create_0() ); this.lastY += 2 + this.panelConfig.getSpacerY_0(); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.settingsContainer); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.TRIGGERING_EVENT), d = a.getViewData_1(GT1184.prototype.KEEP_DIALOGS_OPEN), e = a.getViewData_1(GT1184.prototype.UPDATE_REASON); null != b && (b.getConsoleComponentKey_0().startsWith_1(GT1607.prototype.MENUITEM_SETTINGS) || (null != d && !d.booleanValue_0() && GT1184.prototype.UR_MODAL_OPEN.equals_1(e) && this.isVisible_0())) && this.toggle_0(); this.settingsContainerModalBg.isHidden_0() || this.preventUpdate || ((b = a.getRules_0().get_1(GT1185.prototype.VDR_SOUNDPLAYER_ACTIVE)), (d = a.getRules_0().get_1(GT1185.prototype.VDR_MUSICPLAYER_ACTIVE)), null != b && null != d && (this.toggleState_2(this.soundAndMusic, b.booleanValue_0() && d.booleanValue_0()), this.toggleState_2(this.soundOnly, b.booleanValue_0() && !d.booleanValue_0()), this.toggleState_2(this.soundOff, !b.booleanValue_0())), (b = GT1389.prototype.getInstance_0().getLayout_0()), (d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_PAYTABLE)), this.toggleState_3(this.layoutLeft, b == GT1533.prototype.LAYOUT_LEFT_HANDED, !d.isActive_0()), this.toggleState_3(this.layoutRight, b == GT1533.prototype.LAYOUT_RIGHT_HANDED, !d.isActive_0()), (d = a.getViewData_1(GT1184.prototype.GAMBLING_DISABLED)), (b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_SETTINGS_DISABLE_GAMBLE)), null != d && null != this.gambling && null != b && (d.booleanValue_0() || b.booleanValue_0()) == this.gambling.isToggled && this.gambling.toggleButton_0(), (a = a.getRules_0().get_1(GT1185.prototype.VDR_VR_COLLECT)), (a = null == a || !(a.isActive_0() || a.isHighlighted_0())), null != this.gambling && (this.gambling.setComponentActive_1(a && !b.booleanValue_0()), this.gambleHintButton.hide_1(a || b.booleanValue_0()))); }, toggleState_2: function (a, b) { this.toggleState_3(a, b, !1); }, toggleState_3: function (a, b, d) { null != a && ((a = a.getGuiButtonObject_0()), b ? (a.setChildForState_2(GT1236.prototype.INACTIVE, 2), a.setActive_1(!1)) : (a.setChildForState_2(GT1236.prototype.INACTIVE, 0), a.setActive_1(!d))); }, toggle_0: function () { this.settingsContainerModalBg.hide_1(!this.settingsContainerModalBg.isHidden_0()); this.settingsContainer.isHidden_0() || this.settingsContainerModalBg.reorder_1(!0); }, hide_0: function () { GT1560.prototype.isAlive_1(this.hint) && (this.hint.destroyObject_0(), (this.hint = null)); this.settingsContainerModalBg.hide_1(!0); }, click_1: function (a) { this.preventUpdate = !1; if (a == this.closePanel.getGuiButtonObject_0()) this.hide_0(), this.closePanel.click_1(a); else if ( (null != this.soundAndMusic && a == this.soundAndMusic.getGuiButtonObject_0()) || (null != this.soundOnly && a == this.soundOnly.getGuiButtonObject_0()) || (null != this.soundOff && a == this.soundOff.getGuiButtonObject_0()) ) { var b = !0, d = !0; a == this.soundOnly.getGuiButtonObject_0() ? (d = !1) : a == this.soundOff.getGuiButtonObject_0() && (d = b = !1); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT654(GT1284.prototype.SOUND_BUTTON_PRESSED, this, this.soundAndMusic.getIdentifier_0(), b, d)); } else a == this.gambling.getGuiButtonObject_0() ? this.gambling.click_1(a) : null != this.layoutLeft && a == this.layoutLeft.getGuiButtonObject_0() ? (this.showInfoPanel_0(), this.layoutLeft.click_1(a)) : null != this.layoutRight && a == this.layoutRight.getGuiButtonObject_0() ? (this.showInfoPanel_0(), this.layoutRight.click_1(a)) : a == this.gambleHintButton.getGuiButtonObject_0() && (GT1560.prototype.isAlive_1(this.hint) || this.showHint_3(this.gambleHintButton.getX_0(), this.gambleHintButton.getY_0() + Math.div(this.gambleHintButton.getHeight_0(), 2), 9)); }, showHint_3: function (a, b, d) { var e = new GT1018("hint-display"), f = new GT817(); f.insets_1(4); f = new GT1125("hint-label", "${neon_settings_disabled_button_hint1}", new GT462(0, 0, 1, 11), f); e.addLabel_1(f); switch (d) { case 0: b -= 350; break; case 3: a += 450; b -= Math.div(350, 2); break; case 6: b += 350; break; case 9: (a -= 450), (b -= Math.div(350, 2)); } b + 350 > this.settingsContainer.getHeight_0() && (b = this.settingsContainer.getHeight_0() - 350); a + 450 > this.settingsContainer.getWidth_0() && (a = this.settingsContainer.getWidth_0() - 450); e.setComponentSize_2(450, 350); e.setComponentX_1(this.settingsContainer.getX_0() + a); e.setComponentY_1(this.settingsContainer.getY_0() + b); d = new GT1073("popup-close", this.panelConfig.getPanelCloseButton_0()); d.setComponentSpacing_1(10); this.hint = new GT498(this.settingsContainer, e, d, this.closePanel.getY_0() + this.closePanel.getHeight_0()); }, showInfoPanel_0: function () { this.preventUpdate = !0; this.settingsContainer.hide_1(!0); this.infoMessageContainer.hide_1(!1); }, setLocation_2: function (a, b) {}, setSize_2: function (a, b) {}, isVisible_0: function () { return !this.settingsContainerModalBg.isHidden_0(); }, }, "GT229", [GT807] ), GT498 = GT751.extend( { initialConstructor_0: function () { this.textInnerContainer = this.displayInnerContainer = this.popupText = this.closeButton = null; this.radius = this.componentHeight = this.componentWidth = this.componentY = this.componentX = 0; this.restricted = this.shadowContainer = this.modalBtn = this.popupTextComponent = null; this.offsetTop = 0; GT751.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.textInnerContainer = this.displayInnerContainer = this.popupText = this.closeButton = null; this.radius = this.componentHeight = this.componentWidth = this.componentY = this.componentX = 0; this.restricted = this.shadowContainer = this.modalBtn = this.popupTextComponent = null; this.offsetTop = 0; GT751.prototype.initialConstructor_2.call(this, a, b); this.componentX = b.getComponentX_0(); this.componentY = b.getComponentY_0(); this.componentWidth = b.getComponentWidth_0(); this.componentHeight = b.getComponentHeight_0(); this.offsetTop = e; this.radius = 0 == b.getCornerRadius_0() ? GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getPopupRadius_0() : b.getCornerRadius_0(); a = b.getLabels_0(); null != a && 0 < a.size_0() && (this.popupText = a.get_1(0).getLabelText_0()); this.closeButton = d; this.createBackground_0(); this.createText_2(this.componentWidth, this.componentHeight); }, createText_2: function (a, b) { var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelColor_0().create_0(), e = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getLabelGradient_0(), f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_LARGE); this.popupTextComponent = new GT1123(this.getTextInnerContainer_0(), 0, 0, this.getTextInnerContainer_0().getWidth_0(), this.getTextInnerContainer_0().getHeight_0(), f, d); null != e && this.popupTextComponent.setGradient_1(e.create_0()); this.popupTextComponent.setInsets_4(15, 15, 5, 5); this.popupTextComponent.setText_1(GT1389.prototype.getInstance_0().getText_1(this.popupText)); this.popupTextComponent.setVAlign_1(GT1489.prototype.CENTER); this.popupTextComponent.setHAlign_1(GT1488.prototype.CENTER); }, createBackground_0: function () { var a = this.getInnerContainer_0().getWidth_0(), b = this.getInnerContainer_0().getHeight_0(), d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(), e = d.getPopupEdges_0(), f = d.getConsoleColorSet_0().getButtonColorSet_1(GT1019.prototype.CCK_DISPLAY), g = f.getActive_0().getBorder_0().create_0(), k = f.getActive_0().getBackground_0().create_0(), f = 255 - f.getActive_0().getBorderAlpha_0(); this.shadowContainer = new GT1437( this.getParent_0().getParent_0(), this.getParent_0().getX_0(), this.getParent_0().getY_0() + this.offsetTop, this.getParent_0().getWidth_0(), this.getParent_0().getHeight_0() - this.offsetTop ); this.restricted = new GT1437(this.getParent_0(), 0, this.offsetTop, this.getParent_0().getWidth_0(), this.getParent_0().getHeight_0() - this.offsetTop); new GT1615(this.restricted, d.getModalOverlayColor_0().create_0()).setAlpha_1(d.getModalOverlayAlpha_0().create_0()); this.modalBtn = new GT1559(this.shadowContainer, 0, 0, this.restricted.getWidth_0(), this.restricted.getHeight_0()); this.modalBtn.setShowHandCursor_1(!1); this.modalBtn.addButtonClickListener_1(this); var d = this.closeButton.getButtonImage_0().create_1(GT1389.prototype.getInstance_0().getResourceManager_0()), m = this.width - d.getColumnWidth_0() - 2 * this.closeButton.getComponentSpacing_0(), n = this.closeButton.getComponentSpacing_0(); this.closeButton.setComponentX_1(m); this.closeButton.setComponentY_1(n); this.closeButton.setComponentSize_2(d.getColumnWidth_0() + this.closeButton.getComponentSpacing_0(), d.getRowHeight_0() + this.closeButton.getComponentSpacing_0()); this.closeButton.setSuppressBackground_1(!0); m = Math.max_2(0, this.componentX - this.getParent_0().getX_0()); n = Math.max_2(0, this.componentY - this.getParent_0().getY_0() - this.offsetTop); a = Math.min_2(a, this.getParent_0().getWidth_0()); b = Math.min_2(b, this.getParent_0().getHeight_0() - this.offsetTop); this.displayInnerContainer = new GT1437(this.shadowContainer, m, n, this.componentWidth, this.componentHeight); new GT1439(this.getDisplayInnerContainer_0(), 0, 0, a, b, 2, this.radius, e, GT1634.prototype.black, GT1634.prototype.black, 0, 222); new GT1439(this.getDisplayInnerContainer_0(), 1, 1, a - 2, b - 2, 2, this.radius, e, k, g, 255, f); this.textInnerContainer = new GT1437(this.displayInnerContainer, d.getColumnWidth_0(), d.getRowHeight_0(), a - 2 * d.getColumnWidth_0(), b - 2 * d.getRowHeight_0()); a = new GT413(this.displayInnerContainer, this.closeButton); a.getGuiButtonObject_0().removeButtonClickListener_1(a); a.getGuiButtonObject_0().addButtonClickListener_1(this); }, getDisplayInnerContainer_0: function () { return this.displayInnerContainer; }, getTextInnerContainer_0: function () { return this.textInnerContainer; }, click_1: function (a) { this.shadowContainer.hide_1(!0); this.destroyObject_0(); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.shadowContainer); GT1560.prototype.destroyIfAlive_1(this.restricted); GT1560.prototype.destroyIfAlive_1(this.modalBtn); GT751.prototype.destroyObject_0.call(this); }, }, "GT498", [GT807] ); GT229.prototype.PARAM_PLAYER_CAN_DISABLE_GAMBLE = "button.settings.gamble.show"; GT229.prototype.BUTTON_SOUND_SHOW = "button.sound.show"; GT229.prototype.BUTTON_SWITCH_LAYOUT_SHOW = "button.switch.layout.show"; var GT304 = GT413.extend( { initialConstructor_0: function () { this.fastIcons = this.spinIcons = null; this.isShowingSpin = this.isShowingFast = this.isShowingCollect = !1; this.spinShape = 0; this.spinButtonHeld = this.showLoader = this.isStartHL = this.isStopHL = this.isCollectHL = !1; this.lastY = this.lastX = this.draggedDistance = 0; this.cycleAnimator = this.loaderIcon = this.loaderContainer = this.collectText = this.startText = this.loaderImage = this.fastIcon = this.spinIcon = null; this.scaleFactorY = this.scaleFactorX = 0; GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.fastIcons = this.spinIcons = null; this.isShowingSpin = this.isShowingFast = this.isShowingCollect = !1; this.spinShape = 0; this.spinButtonHeld = this.showLoader = this.isStartHL = this.isStopHL = this.isCollectHL = !1; this.lastY = this.lastX = this.draggedDistance = 0; this.cycleAnimator = this.loaderIcon = this.loaderContainer = this.collectText = this.startText = this.loaderImage = this.fastIcon = this.spinIcon = null; this.scaleFactorY = this.scaleFactorX = 0; GT413.prototype.initialConstructor_2.call(this, a, b); this.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.isShowingSpin = !0; this.spinShape = b.getShape_0(); this.spinIcon = d; this.fastIcon = e; this.startText = GT1389.prototype.getInstance_0().getText_1(f); this.collectText = GT1389.prototype.getInstance_0().getText_1(g); this.loaderImage = k; this.scaleFactorX = m; this.scaleFactorY = n; this.createSpinIconInButton_1(this.getGuiButtonObject_0()); this.createFastIconInButton_1(this.getGuiButtonObject_0()); this.createLoaderInButton_1(this.getGuiButtonObject_0()); this.activeFromLastViewData = !0; this.setComponentActive_1(!0); this.showDisabledState_0(); this.registerTouchHandler_0(); }, updateUi_1: function (a) { var b = a.getViewData_1(GT1184.prototype.LOADING_IN_PROGRESS); if (null != b) (a = b.booleanValue_0()), a != this.showLoader && ((this.showLoader = a), this.loaderContainer.hide_1(!this.showLoader), this.hideIcon_2(this.spinIcons, this.showLoader), this.getGuiTextObject_0().hide_1(this.showLoader), this.showLoader ? (null == this.cycleAnimator && (this.cycleAnimator = this.createLoadingAnimator_1(this.loaderIcon)), this.cycleAnimator.reset_0(), this.cycleAnimator.start_0()) : null != this.cycleAnimator && this.cycleAnimator.kill_0()); else { var d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_COLLECT), e = a.getRules_0().get_1(GT1185.prototype.VDR_VR_START), f = a.getRules_0().get_1(GT1185.prototype.VDR_VR_STOP), b = null != d && (d.isActive_0() || d.isHighlighted_0()), g = null != f && (f.isActive_0() || f.isHighlighted_0()), k = null != e && (e.isActive_0() || e.isHighlighted_0()), m = a.getRules_0().get_1(GT1185.prototype.VDR_GUISTATE_CONSOLE_ID); null == m && (m = ""); this.activeFromLastViewData = k || b || g; this.setActive_1(this.activeFromLastViewData && this.isActive_0()); var n = "GambleScreenOpen".equals_1(m) || "DecideGamble".equals_1(m); b || (!g && !k && n) ? this.showCollectState_0() : g ? this.showFastState_0() : this.showSpinState_0(); this.isCollectHL = null != d && d.isHighlighted_0(); this.isStopHL = null != f && f.isHighlighted_0(); this.isStartHL = null != e && e.isHighlighted_0(); this.toggleHighlight_1(this.isCollectHL || this.isStartHL || this.isStopHL); "FreeGamesEnd".equals_1(m) && (this.spinButtonHeld = !1); a = a.getViewData_1(GT1184.prototype.TRIGGERING_TIME); this.isActive_0() && this.spinButtonHeld && (GT820.prototype.TRIGGER_TIME_FINISH.equals_1(a) || b) && (GT304.prototype.Log.t_1("UI Neon: SPIN: simulated click in ui update."), this.click_1(null)); } }, createLoadingAnimator_1: function (a) { a = new GT1078(GT1389.prototype.getInstance_0().getTimer_0(), a, 2 * Math.PI, 0, 1e3, !1); a.setUsingShortestWay_1(!1); return new GT1128(GT1389.prototype.getInstance_0().getTimer_0(), a); }, createButton_2: function (a, b) { GT413.prototype.createButton_2.call(this, a, b); this.createSpinIconInButton_1(this.getGuiButtonObject_0()); this.createFastIconInButton_1(this.getGuiButtonObject_0()); this.createLoaderInButton_1(this.getGuiButtonObject_0()); this.applyInternalState_0(); }, unregisterTouchHandler_0: function () { var a = GT1389.prototype.getInstance_0().getSkinManager_0().getEventDispatcher_0(); null != a && a.unregisterHandler_1(this); }, registerTouchHandler_0: function () { var a = GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("ui.neon.fastspin"); if ("0".equals_1(a)) GT304.prototype.Log.t_1("UI Neon: fastspin is disabled"); else for ( var a = GT1389.prototype.getInstance_0().getSkinManager_0().getEventDispatcher_0(), b = [GT1447.prototype.TOUCH_START, GT1447.prototype.TOUCH_MOVE, GT1447.prototype.TOUCH_END, GT1447.prototype.TOUCH_CANCEL], d = 0; d < b.length; d++ ) a.registerHandler_4(b[d], null, this, -Integer.MAX_VALUE); }, createLoaderInButton_1: function (a) { var b = null == this.loaderImage ? null : this.loaderImage.create_1(GT1389.prototype.getInstance_0().getResourceManager_0()); if (null != b) { var d = Integer.truncate_1(b.getWidth_0()), e = Integer.truncate_1(b.getHeight_0()), f = Math.div(a.getWidth_0() - d, 2); a = Math.div(a.getHeight_0() - e, 2); this.loaderContainer = new GT1437(this.getInnerContainer_0(), f, a, d, e); this.loaderIcon = new GT1075(this.loaderContainer, 0, 0, d, e, b, Math.div(d, 2), Math.div(e, 2)); this.loaderIcon.setTranslation_2(Math.div(d, 2), Math.div(e, 2)); this.loaderIcon.setAlpha_1(this.getAlpha_0()); this.loaderContainer.hide_1(!this.showLoader); } }, createSpinIconInButton_1: function (a) { this.spinIcons = new java_util_JavaScriptVector(); this.createIconInButton_4(this.spinIcons, a, this.spinIcon, !0); }, createFastIconInButton_1: function (a) { this.fastIcons = new java_util_JavaScriptVector(); this.createIconInButton_4(this.fastIcons, a, this.fastIcon, !1); }, setColorTransformation_2: function (a, b) { if (!this.supressColorTransformation) { var d = GT1389.prototype .getInstance_0() .getDeviceStrategy_0() .getConsoleTheme_0() .getConsoleColorSet_0() .getButtonColorSet_1(null == this.colorSetKey ? GT1019.prototype.CCK_BUTTON_PRIMARY : this.colorSetKey), e = null; 0 == b ? (e = d.getInactive_0().getColorTransformation_0()) : 1 == b ? (e = d.getActive_0().getColorTransformation_0()) : 2 == b ? (e = d.getHover_0().getColorTransformation_0()) : 3 == b && (e = d.getPressed_0().getColorTransformation_0()); null != e && a.setColorTransformation_1(e.create_0()); } }, createIconInButton_4: function (a, b, d, e) { d = null == d ? null : d.create_1(GT1389.prototype.getInstance_0().getResourceManager_0()); if (null != d) { var f = Integer.truncate_1(d.getWidth_0()), g = Integer.truncate_1(d.getRowHeight_0()); 0 < this.scaleFactorX && 0 < this.scaleFactorY && ((f = Integer.truncate_1(f * this.scaleFactorX)), (g = Integer.truncate_1(g * this.scaleFactorY))); var k = Math.div(b.getWidth_0() - f, 2); !e || (this.spinShape != GT1073.prototype.BUTTON_SHAPE_RECT && this.spinShape != GT1073.prototype.BUTTON_SHAPE_ROUND_RECT) || ((g = d.getColumnWidth_0() / d.getRowHeight_0()), (f = Integer.truncate_1(this.getInnerContainer_0().getWidth_0() / 4)), (g = Integer.truncate_1(f / g)), (k = Math.div(f, 2))); for (e = 0; e < b.getChildCount_0(); e++) { var m = new GT1591(b.getChild_1(e), k, Math.div(b.getHeight_0(), 2) - Math.div(g, 2), f, g, d, 0, 0, !1); m.setAlpha_1(this.getAlpha_0()); this.setColorTransformation_2(m, e); a.addElement_1(m); } } }, hideIcon_2: function (a, b) { if (null != a) for (var d = 0; d < a.size_0(); d++) { var e = a.get_1(d); GT1560.prototype.isAlive_1(e) && e.hide_1(b); } }, showSpinState_0: function () { this.isShowingFast = this.isShowingCollect = !1; this.isShowingSpin = !0; this.hideIcon_2(this.spinIcons, this.showLoader); this.hideIcon_2(this.fastIcons, !0); GT1560.prototype.isAlive_1(this.getGuiTextObject_0()) && this.modifyTextForSpinState_0(); }, modifyTextForSpinState_0: function () { this.getGuiTextObject_0().setText_1(null); if (this.spinShape == GT1073.prototype.BUTTON_SHAPE_ROUND) this.getGuiTextObject_0().setInsets_4(70, 70, 100, 100); else { var a = this.spinIcons.get_1(0); this.getGuiTextObject_0().setInsets_4(a.getX_0() + a.getWidth_0() + 5, 15, 15, 15); } this.getGuiTextObject_0().setText_1(this.startText); this.getGuiTextObject_0().hide_1(this.showLoader); }, showFastState_0: function () { this.isShowingCollect = !1; this.isShowingFast = !0; this.isShowingSpin = !1; this.hideIcon_2(this.spinIcons, !0); this.hideIcon_2(this.fastIcons, !1); GT1560.prototype.isAlive_1(this.getGuiTextObject_0()) && this.getGuiTextObject_0().hide_1(!0); }, showCollectState_0: function () { this.isShowingCollect = !0; this.isShowingSpin = this.isShowingFast = !1; this.hideIcon_2(this.spinIcons, !0); this.hideIcon_2(this.fastIcons, !0); GT1560.prototype.isAlive_1(this.getGuiTextObject_0()) && (this.getGuiTextObject_0().hide_1(!1), this.getGuiTextObject_0().setText_1(null), this.getGuiTextObject_0().setInsets_4(20, 20, 15, 15), this.getGuiTextObject_0().setText_1(this.collectText)); }, showDisabledState_0: function () { this.hideIcon_2(this.spinIcons, !1); this.hideIcon_2(this.fastIcons, !0); GT1560.prototype.isAlive_1(this.getGuiTextObject_0()) && (this.getGuiTextObject_0().hide_1(!1), this.getGuiTextObject_0().setText_1(null), this.getGuiTextObject_0().setInsets_4(Integer.truncate_1(0.3 * this.getInnerContainer_0().getWidth_0()), 5, 15, 15)); }, applyInternalState_0: function () { this.isShowingCollect ? this.showCollectState_0() : this.isShowingFast ? this.showFastState_0() : this.isShowingSpin && this.showSpinState_0(); }, createText_2: function (a, b) { var d = null, e = !1; null != this.getGuiTextObject_0() && ((d = this.getGuiTextObject_0().getText_0()), (e = this.getGuiTextObject_0().isHidden_0())); var f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getPrimaryButtonGradient_0().create_0(); GT413.prototype.createText_2.call(this, a, b); this.getGuiTextObject_0().setText_1(null); this.getGuiTextObject_0().setGradient_1(f); this.getGuiTextObject_0().setBreakLines_1(!1); this.isShowingSpin ? this.modifyTextForSpinState_0() : (this.getGuiTextObject_0().setText_1(d), this.getGuiTextObject_0().hide_1(e)); }, click_1: function (a) { a = this.getClickIdentifier_0() + (this.isShowingCollect ? "#collect" : this.isShowingFast ? "#fast" : ""); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.START_BUTTON_PRESSED, this, a)); }, setAlpha_1: function (a) { GT413.prototype.setAlpha_1.call(this, a); this.setAlphaForButton_2(a, this.getGuiButtonObject_0()); }, setAlphaForButton_2: function (a, b) { if (GT1560.prototype.isAlive_1(b)) for (var d = 0; d < b.getChildCount_0(); d++) instanceOf(b.getChild_1(d), GT1480) && b.getChild_1(d).setAlpha_1(a); }, setComponentActive_1: function (a) { GT413.prototype.setComponentActive_1.call(this, a); this.toggleHighlight_1(this.isCollectHL || this.isStartHL || this.isStopHL); }, setIsForPlaceholder_1: function (a) { GT413.prototype.setIsForPlaceholder_1.call(this, a); this.notifyLayoutAreaEnter_0(); a.getIsShowingCollect_0() ? this.showCollectState_0() : a.getIsShowingFast_0() ? this.showFastState_0() : a.getIsShowingSpin_0() && this.showSpinState_0(); }, getIsShowingCollect_0: function () { return this.isShowingCollect; }, getIsShowingFast_0: function () { return this.isShowingFast; }, getIsShowingSpin_0: function () { return this.isShowingSpin; }, handleTouchEvent_1: function (a) { if (this.hidden || null == this.getParent_0()) return GT1389.prototype.getInstance_0().getTimer_0().removeCallback_2(this, !1), (this.spinButtonHeld = !1); for (var b = this.getDepth_0(), d = this.getParent_0(), e = !1; b < d.getChildCount_0(); b++) { var f = d.getChild_1(b); f.isHidden_0() || (f.contains_2(a.getX_0(), a.getY_0()) && (e = f == this)); } if (!e) return GT1389.prototype.getInstance_0().getTimer_0().removeCallback_2(this, !1), (this.spinButtonHeld = !1); if (null != a && ((GT1447.prototype.TOUCH_START == a.getId_0() && this.isAbsPositionInside_2(a.getX_0(), a.getY_0())) || GT1447.prototype.TOUCH_START != a.getId_0())) { if (GT1447.prototype.TOUCH_START == a.getId_0()) this.draggedDistance = 0; else if ( GT1447.prototype.TOUCH_MOVE == a.getId_0() && this.spinButtonHeld && ((this.draggedDistance += Integer.truncate_1(Math.round_1(Math.abs_1(Math.sqrt_1(Math.pow_2(this.lastX - a.getX_0(), 2) + Math.pow_2(this.lastY - a.getY_0(), 2)))))), this.draggedDistance < GT304.prototype.TOUCH_MOVE_THRESHOLD) ) return !1; (this.spinButtonHeld = GT1447.prototype.TOUCH_START == a.getId_0()) ? ((this.lastX = a.getX_0()), (this.lastY = a.getY_0()), GT1389.prototype.getInstance_0().getTimer_0().triggerCallbackAfter_2(this, GT304.prototype.TOUCH_DELAY), GT304.prototype.Log.t_1("UI Neon: SPIN: registering handler for touch hold.")) : GT1447.prototype.TOUCH_MOVE != a.getId_0() && (GT1389.prototype.getInstance_0().getTimer_0().removeCallback_2(this, !1), GT304.prototype.Log.t_1("UI Neon: SPIN: 'touch hold' handler removed (not TOUCH_MOVE event received).")); } return !1; }, run_0: function () { this.spinButtonHeld && this.isActive_0() && (GT304.prototype.Log.t_1("UI Neon: SPIN: simulated click from 'touch hold' handler."), this.click_1(null)); }, destroyObject_0: function () { this.unregisterTouchHandler_0(); GT413.prototype.destroyObject_0.call(this); }, }, "GT304", [GT1012, Runnable] ); GT304.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT304.prototype.TOUCH_DELAY = 400; GT304.prototype.TOUCH_MOVE_THRESHOLD = 40; var GT256 = GT413.extend( { initialConstructor_0: function () { this.toggledButton = null; this.isToggled = !1; this.toggledText = this.toggledImage = null; this.my_active = !1; this.toggledIdSuffix = this.toggledColorSetKey = null; this.toggledImageOffset = this.toggledImagePosition = 0; this.toggledTextAttributes = null; GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT256.prototype.initialConstructor_3.call(this, a, b, GT1607.prototype.TOGGLE_DEFAULT_SUFFIX); }, initialConstructor_3: function (a, b, d) { this.toggledButton = null; this.isToggled = !1; this.toggledText = this.toggledImage = null; this.my_active = !1; this.toggledIdSuffix = this.toggledColorSetKey = null; this.toggledImageOffset = this.toggledImagePosition = 0; this.toggledTextAttributes = null; GT413.prototype.initialConstructor_2.call(this, a, b); this.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.toggledIdSuffix = d; this.isToggled = !1; this.swapImageAndText_1(b); b.setClickIdentifier_1(this.getClickIdentifier_0() + d); this.toggledButton = new GT413(a, b); GT413.prototype.hide_1.call(this, this.isToggled); this.toggledButton.hide_1(!this.isToggled); this.toggledButton.getGuiButtonObject_0().removeButtonClickListener_1(this.toggledButton); this.toggledButton.getGuiButtonObject_0().addButtonClickListener_1(this); this.toggledButton.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.setComponentActive_1(!0); this.swapImageAndText_1(b); }, swapImageAndText_1: function (a) { this.toggledImage = a.getToggledButtonImage_0(); this.toggledImagePosition = a.getToggledImagePosition_0(); this.toggledImageOffset = a.getToggledImageOffset_0(); this.toggledText = a.getToggledButtonText_0(); this.toggledTextAttributes = a.getToggledTextAttributes_0(); this.toggledColorSetKey = a.getColorSetKey_0().equals_1(GT1019.prototype.CCK_BUTTON_PRIMARY) ? GT1019.prototype.CCK_BUTTON_DEFAULT : GT1019.prototype.CCK_BUTTON_PRIMARY; a.setToggledButtonImage_1(a.getButtonImage_0()); a.setToggledImagePosition_1(a.getImagePosition_0()); a.setToggledImageOffset_1(a.getImageOffset_0()); a.setToggledButtonText_1(a.getButtonText_0()); a.setToggledTextAttributes_1(a.getTextAttributes_0()); a.setButtonImage_1(this.toggledImage); a.setImagePosition_1(this.toggledImagePosition); a.setImageOffset_1(this.toggledImageOffset); a.setButtonText_1(this.toggledText); a.setTextAttributes_1(this.toggledTextAttributes); a.setColorSetKey_1(this.toggledColorSetKey); }, click_1: function (a) { a = this.isToggled ? this.toggledButton.getClickIdentifier_0() : this.getClickIdentifier_0(); this.toggleButton_0(); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.GENERIC_CONSOLE_EVENT, this, a)); }, toggleButton_0: function () { this.isToggled = !this.isToggled; this.hide_1(this.isToggled); this.toggledButton.hide_1(!this.isToggled); }, setLocation_2: function (a, b) { GT413.prototype.setLocation_2.call(this, a, b); this.toggledButton.setLocation_2(a, b); this.toggledButton.getGuiButtonObject_0().removeButtonClickListener_1(this); this.toggledButton.getGuiButtonObject_0().addButtonClickListener_1(this); }, notifyDragStart_0: function () { this.isToggled ? this.toggledButton.notifyDragStart_0() : GT413.prototype.notifyDragStart_0.call(this); }, handleDragStartAnimationFinished_0: function () { this.isToggled ? this.toggledButton.handleDragStartAnimationFinished_0() : GT413.prototype.handleDragStartAnimationFinished_0.call(this); }, setIsForPlaceholder_1: function (a) { instanceOf(a, GT256) && ((this.isToggled = a.isToggled) ? (this.toggledButton.setIsForPlaceholder_1(a), this.toggledButton.getGuiTextObject_0().setText_1(a.toggledButton.getGuiTextObject_0().getText_0()), this.hide_1(this.isToggled), this.toggledButton.hide_1(!this.isToggled)) : GT413.prototype.setIsForPlaceholder_1.call(this, a)); }, setSize_2: function (a, b) { this.isToggled ? GT413.prototype.setSize_2.call(this, a, b) : this.toggledButton.setSize_2(a, b); }, setComponentActive_1: function (a) { this.my_active = a; GT413.prototype.setComponentActive_1.call(this, this.my_active); this.toggledButton.setComponentActive_1(this.my_active); }, destroyObject_0: function () { this.toggledButton.destroyObject_0(); GT413.prototype.destroyObject_0.call(this); }, setAlpha_1: function (a) { GT413.prototype.setAlpha_1.call(this, a); this.toggledButton.setAlpha_1(a); }, setActive_1: function (a) { GT413.prototype.setActive_1.call(this, a); this.toggledButton.setActive_1(a); }, getToggledText_0: function () { return GT1389.prototype.getInstance_0().getText_1(this.toggledText); }, toggleHighlight_1: function (a) { GT413.prototype.toggleHighlight_1.call(this, a); this.toggledButton.toggleHighlight_1(a); }, }, "GT256", [] ), GT92 = GT304.extend( { initialConstructor_0: function () { this.undockedButton = null; this.isUndocked = !1; this.lastValidViewData = null; this.undockedHeight = this.undockedWidth = 0; GT304.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.undockedButton = null; this.isUndocked = !1; this.lastValidViewData = null; this.undockedHeight = this.undockedWidth = 0; GT304.prototype.initialConstructor_9.call(this, a, b, b.getSpinIcon_0(), b.getFastIcon_0(), b.getStartText_0(), b.getCollectText_0(), b.getLoaderImage_0(), b.getIconScaleFactorX_0(), b.getIconScaleFactorY_0()); this.undockedWidth = b.getUndockedWidth_0(); this.undockedHeight = b.getUndockedHeight_0(); b.getStartupState_0() == GT487.prototype.TRANSFORMED && (this.isUndocked = !0); this.createUndockedButton_1(b); this.isUndocked ? this.notifyLayoutAreaLeave_0() : this.undockedButton.hide_1(!0); }, createButton_2: function (a, b) { GT304.prototype.createButton_2.call(this, a, b); null != this.undockedButton && (this.undockedButton.createButton_2(this.undockedWidth, this.undockedHeight), this.undockedButton.setActive_1(this.isActive_0())); this.getGuiButtonObject_0().setActive_1(this.isActive_0()); }, updateUi_1: function (a) { GT304.prototype.updateUi_1.call(this, a); this.undockedButton.updateUi_1(a); this.lastValidViewData = a; }, createUndockedButton_1: function (a) { null != this.undockedButton && this.undockedButton.destroyObject_0(); var b = new GT1073(a.getName_0().concat_1("#undocked"), a); b.setComponentSize_2(a.getUndockedWidth_0(), a.getUndockedHeight_0()); b.setShape_1(GT1073.prototype.BUTTON_SHAPE_ROUND); this.undockedButton = new GT304(this.getParent_0(), b, a.getSpinIcon_0(), a.getFastIcon_0(), a.getStartText_0(), a.getCollectText_0(), a.getLoaderImage_0(), a.getIconScaleFactorX_0(), a.getIconScaleFactorY_0()); }, destroyObject_0: function () { null != this.undockedButton && this.undockedButton.destroyObject_0(); GT304.prototype.destroyObject_0.call(this); }, setLocation_2: function (a, b) { GT304.prototype.setLocation_2.call(this, a, b); this.undockedButton.setLocation_2(a, b); }, notifyLayoutAreaLeave_0: function () { GT92.prototype.Log.t_1("UI Neon: SPIN: notifyLayoutAreaLeave"); (this.isUndocked = !0), this.undockedButton.notifyLayoutAreaLeave_0(); this.hide_1(this.isUndocked); this.undockedButton.hide_1(!this.isUndocked); this.undockedButton.applyInternalState_0(); this.isDragging_0() && this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2); }, notifyLayoutAreaEnter_0: function () { GT92.prototype.Log.t_1("UI Neon: SPIN: notifyLayoutAreaEnter"); (this.isUndocked = !1), GT304.prototype.notifyLayoutAreaEnter_0.call(this); this.hide_1(this.isUndocked); this.undockedButton.hide_1(!this.isUndocked); this.applyInternalState_0(); this.setComponentActive_1(this.undockedButton.isActive_0()); }, handleDragStartAnimationFinished_0: function () { this.isUndocked ? this.undockedButton.handleDragStartAnimationFinished_0() : GT304.prototype.handleDragStartAnimationFinished_0.call(this); }, setComponentActive_1: function (a) { GT304.prototype.setComponentActive_1.call(this, a); null != this.undockedButton && this.undockedButton.setComponentActive_1(a); }, notifyDragStart_0: function () { GT304.prototype.notifyDragStart_0.call(this); null != this.undockedButton && this.undockedButton.notifyDragStart_0(); }, notifyDragEnd_0: function () { GT304.prototype.notifyDragEnd_0.call(this); null != this.undockedButton && (this.undockedButton.notifyDragEnd_0(), this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1)); }, setIsForPlaceholder_1: function (a) { this.isUndocked ? null != this.undockedButton && this.undockedButton.setIsForPlaceholder_1(a) : GT304.prototype.setIsForPlaceholder_1.call(this, a); null != a.getLastValidViewData_0() && this.updateUi_1(a.getLastValidViewData_0()); }, getLastValidViewData_0: function () { return this.lastValidViewData; }, setActive_1: function (a) { this.isUndocked ? null != this.undockedButton && this.undockedButton.setActive_1(a) : GT304.prototype.setActive_1.call(this, a); }, setSize_2: function (a, b) { this.isUndocked ? this.undockedButton.setSize_2(a, b) : GT304.prototype.setSize_2.call(this, a, b); }, drawMask_1: function (a) { this.isUndocked ? this.undockedButton.drawMask_1(a) : GT304.prototype.drawMask_1.call(this, a); }, getDragArea_0: function () { var a, b, d = this.getX_0(), e = this.getY_0(); this.isUndocked ? ((a = this.undockedWidth), (b = this.undockedHeight)) : ((a = this.width), (b = this.height)); return new GT1124([d, e, d + a, e, d + a, e + b, d, e + b]); }, }, "GT92", [] ); GT92.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); var GT1533 = Class.extend( { initialConstructor_0: function () { this.consoleTheme = this.createdComponents = null; this.maxNumberOfLines = this.numberOfLineRows = this.numberOfLineColumns = this.maxNumberOfBets = this.numberOfBetRows = this.numberOfBetColumns = 0; this.gameClientDisableGamble = this.lineSettingsChangeable = this.betChangesGameMode = this.layouted = !1; this.layout = 0; this.viewDataTransformer = this.factory = this.coreArea = this.contentArea = this.topContainer = this.betInfoType = this.lineLabel = this.valueTextMap = this.lastValueText = null; this.valueCountActive = !1; this.bottomBarOffset = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.consoleTheme = this.createdComponents = null; this.maxNumberOfLines = this.numberOfLineRows = this.numberOfLineColumns = this.maxNumberOfBets = this.numberOfBetRows = this.numberOfBetColumns = 0; this.gameClientDisableGamble = this.lineSettingsChangeable = this.betChangesGameMode = this.layouted = !1; this.layout = 0; this.viewDataTransformer = this.factory = this.coreArea = this.contentArea = this.topContainer = this.betInfoType = this.lineLabel = this.valueTextMap = this.lastValueText = null; this.valueCountActive = !1; this.bottomBarOffset = 0; this.createdComponents = new java_util_JavaScriptHashtable(); this.consoleTheme = a; this.lineSettingsChangeable = !0; }, createLayout_4: function (a, b, d, e) { GT1533.prototype.Log.t_1("UI Neon: creating layout..."); this.layout = e; e = new GT1553(); if (null == this.contentArea || (this.contentArea.x == e.x && this.contentArea.y == e.y && this.contentArea.width == e.width && this.contentArea.height == e.height)) this.contentArea = b; this.coreArea = d; this.factory = a; this.topContainer = this.createLayoutFromConsoleComponents_0(); this.layouted = null != a; return this.topContainer; }, getFonts_1: function (a) { return this.consoleTheme.getConsoleFont_0().getFonts_1(a); }, restoreLayoutFromJSON_1: function (a) { a = GT1678.prototype.deserializeObject_1(a); if (null != a) { for (var b = a.keys_0(); b.hasMoreElements_0(); ) { var d = b.nextElement_0(), e = a.get_1(d), d = this.createdComponents.get_1(d); if (null != e) { var f = e.get_1("parentName"); if (null != f && !f.equals_1(d.getParent_0().getName_0())) { var g = d.getParent_0(), f = this.createdComponents.get_1(f); g.removeComponent_1(d); f.addComponent_1(d); } g = e.get_1("x"); f = e.get_1("y"); null != g && d.setComponentX_1(Integer.truncate_1(g.doubleValue_0())); null != f && d.setComponentY_1(Integer.truncate_1(f.doubleValue_0())); e = e.get_1("order"); null != e && d.setOrder_1(Integer.truncate_1(e.doubleValue_0())); } } for (a = this.createdComponents.keys_0(); a.hasMoreElements_0(); ) (b = this.createdComponents.get_1(a.nextElement_0())), instanceOf(b, GT797) && b.requestLayout_0(); } }, getConsoleTheme_0: function () { return this.consoleTheme; }, getLayout_0: function () { return this.layout; }, setLineSettingsChangeable_1: function (a) { this.preventSettingIfLayouted_0(); this.lineSettingsChangeable = a; }, isLineSettingsChangeable_0: function () { return this.lineSettingsChangeable; }, setGameClientDisableGamble_1: function (a) { this.preventSettingIfLayouted_0(); this.gameClientDisableGamble = a; }, isGameClientDisableGamble_0: function () { return this.gameClientDisableGamble; }, setBetSettingsChangeGameMode_1: function (a) { this.preventSettingIfLayouted_0(); this.betChangesGameMode = a; }, isBetSettingsChangeGameMode_0: function () { return this.betChangesGameMode; }, loadResources_0: function () { GT1533.prototype.Log.t_1("UI Neon: start loading resources..."); for (var a = this.consoleTheme.getConsoleFont_0().getFontConfigs_0(), b = 0; b < a.length; b++) { var d = a[b]; GT1533.prototype.Log.trace && GT1533.prototype.Log.t_1("UI Neon: start loading font " + d.getName_0() + " with bold=" + d.isBold_0() + " italic=" + d.isItalic_0()); GT1389.prototype.getInstance_0().getResourceManager_0().startLoadFont_3(d.getName_0(), d.isBold_0(), d.isItalic_0()); } b = this.createLayout_4(null, new GT1553(), new GT1553(), GT1533.prototype.LAYOUT_STANDARD); d = new java_util_JavaScriptVector(); a = new java_util_JavaScriptVector(); this.getAssets_3(b, d, a); GT1533.prototype.Log.t_1("UI Neon: start loading images"); for (b = 0; b < d.size_0(); b++) { var e = d.get_1(b); null != e && e.load_1(GT1389.prototype.getInstance_0().getResourceManager_0()); } GT1533.prototype.Log.t_1("UI Neon: start loading sounds"); for (b = 0; b < a.size_0(); b++) (d = a.get_1(b)), null != d && d.load_1(GT1389.prototype.getInstance_0().getSkinManager_0()); GT1533.prototype.Log.t_1("UI Neon: starting resource loading for all resources finished."); }, getAssets_3: function (a, b, d) { this.vectorCopy_2(a.getImageResources_0(), b); this.vectorCopy_2(a.getSoundResources_0(), d); if (instanceOf(a, GT461)) { a = a.getChildren_0(); for (var e = 0; e < a.size_0(); e++) this.getAssets_3(a.get_1(e), b, d); } }, setBetInfoType_1: function (a) { this.preventSettingIfLayouted_0(); GT1650.prototype.assertExp_2(GT1533.prototype.INFO_BASE_BET.equals_1(a) || GT1533.prototype.INFO_BET_PER_LINE.equals_1(a) || GT1533.prototype.INFO_HIDDEN.equals_1(a), "Invalid argument."); this.betInfoType = a; return this; }, setLineLabel_1: function (a) { this.preventSettingIfLayouted_0(); this.lineLabel = a; return this; }, setLineLastValueText_1: function (a) { this.preventSettingIfLayouted_0(); this.lastValueText = a; return this; }, setLineValueText_2: function (a, b) { this.preventSettingIfLayouted_0(); GT1650.prototype.assertExp_2(null != a && null != b, "Invalid argument. Neither value nor text can be null."); null == this.valueTextMap && (this.valueTextMap = new java_util_JavaScriptHashtable()); this.valueTextMap.put_2(a, b); return this; }, setValueCountActive_1: function (a) { this.valueCountActive = a; return this; }, isValueCountActive_0: function () { return this.valueCountActive; }, setNumberOfBetColumns_1: function (a) { this.preventSettingIfLayouted_0(); this.numberOfBetColumns = a; return this; }, setNumberOfBetRows_1: function (a) { this.preventSettingIfLayouted_0(); this.numberOfBetRows = a; return this; }, setMaxNumberOfBets_1: function (a) { this.preventSettingIfLayouted_0(); this.maxNumberOfBets = a; return this; }, setNumberOfLineColumns_1: function (a) { this.preventSettingIfLayouted_0(); this.numberOfLineColumns = a; return this; }, setNumberOfLineRows_1: function (a) { this.preventSettingIfLayouted_0(); this.numberOfLineRows = a; return this; }, setMaxNumberOfLines_1: function (a) { this.preventSettingIfLayouted_0(); this.maxNumberOfLines = a; return this; }, preventSettingIfLayouted_0: function () { GT1650.prototype.assertExp_2(0 == this.layouted, "Cannot change parameters after the layout is created"); }, getNumberOfBetColumns_0: function () { return this.numberOfBetColumns; }, getNumberOfBetRows_0: function () { return this.numberOfBetRows; }, getMaxNumberOfBets_0: function () { return this.maxNumberOfBets; }, getNumberOfLineColumns_0: function () { return this.numberOfLineColumns; }, getNumberOfLineRows_0: function () { return this.numberOfLineRows; }, getMaxNumberOfLines_0: function () { return this.maxNumberOfLines; }, setContentArea_1: function (a) { this.preventSettingIfLayouted_0(); this.contentArea = a; return this; }, getConsoleTopGUIContainer_0: function () { return null == this.topContainer || null == this.topContainer.getObject_0() ? null : this.topContainer.getObject_0().getGUIObject_0(); }, getConsoleComponentByName_1: function (a) { return null == this.topContainer ? null : this.topContainer.getComponentByName_1(a); }, setBottomBarOffset_1: function (a) { this.bottomBarOffset = a; return this; }, getBottomBarOffset_0: function () { return this.bottomBarOffset; }, setViewDataTransformer_1: function (a) { this.viewDataTransformer = a; return this; }, getViewDataTransformer_0: function () { return this.viewDataTransformer; }, }, "GT1533", [] ); GT1533.prototype.hashtableDefCopy_1 = function (a) { GT1650.prototype.assertExp_2(null != a, "Parameter cannot be null"); return null == a ? null : a.clone_0(); }; GT1533.prototype.vectorCopy_2 = function (a, b) { GT1650.prototype.assertExp_2(null != b, "Parameter cannot be null"); if (null != a) for (var d = 0; d < a.size_0(); d++) b.addElement_1(a.get_1(d)); }; GT1533.prototype.getGradient_1 = function (a) { return null != a ? a.create_0() : null; }; GT1533.prototype.Log = GT1650.prototype.getLogFlags_1(GT1389.prototype.LOGGER_KEY); GT1533.prototype.LAYOUT_CUSTOM = 0; GT1533.prototype.LAYOUT_STANDARD = 1; GT1533.prototype.LAYOUT_LEFT_HANDED = 2; GT1533.prototype.LAYOUT_RIGHT_HANDED = 3; GT1533.prototype.INFO_BET_PER_LINE = "BPL"; GT1533.prototype.INFO_BASE_BET = "BBT"; GT1533.prototype.INFO_HIDDEN = "HID"; GT1533.prototype.INFO_TOTAL_BET = "TTB"; var GT1367 = GT1533.extend( { initialConstructor_0: function () { this.radius = 0; GT1533.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.radius = 0; GT1533.prototype.initialConstructor_1.call(this, a); this.setNumberOfBetRows_1(5); this.setNumberOfBetColumns_1(5); this.setMaxNumberOfBets_1(25); this.setNumberOfLineRows_1(5); this.setNumberOfLineColumns_1(5); this.setMaxNumberOfLines_1(25); }, createLayoutFromConsoleComponents_0: function () { var a = this.getTopContainer_0(), b = this.getBottomBar_0(); this.assembleComponents_2(a, b); this.addOverlayBar_1(a); b.requestLayout_0(); return a; }, getTopContainer_0: function () { var a = new GT797(GT1607.prototype.TOPCONTAINER, this.factory); a.setComponentX_1(0).setComponentY_1(0).setComponentSize_2(2048, 1024); return a; }, makeCreditsAndWinDisplay_0: function () { var a = new GT388(GT1607.prototype.CREDIT_WIN_BUTTON); a.setPagingBackButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/payt-arrow-left.png")) .setPagingNextButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/payt-arrow-right.png")) .setCloseButtonImage_1(this.getCloseIcon_0()); var b = new GT462(0, 0, 1, 0.35); a.setStatusTextLocSizeAttributes_1(b); a.setWinAnimationSound_1(GT1396.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/sounds/wincountstop.mp3")); return a; }, makeLineButton_0: function () { var a = new GT446(GT1607.prototype.LINES), b = new GT1073(GT1607.prototype.LINEMENU_LINE); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_BET_VALUE); b.setTextAttributes_1(new GT817().insets_2(0, 4)); var d = new GT1073(GT1607.prototype.LINEMENU_CLOSE); d.setButtonImage_1(this.getCloseIcon_0()).setSuppressBackground_1(!0); a.setGridButtonTemplate_1(b) .setPanelCloseButton_1(d) .setButtonImagePagingNext_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/line-paging-next.png")) .setButtonImagePagingBack_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/line-paging-back.png")); a.setGridButtonRows_1(this.getNumberOfLineRows_0()).setGridButtonCols_1(this.getNumberOfLineColumns_0()).setMaxNumberOfGridButtons_1(this.getMaxNumberOfLines_0()); a.setButtonText_1(null != this.lineLabel ? this.lineLabel : GT1607.prototype.TT_LINES); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM); a.setLastValueText_1(this.lastValueText); a.setValueTextMap_1(this.valueTextMap); a.setBetInfoType_1(this.betInfoType); return a; }, makeExtraBetButton_0: function () { var a = new GT786(GT1607.prototype.EXTRABET); a.setButtonImage_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/extrabet-off.png")).setImagePosition_1(GT1073.prototype.IMAGE_BOTTOM); a.setToggledButtonImage_1(GT1390.prototype.set_0().file_1("/com/greentube/gameconsole/res/neon/extrabet-on.png")).setToggledImagePosition_1(GT1073.prototype.IMAGE_BOTTOM); var b = new GT817().insets_4(10, 10, 20, 50).breakLines_1(!0); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM).setTextAttributes_1(b).setButtonText_1(GT1607.prototype.TT_EXTRA_BET); a.setToggledTextAttributes_1(b).setToggledButtonText_1(GT1607.prototype.TT_EXTRA_BET); return a; }, makePaytableButton_0: function () { var a = new GT1073(GT1607.prototype.PAYTABLE); a.setButtonText_1(GT1607.prototype.TT_PAYTABLE_SHORT); a.setOrder_1(1).setResizePriority_1(3); a.setClickIdentifier_1(GT1607.prototype.MENUITEM_PAYTABLE); a.setViewDataRule_1(GT1185.prototype.VDR_VR_PAYTABLE); return a; }, isShowPaytableButton_0: function () { var a = GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON); return null != a && !"0".equals_1(a); }, getPaytableButtonReplacee_0: function () { var a = GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON); return null == a || "0".equals_1(a) || "1!".equals_1(a) ? null : "1".equals_1(a) ? GT1607.prototype.LINES : a; }, replacePaytableButtonReplacee_3: function (a, b, d) { if (null != a) { var e = this.getPaytableButtonReplacee_0(); d = null == e ? null : d.getComponentByName_1(e); e = !1; null == d ? (d = b) : (e = !0); a.setOrder_1(d.getOrder_0()); a.setComponentX_1(d.getComponentX_0()); a.setComponentY_1(d.getComponentY_0()); b = d.getParent_0(); null != b && (e && b.removeComponent_1(d), b.addComponent_1(a)); } }, getDeviceSpecificAssetPathPrefix_0: function () { return "/com/greentube/gameconsole/res"; }, getPImageTiled14_1: function (a) { return GT1390.prototype.set_0().file_1(a).tiling_2(1, 4); }, getBetButtonTemplate_3: function (a, b, d) { var e = new GT1073(GT1607.prototype.BETMENU_BET); e.setCornerRadius_1(this.radius); e.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_BET_VALUE); e.setComponentSize_2(a, b); e.setButtonStateHoverOmitted_1(d); return e; }, getPanelCloseButton_0: function () { var a = new GT1073(GT1607.prototype.BETMENU_CLOSE); a.setButtonImage_1(this.getCloseIcon_0()).setSuppressBackground_1(!0); return a; }, getBetButtonWithId_10: function (a, b, d, e, f, g, k, m, n, p) { a = new GT959(a); a.setComponentSize_2(b, d); a.setUndockedWidth_1(e); a.setUndockedHeight_1(f); b = this.getBetButtonTemplate_3(g, k, m); d = this.getPanelCloseButton_0(); a.setGridButtonTemplate_1(b).setPanelCloseButton_1(d); a.setGridButtonRows_1(this.getNumberOfBetRows_0()).setGridButtonCols_1(this.getNumberOfBetColumns_0()).setMaxNumberOfGridButtons_1(this.getMaxNumberOfBets_0()); a.setSpacerX_1(n).setSpacerY_1(p); a.setBetInfoType_1(this.betInfoType); return a; }, getSettingsGamblingButton_5: function (a, b, d, e, f) { var g = new GT786(GT1607.prototype.SETTINGS_GAMBLING); g.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/off-icon.png") .overrideSize_2(d, e) ); g.setToggledButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/on-icon.png") .overrideSize_2(d, e) ); g.setButtonText_1(GT1607.prototype.TT_SETTINGS_GAMBLING_OFF); g.setImagePosition_1(GT1073.prototype.IMAGE_LEFT); g.setImageOffset_1(f); e = Integer.truncate_1(1.5 * f); var k = new GT817().insets_4(d + e, f, f, f).breakLines_1(!1); g.setTextAttributes_1(k); d = new GT817().insets_4(f, d + e, f, f).breakLines_1(!1); g.setToggledTextAttributes_1(d); g.setToggledButtonText_1(GT1607.prototype.TT_SETTINGS_GAMBLING_ON); g.setToggledImagePosition_1(GT1073.prototype.IMAGE_RIGHT); g.setToggledImageOffset_1(f); g.setComponentSize_2(a, b); g.setButtonStateHoverOmitted_1(!0); g.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); return g; }, addMenuItems_5: function (a, b, d, e, f) { var g; g = this.makeItem_7(GT1607.prototype.MENUITEM_PAYTABLE, this.makeMenuItemImage_1("/menu-paytable.png"), GT1607.prototype.TT_MENU_PAYTABLE, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); g = this.makeItem_7(GT1607.prototype.MENUITEM_DEPOSIT, this.makeMenuItemImage_1("/menu-deposit.png"), GT1607.prototype.TT_MENU_DEPOSIT, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); g = this.makeItem_7(GT1607.prototype.MENUITEM_SETTINGS, this.makeMenuItemImage_1("/menu-settings.png"), GT1607.prototype.TT_MENU_SETTINGS, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); g = this.makeItem_7(GT1607.prototype.MENUITEM_REPLAY, this.makeMenuItemImage_1("/menu-replay.png"), GT1607.prototype.TT_MENU_REPLAY, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); g = this.makeItem_7(GT1607.prototype.MENUITEM_HELP, this.makeMenuItemImage_1("/menu-help.png"), GT1607.prototype.TT_MENU_HELP, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); g = this.makeItem_7(GT1607.prototype.MENUITEM_EXIT, this.makeMenuItemImage_1("/menu-home.png"), GT1607.prototype.TT_MENU_EXIT, b, d, e, f); g.setFontKey_1(GT1237.prototype.FCK_MENUITEM); a.addMenuItem_1(g); }, makeItem_7: function (a, b, d, e, f, g, k) { a = new GT1073(a); a.setButtonImage_1(b); a.setButtonText_1(d); a.setTextAttributes_1(e); a.setComponentSize_2(f, g); a.setImagePosition_1(GT1073.prototype.IMAGE_LEFT); a.setImageOffset_1(k); a.setCornerRadius_1(this.radius); return a; }, makeMenuItemImage_1: function (a) { return GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + a); }, }, "GT1367", [] ); GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON = "ui.neon.extrapaytablebutton"; var GT1227 = GT1367.extend( { initialConstructor_0: function () { this.overlayComponentPadding = 0; this.logo = null; GT1367.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.overlayComponentPadding = 0; this.logo = null; GT1367.prototype.initialConstructor_1.call(this, a); this.overlayComponentPadding = 50; this.radius = 8; this.logo = new GT816(GT1607.prototype.OVERLAY_LOGO, this.overlayComponentPadding, 140, GT1227.prototype.HEIGHT, !0, !0).setIcon_1( GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/novo-logo.png") ); }, initialConstructor_2: function (a, b) { this.overlayComponentPadding = 0; this.logo = null; GT1367.prototype.initialConstructor_1.call(this, a); this.overlayComponentPadding = 50; this.radius = 8; this.logo = b; }, assembleComponents_2: function (a, b) { var d = this.getMenuButton_0(), e = this.getMaxBetButton_0(), f = this.getAutoPlayButton_0(), g = this.getSpinButton_0(), k = this.getBetButton_0(), m = this.getCreditsAndWinDisplay_0(), n = this.getSettingsPanel_0(), p = this.getLineButton_0(), q = null; this.isShowPaytableButton_0() && (q = this.getPaytableButton_0()); a.addComponent_1(b).addComponent_1(n); b.addComponent_1(d); b.addComponent_1(p).addComponent_1(k).addComponent_1(g).addComponent_1(m).addComponent_1(f); b.addComponent_1(e); this.replacePaytableButtonReplacee_3(q, d, a); }, getCloseIcon_0: function () { return GT1390.prototype .set_0() .tiling_2(1, 1) .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/close-icon.png") .overrideSize_2(32, 32); }, getCreditsAndWinDisplay_0: function () { var a = this.makeCreditsAndWinDisplay_0(); a.setOrder_1(3).setComponentSize_2(420, 136); return a; }, getBetButton_0: function () { var a = this.getBetButtonWithId_10(GT1607.prototype.BETMENU, 157, 100, 214, 214, 108, 54, !1, 14, 14); a.setOrder_1(3); a.setShowSpinner_1(!0); a.setTextAttributes_1(new GT817().insets_2(0, 4)); var b = new GT817().insets_4(15, 15, 20, 49).breakLines_1(!1); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM); var d = GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_TOTAL_BET_SPINNER); if (null == d || d.isEmpty_0()) d = GT1389.prototype.getInstance_0().getText_1(GT1607.prototype.TT_TOTAL_BET); a.setButtonText_1(d); a.setTextAttributes_1(b); a.setUndockedHeight_1(181); a.setUndockedWidth_1(181); return a; }, getExtraBetButton_0: function () { var a = this.makeExtraBetButton_0(); a.getButtonImage_0().overrideSize_2(56, 25); a.setImageOffset_1(24); a.getToggledButtonImage_0().overrideSize_2(56, 25); a.setToggledImageOffset_1(24); a.setComponentSize_2(100, 100); a.setOrder_1(2); return a; }, getSpinButton_0: function () { var a = new GT326(GT1607.prototype.SPIN); a.setFontKey_1(GT1237.prototype.FCK_PRIMARY_BUTTON); a.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_PRIMARY); a.setStartText_1("${neon_buttontext_start}").setCollectText_1("${neon_buttontext_collect}"); a.setOrder_1(7).setComponentSize_2(157, 100).setResizePriority_1(2); a.setUndockedHeight_1(207); a.setUndockedWidth_1(207); a.setFastIcon_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/fast.png") .overrideSize_2(Integer.truncate_1(68 * 0.7), Integer.truncate_1(51.8)) ) .setSpinIcon_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/spin_small.png")) .setLoaderImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/spinloader.png") .overrideSize_2(76, 76) ); return a; }, getAutoPlayButton_0: function () { var a = new GT786(GT1607.prototype.AUTOPLAY); a.setToggledImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setToggledImageOffset_1(24).setImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setImageOffset_1(24); var b = new GT817().insets_4(15, 15, 21, 52).breakLines_1(!1); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-off.png") .overrideSize_2(56, 25) ); a.setToggledButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-on.png") .overrideSize_2(56, 25) ); a.setToggledButtonText_1(GT1607.prototype.TT_AUTO).setToggledTextAttributes_1(b).setTextAttributes_1(b); a.setButtonText_1(GT1607.prototype.TT_AUTO).setOrder_1(6).setComponentSize_2(100, 100); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM); return a; }, getMaxBetButton_0: function () { var a = new GT1073(GT1607.prototype.MAXBET); a.setButtonText_1(GT1607.prototype.TT_MAXBET).setOrder_1(5).setComponentSize_2(100, 100).setResizePriority_1(3); a.setTextAttributes_1(new GT817().insets_1(15).gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0()))); return a; }, getPaytableButton_0: function () { var a = this.makePaytableButton_0(); a.setComponentSize_2(100, 100); a.setTextAttributes_1(new GT817().insets_1(10).gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0()))); return a; }, getLineButton_0: function () { var a = this.makeLineButton_0(); a.getGridButtonTemplate_0().setComponentSize_2(108, 54).setCornerRadius_1(this.radius); a.setSpacerX_1(14).setSpacerY_1(14); a.setOrder_1(2).setComponentSize_2(100, 100).setMaxHeight_1(100).setMinHeight_1(100).setMaxWidth_1(100).setMinWidth_1(100); var b = new GT817().insets_4(5, 5, 21, 52); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setTextAttributes_1(b); return a; }, getMenuButton_0: function () { var a = new GT904(GT1607.prototype.MENU); a.setButtonText_1(GT1607.prototype.TT_MENU); a.setTextAttributes_1(new GT817().insets_4(10, 10, 10, 10).gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0()))); a.setComponentSize_2(100, 100).setResizePriority_1(4); this.addMenuItems_1(a); return a; }, getBottomBar_0: function () { var a = new GT412(GT1607.prototype.CONSOLECONTAINER), b = Math.div(this.coreArea.y + this.coreArea.height - this.contentArea.y - this.contentArea.height - GT1227.prototype.HEIGHT - 100, 2), b = b + this.bottomBarOffset; a.setComponentSpacing_1(10) .setComponentSize_2(this.contentArea.width + 100, 100) .setComponentX_1(this.contentArea.x - 50) .setComponentY_1(this.contentArea.y + this.contentArea.height + b); return a; }, addMenuItems_1: function (a) { var b = new GT817().insets_4(64, 10, 10, 10).hAlign_1(GT1488.prototype.LEFT); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0())); this.addMenuItems_5(a, b, 230, 50, 16); }, makeMenuItemImage_1: function (a) { return GT1367.prototype.makeMenuItemImage_1.call(this, a).overrideSize_2(32, 32); }, addOverlayBar_1: function (a) { var b = 0; null != this.coreArea && (b = a.getComponentHeight_0() - (this.coreArea.y + this.coreArea.height)); var d = a.getComponentHeight_0() - GT1227.prototype.HEIGHT - b, e = new GT559(GT1607.prototype.OVERLAY_CONTAINER), f = a.getComponentWidth_0(); e.setComponentSize_2(f, GT1227.prototype.HEIGHT + b); e.setComponentX_1(0); e.setComponentY_1(d); e.setRoot_1(a); e.setParent_1(a); e.setComponentSpacing_1(this.overlayComponentPadding); a.addComponent_1(e); var f = new GT461(GT1607.prototype.OVERLAY_LEFT_SIDE_CONTAINER), g = this.getOverlayLeftSideItems_0(); f.setComponentX_1(this.contentArea.x + this.getOverlayBarLeftsideOffset_0()); f.setComponentY_1(d); for (a = 0; a < g.size_0(); a++) (b = g.get_1(a)), b.setComponentSize_2(b.getComponentWidth_0(), GT1227.prototype.HEIGHT), f.addComponent_1(b); e.addComponent_1(f); f = new GT461(GT1607.prototype.OVERLAY_RIGHT_SIDE_CONTAINER); g = this.getOverlayRightSideItems_0(); f.setComponentX_1(this.contentArea.x + this.getOverlayBarRightsideOffset_0()); f.setComponentSize_2(this.contentArea.width, GT1227.prototype.HEIGHT); f.setComponentY_1(d); d = !1; for (a = g.size_0() - 1; 0 <= a; a--) (b = g.get_1(a)), null != b ? (b.setComponentSize_2(b.getComponentWidth_0(), GT1227.prototype.HEIGHT), f.addComponent_1(b), d && (instanceOf(b, GT816) ? b.setBorderRight_1(!0) : instanceOf(b, GT710) && b.setBorderRight_1(!0), (d = !1))) : (d = !0); e.addComponent_1(f); }, getOverlayBarMagicRightOffset_0: function () { return 26; }, getOverlayBarLeftsideOffset_0: function () { return 0; }, getOverlayBarRightsideOffset_0: function () { return 0; }, getOverlayLeftSideItems_0: function () { var a = new java_util_JavaScriptVector(); a.add_1( new GT710(GT1607.prototype.OVERLAY_EXIT, this.overlayComponentPadding, 100, GT1227.prototype.HEIGHT, !0, !1) .setButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/home-icon.png")) .setButtonText_1(GT1607.prototype.TT_OVERLAY_EXIT) .setImagePosition_1(GT1073.prototype.IMAGE_LEFT) .setImageOffset_1(14) .setSuppressBackground_1(!0) ); var b = new GT710(GT1607.prototype.OVERLAY_SOUND_AND_MUSIC, 0, 100, GT1227.prototype.HEIGHT, !0, !1); b.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-and-music.png") .overrideSize_2(26, 20) ); b.setToolTip_1("${neon_tip_soundandmusic}"); b.setComponentSize_2(GT1227.prototype.HEIGHT, GT1227.prototype.HEIGHT); a.add_1(b); b = new GT710(GT1607.prototype.OVERLAY_SOUND_ONLY, 0, 100, GT1227.prototype.HEIGHT, !1, !1); b.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-only.png") .overrideSize_2(20, 18) ); b.setToolTip_1("${neon_tip_soundonly}"); b.setComponentSize_2(GT1227.prototype.HEIGHT, GT1227.prototype.HEIGHT); a.add_1(b); b = new GT710(GT1607.prototype.OVERLAY_SOUND_OFF, 0, 100, GT1227.prototype.HEIGHT, !1, !1); b.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-off.png") .overrideSize_2(21, 15) ); b.setToolTip_1("${neon_tip_soundoff}"); b.setComponentSize_2(GT1227.prototype.HEIGHT, GT1227.prototype.HEIGHT); a.add_1(b); b = new GT437(GT1607.prototype.OVERLAY_SCREENMODE, this.overlayComponentPadding, 160, GT1227.prototype.HEIGHT, !0, !0); b.setButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/norm_scr.png")) .setButtonText_1(GT1607.prototype.TT_OVERLAY_NORMALSCREEN) .setToolTip_1("${neon_tip_fullscreen}"); b.setToggledButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/full_scr.png")) .setToggledButtonText_1(GT1607.prototype.TT_OVERLAY_FULLSCREEN) .setToggledToolTip_1("${neon_tip_windowed}"); b.setImagePosition_1(GT1073.prototype.IMAGE_LEFT).setImageOffset_1(14); b.setSuppressBackground_1(!0); a.add_1(b); return a; }, getOverlayRightSideItems_0: function () { var a = new java_util_JavaScriptVector(); a.add_1(new GT816(GT1607.prototype.OVERLAY_ROUNDID, this.overlayComponentPadding, 150, GT1227.prototype.HEIGHT, !0, !1)); a.add_1(new GT816(GT1607.prototype.OVERLAY_CLOCK, this.overlayComponentPadding, 120, GT1227.prototype.HEIGHT, !0, !1).setIcon_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/clock.png"))); a.add_1(this.getLogo_0()); return a; }, getLogo_0: function () { return this.logo; }, getSettingsPanel_0: function () { var a = new GT502(GT1607.prototype.SETTINGS_PANEL); a.setSpacerX_1(10).setSpacerY_1(20).setComponentSize_2(560, 180); var b = new GT1073(GT1607.prototype.SETTINGS_CLOSE); b.setSuppressBackground_1(!0).setButtonImage_1(this.getCloseIcon_0()); a.setPanelCloseButton_1(b); b = this.getSettingsGamblingButton_5(120, 60, 44, 44, 8); b.setButtonStateHoverOmitted_1(!1); a.setGamblingButton_1(b); return a; }, getDeviceSpecificAssetPathPrefix_0: function () { return "/com/greentube/gameconsole/res/neon"; }, }, "GT1227", [] ); GT1227.prototype.HEIGHT = 42; var GT1269 = GT1367.extend( { initialConstructor_0: function () { GT1367.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1367.prototype.initialConstructor_1.call(this, a); this.setNumberOfBetRows_1(4); this.setNumberOfBetColumns_1(6); this.setMaxNumberOfBets_1(24); }, assembleComponents_2: function (a, b) { var d = this.getMenuButton_0(), e = this.getMaxBetButton_0(), f = this.getAutoPlayButton_0(), g = this.getSpinButton_0(), k = this.getBetButton_0(), m = this.getCreditsAndWinDisplay_0(), n = this.getSettingsPanel_0(), p = this.getLineButton_0(), q = new GT269(d), e = new GT269(e), f = new GT269(f), g = new GT269(g), k = new GT269(k), p = new GT269(p), r = new GT269(m), t = null, t = null; this.isShowPaytableButton_0() && ((t = this.getPaytableButton_0()), (t = new GT269(t))); var u = 0, B = 1; this.getLayout_0() == this.LAYOUT_LEFT_HANDED && ((u = 10), (B = -1)); a.addComponent_1(b).addComponent_1(n); this.getLayout_0() != this.LAYOUT_STANDARD && a.addComponent_1(k).addComponent_1(g); n = 0; q.setOrder_1(u + n++ * B); b.addComponent_1(q); this.getLayout_0() == this.LAYOUT_STANDARD && (k.setOrder_1(u + n++ * B), b.addComponent_1(k)); p.setOrder_1(u + n++ * B); b.addComponent_1(p); m.setOrder_1(u + n++ * B); b.addComponent_1(r); e.setOrder_1(u + n++ * B); b.addComponent_1(e); f.setOrder_1(u + n++ * B); b.addComponent_1(f); this.getLayout_0() == this.LAYOUT_STANDARD && (g.setOrder_1(u + n++ * B), b.addComponent_1(g)); this.replacePaytableButtonReplacee_3(t, d, a); this.getLayout_0() == this.LAYOUT_LEFT_HANDED && null != t && t.setOrder_1(t.getOrder_0() - 1); }, getCloseIcon_0: function () { return GT1390.prototype .set_0() .tiling_2(1, 1) .overrideSize_2(44, 44) .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/close-icon.png"); }, getSettingsPanel_0: function () { var a = new GT411(GT1607.prototype.SETTINGS_PANEL); a.setSpacerX_1(20).setSpacerY_1(30).setComponentSize_2(1060, 820); var b = new GT1073(GT1607.prototype.SETTINGS_CLOSE); b.setSuppressBackground_1(!0).setButtonImage_1(this.getCloseIcon_0()); a.setPanelCloseButton_1(b); b = new GT1073(GT1607.prototype.SETTINGS_SOUND_AND_MUSIC); b.setComponentSize_2(140, 140); b.setButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-and-music.png")); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); b.setToolTip_1("${neon_tip_soundandmusic}"); a.setSoundAndMusicButton_1(b); b = new GT1073(GT1607.prototype.SETTINGS_SOUND_ONLY); b.setComponentSize_2(140, 140); b.setButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-only.png")); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); b.setToolTip_1("${neon_tip_soundonly}"); a.setSoundOnlyButton_1(b); b = new GT1073(GT1607.prototype.SETTINGS_SOUND_OFF); b.setComponentSize_2(140, 140); b.setButtonImage_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/settings-sound-off.png")); b.setToolTip_1("${neon_tip_soundoff}"); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); a.setSoundOffButton_1(b); a.setGamblingButton_1(this.getSettingsGamblingButton_5(192, 96, 80, 80, 8)); b = new GT1073(GT1607.prototype.SETTINGS_LAYOUT_LEFT); b.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/layout-left.png") .overrideSize_2(340, 180) ); b.addClickParam_2("param1", new Integer(GT1533.prototype.LAYOUT_LEFT_HANDED)); b.setClickIdentifier_1(GT1607.prototype.SETTINGS_SWITCH_LAYOUT); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); a.setLayoutLeftButton_1(b); b = new GT1073(GT1607.prototype.SETTINGS_LAYOUT_RIGHT); b.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/layout-right.png") .overrideSize_2(340, 180) ); b.addClickParam_2("param1", new Integer(GT1533.prototype.LAYOUT_RIGHT_HANDED)); b.setClickIdentifier_1(GT1607.prototype.SETTINGS_SWITCH_LAYOUT); b.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_ON_BLACK); a.setLayoutRightButton_1(b); return a; }, getCreditsAndWinDisplay_0: function () { var a = this.makeCreditsAndWinDisplay_0(); a.setOrder_1(1).setComponentSize_2(546, 136).setMinWidth_1(400); return a; }, getBetButton_0: function () { var a = this.getBetButtonWithId_10(GT1607.prototype.BETMENU, 214, 136, 227, 227, 179, 94, !0, 20, 20); a.setStartupState_1(this.getLayout_0() == this.LAYOUT_STANDARD ? GT487.prototype.NORMAL : GT487.prototype.TRANSFORMED); a.setOrder_1(2) .setComponentX_1(this.getLayout_0() != this.LAYOUT_RIGHT_HANDED ? 246 : 1589) .setComponentY_1(613) .setMinWidth_1(175) .setMaxWidth_1(214); var b = new GT817().insets_4(10, 10, 0, 37).breakLines_1(!1); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setButtonText_1(GT1607.prototype.TT_TOTAL_BET); a.setTextAttributes_1(b); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM); a.setUndockedHeight_1(208); a.setUndockedWidth_1(208); a.setButtonStateHoverOmitted_1(!0); return a; }, getExtraBetButton_0: function () { var a = this.makeExtraBetButton_0(); a.getButtonImage_0().overrideSize_2(70, 32); a.setImageOffset_1(18); a.getToggledButtonImage_0().overrideSize_2(70, 32); a.setToggledImageOffset_1(18); a.setButtonStateHoverOmitted_1(!0); a.setComponentSize_2(136, 136); a.setOrder_1(1); return a; }, getSpinButton_0: function () { var a = new GT326(GT1607.prototype.SPIN); a.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_PRIMARY); a.setFontKey_1(GT1237.prototype.FCK_PRIMARY_BUTTON); a.setStartText_1("${neon_buttontext_start}").setCollectText_1("${neon_buttontext_collect}"); a.setStartupState_1(this.getLayout_0() == this.LAYOUT_STANDARD ? GT487.prototype.NORMAL : GT487.prototype.TRANSFORMED); a.setComponentX_1(this.getLayout_0() != this.LAYOUT_RIGHT_HANDED ? 233 : 1576) .setComponentY_1(334) .setMaxHeight_1(136) .setMinHeight_1(136) .setMinWidth_1(252) .setMaxWidth_1(252) .setComponentSize_2(252, 136); a.setUndockedHeight_1(227); a.setUndockedWidth_1(227); a.setButtonStateHoverOmitted_1(!0); a.setFastIcon_1(GT1390.prototype.set_0().file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/fast.png")) .setSpinIcon_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/spin.png") .overrideSize_2(140, 131) ) .setLoaderImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/spinloader.png") .overrideSize_2(132, 132) ); return a; }, getAutoPlayButton_0: function () { var a = new GT786(GT1607.prototype.AUTOPLAY); a.setToggledImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setToggledImageOffset_1(31).setImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setImageOffset_1(31); var b = new GT817().insets_4(15, 15, 29, 70).breakLines_1(!1); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-off.png") .overrideSize_2(79, 36) ); a.setToggledButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-on.png") .overrideSize_2(79, 36) ) .setToggledButtonText_1(GT1607.prototype.TT_AUTO) .setToggledTextAttributes_1(b) .setTextAttributes_1(b); a.setButtonText_1(GT1607.prototype.TT_AUTO).setOrder_1(2).setComponentSize_2(136, 136); a.setFontKey_1(GT1237.prototype.FCK_LABEL_MEDIUM); a.setButtonStateHoverOmitted_1(!0); return a; }, getMaxBetButton_0: function () { var a = new GT817().insets_4(15, 15, 30, 30).hAlign_1(GT1488.prototype.CENTER); a.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0())); var b = new GT1073(GT1607.prototype.MAXBET); b.setButtonText_1(GT1607.prototype.TT_MAXBET).setOrder_1(2).setComponentSize_2(136, 136).setMaxWidth_1(136).setMinWidth_1(110); b.setTextAttributes_1(a); b.setButtonStateHoverOmitted_1(!0); return b; }, getLineButton_0: function () { var a = this.makeLineButton_0(); a.getGridButtonTemplate_0().setButtonStateHoverOmitted_1(!0).setComponentSize_2(179, 94); a.setSpacerX_1(20).setSpacerY_1(20); a.setOrder_1(8).setComponentSize_2(136, 136).setMinWidth_1(110).setMaxWidth_1(136); a.setUndockedWidth_1(136); a.setUndockedHeight_1(136); a.setButtonStateHoverOmitted_1(!0); var b = new GT817().insets_4(5, 5, 18, 55); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setTextAttributes_1(b); return a; }, getMenuButton_0: function () { var a = new GT904(GT1607.prototype.MENU); a.setButtonText_1(GT1607.prototype.TT_MENU); a.setTextAttributes_1(new GT817().insets_1(10).gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0()))); a.setComponentSize_2(136, 136).setMaxWidth_1(136).setMinWidth_1(110); this.addMenuItems_1(a); var b = "1".equals_1(GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1("clock.show")); a.setShowClock_1(b); a.setButtonStateHoverOmitted_1(!0); return a; }, getPaytableButton_0: function () { var a = this.makePaytableButton_0(); a.setTextAttributes_1(new GT817().insets_1(20).gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0()))); a.setComponentSize_2(136, 136).setMaxWidth_1(136).setMinWidth_1(110); a.setButtonStateHoverOmitted_1(!0); return a; }, getBottomBar_0: function () { var a = new GT412(GT1607.prototype.CONSOLECONTAINER), b = Math.div(this.coreArea.y + this.coreArea.height - this.contentArea.y - this.contentArea.height - 136, 2), b = b + this.bottomBarOffset; a.setComponentSpacing_1(10) .setComponentSize_2(this.contentArea.width + 200, 136) .setComponentX_1(this.contentArea.x - 100) .setComponentY_1(this.contentArea.y + this.contentArea.height + b); return a; }, addMenuItems_1: function (a) { var b = new GT817().insets_4(80, 10, 13, 13).hAlign_1(GT1488.prototype.LEFT); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0())); this.addMenuItems_5(a, b, 523, 96, 20); }, makeMenuItemImage_1: function (a) { return GT1367.prototype.makeMenuItemImage_1.call(this, "/mobile" + a); }, addOverlayBar_1: function (a) {}, getDeviceSpecificAssetPathPrefix_0: function () { return GT1367.prototype.getDeviceSpecificAssetPathPrefix_0.call(this) + "/neon"; }, }, "GT1269", [] ), GT544 = GT1269.extend( { initialConstructor_0: function () { this.buttonPosIndexMap = null; this.NR_OF_COMPONENTS_L = 0; GT1269.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.buttonPosIndexMap = null; this.NR_OF_COMPONENTS_L = 0; GT1269.prototype.initialConstructor_1.call(this, a); this.buttonPosIndexMap = new java_util_JavaScriptHashtable(); }, assembleComponents_2: function (a, b) { this.NR_OF_COMPONENTS_L = this.getNumberOfComponents_0(); var d = this.getLayout_0() == this.LAYOUT_LEFT_HANDED ? 1720 : 195, e = b.getComponentHeight_0(), f = Math.div(this.contentArea.height - e * this.NR_OF_COMPONENTS_L, this.NR_OF_COMPONENTS_L + 1), g = this.contentArea.y + this.contentArea.height, k = this.getMenuButton_0(); k.setComponentX_1(d).setComponentY_1(g - this.getCompIndex_1(GT544.prototype.PARAM_MENU_BUTTON) * (e + f)); var m = null; this.isShowPaytableButton_0() && ((m = this.getPaytableButton_0()), null == this.getPaytableButtonReplacee_0() && m.setComponentX_1(d).setComponentY_1(g - this.getCompIndex_1(GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON) * (e + f))); var n = this.getAutoPlayButton_0(); n.setComponentX_1(d).setComponentY_1(g - this.getCompIndex_1(GT544.prototype.PARAM_AUTOPLAY_BUTTON) * (e + f)); var p = this.getLineButton_0(); p.setComponentX_1(d).setComponentY_1(g - this.getCompIndex_1(GT544.prototype.PARAM_LINES_BUTTON) * (e + f)); var q = this.getMaxBetButton_0(); q.setComponentX_1(d).setComponentY_1(g - (e + f)); d = this.getSpinButton_0(); d.setComponentX_1(this.getLayout_0() == this.LAYOUT_LEFT_HANDED ? 180 : 1638).setComponentY_1(214); e = this.getBetButton_0(); e.setComponentX_1(this.getLayout_0() == this.LAYOUT_LEFT_HANDED ? 192 : 1651).setComponentY_1(511); var f = this.getCreditsAndWinDisplay_0(), g = Integer.truncate_1(1.6 * f.getComponentWidth_0()), r = f.getComponentHeight_0(); f.setComponentSize_2(g, r).setMaxWidth_1(g).setMinWidth_1(g); f.setPagingBackButtonImage_1(null).setPagingNextButtonImage_1(null).setCloseButtonImage_1(null); g = this.getSettingsPanel_0(); r = this.getPaytableCloseButton_0(); a.addComponent_1(r); var r = 0, t = 1, u = 0; this.getLayout_0() == this.LAYOUT_LEFT_HANDED && ((r = 10), (t = -1)); a.addComponent_1(b).addComponent_1(g); a.addComponent_1(e.setOrder_1(r + u++ * t)) .addComponent_1(d.setOrder_1(r + u++ * t)) .addComponent_1(k.setOrder_1(r + u++ * t)); a.addComponent_1(p.setOrder_1(r + u++ * t)) .addComponent_1(n.setOrder_1(r + u++ * t)) .addComponent_1(q.setOrder_1(r + u++ * t)); b.addComponent_1(f.setOrder_1(r + u++ * t)); this.replacePaytableButtonReplacee_3(m, k, a); }, getPaytableCloseButton_0: function () { var a = new GT1073(GT1607.prototype.PAYTABLE_CLOSE); a.setButtonImage_1(this.getCloseIcon_0()) .setComponentSize_2(100, 100) .setComponentX_1(this.contentArea.x + this.contentArea.width + 18) .setComponentY_1(this.contentArea.y - a.getComponentHeight_0() + 60); a.setShape_1(GT1073.prototype.BUTTON_SHAPE_ROUND); return a; }, getNumberOfComponents_0: function () { var a = 0; this.buttonPosIndexMap.clear_0(); return (a += this.getNumberOfComponents_1(GT544.prototype.PARAMS)); }, getNumberOfComponents_1: function (a) { for (var b = 0, d = 0; d < a.length; d++) { var e = this.getParam_1(a[d]), f = GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON.equals_1(a[d]); (f ? !this.isShowPaytableButton_0() : "0".equals_1(e)) || (f && null != this.getPaytableButtonReplacee_0()) || b++; this.buttonPosIndexMap.put_2(a[d], new Integer(b)); } return b; }, getParam_1: function (a) { return GT1389.prototype.getInstance_0().getSkinManager_0().getParameter_1(a); }, getCompIndex_1: function (a) { a = this.buttonPosIndexMap.get_1(a).intValue_0(); return this.NR_OF_COMPONENTS_L + 1 - a; }, }, "GT544", [] ); GT544.prototype.PARAM_MENU_BUTTON = "button.menu.show"; GT544.prototype.PARAM_AUTOPLAY_BUTTON = "spinner.autoplay.show"; GT544.prototype.PARAM_LINES_BUTTON = "spinner.lines.show"; GT544.prototype.PARAM_MAXBET_BUTTON = "neon.maxbet.show"; GT544.prototype.PARAMS = [GT544.prototype.PARAM_MENU_BUTTON, GT1367.prototype.PARAM_SHOW_STANDALONE_PAYTABLE_BUTTON, GT544.prototype.PARAM_AUTOPLAY_BUTTON, GT544.prototype.PARAM_LINES_BUTTON, GT544.prototype.PARAM_MAXBET_BUTTON]; var GT857 = GT1269.extend( { initialConstructor_0: function () { this.borderThickness = this.secondRow = this.firstRow = this.bigbuttonHeight = this.bigbuttonWidth = this.buttonHeight = this.buttonWidth = this.topcontainerHeight = this.topcontainerWidth = this.inset = 0; GT1269.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.borderThickness = this.secondRow = this.firstRow = this.bigbuttonHeight = this.bigbuttonWidth = this.buttonHeight = this.buttonWidth = this.topcontainerHeight = this.topcontainerWidth = this.inset = 0; GT1269.prototype.initialConstructor_1.call(this, a); this.buttonWidth = 290; this.buttonHeight = 200; this.inset = 130; this.bigbuttonHeight = this.bigbuttonWidth = 350; this.topcontainerWidth = 1440; this.topcontainerHeight = 1900; this.firstRow = 1100; this.secondRow = 1500; this.borderThickness = 5; }, getFirstRow_0: function () { return this.firstRow; }, getSecondRow_0: function () { return this.secondRow; }, getButtonWidth_0: function () { return this.buttonWidth; }, getButtonHeight_0: function () { return this.buttonHeight; }, assembleComponents_2: function (a, b) { var d = this.getLineButton_0(), e = new GT817().insets_4(5, 5, 0, 55); e.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); e.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); d.setTextAttributes_1(e); d.setBorderThickness_1(this.borderThickness); d.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); d.setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0()).setComponentX_1(this.inset).setComponentY_1(this.getFirstRow_0()); var f = this.getBetButton_0(), e = new GT817().insets_4(10, 10, 0, 55).breakLines_1(!1); e.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); e.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); f.setTextAttributes_1(e); f.setBorderThickness_1(this.borderThickness); f.setStartupState_1(GT487.prototype.NORMAL); f.setComponentSize_2(this.bigbuttonWidth, this.getButtonHeight_0()); f.setComponentX_1(Math.div(this.topcontainerWidth, 2) - Math.div(this.bigbuttonWidth, 2)).setComponentY_1(this.getFirstRow_0()); f.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); var g = this.getMaxBetButton_0(); g.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); g.setBorderThickness_1(this.borderThickness); g.setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0()) .setMinHeight_1(this.getButtonHeight_0()) .setMinWidth_1(this.getButtonWidth_0()) .setMaxHeight_1(this.getButtonHeight_0()) .setMaxWidth_1(this.getButtonWidth_0()) .setComponentX_1(a.getComponentWidth_0() - g.getComponentWidth_0() - this.inset) .setComponentY_1(this.getFirstRow_0()); var k = (e = null); this.isShowPaytableButton_0() && ((e = this.getPaytableButton_0()), e.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE), e.setBorderThickness_1(this.borderThickness), e .setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0()) .setMinHeight_1(this.getButtonHeight_0()) .setMinWidth_1(this.getButtonWidth_0()) .setMaxHeight_1(this.getButtonHeight_0()) .setMaxWidth_1(this.getButtonWidth_0()) .setComponentX_1(this.inset) .setComponentY_1(this.getSecondRow_0() - this.getButtonHeight_0()), (k = new GT269(e))); var m = this.getMenuButton_0(); m.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); m.setBorderThickness_1(this.borderThickness); m.setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0()) .setMinHeight_1(this.getButtonHeight_0()) .setMinWidth_1(this.getButtonWidth_0()) .setMaxHeight_1(this.getButtonHeight_0()) .setMaxWidth_1(this.getButtonWidth_0()) .setComponentX_1(this.inset) .setComponentY_1(this.getSecondRow_0()); var n = this.getSpinButton_0(), p = this.getAutoPlayButton_0(); p.setBorderThickness_1(this.borderThickness); p.setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0()) .setComponentX_1(a.getComponentWidth_0() - p.getComponentWidth_0() - this.inset) .setComponentY_1(this.getSecondRow_0()); var q = this.getCreditsAndWinDisplay_0(), r = this.getSettingsPanel_0(); r.setLayoutLeftButton_1(null); r.setLayoutRightButton_1(null); var t = new GT269(m), g = new GT269(g), p = new GT269(p), n = new GT269(n), f = new GT269(f), d = new GT269(d); a.addComponent_1(r).addComponent_1(n).addComponent_1(t).addComponent_1(g).addComponent_1(p).addComponent_1(f).addComponent_1(d).addComponent_1(q); this.replacePaytableButtonReplacee_3(k, m, a); null != e && null == this.getPaytableButtonReplacee_0() && (e .setComponentSize_2(this.getButtonWidth_0(), this.getButtonHeight_0() - 20) .setMinHeight_1(this.getButtonHeight_0() - 20) .setMaxHeight_1(this.getButtonHeight_0() - 20), e.setComponentY_1(e.getComponentY_0() - this.getButtonHeight_0() + 10)); }, loadResources_0: function () { GT1269.prototype.loadResources_0.call(this); GT1389.prototype .getInstance_0() .getResourceManager_0() .startLoadImage_6(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/layout-left.png", 1, 1, !1, 340, 180); GT1389.prototype .getInstance_0() .getResourceManager_0() .startLoadImage_6(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/layout-right.png", 1, 1, !1, 340, 180); }, getCreditsAndWinDisplay_0: function () { var a = GT1269.prototype.getCreditsAndWinDisplay_0.call(this), b = this.getTopContainer_0().getComponentWidth_0() - 2 * this.inset - 40; a.setComponentSize_2(b, 190) .setMaxWidth_1(b) .setMinWidth_1(b) .setMaxHeight_1(190) .setMinHeight_1(190) .setComponentX_1(this.inset + 20) .setComponentY_1(825); return a; }, getSpinButton_0: function () { var a = GT1269.prototype.getSpinButton_0.call(this); a.setStartupState_1(GT487.prototype.TRANSFORMED); a.setComponentX_1(Math.div(this.topcontainerWidth, 2) - Math.div(this.bigbuttonWidth, 2)).setComponentY_1(this.getSecondRow_0() + Math.div(this.getButtonHeight_0(), 2) - Math.div(this.bigbuttonHeight, 2)); a.setUndockedHeight_1(this.bigbuttonWidth); a.setUndockedWidth_1(this.bigbuttonHeight); a.setBorderThickness_1(this.borderThickness); a.setIconScaleFactors_2(1.65, 1.65); return a; }, getAutoPlayButton_0: function () { var a = new GT786(GT1607.prototype.AUTOPLAY); a.setToggledImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setToggledImageOffset_1(40).setImagePosition_1(GT1073.prototype.IMAGE_BOTTOM).setImageOffset_1(40); a.setButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-off.png") .overrideSize_2(79, 36) ); a.setToggledButtonImage_1( GT1390.prototype .set_0() .file_1(this.getDeviceSpecificAssetPathPrefix_0() + "/mobile/auto-on.png") .overrideSize_2(79, 36) ); var b = new GT817().insets_4(15, 15, 21, 52).breakLines_1(!1); b.color_1(this.getConsoleTheme_0().getLabelColor_0().create_0()); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getLabelGradient_0())); a.setToggledButtonText_1(GT1607.prototype.TT_AUTO).setToggledTextAttributes_1(b); a.setButtonText_1(GT1607.prototype.TT_AUTO).setTextAttributes_1(b); a.setFontKey_1(GT1237.prototype.FCK_LABEL_EXTRA_LARGE); return a; }, getTopContainer_0: function () { var a = new GT797(GT1607.prototype.TOPCONTAINER, this.factory); a.setComponentX_1(0).setComponentY_1(0).setComponentSize_2(this.topcontainerWidth, this.topcontainerHeight); return a; }, addMenuItems_1: function (a) { var b = new GT817().insets_4(120, 15, 20, 20).hAlign_1(GT1488.prototype.LEFT); b.gradient_1(this.getGradient_1(this.getConsoleTheme_0().getNormalButtonGradient_0())); this.addMenuItems_5(a, b, 765, 140, 40); }, }, "GT857", [] ), GT1520 = GT1437.extend( { initialConstructor_0: function () { GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1437.prototype.initialConstructor_1.call(this, a); }, initialConstructor_5: function (a, b, d, e, f) { GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, findCardButton_1: function (a) { if (null == a) return null; for (var b = 0; b < this.getChildCount_0(); b++) { var d = this.getChild_1(b); if (null != d && d.isAlive_0()) { if (instanceOf(d, GT1609)) { var e = d; if (null != e.getCard_0() && e.getCard_0().id_0() == a.id_0()) return e; } if (instanceOf(d, GT1520) && ((d = d.findCardButton_1(a)), null != d)) return d; } } return null; }, unmarkCardButtons_0: function () { for (var a = 0; a < this.getChildCount_0(); a++) { var b = this.getChild_1(a); instanceOf(b, GT1609) && b.unmark_0(); instanceOf(b, GT1520) && b.unmarkCardButtons_0(); } }, destroyUnmarkedCardButtons_0: function () { for (var a = 0; a < this.getChildCount_0(); a++) { var b = this.getChild_1(a); if (instanceOf(b, GT1609)) { var d = b; !d.isMarked_0() && d.isAlive_0() && (d.destroy_0(), a--); } instanceOf(b, GT1520) && b.destroyUnmarkedCardButtons_0(); } }, destroyCard_1: function (a) { for (var b = 0; b < this.getChildCount_0(); b++) { var d = this.getChild_1(b); if (instanceOf(d, GT1609)) { var e = d; if (e.getCard_0().id_0() == a.id_0()) { e.isAlive_0() && e.destroy_0(); break; } } instanceOf(d, GT1520) && d.destroyCard_1(a); } }, destroyChildren_0: function () { java_lang_System.prototype.out.println_1("never call destroychildren on a cardscontainer"); GT1650.prototype.assertExp_2(!1, "never call destroychildren on a cardscontainer"); }, }, "GT1520", [] ), GT1473 = GT1437.extend( { initialConstructor_0: function () { this.polycolor = this.poly = this.dcorners = this.icorners = this.points = null; this.useCulling = this.useExactVisibility = !1; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.polycolor = this.poly = this.dcorners = this.icorners = this.points = null; this.useCulling = this.useExactVisibility = !1; GT1437.prototype.initialConstructor_5.call(this, a, 0, 0, 120, 120); this.points = b; this.icorners = [].createArray(2 * b.length).init(0); this.dcorners = [].createArray(2 * b.length).init(0); this.polycolor = d; this.useExactVisibility = !0; this.useCulling = !1; }, setUseExactVisibility_1: function (a) { this.useExactVisibility = a; }, setUseCulling_1: function (a) { this.useCulling = a; }, setTransformAndLightning_5: function (a, b, d, e, f) { if (!this.isAlive_0() || 3 > this.points.length) return null; null != this.poly && this.poly.isAlive_0() && this.poly.destroy_0(); for (var g = null, k = null, m = null, n = 1e4, p = -1e4, q = 1e4, r = -1e4, t = 0; t < this.points.length; t++) { var u = GT1640.prototype.transformVector_2(this.points[t], d), B = u.x + a, A = u.y + b; this.dcorners[2 * t] = B; this.dcorners[2 * t + 1] = A; B > p && (p = B); B < n && (n = B); A > r && (r = A); A < q && (q = A); 0 == t ? (g = u) : 1 == t ? (k = u) : 2 == t && (m = u); } GT1650.prototype.assertExp_2(null != g && null != k && null != m, "point is null"); if (this.useCulling) if (this.useExactVisibility) { if (!this.isPlaneVisible_3(g, k, m)) return null; } else if (!this.isPlaneVisible_4(g, k, m, 0.4)) return null; a = GT1672.prototype.doubleToInt_1(p - n); r = GT1672.prototype.doubleToInt_1(r - q); n = GT1672.prototype.doubleToInt_1(n); q = GT1672.prototype.doubleToInt_1(q); for (t = 0; t < this.dcorners.length; t += 2) (this.dcorners[t] -= n), (this.dcorners[t + 1] -= q), (this.icorners[t] = GT1672.prototype.doubleToInt_1(1e3 * this.dcorners[t])), (this.icorners[t + 1] = GT1672.prototype.doubleToInt_1(1e3 * this.dcorners[t + 1])); this.move_2(n, q); e = this.calculateShading_5(g, k, m, e, f); e = new GT1634( Math.min_2(Integer.truncate_1(this.polycolor.getRed_0() * e), 255), Math.min_2(Integer.truncate_1(this.polycolor.getGreen_0() * e), 255), Math.min_2(Integer.truncate_1(this.polycolor.getBlue_0() * e), 255) ); this.poly = new GT1223(this, 0, 0, Integer.truncate_1(a), Integer.truncate_1(r), this.icorners, [e]); this.poly.reorder_1(!1); this.poly.setScale_2(0.001, 0.001); return this.poly; }, }, "GT1473", [] ); GT1473.prototype.isPlaneVisible_4 = function (a, b, d, e) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); b = GT1641.prototype.cross_2(a, b); b.normalize_0(); return b.z > e; }; GT1473.prototype.isPlaneVisible_3 = function (a, b, d) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); return 0 < a.x * b.y - a.y * b.x; }; GT1473.prototype.calculateShading_5 = function (a, b, d, e, f) { a = GT1641.prototype.subtract_2(a, b); b = GT1641.prototype.subtract_2(d, b); b = GT1641.prototype.cross_2(a, b); e = GT1641.prototype.cosAlpha_2(e, b); 0 > e && (e = 0); return f + (1.1 - f) * e; }; var GT1563 = GT1399.extend( { initialConstructor_0: function () { this.timeOfLastBannerRefresh = 0; this.gesturedetector = this.defaultCursorType = this.skinManagerFactory = this.skinManager = null; this.wrapper_to_client = this.client_to_wrapper = !1; this.mouseWatcher = this.appletEventHandler = this.wrapperPropertyListeners = null; GT1399.prototype.initialConstructor_0.call(this); this.defaultCursorType = GT1537.prototype.STANDARD; this.wrapper_to_client = this.client_to_wrapper = !0; this.wrapperPropertyListeners = new java_util_JavaScriptVector(); }, getSkinManager_0: function () { null == this.skinManager && (this.skinManager = null != this.skinManagerFactory ? this.skinManagerFactory.createSkinManager_5(this.getDefaultResourceManager_0(), this.getSoundPlayer_0(), this.getTimer_0(), this, this.getEventDispatcher_0()) : new GT1494(this.getDefaultResourceManager_0(), this.getSoundPlayer_0(), this.getTimer_0(), this, this.getEventDispatcher_0())); return this.skinManager; }, setSkinManagerFactory_1: function (a) { this.skinManagerFactory = a; }, getSkinManagerFactory_0: function () { return this.skinManagerFactory; }, doStart_0: function () { GT1399.prototype.doStart_0.call(this); var a = this.getStringParameter_2("remotelog", ""); 0 < a.length_0() ? GT1650.prototype.supressLogLevelConsoleOutput_0() : (a = this.getStringParameter_2("loglevel", "")); GT1650.prototype.decodeAndSetLogLevels_1(a); GT1650.prototype.setDebugMode_2(0 != this.getIntParameter_2("debug", 0), !0); this.getDefaultResourceManager_0().setListener_1(new GT931(this, !1)); a = this.getEventDispatcher_0(); null != a && null == this.appletEventHandler && ((this.appletEventHandler = new GT1007(this)), this.getBooleanParameter_2("keyboardinput.disable", !1) ? a.registerHandlerForMultipleEvents_2( [ GT1387.prototype.BUTTON_CLICKED, GT1387.prototype.BUTTON_MOUSE_ENTERED, GT1387.prototype.BUTTON_MOUSE_EXITED, GT1387.prototype.BUTTON_PRESSED, GT1387.prototype.BUTTON_DRAGGING, GT1387.prototype.BUTTON_RELEASED, GT1371.prototype.SCREENSIZE_CHANGED, ], this.appletEventHandler ) : a.registerHandlerForMultipleEvents_2( [ GT1387.prototype.BUTTON_CLICKED, GT1387.prototype.BUTTON_MOUSE_ENTERED, GT1387.prototype.BUTTON_MOUSE_EXITED, GT1387.prototype.BUTTON_PRESSED, GT1387.prototype.BUTTON_DRAGGING, GT1387.prototype.BUTTON_RELEASED, GT1532.prototype.KEY_PRESS, GT1532.prototype.KEY_RELEASE, GT1371.prototype.SCREENSIZE_CHANGED, ], this.appletEventHandler )); new GT1195(this.getEventDispatcher_0()); this.timeOfLastBannerRefresh = this.currentTimeMillis_0(); null == this.gesturedetector && ((this.gesturedetector = new GT717(this.getEventDispatcher_0(), this.getTimer_0())), null == GT1563.prototype.getViewConfiguration_0() && GT1563.prototype.setViewConfiguration_1(new GT829()), this.gesturedetector.init_2(GT1563.prototype.getViewConfiguration_0(), null)); null == this.mouseWatcher && ((this.mouseWatcher = new GT1471(this.getTopContainer_0(), this.getEventDispatcher_0(), this.getCursorManager_0(), this.getTimer_0())), instanceOf(this.getTopContainer_0(), GT1428) && this.getTopContainer_0().setPointerStateProvider_1(this.mouseWatcher), (a = this.getBooleanParameter_2("disablecursor", !1)), this.mouseWatcher.setDisableMouseOverEffect_1(a)); null != this.getParameter_1("defaultcursortype") && ((a = this.getParameter_1("defaultcursortype")), this.setDefaultCursorType_1(GT1537.prototype.fromString_1(a))); this.getTimer_0().setBlockingChangedListener_1(new GT879(this)); }, changedAnimatorBlockingState_0: function () {}, doStop_0: function () { this.doStopImpl_0(); GT1399.prototype.doStop_0.call(this); }, doStopImpl_0: function () { null != this.skinManager && (this.skinManager.destroy_0(), (this.skinManager = null)); null != this.gesturedetector && (this.gesturedetector.stop_0(), (this.gesturedetector = null)); null != this.mouseWatcher && (this.mouseWatcher.stop_0(), (this.mouseWatcher = null)); this.appletEventHandler = null; null != this.getEventDispatcher_0() && this.getEventDispatcher_0().reset_0(); }, notifySkinLoaded_1: function (a) {}, notifyResourceLoaded_2: function (a, b) {}, notifyResourceLoadingFailed_1: function (a) {}, isButtonDraggedCurrently_0: function () { return null != this.mouseWatcher ? this.mouseWatcher.isButtonDraggedCurrently_0() : !1; }, currentTimeMillis_0: function () { return this.getTimer_0().currentTimeMillis_0(); }, triggerCallback_2: function (a, b) { this.getTimer_0().triggerCallback_2(a, b); }, triggerCallbackAfter_2: function (a, b) { this.getTimer_0().triggerCallbackAfter_2(a, b); }, removeCallback_2: function (a, b) { this.getTimer_0().removeCallback_2(a, b); }, addFramerateListener_1: function (a) { this.getTimer_0().addFramerateListener_1(a); }, removeFramerateListener_1: function (a) { this.getTimer_0().removeFramerateListener_1(a); }, addWrapperPropertyListener_1: function (a) { null == a || this.wrapperPropertyListeners.contains_1(a) || this.wrapperPropertyListeners.addElement_1(a); }, removeWrapperPropertyListener_1: function (a) { this.wrapperPropertyListeners.contains_1(a) && this.wrapperPropertyListeners.removeElement_1(a); }, playSound_1: function (a) { var b = this.getSoundPlayer_0(); null != b && b.start_1(a); }, playSound_2: function (a, b) { var d = this.getSoundPlayer_0(); null != d && d.start_6(a, null, 0, 0, 100, b); }, cancelSound_1: function (a) { var b = this.getSoundPlayer_0(); null != b && b.stop_1(a); }, cancelSound_2: function (a, b) { var d = this.getSoundPlayer_0(); null != d && d.stop_2(a, b); }, startSound_1: function (a) { var b = this.getSoundPlayer_0(); null != b && b.startLooped_4(a, 0, 0, 0); }, startSound_3: function (a, b, d) { var e = this.getSoundPlayer_0(); null != e && e.startLooped_4(a, b, d, b); }, stopSound_1: function (a) { var b = this.getSoundPlayer_0(); null != b && b.stop_1(a); }, stopSound_2: function (a, b) { var d = this.getSoundPlayer_0(); null != d && d.stop_2(a, b); }, isSoundActive_0: function () { var a = this.getSoundPlayer_0(); return null == a ? !1 : a.isActive_0(); }, setSoundActive_1: function (a) { var b = this.getSoundPlayer_0(); null != b && b.setActive_1(a); }, buttonMouseEnter_1: function (a) {}, buttonMouseLeave_1: function (a) {}, buttonStartDrag_1: function (a) {}, buttonDrag_1: function (a) {}, buttonDrop_1: function (a) {}, buttonClick_1: function (a) {}, requestObjectVisible_1: function (a) {}, triggerButtonClick_1: function (a) { a.handleClick_0(); var b = this.getEventDispatcher_0(); null != b && b.raiseEvent_1(new GT1387(GT1387.prototype.BUTTON_CLICKED, a)); }, getStringParameter_2: function (a, b) { var d = this.getParameter_1(GT1677.prototype.toLowerCaseAZ_1(a)); null == d && (d = this.getParameter_1(GT1677.prototype.toUpperCaseAZ_1(a))); null == d && 1 < a.length_0() && (d = this.getParameter_1(GT1677.prototype.toUpperCaseAZ_1(a.substring_2(0, 1)).concat_1(GT1677.prototype.toLowerCaseAZ_1(a.substring_1(1))))); return null != d && 0 < d.length_0() ? d : b; }, getBooleanParameter_2: function (a, b) { var d = this.getStringParameter_2(a, "").trim_0(); return 0 >= d.length_0() ? b : GT1677.prototype.equalsIgnoreCaseAZ_2(d, "1") || GT1677.prototype.equalsIgnoreCaseAZ_2(d, "true") ? !0 : !1; }, getIntParameter_2: function (a, b) { var d = this.getStringParameter_2(a, "").trim_0(); return 0 >= d.length_0() ? b : GT1677.prototype.equalsIgnoreCaseAZ_2(d, "true") ? 1 : GT1677.prototype.equalsIgnoreCaseAZ_2(d, "false") ? 0 : GT1672.prototype.stringToInt_1(d); }, getFloatParameterAsPercentage_2: function (a, b) { var d = this.getStringParameter_2(a, "").trim_0(); if (0 >= d.length_0()) return b; var e = d.indexOf_1(46); if (0 > e) return 100 * GT1672.prototype.stringToInt_1(d); d = d.substring_2(0, e) + (d + "00").substring_2(e + 1, e + 3); return GT1672.prototype.stringToInt_1(d); }, startLoadSkinDescription_2: function (a, b) { var d = new GT1320(this.getTopContainer_0().getWidth_0(), this.getTopContainer_0().getHeight_0(), this); d.startLoad_4(this.createResourceManager_0(), new GT931(this, !0), a, b); return d; }, startLoadVideoClip_1: function (a) { return this.getDefaultResourceManager_0().startLoadVideoClip_1(a); }, startLoadSound_1: function (a) { return this.getDefaultResourceManager_0().startLoadSound_1(a); }, openLink_1: function (a) { if (null != a) { var b = "_blank"; if (GT1677.prototype.toLowerCaseAZ_1(a).startsWith_1("target=")) { var d = a.indexOf_1(58); if (0 < d) { b = a.substring_2(7, d); this.openLink_2(b, a.substring_1(d + 1)); return; } } this.openLink_2(b, a); } }, openLink_2: function (a, b) { this.getBooleanParameter_2("preventopenlink", !1) || GT1399.prototype.openLink_2.call(this, a, b); }, showBanner_0: function () { var a = this.getStringParameter_2("bannerurl", null); null != a && (GT1563.prototype.LOG.info && GT1563.prototype.LOG.log_1("Show banner: " + a), this.openLink_2("bannerframe", a)); this.timeOfLastBannerRefresh = this.currentTimeMillis_0(); }, checkForAutomaticBannerRefresh_0: function () { this.timeOfLastBannerRefresh + GT1563.prototype.BANNERREFRESHINTERVAL < this.currentTimeMillis_0() && this.showBanner_0(); }, createToolTipManager_4: function (a, b, d, e) { if (1 != GT1672.prototype.stringToInt_1(this.getParameter_1("notooltip"))) { var f = this.getTopContainer_0(); new GT1343(this.getTimer_0(), f, a, new GT1437(f), b, d, e); } }, getDefaultCursorType_0: function () { return this.defaultCursorType; }, setDefaultCursorType_1: function (a) { this.defaultCursorType = a; this.mouseWatcher.setDefaultCursorType_1(a); }, enableClientToWrapper_1: function (a) { this.client_to_wrapper = a; }, enableWrapperToClient_1: function (a) { this.wrapper_to_client = a; }, setProperty_2: function (a, b) { this.wrapper_to_client && this.setPropertyImpl_2(a, b); }, setPropertyImpl_2: function (a, b) { for (var d = this.wrapperPropertyListeners.size_0(), e = 0; e < d; e++) this.wrapperPropertyListeners.elementAt_1(e).notifyProperty_2(a, b); }, notifyPropertyChangedImpl_2: function (a, b) { this.client_to_wrapper && !this.getBooleanParameter_2("disablewrapperprotocolv1", !1) && this.notifyPropertyChanged_2(a, b); }, }, "GT1563", [GT1670] ), GT1007 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, handleButtonEvent_1: function (a) { var b = a.getSender_0(); GT1650.prototype.assertExp_2(null != b, "Received a ButtonEvent wthout a sending Button"); null != b && (a.getId_0() == GT1387.prototype.BUTTON_CLICKED ? this.applet.buttonClick_1(b) : a.getId_0() == GT1387.prototype.BUTTON_MOUSE_ENTERED ? this.applet.buttonMouseEnter_1(b) : a.getId_0() == GT1387.prototype.BUTTON_MOUSE_EXITED ? this.applet.buttonMouseLeave_1(b) : a.getId_0() == GT1387.prototype.BUTTON_PRESSED ? b.isDragable_0() && this.applet.buttonStartDrag_1(b) : a.getId_0() == GT1387.prototype.BUTTON_DRAGGING ? this.applet.buttonDrag_1(b) : a.getId_0() == GT1387.prototype.BUTTON_RELEASED && b.isDragable_0() && this.applet.buttonDrop_1(b)); return !1; }, handleKeyEvent_1: function (a) { if (a.getId_0() == GT1532.prototype.KEY_PRESS) return this.applet.keyPressed_3(a.getSender_0(), a.getKeyName_0(), a.getKeyModifiers_0()); a.getId_0() == GT1532.prototype.KEY_RELEASE && this.applet.keyReleased_2(a.getSender_0(), a.getKeyName_0()); return !1; }, handleScreenEvent_1: function (a) { a.getId_0() == GT1371.prototype.SCREENSIZE_CHANGED && this.applet.appletSizeChanged_0(); return !1; }, handleInputFieldKeyEvent_1: function (a) { return this.handleKeyEvent_1(a); }, }, "GT1007", [GT962, GT1114, GT597, GT961] ); GT1563.prototype.timeOfDay_1 = function (a) { return GT1399.prototype.timeOfDay_1(a); }; GT1563.prototype.getFromSemicolonSeperatedList_2 = function (a, b) { return GT1677.prototype.getFromSemicolonSeperatedList_2(a, b); }; GT1563.prototype.getDoubleFromCommaSeperatedList_2 = function (a, b) { return GT1677.prototype.getDoubleFromCommaSeperatedList_2(a, b); }; GT1563.prototype.getIntFromCommaSeperatedList_2 = function (a, b) { return GT1677.prototype.getIntFromCommaSeperatedList_2(a, b); }; GT1563.prototype.getFromCommaSeperatedList_2 = function (a, b) { return GT1677.prototype.getFromCommaSeperatedList_2(a, b); }; GT1563.prototype.getIntFromSeperatedList_3 = function (a, b, d) { return GT1677.prototype.getIntFromSeperatedList_3(a, b, d); }; GT1563.prototype.getFromSeperatedList_3 = function (a, b, d) { return GT1677.prototype.getFromSeperatedList_3(a, b, d); }; GT1563.prototype.interpolate_5 = function (a, b, d, e, f) { return GT1677.prototype.interpolate_5(a, b, d, e, f); }; GT1563.prototype.min_2 = function (a, b) { return a < b ? a : b; }; GT1563.prototype.abs_1 = function (a) { return 0 > a ? -a : a; }; GT1563.prototype.tokenize_2 = function (a, b) { return GT1677.prototype.tokenize_3(a, b, !1); }; GT1563.prototype.tokenize_1 = function (a) { return GT1677.prototype.tokenize_3(a, " \n\t", !1); }; GT1563.prototype.getViewConfiguration_0 = function () { return GT1563.prototype.viewconfig; }; GT1563.prototype.setViewConfiguration_1 = function (a) { GT1563.prototype.viewconfig = a; }; GT1563.prototype.LOG = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); GT1563.prototype._dummy_mouse_watcher_do_not_remove_only_necessary_for_cpp_compilation = null; GT1563.prototype.BANNERREFRESHINTERVAL = 6e5; GT1563.prototype.DEVICETYPE_APPLET_PARAMETER = "devicetype"; GT1563.prototype.DEVICETYPE_DESKTOP = "desktop"; GT1563.prototype.DEVICETYPE_HANDHELD = "handheld"; GT1563.prototype.DEVICETYPE_LANDBASED = "landbased"; GT1563.prototype.viewconfig = null; var GT1559 = GT1437.extend( { initialConstructor_0: function () { this.childrenforstates = this.applicationData = null; this.usingdraganchor = this.dragable = this.active = !1; this.draganchory = this.draganchorx = 0; this.usedragarea = !1; this.dragareaheight = this.dragareawidth = this.dragareay = this.dragareax = 0; this.toolTip = null; this.toolTipOffIfInactive = this.toolTipAlwaysOn = !1; this.showCursor = null; this.mouseOver = this.showAnyCursor = this.showHandCursor = !1; this.text = this.buttonClickListeners = this.buttonListeners = this.clickAreaShape = null; this.consumingMouseEventsWhenInactive = this.supportsMultitouch = !1; this.dragy = this.dragx = 0; this.clickableShapeDebugOverlayObject = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.childrenforstates = this.applicationData = null; this.usingdraganchor = this.dragable = this.active = !1; this.draganchory = this.draganchorx = 0; this.usedragarea = !1; this.dragareaheight = this.dragareawidth = this.dragareay = this.dragareax = 0; this.toolTip = null; this.toolTipOffIfInactive = this.toolTipAlwaysOn = !1; this.showCursor = null; this.mouseOver = this.showAnyCursor = this.showHandCursor = !1; this.text = this.buttonClickListeners = this.buttonListeners = this.clickAreaShape = null; this.consumingMouseEventsWhenInactive = this.supportsMultitouch = !1; this.dragy = this.dragx = 0; this.clickableShapeDebugOverlayObject = null; GT1437.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.childrenforstates = GT1559.prototype.defaultchildrenforstates; this.applicationData = null; this.active = !0; this.usedragarea = this.usingdraganchor = this.dragable = !1; this.dragareaheight = this.dragareawidth = this.dragareay = this.dragareax = 0; this.toolTip = null; this.toolTipOffIfInactive = this.toolTipAlwaysOn = !1; this.showCursor = GT1537.prototype.HAND; this.showAnyCursor = this.showHandCursor = !0; this.mouseOver = !1; this.buttonListeners = new java_util_JavaScriptVector(); this.buttonClickListeners = new java_util_JavaScriptVector(); this.text = null; this.consumingMouseEventsWhenInactive = !0; this.supportsMultitouch = !1; }, initialConstructor_3: function (a, b, d) { GT1559.prototype.initialConstructor_5.call(this, a, b, d, 0, 0); }, destroyImpl_2: function (a, b) { this.buttonListeners.setSize_1(0); GT1437.prototype.destroyImpl_2.call(this, a, b); }, setApplicationData_2: function (a, b) { this.setApplicationID_1(a); this.applicationData = b; }, getApplicationData_0: function () { return this.applicationData; }, addButtonListener_1: function (a) { (null != this.buttonListeners && this.buttonListeners.contains_1(a)) || this.buttonListeners.addElement_1(a); }, addButtonClickListener_1: function (a) { (null != this.buttonClickListeners && this.buttonClickListeners.contains_1(a)) || this.buttonClickListeners.addElement_1(a); }, removeButtonListener_1: function (a) { return this.buttonListeners.removeElement_1(a); }, removeButtonClickListener_1: function (a) { return this.buttonClickListeners.removeElement_1(a); }, removeButtonListeners_0: function () { this.buttonListeners.removeAllElements_0(); this.buttonClickListeners.removeAllElements_0(); }, setClickableAreaShape_1: function (a) { this.clickAreaShape = a; }, removeClickableAreaShape_0: function () { this.clickAreaShape = null; }, setActive_1: function (a) { this.active != a && ((this.active = a), this.changeVisual_2(!1, !1)); }, isActive_0: function () { return this.active; }, setConsumingMouseEventsWhenInactive_1: function (a) { this.consumingMouseEventsWhenInactive = a; }, isConsumingMouseEventsWhenInactive_0: function () { return this.consumingMouseEventsWhenInactive; }, setDragable_4: function (a, b, d, e) { this.dragable = a; b ? ((this.usingdraganchor = !0), (this.draganchorx = d), (this.draganchory = e)) : (this.usingdraganchor = !1); }, setDragable_1: function (a) { this.setDragable_4(a, !1, 0, 0); }, isDragable_0: function () { return this.dragable; }, isSupportingMultitouch_0: function () { return this.supportsMultitouch; }, setSupportsMultitouch_1: function (a) { this.supportsMultitouch = a; }, isUsingDragAnchor_0: function () { return this.usingdraganchor; }, getDragAnchorX_0: function () { return this.draganchorx; }, getDragAnchorY_0: function () { return this.draganchory; }, setDragArea_4: function (a, b, d, e) { this.usedragarea = !0; this.dragareax = a; this.dragareay = b; this.dragareawidth = d; this.dragareaheight = e; }, setUsingDragArea_1: function (a) { this.usedragarea = a; }, isUsingDragArea_0: function () { return this.usedragarea; }, getDragAreaX_0: function () { return this.dragareax; }, getDragAreaY_0: function () { return this.dragareay; }, getDragAreaWidth_0: function () { return this.dragareawidth; }, getDragAreaHeight_0: function () { return this.dragareaheight; }, moveConsideringDragArea_2: function (a, b) { this.dragx = a; this.dragy = b; this.usedragarea && (a < this.dragareax && (a = this.dragareax), b < this.dragareay && (b = this.dragareay), a > this.dragareax + this.dragareawidth && (a = this.dragareax + this.dragareawidth), b > this.dragareay + this.dragareaheight && (b = this.dragareay + this.dragareaheight)); this.move_2(a, b); }, setToolTip_1: function (a) { this.toolTip = a; }, getToolTip_0: function () { return this.toolTip; }, setToolTipAlwaysOn_1: function (a) { this.toolTipAlwaysOn = a; }, setToolTipOffIfInactive_1: function (a) { this.toolTipOffIfInactive = a; }, setShowCursor_1: function (a) { a != this.showCursor && (this.showCursor = a); }, setShowHandCursor_1: function (a) { this.setShowCursor_1(a ? GT1537.prototype.HAND : GT1537.prototype.STANDARD); }, setText_1: function (a) { this.setTextRecursive_2(this, a); this.text = a; }, setTextRecursive_2: function (a, b) { for (var d = a.getChildCount_0(), e = 0; e < d; e++) { var f = a.getChild_1(e); instanceOf(f, GT1584) ? f.setText_1(b) : instanceOf(f, GT1437) && this.setTextRecursive_2(f, b); } }, getText_0: function () { return this.text; }, setImage_1: function (a) { this.destroyChildren_0(); for (var b = 0; b < a.getRows_0(); b++) new GT1591(this, 0, 0, a, 0, b); this.finishButton_0(); }, setImageAndStates_2: function (a, b) { this.destroyChildren_0(); for (var d = 0; d < a.getRows_0(); d++) new GT1591(this, 0, 0, a, 0, d); GT1650.prototype.assertExp_2(b.length == this.getChildCount_0(), "incorrect number of states states:" + b.length + " image tiles:" + this.getChildCount_0()); for (d = 0; d < b.length; d++) this.setChildForState_2(b[d], d); this.finishButton_0(); }, setChildForState_2: function (a, b) { if (this.childrenforstates == GT1559.prototype.defaultchildrenforstates) { this.childrenforstates = [].createArray(GT1559.prototype.defaultchildrenforstates.length).init(0); for (var d = 0; d < GT1559.prototype.defaultchildrenforstates.length; d++) this.childrenforstates[d] = GT1559.prototype.defaultchildrenforstates[d]; } this.childrenforstates[a.idx_0()] = b; }, removeChildrenForStates_0: function () { this.childrenforstates == GT1559.prototype.defaultchildrenforstates && (this.childrenforstates = [].createArray(GT1559.prototype.defaultchildrenforstates.length).init(0)); for (var a = 0; a < GT1559.prototype.defaultchildrenforstates.length; a++) this.childrenforstates[a] = -1; }, getChildIdxForState_1: function (a) { return this.childrenforstates[a.idx_0()]; }, removeChildForState_1: function (a) { this.setChildForState_2(a, -1); }, addContainerSet_3: function (a, b, d) { for (var e = 0; e < d; e++) new GT1437(this, 0, 0, a, b); this.finishButton_0(); }, isMouseOver_0: function () { return this.mouseOver; }, finishButton_0: function () { for (var a = this.width, b = this.height, d = 0; d < this.getChildCount_0(); d++) { var e = this.getChild_1(d), f = e.getX_0() + e.getWidth_0() - 0; f > a && (a = f); e = e.getY_0() + e.getHeight_0() - 0; e > b && (b = e); } this.resize_2(a, b); this.changeVisual_2(!1, !1); }, findButton_2: function (a, b) { return null; }, isClickablePosition_2: function (a, b) { return null != this.clickAreaShape ? this.clickAreaShape.isClickablePosition_2(a, b) : 0 <= a && 0 <= b && a < this.width && b < this.height; }, changeVisual_2: function (a, b) { var d = this.getChildCount_0(), e = this.childrenforstates[0]; this.active && (a ? ((e = this.childrenforstates[2]), e >= d && (e = this.childrenforstates[1])) : b ? ((e = this.childrenforstates[3]), e >= d && (e = this.childrenforstates[1])) : (e = this.childrenforstates[1]), e >= d && (e = this.childrenforstates[0])); for (d = 0; d < this.getChildCount_0(); d++) this.getChild_1(d).hide_1(e != d); }, showState_1: function (a) { a == GT1236.prototype.INACTIVE ? this.setActive_1(!1) : (a != GT1236.prototype.DEFAULT && a != GT1236.prototype.PRESSED && a != GT1236.prototype.MOUSEOVER) || this.changeVisual_2(a == GT1236.prototype.PRESSED, a == GT1236.prototype.MOUSEOVER); }, showClickableShape_1: function (a) { if (a) { a = GT1634.prototype.green; this.isActive_0() || (a = GT1634.prototype.red); this.isHidden_0() && (a = GT1634.prototype.blue); if (null != this.clickAreaShape) { var b = this.clickAreaShape.getXCoords_0(), d = this.clickAreaShape.getYCoords_0(); if (null != b && null != d && b.length == d.length) { for (var e = [].createArray(2 * b.length).init(0), f = 0, g = 0; g < b.length; g++) (e[f++] = b[g]), (e[f++] = d[g]); b = new GT1288(this.getParent_0(), this.x, this.y, this.width, this.height); b.addPolygon_4(e, [a], null, 180); this.clickableShapeDebugOverlayObject = b; } } else (a = new GT1440(this.getParent_0(), this.x, this.y, this.width, this.height, a)), a.setAlpha_1(180), (this.clickableShapeDebugOverlayObject = a); null != this.clickableShapeDebugOverlayObject && this.clickableShapeDebugOverlayObject.reorder_1(!0); } else GT1560.prototype.destroyIfAlive_1(this.clickableShapeDebugOverlayObject); }, handleMouseEnter_0: function () { this.mouseOver = !0; for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).mouseEnter_1(this); }, handleMouseLeave_0: function () { this.mouseOver = !1; for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).mouseLeave_1(this); }, handleDown_0: function () { for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).down_1(this); }, handleDrag_0: function () { for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).drag_1(this); }, handleClick_0: function () { for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).click_1(this); for (a = 0; a < this.buttonClickListeners.size_0(); a++) this.buttonClickListeners.elementAt_1(a).click_1(this); }, handleUp_0: function () { for (var a = 0; a < this.buttonListeners.size_0(); a++) this.buttonListeners.elementAt_1(a).up_1(this); }, setChildrenForModes_4: function (a, b, d, e) { this.setChildForState_2(GT1236.prototype.INACTIVE, a); this.setChildForState_2(GT1236.prototype.DEFAULT, b); this.setChildForState_2(GT1236.prototype.PRESSED, d); this.setChildForState_2(GT1236.prototype.MOUSEOVER, e); }, addEmptyImage_0: function () { new GT1440(this, 0, 0, 0, 0, GT1634.prototype.gray); this.finishButton_0(); }, addImage_3: function (a, b, d) { var e = a.getWidth_0(); b = Math.div(a.getHeight_0(), b); new GT1591(this, 0, 0, e, b, a, 0, d * b); this.finishButton_0(); }, addImageSet_3: function (a, b, d) { for (var e = 0; e < b; e++) this.addEmptyImage_0(); for (e = b; e <= d; e++) this.addImage_3(a, d - b + 1 - 0, e - b); this.finishButton_0(); }, setMultiModeImage_3: function (a, b, d) { this.addImageSet_3(a, b, d); }, }, "GT1559", [GT1584] ); GT1559.prototype.findButton_3 = function (a, b, d) { if (null == a || 0 > b || 0 > d || b >= a.getWidth_0() || d >= a.getHeight_0() || a.isHidden_0()) return null; if (instanceOf(a, GT1559)) { var e = a; return e.isClickablePosition_2(b, d) && (e.isConsumingMouseEventsWhenInactive_0() || e.isActive_0()) ? e : null; } b = Integer.truncate_1(Math.div(b, a.getContentScaleX_0())); d = Integer.truncate_1(Math.div(d, a.getContentScaleY_0())); e = a.getModalInputReceiver_0(); if (null != e) return this.findButton_3(e, b - e.getX_0(), d - e.getY_0()); for (var f = a.getChildCount_0() - 1; 0 <= f; f--) if (((e = a.getChild_1(f)), instanceOf(e, GT1437) && ((e = this.findButton_3(e, b - e.getX_0(), d - e.getY_0())), null != e))) return e; return null; }; GT1559.prototype.findButtonByID_2 = function (a, b) { if (instanceOf(a, GT1559)) { var d = a; return d.getApplicationID_0() == b ? d : null; } for (var e = a.getChildCount_0() - 1; 0 <= e; e--) if (((d = a.getChild_1(e)), instanceOf(d, GT1437) && ((d = this.findButtonByID_2(d, b)), null != d))) return d; return null; }; GT1559.prototype.defaultchildrenforstates = [0, 1, 2, 3]; GT1559.prototype.ThreeStateButton = [GT1236.prototype.INACTIVE, GT1236.prototype.DEFAULT, GT1236.prototype.PRESSED]; GT1559.prototype.OneStateButton = [GT1236.prototype.DEFAULT]; var GT744 = GT852.extend( { initialConstructor_0: function () { this.renderer = this.animEventsCallback = this.updateCallback = this.timer = this.animationContext = this.animation = null; this.startTime = this.updateInterval = 0; this.isPaused = this.looping = !1; this.timePause = 0; this.animationInitialized = !1; this.frameCallbacks = this.finishCallbacks = this.startCallbacks = null; this.animationOffsetY = this.animationOffsetX = 0; GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.renderer = this.animEventsCallback = this.updateCallback = this.timer = this.animationContext = this.animation = null; this.startTime = this.updateInterval = 0; this.isPaused = this.looping = !1; this.timePause = 0; this.animationInitialized = !1; this.frameCallbacks = this.finishCallbacks = this.startCallbacks = null; this.animationOffsetY = this.animationOffsetX = 0; GT852.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.looping = n; this.isPaused = !1; this.timePause = 0; this.startCallbacks = new java_util_JavaScriptVector(); this.finishCallbacks = new java_util_JavaScriptVector(); this.frameCallbacks = new java_util_JavaScriptVector(); this.animationInitialized = !1; this.updateCallback = new GT911(this); this.animEventsCallback = new GT912(this); this.animationOffsetY = this.animationOffsetX = 0; this.renderer = new GT693(this, p); this.animationContext = new GT1646(this.renderer, null); this.animation = new GT1549(p.getResourceManager_0().getJSONObject_1(k).getData_0(), m, n); this.updateInterval = 1; }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { GT744.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, m, n, p); this.animationOffsetX = q; this.animationOffsetY = r; }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || this.finishCallbacks.addElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, addStartCallback_1: function (a) { null == a || this.startCallbacks.contains_1(a) || this.startCallbacks.addElement_1(a); }, addFrameCallback_2: function (a, b) { if (null != b) { var d = new GT1421(a, b); this.frameCallbacks.contains_1(d) || this.frameCallbacks.add_1(d); } }, addImageToContainerReplacement_1: function (a) { this.renderer.addImageToContainerReplacement_1(a); }, addListenerForReplacementContainer_2: function (a, b) { if (null != this.renderer) { var d = this.renderer.getReplacementContainerWithFilename_1(a); if (null != d) return d.addUpdateListener_1(b); GT744.prototype.LOG.i_1("GUIKeyFrameAnimationPlayer: WARNING listener was not added because no container for filename " + a + " was found."); } else GT744.prototype.LOG.i_1("GUIKeyFrameAnimationPlayer: WARNING listener was not added because renderer is null"); return !1; }, removeListenerFromReplacementContainer_2: function (a, b) { if (null != this.renderer) { var d = this.renderer.getReplacementContainerWithFilename_1(a); if (null != d) return d.removeUpdateListener_1(b); GT744.prototype.LOG.i_1("GUIKeyFrameAnimationPlayer: WARNING listener was not removed because no container for filename " + a + " was found."); } else GT744.prototype.LOG.i_1("GUIKeyFrameAnimationPlayer: WARNING listener was not removed because renderer is null"); return !1; }, removeStartCallback_1: function (a) { this.startCallbacks.removeElement_1(a); }, removeFrameCallback_2: function (a, b) { var d = new GT1421(a, b); this.frameCallbacks.removeElement_1(d); }, removeAllFrameCallbacksForFrame_1: function (a) { for (var b = this.frameCallbacks.size_0() - 1; 0 <= b; b--) { var d = this.frameCallbacks.get_1(b); null != d && d.getTriggerIndex_0() == a && this.frameCallbacks.removeElementAt_1(b); } }, start_0: function () { if (this.isAlive_0()) { for (var a = this.startCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); this.isPaused = !1; this.startTime = this.timer.currentTimeMillis_0(); this.animationInitialized ? this.animation.reset_0() : (this.animation.init_4(this.animationContext, this.width, this.height, this.startTime), this.animation.addAnimCallback_1(this.animEventsCallback), (this.animationInitialized = !0)); this.update_0(); } else GT1650.prototype.assertFailed_1("Trying to start a GUIKeyFrameAnimationPlayer which was already destroyed"); }, pause_0: function () { this.isAlive_0() ? ((this.isPaused = !0), (this.timePause = this.timer.currentTimeMillis_0()), this.timer.removeCallback_2(this.updateCallback, !1)) : GT1650.prototype.assertFailed_1("Trying to pause a GUIKeyFrameAnimationPlayer which was already destroyed"); }, stop_0: function () { this.isAlive_0() ? ((this.isPaused = !1), this.hideAllGuiObjects_0(), this.timer.removeCallback_2(this.updateCallback, !1)) : GT1650.prototype.assertFailed_1("Trying to stop a GUIKeyFrameAnimationPlayer which was already destroyed"); }, resume_0: function () { this.isAlive_0() ? this.isPaused && ((this.isPaused = !1), (this.startTime -= this.timePause - this.timer.currentTimeMillis_0()), this.update_0()) : GT1650.prototype.assertFailed_1("Trying to resume a GUIKeyFrameAnimationPlayer which was already destroyed"); }, update_0: function () { !this.animation.isComplete_0() && this.isAlive_0() && (this.clearRendererObjectPoolUsage_0(), this.animation.update_1(this.timer.currentTimeMillis_0()), this.triggerFrameCallbacks_0(), this.animation.render_1(this.renderer), this.animation.isComplete_0() ? this.triggerFinishCallbacks_0() : this.timer.triggerCallbackAfter_2(this.updateCallback, this.updateInterval)); }, moveToLastFrame_0: function () { this.startTime -= 1e7; this.update_0(); }, triggerFrameCallbacks_0: function () { for (var a = Integer.truncate_1(this.animation.getCurrentFrameIndex_0()), b = 0; b < this.frameCallbacks.size_0(); b++) { var d = this.frameCallbacks.get_1(b); a >= d.getTriggerIndex_0() && !d.wasTriggered_0() && (d.getCallback_0().run_0(), d.setWasTriggered_1(!0)); } }, triggerFinishCallbacks_0: function () { for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, clearRendererObjectPoolUsage_0: function () { this.renderer.clearObjectPoolUsage_0(); }, hideAllGuiObjects_0: function () { this.isPaused || this.renderer.hideAllGuiObjects_0(); }, onAnimationComplete_0: function () { this.looping && (this.animation.reset_0(), (this.startTime = this.timer.currentTimeMillis_0())); for (var a = 0; a < this.frameCallbacks.size_0(); a++) this.frameCallbacks.get_1(a).setWasTriggered_1(!1); }, setAnimationOffset_2: function (a, b) { this.animationOffsetX = a; this.animationOffsetY = b; }, getAnimationOffsetX_0: function () { return this.animationOffsetX; }, getAnimationOffsetY_0: function () { return this.animationOffsetY; }, destroyImpl_2: function (a, b) { GT1650.prototype.assertExp_2(this.isAlive_0(), "Trying to call destroy() on an already destroyed GUIKeyFrameAnimationPlayer"); this.renderer.destroyAllGuiObjects_0(); this.timer.removeCallback_2(this.updateCallback, !1); GT852.prototype.destroyImpl_2.call(this, a, b); }, }, "GT744", [] ), GT591 = GT1437.extend( { initialConstructor_0: function () { this.filename = this.listeners = null; GT1437.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.filename = this.listeners = null; GT1437.prototype.initialConstructor_1.call(this, a); this.listeners = new java_util_JavaScriptVector(); this.filename = b; }, getReplacementFileName_0: function () { return this.filename; }, addUpdateListener_1: function (a) { if (null != a && !this.listeners.contains_1(a)) return this.listeners.addElement_1(a), !0; GT591.prototype.LOGGER.i_1("GUIKeyFrameAnimationPlayer: WARNING listener was not added because the same instance is already added (or listener is null)."); return !1; }, removeUpdateListener_1: function (a) { return null != a ? this.listeners.removeElement_1(a) : !1; }, update_4: function (a, b, d, e) { if (null != this.listeners) for (var f = 0; f < this.listeners.size_0(); f++) this.listeners.get_1(f).update_5(this, a, b, d, e); }, destroyImpl_2: function (a, b) { GT1437.prototype.destroyImpl_2.call(this, a, b); this.listeners.clear_0(); this.listeners = null; }, }, "GT591", [] ), GT911 = Class.extend( { initialConstructor_0: function () { this.playerToUpdate = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.playerToUpdate = null; this.playerToUpdate = a; }, run_0: function () { this.playerToUpdate.update_0(); }, }, "GT911", [Runnable] ), GT912 = Class.extend( { initialConstructor_0: function () { this.player = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.player = null; this.player = a; }, onAnimComplete_0: function () { this.player.onAnimationComplete_0(); }, onAnimEvent_1: function (a) {}, }, "GT912", [GT1177] ), GT693 = Class.extend( { initialConstructor_0: function () { this.currentMatrixArray = this.filenameToContainerMapping = this.guiObjectPool = this.fileNamesToReplaceWithContainer = this.guiTransformedImages = this.images = this.skinManager = this.player = null; this.currentFrameIdx = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.currentMatrixArray = this.filenameToContainerMapping = this.guiObjectPool = this.fileNamesToReplaceWithContainer = this.guiTransformedImages = this.images = this.skinManager = this.player = null; this.currentFrameIdx = 0; this.player = a; this.skinManager = b; this.images = new java_util_JavaScriptVector(); this.fileNamesToReplaceWithContainer = new java_util_JavaScriptVector(); this.guiTransformedImages = new java_util_JavaScriptVector(); this.filenameToContainerMapping = new java_util_JavaScriptHashtable(); this.currentMatrixArray = [].createArray(6).init(0); this.guiObjectPool = new java_util_JavaScriptVector(); this.currentFrameIdx = 0; }, setCurrentFrameIndex_1: function (a) { this.currentFrameIdx = a; }, getReplacementContainerWithFilename_1: function (a) { for (var b = this.filenameToContainerMapping.keys_0(); b.hasMoreElements_0(); ) { var d = b.nextElement_0(), d = this.filenameToContainerMapping.get_1(d); if (d.getReplacementFileName_0().endsWith_1(a)) return d; } return null; }, addImageToContainerReplacement_1: function (a) { null == a || this.fileNamesToReplaceWithContainer.contains_1(a) || this.fileNamesToReplaceWithContainer.addElement_1(a); }, drawImage_6: function (a, b, d, e, f, g) {}, drawImage_9: function (a, b, d, e, f, g, k, m, n) {}, drawImage_3: function (a, b, d) { if (!(a >= this.images.size_0())) if ((b.toDoubleArray_1(this.currentMatrixArray), (b = this.filenameToContainerMapping.get_1("" + a)), null != b)) b.reorder_1(!0), b.hide_1(!1), b.update_4(this.currentFrameIdx, this.currentMatrixArray, this.currentMatrixArray[4] + this.player.getAnimationOffsetX_0(), this.currentMatrixArray[5] + this.player.getAnimationOffsetY_0()); else { b = null; for (var e = this.guiObjectPool.get_1(a), f = !1, g = 0; g < e.size_0() && !f; g++) { var k = e.get_1(g); k.isUsed_0() || ((b = k.getGUITransformedImage_0()), k.setUsed_1(!0), (f = !0)); } null == b && ((b = new GT1075(this.player, 0, 0, this.player.getWidth_0(), this.player.getHeight_0(), this.images.get_1(a), 0, 0)), e.add_1(new GT592(b, !0))); b.setTransformation_1(this.currentMatrixArray); b.setTranslation_2(this.currentMatrixArray[4] + this.player.getAnimationOffsetX_0(), this.currentMatrixArray[5] + this.player.getAnimationOffsetY_0()); b.setAlpha_1(Integer.truncate_1(255 * d)); b.hide_1(!1); b.reorderToPosition_1(b.getParent_0().getChildCount_0() - 1); } }, clearObjectPoolUsage_0: function () { for (var a = 0; a < this.guiObjectPool.size_0(); a++) for (var b = this.guiObjectPool.get_1(a), d = 0; d < b.size_0(); d++) { var e = b.get_1(d); e.setUsed_1(!1); e.getGUITransformedImage_0().hide_1(!0); } this.hideReplacementContainer_0(); }, checkIfContainerIsSpecifiedForImageFileName_1: function (a) { for (var b = 0; b < this.fileNamesToReplaceWithContainer.size_0(); b++) { var d = this.fileNamesToReplaceWithContainer.get_1(b); if (a.endsWith_1(d)) return !0; } return !1; }, declareImage_1: function (a) { if (this.checkIfContainerIsSpecifiedForImageFileName_1(a)) this.images.add_1(new GT1637()), this.guiObjectPool.add_1(new java_util_JavaScriptVector()), (a = new GT591(this.player, a)), this.filenameToContainerMapping.put_2("" + (this.images.size_0() - 1), a); else { a = this.skinManager.getResourceManager_0().getImage_1(a); this.images.add_1(a); a = new GT1075(this.player, 0, 0, this.player.getWidth_0(), this.player.getHeight_0(), a, 0, 0); a.hide_1(!0); var b = new java_util_JavaScriptVector(); b.add_1(new GT592(a)); this.guiObjectPool.add_1(b); } return this.images.size_0() - 1; }, getImageInfo_1: function (a) { if (a >= this.images.size_0()) return null; a = this.images.get_1(a); var b = new GT1659(); b.height = a.getHeight_0(); b.width = a.getWidth_0(); return b; }, hideAllGuiObjects_0: function () { for (var a = 0; a < this.guiObjectPool.size_0(); a++) for (var b = this.guiObjectPool.get_1(a), d = 0; d < b.size_0(); d++) b.get_1(d).getGUITransformedImage_0().hide_1(!0); this.hideReplacementContainer_0(); }, hideReplacementContainer_0: function () { for (var a = this.filenameToContainerMapping.keys_0(); a.hasMoreElements_0(); ) { var b = a.nextElement_0(); this.filenameToContainerMapping.get_1(b).hide_1(!0); } }, destroyAllGuiObjects_0: function () { for (var a = 0; a < this.guiObjectPool.size_0(); a++) for (var b = this.guiObjectPool.get_1(a), d = 0; d < b.size_0(); d++) { var e = b.get_1(d); GT1560.prototype.destroyIfAlive_1(e.getGUITransformedImage_0()); } this.guiObjectPool.clear_0(); this.guiObjectPool = null; for (a = this.filenameToContainerMapping.keys_0(); a.hasMoreElements_0(); ) (b = a.nextElement_0()), (b = this.filenameToContainerMapping.get_1(b)), GT1560.prototype.destroyIfAlive_1(b); this.filenameToContainerMapping.clear_0(); this.filenameToContainerMapping = null; }, getWidth_0: function () { return null != this.player ? this.player.getWidth_0() : -1; }, getHeight_0: function () { return null != this.player ? this.player.getHeight_0() : -1; }, drawImageWithClip_4: function (a, b, d, e) {}, }, "GT693", [GT1619] ), GT592 = Class.extend( { initialConstructor_0: function () { this.transformedImageObject = null; this.used = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.transformedImageObject = null; this.used = !1; this.transformedImageObject = a; this.used = !1; }, initialConstructor_2: function (a, b) { this.transformedImageObject = null; this.used = !1; this.transformedImageObject = a; this.used = b; }, isUsed_0: function () { return this.used; }, setUsed_1: function (a) { this.used = a; }, getGUITransformedImage_0: function () { return this.transformedImageObject; }, }, "GT592", [] ), GT1421 = Class.extend( { initialConstructor_0: function () { this.triggerIndex = 0; this.mWasTriggered = !1; this.callback = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.triggerIndex = 0; this.mWasTriggered = !1; this.callback = null; this.triggerIndex = a; this.callback = b; }, getTriggerIndex_0: function () { return this.triggerIndex; }, wasTriggered_0: function () { return this.mWasTriggered; }, setWasTriggered_1: function (a) { this.mWasTriggered = a; }, getCallback_0: function () { return this.callback; }, equals_1: function (a) { return null != a && instanceOf(a, GT1421) ? (a.getTriggerIndex_0() == this.triggerIndex ? this.callback.equals_1(a.getCallback_0()) : !1) : !1; }, }, "GT1421", [] ); GT744.prototype.LOG = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); GT591.prototype.LOGGER = GT1650.prototype.getLogFlags_1("gamegui.core.gui"); var GT1422 = GT1559.extend( { initialConstructor_0: function () { this.coords = null; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.coords = null; GT1559.prototype.initialConstructor_5.call(this, a, this.getMinX_1(b), this.getMinY_1(b), this.getMaxX_1(b) - this.getMinX_1(b), this.getMaxY_1(b) - this.getMinY_1(b)); GT1650.prototype.assertExp_2(0 == b.length % 2, "anzahl der koordinaten muss gerade sein (xy-paare)"); var d = this.getMinX_1(b), e = this.getMinY_1(b); this.coords = [].createArray(b.length).init(0); java_lang_System.prototype.arraycopy_5(b, 0, this.coords, 0, b.length); for (var f = 0; f < this.coords.length; f += 2) this.coords[f] -= d; for (f = 1; f < this.coords.length; f += 2) this.coords[f] -= e; }, isClickablePosition_2: function (a, b) { return this.isInside_2(a, b); }, getAvgX_0: function () { for (var a = 0, b = 0, d = 0; d < this.coords.length; d += 2) (a += this.coords[d]), b++; return Math.div(a, b) + this.getX_0(); }, getAvgY_0: function () { for (var a = 0, b = 0, d = 1; d < this.coords.length; d += 2) (a += this.coords[d]), b++; return Math.div(a, b) + this.getY_0(); }, getXPoint_1: function (a) { return this.coords[2 * a]; }, getMinX_0: function () { return this.getMinX_1(this.coords) + this.getX_0(); }, getMaxX_0: function () { return this.getMaxX_1(this.coords) + this.getX_0(); }, getMinY_0: function () { return this.getMinY_1(this.coords) + this.getY_0(); }, getMaxY_0: function () { return this.getMaxY_1(this.coords) + this.getY_0(); }, getYPoint_1: function (a) { return this.coords[2 * a + 1]; }, numCoords_0: function () { return Math.div(this.coords.length, 2); }, isInside_2: function (a, b) { var d = Math.div(this.coords.length, 2), e, f, g = !1; e = 0; for (f = d - 1; e < d; f = e++) ((this.getYPoint_1(e) <= b && b < this.getYPoint_1(f)) || (this.getYPoint_1(f) <= b && b < this.getYPoint_1(e))) && a < Math.div((this.getXPoint_1(f) - this.getXPoint_1(e)) * (b - this.getYPoint_1(e)), this.getYPoint_1(f) - this.getYPoint_1(e)) + this.getXPoint_1(e) && (g = !g); return g; }, }, "GT1422", [] ); GT1422.prototype.getMaxY_1 = function (a) { for (var b = -1e3, d = 1; d < a.length; d += 2) a[d] > b && (b = a[d]); return b; }; GT1422.prototype.getMinY_1 = function (a) { for (var b = 1e3, d = 1; d < a.length; d += 2) a[d] < b && (b = a[d]); return b; }; GT1422.prototype.getMaxX_1 = function (a) { for (var b = -1e3, d = 0; d < a.length; d += 2) a[d] > b && (b = a[d]); return b; }; GT1422.prototype.getMinX_1 = function (a) { for (var b = 1e3, d = 0; d < a.length; d += 2) a[d] < b && (b = a[d]); return b; }; var GT1112 = GT1559.extend( { initialConstructor_0: function () { this.orig_height = this.orig_width = this.rotation = 0; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.orig_height = this.orig_width = this.rotation = 0; GT1559.prototype.initialConstructor_3.call(this, a, b, d); this.rotation = 0; this.orig_height = this.orig_width = -1; }, initialConstructor_5: function (a, b, d, e, f) { this.orig_height = this.orig_width = this.rotation = 0; GT1559.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.rotation = 0; this.orig_width = e; this.orig_height = f; }, resizeToContent_0: function () { GT1559.prototype.resizeToContent_0.call(this); 0 >= this.orig_width && ((this.orig_width = this.getWidth_0()), (this.orig_height = this.getHeight_0())); }, resize_2: function (a, b) { GT1559.prototype.resize_2.call(this, a, b); 0 >= this.orig_width && ((this.orig_width = a), (this.orig_height = b)); }, getRotation_0: function () { return this.rotation; }, setRotation_1: function (a) { GT1650.prototype.assertExp_2(-1 != this.orig_width, "call setrotation after finishbutton or resize"); GT1650.prototype.assertExp_2(-1 != this.orig_height, "call setrotation after finishbutton or resize"); this.rotation = a; var b = Math.abs_1(Math.sin_1(a) * this.orig_width) + Math.abs_1(Math.cos_1(a) * this.orig_height), d = Math.abs_1(Math.sin_1(a) * this.orig_height) + Math.abs_1(Math.cos_1(a) * this.orig_width); this.resizeAllRecursive_2(Integer.truncate_1(d), Integer.truncate_1(b)); this.setTranslationAndRotation_3(d / 2, b / 2, a); }, setTranslationAndRotation_3: function (a, b, d) { this.setTranslationAndRotation_4(this, a, b, d); }, setTranslationAndRotation_4: function (a, b, d, e) { for (var f = 0; f < a.getChildCount_0(); f++) { var g = a.getChild_1(f); instanceOf(g, GT1437) ? this.setTranslationAndRotation_4(g, b, d, e) : instanceOf(g, GT1555) && g.setRotation_1(e); instanceOf(g, GT1429) && g.setTranslation_2(b, d); } }, getUnrotatedWidth_0: function () { return this.orig_width; }, getUnrotatedHeight_0: function () { return this.orig_height; }, setImageAndStates_2: function (a, b) { this.destroyChildren_0(); for (var d = a.getWidth_0(), e = Math.div(a.getHeight_0(), a.getRows_0()), f = 0; f < a.getRows_0(); f++) new GT1075(this, 0, 0, d, e, a, Math.div(d, 2), f * e + Math.div(e, 2), 0, f * e, d, e).setTranslation_2(Math.div(d, 2), Math.div(e, 2)); GT1650.prototype.assertExp_2(b.length == this.getChildCount_0(), "incorrect number of states states:" + b.length + " image tiles:" + this.getChildCount_0()); for (f = 0; f < b.length; f++) this.setChildForState_2(b[f], f); this.finishButton_0(); }, isClickablePosition_2: function (a, b) { a -= Math.div(this.getWidth_0(), 2); b -= Math.div(this.getHeight_0(), 2); var d = Integer.truncate_1(a * Math.cos_1(this.rotation) - b * Math.sin_1(this.rotation)), e = Integer.truncate_1(a * Math.sin_1(this.rotation) + b * Math.cos_1(this.rotation)), d = d + Math.div(this.orig_width, 2), e = e + Math.div(this.orig_height, 2); return 0 <= d && 0 <= e && d < this.orig_width && e < this.orig_height; }, }, "GT1112", [GT1555] ), GT1175 = GT1559.extend( { initialConstructor_0: function () { this.minHandleSize = this.visiblecontent = this.totalcontent = this.contentperstep = 0; this.imageBar = null; this.precisePixelPos = 0; this.keepPreciseValue = !1; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.minHandleSize = this.visiblecontent = this.totalcontent = this.contentperstep = 0; this.imageBar = null; this.precisePixelPos = 0; this.keepPreciseValue = !1; GT1559.prototype.initialConstructor_5.call(this, a, 0, 0, 1, 1); this.contentperstep = b; GT1650.prototype.assertExp_2(0 < b, "step <=0"); this.minHandleSize = GT1175.prototype.MINHANDLESIZE_DEFAULT; this.imageBar = d; this.setDragable_4(!0, !1, 0, 0); this.setRangeAndValue_3(e, f, 0); }, initialConstructor_3: function (a, b, d) { GT1175.prototype.initialConstructor_5.call(this, a, b, d, 1, 1); }, getContentPerStep_0: function () { return this.contentperstep; }, setRangeAndValue_3: function (a, b, d) { this.setRange_2(a, b); this.setValue_1(d); }, setRange_2: function (a, b) { 1 > b && (b = 1); b > a && (a = b); this.totalcontent = a; this.visiblecontent = b; }, setValue_1: function (a) { this.setValue_2(a, !1); }, setValue_2: function (a, b) { a + this.visiblecontent - 0 > this.totalcontent && (a = this.totalcontent - this.visiblecontent); 0 > a && (a = 0); var d = this.getParent_0(); this.precisePixelPos = 0; if (0 < a) { var e = d.getHandlePixelRange_0(), f = this.totalcontent - this.visiblecontent; this.precisePixelPos = b ? (e * a + f - 1) / f : (e * a) / f; } this.keepPreciseValue = !0; this.move_2(d.getHandleXByPixelpos_1(GT1672.prototype.doubleToInt_1(this.precisePixelPos)), d.getHandleYByPixelpos_1(GT1672.prototype.doubleToInt_1(this.precisePixelPos))); this.keepPreciseValue = !1; d.fireValueChangedEvent_0(); }, getTotalContent_0: function () { return this.totalcontent; }, getVisibleContent_0: function () { return this.visiblecontent; }, setMinHandleSize_1: function (a) { this.minHandleSize = a; }, getMinHandleSize_0: function () { return this.minHandleSize; }, getValue_0: function () { var a = this.getParent_0().getHandlePixelRange_0(); return 0 >= a ? 0 : GT1672.prototype.doubleToInt_1((this.precisePixelPos * (this.totalcontent - this.visiblecontent)) / a); }, initiateScroll_1: function (a) { var b = this.getValue_0(), d = 0 > a, b = d ? Math.div(b + this.contentperstep - 1, this.contentperstep) * this.contentperstep + this.contentperstep * a : Math.div(b, this.contentperstep) * this.contentperstep + this.contentperstep * a; this.setValue_2(b, !d); }, initiateScroll_2: function (a, b) { if (b) { var d = this.getValue_0(), d = a ? d - this.visiblecontent : d + this.visiblecontent; this.setValue_2(d, !a); } else this.initiateScroll_1(a ? -1 : 1); }, refreshDisplay_0: function () { this.destroyChildren_0(); new GT1437(this, 0, 0, this.width, this.height); this.createBarContainer_1(1); this.createBarContainer_1(2); this.createBarContainer_1(3); this.finishButton_0(); }, createBarContainer_1: function (a) { var b = this.getWidth_0(), d = this.getHeight_0(), e = new GT1437(this, 0, 0, b, d); if (null == this.imageBar) new GT1440(e, 0, 0, b, d, GT1634.prototype.black), new GT1440(e, 0, 0, b - 1, d - 1, new GT1634(198, 195, 198)), new GT1440(e, 1, 1, b - 2, d - 2, new GT1634(132, 130, 132)), new GT1440(e, 1, 1, b - 2, d - 2, new GT1634(132, 130, 132)), new GT1440(e, 1, 1, b - 3, d - 3, GT1634.prototype.white), new GT1440(e, 2, 2, b - 4, d - 4, new GT1634(198, 195, 198)); else { var f = this.imageBar.getColumnWidth_0(), g = this.imageBar.getRowHeight_0(), k = b > f ? Math.div(b - f, 2) : 0, m = d > g ? Math.div(d - g, 2) : 0; a = new GT1287( e, this.imageBar, 1 == this.imageBar.getRows_0() ? k : 0, 1 == this.imageBar.getColumns_0() ? m : 0, 1 == this.imageBar.getRows_0() ? Math.min_2(b, f) : b, 1 == this.imageBar.getColumns_0() ? Math.min_2(d, g) : d, a - 1 < this.imageBar.getColumns_0() ? a - 1 : 0, a - 1 < this.imageBar.getRows_0() ? a - 1 : 0 ); d = Math.min_2(Math.div(d, 3), Math.div(g, 3)); b = Math.min_2(Math.div(b, 3), Math.div(f, 3)); a.setInsets_4(1 == this.imageBar.getColumns_0() ? b : 0, 1 == this.imageBar.getColumns_0() ? b : 0, 1 == this.imageBar.getRows_0() ? d : 0, 1 == this.imageBar.getRows_0() ? d : 0); } }, move_2: function (a, b) { this.keepPreciseValue || (this.precisePixelPos = this.getParent_0().getHandlePixelPos_0()); GT1559.prototype.move_2.call(this, a, b); }, }, "GT1175", [] ); GT1175.prototype.MINHANDLESIZE_DEFAULT = 30; var GT1319 = GT1559.extend( { initialConstructor_0: function () { this.handleWidth = this.value = this.max = this.min = 0; this.background = this.sliderListeners = null; this.setDragAreaOnFinishButton = !1; this.dragAreaWidth = 0; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.handleWidth = this.value = this.max = this.min = 0; this.background = this.sliderListeners = null; this.setDragAreaOnFinishButton = !1; this.dragAreaWidth = 0; GT1559.prototype.initialConstructor_3.call(this, a, b, d); this.handleWidth = 0; this.dragAreaWidth = e; this.sliderListeners = new java_util_JavaScriptVector(); this.setDragable_4(!0, !1, 0, 0); this.setDragArea_4(b, d, this.dragAreaWidth, 0); this.setDragAreaOnFinishButton = !0; this.min = f; this.max = g; this.value = f; }, setImageHandle_1: function (a) { this.handleWidth = a.getWidth_0(); 1 == a.getRows_0() && this.setImageAndStates_2(a, [GT1236.prototype.DEFAULT]); 2 == a.getRows_0() && this.setImageAndStates_2(a, [GT1236.prototype.DEFAULT, GT1236.prototype.PRESSED]); 3 == a.getRows_0() && this.setImageAndStates_2(a, [GT1236.prototype.DEFAULT, GT1236.prototype.PRESSED, GT1236.prototype.MOUSEOVER]); 4 == a.getRows_0() && this.setImage_1(a); }, setBackground_1: function (a) { this.background = a; }, finishButton_0: function () { GT1559.prototype.finishButton_0.call(this); this.setDragAreaOnFinishButton && ((this.handleWidth = this.getWidth_0()), this.setDragArea_4(this.x, this.y, this.dragAreaWidth - this.handleWidth, 0)); }, destroyImpl_2: function (a, b) { GT1559.prototype.destroyImpl_2.call(this, a, b); this.sliderListeners.setSize_1(0); }, getValue_0: function () { return this.value; }, calculateValueFromPosition_0: function () { var a = this.getX_0() - this.getDragAreaX_0(), b = this.getDragAreaWidth_0(); return 0 >= b || 0 >= a ? this.min : a >= b ? this.max : this.min + GT1672.prototype.doubleToInt_1(((this.max - this.min) * a) / b); }, setValue_1: function (a) { if (!((this.max > this.min && (a < this.min || a > this.max)) || (this.min > this.max && (a < this.max || a > this.min)) || 0 == this.max - this.min)) { var b = this.getDragAreaWidth_0(), b = 1 + Math.div((a - this.min) * b, this.max - this.min); a == this.min && (b = 0); b += this.getDragAreaX_0(); GT1559.prototype.move_2.call(this, b, this.getY_0()); null != this.background && this.background.resize_2(b + Math.div(this.handleWidth, 2), this.background.getHeight_0()); if (a != this.value) for (this.value = a, a = 0; a < this.sliderListeners.size_0(); a++) this.sliderListeners.elementAt_1(a).sliderValueChanged_1(this); } }, setMinMax_2: function (a, b) { var d = this.getValue_0(); this.min = a; this.max = b; this.setValue_1(d); }, getMin_0: function () { return this.min; }, getMax_0: function () { return this.max; }, addSliderListener_1: function (a) { this.sliderListeners.addElement_1(a); }, move_2: function (a, b) { GT1559.prototype.move_2.call(this, a, b); null != this.background && this.background.resize_2(a + Math.div(this.handleWidth, 2), this.background.getHeight_0()); var d = this.calculateValueFromPosition_0(); if (d != this.value) for (this.value = d, d = 0; d < this.sliderListeners.size_0(); d++) this.sliderListeners.elementAt_1(d).sliderValueChanged_1(this); }, handleDrag_0: function () { var a = this.calculateValueFromPosition_0(); if (a != this.value) for (this.value = a, GT1559.prototype.handleDrag_0.call(this), a = 0; a < this.sliderListeners.size_0(); a++) this.sliderListeners.elementAt_1(a).sliderValueChanged_1(this); else GT1559.prototype.handleDrag_0.call(this); }, handleUp_0: function () { GT1559.prototype.handleUp_0.call(this); for (var a = 0; a < this.sliderListeners.size_0(); a++) this.sliderListeners.elementAt_1(a).sliderDropped_1(this); }, }, "GT1319", [] ), GT1550 = GT1365.extend( { initialConstructor_0: function () { this.handler = null; this.cyclic = this.active = !1; GT1365.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.handler = null; this.cyclic = this.active = !1; GT1365.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.handler = new GT1197(this, this.getSpinnterListeners_0()); this.active = !0; }, destroyImpl_2: function (a, b) { GT1365.prototype.destroyImpl_2.call(this, a, b); this.handler.destroy_0(); }, setValues_2: function (a, b) { var d = this.setValuesImpl_2(a, b); this.updateActiveState_0(); d != this.getValue_0() && this.notifySpinnerValueChanged_0(); }, init_0: function () { var a = this.getButtonUp_0(); null != a && a.addButtonListener_1(this.handler); a = this.getButtonDown_0(); null != a && a.addButtonListener_1(this.handler); this.update_0(); }, removeStandardListener_0: function () { var a = this.getButtonUp_0(); null != a && a.removeButtonListener_1(this.handler); a = this.getButtonDown_0(); null != a && a.removeButtonListener_1(this.handler); }, isCyclic_0: function () { return this.cyclic; }, setCyclic_1: function (a) { this.cyclic = a; }, setStepUp_0: function () { var a = this.setStepUpImpl_1(this.cyclic); a && this.update_0(); return a; }, setStepDown_0: function () { var a = this.setStepDownImpl_1(this.cyclic); a && this.update_0(); return a; }, setFirstValue_0: function () { var a = this.setFirstValueImpl_0(); a && this.update_0(); return a; }, setLastValue_0: function () { var a = this.setLastValueImpl_0(); a && this.update_0(); return a; }, update_0: function () { this.updateActiveState_0(); this.notifySpinnerValueChanged_0(); }, updateActiveState_0: function () { var a = this.getButtonUp_0(); null != a && a.setActive_1(this.active && (this.getCurrentStep_0() < this.getNumberOfValues_0() - 1 || this.cyclic) && 1 < this.getNumberOfValues_0()); a = this.getButtonDown_0(); null != a && a.setActive_1(this.active && (0 < this.getCurrentStep_0() || this.cyclic) && 1 < this.getNumberOfValues_0()); }, setValue_1: function (a) { this.setValueImpl_1(a) != a && this.update_0(); }, getButtonUp_0: function () { return this.getButton_1(GT1550.prototype.IDX_BUTTON_UP); }, getButtonDown_0: function () { return this.getButton_1(GT1550.prototype.IDX_BUTTON_DOWN); }, setActive_1: function (a) { this.active = a; this.updateActiveState_0(); }, isActive_0: function () { return this.active; }, getButton_1: function (a) { if (2 > this.getChildCount_0()) return null; a = this.getChild_1(a); return null != a && instanceOf(a, GT1559) ? a : null; }, }, "GT1550", [] ); GT1550.prototype.IDX_BUTTON_UP = 0; GT1550.prototype.IDX_BUTTON_DOWN = 1; var GT1287 = GT852.extend( { initialConstructor_0: function () { this.image = null; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = this.sourceHeight = this.sourceWidth = this.sourceY = this.sourceX = 0; GT852.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1287.prototype.initialConstructor_8.call(this, a, null, b, d, e, f, -1, -1); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1287.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, -1, -1); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this.image = null; this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = this.sourceHeight = this.sourceWidth = this.sourceY = this.sourceX = 0; GT852.prototype.initialConstructor_5.call(this, a, d, e, f, g); GT1650.prototype.assertExp_2(null == b || k < b.getColumns_0(), "Wrong column"); GT1650.prototype.assertExp_2(null == b || m < b.getRows_0(), "Wrong rows"); GT1650.prototype.assertExp_2(0 < f && 0 < g, "Bad dimensions"); this.sourceHeight = this.sourceWidth = this.sourceY = this.sourceX = this.insetBottom = this.insetTop = this.insetRight = this.insetLeft = -1; null != b && 0 <= k && ((this.sourceX = b.getColumnWidth_0() * k), (this.sourceWidth = b.getColumnWidth_0())); null != b && 0 <= m && ((this.sourceY = b.getRowHeight_0() * m), (this.sourceHeight = b.getRowHeight_0())); this.alpha = 255; null != b && this.setImage_1(b); }, setImage_1: function (a) { this.image != a && ((this.image = a), this.update_0()); }, setSubImage_4: function (a, b, d, e) { this.sourceX = a; this.sourceY = b; this.sourceWidth = d; this.sourceHeight = e; this.update_0(); }, setInsets_4: function (a, b, d, e) { if (this.insetLeft != a || this.insetRight != b || this.insetTop != d || this.insetBottom != e) (this.insetLeft = a), (this.insetRight = b), (this.insetTop = d), (this.insetBottom = e), this.update_0(); }, getInsetLeft_0: function () { return this.insetLeft; }, getInsetRight_0: function () { return this.insetRight; }, getInsetTop_0: function () { return this.insetTop; }, getInsetBottom_0: function () { return this.insetBottom; }, getUnscaledWidth_0: function () { return 0 < this.sourceWidth ? this.sourceWidth : this.image.getWidth_0(); }, getUnscaledHeight_0: function () { return 0 < this.sourceHeight ? this.sourceHeight : this.image.getHeight_0(); }, setRepeatingBorder_1: function (a) {}, resize_2: function (a, b) { if (this.width != a || this.height != b) GT852.prototype.resize_2.call(this, a, b), this.update_0(); }, update_0: function () { this.destroyChildren_0(); if (null != this.image) { var a = this.sourceX, b = this.sourceY, d = this.sourceWidth, e = this.sourceHeight; -1 == a && (a = 0); -1 == b && (b = 0); -1 == d && (d = this.image.getWidth_0()); -1 == e && (e = this.image.getHeight_0()); var f = this.insetLeft, g = this.insetRight, k = this.insetTop, m = this.insetBottom; -1 == this.insetLeft && -1 == this.insetRight ? (g = f = Math.div(d, 3)) : -1 == this.insetLeft ? ((f = Math.div(d - this.insetRight, 2)), (g = this.insetRight)) : -1 == this.insetLeft && ((g = Math.div(d - this.insetLeft, 2)), (f = this.insetLeft)); -1 == this.insetTop && -1 == this.insetBottom ? (m = k = Math.div(e, 3)) : -1 == this.insetTop ? ((k = Math.div(e - this.insetBottom, 2)), (m = this.insetBottom)) : -1 == this.insetBottom && ((m = Math.div(e - this.insetTop, 2)), (k = this.insetTop)); new GT1224(this, 0, 0, this.getWidth_0(), this.getHeight_0(), this.image, a, b, d, e, f, g, k, m).setAlpha_1(this.alpha); } }, }, "GT1287", [] ), GT1490 = GT1449.extend( { initialConstructor_0: function () { this.fontSpecificSpacing = this.spacing = 0; this.guiText = null; this.fullHeight = 0; this.adaptiveHeight = !1; this.maxHeight = 0; GT1449.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1490.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, GT1488.prototype.LEFT, GT1489.prototype.TOP); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { GT1490.prototype.initialConstructor_9.call(this, a, b, d, e, f, k, m, GT1488.prototype.LEFT, GT1489.prototype.TOP); this.setText_1(g); }, initialConstructor_3: function (a, b, d) { GT1490.prototype.initialConstructor_9.call(this, a, 0, 0, a.getWidth_0(), a.getHeight_0(), b, d, GT1488.prototype.LEFT, GT1489.prototype.TOP); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { GT1490.prototype.initialConstructor_9.call(this, a, b, d, e, f, k, m, n, p); this.setText_1(g); this.setSpacing_1(q); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.fontSpecificSpacing = this.spacing = 0; this.guiText = null; this.fullHeight = 0; this.adaptiveHeight = !1; this.maxHeight = 0; GT1449.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.spacing = g.getHeight_0(); this.adaptiveHeight = !1; this.maxHeight = f; }, setSpacing_1: function (a) { this.spacing != a && ((this.spacing = a), this.update_0()); }, setFontSpecificSpacing_1: function (a) { this.fontSpecificSpacing != a && ((this.fontSpecificSpacing = a), this.update_0()); }, getSpacing_0: function () { return 0 < this.fontSpecificSpacing ? this.fontSpecificSpacing : this.spacing; }, setUsingAdaptiveHeight_1: function (a) { this.setUsingAdaptiveHeight_2(a, this.maxHeight); }, setUsingAdaptiveHeight_2: function (a, b) { if (this.adaptiveHeight != a || this.maxHeight != b) (this.adaptiveHeight = a), (this.maxHeight = b), this.update_0(); }, setFullHeight_1: function (a) { this.fullHeight = a; }, isUsingAdaptiveHeight_0: function () { return this.adaptiveHeight; }, update_0: function () { if (!this.isUpdateLocked_0()) { var a = this.getHeight_0(); this.cleanText_0(); null != this.getText_0() && (this.updateText_4(null, this.getFontMetrics_0(), this.getSpacing_0(), !0), a != this.getHeight_0() && ((a = this.getParent_0()), instanceOf(a, GT1158) && a.handleChildResized_1(this))); } }, cleanText_0: function () { GT1560.prototype.destroyIfAlive_1(this.guiText); }, createGUIText_3: function (a, b, d) { GT1560.prototype.destroyIfAlive_1(this.guiText); var e = GT1489.prototype.TOP.combinedFlags_1(this.getHAlign_0()), f = this.getHorizontalSpaceForText_0() - this.determineHorizontalMargin_1(a); this.guiText = new GT1606(this, Math.div(this.getWidth_0(), 2), 0, d ? f : 0, e, "", a, this.getColor_0()); this.guiText.setOutline_2(this.getOutline_0(), this.getOutlineColor_0()); this.guiText.setSpacing_1(b); (0 == this.getShadowOffsetX_0() && 0 == this.getShadowOffsetY_0()) || this.guiText.setShadow_3(this.getShadowOffsetX_0(), this.getShadowOffsetY_0(), this.getShadowColor_0()); null != this.getGradient_0() && this.guiText.setGradient_1(this.getGradient_0()); this.guiText.setText_1(this.getText_0()); this.guiText.setAlpha_1(this.alpha); this.guiText.hide_1(this.textHidden); return this.guiText; }, getGUIText_0: function () { return this.guiText; }, updateText_4: function (a, b, d, e) { this.updateText_5(a, b, d, e, !1); }, updateText_5: function (a, b, d, e, f) { f || this.createGUIText_3(b, d, e); a = this.getGUIText_0().getHeight_0(); this.setFullHeight_1(a); this.adaptiveHeight && this.adaptContainerSize_2(a, b); b = this.getTextAnchorX_0(); a = this.getTextAnchorY_1(a); this.adaptiveHeight ? this.guiText.moveAnchor_2(b, this.getInsetTop_0()) : this.guiText.moveAnchor_2(b, a); }, setAlpha_1: function (a) { GT1449.prototype.setAlpha_1.call(this, a); GT1560.prototype.isAlive_1(this.guiText) && this.guiText.setAlpha_1(a); }, setHideText_1: function (a) { this.textHidden = a; GT1560.prototype.isAlive_1(this.guiText) && this.guiText.hide_1(a); }, adaptContainerSize_2: function (a, b) { var d = a + this.getInsetTop_0() + this.getInsetBottom_0() + 2 * this.getVerticalMargin_2(b, this.getOutline_0()) + Math.abs_1(this.getShadowOffsetY_0()), d = Math.min_2(d, this.maxHeight), e = this.getY_0(); this.getVAlign_0() == GT1489.prototype.BOTTOM ? (e = this.getY_0() + this.getHeight_0() - d) : this.getVAlign_0() == GT1489.prototype.CENTER && (e = this.getY_0() + Math.div(this.getHeight_0() - d + Math.abs_1(this.getShadowOffsetY_0()), 2)); this.move_2(this.x, e); this.resize_2(this.width, d); }, getTextHeight_3: function (a, b, d) { return (1 == a ? b.getHeight_0() : a * d - d + b.getHeight_0()) + this.determineVerticalMargin_1(b); }, isAllTextVisible_0: function () { return this.fullHeight < this.getVerticalSpaceForText_0(); }, getVerticalSpaceForText_0: function () { return this.adaptiveHeight ? this.maxHeight - this.getInsetTop_0() - this.getInsetBottom_0() : GT1449.prototype.getVerticalSpaceForText_0.call(this); }, determineHorizontalMargin_1: function (a) { var b = (0 > this.getShadowOffsetX_0() ? -this.getShadowOffsetX_0() : 0) + (0 < this.getShadowOffsetX_0() ? this.getShadowOffsetX_0() : 0); return 2 * (this.getOutline_0() + GT1606.prototype.fontDependentHorizontalMargin_1(a)) + b; }, determineVerticalMargin_1: function (a) { a = (0 > this.getShadowOffsetY_0() ? -this.getShadowOffsetY_0() : 0) + (0 < this.getShadowOffsetY_0() ? this.getShadowOffsetY_0() : 0); return 2 * this.getOutline_0() + a; }, getMaxHeight_0: function () { return this.maxHeight; }, toString: function () { return "[spacing: " + this.getSpacing_0() + "] " + GT1449.prototype.toString.call(this); }, }, "GT1490", [] ), GT1002 = GT1490.extend( { initialConstructor_0: function () { this.guiImages = this.guiTexts = this.imageColumns = this.imageRows = this.imageHeights = this.imageWidths = this.images = this.textToImageReplacementCodePrefix = null; this.rtl = !1; this.imageWidthsArray = this.textToImageCodes = null; GT1490.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.guiImages = this.guiTexts = this.imageColumns = this.imageRows = this.imageHeights = this.imageWidths = this.images = this.textToImageReplacementCodePrefix = null; this.rtl = !1; this.imageWidthsArray = this.textToImageCodes = null; GT1490.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.rtl = p; this.textToImageReplacementCodePrefix = "#i"; }, setTextToImageReplacementCodePrefix_1: function (a) { this.textToImageReplacementCodePrefix = a; this.buildImageTagsAndWidthsArrays_0(); this.update_0(); }, buildImageTagsAndWidthsArrays_0: function () { if (null != this.images && 0 < this.images.size_0()) { this.textToImageCodes = [].createArray(this.images.size_0()); this.imageWidthsArray = [].createArray(this.images.size_0()).init(0); for (var a = 0; a < this.images.size_0(); ++a) null != this.images.elementAt_1(a) && ((this.textToImageCodes[a] = "" + this.textToImageReplacementCodePrefix + a), (this.imageWidthsArray[a] = this.getImageWidthFor_1(a) + GT1002.prototype.DEFAULT_X_OFFSET_AFTER_IMAGE)); } }, setImages_5: function (a, b, d, e, f) { this.images = a; this.imageWidths = b; this.imageHeights = d; this.imageColumns = e; this.imageRows = f; this.buildImageTagsAndWidthsArrays_0(); this.update_0(); }, createLines_0: function () { var a; null == this.images || this.images.isEmpty_0() ? (a = GT1398.prototype.computeWordWrap_6( this, this.getText_0(), "", this.getFontMetrics_0(), this.getHorizontalSpaceForText_0() - 2 * this.getHorizontalMargin_2(this.getFontMetrics_0(), this.getOutline_0()) - Math.abs_1(this.getShadowOffsetX_0()), !0 )) : (this.buildImageTagsAndWidthsArrays_0(), (a = this.getHorizontalSpaceForText_0() - 2 * this.getHorizontalMargin_2(this.getFontMetrics_0(), this.getOutline_0()) - Math.abs_1(this.getShadowOffsetX_0())), (a = GT1398.prototype.computeWordWrapWithImages_7(this, this.getText_0(), "", this.getFontMetrics_0(), a, this.textToImageCodes, this.imageWidthsArray))); return a; }, cleanText_0: function () { GT1490.prototype.cleanText_0.call(this); if (null != this.guiTexts) { for (var a = 0; a < this.guiTexts.size_0(); ++a) if (instanceOf(this.guiTexts.elementAt_1(a), GT1606)) { var b = this.guiTexts.elementAt_1(a); b.isAlive_0() && b.destroy_0(); } this.guiTexts.clear_0(); this.guiTexts = null; } if (null != this.guiImages) { for (a = 0; a < this.guiImages.size_0(); ++a) instanceOf(this.guiImages.elementAt_1(a), GT1591) && ((b = this.guiImages.elementAt_1(a)), b.isAlive_0() && b.destroy_0()); this.guiImages.clear_0(); this.guiImages = null; } }, getTotalLineWidth_1: function (a) { return GT1398.prototype.stringWidthImplWithImages_5(this, this.getFontMetrics_0(), a, this.textToImageCodes, this.imageWidthsArray); }, isDigit_1: function (a) { return 48 <= a && 57 >= a; }, fetchImageReplacementIndex_1: function (a) { for (var b = this.textToImageReplacementCodePrefix, d = this.textToImageReplacementCodePrefix.length_0(); d < a.length_0(); ++d) if (this.isDigit_1(a.charAt_1(d))) b += "" + a.substring_2(d, d + 1); else break; return GT1672.prototype.stringToInt_1(GT1677.prototype.replaceInString_3(b, this.textToImageReplacementCodePrefix, "")); }, determineStartX_1: function (a) { var b = 0, b = this.getHorizontalMargin_2(this.getFontMetrics_0(), this.getOutline_0()); return (b = this.getHAlign_0() == GT1488.prototype.RIGHT ? this.getHorizontalSpaceForText_0() - a : this.getHAlign_0() == GT1488.prototype.CENTER ? this.getInsetLeft_0() + Math.div(this.getHorizontalSpaceForText_0() - a, 2) : this.getInsetLeft_0() + b); }, getImageWidthFor_1: function (a) { if (a >= this.images.size_0() || null == this.images.elementAt_1(a)) return 0; var b = this.images.elementAt_1(a).getWidth_0(); return null == this.imageWidths.elementAt_1(a) ? b : this.imageWidths.elementAt_1(a).intValue_0(); }, getImageHeightFor_1: function (a) { if (a >= this.images.size_0() || null == this.images.elementAt_1(a)) return 0; var b = this.images.elementAt_1(a).getHeight_0(); return null == this.imageHeights.elementAt_1(a) ? b : this.imageHeights.elementAt_1(a).intValue_0(); }, getImageColumnFor_1: function (a) { return a >= this.images.size_0() || null == this.images.elementAt_1(a) ? 0 : null == this.imageColumns.elementAt_1(a) ? 0 : this.imageColumns.elementAt_1(a).intValue_0(); }, getImageRowFor_1: function (a) { return a >= this.images.size_0() || null == this.images.elementAt_1(a) ? 0 : null == this.imageRows.elementAt_1(a) ? 0 : this.imageRows.elementAt_1(a).intValue_0(); }, addTextField_5: function (a, b, d, e, f) { a = new GT1606(this, a, b, d, e, f, this.getColor_0(), this.getOutline_0(), this.getOutlineColor_0()); null != this.getGradient_0() && a.setGradient_1(this.getGradient_0()); (0 == this.getShadowOffsetX_0() && 0 == this.getShadowOffsetY_0()) || a.setShadow_3(this.getShadowOffsetX_0(), this.getShadowOffsetY_0(), this.getShadowColor_0()); this.guiTexts.add_1(a); this.guiTexts.lastElement_0().setAlpha_1(this.alpha); this.guiTexts.lastElement_0().hide_1(this.textHidden); return a.getWidth_0(); }, addImageToText_4: function (a, b, d, e) { if (null == this.images.elementAt_1(d)) return 0; var f = this.images.elementAt_1(d); e = Math.div(this.getImageHeightFor_1(d) - e, 2); a = new GT1591(this, a, b - e, this.getImageWidthFor_1(d), this.getImageHeightFor_1(d), f, this.getImageColumnFor_1(d), this.getImageRowFor_1(d), !1); this.guiImages.add_1(a); this.guiImages.lastElement_0().setAlpha_1(this.alpha); this.guiImages.lastElement_0().hide_1(this.textHidden); return a.getWidth_0(); }, findBiggestImageHeightInLine_1: function (a) { for (var b = -1, d = 0; d < this.textToImageCodes.length; d++) if (null != this.textToImageCodes[d] && -1 != a.indexOf_1(this.textToImageCodes[d])) { var e = this.fetchImageReplacementIndex_1(this.textToImageCodes[d]), e = this.getImageHeightFor_1(e); e > b && (b = e); } return b; }, determineStartY_2: function (a, b) { var d = this.getTextAnchorY_1(b); if (this.getVAlign_0() == GT1489.prototype.TOP) { var e = this.findBiggestImageHeightInLine_1(a[0]); e > this.getFontMetrics_0().getHeight_0() && (d += Math.div(e - this.getFontMetrics_0().getHeight_0(), 2)); } else this.getVAlign_0() == GT1489.prototype.BOTTOM ? ((e = this.findBiggestImageHeightInLine_1(a[a.length - 1])), e > this.getFontMetrics_0().getHeight_0() && (d -= Math.div(e - this.getFontMetrics_0().getHeight_0(), 2))) : this.getVAlign_0() == GT1489.prototype.CENTER && ((e = this.findBiggestImageHeightInLine_1(a[a.length - 1])), e > this.getFontMetrics_0().getHeight_0() && (d -= Math.div(e - this.getFontMetrics_0().getHeight_0(), 4)), (e = this.findBiggestImageHeightInLine_1(a[0])), e > this.getFontMetrics_0().getHeight_0() && (d += Math.div(e - this.getFontMetrics_0().getHeight_0(), 4))); return d; }, buildTextWithImages_4: function (a, b, d, e) { e = GT1489.prototype.TOP.combinedFlags_1(this.getHAlign_0()); e = this.getTextHeight_3(a.length, b, d); this.setFullHeight_1(e); this.isUsingAdaptiveHeight_0() && this.adaptContainerSize_2(e, b); b = this.determineStartY_2(a, e); this.cleanText_0(); this.guiTexts = new java_util_JavaScriptVector(); this.guiImages = new java_util_JavaScriptVector(); for (var f = 0; f < a.length; ++f) { e = this.getTotalLineWidth_1(a[f]); var g = this.determineStartX_1(e); e = GT1489.prototype.TOP.combinedFlags_1(GT1488.prototype.LEFT); this.buildLineGuiObjects_4(a[f], g, b, e); b += d; } }, findFirstImageTag_1: function (a) { for (var b = Integer.MAX_VALUE, d = 0, e = !1, f = this.textToImageCodes.length - 1; 0 <= f; f--) if (null != this.textToImageCodes[f]) { var g = a.indexOf_1(this.textToImageCodes[f]); -1 != g && g < b && ((b = g), (d = this.textToImageCodes[f].length_0()), (e = !0)); } a = [].createArray(2).init(0); a[0] = e ? b : -1; a[1] = d; return a; }, buildLineGuiObjects_4: function (a, b, d, e) { var f = this.findFirstImageTag_1(a), g = b, k = null; if (0 == f[0]) { var m = new GT1606(this, 0, 0, "This is a dummy Text!", this.getFontMetrics_0(), GT1634.prototype.white), k = m.getHeight_0(); m.destroy_0(); m = a.substring_2(0, f[1]); g += this.addImageToText_4(b, d, this.fetchImageReplacementIndex_1(m), k) + GT1002.prototype.DEFAULT_X_OFFSET_AFTER_IMAGE; k = a.substring_2(f[1], a.length_0()); } else (m = null), -1 != f[0] ? ((m = a.substring_2(0, f[0])), (k = a.substring_2(f[0], a.length_0()))) : ((m = a.substring_2(0, a.length_0())), (k = "")), (g += this.addTextField_5(b, d, e, m, this.getFontMetrics_0())); 0 < k.length_0() && this.buildLineGuiObjects_4(k, g, d, e); }, updateText_4: function (a, b, d, e) { null == this.images || this.images.isEmpty_0() ? GT1490.prototype.updateText_4.call(this, a, b, d, e) : this.buildTextWithImages_4(this.createLines_0(), b, d, e); }, setAlpha_1: function (a) { GT1490.prototype.setAlpha_1.call(this, a); if (null != this.guiTexts) for (var b = 0; b < this.guiTexts.size_0(); ++b) if (instanceOf(this.guiTexts.elementAt_1(b), GT1606)) { var d = this.guiTexts.elementAt_1(b); d.isAlive_0() && d.setAlpha_1(a); } if (null != this.guiImages) for (b = 0; b < this.guiImages.size_0(); ++b) instanceOf(this.guiImages.elementAt_1(b), GT1591) && ((d = this.guiImages.elementAt_1(b)), d.isAlive_0() && d.setAlpha_1(a)); }, setHideText_1: function (a) { GT1490.prototype.setHideText_1.call(this, a); if (null != this.guiTexts) for (var b = 0; b < this.guiTexts.size_0(); ++b) if (instanceOf(this.guiTexts.elementAt_1(b), GT1606)) { var d = this.guiTexts.elementAt_1(b); d.isAlive_0() && d.hide_1(a); } if (null != this.guiImages) for (b = 0; b < this.guiImages.size_0(); ++b) instanceOf(this.guiImages.elementAt_1(b), GT1591) && ((d = this.guiImages.elementAt_1(b)), d.isAlive_0() && d.hide_1(a)); }, }, "GT1002", [] ); GT1002.prototype.DEFAULT_X_OFFSET_AFTER_IMAGE = 4; var GT1316 = GT1559.extend( { initialConstructor_0: function () { this.pressed = this.mouseover = this.selected = !1; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { GT1316.prototype.initialConstructor_5.call(this, a, b, d, 0, 0); }, initialConstructor_5: function (a, b, d, e, f) { this.pressed = this.mouseover = this.selected = !1; GT1559.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.selected = !1; this.childrenforstates = GT1316.prototype.defaultchildrenfortogglestates; }, setChildForState_2: function (a, b) { this.childrenforstates == GT1316.prototype.defaultchildrenfortogglestates && (this.childrenforstates = [].createArray(GT1316.prototype.defaultchildrenfortogglestates.length).init(0)); this.childrenforstates[a.idx_0()] = b; }, removeChildForState_1: function (a) { GT1559.prototype.removeChildForState_1.call(this, a); }, setImage_1: function (a) { GT1559.prototype.setImage_1.call(this, a); }, changeVisual_2: function (a, b) { this.pressed = a; this.mouseover = b; var d = this.selected ? 4 : 0, e = this.childrenforstates[0 + d]; this.active && (e = a ? this.childrenforstates[2 + d] : b ? this.childrenforstates[3 + d] : this.childrenforstates[1 + d]); for (d = 0; d < this.getChildCount_0(); d++) this.getChild_1(d).hide_1(e != d); }, isSelected_0: function () { return this.selected; }, setSelected_1: function (a) { this.selected != a && ((this.selected = a), this.changeVisual_2(this.pressed, this.mouseover)); }, handleClick_0: function () { this.setSelected_1(!this.selected); GT1559.prototype.handleClick_0.call(this); }, }, "GT1316", [] ); GT1316.prototype.defaultchildrenfortogglestates = [0, 1, 2, 3, 4, 5, 6, 7]; var GT313 = GT510.extend( { initialConstructor_0: function () { this.color = null; GT510.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.color = null; GT510.prototype.initialConstructor_1.call(this, a); this.color = new GT1477(0.38, 0.94, 0, 1); }, getColor_0: function () { return this.color; }, }, "GT313", [] ), GT403 = GT510.extend( { initialConstructor_0: function () { this.color = this.endSlot = null; GT510.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.color = this.endSlot = null; GT510.prototype.initialConstructor_1.call(this, a); this.color = new GT1477(0.2, 0.2, 0.8, 1); }, getEndSlot_0: function () { return this.endSlot; }, setEndSlot_1: function (a) { this.endSlot = a; }, getColor_0: function () { return this.color; }, }, "GT403", [] ), GT595 = GT510.extend( { initialConstructor_0: function () { this.color = this.triangles = this.uvs = this.regionUVs = this.path = this.region = null; this.hullLength = 0; this.parentMesh = null; this.inheritDeform = !1; this.edges = null; this.height = this.width = 0; GT510.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.color = this.triangles = this.uvs = this.regionUVs = this.path = this.region = null; this.hullLength = 0; this.parentMesh = null; this.inheritDeform = !1; this.edges = null; this.height = this.width = 0; GT510.prototype.initialConstructor_1.call(this, a); this.color = new GT1477(1, 1, 1, 1); }, setRegion_1: function (a) { null == a && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: region cannot be null."); this.region = a; }, getRegion_0: function () { null == this.region && GT1650.prototype.assertExp_2(!1, "IllegalStateException: Region has not been set: " + this); return this.region; }, updateUVs_0: function () { var a, b, d, e; null == this.region ? ((a = b = 0), (d = e = 1)) : ((a = this.region.getU_0()), (b = this.region.getV_0()), (d = this.region.getU2_0() - a), (e = this.region.getV2_0() - b)); var f = this.regionUVs; if (null == this.uvs || this.uvs.length != f.length) this.uvs = [].createArray(f.length).init(0); var g = this.uvs; if (instanceOf(this.region, GT1201) && this.region.rotate) for (var k = 0, m = g.length; k < m; k += 2) (g[k] = a + f[k + 1] * d), (g[k + 1] = b + e - f[k] * e); else for (k = 0, m = g.length; k < m; k += 2) (g[k] = a + f[k] * d), (g[k + 1] = b + f[k + 1] * e); }, applyDeform_1: function (a) { return this == a || (this.inheritDeform && this.parentMesh == a); }, getTriangles_0: function () { return this.triangles; }, setTriangles_1: function (a) { this.triangles = a; }, getRegionUVs_0: function () { return this.regionUVs; }, setRegionUVs_1: function (a) { this.regionUVs = a; }, getUVs_0: function () { return this.uvs; }, setUVs_1: function (a) { this.uvs = a; }, getColor_0: function () { return this.color; }, getPath_0: function () { return this.path; }, setPath_1: function (a) { this.path = a; }, getHullLength_0: function () { return this.hullLength; }, setHullLength_1: function (a) { this.hullLength = a; }, setEdges_1: function (a) { this.edges = a; }, getEdges_0: function () { return this.edges; }, getWidth_0: function () { return this.width; }, setWidth_1: function (a) { this.width = a; }, getHeight_0: function () { return this.height; }, setHeight_1: function (a) { this.height = a; }, getParentMesh_0: function () { return this.parentMesh; }, setParentMesh_1: function (a) { this.parentMesh = a; null != a && ((this.bones = a.bones), (this.vertices = a.vertices), (this.regionUVs = a.regionUVs), (this.triangles = a.triangles), (this.hullLength = a.hullLength), (this.worldVerticesLength = a.worldVerticesLength), (this.edges = a.edges), (this.width = a.width), (this.height = a.height)); }, getInheritDeform_0: function () { return this.inheritDeform; }, setInheritDeform_1: function (a) { this.inheritDeform = a; }, }, "GT595", [] ), GT609 = GT510.extend( { initialConstructor_0: function () { this.lengths = null; this.constantSpeed = this.closed = !1; this.color = null; GT510.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.lengths = null; this.constantSpeed = this.closed = !1; this.color = null; GT510.prototype.initialConstructor_1.call(this, a); this.color = new GT1477(1, 0.5, 0, 1); }, getClosed_0: function () { return this.closed; }, setClosed_1: function (a) { this.closed = a; }, getConstantSpeed_0: function () { return this.constantSpeed; }, setConstantSpeed_1: function (a) { this.constantSpeed = a; }, getLengths_0: function () { return this.lengths; }, setLengths_1: function (a) { this.lengths = a; }, getColor_0: function () { return this.color; }, }, "GT609", [] ), GT858 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT858", [] ), GT798 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return a; }, }, "GT798", [] ), GT799 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return a * a * (3 - 2 * a); }, }, "GT799", [] ), GT752 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { a = a * a * (3 - 2 * a); return a * a * (3 - 2 * a); }, }, "GT752", [] ), GT694 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return a * a * a * (a * (6 * a - 15) + 10); }, }, "GT694", [] ), GT451 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return Math.sqrt_1(a); }, }, "GT451", [] ), GT401 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return 1 - Math.sqrt_1(-(a - 1)); }, }, "GT401", [] ), GT913 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return (1 - GT1294.prototype.cos_1(a * GT1294.prototype.PI)) / 2; }, }, "GT913", [] ), GT800 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return 1 - GT1294.prototype.cos_1((a * GT1294.prototype.PI) / 2); }, }, "GT800", [] ), GT753 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return GT1294.prototype.sin_1((a * GT1294.prototype.PI) / 2); }, }, "GT753", [] ), GT801 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { if (0.5 >= a) return (a *= 2), (1 - Math.sqrt_1(1 - a * a)) / 2; a--; a *= 2; return (Math.sqrt_1(1 - a * a) + 1) / 2; }, }, "GT801", [] ), GT695 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { return 1 - Math.sqrt_1(1 - a * a); }, }, "GT695", [] ), GT644 = GT1088.extend( { initialConstructor_0: function () { GT1088.prototype.initialConstructor_0.call(this); }, apply_1: function (a) { a--; return Math.sqrt_1(1 - a * a); }, }, "GT644", [] ), GT1580 = GT1088.extend( { initialConstructor_0: function () { this.power = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.power = 0; GT1088.prototype.initialConstructor_0.call(this); this.power = a; }, apply_1: function (a) { return 0.5 >= a ? Math.pow_2(2 * a, this.power) / 2 : Math.pow_2(2 * (a - 1), this.power) / (0 == this.power % 2 ? -2 : 2) + 1; }, }, "GT1580", [] ), GT1521 = GT1580.extend( { initialConstructor_0: function () { GT1580.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1580.prototype.initialConstructor_1.call(this, a); }, apply_1: function (a) { return Math.pow_2(a, this.power); }, }, "GT1521", [] ), GT1474 = GT1580.extend( { initialConstructor_0: function () { GT1580.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { GT1580.prototype.initialConstructor_1.call(this, a); }, apply_1: function (a) { return Math.pow_2(a - 1, this.power) * (0 == this.power % 2 ? -1 : 1) + 1; }, }, "GT1474", [] ), GT1581 = GT1088.extend( { initialConstructor_0: function () { this.scale = this.min = this.power = this.value = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.scale = this.min = this.power = this.value = 0; GT1088.prototype.initialConstructor_0.call(this); this.value = a; this.power = b; this.min = Math.pow_2(a, -b); this.scale = 1 / (1 - this.min); }, apply_1: function (a) { return 0.5 >= a ? ((Math.pow_2(this.value, this.power * (2 * a - 1)) - this.min) * this.scale) / 2 : (2 - (Math.pow_2(this.value, -this.power * (2 * a - 1)) - this.min) * this.scale) / 2; }, }, "GT1581", [] ), GT1522 = GT1581.extend( { initialConstructor_0: function () { GT1581.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1581.prototype.initialConstructor_2.call(this, a, b); }, apply_1: function (a) { return (Math.pow_2(this.value, this.power * (a - 1)) - this.min) * this.scale; }, }, "GT1522", [] ), GT1475 = GT1581.extend( { initialConstructor_0: function () { GT1581.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1581.prototype.initialConstructor_2.call(this, a, b); }, apply_1: function (a) { return 1 - (Math.pow_2(this.value, -this.power * a) - this.min) * this.scale; }, }, "GT1475", [] ), GT1423 = GT1088.extend( { initialConstructor_0: function () { this.bounces = this.scale = this.power = this.value = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.bounces = this.scale = this.power = this.value = 0; GT1088.prototype.initialConstructor_0.call(this); this.value = a; this.power = b; this.scale = e; this.bounces = d * GT1294.prototype.PI * (0 == d % 2 ? 1 : -1); }, apply_1: function (a) { if (0.5 >= a) return (a *= 2), (Math.pow_2(this.value, this.power * (a - 1)) * GT1294.prototype.sin_1(a * this.bounces) * this.scale) / 2; a = 2 * (1 - a); return 1 - (Math.pow_2(this.value, this.power * (a - 1)) * GT1294.prototype.sin_1(a * this.bounces) * this.scale) / 2; }, }, "GT1423", [] ), GT1321 = GT1423.extend( { initialConstructor_0: function () { GT1423.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1423.prototype.initialConstructor_4.call(this, a, b, d, e); }, apply_1: function (a) { return 0.99 <= a ? 1 : Math.pow_2(this.value, this.power * (a - 1)) * GT1294.prototype.sin_1(a * this.bounces) * this.scale; }, }, "GT1321", [] ), GT1270 = GT1423.extend( { initialConstructor_0: function () { GT1423.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { GT1423.prototype.initialConstructor_4.call(this, a, b, d, e); }, apply_1: function (a) { if (0 == a) return 0; a = 1 - a; return 1 - Math.pow_2(this.value, this.power * (a - 1)) * GT1294.prototype.sin_1(a * this.bounces) * this.scale; }, }, "GT1270", [] ), GT1322 = GT1088.extend( { initialConstructor_0: function () { this.heights = this.widths = null; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.heights = this.widths = null; GT1088.prototype.initialConstructor_0.call(this); a.length != b.length && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: Must be the same number of widths and heights."); this.widths = a; this.heights = b; }, initialConstructor_1: function (a) { this.heights = this.widths = null; GT1088.prototype.initialConstructor_0.call(this); (2 > a || 5 < a) && GT1650.prototype.assertExp_2(!1, "IllegalArgumentException: bounces cannot be < 2 or > 5: " + a); this.widths = [].createArray(a).init(0); this.heights = [].createArray(a).init(0); this.heights[0] = 1; switch (a) { case 2: this.widths[0] = 0.6; this.widths[1] = 0.4; this.heights[1] = 0.33; break; case 3: this.widths[0] = 0.4; this.widths[1] = 0.4; this.widths[2] = 0.2; this.heights[1] = 0.33; this.heights[2] = 0.1; break; case 4: this.widths[0] = 0.34; this.widths[1] = 0.34; this.widths[2] = 0.2; this.widths[3] = 0.15; this.heights[1] = 0.26; this.heights[2] = 0.11; this.heights[3] = 0.03; break; case 5: (this.widths[0] = 0.3), (this.widths[1] = 0.3), (this.widths[2] = 0.2), (this.widths[3] = 0.1), (this.widths[4] = 0.1), (this.heights[1] = 0.45), (this.heights[2] = 0.3), (this.heights[3] = 0.15), (this.heights[4] = 0.06); } this.widths[0] *= 2; }, apply_1: function (a) { if (1 == a) return 1; a += this.widths[0] / 2; for (var b = 0, d = 0, e = 0, f = this.widths.length; e < f; e++) { b = this.widths[e]; if (a <= b) { d = this.heights[e]; break; } a -= b; } a /= b; d = (4 / b) * d * a; return 1 - (d - d * a) * b; }, }, "GT1322", [] ), GT1476 = GT1322.extend( { initialConstructor_0: function () { GT1322.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1322.prototype.initialConstructor_2.call(this, a, b); }, initialConstructor_1: function (a) { GT1322.prototype.initialConstructor_1.call(this, a); }, out_1: function (a) { var b = a + this.widths[0] / 2; return b < this.widths[0] ? b / (this.widths[0] / 2) - 1 : GT1322.prototype.apply_1.call(this, a); }, apply_1: function (a) { return 0.5 >= a ? (1 - this.out_1(1 - 2 * a)) / 2 : this.out_1(2 * a - 1) / 2 + 0.5; }, }, "GT1476", [] ), GT1368 = GT1322.extend( { initialConstructor_0: function () { GT1322.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT1322.prototype.initialConstructor_2.call(this, a, b); }, initialConstructor_1: function (a) { GT1322.prototype.initialConstructor_1.call(this, a); }, apply_1: function (a) { return 1 - GT1322.prototype.apply_1.call(this, 1 - a); }, }, "GT1368", [] ), GT1523 = GT1088.extend( { initialConstructor_0: function () { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); this.scale = 2 * a; }, apply_1: function (a) { if (0.5 >= a) return (a *= 2), (a * a * ((this.scale + 1) * a - this.scale)) / 2; a--; a *= 2; return (a * a * ((this.scale + 1) * a + this.scale)) / 2 + 1; }, }, "GT1523", [] ), GT1369 = GT1088.extend( { initialConstructor_0: function () { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); this.scale = a; }, apply_1: function (a) { a--; return a * a * ((this.scale + 1) * a + this.scale) + 1; }, }, "GT1369", [] ), GT1424 = GT1088.extend( { initialConstructor_0: function () { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.scale = 0; GT1088.prototype.initialConstructor_0.call(this); this.scale = a; }, apply_1: function (a) { return a * a * ((this.scale + 1) * a - this.scale); }, }, "GT1424", [] ), GT1034 = Class.extend( { initialConstructor_0: function () { Class.prototype.initialConstructor_0.call(this); }, }, "GT1034", [] ); GT1034.prototype.PI = GT1294.prototype.PI; GT1034.prototype.linear = new GT798(); GT1034.prototype.smooth = new GT799(); GT1034.prototype.smooth2 = new GT752(); GT1034.prototype.smoother = new GT694(); GT1034.prototype.fade = GT1034.prototype.smoother; GT1034.prototype.pow2 = new GT1580(2); GT1034.prototype.pow2In = new GT1521(2); GT1034.prototype.pow2Out = new GT1474(2); GT1034.prototype.pow2InInverse = new GT451(); GT1034.prototype.pow2OutInverse = new GT401(); GT1034.prototype.pow3 = new GT1580(3); GT1034.prototype.pow3In = new GT1521(3); GT1034.prototype.pow3Out = new GT1474(3); GT1034.prototype.pow4 = new GT1580(4); GT1034.prototype.pow4In = new GT1521(4); GT1034.prototype.pow4Out = new GT1474(4); GT1034.prototype.pow5 = new GT1580(5); GT1034.prototype.pow5In = new GT1521(5); GT1034.prototype.pow5Out = new GT1474(5); GT1034.prototype.sine = new GT913(); GT1034.prototype.sineIn = new GT800(); GT1034.prototype.sineOut = new GT753(); GT1034.prototype.exp10 = new GT1581(2, 10); GT1034.prototype.exp10In = new GT1522(2, 10); GT1034.prototype.exp10Out = new GT1475(2, 10); GT1034.prototype.exp5 = new GT1581(2, 5); GT1034.prototype.exp5In = new GT1522(2, 5); GT1034.prototype.exp5Out = new GT1475(2, 5); GT1034.prototype.circle = new GT801(); GT1034.prototype.circleIn = new GT695(); GT1034.prototype.circleOut = new GT644(); GT1034.prototype.elastic = new GT1423(2, 10, 7, 1); GT1034.prototype.elasticIn = new GT1321(2, 10, 6, 1); GT1034.prototype.elasticOut = new GT1270(2, 10, 7, 1); GT1034.prototype.swing = new GT1523(1.5); GT1034.prototype.swingIn = new GT1424(2); GT1034.prototype.swingOut = new GT1369(2); GT1034.prototype.bounce = new GT1476(4); GT1034.prototype.bounceIn = new GT1368(4); GT1034.prototype.bounceOut = new GT1322(4); var GT184 = GT842.extend( { initialConstructor_0: function () { this.blockInputHalfCollect = this.halfCollect = !1; GT842.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.blockInputHalfCollect = this.halfCollect = !1; GT842.prototype.initialConstructor_1.call(this, a); this.blockInputHalfCollect = this.halfCollect = !1; }, newGameSituation_0: function () { this.getSlotState_0().getServerState_0() == GT1649.prototype.SERVERSTATE_GAMBLE && this.halfCollect ? ((this.halfCollect = !1), this.getConnection_0().setWaitingForServerResponse_1(!1), this.changeGuiState_1(GT163.prototype.ID)) : GT842.prototype.newGameSituation_0.call(this); }, notifyInputEvent_1: function (a) { this.getSlotState_0().getCasinoState_0().isActionAllowed_0() && !this.blockInputHalfCollect && (a.getId_0() == GT1354.prototype.HALF_COLLECT ? ((this.blockInputHalfCollect = this.halfCollect = !0), this.getSlotGame_0().getGuiStateMachine_0().notifySlotEvent_1(a), this.getConnection_0().setWaitingForServerResponse_1(!0), this.getConnection_0().sendCommand_1(new GT991())) : GT842.prototype.notifyInputEvent_1.call(this, a)); }, notifyGuiStateFinished_1: function (a) { GT842.prototype.notifyGuiStateFinished_1.call(this, a); a == GT163.prototype.ID && ((this.blockInputHalfCollect = this.halfCollect = !1), this.getConnection_0().setBlocking_1(!1), this.changeGuiState_1(GT422.prototype.ID)); }, toString: function () { return "ClientStateGambleHalfCollect (" + this.getId_0() + ")"; }, }, "GT184", [] ), GT161 = GT737.extend( { initialConstructor_0: function () { this.delay = this.moveTextAnim = this.textRemain = this.colorCurrent = this.numberCurrent = this.colorLose = this.numberLose = this.colorWin = this.numberWin = this.luckyLoser = this.soundLuckyLoser = this.soundMove = this.soundCount = this.soundGamble = this.gambleLost = this.gambleWinTop = this.gambleWin = this.skinManager = null; this.currentSound = this.numberLoseY = this.numberLoseX = this.numberWinY = this.numberWinX = 0; this.shouldSkipIntro = this.firstRun = !1; GT737.prototype.initialConstructor_0.call(this); }, initialConstructor_14: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u) { this.delay = this.moveTextAnim = this.textRemain = this.colorCurrent = this.numberCurrent = this.colorLose = this.numberLose = this.colorWin = this.numberWin = this.luckyLoser = this.soundLuckyLoser = this.soundMove = this.soundCount = this.soundGamble = this.gambleLost = this.gambleWinTop = this.gambleWin = this.skinManager = null; this.currentSound = this.numberLoseY = this.numberLoseX = this.numberWinY = this.numberWinX = 0; this.shouldSkipIntro = this.firstRun = !1; GT737.prototype.initialConstructor_7.call(this, a, b, d, e, f, null, null); this.skinManager = g; this.luckyLoser = k; this.gambleWin = m; this.gambleWinTop = n; this.gambleLost = p; this.soundGamble = q; this.soundCount = r; this.soundMove = t; this.soundLuckyLoser = u; this.moveTextAnim = null; this.currentSound = 0; this.firstRun = !0; }, init_0: function () { this.firstRun = !0; this.shouldSkipIntro = !1; this.numberWin = this.findDescendant_1(GT161.prototype.ID_NUMBER_WIN); this.numberWinX = this.numberWin.getX_0(); this.numberWinY = this.numberWin.getY_0(); this.colorWin = this.findDescendant_1(GT161.prototype.ID_COLOR_WIN); this.hideObject_2(this.colorWin, !0); this.colorWin.setAlpha_1(255); this.numberLose = this.findDescendant_1(GT161.prototype.ID_NUMBER_LOSE); this.numberLose.setFormatter_1(this.getCurrencyFormatter_0()); this.numberLose.setDuration_1(Integer.truncate_1(this.soundCount.getLength_0())); this.numberLoseX = this.numberLose.getX_0(); this.numberLoseY = this.numberLose.getY_0(); this.colorLose = this.findDescendant_1(GT161.prototype.ID_COLOR_LOSE); this.hideObject_2(this.colorLose, !0); this.colorLose.setAlpha_1(255); this.numberCurrent = this.findDescendant_1(GT161.prototype.ID_NUMBER_CURRENT); this.numberCurrent.setFormatter_1(this.getCurrencyFormatter_0()); this.numberCurrent.setDuration_1(Integer.truncate_1(this.soundCount.getLength_0())); this.colorCurrent = this.findDescendant_1(GT161.prototype.ID_COLOR_CURRENT); this.colorCurrent.hide_1(!0); this.colorCurrent.setAlpha_1(255); this.textRemain = this.findDescendant_1(GT161.prototype.ID_TEXT_REMAIN); this.textRemain.setText_1(this.getNumberOfPossibleGambleSteps_0() + " " + this.skinManager.getText_1("${gamble_info_stepsremaining}")); }, skipIntro_0: function () { this.shouldSkipIntro = !0; }, start_0: function () { this.colorWin.hide_1(!0); this.colorLose.hide_1(!0); this.numberWin.hide_1(!1); this.numberCurrent.hide_1(!1); this.numberLose.hide_1(!1); this.currentSound = this.getNumberOfWins_0() - 6; 0 > this.currentSound && (this.currentSound = 0); var a = this.getNumberOfPossibleGambleSteps_0() - this.getNumberOfWins_0(); 1 == a ? this.textRemain.setText_1(this.skinManager.getText_1("${gamble_info_lastgamblestep}")) : this.textRemain.setText_1(a + " " + this.skinManager.getText_1("${gamble_info_stepsremaining}")); this.numberCurrent.setValue_2(this.getCurrentWin_0(), !0); this.numberWin.move_2(this.numberWinX, this.numberWinY); this.numberLose.move_2(this.numberLoseX, this.numberLoseY); this.isMoreGamblePossible_0() ? (this.numberWin.setText_1(this.getCurrencyFormatter_0().format_1(this.getPossibleGambleStep_1(this.getNumberOfWins_0()))), this.numberLose.setText_1(this.getCurrencyFormatter_0().format_1(0)), this.firstRun && !this.shouldSkipIntro ? (this.numberWin.hide_1(!0), this.numberLose.hide_1(!0), (this.firstRun = !1), this.numberCurrent.setValue_2(0, !0), this.numberCurrent.addFinishCallback_1(new GT1509(this, GT161.prototype.BLINK_GREEN)), this.skinManager.getSoundPlayer_0().start_1(this.soundCount), this.numberCurrent.setValue_2(this.getCurrentWin_0(), !1)) : this.startBlinking_0()) : (this.numberWin.hide_1(!0), this.numberLose.hide_1(!0), this.animationDone_0()); }, setNumbersVisible_0: function () { this.hideObject_2(this.numberWin, !1); this.hideObject_2(this.numberCurrent, !1); this.hideObject_2(this.numberLose, !1); }, startBlinking_0: function () { this.stopBlinking_0(); null != this && this.isAlive_0() && (this.setInvisible_0(), this.setNumbersVisible_0(), this.hideObject_2(this.colorWin, !1), this.skinManager.getSoundPlayer_0().start_1(this.soundGamble[this.currentSound]), (this.delay = new GT1129(this.skinManager.getTimer_0(), Integer.truncate_1(Math.div(this.soundGamble[this.currentSound].getLength_0(), 2)) - 10, !1)), this.delay.addFinishCallback_1(new GT1509(this, GT161.prototype.BLINK_RED)), this.delay.start_0()); }, changeBlinkingColor_0: function () { null != this && this.isAlive_0() ? (this.hideObject_2(this.colorWin, !0), this.hideObject_2(this.colorLose, !1), this.delay.killWithoutTriggers_0(), (this.delay = new GT1129(this.skinManager.getTimer_0(), Integer.truncate_1(Math.div(this.soundGamble[this.currentSound].getLength_0(), 2)) - 10, !1)), this.delay.addFinishCallback_1(new GT1509(this, GT161.prototype.BLINK_GREEN)), this.delay.start_0()) : this.stopBlinking_0(); }, stopBlinking_0: function () { null != this.delay && this.delay.killWithoutTriggers_0(); this.skinManager.getSoundPlayer_0().stop_1(this.soundGamble[this.currentSound]); }, setInvisible_0: function () { this.hideObject_2(this.numberCurrent, !0); this.hideObject_2(this.numberLose, !0); this.hideObject_2(this.numberWin, !0); this.hideObject_2(this.colorCurrent, !0); this.hideObject_2(this.colorLose, !0); this.hideObject_2(this.colorWin, !0); }, hideObject_2: function (a, b) { a.isAlive_0() && null != a && a.hide_1(b); }, showWin_0: function () { this.stopBlinking_0(); this.setInvisible_0(); this.isLuckyLoser_0() ? (this.hideObject_2(this.colorLose, !1), this.hideObject_2(this.numberLose, !1), this.skinManager.getSoundPlayer_0().start_2(this.gambleLost, new GT1509(this, GT161.prototype.WAITING))) : (this.hideObject_2(this.colorWin, !1), this.hideObject_2(this.numberWin, !1), this.isMoreGamblePossible_0() ? this.skinManager.getSoundPlayer_0().start_2(this.gambleWin, new GT1509(this, GT161.prototype.ENDING)) : (this.skinManager.getTimer_0().triggerCallbackImmediately_1(new GT1509(this, GT161.prototype.ENDING)), this.skinManager.getSoundPlayer_0().start_1(this.gambleWinTop))); }, imageLuckyLoser_0: function () { var a = new GT852(this, 740, 115, this.luckyLoser.getWidth_0(), this.luckyLoser.getHeight_0()); a.setAlpha_1(255); new GT1591(a, 0, 0, this.luckyLoser); var b = Math.div(Integer.truncate_1(this.soundLuckyLoser.getLength_0()), 2); new GT1191(this.skinManager.getTimer_0(), a, !1, b, b, Integer.truncate_1(this.soundCount.getLength_0())).start_0(); this.skinManager.getSoundPlayer_0().start_2(this.soundLuckyLoser, new GT1509(this, GT161.prototype.COUNT)); }, countLuckyLoser_0: function () { this.numberLose.setText_1(""); this.numberLose.setValue_2(0, !0); this.numberLose.setValue_2(this.getCurrentWin_0(), !1); this.skinManager.getSoundPlayer_0().start_2(this.soundCount, new GT1509(this, GT161.prototype.ENDING)); }, moveText_0: function () { this.isLuckyLoser_0() ? (this.moveTextAnim = new GT653( this.skinManager.getTimer_0(), this.numberLose, this.numberCurrent.getX_0() + Math.div(this.numberCurrent.getWidth_0() - this.numberLose.getWidth_0(), 2), this.numberLoseY, Integer.truncate_1(this.soundMove.getLength_0()), !1 )) : (this.moveTextAnim = new GT653( this.skinManager.getTimer_0(), this.numberWin, this.numberCurrent.getX_0() + Math.div(this.numberCurrent.getWidth_0() - this.numberWin.getWidth_0(), 2), this.numberWinY, Integer.truncate_1(this.soundMove.getLength_0()), !1 )); this.moveTextAnim.setUseAnchorToMove_1(!1); this.moveTextAnim.addFinishCallback_1(new GT1509(this, GT161.prototype.END)); this.skinManager.getSoundPlayer_0().start_1(this.soundMove); this.moveTextAnim.start_0(); }, showLost_0: function () { this.stopBlinking_0(); this.setInvisible_0(); this.hideObject_2(this.colorLose, !1); this.hideObject_2(this.numberLose, !1); this.numberWin.setText_1(""); this.numberCurrent.setText_1(""); this.numberLose.setText_1(this.getCurrencyFormatter_0().format_1(0)); this.skinManager.getSoundPlayer_0().start_2(this.gambleLost, new GT1509(this, GT161.prototype.END)); }, showHalfCollect_0: function () { this.stopBlinking_0(); this.setInvisible_0(); this.hideObject_2(this.colorCurrent, !1); this.hideObject_2(this.numberCurrent, !1); this.numberCurrent.setValue_2(this.getCurrentWin_0(), !0); this.skinManager.getTimer_0().triggerCallbackImmediately_1(new GT1509(this, GT161.prototype.WAITING)); }, animationDone_0: function () { null != this.moveTextAnim && (this.moveTextAnim.killWithoutTriggers_0(), (this.moveTextAnim = null)); null != this.delay && (this.delay.killWithoutTriggers_0(), (this.delay = null)); for (var a = this.getGambleListener_0().clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).animationFinished_0(); }, stop_0: function () { this.numberCurrent.removeFinishCallbacks_0(); this.numberLose.removeFinishCallbacks_0(); null != this.moveTextAnim && (this.moveTextAnim.killWithoutTriggers_0(), (this.moveTextAnim = null)); null != this.delay && (this.delay.killWithoutTriggers_0(), (this.delay = null)); this.stopBlinking_0(); this.skinManager.getSoundPlayer_0().stop_2(this.gambleWinTop, 1e3); }, setActive_1: function (a) {}, forwardEvent_1: function (a) {}, run_1: function (a) { this.numberCurrent.removeFinishCallbacks_0(); a.equals_1(GT161.prototype.WAITING) ? ((this.delay = new GT1129(this.skinManager.getTimer_0(), 1500, !1)), this.isLuckyLoser_0() ? this.delay.addFinishCallback_1(new GT1509(this, GT161.prototype.LUCKY_LOSER)) : this.delay.addFinishCallback_1(new GT1509(this, GT161.prototype.END)), this.delay.start_0()) : a.equals_1(GT161.prototype.BLINK_GREEN) ? this.startBlinking_0() : a.equals_1(GT161.prototype.BLINK_RED) ? this.changeBlinkingColor_0() : a.equals_1(GT161.prototype.LUCKY_LOSER) ? this.imageLuckyLoser_0() : a.equals_1(GT161.prototype.COUNT) ? this.countLuckyLoser_0() : a.equals_1(GT161.prototype.ENDING) ? this.moveText_0() : a.equals_1(GT161.prototype.END) && this.animationDone_0(); }, }, "GT161", [GT1482] ); GT161.prototype.ID_TEXT_GAMBLE = GT1560.prototype.generateID_0(); GT161.prototype.ID_TEXT_WIN = GT1560.prototype.generateID_0(); GT161.prototype.ID_TEXT_LOSE = GT1560.prototype.generateID_0(); GT161.prototype.ID_TEXT_CURRENT = GT1560.prototype.generateID_0(); GT161.prototype.ID_COLOR_WIN = GT1560.prototype.generateID_0(); GT161.prototype.ID_NUMBER_WIN = GT1560.prototype.generateID_0(); GT161.prototype.ID_COLOR_LOSE = GT1560.prototype.generateID_0(); GT161.prototype.ID_NUMBER_LOSE = GT1560.prototype.generateID_0(); GT161.prototype.ID_COLOR_CURRENT = GT1560.prototype.generateID_0(); GT161.prototype.ID_NUMBER_CURRENT = GT1560.prototype.generateID_0(); GT161.prototype.ID_TEXT_REMAIN = GT1560.prototype.generateID_0(); GT161.prototype.WAITING = "" + GT1560.prototype.generateID_0(); GT161.prototype.BLINK_GREEN = "" + GT1560.prototype.generateID_0(); GT161.prototype.BLINK_RED = "" + GT1560.prototype.generateID_0(); GT161.prototype.LUCKY_LOSER = "" + GT1560.prototype.generateID_0(); GT161.prototype.COUNT = "" + GT1560.prototype.generateID_0(); GT161.prototype.ENDING = "" + GT1560.prototype.generateID_0(); GT161.prototype.END = "" + GT1560.prototype.generateID_0(); var GT87 = GT422.extend( { initialConstructor_0: function () { this.gambleCH = null; GT422.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.gambleCH = null; GT422.prototype.initialConstructor_1.call(this, a); }, enter_1: function (a) { var b = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); (null != b && b.isAlive_0()) || (this.getGui_0().getFreeGameSounds_0().reduceBackgroundSoundVolume_2(!0, 0), GT318.prototype.initGambleScreen_2(this.getGui_0(), this.getSlotState_0()), this.getGui_0().getWinSwitcher_0().isRunning_0() && this.getGui_0().getWinSwitcher_0().stop_0()); this.gambleCH = this.getGui_0().getMainContainer_0().findDescendant_1(GT1618.prototype.GAMBLE); this.shouldSkipIntro_0() && this.gambleCH.skipIntro_0(); GT422.prototype.enter_1.call(this, a); }, onEnterUpdateConsole_2: function (a, b) { this.getGui_0().getSlotConsole_0().setWin_2(this.getSlotState_0().getWinSum_1(!0), !0); a.isMoreGamblePossible_0() ? 0 == a.getNumberOfWins_0() || (1 == a.getNumberOfWins_0() && 0 > a.getWin_1(0)) ? b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF_COLLECTHALFINACTIVE) : b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF) : b.setState_1(GT725.prototype.GAMBLE_COLLECTHALF_INACTIVE); }, requestFinish_0: function () { this.gambleCH.stopBlinking_0(); }, exit_0: function () { this.gambleCH.stopBlinking_0(); GT422.prototype.exit_0.call(this); }, toString: function () { return "GuiStateGambleHalfCollectScreenOpen (" + this.getId_0() + ")"; }, }, "GT87", [] ), GT515 = GT1559.extend( { initialConstructor_0: function () { this.blinkAnimator = this.animator = this.timer = null; this.highlighted = !1; this.phaseOffset = this.duration = this.interval = 0; this.fade = !1; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.blinkAnimator = this.animator = null; this.highlighted = !1; this.duration = 0; GT1559.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.interval = 1; this.duration = 1e3; this.phaseOffset = 0; this.fade = !0; }, initialConstructor_4: function (a, b, d, e) { GT515.prototype.initialConstructor_6.call(this, a, b, d, 0, 0, e); }, setHighlightParameter_3: function (a, b, d) { this.interval = a; this.duration = b; this.phaseOffset = d; }, setFading_1: function (a) { this.fade = a; }, destroyImpl_2: function (a, b) { GT1559.prototype.destroyImpl_2.call(this, a, b); null != this.animator && (this.animator.kill_0(), (this.animator = null)); null != this.blinkAnimator && (this.blinkAnimator.kill_0(), (this.blinkAnimator = null)); }, setActive_1: function (a) { var b = this.isActive_0(); GT1559.prototype.setActive_1.call(this, a); this.highlighted && b != a && (a ? ((this.highlighted = !1), this.setHighlighted_1(!0)) : (this.setHighlighted_1(!1), (this.highlighted = !0))); }, setHighlighted_1: function (a) { this.highlighted != a && ((this.highlighted = a), null != this.animator && (this.animator.kill_0(), (this.animator = null)), null != this.blinkAnimator && (this.blinkAnimator.kill_0(), (this.blinkAnimator = null)), a && this.active ? "1" === CONFIG.webgl ? this.fade ? ((this.animator = new GT464(this.timer, this.interval, this.duration, 70, 70, this.phaseOffset)), this.animator.addGUIContainer_1(this), this.animator.start_0()) : ((this.blinkAnimator = new GT335(this.timer, this.interval, this.duration, 70, 70, this.phaseOffset)), this.blinkAnimator.addGUIContainer_1(this), this.blinkAnimator.start_0()) : ((a = [ [400, 0, 10], [400, 10, 255], [400, 255, 10, 1], ]), 4 == this.getChildCount_0() ? (this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.DEFAULT)).hide_1(!1), this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.PRESSED)).hide_1(!0), this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.MOUSEOVER)).hide_1(!1)) : 3 == this.getChildCount_0() ? (this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.INACTIVE)).hide_1(!1), this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.DEFAULT)).hide_1(!1), this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.PRESSED)).hide_1(!0)) : 1 == this.getChildCount_0() && (this.getChild_1(0).hide_1(!1), (a = [ [1500, 10, 10], [1e3, 10, 255], [1e3, 255, 10, 0], ])), (this.animator = new GT1191(this.timer, this, !1, a)), this.animator.start_0()) : "1" !== CONFIG.webgl && (this._resetAlpha(this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.MOUSEOVER))), this._resetAlpha(this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.DEFAULT))))); }, _resetAlpha: function (a) { null != a && (instanceOf(a, GT1591) ? a.setAlpha_1(255) : instanceOf(a, GT1437) && this.setAlpha_2(255, a)); }, setAlpha_1: function (a) { var b; b = 4 == this.getChildCount_0() ? this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.MOUSEOVER)) : 3 == this.getChildCount_0() ? this.getChild_1(this.getChildIdxForState_1(GT1236.prototype.DEFAULT)) : this.getChild_1(0); instanceOf(b, GT1437) ? this.setAlpha_2(a, b) : instanceOf(b, GT1591) && b.setAlpha_1(a); }, setAlpha_2: function (a, b) { for (var d = 0; d < b.getChildCount_0(); d++) { var e = b.getChild_1(d); if (null != e && e.isAlive_0() && !e.isHidden_0()) if (instanceOf(e, GT1591)) { e.setAlpha_1(a); break; } else instanceOf(e, GT1437) && this.setAlpha_2(a, e); } }, changeVisual_2: function (a, b) { if ("1" === CONFIG.webgl) GT1559.prototype.changeVisual_2.call(this, a, b); else { var d = this.getChildCount_0(), e = this.childrenforstates[0]; this.active && (a ? ((e = this.childrenforstates[2]), e >= d && (e = this.childrenforstates[1])) : b ? ((e = this.childrenforstates[3]), e >= d && (e = this.childrenforstates[1])) : (e = this.childrenforstates[1]), e >= d && (e = this.childrenforstates[0])); if (!this.highlighted) for (d = 0; d < this.getChildCount_0(); d++) this.getChild_1(d).hide_1(e != d); } }, isHighlighted_0: function () { return this.highlighted; }, getTimer_0: function () { return this.timer; }, }, "GT515", [] ), GT335 = GT1190.extend( { initialConstructor_0: function () { this.containers = null; this.offsetBlue = this.intervalBlue = this.offsetGreen = this.intervalGreen = this.offsetRed = this.intervalRed = this.phaseOffset = this.timeinterval = this.startTime = 0; this.transformation = null; this.killedWhenEmpty = !1; this.initialContainer = null; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.offsetBlue = this.intervalBlue = this.offsetGreen = this.intervalGreen = this.offsetRed = this.intervalRed = 0; this.initialContainer = this.transformation = null; GT1190.prototype.initialConstructor_3.call(this, a, b, !1); this.startTime = -1; this.timeinterval = d; this.phaseOffset = g; this.containers = new java_util_JavaScriptVector(); this.setValueIntervals_3(e, e, e); this.setOffsets_3(f, f, f); this.killedWhenEmpty = !0; this.setColorTransformation_0(); }, setValueIntervals_3: function (a, b, d) { this.intervalRed = a; this.intervalGreen = b; this.intervalBlue = d; this.setColorTransformation_0(); }, setOffsets_3: function (a, b, d) { this.offsetRed = a; this.offsetGreen = b; this.offsetBlue = d; this.setColorTransformation_0(); }, addGUIObject_1: function (a) { this.addGUIContainer_1(a); }, addGUIContainer_1: function (a) { this.containers.addElement_1(a); }, removeGUIObject_1: function (a) { this.removeGUIContainer_1(a); }, removeGUIContainer_1: function (a) { a.isAlive_0() && a.setColorTransformation_1(null); this.containers.removeElement_1(a); }, setColorTransformation_0: function () { var a = 2 * this.intervalGreen, b = 2 * this.intervalBlue; this.transformation = new GT1063(Math.abs_1(2 * this.intervalRed - this.intervalRed) + this.offsetRed, 0, Math.abs_1(a - this.intervalGreen) + this.offsetGreen, 0, Math.abs_1(b - this.intervalBlue) + this.offsetBlue, 0); }, action_1: function (a) { if (this.killedWhenEmpty && this.containers.isEmpty_0() && 0 == this.timeinterval) return !1; if (-1 == this.startTime) return (this.startTime = a), !0; if ((a - this.startTime + this.phaseOffset) % this.timeinterval < Math.div(this.timeinterval, 2)) for (a = 0; a < this.containers.size_0(); a++) { var b = this.containers.elementAt_1(a); GT1560.prototype.isAlive_1(b) ? b.setColorTransformation_1(this.transformation) : (this.removeGUIContainer_1(b), a--); } else for (a = 0; a < this.containers.size_0(); a++) (b = this.containers.elementAt_1(a)), GT1560.prototype.isAlive_1(b) ? b.setColorTransformation_1(null) : (this.removeGUIContainer_1(b), a--); return !0; }, killAndTrigger_1: function (a) { GT1190.prototype.killAndTrigger_1.call(this, a); for (a = 0; a < this.containers.size_0(); a++) { var b = this.containers.elementAt_1(a); GT1560.prototype.isAlive_1(b) && b.setColorTransformation_1(null); } this.containers.removeAllElements_0(); }, isKilledWhenEmpty_0: function () { return this.killedWhenEmpty; }, setKilledWhenEmpty_1: function (a) { this.killedWhenEmpty = a; }, reset_0: function () { this.resetImpl_0(); this.startTime = -1; GT1560.prototype.isAlive_1(this.initialContainer) && this.containers.isEmpty_0() && this.addGUIContainer_1(this.initialContainer); }, }, "GT335", [GT1271] ), GT356 = GT397.extend( { initialConstructor_0: function () { this._singleTiledImage = this._rawImages = this._imageCache = null; this._lineCount = 0; this._separatedImages = !1; this._tabs = this._modifiers = null; GT397.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { GT356.prototype.initialConstructor_8.call(this, a, b, d, e, f, g, null, null); }, initialConstructor_8: function (a, b, d, e, f, g, k, m) { this._singleTiledImage = this._rawImages = this._imageCache = null; this._lineCount = 0; this._separatedImages = !1; this._tabs = this._modifiers = null; GT397.prototype.initialConstructor_5.call(this, a, b, d, e, f); GT1650.prototype.assertExp_2(null != g, "Image may not be null"); this._lineCount = g.getColumns_0() * g.getRows_0(); this._singleTiledImage = g; this._separatedImages = !1; this._imageCache = new java_util_JavaScriptHashtable(); null != k && (this._tabs = new GT643(this, k, m, this._lineCount)); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT356.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, null, null); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this._singleTiledImage = this._rawImages = this._imageCache = null; this._lineCount = 0; this._separatedImages = !1; this._tabs = this._modifiers = null; GT397.prototype.initialConstructor_5.call(this, a, b, d, e, f); GT1650.prototype.assertExp_2(null != g, "Images may not be null"); GT1650.prototype.assertExp_2(null != k, "Offsets may not be null"); this._lineCount = g.size_0(); this._imageCache = new java_util_JavaScriptHashtable(); this._rawImages = g; this._modifiers = k; this._separatedImages = !0; null != m && (this._tabs = new GT643(this, m, n, this._lineCount)); }, getImage_1: function (a) { var b = this._imageCache.get_1(Integer.toString_1(a)); if (null == b) { if (this._separatedImages) { var d = this._rawImages.get_1(Integer.toString_1(a)), e = this._modifiers.get_1(Integer.toString_1(a)); GT1650.prototype.assertExp_2(null != d, "Image not found " + a); if (null != d) var b = e.get_1(2).intValue_0(), f = e.get_1(3).intValue_0(), b = new GT1591(this, e.get_1(0).intValue_0(), e.get_1(1).intValue_0(), -1 == b ? this.getWidth_0() : b, -1 == f ? this.getHeight_0() : f, d, 0, 0, d.getColumnWidth_0(), d.getRowHeight_0()); } else b = new GT1591( this, 0, 0, this.getWidth_0(), this.getHeight_0(), this._singleTiledImage, Math.min_2(a % this._singleTiledImage.getColumns_0(), this._singleTiledImage.getColumns_0() - 1), Math.min_2(Math.div(a, this._singleTiledImage.getColumns_0()), this._singleTiledImage.getRows_0() - 1), !1 ); this._imageCache.put_2(Integer.toString_1(a), b); null != this._tabs && this._tabs.reorder_1(!0); } return b; }, showLine_2: function (a, b) { var d = Math.min_2(a, this._lineCount), d = this.getImage_1(d); null != d && d.hide_1(!b); }, isLineVisible_1: function (a) { a = Math.min_2(a, this._lineCount); a = this.getImage_1(a); return null != a ? !a.isHidden_0() : !1; }, showLines_1: function (a) { for (var b = 0; b < this._lineCount; b++) this.showLine_2(b, b < a); }, showAllLines_1: function (a) { for (var b = 0; b < this._lineCount; b++) this.showLine_2(b, a); }, showAllTabs_1: function (a) { null != this._tabs && this._tabs.showAllTabs_1(a); }, showTab_2: function (a, b) { null != this._tabs && this._tabs.showTab_2(a, b); }, isTabVisible_1: function (a) { return null != this._tabs ? this._tabs.isTabVisible_1(a) : !1; }, setWinningSymbols_3: function (a, b, d) {}, setScatterWin_2: function (a, b) {}, showScatter_1: function (a) {}, }, "GT356", [] ), GT198 = GT397.extend( { initialConstructor_0: function () { this._sounds = this._videoclips = null; this._lineCount = 0; this._soundplayer = this._tmpPlayers = this._tabs = this._modifiers = null; GT397.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT198.prototype.initialConstructor_11.call(this, a, b, d, e, f, g, k, m, n, null, new java_util_JavaScriptHashtable()); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this._sounds = this._videoclips = null; this._lineCount = 0; this._soundplayer = this._tmpPlayers = this._tabs = this._modifiers = null; GT397.prototype.initialConstructor_5.call(this, a, b, d, e, f); GT1650.prototype.assertExp_2(null != g, "Videoclips may not be null"); GT1650.prototype.assertExp_2(null != k, "Offsets may not be null"); this._lineCount = g.size_0(); this._videoclips = g; this._modifiers = k; this._soundplayer = m; this._sounds = n; null != p && (this._tabs = new GT643(this, p, q, this._lineCount)); this._tmpPlayers = [].createArray(this._lineCount); }, showLine_2: function (a, b) { this.showLine_3(a, b, !0); }, showLine_3: function (a, b, d) { a = Math.min_2(a, this._lineCount); if (b) { var e = this._videoclips.get_1(Integer.toString_1(a)), f = this._modifiers.get_1(Integer.toString_1(a)); GT1650.prototype.assertExp_2(null != e, "VideoClip not found for line " + a); if (null != e && !this.isVideoRunning_1(a)) { var g = f.get_1(2).intValue_0(), k = f.get_1(3).intValue_0(), m = 1 == f.get_1(4).intValue_0(), n = 1 == f.get_1(5).intValue_0(); this.stopVideo_1(a); this._tmpPlayers[a] = new GT1336(this, f.get_1(0).intValue_0(), f.get_1(1).intValue_0(), -1 == g ? this.getWidth_0() : g, -1 == k ? this.getHeight_0() : k, e, 1, 0); d && null != this._sounds && b && ((b = this._sounds.get_1(Integer.toString_1(a))), null != b && null != this._soundplayer && this._tmpPlayers[a].addStartNotification_1(new GT876(this._soundplayer, b))); this._tmpPlayers[a].addFinishNotification_1(new GT714(this._tmpPlayers[a])); this._tmpPlayers[a].setHorizontalFlip_1(m); this._tmpPlayers[a].setVerticalFlip_1(n); this._tmpPlayers[a].start_0(); null != this._tabs && this._tabs.reorder_1(!0); } } else d || this.stopVideo_1(a); }, isVideoRunning_1: function (a) { return null != this._tmpPlayers[a] && this._tmpPlayers[a].isAlive_0(); }, stopVideo_1: function (a) { null != this._tmpPlayers[a] && this._tmpPlayers[a].isAlive_0() && (this._tmpPlayers[a].stop_0(), GT1560.prototype.destroyIfAlive_1(this._tmpPlayers[a]), (a = this._sounds.get_1(Integer.toString_1(a))), null != a && null != this._soundplayer && this._soundplayer.stop_1(a)); }, showLines_1: function (a) { for (var b = 0; b < this._lineCount; b++) this.showLine_3(b, b < a, !1); }, showAllLines_1: function (a) { for (a = 0; a < this._lineCount; a++) this.showLine_3(a, !1, !1); }, showAllTabs_1: function (a) { null != this._tabs && this._tabs.showAllTabs_1(a); }, showTab_2: function (a, b) { null != this._tabs && this._tabs.showTab_2(a, b); }, isTabVisible_1: function (a) { return null != this._tabs ? this._tabs.isTabVisible_1(a) : !1; }, setWinningSymbols_3: function (a, b, d) {}, setScatterWin_2: function (a, b) {}, showScatter_1: function (a) {}, }, "GT198", [] ), GT587 = GT397.extend( { initialConstructor_0: function () { this.winLineCoordinates = null; this.slope = this.winLabelIndex = this.winLinesVisible = this.dy = this.marginright = this.marginleft = this.margin = this.outlineThickness = this.lineThickness = this.winLineStartOffset = this.winLineStartSpacing = 0; this.rightMap = this.leftMap = this.font = this.tabsImage = this.scatterWinLine = this.winLines = this.scattersCanvas = this.linesCanvas = this.winlabels = this.scatters = this.lines = this.rightTabs = this.leftTabs = null; GT397.prototype.initialConstructor_0.call(this); }, initialConstructor_15: function (a, b, d, e, f, g, k, m, n, p, q, r, t, u, B) { this.winLineCoordinates = null; this.slope = this.winLabelIndex = this.winLinesVisible = this.dy = this.marginright = this.marginleft = this.margin = this.outlineThickness = this.lineThickness = this.winLineStartOffset = this.winLineStartSpacing = 0; this.rightMap = this.leftMap = this.font = this.tabsImage = this.scatterWinLine = this.winLines = this.scattersCanvas = this.linesCanvas = this.winlabels = this.scatters = this.lines = this.rightTabs = this.leftTabs = null; GT397.prototype.initialConstructor_6.call(this, a, b, d, e, f, new GT1545(g, q, r)); this.lineThickness = n; this.outlineThickness = p; this.winLineStartSpacing = k; this.winLineStartOffset = m; this.margin = t; this.marginleft = u; this.marginright = B; this.dy = r; this.winLabelIndex = this.winLinesVisible = 0; this.slope = 1; this.lines = new GT1437(this); this.scatters = new GT1437(this); this.linesCanvas = new GT1288(this.lines, 0, 0, this.getWidth_0(), this.getHeight_0()); this.scattersCanvas = new GT1288(this.scatters, 0, 0, this.getWidth_0(), this.getHeight_0()); this.winlabels = new GT1437(this); }, initialConstructor_5: function (a, b, d, e, f) { this.winLineCoordinates = null; this.slope = this.winLabelIndex = this.winLinesVisible = this.dy = this.marginright = this.marginleft = this.margin = this.outlineThickness = this.lineThickness = this.winLineStartOffset = this.winLineStartSpacing = 0; this.rightMap = this.leftMap = this.font = this.tabsImage = this.scatterWinLine = this.winLines = this.scattersCanvas = this.linesCanvas = this.winlabels = this.scatters = this.lines = this.rightTabs = this.leftTabs = null; GT397.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, setSlope_1: function (a) { this.slope = a; }, setLabelFont_1: function (a) { this.font = a; }, setWinLineColor_3: function (a, b, d) { null != this.winLines && a < this.winLines.length && (this.winLines[a].setColor_1(b), this.winLines[a].setOutlineColor_1(d)); }, setWinLineLabelTextOutline_3: function (a, b, d) { null != this.winLines && a < this.winLines.length && this.winLines[a].setLabelTextOutline_2(b, d); }, setWinLines_3: function (a, b, d) { if (null == a) this.winLineCoordinates = null; else { a = this.autoGenerateWinlines_1(a); this.winLines = [].createArray(a.length); this.winLineCoordinates = [].createArray(a.length, null).init(0); for (var e = 0; e < a.length; e++) this.winLineCoordinates[e] = null != a[e] ? this.computeWinLineCoordinates_10( a[e], this.getReelsLayout_0(), this.winLineStartSpacing, this.winLineStartOffset, this.getWidth_0(), this.dy, this.margin, this.marginleft, this.marginright, this.slope ) : null; for (e = this.winLineCoordinates.length - 1; 0 <= e; e--) null != this.winLineCoordinates[e] && ((this.winLines[e] = new GT1057(this.winlabels, this.linesCanvas, this.winLineCoordinates[e], this.lineThickness, this.outlineThickness, b[e], d[e], this.getReelsLayout_0())), this.winLines[e].setLabelFont_1(this.font), this.winLines[e].setWinLabelIndex_1(this.winLabelIndex), this.winLines[e].hideWinLine_1(!0)); this.setTabImage_1(this.tabsImage); } }, setScatterColors_2: function (a, b) { this.scatterWinLine = new GT1057(this.winlabels, this.scattersCanvas, null, this.lineThickness, this.outlineThickness, a, b, this.getReelsLayout_0()); this.scatterWinLine.setLabelFont_1(this.font); this.scatterWinLine.setWinLabelIndex_1(this.winLabelIndex); }, setTabImage_1: function (a) { this.tabsImage = a; if (null != this.winLineCoordinates) { null != this.leftTabs && this.leftTabs.destroy_0(); null != this.rightTabs && this.rightTabs.destroy_0(); var b = 0; null != a ? ((this.leftTabs = new GT1437(this, 0, 0, a.getWidth_0(), this.getHeight_0())), (this.rightTabs = new GT1437(this, this.getWidth_0() - a.getWidth_0(), 0, a.getWidth_0(), this.getHeight_0())), (b = Math.div(Math.div(a.getHeight_0(), a.getRows_0()), 2))) : ((this.leftTabs = new GT1437(this, 0, 0, 1, 1)), (this.rightTabs = new GT1437(this, 0, 0, 1, 1))); this.lines.reorder_1(!0); this.winlabels.reorder_1(!0); for (var d = 0; d < this.winLineCoordinates.length; d++) if (null != this.winLineCoordinates[d] && null != a) { var e = this.winLineCoordinates[d]; new GT1591(this.leftTabs, 0, e[1] - b, a, 0, d).hide_1(!0); new GT1591(this.rightTabs, 0, e[e.length - 1] - b, a, 0, Math.div(a.getRows_0(), 2) + d).hide_1(!0); } else new GT1560(this.leftTabs, 0, 0, 0, 0).hide_1(!0), new GT1560(this.rightTabs, 0, 0, 0, 0).hide_1(!0); this.leftMap = this.sortTabsAccordingToY_2(this.leftTabs, !0); this.rightMap = this.sortTabsAccordingToY_2(this.rightTabs, !0); } }, setWinLabelIndex_1: function (a) { this.winLabelIndex = a; }, setWinningSymbols_3: function (a, b, d) { this.isShowLineWinFrames_0() ? a < this.winLines.length && null != this.winLines[a] && (this.isShowLineWinLabels_0() && this.winLines[a].setLabelText_1(d), this.winLines[a].setWinningSymbols_1(b)) : this.isShowLineWinLabels_0() && GT587.prototype.LOG.verbose && GT587.prototype.LOG.log_1("[GUIWinLineContainer] isShowLineWinLabels() returns true, but since isShowLineWinFrames() is already false, the win labels aren't being visualized."); }, setScatterWin_2: function (a, b) { this.isShowScatterWinFrames_0() && null != this.scatterWinLine ? (this.isShowScatterWinLabels_0() && this.scatterWinLine.setLabelText_1(b), this.scatterWinLine.setWinningSymbols_1(a)) : this.isShowScatterWinLabels_0() && GT587.prototype.LOG.verbose && GT587.prototype.LOG.log_1("[GUIWinLineContainer] isShowScatterWinLabels() returns true, but since isShowScatterWinFrames() is already false, the win labels aren't being visualized."); }, showScatter_1: function (a) { a && this.scatters.hide_1(!1); this.scatterWinLine.hideWinLine_1(!a); this.scattersCanvas.clear_0(); this.winlabels.destroyChildren_0(); this.scatterWinLine.update_0(); }, showLine_2: function (a, b) { this.winLinesVisible = 0; b && this.lines.hide_1(!1); 0 <= a && a < this.winLines.length && null != this.winLines[a] && this.winLines[a].hideWinLine_1(!b); this.updateWinlines_0(); }, showLines_1: function (a) { this.lines.hide_1(!1); for (var b = 0; b < this.winLines.length; b++) b < this.winLines.length && null != this.winLines[b] && this.winLines[b].hideWinLine_1(b >= a); a >= this.winLinesVisible ? this.updateWinlines_2(this.winLinesVisible, a - 1) : this.updateWinlines_0(); this.winLinesVisible = a; }, updateWinlines_0: function () { this.updateWinlines_2(0, this.winLines.length - 1); }, updateWinlines_2: function (a, b) { this.winlabels.destroyChildren_0(); b - a == this.winLines.length - 1 && 0 == a && this.linesCanvas.clear_0(); b >= this.winLines.length && (b = this.winLines.length - 1); for (var d = a; d <= b; d++) null != this.winLines[d] && this.winLines[d].update_0(); }, showAllLines_1: function (a) { this.winlabels.destroyChildren_0(); if (!a) for (var b = 0; b < this.winLines.length; b++) null != this.winLines[b] && this.winLines[b].hideWinLine_1(!0); this.lines.hide_1(!a); }, showTab_2: function (a, b) { var d; null != this.leftTabs && (b && this.leftTabs.hide_1(!1), (d = this.leftTabs.getChild_1(null != this.leftMap && this.leftMap.length > a ? this.leftMap[a] : a)), null != d && d.hide_1(!b)); null != this.rightTabs && (b && this.rightTabs.hide_1(!1), (d = this.rightTabs.getChild_1(null != this.rightMap && this.rightMap.length > a ? this.rightMap[a] : a)), null != d && d.hide_1(!b)); }, showAllTabs_1: function (a) { var b; if (null != this.leftTabs) { this.leftTabs.hide_1(!a); for (var d = 0; d < this.leftTabs.getChildCount_0(); d++) (b = this.leftTabs.getChild_1(d)), null != b && b.hide_1(!a); } if (null != this.rightTabs) for (this.rightTabs.hide_1(!a), d = 0; d < this.rightTabs.getChildCount_0(); d++) (b = this.rightTabs.getChild_1(d)), null != b && b.hide_1(!a); }, isTabVisible_1: function (a) { var b = !1; a = null != this.leftMap && this.leftMap.length > a ? this.leftMap[a] : a; null != this.leftTabs && null != this.rightTabs && (this.leftTabs.isHidden_0() || null == this.leftTabs.getChild_1(a) || this.leftTabs.getChild_1(a).isHidden_0() || (b = !0)); return b; }, sortTabsAccordingToY_2: function (a, b) { for (var d = [].createArray(a.getChildCount_0()).init(0), e = 0; e < d.length; e++) d[e] = e; for (var f = [].createArray(a.getChildCount_0()).init(0), e = 0; e < a.getChildCount_0() - 1; e++) for (var g = 0; g < a.getChildCount_0() - e - 1; g++) if (a.getChild_1(g).getY_0() > a.getChild_1(g + 1).getY_0() == b) { a.getChild_1(g).reorderToPosition_1(g + 1); var k = d[g]; d[g] = d[g + 1]; d[g + 1] = k; } for (e = 0; e < f.length; e++) f[d[e]] = e; return f; }, }, "GT587", [] ); GT587.prototype.decodeCoordinate_9 = function (a, b, d, e, f, g, k, m, n) { if (a.startsWith_1("MX")) return b.getColumnPos_1(GT1672.prototype.stringToInt_2(a.substring_1(2), 0)) + Math.div(b.symbolWidth, 2); if (a.startsWith_1("MY") && 2 < a.length_0()) return b.getRowPos_1(GT1672.prototype.stringToInt_2(a.substring_1(2), 0)) + Math.div(b.symbolHeight, 2); if (a.startsWith_1("SX")) { if (2 < a.length_0()) { d = a.substring_1(2); e = d.indexOf_1(46); if (-1 == e) return b.getColumnPos_1(GT1672.prototype.stringToInt_2(a.substring_1(2), 0)); a = GT1672.prototype.stringToInt_2(d.substring_2(0, e), 0); d = "0." + d.substring_2(e + 1, d.length_0()); d = GT1672.prototype.stringToDouble_2(d, 0); return Integer.truncate_1(b.getColumnPos_1(a) + b.symbolWidth * d); } return 0 <= m ? m : k; } return a.startsWith_1("EX") ? 2 < a.length_0() ? b.getColumnPos_1(GT1672.prototype.stringToInt_2(a.substring_1(2), 0)) + b.symbolWidth : 0 <= n ? f - n : f - k : a.startsWith_1("SY") ? e + Integer.truncate_1(d * GT1672.prototype.stringToDouble_2(a.substring_1(2), 0)) + g : GT1672.prototype.stringToInt_2(a, 0); }; GT587.prototype.trimunncessarypoints_1 = function (a) { for (var b = 2; b < a.length - 2; b += 2) if (0 == (a[b] - a[b - 2]) * (a[b + 3] - a[b + 1]) - (a[b + 1] - a[b - 1]) * (a[b + 2] - a[b])) { var d = [].createArray(a.length - 2).init(0); java_lang_System.prototype.arraycopy_5(a, 0, d, 0, b); java_lang_System.prototype.arraycopy_5(a, b + 2, d, b, d.length - b); return this.trimunncessarypoints_1(d); } return a; }; GT587.prototype.computeWinLineCoordinates_10 = function (a, b, d, e, f, g, k, m, n, p) { a = GT1320.prototype.getSeperatedString_2(a, 44); for (var q = [].createArray(a.length).init(0), r = 0; r < a.length; r++) (a[r] = a[r].trim_0()), (q[r] = this.decodeCoordinate_9(a[r], b, d, e, f, g, k, m, n)); for (r = 2; r + 3 < a.length; r += 2) (b = a[r]), "L".equals_1(b) ? ((b = Integer.truncate_1((q[r + 1] - q[r - 1]) / p)), (q[r] = 0 < b ? q[r - 2] + b : q[r - 2] - b)) : "R".equals_1(b) && ((b = Integer.truncate_1((q[r + 3] - q[r + 1]) / p)), (q[r] = 0 < b ? q[r + 2] - b : q[r + 2] + b)); for (r = 5; r + 4 < a.length; r += 2) (b = a[r]), "L".equals_1(b) ? ((b = Integer.truncate_1((q[r - 1] - q[r - 3]) * p)), (d = q[r - 2] - q[r - 4]), (q[r] = 0 < d ? q[r - 2] + b : q[r - 2] - b)) : "R".equals_1(b) && ((b = Integer.truncate_1((q[r + 1] - q[r - 1]) * p)), (d = q[r + 4] - q[r + 2]), (q[r] = 0 < d ? q[r + 2] - b : q[r + 2] + b)); return this.trimunncessarypoints_1(q); }; GT587.prototype.autoGenerateWinlines_1 = function (a) { for (var b = 0; b < a.length; b++) { var d = null; if (null != a[b] && -1 != a[b].indexOf_1(65)) { for (var e = GT1677.prototype.tokenize_2(a[b], ","), f = 0; f < e.length; f++) if (((d = e[f].trim_0()), 65 == d.charAt_1(0))) { d = d.substring_2(1, d.length_0()); d = d.trim_0(); break; } var f = -1, g = 0, k = 0; if (null == d) GT1650.prototype.assertFailed_1("Wrong line definition: " + a[b]); else { for (var m = [].createArray(d.length_0()).init(0), n = 0; n < d.length_0(); n++) switch (d.charAt_1(n)) { case 94: m[n] = 0; break; case 45: m[n] = 1; break; case 95: m[n] = 2; break; case 86: m[n] = 3; break; case 42: m[n] = 4; break; case 43: m[n] = 5; } for (n = 0; n < d.length_0() - 1; n++) { var p = Math.abs_1(m[n] - m[n + 1]); 0 != p && ((f = -1 == f ? n : f), (g = n), (k = k < p ? p : k)); } for (var p = e.length - 1, q = "", q = e[0] + "," + e[1] + ",", r = e[1] + ",", n = 0; n < d.length_0() - 1; n++) { var t = m[n + 1]; 1 == k ? n == f ? (q = n != g ? q + "R," + r + "MX" + (n + 1) + ",MY" + t + "," : q + "EX" + n + "," + r + "SX" + (n + 1) + "," + e[p] + ",") : n == g ? (q = q + "L," + e[p] + ",") : n < g && n > f && ((q = q + "MX" + (n + 1) + ","), (q = q + "MY" + t + ",")) : ((t = n == d.length_0() - 2 ? e[e.length - 1] + "," : "MY" + t + ","), (q = q + "SX" + n + ".99," + r), (q = q + "SX" + (n + 1) + ".01," + t), (r = t)); } q = "" + q + e[p - 1] + "," + e[p]; a[b] = q; } } } return a; }; GT587.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT257 = GT319.extend( { initialConstructor_0: function () { this.stoppedReels = this.symbolColorTransformation = this.timer = this.reelsLayout = null; this.synchronize = !1; this.currentReelset = this.currentPositions = this.symbols = null; GT319.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.stoppedReels = this.symbolColorTransformation = this.timer = this.reelsLayout = null; this.synchronize = !1; this.currentReelset = this.currentPositions = this.symbols = null; GT319.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.reelsLayout = new GT1545(g, m, n); this.timer = k; this.synchronize = !1; }, getGUIStoppedReels_0: function () { return this.stoppedReels; }, setSynchronize_1: function (a) { this.synchronize = a; }, isSynchronized_0: function () { return this.synchronize; }, setSymbolColorTransformation_1: function (a) { this.symbolColorTransformation = a; }, getSymbolColorTransformation_0: function () { return this.symbolColorTransformation; }, setStoppedReels_1: function (a) { this.stoppedReels = a; }, init_4: function (a, b, d, e) { GT1650.prototype.assertExp_2(0 < b.getNumberOfReels_0(), "reelset has to have at least one reel"); this.initSymbols_2(a, b); }, initSymbols_2: function (a, b) { var d = b != this.currentReelset; if (!d) if (null == this.currentPositions) d = !0; else for (var e = 0; e < a.length; e++) if (this.currentPositions[e] != a[e]) { d = !0; break; } d && ((this.symbols = GT1613.prototype.createEndPositions_3(a, b, this.reelsLayout.rows)), (this.currentReelset = b), (this.currentPositions = a)); }, getVisibleSymbols_0: function () { return this.symbols; }, getSymbolAt_2: function (a, b) { var d = 0 <= a && 0 <= b && a < this.symbols.length && b < this.symbols[a].length ? this.symbols[a][b] : GT257.prototype.DEBUG_SYMBOL_CHARACTER; d == GT257.prototype.DEBUG_SYMBOL_CHARACTER && GT257.prototype.LOG.verbose && GT257.prototype.LOG.log_1("[GUISymbolHighlight] Call of getSymbolAt(" + a + ", " + b + ") attempted to access an invalid symbol!"); return d; }, showAllSymbolsOfTheStoppedReels_0: function () { if (null != this.stoppedReels) for (var a = this.stoppedReels.getChildCount_0(), b = 0; b < a; b++) this.stoppedReels.getChild_1(b).hide_1(!1); }, }, "GT257", [] ); GT257.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT257.prototype.DEBUG_SYMBOL_CHARACTER = 63; var GT96 = GT257.extend( { initialConstructor_0: function () { this.skinManager = this.imageToContainerReplacementListeners = this.animations = this.highlightObjects = null; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.skinManager = this.imageToContainerReplacementListeners = this.animations = this.highlightObjects = null; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.animations = p; this.skinManager = q; this.imageToContainerReplacementListeners = [].createArray(128); }, addImageToContainerReplacementListenerForSymbol_3: function (a, b, d) { if (null != d && null != b) { var e = this.imageToContainerReplacementListeners[a]; null == e && ((e = new java_util_JavaScriptVector()), (this.imageToContainerReplacementListeners[a] = e)); e.addElement_1(new GT65(b, d)); } }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, setHighlight_4: function (a, b, d, e) { if (null == this.highlightObjects[a][b] && ((e = this.getSymbolAt_2(a, b)), (d = this.determineAnimation_2(e, d)), null != d)) { var f = this.reelsLayout.getColumnPos_1(a), g = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b), k = this.reelsLayout.symbolWidth, m = this.reelsLayout.symbolHeight; null != d.location && ((f += d.location.x), (g += d.location.y), 0 < d.location.width && (k = d.location.width), 0 < d.location.height && (m = d.location.height)); f = new GT744(this, f, g, k, m, this.timer, d.jsonFileName, d.animationName, !0, this.skinManager); f.setAnimationOffset_2(d.animationOffsetX, d.animationOffsetY); if (null != d.imageToContainerReplacements) for (g = 0; g < d.imageToContainerReplacements.size_0(); g++) f.addImageToContainerReplacement_1(d.imageToContainerReplacements.get_1(g)); this.highlightObjects[a][b] = f; d = this.getGUIStoppedReels_0(); null != d && d.getSymbolObject_2(a, b).hide_1(!0); f.start_0(); if (null != this.imageToContainerReplacementListeners[e]) for (g = 0; g < this.imageToContainerReplacementListeners[e].size_0(); g++) (a = this.imageToContainerReplacementListeners[e].get_1(g)), f.addListenerForReplacementContainer_2(a.filename, a.listener); } }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); }, determineAnimation_2: function (a, b) { var d = this.animations[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, removeHighlight_2: function (a, b) { GT1560.prototype.isAlive_1(this.highlightObjects[a][b]) && (this.highlightObjects[a][b].stop_0(), this.highlightObjects[a][b].destroy_0()); this.highlightObjects[a][b] = null; }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; b++) for (var d = 0; d < this.highlightObjects[b].length; d++) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, removeAllHighlights_0: function () { for (var a = 0; a < this.highlightObjects.length; a++) for (var b = 0; b < this.highlightObjects[a].length; b++) this.removeHighlight_2(a, b); this.showHighlightedSymbolsOfTheStoppedReels_0(); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, }, "GT96", [] ), GT65 = Class.extend( { initialConstructor_0: function () { this.listener = this.filename = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.listener = this.filename = null; this.filename = a; this.listener = b; }, }, "GT65", [] ), GT168 = GT257.extend( { initialConstructor_0: function () { this.pulsatingImages = null; this.pulsatingDuration = 0; this.highlightObjects = this.highlights = null; this.flipHorizontal = this.reverseReorder = !1; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.pulsatingImages = null; this.pulsatingDuration = 0; this.highlightObjects = this.highlights = null; this.flipHorizontal = this.reverseReorder = !1; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, n, p, q, r); this.pulsatingImages = g; this.pulsatingDuration = k; this.flipHorizontal = m; }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = b.getCount_0(); this.highlights[g][k] < m && (this.highlights[g][k] = m); } } }, determineImage_2: function (a, b) { var d = this.pulsatingImages[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, setReversePaintOrder_1: function (a) { this.reverseReorder = a; }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; b++) for (var d = 0; d < this.reelsLayout.rows; d++) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, setHighlight_4: function (a, b, d, e) { if (null == this.highlightObjects[a][b] && ((d = -1 == this.highlights[a][b] ? d : this.highlights[a][b]), (d = this.determineImage_2(this.getSymbolAt_2(a, b), d)), null != d)) { GT1650.prototype.assertExp_2( 0 == d.getHeight_0() % this.reelsLayout.symbolHeight, "Symbol image: " + d.toString() + " height is " + d.getHeight_0() + " which is not a multiply of layout symbol height: " + this.reelsLayout.symbolHeight ); var f = Math.div(d.getHeight_0(), this.reelsLayout.symbolHeight); GT1650.prototype.assertExp_2(3 >= f, "Number of image rows (" + f + " for " + d.toString() + " mustn't be more than 3!"); var g = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b); if (2 == f || 3 == f) g -= this.reelsLayout.symbolHeight; var k = new GT1437(this, this.reelsLayout.getColumnPos_1(a), g, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight * f); k.setColorTransformation_1(this.getSymbolColorTransformation_0()); g = Math.ceil_1(Math.div(this.reelsLayout.symbolWidth, 2)); f = Math.ceil_1(Math.div(this.reelsLayout.symbolHeight * f, 2)); d = new GT1075(k, 0, 0, k.getWidth_0(), k.getHeight_0(), d, Integer.truncate_1(g), Integer.truncate_1(f)); d.setTranslation_2(g, f); d.setScale_2(1, 1); this.highlightObjects[a][b] = d; g = null; g = this.flipHorizontal ? new GT1132(this.timer, d, e, Math.ceil_1(Math.div(this.pulsatingDuration, 2)), 1, -1, 1, 1, !1) : new GT1132(this.timer, d, e, Math.ceil_1(Math.div(this.pulsatingDuration, 2)), 1, 1, 1, -1, !1); g.addStartCallback_1(new GT869(this.getGUIStoppedReels_0().getSymbolObject_2(a, b))); g.start_0(); this.reverseReorder ? this.reverseReorderObjects_0() : this.reorderObjects_0(); } }, removeHighlight_2: function (a, b) { if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { this.getChild_1(d).destroy_0(); this.highlightObjects[a][b] = null; this.highlights[a][b] = -1; break; } }, removeAllHighlights_0: function () { this.showHighlightedSymbolsOfTheStoppedReels_0(); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; b++) for (var d = 0; d < this.highlightObjects[b].length; d++) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, }, "GT168", [] ), GT74 = GT257.extend( { initialConstructor_0: function () { this.highlightObjects = this.highlightImages = null; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.highlightObjects = this.highlightImages = null; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, k, m, n, p); this.highlightImages = g; }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { GT74.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, k, null, m, n); }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); }, removeAllHighlights_0: function () { this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, determineImage_2: function (a, b) { var d = this.highlightImages[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, createSymbolHighlightImageObject_4: function (a, b, d, e) { var f = 0; 1 < a.getRows_0() && (f = a.getRows_0() - (a.getRows_0() - 1)); var f = this.reelsLayout.getReelY_1(b) + this.reelsLayout.getRowPos_1(d) - f * this.reelsLayout.symbolHeight, g = this.reelsLayout.symbolHeight * a.getRows_0(); a.getHeight_0() != this.reelsLayout.symbolHeight && ((f = this.reelsLayout.getReelY_1(b) + this.reelsLayout.getRowPos_1(d) - this.reelsLayout.symbolHeight), (g = a.getHeight_0())); b = new GT1437(this, this.reelsLayout.getColumnPos_1(b), f, this.reelsLayout.symbolWidth, g); b.setColorTransformation_1(e); return new GT1591(b, 0, 0, b.getWidth_0(), b.getHeight_0(), a, 0, 0, a.getWidth_0(), a.getHeight_0(), !0); }, }, "GT74", [] ), GT78 = GT319.extend( { initialConstructor_0: function () { GT319.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT319.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, setStoppedReels_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT319) && b.setStoppedReels_1(a); }, setSymbolColorTransformation_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT319) && b.setSymbolColorTransformation_1(a); }, setSynchronize_1: function (a) { for (var b, d = this.getChildCount_0(), e = 0; e < d; e++) (b = this.getChild_1(e)), instanceOf(b, GT319) && b.setSynchronize_1(a); }, init_4: function (a, b, d, e) { for (var f, g = this.getChildCount_0(), k = 0; k < g; k++) (f = this.getChild_1(k)), instanceOf(f, GT319) && f.init_4(a, b, d, e); }, setHighlight_3: function (a, b, d) { for (var e, f = this.getChildCount_0(), g = 0; g < f; g++) (e = this.getChild_1(g)), instanceOf(e, GT319) && e.setHighlight_3(a, b, d); }, setHighlight_4: function (a, b, d, e) { for (var f, g = this.getChildCount_0(), k = 0; k < g; k++) (f = this.getChild_1(k)), instanceOf(f, GT319) && f.setHighlight_4(a, b, d, e); }, removeHighlight_2: function (a, b) { for (var d, e = this.getChildCount_0(), f = 0; f < e; f++) (d = this.getChild_1(f)), instanceOf(d, GT319) && d.removeHighlight_2(a, b); }, removeAllHighlights_0: function () { for (var a, b = this.getChildCount_0(), d = 0; d < b; d++) (a = this.getChild_1(d)), instanceOf(a, GT319) && a.removeAllHighlights_0(); }, }, "GT78", [] ), GT112 = GT257.extend( { initialConstructor_0: function () { this.pulsatingImages = null; this.scaleFactor = this.pulsatingDuration = 0; this.highlightObjects = this.highlights = null; this.reverseReorder = !1; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.pulsatingImages = null; this.scaleFactor = this.pulsatingDuration = 0; this.highlightObjects = this.highlights = null; this.reverseReorder = !1; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, n, p, q, r); this.pulsatingImages = g; this.pulsatingDuration = k; this.scaleFactor = m; }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = b.getCount_0(); this.highlights[g][k] < m && (this.highlights[g][k] = m); } } }, determineImage_2: function (a, b) { var d = this.pulsatingImages[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, setReversePaintOrder_1: function (a) { this.reverseReorder = a; }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; b++) for (var d = 0; d < this.reelsLayout.rows; d++) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, setHighlight_4: function (a, b, d, e) { if (null == this.highlightObjects[a][b] && ((d = -1 == this.highlights[a][b] ? d : this.highlights[a][b]), (d = this.determineImage_2(this.getSymbolAt_2(a, b), d)), null != d)) { GT1650.prototype.assertExp_2( 0 == d.getHeight_0() % this.reelsLayout.symbolHeight, "Symbol image: " + d.toString() + " height is " + d.getHeight_0() + " which is not a multiply of layout symbol height: " + this.reelsLayout.symbolHeight ); var f = Math.div(d.getHeight_0(), this.reelsLayout.symbolHeight); GT1650.prototype.assertExp_2(3 >= f, "Number of image rows (" + f + " for " + d.toString() + " mustn't be more than 3!"); var g = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b); if (2 == f || 3 == f) g -= this.reelsLayout.symbolHeight; var k = new GT1437(this, this.reelsLayout.getColumnPos_1(a), g, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight * f); k.setColorTransformation_1(this.getSymbolColorTransformation_0()); g = Math.ceil_1(Math.div(this.reelsLayout.symbolWidth, 2)); f = Math.ceil_1(Math.div(this.reelsLayout.symbolHeight * f, 2)); d = new GT1075(k, 0, 0, k.getWidth_0(), k.getHeight_0(), d, Integer.truncate_1(g), Integer.truncate_1(f)); d.setTranslation_2(g, f); d.setScale_2(1, 1); this.highlightObjects[a][b] = d; e = new GT1132(this.timer, d, e, Math.ceil_1(Math.div(this.pulsatingDuration, 2)), 1, this.scaleFactor); e.addStartCallback_1(new GT869(this.getGUIStoppedReels_0().getSymbolObject_2(a, b))); e.start_0(); this.reverseReorder ? this.reverseReorderObjects_0() : this.reorderObjects_0(); } }, removeHighlight_2: function (a, b) { if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { this.getChild_1(d).destroy_0(); this.highlightObjects[a][b] = null; this.highlights[a][b] = -1; break; } }, removeAllHighlights_0: function () { this.showHighlightedSymbolsOfTheStoppedReels_0(); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; b++) for (var d = 0; d < this.highlightObjects[b].length; d++) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, }, "GT112", [] ), GT151 = GT257.extend( { initialConstructor_0: function () { this.guiObjectDependentCallbacks = this.highlightObjects = this.highlights = this.textureAtlasCache = this.playersCache = this.spines = null; this.symbolCountWhenSubstituting = 0; this.hideStoppedReels = this.reversedrawingorder = !1; this.skinManager = null; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.guiObjectDependentCallbacks = this.highlightObjects = this.highlights = this.textureAtlasCache = this.playersCache = this.spines = null; this.symbolCountWhenSubstituting = 0; this.hideStoppedReels = this.reversedrawingorder = !1; this.skinManager = null; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.skinManager = q; this.spines = p; this.hideStoppedReels = !0; this.playersCache = new java_util_JavaScriptVector(); this.textureAtlasCache = new java_util_JavaScriptVector(); }, triggerLoading_4: function (a, b, d, e) { this.initSymbols_2(a, b); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e && null != d) for (a = 0; a < d.length; ++a) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); ++f) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = this.getSymbolAt_2(g, k); if (m != GT257.prototype.DEBUG_SYMBOL_CHARACTER) { var n = d[a].num; d[a].symbol != m && 0 < this.symbolCountWhenSubstituting && n > this.symbolCountWhenSubstituting && (n = this.symbolCountWhenSubstituting); this.triggerLoading_3(g, k, n); this.highlights[g][k] < n && (this.highlights[g][k] = n); } } } }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.guiObjectDependentCallbacks = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e && null != d) for (a = 0; a < d.length; ++a) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); ++f) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = this.getSymbolAt_2(g, k); if (m != GT257.prototype.DEBUG_SYMBOL_CHARACTER) { var n = d[a].num; d[a].symbol != m && 0 < this.symbolCountWhenSubstituting && n > this.symbolCountWhenSubstituting && (n = this.symbolCountWhenSubstituting); this.triggerLoading_3(g, k, n); this.highlights[g][k] < n && (this.highlights[g][k] = n); } } } }, triggerLoading_3: function (a, b, d) {}, setHighlight_4: function (a, b, d, e) { this.setHighlight_5(a, b, d, e, !1); }, setHighlight_5: function (a, b, d, e, f) { if (null == this.highlightObjects[a][b]) { var g = this.getSymbolAt_2(a, b), k = this.highlights[a][b]; if (-1 == k || f) k = d; d = this.determineSpine_2(g, k); if (null != d) { var k = this.determineSpineForRepetition_2(g, k), m, g = this.reelsLayout.getColumnPos_1(a) + d.dx; m = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b) + d.dy; f = 0 <= d.width ? d.width : this.reelsLayout.symbolWidth; var n = 0 <= d.height ? d.height : this.reelsLayout.symbolHeight; m = new GT1437(this, g, m, f, n); m.setColorTransformation_1(this.getSymbolColorTransformation_0()); g = this.findCachedSpinePlayer_4(d, k, f, n); null != g && this.isSynchronized_0() ? ((e = new GT1360(m, 0, 0, f, n, g)), e.setHorizontalFlip_1(d.hFlip), e.setVerticalFlip_1(d.vFlip), e.setScaleX_1(d.contentScaleX), e.setScaleY_1(d.contentScaleY), e.setContentX_1(d.contentOffsetX), e.setContentY_1(d.contentOffsetY), (this.highlightObjects[a][b] = e)) : ((g = this.findCachedTextureAtlas_2(d.textureAtlasFileName, d.requiredImagesDirectory)), null == g && ((g = this.skinManager.getResourceManager_0().getTextDocument_1(d.textureAtlasFileName)), (g = new GT1170(this.skinManager.getResourceManager_0(), g, d.requiredImagesDirectory)), this.textureAtlasCache.addElement_1(d.textureAtlasFileName), this.textureAtlasCache.addElement_1(d.requiredImagesDirectory), this.textureAtlasCache.addElement_1(g)), (g = new GT1359(m, 0, 0, f, n, this.timer, this.skinManager.getResourceManager_0().getJSONObject_1(d.jsonFileName), g, d.spineObjectName)), null != d.skinName && 0 < d.skinName.length_0() && g.getSkeleton_0().setSkin_1(d.skinName), this.applyHighLightSpineDataToPlayer_3(g, d, !1), this.playersCache.addElement_1(d), this.playersCache.addElement_1(k), this.playersCache.addElement_1(g), g.start_0(), (this.highlightObjects[a][b] = g), null == k || null == d || (this.stringsAreEqual_2(d.jsonFileName, k.jsonFileName) && this.stringsAreEqual_2(d.spineObjectName, k.spineObjectName) && this.stringsAreEqual_2(d.skinName, k.skinName) && this.stringsAreEqual_2(d.textureAtlasFileName, k.textureAtlasFileName) && this.stringsAreEqual_2(d.requiredImagesDirectory, k.requiredImagesDirectory)) || (k = null), (e = new GT3(this, g, k, e)), g.addFinishNotification_1(e)); this.hideStoppedReels && null != this.getGUIStoppedReels_0() && ((e = this.getGUIStoppedReels_0().getSymbolObject_2(a, b)), (e = new GT110(new GT869(e), this.highlightObjects[a][b], !0)), (e = new GT5(g, e)), g.addStartNotification_1(e), this.isGuiObjectDependentCallbacksArrayPositionValid_2(a, b) && (this.guiObjectDependentCallbacks[a][b] = e)); this.reversedrawingorder ? this.reverseReorderObjects_0() : this.reorderObjects_0(); } } }, applyHighLightSpineDataToPlayer_3: function (a, b, d) { for (var e = new java_util_JavaScriptHashtable(), f = 0; f < b.animations.size_0(); ++f) { var g = b.animations.elementAt_1(f), k = "" + g.trackIndex; e.containsKey_1(k) ? null == g.animationName ? a.addEmptyAnimation_3(g.trackIndex, g.mixDuration, g.delay) : a.addAnimation_5(g.trackIndex, g.animationName, g.looped, g.delay, g.mixDuration) : (null == g.animationName ? a.setEmptyAnimation_2(g.trackIndex, g.mixDuration) : a.setAnimation_4(g.trackIndex, g.animationName, g.looped, g.mixDuration), e.put_2(k, new Boolean(!0))); } if (null != b.trackMergingAlphas && 0 < b.trackMergingAlphas.size_0()) for (f = 0; f < b.trackMergingAlphas.size_0(); ++f) (g = b.trackMergingAlphas.elementAt_1(f)), (k = Integer.truncate_1(g.x)), e.containsKey_1("" + k) && a.setTrackMergingAlpha_2(k, g.y); a.setHorizontalFlip_1(b.hFlip); a.setVerticalFlip_1(b.vFlip); a.setScaleX_1(b.contentScaleX); a.setScaleY_1(b.contentScaleY); a.setContentX_1(b.contentOffsetX); a.setContentY_1(b.contentOffsetY); a.setTimeScale_1(b.timeScale); if (d && ((a = a.getViewers_0()), null != a)) for (f = 0; f < a.size_0(); ++f) (d = a.elementAt_1(f)), null != d && (d.setHorizontalFlip_1(b.hFlip), d.setVerticalFlip_1(b.vFlip), d.setScaleX_1(b.contentScaleX), d.setScaleY_1(b.contentScaleY), d.setContentX_1(b.contentOffsetX), d.setContentY_1(b.contentOffsetY)); }, setHideStoppedReelsImages_1: function (a) { this.hideStoppedReels = a; }, reorderHighlight_3: function (a, b, d) { null != this.highlightObjects[a][b] && this.highlightObjects[a][b].isAlive_0() && this.highlightObjects[a][b].getParent_0().reorder_1(d); }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; ++b) for (var d = 0; d < this.reelsLayout.rows; ++d) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, isGuiObjectDependentCallbacksArrayPositionValid_2: function (a, b) { return null != this.guiObjectDependentCallbacks && this.guiObjectDependentCallbacks.length > a && this.guiObjectDependentCallbacks[a].length > b; }, removeHighlight_2: function (a, b) { this.highlights[a][b] = -1; if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); ++d) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { instanceOf(this.highlightObjects[a][b], GT1360) ? this.getChild_1(d).destroy_0() : (this.getChild_1(d).hide_1(!0), instanceOf(this.highlightObjects[a][b], GT1359) && this.isGuiObjectDependentCallbacksArrayPositionValid_2(a, b) && null != this.guiObjectDependentCallbacks[a][b] && this.highlightObjects[a][b].removeStartNotification_1(this.guiObjectDependentCallbacks[a][b])); this.highlightObjects[a][b] = null; this.reorderObjects_0(); break; } }, removeAllHighlights_0: function () { this.playersCache.setSize_1(0); this.textureAtlasCache.setSize_1(0); this.showHighlightedSymbolsOfTheStoppedReels_0(); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.guiObjectDependentCallbacks = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; ++b) for (var d = 0; d < this.highlightObjects[b].length; ++d) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, determineSpine_2: function (a, b) { return this.determineSpine_3(this.spines[0], a, b); }, determineSpineForRepetition_2: function (a, b) { return this.determineSpine_3(this.spines[1], a, b); }, determineSpine_3: function (a, b, d) { a = a[b]; return 0 > d || null == a || 1 > a.size_0() ? null : d < a.size_0() && null != a.elementAt_1(d) ? a.elementAt_1(d) : a.elementAt_1(0); }, findCachedTextureAtlas_2: function (a, b) { if (2 < this.textureAtlasCache.size_0()) for (var d = 0; d < this.textureAtlasCache.size_0(); d += 3) if (this.stringsAreEqual_2(this.textureAtlasCache.elementAt_1(d), a) && this.stringsAreEqual_2(this.textureAtlasCache.elementAt_1(d + 1), b)) return this.textureAtlasCache.elementAt_1(d + 2); return null; }, findCachedSpinePlayer_4: function (a, b, d, e) { if (2 < this.playersCache.size_0()) for (d = 0; d < this.playersCache.size_0(); d += 3) { e = this.playersCache.elementAt_1(d); var f = this.playersCache.elementAt_1(d + 1); if ( e.timeScale == a.timeScale && this.stringsAreEqual_2(e.jsonFileName, a.jsonFileName) && this.stringsAreEqual_2(e.spineObjectName, a.spineObjectName) && this.stringsAreEqual_2(e.skinName, a.skinName) && this.stringsAreEqual_2(e.textureAtlasFileName, a.textureAtlasFileName) && this.stringsAreEqual_2(e.requiredImagesDirectory, a.requiredImagesDirectory) && this.trackMergingAlphasAreEqual_2(e.trackMergingAlphas, a.trackMergingAlphas) && this.addedAnimationsAreEqual_2(e.animations, a.animations) && !((null == f && null != b) || (null != f && null == b)) ) { if (null != f && null != b) { if (f.timeScale != b.timeScale) continue; if (!this.trackMergingAlphasAreEqual_2(f.trackMergingAlphas, b.trackMergingAlphas)) continue; if (!this.addedAnimationsAreEqual_2(f.animations, b.animations)) continue; } return this.playersCache.elementAt_1(d + 2); } } return null; }, stringsAreEqual_2: function (a, b) { return null == a && null == b ? !0 : (null == a && null != b) || (null != a && null == b) ? !1 : a.equals_1(b); }, trackMergingAlphasAreEqual_2: function (a, b) { if (null == a && null == b) return !0; if ((null == a && null != b) || (null != a && null == b) || a.size_0() != b.size_0()) return !1; for (var d = 0; d < a.size_0(); ++d) { for (var e = a.elementAt_1(d), f = !1, g = 0; g < b.size_0(); ++g) { var k = b.elementAt_1(d); if (e.x == k.x && e.y == k.y) { f = !0; break; } } if (!f) return !1; } return !0; }, addedAnimationsAreEqual_2: function (a, b) { if (null == a && null == b) return !0; if ((null == a && null != b) || (null != a && null == b) || a.size_0() != b.size_0()) return !1; for (var d = 0; d < a.size_0(); ++d) { var e = a.elementAt_1(d), f = b.elementAt_1(d); if (e.looped != f.looped || e.mixDuration != f.mixDuration || e.delay != f.delay || e.trackIndex != f.trackIndex || !this.stringsAreEqual_2(e.animationName, f.animationName)) return !1; } return !0; }, setObject_3: function (a, b, d) { this.highlightObjects[a][b] = d; }, setSymbolCountWhenSubstituting_1: function (a) { this.symbolCountWhenSubstituting = a; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; }, }, "GT151", [] ), GT258 = Class.extend( { initialConstructor_0: function () { this.symbolHighlight = null; this.repetitions = this.highlighted = this.row = this.column = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.symbolHighlight = null; this.repetitions = this.highlighted = this.row = this.column = 0; this.symbolHighlight = a; this.column = b; this.row = d; this.highlighted = e; this.repetitions = f; }, run_0: function () { this.symbolHighlight.setHighlight_4(this.column, this.row, this.highlighted, this.repetitions); }, }, "GT258", [Runnable] ), GT165 = Class.extend( { initialConstructor_0: function () { this.callback = null; this.count = this.symbol = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.callback = null; this.count = this.symbol = 0; this.callback = a; this.symbol = b; this.count = d; }, getCallback_0: function () { return this.callback; }, getSymbol_0: function () { return this.symbol; }, getCount_0: function () { return this.count; }, shouldPlayFor_2: function (a, b) { return this.getSymbol_0() == a && (this.getCount_0() == b || 0 == this.getCount_0()); }, }, "GT165", [] ), GT5 = GT465.extend( { initialConstructor_0: function () { this.runnable = this.player = null; GT465.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.runnable = this.player = null; GT465.prototype.initialConstructor_3.call(this, -1, null, null); this.runnable = b; this.player = a; }, run_0: function () { null != this.player && this.player.removeStartNotification_1(this); null != this.runnable && this.runnable.run_0(); }, }, "GT5", [] ), GT3 = GT465.extend( { initialConstructor_0: function () { this.spineDataForRepetition = this.player = this.guiSymbolHighlightSpine = null; this.repetitions = 0; this.tracks = null; this.unfinishedTracksCount = this.tracksCount = 0; this.firstLoop = !1; GT465.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.spineDataForRepetition = this.player = this.guiSymbolHighlightSpine = null; this.repetitions = 0; this.tracks = null; this.unfinishedTracksCount = this.tracksCount = 0; this.firstLoop = !1; GT465.prototype.initialConstructor_3.call(this, -1, null, null); this.guiSymbolHighlightSpine = a; this.player = b; this.spineDataForRepetition = d; this.repetitions = e; this.firstLoop = !0; this.initTracksCount_0(); }, initTracksCount_0: function () { this.tracksCount = 0; this.tracks = new java_util_JavaScriptVector(); for (var a = 0; a < this.player.getAnimationState_0().getTracks_0().size; ++a) { var b = this.player.getAnimationState_0().getTracks_0().get_1(a); if (null != b) { for (var d = b.getTrackIndex_0(), e = !0, f = 0; e && f < this.tracks.size_0(); ++f) this.tracks.elementAt_1(f).x == d && (e = !1); if (e) { for (; null != b.getNext_0(); ) b = b.getNext_0(); null == b.getNext_0() && (this.tracks.addElement_1(new GT1370(b.getTrackIndex_0(), 0)), ++this.tracksCount); } } } this.unfinishedTracksCount = this.tracksCount; }, switchToRepetitionsSpine_0: function () { return null != this.spineDataForRepetition ? (this.player.clearAllTracks_0(), this.guiSymbolHighlightSpine.applyHighLightSpineDataToPlayer_3(this.player, this.spineDataForRepetition, !0), this.player.restart_0(), this.initTracksCount_0(), !0) : !1; }, handleSpineRepetitions_0: function () { if (null != this.player && 1 != this.repetitions) { 0 < this.repetitions && this.repetitions--; (this.firstLoop && this.switchToRepetitionsSpine_0()) || this.player.restart_0(); this.firstLoop = !1; this.unfinishedTracksCount = this.tracksCount; for (var a = 0; a < this.tracks.size_0(); ++a) this.tracks.elementAt_1(a).y = 0; } }, run_0: function () { if (0 < this.unfinishedTracksCount && null != this.getTriggeredTrackEntry_0() && null == this.getTriggeredTrackEntry_0().getNext_0()) for (var a = 0; a < this.tracks.size_0(); ++a) { var b = this.tracks.elementAt_1(a); if (1 != b.y && b.x == this.getTriggeredAnimationTrackIndex_0()) { b.y = 1; --this.unfinishedTracksCount; 0 == this.unfinishedTracksCount && this.handleSpineRepetitions_0(); break; } } }, }, "GT3", [] ), GT152 = GT257.extend( { initialConstructor_0: function () { this.guiObjectDependentCallbacks = this.highlightObjects = this.synchronizer = this.highlights = this.finishCallbacks = this.startCallbacks = this.videoPlayerCache = this.videoClips = null; this.dependentSymbolHighlightID = this.symbolCountWhenSubstituting = 0; this.dependentSymbolHighlight = null; this.hideStoppedReels = this.restoreSymbolAfterAnimationFinished = this.reversedrawingorder = !1; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.guiObjectDependentCallbacks = this.highlightObjects = this.synchronizer = this.highlights = this.finishCallbacks = this.startCallbacks = this.videoPlayerCache = this.videoClips = null; this.dependentSymbolHighlightID = this.symbolCountWhenSubstituting = 0; this.dependentSymbolHighlight = null; this.hideStoppedReels = this.restoreSymbolAfterAnimationFinished = this.reversedrawingorder = !1; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, k, m, n, p); this.videoClips = g; this.videoPlayerCache = new java_util_JavaScriptVector(); this.startCallbacks = new java_util_JavaScriptVector(); this.finishCallbacks = new java_util_JavaScriptVector(); this.synchronizer = null; this.restoreSymbolAfterAnimationFinished = !1; this.hideStoppedReels = !0; }, setRestoreSymbolAfterAnimationFinished_1: function (a) { this.restoreSymbolAfterAnimationFinished = a; }, triggerLoading_4: function (a, b, d, e) { this.initSymbols_2(a, b); null != this.getDependentSymbolHighlight_0() && instanceOf(this.getDependentSymbolHighlight_0(), GT152) && this.getDependentSymbolHighlight_0().triggerLoading_4(a, b, d, e); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e && null != d) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = this.getSymbolAt_2(g, k); if (m != GT257.prototype.DEBUG_SYMBOL_CHARACTER) { var n = d[a].num; d[a].symbol != m && 0 < this.symbolCountWhenSubstituting && n > this.symbolCountWhenSubstituting && (n = this.symbolCountWhenSubstituting); this.triggerLoading_3(g, k, n); this.highlights[g][k] < n && (this.highlights[g][k] = n); } } } }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); null != this.getDependentSymbolHighlight_0() && this.getDependentSymbolHighlight_0().init_4(a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.guiObjectDependentCallbacks = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e && null != d) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = this.getSymbolAt_2(g, k); if (m != GT257.prototype.DEBUG_SYMBOL_CHARACTER) { var n = d[a].num; d[a].symbol != m && 0 < this.symbolCountWhenSubstituting && n > this.symbolCountWhenSubstituting && (n = this.symbolCountWhenSubstituting); this.triggerLoading_3(g, k, n); this.highlights[g][k] < n && (this.highlights[g][k] = n); } } } }, triggerLoading_3: function (a, b, d) { a = this.getSymbolAt_2(a, b); d = this.determineVideoClip_2(a, d); null != d && d.clip.triggerLoading_2(null, !1); }, setSynchronizeAll_2: function (a, b) { this.synchronizer = a ? new GT56(b) : null; }, setHighlight_4: function (a, b, d, e) { this.setHighlight_5(a, b, d, e, 0); }, setHighlight_5: function (a, b, d, e, f) { this.setHighlight_6(a, b, d, e, f, !1); }, setHighlight_6: function (a, b, d, e, f, g) { if (null == this.highlightObjects[a][b]) { var k = this.getSymbolAt_2(a, b), m = this.highlights[a][b]; if (-1 == m || g) m = d; m = this.determineVideoClip_2(k, m); if (null != m) { var n; g = this.reelsLayout.getColumnPos_1(a) + m.dx; n = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b) + m.dy; var p = 0 <= m.width ? m.width : this.reelsLayout.symbolWidth, q = 0 <= m.height ? m.height : this.reelsLayout.symbolHeight, r = 0, t = 0, u = p, B = q; m.useClipping && ((g = this.reelsLayout.getColumnPos_1(a) + m.clippingDx), (n = this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b) + m.clippingDy), (p = 0 <= m.clippingWidth ? m.clippingWidth : this.reelsLayout.symbolWidth), (q = 0 <= m.clippingHeight ? m.clippingHeight : this.reelsLayout.symbolHeight), (r = m.dx - m.clippingDx), (t = m.dy - m.clippingDy), (u = 0 <= m.width ? m.width : this.reelsLayout.symbolWidth), (B = 0 <= m.height ? m.height : this.reelsLayout.symbolHeight)); n = new GT1437(this, g, n, p, q); n.setColorTransformation_1(this.getSymbolColorTransformation_0()); g = this.findCachedVideoPlayer_3(m.clip, u, B); if (null != g && this.isSynchronized_0()) (this.highlightObjects[a][b] = new GT1352(n, r, t, g)), this.highlightObjects[a][b].setHorizontalFlip_1(m.hFlip), this.highlightObjects[a][b].setVerticalFlip_1(m.vFlip); else { g = new GT1336(n, r, t, u, B, m.clip, e, m.repeatStartPosition); g.setHorizontalFlip_1(m.hFlip); g.setVerticalFlip_1(m.vFlip); this.videoPlayerCache.addElement_1(g); null != this.synchronizer && 1 != e && this.synchronizer.addPlayer_2(g, m.repeatStartPosition); g.start_0(); 0 != f ? g.seek_1(f) : 0 != m.startPosition && g.seek_1(m.startPosition); for (f = 0; f < this.startCallbacks.size_0(); ++f) (m = this.startCallbacks.get_1(f)), m.shouldPlayFor_2(k, this.highlights[a][b]) && g.addStartNotification_1(m.getCallback_0()); for (f = 0; f < this.finishCallbacks.size_0(); ++f) (m = this.finishCallbacks.get_1(f)), m.shouldPlayFor_2(k, this.highlights[a][b]) && g.addFinishNotification_1(m.getCallback_0()); this.highlightObjects[a][b] = g; } k = this.getGUIStoppedReels_0(); null != k && ((k = k.getSymbolObject_2(a, b)), this.hideStoppedReels && ((f = new GT110(new GT869(k), this.highlightObjects[a][b], !0)), g.addStartNotification_1(f), this.isGuiObjectDependentCallbacksArrayPositionValid_2(a, b) && (this.guiObjectDependentCallbacks[a][b] = f)), null != this.getDependentSymbolHighlight_0() && g.addStartNotification_1(new GT259(this.getDependentSymbolHighlight_0(), a, b, d, e)), this.restoreSymbolAfterAnimationFinished && (this.hideStoppedReels && g.addFinishNotification_1(new GT869(k, !1)), g.addFinishNotification_1(new GT869(this.highlightObjects[a][b], !0)))); this.reversedrawingorder ? this.reverseReorderObjects_0() : this.reorderObjects_0(); } } }, setHideStoppedReelsImages_1: function (a) { this.hideStoppedReels = a; }, seek_3: function (a, b, d) { null != this.highlightObjects[a][b] && (instanceOf(this.highlightObjects[a][b], GT1336) ? this.highlightObjects[a][b].seek_1(d) : instanceOf(this.highlightObjects[a][b], GT1352) && ((a = this.highlightObjects[a][b].getPlayer_0()), null != a && a.seek_1(d))); }, reorderHighlight_3: function (a, b, d) { null != this.highlightObjects[a][b] && this.highlightObjects[a][b].isAlive_0() && this.highlightObjects[a][b].getParent_0().reorder_1(d); }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; b++) for (var d = 0; d < this.reelsLayout.rows; d++) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, isGuiObjectDependentCallbacksArrayPositionValid_2: function (a, b) { return null != this.guiObjectDependentCallbacks && this.guiObjectDependentCallbacks.length > a && this.guiObjectDependentCallbacks[a].length > b; }, removeHighlight_2: function (a, b) { this.highlights[a][b] = -1; if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { instanceOf(this.highlightObjects[a][b], GT1352) ? this.getChild_1(d).destroy_0() : (this.getChild_1(d).hide_1(!0), instanceOf(this.highlightObjects[a][b], GT1336) && this.isGuiObjectDependentCallbacksArrayPositionValid_2(a, b) && null != this.guiObjectDependentCallbacks[a][b] && this.highlightObjects[a][b].removeStartNotification_1(this.guiObjectDependentCallbacks[a][b])); this.highlightObjects[a][b] = null; this.reorderObjects_0(); break; } }, removeAllHighlights_0: function () { null != this.getDependentSymbolHighlight_0() && this.getDependentSymbolHighlight_0().removeAllHighlights_0(); null != this.synchronizer && this.synchronizer.removeAllPlayers_0(); this.videoPlayerCache.setSize_1(0); this.showHighlightedSymbolsOfTheStoppedReels_0(); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.guiObjectDependentCallbacks = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; b++) for (var d = 0; d < this.highlightObjects[b].length; d++) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, determineVideoClip_2: function (a, b) { var d = this.videoClips[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, findCachedVideoPlayer_3: function (a, b, d) { for (var e = 0; e < this.videoPlayerCache.size_0(); e++) { var f = this.videoPlayerCache.elementAt_1(e); if (f.getClip_0() == a && f.getWidth_0() == b && f.getHeight_0() == d) return f; } return null; }, getDependentSymbolHighlight_0: function () { if (null == this.dependentSymbolHighlight && 0 != this.dependentSymbolHighlightID) { var a = this.getHighlightContainer_1(this.getParent_0()).findDescendant_1(this.dependentSymbolHighlightID); null != a && instanceOf(a, GT319) ? (this.dependentSymbolHighlight = a) : (this.dependentSymbolHighlightID = 0); } return this.dependentSymbolHighlight; }, getHighlightContainer_1: function (a) { return a.getApplicationID_0() == GT1618.prototype.HIGHLIGHT_CONTAINER ? a : this.getHighlightContainer_1(a.getParent_0()); }, setObject_3: function (a, b, d) { this.highlightObjects[a][b] = d; }, removeStartCallback_1: function (a) { this.startCallbacks.removeElement_1(a); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); }, addCallbackForWin_4: function (a, b, d, e) { if (null != b) { for (var f = 0; f < a.size_0(); ++f) { var g = a.get_1(f); if (g.getCallback_0().equals_1(b) && g.shouldPlayFor_2(d, e)) return; } a.add_1(new GT336(b, d, e)); } }, addStartCallbackForWin_3: function (a, b, d) { this.addCallbackForWin_4(this.startCallbacks, a, b, d); }, addFinishCallbackForWin_3: function (a, b, d) { this.addCallbackForWin_4(this.finishCallbacks, a, b, d); }, addStartCallbackForWinningSymbol_2: function (a, b) { this.addStartCallbackForWin_3(a, b, 0); }, addFinishCallbackForWinningSymbol_2: function (a, b) { this.addFinishCallbackForWin_3(a, b, 0); }, removeCallbacksForWin_3: function (a, b, d) { for (var e = 0; e < a.size_0(); ++e) { var f = a.get_1(e); if (f.getSymbol_0() == b && f.getCount_0() == d) { a.removeElementAt_1(e); this.removeCallbacksForWin_3(a, b, d); break; } } }, removeStartCallbacksForWin_2: function (a, b) { this.removeCallbacksForWin_3(this.startCallbacks, a, b); }, removeFinishCallbacksForWin_2: function (a, b) { this.removeCallbacksForWin_3(this.finishCallbacks, a, b); }, removeCallbacksForWinningSymbol_2: function (a, b) { for (var d = 0; d < a.size_0(); ++d) if (a.get_1(d).getSymbol_0() == b) { a.removeElementAt_1(d); this.removeCallbacksForWinningSymbol_2(a, b); break; } }, removeStartCallbacksForWinningSymbol_1: function (a) { this.removeCallbacksForWinningSymbol_2(this.startCallbacks, a); }, removeFinishCallbacksForWinningSymbol_1: function (a) { this.removeCallbacksForWinningSymbol_2(this.finishCallbacks, a); }, clearStartCallbacks_0: function () { this.startCallbacks.clear_0(); }, clearFinishCallbacks_0: function () { this.finishCallbacks.clear_0(); }, clearCallbacks_0: function () { this.clearStartCallbacks_0(); this.clearFinishCallbacks_0(); }, setSymbolCountWhenSubstituting_1: function (a) { this.symbolCountWhenSubstituting = a; }, setDependentSymbolHighlight_1: function (a) { this.dependentSymbolHighlightID = a; }, reverseDrawingOrder_1: function (a) { this.reversedrawingorder = a; }, }, "GT152", [] ), GT259 = Class.extend( { initialConstructor_0: function () { this.symbolHighlight = null; this.repetitions = this.highlighted = this.row = this.column = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.symbolHighlight = null; this.repetitions = this.highlighted = this.row = this.column = 0; this.symbolHighlight = a; this.column = b; this.row = d; this.highlighted = e; this.repetitions = f; }, run_0: function () { this.symbolHighlight.setHighlight_4(this.column, this.row, this.highlighted, this.repetitions); }, }, "GT259", [Runnable] ), GT56 = Class.extend( { initialConstructor_0: function () { this.ungroupedPlayers = this.allPlayerLists = this.allClips = null; this.callbackAdded = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.ungroupedPlayers = this.allPlayerLists = this.allClips = null; this.callbackAdded = !1; this.ungroupedPlayers = new java_util_JavaScriptVector(); if (null != a) { this.allClips = new java_util_JavaScriptVector(); this.allPlayerLists = new java_util_JavaScriptVector(); for (var b = 0; b < a.length; b++) for (var d = new java_util_JavaScriptVector(), e = 0; e < a[b].length; e++) this.allClips.add_1(a[b][e]), this.allPlayerLists.add_1(d); } else this.allPlayerLists = this.allClips = null; }, addPlayer_2: function (a, b) { if (null == this.allClips) { var d = new GT260(a, b, this.ungroupedPlayers); this.callbackAdded || (a.addFinishNotification_1(d), (this.callbackAdded = !0)); this.ungroupedPlayers.addElement_1(d); } else if (((d = this.allClips.indexOf_1(a.getClip_0())), -1 != d)) { var e = this.allPlayerLists.get_1(d), d = new GT260(a, b, e); a.addFinishNotification_1(d); e.addElement_1(d); } }, removeAllPlayers_0: function () { this.callbackAdded = !1; this.ungroupedPlayers.setSize_1(0); }, }, "GT56", [] ), GT260 = Class.extend( { initialConstructor_0: function () { this.player = null; this.repeatStartPos = 0; this.playerList = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.player = null; this.repeatStartPos = 0; this.playerList = null; this.player = a; this.repeatStartPos = b; this.playerList = d; }, run_0: function () { for (var a = 0; a < this.playerList.size_0(); a++) { var b = this.playerList.get_1(a); b != this && b.player.isAlive_0() && b.player.seek_1(b.repeatStartPos); } }, }, "GT260", [Runnable] ), GT336 = Class.extend( { initialConstructor_0: function () { this.callback = null; this.count = this.symbol = 0; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.callback = null; this.count = this.symbol = 0; this.callback = a; this.symbol = b; this.count = d; }, getCallback_0: function () { return this.callback; }, getSymbol_0: function () { return this.symbol; }, getCount_0: function () { return this.count; }, shouldPlayFor_2: function (a, b) { return this.getSymbol_0() == a && (this.getCount_0() == b || 0 == this.getCount_0()); }, }, "GT336", [] ), GT130 = GT257.extend( { initialConstructor_0: function () { this.highlightImages = this.symbolImages = null; this.fadeCycleDuration = this.loopTime = this.maxWobble = 0; this.objectsHigh = this.objectsSym = this.highlights = null; this.fadeAnimation = this.reverseReorder = !1; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_13: function (a, b, d, e, f, g, k, m, n, p, q, r, t) { this.highlightImages = this.symbolImages = null; this.fadeCycleDuration = this.loopTime = this.maxWobble = 0; this.objectsHigh = this.objectsSym = this.highlights = null; this.fadeAnimation = this.reverseReorder = !1; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, m, n, p, q); this.symbolImages = g; this.highlightImages = k; this.maxWobble = r; this.loopTime = t; }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.objectsSym = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.objectsHigh = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = b.getCount_0(); this.highlights[g][k] < m && (this.highlights[g][k] = m); } } }, determineSymbolImage_1: function (a) { return null == this.symbolImages || 1 > this.symbolImages.length ? null : null != this.symbolImages[a] ? this.symbolImages[a] : this.symbolImages[0]; }, determineHighlightImage_2: function (a, b) { var d = this.highlightImages[a]; return 0 > b || null == d || 1 > d.size_0() ? null : b < d.size_0() && null != d.elementAt_1(b) ? d.elementAt_1(b) : d.elementAt_1(0); }, setReversePaintOrder_1: function (a) { this.reverseReorder = a; }, setFadeCycleDuration_1: function (a) { this.fadeCycleDuration = a; }, setFadeAnimation_1: function (a) { this.fadeAnimation = a; }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; b++) for (var d = 0; d < this.reelsLayout.rows; d++) null != this.objectsHigh[b][d] && this.objectsHigh[b][d].isAlive_0() && (this.objectsHigh[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.objectsHigh[b][d] && this.objectsHigh[b][d].isAlive_0() && (null != this.objectsSym[b][d] && this.objectsSym[b][d].getParent_0().reorderToPosition_1(a), this.objectsHigh[b][d].getParent_0().reorderToPosition_1(a), a++); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, 0); }, createTransformedGuiImageUsing_2: function (a, b) { var d = null; if (null != b) { var d = b.getWidth_0() / 2, e = b.getHeight_0() / 2, f = this.reelsLayout.symbolWidth / 2, g = this.reelsLayout.symbolHeight / 2, d = new GT1075(a, 0, 0, a.getWidth_0(), a.getHeight_0(), b, Integer.truncate_1(d), Integer.truncate_1(e)); d.setTranslation_2(f, g); } return d; }, setHighlight_4: function (a, b, d, e) { if (null == this.objectsHigh[a][b]) { var f = this.getSymbolAt_2(a, b), g = this.determineHighlightImage_2(f, -1 == this.highlights[a][b] ? d : this.highlights[a][b]); null != g && ((d = 0), 1 < g.getRows_0() && (d = g.getRows_0() - (g.getRows_0() - 1)), (d = new GT1437( this, this.reelsLayout.getColumnPos_1(a), this.reelsLayout.getReelY_1(a) + this.reelsLayout.getRowPos_1(b) - d * this.reelsLayout.symbolHeight, this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight * g.getRows_0() )), d.setColorTransformation_1(this.getSymbolColorTransformation_0()), (this.objectsHigh[a][b] = this.createTransformedGuiImageUsing_2(d, g)), this.fadeAnimation && ((g = Math.div(this.fadeCycleDuration, 2)), (e = [ [0, 0, 0, Integer.MAX_VALUE, -1, 0, -1, 0, e], [g, 0, 255], [0, 255, 255], [g, 255, 0], [0, 0, 0, 1, 0 < e ? e : -1, -1, -1], ]), null != this.objectsHigh[a][b] && instanceOf(this.objectsHigh[a][b], GT1480) && new GT1191(this.timer, this.objectsHigh[a][b], !1, e).start_0(), (this.objectsSym[a][b] = this.createTransformedGuiImageUsing_2(d, this.determineSymbolImage_1(f))), null != this.objectsSym[a][b] && (this.objectsHigh[a][b].reorder_1(!0), new GT362(this.timer, this.objectsSym[a][b], this.maxWobble, this.loopTime).start_0())), (f = a * this.reelsLayout.rows + b), (f = this.getGUIStoppedReels_0().getChild_1(f)), (a = new GT362(this.timer, this.objectsHigh[a][b], this.maxWobble, this.loopTime)), a.addStartCallback_1(new GT869(f)), a.start_0(), this.reverseReorder ? this.reverseReorderObjects_0() : this.reorderObjects_0()); } }, removeHighlight_2: function (a, b) { if (null != this.objectsHigh[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.objectsHigh[a][b].getParent_0()) { this.getChild_1(d).destroy_0(); this.objectsSym[a][b] = null; this.objectsHigh[a][b] = null; this.highlights[a][b] = -1; break; } }, removeAllHighlights_0: function () { this.showHighlightedSymbolsOfTheStoppedReels_0(); this.objectsSym = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.objectsHigh = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.objectsHigh.length; b++) for (var d = 0; d < this.objectsHigh[b].length; d++) null != this.objectsHigh[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, }, "GT130", [] ), GT362 = GT1190.extend( { initialConstructor_0: function () { this.guiObject = null; this.startTime = this.loopTime = this.maxWobble = 0; GT1190.prototype.initialConstructor_0.call(this); }, initialConstructor_4: function (a, b, d, e) { this.guiObject = null; this.startTime = this.loopTime = this.maxWobble = 0; GT1190.prototype.initialConstructor_3.call(this, a, 50, !1); this.guiObject = b; this.maxWobble = d; this.loopTime = e; this.startTime = 0; }, action_1: function (a) { if (!this.guiObject.isAlive_0()) return !1; 0 == this.startTime && (this.startTime = a); a = ((a - this.startTime) % this.loopTime) / this.loopTime; instanceOf(this.guiObject, GT1373) && ((a = Math.sin_1(2 * a * Math.PI) * this.maxWobble), this.guiObject.setRotation_1(a)); return !0; }, }, "GT362", [] ), GT216 = GT1559.extend( { initialConstructor_0: function () { this.timer = null; this.initialY = this.initialX = 0; this.partialMovementAnimator = this.fader = this.mover = null; this.partialMovementDuration = this.partialMovementY = this.partialMovementX = 0; this.movedPartially = !1; this.alpha = 0; GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.timer = null; this.initialY = this.initialX = 0; this.partialMovementAnimator = this.fader = this.mover = null; this.partialMovementDuration = this.partialMovementY = this.partialMovementX = 0; this.movedPartially = !1; this.alpha = 0; GT1559.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.timer = g; this.initialX = this.partialMovementX = b; this.initialY = this.partialMovementY = d; this.partialMovementDuration = GT216.prototype.DEFAULT_DURATION; this.alpha = 255; }, setActive_1: function (a) { this.active != a && (GT1559.prototype.setActive_1.call(this, a), a && this.appear_1(!1)); }, getTimer_0: function () { return this.timer; }, getInitialX_0: function () { return this.initialX; }, getInitialY_0: function () { return this.initialY; }, setMovementValues_3: function (a, b, d) { this.fader = null; null == this.mover && (this.mover = new GT261(this)); this.mover.setMovementValues_3(a, b, d); }, setFadeValues_3: function (a, b, d) { this.mover = null; null == this.fader && (this.fader = new GT262(this)); this.fader.setFadeValues_3(a, b, d); }, setPartialMovementValues_3: function (a, b, d) { var e = Math.min_2(GT737.prototype.DEFAULT_OPEN_CLOSE_TIME, GT740.prototype.DEFAULT_OPEN_CLOSE_TIME); this.partialMovementX = a; this.partialMovementY = b; this.partialMovementDuration = Math.min_2(d, e); }, determinePartialMovementX_0: function () { var a = this.partialMovementX - this.getParent_0().getX_0(); return 0 > a ? 0 : a; }, determinePartialMovementY_0: function () { var a = -1 == this.partialMovementY ? this.getY_0() : this.partialMovementY - this.getParent_0().getY_0(); return 0 > a ? 0 : a; }, isCurrentlyVisualizing_0: function () { return (null != this.mover && this.mover.isRunning_0()) || (null != this.fader && this.fader.isRunning_0()) || (null != this.partialMovementAnimator && this.partialMovementAnimator.isRunning_0()) ? !0 : !1; }, visualize_3: function (a, b, d) { this.movedPartially || null == this.mover ? null != this.fader && this.fader.visualize_3(a, b, d) : this.mover.visualize_3(a, b, d); }, appear_1: function (a) { this.visualize_3(!0, a, !1); }, appearEnforced_0: function () { this.visualize_3(!0, !1, !0); }, disappear_1: function (a) { this.visualize_3(!1, a, !1); }, disappearEnforced_0: function () { this.visualize_3(!1, !1, !1); }, killPartialMovementAnimator_1: function (a) { null != this.partialMovementAnimator && this.partialMovementAnimator.isRunning_0() && this.partialMovementAnimator.killAndTrigger_1(a); }, movePartially_2: function (a, b) { null != this.mover && this.mover.isRunning_0() ? this.mover.killAnimator_1(!0) : null != this.fader && this.fader.isRunning_0() && this.fader.killAnimator_1(!0); var d = a ? this.determinePartialMovementX_0() : this.initialX, e = a ? this.determinePartialMovementY_0() : this.initialY; b ? ((this.movedPartially = a), this.killPartialMovementAnimator_1(!0), this.move_2(d, e)) : (this.isCurrentlyVisualizing_0() && this.killPartialMovementAnimator_1(!0), this.getX_0() == d && this.getY_0() == e ? (this.partialMovementAnimator = null) : ((this.partialMovementAnimator = new GT653(this.getTimer_0(), this, d, e, this.partialMovementDuration)), this.partialMovementAnimator.addFinishCallback_1(new GT870(this, d, e))), a ? (this.movedPartially = !0) : null != this.partialMovementAnimator ? this.partialMovementAnimator.addFinishCallback_1(new GT47(this, !1)) : (this.movedPartially = !1), null != this.partialMovementAnimator && this.partialMovementAnimator.start_0()); }, applyPartialMovement_1: function (a) { this.movePartially_2(!0, a); }, resetPartialMovement_1: function (a) { this.movePartially_2(!1, a); }, setAlpha_1: function (a) { this.alpha = a; this.setAlpha_2(this, a); }, setAlpha_2: function (a, b) { a != this && instanceOf(a, GT1480) && a.setAlpha_1(b); for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1437) ? this.setAlpha_2(e, b) : instanceOf(e, GT1480) && e.getApplicationID_0() != GT1150.prototype.ID_AUTOPLAY_TRIGGER && e.setAlpha_1(b); } }, getAlpha_0: function () { return this.alpha; }, }, "GT216", [GT139, GT1480] ), GT261 = Class.extend( { initialConstructor_0: function () { this.moveAnimator = this.button = null; this.duration = this.yDifference = this.xDifference = 0; this.movingOutOfView = this.movingIntoView = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.moveAnimator = this.button = null; this.duration = this.yDifference = this.xDifference = 0; this.movingOutOfView = this.movingIntoView = !1; this.button = a; this.setMovementValues_3(0, 0, GT216.prototype.DEFAULT_DURATION); }, setMovementValues_3: function (a, b, d) { d == GT216.prototype.DEFAULT_DURATION && null != this.moveAnimator && this.moveAnimator.isRunning_0() && this.moveAnimator.kill_0(); this.xDifference = a; this.yDifference = b; this.duration = d; }, isRunning_0: function () { return (null != this.moveAnimator && this.moveAnimator.isRunning_0()) || this.movingIntoView || this.movingOutOfView; }, determineDuration_1: function (a) { var b = Math.abs_1(this.xDifference); a = a > this.button.getX_0() ? a - this.button.getX_0() : this.button.getX_0() - a; b = GT1677.prototype.division_2(a, b); return GT1672.prototype.doubleToInt_1(this.duration * b); }, killAnimator_1: function (a) { null != this.moveAnimator && this.moveAnimator.isRunning_0() && this.moveAnimator.killAndTrigger_1(a); }, visualize_3: function (a, b, d) { if (GT1560.prototype.isAlive_1(this.button)) { var e = this.button.getInitialX_0() + (a ? 0 : this.xDifference), f = this.button.getInitialY_0() + (a ? 0 : this.yDifference); if (b) this.killAnimator_1(!0), this.button.move_2(e, f); else { if (d) this.killAnimator_1(!0), (b = this.button.getInitialX_0() + (a ? this.xDifference : 0)), (d = this.button.getInitialY_0() + (a ? this.yDifference : 0)), this.button.move_2(b, d); else if (this.isRunning_0()) { if ((this.movingIntoView && a) || (!a && this.movingOutOfView)) return; this.killAnimator_1(!0); } this.button.getX_0() == e && this.button.getY_0() == f ? (this.moveAnimator = null) : ((this.moveAnimator = new GT653(this.button.getTimer_0(), this.button, e, f, this.determineDuration_1(e))), this.moveAnimator.addFinishCallback_1(new GT38(this)), (this.movingIntoView = a), (this.movingOutOfView = !a)); null != this.moveAnimator && this.moveAnimator.start_0(); } } }, }, "GT261", [] ), GT38 = Class.extend( { initialConstructor_0: function () { this.mover = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.mover = null; this.mover = a; }, run_0: function () { null != this.mover && ((this.mover.movingIntoView = !1), (this.mover.movingOutOfView = !1)); }, }, "GT38", [Runnable] ), GT262 = Class.extend( { initialConstructor_0: function () { this.fadeAnimator = this.button = null; this.duration = this.alphaInactive = this.alphaActive = 0; this.fadingOutOfView = this.fadingIntoView = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.fadeAnimator = this.button = null; this.duration = this.alphaInactive = this.alphaActive = 0; this.fadingOutOfView = this.fadingIntoView = !1; this.button = a; GT1650.prototype.assertExp_2(GT1560.prototype.isAlive_1(a), "Provided button is null and/or not alive!"); this.setFadeValues_3(1, 0, GT216.prototype.DEFAULT_DURATION); }, setFadeValues_3: function (a, b, d) { d == GT216.prototype.DEFAULT_DURATION && this.killAnimator_1(!0); this.alphaActive = GT1677.prototype.computeAlpha_1(a); this.alphaInactive = GT1677.prototype.computeAlpha_1(b); this.duration = d; }, killAnimator_1: function (a) { null != this.fadeAnimator && this.fadeAnimator.isRunning_0() && this.fadeAnimator.killAndTrigger_1(a); }, isRunning_0: function () { return (null != this.fadeAnimator && this.fadeAnimator.isRunning_0()) || this.fadingIntoView || this.fadingOutOfView; }, determineDuration_3: function (a, b, d) { a = GT1677.prototype.division_2(d > b ? d - b : b - d, 0 <= d - a ? d - a : a - d); return GT1672.prototype.doubleToInt_1(this.duration * a); }, visualize_3: function (a, b, d) { if (GT1560.prototype.isAlive_1(this.button)) { var e = a ? this.alphaActive : this.alphaInactive; if (b) this.killAnimator_1(!0), this.button.setAlpha_1(e); else { if (d) this.killAnimator_1(!0), this.button.setAlpha_1(a ? this.alphaInactive : this.alphaActive); else if (this.isRunning_0()) { if ((this.fadingIntoView && a) || (this.fadingOutOfView && !a)) return; this.killAnimator_1(!0); } this.button.getAlpha_0() == e ? (this.fadeAnimator = null) : (a ? ((b = this.determineDuration_3(this.alphaInactive, this.button.getAlpha_0(), this.alphaActive)), (b = [ [b, this.button.getAlpha_0(), this.alphaActive], [0, this.alphaActive, this.alphaActive], [0, this.alphaActive, this.alphaActive], ])) : ((b = this.determineDuration_3(this.alphaActive, this.button.getAlpha_0(), this.alphaInactive)), (b = [ [0, this.button.getAlpha_0(), this.button.getAlpha_0()], [0, this.button.getAlpha_0(), this.button.getAlpha_0()], [b, this.button.getAlpha_0(), this.alphaInactive], ])), (this.fadeAnimator = new GT1191(this.button.getTimer_0(), this.button, !1, b)), this.fadeAnimator.addFinishCallback_1(new GT39(this)), (this.fadingIntoView = a), (this.fadingOutOfView = !a)); null != this.fadeAnimator && (this.fadeAnimator.setKeepRunningWhenHidden_1(!0), this.fadeAnimator.start_0()); } } }, }, "GT262", [] ), GT39 = Class.extend( { initialConstructor_0: function () { this.fader = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.fader = null; this.fader = a; }, run_0: function () { null != this.fader && ((this.fader.fadingIntoView = !1), (this.fader.fadingOutOfView = !1)); }, }, "GT39", [Runnable] ), GT47 = Class.extend( { initialConstructor_0: function () { this.button = null; this.movedPartially = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.button = null; this.movedPartially = !1; this.button = a; this.movedPartially = b; }, run_0: function () { GT1560.prototype.isAlive_1(this.button) && (this.button.movedPartially = this.movedPartially); }, }, "GT47", [Runnable] ); GT216.prototype.DEFAULT_DURATION = -1; var GT106 = GT515.extend( { initialConstructor_0: function () { this.filmStrip = this.filmContainer = this.filmStripAnimator = null; GT515.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { this.filmStrip = this.filmContainer = this.filmStripAnimator = null; GT515.prototype.initialConstructor_6.call(this, a, b, d, e, f, g); this.filmStrip = k; }, initialConstructor_5: function (a, b, d, e, f) { GT106.prototype.initialConstructor_7.call(this, a, b, d, 0, 0, e, f); }, destroyImpl_2: function (a, b) { GT515.prototype.destroyImpl_2.call(this, a, b); null != this.filmStripAnimator && (this.filmStripAnimator.kill_0(), (this.filmStripAnimator = null)); }, setHighlighted_1: function (a) { null != this.filmStripAnimator && (this.filmStripAnimator.kill_0(), (this.filmStripAnimator = null)); GT1560.prototype.isAlive_1(this.filmContainer) && this.filmContainer.destroy_0(); a && null != this.filmStrip && ((this.filmContainer = new GT1437(this)), (this.filmStripAnimator = new GT927(this.getTimer_0(), this.filmContainer, this.filmStrip, 55, !0, !1)), this.filmStripAnimator.start_0()); }, handleMouseEnter_0: function () { GT515.prototype.handleMouseEnter_0.call(this); GT1560.prototype.isAlive_1(this.filmContainer) && this.filmContainer.hide_1(!1); }, handleMouseLeave_0: function () { GT515.prototype.handleMouseLeave_0.call(this); GT1560.prototype.isAlive_1(this.filmContainer) && this.filmContainer.hide_1(!1); }, }, "GT106", [] ), GT692 = GT1563.extend( { initialConstructor_0: function () { this.showingDebugAreas = this.showingTextBorders = !1; this.serverMinorVersion = this.serverMajorVersion = this.serverMainVersion = 0; this.wasInLobbyBeforeRestart = this.isResetting = !1; this.restartParameters = null; this.keepConnectionOnRestart = !1; this.connection = this.disclaimer = this.progressbar = this.currencySymbols = this.skin = null; this.isConnectionEstablished = !1; this.nonblockingCommands = null; this.useNonBlockingCommands = !1; this.timeOfLastGameState = this.numskinfilesloaded = this.failedresources = 0; this.urlAfterConnectionClose = null; this.suppressGameUpdate = this.useAutoFullscreen = !1; this.lastDropDownSelection = this.lastRoomScrollValue = this.lastTableScrollValue = 0; this.wrapperdialogopen = this.hasOpenErrorScreen = !1; this.containerTables = this.containerReconnectInfo = this.containerSplashScreen = this.containerAboveGame = this.containerGame = this.containerLobbyIndented = this.containerLobby = this.containerProgramState = this.layerMain = null; this.tableviewheight = 0; this.scrollBarRooms = this.scrollBarTables = this.lastEnteredTable = this.imgSubRoomBorder = this.containerSubRooms = null; this.scrollbartablesheight = 0; this.roomAttributes = this.jackpotReel = this.textJackpotMaxBetInfo = this.textJackpotMaxJackpotInfo = this.textPlayerAccount = this.dropDownFilter = this.btnSoundOff = this.btnSoundOn = this.btnNormalAspect = this.btnWideAspect = this.btnWindow = this.btnFullscreen = null; this.jackpotbasewin = this.jackpotmaxbet = this.jackpotminbet = this.jackpotfactor = 0; this.hasjackpot = !1; this.subrooms = this.tables = this.playerAttributes = this.jackpot_factors = null; this.leavegameinprogress = this.isactiveplayer = !1; this.lastGameState = this.roundhistory = this.jackpotlobbyanim = null; this.myRoomId = this.lastGameChange = 0; this.hostName = this.loginPassword = this.playerID = this.roomID = null; this.serverPort = 0; this.tcpRoutingTable = null; this.crypto = !1; this.receiveDelay = this.sendDelay = 0; this.zones = this.skinID = null; this.demoMode = this.noLobbyMode = !1; this.hasLoadingStage = null; this.hideprogressbar = !1; this.soundLobby = this.btnSplashScreen = this.textSplashScreen = null; this.lobbySoundsStarted = !1; this.propertiessenttowrapper = this.lobbyskin = this.fontMetricsToolTips = null; this.connectionProblemSimulation = !1; this.textInfo = null; this.resetGameGuiAtNotifyReceive = !1; this.cheatHistory = this.inputTestPattern = this.cheatContainer = null; this.cheatHistoryPosition = 0; this.resourcesURLTexts = this.introEventHandler = this.cntDeveloperLogo = this.cntLoadingScreen = this.cntInfoPages = this.cntIntroVideo = this.resourceManagerForProgressBar = this.recordPlayer = this.recorder = this.oldjpanim = null; this.resourcesLoading = this.resourcesURLTextsLoading = !1; this.textRequestHelpers = this.resourcesLanguageTexts = null; this.preventConnection = this.connectionWasLost = !1; this.jackpotCalculator = null; this.suppressLobbyUpdates = this.showingButtonShapes = !1; this.skinEnglishFallback = null; this.numSkinDescriptionsLoaded = 0; this.forceenglishfallback = !1; this.html5handler = null; this.currentLoadingStageShown = this.currentLoadingStageLoading = 0; this.canShowNextLoadingStage = !1; this.skinpercentage = this.lastpercentage = this.offsetloaded = this.totalloaded = 0; this.isLoadingSkin = !1; this.lastpartindex = 0; this.fadeLayer = this.gameWrapperInterfaceCaller = this.gameWrapperInterface = null; this.skipDevLogo = this.skipInfoPages = this.triggeredToShowNextLoadingStage = !1; this.framerateCallback = null; this.restoreSoundAtReconnect = !1; GT1563.prototype.initialConstructor_0.call(this); this.lastDropDownSelection = 0; this.lastRoomScrollValue = this.lastTableScrollValue = -1; this.jackpotbasewin = 0; this.nonblockingCommands = [].createArray(0).init(0); this.addNonBlockingCommand_1(GT1121.prototype.FINISHROOMINFO); this.addNonBlockingCommand_1(GT692.prototype.ERR_KICK); this.useNonBlockingCommands = !0; this.jackpotCalculator = null; this.framerateCallback = new GT1509(this, "framerate"); var a = new GT417(this.getTheInternalSynchronizationObject_0()); this.connection = new GT1466(a); this.connection.addListener_1(this); this.cheatHistory = new java_util_JavaScriptVector(); this.cheatHistoryPosition = -1; }, getGameId_0: function () { var a = this.getIntParameter_2("gameid", 0); return 0 < a ? a : this.gameID_0(); }, getDeviceType_0: function () { return GT1677.prototype.toLowerCaseAZ_1(this.getStringParameter_2(GT1563.prototype.DEVICETYPE_APPLET_PARAMETER, GT1563.prototype.DEVICETYPE_DESKTOP)); }, getSupportLevelForFeature_1: function (a) { var b = this.getStringParameter_2(GT692.prototype.FEATURE_SUPPORT_APPLET_PARAMETER, ""), b = GT1678.prototype.deserializeObject_1(b), d = null; null == b ? (GT692.prototype.Log.i_1("Feaute support parameter is either null or not a valid json. All features are enabled by default."), (d = GT692.prototype.FS_AVAILABLE)) : ((d = b.get_1(a)), null == d && (GT692.prototype.Log.i_1("Feaute " + a + " is not in the feature support parameter. It is disabled by default."), (d = GT692.prototype.FS_NOT_AVAILABLE))); return d; }, isCanvasRenderer_0: function () { return this.getStringParameter_2("canvasrenderer", "1").equals_1("1"); }, addNonBlockingCommand_1: function (a) { var b = [].createArray(this.nonblockingCommands.length + 1).init(0); java_lang_System.prototype.arraycopy_5(this.nonblockingCommands, 0, b, 0, this.nonblockingCommands.length); b[b.length - 1] = a; this.nonblockingCommands = b; }, activateNonBlockingCommands_1: function (a) { this.useNonBlockingCommands = a; }, startWithSound_0: function () { return this.getBooleanParameter_2("issound", !0) && this.getBooleanParameter_2("usingwebaudio", !0); }, clientVersion_0: function () { return this.clientVersion_1(!1); }, clientVersion_1: function (a) { return "1.29.1".startsWith_1("%") || 0 == "1.29.1".length_0() ? (a && GT692.prototype.Log.log_1("clientVersion() returning version() because changelog version has not been set by the buildsystem"), this.version_0()) : "1.29.1"; }, notifyResourceLoaded_2: function (a, b) { GT692.prototype.Log.verbose && GT692.prototype.Log.log_1("notifyResourceLoaded(" + a + ", " + b + ")"); if (!this.isLoadingSkin) { this.totalloaded = b; var d = this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_GAMEASSETS; null != this.progressbar && 1 < a && b <= a && this.isCurrentLoadingStageShowingProgressBar_0() && (!d || b != a) && ((this.lastpercentage = this.skinpercentage + Math.div((b - this.offsetloaded) * (100 - this.skinpercentage), a - this.offsetloaded - (d ? 1 : 0))), GT692.prototype.Log.i_1("set percentage to: " + this.lastpercentage), this.progressbar.setProgressPercentage_1(this.lastpercentage), this.currentLoadingStageShown != GT692.prototype.LOADINGSTAGE_SPLASHSCREEN && (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_LOADING_PROGRESS, "" + this.lastpercentage), (d = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_LOADINGPROGRESS)), d.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(this.lastpercentage)), GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, d.getMainTable_0()))); b == a && 0 < a && (this.postponeSkinLoading_0() && this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN ? (this.showNextLoadingStage_1(!1), this.loadSkinDescriptions_0()) : this.loadNextResources_0(), this.canShowNextLoadingStage && this.moveToNextLoadingStage_0()); } }, isCurrentLoadingStageShowingProgressBar_0: function () { return this.currentLoadingStageShown != GT692.prototype.LOADINGSTAGE_INIT && this.currentLoadingStageShown != GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO; }, fadeOutAndShowNextLoadingStage_0: function () { if (this.getBooleanParameter_2("loadingtransition.enabled", !0)) { GT1560.prototype.isAlive_1(this.fadeLayer) ? this.fadeLayer.reorder_1(!0) : (this.fadeLayer = new GT1440(this.getTopContainer_0(), GT1634.prototype.black)); var a = new GT1191(this.getTimer_0(), this.fadeLayer, !1, [[250, 0, 225]]); a.addFinishCallback_1(new GT1509(this, "shownextloadingstage")); a.start_0(); } else this.destroyCurrentLoadingStage_1(!0), this.showNextLoadingStage_1(!1); }, fadeIn_0: function () { this.getBooleanParameter_2("loadingtransition.enabled", !0) && (GT1560.prototype.isAlive_1(this.fadeLayer) ? this.fadeLayer.reorder_1(!0) : (this.fadeLayer = new GT1440(this.getTopContainer_0(), GT1634.prototype.black)), new GT1191(this.getTimer_0(), this.fadeLayer, !1, [[100, 225, 0]]).start_0()); }, afterResourcesLoaded_0: function () {}, notifyResourceLoadingFailed_1: function (a) { if (this.areResourcesURLTextsLoading_0() && !this.areResourcesLoading_0()) GT692.prototype.Log.info && GT692.prototype.Log.log_1("Web text resource failed: <" + a + "> -> falling back to texts from file system."), this.loadNextResources_0(); else { GT692.prototype.Log.log_1("Resource failed: " + a); var b = GT1242.prototype.getWrapperErrorEventTables_1(GT697.prototype.ERROR_RESOURCELOADINGFAILED); b.getValueTable_0().put_2(GT697.prototype.ERROR_ENTRY_DESCRIPTION, "resource loading failed for resource: " + a); GT1242.prototype.fireWrapperErrorEvent_2(this.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()); var b = "Error. Could not load: ", d = a; GT692.prototype.Log.info && GT692.prototype.Log.logRemote_2("" + b, ["Resource", a]); null != this.skin && ((b = this.skin.getString_2("couldnotload", "Error. Could not load: ")), (1 != GT1672.prototype.stringToInt_1(this.getParameter_1("html5")) && 1 != GT1672.prototype.stringToInt_1(this.getParameter_1("onebutton"))) || -1 != a.indexOf_1("txt") || ((b = this.skin.getString_2("couldnotload_refreshbrowser", "Error. Could not load: ")), (d = ""))); this.progressbar = null; this.displayProgramState_2(b, d); this.setFullscreenMode_1(!1); this.failedresources++; this.isSplashScreenAlive_0() && this.fadeAwaySplashscreen_1(0); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, GT697.prototype.VALUEPREFIX_ERROR_DESCRIPTION_RESOURCE + "" + a); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_ERROR); } null != this.recorder && (this.recorder.stop_0(), this.exitProgram_0()); }, getSkin_0: function () { return this.skin; }, getLobbySkin_0: function () { return this.lobbyskin; }, isActivePlayer_0: function () { return this.isactiveplayer; }, isARMSPlayback_0: function () { return null != this.recordPlayer; }, setLoginPasswort_1: function (a) { this.loginPassword = a; }, setJackpotFactor_1: function (a) { this.jackpotfactor != a && ((this.jackpotfactor = a), this.updateJackpotFactor_0()); }, getJackpotFactor_0: function () { return this.jackpotfactor; }, getJackpotBaseWin_0: function () { return this.jackpotbasewin; }, getJackpotMinBet_0: function () { return this.jackpotminbet; }, getJackpotMaxBet_0: function () { return this.jackpotmaxbet; }, getJackpotMaxBet_Native_0: function () { var a = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100")); return GT1677.prototype.getCurrencyValueFromCent_2(this.jackpotmaxbet, a); }, getTickets_0: function () { return GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("TICKETS", "0")); }, isUpcomingMaintenance_0: function () { return 4 == GT1672.prototype.stringToInt_1(this.getRoomAttribute_2("TICKETS", "0")); }, isSpinAllowed_0: function () { return GT1563.prototype.isSpinAllowed_0.call(this) && !this.isUpcomingMaintenance_0(); }, sendPacket_1: function (a) { this.sendPacketImpl_1(a); }, sendPacketImpl_1: function (a) { null != this.connection && this.connection.sendPacket_1(a); }, sendReqGetRoundHistory_0: function () { this.isActivePlayer_0() && (GT692.prototype.Log.v_1("send req getroundhistory"), this.resetRoundHistory_0(), this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.GETROUNDHISTORY, []))); }, sendReqGetRoundHistory_2: function (a, b) { this.resetRoundHistory_0(); this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.GETROUNDHISTORY, [a, b])); }, sendReqReplayRound_3: function (a, b, d) { GT692.prototype.Log.v_1("send req replayround roundid:" + a + " step:" + b); var e = new java_util_JavaScriptVector(); e.addElement_1(a); e.addElement_1("" + b); e.addElement_1(d ? "1" : "0"); this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.REPLAYROUND, e)); }, sendReqGameState_0: function () { this.sendPacket_1([GT1122.prototype.GAMESTATE]); }, startConnecting_1: function (a) { GT692.prototype.Log.t_0(); this.resetGameState_0(); a && (GT1560.prototype.isAlive_1(this.containerGame) && this.setResetGameGuiAtNextGameState_0(), this.showReconnectMessage_0()); GT692.prototype.Log.log_1("Connecting to: " + this.hostName + ":" + this.serverPort + " type=" + (this.crypto ? "crypted" : "plain") + " routing=" + this.tcpRoutingTable); this.isConnectionEstablished = !1; this.connection.setBlocker_1(this); this.connection.setCrypto_1(this.crypto); this.connection.setSendDelay_1(this.sendDelay); this.connection.setReceiveDelay_1(this.receiveDelay); this.connection.setProtocolOptions_1(this.tcpRoutingTable); a = this.getIntParameter_2("connectionlosterrortimeout", -1); 0 < a && this.connection.setConnectTimeout_1(1e3 * a); this.connection.open_2(this.hostName, this.serverPort - 300); a = new java_util_JavaScriptVector(); a.addElement_1(GT692.prototype.versionTableManager); a.addElement_1(this.version_0()); 0 < this.getGameId_0() && a.addElement_1("" + this.getGameId_0()); this.connection.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.CLIENTVERSION, a)); a = this.getParameter_1("dummydb.json"); null != a ? this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.DBSETTINGS, [this.playerID, a])) : this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.DBSETTINGS, [this.playerID, ""])); a = new java_util_JavaScriptVector(); a.addElement_1("" + this.roomID); a.addElement_1("" + this.playerID); a.addElement_1(this.loginPassword); if (this.hasReplayParameter_0()) { var b = this.getStringParameter_2("replay", ""), b = GT1677.prototype.tokenize_2(b, ","); 1 <= b.length && (a.addElement_1(this.playerID), a.addElement_1(3 == b.length ? b[1] : b[0]), this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LOGON_REPLAY, a))); } else a.addElement_1(this.getStringParameter_2("showsubrooms", "1")), a.addElement_1(this.getStringParameter_2("resettable", "0")), this.demoMode ? this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LOGON_DEMO, a)) : this.noLobbyMode ? this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LOGON_JOINGAME, a)) : this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LOGON, a)); 0 <= this.getIntParameter_2("maxwin", -1) && this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.MAX_WIN, [this.getParameter_1("maxwin")])); null != this.getStringParameter_2("payoutsteps", null) && this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.MYSTERY_PAYOUT_STEPS, [this.getParameter_1("payoutsteps")])); }, triggerConnectionAndProgramCloseAsync_0: function () { this.getTimer_0().triggerCallbackImmediately_1(new GT1509(this, "triggerConnectionAndProgramClose")); }, triggerConnectionAndProgramClose_0: function () { null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = this.getStringParameter_2("closeurl", null)); null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = this.getStringParameter_2("relativecloseurl", null)); null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = ""); this.closeConnection_0(); }, closeConnection_0: function () { this.isConnectionEstablished = !1; this.connection.close_0(); }, displayProgramState_2: function (a, b) { this.deleteLobbyGUI_0(); this.stopAllGameSounds_0(); if (GT1560.prototype.isAlive_1(this.layerMain)) { GT1560.prototype.isAlive_1(this.containerProgramState) || ((this.containerProgramState = new GT1437(this.layerMain)), new GT1440(this.containerProgramState, GT1634.prototype.black)); if (null == a || a.equals_1("")) return; var d = this.cntDescriptorProgramState_0().create_2(this.containerProgramState, this.getSkinManager_0()); d.findDescendant_1(GT692.prototype.TEXT_PROGRAMSTATE_LINE1).setText_1(a); null != b && d.findDescendant_1(GT692.prototype.TEXT_PROGRAMSTATE_LINE2).setText_1(b); d.resizeToContent_0(); this.containerProgramState.resizeToContent_0(); this.layerMain.resizeToContent_0(); } null == a || a.equals_1("") || (null == b || b.equals_1("") || (a += "\n" + b), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_STATE, a)); }, showGUIOnError_0: function () { var a = this.getBooleanParameter_2("showerrordialog", !0), b = this.getBooleanParameter_2("errordialog.show", !1); return a || b; }, cntDescriptorProgramState_0: function () { return GT1186.prototype .set_0() .position_2(0, 0) .child_1(GT1188.prototype.set_0().position_2(0, 0).color_1(GT1391.prototype.set_0().black_0())) .child_1( GT1239.prototype .set_0() .id_1(GT692.prototype.TEXT_PROGRAMSTATE_LINE1) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .text_1("") .position_2(0, 0) .insets_4(0, 0, 0, 50) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) ) .child_1( GT1239.prototype .set_0() .id_1(GT692.prototype.TEXT_PROGRAMSTATE_LINE2) .font_1(GT1441.prototype.set_0().name_1(GT1393.prototype.VERDANA).bold_0().size_1(150)) .fontColor_1(GT1391.prototype.set_0().white_0()) .text_1("") .position_2(0, 0) .insets_4(0, 0, 50, 0) .vAlign_1(GT1489.prototype.CENTER) .hAlign_1(GT1488.prototype.CENTER) ); }, setConnectionShortcut_1: function (a) { null != this.connection && this.connection.setShortcut_1(a); }, setExtraConnectionListener_1: function (a) { this.connection.addListener_1(a); }, doStart_0: function () { GT1563.prototype.doStart_0.call(this); null == this.getGameWrapperInterface_0() && this.setGameWrapperInterface_1(new GT586()); this.currentLoadingStageShown = this.currentLoadingStageLoading = -1; this.canShowNextLoadingStage = !0; this.offsetloaded = this.totalloaded = 0; this.triggeredToShowNextLoadingStage = !1; this.propertiessenttowrapper = new java_util_JavaScriptHashtable(); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_SOUND, null != this.getSoundPlayer_0() && this.getSoundPlayer_0().isActive_0() ? GT697.prototype.VALUE_TRUE : GT697.prototype.VALUE_FALSE); this.doStart_RecordManagementSystem_0(); this.getEventDispatcher_0().registerHandler_2(GT1196.prototype.MOUSE_WHEEL, this); this.getTimer_0().addFramerateListener_1(this.framerateCallback); var a = this.version_0() + (this.clientVersion_1(!1).equals_1(this.version_0()) ? "" : " / " + this.clientVersion_1(!1)); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_CLIENTVERSION, a); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_LOADING); GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, GT1242.prototype.getWrapperStateEventTables_1(GT697.prototype.STATE_LOADING).getMainTable_0()); GT692.prototype.Log.log_1("Version Casino-Lobby-Manager " + GT692.prototype.versionTableManager); this.readStartParameters_0(); null != this.getParameter_1("remotelogger") && ((a = new java_util_JavaScriptHashtable()), a.put_2("playerID", this.playerID), a.put_2("roomID", this.roomID), a.put_2("version", this.version_0()), GT1650.prototype.addRemoteLoggerAttributes_1(a)); this.hasLobbyImplemented_0() || (this.noLobbyMode = !0); this.getSkinManager_0().setSkinIDs_1(this.skinID); this.numskinfilesloaded = 0; this.resourcesLoading = this.resourcesURLTextsLoading = !1; this.textRequestHelpers = null; this.showingTextBorders = "1".equals_1(this.getParameter_1("showtextborders")); this.currencySymbols = new GT814(); (this.isResetting && this.keepConnectionOnRestart) || ((this.playerAttributes = new java_util_JavaScriptHashtable()), (this.tables = new java_util_JavaScriptVector()), (this.subrooms = new java_util_JavaScriptVector()), (this.roomAttributes = new java_util_JavaScriptHashtable())); this.urlAfterConnectionClose = null; this.lobbyskin = this.createCasinoLobbySkin_0(); this.addLobbyDecorators_1(this.lobbyskin); var a = this.lobbyskin.layoutOverscanLeft_0(), b = this.lobbyskin.layoutOverscanRight_0(), d = this.lobbyskin.layoutOverscanTop_0(), e = this.lobbyskin.layoutOverscanBottom_0(), f = this.lobbyskin.layoutDesignedWidth_0(), g = this.lobbyskin.layoutDesignedHeight_0(); this.setDesignedSize_6(f + a + b, g + d + e, a, d, f, g); var k = this.getTopContainer_0(); k.isAlive_0() && (k.destroyChildren_0(), (this.layerMain = new GT1437(k)), this.layerMain.resize_2(f + a + b, g + d + e), (this.containerProgramState = new GT1437(this.layerMain)), new GT1440(this.containerProgramState, GT1634.prototype.black), this.isDemoMode_0() && this.triggerCallbackAfter_2(new GT1509(this, "demomode"), 1e3), (this.wrapperdialogopen = this.hasOpenErrorScreen = this.leavegameinprogress = !1), this.isResetting && this.keepConnectionOnRestart ? this.isServerVersionSameOrHigher_3(2, 5, 16) ? this.sendPacket_1([GT1122.prototype.GETALLDATA]) : this.wasInLobbyBeforeRestart ? ((a = new java_util_JavaScriptVector()), a.addElement_1(new java_lang_Byte(GT1121.prototype.FINISHROOMINFO)), a.addElement_1(null), (b = new java_util_JavaScriptVector()), b.addElement_1(a), this.connection.processPackets_1(b)) : this.sendReqGameState_0() : ((this.connectionWasLost = !1), this.preventConnection || this.startConnecting_1(!1)), this.isResetting ? (this.getSkinManager_0().setSkinDescription_1(this.skin), this.getSkinManager_0().isRTLLanguage_0() && this.setUseRightToLeftText_1(!0), (this.currentLoadingStageShown = GT692.prototype.LOADINGSTAGE_GAMEASSETS), this.showGame_0()) : (this.hideprogressbar || ((this.resourceManagerForProgressBar = this.createResourceManager_0()), (a = new GT1494(this.resourceManagerForProgressBar, this.getSoundPlayer_0(), this.getTimer_0())), this.lobbyskin.progressBar_0().load_1(a), (this.progressbar = this.lobbyskin.progressBar_0().create_2(this.containerProgramState, a)), this.progressbar.init_1(this.getTimer_0()), (this.disclaimer = this.lobbyskin.disclaimer_0().create_2(this.containerProgramState, a)), null == this.lobbyskin.containerCustomLoadingScreen_0() || this.canLoadAssetsBeforeDeveloperLogo_0() || (GT1560.prototype.destroyIfAlive_1(this.progressbar), (this.progressbar = this.lobbyskin.casinoProgressBar_0().create_2(this.containerProgramState, a)), this.progressbar.init_1(this.getTimer_0()), this.postponeSkinLoading_0() && this.progressbar.hide_1(!0))), (this.hasjackpot = !1), this.postponeSkinLoading_0() ? this.loadNextResources_0() : this.loadSkinDescriptions_0())); }, restart_2: function (a, b) { this.restartParameters = a; this.isResetting = !0; this.keepConnectionOnRestart = b; this.wasInLobbyBeforeRestart = GT1560.prototype.isAlive_1(this.containerLobby); this.doStop_0(); this.doStart_0(); this.isResetting = !1; this.restartParameters = null; }, loadSkinDescriptions_0: function () { GT692.prototype.Log.i_1("loadSkinDescriptions"); for (var a = new java_util_JavaScriptVector(), b = 0; b < this.skinID.length; b++) this.checkIfSkinEntryIsModifier_1(this.skinID[b]) || a.addElement_1(this.skinID[b] + ".txt"); for (b = 0; b < this.zones.length; b++) a.addElement_1(this.zones[b]); this.hasResourcesURLTexts_0() && a.addElement_1("translations.tin"); var d = this.getJsonsToLoadBeforeResources_0(); if (null != d) for (b = 0; b < d.length; b++) a.addElement_1(d[b]); d = [].createArray(a.size_0()); for (b = 0; b < a.size_0(); b++) d[b] = a.elementAt_1(b); this.numSkinDescriptionsLoaded = 2; this.skinEnglishFallback = this.startLoadSkinDescription_2(["english.txt"], [!1]); this.skin = this.startLoadSkinDescription_2(d, [!0]); this.isLoadingSkin = !0; this.skin.wasInstantlyLoaded_0() && this.notifySkinLoaded_1(!0); }, getJsonsToLoadBeforeResources_0: function () { return null; }, createIntroPagesEventHandler_5: function (a, b, d, e, f) { return new GT460(a, b, d, e, f); }, doStart_RecordManagementSystem_0: function () { var a = this.getAppletParametersThatShouldBeRecorded_0(), b = new GT223(a, this.getTheInternalSynchronizationObject_0()), d = b.getRecordInputReader_0(), b = b.getRecordOutputWriter_0(); if (null != d) { var e = new GT802(this); this.getEventDispatcher_0().registerHandler_2(GT555.prototype.ID, e); this.getEventDispatcher_0().registerHandler_2(GT536.prototype.ID, e); e = new GT175(this, !1); this.recordPlayer = new GT793(d, e); this.connection.setRunWithoutConnection_1(!0); } null != b && ((d = GT297.prototype.newInstanceOfNewestEventCreator_0()), (this.recorder = new GT1006(b, d, this.getEventDispatcher_0(), a)), this.connection.addPacketWatcher_1(this.recorder), this.addWrapperPropertyListener_1(this.recorder), this.recorder.start_0()); if (null != this.recorder || null != this.recordPlayer) this.getTimer_0().setModifier_1(new GT855(this.recorder, this.recordPlayer)), this.setGameWrapperInterface_1(new GT600()); }, getRecorder_0: function () { return this.recorder; }, isARMSRecording_0: function () { return null != this.recorder; }, addARMSToWrapperInterfaceCallback_0: function () { this.isARMSRecording_0() && this.getGameWrapperInterface_0().addActionListener_1(this.recorder); }, getRecordPlayer_0: function () { return this.recordPlayer; }, getAppletParametersThatShouldBeRecorded_0: function () { var a = this.getCommandLineParameters_0(); if (null != a) return a; a = new java_util_JavaScriptHashtable(); this.addParameterIfNotNull_2(a, "debug"); this.addParameterIfNotNull_2(a, "skin"); this.addParameterIfNotNull_2(a, "nolobby"); this.addParameterIfNotNull_2(a, "issound"); this.addParameterIfNotNull_2(a, "showerrordialog"); this.addParameterIfNotNull_2(a, "errordialog.show"); this.addParameterIfNotNull_2(a, "record"); this.addParameterIfNotNull_2(a, "playrecord"); this.addParameterIfNotNull_2(a, "showrealitycheckbeforeleaving"); this.addParameterIfNotNull_2(a, "realitycheckbeforeleaving.show"); this.addParameterIfNotNull_2(a, "autopayin"); this.addParameterIfNotNull_2(a, "consoleenabled"); this.addParameterIfNotNull_2(a, "console.show"); this.addParameterIfNotNull_2(a, "gamemenu.show"); this.addParameterIfNotNull_2(a, "videosenabled"); this.addParameterIfNotNull_2(a, "screens"); this.addParameterIfNotNull_2(a, "showtextborders"); this.addParameterIfNotNull_2(a, "loadingtransition.enabled"); this.addParameterIfNotNull_2(a, "devlogo.skip"); return a; }, addParameterIfNotNull_2: function (a, b) { var d = this.getParameter_1(b); null != d && a.put_2(b, d); }, addLobbyDecorators_1: function (a) {}, checkIfSkinEntryIsModifier_1: function (a) { return a.equals_1("chartwell") || a.equals_1("deepwalletuser") || a.equals_1("notopbuttons") || a.equals_1("nogamemenu") || a.equals_1("nopayinbutton") ? !0 : !1; }, readStartParameters_0: function () { this.roomID = this.getStringParameter_2("roomid", "1"); this.playerID = this.getStringParameter_2("playerid", "" + (1e3 + (this.currentTimeMillis_0() % 1e3))); this.loginPassword = this.getStringParameter_2("password", ""); this.hostName = this.getStringParameter_2("forcemux", this.getStringParameter_2("hostname", this.getCodeBaseHost_0())); GT1677.prototype.equalsIgnoreCaseAZ_2("testserver", this.hostName) && (this.hostName = "192.168.1.9"); this.serverPort = this.getIntParameter_2("port", 300); this.tcpRoutingTable = this.getParameter_1("tcprouting"); this.crypto = this.getBooleanParameter_2("crypto", !1); this.skinID = GT1677.prototype.tokenize_2(this.getStringParameter_2("skin", "german"), ",.:; "); this.zones = GT1677.prototype.tokenize_2(this.getStringParameter_2("zones", ""), ";"); this.sendDelay = this.getIntParameter_2("senddelay", 0); this.receiveDelay = this.getIntParameter_2("receivedelay", 0); this.noLobbyMode = this.getBooleanParameter_2("nolobby", !1); this.hasLoadingStage = [].createArray(GT692.prototype.LOADINGSTAGE_LAZYLOADEDASSETS + 1).init(0); this.demoMode = this.getBooleanParameter_2("demomode", !1); this.noLobbyMode = this.noLobbyMode || this.hasReplayParameter_0(); this.hideprogressbar = this.getBooleanParameter_2("hideprogressbar", !1); this.useAutoFullscreen = this.getBooleanParameter_2("autofullscreen", !0); this.resourcesURLTexts = this.getStringParameter_2("texts_url", null); this.resourcesLanguageTexts = this.getStringParameter_2("texts_language", null); this.preventConnection = this.getBooleanParameter_2("preventconnection", !1); this.forceenglishfallback = this.getBooleanParameter_2("forceenglishfallback", !1); this.skipInfoPages = this.getBooleanParameter_2("infopages.skip", !1); this.skipDevLogo = this.getBooleanParameter_2("devlogo.skip", !1); }, getParameter_1: function (a) { if (null != this.restartParameters) { var b = this.restartParameters.get_1(a); if (null != b) return b.toString(); } return GT1563.prototype.getParameter_1.call(this, a); }, getPlayerID_0: function () { return this.playerID; }, hasReplayParameter_0: function () { return 1 < this.getStringParameter_2("replay", "").length_0(); }, isDemoMode_0: function () { return this.demoMode; }, notifySkinLoaded_1: function (a) { GT692.prototype.Log.i_1("notifySkinLoaded"); this.numskinfilesloaded++; if (a) { if ((this.numSkinDescriptionsLoaded--, !(0 < this.numSkinDescriptionsLoaded))) { GT692.prototype.Log.i_1("notifySkinLoaded finished"); if (this.forceenglishfallback) { if (!this.skin.containsAllKeys_1(this.skinEnglishFallback)) { a = this.skin.getString_2("translation_includes", "[]"); this.skin = this.skinEnglishFallback; this.skin.overrideString_2("translation_includes", a); GT692.prototype.Log.i_1("[ClientCasinoApplet] using english fallback due to missing keys"); a = [].createArray(this.skinID.length + 1); for (var b = 0; b < this.skinID.length; b++) a[b + 1] = this.skinID[b]; a[0] = "english"; this.skinID = a; this.getSkinManager_0().setSkinIDs_1(this.skinID); } } else this.skin.addMissingKeys_1(this.skinEnglishFallback); this.getSkinManager_0().setSkinDescription_1(this.skin); this.getSkinManager_0().isRTLLanguage_0() && this.setUseRightToLeftText_1(!0); this.failedresources = 0; this.noLobbyMode = this.noLobbyMode || 0 != this.skin.getInt_2("nolobby", 0); GT1560.prototype.isAlive_1(this.disclaimer) && ((a = this.getParameter_1("disclaimer")), null != a && ((a = this.skin.getString_2("disclaimer_" + a, "")), this.disclaimer.setText_1(a))); this.isLoadingSkin = !1; this.preloadResources_0(); this.timeOfLastGameState = this.lastGameChange = this.currentTimeMillis_0(); } } else (this.skinpercentage = GT692.prototype.RESOURCEPERCENTAGEFORSKINFILE * this.numskinfilesloaded), (this.lastpercentage = GT692.prototype.RESOURCEPERCENTAGEFORSKINFILE * this.numskinfilesloaded), GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.setProgressPercentage_1(this.lastpercentage), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_LOADING_PROGRESS, "" + this.lastpercentage), (a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_LOADINGPROGRESS)), a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(this.lastpercentage)), GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, a.getMainTable_0()); }, getTimeOfLastGameState_0: function () { return this.timeOfLastGameState; }, doStop_0: function () { GT692.prototype.Log.i_1("User initiated game stop"); this.propertiessenttowrapper = null; this.getTimer_0().removeFramerateListener_1(this.framerateCallback); this.getEventDispatcher_0().unregisterHandler_1(this); this.isResetting ? GT1563.prototype.doStopImpl_0.call(this) : GT1563.prototype.doStop_0.call(this); null == this.recorder || this.recorder.isStopping_0() || this.recorder.stop_0(); GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.destroyChildren_0(); GT1560.prototype.isAlive_1(this.containerSplashScreen) && this.containerSplashScreen.destroy_0(); (this.isResetting && this.keepConnectionOnRestart) || (this.connection.kill_0(), (this.isConnectionEstablished = !1)); this.isResetting || (this.skin = null); this.deleteGameGUI_0(); this.deleteLobbyGUI_0(); this.fontMetricsToolTips = this.layerMain = null; this.hasOpenErrorScreen = !1; null != this.resourceManagerForProgressBar && (this.resourceManagerForProgressBar.cleanup_0(), (this.resourceManagerForProgressBar = null)); GT692.prototype.Log.i_1("Game stopped"); }, exitProgram_0: function () { GT692.prototype.Log.i_1("exitProgram"); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_CLOSED); GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_GAMECLOSING).getMainTable_0()); null == this.recorder && null == this.recordPlayer ? (GT692.prototype.LogARMS.log_1("exitProgram()->no recorder->EXIT"), GT1563.prototype.exitProgram_0.call(this)) : (null != this.recordPlayer && this.recordPlayer.invokeStop_0(), null != this.recorder ? (GT692.prototype.LogARMS.log_1("exitProgram()->send stop to recorder"), this.recorder.stop_0()) : GT1563.prototype.exitProgram_0.call(this)); }, exitByRecorder_0: function () { this.recordPlayer = this.recorder = null; this.exitProgram_0(); }, run_1: function (a) { if ("framerate".equals_1(a)) null != this.connection && this.connection.poll_1(this.currentTimeMillis_0()); else if ("deletegui".equals_1(a)) this.deleteGameGUI_0(), this.sendPacket_1([GT1122.prototype.WATCHOTHERTABLE]); else { if ("demomode".equals_1(a)) { if (!this.isDemoMode_0()) return; var b = this.currentTimeMillis_0(); if (8e4 < b - this.lastGameChange || this.isActivePlayer_0() || (15e3 < b - this.timeOfLastGameState && 15e3 < b - this.lastGameChange)) { var b = new GT1440(this.getTopContainer_0(), GT1634.prototype.black), d = new GT1191(this.getTimer_0(), b, !0, [[1e3, 0, 255]]); d.addFinishCallback_1(new GT714(b)); d.addFinishCallback_1(new GT1509(this, "deletegui")); d.start_0(); this.lastGameChange = this.currentTimeMillis_0(); this.triggerCallbackAfter_2(new GT1509(this, "demomode"), 5e3); } else this.triggerCallbackAfter_2(new GT1509(this, "demomode"), 1e3); } "startreconnect".equals_1(a) ? this.startConnecting_1(!0) : "triggerConnectionAndProgramClose".equals_1(a) ? this.triggerConnectionAndProgramClose_0() : "devlogofinished".equals_1(a) ? (GT692.prototype.Log.i_1("devlogofinished"), (this.canShowNextLoadingStage = !0), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE] = !1), this.canLoadAssetsBeforeDeveloperLogo_0() && (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE2] = !1), this.canLoadAssetsDuringDeveloperLogo_0() ? this.moveToNextLoadingStage_0() : this.notifyResourceLoaded_2(1, 1)) : "movetonextloadingstage".equals_1(a) ? this.moveToNextLoadingStage_0() : "shownextloadingstage".equals_1(a) ? (this.destroyCurrentLoadingStage_1(!0), this.showNextLoadingStage_1(!(this.currentLoadingStageShown < GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO && this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO]))) : ("introfinished".equals_1(a) && ((this.canShowNextLoadingStage = !0), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INTROVIDEO_IDLE] = !1), this.notifyResourceLoaded_2(1, 1)), "introstarted".equals_1(a) && ((b = this.layerMain.findDescendant_1(GT554.prototype.ID_INTROVIDEO_SKIP)), (d = b.findDescendant_1(GT554.prototype.ID_INTROVIDEO_LOADINGINDICATOR)), GT1560.prototype.isAlive_1(d) && instanceOf(d, GT1373) && new GT415(this.getTimer_0(), d, 15 * Math.PI, 12e4, !0, !1).start_0(), (d = this.layerMain.findDescendant_1(GT554.prototype.ID_INTRO_VIDEO)), GT1560.prototype.isAlive_1(b) && instanceOf(b.getParent_0(), GT1158) && GT1560.prototype.isAlive_1(d) && instanceOf(d.getParent_0(), GT1158) && ((d = d.getParent_0()), (b = b.getParent_0()), d.reflow_0(), b.reflow_0(), d.getParent_0().resizeToContent_0())), "initialloadingperiod".equals_1(a) && (GT692.prototype.Log.t_1("initialloadingperiod"), this.moveToNextLoadingStage_0()), "infopagetimeout".equals_1(a) && this.hasNextLoadingStageFinshedLoading_0() && this.moveToNextLoadingStage_0()); } }, showBlinkingMessage_2: function (a, b) { null != this.lobbyskin && (a += this.lobbyskin.layoutOverscanTop_0()); var d = GT1560.prototype.isAlive_1(this.containerAboveGame) ? this.containerAboveGame : this.containerLobby; if (null != d && null != this.fontMetricsToolTips) { var e = new GT1437(d); new GT1606(e, Math.div(d.getWidth_0(), 2), a, GT1606.prototype.ALIGN_CENTER, b, this.fontMetricsToolTips, GT1634.prototype.yellow, 2, GT1634.prototype.red); new GT464(this.getTimer_0(), e).start_0(); } }, showObfuscationMessage_0: function () { if (null != this.skin) { var a = this.skin.getString_1("swfobfuscated"), b = this.skin.getString_1("developerbuild"); (a.equals_1("0") || GT1677.prototype.equalsIgnoreCaseAZ_2(a, "false") || b.equals_1("1") || GT1677.prototype.equalsIgnoreCaseAZ_2(b, "true")) && this.showBlinkingMessage_2(10, "DEVELOPER VERSION"); } }, showNovoSdkMessage_0: function () { if (null != this.skin) { var a = this.skin.getString_2("sdkdir", "unknown"); if (!"SDKDIR".equals_1(a)) { var b = GT1677.prototype.tokenize_2(a, "_"), b = 4 == b.length && 3 == GT1677.prototype.tokenize_2(b[1], ".").length, a = GT1677.prototype.tokenize_2(a, ".-_ "); (b && 8 == a.length) || this.showBlinkingMessage_2(35, "NON-RELEASE NOVOSDK VERSION"); } } }, connectionEstablished_0: function () { GT692.prototype.Log.t_0(); this.isConnectionEstablished = !0; this.connectionWasLost = !1; this.isStarted_0(); }, showSubRooms_0: function () { return 49 == this.getStringParameter_2("showsubrooms", "1").charAt_1(0); }, connectionNotEstablished_0: function () { GT692.prototype.Log.t_0(); if (this.isStarted_0()) { this.isSplashScreenAlive_0() && this.resourceLoadingFinished_0() && this.fadeAwaySplashscreen_1(0); var a = this.skin.getString_2("noconnection", "No connection..."); this.getBooleanParameter_2("displaymessages", !0) && this.showFatalErrorDialog_2(a, this.connectionWasLost); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, GT697.prototype.VALUE_ERROR_DESCRIPTION_NO_CONNECTION); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_ERROR); this.getBooleanParameter_2("exitprogramonconnectionerror", !1) && this.exitProgram_0(); } }, connectionLost_0: function () { if (this.isStarted_0()) { this.connectionWasLost = !0; this.isSplashScreenAlive_0() && this.resourceLoadingFinished_0() && this.fadeAwaySplashscreen_1(0); var a = !0; if (null != this.urlAfterConnectionClose) { var b = "Closing..."; null != this.skin && (b = this.skin.getString_2("closing", b)); this.displayProgramState_2(b, null); this.setFullscreenMode_1(!1); 0 < this.urlAfterConnectionClose.length_0() && this.openLink_2("controlframe", this.urlAfterConnectionClose); } else this.isConnectionEstablished && ((b = "Connection lost..."), null != this.skin && (b = this.skin.getString_2("connectionlost", b)), this.getBooleanParameter_2("displaymessages", !0) && this.showFatalErrorDialog_2(b, !0), (a = !1)); this.isConnectionEstablished = !1; this.notifyConnectionLost_1(!a); this.getEventDispatcher_0().raiseEvent_1(new GT354(!a)); a ? (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_CLOSED), (this.getBooleanParameter_2("exitprogramonconnectionerror", !1) || null != this.urlAfterConnectionClose) && this.exitProgram_0()) : (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, GT697.prototype.VALUE_ERROR_DESCRIPTION_DISCONNECTED), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_ERROR), GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_DISCONNECT).getMainTable_0()), this.getBooleanParameter_2("exitprogramonconnectionerror", !1) && this.exitProgram_0()); } }, isAutoReconnectAllowed_0: function () { return this.getBooleanParameter_2("autoreconnect", !1); }, getConnection_0: function () { return this.connection; }, incomingQueueSize_0: function () { return this.connection.incomingQueueSize_0(); }, notifyConnectionLost_1: function (a) { GT692.prototype.Log.t_0(); }, showFatalErrorDialog_2: function (a, b) { this.isSplashScreenAlive_0() && this.getBooleanParameter_2("issound", !0) && this.getSoundPlayer_0().setActive_1(!0); this.isUiNeonEnabled_0() ? this.getSoundPlayer_0().isActive_0() && (this.getSoundPlayer_0().setActive_1(!1), (this.restoreSoundAtReconnect = !0)) : this.stopAllGameSounds_0(); if (b && this.isAutoReconnectAllowed_0()) this.buttonReconnectClicked_0(); else if ((this.stopShowReconnectMessage_0(), this.showGUIOnError_0())) { var d = GT1560.prototype.isAlive_1(this.containerAboveGame) ? this.containerAboveGame : this.layerMain, e = this.lobbyskin.containerErrorScreen_0().create_2(d, this.getSkinManager_0()); b && this.getBooleanParameter_2("button.reconnect.show", !0) ? e.findDescendant_1(GT554.prototype.ACTION_CLOSEAFTERKICK).hide_1(!0) : (e.findDescendant_1(GT554.prototype.ACTION_CLOSEAFTERKICK2).hide_1(!0), e.findDescendant_1(GT554.prototype.ACTION_RECONNECT).hide_1(!0)); e.findDescendant_1(GT554.prototype.ID_ERRORSCREENBOX).findDescendant_1(GT554.prototype.TEXT_ERRORMSG).setText_1(a); this.layerMain.setModalInputReceiver_1(d); this.hasOpenErrorScreen = !0; this.notifyModalDialogOpened_1(GT554.prototype.ID_ERRORSCREEN); } else this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_STATE, a); }, destroyFatalErrorDialog_0: function () { GT1560.prototype.destroyIfAlive_1(this.layerMain.findDescendant_1(GT554.prototype.ID_ERRORSCREEN)); this.layerMain.setModalInputReceiver_1(null); this.hasOpenErrorScreen = !1; this.notifyModalDialogClosed_1(GT554.prototype.ID_ERRORSCREEN); }, notifyModalDialogOpened_1: function (a) { var b = null, b = a == GT554.prototype.ID_ERRORSCREEN ? "OPENED ID_ERRORSCREEN" : "OPENEND UNKNOWN DIALOG"; null != b && GT692.prototype.Log.i_1(b); }, notifyModalDialogClosed_1: function (a) { var b = null, b = a == GT554.prototype.ID_ERRORSCREEN ? "CLOSED ID_ERRORSCREEN" : "CLOSED UNKNOWN DIALOG"; null != b && GT692.prototype.Log.i_1(b); }, forwardButtonClick_1: function (a) { var b = new GT1559(this.getTopContainer_0(), 0, 0); b.setApplicationID_1(a); this.buttonClick_1(b); b.destroy_0(); }, isBlockingPackets_0: function () { return this.getTimer_0().isBlockingAnimatorRunning_0(); }, checkBlockingState_0: function () {}, changedAnimatorBlockingState_0: function () { GT1563.prototype.changedAnimatorBlockingState_0.call(this); this.checkBlockingState_0(); }, mustBlockQueue_2: function (a, b) { if (this.currentLoadingStageShown < GT692.prototype.LOADINGSTAGE_GAMEASSETS) return !0; if (b || !this.isBlockingPackets_0()) return !1; if (this.useNonBlockingCommands) for (var d = 0; d < a.size_0(); d++) for (var e = a.elementAt_1(d).byteValue_0(), f = 0; f < this.nonblockingCommands.length; f++) if (e == this.nonblockingCommands[f]) return !1; return !0; }, processQueuePacket_2: function (a, b) { this.processPacket_2(a, b); return !0; }, processPacket_2: function (a, b) { if (this.isConnected_0()) switch (a) { case GT692.prototype.ERR_LOGINFAILED: var d = null, e = ""; if (0 < b.length && b[0].equals_1("8")) d = this.skin.getString_2("loginerror8", ""); else if (2 < b.length && 0 < b[2].length_0()) { if (((e = b[1]), (d = this.skin.getString_1("LOGINERROR_" + b[2])), null == d || 1 > d.length_0())) d = b[2]; } else d = 1 < b.length && 0 < b[1].length_0() ? b[1] : 0 < b.length && 0 < b[0].length_0() ? this.skin.getString_1("loginerror" + b[0]) : this.skin.getString_2("invalidlogin", "Invalid login"); this.isSplashScreenAlive_0() && this.resourceLoadingFinished_0() && this.fadeAwaySplashscreen_1(0); this.displayProgramState_2(d, null); this.setFullscreenMode_1(!1); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_CODE, e); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, d); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_CLOSE, GT697.prototype.VALUE_CLOSE_ERR_LOGINFAILED); GT692.prototype.Log.info && GT692.prototype.Log.logRemote_2(GT697.prototype.VALUE_CLOSE_ERR_LOGINFAILED, null); this.closeConnection_0(); break; case GT692.prototype.ERR_KICK: var d = null, e = "", f = !0; 1 < b.length && 0 < b[1].length_0() ? (d = b[1]) : 0 < b.length && 0 < b[0].length_0() && ((d = this.skin.getString_1("kickreason" + b[0])), b[0].equals_1("5") && (f = !1), b[0].equals_1("1") && 49 == this.getPlayerAttribute_2("DISALLOWRECONNECTAFTERINACTIVITY", "0").charAt_1(0) && (f = !1)); 2 < b.length && (e = b[2]); this.stopLobbySounds_0(); this.getBooleanParameter_2("displaymessages", !0) && this.showFatalErrorDialog_2(d, f); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_KICK_REASON, b[0]); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_DESCRIPTION, d); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_ERROR_CODE, e); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_ERROR); e = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_KICKEDBYSERVER); e.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_KICKREASON, b[0]); e.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_DESCRIPTION, d); GT692.prototype.Log.info && GT692.prototype.Log.logRemote_2(GT697.prototype.KEY_KICK_REASON, ["Reason", b[0]]); this.closeConnection_0(); break; case GT1121.prototype.PLAYERATTRIBUTES: this.playerAttributes = new java_util_JavaScriptHashtable(); for (d = 0; d + 1 < b.length; d += 2) this.playerAttributes.put_2(b[d], b[d + 1]); this.notifyPlayerAttributesChanged_0(); break; case GT1121.prototype.ROOMATTRIBUTES: this.roomAttributes.clear_0(); for (d = 0; d + 1 < b.length; d += 2) this.roomAttributes.put_2(b[d], b[d + 1]); null != this.containerLobby && (this.createLobbyGUI_0(), (this.suppressLobbyUpdates = !1)); break; case GT1121.prototype.CURRENCYSYMBOLS: 2 <= b.length && this.currencySymbols.add_2(b[0], b[1]); break; case GT1121.prototype.STARTROOMINFO: this.suppressLobbyUpdates = !1; if (this.noLobbyMode) { this.triggerConnectionAndProgramClose_0(); break; } this.resetGameState_0(); this.tables.setSize_1(0); break; case GT1121.prototype.TABLEINFO: case GT1121.prototype.UPDATETABLE: if (this.noLobbyMode) break; if (this.suppressLobbyUpdates) break; e = 0 < b.length ? GT1672.prototype.stringToInt_1(b[0]) : 0; 0 > e && (e = 0); this.tables.size_0() <= e && this.tables.setSize_1(e + 1); d = this.tables.elementAt_1(e); f = !1; null == d && ((d = this.createCasinoTable_1(e)), this.tables.setElementAt_2(d, e), (f = !0)); d.timeOfLastTableInfo = this.currentTimeMillis_0(); this.updateCasinoTable_2(d, b); a == GT1121.prototype.UPDATETABLE && GT1560.prototype.isAlive_1(this.containerTables) && (this.containerTables.updateTableView_2(d, e), f && GT1560.prototype.isAlive_1(this.dropDownFilter) && 0 == this.dropDownFilter.getCurrentSelection_0() && this.containerTables.updateScrollBar_0(), this.isUpcomingMaintenance_0() && (this.containerTables.setAllButtonsActive_1(!1), (d = this.containerLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW)), GT1560.prototype.isAlive_1(d) && d.setActive_1(!1))); break; case GT1121.prototype.FINISHROOMINFO: if (this.noLobbyMode) break; this.leavegameinprogress || GT1560.prototype.isAlive_1(this.containerReconnectInfo) ? (this.stopAllGameSounds_0(), this.deleteGameGUI_0()) : (this.stopAllGameSounds_0(), this.deleteGameGUI_0(), this.deleteLobbyGUI_0()); this.leavegameinprogress = !1; GT1560.prototype.isAlive_1(this.containerLobby) ? (this.containerTables.attachTablesVector_1(this.tables), null != this.html5handler && (this.html5handler.reset_0(), this.html5handler.alignContainers_2(this.getVisibleArea_0().x, this.getVisibleArea_0().width), this.html5handler.updateSwipeFeature_3(0 == this.myRoomId, this.myRoomId == this.subrooms.size_0() - 1, this.myRoomId)), (d = this.containerLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW)), GT1560.prototype.isAlive_1(d) && d.setActive_1(!0)) : (this.createLobbyGUI_0(), this.startLobbySounds_0()); this.containerSubRooms.setAllButtonsActive_1(!0); this.containerSubRooms.updateSubRoomView_2(this.subrooms, this.myRoomId); GT1560.prototype.isAlive_1(this.textJackpotMaxBetInfo) && (GT1560.prototype.isAlive_1(this.textJackpotMaxJackpotInfo) || GT1560.prototype.isAlive_1(this.jackpotReel)) && this.updateMaxJackpotText_0(); d = this.containerSubRooms.isHidden_0(); e = 1 >= this.subrooms.size_0() || !this.showSubRooms_0(); d != e && (this.containerSubRooms.hide_1(e), null != this.imgSubRoomBorder && this.imgSubRoomBorder.hide_1(e), null != this.scrollBarRooms && this.scrollBarRooms.hide_1(e), this.resizeContainerTable_1(e)); 0 <= this.lastRoomScrollValue && this.containerSubRooms.setScrollBarValue_1(this.lastRoomScrollValue); 0 <= this.lastTableScrollValue && this.containerTables.setScrollBarValue_1(this.lastTableScrollValue); this.containerTables.finishRoomInfo_3(this.lastEnteredTable, this.lastTableScrollValue, this.lastDropDownSelection); this.lastEnteredTable = null; this.isUpcomingMaintenance_0() && (this.containerTables.setAllButtonsActive_1(!1), (d = this.containerLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW)), GT1560.prototype.isAlive_1(d) && d.setActive_1(!1)); break; case GT1121.prototype.SUBROOMINFO: case GT1121.prototype.SUBROOMUPDATE: if (this.noLobbyMode) break; if (this.suppressLobbyUpdates) break; this.activateNonBlockingCommands_1(!0); f = -1; for (d = 0; d + 2 < b.length; d += 3) { var e = GT1672.prototype.stringToInt_1(b[d + 0]), g = GT1672.prototype.stringToInt_1(b[d + 1]), k = GT1672.prototype.stringToInt_1(b[d + 2]); this.subrooms.size_0() <= e + 1 && this.subrooms.setSize_1(e + 1); var m = this.subrooms.elementAt_1(e); null == m ? ((m = [g, k]), this.subrooms.setElementAt_2(m, e)) : ((m[0] = g), (m[1] = k)); f++; } this.subrooms.size_0() > f + 1 && this.subrooms.setSize_1(f + 1); this.myRoomId = GT1672.prototype.stringToInt_2(b[b.length - 1], 0); a == GT1121.prototype.SUBROOMUPDATE && (this.containerSubRooms.isAlive_0() ? (this.containerSubRooms.updateSubRoomView_2(this.subrooms, this.myRoomId), null != this.html5handler && this.html5handler.updateSwipeFeature_3(0 == this.myRoomId, this.myRoomId == this.subrooms.size_0() - 1, this.myRoomId), (d = this.containerSubRooms.isHidden_0()), (e = 1 >= this.subrooms.size_0() || !this.showSubRooms_0()), d != e && (this.containerSubRooms.hide_1(e), null != this.imgSubRoomBorder && this.imgSubRoomBorder.hide_1(e), null != this.scrollBarRooms && this.scrollBarRooms.hide_1(e), this.resizeContainerTable_1(e))) : GT692.prototype.Log.i_1("containerSubRoom was not alive")); break; case GT1121.prototype.JACKPOTFACTOR: 0 < b.length && ((this.hasjackpot = !0), (this.jackpotfactor = GT1672.prototype.stringToDouble_1(b[0])), null != this.jackpotCalculator && this.jackpotCalculator.setProgressive_2("", this.jackpotfactor), 1 < b.length && (this.jackpotminbet = GT1672.prototype.stringToDouble_1(b[1])), 2 < b.length && (this.jackpotmaxbet = GT1672.prototype.stringToDouble_1(b[2])), 3 < b.length && (this.jackpotbasewin = GT1672.prototype.stringToDouble_1(b[3])), this.updateJackpotFactor_0()); break; case GT1121.prototype.JACKPOTFACTOR_MULTI: null == this.jackpot_factors && (this.jackpot_factors = new java_util_JavaScriptHashtable()); this.jackpot_factors.clear_0(); 2 <= b.length && ((this.jackpotminbet = GT1672.prototype.stringToDouble_1(b[0])), (this.jackpotmaxbet = GT1672.prototype.stringToDouble_1(b[1]))); for (d = 2; d + 1 < b.length; d += 2) (this.hasjackpot = !0), (e = b[d]), (f = GT1672.prototype.stringToDouble_1(b[d + 1])), this.jackpot_factors.put_2(e, new Double(f)), this.updateJackpotFactor_2(e, f); this.hasjackpot && this.updateJackpotFactor_0(); break; case GT1121.prototype.DEMOMODEGAMECHANGE: this.suppressGameUpdate = !1; break; case GT1121.prototype.GAMESTATE: if (this.suppressGameUpdate) { GT692.prototype.Log.v_1("suppress game update"); break; } this.stopShowReconnectMessage_0(); this.lastGameState = b; this.timeOfLastGameState = this.currentTimeMillis_0(); this.notifyGameStateReceived_0(); GT1560.prototype.isAlive_1(this.containerGame) || (this.stopLobbySounds_0(), this.decodeBaseGameSituation_1(b), this.createGameGUI_0(), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAMEGUICREATED, "")); this.decodeGameSituation_1(b); this.updateGameGUI_0(); this.afterUpdateGameGUI_0(); break; case GT1121.prototype.START_GAMESTATE: if (this.suppressGameUpdate) { GT692.prototype.Log.v_1("suppress game update"); break; } d = GT1672.prototype.stringToInt_1(b[0]); this.lastGameState = [].createArray(d); this.lastpartindex = 0; break; case GT1121.prototype.PART_GAMESTATE: if (this.suppressGameUpdate) { GT692.prototype.Log.v_1("suppress game update"); break; } java_lang_System.prototype.arraycopy_5(b, 0, this.lastGameState, this.lastpartindex, b.length); this.lastpartindex += b.length; break; case GT1121.prototype.END_GAMESTATE: if (this.suppressGameUpdate) { GT692.prototype.Log.v_1("suppress game update"); break; } this.stopShowReconnectMessage_0(); this.timeOfLastGameState = this.currentTimeMillis_0(); this.notifyGameStateReceived_0(); GT1560.prototype.isAlive_1(this.containerGame) || (this.stopLobbySounds_0(), this.decodeBaseGameSituation_1(this.lastGameState), this.createGameGUI_0(), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAMEGUICREATED, "")); this.decodeGameSituation_1(this.lastGameState); this.updateGameGUI_0(); this.afterUpdateGameGUI_0(); break; case GT1121.prototype.SERVERVERSION: GT692.prototype.Log.log_1("Server version received:"); e = ""; for (d = 0; d + 2 < b.length; d += 3) GT692.prototype.Log.log_1(" " + b[d] + ": " + b[d + 1] + " " + b[d + 2]), 0 < d && (e += " / "), (e += b[d + 1] + ""); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_SERVERVERSION, e); e = b[1].indexOf_1("."); 0 <= e && ((this.serverMainVersion = GT1672.prototype.stringToInt_1(b[1].substring_2(0, e))), (d = b[1].indexOf_2(".", e + 1)), d > e && ((this.serverMajorVersion = GT1672.prototype.stringToInt_1(b[1].substring_2(e + 1, d))), b[1].length_0() > d && ((d = b[1].substring_1(d + 1)), 0 <= d.indexOf_1(46) && (d = d.substring_2(0, d.indexOf_1(46))), (this.serverMinorVersion = GT1672.prototype.stringToInt_1(d))))); d = !1; 1 < b.length && (this.isCompatibleVersion_4("0", GT692.prototype.versionTableManager, b[0], b[1]) || (d = !0)); 4 < b.length && (this.isCompatibleVersion_4("" + this.getGameId_0(), this.version_0(), b[3], b[4]) || (d = !0)); d && (this.displayProgramState_2(this.skin.getString_2("loginerror8", ""), null), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_CLOSE, GT697.prototype.VALUE_CLOSE_CommandID_SERVERVERSION), GT692.prototype.Log.info && GT692.prototype.Log.logRemote_2(GT697.prototype.VALUE_CLOSE_CommandID_SERVERVERSION, null), this.closeConnection_0()); break; case GT1121.prototype.ROUNDHISTORY: this.resetRoundHistory_0(); for (d = 0; d + 2 < b.length; d += 3) for (e = GT1672.prototype.stringToInt_1(b[d + 2]), f = 0; f < e; f++) this.roundhistory.addElement_1([b[d], 0 == f ? b[d + 1] : "", "" + f]); this.notifyRoundHistoryReceived_0(); break; case GT1121.prototype.START_ROUNDHISTORY: this.resetRoundHistory_0(); break; case GT1121.prototype.PART_ROUNDHISTORY: for (d = 0; d + 2 < b.length; d += 3) for (e = GT1672.prototype.stringToInt_1(b[d + 2]), f = 0; f < e; f++) this.roundhistory.addElement_1([b[d], 0 == f ? b[d + 1] : "", "" + f]); break; case GT1121.prototype.END_ROUNDHISTORY: this.notifyRoundHistoryReceived_0(); break; case GT1121.prototype.TIMESTAMPFORSTEP: this.setTimestampForRoundstep_3(b[0], b[1], b[2]); this.notifyNewTimeStampReceived_0(); break; case GT1121.prototype.CLIENTDATA: 1 <= b.length && this.notifyPropertyChangedImpl_2("CLIENTDATA", b[0]); break; case GT1121.prototype.GAMEACTIONDATA: 1 <= b.length && this.notifyPropertyChangedImpl_2("GAMEACTIONDATA", b[0]); break; case GT1121.prototype.ENTERTABLE: if (0 == b.length) break; e = GT1672.prototype.stringToInt_1(b[0]); if (0 > e || e >= this.tables.size_0()) break; GT692.prototype.Log.i_1("ENTERTABLE " + e); this.lastEnteredTable = d = this.tables.elementAt_1(e); if (null == this.containerTables || !this.containerTables.isAlive_0()) break; null != d && 0 == d.numplayers && this.containerTables.scrollToListElement_1(e); this.lastTableScrollValue = null != this.scrollBarTables ? this.scrollBarTables.getValue_0() : 0; this.lastRoomScrollValue = null != this.scrollBarRooms ? this.scrollBarRooms.getValue_0() : 0; this.lastDropDownSelection = GT1560.prototype.isAlive_1(this.dropDownFilter) ? this.dropDownFilter.getCurrentSelection_0() : 0; this.containerTables.enterTable_1(d); break; case GT1121.prototype.SUBROOM_TABLEINFO: null != this.html5handler && this.html5handler.receivedTables_2(b, this.isAdmin_0()); } }, resetRoundHistory_0: function () { null == this.roundhistory ? (this.roundhistory = new java_util_JavaScriptVector()) : this.roundhistory.setSize_1(0); }, resizeContainerTable_1: function (a) { GT692.prototype.Log.i_1("resizecontainertables " + this.scrollbartablesheight); a ? (this.containerTables.resize_2(this.containerTables.getWidth_0(), this.tableviewheight), GT1560.prototype.isAlive_1(this.scrollBarTables) && this.scrollBarTables.resize_2(this.scrollBarTables.getWidth_0(), this.scrollbartablesheight)) : (this.containerTables.resize_2(this.containerTables.getWidth_0(), this.tableviewheight - this.containerSubRooms.getHeight_0()), GT1560.prototype.isAlive_1(this.scrollBarTables) && this.scrollBarTables.resize_2(this.scrollBarTables.getWidth_0(), this.scrollbartablesheight - this.containerSubRooms.getHeight_0())); this.containerTables.updateScrollBar_0(); }, getLastGameState_0: function () { return this.lastGameState; }, notifyRoundHistoryReceived_0: function () {}, notifyNewTimeStampReceived_0: function () {}, notifyGameStateReceived_0: function () { GT692.prototype.Log.v_1("notify gs:" + this.resetGameGuiAtNotifyReceive); this.resetGameGuiAtNotifyReceive && GT1560.prototype.isAlive_1(this.containerGame) && (this.resetGameGUI_0(), (this.resetGameGuiAtNotifyReceive = !1)); }, setResetGameGuiAtNextGameState_0: function () { this.resetGameGuiAtNotifyReceive = !0; }, numberOfRoundHistoryElements_0: function () { return null != this.roundhistory ? this.roundhistory.size_0() : 0; }, getRoundIdFromRoundHistory_1: function (a) { return this.roundhistory.elementAt_1(a)[0]; }, getTimeStampFromRoundHistory_1: function (a) { return 0 < this.roundhistory.size_0() ? this.roundhistory.elementAt_1(a)[1] : ""; }, getStepFromRoundHistory_1: function (a) { return GT1672.prototype.stringToInt_1(this.roundhistory.elementAt_1(a)[2]); }, setTimestampForRoundstep_3: function (a, b, d) { for (var e = 0; e < this.roundhistory.size_0(); e++) { var f = this.roundhistory.elementAt_1(e); if (f[0].equals_1(a) && f[2].equals_1(b)) { f[1] = d; break; } } }, deleteLobbyGUI_0: function () { GT1560.prototype.isAlive_1(this.layerMain) && (this.layerMain.setModalInputReceiver_1(null), this.layerMain.destroyChildren_0(), (this.hasOpenErrorScreen = !1)); this.suppressGameUpdate = !1; this.containerLobby = this.containerGame = this.containerProgramState = null; null != this.html5handler && this.html5handler.destroy_0(); this.stopLobbySounds_0(); }, hasJackpot_0: function () { return this.hasjackpot; }, createLobbyGUI_0: function () { this.isSplashScreenAlive_0() && !this.needTouchToRemoveSplashscreen_0() && this.resourceLoadingFinished_0() && this.fadeAwaySplashscreen_1(0); this.deleteLobbyGUI_0(); this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_LOBBY); GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, GT1242.prototype.getWrapperStateEventTables_1(GT697.prototype.STATE_LOBBY).getMainTable_0()); new GT1440(this.layerMain, GT1634.prototype.black); this.containerLobby = this.lobbyskin.containerLobby_0().create_2(this.layerMain, this.getSkinManager_0()); this.containerLobbyIndented = this.containerLobby.findDescendant_1(GT554.prototype.ID_CONTAINER_LOBBYINDENTED); this.hasjackpot && this.createLobbyJackpotAnimator_1(this.containerLobbyIndented); this.isFullscreenModeSupported_0() && null != this.lobbyskin.buttonMenuFullscreen_0() && ((this.btnFullscreen = this.lobbyskin.buttonMenuFullscreen_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), this.btnFullscreen.hide_1(this.getFullscreenMode_0()), null != this.lobbyskin.buttonMenuWindowed_0() && ((this.btnWindow = this.lobbyskin.buttonMenuWindowed_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), this.btnWindow.hide_1(!this.btnFullscreen.isHidden_0()))); if (this.lobbyskin.showAspectButton_0()) { var a = 1 == this.getAspectRatio_0(); null != this.lobbyskin.buttonMenuWideAspect_0() && ((this.btnWideAspect = this.lobbyskin.buttonMenuWideAspect_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), this.btnWideAspect.hide_1(!a)); null != this.lobbyskin.buttonMenuNormalAspect_0() && ((this.btnNormalAspect = this.lobbyskin.buttonMenuNormalAspect_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), this.btnNormalAspect.hide_1(a)); } this.btnSoundOn = this.containerLobbyIndented.findDescendant_1(GT554.prototype.ACTION_SOUND_ON); this.btnSoundOff = this.containerLobbyIndented.findDescendant_1(GT554.prototype.ACTION_SOUND_OFF); this.updateSoundButtonState_0(); this.containerTables = this.containerLobbyIndented.findDescendant_1(GT554.prototype.ID_CONTAINER_TABLEVIEW); this.tableviewheight = this.containerTables.getHeight_0(); null != this.lobbyskin.imageBorder_0() && this.lobbyskin.imageBorder_0().create_2(this.containerLobby, this.getSkinManager_0()); null != this.lobbyskin.scrollBarTables_0() && ((this.scrollBarTables = this.lobbyskin.scrollBarTables_0().create_2(this.containerLobby, this.getSkinManager_0())), (this.scrollbartablesheight = this.scrollBarTables.getHeight_0()), this.containerTables.attachScrollBar_1(this.scrollBarTables), this.containerTables.setEventHandler_1(new GT273(this.getEventDispatcher_0(), this.getTimer_0(), this.containerTables, this.scrollBarTables))); this.containerTables.attachTablesVector_1(this.tables); this.containerSubRooms = this.lobbyskin.subRoomView_0().create_2(this.containerLobby, this.getSkinManager_0()); this.containerSubRooms.hide_1(!0); null != this.lobbyskin.imageBorder_0() && ((this.imgSubRoomBorder = this.lobbyskin.imageBorder_0().create_2(this.containerLobby, this.getSkinManager_0())), this.imgSubRoomBorder.move_2(this.containerSubRooms.getX_0(), this.containerSubRooms.getY_0()), this.imgSubRoomBorder.hide_1(!0)); var a = this.containerLobby.getWidth_0(), b = this.containerLobby.getHeight_0(), d = this.lobbyskin.tableViewBackColor_0().create_0(), e = this.lobbyskin.tableViewBackColor2_0(), f = new GT1288(this.containerLobby, 0, 0, a, b); f.addTriangleStrip_3([0, 0, 0, b, a, 0, a, b], [d, null != e ? e.create_0() : new GT1063(25).transform_1(d)], [0, 0, 0, b]); f.reorder_1(!1); null != this.lobbyskin.scrollBarRooms_0() && ((this.scrollBarRooms = this.lobbyskin.scrollBarRooms_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), this.scrollBarRooms.hide_1(!0), this.containerSubRooms.attachScrollBar_2(this.scrollBarRooms, this.lobbyskin.layoutDesignedWidth_0() + this.lobbyskin.layoutOverscanRight_0() - 20), this.containerSubRooms.setEventHandler_1(new GT273(this.getEventDispatcher_0(), this.getTimer_0(), this.containerSubRooms, this.scrollBarRooms))); null != this.lobbyskin.textPlayerAccount_0() && (this.textPlayerAccount = this.lobbyskin.textPlayerAccount_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())); this.notifyPlayerAttributesChanged_0(); GT1677.prototype.isSameOrHigherVersion_6(this.serverMainVersion, this.serverMajorVersion, this.serverMinorVersion, 2, 5, 4) || ((a = this.containerLobbyIndented.findDescendant_1(GT554.prototype.ACTION_PLAYNOW)), GT1560.prototype.destroyIfAlive_1(a), (this.dropDownFilter = this.lobbyskin.dropDownFilter_0().create_2(this.containerLobbyIndented, this.getSkinManager_0())), (a = new java_util_JavaScriptVector()), a.addElement_1(this.skin.getString_1("tablefiltermsgall")), a.addElement_1(this.skin.getString_1("tablefiltermsgfree")), this.dropDownFilter.setEntries_2(a, this.lastDropDownSelection), this.dropDownFilter.addDropDownMenuListener_1(this.containerTables)); this.isUpcomingMaintenance_0() && this.lobbyskin.maintenanceInfo_0().create_2(this.containerLobbyIndented, this.getSkinManager_0()); for (a = 0; a < this.containerLobby.getChildCount_0(); ++a) (b = this.containerLobby.getChild_1(a)), b.isAlive_0() && b.getApplicationID_0() != GT554.prototype.ID_CONTAINER_BANNER_PARENT && b.move_2(b.getX_0(), b.getY_0() + this.lobbyskin.layoutSafeAreaHeightTop_0()); this.showObfuscationMessage_0(); this.showNovoSdkMessage_0(); "1".equals_1(this.getSkinManager_0().getParameter_1("html5lobby")) && ((this.html5handler = new GT457(this.containerLobby, this.getSkinManager_0().getEventDispatcher_0(), this.getSkinManager_0().getTimer_0(), this.connection)), this.html5handler.init_3(0 == this.myRoomId, this.myRoomId == this.subrooms.size_0() - 1, this.myRoomId), this.html5handler.alignContainers_2(this.getVisibleArea_0().x, this.getVisibleArea_0().width)); }, isServerVersionSameOrHigher_3: function (a, b, d) { return GT1677.prototype.isSameOrHigherVersion_6(this.serverMainVersion, this.serverMajorVersion, this.serverMinorVersion, a, b, d); }, createLobbyJackpotAnimator_1: function (a) { var b = this.lobbyskin.imageJackpotLogo_0(); this.textJackpotMaxBetInfo = this.lobbyskin.textJackpotMaxBetInfo_0().create_2(a, this.getSkinManager_0()); null != this.lobbyskin.jackpotCounterReel_0() && (this.jackpotReel = this.lobbyskin.jackpotCounterReel_0().create_2(a, this.getSkinManager_0())); if (null != this.jackpotReel) { var d = this.getPlayerAttribute_2("CURRENCY", ""), e = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100")); this.jackpotReel.setFormatter_1(new GT414(this, d, e)); } else this.textJackpotMaxJackpotInfo = this.lobbyskin.textJackpotMaxJackpotInfo_0().create_2(a, this.getSkinManager_0()); null != b && ((this.jackpotlobbyanim = new GT325(this, b.create_2(a, this.getSkinManager_0()), this.textJackpotMaxBetInfo, null != this.jackpotReel ? this.jackpotReel : this.textJackpotMaxJackpotInfo)), this.jackpotlobbyanim.start_0()); }, updateSoundButtonState_0: function () { GT1560.prototype.isAlive_1(this.containerLobby) && (GT1560.prototype.isAlive_1(this.btnSoundOff) && this.btnSoundOff.hide_1(this.getSoundPlayer_0().isActive_0()), GT1560.prototype.isAlive_1(this.btnSoundOn) && this.btnSoundOn.hide_1(!this.getSoundPlayer_0().isActive_0())); }, createCasinoTable_1: function (a) { var b = new GT706(); b.tableindex = new Integer(a); return b; }, updateCasinoTable_2: function (a, b) { 1 < b.length && ((a.oldnumplayers = a.numplayers), (a.numplayers = GT1672.prototype.stringToInt_1(b[1]))); 2 < b.length && (a.snapshot = b[2]); 3 < b.length && (a.address = b[3]); 4 < b.length && this.isAdmin_0() && (a.nicknames = b[4]); a.payouttext = this.modifyLobbyTableText_1(a.getLastPayout_0()); }, modifyLobbyTableText_1: function (a) { return a; }, createGameGUI_0: function () { GT692.prototype.Log.t_0(); this.isSplashScreenAlive_0() && !this.needTouchToRemoveSplashscreen_0() && this.resourceLoadingFinished_0() && this.fadeAwaySplashscreen_1(0); this.deleteLobbyGUI_0(); this.containerGame = new GT1437(this.layerMain); this.containerAboveGame = new GT1437(this.layerMain); if (this.isDemoMode_0()) { var a = new GT1440(this.getTopContainer_0(), GT1634.prototype.black), b = new GT1191(this.getTimer_0(), a, !0, [[1e3, 255, 0]]); b.addFinishCallback_1(new GT714(a)); b.start_0(); } this.showObfuscationMessage_0(); this.showNovoSdkMessage_0(); }, updateGameGUI_0: function () { GT692.prototype.Log.t_1("updateGameGUI"); }, deleteGameGUI_0: function () { GT1560.prototype.isAlive_1(this.containerGame) && (this.containerGame.destroyChildren_0(), this.containerGame.destroy_0()); this.containerGame = null; GT1560.prototype.isAlive_1(this.containerAboveGame) && (this.containerAboveGame.destroyChildren_0(), this.containerAboveGame.destroy_0()); this.containerAboveGame = null; this.suppressGameUpdate = !0; }, resetGameGUI_0: function () {}, decodeBaseGameSituation_1: function (a) { var b = this.isactiveplayer; this.isactiveplayer = !0; for (var d = 0; d < a.length; d++) { var e = a[d]; 0 < e.length_0() && 79 == e.charAt_1(0) && (this.isactiveplayer = !1); } !b && this.isactiveplayer && this.notifyActivePlayer_0(); }, notifyActivePlayer_0: function () {}, resetGameState_0: function () { this.isactiveplayer = this.resetGameGuiAtNotifyReceive = !1; }, decodeGameSituation_1: function (a) { this.decodeBaseGameSituation_1(a); }, updateJackpotFactor_0: function () { GT1560.prototype.isAlive_1(this.textJackpotMaxBetInfo) && (GT1560.prototype.isAlive_1(this.textJackpotMaxJackpotInfo) || GT1560.prototype.isAlive_1(this.jackpotReel)) && this.updateMaxJackpotText_0(); }, updateJackpotFactor_2: function (a, b) { null != this.jackpotCalculator && this.jackpotCalculator.setProgressive_2(a, b); }, notifyPlayerAttributesChanged_0: function () { GT1560.prototype.isAlive_1(this.textPlayerAccount) && this.textPlayerAccount.setText_1(this.getTicketString_1(this.getTickets_0())); this.enableClientToWrapper_1("1".equals_1(this.getPlayerAttribute_2("CLIENT_TO_WRAPPER", "1"))); this.enableWrapperToClient_1("1".equals_1(this.getPlayerAttribute_2("WRAPPER_TO_CLIENT", "1"))); }, requestLeaveGame_0: function () { if (!this.leavegameinprogress) { GT692.prototype.Log.v_1("requestleavegame"); var a = GT1677.prototype.isSameOrHigherVersion_6(this.serverMainVersion, this.serverMajorVersion, this.serverMinorVersion, 2, 5, 15); this.leavegameinprogress = !0; this.noLobbyMode || this.demoMode ? a ? (null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = this.getStringParameter_2("closeurl", null)), null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = this.getStringParameter_2("relativecloseurl", null)), null == this.urlAfterConnectionClose && (this.urlAfterConnectionClose = ""), this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LEAVEGAME_AND_LOGOUT, new java_util_JavaScriptVector()))) : this.triggerConnectionAndProgramClose_0() : this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.LEAVEGAME, new java_util_JavaScriptVector())); } }, isLeaveGameInProgress_0: function () { return this.leavegameinprogress; }, postponeSkinLoading_0: function () { return this.getBooleanParameter_2("postpone.skinloading", !0) && !this.canLoadAssetsBeforeDeveloperLogo_0(); }, loadNextResources_0: function () { GT692.prototype.Log.i_1("loadNextResources"); if (!this.resourceLoadingFinished_0()) { do switch ((this.currentLoadingStageLoading++, this.currentLoadingStageLoading)) { case GT692.prototype.LOADINGSTAGE_INIT: this.loadInitScreen_0(); break; case GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN: this.loadCustomLoadingScreen_0(); break; case GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO: this.loadDeveloperLogo_0(); break; case GT692.prototype.LOADINGSTAGE_INTROVIDEO: this.loadIntroVideo_0(); break; case GT692.prototype.LOADINGSTAGE_INFOPAGES: this.loadInfoPages_0(); break; case GT692.prototype.LOADINGSTAGE_SPLASHSCREEN: this.loadSplashScreen_0(); break; case GT692.prototype.LOADINGSTAGE_GAMEASSETS: this.loadResources_0(); } while (!this.hasLoadingStage[this.currentLoadingStageLoading]); this.updateCurrentLoadingStageShown_0(); this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_INIT && (this.loadNextResources_0(), this.showNextLoadingStage_1(!1)); this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO && this.canLoadAssetsBeforeDeveloperLogo_0() && ((this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE] = !1), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE2] = !this.canLoadAssetsDuringDeveloperLogo_0()), this.loadNextResources_0()); this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_INTROVIDEO && this.loadNextResources_0(); !this.canLoadGameAssetsOnCustomLoadingScreen_0() || (this.currentLoadingStageLoading != GT692.prototype.LOADINGSTAGE_INFOPAGES && this.currentLoadingStageLoading != GT692.prototype.LOADINGSTAGE_SPLASHSCREEN) || ((this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INTROVIDEO_IDLE] = !1), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE2] = !1), this.loadNextResources_0()); this.resourceLoadingFinished_0() && this.startARMS_0(); } }, startARMS_0: function () { null != this.recordPlayer && this.recordPlayer.start_0(); null != this.recorder && this.recorder.setRecordTicks_1(!0); }, updateCurrentLoadingStageShown_0: function () { if (!(0 < this.failedresources) && -1 != this.currentLoadingStageShown && this.hasLoadingStage[this.currentLoadingStageShown]) switch (this.currentLoadingStageShown) { case GT692.prototype.LOADINGSTAGE_INTROVIDEO: if (GT1560.prototype.isAlive_1(this.cntIntroVideo)) { var a = this.cntIntroVideo.findDescendant_1(GT554.prototype.ID_INTROVIDEO_SKIP); a.setActive_1(this.hasNextLoadingStageFinshedLoading_0()); } break; case GT692.prototype.LOADINGSTAGE_SPLASHSCREEN: null != this.progressbar && this.progressbar.hide_1(!0); this.needTouchToRemoveSplashscreen_0() && (this.btnSplashScreen.setActive_1(this.hasNextLoadingStageFinshedLoading_0()), this.textSplashScreen.hide_1(!1), this.textSplashScreen.setText_1(this.skin.getString_1("touchsplashscreen"))); this.moveToNextLoadingStage_0(); this.needTouchToRemoveSplashscreen_0() || (this.isConnectionEstablished || this.connectionWasLost ? this.fadeAwaySplashscreen_1(0) : (this.textSplashScreen.hide_1(!1), this.textSplashScreen.setText_1(this.skin.getString_1("waitsplashscreen")))); break; case GT692.prototype.LOADINGSTAGE_INFOPAGES: (a = this.cntInfoPages.findDescendant_1(GT554.prototype.ID_INFOPAGES_CLOSE)), a.setActive_1(this.hasNextLoadingStageFinshedLoading_0()); } }, needTouchToRemoveSplashscreen_0: function () { return this.getBooleanParameter_2("button.touch2start.show", !1); }, moveToNextLoadingStage_0: function () { 0 < this.failedresources || (this.hasNextLoadingStageFinshedLoading_0() ? ((this.canShowNextLoadingStage = !1), (this.currentLoadingStageShown == GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO && this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN]) || (this.currentLoadingStageShown == GT692.prototype.LOADINGSTAGE_INIT && this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO]) || (this.currentLoadingStageShown == GT692.prototype.LOADINGSTAGE_SPLASHSCREEN && this.hasNextLoadingStageFinshedLoading_0()) ? (this.destroyCurrentLoadingStage_1(!0), this.showNextLoadingStage_1(!1)) : ((this.progressbar = null), this.fadeOutAndShowNextLoadingStage_0())) : ((this.canShowNextLoadingStage = !0), this.destroyCurrentLoadingStage_1(!1), GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.hide_1(!1), GT1560.prototype.isAlive_1(this.cntLoadingScreen) && this.cntLoadingScreen.hide_1(!1))); }, showNextLoadingStage_1: function (a) { do this.currentLoadingStageShown++; while (!this.hasLoadingStage[this.currentLoadingStageShown]); this.canShowNextLoadingStage = !1; switch (this.currentLoadingStageShown) { case GT692.prototype.LOADINGSTAGE_INIT: this.lobbyskin.containerInitScreen_0().create_2(this.layerMain, this.getSkinManager_0()); this.canShowNextLoadingStage = !0; break; case GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN: this.showCustomLoadingScreen_0(); break; case GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO: this.showDeveloperLogo_0(); break; case GT692.prototype.LOADINGSTAGE_INTROVIDEO: this.showIntroVideo_0(); break; case GT692.prototype.LOADINGSTAGE_SPLASHSCREEN: this.showSplashScreen_0(); break; case GT692.prototype.LOADINGSTAGE_INFOPAGES: this.showInfoPages_0(); break; case GT692.prototype.LOADINGSTAGE_GAMEASSETS: this.showGame_0(); } a ? this.fadeIn_0() : GT1560.prototype.isAlive_1(this.fadeLayer) && this.fadeLayer.setAlpha_1(0); }, destroyCurrentLoadingStage_1: function (a) { switch (this.currentLoadingStageShown) { case GT692.prototype.LOADINGSTAGE_INTROVIDEO: a && GT1560.prototype.destroyIfAlive_1(this.cntIntroVideo); break; case GT692.prototype.LOADINGSTAGE_INFOPAGES: GT1560.prototype.destroyIfAlive_1(this.cntInfoPages), null != this.introEventHandler && this.introEventHandler.destroy_0(); } }, hasNextLoadingStageFinshedLoading_0: function () { for (var a = this.currentLoadingStageShown + 1; a < this.currentLoadingStageLoading; a++) if (this.hasLoadingStage[a]) return !0; return !1; }, showCustomLoadingScreen_0: function () { GT692.prototype.Log.i_1("showCustomLoadingScreen"); this.cntLoadingScreen = this.lobbyskin.containerCustomLoadingScreen_0().create_2(this.layerMain, this.getSkinManager_0()); var a = this.cntLoadingScreen.findDescendant_1(GT554.prototype.ID_CUSTOMLOADINGSCREEN_PROGRESSBAR); null != a && (GT1560.prototype.destroyIfAlive_1(this.progressbar), a.init_1(this.getTimer_0()), a.setProgressPercentage_1(0), (this.progressbar = a)); this.offsetloaded = this.totalloaded; this.canShowNextLoadingStage = !0; }, showDeveloperLogo_0: function () { GT692.prototype.Log.i_1("showDeveloperLogo"); GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.hide_1(!0); GT1560.prototype.isAlive_1(this.cntLoadingScreen) && this.cntLoadingScreen.hide_1(!0); this.cntDeveloperLogo = this.lobbyskin.containerDeveloperLogo_0().create_2(this.layerMain, this.getSkinManager_0()); this.cntDeveloperLogo.initAndStart_3(this.getSkinManager_0(), new GT1509(this, "devlogofinished"), this.skipDevLogo); }, showIntroVideo_0: function () { GT692.prototype.Log.i_1("showIntroVideo"); GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.hide_1(!0); GT1560.prototype.isAlive_1(this.cntLoadingScreen) && this.cntLoadingScreen.hide_1(!0); GT1560.prototype.isAlive_1(this.cntDeveloperLogo) && this.cntDeveloperLogo.destroy_0(); this.cntIntroVideo = this.lobbyskin.containerIntroVideo_0().create_2(this.layerMain, this.getSkinManager_0()); var a = this.cntIntroVideo.findDescendant_1(GT554.prototype.ID_INTRO_VIDEO); a.addStartNotification_1(new GT1509(this, "introstarted")); a.addFinishNotification_1(new GT1509(this, "introfinished")); a.start_0(); this.cntIntroVideo.findDescendant_1(GT554.prototype.ID_INTROVIDEO_SKIP).setActive_1(this.hasNextLoadingStageFinshedLoading_0()); }, showSplashScreen_0: function () { GT692.prototype.Log.i_1("showSplashScreen"); GT1560.prototype.isAlive_1(this.cntLoadingScreen) && this.cntLoadingScreen.hide_1(!0); GT1560.prototype.isAlive_1(this.cntDeveloperLogo) && this.cntDeveloperLogo.destroy_0(); GT1560.prototype.destroyIfAlive_1(this.containerProgramState.getChild_1(0)); null != this.lobbyskin.containerSplashScreen_0() ? (this.containerSplashScreen = this.lobbyskin.containerSplashScreen_0().create_2(this.getTopContainer_0(), this.getSkinManager_0())) : (this.containerSplashScreen = this.lobbyskin.defaultSplashScreen_0().create_2(this.getTopContainer_0(), this.getSkinManager_0())); var a = this.containerSplashScreen.findDescendant_1(GT554.prototype.ID_PROGRESSBAR_SPLASHSCREEN); null != a && (GT1560.prototype.destroyIfAlive_1(this.progressbar), a.init_1(this.getTimer_0()), (this.progressbar = a)); this.offsetloaded = this.totalloaded; this.skinpercentage = 0; this.textSplashScreen = this.containerSplashScreen.findDescendant_1(GT554.prototype.ID_TEXT_SPLASHSCREEN); this.btnSplashScreen = this.containerSplashScreen.findDescendant_1(GT554.prototype.ACTION_SPLASHSCREEN); this.textSplashScreen.hide_1(!0); this.btnSplashScreen.setActive_1(!1); this.needTouchToRemoveSplashscreen_0() && this.getSoundPlayer_0().setActive_1(!1); this.hasNextLoadingStageFinshedLoading_0() && (this.textSplashScreen.hide_1(!1), this.textSplashScreen.setText_1(this.skin.getString_1("touchsplashscreen")), this.btnSplashScreen.setActive_1(!0), null != a && a.hide_1(!0), this.moveToNextLoadingStage_0(), this.needTouchToRemoveSplashscreen_0() || this.run_1("removesplashscreen")); }, showInfoPages_0: function () { GT1560.prototype.isAlive_1(this.cntDeveloperLogo) && this.cntDeveloperLogo.destroy_0(); GT692.prototype.Log.i_1("showInfoPages"); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_LOADING_PROGRESS, "100"); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_LOADINGPROGRESS); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(100)); GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, a.getMainTable_0()); GT1560.prototype.isAlive_1(this.progressbar) && this.progressbar.hide_1(!0); GT1560.prototype.isAlive_1(this.cntLoadingScreen) && this.cntLoadingScreen.hide_1(!0); this.cntInfoPages = this.lobbyskin.containerInfoPagesOverlay_1(this.lobbyskin.containerInfoPages_0()).create_2(this.layerMain, this.getSkinManager_0()); if (GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.getSkinManager_0().getDeviceType_0()) || "1".equals_1(this.getSkinManager_0().getParameter_1("mobile"))) (a = this.cntInfoPages.findDescendant_1(GT554.prototype.ID_INFOPAGES_PREV)), null != a && a.hide_1(!0), (a = this.cntInfoPages.findDescendant_1(GT554.prototype.ID_INFOPAGES_NEXT)), null != a && a.hide_1(!0); a = this.cntInfoPages.findDescendant_1(GT554.prototype.ID_INFOPAGES_CLOSE); if (GT1560.prototype.isAlive_1(a)) { var b = a.findDescendant_1(GT554.prototype.ID_INFOPAGES_LOADINGINDICATOR); GT1560.prototype.isAlive_1(b) && instanceOf(b, GT1373) && new GT415(this.getTimer_0(), b, 15 * Math.PI, 12e4, !0, !1).start_0(); a.setActive_1(this.hasNextLoadingStageFinshedLoading_0()); } this.introEventHandler = this.createIntroPagesEventHandler_5(this.getEventDispatcher_0(), this.cntInfoPages, this.getTimer_0(), new GT1509(this, "infopagetimeout"), this.lobbyskin.infoPagesTimeout_0()); this.introEventHandler.create_0(); a = this.cntInfoPages.findDescendant_1(GT554.prototype.ID_INFOPAGES_TOGGLE); GT1560.prototype.isAlive_1(a) && this.updateInfoPagesToggleButton_1(a); }, showGame_0: function () { GT692.prototype.Log.i_1("showGame"); this.canShowNextLoadingStage = !1; var a = this.skin.getString_2("buildtime", "unknown"), b = this.skin.getString_2("branchname", "unknown"), d = this.skin.getString_2("revision", "unknown"), e = this.skin.getString_2("sdkdir", "unknown"), f = this.skin.getString_2("changelogversion", "unknown"); "DATE".equals_1(a) || GT692.prototype.Log.log_1("Build: " + a); "BRANCHNAME".equals_1(b) || GT692.prototype.Log.log_1("Branch: " + b); "REVISION".equals_1(d) || GT692.prototype.Log.log_1("Revision: " + d); "SDKDIR".equals_1(e) || GT692.prototype.Log.log_1("SDK: " + e); "CHANGELOGVERSION".equals_1(f) || GT692.prototype.Log.log_1("Change log version: " + f); 0 < this.failedresources || (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_LOADING_PROGRESS, "100"), (a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_LOADINGPROGRESS)), a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(100)), GT1242.prototype.fireWrapperStateEvent_2(this.gameWrapperInterfaceCaller, a.getMainTable_0()), GT1560.prototype.destroyIfAlive_1(this.progressbar), (this.progressbar = null), GT1560.prototype.destroyIfAlive_1(this.cntLoadingScreen), (this.cntLoadingScreen = null), this.isConnectionEstablished || this.displayProgramState_2(this.skin.getString_1("connecting"), null), (this.fontMetricsToolTips = this.lobbyskin.fontTooltip_0().create_1(this.getSkinManager_0().getResourceManager_0())), this.createToolTipManager_4(this.layerMain, this.fontMetricsToolTips, this.skin.getInt_2("maxtooltipwidth", 200), this.isUiNeonEnabled_0()), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_CONNECTING), this.afterResourcesLoaded_0()); }, isUiNeonEnabled_0: function () { return !1; }, isUiNeonWrapperOnlyEnabled_0: function () { return !1; }, resourceLoadingFinished_0: function () { return this.currentLoadingStageLoading == GT692.prototype.LOADINGSTAGE_LAZYLOADEDASSETS; }, loadResources_0: function () { GT692.prototype.Log.i_1("load game resources"); if (null == this.skin) GT692.prototype.Log.log_1("Undefined skin"); else if ( ((this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_GAMEASSETS] = !0), (this.resourcesLoading = this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_LAZYLOADEDASSETS] = !0), this.lobbyskin.fontTooltip_0().load_1(this.getSkinManager_0().getResourceManager_0()), this.noLobbyMode) ) GT692.prototype.Log.i_1("do not load lobby-gfx"), this.cntDescriptorProgramState_0().load_1(this.getSkinManager_0()), this.lobbyskin.maintenanceInfo_0().load_1(this.getSkinManager_0()), this.lobbyskin.containerErrorScreen_0().load_1(this.getSkinManager_0()); else { this.soundLobby = [].createArray(10); this.lobbySoundsStarted = !1; null != this.lobbyskin.soundLobby_0() && (this.soundLobby[0] = this.getSkinManager_0().getResourceManager_0().startLoadSound_1(this.lobbyskin.soundLobby_0())); for (var a = 0; a < this.soundLobby.length; a++) { var b = "sound_lobby" + a; this.skin.hasParameter_1(b) && (this.soundLobby[a] = this.getSkinManager_0().getResourceManager_0().startLoadSound_1(this.skin.getString_1(b))); } this.lobbyskin.loadAll_1(this.getSkinManager_0()); } }, loadInitScreen_0: function () { null == this.lobbyskin.containerInitScreen_0() || this.canLoadAssetsBeforeDeveloperLogo_0() || (GT692.prototype.Log.i_1("loadInitScreen"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INIT] = !0), this.lobbyskin.containerInitScreen_0().load_1(this.getSkinManager_0())); }, loadCustomLoadingScreen_0: function () { null == this.lobbyskin.containerCustomLoadingScreen_0() || this.canLoadAssetsBeforeDeveloperLogo_0() ? this.postponeSkinLoading_0() && this.loadSkinDescriptions_0() : (GT692.prototype.Log.i_1("loadCustomLoadingScreen"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN] = !0), this.lobbyskin.containerCustomLoadingScreen_0().load_1(this.getSkinManager_0())); }, loadDeveloperLogo_0: function () { (this.skipDevLogo && this.canLoadAssetsBeforeDeveloperLogo_0()) || null == this.lobbyskin.containerDeveloperLogo_0() || (GT692.prototype.Log.i_1("loadDeveloperLogo"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO] = !0), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE] = !this.canLoadAssetsDuringDeveloperLogo_0()), this.lobbyskin.containerDeveloperLogo_0().load_1(this.getSkinManager_0())); }, canLoadAssetsDuringDeveloperLogo_0: function () { return this.getBooleanParameter_2("load.during.devlogo", !1); }, canLoadGameAssetsOnCustomLoadingScreen_0: function () { return this.getBooleanParameter_2("load.game.on.cls", !1); }, canLoadAssetsBeforeDeveloperLogo_0: function () { return this.getBooleanParameter_2("load.before.devlogo", !1); }, loadIntroVideo_0: function () { null != this.lobbyskin.containerIntroVideo_0() && (GT692.prototype.Log.i_1("loadIntroVideo"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INTROVIDEO] = !0), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INTROVIDEO_IDLE] = !0), this.lobbyskin.containerIntroVideo_0().load_1(this.getSkinManager_0())); }, loadSplashScreen_0: function () { if (!this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INFOPAGES] || this.getBooleanParameter_2("force.splashscreen", !1)) null != this.lobbyskin.containerSplashScreen_0() ? (GT692.prototype.Log.i_1("loadSplashScreen"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_SPLASHSCREEN] = !0), this.lobbyskin.containerSplashScreen_0().load_1(this.getSkinManager_0())) : this.getBooleanParameter_2("splashscreen", !1) && (GT692.prototype.Log.i_1("loadSplashScreen"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_SPLASHSCREEN] = !0), this.lobbyskin.defaultSplashScreen_0().load_1(this.getSkinManager_0())); }, loadInfoPages_0: function () { null == this.lobbyskin.containerInfoPages_0() || this.skipInfoPages || (GT692.prototype.Log.i_1("loadInfoPages"), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INFOPAGES] = !0), this.lobbyskin.containerInfoPagesOverlay_1(this.lobbyskin.containerInfoPages_0()).load_1(this.getSkinManager_0())); }, createCasinoLobbySkin_0: function () { return new GT554(); }, startLobbySounds_0: function () { if (null != this.soundLobby) { if (!this.lobbySoundsStarted) for (var a = 0; a < this.soundLobby.length; a++) null != this.soundLobby[a] && this.getSoundPlayer_0().startLooped_4( this.soundLobby[a], 0, this.skin.hasParameter_1("lobby" + a + "looprepeatend") ? this.skin.getDouble_1("lobby" + a + "looprepeatend") : this.lobbyskin.soundLobbyLoopEnd_0(), this.skin.hasParameter_1("lobby" + a + "looprepeatstart") ? this.skin.getDouble_1("lobby" + a + "looprepeatstart") : this.lobbyskin.soundLobbyLoopStart_0() ); this.lobbySoundsStarted = !0; } }, stopLobbySounds_0: function () { if (null != this.soundLobby) { if (this.lobbySoundsStarted) for (var a = 0; a < this.soundLobby.length; a++) null != this.soundLobby[a] && this.getSoundPlayer_0().stop_1(this.soundLobby[a]); this.lobbySoundsStarted = !1; } }, stopAllGameSounds_0: function () { this.getSoundPlayer_0().stopAll_1(100); }, showTextInfo_1: function (a) { null != this.textInfo && this.textInfo.isAlive_0() && this.textInfo.destroy_0(); var b = GT1560.prototype.isAlive_1(this.containerAboveGame) ? this.containerAboveGame : this.containerLobby; null != b && null != this.fontMetricsToolTips && ((this.textInfo = new GT1606(b, Math.div(b.getWidth_0(), 2), 0, GT1606.prototype.ALIGN_CENTER, a, this.fontMetricsToolTips, GT1634.prototype.yellow, 1, GT1634.prototype.red)), this.getTimer_0().triggerCallbackAfter_2(new GT714(this.textInfo), 2e3)); }, fullscreenModeChanged_0: function () { var a = this.getFullscreenMode_0(); GT1560.prototype.isAlive_1(this.btnFullscreen) && this.btnFullscreen.hide_1(a); GT1560.prototype.isAlive_1(this.btnWindow) && this.btnWindow.hide_1(!a); this.useAutoFullscreen = !1; }, appletSizeChanged_0: function () { this.isConnectionEstablished && (this.useAutoFullscreen = !1); }, keyPressed_3: function (a, b, d) { if (this.isSplashScreenAlive_0()) return !0; if (null == b || null == d) return !1; null != this.recorder && this.recorder.recordKeyPressed_2(b, d); GT1560.prototype.isAlive_1(this.inputTestPattern) || (this.inputTestPattern = null); if (null == this.inputTestPattern) { if (GT1677.prototype.equalsIgnoreCaseAZ_2(b, "t") && GT1560.prototype.isAlive_1(this.layerMain) && (0 <= d.indexOf_1("ctrl") || 0 <= d.indexOf_1("shift"))) return this.createCheatContainer_1(this.layerMain), this.connectionProblemSimulation && ((this.connectionProblemSimulation = !1), this.showTextInfo_1("Connection configuration OFF")), !0; } else { if (b.equals_1("enter")) return ( (b = this.inputTestPattern.getText_0().trim_0()), this.interpretInputPattern_1(b), this.cheatHistory.removeElement_1(b), this.cheatHistory.add_2(0, b), this.cheatHistory.size_0() > GT692.prototype.cheatHistorySize && this.cheatHistory.removeElementAt_1(this.cheatHistory.size_0() - 1), (this.cheatHistoryPosition = -1), this.inputTestPattern.destroy_0(), GT1560.prototype.destroyIfAlive_1(this.cheatContainer), !0 ); if (b.equals_1("esc")) return (this.cheatHistoryPosition = -1), this.inputTestPattern.destroy_0(), GT1560.prototype.destroyIfAlive_1(this.cheatContainer), !0; if (b.equals_1("up")) return this.handleCheatHistory_1(!0), !0; if (b.equals_1("down")) return this.handleCheatHistory_1(!1), !0; } if (b.equals_1("f7") && GT1650.prototype.isDebugMode_0()) return this.stopLobbySounds_0(), null != this.connection && this.connection.close_0(), !1; b.equals_1("f2") && GT1650.prototype.isDebugMode_0() && this.setPropertyImpl_2("balance", "11455"); b.equals_1("f3") && GT1650.prototype.isDebugMode_0() && this.setPropertyImpl_2("sound", "true"); b.equals_1("f4") && GT1650.prototype.isDebugMode_0() && this.setPropertyImpl_2("sound", "false"); b.equals_1("f8") && GT1650.prototype.isDebugMode_0() && ((a = new java_util_JavaScriptHashtable()), this.restart_2(a, !0)); if (!this.isCheatInputFieldAlive_0()) if (GT1677.prototype.equalsIgnoreCaseAZ_2(b, "d") && ("shift".equals_1(d) || "ctrl".equals_1(d)) && GT1650.prototype.isDebugMode_0()) (this.connectionProblemSimulation = !this.connectionProblemSimulation) ? this.showTextInfo_1("Connection configuration ON") : this.showTextInfo_1("Connection configuration OFF"); else if (this.connectionProblemSimulation && null != this.connection) return ( b.equals_1("right") && GT1650.prototype.isDebugMode_0() ? ((this.sendDelay += 500), this.connection.setSendDelay_1(this.sendDelay), this.showTextInfo_1("Send delay " + this.sendDelay)) : b.equals_1("left") && GT1650.prototype.isDebugMode_0() ? ((this.sendDelay -= 500), 0 > this.sendDelay && (this.sendDelay = 0), this.connection.setSendDelay_1(this.sendDelay), this.showTextInfo_1("Send delay " + this.sendDelay)) : b.equals_1("up") && GT1650.prototype.isDebugMode_0() ? ((this.receiveDelay += 500), this.connection.setReceiveDelay_1(this.receiveDelay), this.showTextInfo_1("Receive delay " + this.receiveDelay)) : b.equals_1("down") && GT1650.prototype.isDebugMode_0() ? ((this.receiveDelay -= 500), 0 > this.receiveDelay && (this.receiveDelay = 0), this.connection.setReceiveDelay_1(this.receiveDelay), this.showTextInfo_1("Receive delay " + this.receiveDelay)) : GT1677.prototype.equalsIgnoreCaseAZ_2(b, "s") && GT1650.prototype.isDebugMode_0() ? (this.connection.setDisconnectTrigger_2(!0, !1), this.showTextInfo_1("Disconnect at send")) : GT1677.prototype.equalsIgnoreCaseAZ_2(b, "r") && GT1650.prototype.isDebugMode_0() ? (this.connection.setDisconnectTrigger_2(!1, !0), this.showTextInfo_1("Disconnect at receive")) : GT1677.prototype.equalsIgnoreCaseAZ_2(b, "d") && GT1650.prototype.isDebugMode_0() && (this.connection.setDisconnectTrigger_2(!1, !1), this.showTextInfo_1("Disable disconnect triggers (both send & receive)")), !0 ); !this.isCheatInputFieldAlive_0() && GT1650.prototype.isDebugMode_0() && b.equals_1("B") && (d.equals_1("alt") || d.equals_1("shift")) && (this.showButtonShapes_2(this.getTopContainer_0(), !this.showingButtonShapes), (this.showingButtonShapes = !this.showingButtonShapes)); if (GT1650.prototype.isDebugMode_0() && b.equals_1("S") && d.equals_1("ctrl") && null != this.recorder) return this.recorder.recordScreenShot_1(this.getScreenShot_0()), !0; !this.isCheatInputFieldAlive_0() && GT1650.prototype.isDebugMode_0() && b.equals_1("B") && d.equals_1("ctrl") && (this.showTextBorders_2(this.getTopContainer_0(), !this.showingTextBorders), (this.showingTextBorders = !this.showingTextBorders)); !this.isCheatInputFieldAlive_0() && GT1650.prototype.isDebugMode_0() && b.equals_1("Z") && d.equals_1("ctrl") && (this.showDebugAreas_2(this.getTopContainer_0(), !this.showingDebugAreas), (this.showingDebugAreas = !this.showingDebugAreas)); return this.isCheatInputFieldAlive_0() && this.isARMSPlayback_0() ? !0 : !1; }, createCheatContainer_1: function (a) { var b = new GT696(this), d = 150, e = 70, f = 10; GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.getSkinManager_0().getDeviceType_0()) && ((d = 300), (e = 140), (f = 70)); this.cheatContainer = new GT1437(a); this.inputTestPattern = new GT1413( this.cheatContainer, Math.div(this.cheatContainer.getWidth_0() - 800, 2), Math.div(this.cheatContainer.getHeight_0(), 2), 800, 30, GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(100).create_1(this.getDefaultResourceManager_0()), GT1634.prototype.gray, GT1634.prototype.white ); this.inputTestPattern.setApplicationID_1(GT692.prototype.CHEAT_INPUT_FIELD_ID); a = GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(d).create_1(this.getDefaultResourceManager_0()); for (var g = 0; 2 > g; g++) { var k = new GT1559(this.cheatContainer, Math.div(this.cheatContainer.getWidth_0(), 2) - d - Math.div(f, 2) + g * (d + f), Math.div(this.cheatContainer.getHeight_0(), 2) - e - 2 * f, d, e); k.setApplicationID_1(0 == g ? GT692.prototype.CHEAT_INPUT_BUTTON_UP_ID : GT692.prototype.CHEAT_INPUT_BUTTON_DOWN_ID); var m = new GT1437(k); new GT1440(m, 0, 0, d, e, GT1634.prototype.black); new GT1440(m, 1, 1, d - 2, e - 2, GT1634.prototype.darkGray); new GT1490(m, 0, 0, d, e, 0 == g ? "PREV" : "NEXT", a, GT1634.prototype.white, GT1488.prototype.CENTER, GT1489.prototype.CENTER, 20); k.setChildForState_2(GT1236.prototype.MOUSEOVER, 0); k.setChildForState_2(GT1236.prototype.DEFAULT, 0); k.setChildForState_2(GT1236.prototype.INACTIVE, 0); k.setChildForState_2(GT1236.prototype.PRESSED, 0); k.addButtonListener_1(b); } }, handleCheatHistory_1: function (a) { 0 >= this.cheatHistory.size_0() || (-1 == this.cheatHistoryPosition && !a) || (this.cheatHistoryPosition == this.cheatHistory.size_0() - 1 && a) || (a ? this.cheatHistoryPosition++ : this.cheatHistoryPosition--, 0 > this.cheatHistoryPosition ? this.inputTestPattern.setText_1("") : this.inputTestPattern.setText_1(this.cheatHistory.elementAt_1(this.cheatHistoryPosition))); }, showTextBorders_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1449) ? e.showBorders_1(b) : instanceOf(e, GT1437) && this.showTextBorders_2(e, b); } }, showDebugAreas_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1440) || (e.showDebugArea_1(b), instanceOf(e, GT1437) && this.showDebugAreas_2(e, b)); } }, interpretInputPattern_1: function (a) { if (GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("ADDTICKETS ")) return this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SETDUMMYDBTICKETS, [a.substring_1("ADDTICKETS ".length_0())])), !0; if (GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("ADDSESSIONTICKETS ")) return this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.WINTICKETS, [a.substring_1("ADDSESSIONTICKETS ".length_0())])), !0; if (GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("REFRESHUSER")) return this.refreshUser_0(), !0; if (GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("ADDDUMMYPLAYERS")) { var b = GT1677.prototype.tokenize_3(a.substring_1("ADDDUMMYPLAYERS".length_0()), " ", !1); this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.ADDDUMMYPLAYERS, b)); } return GT1563.prototype.interpretInputPattern_1.call(this, a); }, refreshUser_0: function () { this.sendPacket_1([GT1122.prototype.REFRESHUSER]); }, keyReleased_2: function (a, b) {}, buttonDrop_1: function (a) { this.checkForAutomaticBannerRefresh_0(); }, buttonClick_1: function (a) { GT1563.prototype.buttonClick_1.call(this, a); this.checkForAutomaticBannerRefresh_0(); a.getApplicationID_0() == GT554.prototype.ACTION_QUITPROGRAM && (this.deleteLobbyGUI_0(), this.setFullscreenMode_1(!1), this.stopLobbySounds_0(), this.triggerConnectionAndProgramClose_0()); (a.getApplicationID_0() != GT554.prototype.ACTION_CLOSEAFTERKICK && a.getApplicationID_0() != GT554.prototype.ACTION_CLOSEAFTERKICK2) || this.buttonCloseClicked_0(); a.getApplicationID_0() == GT554.prototype.ACTION_RECONNECT && this.buttonReconnectClicked_0(); if (a.getApplicationID_0() == GT554.prototype.ACTION_ENTERTABLE) { if (!this.isSpinAllowed_0()) return; GT692.prototype.Log.i_1("ENTERTABLE: " + a.getApplicationData_0()); var b = this.tables.elementAt_1(a.getApplicationData_0().intValue_0()); this.lastEnteredTable = b; this.lastTableScrollValue = GT1560.prototype.isAlive_1(this.scrollBarTables) ? this.scrollBarTables.getValue_0() : 0; this.lastRoomScrollValue = GT1560.prototype.isAlive_1(this.scrollBarRooms) ? this.scrollBarRooms.getValue_0() : 0; this.lastDropDownSelection = GT1560.prototype.isAlive_1(this.dropDownFilter) ? this.dropDownFilter.getCurrentSelection_0() : 0; var d = this.getFullscreenMode_0(); this.useAutoFullscreen && (d || this.containerLobby.destroyChildren_0(), this.setFullscreenMode_1(!0)); this.useAutoFullscreen = !1; var e = new java_util_JavaScriptVector(); e.addElement_1(a.getApplicationData_0().toString()); this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.JOINGAME, e)); this.suppressLobbyUpdates = !0; if (this.getFullscreenMode_0() && !d) return; this.containerTables.enterTable_1(b); this.containerSubRooms.setAllButtonsActive_2(!1, !0); b = this.containerLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW); GT1560.prototype.isAlive_1(b) && b.setActive_1(!1); } a.getApplicationID_0() == GT554.prototype.ACTION_SPLASHSCREEN && (this.textSplashScreen.setText_1(this.skin.getString_1("waitsplashscreen")), this.fadeAwaySplashscreen_1(750)); a.getApplicationID_0() == GT554.prototype.ACTION_BTNACCOUNT && this.buttonAccountClicked_0(); a.getApplicationID_0() == GT554.prototype.ACTION_BTNHELP && this.buttonHelpClicked_0(); if (a.getApplicationID_0() == GT554.prototype.ACTION_SOUND_ON || a.getApplicationID_0() == GT554.prototype.ACTION_SOUND_OFF) this.toggleSoundActive_0(), this.updateSoundButtonState_0(); a.getApplicationID_0() == GT554.prototype.ACTION_BTNFULLSCREEN && (this.setFullscreenMode_1(!this.getFullscreenMode_0()), null != this.btnFullscreen && (this.btnFullscreen.hide_1(this.getFullscreenMode_0()), null != this.btnWindow && this.btnWindow.hide_1(!this.btnFullscreen.isHidden_0())), (this.useAutoFullscreen = !1)); a.getApplicationID_0() == GT554.prototype.ACTION_BTNASPECT && ((b = 1 == this.getAspectRatio_0()), this.setAspectRatio_1(b ? this.lobbyskin.layoutWideAspect_0() : 1), this.btnNormalAspect.hide_1(!b), this.btnWideAspect.hide_1(b)); if (a.getApplicationID_0() == GT554.prototype.ACTION_PLAYNOW) { if (!this.isSpinAllowed_0()) return; b = this.getFullscreenMode_0(); this.useAutoFullscreen && (b || this.containerLobby.destroyChildren_0(), this.setFullscreenMode_1(!0)); this.useAutoFullscreen = !1; this.sendPacket_1([GT1122.prototype.PLAYNOW]); this.suppressLobbyUpdates = !0; if (this.getFullscreenMode_0() && !b) return; a.setActive_1(!1); this.containerTables.setAllButtonsActive_1(!1); this.containerSubRooms.setAllButtonsActive_2(!1, !0); } if (a.getApplicationID_0() == GT554.prototype.ACTION_SELECTROOM) { if (!this.isSpinAllowed_0()) return; a.setActive_1(!1); this.switchToSubRoom_1(GT1672.prototype.stringToInt_1(a.getApplicationData_0())); } a.getApplicationID_0() == GT554.prototype.ID_INTROVIDEO_SKIP && ((this.canShowNextLoadingStage = !0), (this.hasLoadingStage[GT692.prototype.LOADINGSTAGE_INTROVIDEO_IDLE] = !1), this.notifyResourceLoaded_2(1, 1)); a.getApplicationID_0() == GT554.prototype.ID_INFOPAGES_TOGGLE && ((this.skipInfoPages = !this.skipInfoPages), this.updateInfoPagesToggleButton_1(a), this.storeParameter_2("infopages.skip", this.skipInfoPages ? "1" : "0")); }, updateInfoPagesToggleButton_1: function (a) { a.setChildForState_2(GT1236.prototype.INACTIVE, 0); this.skipInfoPages ? a.setChildForState_2(GT1236.prototype.DEFAULT, 1) : a.setChildForState_2(GT1236.prototype.DEFAULT, 0); a.finishButton_0(); }, fadeAwaySplashscreen_1: function (a) { GT1560.prototype.isAlive_1(this.fadeLayer) ? this.fadeLayer.reorder_1(!0) : (this.fadeLayer = new GT1440(this.getTopContainer_0(), GT1634.prototype.black)); var b = this.getBooleanParameter_2("loadingtransition.enabled", !0); this.fadeLayer.setAlpha_1(0); b = [[b ? 250 : 0, 0, 225]]; b = new GT1191(this.getTimer_0(), this.fadeLayer, !1, b); b.addFinishCallback_1(new GT1509(this, "removesplashscreen")); b.addFinishCallback_1(new GT714(this.fadeLayer)); a = new GT1129(this.getTimer_0(), a, !1); a.addFinishCallback_1(new GT660(b)); a.start_0(); }, switchToSubRoom_1: function (a) { this.isSpinAllowed_0() && (this.activateNonBlockingCommands_1(!1), (this.lastRoomScrollValue = null != this.scrollBarRooms ? this.scrollBarRooms.getValue_0() : 0), (this.lastTableScrollValue = 0), this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.SELECTSUBROOM, ["" + a])), this.containerTables.setAllButtonsActive_1(!1), (a = this.containerLobby.findDescendant_1(GT554.prototype.ACTION_PLAYNOW)), GT1560.prototype.isAlive_1(a) && a.setActive_1(!1), this.containerSubRooms.setAllButtonsActive_2(!1, !0)); }, buttonReconnectClicked_0: function () { if (this.connectionWasLost) { var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_RECONNECTREQUESTED); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); "1".equals_1(this.getParameter_1("freeSpinsMode")) || GT1569.prototype.reloadWebPageIOS5_0() || (this.destroyFatalErrorDialog_0(), this.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "startreconnect"), 100)); } }, buttonCloseClicked_0: function () { this.deleteLobbyGUI_0(); this.setFullscreenMode_1(!1); this.stopLobbySounds_0(); this.deleteGameGUI_0(); var a = "Closing..."; null != this.skin && (a = this.skin.getString_2("closing", a)); this.displayProgramState_2(a, null); this.setFullscreenMode_1(!1); this.urlAfterConnectionClose = this.getStringParameter_2("closeurl", this.getStringParameter_2("relativecloseurl", "")); this.openLink_2("controlframe", this.urlAfterConnectionClose); this.exitProgram_0(); }, buttonCopyToClipboardClicked_1: function (a) { var b = ""; null != a && null != a.getParent_0() && ((a = a.getParent_0().findDescendant_1(GT554.prototype.TEXT_ERRORMSG)), GT1560.prototype.isAlive_1(a) && instanceOf(a, GT1490) && (b = a.getText_0())); this.copyToClipboard_1(b); }, toggleSoundActive_0: function () { var a = !this.getSoundPlayer_0().isActive_0(); this.getSoundPlayer_0().setActive_1(a); this.storeParameter_2("issound", a ? "1" : "0"); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_SOUND, a ? GT697.prototype.VALUE_TRUE : GT697.prototype.VALUE_FALSE); }, storeParameter_2: function (a, b) { this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.STORECALLPARAMETER, [a, b])); }, requestUpdateAttributes_0: function () { this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.RELOADATTRIBUTES, [].createArray(0))); }, mouseWheelMoved_2: function (a, b) { GT1563.prototype.mouseWheelMoved_2.call(this, a, b); }, handleMouseWheelEvent_1: function (a) { a.getId_0() == GT1196.prototype.MOUSE_WHEEL && this.mouseWheelMoved_2(new GT1633(a.getX_0(), a.getY_0()), a.getWheelRotation_0()); return !1; }, wantCountPixel_0: function () { return ""; }, getTicketString_1: function (a) { var b = this.getPlayerAttribute_2("CURRENCY", ""), d = GT1672.prototype.stringToDouble_2(this.getPlayerAttribute_2("CURRENCYFACTOR", "100"), 100); return 1 == d ? this.getMoneyString_5(a, b, !1, !0, !0) : this.getMoneyString_5(a / (d / 100), b, !0, !1, !0); }, getCurrencyMoneyString_5: function (a, b, d, e, f) { return this.getMoneyString_5(a, b, 1 != d, e || 1 > d, f); }, getMoneyString_5: function (a, b, d, e, f) { var g = ""; f && 1 <= b.length_0() && (g = this.currencySymbols.getSymbol_1(b) + "" + this.skin.getString_1("cursymbolseperator")); b = GT1677.prototype.toLowerCaseAZ_1(this.getPlayerAttribute_2("CCODE", "")); b = this.getCommaSeperatorFor_1(b); f = this.skin.getString_1("thousandseperator"); return GT1677.prototype.formatMoneyString_6(a, d, e, g, b, f); }, getCommaSeperatorFor_1: function (a) { return a.equals_1("ch") || a.equals_1("li") || a.equals_1("mx") ? "." : this.skin.getString_1("commaseperator"); }, getPlayerAttribute_2: function (a, b) { if (null == this.playerAttributes) return b; var d = this.playerAttributes.get_1(a); return null == d ? b : d; }, isAdmin_0: function () { return this.getPlayerAttribute_2("RELIABILITY", "0").equals_1("10"); }, isDeepWalletPlayer_0: function () { return 48 != this.getPlayerAttribute_2("ISDEEPWALLET", "0").charAt_1(0); }, getRoomID_0: function () { return this.roomID; }, getRoomAttribute_2: function (a, b) { if (null == this.roomAttributes) return b; var d = this.roomAttributes.get_1(a); return null == d ? b : d; }, buttonAccountClicked_0: function () { this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_OPENSHOP, ""); this.setFullscreenMode_1(!1); var a = this.getStringParameter_2("payinurl", ""); "disabled".equals_1(a) || (null == a || 1 > a.length_0() ? this.openLink_2("controlframe", "open.asp?open_w=payin.htm") : this.openLink_2("controlframe", a)); }, buttonHelpClicked_0: function () { this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_OPENHELP, ""); this.setFullscreenMode_1(!1); var a = this.getStringParameter_2("helpurl", ""); "disabled".equals_1(a) || (null == a || 1 > a.length_0() ? this.openLink_2("controlframe", "open.asp?open_w=help_icons.htm") : this.openLink_2("controlframe", a)); }, startLoadImageIfExistsInSkin_1: function (a) { return null != this.skin && this.skin.hasParameter_1(a) ? this.startLoadImage_1(this.skin.getString_1(a)) : null; }, afterUpdateGameGUI_0: function () {}, updateMaxJackpotText_0: function () { var a = this.getPlayerAttribute_2("CURRENCY", ""), b = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100")); this.getJackpotCalculator_0(); var d = this.jackpotCalculator.getEffectiveMaxBet_0(), d = this.skin.getParameterString_2("jackpotlobbytext", this.getCurrencyMoneyString_5(d, a, b, !1, !0)); this.textJackpotMaxBetInfo.setText_1(d); d = this.jackpotCalculator.calculateJackpotWin_1(""); a = new GT414(this, a, b); GT692.prototype.Log.verbose && GT692.prototype.Log.v_1("new jackpotvalue: " + a.format_1(d)); null != this.jackpotReel ? this.jackpotReel.setJackpotValue_1(d) : ((b = new GT875(this.getTimer_0(), this.textJackpotMaxJackpotInfo, 20, null == this.oldjpanim || this.oldjpanim.getValue_0() > d ? 1e3 : 15e3)), b.setFormatter_1(a), b.init_2(null != this.oldjpanim ? this.oldjpanim.getValue_0() : 0, d), b.start_0(), null != this.oldjpanim && this.oldjpanim.kill_0(), (this.oldjpanim = b)); }, isWinningFullJackpotOnAllBets_0: function () { return !1; }, isConnected_0: function () { return this.isConnectionEstablished || null != this.recordPlayer; }, isCheatInputFieldAlive_0: function () { return GT1560.prototype.isAlive_1(this.inputTestPattern); }, setPropertyImpl_2: function (a, b) { GT1563.prototype.setPropertyImpl_2.call(this, a, b); GT1677.prototype.toUpperCaseAZ_1(a).equals_1(GT697.prototype.KEY_SOUND) && (GT1677.prototype.toUpperCaseAZ_1(b).equals_1("TRUE") && !this.getSoundPlayer_0().isActive_0() ? (this.toggleSoundActive_0(), GT1560.prototype.isAlive_1(this.containerLobby) && this.startLobbySounds_0(), this.updateSoundButtonState_0()) : GT1677.prototype.toUpperCaseAZ_1(b).equals_1("FALSE") && this.getSoundPlayer_0().isActive_0() && (this.toggleSoundActive_0(), this.updateSoundButtonState_0())); GT1677.prototype.equalsIgnoreCaseAZ_2(a, "MODAL_DIALOG") && (GT1677.prototype.equalsIgnoreCaseAZ_2(b, "OPENED") ? ((this.wrapperdialogopen = !0), this.notifyModalDialogOpened_1(GT554.prototype.ID_WRAPPERDIALOG)) : GT1677.prototype.equalsIgnoreCaseAZ_2(b, "CLOSED") && ((this.wrapperdialogopen = !1), this.notifyModalDialogClosed_1(GT554.prototype.ID_WRAPPERDIALOG))); GT1677.prototype.equalsIgnoreCaseAZ_2(a, "BUTTON_CLICK") && (GT1677.prototype.equalsIgnoreCaseAZ_2(b, "RECONNECT") ? this.buttonReconnectClicked_0() : GT1677.prototype.equalsIgnoreCaseAZ_2(b, "CLOSE") && this.buttonCloseClicked_0()); GT1677.prototype.equalsIgnoreCaseAZ_2(a, "INPUTPATTERN") && this.interpretInputPattern_1(b); (GT1677.prototype.equalsIgnoreCaseAZ_2(a, GT697.prototype.KEY_OVERRIDE_MAXBET) || GT1677.prototype.equalsIgnoreCaseAZ_2(a, GT697.prototype.KEY_OVERRIDE_MINBET)) && this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "ClientCasinoApplet.setPropertyImpl(" + a + "," + b + ")"); }, isWrapperShowingDialog_0: function () { return this.wrapperdialogopen; }, sendPropertyToWrapperIfChanged_2: function (a, b) { null == this.propertiessenttowrapper || b.equals_1(this.propertiessenttowrapper.get_1(a)) || (this.propertiessenttowrapper.put_2(a, b), this.notifyPropertyChangedImpl_2(a, b)); }, isErrorScreenOpen_0: function () { return this.hasOpenErrorScreen; }, startLoadImage_1: function (a) { if (null == a || 0 == a.length_0()) return this.getDefaultResourceManager_0().startLoadImage_4("", 0, 0, !1); a = GT1390.prototype.set_0().stringDescription_1(a); a.load_1(this.getDefaultResourceManager_0()); return a.create_1(this.getDefaultResourceManager_0()); }, startLoadFontMetrics_1: function (a) { a = GT1441.prototype.set_0().stringDescription_2(a, 1); a.load_1(this.getDefaultResourceManager_0()); return a.create_1(this.getDefaultResourceManager_0()); }, isSplashScreenAlive_0: function () { return GT1560.prototype.isAlive_1(this.containerSplashScreen); }, getSplashScreen_0: function () { return this.containerSplashScreen; }, hasLobbyImplemented_0: function () { return !0; }, preloadResources_0: function () { if (this.hasResourcesURLTexts_0() && !this.areResourcesURLTextsLoading_0()) { this.resourcesURLTextsLoading = !0; var a = this.skin.getString_1("translation_includes"), a = GT1678.prototype.deserializeList_1(GT1677.prototype.replaceAllInString_3(a, "'", '"')); this.textRequestHelpers = [].createArray(a.size_0()); for (var b = 0; b < a.size_0(); ++b) { this.textRequestHelpers[b] = null; var d = a.elementAt_1(b); if (null != d.get_1("package")) { var e = d.get_1("package"), f = ""; null != d.get_1("condition") && (f = d.get_1("condition")); this.checkSkinCondition_1(f) && ((this.textRequestHelpers[b] = new GT762(this)), this.textRequestHelpers[b].setURLRequest_2("" + this.resourcesURLTexts + "/" + this.resourcesLanguageTexts + "/?tags=" + e, 15e3)); } } for (b = 0; b < a.size_0(); ++b) null != this.textRequestHelpers[b] && this.textRequestHelpers[b].runURLRequest_0(); } else this.loadNextResources_0(); }, integrateURLTexts_1: function (a) { var b = GT1678.prototype.deserializeList_1(a); a = new java_util_JavaScriptVector(); if (null != b) { for (var d = 0; d < b.size_0(); ++d) { var e = b.elementAt_1(d); null != e.get_1("WKey") && (null == e.get_1("WMd") || e.get_1("WMd").trim_0().equals_1("") ? a.insertElementAt_2(e, 0) : a.addElement_1(e)); } for (d = 0; d < a.size_0(); ++d) { var e = a.elementAt_1(d), b = e.get_1("WKey"), f = e.get_1("ContentFormal"), g = e.get_1("ContentNonFormal"), k = ""; null != f && (f = this.replaceSpecialChars_2(this.getSkin_0().performSubstitution_1(f), this.resourcesLanguageTexts)); null != g && (g = this.replaceSpecialChars_2(this.getSkin_0().performSubstitution_1(g), this.resourcesLanguageTexts)); null != e.get_1("WMd") && (k = e.get_1("WMd")); this.checkSkinCondition_1(k) && (GT1677.prototype.equalsIgnoreCaseAZ_2(this.getParameter_1("polite"), "yes") ? null != f ? this.getSkin_0().overrideString_2(b, f) : null != g ? this.getSkin_0().overrideString_2(b, g) : this.getSkin_0().overrideString_2(b, "") : null != g ? this.getSkin_0().overrideString_2(b, g) : null != f ? this.getSkin_0().overrideString_2(b, f) : this.getSkin_0().overrideString_2(b, "")); } this.getSkinManager_0().setSkinDescription_1(this.getSkinManager_0().getSkinDescription_0()); this.setUseRightToLeftText_1(this.getSkinManager_0().isRTLLanguage_0()); } else GT692.prototype.Log.i_1("Error in web text data -> falling back to texts from file system."); }, hasResourcesURLTexts_0: function () { return null != this.resourcesURLTexts && !this.resourcesURLTexts.trim_0().equals_1("") && null != this.resourcesLanguageTexts && !this.resourcesLanguageTexts.trim_0().equals_1(""); }, areResourcesURLTextsLoading_0: function () { return this.resourcesURLTextsLoading; }, areResourcesLoading_0: function () { return this.resourcesLoading; }, replaceString_3: function (a, b, d) { return 0 > a.indexOf_1(b) ? a : GT1677.prototype.replaceAllInString_3(a, b, d); }, replaceSpecialChars_2: function (a, b) { null == b && (b = ""); for (var d = 0; d < GT692.prototype.specialReplaces.length; ++d) if (GT692.prototype.specialReplaces[d][0].trim_0().equals_1("") || GT1677.prototype.toLowerCaseAZ_1(GT692.prototype.specialReplaces[d][0].trim_0()).equals_1(GT1677.prototype.toLowerCaseAZ_1(b.trim_0()))) GT692.prototype.specialReplaces[d][1].equals_1("") || (a = this.replaceString_3(a, GT692.prototype.specialReplaces[d][1], GT692.prototype.specialReplaces[d][2])); return a; }, checkSkinCondition_1: function (a) { if (null == a || a.trim_0().equals_1("")) return !0; a = a.trim_0(); a.startsWith_1("#if") && (a = a.substring_1(3).trim_0()); var b = "", d = (b = ""), d = a.indexOf_1("=="), e = a.indexOf_1("!="), f = a.indexOf_1(">="); return 0 <= d ? ((b = a.substring_2(0, d).trim_0()), (b = b.startsWith_1("$") ? this.skin.getString_1(b.substring_1(1)) : this.getParameter_1(b)), (d = a.substring_1(d + 2).trim_0()), null == b && (b = ""), GT1677.prototype.equalsIgnoreCaseAZ_2(b, d)) : 0 <= e ? ((b = a.substring_2(0, e).trim_0()), (b = b.startsWith_1("$") ? this.skin.getString_1(b.substring_1(1)) : this.getParameter_1(b)), (d = a.substring_1(e + 2).trim_0()), !GT1677.prototype.equalsIgnoreCaseAZ_2(b, d)) : 0 <= f ? ((b = a.substring_2(0, f).trim_0()), (b = b.startsWith_1("$") ? this.skin.getString_1(b.substring_1(1)) : this.getParameter_1(b)), (d = a.substring_1(f + 2).trim_0()), 0 <= GT1677.prototype.toLowerCaseAZ_1(b).indexOf_1(GT1677.prototype.toLowerCaseAZ_1(d))) : !1; }, urlRequestHelperCompleted_1: function (a) { if (null != this.textRequestHelpers) { var b = !1; for (a = 0; a < this.textRequestHelpers.length; ++a) null == this.textRequestHelpers[a] || this.textRequestHelpers[a].isFinished_0() || (b = !0); if (!b) { b = !1; for (a = 0; a < this.textRequestHelpers.length; ++a) null != this.textRequestHelpers[a] && 200 != this.textRequestHelpers[a].getResponseCode_0() && (b = !0); if (b) for (GT692.prototype.Log.log_1("Web text requests FAILED (not all 200):"), a = 0; a < this.textRequestHelpers.length; ++a) null != this.textRequestHelpers[a] && GT692.prototype.Log.log_1(" entry " + a + ": " + this.textRequestHelpers[a].getResponseCode_0() + " <- " + this.textRequestHelpers[a].getRequest_0()); else for (GT692.prototype.Log.log_1("Web text requests SUCCEEDED (all 200)."), a = 0; a < this.textRequestHelpers.length; ++a) null != this.textRequestHelpers[a] && this.integrateURLTexts_1(this.textRequestHelpers[a].getResponse_0()); this.loadNextResources_0(); } } else GT692.prototype.Log.log_1("Web text request FAILED (NULL helpers, should not be possible)"), this.loadNextResources_0(); }, showButtonShapes_2: function (a, b) { for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1559) ? e.showClickableShape_1(b) : instanceOf(e, GT1437) && this.showButtonShapes_2(e, b); } }, mayLeaveActualGame_0: function () { return !this.isBlockingPackets_0(); }, getJackpotCalculator_0: function () { if (null != this.jackpotCalculator) return ( this.jackpotCalculator.setProgressive_2("", this.jackpotfactor), this.jackpotCalculator.setCurrencyFactor_1(GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100"))), this.jackpotCalculator ); var a = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100")), b = this.roomAttributes.get_1("MULTIPLIER"), b = this.createArrayFromString_1(b), d = this.roomAttributes.get_1("LINES"), d = this.createArrayFromString_1(d), e = this.roomAttributes.get_1("POSSIBLELINEBET"), e = this.createArrayFromString_1(e), f = this.roomAttributes.get_1("POSSIBLELINES"), f = this.createArrayFromString_1(f), g = 1; null != this.roomAttributes.get_1("INDEPENDENTLINESANDBETS") && (g = GT1672.prototype.stringToInt_1(this.roomAttributes.get_1("INDEPENDENTLINESANDBETS"))); var k = !1; null != this.roomAttributes.get_1("FORCEINTEGERWINSANDBETS") && (k = GT1672.prototype.stringToBoolean_1(this.roomAttributes.get_1("FORCEINTEGERWINSANDBETS"))); var m = GT1672.prototype.stringToInt_1(this.roomAttributes.get_1("LINEWINSGGT")), n = this.roomAttributes.get_1("JACKPOTWINS"), p = this.playerAttributes.get_1("ISSHOWJACKPOTCONTRIBUTION"), q = this.playerAttributes.get_1("JACKPOTFEEPERCENTAGE"), r = !1, t = 0; null != q && ((t = GT1672.prototype.stringToDouble_1(q)), (r = null != p && !p.equals_1("0"))); p = this.jackpotminbet; q = this.jackpotmaxbet; if (null == d || null == b || null == n) this.jackpotCalculator = new GT294( this.getJackpotMaxBet_0(), this.getJackpotMinBet_0(), this.isWinningFullJackpotOnAllBets_0(), this.getJackpotMaxBet_Native_0(), a, this.getJackpotBaseWin_0(), this.getJackpotFactor_0() ); else { this.jackpotCalculator = new GT410(b, d, f, e, g, p, q, a, k, m, n, t, r); this.jackpotCalculator.setProgressive_2("", this.jackpotfactor); if (null != this.jackpot_factors) for (a = this.jackpot_factors.keys_0(); a.hasMoreElements_0(); ) (b = a.nextElement_0()), this.jackpotCalculator.setProgressive_2(b, this.jackpot_factors.get_1(b).doubleValue_0()); this.jackpotCalculator.generateJackpotValueTexts_1(this); } return this.jackpotCalculator; }, createArrayFromString_1: function (a) { if (null == a) return null; a = GT1677.prototype.tokenize_2(a, ","); for (var b = [].createArray(a.length).init(0), d = 0; d < a.length; d++) b[d] = GT1672.prototype.stringToInt_1(a[d]); return b; }, getJackpotFactorByName_1: function (a) { if (null == a) return 0; a = this.jackpot_factors.get_1(a); return null == a ? 0 : a.doubleValue_0(); }, createContainerWatcherInfo_1: function (a) { return null; }, showReconnectMessage_0: function () { GT692.prototype.Log.t_0(); GT1560.prototype.destroyIfAlive_1(this.containerReconnectInfo); this.containerReconnectInfo = new GT1437(this.layerMain); this.layerMain.setModalInputReceiver_1(this.containerReconnectInfo); var a = this.skin.getString_1("alttext_reconnecting"); this.createContainerWatcherInfo_1(this.containerReconnectInfo).setCacheAsBitmap_2(!0, null); this.containerReconnectInfo.findDescendant_1(GT307.prototype.TEXT_WATCHERINFO).setText_1(a); }, stopShowReconnectMessage_0: function () { GT1560.prototype.destroyIfAlive_1(this.containerReconnectInfo); }, setGameWrapperInterface_1: function (a) { null != a && ((this.gameWrapperInterface = a), this.getBooleanParameter_2("disablewrapperprotocolv2", !1) || (this.gameWrapperInterfaceCaller = new GT511(this.gameWrapperInterface))); }, getGameWrapperInterfaceCaller_0: function () { return this.gameWrapperInterfaceCaller; }, getGameWrapperInterface_0: function () { return this.gameWrapperInterface; }, setRestoreSoundAtReconnect_1: function (a) { this.restoreSoundAtReconnect = a; }, isRestoreSoundAtReconnect_0: function () { return this.restoreSoundAtReconnect; }, }, "GT692", [GT1069, GT1015, GT1482, GT756] ), GT802 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, playbackFinished_2: function (a, b) { this.applet.exitProgram_0(); return !0; }, recordFinished_0: function () { GT692.prototype.LogARMS.log_1("ARMS_STOP-Exit because recorder finished"); this.applet.doStop_0(); this.applet.exitByRecorder_0(); return !0; }, }, "GT802", [GT1017] ), GT696 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, mouseEnter_1: function (a) {}, mouseLeave_1: function (a) {}, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) { a.getApplicationID_0() == GT692.prototype.CHEAT_INPUT_BUTTON_UP_ID ? this.applet.handleCheatHistory_1(!0) : a.getApplicationID_0() == GT692.prototype.CHEAT_INPUT_BUTTON_DOWN_ID && this.applet.handleCheatHistory_1(!1); }, }, "GT696", [GT1066] ); GT692.prototype.isCompatibleVersion_4 = function (a, b, d, e) { if (!a.equals_1(d)) return !1; a = b.indexOf_1(46); if (0 > a) return !1; a = b.indexOf_2(46, a + 1); if (0 > a) return !1; a += 1; return b.length_0() < a || e.length_0() < a ? !1 : b.substring_2(0, a).equals_1(e.substring_2(0, a)); }; GT692.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); GT692.prototype.LogARMS = GT1650.prototype.getLogFlags_1("dev.arms"); GT692.prototype.FEATURE_SUPPORT_APPLET_PARAMETER = "featuresupport"; GT692.prototype.FS_NOT_AVAILABLE = "NA"; GT692.prototype.FS_LOW_PERFORMANCE = "LP"; GT692.prototype.FS_AVAILABLE = "OK"; GT692.prototype.FS_FEATURE_PARTICLES = "PARTICLES"; GT692.prototype.FS_FEATURE_FILTERS = "FILTERS"; GT692.prototype.LOADINGSTAGE_INIT = 0; GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO = 1; GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE = 2; GT692.prototype.LOADINGSTAGE_CUSTOMLOADINGSCREEN = 3; GT692.prototype.LOADINGSTAGE_INTROVIDEO = 4; GT692.prototype.LOADINGSTAGE_INFOPAGES = 5; GT692.prototype.LOADINGSTAGE_SPLASHSCREEN = 6; GT692.prototype.LOADINGSTAGE_DEVELOPERLOGO_IDLE2 = 7; GT692.prototype.LOADINGSTAGE_INTROVIDEO_IDLE = 8; GT692.prototype.LOADINGSTAGE_GAMEASSETS = 9; GT692.prototype.LOADINGSTAGE_LAZYLOADEDASSETS = 10; GT692.prototype.versionTableManager = "2.5.5"; GT692.prototype.RESOURCEPERCENTAGEFORSKINFILE = 4; GT692.prototype.TEXT_PROGRAMSTATE_LINE1 = GT1677.prototype.generateID_0(); GT692.prototype.TEXT_PROGRAMSTATE_LINE2 = GT1677.prototype.generateID_0(); GT692.prototype.CHEAT_INPUT_FIELD_ID = GT1677.prototype.generateID_0(); GT692.prototype.CHEAT_INPUT_BUTTON_UP_ID = GT1677.prototype.generateID_0(); GT692.prototype.CHEAT_INPUT_BUTTON_DOWN_ID = GT1677.prototype.generateID_0(); GT692.prototype.ERR_LOGINFAILED = -1; GT692.prototype.ERR_KICK = -2; GT692.prototype.specialReplaces = [ ["", "\ufffd?", "-"], ["", "\u2011", "-"], ["", "\u2012", "-"], ["", "\u2013", "-"], ["", "\u2014", "-"], ["", "\u2015", "-"], ["", "\u2024", "."], ["", "\u2025", ".."], ["", "\u2026", "..."], ["", "\u2027", "."], ["", "\u2032", "'"], ["", "\u2033", "''"], ["", "\u2034", "'''"], ["", "\u2035", "'"], ["", "\u2036", "''"], ["", "\u2037", "'''"], ["", "\u2039", "<"], ["", "\u203a", ">"], ["", "\u203c", "!!"], ["", "\ufffd?\ufffd", "-"], ["", "\ufffd?\ufffd", "/"], ["", "\ufffd?\ufffd", "??"], ["", "\ufffd?\ufffd", "?!"], ["", "\ufffd?\ufffd", "!?"], ["", "\ufffd?\ufffd", "*"], ["", "\ufffd??", ";"], ["", "\ufffd?\ufffd", "%"], ["", "\ufffd?\ufffd", "~"], ["", "\ufffd?\ufffd", "''''"], ["", "\ufffd?\ufffd", ":"], ["de", "#,", "\u201e"], ["de", "#'", "\u201c"], ["en", "#,", "\u2018"], ["en", "#'", "\u2019"], ["en-us", "#,", "\u201c"], ["en-us", "#'", "\ufffd?"], ["fr", "#, ", "\u00ab\u00a0"], ["fr", " #'", "\u00a0\u00bb"], ["fr", "#,", "\u00ab\u00a0"], ["fr", "#'", "\u00a0\u00bb"], ["it", "#,", "\u00ab"], ["it", "#'", "\u00bb"], ["es", "#,", "\u00ab"], ["es", "#'", "\u00bb"], ["es-la", "#,", "\u201c"], ["es-la", "#'", "\ufffd?"], ["pt", "#,", "\u00ab"], ["pt", "#'", "\u00bb"], ["pt-br", "#,", "\u201c"], ["pt-br", "#'", "\ufffd?"], ["rm", "#,", "\u00ab"], ["rm", "#'", "\u00bb"], ["nl", "#,", "\u2018"], ["nl", "#'", "\u2019"], ["da", "#,", "\u00bb"], ["da", "#'", "\u00ab"], ["no", "#,", "\u00ab"], ["no", "#'", "\u00bb"], ["sv", "#,", "\ufffd?"], ["sv", "#'", "\ufffd?"], ["fi", "#,", "\ufffd?"], ["fi", "#'", "\ufffd?"], ["is", "#,", "\u201e"], ["is", "#'", "\u201c"], ["sl", "#,", "\u201e"], ["sl", "#'", "\u201c"], ["hr", "#,", "\u201e"], ["hr", "#'", "\ufffd?"], ["sr", "#,", "\u201e"], ["sr", "#'", "\ufffd?"], ["hy", "#,", "\u00ab"], ["hy", "#'", "\u00bb"], ["mk", "#,", "\u201e"], ["mk", "#'", "\u201c"], ["sq", "#,", "\u201e"], ["sq", "#'", "\u201c"], ["hu", "#,", "\u201e"], ["hu", "#'", "\ufffd?"], ["cs", "#,", "\u201e"], ["cs", "#'", "\u201c"], ["sk", "#,", "\u201e"], ["sk", "#'", "\u201c"], ["pl", "#,", "\u201e"], ["pl", "#'", "\ufffd?"], ["ro", "#,", "\u201e"], ["ro", "#'", "\ufffd?"], ["bg", "#,", "\u201e"], ["bg", "#'", "\u201c"], ["lv", "#,", "\u00ab"], ["lv", "#'", "\u00bb"], ["lt", "#,", "\u201e"], ["lt", "#'", "\u201c"], ["et", "#,", "\u201e"], ["et", "#'", "\u201c"], ["ru", "#,", "\u00ab"], ["ru", "#'", "\u00bb"], ["ka", "#,", "\u201e"], ["ka", "#'", "\u201c"], ["el", "#,", "\u00ab"], ["el", "#'", "\u00bb"], ["tr", "#,", "\u201c"], ["tr", "#'", "\ufffd?"], ["ar", "#,", "\u201c"], ["ar", "#'", "\ufffd?"], ["ar-lb", "#,", "\u201c"], ["ar-lb", "#'", "\ufffd?"], ["ar-eg", "#,", "\u201c"], ["ar-eg", "#'", "\ufffd?"], ]; GT692.prototype.cheatHistorySize = 100; GT802.prototype.LogARMS = GT1650.prototype.getLogFlags_1("dev.arms"); var GT334 = GT692.extend( { initialConstructor_0: function () { this.cntSessionSummary = this.txtAdminInfo = this.sliderReplay = this.buttonCloseReplay = this.buttonForward = this.buttonRewind = this.buttonPlay = this.portraitmodeOverlay = this.buttonCloseContextMenu = this.buttonOpenContextMenu = this.gamemenuext = this.gamemenucnt = null; this.sessioncurrencyfactor = this.sessiontickets = 0; this.sessioncurrencycode = this.sessioncurrency = null; this.exceededMaximumRoundWin = this.isPayinAllowed = this.isDeepwalletSession = this.hasopensession = !1; this.maximumRoundWin = null; this.lastpayouttickets = this.maxRCinterval = 0; this.lastpayoutcurrency = null; this.totalmoneywon = this.totalbetsplaced = this.totalsecondsplayed = this.lastpayoutcurrencyfactor = 0; this.roundnumber = null; this.realityCheckIntervalRounds = this.realityCheckIntervalMinutes = this.roundsPlayedSoFar = this.timeOfNextRealityCheck = 0; this.fundserror = this.buysent = this.showRealityCheckDialogOnReconnect = this.showRCSettingsOnReconnect = this.isRCRoundsDialogOpen = this.isRCTimeDialogOpen = this.userealitycheck = !1; this.overrideMinBet = this.overrideMaxBet = this.totalbuyin = this.maxbuyintotal = this.minbuyin = this.maxbet = this.minbet = this.ticketsatbuysent = 0; this.ignoreOverrideMinbet = this.ignoreOverrideMaxbet = !1; this.entityParticipationId = this.entitySessionId = null; this.hasopenround = !1; this.limit_currentvalue = this.limit_amount = this.limit_periodid = this.limit_typeid = 0; this.limit_cancontinue = !1; this.dbMessage = this.dbError = null; this.estimatedWin = this.currentReplayStep = 0; this.serverrequeststiminginfo = !1; this.txtReplayTimestamp = this.txtReplayInfo = this.sessionExpiresCallback = this.lastPayinTimeOutCallback = this.lastSessionIdleCallback = this.lastRoundIdleCallback = this.disableGamblingDialogContainer = this.apSettingsDialog = this.rcSettingsDialog = this.sessionSettingsDialog = this.payInDialog = this.cntReplayDialog = this.containerDialogs = this.containerClientVersionInfo = this.containerServerTimeout = this.containerWatcherInfo = this.containerRealityCheck = null; this.ismusicactive = !1; this.casinoBaseCustomization = this.gameskin = null; this.dataOnTheWay_inReplay = this.dataOnTheWay = !1; this.lastRequestSent = this.timeOfLastSendPacket = 0; this.timeoutChecker = null; this.roundTripDelayForPreviousPacket = 0; this.forceRealityCheck = this.didShowRealityCheckBeforeLeaving = this.didShowPayinDialog = !1; this.appmeasurement = null; this.isblocking = !1; this.impDetector = this.clientVersionInfoAnimatorHandler = null; this.timeLeft = this.lastRequestCounterSaveTime = this.requestCounter = this.winsSinceGameStart = this.betsSinceGameStart = this.timeOfSessionStart = this.lastSendImpatienceAttempt = this.lastSentImpatienceCount = 0; this.showBtnRCAccountHistory = this.needToShowResponsibleGamingInfo = this.needToShowSessionExpiresCreditMessageAfterDialog = this.needToShowSessionExpiresCreditMessageAfterBlocking = this.alreadyShowedSessionExpiresCreditMessage = this.needToShowSessionExpiresTimeMessageAfterDialog = this.needToShowSessionExpiresTimeMessageAfterBlocking = this.alreadyShowedSessionExpiresTimeMessage = this.needToShowSessionExpiresMessage = !1; this.deviceScreen = this.sessionTimeEvent = this.updateTimeCallback = this.rcCallback = this.skinConfig = null; this.layoutSwitchingInProgress = this.layoutSwitchingPending = !1; this.layoutSwitchingInProgressText = null; GT692.prototype.initialConstructor_0.call(this); this.overrideMinBet = this.overrideMaxBet = -1; this.ignoreOverrideMinbet = this.ignoreOverrideMaxbet = !1; this.rcCallback = new GT1509(this, "realitycheck"); this.showRealityCheckDialogOnReconnect = this.showRCSettingsOnReconnect = !1; this.updateTimeCallback = new GT1509(this, "updatetime"); this.sessionTimeEvent = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_SESSIONTIME); }, doStart_0: function () { this.deviceScreen = new GT968(this); this.deviceScreen.setOrientation_1(null == this.getParameter_1("orientation") ? GT1371.prototype.ORIENTATION_LANDSCAPE : GT1672.prototype.stringToInt_1(this.getParameter_1("orientation"))); this.deviceScreen.setOrientationSensorManager_1(this.getOrientationSensorManager_0()); GT692.prototype.doStart_0.call(this); this.getConnection_0().addPacketWatcher_1(this); this.ismusicactive = this.getBooleanParameter_2("ismusicactive", !0); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_MUSIC, this.isMusicActive_0() ? GT697.prototype.VALUE_TRUE : GT697.prototype.VALUE_FALSE); 0 == this.realityCheckIntervalMinutes && (this.realityCheckIntervalMinutes = this.getIntParameter_2("realitycheckintervalminutes", 0) * GT334.prototype.MIN); 0 == this.realityCheckIntervalRounds && (this.realityCheckIntervalRounds = this.getIntParameter_2("realitycheckintervalrounds", 0)); this.userealitycheck = this.getBooleanParameter_2("realitycheck", !0); this.forceRealityCheck = this.getBooleanParameter_2("forcerealitycheck", !1); this.timeoutChecker = new GT224(this); this.didShowRealityCheckBeforeLeaving = this.didShowPayinDialog = !1; this.gameskin = this.createCasinoGameOverlaySkin_0(); this.addGameOverlayDecorators_1(this.gameskin); this.casinoBaseCustomization = this.createCasinoBaseCustomization_0(); instanceOf(this.casinoBaseCustomization, GT207) && this.casinoBaseCustomization.setApplet_1(this); var a = this.getEventDispatcher_0(); null != a && (a.registerHandlerForMultipleEvents_2([GT1446.prototype.TOGGLE_MENU, GT1446.prototype.BACK], new GT108(this)), a.registerHandler_2(GT1371.prototype.SCREENSIZE_CHANGED, new GT48(this))); this.appmeasurement = new GT553(this); this.impDetector = new GT688(this); this.lastSentImpatienceCount = -1; this.roundTripDelayForPreviousPacket = 1; this.requestCounter = 0; this.lastRequestCounterSaveTime = this.currentTimeMillis_0(); this.lastSendImpatienceAttempt = this.currentTimeMillis_0(); this.layoutSwitchingInProgress && (this.layoutSwitchingInProgressText = new GT1606( this.getTopContainer_0(), Math.div(this.getTopContainer_0().getWidth_0(), 2), Math.div(this.getTopContainer_0().getHeight_0(), 2), 0, GT1606.prototype.ALIGN_CENTER, this.getSkinManager_0().getText_1("${neon_switch_layout_wait}"), this.getSkinManager_0().getResourceManager_0().getFont_6(GT1393.prototype.ARIAL.name_0(), !0, !1, 0, 300, 0), GT1634.prototype.white )); }, resetGameState_0: function () { GT692.prototype.resetGameState_0.call(this); this.estimatedWin = this.sessiontickets = 0; this.dataOnTheWay_inReplay = this.dataOnTheWay = this.serverrequeststiminginfo = !1; this.sessioncurrencyfactor = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100.0")); this.sessioncurrency = this.getPlayerAttribute_2("CURRENCY", ""); this.sessioncurrencycode = ""; this.isblocking = this.exceededMaximumRoundWin = this.didShowRealityCheckBeforeLeaving = this.buysent = this.didShowPayinDialog = !1; this.timeLeft = this.timeOfSessionStart = -1; this.needToShowResponsibleGamingInfo = this.needToShowSessionExpiresMessage = this.needToShowSessionExpiresCreditMessageAfterDialog = this.needToShowSessionExpiresCreditMessageAfterBlocking = this.alreadyShowedSessionExpiresCreditMessage = this.needToShowSessionExpiresTimeMessageAfterDialog = this.needToShowSessionExpiresTimeMessageAfterBlocking = this.alreadyShowedSessionExpiresTimeMessage = !1; this.lastRequestSent = -1; this.roundsPlayedSoFar = this.totalmoneywon = this.totalbetsplaced = this.winsSinceGameStart = this.betsSinceGameStart = this.totalbuyin = 0; }, hasSkinId_1: function (a) { return this.getSkinManager_0().hasSkinId_1(a); }, getWaitingForServerResponseTimeout_0: function () { return 5e3; }, doStop_0: function () { null != this.appmeasurement && (this.appmeasurement.close_0(), (this.appmeasurement = null)); null != this.impDetector && (this.impDetector.stop_0(), (this.impDetector = null)); this.saveRequestCounter_0(); GT692.prototype.doStop_0.call(this); this.disableGamblingDialogContainer = this.payInDialog = this.gamemenuext = this.gamemenucnt = null; }, getAppletParametersThatShouldBeRecorded_0: function () { var a = GT692.prototype.getAppletParametersThatShouldBeRecorded_0.call(this); this.addParameterIfNotNull_2(a, "realitycheckintervalminutes"); this.addParameterIfNotNull_2(a, "realitycheckintervalrounds"); this.addParameterIfNotNull_2(a, "showrealitycheckbeforeleaving"); this.addParameterIfNotNull_2(a, "realitycheck"); this.addParameterIfNotNull_2(a, "ismusicactive"); return a; }, getSessionTickets_0: function () { return this.sessiontickets; }, getSessionTicketsInt_0: function () { return this.double2Int_1(this.sessiontickets); }, getSessionCurrencyFactor_0: function () { return this.sessioncurrencyfactor; }, getPlayerCurrencyFactor_0: function () { return GT1672.prototype.stringToDouble_2(this.getPlayerAttribute_2("CURRENCYFACTOR", "100"), 100); }, getSessionCurrency_0: function () { return this.sessioncurrency; }, getLastPayoutTickets_0: function () { return this.lastpayouttickets; }, getRoundNumber_0: function () { return null == this.roundnumber ? "" : this.roundnumber; }, sendReqPayIn_1: function (a) { this.buysent = !0; this.ticketsatbuysent = this.sessiontickets; this.sendPacket_1(GT1388.prototype.composePacket_2(GT1122.prototype.PAYIN, [GT1672.prototype.doubleToStringRounded_1(a)])); }, didSendPayInRequest_0: function () { return this.buysent; }, buttonClick_1: function (a) { a.getApplicationID_0() == GT307.prototype.ACTION_KEEPPLAYING && this.buttonKeepPlayingClicked_0(); a.getApplicationID_0() == GT307.prototype.ACTION_STOPGAME && ((this.isblocking = !1), this.containerRealityCheck.destroyChildren_0(), this.layerMain.setModalInputReceiver_1(null), !this.showRealityCheckBeforeLeaving_0() || this.didShowRealityCheckBeforeLeaving || this.isSpectator_0() || this.hasReplayParameter_0() ? (this.deleteGameGUI_0(), this.requestLeaveGame_0()) : ((this.didShowRealityCheckBeforeLeaving = !0), this.displayRealityCheckDialog_6( this.containerRealityCheck, this.gameskin.containerRealityCheckDialogLeavingGame_0(), Math.div(this.currentTimeMillis_0() - this.timeOfSessionStart, GT334.prototype.SEC), this.betsSinceGameStart, this.winsSinceGameStart, !0 ) && (null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(this.containerRealityCheck.getChild_1(0).getApplicationID_0())))); a.getApplicationID_0() == GT307.prototype.ACTION_TOGGLEREALITYCHECK && ((this.userealitycheck = !this.userealitycheck), this.updateRealityCheckToggleButton_1(a), this.storeParameter_2("realitycheck", this.userealitycheck ? "1" : "0")); if (a.getApplicationID_0() == GT307.prototype.ACTION_BUYTICKETS) { if (!this.isSpinAllowed_0()) return; this.payInDialog.isMaxValueSelected_0() && this.getAppMeasurementClient_0().memorizeDidPayinFullStake_0(); this.sendReqPayIn_1(this.payInDialog.getSelectedValue_0()); this.payInDialog.update_0(); } a.getApplicationID_0() == GT307.prototype.ACTION_CLOSEPAYINDIALOG1 && this.closePayInDialog_0(); a.getApplicationID_0() == GT307.prototype.ACTION_CLOSEAPSETTINGS && (this.apSettingsDialog.reset_0(), this.closeAPSettingsDialog_0()); a.getApplicationID_0() == GT307.prototype.ACTION_CLOSEPAYINDIALOG2 && (GT334.prototype.Log.v_1("btton closepayin-pressed"), this.closePayInDialog_0(), this.deleteGameGUI_0(), this.requestLeaveGame_0()); if (a.getApplicationID_0() == GT307.prototype.ACTION_PAYINACCOUNT) { if (!this.isSpinAllowed_0()) return; this.buttonAccountClicked_0(); } if (a.getApplicationID_0() == GT307.prototype.ACTION_PAYINACCOUNT2) { if (!this.isSpinAllowed_0()) return; this.buttonAccountClicked_0(); } (a.getApplicationID_0() != GT307.prototype.ACTION_SOUNDON && a.getApplicationID_0() != GT307.prototype.ACTION_SOUNDOFF) || this.buttonSoundClicked_0(); (a.getApplicationID_0() != GT307.prototype.ACTION_MUSICON && a.getApplicationID_0() != GT307.prototype.ACTION_MUSICOFF) || this.buttonMusicClicked_0(); if (a.getApplicationID_0() == GT307.prototype.ACTION_OPENREPLAY) { if (!this.isSpinAllowed_0()) return; this.isReplayDialogOpen_0() ? this.closeReplayDialog_0() : (this.isAnyModalDialogOpen_0() && this.buttonKeepPlayingClicked_0(), (this.dataOnTheWay_inReplay = !0), this.sendReqGetRoundHistory_0(), this.openReplayDialog_0(), this.gamemenucnt.updateBalance_0(), GT1560.prototype.isAlive_1(this.gamemenuext) && this.gamemenuext.updateBalance_0()); } a.getApplicationID_0() == GT307.prototype.ACTION_CLOSEREPLAY && (this.closeReplayDialog_0(), this.hasReplayParameter_0() && (this.deleteGameGUI_0(), this.requestLeaveGame_0())); if (a.getApplicationID_0() == GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG || a.getApplicationID_0() == GT307.prototype.ACTION_ENABLE_GAMBLING || a.getApplicationID_0() == GT307.prototype.ACTION_DISABLE_GAMBLING) { var b = this.disableGamblingDialogContainer.isGamblingDisabled_0(); if (a.getApplicationID_0() == GT307.prototype.ACTION_ENABLE_GAMBLING || a.getApplicationID_0() == GT307.prototype.ACTION_DISABLE_GAMBLING) b = a.getApplicationID_0() == GT307.prototype.ACTION_DISABLE_GAMBLING; this.disableGamblingDialogContainer.setGamblingDisabled_1(b); a.getApplicationID_0() == GT307.prototype.ACTION_CLOSE_GAMBLING_DIALOG && this.closeDisableGamblingDialog_0(); } if (a.getApplicationID_0() == GT307.prototype.ACTION_PLAY) { if (!this.isSpinAllowed_0()) return; this.currentReplayStep++; GT1560.prototype.isAlive_1(this.sliderReplay) && this.sliderReplay.getHandle_0().setValue_1(this.currentReplayStep); this.sendReqReplayRound_3(this.getRoundIdFromRoundHistory_1(this.currentReplayStep), this.getStepFromRoundHistory_1(this.currentReplayStep), !0); this.dataOnTheWay_inReplay = !0; this.updateReplayDialog_1(!1); } if (a.getApplicationID_0() == GT307.prototype.ACTION_FORWARD) { if (!this.isSpinAllowed_0()) return; this.setResetGameGuiAtNextGameState_0(); this.currentReplayStep++; GT1560.prototype.isAlive_1(this.sliderReplay) && this.sliderReplay.getHandle_0().setValue_1(this.currentReplayStep); this.currentReplayStep < this.numberOfRoundHistoryElements_0() ? this.sendReqReplayRound_3(this.getRoundIdFromRoundHistory_1(this.currentReplayStep), this.getStepFromRoundHistory_1(this.currentReplayStep), !1) : this.sendReqGameState_0(); this.dataOnTheWay_inReplay = !0; this.updateReplayDialog_1(!1); } if (a.getApplicationID_0() == GT307.prototype.ACTION_REWIND) { if (!this.isSpinAllowed_0()) return; this.setResetGameGuiAtNextGameState_0(); this.currentReplayStep--; GT1560.prototype.isAlive_1(this.sliderReplay) && this.sliderReplay.getHandle_0().setValue_1(this.currentReplayStep); this.sendReqReplayRound_3(this.getRoundIdFromRoundHistory_1(this.currentReplayStep), this.getStepFromRoundHistory_1(this.currentReplayStep), !1); this.dataOnTheWay_inReplay = !0; this.updateReplayDialog_1(!1); } a.getApplicationID_0() == GT307.prototype.ACTION_LEAVETABLE && (this.isGameMenuDialogOpen_0() && this.buttonClick_1(this.buttonOpenContextMenu), (b = !1), this.isRealityCheckDialogOpen_0() && (b = null != this.containerRealityCheck.findDescendant_1(GT307.prototype.ACTION_STOPGAME)), !this.showRealityCheckBeforeLeaving_0() || this.didShowRealityCheckBeforeLeaving || b || this.isSpectator_0() || this.hasReplayParameter_0() ? (this.deleteGameGUI_0(), this.requestLeaveGame_0()) : ((this.didShowRealityCheckBeforeLeaving = !0), this.displayRealityCheckDialog_6( this.containerRealityCheck, this.gameskin.containerRealityCheckDialogLeavingGame_0(), Math.div(this.currentTimeMillis_0() - this.timeOfSessionStart, GT334.prototype.SEC), this.betsSinceGameStart, this.winsSinceGameStart, !0 ) && (null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(this.containerRealityCheck.getChild_1(0).getApplicationID_0())))); a.getApplicationID_0() == GT307.prototype.ACTION_ACCOUNT && this.buttonAccountClicked_0(); a.getApplicationID_0() == GT307.prototype.ACTION_HELP && this.buttonHelpClicked_0(); if (a.getApplicationID_0() == GT307.prototype.ACTION_FULLSCREEN || a.getApplicationID_0() == GT307.prototype.ACTION_WINDOWED) this.setFullscreenMode_1(!this.getFullscreenMode_0()), this.updateStandardButtons_0(); a.getApplicationID_0() == GT307.prototype.ACTION_PAYIN && this.openPayInDialog_0(); if (a.getApplicationID_0() == GT307.prototype.ACTION_ASPECTWIDE || a.getApplicationID_0() == GT307.prototype.ACTION_ASPECTNORMAL) this.setAspectRatio_1(1 == this.getAspectRatio_0() ? this.getLobbySkin_0().layoutWideAspect_0() : 1), this.updateStandardButtons_0(); (a.getApplicationID_0() != GT307.prototype.ACTION_CONTEXTMENU && a.getApplicationID_0() != GT307.prototype.ACTION_CONTEXTMENU_BACKGROUND) || this.toggleContextMenu_0(); a.getApplicationID_0() == GT307.prototype.ACTION_SENDSETTINGS && ((this.realityCheckIntervalMinutes = this.sessionSettingsDialog.getRCIntervalValue_0() * GT334.prototype.MIN), this.setCallbackForNextRealityCheck_0(), this.sendPacket_2(GT1388.prototype.composePacket_2(GT1122.prototype.SESSIONSETTINGS, ["" + this.sessionSettingsDialog.getSessionTimeValue_0(), "" + this.sessionSettingsDialog.getRGBlockValue_0()]), !1), this.closeMaxSessionTimeDialog_0()); a.getApplicationID_0() == GT307.prototype.ACTION_SETRCSETTINGS && ((this.realityCheckIntervalMinutes = this.rcSettingsDialog.getRCIntervalValue_0() * GT334.prototype.MIN), this.setCallbackForNextRealityCheck_0(), (this.showBtnRCAccountHistory = this.forceRealityCheck = !0), this.closeRCSettingsDialog_0()); a.getApplicationID_0() == GT307.prototype.ACTION_SETAPSETTINGS && this.closeAPSettingsDialog_0(); a.getApplicationID_0() == GT307.prototype.ACTION_VIEW_HISTORY && ((b = this.getStringParameter_2("accounthistoryurl", null)), null != b && (this.openLink_2("_blank", b), (b = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_VIEWACCOUNTHISTORY)), GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), b.getMainTable_0()))); a.getApplicationID_0() == GT307.prototype.ACTION_RESPONSIBLE_LINK && ((b = this.getStringParameter_2("responsiblegamingurl", null)), null != b && this.openLink_2("_blank", b), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_OPEN_RESPONSIBLEGAMING_DIALOG_MOREINFO, ""), this.buttonKeepPlayingClicked_0()); GT692.prototype.buttonClick_1.call(this, a); }, toggleContextMenu_0: function () { this.isContextMenuOpen_0() ? this.closeContextMenu_0() : (null != this.buttonCloseContextMenu && this.buttonCloseContextMenu.hide_1(!1), null != this.buttonOpenContextMenu && this.buttonOpenContextMenu.hide_1(!0), null != this.gamemenucnt && (this.gamemenucnt.hide_1(!1), this.gamemenucnt.getParent_0().getParent_0().setModalInputReceiver_1(this.gamemenucnt.getParent_0()), this.notifyModalDialogOpened_1(this.gamemenucnt.getApplicationID_0()))); }, isContextMenuOpen_0: function () { return this.isContextMenuAvailable_0() ? !this.gamemenucnt.isHidden_0() : !1; }, isExitAllowed_0: function () { var a = this.isAnyModalDialogOpen_0() && !this.isGameMenuDialogOpen_0(), b = "1".equals_1(this.getParameter_1("alwaysexit")); return (!this.isInBusyState_0() && !this.hasOpenRound_0() && !a) || !this.isMainPlayer_0() || b; }, isReplayAllowed_0: function () { var a = this.isAnyModalDialogOpen_0() && !this.isGameMenuDialogOpen_0(), b = this.hasReplayParameter_0() || 0 == this.getRoundNumber_0().length_0() || !this.isMainPlayer_0(); return !this.isInBusyState_0() && (!a || this.isRealityCheckDialogOpen_0() || this.isReplayDialogOpen_0()) && !b; }, closeContextMenu_0: function () { this.isContextMenuAvailable_0() && (null != this.buttonCloseContextMenu && this.buttonCloseContextMenu.hide_1(!0), null != this.buttonOpenContextMenu && this.buttonOpenContextMenu.hide_1(!1), this.gamemenucnt.getParent_0().getParent_0().setModalInputReceiver_1(null), this.gamemenucnt.hide_1(!0), this.notifyModalDialogClosed_1(this.gamemenucnt.getApplicationID_0())); }, isContextMenuAvailable_0: function () { return (this.getBooleanParameter_2("bigbutton", !1) || this.getSkinManager_0().hasSkinId_1("mobile")) && !this.getBooleanParameter_2("onebutton", !1); }, externalGameMenuContainer_0: function () { return null == this.gameskin.containerGameMenu_0(); }, buttonKeepPlayingClicked_0: function () { var a = this.containerRealityCheck.getChild_1(0).getApplicationID_0(); this.containerRealityCheck.destroyChildren_0(); this.layerMain.setModalInputReceiver_1(null); this.updateStandardButtons_0(); this.notifyModalDialogClosed_1(a); }, buttonSoundClicked_0: function () { this.getBooleanParameter_2("usingwebaudio", !0) ? (this.toggleSoundActive_0(), this.updateStandardButtons_0()) : this.buildInfoDialog_2(this.skin.getString_1("soundnotsupportedinfotext"), !0); }, buttonMusicClicked_0: function () { this.ismusicactive = !this.ismusicactive; this.storeParameter_2("ismusicactive", this.ismusicactive ? "1" : "0"); this.toggleMusicActive_0(); this.updateStandardButtons_0(); }, toggleMusicActive_0: function () { this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_MUSIC, this.isMusicActive_0() ? GT697.prototype.VALUE_TRUE : GT697.prototype.VALUE_FALSE); }, isMusicActive_0: function () { return this.ismusicactive; }, resetGameGUI_0: function () { GT334.prototype.Log.t_1("resetGameGUI"); this.isContextMenuAvailable_0() && this.closeContextMenu_0(); }, deleteGameGUI_0: function () { GT692.prototype.deleteGameGUI_0.call(this); null != this.timeoutChecker && this.timeoutChecker.stop_0(); this.removeTimeoutCallbacks_0(); }, removeTimeoutCallbacks_0: function () { null != this.lastSessionIdleCallback && (this.removeCallback_2(this.lastSessionIdleCallback, !1), (this.lastSessionIdleCallback = null)); null != this.lastRoundIdleCallback && (this.removeCallback_2(this.lastRoundIdleCallback, !1), (this.lastRoundIdleCallback = null)); null != this.lastPayinTimeOutCallback && (this.removeCallback_2(this.lastPayinTimeOutCallback, !1), (this.lastPayinTimeOutCallback = null)); }, buttonStartDrag_1: function (a) { GT692.prototype.buttonStartDrag_1.call(this, a); }, buttonDrag_1: function (a) { if (a.getApplicationID_0() == GT307.prototype.ACTION_DRAGWINDOW) { var b = a.getParent_0(); if (null != a.getApplicationData_0()) for (var d = a.getApplicationData_0().intValue_0(); 1 < d; d--) b = b.getParent_0(); var d = b.getParent_0(), e = b.getX_0() + a.getX_0(), f = b.getY_0() + a.getY_0(); if (0 > e || e + b.getWidth_0() > d.getWidth_0()) e = b.getX_0(); if (0 > f || f + b.getHeight_0() > d.getHeight_0()) f = b.getY_0(); b.move_2(e, f); a.move_2(0, 0); } GT692.prototype.buttonDrag_1.call(this, a); }, replaySliderValueChanged_1: function (a) { this.currentReplayStep = a; this.updateReplayDialog_1(!0); }, buttonDrop_1: function (a) { GT692.prototype.buttonDrop_1.call(this, a); }, replaySliderDropped_1: function (a) { this.dataOnTheWay_inReplay = !0; this.currentReplayStep = this.sliderReplay.getHandle_0().getValue_0(); this.setResetGameGuiAtNextGameState_0(); this.sendReqReplayRound_3(this.getRoundIdFromRoundHistory_1(this.currentReplayStep), this.getStepFromRoundHistory_1(this.currentReplayStep), !1); this.updateReplayDialog_1(!1); }, decodeGameSituation_1: function (a) { GT692.prototype.decodeGameSituation_1.call(this, a); this.sessioncurrencyfactor = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100.0")); this.sessioncurrency = this.getPlayerAttribute_2("CURRENCY", ""); this.lastpayouttickets = -1; this.isDeepwalletSession = !1; var b = this.hasopensession; this.hasopensession = !1; var d = this.hasopenround; this.dbError = this.dbMessage = ""; var e = this.estimatedWin; this.estimatedWin = 0; var f = this.sessiontickets; this.sessiontickets = 0; var g = this.roundnumber; this.roundnumber = ""; this.serverrequeststiminginfo = !1; this.isPayinAllowed = !0; this.exceededMaximumRoundWin = !1; this.maximumRoundWin = "0"; this.maxRCinterval = -1; for (var k = 0; k < a.length; k++) { var m = a[k]; if (!(1 > m.length_0())) switch (m.charAt_1(0)) { case 83: this.sessiontickets = GT1672.prototype.stringToDouble_1(m.substring_1(1)); break; case 67: this.sessioncurrencyfactor = GT1677.prototype.getDoubleFromCommaSeperatedList_2(m, 1); this.sessioncurrency = GT1677.prototype.getFromCommaSeperatedList_2(m, 2); this.hasopensession = !0; 0 == this.sessioncurrencyfactor && (this.sessioncurrencyfactor = 100); var n = GT1677.prototype.getFromCommaSeperatedList_2(m, 3); 0 == n.length_0() && (n = this.getPlayerAttribute_2("ISDEEPWALLET", "0")); this.isDeepwalletSession = 48 != n.charAt_1(0); this.sessioncurrencycode = GT1677.prototype.getFromCommaSeperatedList_2(m, 4); break; case 82: this.roundnumber = m.substring_1(1); break; case 76: this.lastpayouttickets = GT1677.prototype.getDoubleFromCommaSeperatedList_2(m, 1); this.lastpayoutcurrencyfactor = GT1677.prototype.getDoubleFromCommaSeperatedList_2(m, 2); this.lastpayoutcurrency = GT1677.prototype.getFromCommaSeperatedList_2(m, 3); break; case 84: if (!this.isReplayDialogOpen_0()) { var n = this.totalbetsplaced, p = this.totalmoneywon; this.totalsecondsplayed = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 1); this.totalbetsplaced = GT1677.prototype.getDoubleFromCommaSeperatedList_2(m, 2); this.totalmoneywon = GT1677.prototype.getDoubleFromCommaSeperatedList_2(m, 3); this.totalbetsplaced > n && (this.betsSinceGameStart += this.totalbetsplaced - n); this.totalmoneywon > p && (this.winsSinceGameStart += this.totalmoneywon - p); } break; case 77: m = m.substring_1(1); this.minbet = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 1); this.maxbet = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 2); this.minbuyin = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 3); this.maxbuyintotal = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 4); this.totalbuyin = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 5); break; case 73: GT334.prototype.Log.v_1("hasopenround:" + m); this.hasopenround = 48 != m.charAt_1(1); 2 < m.length_0() && (this.hasopenround = this.hasopenround && 48 == m.charAt_1(2)); break; case 72: this.limit_typeid = GT1677.prototype.getFromCommaSeperatedList_2(m, 1).charAt_1(0) - 48; this.limit_periodid = GT1677.prototype.getFromCommaSeperatedList_2(m, 2).charAt_1(0) - 48; this.limit_amount = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 3); this.limit_currentvalue = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 4); this.limit_cancontinue = 48 != GT1677.prototype.getFromCommaSeperatedList_2(m, 5).charAt_1(0); break; case 68: this.dbError = m.substring_1(1); break; case 66: this.dbMessage = m.substring_1(1); break; case 69: this.entitySessionId = m.substring_1(1); this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_ENTITYSESSIONID, this.entitySessionId); m = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_ENTITYSESSIONID); m.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, this.entitySessionId); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), m.getMainTable_0()); break; case 80: this.entityParticipationId = m.substring_1(1); this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_ENTITYPARTICIPATIONID, this.entityParticipationId); m = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_ENTITYPARTICIPATIONID); m.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, this.entityParticipationId); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), m.getMainTable_0()); break; case 87: this.estimatedWin = GT1672.prototype.stringToDouble_1(GT1677.prototype.getFromCommaSeperatedList_2(m, 1)); break; case 88: this.serverrequeststiminginfo = !0; break; case 65: this.isPayinAllowed = 48 != m.charAt_1(1); break; case 70: this.exceededMaximumRoundWin = 48 != m.charAt_1(1); this.maximumRoundWin = m.substring_1(2); break; case 71: this.timeLeft = GT1677.prototype.getIntFromCommaSeperatedList_2(m, 1); this.needToShowSessionExpiresMessage = !0; break; case 86: this.maxRCinterval = GT1672.prototype.stringToInt_1(m.substring_1(1)); break; case 74: this.retrievedGlobalJackpotGameSituationString_1(m.substring_1(1)); } } !b && this.hasopensession && (null != this.getJackpotCalculator_0() && this.getJackpotCalculator_0().setCurrencyFactor_1(this.getSessionCurrencyFactor_0()), this.notifySessionStarted_0()); b && !this.hasopensession && (null != this.getJackpotCalculator_0() && this.getJackpotCalculator_0().setCurrencyFactor_1(this.getPlayerCurrencyFactor_0()), (this.showRealityCheckDialogOnReconnect = this.showRCSettingsOnReconnect = !1)); this.isActivePlayer_0() && ((!b && this.hasopensession) || -1 == this.timeOfSessionStart) && ((this.timeOfSessionStart = this.currentTimeMillis_0() - this.totalsecondsplayed * GT334.prototype.SEC), !b && this.hasopensession && this.setCallbackForNextRealityCheck_0()); this.isActivePlayer_0() && (!b && this.hasopensession && (this.impDetector.resetCounter_0(), this.sendImpatienceClicks_0(), this.removeTimeoutCallbacks_0(), (this.lastSessionIdleCallback = new GT1509(this, "idletimeout")), this.triggerCallbackAfter_2(this.lastSessionIdleCallback, GT334.prototype.SESSION_IDLE_TIMEOUT), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_MINBET, "" + this.minbet), this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_MAXBET, "" + this.maxbet), this.setCallbackForNextRealityCheck_0(), this.closePayInDialog_0(), this.getBooleanParameter_2("ukgc.realitycheck.enabled", !1) && (0 >= this.getIntParameter_2("realitycheckintervalminutes", 0) ? this.openRCSettingsDialog_0() : (this.showBtnRCAccountHistory = this.forceRealityCheck = !0)), 48 != this.getPlayerAttribute_2("NEEDSSESSIONTIMEOUT", "0").charAt_1(0) && this.openSessionSettingsDialog_0(), this.updateTimeCallback.run_0()), d && !this.hasopenround && (this.roundsPlayedSoFar++, this.removeTimeoutCallbacks_0(), (this.lastSessionIdleCallback = new GT1509(this, "idletimeout")), this.triggerCallbackAfter_2(this.lastSessionIdleCallback, GT334.prototype.SESSION_IDLE_TIMEOUT)), !d && this.hasopenround && ((this.didShowPayinDialog = !1), this.removeTimeoutCallbacks_0(), (this.lastRoundIdleCallback = new GT1509(this, "roundtimeout")), this.triggerCallbackAfter_2(this.lastRoundIdleCallback, GT334.prototype.SESSION_ROUND_TIMEOUT))); this.alreadyShowedSessionExpiresCreditMessage && this.hasopensession && this.isActivePlayer_0() && this.getSessionTicketsInt_0() > this.getMaxTotalBet_0() && this.getSessionTickets_0() > GT1677.prototype.getCurrencyValueFromCent_2(this.totalbuyin, this.getSessionCurrencyFactor_0()) && (this.alreadyShowedSessionExpiresCreditMessage = !1); this.hasopensession ? ((this.estimatedWin == e && b && this.sessiontickets == f && this.roundnumber.equals_1(g)) || this.notifyBalance_4(this.sessiontickets, this.estimatedWin, this.roundnumber, this.getSessionCurrencyCode_0()), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_ID, this.roundnumber), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_CURRENCY, this.sessioncurrency), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_CURRENCYFACTOR, GT1672.prototype.doubleToStringRounded_1(this.sessioncurrencyfactor)), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_BALANCE, GT1672.prototype.doubleToStringRounded_1(this.sessiontickets))) : this.exceededMaximumRoundWin && (this.deleteGameGUI_0(), this.requestLeaveGame_0()); this.isSpectator_0() && this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_SPECTATOR); }, retrievedGlobalJackpotGameSituationString_1: function (a) { this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_JACKPOT_SERVICE_EVENT, a); }, notifyConnectionLost_1: function (a) { GT692.prototype.notifyConnectionLost_1.call(this, a); this.isRCSettingsDialogOpen_0() && a && (this.showRCSettingsOnReconnect = !0); this.closeAPSettingsDialog_0(); this.closePayInDialog_0(); this.closeMaxSessionTimeDialog_0(); this.closeRCSettingsDialog_0(); this.isRealityCheckDialogOpen_0() && (a && (this.showRealityCheckDialogOnReconnect = !0), this.containerRealityCheck.destroyChildren_0(), this.layerMain.setModalInputReceiver_1(null)); GT1560.prototype.destroyIfAlive_1(this.layoutSwitchingInProgressText); }, sendImpatienceClicks_0: function () { if (null != this.impDetector) { var a = this.impDetector.getImpatienceCount_0(); a != this.lastSentImpatienceCount && (this.sendPacketImpl_1(GT1388.prototype.composePacket_2(GT1122.prototype.IMPATIENCE, ["" + a])), (this.lastSentImpatienceCount = a)); this.lastSendImpatienceAttempt = this.currentTimeMillis_0(); } }, requestLeaveGame_0: function () { this.isActivePlayer_0() && this.hasOpenSession_0() && this.isConnected_0() && this.sendImpatienceClicks_0(); 50 <= this.requestCounter && this.saveRequestCounter_0(); GT692.prototype.requestLeaveGame_0.call(this); }, notifySessionStarted_0: function () {}, createGameGUI_0: function () { GT692.prototype.createGameGUI_0.call(this); GT334.prototype.Log.t_1("createGameGUI"); this.containerClientVersionInfo = new GT1437(this.containerAboveGame); this.containerRealityCheck = new GT1437(this.containerAboveGame); this.containerWatcherInfo = new GT1437(this.containerAboveGame); this.containerServerTimeout = new GT1437(this.containerAboveGame); this.containerDialogs = new GT1437(this.containerAboveGame); this.externalGameMenuContainer_0() || ((this.gamemenucnt = this.gameskin.containerGameMenu_0().create_2(new GT1437(this.containerAboveGame), this.getSkinManager_0())), this.gamemenucnt.init_1(this)); this.payInDialog = new GT590(this, this.containerAboveGame); this.sessionSettingsDialog = new GT228(this, this.containerAboveGame); this.rcSettingsDialog = new GT361(this, this.containerAboveGame); this.apSettingsDialog = new GT360(this, this.containerAboveGame); this.disableGamblingDialogContainer = new GT227(this, this.containerAboveGame); var a = this.gameskin.containerGameMenuExtended_0(); null != a && ((this.gamemenuext = a.create_2(new GT1437(this.containerAboveGame), this.getSkinManager_0())), this.gamemenuext.init_1(this)); null != this.gameskin.containerClock_0() && this.gameskin.containerClock_0().create_2(this.containerAboveGame, this.getSkinManager_0()); null != this.gameskin.buttonOpenContextMenu_0() && ((this.buttonOpenContextMenu = this.gameskin.buttonOpenContextMenu_0().create_2(this.gamemenucnt.getParent_0(), this.getSkinManager_0())), this.gamemenucnt.hide_1(!0)); null != this.gameskin.buttonCloseContextMenu_0() && ((this.buttonCloseContextMenu = this.gameskin.buttonCloseContextMenu_0().create_2(this.gamemenucnt.getParent_0(), this.getSkinManager_0())), this.buttonCloseContextMenu.hide_1(!0)); null != this.gameskin.containerPortraitModeOverlay_0() && this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && ((this.portraitmodeOverlay = this.gameskin.containerPortraitModeOverlay_0().create_2(this.containerAboveGame, this.getSkinManager_0())), this.portraitmodeOverlay.hide_1(!1)); this.timeoutChecker.startRun_0(); if (this.layoutSwitchingInProgress) { this.layoutSwitchingInProgress = !1; a = new GT1440(this.getTopContainer_0()); a.setColor_1(GT1634.prototype.black); var b = new GT1191(this.getTimer_0(), a, !1, [[200, 255, 0]]); b.addFinishCallback_1(new GT714(a)); this.getTimer_0().triggerCallbackAfter_2(new GT714(this.layoutSwitchingInProgressText), 1); this.getTimer_0().triggerCallbackAfter_2(new GT660(b), 1); } }, showSessionSummary_0: function () { var a = this.getBooleanParameter_2("showsessionsummary", !1), b = this.getBooleanParameter_2("sessionsummary.show", !1); return a || b; }, updateGameGUI_0: function () { this.switchLayout_0(); GT692.prototype.updateGameGUI_0.call(this); null != this.gamemenucnt && this.gamemenucnt.updateAll_0(); GT1560.prototype.isAlive_1(this.gamemenuext) && this.gamemenuext.updateAll_0(); this.updateAdminInfos_0(); var a = this.getTopContainer_0().findDescendant_1(GT307.prototype.TEXT_CLIENTVERSION); null != a && (this.getBooleanParameter_2("clientversion.show", !1) ? a.setText_1("v " + this.clientVersion_0()) : a.destroy_0()); this.showSessionSummary_0() && (this.isReplayDialogOpen_0() ? GT1560.prototype.destroyIfAlive_1(this.cntSessionSummary) : this.updateSessionSummary_0()); if (!this.isReplayDialogOpen_0()) { var a = this.getSessionMoneyString_1(this.totalbetsplaced), b = this.getSessionMoneyString_1(this.totalmoneywon), d = this.getSessionMoneyString_1(this.totalmoneywon - this.totalbetsplaced), e = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_SESSIONSUMMARY); e.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_SUMSTAKES, a); e.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_SUMWINNINGS, b); e.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_WINLOSSBALANCE, d); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), e.getMainTable_0()); } !this.isActivePlayer_0() || this.isReplayDialogOpen_0() ? (this.paintWatcherInfo_0(), this.gameskin.isSpectatorModeBlockingInput_0() && null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame)) : GT1560.prototype.isAlive_1(this.containerWatcherInfo) && this.containerWatcherInfo.destroyChildren_0(); if ((this.fundserror = this.buysent && this.ticketsatbuysent == this.sessiontickets && 0 == this.dbError.length_0() && 0 == this.dbMessage.length_0())) GT334.prototype.Log.v_1("tab:" + this.ticketsatbuysent), GT334.prototype.Log.v_1("set:" + this.sessiontickets); this.buysent && this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_READY); this.buysent = !1; if ((!this.hasOpenSession_0() && !this.hasOpenRound_0()) || this.fundserror) 0 == this.dbError.length_0() && 0 == this.dbMessage.length_0() ? this.checkIfPayInNescessary_0() : ((a = this.dbMessage), "RETRY LATER".equals_1(this.dbError) && 0 <= GT1672.prototype.stringToInt_2(this.dbMessage, -1) && (a = this.skin.getParameterString_2("preventsessionstart", this.dbMessage)), this.buildErrorDialog_2(a, !1)); this.fundserror = !1; this.isActivePlayer_0() && !this.isAnyModalDialogOpen_0() && (this.hasLimitReached_0() ? this.buildLimitReachedDialog_0() : (0 < this.dbError.length_0() || 0 < this.dbMessage.length_0()) && this.buildDbErrorDialog_0()); this.updateStandardButtons_0(); this.isActivePlayer_0() ? this.getAppMeasurementClient_0().memorizeDidPlay_0() : this.getAppMeasurementClient_0().memorizeDidWatch_0(); this.isActivePlayer_0() && !this.isAnyModalDialogOpen_0() && this.showRCSettingsOnReconnect && ((this.showRCSettingsOnReconnect = !1), this.setCallbackForNextRealityCheck_0(), this.openRCSettingsDialog_0()); }, notifyActivePlayer_0: function () { GT692.prototype.notifyActivePlayer_0.call(this); this.layerMain.setModalInputReceiver_1(null); }, tryAutoPayin_0: function () { if (this.isPayinAllowed) { GT1650.prototype.assertExp_2(this.isAutoPayin_0() || this.isAutoRebuy_0(), "autopayin not activated"); var a = GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100")), b = Math.min_2(this.mustUseMaxBuyIn_0() ? this.getMaxBuyIn_EuroCent_0() : this.getTickets_0(), this.getTickets_0()); if (b < this.minbuyin) this.notifyAutoPayInFailed_0(); else { for (var d = Math.ceil_1(GT1677.prototype.getCurrencyValueFromCent_2(b, a)), e = GT1677.prototype.getCentFromCurrencyValue_2(d, a); Math.ceil_1(GT1677.prototype.getCentFromCurrencyValue_2(d, a)) > b && 0 < d; ) d--, (e = GT1677.prototype.getCentFromCurrencyValue_2(d, a)); e < this.minbuyin ? this.notifyAutoPayInFailed_0() : (this.sendReqPayIn_1(d), (this.isPayinAllowed = !1)); } } }, notifyAutoPayInFailed_0: function () { GT334.prototype.Log.t_0(); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_TOOLITTLEMONEY, "" + this.getSessionTickets_0()); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_TOOLITTLEMONEY); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_BALANCE, new Double(this.getSessionTickets_0())); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); this.getBooleanParameter_2("avoiddialogonautopayinfailed", !1) || this.openPayInDialog_0(); }, afterUpdateGameGUI_0: function () { GT692.prototype.afterUpdateGameGUI_0.call(this); this.isReplayDialogOpen_0() && this.updateReplayDialog_1(!this.isInBusyState_0()); this.needToShowSessionExpiresMessage && (null != this.sessionExpiresCallback && this.removeCallback_2(this.sessionExpiresCallback, !1), this.alreadyShowedSessionExpiresTimeMessage || (this.timeLeft > 1 * GT334.prototype.MIN ? ((this.sessionExpiresCallback = new GT1509(this, "sessionexpires")), this.triggerCallbackAfter_2(this.sessionExpiresCallback, this.timeLeft - 1 * GT334.prototype.MIN)) : this.isInBusyState_0() ? (this.needToShowSessionExpiresTimeMessageAfterBlocking = !0) : this.isAnyModalDialogOpen_0() ? (this.needToShowSessionExpiresTimeMessageAfterDialog = !0) : ((this.alreadyShowedSessionExpiresTimeMessage = !0), this.buildErrorDialog_2(this.skin.getString_1("sessionexpires_time"), !0))), this.checkConditionToShowSessionExpiresMessage_0() && (this.alreadyShowedSessionExpiresCreditMessage || this.tryToShowSessionExpiresDialog_0())); }, checkConditionToShowSessionExpiresMessage_0: function () { return this.getSessionTickets_0() <= 0.3 * GT1677.prototype.getCurrencyValueFromCent_2(this.totalbuyin, this.getSessionCurrencyFactor_0()) && !this.hasTooLittleMoneyToPlay_0(); }, tryToShowSessionExpiresDialog_0: function () { this.isInBusyState_0() ? (this.needToShowSessionExpiresCreditMessageAfterBlocking = !0) : this.isAnyModalDialogOpen_0() ? (this.needToShowSessionExpiresCreditMessageAfterDialog = !0) : this.checkConditionToShowSessionExpiresMessage_0() && ((this.alreadyShowedSessionExpiresCreditMessage = !0), this.buildErrorDialog_2(this.skin.getString_1("sessionexpires_credit"), !0)); }, updateGameOverlayButtons_0: function () { GT1560.prototype.isAlive_1(this.containerGame) && (this.updateStandardButtons_0(), this.isReplayDialogOpen_0() && this.updateReplayDialog_1(!this.isInBusyState_0())); }, updateGameOverlayDialogs_0: function () { GT1560.prototype.isAlive_1(this.containerGame) && this.isActivePlayer_0() && this.hasOpenSession_0() && !this.isInBusyState_0() && (this.needToShowSessionExpiresTimeMessageAfterBlocking && ((this.needToShowSessionExpiresTimeMessageAfterBlocking = !1), this.isAnyModalDialogOpen_0() ? (this.needToShowSessionExpiresTimeMessageAfterDialog = !0) : ((this.alreadyShowedSessionExpiresTimeMessage = !0), this.buildErrorDialog_2(this.skin.getString_1("sessionexpires_time"), !0))), this.needToShowSessionExpiresCreditMessageAfterBlocking && ((this.needToShowSessionExpiresCreditMessageAfterBlocking = !1), this.tryToShowSessionExpiresDialog_0()), this.hasOpenRound_0() || (this.exceededMaximumRoundWin ? this.buildMaximumWinReachedDialog_0() : (this.isAnyModalDialogOpen_0() || this.checkIfPayInNescessary_0(), this.isAnyModalDialogOpen_0() || this.buildRealityCheckDialogTime_0(), this.isAnyModalDialogOpen_0() || this.buildRealityCheckDialogRounds_0()))); }, checkBlockingState_0: function () { GT692.prototype.checkBlockingState_0.call(this); this.updateGameOverlayDialogs_0(); this.updateGameOverlayButtons_0(); }, hasLimitReached_0: function () { return this.limit_typeid != GT334.prototype.LIMITTYPE_NONE; }, paintWatcherInfo_0: function () { if (GT1560.prototype.isAlive_1(this.containerWatcherInfo) && !(0 < this.containerWatcherInfo.getChildCount_0() || 0 < this.containerServerTimeout.getChildCount_0())) { var a = this.skin.getString_1("watcherinfotext"); this.isReplayDialogOpen_0() && (a = this.skin.getString_1("replayinfotext")); this.isDemoMode_0() && (a = this.skin.getString_1("demoinfotext")); var b = this.gameskin.containerWatcherInfo_0().create_2(this.containerWatcherInfo, this.getSkinManager_0()); b.setCacheAsBitmap_2(!0, null); b.findDescendant_1(GT307.prototype.TEXT_WATCHERINFO).setText_1(a); } }, buildRealityCheckDialogTime_0: function () { null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0() && 0 < this.timeOfNextRealityCheck && (this.currentTimeMillis_0() >= this.timeOfNextRealityCheck || this.showRealityCheckDialogOnReconnect) && ((this.showRealityCheckDialogOnReconnect = !1), this.closePayInDialog_0(), this.displayRealityCheckDialog_6( this.containerRealityCheck, this.gameskin.containerRealityCheckDialogIntervalTime_0(), Math.div(this.currentTimeMillis_0() - this.timeOfSessionStart, GT334.prototype.SEC), this.betsSinceGameStart, this.winsSinceGameStart, this.forceRealityCheck ) && (null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), (this.isRCTimeDialogOpen = !0), this.notifyModalDialogOpened_1(this.containerRealityCheck.getChild_1(0).getApplicationID_0()))); }, setCallbackForNextRealityCheck_0: function () { this.timeOfNextRealityCheck = 0 < this.realityCheckIntervalMinutes ? this.currentTimeMillis_0() + this.realityCheckIntervalMinutes : 0; this.removeCallback_2(this.rcCallback, !1); this.triggerCallback_2(this.rcCallback, this.timeOfNextRealityCheck); }, buildRealityCheckDialogRounds_0: function () { null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0() && ((0 < this.realityCheckIntervalRounds && this.roundsPlayedSoFar >= this.realityCheckIntervalRounds && 0 < this.roundsPlayedSoFar) || this.showRealityCheckDialogOnReconnect) && ((this.showRealityCheckDialogOnReconnect = !1), this.closePayInDialog_0(), this.displayRealityCheckDialog_6( this.containerRealityCheck, this.gameskin.containerRealityCheckDialogIntervalRounds_0(), Math.div(this.currentTimeMillis_0() - this.timeOfSessionStart, GT334.prototype.SEC), this.betsSinceGameStart, this.winsSinceGameStart, this.forceRealityCheck ) && (null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), (this.isRCRoundsDialogOpen = !0), this.notifyModalDialogOpened_1(this.containerRealityCheck.getChild_1(0).getApplicationID_0()))); }, displayRealityCheckDialog_6: function (a, b, d, e, f, g) { if (!this.userealitycheck && !g) return !1; var k = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_REALITYCHECKSHOWN); k.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_ROUNDID, this.getRoundNumber_0()); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), k.getMainTable_0()); a.destroyChildren_0(); a = b.create_2(a, this.getSkinManager_0()); b = Math.div(d, Math.div(GT334.prototype.MIN, GT334.prototype.SEC)) % Math.div(GT334.prototype.MIN, GT334.prototype.SEC); d = Math.div(d, Math.div(GT334.prototype.HOUR, GT334.prototype.SEC)); d = 0 < d ? this.skin.getParameterString_2("hours", "" + d + ":" + (10 > b ? "0" : "") + b) : 1 == b ? this.skin.getString_1("oneminute") : this.skin.getParameterString_2("minutes", "" + b); b = this.skin.getParameterString_2("realitycheckmessage1", d); d = a.findDescendant_1(GT307.prototype.TEXT_REALITYCHECK1); GT1560.prototype.isAlive_1(d) && d.setText_1(b); b = this.skin.getParameterString_2("realitycheckmessage4", "" + this.realityCheckIntervalRounds); d = a.findDescendant_1(GT307.prototype.TEXT_REALITYCHECK4); GT1560.prototype.isAlive_1(d) && d.setText_1(b); b = this.getSessionMoneyString_2(e, !1); k = this.getSessionMoneyString_2(f, !1); e = this.getSessionMoneyString_2(f - e, !1); d = a.findDescendant_1(GT307.prototype.TEXT_REALITYCHECK2); GT1560.prototype.isAlive_1(d) && ((f = this.skin.getParameterString_3("realitycheckmessage2", b, k)), this.showSessionSummary_0() && ((f = this.skin.getParameterString_2("summary_totalbets", b)), (f = "" + f + "\n" + this.skin.getParameterString_2("summary_totalmoneywon", k)), (f = "" + f + "\n" + this.skin.getParameterString_2("summary_winbalance", e))), d.setText_1(f)); g ? (this.showBtnRCAccountHistory || GT1560.prototype.destroyIfAlive_1(a.findDescendant_1(GT307.prototype.ACTION_VIEW_HISTORY)), GT1560.prototype.destroyIfAlive_1(a.findDescendant_1(GT307.prototype.ACTION_TOGGLEREALITYCHECK)), GT1560.prototype.destroyIfAlive_1(a.findDescendant_1(GT307.prototype.TEXT_REALITYCHECK3))) : ((g = a.findDescendant_1(GT307.prototype.ACTION_TOGGLEREALITYCHECK)), GT1560.prototype.isAlive_1(g) && this.updateRealityCheckToggleButton_1(g), GT1560.prototype.destroyIfAlive_1(a.findDescendant_1(GT307.prototype.ACTION_VIEW_HISTORY))); return !0; }, updateRealityCheckToggleButton_1: function (a) { a.setChildForState_2(GT1236.prototype.INACTIVE, 0); this.userealitycheck ? a.setChildForState_2(GT1236.prototype.DEFAULT, 0) : a.setChildForState_2(GT1236.prototype.DEFAULT, 1); a.finishButton_0(); }, buildLimitReachedDialog_0: function () { if (null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0()) { this.closePayInDialog_0(); var a = this.containerRealityCheck; a.destroyChildren_0(); var a = this.gameskin.containerErrorDialog_0().create_2(a, this.getSkinManager_0()), b = this.skin.getParameterString_2("limit_reached" + this.limit_typeid, this.skin.getString_1("limit_period" + this.limit_periodid)); !this.limit_cancontinue || (this.limit_typeid != GT334.prototype.LIMITTYPE_LOSS && this.limit_typeid != GT334.prototype.LIMITTYPE_STAKE) || (b = "" + (b + "\r\n\n\n") + this.skin.getParameterString_2("limit_detail", this.getSessionMoneyString_1(this.limit_amount - this.limit_currentvalue))); a.findDescendant_1(GT307.prototype.TEXT_ERRORMSG).setText_1(b); this.limit_cancontinue ? a.findDescendant_1(GT307.prototype.ACTION_STOPGAME).hide_1(!0) : a.findDescendant_1(GT307.prototype.ACTION_KEEPPLAYING).hide_1(!0); null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame); this.notifyModalDialogOpened_1(a.getApplicationID_0()); this.limit_typeid = GT334.prototype.LIMITTYPE_NONE; } }, buildDbErrorDialog_0: function () { var a = this.skin.getString_1("payindescriptionerrortext"); this.dbError.startsWith_1("RETRY LATER") && (a = this.skin.getString_1("errortext_retrylater")); 0 < this.dbMessage.length_0() && ((a = this.dbMessage), 0 <= GT1672.prototype.stringToInt_2(this.dbMessage, -1) && (a = this.skin.getParameterString_2("preventsessionstart", this.dbMessage))); this.buildErrorDialog_2(a, !0); }, buildErrorDialog_2: function (a, b) { this.buildErrorDialog_3(this.gameskin.containerErrorDialog_0(), a, b); }, buildErrorDialog_3: function (a, b, d) { if (null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0()) { this.closePayInDialog_0(); var e = this.containerRealityCheck; e.destroyChildren_0(); this.getBooleanParameter_2("displaymessages", !0) ? ((a = a.create_2(e, this.getSkinManager_0())), a.findDescendant_1(GT307.prototype.TEXT_ERRORMSG).setText_1(b), d ? a.findDescendant_1(GT307.prototype.ACTION_STOPGAME).hide_1(!0) : a.findDescendant_1(GT307.prototype.ACTION_KEEPPLAYING).hide_1(!0), null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(a.getApplicationID_0())) : this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_RECOVERABLE_ERROR_MESSAGE, b); } }, buildInfoDialog_2: function (a, b) { this.buildErrorDialog_3(this.gameskin.containerErrorDialog_0().id_1(GT307.prototype.ID_INFODIALOG), a, b); }, buildMaximumWinReachedDialog_0: function () { if (null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0()) { if (this.showGUIOnError_0()) { this.isblocking = !0; this.closePayInDialog_0(); var a = this.containerRealityCheck; a.destroyChildren_0(); a = this.gameskin.containerMaximumWinReachedDialog_0().create_2(a, this.getSkinManager_0()); null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame); this.notifyModalDialogOpened_1(a.getApplicationID_0()); } this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_MAXIMUMROUNDWIN, this.maximumRoundWin); } }, showClientVersion_0: function () { !GT1560.prototype.isAlive_1(this.containerClientVersionInfo) || (null != this.clientVersionInfoAnimatorHandler && this.clientVersionInfoAnimatorHandler.isRunning_0()) || (null == this.clientVersionInfoAnimatorHandler && (this.clientVersionInfoAnimatorHandler = new GT185(this.getTimer_0(), this.getLobbySkin_0(), this.gameskin, this.getSkinManager_0(), this.clientVersion_1(!0))), this.clientVersionInfoAnimatorHandler.show_1(this.containerClientVersionInfo)); }, keyPressed_3: function (a, b, d) { this.isCheatInputFieldAlive_0() || this.isAnyModalDialogOpen_0() || !GT1677.prototype.equalsIgnoreCaseAZ_2(b, "v") || this.showClientVersion_0(); return GT692.prototype.keyPressed_3.call(this, a, b, d); }, getMaximumRoundWin_0: function () { return this.maximumRoundWin; }, hasExceededMaxiumumRoundWin_0: function () { return this.exceededMaximumRoundWin; }, isBlockingPackets_0: function () { return GT692.prototype.isBlockingPackets_0.call(this) || this.isblocking; }, isAnyModalDialogOpen_0: function () { return ( this.isRealityCheckDialogOpen_0() || this.isPayInDialogOpen_0() || this.isSessionTimeDialogOpen_0() || this.isReplayDialogOpen_0() || this.isGameMenuDialogOpen_0() || this.isErrorScreenOpen_0() || this.isErrorDialogOpen_0() || this.isInfoDialogOpen_0() || this.isWrapperShowingDialog_0() || this.isRCSettingsDialogOpen_0() || this.isAPSettingsDialogOpen_0() || this.isConsoleDialogOpen_0() || this.isDisableGamblingDialogOpen_0() ); }, isRealityCheckDialogOpen_0: function () { return ( null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0() && 0 < this.containerRealityCheck.getChildCount_0() && this.containerRealityCheck.getChild_1(0).getApplicationID_0() == GT307.prototype.ID_REALITYCHECKDIALOG ); }, isErrorDialogOpen_0: function () { return ( null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0() && 0 < this.containerRealityCheck.getChildCount_0() && this.containerRealityCheck.getChild_1(0).getApplicationID_0() == GT307.prototype.ID_ERRORDIALOG ); }, isInfoDialogOpen_0: function () { return ( null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0() && 0 < this.containerRealityCheck.getChildCount_0() && this.containerRealityCheck.getChild_1(0).getApplicationID_0() == GT307.prototype.ID_INFODIALOG ); }, isGameMenuDialogOpen_0: function () { return GT1560.prototype.isAlive_1(this.buttonOpenContextMenu) && GT1560.prototype.isAlive_1(this.gamemenucnt) && !this.gamemenucnt.isHidden_0(); }, getSessionMoneyString_1: function (a) { return this.getSessionMoneyString_2(a, !1); }, getSessionMoneyString_2: function (a, b) { return null == this.sessioncurrency ? "" : this.getCurrencyMoneyString_5(a, this.sessioncurrency, this.sessioncurrencyfactor, b, !0); }, getSessionMoneyString_3: function (a, b, d) { return null == this.sessioncurrency ? "" : this.getCurrencyMoneyString_5(a, this.sessioncurrency, this.sessioncurrencyfactor, b, d); }, getSessionCurrencyCode_0: function () { return null != this.sessioncurrencycode && 0 < this.sessioncurrencycode.length_0() ? this.sessioncurrencycode : null == this.sessioncurrency || 1 > this.sessioncurrency.length_0() ? "" : this.currencySymbols.getCode_1(this.sessioncurrency); }, getSessionCurrencySymbol_0: function () { return null == this.sessioncurrency || 1 > this.sessioncurrency.length_0() ? "" : this.currencySymbols.getSymbol_1(this.sessioncurrency); }, getLastPayoutString_0: function () { return this.getCurrencyMoneyString_5(this.lastpayouttickets, this.lastpayoutcurrency, this.lastpayoutcurrencyfactor, !0, !0); }, getMinTotalBet_0: function () { var a = this.getPlayerCurrencyFactor_0(), a = 0 < this.minbet ? this.minbet : GT1672.prototype.doubleToInt_1(GT1677.prototype.getCurrencyValueFromCent_2(this.defaultMinTotalBet_0(), a)); !this.ignoreOverrideMinbet && -1 != this.overrideMinBet && this.overrideMinBet > a && (a = this.overrideMinBet); return a; }, defaultMinTotalBet_0: function () { return 10; }, getMinBuyIn_0: function () { var a = this.getPlayerCurrencyFactor_0(); return GT1672.prototype.doubleToInt_1(GT1677.prototype.getCurrencyValueFromCent_2(this.minbuyin, a)); }, getMinBuyIn_EuroCent_0: function () { return this.minbuyin; }, mustUseMaxBuyIn_0: function () { return 0 < this.maxbuyintotal; }, getMaxBuyIn_EuroCent_0: function () { return this.maxbuyintotal - this.totalbuyin; }, getMaxTotalBet_0: function () { var a = this.getPlayerCurrencyFactor_0(), a = 0 < this.maxbet ? this.maxbet : GT1672.prototype.doubleToInt_1(GT1677.prototype.getCurrencyValueFromCent_2(this.defaultMaxTotalBet_0(), a)); !this.ignoreOverrideMaxbet && -1 != this.overrideMaxBet && this.overrideMaxBet < a && (a = this.overrideMaxBet); return a; }, setOverrideMaxBet_1: function (a) { this.overrideMaxBet = a; a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_OVERRIDEMAXBET); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(this.overrideMaxBet)); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, setOverrideMinBet_1: function (a) { this.overrideMinBet = a; a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_OVERRIDEMINBET); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, new Double(this.overrideMinBet)); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, setIgnoreOverrideMaxBet_1: function (a) { this.ignoreOverrideMaxbet = a; }, setIgnoreOverrideMinBet_1: function (a) { this.ignoreOverrideMinbet = a; }, defaultMaxTotalBet_0: function () { return 1e4; }, getAdminInfoString_0: function () { return "[Net:" + this.getSessionMoneyString_1(this.totalmoneywon - this.totalbetsplaced) + " Bet:" + this.getSessionMoneyString_1(this.totalbetsplaced) + " Won:" + this.getSessionMoneyString_1(this.totalmoneywon) + "]"; }, hasOpenSession_0: function () { return this.hasopensession && this.isConnected_0(); }, double2Int_1: function (a) { var b = Integer.truncate_1(a); 0 > b && 0 < a && (b = Integer.MAX_VALUE); return b; }, openPayInDialog_2: function (a, b) { this.isSpinAllowed_0() && (this.isPayInAllowed_0() || this.isPayInDialogOpen_0()) && (this.isGameMenuDialogOpen_0() && this.buttonClick_1(this.buttonOpenContextMenu), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_PAYIN), this.payInDialog.open_3(this.fundserror, a, b), null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.removeTimeoutCallbacks_0(), (this.lastPayinTimeOutCallback = new GT1509(this, "payintimeout")), this.triggerCallbackAfter_2(this.lastPayinTimeOutCallback, GT334.prototype.PAYINTIMEOUT), this.notifyModalDialogOpened_1(GT307.prototype.ID_PAYINDIALOG)); }, openSessionSettingsDialog_0: function () { this.isAnyModalDialogOpen_0() || (this.sessionSettingsDialog.open_1(0 < this.maxRCinterval ? this.maxRCinterval : 15), null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(GT307.prototype.ID_SESSIONSETTINGSDIALOG)); }, openRCSettingsDialog_0: function () { this.isAnyModalDialogOpen_0() || (this.rcSettingsDialog.open_1(0 < this.maxRCinterval ? this.maxRCinterval : -1), null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(GT307.prototype.ID_RCSETTINGSDIALOG)); }, openAPSettingsDialog_2: function (a, b) { this.isAnyModalDialogOpen_0() || (this.apSettingsDialog.open_2(a, b), null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(GT307.prototype.ID_APSETTINGSDIALOG)); }, createAutoPlaySettings_0: function () { var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_AUTOPLAY); a.getValueTable_0().put_2("rounds", new Double(this.apSettingsDialog.getRounds_0())); a.getValueTable_0().put_2("lossLimit", new Double(this.apSettingsDialog.getLossLimit_0())); a.getValueTable_0().put_2("singleWinLimit", new Double(this.apSettingsDialog.getSingleWinLimit_0())); a.getValueTable_0().put_2("currentSessionTickets", new Double(this.getSessionTickets_0())); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); return new GT761(this.apSettingsDialog.getRounds_0(), this.apSettingsDialog.getLossLimit_0(), this.apSettingsDialog.getSingleWinLimit_0(), this.getSessionTickets_0()); }, closeRCSettingsDialog_0: function () { this.isRCSettingsDialogOpen_0() && (this.rcSettingsDialog.close_0(), this.layerMain.setModalInputReceiver_1(null), this.updateStandardButtons_0(), this.notifyModalDialogClosed_1(GT307.prototype.ID_RCSETTINGSDIALOG), this.needToShowResponsibleGamingInfo && this.showResponsibleGamingInfo_0()); }, closeAPSettingsDialog_0: function () { this.isAPSettingsDialogOpen_0() && (this.apSettingsDialog.close_0(), this.layerMain.setModalInputReceiver_1(null), this.updateStandardButtons_0(), this.notifyModalDialogClosed_1(GT307.prototype.ID_APSETTINGSDIALOG)); }, closeMaxSessionTimeDialog_0: function () { this.isSessionTimeDialogOpen_0() && (this.sessionSettingsDialog.close_0(), this.layerMain.setModalInputReceiver_1(null), this.updateStandardButtons_0(), this.notifyModalDialogClosed_1(GT307.prototype.ID_SESSIONSETTINGSDIALOG), this.needToShowResponsibleGamingInfo && this.showResponsibleGamingInfo_0()); }, openPayInDialog_0: function () { this.openPayInDialog_2(this.getMinBuyIn_EuroCent_0(), this.getSessionTickets_0()); }, notifyModalDialogOpened_1: function (a) { var b = null; a == GT307.prototype.ID_GAMEMENUDIALOG ? (b = "OPENED ID_GAMEMENUDIALOG") : a == GT307.prototype.ID_ERRORDIALOG ? (b = "OPENED ID_ERRORDIALOG") : a == GT307.prototype.ID_PAYINDIALOG ? (b = "OPENED ID_PAYINDIALOG") : a == GT307.prototype.ID_REALITYCHECKDIALOG ? (b = "OPENED ID_REALITYCHECKDIALOG") : a == GT307.prototype.ID_REPLAYDIALOG ? (b = "OPENED ID_REPLAYDIALOG") : a == GT307.prototype.ID_SESSIONSETTINGSDIALOG ? (b = "OPENED ID_MAXSESSIONTIMEDIALOG") : GT692.prototype.notifyModalDialogOpened_1.call(this, a); null != b && GT334.prototype.Log.i_1(b); this.getEventDispatcher_0().raiseEvent_1(new GT285(a)); }, closePayInDialog_0: function () { this.isPayInDialogOpen_0() && (this.payInDialog.close_0(), this.layerMain.setModalInputReceiver_1(null), this.updateStandardButtons_0(), this.notifyModalDialogClosed_1(GT307.prototype.ID_PAYINDIALOG)); }, isSessionTimeDialogOpen_0: function () { return GT1560.prototype.isAlive_1(this.sessionSettingsDialog) && this.sessionSettingsDialog.isOpen_0(); }, isRCSettingsDialogOpen_0: function () { return GT1560.prototype.isAlive_1(this.rcSettingsDialog) && this.rcSettingsDialog.isOpen_0(); }, isAPSettingsDialogOpen_0: function () { return GT1560.prototype.isAlive_1(this.apSettingsDialog) && this.apSettingsDialog.isOpen_0(); }, isConsoleDialogOpen_0: function () { return !1; }, notifyModalDialogClosed_1: function (a) { this.isRCTimeDialogOpen && ((this.isRCTimeDialogOpen = !1), this.setCallbackForNextRealityCheck_0()); this.isRCRoundsDialogOpen && ((this.isRCRoundsDialogOpen = !1), (this.roundsPlayedSoFar = 0)); var b = null; a == GT307.prototype.ID_GAMEMENUDIALOG ? (b = "CLOSED ID_GAMEMENUDIALOG") : a == GT307.prototype.ID_ERRORDIALOG ? (b = "CLOSED ID_ERRORDIALOG") : a == GT307.prototype.ID_PAYINDIALOG ? (b = "CLOSED ID_PAYINDIALOG") : a == GT307.prototype.ID_REALITYCHECKDIALOG ? (b = "CLOSED ID_REALITYCHECKDIALOG") : a == GT307.prototype.ID_REPLAYDIALOG ? (b = "CLOSED ID_REPLAYDIALOG") : a == GT307.prototype.ID_SESSIONSETTINGSDIALOG ? (b = "CLOSED ID_MAXSESSIONTIMEDIALOG") : GT692.prototype.notifyModalDialogClosed_1.call(this, a); null != b && GT334.prototype.Log.i_1(b); this.getEventDispatcher_0().raiseEvent_1(new GT284(a)); this.needToShowSessionExpiresTimeMessageAfterDialog && ((this.needToShowSessionExpiresTimeMessageAfterDialog = !1), this.isInBusyState_0() ? (this.needToShowSessionExpiresTimeMessageAfterBlocking = !0) : ((this.alreadyShowedSessionExpiresTimeMessage = !0), this.buildErrorDialog_2(this.skin.getString_1("sessionexpires_time"), !0))); this.needToShowSessionExpiresCreditMessageAfterDialog && ((this.needToShowSessionExpiresCreditMessageAfterDialog = !1), this.tryToShowSessionExpiresDialog_0()); this.isActivePlayer_0() && !this.isAnyModalDialogOpen_0() && this.hasLimitReached_0() && this.buildLimitReachedDialog_0(); this.updateGameOverlayDialogs_0(); }, isPayInDialogOpen_0: function () { return GT1560.prototype.isAlive_1(this.payInDialog) && this.payInDialog.isOpen_0(); }, openReplayDialog_0: function () { GT334.prototype.Log.t_1("openReplayDialog"); GT1560.prototype.destroyIfAlive_1(this.cntReplayDialog); this.currentReplayStep = 0; null == this.containerGame && this.createGameGUI_0(); this.containerRealityCheck.destroyChildren_0(); this.layerMain.setModalInputReceiver_1(null); this.didShowPayinDialog = !1; this.cntReplayDialog = this.gameskin.containerReplayDialog_0().create_2(this.containerDialogs, this.getSkinManager_0()); this.buttonCloseReplay = this.cntReplayDialog.findDescendant_1(GT307.prototype.ACTION_CLOSEREPLAY); this.buttonPlay = this.cntReplayDialog.findDescendant_1(GT307.prototype.ACTION_PLAY); this.buttonRewind = this.cntReplayDialog.findDescendant_1(GT307.prototype.ACTION_REWIND); this.buttonForward = this.cntReplayDialog.findDescendant_1(GT307.prototype.ACTION_FORWARD); this.sliderReplay = this.cntReplayDialog.findDescendant_1(GT307.prototype.ACTION_SLIDERREPLAY); GT1560.prototype.isAlive_1(this.sliderReplay) && (this.sliderReplay.getHandle_0().setMinMax_2(0, 1), this.sliderReplay.getHandle_0().setValue_1(1), this.sliderReplay.getHandle_0().addSliderListener_1(new GT557(this)), this.sliderReplay.setActive_1(!1)); GT1560.prototype.isAlive_1(this.buttonCloseReplay) && this.buttonCloseReplay.setActive_1(!1); this.buttonPlay.setActive_1(!1); this.buttonRewind.setActive_1(!1); this.buttonForward.setActive_1(!1); this.txtReplayInfo = this.cntReplayDialog.findDescendant_1(GT307.prototype.TEXT_REPLAYINFO); this.txtReplayTimestamp = this.cntReplayDialog.findDescendant_1(GT307.prototype.TEXT_REPLAYTIME); if (!this.hasReplayParameter_0()) { var a = new GT653(this.getTimer_0(), this.cntReplayDialog, this.cntReplayDialog.getX_0(), this.cntReplayDialog.getY_0(), 200, !0), b = -this.cntReplayDialog.getHeight_0() - 1; this.cntReplayDialog.getY_0() > Math.div(this.containerDialogs.getHeight_0(), 2) && (b = this.containerDialogs.getHeight_0() + this.cntReplayDialog.getHeight_0() + 1); a.addStartCallback_1(new GT870(this.cntReplayDialog, this.cntReplayDialog.getX_0(), b)); a.setMotionGraph_1(GT1253.prototype.PREDEFINED_DECELERATION); a.start_0(); } this.gameskin.isReplayDialogModal_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame); this.updateStandardButtons_0(); this.paintWatcherInfo_0(); this.notifyModalDialogOpened_1(this.cntReplayDialog.getApplicationID_0()); }, openDisableGamblingDialogIfAppropriate_0: function () { null != this.disableGamblingDialogContainer && this.isActivePlayer_0() && this.isUiNeonEnabled_0() && this.isOpenDisableGamblingDialogAppropriate_0() && this.openDisableGamblingDialog_0(); }, isOpenDisableGamblingDialogAppropriate_0: function () { return this.disableGamblingDialogContainer.isDisableGamblingProposal_0() ? !0 : !1; }, openDisableGamblingDialog_0: function () { GT334.prototype.Log.t_1("openDisableGamblingDialog"); this.disableGamblingDialogContainer.open_0(); this.updateStandardButtons_0(); this.notifyModalDialogOpened_1(GT307.prototype.ID_DISABLE_GAMBLING_DIALOG); }, toggleGambling_0: function () { null != this.disableGamblingDialogContainer && this.disableGamblingDialogContainer.toggle_0(); }, isGamblingDisabled_0: function () { return null == this.disableGamblingDialogContainer ? !1 : this.disableGamblingDialogContainer.isGamblingDisabled_0(); }, startConnecting_1: function (a) { GT692.prototype.startConnecting_1.call(this, a); a && (this.closeReplayDialog_0(), GT1560.prototype.isAlive_1(this.containerWatcherInfo) && this.containerWatcherInfo.destroyChildren_0()); }, isReplayDialogOpen_0: function () { return null != this.cntReplayDialog && this.cntReplayDialog.isAlive_0(); }, isDisableGamblingDialogOpen_0: function () { return null != this.disableGamblingDialogContainer && this.disableGamblingDialogContainer.isOpen_0(); }, closeReplayDialog_0: function () { if (this.isReplayDialogOpen_0()) { GT334.prototype.Log.t_1("closeReplayDialog"); this.setResetGameGuiAtNextGameState_0(); this.dataOnTheWay = !0; this.sendReqGameState_0(); this.buttonPlay.setActive_1(!1); this.buttonRewind.setActive_1(!1); this.buttonForward.setActive_1(!1); var a = -this.cntReplayDialog.getHeight_0() - 1; this.cntReplayDialog.getY_0() > Math.div(this.containerDialogs.getHeight_0(), 2) && (a = this.containerDialogs.getHeight_0() + this.cntReplayDialog.getHeight_0() + 1); a = new GT653(this.getTimer_0(), this.cntReplayDialog, this.cntReplayDialog.getX_0(), a, 200, !0); a.setMotionGraph_1(GT1253.prototype.PREDEFINED_ACCELERATION); a.addFinishCallback_1(new GT714(this.cntReplayDialog)); a.start_0(); this.layerMain.setModalInputReceiver_1(null); this.containerGame.setColorTransformation_1(null); this.updateStandardButtons_0(); this.notifyModalDialogClosed_1(GT307.prototype.ID_REPLAYDIALOG); } }, closeDisableGamblingDialog_0: function () { this.isDisableGamblingDialogOpen_0() && (GT334.prototype.Log.t_1("disableGamblingDialog"), this.disableGamblingDialogContainer.close_0(), this.updateStandardButtons_0(), this.notifyModalDialogClosed_1(GT307.prototype.ID_DISABLE_GAMBLING_DIALOG)); }, updateReplayDialog_1: function (a) { this.isReplayDialogOpen_0() && 0 < this.numberOfRoundHistoryElements_0() && (this.buttonRewind.setActive_1(a && 0 < this.currentReplayStep), this.buttonForward.setActive_1(a && this.currentReplayStep < this.numberOfRoundHistoryElements_0() - 1), this.buttonPlay.setActive_1(a && this.currentReplayStep < this.numberOfRoundHistoryElements_0() - 1), GT1560.prototype.isAlive_1(this.sliderReplay) && this.sliderReplay.setActive_1(a && 1 < this.numberOfRoundHistoryElements_0()), GT1560.prototype.isAlive_1(this.buttonCloseReplay) && this.buttonCloseReplay.setActive_1(a), this.txtReplayInfo.setText_1("" + (this.currentReplayStep + 1) + "/" + this.numberOfRoundHistoryElements_0()), this.txtReplayTimestamp.setText_1(this.getTimeFromTimestamp_2(this.getTimeStampFromRoundHistory_1(this.currentReplayStep), !0))); }, notifyRoundHistoryReceived_0: function () { GT692.prototype.notifyRoundHistoryReceived_0.call(this); this.isReplayDialogOpen_0() || this.openReplayDialog_0(); var a = this.numberOfRoundHistoryElements_0(); GT334.prototype.Log.verbose && GT334.prototype.Log.v_1("roundhistoryreceived:" + a); this.currentReplayStep = a - 1; if (this.hasReplayParameter_0() && 0 < a) { this.currentReplayStep = 0; var b = this.getStringParameter_2("replay", ""), b = GT1677.prototype.tokenize_2(b, ","), b = 2 < b.length ? b[2] : 1 < b.length ? b[1] : ""; if (0 < b.length_0()) for (var d = 0; d < this.numberOfRoundHistoryElements_0(); d++) if (this.getRoundIdFromRoundHistory_1(d).equals_1(b)) { this.currentReplayStep = d; break; } } GT1560.prototype.isAlive_1(this.sliderReplay) && (this.sliderReplay.getHandle_0().setMinMax_2(0, a - 1), this.sliderReplay.getHandle_0().setValue_1(this.currentReplayStep)); this.updateReplayDialog_1(!1); 0 < a ? (this.setResetGameGuiAtNextGameState_0(), this.getRoundIdFromRoundHistory_1(this.currentReplayStep).equals_1("0") ? this.closeReplayDialog_0() : this.sendReqReplayRound_3(this.getRoundIdFromRoundHistory_1(this.currentReplayStep), this.getStepFromRoundHistory_1(this.currentReplayStep), !1), (this.dataOnTheWay_inReplay = !0)) : (this.hasReplayParameter_0() ? (this.buttonCloseReplay.setActive_1(!0), GT1560.prototype.isAlive_1(this.containerWatcherInfo) && this.containerWatcherInfo.destroyChildren_0(), GT1560.prototype.destroyIfAlive_1(this.cntReplayDialog), this.showFatalErrorDialog_2(this.skin.getString_1("noroundhistory"), !1)) : this.closeReplayDialog_0(), (this.dataOnTheWay_inReplay = !1)); this.updateStandardButtons_0(); }, notifyNewTimeStampReceived_0: function () { GT334.prototype.Log.t_1("notifyNewTimeStampReceived"); this.txtReplayTimestamp.setText_1(this.getTimeFromTimestamp_2(this.getTimeStampFromRoundHistory_1(this.currentReplayStep), !0)); }, notifyGameStateReceived_0: function () { GT692.prototype.notifyGameStateReceived_0.call(this); }, loadResources_0: function () { GT692.prototype.loadResources_0.call(this); null != this.skin && (this.gameskin.loadAll_1(this.getSkinManager_0()), this.hasReplayParameter_0() && this.gameskin.containerReplayDialog_0().load_1(this.getSkinManager_0()), null != this.gameskin.containerPortraitModeOverlay_0() && this.gameskin.containerPortraitModeOverlay_0().load_1(this.getSkinManager_0())); }, createCasinoGameOverlaySkin_0: function () { return new GT307(); }, createCasinoBaseCustomization_0: function () { return new GT207(); }, addGameOverlayDecorators_1: function (a) { null == this.skinConfig && (this.skinConfig = new GT140(this)); this.isUiNeonEnabled_0() && (this.skinConfig.setClockShow_1(!1), this.skinConfig.setShowClock_1(!1)); this.skinConfig.decorateCasinoGameOverlaySkin_1(a); }, addLobbyDecorators_1: function (a) { GT692.prototype.addLobbyDecorators_1.call(this, a); null == this.skinConfig && (this.skinConfig = new GT140(this)); this.skinConfig.decorateCasinoLobbySkin_1(a); }, getGameOverlaySkin_0: function () { return this.gameskin; }, getCasinoBaseCustomization_0: function () { return this.casinoBaseCustomization; }, packets_1: function (a) { a = this.currentTimeMillis_0(); 0 > this.roundTripDelayForPreviousPacket && ((this.roundTripDelayForPreviousPacket = a - this.timeOfLastSendPacket), 3e3 <= this.roundTripDelayForPreviousPacket && 0 < this.lastRequestSent && GT334.prototype.Log.info && GT334.prototype.Log.logRemote_2("roundtripdelay>=3000", ["ReqId", "" + this.lastRequestSent, "roundtripdelay", "" + this.roundTripDelayForPreviousPacket])); }, processPacket_2: function (a, b) { (a != GT1121.prototype.GAMESTATE && a != GT1121.prototype.END_GAMESTATE) || !this.isReplayDialogOpen_0() || (this.dataOnTheWay_inReplay = !1); this.dataOnTheWay = !1; this.timeOfLastSendPacket = this.currentTimeMillis_0(); GT692.prototype.processPacket_2.call(this, a, b); switch (a) { case GT1121.prototype.SERVERVERSION: 8 < b.length && this.getAppMeasurementClient_0().memorizeGameVariationName_1(b[8]); break; case GT334.prototype.CMD_LASTSAVE: if (this.isServerVersionSameOrHigher_3(2, 5, 11)) break; this.hasopenround && ((this.hasopenround = !1), GT1560.prototype.isAlive_1(this.containerGame) && this.notifyRoundFinished_0(), this.isActivePlayer_0() && (this.removeTimeoutCallbacks_0(), (this.lastSessionIdleCallback = new GT1509(this, "idletimeout")), this.triggerCallbackAfter_2(this.lastSessionIdleCallback, GT334.prototype.SESSION_IDLE_TIMEOUT))); break; case GT334.prototype.CMD_UPDATESESSIONTICKETS: this.hasOpenSession_0() && 3 <= b.length && (this.buysent && (this.isPayinAllowed = !1), (this.sessiontickets = GT1672.prototype.stringToDouble_1(b[0])), (this.sessioncurrency = b[1]), (this.sessioncurrencyfactor = GT1672.prototype.stringToDouble_1(b[2])), 4 <= b.length && (this.totalbuyin = GT1672.prototype.stringToInt_1(b[3])), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_BALANCE, GT1672.prototype.doubleToStringRounded_1(this.sessiontickets)), this.notifyBalance_4(this.sessiontickets, this.estimatedWin, this.roundnumber, this.getSessionCurrencyCode_0()), this.notifySessionTicketsUpdated_0()); break; case GT334.prototype.CMD_INCREASESTAKE: if (1 != b.length) break; this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_INCREASESTAKE, b[0]); break; case GT334.prototype.CMD_INCREASEWIN: if (1 != b.length) break; this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_INCREASEWIN, b[0]); break; case GT1121.prototype.SERVER_RESPONSETIME: if (0 == b.length) break; if (0 >= this.lastRequestSent) break; if (1 == b.length) { var d = GT1672.prototype.stringToInt_1(b[0]); GT334.prototype.Log.info && 3e3 <= d && GT334.prototype.Log.logRemote_2("serverresponsetime>=3000", ["ReqId", "" + this.lastRequestSent, "resptime", "" + d]); } else if (2 <= b.length) { for (var e = (d = 0), f = 0, g = 0; g < b.length; g++) 116 == b[g].charAt_1(0) ? (d = GT1672.prototype.stringToInt_1(b[g].substring_1(1))) : 113 == b[g].charAt_1(0) ? (e = GT1672.prototype.stringToInt_1(b[g].substring_1(1))) : 114 == b[g].charAt_1(0) && (f = GT1672.prototype.stringToInt_1(b[g].substring_1(1))); GT334.prototype.Log.info && (3e3 <= f || 3e3 <= e) && GT334.prototype.Log.logRemote_2("serverresponsetime>=3000", ["ReqId", "" + this.lastRequestSent, "resptime", "" + f, "dbtime", "" + d, "dbqueuetime", "" + e]); } this.lastRequestSent = -1; break; case GT1121.prototype.SHOW_SESSIONSETTINGS_DIALOG: this.openSessionSettingsDialog_0(); break; case GT1121.prototype.SHOW_RESPONSIBLE_GAMING_INFO: this.isAnyModalDialogOpen_0() ? (this.needToShowResponsibleGamingInfo = !0) : this.showResponsibleGamingInfo_0(); } }, showResponsibleGamingInfo_0: function () { if (null != this.containerRealityCheck && this.containerRealityCheck.isAlive_0()) { if (this.showGUIOnError_0()) { this.closePayInDialog_0(); var a = this.containerRealityCheck; a.destroyChildren_0(); a = this.gameskin.containerResponsibleGamingInfoDialog_0().create_2(a, this.getSkinManager_0()); null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame); this.notifyModalDialogOpened_1(a.getApplicationID_0()); } this.needToShowResponsibleGamingInfo = !1; } }, notifyRoundFinished_0: function () {}, notifySessionTicketsUpdated_0: function () { GT334.prototype.Log.t_0(); this.updateStandardButtons_0(); this.isPayInDialogOpen_0() && (this.closePayInDialog_0(), this.sendPropertyToWrapperIfChanged_2(GT697.prototype.KEY_GAME_MODE, GT697.prototype.VALUE_GAME_MODE_READY), (this.buysent = !1)); }, hasTooLittleMoneyToPlay_0: function () { return this.hasOpenSession_0() ? this.getSessionTickets_0() < this.getMinTotalBet_0() : !0; }, hasEnoughMoneyForPayin_0: function () { return Math.min_2(this.mustUseMaxBuyIn_0() ? this.getMaxBuyIn_EuroCent_0() : this.getTickets_0(), this.getTickets_0()) >= this.minbuyin; }, hasTickets_0: function () { return 0 < this.getSessionTickets_0(); }, hasOpenRound_0: function () { return this.hasopenround && this.hasOpenSession_0(); }, fullscreenModeChanged_0: function () { GT692.prototype.fullscreenModeChanged_0.call(this); this.updateStandardButtons_0(); }, canPayInDuringRound_0: function () { return !1; }, setRoundIsRunning_0: function () { GT334.prototype.Log.t_0(); this.hasopenround = !0; this.updateStandardButtons_0(); this.isActivePlayer_0() && ((this.didShowPayinDialog = !1), this.removeTimeoutCallbacks_0(), (this.lastRoundIdleCallback = new GT1509(this, "roundtimeout")), this.triggerCallbackAfter_2(this.lastRoundIdleCallback, GT334.prototype.SESSION_ROUND_TIMEOUT)); }, setRoundIsFinished_0: function () { this.hasopenround && (GT334.prototype.Log.t_0(), (this.hasopenround = !1), this.updateStandardButtons_0(), this.isActivePlayer_0() && (this.removeTimeoutCallbacks_0(), (this.lastSessionIdleCallback = new GT1509(this, "idletimeout")), this.triggerCallbackAfter_2(this.lastSessionIdleCallback, GT334.prototype.SESSION_IDLE_TIMEOUT), this.notifyRoundFinished_0())); }, checkIfPayInNescessary_0: function () { if (this.isActivePlayer_0() && !this.hasReplayParameter_0() && !this.isSplashScreenAlive_0()) if (!(this.hasTooLittleMoneyToPlay_0() || this.fundserror || this.getCasinoBaseCustomization_0().checkCustomPayInDialogCondition_0()) || (this.didShowPayinDialog && this.hasOpenSession_0())) this.isAutoRebuy_0() && this.hasEnoughMoneyForPayin_0() && !this.isDeepWalletPlayer_0() && this.tryAutoPayin_0(); else if ((this.hasOpenSession_0() && !this.fundserror && (this.didShowPayinDialog = !0), this.isDeepWalletPlayer_0())) this.hasTooLittleMoneyToPlay_0() && this.hasOpenSession_0() && (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_TOOLITTLEMONEY, "" + this.getSessionTickets_0()), this.showGUIOnError_0() && this.getBooleanParameter_2("outofcreditsdialog.show", !0) && this.buildErrorDialog_2(this.getSkinManager_0().getText_1("${outoftwists}"), !1)); else if (this.mustUseMaxBuyIn_0() && this.getMaxBuyIn_EuroCent_0() < this.minbuyin) if (null != this.getParameter_1("mobile") && this.getParameter_1("mobile").equals_1("1")) { this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_TOOLITTLEMONEY, "" + this.getSessionTickets_0()); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_TOOLITTLEMONEY); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_BALANCE, new Double(this.getSessionTickets_0())); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); } else this.buildErrorDialog_2(this.skin.getString_1("error_maxpayinreached"), !1); else this.isAutoPayin_0() ? this.tryAutoPayin_0() : !this.hasOpenSession_0() || (!this.getSkinManager_0().hasSkinId_1("nopayinbutton") && this.getBooleanParameter_2("button.payin.show", !0)) ? this.openPayInDialog_0() : this.showRealityCheckBeforeLeaving_0() && !this.didShowRealityCheckBeforeLeaving && ((this.didShowRealityCheckBeforeLeaving = !0), this.displayRealityCheckDialog_6( this.containerRealityCheck, this.gameskin.containerRealityCheckDialogLeavingGame_0(), Math.div(this.currentTimeMillis_0() - this.timeOfSessionStart, GT334.prototype.SEC), this.betsSinceGameStart, this.winsSinceGameStart, !0 ) && (null == this.layerMain.getModalInputReceiver_0() && this.layerMain.setModalInputReceiver_1(this.containerAboveGame), this.updateStandardButtons_0(), this.notifyModalDialogOpened_1(this.containerRealityCheck.getChild_1(0).getApplicationID_0()))); }, hideModalDialogs_1: function (a) { this.isRealityCheckDialogOpen_0() && this.containerRealityCheck.hide_1(a); this.isPayInDialogOpen_0() && this.payInDialog.hide_1(a); this.isReplayDialogOpen_0() && this.cntReplayDialog.hide_1(a); this.isGameMenuDialogOpen_0() && this.gamemenucnt.hide_1(a); this.isSessionTimeDialogOpen_0() && this.sessionSettingsDialog.hide_1(a); this.isErrorScreenOpen_0() && GT1650.prototype.assertExp_2(!1, "sorry, cannot hide errorscreen"); }, hidePortraitmodeOverlay_1: function (a) { null != this.gameskin.containerPortraitModeOverlay_0() && (a == GT1371.prototype.ORIENTATION_PORTRAIT ? GT1560.prototype.isAlive_1(this.containerAboveGame) && !GT1560.prototype.isAlive_1(this.portraitmodeOverlay) && ((this.portraitmodeOverlay = this.gameskin.containerPortraitModeOverlay_0().create_2(this.containerAboveGame, this.getSkinManager_0())), this.portraitmodeOverlay.hide_1(!1)) : GT1560.prototype.destroyIfAlive_1(this.portraitmodeOverlay)); }, notifyPlayerAttributesChanged_0: function () { GT692.prototype.notifyPlayerAttributesChanged_0.call(this); GT1560.prototype.isAlive_1(this.gamemenucnt) && this.gamemenucnt.updateBalance_0(); GT1560.prototype.isAlive_1(this.gamemenuext) && this.gamemenuext.updateBalance_0(); ((this.isAutoRebuy_0() && this.hasOpenSession_0()) || (this.isAutoPayin_0() && !this.hasOpenSession_0())) && this.hasEnoughMoneyForPayin_0() && !this.hasReplayParameter_0() && this.isActivePlayer_0() && !this.isDeepWalletPlayer_0() ? (this.isPayInDialogOpen_0() && this.closePayInDialog_0(), this.tryAutoPayin_0()) : this.isPayInDialogOpen_0() && !this.buysent && (this.closePayInDialog_0(), this.openPayInDialog_0()); }, updateAdminInfos_0: function () { if (this.isAdmin_0() && !this.isDemoMode_0() && GT1560.prototype.isAlive_1(this.containerGame) && null != this.skin) { var a = this.getAdminInfoString_0(); GT1560.prototype.isAlive_1(this.txtAdminInfo) || (this.txtAdminInfo = this.gameskin.textAdminInfo_0().create_2(this.containerGame, this.getSkinManager_0())); this.txtAdminInfo.setText_1(a); } }, updateSessionSummary_0: function () { if (GT1560.prototype.isAlive_1(this.containerGame) && null != this.skin) { GT1560.prototype.isAlive_1(this.cntSessionSummary) || (this.cntSessionSummary = this.gameskin.containerSessionSummary_0().create_2(this.containerGame, this.getSkinManager_0())); var a = this.getSessionMoneyString_1(this.totalmoneywon - this.totalbetsplaced), b = this.getSessionMoneyString_1(this.totalbetsplaced), d = this.getSessionMoneyString_1(this.totalmoneywon), e; e = this.cntSessionSummary.findDescendant_1(GT307.prototype.TEXT_SUMSTAKES); GT1560.prototype.isAlive_1(e) && e.setText_1(this.skin.getParameterString_2("summary_totalbets", b)); e = this.cntSessionSummary.findDescendant_1(GT307.prototype.TEXT_SUMWINNINGS); GT1560.prototype.isAlive_1(e) && e.setText_1(this.skin.getParameterString_2("summary_totalmoneywon", d)); e = this.cntSessionSummary.findDescendant_1(GT307.prototype.TEXT_WINBALANCE); GT1560.prototype.isAlive_1(e) && e.setText_1(this.skin.getParameterString_2("summary_winbalance", a)); } }, setPropertyImpl_2: function (a, b) { GT692.prototype.setPropertyImpl_2.call(this, a, b); GT334.prototype.Log.v_1("setProperty " + a + " : " + b); if (null != a) if (a.equals_1(GT697.prototype.KEY_BALANCE)) { if (this.hasOpenSession_0() && !this.hasReplayParameter_0() && this.isDeepWalletPlayer_0() && !this.hasOpenRound_0()) { GT334.prototype.Log.v_1("property balance received"); var d = GT1672.prototype.stringToDouble_2(b, -1); -1 != d && d != this.getSessionTickets_0() && this.sendPacket_1([GT1122.prototype.REFRESHUSER]); } } else a.equals_1(GT697.prototype.KEY_LEAVE_GAME) ? (this.hasOpenRound_0() && this.isActivePlayer_0()) || this.isPayInDialogOpen_0() || this.isReplayDialogOpen_0() || this.requestLeaveGame_0() : a.equals_1(GT697.prototype.KEY_OVERRIDE_MAXBET) ? (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "ClientCasinoStandardApplet.setPropertyImpl(" + a + "," + b + ")"), (this.overrideMaxBet = GT1672.prototype.stringToInt_2(b, -1))) : a.equals_1(GT697.prototype.KEY_OVERRIDE_MINBET) ? (this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "ClientCasinoStandardApplet.setPropertyImpl(" + a + "," + b + ")"), (this.overrideMinBet = GT1672.prototype.stringToInt_2(b, -1))) : a.equals_1(GT697.prototype.KEY_MUSIC) && (b.equals_1("FALSE") && this.ismusicactive ? this.buttonMusicClicked_0() : b.equals_1("TRUE") && !this.ismusicactive && this.buttonMusicClicked_0()); }, afterResourcesLoaded_0: function () {}, isAutoPayin_0: function () { return this.getBooleanParameter_2("autopayin", !1) || this.getSkinManager_0().hasSkinId_1("mobile"); }, isAutoRebuy_0: function () { return this.getBooleanParameter_2("autorebuy", !1); }, sendPacket_1: function (a) { this.sendPacket_2(a, !0); }, saveRequestCounter_0: function () { 0 < this.requestCounter && GT334.prototype.Log.info && (GT334.prototype.Log.logRemote_2("requestCounter", ["value", "" + this.requestCounter]), (this.lastRequestCounterSaveTime = this.currentTimeMillis_0()), (this.requestCounter = 0)); }, sendPacket_2: function (a, b) { b && this.hasOpenSession_0() && this.isActivePlayer_0() && this.serverrequeststiminginfo && 0 < this.roundTripDelayForPreviousPacket && this.sendPacketImpl_1(GT1388.prototype.composePacket_2(GT1122.prototype.STORERESPONSETIMING, ["" + this.roundTripDelayForPreviousPacket])); this.hasOpenSession_0() && this.isActivePlayer_0() && this.currentTimeMillis_0() - this.lastSendImpatienceAttempt >= 5 * GT334.prototype.MIN && this.sendImpatienceClicks_0(); this.sendPacketImpl_1(a); b ? (this.requestCounter++, (150 <= this.requestCounter || (50 <= this.requestCounter && this.currentTimeMillis_0() - this.lastRequestCounterSaveTime >= 5 * GT334.prototype.MIN)) && this.saveRequestCounter_0(), (this.timeOfLastSendPacket = this.currentTimeMillis_0()), (this.lastRequestSent = a[0]), GT334.prototype.Log.info && GT334.prototype.Log.i_1("send req: " + this.lastRequestSent), (this.roundTripDelayForPreviousPacket = -1)) : (this.lastRequestSent = -1); this.hasOpenSession_0() && this.isActivePlayer_0() && !this.isLeaveGameInProgress_0() && (this.updateGameOverlayButtons_0(), this.hasOpenRound_0() ? (this.removeTimeoutCallbacks_0(), (this.lastRoundIdleCallback = new GT1509(this, "roundtimeout")), this.triggerCallbackAfter_2(this.lastRoundIdleCallback, GT334.prototype.SESSION_ROUND_TIMEOUT)) : (this.removeTimeoutCallbacks_0(), (this.lastSessionIdleCallback = new GT1509(this, "idletimeout")), this.triggerCallbackAfter_2(this.lastSessionIdleCallback, GT334.prototype.SESSION_IDLE_TIMEOUT))); }, storeParameter_2: function (a, b) { this.sendPacket_2(GT1388.prototype.composePacket_2(GT1122.prototype.STORECALLPARAMETER, [a, b]), !1); }, run_1: function (a) { GT692.prototype.run_1.call(this, a); if ("removesplashscreen".equals_1(a)) { var b = this.getBooleanParameter_2("issound", !0) && this.getBooleanParameter_2("usingwebaudio", !0); this.needTouchToRemoveSplashscreen_0() && this.getSoundPlayer_0().setActive_1(b); this.updateSoundButtonState_0(); GT1560.prototype.destroyIfAlive_1(this.getSplashScreen_0()); this.checkIfPayInNescessary_0(); } "sessionexpires".equals_1(a) && ((this.sessionExpiresCallback = null), this.isInBusyState_0() ? (this.needToShowSessionExpiresTimeMessageAfterBlocking = !0) : this.isAnyModalDialogOpen_0() ? (this.needToShowSessionExpiresTimeMessageAfterDialog = !0) : ((this.alreadyShowedSessionExpiresTimeMessage = !0), this.buildErrorDialog_2(this.skin.getString_1("sessionexpires_time"), !0))); this.isActivePlayer_0() && this.isConnected_0() && ("payintimeout".equals_1(a) ? (GT334.prototype.Log.v_1("payintimeout"), this.isPayInDialogOpen_0() && (this.closePayInDialog_0(), this.hasOpenSession_0() || (this.deleteGameGUI_0(), this.requestLeaveGame_0()))) : "roundtimeout".equals_1(a) ? (GT334.prototype.Log.v_1("roundtimeout"), this.triggerConnectionAndProgramClose_0()) : "idletimeout".equals_1(a) ? (GT334.prototype.Log.v_1("idletimeout"), this.deleteGameGUI_0(), this.requestLeaveGame_0()) : "realitycheck".equals_1(a) ? !this.hasOpenSession_0() || this.hasOpenRound_0() || this.isInBusyState_0() || this.isAnyModalDialogOpen_0() || this.buildRealityCheckDialogTime_0() : "updatetime".equals_1(a) && ((a = this.timeSinceSessionStart_1(!0)), this.sessionTimeEvent.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, a), GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), this.sessionTimeEvent.getMainTable_0()), this.hasOpenSession_0() && this.triggerCallbackAfter_2(this.updateTimeCallback, 1e3))); }, updateSoundButtonState_0: function () { GT692.prototype.updateSoundButtonState_0.call(this); this.updateGameOverlayButtons_0(); }, isSpectator_0: function () { return !this.isActivePlayer_0() && !this.isReplayDialogOpen_0(); }, isWaitingForServerResponse_0: function () { return this.dataOnTheWay || this.dataOnTheWay_inReplay; }, getTimeOfLastSendPacket_0: function () { return this.timeOfLastSendPacket; }, resetTimeOfLastSendPacket_0: function () { this.timeOfLastSendPacket = this.currentTimeMillis_0(); }, notifyIsWaitingLongForServerResponse_0: function () { GT334.prototype.Log.t_0(); this.containerServerTimeout.destroyChildren_0(); this.containerWatcherInfo.destroyChildren_0(); if (this.showTimeoutMessage_0()) { var a = this.skin.getString_1("timeoutmessage"); this.gameskin.containerWatcherInfo_0().create_2(this.containerServerTimeout, this.getSkinManager_0()).setCacheAsBitmap_2(!0, null); this.containerServerTimeout.findDescendant_1(GT307.prototype.TEXT_WATCHERINFO).setText_1(a); } this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_WAITINGFORSERVER, "TRUE"); a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_WAITINGFORSERVER); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_SHOWN); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); GT334.prototype.Log.info && GT334.prototype.Log.logRemote_2(GT697.prototype.KEY_WAITINGFORSERVER, ["ReqId", "" + this.lastRequestSent]); }, stopShowWaitForServerResponseMessage_0: function () { this.containerServerTimeout.destroyChildren_0(); GT1650.prototype.assertExp_2(0 == this.containerWatcherInfo.getChildCount_0(), "no children in container"); this.isReplayDialogOpen_0() && this.paintWatcherInfo_0(); this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_WAITINGFORSERVER, "FALSE"); var a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_WAITINGFORSERVER); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_VALUE, GT697.prototype.EVENT_ENTRY_HIDDEN); GT1242.prototype.fireWrapperStateEvent_2(this.getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); }, createContainerWatcherInfo_1: function (a) { return this.gameskin.containerWatcherInfo_0().create_2(a, this.getSkinManager_0()); }, showRealityCheckBeforeLeaving_0: function () { var a = this.getBooleanParameter_2("showrealitycheckbeforeleaving", !1), b = this.getBooleanParameter_2("realitycheckbeforeleaving.show", !1); return a || b; }, updateStandardButtons_0: function () { GT1560.prototype.isAlive_1(this.buttonOpenContextMenu) && this.buttonOpenContextMenu.setActive_1((!this.isAnyModalDialogOpen_0() || this.isGameMenuDialogOpen_0() || this.isReplayDialogOpen_0()) && !this.isInBusyState_0()); if (GT1560.prototype.isAlive_1(this.gamemenucnt)) this.gamemenucnt.updateButtons_0(); else if (this.externalGameMenuContainer_0()) { var a = this.getTopContainer_0().findDescendant_1(GT307.prototype.ID_GAMEMENUDIALOG); GT1560.prototype.isAlive_1(a) && ((this.gamemenucnt = a), this.gamemenucnt.init_1(this), this.gamemenucnt.updateButtons_0()); } GT1560.prototype.isAlive_1(this.gamemenuext) && this.gamemenuext.updateButtons_0(); }, isDeepWalletPlayer_0: function () { return this.hasOpenSession_0() ? this.isDeepwalletSession : GT692.prototype.isDeepWalletPlayer_0.call(this); }, getEntitySessionId_0: function () { return this.entitySessionId; }, getEntityParticipationId_0: function () { return this.entityParticipationId; }, getTotalSecondsPlayed_0: function () { return this.totalsecondsplayed; }, timeSinceSessionStart_1: function (a) { var b = this.hasopensession && this.isActivePlayer_0() ? this.currentTimeMillis_0() - this.timeOfSessionStart : 0, d = Math.div(b, GT334.prototype.HOUR), b = b % GT334.prototype.HOUR, e = Math.div(b, GT334.prototype.MIN), b = b % GT334.prototype.MIN, b = Math.div(b, GT334.prototype.SEC); return a ? (10 > d ? "0" : "") + d + (10 > e ? ":0" : ":") + e + (10 > b ? ":0" : ":") + b : (10 > d ? "0" : "") + d + (10 > e ? ":0" : ":") + e; }, getTotalBetsPlaced_0: function () { return this.totalbetsplaced; }, getTotalMoneyWon_0: function () { return this.totalmoneywon; }, getAppMeasurementClient_0: function () { return this.appmeasurement; }, isInBusyState_0: function () { return this.isBlockingPackets_0() || this.isWaitingForServerResponse_0(); }, isPayInAllowed_0: function () { return ( this.isPayinAllowed && (!this.isAnyModalDialogOpen_0() || this.isGameMenuDialogOpen_0()) && this.isActivePlayer_0() && !this.isInBusyState_0() && (!this.hasOpenRound_0() || this.canPayInDuringRound_0()) && (!this.mustUseMaxBuyIn_0() || this.getMaxBuyIn_EuroCent_0() >= this.getMinBuyIn_EuroCent_0()) ); }, mayLeaveActualGame_0: function () { return this.isMainPlayer_0() ? GT692.prototype.mayLeaveActualGame_0.call(this) && (!this.isAnyModalDialogOpen_0() || this.isGameMenuDialogOpen_0()) && !this.isWaitingForServerResponse_0() && !this.hasOpenRound_0() : !0; }, isMainPlayer_0: function () { return this.isActivePlayer_0() || (this.isReplayDialogOpen_0() && !this.hasReplayParameter_0()); }, checkMaximumWinExceeded_0: function () { this.exceededMaximumRoundWin && this.isActivePlayer_0() && this.hasOpenSession_0() && this.hasOpenRound_0() && !this.isInBusyState_0() && this.buildMaximumWinReachedDialog_0(); }, showTimeoutMessage_0: function () { return this.getBooleanParameter_2("showwaitingforserver", !0); }, getJackpotCalculator_0: function () { var a = GT692.prototype.getJackpotCalculator_0.call(this); a.setCurrencyFactor_1(this.getSessionCurrencyFactor_0()); return a; }, isScreenRotationEnabled_0: function () { return this.getBooleanParameter_2("screenrotation.enabled", !0) && this.isScreenRotationSupported_0(); }, isScreenRotationSupported_0: function () { return !1; }, isScreenRotationPossible_0: function () { return this.hasOpenSession_0() && this.getDeviceScreen_0().isScreenRotationPossible_0(); }, getDeviceScreen_0: function () { return this.deviceScreen; }, switchLayout_0: function () { if (this.isScreenRotationEnabled_0() && this.isScreenRotationPossible_0() && this.layoutSwitchingPending) { this.layoutSwitchingPending = !1; this.layoutSwitchingInProgress = !0; var a = new java_util_JavaScriptHashtable(); a.put_2("orientation", new Integer(this.getDeviceScreen_0().getOrientation_0())); this.getTimer_0().hasCallbacks_0() && this.getTimer_0().resetAndRemoveAllCallbacks_0(); this.triggerCallback_2(this.rcCallback, this.timeOfNextRealityCheck); this.restart_2(a, !0); } }, isSingleButtonGambling_0: function () { return !1; }, showFatalErrorDialog_2: function (a, b) { null != this.disableGamblingDialogContainer && this.disableGamblingDialogContainer.close_0(); GT692.prototype.showFatalErrorDialog_2.call(this, a, b); }, }, "GT334", [GT1529] ), GT48 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, handleScreenEvent_1: function (a) { this.applet.getDeviceScreen_0().getOrientation_0() != a.getOrientation_0() && (this.applet.getDeviceScreen_0().setOrientation_1(a.getOrientation_0()), (this.applet.layoutSwitchingPending = !this.applet.layoutSwitchingPending), this.applet.switchLayout_0(), this.applet.hidePortraitmodeOverlay_1(a.getOrientation_0())); return !1; }, }, "GT48", [GT961] ), GT108 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, handleLogicEvent_1: function (a) { if (a.getId_0() == GT1446.prototype.TOGGLE_MENU) return this.applet.toggleContextMenu_0(), !0; if (a.getId_0() == GT1446.prototype.BACK) { if (this.applet.isContextMenuOpen_0()) return this.applet.closeContextMenu_0(), !0; a = this.applet.getTopContainer_0().findDescendant_1(GT307.prototype.DIALOG_BOX); if (null != a && !a.isHidden_0()) return a.hide_1(!0), !0; } return !1; }, }, "GT108", [GT1010] ), GT185 = Class.extend( { initialConstructor_0: function () { this.animator = this.clientVersion = this.skinManager = this.gameSkin = this.lobbySkin = this.timer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { this.animator = this.clientVersion = this.skinManager = this.gameSkin = this.lobbySkin = this.timer = null; this.timer = a; this.lobbySkin = b; this.gameSkin = d; this.skinManager = e; this.clientVersion = f; }, isRunning_0: function () { return null != this.animator && this.animator.isRunning_0(); }, show_1: function (a) { if (GT1560.prototype.isAlive_1(a) && null != this.gameSkin && null != this.lobbySkin && null != this.skinManager && null != this.timer) { a.destroyChildren_0(); var b = this.gameSkin.containerClientVersionInfo_0().create_2(a, this.skinManager), d = Math.div(a.getWidth_0() - b.getWidth_0(), 2), e = this.lobbySkin.layoutOverscanTop_0() + b.getY_0(); b.move_2(d, e); a = a.findDescendant_1(GT307.prototype.TEXT_CLIENTVERSIONINFO); null != a && a.setText_1("" + this.clientVersion); instanceOf(b, GT1480) ? (this.animator = new GT1191(this.timer, b, !1, [ [500, 0, 255], [4e3, 255, 255], [500, 255, 0], ])) : (this.animator = new GT1129(this.timer, 5e3, !1)); this.animator.addFinishCallback_1(new GT714(b)); this.animator.start_0(); } }, }, "GT185", [] ); GT334.prototype.Log = GT1650.prototype.getLogFlags_1("casinolobbymanager.client"); GT334.prototype.PARAM_DISABLE_GAMBLING = "fastspin"; GT334.prototype.SEC = 1e3; GT334.prototype.MIN = 60 * GT334.prototype.SEC; GT334.prototype.HOUR = 60 * GT334.prototype.MIN; GT334.prototype.PAYINTIMEOUT = 10 * GT334.prototype.MIN; GT334.prototype.SESSION_IDLE_TIMEOUT = 2 * GT334.prototype.HOUR + 10 * GT334.prototype.MIN; GT334.prototype.SESSION_ROUND_TIMEOUT = 2 * GT334.prototype.HOUR + 10 * GT334.prototype.MIN; GT334.prototype.CMD_LASTSAVE = 29; GT334.prototype.CMD_UPDATESESSIONTICKETS = 30; GT334.prototype.CMD_INCREASESTAKE = 31; GT334.prototype.CMD_INCREASEWIN = 32; GT334.prototype.LIMITTYPE_NONE = 0; GT334.prototype.LIMITTYPE_TIME = 1; GT334.prototype.LIMITTYPE_STAKE = 2; GT334.prototype.LIMITTYPE_LOSS = 3; GT334.prototype.LIMITTYPE_SPINS = 4; GT334.prototype.LIMITPERIOD_NONE = 0; GT334.prototype.LIMITPERIOD_SESSION = 1; GT334.prototype.LIMITPERIOD_DAY = 2; GT334.prototype.LIMITPERIOD_WEEK = 3; GT334.prototype.LIMITPERIOD_MONTH = 4; var GT189 = Class.extend( { initialConstructor_0: function () { this.consoleTopContainer = this.mainContainer = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.consoleTopContainer = this.mainContainer = null; Class.prototype.initialConstructor_0.call(this); this.mainContainer = a; }, createConsoleButton_1: function (a) { if (null != a) { var b; b = null != a.getComponentFactory_0() ? a.getComponentFactory_0().createConsoleButton_1(a) : a.getName_0().startsWith_1(GT1607.prototype.SPIN) ? new GT92(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.BETMENU) ? new GT57(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.LINES) ? new GT202(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.MAXBET) ? new GT255(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.EXTRABET) ? new GT203(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.MENU) ? new GT303(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.AUTOPLAY) ? new GT204(this.consoleTopContainer, a) : a.getName_0().startsWith_1(GT1607.prototype.PAYTABLE_CLOSE) ? new GT138(this.consoleTopContainer, a) : new GT413(this.consoleTopContainer, a); a.setObject_1(b); return b; } return null; }, createConsoleText_1: function (a) { return null; }, createConsoleTopContainer_1: function (a) { if (null != a) { a.setComponentX_1(this.mainContainer.getAbsoluteX_0()); a.setComponentY_1(this.mainContainer.getAbsoluteY_0()); a.setComponentSize_2(this.mainContainer.getWidth_0(), this.mainContainer.getHeight_0()); var b = new GT310(this.mainContainer, a.getComponentX_0(), a.getComponentY_0(), a.getComponentWidth_0(), a.getComponentHeight_0()); a.setObject_1(b); this.consoleTopContainer = b.getGUIObject_0(); new GT499(this.mainContainer, a); return b; } return null; }, createLayoutAreaVisual_4: function (a, b, d, e) {}, createOverlayAreaVisual_4: function (a, b, d, e) { var f = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0(); new GT1440(this.consoleTopContainer, a, b - 1, d, 1, f.getOverlayBorderColor_0().create_0()).setAlpha_1(f.getOverlayBorderAlpha_0().create_0()); new GT1440(this.consoleTopContainer, a, b, d, e, f.getOverlayColor_0().create_0()).setAlpha_1(f.getOverlayAlpha_0().create_0()); }, addPlaceholderForComponent_1: function (a) {}, createConsoleOverlayButton_1: function (a) { var b = null; if (null != a) { if (null != a.getComponentFactory_0()) b = a.getComponentFactory_0().createConsoleOverlayButton_1(a); else if (a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_EXIT)) b = new GT271(this.consoleTopContainer, a); else if (a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_SOUND)) b = new GT142(this.consoleTopContainer, a); else if (a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_SCREENMODE)) b = new GT127(this.consoleTopContainer, a); else if (a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_SOUND_AND_MUSIC) || a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_SOUND_ONLY) || a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_SOUND_OFF)) b = new GT141(this.consoleTopContainer, a); a.setObject_1(b); } return b; }, createConsoleOverlayText_1: function (a) { var b = null; null != a && (null != a.getComponentFactory_0() ? (b = a.getComponentFactory_0().createConsoleOverlayText_1(a)) : a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_LOGO) ? (b = new GT287(this.consoleTopContainer, a)) : a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_CLOCK) ? (b = new GT244(this.consoleTopContainer, a)) : a.getName_0().startsWith_1(GT1607.prototype.OVERLAY_ROUNDID) && (b = new GT197(this.consoleTopContainer, a)), a.setObject_1(b)); return b; }, createConsoleDisplay_1: function (a) { var b = null; null != a && ((b = null != a.getComponentFactory_0() ? a.getComponentFactory_0().createConsoleDisplay_1(a) : a.getName_0().startsWith_1(GT1607.prototype.CREDIT_WIN_BUTTON) ? new GT40(this.consoleTopContainer, a) : new GT400(this.consoleTopContainer, a)), a.setObject_1(b)); return b; }, createConsoleComponent_1: function (a) { var b = null; null != a && (null != a.getComponentFactory_0() ? (b = a.getComponentFactory_0().createConsoleComponent_1(a)) : a.getName_0().startsWith_1(GT1607.prototype.SETTINGS_PANEL) && (b = new GT229(this.consoleTopContainer, a)), a.setObject_1(b)); return b; }, }, "GT189", [GT264] ), GT545 = GT1559.extend( { initialConstructor_0: function () { GT1559.prototype.initialConstructor_0.call(this); }, initialConstructor_5: function (a, b, d, e, f) { GT1559.prototype.initialConstructor_5.call(this, a, b, d, e, f); }, showClickableShape_1: function (a) {}, }, "GT545", [] ), GT499 = GT367.extend( { initialConstructor_0: function () { this.dummyCatcher = null; GT367.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.dummyCatcher = null; GT367.prototype.initialConstructor_0.call(this); this.dummyCatcher = new GT545(a, b.getComponentX_0(), b.getComponentY_0(), b.getComponentWidth_0(), b.getComponentHeight_0()); this.dummyCatcher.setShowHandCursor_1(!1); this.dummyCatcher.reorder_1(!1); this.dummyCatcher.setConsumingMouseEventsWhenInactive_1(!1); this.dummyCatcher.addButtonClickListener_1(this); this.dummyCatcher.setActive_1(!1); b.setCatcher_1(this); }, click_1: function (a) { GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.GENERIC_CONSOLE_EVENT, this, GT1607.prototype.CLICKED_ANYWHERE)); }, setComponentActive_1: function (a) { null != this.dummyCatcher && (this.dummyCatcher.setActive_1(a), this.dummyCatcher.reorder_1(!1)); }, setLocation_2: function (a, b) {}, setSize_2: function (a, b) {}, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.dummyCatcher); }, isVisible_0: function () { return !1; }, drawMask_1: function (a) {}, }, "GT499", [GT807] ), GT204 = GT256.extend( { initialConstructor_0: function () { GT256.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT256.prototype.initialConstructor_3.call(this, a, b, "#stop"); }, click_1: function (a) { a = this.isToggled ? this.toggledButton.getClickIdentifier_0() : this.getClickIdentifier_0(); this.toggleButton_0(); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.AUTOPLAY_BUTTON_PRESSED, this, a)); }, updateUi_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_START_AUTO), d = a.getRules_0().get_1(GT1185.prototype.VDR_VR_STOP_AUTO); if (null != b && null != d) { var e = b.isActive_0() || b.isHighlighted_0(), f = d.isActive_0() || d.isHighlighted_0(); ((this.isToggled && b.isActive_0()) || (!this.isToggled && d.isActive_0()) || (this.isToggled && !b.isActive_0() && !d.isActive_0())) && this.toggleButton_0(); this.activeFromLastViewData = e; this.setActive_1(e && this.my_active); this.toggledButton.activeFromLastViewData = f; this.toggledButton.setActive_1(f && this.my_active); a = a.getViewData_1(GT1184.prototype.AUTOPLAY_COUNTER); null != a && 0 <= a.intValue_0() && this.toggledButton.getGuiTextObject_0().setText_1("" + a); } }, toggleButton_0: function () { GT256.prototype.toggleButton_0.call(this); this.isToggled || this.toggledButton.getGuiTextObject_0().setText_1(this.getToggledText_0()); }, }, "GT204", [] ), GT230 = GT413.extend( { initialConstructor_0: function () { this.decConfig = this.incConfig = this.decrease = this.increase = this.panel = this.betValue = null; this.showSpinner = !1; GT413.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.decConfig = this.incConfig = this.decrease = this.increase = this.panel = this.betValue = null; this.showSpinner = !1; GT413.prototype.initialConstructor_2.call(this, a, b); this.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.setComponentActive_1(!0); this.activeFromLastViewData = !0; b.isPlaceholder_0() || (this.panel = new GT340(a, this, b)); if ((this.showSpinner = b.isShowSpinner_0())) { this.incConfig = new GT1073(b.getName_0() + "#inc", b); this.decConfig = new GT1073(b.getName_0() + "#dec", b); this.createSpinButtons_1(b.getComponentWidth_0()); this.getGuiButtonObject_0().addButtonListener_1(new GT593(this.increase, this.decrease)); var d = new GT546(this, this.increase, this.decrease); this.increase.getGuiButtonObject_0().addButtonListener_1(d); this.increase.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); this.decrease.getGuiButtonObject_0().addButtonListener_1(d); this.decrease.getGuiButtonObject_0().setConsumingMouseEventsWhenInactive_1(!1); } }, createSpinButtons_1: function (a) { this.showSpinner && (this.getGuiTextObject_0().setInsets_4( this.getGuiTextObject_0().getInsetLeft_0() + 15, this.getGuiTextObject_0().getInsetRight_0() + 15, this.getGuiTextObject_0().getInsetTop_0(), this.getGuiTextObject_0().getInsetBottom_0() ), (this.increase = this.createSpinnerButton_6(a - 33, 22, 24, this.incConfig, "+", GT1607.prototype.BETMENU_UP)), (this.decrease = this.createSpinnerButton_6(8, 22, 24, this.decConfig, "-", GT1607.prototype.BETMENU_DOWN))); }, createSpinnerButton_6: function (a, b, d, e, f, g) { if (null != e) { var k = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0(); e.setButtonText_1(f); e.setComponentX_1(a); e.setComponentY_1(b); e.setComponentSize_2(d, d); e.setMinWidth_1(d); e.setMaxWidth_1(d); e.setMinHeight_1(d); e.setMaxHeight_1(d); e.setTextAttributes_1( new GT817() .insets_4(1, 0, 0, 0) .color_1(null != k ? k.create_0() : null) .hAlign_1(GT1488.prototype.CENTER) ); e.setBorderThickness_1(2); e.setColorSetKey_1(GT1019.prototype.CCK_BUTTON_SPINNER); e.setFontKey_1(GT1237.prototype.FCK_LABEL_LARGE); e.setCornerRadius_1(6); e.setBlackBorderSuppressed_1(!0); e.setClickIdentifier_1(g); return new GT413(this.getInnerContainer_0(), e); } return null; }, createBetValue_4: function (a, b, d, e) { var f = ""; null != this.betValue && (f = this.betValue.getText_0()); this.betValue = new GT1410( this.getTextContainer_0(), a, b, d, e, GT1389.prototype.getInstance_0().getDeviceStrategy_0().getFonts_1(GT1237.prototype.FCK_LABEL_LARGE), GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonColor_0().create_0(), GT1488.prototype.CENTER, GT1489.prototype.TOP, GT1389.prototype.getInstance_0().getTimer_0() ); a = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0().create_0(); this.betValue.setGradient_1(a); this.betValue.setInsets_4(10, 10, 0, 0); this.betValue.setBreakLines_1(!1); this.betValue.setText_1(f); this.betValue.setAlpha_1(this.getAlpha_0()); }, createText_2: function (a, b) { GT413.prototype.createText_2.call(this, a, b); var d = Integer.truncate_1(0.5 * b); this.createBetValue_4(0, d + -2, a, d); }, updateUi_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_BET); null != b && ((this.activeFromLastViewData = b.isActive_0() || b.isHighlighted_0()), this.setActive_1(this.activeFromLastViewData && this.isActive_0()), b.isHighlighted_0() ? this.toggleHighlight_1(!0) : this.toggleHighlight_1(!1), b.isActive_0() || b.isHighlighted_0() || null == this.panel || this.panel.hide_0()); b = a.getViewData_1(GT1184.prototype.TOTAL_BET); null != b && null != this.betValue && (this.betValue.setFormatter_1(GT1389.prototype.getInstance_0().getFormatter_0()), this.betValue.setValue_2(b.intValue_0(), !0)); null != this.panel && this.panel.updateUi_1(a); this.showSpinner && this.getGuiButtonObject_0().isActive_0() && (GT1389.prototype.getInstance_0().getDeviceStrategy_0().isBetSettingsChangeGameMode_0() ? ((b = a.getViewData_1(GT1184.prototype.BET_MULTIPLIERS).toArray_0()), (a = a.getViewData_1(GT1184.prototype.BET_MULTIPLIER).intValue_0())) : ((b = a.getViewData_1(GT1184.prototype.BASE_BETS)), (a = a.getViewData_1(GT1184.prototype.BASE_BET).intValue_0())), 0 < b.length && (this.setActiveSpinner_3(this.decrease, a != b[0], this.increase), this.setActiveSpinner_3(this.increase, a != b[b.length - 1], this.decrease))); }, destroyObject_0: function () { null != this.panel && this.panel.destroyObject_0(); GT413.prototype.destroyObject_0.call(this); }, click_1: function (a) { null != this.panel && this.panel.toggle_0(); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.BET_MENU_BUTTON_PRESSED, this, this.getClickIdentifier_0())); }, setLocation_2: function (a, b) { GT413.prototype.setLocation_2.call(this, a, b); }, setSize_2: function (a, b) { var d = this.getGuiButtonObject_0().isActive_0(); GT413.prototype.setSize_2.call(this, a, b); this.getGuiButtonObject_0().setActive_1(d); this.applyColorTransformation_1(d); this.createSpinButtons_1(a); }, setActive_1: function (a) { GT413.prototype.setActive_1.call(this, a); a = this.getGuiButtonObject_0().isActive_0(); this.applyColorTransformation_1(a); this.setActiveSpinners_1(a); }, setActiveSpinners_1: function (a) { this.setActiveSpinner_2(this.increase, a); this.setActiveSpinner_2(this.decrease, a); }, setActiveSpinner_2: function (a, b) { this.setActiveSpinner_3(a, b, null); }, setActiveSpinner_3: function (a, b, d) { null != a && (a.setComponentActive_1(b), b && (this.getGuiButtonObject_0().isMouseOver_0() || (null != d && d.getGuiButtonObject_0().isMouseOver_0())) && a.getGuiButtonObject_0().showState_1(GT1236.prototype.MOUSEOVER)); }, applyColorTransformation_1: function (a) { a ? this.betValue.setColorTransformation_1(null) : this.betValue.setColorTransformation_1(GT1063.prototype.GrayOut); }, setIsForPlaceholder_1: function (a) { GT413.prototype.setIsForPlaceholder_1.call(this, a); this.notifyLayoutAreaEnter_0(); }, }, "GT230", [] ), GT593 = Class.extend( { initialConstructor_0: function () { this.decrease = this.increase = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.decrease = this.increase = null; this.increase = null != a ? a.getGuiButtonObject_0() : null; this.decrease = null != b ? b.getGuiButtonObject_0() : null; }, mouseEnter_1: function (a) { null != this.increase && this.increase.isActive_0() && this.increase.showState_1(GT1236.prototype.MOUSEOVER); null != this.decrease && this.decrease.isActive_0() && this.decrease.showState_1(GT1236.prototype.MOUSEOVER); }, mouseLeave_1: function (a) { null != this.decrease && this.decrease.isActive_0() && this.decrease.showState_1(GT1236.prototype.DEFAULT); this.increase.isActive_0() && this.increase.showState_1(GT1236.prototype.DEFAULT); }, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) {}, }, "GT593", [GT1066] ), GT546 = Class.extend( { initialConstructor_0: function () { this.bet = this.decrease = this.increase = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_3: function (a, b, d) { this.bet = this.decrease = this.increase = null; this.increase = null != b ? b.getGuiButtonObject_0() : null; this.decrease = null != d ? d.getGuiButtonObject_0() : null; this.bet = null != a ? a.getGuiButtonObject_0() : null; }, mouseEnter_1: function (a) { null != this.increase && this.increase.isActive_0() && this.increase.showState_1(GT1236.prototype.MOUSEOVER); null != this.decrease && this.decrease.isActive_0() && this.decrease.showState_1(GT1236.prototype.MOUSEOVER); a.setColorTransformation_1(GT1063.prototype.Highlight); null != this.bet && this.bet.isActive_0() && this.bet.showState_1(GT1236.prototype.MOUSEOVER); }, mouseLeave_1: function (a) { a.setColorTransformation_1(null); }, down_1: function (a) {}, up_1: function (a) {}, drag_1: function (a) {}, click_1: function (a) {}, }, "GT546", [GT1066] ), GT40 = GT121.extend( { initialConstructor_0: function () { this.close = this.next = this.back = null; this.cw = 0; this.closeButtonComponent = this.pagingNextButtonComponent = this.pagingBackButtonComponent = null; GT121.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.close = this.next = this.back = null; this.cw = 0; this.closeButtonComponent = this.pagingNextButtonComponent = this.pagingBackButtonComponent = null; GT121.prototype.initialConstructor_2.call(this, a, b); this.cw = b.getComponentWidth_0() - 2; null != b.getPagingBackButtonImage_0() && null != b.getPagingNextButtonImage_0() && null != b.getCloseButtonImage_0() && ((this.pagingBackButtonComponent = new GT1073(GT1607.prototype.PAYTABLE_BACK, b)), this.pagingBackButtonComponent .setButtonImage_1(b.getPagingBackButtonImage_0()) .setComponentX_1(b.getComponentX_0()) .setComponentY_1(b.getComponentY_0()) .setComponentSize_2(Math.div(this.cw, 3), b.getComponentHeight_0()), (this.closeButtonComponent = new GT1073(GT1607.prototype.PAYTABLE_CLOSE, b)), this.closeButtonComponent .setButtonImage_1(b.getCloseButtonImage_0()) .setComponentX_1(b.getComponentX_0() + Math.div(this.cw, 3) + 1) .setComponentY_1(b.getComponentY_0()) .setComponentSize_2(Math.div(this.cw, 3), b.getComponentHeight_0()), (this.pagingNextButtonComponent = new GT1073(GT1607.prototype.PAYTABLE_NEXT, b)), this.pagingNextButtonComponent .setButtonImage_1(b.getPagingNextButtonImage_0()) .setComponentX_1(b.getComponentX_0() + 2 * Math.div(this.cw, 3) + 2) .setComponentY_1(b.getComponentY_0()) .setComponentSize_2(Math.div(this.cw, 3), b.getComponentHeight_0())); this.createPagingButtons_0(); }, createPagingButtons_0: function () { null != this.pagingBackButtonComponent && null != this.pagingNextButtonComponent && ((this.back = new GT122(this.getParent_0(), this.pagingBackButtonComponent)), this.back.setDragStartAnimationScaleFactor_1(1), this.back.setComponentActive_1(!0), (this.close = new GT122(this.getParent_0(), this.closeButtonComponent)), this.close.setDragStartAnimationScaleFactor_1(1), this.close.setComponentActive_1(!0), (this.next = new GT122(this.getParent_0(), this.pagingNextButtonComponent)), this.next.setDragStartAnimationScaleFactor_1(1), this.next.setComponentActive_1(!0)); }, setSize_2: function (a, b) { var d = this.isPagingButtonHidden_0(); GT121.prototype.setSize_2.call(this, a, b); this.pagingBackButtonComponent.setComponentSize_2(Math.div(a - 2, 3), b); this.closeButtonComponent.setComponentX_1(this.getX_0() + Math.div(a - 2, 3) + 1); this.closeButtonComponent.setComponentSize_2(Math.div(a - 2, 3), b); this.pagingNextButtonComponent.setComponentX_1(this.getX_0() + Math.div(2 * (a - 2), 3) + 2); this.pagingNextButtonComponent.setComponentSize_2(Math.div(a - 2, 3), b); null != this.back && (this.hideAllText_1(!d), this.back.setSize_2(Math.div(a, 3), b), this.close.setSize_2(Math.div(a, 3), b), this.close.setLocation_2(this.getInnerContainer_0().getAbsoluteX_0() + Math.div(a - 2, 3) + 1, this.getInnerContainer_0().getAbsoluteY_0()), this.next.setSize_2(Math.div(a, 3), b), this.next.setLocation_2(this.getInnerContainer_0().getAbsoluteX_0() + Math.div(2 * (a - 2), 3) + 2, this.getInnerContainer_0().getAbsoluteY_0()), this.back.hide_1(d), this.close.hide_1(d), this.next.hide_1(d)); }, setLocation_2: function (a, b) { GT121.prototype.setLocation_2.call(this, a, b); if (null != this.back) { var d = this.getInnerContainer_0().getWidth_0() - 2; this.back.setLocation_2(a, b); this.close.setLocation_2(Math.div(d, 3) + a + 1, b); this.next.setLocation_2(Math.div(2 * d, 3) + a + 2, b); } }, updateUi_1: function (a) { GT121.prototype.updateUi_1.call(this, a); null != this.back && this.back.updateUi_1(a); null != this.next && this.next.updateUi_1(a); null != this.close && this.close.updateUi_1(a); null != this.back && this.hideAllText_1(!this.isPagingButtonHidden_0()); }, handleDragStartAnimationFinished_0: function () { GT121.prototype.handleDragStartAnimationFinished_0.call(this); this.isPagingButtonHidden_0() || (null != this.back && this.back.handleDragStartAnimationFinished_0(), null != this.next && this.next.handleDragStartAnimationFinished_0(), null != this.close && this.close.handleDragStartAnimationFinished_0()); }, notifyDragEnd_0: function () { GT121.prototype.notifyDragEnd_0.call(this); this.isPagingButtonHidden_0() || (null != this.back && this.back.notifyDragEnd_0(), null != this.next && this.next.notifyDragEnd_0(), null != this.close && this.close.notifyDragEnd_0()); }, notifyDragStart_0: function () { GT121.prototype.notifyDragStart_0.call(this); this.isPagingButtonHidden_0() || (null != this.back && this.back.notifyDragStart_0(), null != this.next && this.next.notifyDragStart_0(), null != this.close && this.close.notifyDragStart_0()); }, isPagingButtonHidden_0: function () { return null != this.back && this.back.getGuiButtonObject_0().isHidden_0(); }, setIsForPlaceholder_1: function (a) { GT121.prototype.setIsForPlaceholder_1.call(this, a); instanceOf(a, GT40) && a.isPagingButtonHidden_0() && (null != this.back && this.back.hide_1(!0), null != this.next && this.next.hide_1(!0), null != this.close && this.close.hide_1(!0)); }, setComponentActive_1: function (a) { GT121.prototype.setComponentActive_1.call(this, a); null != this.back && this.back.setComponentActive_1(a); null != this.next && this.next.setComponentActive_1(a); null != this.close && this.close.setComponentActive_1(a); }, }, "GT40", [] ), GT203 = GT256.extend( { initialConstructor_0: function () { GT256.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { GT256.prototype.initialConstructor_3.call(this, a, b, "#on"); }, initialConstructor_3: function (a, b, d) { GT256.prototype.initialConstructor_3.call(this, a, b, d); }, click_1: function (a) { GT256.prototype.click_1.call(this, a); a = this.isToggled ? this.toggledButton.getClickIdentifier_0() : this.getClickIdentifier_0(); GT1389.prototype.getInstance_0().getEventDispatcher_0().raiseEvent_1(new GT1284(GT1284.prototype.EXTRABET_BUTTON_PRESSED, this, a)); }, }, "GT203", [] ), GT66 = GT230.extend( { initialConstructor_0: function () { this.undockedButton = null; this.isTransformingBetUndocked = !1; this.lastValidViewData = null; this.undockedHeight = this.undockedWidth = 0; GT230.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.undockedButton = null; this.isTransformingBetUndocked = !1; this.lastValidViewData = null; this.undockedHeight = this.undockedWidth = 0; GT230.prototype.initialConstructor_2.call(this, a, b); this.undockedWidth = b.getUndockedWidth_0(); this.undockedHeight = b.getUndockedHeight_0(); b.getStartupState_0() == GT487.prototype.TRANSFORMED && (this.isTransformingBetUndocked = !0); this.createUndockedButton_1(b); this.isTransformingBetUndocked ? (this.notifyLayoutAreaLeave_0(), this.hide_1(!0), this.undockedButton.hide_1(!1)) : (this.hide_1(!1), this.undockedButton.hide_1(!0)); }, createButton_2: function (a, b) { GT230.prototype.createButton_2.call(this, a, b); null != this.undockedButton && (this.undockedButton.createButton_2(this.undockedWidth, this.undockedHeight), this.undockedButton.setActive_1(this.isActive_0())); this.getGuiButtonObject_0().setActive_1(this.isActive_0()); }, createText_2: function (a, b) { GT230.prototype.createText_2.call(this, a, b); null != this.lastValidViewData && this.updateUi_1(this.lastValidViewData); }, updateUi_1: function (a) { GT230.prototype.updateUi_1.call(this, a); this.undockedButton.updateUi_1(a); this.lastValidViewData = a; }, restartHighlightOnTransform_0: function () { this.isUndocked_0() ? null != this.getHighlightAnimator_0() && this.getHighlightAnimator_0().isRunning_0() && (GT230.prototype.toggleHighlight_1.call(this, !1), this.undockedButton.toggleHighlight_1(!0)) : null != this.undockedButton.getHighlightAnimator_0() && this.undockedButton.getHighlightAnimator_0().isRunning_0() && (this.undockedButton.toggleHighlight_1(!1), GT230.prototype.toggleHighlight_1.call(this, !0)); }, createUndockedButton_1: function (a) { null != this.undockedButton && this.undockedButton.destroyObject_0(); var b = new GT959(a.getName_0().concat_1("#undocked"), a); b.setComponentSize_2(a.getUndockedWidth_0(), a.getUndockedHeight_0()); b.setShowSpinner_1(!1); b.setShape_1(GT1073.prototype.BUTTON_SHAPE_ROUND); this.undockedButton = new GT230(this.getParent_0(), b); }, destroyObject_0: function () { null != this.undockedButton && this.undockedButton.destroyObject_0(); GT230.prototype.destroyObject_0.call(this); }, setLocation_2: function (a, b) { GT230.prototype.setLocation_2.call(this, a, b); this.undockedButton.setLocation_2(a, b); }, notifyLayoutAreaLeave_0: function () { (this.isTransformingBetUndocked = !0), this.undockedButton.notifyLayoutAreaLeave_0(); this.hide_1(this.isTransformingBetUndocked); this.undockedButton.hide_1(!this.isTransformingBetUndocked); this.undockedButton.setComponentActive_1(this.isActive_0()); this.isDragging_0() && this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2); this.restartHighlightOnTransform_0(); }, notifyLayoutAreaEnter_0: function () { (this.isTransformingBetUndocked = !1), GT230.prototype.notifyLayoutAreaEnter_0.call(this); this.hide_1(this.isTransformingBetUndocked); this.undockedButton.hide_1(!this.isTransformingBetUndocked); this.setComponentActive_1(this.undockedButton.isActive_0()); this.restartHighlightOnTransform_0(); }, handleDragStartAnimationFinished_0: function () { this.isTransformingBetUndocked ? this.undockedButton.handleDragStartAnimationFinished_0() : GT230.prototype.handleDragStartAnimationFinished_0.call(this); }, setComponentActive_1: function (a) { GT230.prototype.setComponentActive_1.call(this, a); null != this.undockedButton && this.undockedButton.setComponentActive_1(a); }, notifyDragStart_0: function () { GT230.prototype.notifyDragStart_0.call(this); null != this.undockedButton && this.undockedButton.notifyDragStart_0(); }, notifyDragEnd_0: function () { GT230.prototype.notifyDragEnd_0.call(this); null != this.undockedButton && (this.undockedButton.notifyDragEnd_0(), this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1)); }, setIsForPlaceholder_1: function (a) { GT230.prototype.setIsForPlaceholder_1.call(this, a); this.notifyLayoutAreaEnter_0(); null != a.getLastValidViewData_0() && this.updateUi_1(a.getLastValidViewData_0()); }, getLastValidViewData_0: function () { return this.lastValidViewData; }, setActive_1: function (a) { this.isTransformingBetUndocked ? null != this.undockedButton && this.undockedButton.setActive_1(a) : GT230.prototype.setActive_1.call(this, a); }, drawMask_1: function (a) { this.isTransformingBetUndocked ? this.undockedButton.drawMask_1(a) : GT230.prototype.drawMask_1.call(this, a); }, isUndocked_0: function () { return this.isTransformingBetUndocked; }, hide_1: function (a) { a ? (GT230.prototype.hide_1.call(this, a), this.undockedButton.hide_1(a)) : this.isTransformingBetUndocked ? this.undockedButton.hide_1(a) : GT230.prototype.hide_1.call(this, a); }, getDragArea_0: function () { var a, b, d = this.getX_0(), e = this.getY_0(); this.isTransformingBetUndocked ? ((a = this.undockedWidth), (b = this.undockedHeight)) : ((a = this.width), (b = this.height)); return new GT1124([d, e, d + a, e, d + a, e + b, d, e + b]); }, }, "GT66", [] ), GT1609 = GT1112.extend( { initialConstructor_0: function () { this.mover = this.animators = this.card = null; this.ismarked = !1; GT1112.prototype.initialConstructor_0.call(this); }, initialConstructor_6: function (a, b, d, e, f, g) { this.mover = this.animators = this.card = null; this.ismarked = !1; GT1112.prototype.initialConstructor_5.call(this, a, b, d, e, f); this.card = g; this.animators = new java_util_JavaScriptVector(); }, initialConstructor_4: function (a, b, d, e) { this.mover = this.animators = this.card = null; this.ismarked = !1; GT1112.prototype.initialConstructor_3.call(this, a, b, d); this.card = e; this.animators = new java_util_JavaScriptVector(); }, getCard_0: function () { return this.card; }, isMoving_0: function () { return null != this.mover ? this.mover.isRunning_0() : !1; }, setMover_1: function (a) { this.mover = a; }, getMover_0: function () { return this.mover; }, isEqual_1: function (a) { return this.card.id_0() == a.id_0(); }, isMarked_0: function () { return this.ismarked; }, mark_0: function () { this.ismarked = !0; }, unmark_0: function () { this.ismarked = !1; }, setAlpha_1: function (a) { this.setAlpha_2(this, a); }, setAlpha_2: function (a, b) { a != this && instanceOf(a, GT1480) && a.setAlpha_1(b); for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1437) ? this.setAlpha_2(e, b) : instanceOf(e, GT1480) && e.setAlpha_1(b); } }, getAlpha_0: function () { return 255; }, setScale_2: function (a, b) { this.setScale_3(this, a, b); }, setScale_3: function (a, b, d) { instanceOf(a, GT1373) && a.setScale_2(b, d); for (var e = 0; e < a.getChildCount_0(); e++) { var f = a.getChild_1(e); instanceOf(f, GT1437) ? this.setScale_3(f, b, d) : instanceOf(f, GT1373) && f.setScale_2(b, d); } }, setMatrix_1: function (a) { a = null != a ? a.getArray_0() : null; this.setMatrix_2(this, a); }, setMatrix_2: function (a, b) { instanceOf(a, GT1373) && a.setTransformation_1(b); for (var d = 0; d < a.getChildCount_0(); d++) { var e = a.getChild_1(d); instanceOf(e, GT1437) ? this.setMatrix_2(e, b) : instanceOf(e, GT1373) && e.setTransformation_1(b); } }, }, "GT1609", [GT1480] ), GT1123 = GT1490.extend( { initialConstructor_0: function () { this.fontsMetrics = null; this.forcedFontMetricsIndex = this.usedFontIndex = 0; this.spacings = null; this.fontOk = this.breakLines = this.reduceSpacingToTextHeight = this.adaptiveSpacing = !1; GT1490.prototype.initialConstructor_0.call(this); }, initialConstructor_7: function (a, b, d, e, f, g, k) { GT1123.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, GT1488.prototype.LEFT, GT1489.prototype.TOP); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.fontsMetrics = null; this.forcedFontMetricsIndex = this.usedFontIndex = 0; this.spacings = null; this.fontOk = this.breakLines = this.reduceSpacingToTextHeight = this.adaptiveSpacing = !1; GT1490.prototype.initialConstructor_9.call(this, a, b, d, e, f, g[g.length - 1], k, m, n); this.fontsMetrics = g; this.setSpacing_1(g[0].getHeight_0()); this.forcedFontMetricsIndex = this.usedFontIndex = 0; this.breakLines = this.adaptiveSpacing = !0; }, getFontMetrics_0: function () { return this.fontsMetrics[this.usedFontIndex]; }, getAllFontMetrics_0: function () { return this.fontsMetrics; }, setAdaptiveSpacing_1: function (a) { this.adaptiveSpacing != a && ((this.adaptiveSpacing = a), this.update_0()); }, setBreakLines_1: function (a) { this.breakLines != a && ((this.breakLines = a), this.update_0()); }, setSpacings_1: function (a) { this.spacings != a && ((this.spacings = a), this.update_0()); }, avoidWordWrap_0: function () { return 12 * this.fontsMetrics[0].getHeight_0() > this.getHorizontalSpaceForText_0(); }, getUsedFontIndex_0: function () { return this.usedFontIndex; }, setFontSearchStartIndex_1: function (a) { GT1650.prototype.assertExp_2(a < this.fontsMetrics.length, "Trying to force a font search start index which is higher than the number of added fonts."); this.forcedFontMetricsIndex = Math.min_2(a, this.fontsMetrics.length); this.update_0(); }, getSpacing_0: function () { var a; if (this.reduceSpacingToTextHeight) return this.getFontMetrics_0().getHeight_0(); a = this.usedFontIndex; return null != this.spacings && 0 < this.spacings.length && 0 <= a && a < this.spacings.length && 0 < this.spacings[a] ? this.spacings[a] : GT1490.prototype.getSpacing_0.call(this); }, createText_3: function (a, b, d) { a = this.createGUIText_3(a, b, d); return GT1560.prototype.isAlive_1(a) && a.getWidth_0() <= this.getHorizontalSpaceForText_0() && a.getHeight_0() <= this.getVerticalSpaceForText_0() ? !0 : !1; }, isLastFont_1: function (a) { return a == this.fontsMetrics.length - 1; }, update_0: function () { if (!this.isUpdateLocked_0()) { this.setDisableImmediateUpdate_1(!0); var a = this.getHeight_0(); this.cleanText_0(); if (null != this.getText_0()) { this.usedFontIndex = 0; this.reduceSpacingToTextHeight = !1; this.fontOk = !0; if (this.breakLines) { for ( var b = this.avoidWordWrap_0() ? GT1677.prototype.tokenize_3(this.getText_0(), " \n", !1) : null, d = this.getHorizontalSpaceForText_0(), e = !1, f = this.forcedFontMetricsIndex; f < this.fontsMetrics.length; f++ ) { this.usedFontIndex = f; var g = !1; if (this.avoidWordWrap_0()) for (var k = this.determineHorizontalMargin_1(this.getFontMetrics_0()), m = 0; m < b.length; m++) if (this.stringWidth_2(this.getFontMetrics_0(), b[m]) + k > d) { g = !0; break; } if (g) this.isLastFont_1(f) && (this.fontOk = !1); else { if ((e = this.createText_3(this.getFontMetrics_0(), this.getSpacing_0(), this.breakLines))) break; if (this.adaptiveSpacing && ((this.reduceSpacingToTextHeight = !0), (e = this.createText_3(this.getFontMetrics_0(), this.getSpacing_0(), this.breakLines)))) break; this.isLastFont_1(f) ? (this.fontOk = !1) : (this.reduceSpacingToTextHeight = !1); } } this.updateText_5(null, this.getFontMetrics_0(), this.getSpacing_0(), this.breakLines, e); } else { b = GT1677.prototype.tokenize_3(this.getText_0(), "\n", !0); for (f = this.forcedFontMetricsIndex; f < this.fontsMetrics.length; f++) { this.usedFontIndex = f; d = this.getSpacing_0(); e = this.getFontMetrics_0(); if (this.fontOK_3(b, e, d)) break; if (this.adaptiveSpacing && ((this.reduceSpacingToTextHeight = !0), this.fontOK_3(b, e, d))) break; this.isLastFont_1(f) ? (this.fontOk = !1) : (this.reduceSpacingToTextHeight = !1); } this.updateText_4(null, this.getFontMetrics_0(), this.getSpacing_0(), 0 <= this.getText_0().indexOf_1("\n")); } a != this.getHeight_0() && ((a = this.getParent_0()), instanceOf(a, GT1158) && a.handleChildResized_1(this)); this.hasDebugBorder_0() && this.showBorders_1(!0); this.setDisableImmediateUpdate_1(!1); } } }, showBorders_1: function (a) { GT1490.prototype.showBorders_1.call(this, a); a && ((a = new GT1559(this.debugContainer, 0, 0, this.getWidth_0(), Math.div(this.getHeight_0(), 2))), a.setToolTipAlwaysOn_1(!0), a.setToolTip_1("Used fontindex: " + this.getUsedFontIndex_0() + "\nUsed spacing: " + this.getSpacing_0()), a.setShowHandCursor_1(!1)); }, fontOK_3: function (a, b, d) { d = this.getTextHeight_3(a.length, b, d); var e = this.getVerticalSpaceForText_0(); if (d > e) return !1; for (d = 0; d < a.length; d++) if (this.stringWidth_2(b, a[d]) + this.determineHorizontalMargin_1(b) > this.getHorizontalSpaceForText_0()) return !1; return !0; }, isAllTextVisible_0: function () { return this.fontOk; }, toString: function () { var a = "used: " + this.usedFontIndex + " "; this.avoidWordWrap_0() && (a += "[avoidWordWrap is TRUE] "); return "" + a + GT1490.prototype.toString.call(this); }, }, "GT1123", [] ), GT1617 = GT1112.extend( { initialConstructor_0: function () { this.gti = null; GT1112.prototype.initialConstructor_0.call(this); }, initialConstructor_9: function (a, b, d, e, f, g, k, m, n) { this.gti = null; GT1112.prototype.initialConstructor_5.call(this, a, b, d, e, f); a = g.getWidth_0(); b = g.getHeight_0(); e /= a; f /= b; this.gti = new GT1075(this, 0, 0, a, b, g, Math.div(a, 2), Math.div(b, 2)); a = Integer.truncate_1(a * e); b = Integer.truncate_1(b * f); this.gti.setTranslation_2(Math.div(a, 2), Math.div(b, 2)); this.gti.setScale_2(e, f); null != k && (this.setToolTip_1(k), this.setToolTipAlwaysOn_1(!0)); this.setShowHandCursor_1(!1); this.setApplicationData_2(m, n); this.setDragable_4(!1, !1, 0, 0); this.setActive_1(!0); }, initialConstructor_6: function (a, b, d, e, f, g) { GT1617.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, null, -1, null); }, initialConstructor_4: function (a, b, d, e) { GT1617.prototype.initialConstructor_9.call(this, a, b, d, e.getWidth_0(), e.getHeight_0(), e, null, -1, null); }, setAlpha_1: function (a) { this.gti.setAlpha_1(a); }, getAlpha_0: function () { return this.gti.getAlpha_0(); }, }, "GT1617", [GT1480] ), GT1410 = GT1123.extend( { initialConstructor_0: function () { this.fadetime = this.time = this.value = 0; this.startSoundCallback = this.stopSoundCallback = this.endSound = this.sound = this.soundPlayer = this.updateCallbacks = this.finishCallbacks = this.animator = null; this.restartposition = this.endposition = this.startposition = 0; this.suffix = this.prefix = null; GT1123.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.fadetime = this.time = this.value = 0; this.startSoundCallback = this.stopSoundCallback = this.endSound = this.sound = this.soundPlayer = this.updateCallbacks = this.finishCallbacks = this.animator = null; this.restartposition = this.endposition = this.startposition = 0; this.suffix = this.prefix = null; GT1123.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, k, m, n); this.time = 3e3; this.fadetime = 100; this.value = -1; this.finishCallbacks = new java_util_JavaScriptVector(); this.updateCallbacks = new java_util_JavaScriptVector(); this.animator = new GT875(p, this, 40, this.time); this.setLoopPoints_3(0, 0, 0); }, destroyImpl_2: function (a, b) { GT1123.prototype.destroyImpl_2.call(this, a, b); null != this.animator && this.animator.isRunning_0() && this.animator.killWithoutTriggers_0(); this.removeFinishCallbacks_0(); null != this.soundPlayer && (null != this.sound && this.soundPlayer.stop_1(this.sound), null != this.endSound && this.soundPlayer.stop_1(this.endSound), (this.soundPlayer = null)); this.animator = this.endSound = this.sound = this.startSoundCallback = this.stopSoundCallback = null; }, refresh_0: function () { null != this.animator && (this.animator.isRunning_0() ? this.setText_1(this.getFormatter_0().format_1(this.animator.getValue_0())) : this.setText_1(this.getFormatter_0().format_1(this.value))); }, setLoopPoints_3: function (a, b, d) { this.startposition = a; this.endposition = b; this.restartposition = d; }, setFadeOutTime_1: function (a) { this.fadetime = a; }, setSound_2: function (a, b) { this.setSound_3(a, b, !0); }, setSound_3: function (a, b, d) { null != this.stopSoundCallback && this.animator.removeFinishCallback_1(this.stopSoundCallback); this.soundPlayer = b; this.sound = a; this.setLoopPoints_3(0, 0, 0); null == a || null == b ? (this.stopSoundCallback = null) : ((this.stopSoundCallback = new GT928(b, a)), 0 < this.fadetime && this.stopSoundCallback.setFadeOutTime_1(this.fadetime), this.animator.addFinishCallback_1(this.stopSoundCallback)); }, setSoundLoop_6: function (a, b, d, e, f, g) { this.setSound_3(a, b, d); this.setLoopPoints_3(e, f, g); }, setEndSound_2: function (a, b) { null != this.startSoundCallback && this.animator.removeFinishCallback_1(this.startSoundCallback); this.soundPlayer = b; this.endSound = a; null == this.sound || null == b ? (this.startSoundCallback = null) : ((this.startSoundCallback = new GT876(b, a)), this.animator.addFinishCallback_1(this.startSoundCallback)); }, setAppendixes_2: function (a, b) { this.prefix = a; this.suffix = b; }, getSound_0: function () { return this.sound; }, getEndSound_0: function () { return this.endSound; }, setFormatter_1: function (a) { null != this.animator && this.animator.setFormatter_1(a); }, getFormatter_0: function () { return null == this.animator ? null : this.animator.getFormatter_0(); }, setRoundDuringAnimation_1: function (a) { this.animator.setRoundDuringAnimation_1(a); }, setMinimumNumberOfSteps_1: function (a) { this.animator.setMinimumNumberOfSteps_1(a); }, setDuration_1: function (a) { this.time = a; }, addFinishCallback_1: function (a) { null == a || this.finishCallbacks.contains_1(a) || (this.finishCallbacks.addElement_1(a), this.animator.addFinishCallback_1(a)); }, removeFinishCallback_1: function (a) { this.finishCallbacks.removeElement_1(a); this.animator.removeFinishCallback_1(a); }, removeFinishCallbacks_0: function () { for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) this.removeFinishCallback_1(a.elementAt_1(d)); }, addUpdateCallback_1: function (a) { null == a || this.updateCallbacks.contains_1(a) || this.updateCallbacks.addElement_1(a); }, removeUpdateCallback_1: function (a) { this.updateCallbacks.removeElement_1(a); }, removeUpdateCallbacks_0: function () { for (var a = this.updateCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) this.removeUpdateCallback_1(a.elementAt_1(d)); }, triggerFinishCallbacks_0: function () { for (var a = this.finishCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, triggerUpdateCallbacks_0: function () { for (var a = this.updateCallbacks.clone_0(), b = a.size_0(), d = 0; d < b; d++) a.elementAt_1(d).run_0(); }, getValue_0: function () { return this.value; }, setValue_2: function (a, b) { if (null != this.animator) if (this.value == a) this.animator.isRunning_0() && b ? (this.setText_1(this.getFormatter_0().format_1(a)), this.animator.kill_0()) : b || this.triggerFinishCallbacks_0(); else { var d = this.value; this.value = a; this.animator.isRunning_0() && ((d = this.animator.getValue_0()), this.animator.killAndTrigger_1(b)); b ? this.setText_1(this.getFormatter_0().format_1(a)) : (null != this.soundPlayer && null != this.sound && (this.endposition > this.startposition && this.endposition > this.restartposition ? this.soundPlayer.startLooped_4(this.sound, this.startposition, this.endposition, this.restartposition) : this.soundPlayer.start_1(this.sound)), this.animator.init_3(d, a, this.time), this.animator.start_0()); } }, setValue_1: function (a) { this.setValue_2(a, !1); }, setText_1: function (a) { null != this.prefix ? null != this.suffix ? GT1123.prototype.setText_1.call(this, "" + this.prefix + a + this.suffix) : GT1123.prototype.setText_1.call(this, "" + this.prefix + a) : null != this.suffix ? GT1123.prototype.setText_1.call(this, "" + a + this.suffix) : GT1123.prototype.setText_1.call(this, a); this.triggerUpdateCallbacks_0(); }, }, "GT1410", [GT1231] ), GT1479 = GT334.extend( { initialConstructor_0: function () { this.game = this.commandDecoders = this.situationDecoders = this.situationDecoderTable = null; this.waitingForServerResponse = this.blocking = !1; this.waitingForServerResponseTimeout = 0; this.remoteControllerKeyboard = this.remoteController = this.wrapperCommunicator = this.guiState = this.casinoState = this.gui = this.slotSkin = null; this.gameGuiCreated = !1; this.ccyFormatter = this.flipScreenEventTranslator = this.goMobileEventTranslator = this.externalGameOverlayDecorators = this.externalLobbyDecorators = this.externalSlotDecorators = this.slotConfiguration = null; GT334.prototype.initialConstructor_0.call(this); this.waitingForServerResponse = this.blocking = !1; this.waitingForServerResponseTimeout = -1; this.situationDecoderTable = new java_util_JavaScriptHashtable(); this.situationDecoders = new java_util_JavaScriptVector(); this.commandDecoders = new java_util_JavaScriptVector(); this.gameGuiCreated = !1; this.externalGameOverlayDecorators = this.externalLobbyDecorators = this.externalSlotDecorators = this.slotConfiguration = null; this.setSkinManagerFactory_1(new GT1228()); }, version_0: function () { return GT1479.prototype.versionString; }, slotVersion_0: function () { return this.clientVersion_0(); }, checkIfSkinEntryIsModifier_1: function (a) { return a.equals_1("doublescreen") || a.equals_1("playingcards") || a.equals_1("mobile") || a.equals_1("noautoplay") || a.equals_1("starvegas") ? !0 : GT334.prototype.checkIfSkinEntryIsModifier_1.call(this, a); }, getSlotGame_0: function () { GT1650.prototype.assertExp_2(null != this.game, "Slot game object mustn't be null!"); return this.game; }, getSlotGui_0: function () { return this.gui; }, getParameter_1: function (a) { if ("1".equals_1(GT334.prototype.getParameter_1.call(this, "freeSpinsMode"))) { if (a.equals_1("settext_console_beforespintext")) return this.getSkinManager_0().getText_1("${console_whilespintext}"); if (a.equals_1("autopayin")) return "1"; } return GT334.prototype.getParameter_1.call(this, a); }, getConsoleFonts_0: function () { return GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.getSkinManager_0().getDeviceType_0()) ? this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && this.isScreenRotationEnabled_0() ? new GT689() : new GT1109() : new GT1059(); }, getConsoleColorSet_0: function () { return new GT971(); }, getConsoleTheme_0: function () { return new GT972(this.getConsoleFonts_0(), this.getConsoleColorSet_0()); }, getDeviceStrategy_0: function () { return GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.getSkinManager_0().getDeviceType_0()) ? this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && this.isScreenRotationEnabled_0() ? new GT857(this.getConsoleTheme_0()) : "1".equals_1(this.getParameter_1("iphone")) && "800".equals_1(this.getParameter_1("deviceres")) && !"EMBEDDED".equals_1(this.getParameter_1("BUILDTYPE")) ? new GT544(this.getConsoleTheme_0()) : new GT1269(this.getConsoleTheme_0()) : new GT1227(this.getConsoleTheme_0()); }, getFreeSpinOffset_0: function () { return 0; }, doStart_0: function () { GT514.prototype.createInstance_1(this); null != this.slotConfiguration && this.slotConfiguration.initialize_0(); GT334.prototype.doStart_0.call(this); GT1479.prototype.LOG.log_1("Slot client v2 " + this.version_0() + " - " + this.slotVersion_0() + " started"); this.slotSkin = this.createSlotSkin_0(); this.decorateSlotSkin_1(this.slotSkin); this.addGameLayoutDecorators_2(this.slotSkin, this.getParameter_1("layout")); if (null != this.externalSlotDecorators) for (var a = 0; a < this.externalSlotDecorators.length; a++) this.slotSkin.addDecorator_1(this.externalSlotDecorators[a]); if (null != this.externalLobbyDecorators) for (a = 0; a < this.externalLobbyDecorators.length; a++) this.getLobbySkin_0().addDecorator_1(this.externalLobbyDecorators[a]); if (null != this.externalGameOverlayDecorators) for (a = 0; a < this.externalGameOverlayDecorators.length; a++) this.getGameOverlaySkin_0().addDecorator_1(this.externalGameOverlayDecorators[a]); this.isUiNeonEnabled_0() && this.getGameOverlaySkin_0().addDecorator_1(new GT626(0)); this.casinoState = new GT1467(this); a = this.getEventDispatcher_0(); null != a && (a.registerHandlerForMultipleEvents_2([GT1446.prototype.BACK], new GT914(this)), a.registerHandler_2(GT1371.prototype.SCREENSIZE_CHANGED, new GT594(this))); if (null != this.getParameter_1("mobile") && this.getParameter_1("mobile").equals_1("1")) (a = new GT672()), this.getEventDispatcher_0().registerHandler_2(GT1387.prototype.BUTTON_CLICKED, a), a.setApplet_1(this); else if ("1".equals_1(this.getParameter_1("html5")) || "1".equals_1(this.getParameter_1("onebutton"))) (a = new GT421()), this.getEventDispatcher_0().registerHandler_2(GT1387.prototype.BUTTON_CLICKED, a), a.setApplet_1(this); }, setSlotConfiguration_0: function () { var a; a = null != this.getParameter_1("mobile") && this.getParameter_1("mobile").equals_1("1") ? new GT677(this, this) : null != this.getParameter_1("onebutton") && this.getParameter_1("onebutton").equals_1("1") ? new GT529(this, this) : new GT627(this, this); a.initialize_0(); a.setUsingDynScreensLayout_1(this.isUsingDynScreensLayout_0()); this.isUiNeonEnabled_0() && instanceOf(a, GT627) && (a.setShowClock_1(!1), a.setClockShow_1(!1)); this.setSlotConfiguration_1(a); this.updateDesignedSize_0(); }, doStop_0: function () { GT334.prototype.doStop_0.call(this); this.slotSkin = this.casinoState = null; GT514.prototype.destroy_0(); this.isUiNeonEnabled_0() && GT1389.prototype.destroy_0(); }, decorateSlotSkin_1: function (a) { null == this.slotConfiguration && this.setSlotConfiguration_0(); this.slotConfiguration.decorateSlotSkin_1(a); this.updateDesignedSize_0(); this.addGameDecorators_1(a); }, updateDesignedSize_0: function () { this.slotConfiguration.setLayoutDesignedWidth_1(this.getLobbySkin_0().layoutDesignedWidth_0()); this.slotConfiguration.setLayoutDesignedHeight_1(this.getLobbySkin_0().layoutDesignedHeight_0()); }, createSlotSkin_0: function () { return new GT1600(); }, addGameDecorators_1: function (a) {}, addLobbyDecorators_1: function (a) { GT334.prototype.addLobbyDecorators_1.call(this, a); this.addLobbyLayoutDecorators_2(this.getLobbySkin_0(), this.getParameter_1("layout")); null == this.slotConfiguration && this.setSlotConfiguration_0(); this.slotConfiguration.decorateCasinoLobbySkin_1(a); this.isUiNeonEnabled_0() && a.addDecorator_1(new GT1074(GT558.prototype.ORDER_AFTER_GAME, this.getConsoleTheme_0())); this.isScreenRotationEnabled_0() && this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && a.addDecorator_1(new GT945()); this.updateDesignedSize_0(); }, addGameLayoutDecorators_2: function (a, b) { null == b || this.getSkinManager_0().hasSkinId_1("thinclient") || b.equals_1("default") || (b.equals_1("restricted") ? a.addDecorator_1(new GT288(GT558.prototype.ORDER_AFTER_GAME, this.isUsingDynScreensLayout_0())) : b.equals_1("terminal") ? a.addDecorator_1(new GT327(GT558.prototype.ORDER_AFTER_GAME, this.getVisibleArea_0())) : b.equals_1("vipterminal") && a.addDecorator_1(new GT247(GT558.prototype.ORDER_AFTER_GAME, this.getVisibleArea_0()))); }, addLobbyLayoutDecorators_2: function (a, b) { null == b || this.getSkinManager_0().hasSkinId_1("thinclient") || b.equals_1("default") || b.equals_1("restricted") || (b.equals_1("terminal") ? a.addDecorator_1(new GT191(GT558.prototype.ORDER_AFTER_GAME)) : b.equals_1("vipterminal") && a.addDecorator_1(new GT147(GT558.prototype.ORDER_AFTER_GAME))); }, setExternalDecorators_3: function (a, b, d) { this.externalSlotDecorators = a; this.externalLobbyDecorators = b; this.externalGameOverlayDecorators = d; }, afterResourcesLoaded_0: function () { GT334.prototype.afterResourcesLoaded_0.call(this); }, loadResources_0: function () { if (this.isUiNeonEnabled_0() || this.isUiNeonWrapperOnlyEnabled_0()) GT1389.prototype.createInstance_2(this.getDeviceStrategy_0(), this.getSkinManager_0()), this.isUiNeonEnabled_0() && GT1389.prototype.getInstance_0().getDeviceStrategy_0().loadResources_0(); GT334.prototype.loadResources_0.call(this); this.doLoadResources_0(); this.getSkinManager_0().getResourceManager_0().startLoadFont_3("arial", !0, !1); }, initAfterGameGuiCreation_0: function () {}, createGameGUI_0: function () { GT334.prototype.createGameGUI_0.call(this); this.createOrResetGameGUI_1(null); }, createOrResetGameGUI_1: function (a) { var b = null != a; this.waitingForServerResponse = this.gameGuiCreated = !1; this.waitingForServerResponseTimeout = -1; var d = new GT1437(this.containerGame); b && (this.game.getSlotEventManager_0().clear_0(), this.game.destroy_0(), this.guiState.destroy_0(), this.gui.destroy_0(), this.getSoundPlayer_0().stopAll_1(this.getSoundPlayer_0().isActive_0() ? 200 : 0), null != this.wrapperCommunicator && this.wrapperCommunicator.reset_0(), d.reorder_1(!1)); if (this.isUiNeonEnabled_0()) { null == GT1389.prototype.getInstance_0() && GT1389.prototype.createInstance_2(this.getDeviceStrategy_0(), this.getSkinManager_0()); if (!b) { var e = new GT1437(this.containerAboveGame); e.setApplicationID_1(GT642.prototype.ID_CONSOLE_NEON); e.reorder_1(!1); GT1389.prototype.getInstance_0().setGameConsoleContainer_1(e); } GT1389.prototype.getInstance_0().setMainGuiContainer_1(d); } this.guiState = new GT907(); e = new GT1110(this.getEventDispatcher_0()); this.wrapperCommunicator = new GT1363(this); e.addSlotListener_1(this.wrapperCommunicator); b || ((a = this.createSlotState_1(this.casinoState)), a.setClientVersion_1(this.clientVersion_0())); a.setTimeToWaitAfterCollect_1(this.getIntParameter_2("timetowaitaftercollect", 0)); instanceOf(this.getSkinManager_0(), GT1547) && this.getSkinManager_0().setSlotState_1(a); this.game = this.createSlotGame_4(this, a, this.guiState, e); this.guiState.setSlotGame_1(this.game); this.setInitialBetSettingsInSlotGame_1(this.game); e.addSlotListener_1(this.game); e.addSlotListener_1(new GT859(this)); e.addSlotListener_1(new GT645(this)); this.game.setGameWrapperInterfaceCaller_1(this.getGameWrapperInterfaceCaller_0()); b || (e.addSlotListener_1(new GT402(this)), e.addSlotListener_1(new GT915(this.getAppMeasurementClient_0(), this.getSlotGame_0().getSlotState_0()))); this.ccyFormatter = b ? new GT414(this, this.getSessionCurrency_0(), this.getSessionCurrencyFactor_0()) : new GT414(this, this.getPlayerAttribute_2("CURRENCY", ""), GT1672.prototype.stringToDouble_1(this.getPlayerAttribute_2("CURRENCYFACTOR", "100.0"))); null != GT1389.prototype.getInstance_0() && GT1389.prototype.getInstance_0().setFormatter_1(this.ccyFormatter); this.gui = this.createSlotGui_8(this.game.getSlotState_0(), this.slotSkin, d, this.getTimer_0(), this.guiState, e, this.getSkinManager_0(), this.ccyFormatter); this.gui.setGameWrapperInterfaceCaller_1(this.getGameWrapperInterfaceCaller_0()); this.remoteController = new GT1513(e, this.game, this.gui); this.remoteControllerKeyboard = new GT1094(e, this.game, this.gui); this.remoteControllerKeyboard.setFilter_1(this.createRemoteControllerKeyboardFilter_0()); null != this.getGameWrapperInterface_0() && (this.getGameWrapperInterface_0().clearActionListeners_0(), this.getGameWrapperInterface_0().addActionListener_1(new GT960(this)), this.getGameWrapperInterface_0().addActionListener_1(this.remoteController), this.addARMSToWrapperInterfaceCallback_0()); this.gui.setDeviceScreen_1(this.getDeviceScreen_0()); this.gui.setCanvasRendererFlag_1(this.isCanvasRenderer_0()); this.gui.setInSilentMode_1(!this.isMusicActive_0()); this.gui.initGuiStates_0(); this.game.initClientStates_0(); this.game.initSituationDecoders_0(); this.game.initCommandDecoders_0(); this.configurePixelSnapping_0(); this.initSlotValues_0(); b || ((b = this.getEventDispatcher_0()), null != b && ((this.goMobileEventTranslator = new GT363(e)), b.registerHandler_2(GT1387.prototype.BUTTON_CLICKED, this.goMobileEventTranslator), (this.flipScreenEventTranslator = new GT305(e)), b.registerHandler_2(GT1387.prototype.BUTTON_CLICKED, this.flipScreenEventTranslator))); this.createSlotConsole_1(this.gui); this.isUiNeonEnabled_0() && !this.isReplayDialogOpen_0() && this.startWithSound_0() && this.isRestoreSoundAtReconnect_0() && !this.getSoundPlayer_0().isActive_0() && this.getSoundPlayer_0().setActive_1(!0); this.setRestoreSoundAtReconnect_1(!1); this.initAfterGameGuiCreation_0(); this.gameGuiCreated = !0; }, createRemoteControllerKeyboardFilter_0: function () { return null; }, configurePixelSnapping_0: function () { var a = this.slotSkin.reelLayout_0().create_0(), b = Math.div(a.columns, 2), d = Math.div(a.rows, 2), e = 1 < a.columns ? a.getColumnPos_1(b + 1) - a.getColumnPos_1(b) : a.symbolWidth + 1, f = 1 < a.rows ? a.getRowPos_1(d + 1) - a.getRowPos_1(d) : a.symbolHeight + 1, b = this.slotSkin.getInnerMainGuiX_0() + this.slotSkin.getReelX_0() + a.getColumnPos_1(b), a = this.slotSkin.getReelY_0() + a.getRowPos_1(d); this.setPixelSnapping_4(b, a, b + e, a + f); }, initSlotValues_0: function () { var a = this.game.getSlotState_0().getDefinition_0(), b = this.getPlayerAttribute_2("PAYOUTRATE", null); this.getBooleanParameter_2("paytable.payoutrate.show", !0) || (b = null); if (null != b) { var d = GT1677.prototype.toLowerCaseAZ_1(this.getPlayerAttribute_2("CCODE", "")), d = this.getCommaSeperatorFor_1(d), e = this.skin.getString_1("cursymbolseperator"), b = GT1677.prototype.replaceInString_3(b, ".", d), b = GT1677.prototype.replaceInString_3(b, "%", e + "%"), f = this.getParameter_1("slotdefinition.RTPlowerBound"); null != f && 0 < f.length_0() && ((f = GT1677.prototype.replaceInString_3(f, ".", d)), (f = GT1677.prototype.replaceInString_3(f, "%", e + "%")), (b = f + " - " + b)); } a.setTheoreticalRTP_1(b); 0 != this.getJackpotCalculator_0().getContribution_0() && ((b = "" + GT1677.prototype.getRoundedValue_2(100 * this.getJackpotCalculator_0().getContribution_0(), 3)), null != b && ((d = GT1677.prototype.toLowerCaseAZ_1(this.getPlayerAttribute_2("CCODE", ""))), (d = this.getCommaSeperatorFor_1(d)), (e = this.skin.getString_1("cursymbolseperator")), (b = GT1677.prototype.replaceInString_3(b, ".", d)), (b = GT1677.prototype.replaceInString_3(b, "%", e + "%"))), a.setShowJackpotContribution_1(this.getJackpotCalculator_0().isShowJackpotContribution_0()), a.setJackpotContribution_1(b)); b = this.getParameter_1("minimumroundduration"); null != b && ((b = GT1672.prototype.stringToInt_1(b)), a.setMinimumRoundDuration_1(b)); (1 == this.getIntParameter_2("fastspin", 0) || this.getSkinManager_0().hasSkinId_1("skyvegas")) && this.game.getSlotState_0().setFastSpinEnabled_1(!0); this.game.getSlotState_0().setStopAutoplayAtFeatureScreens_1(this.getBooleanParameter_2("stopautoplayatfeaturescreens", !0)); this.game.getSlotState_0().getFreeSpinState_0().setForceAutoplayInFreeGames_1(this.getBooleanParameter_2("forceautoplayinfreegames", !1)); a = this.getIntParameter_2("autoplaymeter", 0); 0 < a && this.game.getSlotState_0().setAutoplayMeterStep_1(a); this.game.getSlotState_0().setWaitingForCollect_1(this.getBooleanParameter_2("waitforcollect", !1)); a = this.getPlayerAttribute_2("FORCEINTEGERWINSANDBETS", ""); null != a && (a.equals_1("1") || a.equals_1("yes") || a.equals_1("true") || a.equals_1("TRUE")) && this.game.getSlotState_0().setForceIntegerWinsAndBets_1(!0); this.game.getSlotState_0().setFreeRoundsMode_1("1".equals_1(this.getParameter_1("freeSpinsMode"))); this.game.getSlotState_0().setPaytableNextForWrapper_1(this.getBooleanParameter_2("paytablenextforwrapper", !1)); this.game.getSlotState_0().setGameModeAsBet_1(this.getBooleanParameter_2("gamemodeasbet", !1)); }, deleteGameGUI_0: function () { if ("1".equals_1(this.getParameter_1("freeSpinsMode")) && null != this.game && null != this.game.getSlotState_0() && null != this.game.getSlotEventManager_0()) { var a; a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FREEROUNDSFINISHED, "" + this.getSlotGame_0().getSlotState_0().getFreeRoundsWinnings_0()); this.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(a); a = GT1242.prototype.getWrapperEventTables_1(GT697.prototype.EVENT_FREEROUNDSFINISHED); a.getValueTable_0().put_2(GT697.prototype.EVENT_ENTRY_SUMWINNINGS, new Double(this.getSlotGame_0().getSlotState_0().getFreeRoundsWinnings_0())); GT1242.prototype.fireWrapperStateEvent_2(this.getSlotGame_0().getGameWrapperInterfaceCaller_0(), a.getMainTable_0()); } this.setBlocking_1(!1); null != this.getSoundPlayer_0() && this.getSoundPlayer_0().stopAll_0(); a = this.getEventDispatcher_0(); null != a && (a.unregisterHandler_1(this.goMobileEventTranslator), a.unregisterHandler_1(this.flipScreenEventTranslator)); null != GT514.prototype.getInstance_0() && null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && (GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().destroyConsole_0(), GT514.prototype.getInstance_0().setGUISlotConsoleNeon_1(null), null != GT1389.prototype.getInstance_0() && GT1389.prototype.getInstance_0().setGameConsole_1(null)); null != this.game && (this.game.getSlotEventManager_0().clear_0(), this.game.destroy_0(), (this.game = null)); null != this.guiState && (this.guiState.destroy_0(), (this.guiState = null)); null != this.gui && (this.gui.destroy_0(), (this.gui = null)); null != this.wrapperCommunicator && this.wrapperCommunicator.reset_0(); this.getSkinManager_0().setSlotState_1(null); GT334.prototype.deleteGameGUI_0.call(this); }, updateGameGUI_0: function () { GT334.prototype.updateGameGUI_0.call(this); null != this.game && this.game.newGameSituation_0(); null != this.getSlotGui_0() && null != this.getSlotGui_0().getSlotConsole_0() && this.getSlotGui_0().getSlotConsole_0().alignElements_2(this.getVisibleArea_0().x, this.getVisibleArea_0().width); }, resetGameGUI_0: function () { GT334.prototype.resetGameGUI_0.call(this); if (this.isConnected_0()) { var a = this.createSlotState_1(this.casinoState); a.setAutoPlayLimit_1(this.game.getSlotState_0().getAutoPlayLimit_0()); a.setClientVersion_1(this.clientVersion_0()); this.transferDataToNewSlotState_2(this.game.getSlotState_0(), a); this.resetGameGUIWithState_1(a); } }, transferDataToNewSlotState_2: function (a, b) {}, resetGameGUIWithState_1: function (a) { this.createOrResetGameGUI_1(a); }, notifyActivePlayer_0: function () { GT334.prototype.notifyActivePlayer_0.call(this); if (null != this.game) { var a = this.game.getSlotState_0(); this.resetGameGUIWithState_1(a); } }, modifyLobbyTableText_1: function (a) { var b = a, d = 0, e = 100, f = a.indexOf_1(32), g = 0 > f ? -1 : a.indexOf_2(32, f + 1); 0 <= f && 0 <= g && ((b = a.substring_2(0, f)), (d = GT1672.prototype.stringToDouble_1(a.substring_2(f + 1, g))), (e = GT1672.prototype.stringToDouble_1(a.substring_1(g + 1)))); f = this.getSkinManager_0().getText_1("${lobby_payouttext}"); g = f.indexOf_1("#0"); a = f.substring_2(0, g); f = f.substring_2(g + 2, f.length_0()); return "" + a + this.getMoneyString_5(d, b, 1 != e, 1 == e, !0) + f; }, createSlotState_1: function (a) { return new GT1649(a); }, createSlotGame_4: function (a, b, d, e) { return new GT1658(a, b, d, e); }, createSlotGui_8: function (a, b, d, e, f, g, k, m) { return new GT1618(a, b, d, e, f, g, k, m); }, createSlotConsole_1: function (a) { this.isUiNeonEnabled_0() ? null == GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() ? GT514.prototype.getInstance_0().setGUISlotConsoleNeon_1(this.getSlotConsoleNeon_0()) : GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().reinitConsole_0() : this.isUiNeonWrapperOnlyEnabled_0() ? null == GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() ? GT514.prototype.getInstance_0().setGUISlotConsoleNeon_1(this.getSlotConsoleNeonWrapperOnly_0()) : GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().reinitConsole_0() : GT1479.prototype.LOG.log_1("UI Neon is NOT enabled. ( 'consoleenabled': " + this.getParameter_1("consoleenabled")); }, getSlotConsoleNeon_0: function () { return new GT642(); }, getSlotConsoleNeonWrapperOnly_0: function () { return new GT225(); }, getSlotSkin_0: function () { return this.slotSkin; }, setPropertyImpl_2: function (a, b) { GT334.prototype.setPropertyImpl_2.call(this, a, b); (GT1677.prototype.equalsIgnoreCaseAZ_2(a, GT697.prototype.KEY_OVERRIDE_MAXBET) || GT1677.prototype.equalsIgnoreCaseAZ_2(a, GT697.prototype.KEY_OVERRIDE_MINBET)) && this.notifyPropertyChangedImpl_2(GT697.prototype.KEY_EXTERNALLOGGING, "ClientSlotApplet.setPropertyImpl(" + a + "," + b + ")"); null != this.game && null != this.remoteController && this.game.getSlotState_0().getCasinoState_0().isActivePlayer_0() && this.remoteController.notifyEvent_2(a, b); }, toggleMusicActive_0: function () { GT334.prototype.toggleMusicActive_0.call(this); this.gui.setInSilentMode_1(!this.isMusicActive_0()); }, keyPressed_3: function (a, b, d) { var e = GT334.prototype.keyPressed_3.call(this, a, b, d); if (e) return !0; if (null != this.containerGame && this.containerGame.isAlive_0() && null == a && !b.equals_1("control") && !b.equals_1("shift") && null != this.gui && this.game.getSlotState_0().getCasinoState_0().isActivePlayer_0()) { a = this.getSlotGui_0().getSlotConsole_0().getCustomConsoles_0(); for (var f = null, g = 0; g < a.size_0(); g++) if (instanceOf(a.get_1(g), GT211)) { f = a.get_1(g); break; } if (null == f) { if (((b = this.remoteControllerKeyboard.getEvent_2(b, d)), (b = GT1677.prototype.tokenize_2(b, ":")), null != b && 1 <= b.length)) return this.remoteControllerKeyboard.notifyEvent_2(b[0], 1 < b.length ? b[1] : null), !0; } else f.notifyInputEvent_1(b); } return e; }, interpretInputPattern_1: function (a) { if (GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("INPUT:")) { if (((a = GT1677.prototype.tokenize_2(a, ":")), 1 < a.length)) { var b = null; 3 == a.length && (b = a[2]); this.setPropertyImpl_2(a[1], b); } } else GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("ACTION:") ? ((a = a.substring_1(7)), (a = GT1678.prototype.deserializeObject_1(a)), null != a && (this.remoteController.notifyAction_1(a), this.notifyAction_1(a))) : GT1677.prototype.toUpperCaseAZ_1(a).equals_1("FPSCOUNTER") ? this.activateFPSCounter_0() : GT1677.prototype.toUpperCaseAZ_1(a).startsWith_1("ACTION:") ? ((a = a.substring_1(7)), (a = GT1678.prototype.deserializeObject_1(a)), null != a && (this.remoteController.notifyAction_1(a), this.notifyAction_1(a))) : GT334.prototype.interpretInputPattern_1.call(this, a) || this.triggerCheat_1(a); return !0; }, activateFPSCounter_0: function () { var a = this.containerGame.findDescendant_1(GT1618.prototype.REELS), b = this.getSkinManager_0().getResourceManager_0().getFont_6("arial", !0, !1, 0, 120, 0); new GT1420(this.containerGame, a.getAbsoluteX_0(), a.getAbsoluteY_0(), 40, 20, GT1634.prototype.black, GT1634.prototype.white, b, this.getTimer_0()); }, isUsingDynScreensLayout_0: function () { return !1; }, triggerCheat_1: function (a) { a = GT1677.prototype.toUpperCaseAZ_1(a).trim_0(); 0 < a.length_0() && this.sendCommand_1(new GT993(a)); }, fullscreenModeChanged_0: function () { GT334.prototype.fullscreenModeChanged_0.call(this); null != this.getSlotGui_0() && this.getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.DUMMY_TRIGGER_CONSOLE_UPDATE)); }, processPacket_2: function (a, b) { GT334.prototype.processPacket_2.call(this, a, b); for (var d = this.commandDecoders.size_0(), e = 0; e < d; e++) this.commandDecoders.elementAt_1(e).getTag_0() == a && this.commandDecoders.elementAt_1(e).decode_1(b); }, decodeGameSituation_1: function (a) { GT334.prototype.decodeGameSituation_1.call(this, a); for (var b = this.situationDecoders.size_0(), d = 0; d < b; d++) this.situationDecoders.elementAt_1(d).init_0(); for (d = 0; d < a.length; d++) { var e = a[d], f = GT1677.prototype.getFromCommaSeperatedList_2(e, 0), f = this.situationDecoderTable.get_1(f); if (null != f) for (var g = 0; g < f.size_0(); g++) f.get_1(g).decode_1(e); } for (d = 0; d < b; d++) this.situationDecoders.elementAt_1(d).refresh_0(); (this.ccyFormatter.getCurrencySymbol_0().equals_1(this.getSessionCurrency_0()) && this.ccyFormatter.getCurrencyFactor_0() == this.getSessionCurrencyFactor_0()) || this.ccyFormatter.update_2(this.getSessionCurrency_0(), this.getSessionCurrencyFactor_0()); }, notifySessionTicketsUpdated_0: function () { GT334.prototype.notifySessionTicketsUpdated_0.call(this); this.game.notifySessionTicketsUpdated_0(); }, notifyPlayerAttributesChanged_0: function () { GT334.prototype.notifyPlayerAttributesChanged_0.call(this); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.PLAYER_ATTRIBUTES_CHANGED)); }, notifyRoundFinished_0: function () { GT334.prototype.notifyRoundFinished_0.call(this); this.game.notifyRoundFinished_0(); }, updateJackpotFactor_0: function () { GT334.prototype.updateJackpotFactor_0.call(this); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.JACKPOT_FACTOR_UPDATED)); }, updateJackpotFactor_2: function (a, b) { GT334.prototype.updateJackpotFactor_2.call(this, a, b); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.JACKPOT_FACTOR_UPDATED)); }, notifyModalDialogOpened_1: function (a) { GT334.prototype.notifyModalDialogOpened_1.call(this, a); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT426(GT1354.prototype.MODAL_DIALOG_OPENED, a)); this.applyGrayOutToMainContainer_1(!0); }, notifyModalDialogClosed_1: function (a) { GT334.prototype.notifyModalDialogClosed_1.call(this, a); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT426(GT1354.prototype.MODAL_DIALOG_CLOSED, a)); this.applyGrayOutToMainContainer_1(!1); }, applyGrayOutToMainContainer_1: function (a) { null != this.getSlotGui_0() && this.isUiNeonEnabled_0() && (a ? this.getSlotGui_0().getMainContainer_0().setColorTransformation_1(GT1063.prototype.GrayOut) : this.getSlotGui_0().getMainContainer_0().setColorTransformation_1(null)); }, sendCommand_1: function (a) { this.isActivePlayer_0() && this.sendPacket_2(GT1388.prototype.composePacket_2(a.getId_0(), a.getArguments_0()), a.expectsResponse_0()); }, doLoadResources_0: function () { this.getSlotSkin_0().loadAll_1(this.getSkinManager_0()); GT1441.prototype.set_0().name_1(GT1393.prototype.ARIAL).size_1(100).load_1(this.getDefaultResourceManager_0()); }, notifyConnectionLost_1: function (a) { GT334.prototype.notifyConnectionLost_1.call(this, a); a && this.setBlocking_1(!1); null != this.game && this.game.getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.CONNECTION_LOST)); }, isBlockingPackets_0: function () { return this.blocking || GT334.prototype.isBlockingPackets_0.call(this); }, addGameOverlayDecorators_1: function (a) { GT334.prototype.addGameOverlayDecorators_1.call(this, a); null == this.slotConfiguration && this.setSlotConfiguration_0(); this.slotConfiguration.decorateCasinoGameOverlaySkin_1(a); this.isUiNeonEnabled_0() && (this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && this.isScreenRotationEnabled_0() ? (a.addDecorator_1(new GT389(GT558.prototype.ORDER_AFTER_GAME, this.getConsoleTheme_0(), this.isUsingDynScreensLayout_0())), a.addDecorator_1(new GT209(GT558.prototype.ORDER_AFTER_GAME, this.getConsoleTheme_0(), this.getVisibleArea_0()))) : (a.addDecorator_1(new GT763(GT558.prototype.ORDER_AFTER_GAME, this.getConsoleTheme_0(), this.isUsingDynScreensLayout_0())), GT1563.prototype.DEVICETYPE_HANDHELD.equals_1(this.getSkinManager_0().getDeviceType_0()) && a.addDecorator_1(new GT463(GT558.prototype.ORDER_AFTER_GAME, this.getConsoleTheme_0(), this.getVisibleArea_0())))); this.updateDesignedSize_0(); }, getAppletParametersThatShouldBeRecorded_0: function () { var a = GT334.prototype.getAppletParametersThatShouldBeRecorded_0.call(this); this.addParameterIfNotNull_2(a, "autopayin"); this.addParameterIfNotNull_2(a, "autorebuy"); this.addParameterIfNotNull_2(a, "bigbutton"); this.addParameterIfNotNull_2(a, "biggamble"); this.addParameterIfNotNull_2(a, "bigmenubutton"); this.addParameterIfNotNull_2(a, "bigpaytable"); this.addParameterIfNotNull_2(a, "bottominset"); this.addParameterIfNotNull_2(a, "fastspin"); this.addParameterIfNotNull_2(a, "hasreplay"); this.addParameterIfNotNull_2(a, "hidecurrencysymbols"); this.addParameterIfNotNull_2(a, "minimumroundduration"); this.addParameterIfNotNull_2(a, "mobilegamble"); this.addParameterIfNotNull_2(a, "pmobileconsole"); this.addParameterIfNotNull_2(a, "screens"); this.addParameterIfNotNull_2(a, "showtextborders"); this.addParameterIfNotNull_2(a, "stopautoplayatfeaturescreens"); this.addParameterIfNotNull_2(a, "consoleenabled"); this.addParameterIfNotNull_2(a, "videosenabled"); return a; }, isBlocking_0: function () { return this.blocking; }, setBlocking_1: function (a) { this.blocking = a; this.updateGameOverlayButtons_0(); this.checkMaximumWinExceeded_0(); }, addSituationDecoder_1: function (a) { for (var b = a.decodedIds_0(), d = 0; d < b.length; d++) { var e = this.situationDecoderTable.get_1(b[d]); null == e && ((e = new java_util_JavaScriptVector()), this.situationDecoderTable.put_2(b[d], e)); e.add_1(a); } this.situationDecoders.addElement_1(a); }, addCommandDecoder_1: function (a) { this.commandDecoders.addElement_1(a); }, removeAllSituationDecoders_0: function () { this.situationDecoderTable.clear_0(); this.situationDecoders.setSize_1(0); }, removeAllCommandDecoders_0: function () { this.commandDecoders.setSize_1(0); }, setWaitingForServerResponse_1: function (a) { a && this.resetTimeOfLastSendPacket_0(); this.waitingForServerResponse = a; this.updateGameOverlayButtons_0(); }, isWaitingForServerResponse_0: function () { return GT334.prototype.isWaitingForServerResponse_0.call(this) || this.waitingForServerResponse; }, setWaitingForServerResponseTimeout_1: function (a) { this.waitingForServerResponseTimeout = a; }, getWaitingForServerResponseTimeout_0: function () { return -1 == this.waitingForServerResponseTimeout ? GT334.prototype.getWaitingForServerResponseTimeout_0.call(this) : this.waitingForServerResponseTimeout; }, getSlotConfiguration_0: function () { return this.slotConfiguration; }, setSlotConfiguration_1: function (a) { this.slotConfiguration = a; }, hasTooLittleMoneyToPlay_0: function () { var a = this.getSlotGui_0(); if (null == a) return GT334.prototype.hasTooLittleMoneyToPlay_0.call(this); a = a.getSlotState_0(); return null == a ? GT334.prototype.hasTooLittleMoneyToPlay_0.call(this) : this.hasOpenSession_0() ? a.hasInsufficientTicketsToContinuePlaying_0() : !0; }, hidePortraitmodeOverlay_1: function (a) { GT334.prototype.hidePortraitmodeOverlay_1.call(this, a); a != GT1371.prototype.ORIENTATION_PORTRAIT || null == this.game || !this.game.getSlotState_0().isAutoPlaying_0() || (this.game.getSlotState_0().getFreeSpinState_0().isForceAutoplayInFreeGames_0() && this.game.getSlotState_0().getFreeSpinState_0().isFreeSpinsRunning_0()) || this.getSlotGame_0().setAutoPlayMode_1(GT1658.prototype.AUTOSTOP_DEFAULT); }, notifyAction_1: function (a) { if (null != a && ((a = a.get_1(GT697.prototype.IDENTIFIER_ACTION)), null != a)) { var b = a.get_1("name"); GT697.prototype.ACTION_NAME_OVERRIDEMAXBET.equals_1(b) ? ((a = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), null != a && this.setOverrideMaxBet_1(Integer.truncate_1(a.doubleValue_0()))) : GT697.prototype.ACTION_NAME_OVERRIDEMINBET.equals_1(b) ? ((a = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), null != a && this.setOverrideMinBet_1(Integer.truncate_1(a.doubleValue_0()))) : GT697.prototype.ACTION_NAME_RECONNECT.equals_1(b) ? this.buttonReconnectClicked_0() : GT697.prototype.ACTION_NAME_DOSTOP.equals_1(b) ? this.doStop_0() : GT697.prototype.ACTION_NAME_PAUSERENDERING.equals_1(b) ? this.pauseRendering_0() : GT697.prototype.ACTION_NAME_RESUMERENDERING.equals_1(b) ? this.resumeRendering_0() : GT697.prototype.ACTION_NAME_REQUESTLEAVEGAME.equals_1(b) ? this.forwardButtonClick_1(GT307.prototype.ACTION_STOPGAME) : GT697.prototype.ACTION_NAME_RECONNECTWITHNEWLOGINTOKEN.equals_1(b) ? ((a = a.get_1(GT697.prototype.ACTION_ENTRY_LOGINTOKEN)), null != a && 0 < a.length_0() && (this.setLoginPasswort_1(a), GT1569.prototype.reloadWebPageIOS5_0() || (this.destroyFatalErrorDialog_0(), this.getTimer_0().triggerCallbackAfter_2(new GT1509(this, "startreconnect"), 100)))) : GT697.prototype.ACTION_NAME_STOPAUTOPLAYATROUNDFINISH.equals_1(b) ? null != this.getSlotGame_0() && this.getSlotGame_0().setStopAutoplayAtRoundFinish_1(!0) : GT697.prototype.ACTION_NAME_SOUND_OFF.equals_1(b) ? this.getSoundPlayer_0().isActive_0() && this.buttonSoundClicked_0() : GT697.prototype.ACTION_NAME_SOUND_ON.equals_1(b) ? this.getSoundPlayer_0().isActive_0() || this.buttonSoundClicked_0() : GT697.prototype.ACTION_NAME_MUSIC_OFF.equals_1(b) ? this.isMusicActive_0() && this.buttonMusicClicked_0() : GT697.prototype.ACTION_NAME_MUSIC_ON.equals_1(b) ? this.isMusicActive_0() || this.buttonMusicClicked_0() : GT697.prototype.ACTION_NAME_TOTALROUNDWIN.equals_1(b) && ((a = a.get_1(GT697.prototype.ACTION_ENTRY_VALUE)), null != a && null != this.getSlotGui_0() && null != this.getSlotGui_0().getSlotState_0() && this.getSlotGui_0().getSlotConsole_0().setTotalRoundWin_1(a.doubleValue_0())); } }, setInitialBetSettingsInSlotGame_1: function (a) { var b = this.getParameter_1("initialBetSettings"); if (null != b && ((b = GT1678.prototype.deserializeObject_1(b)), null != b)) { var d = b.get_1("initialBetSettings"); if (null != d) { var b = d.get_1("baseBet"), e = d.get_1("totalBet"), f = d.get_1("lines"), d = d.get_1("overrideMaxbet"); null != b && a.setInitialBaseBet_1(Integer.truncate_1(b.doubleValue_0())); null != e && a.setInitialTotalBet_1(Integer.truncate_1(e.doubleValue_0())); null != f && a.setInitialNumberOfLines_1(Integer.truncate_1(f.doubleValue_0())); null != d && a.setInitialOverrideMaxbet_1(Integer.truncate_1(d.doubleValue_0())); } } }, isConsoleDialogOpen_0: function () { return null == GT514.prototype.getInstance_0() ? !1 : GT514.prototype.getInstance_0().isConsoleDialogOpen_0(); }, appletSizeChanged_0: function () { GT334.prototype.appletSizeChanged_0.call(this); null != GT514.prototype.getInstance_0() && null != GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0() && GT514.prototype.getInstance_0().getGUISlotConsoleNeon_0().setVisibleArea_1(this.getVisibleArea_0()); }, updateGameOverlayButtons_0: function () { GT334.prototype.updateGameOverlayButtons_0.call(this); this.isUiNeonEnabled_0() && null != this.getSlotGui_0() && this.getSlotGui_0().getSlotEventManager_0().fireSlotEvent_1(new GT682("updateGameOverlayButtons", !0)); }, isUiNeonEnabled_0: function () { var a = this.getParameter_1("consoleenabled"), b = null != this.getSkinManager_0() ? this.getSkinManager_0().hasSkinId_1("thinclient") : !1; return (null == a || 1 == GT1672.prototype.stringToInt_1(a) || "true".equals_1(a)) && !b; }, isUiNeonWrapperOnlyEnabled_0: function () { var a = this.getParameter_1("ui.neon.wrapperonly"), a = null != a && (a.equals_1("1") || a.equals_1("true")); return !this.isUiNeonEnabled_0() && a; }, isScreenRotationPossible_0: function () { return GT334.prototype.isScreenRotationPossible_0.call(this) && this.gameGuiCreated && null != this.getSlotGui_0(); }, isScreenRotationEnabled_0: function () { return GT334.prototype.isScreenRotationEnabled_0.call(this) && this.isUiNeonEnabled_0() && this.getSkinManager_0().getDeviceType_0().equals_1(GT1563.prototype.DEVICETYPE_HANDHELD); }, isOpenDisableGamblingDialogAppropriate_0: function () { return GT334.prototype.isOpenDisableGamblingDialogAppropriate_0.call(this) && !GT514.prototype.getInstance_0().isGambleDisabledServerOrClientSide_0(); }, isSingleButtonGambling_0: function () { return instanceOf(this.getSlotGui_0().getSkin_0().gamble_0(), GT581); }, }, "GT1479", [GT1484] ), GT914 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, handleLogicEvent_1: function (a) { return a.getId_0() == GT1446.prototype.BACK && this.applet.getSlotGame_0().getSlotState_0().isPaytableOpen_0() ? (this.applet.getSlotGame_0().getSlotEventManager_0().fireSlotEvent_1(new GT1354(GT1354.prototype.PAYTABLE)), !0) : !1; }, }, "GT914", [GT1010] ), GT859 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.START_REPLAY && this.applet.forwardButtonClick_1(GT307.prototype.ACTION_OPENREPLAY); }, }, "GT859", [GT922] ), GT645 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.REQUEST_LEAVEGAME && this.applet.requestLeaveGame_0(); }, }, "GT645", [GT922] ), GT402 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, newSlotEvent_1: function (a) { a.getId_0() == GT1354.prototype.OVERRIDE_MAXBET ? this.applet.setOverrideMaxBet_1(a.getOverrideMaxBetValue_0()) : a.getId_0() == GT1354.prototype.IGNORE_OVERRIDE_MAXBET ? this.applet.setIgnoreOverrideMaxBet_1(a.getIgnoreOverrideMaxBet_0()) : a.getId_0() == GT1354.prototype.OVERRIDE_MINBET ? this.applet.setOverrideMinBet_1(a.getOverrideMinBetValue_0()) : a.getId_0() == GT1354.prototype.IGNORE_OVERRIDE_MINBET && this.applet.setIgnoreOverrideMinBet_1(a.getIgnoreOverrideMinBet_0()); }, }, "GT402", [GT922] ), GT363 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, handleButtonEvent_1: function (a) { a.getSender_0().getApplicationID_0() == GT834.prototype.ID_BUTTON_GOMOBILE && ((a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_GOMOBILE, "", !0)), this.slotEventManager.fireSlotEvent_1(a)); return !1; }, }, "GT363", [GT962] ), GT305 = Class.extend( { initialConstructor_0: function () { this.slotEventManager = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.slotEventManager = null; this.slotEventManager = a; }, handleButtonEvent_1: function (a) { a.getSender_0().getApplicationID_0() == GT834.prototype.ID_BUTTON_FLIP_SCREEN && ((a = new GT1354(GT1354.prototype.FLIP_SCREEN)), this.slotEventManager.fireSlotEvent_1(a), (a = new GT981(GT1354.prototype.WRAPPER, GT981.prototype.KEY_FLIPSCREEN, "", !0)), this.slotEventManager.fireSlotEvent_1(a)); return !1; }, }, "GT305", [GT962] ), GT594 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, handleScreenEvent_1: function (a) { GT1650.prototype.assertExp_2(null != this.applet, "ClientSlotApplet mustn't be null when calling handleScreenEvent(ScreenEvent) method in ClientSlotAppletScreenEventHandler"); null != this.applet && null != this.applet.getSlotGui_0() && null != this.applet.getSlotGui_0().getSlotConsole_0() && this.applet.getSlotGui_0().getSlotConsole_0().alignElements_2(a.getVisibleAreaX_0(), a.getVisibleAreaWidth_0()); return !1; }, }, "GT594", [GT961] ), GT915 = Class.extend( { initialConstructor_0: function () { this.slotState = this.appmeasurement = null; this.firstLineChange = this.firstBetChange = this.mustChangeBet = this.startButtonPressed = !1; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.slotState = this.appmeasurement = null; this.firstLineChange = this.firstBetChange = this.mustChangeBet = this.startButtonPressed = !1; this.appmeasurement = a; this.slotState = b; this.firstLineChange = this.firstBetChange = this.mustChangeBet = this.startButtonPressed = !1; }, newSlotEvent_1: function (a) { var b = a.getId_0(); b == GT376.prototype.CONSOLESTATE_CHANGED && instanceOf(a, GT376) ? a.getConsoleState_0().getStateId_0() == GT725.prototype.BEFORE_SPIN_MUST_CHANGE_BET || a.getConsoleState_0().getStateId_0() == GT725.prototype.PAYTABLE_MUST_CHANGE_BET ? (this.mustChangeBet = !0) : (this.mustChangeBet = !1) : b == GT1354.prototype.STARTSPIN && instanceOf(a, GT885) && a.getTrigger_0() == GT885.prototype.TRIGGER_BUTTON && !a.isAcceleration_0() ? (this.appmeasurement.addOmnitureEvent_1(67), (this.startButtonPressed = !0)) : b == GT1354.prototype.STARTSPIN && instanceOf(a, GT885) && a.getTrigger_0() == GT885.prototype.TRIGGER_AUTOPLAY && !a.isAcceleration_0() ? (this.appmeasurement.addOmnitureEvent_1(68), (this.startButtonPressed = !0)) : b == GT1354.prototype.STARTSPIN && instanceOf(a, GT885) && a.getTrigger_0() == GT885.prototype.TRIGGER_EXTERNAL && !a.isAcceleration_0() ? (this.appmeasurement.addOmnitureEvent_1(69), (this.startButtonPressed = !0)) : b == GT1354.prototype.PAYTABLE ? this.appmeasurement.addOmnitureEvent_1(70) : b == GT1354.prototype.PAYTABLE_NEXT ? this.appmeasurement.addOmnitureEvent_1(71) : b == GT1354.prototype.GAMBLE ? this.appmeasurement.addOmnitureEvent_1(72) : b == GT1354.prototype.GAMBLE_RED ? this.appmeasurement.addOmnitureEvent_1(73) : b == GT1354.prototype.COLLECT ? this.appmeasurement.addOmnitureEvent_1(74) : b == GT1354.prototype.PAYTABLE_PREVIOUS ? this.appmeasurement.addOmnitureEvent_1(75) : b == GT1354.prototype.NUMLINES && instanceOf(a, GT773) ? (this.firstLineChange && (this.appmeasurement.addOmnitureEvent_1(76), this.appmeasurement.addOmnitureEvent_1(86), (a = a.getNumberOfLines_0()), (b = this.slotState.getDefinition_0().getPlayLines_0().toArray_0()), a == b[b.length - 1] ? this.appmeasurement.addOmnitureEvent_1(77) : a == b[0] && this.appmeasurement.addOmnitureEvent_1(78), this.startButtonPressed || this.appmeasurement.addOmnitureEvent_1(79), this.mustChangeBet && this.appmeasurement.addOmnitureEvent_1(80)), (this.firstLineChange = !0)) : b == GT1354.prototype.BASEBET && instanceOf(a, GT982) && (this.firstBetChange && (this.appmeasurement.addOmnitureEvent_1(81), this.appmeasurement.addOmnitureEvent_1(86), (a = a.getBaseBet_0()), (b = this.slotState.getBaseBets_0()), a == b[b.length - 1] ? this.appmeasurement.addOmnitureEvent_1(82) : a == b[0] && this.appmeasurement.addOmnitureEvent_1(83), this.startButtonPressed || this.appmeasurement.addOmnitureEvent_1(84), this.mustChangeBet && this.appmeasurement.addOmnitureEvent_1(85)), (this.firstBetChange = !0)); }, }, "GT915", [GT922] ), GT1228 = Class.extend( { initialConstructor_0: function () {}, createSkinManager_5: function (a, b, d, e, f) { return new GT1547(a, b, d, e, f); }, }, "GT1228", [GT1117] ), GT960 = Class.extend( { initialConstructor_0: function () { this.applet = null; Class.prototype.initialConstructor_0.call(this); }, initialConstructor_1: function (a) { this.applet = null; this.applet = a; }, notifyAction_1: function (a) { this.applet.notifyAction_1(a); }, }, "GT960", [GT758] ); GT1479.prototype.baseVersion_0 = function () { var a = GT1677.prototype.tokenize_2(GT1479.prototype.versionString, "."); if (2 > a.length) return 0; var b = GT1672.prototype.stringToInt_1(a[0]), a = GT1672.prototype.stringToInt_1(a[1]); return 1e3 * b + a; }; GT1479.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); GT1479.prototype.versionString = "1.10.25"; var GT779 = GT1123.extend( { initialConstructor_0: function () { this.number = this.symbol = 0; this.paytableEntry = this.currencyFormatter = null; this.currentJackpotValue = this.jackpotMaxBet = this.jackpotMinBet = this.multiplier = this.maximumRoundWin = this.index = this.numLines = this.betPerLine = this.jackPotFactor = 0; this.identifier = null; this.locked = this.showCurrencySymbol = !1; this.calculator = null; GT1123.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.number = this.symbol = 0; this.paytableEntry = this.currencyFormatter = null; this.currentJackpotValue = this.jackpotMaxBet = this.jackpotMinBet = this.multiplier = this.maximumRoundWin = this.index = this.numLines = this.betPerLine = this.jackPotFactor = 0; this.identifier = null; this.locked = this.showCurrencySymbol = !1; this.calculator = null; GT1123.prototype.initialConstructor_9.call(this, a, b, d, e, f, m, n, p, q); this.symbol = g; this.number = k; this.setAdaptiveSpacing_1(!1); this.setBreakLines_1(!1); this.setUsingAdaptiveHeight_1(!1); this.currencyFormatter = new GT1285(); this.showCurrencySymbol = !0; this.locked = !1; this.identifier = ""; this.index = 0; }, addPayTableEntry_1: function (a) { this.paytableEntry = a; }, getPayTableEntry_0: function () { return this.paytableEntry; }, setIndex_1: function (a) { this.index = a; }, getIndex_0: function () { return this.index; }, getSymbol_0: function () { return this.symbol; }, getNumber_0: function () { return this.number; }, isShowCurrencySymbol_0: function () { return this.showCurrencySymbol; }, setShowCurrencySymbol_1: function (a) { this.showCurrencySymbol = a; }, updateJackpotText_0: function () { if (this.locked || null == this.calculator) GT779.prototype.LOG.trace && (this.locked ? GT779.prototype.LOG.log_1("Jackpot field isn't updated because the locked state is currently set to: " + this.locked) : null == this.calculator && GT779.prototype.LOG.log_1("Can't update jackpot field text because the jackpot calculator object is null, but needs to be set correctly in order to be able to calculate the jackpot.")); else { this.currentJackpotValue = 0; null != this.calculator && (null != this.paytableEntry ? (this.currentJackpotValue = this.calculator.calculateJackpotWin_5(this.betPerLine, this.numLines, this.identifier, this.paytableEntry.getJackpotPercentage_0(), this.paytableEntry.getMultipliedByLines_0())) : null != this.calculator && (this.currentJackpotValue = this.calculator.calculateJackpotWin_4(this.betPerLine, this.numLines, this.identifier, this.calculator.getPercentage_1(this.index)))); 0 < this.maximumRoundWin && this.currentJackpotValue > this.maximumRoundWin && (this.currentJackpotValue = this.maximumRoundWin); GT779.prototype.LOG.trace && (GT779.prototype.LOG.log_1("Jackpot field updated: " + this.currentJackpotValue), GT779.prototype.LOG.log_1(" betPerLine: " + this.betPerLine), GT779.prototype.LOG.log_1(" jackpotMinBet: " + this.jackpotMinBet), GT779.prototype.LOG.log_1(" jackpotMaxBet: " + this.jackpotMaxBet), GT779.prototype.LOG.log_1(" numLines: " + this.numLines), GT779.prototype.LOG.log_1(" jackPotFactor: " + this.jackPotFactor)); var a; a = instanceOf(this.currencyFormatter, GT711) ? this.currencyFormatter.format_3(this.currentJackpotValue, GT711.prototype.OMIT_CENT_NEVER, this.showCurrencySymbol) : this.currencyFormatter.format_1(this.currentJackpotValue); this.setText_1(a); } }, setText_1: function (a) { GT1123.prototype.setText_1.call(this, a); GT779.prototype.LOG.trace && GT779.prototype.LOG.log_1("Jackpot Field text updated: " + a); }, removeAllPayTableEntries_0: function () {}, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, setCalculator_1: function (a) { this.calculator = a; }, setBet_3: function (a, b, d) { if (this.betPerLine != a || this.numLines != b) (this.betPerLine = a), (this.numLines = b), this.updateJackpot_0(); }, setBet_2: function (a, b) { this.setBet_3(a, b, 1); }, setIdentifier_1: function (a) { this.identifier = a; }, getIdentifier_0: function () { return this.identifier; }, setLocked_1: function (a) { this.locked = a; }, isLocked_0: function () { return this.locked; }, updateJackpot_0: function () { this.updateJackpotText_0(); }, setMaximumRoundWin_1: function (a) { this.maximumRoundWin = a; }, getCurrentJackpotValue_0: function () { return this.currentJackpotValue; }, }, "GT779", [GT1120, GT917] ); GT779.prototype.LOG = GT1650.prototype.getLogFlags_1("slot.client"); var GT746 = GT1123.extend( { initialConstructor_0: function () { this.number = this.symbol = 0; this.paytableEntries = null; this.showForReelsetIndex = this.currentReelset = 0; this.reelsetDependent = !1; this.pattern = this.currencyFormatter = null; this.omitCent = !1; this.globalMultiplier = 0; this.showCurrencySymbol = !1; this.maximumRoundWin = this.omitCentThreshold = 0; GT1123.prototype.initialConstructor_0.call(this); }, initialConstructor_11: function (a, b, d, e, f, g, k, m, n, p, q) { this.number = this.symbol = 0; this.paytableEntries = null; this.showForReelsetIndex = this.currentReelset = 0; this.reelsetDependent = !1; this.pattern = this.currencyFormatter = null; this.omitCent = !1; this.globalMultiplier = 0; this.showCurrencySymbol = !1; this.maximumRoundWin = this.omitCentThreshold = 0; GT1123.prototype.initialConstructor_9.call(this, a, b, d, e, f, m, n, p, q); this.symbol = g; this.number = k; this.setAdaptiveSpacing_1(!1); this.setBreakLines_1(!1); this.setUsingAdaptiveHeight_1(!1); this.paytableEntries = new java_util_JavaScriptVector(); this.currencyFormatter = new GT1285(); this.omitCent = !0; this.globalMultiplier = 1; this.showCurrencySymbol = !0; this.omitCentThreshold = 100; }, setOmitCentsForHighValues_1: function (a) { this.omitCent = a; }, setOmitCentThreshold_1: function (a) { this.omitCentThreshold = a; }, isShowCurrencySymbol_0: function () { return this.showCurrencySymbol; }, setShowCurrencySymbol_1: function (a) { this.showCurrencySymbol = a; }, getMultiplier_0: function () { return this.globalMultiplier; }, setMultiplier_1: function (a) { this.globalMultiplier = a; }, setCurrentReelset_1: function (a) { this.currentReelset = a; }, setShowForReelsetIndex_1: function (a) { this.showForReelsetIndex = a; }, setReelsetDependent_1: function (a) { this.reelsetDependent = a; }, getPattern_0: function () { return this.pattern; }, setPattern_1: function (a) { this.pattern = a; }, addPayTableEntry_1: function (a) { GT1650.prototype.assertExp_2(a.symbol == this.symbol, "Wrong paytable entry symbol."); var b = this.paytableEntries.size_0(); if (0 != b) for (var d = 0; d < b; d++) if (this.paytableEntries.elementAt_1(d).number < a.number) { this.paytableEntries.insertElementAt_2(a, d); return; } this.paytableEntries.addElement_1(a); }, removeAllPayTableEntries_0: function () { null != this.paytableEntries && this.paytableEntries.removeAllElements_0(); }, getFormattedValueText_2: function (a, b) { return instanceOf(this.currencyFormatter, GT711) ? this.currencyFormatter.format_3(b, a >= this.omitCentThreshold && this.omitCent ? GT711.prototype.OMIT_CENT_IF_ZERO : GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO, this.showCurrencySymbol) : this.currencyFormatter.format_1(b); }, getCurrentPaytableEntries_0: function () { for (var a = new java_util_JavaScriptVector(), b = !0, d = 0; d < this.paytableEntries.size_0(); d++) { var e = this.paytableEntries.elementAt_1(d); e.isExtendedPaytableEntry_0() && (b = !1); 0 <= this.showForReelsetIndex ? e.isExtendedPaytableEntry_0() && e.isValidForReel_1(this.showForReelsetIndex) && a.add_1(e) : this.reelsetDependent && -1 == this.showForReelsetIndex ? e.isExtendedPaytableEntry_0() && e.isValidForReel_1(this.currentReelset) && a.add_1(e) : e.isExtendedPaytableEntry_0() || a.add_1(e); } if (b && 0 == a.size_0()) for (d = 0; d < this.paytableEntries.size_0(); d++) a.add_1(this.paytableEntries.elementAt_1(d)); return a; }, setBet_3: function (a, b, d) { d *= this.globalMultiplier; for (var e = this.getCurrentPaytableEntries_0(), f = e.size_0(), g = null != this.pattern ? this.pattern : "", k = 0; k < f; k++) { var m = e.elementAt_1(k), n = m.calculateNumberOfSupergames_3(a, b, d), p = m.calculateCashRemainder_4(a, b, n, d); 0 < this.maximumRoundWin && p > this.maximumRoundWin && (p = this.maximumRoundWin); p = this.getFormattedValueText_2(a, p); 0 < n && (p += " + " + n + " " + m.getSupergamesLabel_0()); null != this.pattern ? (g = GT1677.prototype.replaceInString_3(g, "#" + k, p)) : ((g += "" + p), k != f - 1 && (g += "\n")); } this.setText_1(g); }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, getSymbol_0: function () { return this.symbol; }, getNumber_0: function () { return this.number; }, getCurrencyFormatter_0: function () { return this.currencyFormatter; }, getPaytableEntry_1: function (a) { return this.paytableEntries.size_0() <= a ? null : this.paytableEntries.get_1(a); }, setMaximumRoundWin_1: function (a) { this.maximumRoundWin = a; }, }, "GT746", [GT1120] ), GT747 = GT1123.extend( { initialConstructor_0: function () { this.multiplier = 0; this.omitCent = this.totalbet = !1; this.maximumRoundWin = 0; this.omitCentForHighValues = !1; this.currencyFormatter = null; this.showCurrencySymbol = !1; GT1123.prototype.initialConstructor_0.call(this); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.multiplier = 0; this.omitCent = this.totalbet = !1; this.maximumRoundWin = 0; this.omitCentForHighValues = !1; this.currencyFormatter = null; this.showCurrencySymbol = !1; GT1123.prototype.initialConstructor_9.call(this, a, b, d, e, f, n, p, q, r); this.multiplier = g; this.totalbet = k; this.omitCent = m; this.setAdaptiveSpacing_1(!1); this.setBreakLines_1(!1); this.setUsingAdaptiveHeight_1(!1); this.currencyFormatter = new GT1285(); this.omitCentForHighValues = !1; this.showCurrencySymbol = !0; }, setOmitCentsForHighValues_1: function (a) { this.omitCentForHighValues = a; }, isShowCurrencySymbol_0: function () { return this.showCurrencySymbol; }, setShowCurrencySymbol_1: function (a) { this.showCurrencySymbol = a; }, addPayTableEntry_1: function (a) {}, setBet_3: function (a, b, d) { d = a * d * this.multiplier; this.totalbet && (d *= b); 0 < this.maximumRoundWin && d > this.maximumRoundWin && (d = this.maximumRoundWin); a = instanceOf(this.currencyFormatter, GT711) ? this.currencyFormatter.format_3( d, this.omitCent || this.omitCentForHighValues ? this.omitCent && this.omitCentForHighValues ? GT711.prototype.OMIT_CENT_IF_ZERO : 100 <= a ? GT711.prototype.OMIT_CENT_IF_ZERO : GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO : GT711.prototype.OMIT_CENT_FOR_WEAK_CURRENCIES_IF_ZERO, this.showCurrencySymbol ) : this.currencyFormatter.format_1(d); this.setText_1(a); }, setCurrencyFormatter_1: function (a) { this.currencyFormatter = a; }, getNumber_0: function () { return 0; }, getSymbol_0: function () { return JSUTIL.MathUtil.castToChar(0); }, setMaximumRoundWin_1: function (a) { this.maximumRoundWin = a; }, removeAllPayTableEntries_0: function () {}, }, "GT747", [GT1120] ), GT192 = GT257.extend( { initialConstructor_0: function () { this.color = null; this.alpha = 0; this.highlightObjects = null; GT257.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.color = null; this.alpha = 0; this.highlightObjects = null; GT257.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, null, k, m); this.color = n; this.alpha = p; }, init_4: function (a, b, d, e) { GT257.prototype.init_4.call(this, a, b, d, e); this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); for (a = 0; a < this.reelsLayout.columns; a++) for (b = 0; b < this.reelsLayout.rows; b++) (d = new GT1440(this, this.reelsLayout.getColumnPos_1(a), this.reelsLayout.getRowPos_1(b), this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight, this.color)), d.setAlpha_1(this.alpha), (this.highlightObjects[a][b] = d); }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, -1); }, setHighlight_4: function (a, b, d, e) { null != this.highlightObjects[a][b] && GT1560.prototype.destroyIfAlive_1(this.highlightObjects[a][b]); }, removeHighlight_2: function (a, b) { if (null == this.highlightObjects[a][b]) { var d = new GT1440(this, this.reelsLayout.getColumnPos_1(a), this.reelsLayout.getRowPos_1(b), this.reelsLayout.symbolWidth, this.reelsLayout.symbolHeight, this.color); d.setAlpha_1(this.alpha); this.highlightObjects[a][b] = d; } }, removeAllHighlights_0: function () { this.highlightObjects = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows); this.destroyChildren_0(); }, }, "GT192", [] ), GT88 = GT74.extend( { initialConstructor_0: function () { this.losingColorTransformation = null; this.coverLosingSymbols = !1; GT74.prototype.initialConstructor_0.call(this); }, initialConstructor_10: function (a, b, d, e, f, g, k, m, n, p) { this.losingColorTransformation = null; this.coverLosingSymbols = !1; GT74.prototype.initialConstructor_9.call(this, a, b, d, e, f, g, m, n, p); }, init_4: function (a, b, d, e) { GT74.prototype.init_4.call(this, a, b, d, e); if (this.coverLosingSymbols) for (a = this.determineWinningPositions_2(d, e), b = 0; b < this.reelsLayout.columns; b++) for (d = 0; d < this.reelsLayout.rows; d++) if (((e = this.determineImage_2(this.getSymbolAt_2(b, d), 0)), null != e)) { var f = 1 == a[b][d] ? this.getSymbolColorTransformation_0() : this.losingColorTransformation; e = this.createSymbolHighlightImageObject_4(e, b, d, f); this.highlightObjects[b][d] = e; } }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, -1); }, setHighlight_4: function (a, b, d, e) { this.coverLosingSymbols && null != this.highlightObjects[a][b] ? GT1560.prototype.destroyIfAlive_1(this.highlightObjects[a][b]) : null == this.highlightObjects[a][b] && ((d = this.determineImage_2(this.getSymbolAt_2(a, b), d)), null != d && ((d = this.createSymbolHighlightImageObject_4(d, a, b, this.getSymbolColorTransformation_0())), (this.highlightObjects[a][b] = d))); }, removeHighlight_2: function (a, b) { if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { this.getChild_1(d).destroy_0(); this.highlightObjects[a][b] = null; break; } }, determineWinningPositions_2: function (a, b) { var d = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != b) for (var e = 0; e < a.length; e++) for (var f = a[e].createWinPositions_2(this.getVisibleSymbols_0(), b), g = 0; g < f.getCount_0(); g++) { var k = f.getSymbolColumn_1(g), m = f.getSymbolRow_1(g); d[k][m] = !0; } return d; }, setCoverLosingSymbols_1: function (a) { this.coverLosingSymbols = a; }, setLoseColorTransformation_1: function (a) { this.losingColorTransformation = a; }, }, "GT88", [] ), GT150 = GT74.extend( { initialConstructor_0: function () { this.fadeTime = this.cycleTime = 0; this.highlights = null; this.hideSymbols = this.fade = this.reverseReorder = !1; GT74.prototype.initialConstructor_0.call(this); }, initialConstructor_12: function (a, b, d, e, f, g, k, m, n, p, q, r) { this.fadeTime = this.cycleTime = 0; this.highlights = null; this.hideSymbols = this.fade = this.reverseReorder = !1; GT74.prototype.initialConstructor_10.call(this, a, b, d, e, f, g, n, p, q, r); this.cycleTime = k; this.fadeTime = m; this.hideSymbols = !1; }, init_4: function (a, b, d, e) { GT74.prototype.init_4.call(this, a, b, d, e); this.highlights = [].createArray(this.reelsLayout.columns, this.reelsLayout.rows).init(0); if (null != e) for (a = 0; a < d.length; a++) if (null != d[a]) { b = d[a].createWinPositions_2(this.getVisibleSymbols_0(), e); for (var f = 0; f < b.getCount_0(); f++) { var g = b.getSymbolColumn_1(f), k = b.getSymbolRow_1(f), m = b.getCount_0(); this.highlights[g][k] < m && (this.highlights[g][k] = m); } } }, setHighlight_3: function (a, b, d) { this.setHighlight_4(a, b, d, -1); }, setHighlight_4: function (a, b, d, e) { null == this.highlightObjects[a][b] && ((d = this.determineImage_2(this.getSymbolAt_2(a, b), -1 == this.highlights[a][b] ? d : this.highlights[a][b])), null != d && ((d = this.createSymbolHighlightImageObject_4(d, a, b, this.getSymbolColorTransformation_0())), (e = this.generateFadeData_1(e)), null != e && new GT1191(this.timer, d, !1, e).start_0(), (this.highlightObjects[a][b] = d), this.getGUIStoppedReels_0().getSymbolObject_2(a, b).hide_1(this.hideSymbols), this.reverseReorder ? this.reverseReorderObjects_0() : this.reorderObjects_0())); }, generateFadeData_1: function (a) { var b = null; if (this.fade) { var d, e; -1 == this.fadeTime ? ((d = 0), (e = Math.div(this.cycleTime, 2))) : ((d = Math.div(this.cycleTime, 2) - this.fadeTime), (e = this.fadeTime), GT1650.prototype.assertExp_2(0 <= d, "fadetime has to be less or equal to cycleTime/2! (fadetime set: " + this.fadeTime + ", cycleTime: " + this.cycleTime + ")")); var f = 0, b = [].createArray(5, null).init(0); b[f++] = [0, 0, 0, Integer.MAX_VALUE, -1, 0, -1, 0, a]; b[f++] = [e, 0, 255]; b[f++] = [d, 255, 255]; b[f++] = [e, 255, 0]; b[f] = [d, 0, 0, 1, 0 <= a ? 0 : -1, -1, -1]; } return b; }, reorderObjects_0: function () { for (var a = 0, b = 0; b < this.reelsLayout.columns; b++) for (var d = 0; d < this.reelsLayout.rows; d++) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, reverseReorderObjects_0: function () { for (var a = 0, b = this.reelsLayout.columns - 1; 0 <= b; b--) for (var d = this.reelsLayout.rows - 1; 0 <= d; d--) null != this.highlightObjects[b][d] && this.highlightObjects[b][d].isAlive_0() && (this.highlightObjects[b][d].getParent_0().reorderToPosition_1(a), a++); }, setFadeAnimation_1: function (a) { this.fade = a; }, hideUnderlyingSymbols_1: function (a) { this.hideSymbols = a; }, removeHighlight_2: function (a, b) { if (null != this.highlightObjects[a][b]) for (var d = 0; d < this.getChildCount_0(); d++) if (this.getChild_1(d) == this.highlightObjects[a][b].getParent_0()) { this.getChild_1(d).destroy_0(); this.highlightObjects[a][b] = null; this.highlights[a][b] = -1; break; } }, removeAllHighlights_0: function () { this.showHighlightedSymbolsOfTheStoppedReels_0(); GT74.prototype.removeAllHighlights_0.call(this); }, showHighlightedSymbolsOfTheStoppedReels_0: function () { var a = this.getGUIStoppedReels_0(); if (null != a && a.isAlive_0()) for (var b = 0; b < this.highlightObjects.length; b++) for (var d = 0; d < this.highlightObjects[b].length; d++) null != this.highlightObjects[b][d] && null != a.getSymbolObject_2(b, d) && a.getSymbolObject_2(b, d).isAlive_0() && a.getSymbolObject_2(b, d).hide_1(!1); }, setReversePaintOrder_1: function (a) { this.reverseReorder = a; }, }, "GT150", [] ), com_greentube_slot_client_bookofradeluxe_BookOfRaDeluxeSlotApplet = GT1479.extend( { initialConstructor_0: function () { GT1479.prototype.initialConstructor_0.call(this); }, slotVersion_0: function () { return "1.0.3"; }, gameID_0: function () { return 54; }, createSlotGui_8: function (a, b, d, e, f, g, k, m) { return new GT331(a, b, d, e, f, g, k, m); }, isScreenRotationSupported_0: function () { return !1; }, addGameDecorators_1: function (a) { a.addDecorator_1(new GT956()); a.addDecorator_1(new GT243()); this.getStringParameter_2("reducedgraphics", "0").equals_1("1") && a.addDecorator_1(new GT158()); this.getSkinManager_0().hasSkinId_1("thinclient") && (GT1000.prototype.decorateSkin_4(a, this, this.isUsingDynScreensLayout_0(), this.getVisibleArea_0()), a.addDecorator_1(new GT282(this.getStringParameter_2("transparentwinplan", "0").equals_1("1"))), a.addDecorator_1(new GT172())); this.getSkinManager_0().hasSkinId_1("skyvegas") && a.addDecorator_1(new GT384()); this.getSkinManager_0().hasSkinId_1("starvegas") && a.addDecorator_1(new GT105()); this.getSkinManager_0().hasSkinId_1("playingcards") && a.addDecorator_1(new GT162()); this.getStringParameter_2("bigbanner", "0").equals_1("1") && a.addDecorator_1(new GT36(this.getVisibleArea_0(), Integer.MAX_VALUE)); this.getStringParameter_2("blurredreel", "0").equals_1("1") && a.addDecorator_1(new GT330()); (this.getStringParameter_2("usingwebaudio", "1").equals_1("0") || this.getStringParameter_2("reducedsounds", "0").equals_1("1")) && a.addDecorator_1(new GT37(GT558.prototype.ORDER_EXTERNAL + 100)); 1 == GT1672.prototype.stringToInt_1(this.getSkinManager_0().getParameter_1("smalllogo")) && a.addDecorator_1(new GT104()); this.isScreenRotationEnabled_0() && this.getDeviceScreen_0().getOrientation_0() == GT1371.prototype.ORIENTATION_PORTRAIT && a.addDecorator_1(new GT117()); this.isScreenRotationEnabled_0() && (a.addDecorator_1(new GT243()), a.addDecorator_1(new GT117())); }, addLobbyDecorators_1: function (a) { GT1479.prototype.addLobbyDecorators_1.call(this, a); a.addDecorator_1(new GT159()); this.getSkinManager_0().hasSkinId_1("thinclient") && GT1000.prototype.decorateLobbySkin_3(a, this, this.isUsingDynScreensLayout_0()); }, addGameOverlayDecorators_1: function (a) { GT1479.prototype.addGameOverlayDecorators_1.call(this, a); this.getSkinManager_0().hasSkinId_1("thinclient") && GT1000.prototype.decorateGameOverlaySkin_4(a, this, this.isUsingDynScreensLayout_0(), this.getVisibleArea_0()); }, checkIfSkinEntryIsModifier_1: function (a) { return a.equals_1("thinclient") || a.equals_1("bookofra") ? !0 : GT1479.prototype.checkIfSkinEntryIsModifier_1.call(this, a); }, createSlotGame_4: function (a, b, d, e) { return new GT445(a, b, d, e); }, }, "com_greentube_slot_client_bookofradeluxe_BookOfRaDeluxeSlotApplet", [] ), GT57 = GT66.extend( { initialConstructor_0: function () { this.undockedGambleButton = this.dockedGambleButton = this.currentVisibleGambleButton = null; GT66.prototype.initialConstructor_0.call(this); }, initialConstructor_2: function (a, b) { this.undockedGambleButton = this.dockedGambleButton = this.currentVisibleGambleButton = null; GT66.prototype.initialConstructor_2.call(this, a, b); var d = GT1389.prototype.getInstance_0().getDeviceStrategy_0().getConsoleTheme_0().getNormalButtonGradient_0(), e = new GT1073(GT1607.prototype.GAMBLE, b); e.setButtonImage_1(b.getGambleButtonImage_0()); e.setButtonText_1(GT1607.prototype.TT_GAMBLE); e.setFontKey_1(GT1237.prototype.FCK_PRIMARY_BUTTON); e.setTextAttributes_1(new GT817().insets_2(20, 10).gradient_1(GT1533.prototype.getGradient_1(d))); this.dockedGambleButton = new GT413(a, e); this.dockedGambleButton.setDragStartAnimationScaleFactor_1(1); this.dockedGambleButton.setComponentActive_1(!0); e = new GT1073(GT1607.prototype.GAMBLE, b); e.setComponentSize_2(b.getUndockedWidth_0(), b.getUndockedHeight_0()); e.setButtonImage_1(b.getGambleButtonImageUndocked_0()); e.setButtonText_1(GT1607.prototype.TT_GAMBLE); e.setFontKey_1(GT1237.prototype.FCK_PRIMARY_BUTTON); e.setTextAttributes_1(new GT817().insets_4(20, 20, 20, 15).gradient_1(GT1533.prototype.getGradient_1(d))); e.setShape_1(GT1073.prototype.BUTTON_SHAPE_ROUND); this.undockedGambleButton = new GT413(a, e); this.undockedGambleButton.setDragStartAnimationScaleFactor_1(1); this.undockedGambleButton.setComponentActive_1(!0); this.dockedGambleButton.hide_1(!0); this.undockedGambleButton.hide_1(!0); this.currentVisibleGambleButton = this.dockedGambleButton; b.getStartupState_0() == GT487.prototype.TRANSFORMED && this.notifyLayoutAreaLeave_0(); }, updateUi_1: function (a) { var b = a.getRules_0().get_1(GT1185.prototype.VDR_VR_GAMBLE), d = null != b && (b.isActive_0() || b.isHighlighted_0()), e = a.getRules_0().get_1(GT1185.prototype.VDR_GUISTATE_CONSOLE_ID), e = "DecideGamble".equals_1(e), f = a.getViewData_1(GT1184.prototype.TRIGGERING_TIME); GT66.prototype.updateUi_1.call(this, a); this.currentVisibleGambleButton.updateUi_1(a); (d && !GT820.prototype.TRIGGER_TIME_FINISH.equals_1(f)) || e ? (this.currentVisibleGambleButton.hide_1(!1), this.currentVisibleGambleButton.setActive_1((d || !e) && this.isActive_0()), b.isHighlighted_0() && this.toggleHighlightGamble_1(!0), GT66.prototype.hide_1.call(this, !0)) : d || GT820.prototype.TRIGGER_TIME_FINISH.equals_1(f) || (this.currentVisibleGambleButton.hide_1(!0), this.currentVisibleGambleButton.setActive_1(!1), this.toggleHighlightGamble_1(!1), GT66.prototype.hide_1.call(this, !1)); }, handleDragStartAnimationFinished_0: function () { GT66.prototype.handleDragStartAnimationFinished_0.call(this); this.isCombinedButtonHidden_0() || this.currentVisibleGambleButton.handleDragStartAnimationFinished_0(); }, setLocation_2: function (a, b) { GT66.prototype.setLocation_2.call(this, a, b); this.dockedGambleButton.setLocation_2(a, b); this.undockedGambleButton.setLocation_2(a, b); }, notifyDragEnd_0: function () { GT66.prototype.notifyDragEnd_0.call(this); this.isCombinedButtonHidden_0() || this.currentVisibleGambleButton.notifyDragEnd_0(); this.undockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1); this.dockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1); this.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1); this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 1); }, notifyDragStart_0: function () { GT66.prototype.notifyDragStart_0.call(this); this.isCombinedButtonHidden_0() || this.currentVisibleGambleButton.notifyDragStart_0(); }, notifyLayoutAreaEnter_0: function () { GT66.prototype.notifyLayoutAreaEnter_0.call(this); this.isCombinedButtonHidden_0() || (this.undockedGambleButton.hide_1(!0), this.dockedGambleButton.hide_1(!1), this.dockedGambleButton.setComponentActive_1(this.undockedGambleButton.isActive_0())); this.currentVisibleGambleButton = this.dockedGambleButton; GT66.prototype.hide_1.call(this, !this.isCombinedButtonHidden_0()); this.isDragging_0() && (this.undockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2), this.dockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2), this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2)); this.restartGambleHighlightOnTransform_0(); }, restartGambleHighlightOnTransform_0: function () { this.isUndocked_0() ? null != this.dockedGambleButton && null != this.dockedGambleButton.getHighlightAnimator_0() && this.dockedGambleButton.getHighlightAnimator_0().isRunning_0() && (this.dockedGambleButton.toggleHighlight_1(!1), this.undockedGambleButton.toggleHighlight_1(!0)) : null != this.undockedGambleButton && null != this.undockedGambleButton.getHighlightAnimator_0() && this.undockedGambleButton.getHighlightAnimator_0().isRunning_0() && (this.undockedGambleButton.toggleHighlight_1(!1), this.dockedGambleButton.toggleHighlight_1(!0)); }, toggleHighlightGamble_1: function (a) { this.isUndocked_0() ? this.undockedGambleButton.toggleHighlight_1(a) : this.dockedGambleButton.toggleHighlight_1(a); }, notifyLayoutAreaLeave_0: function () { GT66.prototype.notifyLayoutAreaLeave_0.call(this); this.isCombinedButtonHidden_0() || (null != this.undockedGambleButton && this.undockedGambleButton.hide_1(!1), null != this.dockedGambleButton && this.dockedGambleButton.hide_1(!0)); this.currentVisibleGambleButton = this.undockedGambleButton; GT66.prototype.hide_1.call(this, !this.isCombinedButtonHidden_0()); this.isDragging_0() && (null != this.undockedGambleButton && this.undockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2), null != this.dockedGambleButton && this.dockedGambleButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2), null != this.undockedButton && this.undockedButton.getGuiButtonObject_0().setChildForState_2(GT1236.prototype.DEFAULT, 2)); this.restartGambleHighlightOnTransform_0(); }, isCombinedButtonHidden_0: function () { return null != this.currentVisibleGambleButton && this.currentVisibleGambleButton.isHidden_0(); }, setSize_2: function (a, b) { GT66.prototype.setSize_2.call(this, a, b); this.dockedGambleButton.setSize_2(a, b); }, setIsForPlaceholder_1: function (a) { GT66.prototype.setIsForPlaceholder_1.call(this, a); instanceOf(a, GT57) && a.isCombinedButtonHidden_0() && this.currentVisibleGambleButton.hide_1(!0); this.reorder_1(!1); }, reorderToPosition_1: function (a) { GT66.prototype.reorderToPosition_1.call(this, a); 0 != a ? (this.dockedGambleButton.reorder_1(!0), this.undockedGambleButton.reorder_1(!0)) : (this.dockedGambleButton.reorder_1(!1), this.undockedGambleButton.reorder_1(!1)); }, destroyObject_0: function () { GT1560.prototype.destroyIfAlive_1(this.dockedGambleButton); GT1560.prototype.destroyIfAlive_1(this.undockedGambleButton); GT66.prototype.destroyObject_0.call(this); }, setComponentActive_1: function (a) { GT66.prototype.setComponentActive_1.call(this, a); null != this.undockedGambleButton && this.undockedGambleButton.setComponentActive_1(a); null != this.dockedGambleButton && this.dockedGambleButton.setComponentActive_1(a); }, }, "GT57", [] ); })(document, window);