Add english version
This commit is contained in:
parent
7bf44fa645
commit
49e9a37f3c
1675 changed files with 1309268 additions and 0 deletions
69
www.eng/js/libs/SteamConfig.ini
Normal file
69
www.eng/js/libs/SteamConfig.ini
Normal file
|
@ -0,0 +1,69 @@
|
|||
[Settings]
|
||||
;game appid here
|
||||
|
||||
AppID = 1150690
|
||||
|
||||
;source steam_api.dll version
|
||||
|
||||
API = 4.28.51.7
|
||||
|
||||
;player name
|
||||
|
||||
PlayerName = STEAMRIP
|
||||
|
||||
;game Language
|
||||
;english german french italian koreana
|
||||
;spanish schinese tchinese russian thai
|
||||
;japanese portuguese polish danish dutch
|
||||
;finnish norwegian swedish hungarian czech
|
||||
;romanian turkish
|
||||
|
||||
Language = english
|
||||
|
||||
;save types:
|
||||
;ALI213(game dir) 0
|
||||
;ALI213(my documents) 1
|
||||
;RELOADED 4
|
||||
;SKIDROW 5
|
||||
;FLT 6
|
||||
;CODEX(3.0.4+/my documents) 7
|
||||
;CODEX(1.0.0.0+/APPDATA) 8
|
||||
|
||||
SaveType = 0
|
||||
|
||||
;Achievements Count limit
|
||||
|
||||
;AchievementsCount = 0
|
||||
|
||||
;game exe path
|
||||
|
||||
;GameEXE = game.exe
|
||||
|
||||
;SteamUserID = 12345678
|
||||
;SteamUserIDH = 12345678
|
||||
|
||||
;IsLoggedOn = 0
|
||||
|
||||
;Online = 0
|
||||
|
||||
UnLockListedDLCOnly = 1
|
||||
|
||||
[DLC]
|
||||
;SET DLC USE "APPID=NAME"
|
||||
|
||||
|
||||
[Option]
|
||||
;Block Network.
|
||||
|
||||
;FullBlockNetwork = 0
|
||||
|
||||
;Redirect File Handle to ".valve"
|
||||
|
||||
FileRedirectCheck = 1
|
||||
|
||||
;DECRYPT STEAM STUB
|
||||
;set 1 tells steam_api.dll / steam_api64.dll to decrypt the steam stub as soon as possible
|
||||
;set 2 tells SteamClient.dll / SteamClient64.dll to decrypt the steam stub as soon as possible
|
||||
;set 0 to disable it.
|
||||
|
||||
;DECRYPT_STEAM_STUB = 0
|
9766
www.eng/js/libs/dragonbones/dragonBones.js
Normal file
9766
www.eng/js/libs/dragonbones/dragonBones.js
Normal file
File diff suppressed because it is too large
Load diff
733
www.eng/js/libs/dragonbones/dragonBonesPixi.js
Normal file
733
www.eng/js/libs/dragonbones/dragonBonesPixi.js
Normal file
|
@ -0,0 +1,733 @@
|
|||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
|
||||
var dragonBones;
|
||||
(function (dragonBones) {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* Pixi 贴图集数据。
|
||||
* @version DragonBones 3.0
|
||||
*/
|
||||
var PixiTextureAtlasData = (function (_super) {
|
||||
__extends(PixiTextureAtlasData, _super);
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
function PixiTextureAtlasData() {
|
||||
return _super.call(this) || this;
|
||||
}
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiTextureAtlasData.toString = function () {
|
||||
return "[class dragonBones.PixiTextureAtlasData]";
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiTextureAtlasData.prototype._onClear = function () {
|
||||
_super.prototype._onClear.call(this);
|
||||
if (this.texture) {
|
||||
//this.texture.dispose();
|
||||
}
|
||||
this.texture = null;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiTextureAtlasData.prototype.generateTexture = function () {
|
||||
return dragonBones.BaseObject.borrowObject(PixiTextureData);
|
||||
};
|
||||
return PixiTextureAtlasData;
|
||||
}(dragonBones.TextureAtlasData));
|
||||
dragonBones.PixiTextureAtlasData = PixiTextureAtlasData;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
var PixiTextureData = (function (_super) {
|
||||
__extends(PixiTextureData, _super);
|
||||
function PixiTextureData() {
|
||||
return _super.call(this) || this;
|
||||
}
|
||||
PixiTextureData.toString = function () {
|
||||
return "[class dragonBones.PixiTextureData]";
|
||||
};
|
||||
PixiTextureData.prototype._onClear = function () {
|
||||
_super.prototype._onClear.call(this);
|
||||
if (this.texture) {
|
||||
this.texture.destroy();
|
||||
}
|
||||
this.texture = null;
|
||||
};
|
||||
return PixiTextureData;
|
||||
}(dragonBones.TextureData));
|
||||
dragonBones.PixiTextureData = PixiTextureData;
|
||||
})(dragonBones || (dragonBones = {}));
|
||||
|
||||
var dragonBones;
|
||||
(function (dragonBones) {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
var PixiArmatureDisplay = (function (_super) {
|
||||
__extends(PixiArmatureDisplay, _super);
|
||||
/**
|
||||
* @internal
|
||||
* @private
|
||||
*/
|
||||
function PixiArmatureDisplay() {
|
||||
return _super.call(this) || this;
|
||||
}
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiArmatureDisplay.prototype._onClear = function () {
|
||||
if (this._debugDrawer) {
|
||||
this._debugDrawer.destroy(true);
|
||||
}
|
||||
this._armature = null;
|
||||
this._debugDrawer = null;
|
||||
this.destroy();
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiArmatureDisplay.prototype._dispatchEvent = function (type, eventObject) {
|
||||
this.emit(type, eventObject);
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiArmatureDisplay.prototype._debugDraw = function (isEnabled) {
|
||||
if (!this._debugDrawer) {
|
||||
this._debugDrawer = new PIXI.Sprite();
|
||||
var boneDrawer = new PIXI.Graphics();
|
||||
this._debugDrawer.addChild(boneDrawer);
|
||||
}
|
||||
if (isEnabled) {
|
||||
this.addChild(this._debugDrawer);
|
||||
var boneDrawer = this._debugDrawer.getChildAt(0);
|
||||
boneDrawer.clear();
|
||||
var bones = this._armature.getBones();
|
||||
for (var i = 0, l = bones.length; i < l; ++i) {
|
||||
var bone = bones[i];
|
||||
var boneLength = bone.boneData.length;
|
||||
var startX = bone.globalTransformMatrix.tx;
|
||||
var startY = bone.globalTransformMatrix.ty;
|
||||
var endX = startX + bone.globalTransformMatrix.a * boneLength;
|
||||
var endY = startY + bone.globalTransformMatrix.b * boneLength;
|
||||
boneDrawer.lineStyle(2, bone.ik ? 0xFF0000 : 0x00FFFF, 0.7);
|
||||
boneDrawer.moveTo(startX, startY);
|
||||
boneDrawer.lineTo(endX, endY);
|
||||
boneDrawer.lineStyle(0, 0, 0);
|
||||
boneDrawer.beginFill(0x00FFFF, 0.7);
|
||||
boneDrawer.drawCircle(startX, startY, 3);
|
||||
boneDrawer.endFill();
|
||||
}
|
||||
var slots = this._armature.getSlots();
|
||||
for (var i = 0, l = slots.length; i < l; ++i) {
|
||||
var slot = slots[i];
|
||||
var boundingBoxData = slot.boundingBoxData;
|
||||
if (boundingBoxData) {
|
||||
var child = this._debugDrawer.getChildByName(slot.name);
|
||||
if (!child) {
|
||||
child = new PIXI.Graphics();
|
||||
child.name = slot.name;
|
||||
this._debugDrawer.addChild(child);
|
||||
}
|
||||
child.clear();
|
||||
child.beginFill(0xFF00FF, 0.3);
|
||||
switch (boundingBoxData.type) {
|
||||
case 0 /* Rectangle */:
|
||||
child.drawRect(-boundingBoxData.width * 0.5, -boundingBoxData.height * 0.5, boundingBoxData.width, boundingBoxData.height);
|
||||
break;
|
||||
case 1 /* Ellipse */:
|
||||
child.drawEllipse(-boundingBoxData.width * 0.5, -boundingBoxData.height * 0.5, boundingBoxData.width, boundingBoxData.height);
|
||||
break;
|
||||
case 2 /* Polygon */:
|
||||
var vertices = boundingBoxData.vertices;
|
||||
for (var i_1 = 0, l_1 = boundingBoxData.vertices.length; i_1 < l_1; i_1 += 2) {
|
||||
if (i_1 === 0) {
|
||||
child.moveTo(vertices[i_1], vertices[i_1 + 1]);
|
||||
}
|
||||
else {
|
||||
child.lineTo(vertices[i_1], vertices[i_1 + 1]);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
child.endFill();
|
||||
slot._updateTransformAndMatrix();
|
||||
slot.updateGlobalTransform();
|
||||
var transform = slot.global;
|
||||
child.setTransform(transform.x, transform.y, transform.scaleX, transform.scaleY, transform.skewX, 0.0, transform.skewY - transform.skewX, slot._pivotX, slot._pivotY);
|
||||
}
|
||||
else {
|
||||
var child = this._debugDrawer.getChildByName(slot.name);
|
||||
if (child) {
|
||||
this._debugDrawer.removeChild(child);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (this._debugDrawer && this._debugDrawer.parent === this) {
|
||||
this.removeChild(this._debugDrawer);
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
PixiArmatureDisplay.prototype.hasEvent = function (type) {
|
||||
return this.listeners(type, true); // .d.ts bug
|
||||
};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
PixiArmatureDisplay.prototype.addEvent = function (type, listener, target) {
|
||||
this.addListener(type, listener, target);
|
||||
};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
PixiArmatureDisplay.prototype.removeEvent = function (type, listener, target) {
|
||||
this.removeListener(type, listener, target);
|
||||
};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
PixiArmatureDisplay.prototype.dispose = function (disposeProxy) {
|
||||
if (disposeProxy === void 0) { disposeProxy = true; }
|
||||
if (this._armature) {
|
||||
this._armature.dispose();
|
||||
this._armature = null;
|
||||
}
|
||||
};
|
||||
Object.defineProperty(PixiArmatureDisplay.prototype, "armature", {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
get: function () {
|
||||
return this._armature;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(PixiArmatureDisplay.prototype, "animation", {
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
get: function () {
|
||||
return this._armature.animation;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
/**
|
||||
* @deprecated
|
||||
* @see dragonBones.Armature#clock
|
||||
* @see dragonBones.PixiFactory#clock
|
||||
* @see dragonBones.Animation#timescale
|
||||
* @see dragonBones.Animation#stop()
|
||||
*/
|
||||
PixiArmatureDisplay.prototype.advanceTimeBySelf = function (on) {
|
||||
if (on) {
|
||||
this._armature.clock = dragonBones.PixiFactory.clock;
|
||||
}
|
||||
else {
|
||||
this._armature.clock = null;
|
||||
}
|
||||
};
|
||||
return PixiArmatureDisplay;
|
||||
}(PIXI.Container));
|
||||
dragonBones.PixiArmatureDisplay = PixiArmatureDisplay;
|
||||
})(dragonBones || (dragonBones = {}));
|
||||
|
||||
var dragonBones;
|
||||
(function (dragonBones) {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* Pixi 插槽。
|
||||
* @version DragonBones 3.0
|
||||
*/
|
||||
var PixiSlot = (function (_super) {
|
||||
__extends(PixiSlot, _super);
|
||||
/**
|
||||
* @internal
|
||||
* @private
|
||||
*/
|
||||
function PixiSlot() {
|
||||
var _this = _super.call(this) || this;
|
||||
_this._updateTransform = PIXI.VERSION[0] === "3" ? _this._updateTransformV3 : _this._updateTransformV4;
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.toString = function () {
|
||||
return "[class dragonBones.PixiSlot]";
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._onClear = function () {
|
||||
_super.prototype._onClear.call(this);
|
||||
this._renderDisplay = null;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._initDisplay = function (value) {
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._disposeDisplay = function (value) {
|
||||
value.destroy();
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._onUpdateDisplay = function () {
|
||||
this._renderDisplay = (this._display ? this._display : this._rawDisplay);
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._addDisplay = function () {
|
||||
var container = this._armature.display;
|
||||
container.addChild(this._renderDisplay);
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._replaceDisplay = function (value) {
|
||||
var container = this._armature.display;
|
||||
var prevDisplay = value;
|
||||
container.addChild(this._renderDisplay);
|
||||
container.swapChildren(this._renderDisplay, prevDisplay);
|
||||
container.removeChild(prevDisplay);
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._removeDisplay = function () {
|
||||
this._renderDisplay.parent.removeChild(this._renderDisplay);
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateZOrder = function () {
|
||||
var container = this._armature.display;
|
||||
var index = container.getChildIndex(this._renderDisplay);
|
||||
if (index === this._zOrder) {
|
||||
return;
|
||||
}
|
||||
container.addChildAt(this._renderDisplay, this._zOrder);
|
||||
};
|
||||
/**
|
||||
* @internal
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateVisible = function () {
|
||||
this._renderDisplay.visible = this._parent.visible;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateBlendMode = function () {
|
||||
switch (this._blendMode) {
|
||||
case 0 /* Normal */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.NORMAL;
|
||||
break;
|
||||
case 1 /* Add */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.ADD;
|
||||
break;
|
||||
case 3 /* Darken */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.DARKEN;
|
||||
break;
|
||||
case 4 /* Difference */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.DIFFERENCE;
|
||||
break;
|
||||
case 6 /* HardLight */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.HARD_LIGHT;
|
||||
break;
|
||||
case 9 /* Lighten */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.LIGHTEN;
|
||||
break;
|
||||
case 10 /* Multiply */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.MULTIPLY;
|
||||
break;
|
||||
case 11 /* Overlay */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.OVERLAY;
|
||||
break;
|
||||
case 12 /* Screen */:
|
||||
this._renderDisplay.blendMode = PIXI.BLEND_MODES.SCREEN;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateColor = function () {
|
||||
this._renderDisplay.alpha = this._colorTransform.alphaMultiplier;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateFrame = function () {
|
||||
var isMeshDisplay = this._meshData && this._display === this._meshDisplay;
|
||||
var currentTextureData = this._textureData;
|
||||
if (this._displayIndex >= 0 && this._display && currentTextureData) {
|
||||
var currentTextureAtlasData = currentTextureData.parent;
|
||||
// Update replaced texture atlas.
|
||||
if (this._armature.replacedTexture && this._displayData && currentTextureAtlasData === this._displayData.texture.parent) {
|
||||
currentTextureAtlasData = this._armature._replaceTextureAtlasData;
|
||||
if (!currentTextureAtlasData) {
|
||||
currentTextureAtlasData = dragonBones.BaseObject.borrowObject(dragonBones.PixiTextureAtlasData);
|
||||
currentTextureAtlasData.copyFrom(currentTextureData.parent);
|
||||
currentTextureAtlasData.texture = this._armature.replacedTexture;
|
||||
this._armature._replaceTextureAtlasData = currentTextureAtlasData;
|
||||
}
|
||||
currentTextureData = currentTextureAtlasData.getTexture(currentTextureData.name);
|
||||
}
|
||||
var currentTextureAtlas = currentTextureAtlasData.texture;
|
||||
if (currentTextureAtlas) {
|
||||
if (!currentTextureData.texture) {
|
||||
currentTextureData.texture = new PIXI.Texture(currentTextureAtlas, currentTextureData.region, // No need to set frame.
|
||||
currentTextureData.region, new PIXI.Rectangle(0, 0, currentTextureData.region.width, currentTextureData.region.height), currentTextureData.rotated // .d.ts bug
|
||||
);
|
||||
}
|
||||
if (isMeshDisplay) {
|
||||
var meshDisplay = this._renderDisplay;
|
||||
var textureAtlasWidth = currentTextureAtlasData.width > 0.0 ? currentTextureAtlasData.width : currentTextureAtlas.width;
|
||||
var textureAtlasHeight = currentTextureAtlasData.height > 0.0 ? currentTextureAtlasData.height : currentTextureAtlas.height;
|
||||
meshDisplay.uvs = new Float32Array(this._meshData.uvs);
|
||||
meshDisplay.vertices = new Float32Array(this._meshData.vertices);
|
||||
meshDisplay.indices = new Uint16Array(this._meshData.vertexIndices);
|
||||
for (var i = 0, l = meshDisplay.uvs.length; i < l; i += 2) {
|
||||
var u = meshDisplay.uvs[i];
|
||||
var v = meshDisplay.uvs[i + 1];
|
||||
meshDisplay.uvs[i] = (currentTextureData.region.x + u * currentTextureData.region.width) / textureAtlasWidth;
|
||||
meshDisplay.uvs[i + 1] = (currentTextureData.region.y + v * currentTextureData.region.height) / textureAtlasHeight;
|
||||
}
|
||||
meshDisplay.texture = currentTextureData.texture;
|
||||
//meshDisplay.dirty = true; // Pixi 3.x
|
||||
meshDisplay.dirty++; // Pixi 4.x Can not support change mesh vertice count.
|
||||
}
|
||||
else {
|
||||
var normalDisplay = this._renderDisplay;
|
||||
normalDisplay.texture = currentTextureData.texture;
|
||||
}
|
||||
this._updateVisible();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (isMeshDisplay) {
|
||||
var meshDisplay = this._renderDisplay;
|
||||
meshDisplay.texture = null;
|
||||
meshDisplay.x = 0.0;
|
||||
meshDisplay.y = 0.0;
|
||||
meshDisplay.visible = false;
|
||||
}
|
||||
else {
|
||||
var normalDisplay = this._renderDisplay;
|
||||
normalDisplay.texture = null;
|
||||
normalDisplay.x = 0.0;
|
||||
normalDisplay.y = 0.0;
|
||||
normalDisplay.visible = false;
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateMesh = function () {
|
||||
var meshDisplay = this._renderDisplay;
|
||||
var hasFFD = this._ffdVertices.length > 0;
|
||||
if (this._meshData.skinned) {
|
||||
for (var i = 0, iF = 0, l = this._meshData.vertices.length; i < l; i += 2) {
|
||||
var iH = i / 2;
|
||||
var boneIndices = this._meshData.boneIndices[iH];
|
||||
var boneVertices = this._meshData.boneVertices[iH];
|
||||
var weights = this._meshData.weights[iH];
|
||||
var xG = 0.0, yG = 0.0;
|
||||
for (var iB = 0, lB = boneIndices.length; iB < lB; ++iB) {
|
||||
var bone = this._meshBones[boneIndices[iB]];
|
||||
var matrix = bone.globalTransformMatrix;
|
||||
var weight = weights[iB];
|
||||
var xL = 0.0, yL = 0.0;
|
||||
if (hasFFD) {
|
||||
xL = boneVertices[iB * 2] + this._ffdVertices[iF];
|
||||
yL = boneVertices[iB * 2 + 1] + this._ffdVertices[iF + 1];
|
||||
}
|
||||
else {
|
||||
xL = boneVertices[iB * 2];
|
||||
yL = boneVertices[iB * 2 + 1];
|
||||
}
|
||||
xG += (matrix.a * xL + matrix.c * yL + matrix.tx) * weight;
|
||||
yG += (matrix.b * xL + matrix.d * yL + matrix.ty) * weight;
|
||||
iF += 2;
|
||||
}
|
||||
meshDisplay.vertices[i] = xG;
|
||||
meshDisplay.vertices[i + 1] = yG;
|
||||
}
|
||||
}
|
||||
else if (hasFFD) {
|
||||
var vertices = this._meshData.vertices;
|
||||
for (var i = 0, l = this._meshData.vertices.length; i < l; i += 2) {
|
||||
var xG = vertices[i] + this._ffdVertices[i];
|
||||
var yG = vertices[i + 1] + this._ffdVertices[i + 1];
|
||||
meshDisplay.vertices[i] = xG;
|
||||
meshDisplay.vertices[i + 1] = yG;
|
||||
}
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateTransform = function (isSkinnedMesh) {
|
||||
throw new Error();
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateTransformV3 = function (isSkinnedMesh) {
|
||||
if (isSkinnedMesh) {
|
||||
this._renderDisplay.setTransform(0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
else {
|
||||
this.updateGlobalTransform(); // Update transform.
|
||||
var x = this.globalTransformMatrix.tx - (this.globalTransformMatrix.a * this._pivotX + this.globalTransformMatrix.c * this._pivotY); // Pixi pivot do not work.
|
||||
var y = this.globalTransformMatrix.ty - (this.globalTransformMatrix.b * this._pivotX + this.globalTransformMatrix.d * this._pivotY); // Pixi pivot do not work.
|
||||
var transform = this.global;
|
||||
this._renderDisplay.setTransform(x, y, transform.scaleX, transform.scaleY, transform.skewX, 0.0, transform.skewY - transform.skewX);
|
||||
}
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiSlot.prototype._updateTransformV4 = function (isSkinnedMesh) {
|
||||
if (isSkinnedMesh) {
|
||||
this._renderDisplay.setTransform(0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0);
|
||||
}
|
||||
else {
|
||||
this.updateGlobalTransform(); // Update transform.
|
||||
var transform = this.global;
|
||||
this._renderDisplay.setTransform(transform.x, transform.y, transform.scaleX, transform.scaleY, transform.skewX, 0.0, transform.skewY - transform.skewX, this._pivotX, this._pivotY);
|
||||
}
|
||||
};
|
||||
return PixiSlot;
|
||||
}(dragonBones.Slot));
|
||||
dragonBones.PixiSlot = PixiSlot;
|
||||
})(dragonBones || (dragonBones = {}));
|
||||
var dragonBones;
|
||||
(function (dragonBones) {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* Pixi 工厂。
|
||||
* @version DragonBones 3.0
|
||||
*/
|
||||
var PixiFactory = (function (_super) {
|
||||
__extends(PixiFactory, _super);
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 创建一个工厂。 (通常只需要一个全局工厂实例)
|
||||
* @param dataParser 龙骨数据解析器,如果不设置,则使用默认解析器。
|
||||
* @version DragonBones 3.0
|
||||
*/
|
||||
function PixiFactory(dataParser) {
|
||||
if (dataParser === void 0) { dataParser = null; }
|
||||
var _this = _super.call(this, dataParser) || this;
|
||||
if (!PixiFactory._eventManager) {
|
||||
PixiFactory._eventManager = new dragonBones.PixiArmatureDisplay();
|
||||
PixiFactory._clock = new dragonBones.WorldClock();
|
||||
PIXI.ticker.shared.add(PixiFactory._clockHandler, PixiFactory);
|
||||
}
|
||||
return _this;
|
||||
}
|
||||
PixiFactory._clockHandler = function (passedTime) {
|
||||
PixiFactory._clock.advanceTime(-1); // passedTime !?
|
||||
//console.log("Dragonbones' clock ticking");
|
||||
};
|
||||
Object.defineProperty(PixiFactory, "factory", {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 一个可以直接使用的全局工厂实例。
|
||||
* @version DragonBones 4.7
|
||||
*/
|
||||
get: function () {
|
||||
if (!PixiFactory._factory) {
|
||||
PixiFactory._factory = new PixiFactory();
|
||||
}
|
||||
return PixiFactory._factory;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
Object.defineProperty(PixiFactory, "clock", {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 一个可以直接使用的全局 WorldClock 实例.
|
||||
* @version DragonBones 5.0
|
||||
*/
|
||||
get: function () {
|
||||
return PixiFactory._clock;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiFactory.prototype._generateTextureAtlasData = function (textureAtlasData, textureAtlas) {
|
||||
if (textureAtlasData) {
|
||||
textureAtlasData.texture = textureAtlas;
|
||||
}
|
||||
else {
|
||||
textureAtlasData = dragonBones.BaseObject.borrowObject(dragonBones.PixiTextureAtlasData);
|
||||
}
|
||||
return textureAtlasData;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiFactory.prototype._generateArmature = function (dataPackage) {
|
||||
var armature = dragonBones.BaseObject.borrowObject(dragonBones.Armature);
|
||||
var armatureDisplay = new dragonBones.PixiArmatureDisplay();
|
||||
armatureDisplay._armature = armature;
|
||||
armature._init(dataPackage.armature, dataPackage.skin, armatureDisplay, armatureDisplay, PixiFactory._eventManager);
|
||||
return armature;
|
||||
};
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
PixiFactory.prototype._generateSlot = function (dataPackage, skinSlotData, armature) {
|
||||
var slotData = skinSlotData.slot;
|
||||
var slot = dragonBones.BaseObject.borrowObject(dragonBones.PixiSlot);
|
||||
var displayList = [];
|
||||
slot._init(skinSlotData, new PIXI.Sprite(), new PIXI.mesh.Mesh(null, null, null, null, PIXI.mesh.Mesh.DRAW_MODES.TRIANGLES));
|
||||
for (var i = 0, l = skinSlotData.displays.length; i < l; ++i) {
|
||||
var displayData = skinSlotData.displays[i];
|
||||
switch (displayData.type) {
|
||||
case 0 /* Image */:
|
||||
if (!displayData.texture) {
|
||||
displayData.texture = this._getTextureData(dataPackage.dataName, displayData.path);
|
||||
}
|
||||
if (dataPackage.textureAtlasName) {
|
||||
slot._textureDatas[i] = this._getTextureData(dataPackage.textureAtlasName, displayData.path);
|
||||
}
|
||||
displayList[i] = slot.rawDisplay;
|
||||
break;
|
||||
case 2 /* Mesh */:
|
||||
if (!displayData.texture) {
|
||||
displayData.texture = this._getTextureData(dataPackage.dataName, displayData.path);
|
||||
}
|
||||
if (dataPackage.textureAtlasName) {
|
||||
slot._textureDatas[i] = this._getTextureData(dataPackage.textureAtlasName, displayData.path);
|
||||
}
|
||||
if (!displayData.mesh && displayData.share) {
|
||||
displayData.mesh = skinSlotData.getMesh(displayData.share);
|
||||
}
|
||||
displayList[i] = slot.meshDisplay;
|
||||
break;
|
||||
case 1 /* Armature */:
|
||||
var childArmature = this.buildArmature(displayData.path, dataPackage.dataName, null, dataPackage.textureAtlasName);
|
||||
if (childArmature) {
|
||||
childArmature.inheritAnimation = displayData.inheritAnimation;
|
||||
if (!childArmature.inheritAnimation) {
|
||||
var actions = slotData.actions.length > 0 ? slotData.actions : childArmature.armatureData.actions;
|
||||
if (actions.length > 0) {
|
||||
for (var i_2 = 0, l_2 = actions.length; i_2 < l_2; ++i_2) {
|
||||
childArmature._bufferAction(actions[i_2]);
|
||||
}
|
||||
}
|
||||
else {
|
||||
childArmature.animation.play();
|
||||
}
|
||||
}
|
||||
displayData.armature = childArmature.armatureData; //
|
||||
}
|
||||
displayList[i] = childArmature;
|
||||
break;
|
||||
default:
|
||||
displayList[i] = null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
slot._setDisplayList(displayList);
|
||||
return slot;
|
||||
};
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 创建一个指定名称的骨架,并使用骨架的显示容器来更新骨架动画。
|
||||
* @param armatureName 骨架名称。
|
||||
* @param dragonBonesName 龙骨数据名称,如果未设置,将检索所有的龙骨数据,如果多个数据中包含同名的骨架数据,可能无法创建出准确的骨架。
|
||||
* @param skinName 皮肤名称,如果未设置,则使用默认皮肤。
|
||||
* @param textureAtlasName 贴图集数据名称,如果未设置,则使用龙骨数据。
|
||||
* @returns 骨架的显示容器。
|
||||
* @see dragonBones.PixiArmatureDisplay
|
||||
* @version DragonBones 4.5
|
||||
*/
|
||||
PixiFactory.prototype.buildArmatureDisplay = function (armatureName, dragonBonesName, skinName, textureAtlasName) {
|
||||
if (dragonBonesName === void 0) { dragonBonesName = null; }
|
||||
if (skinName === void 0) { skinName = null; }
|
||||
if (textureAtlasName === void 0) { textureAtlasName = null; }
|
||||
var armature = this.buildArmature(armatureName, dragonBonesName, skinName, textureAtlasName);
|
||||
if (armature) {
|
||||
var armatureDisplay = armature.display;
|
||||
PixiFactory._clock.add(armature);
|
||||
return armatureDisplay;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 获取带有指定贴图的显示对象。
|
||||
* @param textureName 指定的贴图名称。
|
||||
* @param dragonBonesName 指定的龙骨数据名称,如果未设置,将检索所有的龙骨数据。
|
||||
* @version DragonBones 3.0
|
||||
*/
|
||||
PixiFactory.prototype.getTextureDisplay = function (textureName, dragonBonesName) {
|
||||
if (dragonBonesName === void 0) { dragonBonesName = null; }
|
||||
var textureData = this._getTextureData(dragonBonesName, textureName);
|
||||
if (textureData) {
|
||||
if (!textureData.texture) {
|
||||
var textureAtlasTexture = textureData.parent.texture;
|
||||
var originSize = new PIXI.Rectangle(0, 0, textureData.region.width, textureData.region.height);
|
||||
textureData.texture = new PIXI.Texture(textureAtlasTexture, textureData.region, textureData.region, originSize, textureData.rotated // .d.ts bug
|
||||
);
|
||||
}
|
||||
return new PIXI.Sprite(textureData.texture);
|
||||
}
|
||||
return null;
|
||||
};
|
||||
Object.defineProperty(PixiFactory.prototype, "soundEventManater", {
|
||||
/**
|
||||
* @language zh_CN
|
||||
* 获取全局声音事件管理器。
|
||||
* @version DragonBones 4.5
|
||||
*/
|
||||
get: function () {
|
||||
return PixiFactory._eventManager;
|
||||
},
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
return PixiFactory;
|
||||
}(dragonBones.BaseFactory));
|
||||
PixiFactory._factory = null;
|
||||
PixiFactory._eventManager = null;
|
||||
PixiFactory._clock = null;
|
||||
dragonBones.PixiFactory = PixiFactory;
|
||||
})(dragonBones || (dragonBones = {}));
|
15
www.eng/js/libs/fpsmeter.js
Normal file
15
www.eng/js/libs/fpsmeter.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*! FPSMeter 0.3.1 - 9th May 2013 | https://github.com/Darsain/fpsmeter */
|
||||
(function(m,j){function s(a,e){for(var g in e)try{a.style[g]=e[g]}catch(j){}return a}function H(a){return null==a?String(a):"object"===typeof a||"function"===typeof a?Object.prototype.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof a}function R(a,e){if("array"!==H(e))return-1;if(e.indexOf)return e.indexOf(a);for(var g=0,j=e.length;g<j;g++)if(e[g]===a)return g;return-1}function I(){var a=arguments,e;for(e in a[1])if(a[1].hasOwnProperty(e))switch(H(a[1][e])){case "object":a[0][e]=
|
||||
I({},a[0][e],a[1][e]);break;case "array":a[0][e]=a[1][e].slice(0);break;default:a[0][e]=a[1][e]}return 2<a.length?I.apply(null,[a[0]].concat(Array.prototype.slice.call(a,2))):a[0]}function N(a){a=Math.round(255*a).toString(16);return 1===a.length?"0"+a:a}function S(a,e,g,j){if(a.addEventListener)a[j?"removeEventListener":"addEventListener"](e,g,!1);else if(a.attachEvent)a[j?"detachEvent":"attachEvent"]("on"+e,g)}function D(a,e){function g(a,b,d,c){return y[0|a][Math.round(Math.min((b-d)/(c-d)*J,J))]}
|
||||
function r(){f.legend.fps!==q&&(f.legend.fps=q,f.legend[T]=q?"FPS":"ms");K=q?b.fps:b.duration;f.count[T]=999<K?"999+":K.toFixed(99<K?0:d.decimals)}function m(){z=A();L<z-d.threshold&&(b.fps-=b.fps/Math.max(1,60*d.smoothing/d.interval),b.duration=1E3/b.fps);for(c=d.history;c--;)E[c]=0===c?b.fps:E[c-1],F[c]=0===c?b.duration:F[c-1];r();if(d.heat){if(w.length)for(c=w.length;c--;)w[c].el.style[h[w[c].name].heatOn]=q?g(h[w[c].name].heatmap,b.fps,0,d.maxFps):g(h[w[c].name].heatmap,b.duration,d.threshold,
|
||||
0);if(f.graph&&h.column.heatOn)for(c=u.length;c--;)u[c].style[h.column.heatOn]=q?g(h.column.heatmap,E[c],0,d.maxFps):g(h.column.heatmap,F[c],d.threshold,0)}if(f.graph)for(p=0;p<d.history;p++)u[p].style.height=(q?E[p]?Math.round(O/d.maxFps*Math.min(E[p],d.maxFps)):0:F[p]?Math.round(O/d.threshold*Math.min(F[p],d.threshold)):0)+"px"}function k(){20>d.interval?(x=M(k),m()):(x=setTimeout(k,d.interval),P=M(m))}function G(a){a=a||window.event;a.preventDefault?(a.preventDefault(),a.stopPropagation()):(a.returnValue=
|
||||
!1,a.cancelBubble=!0);b.toggle()}function U(){d.toggleOn&&S(f.container,d.toggleOn,G,1);a.removeChild(f.container)}function V(){f.container&&U();h=D.theme[d.theme];y=h.compiledHeatmaps||[];if(!y.length&&h.heatmaps.length){for(p=0;p<h.heatmaps.length;p++){y[p]=[];for(c=0;c<=J;c++){var b=y[p],e=c,g;g=0.33/J*c;var j=h.heatmaps[p].saturation,m=h.heatmaps[p].lightness,n=void 0,k=void 0,l=void 0,t=l=void 0,v=n=k=void 0,v=void 0,l=0.5>=m?m*(1+j):m+j-m*j;0===l?g="#000":(t=2*m-l,k=(l-t)/l,g*=6,n=Math.floor(g),
|
||||
v=g-n,v*=l*k,0===n||6===n?(n=l,k=t+v,l=t):1===n?(n=l-v,k=l,l=t):2===n?(n=t,k=l,l=t+v):3===n?(n=t,k=l-v):4===n?(n=t+v,k=t):(n=l,k=t,l-=v),g="#"+N(n)+N(k)+N(l));b[e]=g}}h.compiledHeatmaps=y}f.container=s(document.createElement("div"),h.container);f.count=f.container.appendChild(s(document.createElement("div"),h.count));f.legend=f.container.appendChild(s(document.createElement("div"),h.legend));f.graph=d.graph?f.container.appendChild(s(document.createElement("div"),h.graph)):0;w.length=0;for(var q in f)f[q]&&
|
||||
h[q].heatOn&&w.push({name:q,el:f[q]});u.length=0;if(f.graph){f.graph.style.width=d.history*h.column.width+(d.history-1)*h.column.spacing+"px";for(c=0;c<d.history;c++)u[c]=f.graph.appendChild(s(document.createElement("div"),h.column)),u[c].style.position="absolute",u[c].style.bottom=0,u[c].style.right=c*h.column.width+c*h.column.spacing+"px",u[c].style.width=h.column.width+"px",u[c].style.height="0px"}s(f.container,d);r();a.appendChild(f.container);f.graph&&(O=f.graph.clientHeight);d.toggleOn&&("click"===
|
||||
d.toggleOn&&(f.container.style.cursor="pointer"),S(f.container,d.toggleOn,G))}"object"===H(a)&&a.nodeType===j&&(e=a,a=document.body);a||(a=document.body);var b=this,d=I({},D.defaults,e||{}),f={},u=[],h,y,J=100,w=[],W=0,B=d.threshold,Q=0,L=A()-B,z,E=[],F=[],x,P,q="fps"===d.show,O,K,c,p;b.options=d;b.fps=0;b.duration=0;b.isPaused=0;b.tickStart=function(){Q=A()};b.tick=function(){z=A();W=z-L;B+=(W-B)/d.smoothing;b.fps=1E3/B;b.duration=Q<L?B:z-Q;L=z};b.pause=function(){x&&(b.isPaused=1,clearTimeout(x),
|
||||
C(x),C(P),x=P=0);return b};b.resume=function(){x||(b.isPaused=0,k());return b};b.set=function(a,c){d[a]=c;q="fps"===d.show;-1!==R(a,X)&&V();-1!==R(a,Y)&&s(f.container,d);return b};b.showDuration=function(){b.set("show","ms");return b};b.showFps=function(){b.set("show","fps");return b};b.toggle=function(){b.set("show",q?"ms":"fps");return b};b.hide=function(){b.pause();f.container.style.display="none";return b};b.show=function(){b.resume();f.container.style.display="block";return b};b.destroy=function(){b.pause();
|
||||
U();b.tick=b.tickStart=function(){}};V();k()}var A,r=m.performance;A=r&&(r.now||r.webkitNow)?r[r.now?"now":"webkitNow"].bind(r):function(){return+new Date};for(var C=m.cancelAnimationFrame||m.cancelRequestAnimationFrame,M=m.requestAnimationFrame,r=["moz","webkit","o"],G=0,k=0,Z=r.length;k<Z&&!C;++k)M=(C=m[r[k]+"CancelAnimationFrame"]||m[r[k]+"CancelRequestAnimationFrame"])&&m[r[k]+"RequestAnimationFrame"];C||(M=function(a){var e=A(),g=Math.max(0,16-(e-G));G=e+g;return m.setTimeout(function(){a(e+
|
||||
g)},g)},C=function(a){clearTimeout(a)});var T="string"===H(document.createElement("div").textContent)?"textContent":"innerText";D.extend=I;window.FPSMeter=D;D.defaults={interval:100,smoothing:10,show:"fps",toggleOn:"click",decimals:1,maxFps:60,threshold:100,position:"absolute",zIndex:10,left:"5px",top:"5px",right:"auto",bottom:"auto",margin:"0 0 0 0",theme:"dark",heat:0,graph:0,history:20};var X=["toggleOn","theme","heat","graph","history"],Y="position zIndex left top right bottom margin".split(" ")})(window);(function(m,j){j.theme={};var s=j.theme.base={heatmaps:[],container:{heatOn:null,heatmap:null,padding:"5px",minWidth:"95px",height:"30px",lineHeight:"30px",textAlign:"right",textShadow:"none"},count:{heatOn:null,heatmap:null,position:"absolute",top:0,right:0,padding:"5px 10px",height:"30px",fontSize:"24px",fontFamily:"Consolas, Andale Mono, monospace",zIndex:2},legend:{heatOn:null,heatmap:null,position:"absolute",top:0,left:0,padding:"5px 10px",height:"30px",fontSize:"12px",lineHeight:"32px",fontFamily:"sans-serif",
|
||||
textAlign:"left",zIndex:2},graph:{heatOn:null,heatmap:null,position:"relative",boxSizing:"padding-box",MozBoxSizing:"padding-box",height:"100%",zIndex:1},column:{width:4,spacing:1,heatOn:null,heatmap:null}};j.theme.dark=j.extend({},s,{heatmaps:[{saturation:0.8,lightness:0.8}],container:{background:"#222",color:"#fff",border:"1px solid #1a1a1a",textShadow:"1px 1px 0 #222"},count:{heatOn:"color"},column:{background:"#3f3f3f"}});j.theme.light=j.extend({},s,{heatmaps:[{saturation:0.5,lightness:0.5}],
|
||||
container:{color:"#666",background:"#fff",textShadow:"1px 1px 0 rgba(255,255,255,.5), -1px -1px 0 rgba(255,255,255,.5)",boxShadow:"0 0 0 1px rgba(0,0,0,.1)"},count:{heatOn:"color"},column:{background:"#eaeaea"}});j.theme.colorful=j.extend({},s,{heatmaps:[{saturation:0.5,lightness:0.6}],container:{heatOn:"backgroundColor",background:"#888",color:"#fff",textShadow:"1px 1px 0 rgba(0,0,0,.2)",boxShadow:"0 0 0 1px rgba(0,0,0,.1)"},column:{background:"#777",backgroundColor:"rgba(0,0,0,.2)"}});j.theme.transparent=
|
||||
j.extend({},s,{heatmaps:[{saturation:0.8,lightness:0.5}],container:{padding:0,color:"#fff",textShadow:"1px 1px 0 rgba(0,0,0,.5)"},count:{padding:"0 5px",height:"40px",lineHeight:"40px"},legend:{padding:"0 5px",height:"40px",lineHeight:"42px"},graph:{height:"40px"},column:{width:5,background:"#999",heatOn:"backgroundColor",opacity:0.5}})})(window,FPSMeter);
|
BIN
www.eng/js/libs/greenworks-linux32.node
Normal file
BIN
www.eng/js/libs/greenworks-linux32.node
Normal file
Binary file not shown.
BIN
www.eng/js/libs/greenworks-linux64.node
Normal file
BIN
www.eng/js/libs/greenworks-linux64.node
Normal file
Binary file not shown.
BIN
www.eng/js/libs/greenworks-osx64.node
Normal file
BIN
www.eng/js/libs/greenworks-osx64.node
Normal file
Binary file not shown.
BIN
www.eng/js/libs/greenworks-win32.node
Normal file
BIN
www.eng/js/libs/greenworks-win32.node
Normal file
Binary file not shown.
BIN
www.eng/js/libs/greenworks-win64.node
Normal file
BIN
www.eng/js/libs/greenworks-win64.node
Normal file
Binary file not shown.
3
www.eng/js/libs/iphone-inline-video.browser.js
Normal file
3
www.eng/js/libs/iphone-inline-video.browser.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
/*! npm.im/iphone-inline-video */
|
||||
var makeVideoPlayableInline=function(){"use strict";/*! npm.im/intervalometer */
|
||||
function e(e,n,r,i){function t(r){d=n(t,i),e(r-(a||r)),a=r}var d,a;return{start:function(){d||t(0)},stop:function(){r(d),d=null,a=0}}}function n(n){return e(n,requestAnimationFrame,cancelAnimationFrame)}function r(e,n,r,i){function t(n){Boolean(e[r])===Boolean(i)&&n.stopImmediatePropagation(),delete e[r]}return e.addEventListener(n,t,!1),t}function i(e,n,r,i){function t(){return r[n]}function d(e){r[n]=e}i&&d(e[n]),Object.defineProperty(e,n,{get:t,set:d})}function t(e,n,r){r.addEventListener(n,function(){return e.dispatchEvent(new Event(n))})}function d(e,n){Promise.resolve().then(function(){e.dispatchEvent(new Event(n))})}function a(e){var n=new Audio;return t(e,"play",n),t(e,"playing",n),t(e,"pause",n),n.crossOrigin=e.crossOrigin,n.src=e.src||e.currentSrc||"data:",n}function o(e,n,r){(m||0)+200<Date.now()&&(e[g]=!0,m=Date.now()),r||(e.currentTime=n),A[++k%3]=100*n|0}function u(e){return e.driver.currentTime>=e.video.duration}function s(e){var n=this;n.video.readyState>=n.video.HAVE_FUTURE_DATA?(n.hasAudio||(n.driver.currentTime=n.video.currentTime+e*n.video.playbackRate/1e3,n.video.loop&&u(n)&&(n.driver.currentTime=0)),o(n.video,n.driver.currentTime)):n.video.networkState!==n.video.NETWORK_IDLE||n.video.buffered.length||n.video.load(),n.video.ended&&(delete n.video[g],n.video.pause(!0))}function c(){var e=this,n=e[b];return e.webkitDisplayingFullscreen?void e[E]():("data:"!==n.driver.src&&n.driver.src!==e.src&&(o(e,0,!0),n.driver.src=e.src),void(e.paused&&(n.paused=!1,e.buffered.length||e.load(),n.driver.play(),n.updater.start(),n.hasAudio||(d(e,"play"),n.video.readyState>=n.video.HAVE_ENOUGH_DATA&&d(e,"playing")))))}function v(e){var n=this,r=n[b];r.driver.pause(),r.updater.stop(),n.webkitDisplayingFullscreen&&n[T](),r.paused&&!e||(r.paused=!0,r.hasAudio||d(n,"pause"),n.ended&&(n[g]=!0,d(n,"ended")))}function p(e,r){var i=e[b]={};i.paused=!0,i.hasAudio=r,i.video=e,i.updater=n(s.bind(i)),r?i.driver=a(e):(e.addEventListener("canplay",function(){e.paused||d(e,"playing")}),i.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){i.driver.paused=!0},play:function(){i.driver.paused=!1,u(i)&&o(e,0)},get ended(){return u(i)}}),e.addEventListener("emptied",function(){var n=!i.driver.src||"data:"===i.driver.src;i.driver.src&&i.driver.src!==e.src&&(o(e,0,!0),i.driver.src=e.src,n?i.driver.play():i.updater.stop())},!1),e.addEventListener("webkitbeginfullscreen",function(){e.paused?r&&!i.driver.buffered.length&&i.driver.load():(e.pause(),e[E]())}),r&&(e.addEventListener("webkitendfullscreen",function(){i.driver.currentTime=e.currentTime}),e.addEventListener("seeking",function(){A.indexOf(100*e.currentTime|0)<0&&(i.driver.currentTime=e.currentTime)}))}function l(e){var n=e[b];e[E]=e.play,e[T]=e.pause,e.play=c,e.pause=v,i(e,"paused",n.driver),i(e,"muted",n.driver,!0),i(e,"playbackRate",n.driver,!0),i(e,"ended",n.driver),i(e,"loop",n.driver,!0),r(e,"seeking"),r(e,"seeked"),r(e,"timeupdate",g,!1),r(e,"ended",g,!1)}function f(e,n,r){void 0===n&&(n=!0),void 0===r&&(r=!0),r&&!h||e[b]||(p(e,n),l(e),e.classList.add("IIV"),!n&&e.autoplay&&e.play(),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments"))}var m,y="undefined"==typeof Symbol?function(e){return"@"+(e||"@")+Math.random()}:Symbol,h="object-fit"in document.head.style&&/iPhone|iPod/i.test(navigator.userAgent)&&!matchMedia("(-webkit-video-playable-inline)").matches,b=y(),g=y(),E=y("nativeplay"),T=y("nativepause"),A=[],k=0;return f.isWhitelisted=h,f}();
|
BIN
www.eng/js/libs/libsdkencryptedappticket.dylib
Normal file
BIN
www.eng/js/libs/libsdkencryptedappticket.dylib
Normal file
Binary file not shown.
BIN
www.eng/js/libs/libsdkencryptedappticket.so
Normal file
BIN
www.eng/js/libs/libsdkencryptedappticket.so
Normal file
Binary file not shown.
BIN
www.eng/js/libs/libsteam_api.dylib
Normal file
BIN
www.eng/js/libs/libsteam_api.dylib
Normal file
Binary file not shown.
BIN
www.eng/js/libs/libsteam_api.so
Normal file
BIN
www.eng/js/libs/libsteam_api.so
Normal file
Binary file not shown.
1
www.eng/js/libs/lz-string.js
Normal file
1
www.eng/js/libs/lz-string.js
Normal file
File diff suppressed because one or more lines are too long
398
www.eng/js/libs/pinyin.json
Normal file
398
www.eng/js/libs/pinyin.json
Normal file
|
@ -0,0 +1,398 @@
|
|||
{
|
||||
"a": "啊阿",
|
||||
"ai": "埃挨哎唉哀皑癌蔼矮艾碍爱隘",
|
||||
"an": "鞍氨安俺按暗岸胺案",
|
||||
"ang": "肮昂盎",
|
||||
"ao": "凹敖熬翱袄傲奥懊澳",
|
||||
"ba": "芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸",
|
||||
"bai": "白柏百摆佰败拜稗",
|
||||
"ban": "斑班搬扳般颁板版扮拌伴瓣半办绊",
|
||||
"bang": "邦帮梆榜膀绑棒磅蚌镑傍谤",
|
||||
"bao": "苞胞包褒剥盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆",
|
||||
"bei": "杯碑悲卑北辈背贝钡倍狈备惫焙被",
|
||||
"ben": "奔苯本笨",
|
||||
"beng": "崩绷甭泵蹦迸",
|
||||
"bi": "逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛",
|
||||
"bian": "鞭边编贬扁便变卞辨辩辫遍",
|
||||
"biao": "标彪膘表",
|
||||
"bie": "鳖憋别瘪",
|
||||
"bin": "彬斌濒滨宾摈",
|
||||
"bing": "兵冰柄丙秉饼炳 睝睞睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并",
|
||||
"bo": "玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜",
|
||||
"bu": "哺补埠不布步簿部怖",
|
||||
"ca": "擦",
|
||||
"cai": "猜裁材才财睬踩采彩菜蔡",
|
||||
"can": "餐参蚕残惭惨灿",
|
||||
"cang": "苍舱仓沧藏",
|
||||
"cao": "操糙槽曹草",
|
||||
"ce": "厕策侧册测",
|
||||
"ceng": "层蹭",
|
||||
"cha": "插叉茬茶查碴搽察岔差诧",
|
||||
"chai": "拆柴豺",
|
||||
"chan": "搀掺蝉馋谗缠铲产阐颤",
|
||||
"chang": "昌猖 矦矨矪矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡",
|
||||
"chao": "超抄钞朝嘲潮巢吵炒",
|
||||
"che": "车扯撤掣彻澈",
|
||||
"chen": "郴臣辰尘晨忱沉陈趁衬",
|
||||
"cheng": "撑称城橙成呈乘程惩澄诚承逞骋秤",
|
||||
"chi": "吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽",
|
||||
"chong": "充冲虫崇宠",
|
||||
"chou": "抽酬畴踌稠愁筹仇绸瞅丑臭",
|
||||
"chu": "初出橱厨躇锄雏滁除楚碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处",
|
||||
"chuai": "揣",
|
||||
"chuan": "川穿椽传船喘串",
|
||||
"chuang": "疮窗幢床闯创",
|
||||
"chui": "吹炊捶锤垂",
|
||||
"chun": "春椿醇唇淳纯蠢",
|
||||
"chuo": "戳绰",
|
||||
"ci": "疵茨磁雌辞慈瓷词此刺赐次",
|
||||
"cong": "聪葱囱匆从丛",
|
||||
"cou": "凑",
|
||||
"cu": "粗醋簇促",
|
||||
"cuan": "蹿篡窜",
|
||||
"cui": "摧崔催脆瘁粹淬翠",
|
||||
"cun": "村存寸",
|
||||
"cuo": "磋撮搓措挫错",
|
||||
"da": "搭达答瘩打大",
|
||||
"dai": "呆歹傣戴带殆代贷袋待逮礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠",
|
||||
"dan": "耽担丹单郸掸胆旦氮但惮淡诞弹蛋",
|
||||
"dang": "当挡党荡档",
|
||||
"dao": "刀捣蹈倒岛祷导到稻悼道盗",
|
||||
"de": "德得的",
|
||||
"deng": "蹬灯登等瞪凳邓",
|
||||
"di": "堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔",
|
||||
"dian": "颠掂滇碘点典靛垫电佃甸店惦奠淀殿",
|
||||
"diao": "碉叼雕凋刁掉吊钓调",
|
||||
"die": "跌爹碟蝶迭谍叠禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜",
|
||||
"ding": "丁盯叮钉顶鼎锭定订",
|
||||
"diu": "丢",
|
||||
"dong": "东冬董懂动栋侗恫冻洞",
|
||||
"dou": "兜抖斗陡豆逗痘",
|
||||
"du": "都督毒犊独读堵睹赌杜镀肚度渡妒",
|
||||
"duan": "端短锻段断缎",
|
||||
"dui": "堆兑队对",
|
||||
"dun": "墩吨蹲敦顿囤钝盾遁",
|
||||
"duo": "掇哆多夺垛躲朵跺舵剁惰堕",
|
||||
"e": "蛾峨鹅俄额讹娥恶厄扼遏鄂饿",
|
||||
"en": "恩",
|
||||
"er": "而儿耳尔饵洱二稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰",
|
||||
"fa": "发罚筏伐乏阀法珐",
|
||||
"fan": "藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛",
|
||||
"fang": "坊芳方肪房防妨仿访纺放",
|
||||
"fei": "菲非啡飞肥匪诽吠肺废沸费",
|
||||
"fen": "芬酚吩氛分纷坟焚汾粉奋份忿愤粪",
|
||||
"feng": "丰封枫蜂峰锋风疯烽逢冯缝讽奉凤",
|
||||
"fo": "佛",
|
||||
"fou": "否",
|
||||
"fu": "夫敷肤孵扶拂辐幅氟符伏俘服窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐",
|
||||
"ga": "噶嘎",
|
||||
"gai": "该改概钙盖溉",
|
||||
"gan": "干甘杆柑竿肝赶感秆敢赣",
|
||||
"gang": "冈刚钢缸肛纲岗港杠",
|
||||
"gao": "篙皋高膏羔糕搞镐稿告",
|
||||
"ge": "哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各",
|
||||
"gei": "给",
|
||||
"gen": "根跟",
|
||||
"geng": "耕更庚羹笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗",
|
||||
"gong": "工攻功恭龚供躬公宫弓巩汞拱贡共",
|
||||
"gou": "钩勾沟苟狗垢构购够",
|
||||
"gu": "辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇",
|
||||
"gua": "刮瓜剐寡挂褂",
|
||||
"guai": "乖拐怪",
|
||||
"guan": "棺关官冠观管馆罐惯灌贯",
|
||||
"guang": "光广逛",
|
||||
"gui": "瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽",
|
||||
"gun": "辊滚棍",
|
||||
"guo": "锅郭国果裹过",
|
||||
"ha": "哈篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂",
|
||||
"hai": "骸孩海氦亥害骇",
|
||||
"han": "酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉",
|
||||
"hang": "夯杭航",
|
||||
"hao": "壕嚎豪毫郝好耗号浩",
|
||||
"he": "呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺",
|
||||
"hei": "嘿黑",
|
||||
"hen": "痕很狠恨",
|
||||
"heng": "哼亨横衡恒",
|
||||
"hong": "轰哄烘虹鸿洪宏弘红",
|
||||
"hou": "喉侯猴吼厚候后",
|
||||
"hu": "呼乎忽瑚壶葫胡蝴狐糊湖籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户",
|
||||
"hua": "花哗华猾滑画划化话",
|
||||
"huai": "槐徊怀淮坏",
|
||||
"huan": "欢环桓还缓换患唤痪豢焕涣宦幻",
|
||||
"huang": "荒慌黄磺蝗簧皇凰惶煌晃幌恍谎",
|
||||
"hui": "灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘",
|
||||
"hun": "荤昏婚魂浑混",
|
||||
"huo": "豁活伙火获或惑霍货祸",
|
||||
"ji": "击圾基机畸稽积箕粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪",
|
||||
"jia": "嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁",
|
||||
"jian": "歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件 紷紸紹紺紻紼紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建",
|
||||
"jiang": "僵姜将浆江疆蒋桨奖讲匠酱降",
|
||||
"jiao": "蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖",
|
||||
"jie": "揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届",
|
||||
"jin": "巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲",
|
||||
"jing": "荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净",
|
||||
"jiong": "炯窘",
|
||||
"jiu": "揪究纠玖韭久灸九酒厩救旧臼舅咎就疚",
|
||||
"ju": "鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧",
|
||||
"juan": "捐鹃娟倦眷卷绢",
|
||||
"jue": "撅攫抉掘倔爵觉决诀绝",
|
||||
"jun": "均菌钧军君峻緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏",
|
||||
"ka": "喀咖卡咯",
|
||||
"kai": "开揩楷凯慨",
|
||||
"kan": "刊堪勘坎砍看",
|
||||
"kang": "康慷糠扛抗亢炕",
|
||||
"kao": "考拷烤靠",
|
||||
"ke": "坷苛柯棵磕颗科壳咳可渴克刻客课",
|
||||
"ken": "肯啃垦恳",
|
||||
"keng": "坑吭",
|
||||
"kong": "空恐孔控",
|
||||
"kou": "抠口扣寇",
|
||||
"ku": "枯哭窟苦酷库裤",
|
||||
"kua": "夸垮挎跨胯",
|
||||
"kuai": "块筷侩快",
|
||||
"kuan": "宽款",
|
||||
"kuang": "匡筐狂框矿眶旷况",
|
||||
"kui": "亏盔岿窥葵奎魁傀繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃",
|
||||
"kun": "坤昆捆困",
|
||||
"kuo": "括扩廓阔",
|
||||
"la": "垃拉喇蜡腊辣啦邋",
|
||||
"lai": "莱来赖",
|
||||
"lan": "蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥",
|
||||
"lang": "琅榔狼廊郎朗浪",
|
||||
"lao": "捞劳牢老佬姥酪烙涝",
|
||||
"le": "勒乐了",
|
||||
"lei": "雷镭蕾磊累儡垒擂肋类泪",
|
||||
"leng": "棱楞冷",
|
||||
"li": "厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩",
|
||||
"lia": "俩",
|
||||
"lian": "联莲连镰廉怜涟帘敛脸链恋炼练",
|
||||
"liang": "粮凉梁粱良两辆量晾亮谅",
|
||||
"liao": "撩聊僚疗燎寥辽潦撂镣廖料",
|
||||
"lie": "列裂烈劣猎",
|
||||
"lin": "琳林磷霖临邻鳞淋凛赁吝拎",
|
||||
"ling": "玲菱零龄铃伶羚凌灵陵岭领另令",
|
||||
"liu": "溜琉榴硫馏留刘瘤流柳六",
|
||||
"long": "龙聋咙笼窿 翤翧翨翪翫翬翭翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇",
|
||||
"lou": "楼娄搂篓漏陋",
|
||||
"lu": "芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮",
|
||||
"lv": "驴吕铝侣旅履屡缕虑氯律率滤绿",
|
||||
"luan": "峦挛孪滦卵乱",
|
||||
"lue": "掠略",
|
||||
"lun": "抡轮伦仑沦纶论",
|
||||
"luo": "萝螺罗逻锣箩骡裸落洛骆络",
|
||||
"ma": "妈麻玛码蚂马骂嘛吗",
|
||||
"mai": "埋买麦卖迈脉",
|
||||
"man": "瞒馒蛮满蔓曼慢漫聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩",
|
||||
"mang": "芒茫盲氓忙莽",
|
||||
"mao": "猫茅锚毛矛铆卯茂冒帽貌贸",
|
||||
"me": "么",
|
||||
"mei": "玫枚梅酶霉煤没眉媒镁每美昧寐妹媚",
|
||||
"men": "门闷们",
|
||||
"meng": "萌蒙檬盟锰猛梦孟",
|
||||
"mi": "眯醚靡糜迷谜弥米秘觅泌蜜密幂",
|
||||
"mian": "棉眠绵冕免勉娩缅面",
|
||||
"miao": "苗描瞄藐秒渺庙妙",
|
||||
"mie": "蔑灭",
|
||||
"min": "民抿皿敏悯闽",
|
||||
"ming": "明螟鸣铭名命",
|
||||
"miu": "谬",
|
||||
"mo": "摸腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌",
|
||||
"mou": "谋牟某",
|
||||
"mu": "拇牡亩姆母墓暮幕募慕木目睦牧穆",
|
||||
"na": "拿哪呐钠那娜纳",
|
||||
"nai": "氖乃奶耐奈",
|
||||
"nan": "南男难",
|
||||
"nang": "囊",
|
||||
"nao": "挠脑恼闹淖",
|
||||
"ne": "呢",
|
||||
"nei": "馁内",
|
||||
"nen": "嫩",
|
||||
"neng": "能",
|
||||
"ni": "妮霓倪泥尼拟你匿腻逆溺",
|
||||
"nian": "蔫拈年碾撵捻念",
|
||||
"niang": "娘酿",
|
||||
"niao": "鸟尿",
|
||||
"nie": "捏聂孽啮镊镍涅",
|
||||
"nin": "您",
|
||||
"ning": "柠狞凝宁 臔臕臖臗臘臙臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞",
|
||||
"niu": "牛扭钮纽",
|
||||
"nong": "脓浓农弄",
|
||||
"nu": "奴努怒",
|
||||
"nv": "女",
|
||||
"nuan": "暖",
|
||||
"nue": "虐疟",
|
||||
"nuo": "挪懦糯诺",
|
||||
"o": "哦",
|
||||
"ou": "欧鸥殴藕呕偶沤",
|
||||
"pa": "啪趴爬帕怕琶",
|
||||
"pai": "拍排牌徘湃派",
|
||||
"pan": "攀潘盘磐盼畔判叛",
|
||||
"pang": "乓庞旁耪胖",
|
||||
"pao": "抛咆刨炮袍跑泡",
|
||||
"pei": "呸胚培裴赔陪配佩沛",
|
||||
"pen": "喷盆",
|
||||
"peng": "砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰",
|
||||
"pi": "坯砒霹批披劈琵毗艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬",
|
||||
"pian": "篇偏片骗",
|
||||
"piao": "飘漂瓢票",
|
||||
"pie": "撇瞥",
|
||||
"pin": "拼频贫品聘",
|
||||
"ping": "乒坪苹萍平凭瓶评屏",
|
||||
"po": "坡泼颇婆破魄迫粕剖",
|
||||
"pu": "扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑",
|
||||
"qi": "期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫",
|
||||
"qia": "掐茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽",
|
||||
"qian": "牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉",
|
||||
"qiang": "枪呛腔羌墙蔷强抢",
|
||||
"qiao": "橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍",
|
||||
"qie": "切茄且怯窃",
|
||||
"qin": "钦侵亲秦琴勤芹擒禽寝沁",
|
||||
"qing": "蜻青轻氢倾卿清擎晴氰情顷请庆",
|
||||
"qiong": "琼穷",
|
||||
"qiu": "秋丘邱球求囚酋泅",
|
||||
"qu": "趋区蛆曲躯屈驱渠菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去",
|
||||
"quan": "圈颧权醛泉全痊拳犬券劝",
|
||||
"que": "缺炔瘸却鹊榷确雀",
|
||||
"qun": "裙群",
|
||||
"ran": "然燃冉染",
|
||||
"rang": "瓤壤攘嚷让",
|
||||
"rao": "饶扰绕",
|
||||
"re": "惹热",
|
||||
"ren": "壬仁人忍韧任认刃妊纫",
|
||||
"reng": "扔仍",
|
||||
"ri": "日",
|
||||
"rong": "戎茸蓉荣融熔溶容绒冗",
|
||||
"rou": "揉柔肉",
|
||||
"ru": "茹蠕儒孺如辱乳汝入褥",
|
||||
"ruan": "软阮",
|
||||
"rui": "蕊瑞锐",
|
||||
"run": "闰润",
|
||||
"ruo": "若弱",
|
||||
"sa": "撒洒萨",
|
||||
"sai": "腮鳃塞赛",
|
||||
"san": "三叁葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散",
|
||||
"sang": "桑嗓丧",
|
||||
"sao": "搔骚扫嫂",
|
||||
"se": "瑟色涩",
|
||||
"sen": "森",
|
||||
"seng": "僧",
|
||||
"sha": "莎砂杀刹沙纱傻啥煞",
|
||||
"shai": "筛晒",
|
||||
"shan": "珊苫杉山删煽衫闪陕擅赡膳善汕扇缮",
|
||||
"shang": "墒伤商赏晌上尚裳",
|
||||
"shao": "梢捎稍烧芍勺韶少哨邵绍",
|
||||
"she": "奢赊蛇舌舍赦摄射慑涉社设",
|
||||
"shen": "砷申呻伸身深娠绅神沈审婶甚肾慎渗",
|
||||
"sheng": "声生甥牲升绳 蔃蔄蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣",
|
||||
"shi": "师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试",
|
||||
"shou": "收手首守寿授售受瘦兽",
|
||||
"shu": "蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕",
|
||||
"shua": "刷耍",
|
||||
"shuai": "摔衰甩帅",
|
||||
"shuan": "栓拴",
|
||||
"shuang": "霜双爽",
|
||||
"shui": "谁水睡税",
|
||||
"shun": "吮瞬顺舜",
|
||||
"shuo": "说硕朔烁",
|
||||
"si": "斯撕嘶思私司丝死肆寺嗣四伺似饲巳",
|
||||
"song": "松耸怂颂送宋讼诵",
|
||||
"sou": "搜艘擞",
|
||||
"su": "嗽苏酥俗素速粟僳塑溯宿诉肃",
|
||||
"suan": "酸蒜算",
|
||||
"sui": "虽隋随绥髓碎岁穗遂隧祟",
|
||||
"sun": "孙损笋",
|
||||
"suo": "蓑梭唆缩琐索锁所",
|
||||
"ta": "遢塌他它她塔藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏",
|
||||
"tai": "胎苔抬台泰酞太态汰",
|
||||
"tan": "坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭",
|
||||
"tang": "汤塘搪堂棠膛唐糖倘躺淌趟烫",
|
||||
"tao": "掏涛滔绦萄桃逃淘陶讨套",
|
||||
"te": "特",
|
||||
"teng": "藤腾疼誊",
|
||||
"ti": "梯剔踢锑提题蹄啼体替嚏惕涕剃屉",
|
||||
"tian": "天添填田甜恬舔腆",
|
||||
"tiao": "挑条迢眺跳",
|
||||
"tie": "贴铁帖",
|
||||
"ting": "蜓厅听烃虭虯虰虲虳虴虵虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇",
|
||||
"tong": "通桐酮瞳同铜彤童桶捅筒统痛",
|
||||
"tou": "偷投头透",
|
||||
"tu": "凸秃突图徒途涂屠土吐兔",
|
||||
"tuan": "湍团",
|
||||
"tui": "推颓腿蜕褪退",
|
||||
"tun": "吞屯臀",
|
||||
"tuo": "拖托脱鸵陀驮驼椭妥拓唾",
|
||||
"wa": "挖哇蛙洼娃瓦袜",
|
||||
"wai": "歪外",
|
||||
"wan": "豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕",
|
||||
"wang": "汪王亡枉网往旺望忘妄",
|
||||
"wei": "威蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫",
|
||||
"wen": "瘟温蚊文闻纹吻稳紊问",
|
||||
"weng": "嗡翁瓮",
|
||||
"wo": "挝蜗涡窝我斡卧握沃",
|
||||
"wu": "巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误",
|
||||
"xi": "昔熙析西硒矽晰嘻吸锡牺螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细",
|
||||
"xia": "瞎虾匣霞辖暇峡侠狭下厦夏吓",
|
||||
"xian": "掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线",
|
||||
"xiang": "相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象",
|
||||
"xiao": "萧硝霄削哮嚣销消宵淆晓蠤蠥蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效",
|
||||
"xie": "楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑",
|
||||
"xin": "薪芯锌欣辛新忻心信衅",
|
||||
"xing": "星腥猩惺兴刑型形邢行醒幸杏性姓",
|
||||
"xiong": "兄凶胸匈汹雄熊",
|
||||
"xiu": "休修羞朽嗅锈秀袖绣",
|
||||
"xu": "墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续",
|
||||
"xuan": "轩喧宣悬旋玄 袬袮袯袰袲袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚",
|
||||
"xue": "靴薛学穴雪血",
|
||||
"xun": "勋熏循旬询寻驯巡殉汛训讯逊迅",
|
||||
"ya": "压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶",
|
||||
"yan": "焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验",
|
||||
"yang": "殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾",
|
||||
"yao": "邀腰妖瑶褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀",
|
||||
"ye": "椰噎耶爷野冶也页掖业叶曳腋夜液",
|
||||
"yi": "一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎",
|
||||
"yin": "茵荫因殷音阴姻吟银淫寅饮尹引隐覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印",
|
||||
"ying": "英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映",
|
||||
"yo": "哟",
|
||||
"yong": "拥佣臃痈庸雍踊蛹咏泳涌永恿勇用",
|
||||
"you": "幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂",
|
||||
"yu": "淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭",
|
||||
"yuan": "鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院",
|
||||
"yue": "曰约越跃钥岳粤月悦阅",
|
||||
"yun": "耘云郧匀陨允运蕴酝晕韵孕",
|
||||
"za": "匝砸杂",
|
||||
"zai": "栽哉灾宰载再在",
|
||||
"zan": "咱攒暂赞",
|
||||
"zang": "赃脏葬",
|
||||
"zao": "遭糟凿藻枣早澡蚤躁噪造皂灶燥",
|
||||
"ze": "责择则泽",
|
||||
"zei": "贼",
|
||||
"zen": "怎",
|
||||
"zeng": "增憎曾赠",
|
||||
"zha": "扎喳渣札轧誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈",
|
||||
"zhai": "摘斋宅窄债寨",
|
||||
"zhan": "瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽",
|
||||
"zhang": "樟章彰漳张掌涨杖丈帐账仗胀瘴障",
|
||||
"zhao": "招昭找沼赵照罩兆肇召",
|
||||
"zhe": "遮折哲蛰辙者锗蔗这浙",
|
||||
"zhen": "珍斟真甄砧臻贞针侦枕疹诊震振镇阵",
|
||||
"zheng": "蒸挣睁征狰争怔整拯正政諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证",
|
||||
"zhi": "芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒",
|
||||
"zhong": "中盅忠钟衷终种肿重仲众",
|
||||
"zhou": "舟周州洲诌粥轴肘帚咒皱宙昼骤",
|
||||
"zhu": "珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻",
|
||||
"zhua": "抓爪",
|
||||
"zhuai": "拽",
|
||||
"zhuan": "专砖转撰赚篆",
|
||||
"zhuang": "桩庄装妆撞壮状",
|
||||
"zhui": "椎锥追赘坠缀",
|
||||
"zhun": "谆准",
|
||||
"zhuo": "捉拙卓桌琢茁酌啄着灼浊",
|
||||
"zi": "兹咨资姿滋淄孜紫仔籽滓子自渍字",
|
||||
"zong": "鬃棕踪宗综总纵",
|
||||
"zou": "邹走奏揍",
|
||||
"zu": "租足卒族祖诅阻组",
|
||||
"zuan": "钻纂",
|
||||
"zui": "嘴醉最罪",
|
||||
"zun": "尊遵",
|
||||
"zuo": "昨左佐柞做作坐座"
|
||||
}
|
428
www.eng/js/libs/pixi-picture.js
Normal file
428
www.eng/js/libs/pixi-picture.js
Normal file
|
@ -0,0 +1,428 @@
|
|||
var __extends = (this && this.__extends) || function (d, b) {
|
||||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var shaderLib = [
|
||||
{
|
||||
vertUniforms: "",
|
||||
vertCode: "vTextureCoord = aTextureCoord;",
|
||||
fragUniforms: "uniform vec4 uTextureClamp;",
|
||||
fragCode: "vec2 textureCoord = clamp(vTextureCoord, uTextureClamp.xy, uTextureClamp.zw);"
|
||||
},
|
||||
{
|
||||
vertUniforms: "uniform mat3 uTransform;",
|
||||
vertCode: "vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;",
|
||||
fragUniforms: "",
|
||||
fragCode: "vec2 textureCoord = vTextureCoord;"
|
||||
},
|
||||
{
|
||||
vertUniforms: "uniform mat3 uTransform;",
|
||||
vertCode: "vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;",
|
||||
fragUniforms: "uniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;",
|
||||
fragCode: "vec2 textureCoord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;" +
|
||||
"\ntextureCoord = (uMapCoord * vec3(textureCoord, 1.0)).xy;" +
|
||||
"\ntextureCoord = clamp(textureCoord, uClampFrame.xy, uClampFrame.zw);"
|
||||
}
|
||||
];
|
||||
var PictureShader = (function (_super) {
|
||||
__extends(PictureShader, _super);
|
||||
function PictureShader(gl, vert, frag, tilingMode) {
|
||||
var lib = shaderLib[tilingMode];
|
||||
_super.call(this, gl, vert.replace(/%SPRITE_UNIFORMS%/gi, lib.vertUniforms)
|
||||
.replace(/%SPRITE_CODE%/gi, lib.vertCode), frag.replace(/%SPRITE_UNIFORMS%/gi, lib.fragUniforms)
|
||||
.replace(/%SPRITE_CODE%/gi, lib.fragCode));
|
||||
this.bind();
|
||||
this.tilingMode = tilingMode;
|
||||
this.tempQuad = new PIXI.Quad(gl);
|
||||
this.tempQuad.initVao(this);
|
||||
this.uniforms.uColor = new Float32Array([1, 1, 1, 1]);
|
||||
this.uniforms.uSampler = [0, 1];
|
||||
}
|
||||
PictureShader.blendVert = "\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform mat3 mapMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vMapCoord;\n%SPRITE_UNIFORMS%\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n %SPRITE_CODE%\n vMapCoord = (mapMatrix * vec3(aVertexPosition, 1.0)).xy;\n}\n";
|
||||
return PictureShader;
|
||||
}(PIXI.Shader));
|
||||
extras.PictureShader = PictureShader;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var overlayFrag = "\nvarying vec2 vTextureCoord;\nvarying vec2 vMapCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler[2];\nuniform vec4 uColor;\n%SPRITE_UNIFORMS%\n\nvoid main(void)\n{\n %SPRITE_CODE%\n vec4 source = texture2D(uSampler[0], textureCoord) * uColor;\n vec4 target = texture2D(uSampler[1], vMapCoord);\n\n //reverse hardlight\n if (source.a == 0.0) {\n gl_FragColor = vec4(0, 0, 0, 0);\n return;\n }\n //yeah, premultiplied\n vec3 Cb = source.rgb/source.a, Cs;\n if (target.a > 0.0) {\n Cs = target.rgb / target.a;\n }\n vec3 multiply = Cb * Cs * 2.0;\n vec3 Cs2 = Cs * 2.0 - 1.0;\n vec3 screen = Cb + Cs2 - Cb * Cs2;\n vec3 B;\n if (Cb.r <= 0.5) {\n B.r = multiply.r;\n } else {\n B.r = screen.r;\n }\n if (Cb.g <= 0.5) {\n B.g = multiply.g;\n } else {\n B.g = screen.g;\n }\n if (Cb.b <= 0.5) {\n B.b = multiply.b;\n } else {\n B.b = screen.b;\n }\n vec4 res;\n res.xyz = (1.0 - source.a) * Cs + source.a * B;\n res.a = source.a + target.a * (1.0-source.a);\n gl_FragColor = vec4(res.xyz * res.a, res.a);\n}\n";
|
||||
var HardLightShader = (function (_super) {
|
||||
__extends(HardLightShader, _super);
|
||||
function HardLightShader(gl, tilingMode) {
|
||||
_super.call(this, gl, extras.PictureShader.blendVert, overlayFrag, tilingMode);
|
||||
}
|
||||
return HardLightShader;
|
||||
}(extras.PictureShader));
|
||||
extras.HardLightShader = HardLightShader;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
function mapFilterBlendModesToPixi(gl, array) {
|
||||
if (array === void 0) { array = []; }
|
||||
array[PIXI.BLEND_MODES.OVERLAY] = [new extras.OverlayShader(gl, 0), new extras.OverlayShader(gl, 1), new extras.OverlayShader(gl, 2)];
|
||||
array[PIXI.BLEND_MODES.HARD_LIGHT] = [new extras.HardLightShader(gl, 0), new extras.HardLightShader(gl, 1), new extras.HardLightShader(gl, 2)];
|
||||
return array;
|
||||
}
|
||||
extras.mapFilterBlendModesToPixi = mapFilterBlendModesToPixi;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var normalFrag = "\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler[2];\nuniform vec4 uColor;\n%SPRITE_UNIFORMS%\n\nvoid main(void)\n{\n %SPRITE_CODE%\n\n vec4 sample = texture2D(uSampler[0], textureCoord);\n gl_FragColor = sample * uColor;\n}\n";
|
||||
var normalVert = "\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n%SPRITE_UNIFORMS%\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n %SPRITE_CODE%\n}\n";
|
||||
var NormalShader = (function (_super) {
|
||||
__extends(NormalShader, _super);
|
||||
function NormalShader(gl, tilingMode) {
|
||||
_super.call(this, gl, normalVert, normalFrag, tilingMode);
|
||||
}
|
||||
return NormalShader;
|
||||
}(extras.PictureShader));
|
||||
extras.NormalShader = NormalShader;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var overlayFrag = "\nvarying vec2 vTextureCoord;\nvarying vec2 vMapCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler[2];\nuniform vec4 uColor;\n%SPRITE_UNIFORMS%\n\nvoid main(void)\n{\n %SPRITE_CODE%\n vec4 source = texture2D(uSampler[0], textureCoord) * uColor;\n vec4 target = texture2D(uSampler[1], vMapCoord);\n\n //reverse hardlight\n if (source.a == 0.0) {\n gl_FragColor = vec4(0, 0, 0, 0);\n return;\n }\n //yeah, premultiplied\n vec3 Cb = source.rgb/source.a, Cs;\n if (target.a > 0.0) {\n Cs = target.rgb / target.a;\n }\n vec3 multiply = Cb * Cs * 2.0;\n vec3 Cb2 = Cb * 2.0 - 1.0;\n vec3 screen = Cb2 + Cs - Cb2 * Cs;\n vec3 B;\n if (Cs.r <= 0.5) {\n B.r = multiply.r;\n } else {\n B.r = screen.r;\n }\n if (Cs.g <= 0.5) {\n B.g = multiply.g;\n } else {\n B.g = screen.g;\n }\n if (Cs.b <= 0.5) {\n B.b = multiply.b;\n } else {\n B.b = screen.b;\n }\n vec4 res;\n res.xyz = (1.0 - source.a) * Cs + source.a * B;\n res.a = source.a + target.a * (1.0-source.a);\n gl_FragColor = vec4(res.xyz * res.a, res.a);\n}\n";
|
||||
var OverlayShader = (function (_super) {
|
||||
__extends(OverlayShader, _super);
|
||||
function OverlayShader(gl, tilingMode) {
|
||||
_super.call(this, gl, extras.PictureShader.blendVert, overlayFrag, tilingMode);
|
||||
}
|
||||
return OverlayShader;
|
||||
}(extras.PictureShader));
|
||||
extras.OverlayShader = OverlayShader;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
function nextPow2(v) {
|
||||
v += (v === 0) ? 1 : 0;
|
||||
--v;
|
||||
v |= v >>> 1;
|
||||
v |= v >>> 2;
|
||||
v |= v >>> 4;
|
||||
v |= v >>> 8;
|
||||
v |= v >>> 16;
|
||||
return v + 1;
|
||||
}
|
||||
var PictureRenderer = (function (_super) {
|
||||
__extends(PictureRenderer, _super);
|
||||
function PictureRenderer(renderer) {
|
||||
_super.call(this, renderer);
|
||||
}
|
||||
PictureRenderer.prototype.onContextChange = function () {
|
||||
var gl = this.renderer.gl;
|
||||
this.drawModes = extras.mapFilterBlendModesToPixi(gl);
|
||||
this.normalShader = [new extras.NormalShader(gl, 0), new extras.NormalShader(gl, 1), new extras.NormalShader(gl, 2)];
|
||||
this._tempClamp = new Float32Array(4);
|
||||
this._tempColor = new Float32Array(4);
|
||||
this._tempRect = new PIXI.Rectangle();
|
||||
this._tempRect2 = new PIXI.Rectangle();
|
||||
this._tempRect3 = new PIXI.Rectangle();
|
||||
this._tempMatrix = new PIXI.Matrix();
|
||||
this._tempMatrix2 = new PIXI.Matrix();
|
||||
this._bigBuf = new Uint8Array(1 << 20);
|
||||
this._renderTexture = new PIXI.BaseRenderTexture(1024, 1024);
|
||||
};
|
||||
PictureRenderer.prototype.start = function () {
|
||||
};
|
||||
PictureRenderer.prototype.flush = function () {
|
||||
};
|
||||
PictureRenderer.prototype._getRenderTexture = function (minWidth, minHeight) {
|
||||
if (this._renderTexture.width < minWidth ||
|
||||
this._renderTexture.height < minHeight) {
|
||||
minHeight = nextPow2(minWidth);
|
||||
minHeight = nextPow2(minHeight);
|
||||
this._renderTexture.resize(minWidth, minHeight);
|
||||
}
|
||||
return this._renderTexture;
|
||||
};
|
||||
PictureRenderer.prototype._getBuf = function (size) {
|
||||
var buf = this._bigBuf;
|
||||
if (buf.length < size) {
|
||||
size = nextPow2(size);
|
||||
buf = new Uint8Array(size);
|
||||
this._bigBuf = buf;
|
||||
}
|
||||
return buf;
|
||||
};
|
||||
PictureRenderer.prototype.render = function (sprite) {
|
||||
if (!sprite.texture.valid) {
|
||||
return;
|
||||
}
|
||||
var tilingMode = 0;
|
||||
if (sprite.tileTransform) {
|
||||
tilingMode = this._isSimpleSprite(sprite) ? 1 : 2;
|
||||
}
|
||||
var blendShader = this.drawModes[sprite.blendMode];
|
||||
if (blendShader) {
|
||||
this._renderBlend(sprite, blendShader[tilingMode]);
|
||||
}
|
||||
else {
|
||||
this._renderNormal(sprite, this.normalShader[tilingMode]);
|
||||
}
|
||||
};
|
||||
PictureRenderer.prototype._renderNormal = function (sprite, shader) {
|
||||
var renderer = this.renderer;
|
||||
renderer.bindShader(shader);
|
||||
renderer.state.setBlendMode(sprite.blendMode);
|
||||
this._renderInner(sprite, shader);
|
||||
};
|
||||
PictureRenderer.prototype._renderBlend = function (sprite, shader) {
|
||||
var renderer = this.renderer;
|
||||
var spriteBounds = sprite.getBounds();
|
||||
var renderTarget = renderer._activeRenderTarget;
|
||||
var matrix = renderTarget.projectionMatrix;
|
||||
var flipX = matrix.a < 0;
|
||||
var flipY = matrix.d < 0;
|
||||
var resolution = renderTarget.resolution;
|
||||
var screen = this._tempRect;
|
||||
var fr = renderTarget.sourceFrame || renderTarget.destinationFrame;
|
||||
screen.x = 0;
|
||||
screen.y = 0;
|
||||
screen.width = fr.width;
|
||||
screen.height = fr.height;
|
||||
var bounds = this._tempRect2;
|
||||
var fbw = fr.width * resolution, fbh = fr.height * resolution;
|
||||
bounds.x = (spriteBounds.x + matrix.tx / matrix.a) * resolution + fbw / 2;
|
||||
bounds.y = (spriteBounds.y + matrix.ty / matrix.d) * resolution + fbh / 2;
|
||||
bounds.width = spriteBounds.width * resolution;
|
||||
bounds.height = spriteBounds.height * resolution;
|
||||
if (flipX) {
|
||||
bounds.y = fbw - bounds.width - bounds.x;
|
||||
}
|
||||
if (flipY) {
|
||||
bounds.y = fbh - bounds.height - bounds.y;
|
||||
}
|
||||
var screenBounds = this._tempRect3;
|
||||
var x_1 = Math.floor(Math.max(screen.x, bounds.x));
|
||||
var x_2 = Math.ceil(Math.min(screen.x + screen.width, bounds.x + bounds.width));
|
||||
var y_1 = Math.floor(Math.max(screen.y, bounds.y));
|
||||
var y_2 = Math.ceil(Math.min(screen.y + screen.height, bounds.y + bounds.height));
|
||||
var pixelsWidth = x_2 - x_1;
|
||||
var pixelsHeight = y_2 - y_1;
|
||||
if (pixelsWidth <= 0 || pixelsHeight <= 0) {
|
||||
return;
|
||||
}
|
||||
var rt = this._getRenderTexture(pixelsWidth, pixelsHeight);
|
||||
renderer.bindTexture(rt, 1, true);
|
||||
var gl = renderer.gl;
|
||||
if (renderer.renderingToScreen && renderTarget.root) {
|
||||
var buf = this._getBuf(pixelsWidth * pixelsHeight * 4);
|
||||
gl.readPixels(x_1, y_1, pixelsWidth, pixelsHeight, gl.RGBA, gl.UNSIGNED_BYTE, this._bigBuf);
|
||||
gl.texSubImage2D(gl.TEXTURE_2D, 0, 0, 0, pixelsWidth, pixelsHeight, gl.RGBA, gl.UNSIGNED_BYTE, this._bigBuf);
|
||||
}
|
||||
else {
|
||||
gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, x_1, y_1, pixelsWidth, pixelsHeight);
|
||||
}
|
||||
renderer.bindShader(shader);
|
||||
renderer.state.setBlendMode(PIXI.BLEND_MODES.NORMAL);
|
||||
if (shader.uniforms.mapMatrix) {
|
||||
var mapMatrix = this._tempMatrix;
|
||||
mapMatrix.a = bounds.width / rt.width / spriteBounds.width;
|
||||
if (flipX) {
|
||||
mapMatrix.a = -mapMatrix.a;
|
||||
mapMatrix.tx = (bounds.x - x_1) / rt.width - (spriteBounds.x + spriteBounds.width) * mapMatrix.a;
|
||||
}
|
||||
else {
|
||||
mapMatrix.tx = (bounds.x - x_1) / rt.width - spriteBounds.x * mapMatrix.a;
|
||||
}
|
||||
mapMatrix.d = bounds.height / rt.height / spriteBounds.height;
|
||||
if (flipY) {
|
||||
mapMatrix.d = -mapMatrix.d;
|
||||
mapMatrix.ty = (bounds.y - y_1) / rt.height - (spriteBounds.y + spriteBounds.height) * mapMatrix.d;
|
||||
}
|
||||
else {
|
||||
mapMatrix.ty = (bounds.y - y_1) / rt.height - spriteBounds.y * mapMatrix.d;
|
||||
}
|
||||
shader.uniforms.mapMatrix = mapMatrix.toArray(true);
|
||||
}
|
||||
this._renderInner(sprite, shader);
|
||||
};
|
||||
PictureRenderer.prototype._renderInner = function (sprite, shader) {
|
||||
var renderer = this.renderer;
|
||||
if (shader.tilingMode > 0) {
|
||||
this._renderWithShader(sprite, shader.tilingMode === 1, shader);
|
||||
}
|
||||
else {
|
||||
this._renderSprite(sprite, shader);
|
||||
}
|
||||
};
|
||||
PictureRenderer.prototype._renderWithShader = function (ts, isSimple, shader) {
|
||||
var quad = shader.tempQuad;
|
||||
var renderer = this.renderer;
|
||||
renderer.bindVao(quad.vao);
|
||||
var vertices = quad.vertices;
|
||||
var _width = ts._width;
|
||||
var _height = ts._height;
|
||||
var _anchorX = ts._anchor._x;
|
||||
var _anchorY = ts._anchor._y;
|
||||
var w0 = _width * (1 - _anchorX);
|
||||
var w1 = _width * -_anchorX;
|
||||
var h0 = _height * (1 - _anchorY);
|
||||
var h1 = _height * -_anchorY;
|
||||
var wt = ts.transform.worldTransform;
|
||||
var a = wt.a;
|
||||
var b = wt.b;
|
||||
var c = wt.c;
|
||||
var d = wt.d;
|
||||
var tx = wt.tx;
|
||||
var ty = wt.ty;
|
||||
vertices[0] = (a * w1) + (c * h1) + tx;
|
||||
vertices[1] = (d * h1) + (b * w1) + ty;
|
||||
vertices[2] = (a * w0) + (c * h1) + tx;
|
||||
vertices[3] = (d * h1) + (b * w0) + ty;
|
||||
vertices[4] = (a * w0) + (c * h0) + tx;
|
||||
vertices[5] = (d * h0) + (b * w0) + ty;
|
||||
vertices[6] = (a * w1) + (c * h0) + tx;
|
||||
vertices[7] = (d * h0) + (b * w1) + ty;
|
||||
vertices = quad.uvs;
|
||||
vertices[0] = vertices[6] = -ts.anchor.x;
|
||||
vertices[1] = vertices[3] = -ts.anchor.y;
|
||||
vertices[2] = vertices[4] = 1.0 - ts.anchor.x;
|
||||
vertices[5] = vertices[7] = 1.0 - ts.anchor.y;
|
||||
quad.upload();
|
||||
var tex = ts._texture;
|
||||
var lt = ts.tileTransform.localTransform;
|
||||
var uv = ts.uvTransform;
|
||||
var mapCoord = uv.mapCoord;
|
||||
var uClampFrame = uv.uClampFrame;
|
||||
var uClampOffset = uv.uClampOffset;
|
||||
var w = tex.width;
|
||||
var h = tex.height;
|
||||
var W = _width;
|
||||
var H = _height;
|
||||
var tempMat = this._tempMatrix2;
|
||||
tempMat.set(lt.a * w / W, lt.b * w / H, lt.c * h / W, lt.d * h / H, lt.tx / W, lt.ty / H);
|
||||
tempMat.invert();
|
||||
if (isSimple) {
|
||||
tempMat.append(mapCoord);
|
||||
}
|
||||
else {
|
||||
shader.uniforms.uMapCoord = mapCoord.toArray(true);
|
||||
shader.uniforms.uClampFrame = uClampFrame;
|
||||
shader.uniforms.uClampOffset = uClampOffset;
|
||||
}
|
||||
shader.uniforms.uTransform = tempMat.toArray(true);
|
||||
var color = this._tempColor;
|
||||
var alpha = ts.worldAlpha;
|
||||
PIXI.utils.hex2rgb(ts.tint, color);
|
||||
color[0] *= alpha;
|
||||
color[1] *= alpha;
|
||||
color[2] *= alpha;
|
||||
color[3] = alpha;
|
||||
shader.uniforms.uColor = color;
|
||||
renderer.bindTexture(tex, 0, true);
|
||||
quad.vao.draw(this.renderer.gl.TRIANGLES, 6, 0);
|
||||
};
|
||||
PictureRenderer.prototype._renderSprite = function (sprite, shader) {
|
||||
var renderer = this.renderer;
|
||||
var quad = shader.tempQuad;
|
||||
renderer.bindVao(quad.vao);
|
||||
var uvs = sprite.texture._uvs;
|
||||
var vertices = quad.vertices;
|
||||
var vd = sprite.vertexData;
|
||||
for (var i = 0; i < 8; i++) {
|
||||
quad.vertices[i] = vd[i];
|
||||
}
|
||||
quad.uvs[0] = uvs.x0;
|
||||
quad.uvs[1] = uvs.y0;
|
||||
quad.uvs[2] = uvs.x1;
|
||||
quad.uvs[3] = uvs.y1;
|
||||
quad.uvs[4] = uvs.x2;
|
||||
quad.uvs[5] = uvs.y2;
|
||||
quad.uvs[6] = uvs.x3;
|
||||
quad.uvs[7] = uvs.y3;
|
||||
quad.upload();
|
||||
var frame = sprite.texture.frame;
|
||||
var base = sprite.texture.baseTexture;
|
||||
var clamp = this._tempClamp;
|
||||
var eps = 0.5 / base.resolution;
|
||||
clamp[0] = (frame.x + eps) / base.width;
|
||||
clamp[1] = (frame.y + eps) / base.height;
|
||||
clamp[2] = (frame.x + frame.width - eps) / base.width;
|
||||
clamp[3] = (frame.y + frame.height - eps) / base.height;
|
||||
shader.uniforms.uTextureClamp = clamp;
|
||||
var color = this._tempColor;
|
||||
PIXI.utils.hex2rgb(sprite.tint, color);
|
||||
var alpha = sprite.worldAlpha;
|
||||
color[0] *= alpha;
|
||||
color[1] *= alpha;
|
||||
color[2] *= alpha;
|
||||
color[3] = alpha;
|
||||
shader.uniforms.uColor = color;
|
||||
renderer.bindTexture(base, 0, true);
|
||||
quad.vao.draw(this.renderer.gl.TRIANGLES, 6, 0);
|
||||
};
|
||||
PictureRenderer.prototype._isSimpleSprite = function (ts) {
|
||||
var renderer = this.renderer;
|
||||
var tex = ts._texture;
|
||||
var baseTex = tex.baseTexture;
|
||||
var isSimple = baseTex.isPowerOfTwo && tex.frame.width === baseTex.width && tex.frame.height === baseTex.height;
|
||||
if (isSimple) {
|
||||
if (!baseTex._glTextures[renderer.CONTEXT_UID]) {
|
||||
if (baseTex.wrapMode === PIXI.WRAP_MODES.CLAMP) {
|
||||
baseTex.wrapMode = PIXI.WRAP_MODES.REPEAT;
|
||||
}
|
||||
}
|
||||
else {
|
||||
isSimple = baseTex.wrapMode !== PIXI.WRAP_MODES.CLAMP;
|
||||
}
|
||||
}
|
||||
return isSimple;
|
||||
};
|
||||
return PictureRenderer;
|
||||
}(PIXI.ObjectRenderer));
|
||||
extras.PictureRenderer = PictureRenderer;
|
||||
PIXI.WebGLRenderer.registerPlugin('picture', PictureRenderer);
|
||||
PIXI.CanvasRenderer.registerPlugin('picture', PIXI.CanvasSpriteRenderer);
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var PictureSprite = (function (_super) {
|
||||
__extends(PictureSprite, _super);
|
||||
function PictureSprite(texture) {
|
||||
_super.call(this, texture);
|
||||
this.pluginName = 'picture';
|
||||
}
|
||||
return PictureSprite;
|
||||
}(PIXI.Sprite));
|
||||
extras.PictureSprite = PictureSprite;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var extras;
|
||||
(function (extras) {
|
||||
var PictureTilingSprite = (function (_super) {
|
||||
__extends(PictureTilingSprite, _super);
|
||||
function PictureTilingSprite(texture) {
|
||||
_super.call(this, texture);
|
||||
this.pluginName = 'picture';
|
||||
}
|
||||
return PictureTilingSprite;
|
||||
}(extras.TilingSprite));
|
||||
extras.PictureTilingSprite = PictureTilingSprite;
|
||||
})(extras = PIXI.extras || (PIXI.extras = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
//# sourceMappingURL=pixi-picture.js.map
|
887
www.eng/js/libs/pixi-tilemap.js
Normal file
887
www.eng/js/libs/pixi-tilemap.js
Normal file
|
@ -0,0 +1,887 @@
|
|||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var CanvasTileRenderer = (function () {
|
||||
function CanvasTileRenderer(renderer) {
|
||||
this.tileAnim = [0, 0];
|
||||
this.dontUseTransform = false;
|
||||
this.renderer = renderer;
|
||||
this.tileAnim = [0, 0];
|
||||
}
|
||||
return CanvasTileRenderer;
|
||||
}());
|
||||
tilemap.CanvasTileRenderer = CanvasTileRenderer;
|
||||
PIXI.CanvasRenderer.registerPlugin('tilemap', CanvasTileRenderer);
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var CompositeRectTileLayer = (function (_super) {
|
||||
__extends(CompositeRectTileLayer, _super);
|
||||
function CompositeRectTileLayer(zIndex, bitmaps, useSquare, texPerChild) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.shadowColor = new Float32Array([0.0, 0.0, 0.0, 0.5]);
|
||||
_this.modificationMarker = 0;
|
||||
_this._globalMat = null;
|
||||
_this._tempScale = null;
|
||||
_this.initialize.apply(_this, arguments);
|
||||
return _this;
|
||||
}
|
||||
CompositeRectTileLayer.prototype.updateTransform = function () {
|
||||
_super.prototype.displayObjectUpdateTransform.call(this);
|
||||
};
|
||||
CompositeRectTileLayer.prototype.initialize = function (zIndex, bitmaps, useSquare, texPerChild) {
|
||||
this.z = this.zIndex = zIndex;
|
||||
this.useSquare = useSquare;
|
||||
this.texPerChild = texPerChild || 16;
|
||||
if (bitmaps) {
|
||||
this.setBitmaps(bitmaps);
|
||||
}
|
||||
};
|
||||
CompositeRectTileLayer.prototype.setBitmaps = function (bitmaps) {
|
||||
var texPerChild = this.texPerChild;
|
||||
var len1 = this.children.length;
|
||||
var len2 = Math.ceil(bitmaps.length / texPerChild);
|
||||
var i;
|
||||
for (i = 0; i < len1; i++) {
|
||||
this.children[i].textures = bitmaps.slice(i * texPerChild, (i + 1) * texPerChild);
|
||||
}
|
||||
for (i = len1; i < len2; i++) {
|
||||
this.addChild(new tilemap.RectTileLayer(this.zIndex, bitmaps.slice(i * texPerChild, (i + 1) * texPerChild)));
|
||||
}
|
||||
};
|
||||
CompositeRectTileLayer.prototype.clear = function () {
|
||||
for (var i = 0; i < this.children.length; i++)
|
||||
this.children[i].clear();
|
||||
this.modificationMarker = 0;
|
||||
};
|
||||
CompositeRectTileLayer.prototype.addRect = function (num, u, v, x, y, tileWidth, tileHeight) {
|
||||
if (this.children[num] && this.children[num].textures)
|
||||
this.children[num].addRect(0, u, v, x, y, tileWidth, tileHeight);
|
||||
};
|
||||
CompositeRectTileLayer.prototype.addFrame = function (texture_, x, y, animX, animY) {
|
||||
var texture;
|
||||
var layer = null, ind = 0;
|
||||
var children = this.children;
|
||||
if (typeof texture_ === "number") {
|
||||
var childIndex = texture_ / this.texPerChild >> 0;
|
||||
layer = children[childIndex];
|
||||
if (!layer) {
|
||||
layer = children[0];
|
||||
if (!layer) {
|
||||
return false;
|
||||
}
|
||||
ind = 0;
|
||||
}
|
||||
else {
|
||||
ind = texture_ % this.texPerChild;
|
||||
}
|
||||
texture = layer.textures[ind];
|
||||
}
|
||||
else if (typeof texture_ === "string") {
|
||||
texture = PIXI.Texture.fromImage(texture_);
|
||||
}
|
||||
else {
|
||||
texture = texture_;
|
||||
for (var i = 0; i < children.length; i++) {
|
||||
var child = children[i];
|
||||
var tex = child.textures;
|
||||
for (var j = 0; j < tex.length; j++) {
|
||||
if (tex[j].baseTexture == texture.baseTexture) {
|
||||
layer = child;
|
||||
ind = j;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (layer) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!layer) {
|
||||
for (i = 0; i < children.length; i++) {
|
||||
var child = children[i];
|
||||
if (child.textures.length < this.texPerChild) {
|
||||
layer = child;
|
||||
ind = child.textures.length;
|
||||
child.textures.push(texture);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!layer) {
|
||||
children.push(layer = new tilemap.RectTileLayer(this.zIndex, texture));
|
||||
ind = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
layer.addRect(ind, texture.frame.x, texture.frame.y, x, y, texture.frame.width, texture.frame.height, animX, animY);
|
||||
return true;
|
||||
};
|
||||
;
|
||||
CompositeRectTileLayer.prototype.renderCanvas = function (renderer) {
|
||||
if (!renderer.plugins.tilemap.dontUseTransform) {
|
||||
var wt = this.worldTransform;
|
||||
renderer.context.setTransform(wt.a, wt.b, wt.c, wt.d, wt.tx * renderer.resolution, wt.ty * renderer.resolution);
|
||||
}
|
||||
var layers = this.children;
|
||||
for (var i = 0; i < layers.length; i++)
|
||||
layers[i].renderCanvas(renderer);
|
||||
};
|
||||
;
|
||||
CompositeRectTileLayer.prototype.renderWebGL = function (renderer) {
|
||||
var gl = renderer.gl;
|
||||
var shader = renderer.plugins.tilemap.getShader(this.useSquare);
|
||||
renderer.setObjectRenderer(renderer.plugins.tilemap);
|
||||
renderer.bindShader(shader);
|
||||
this._globalMat = this._globalMat || new PIXI.Matrix();
|
||||
renderer._activeRenderTarget.projectionMatrix.copy(this._globalMat).append(this.worldTransform);
|
||||
shader.uniforms.projectionMatrix = this._globalMat.toArray(true);
|
||||
shader.uniforms.shadowColor = this.shadowColor;
|
||||
if (this.useSquare) {
|
||||
var tempScale = this._tempScale = (this._tempScale || [0, 0]);
|
||||
tempScale[0] = this._globalMat.a >= 0 ? 1 : -1;
|
||||
tempScale[1] = this._globalMat.d < 0 ? 1 : -1;
|
||||
var ps = shader.uniforms.pointScale = tempScale;
|
||||
shader.uniforms.projectionScale = Math.abs(this.worldTransform.a) * renderer.resolution;
|
||||
}
|
||||
var af = shader.uniforms.animationFrame = renderer.plugins.tilemap.tileAnim;
|
||||
var layers = this.children;
|
||||
for (var i = 0; i < layers.length; i++)
|
||||
layers[i].renderWebGL(renderer, this.useSquare);
|
||||
};
|
||||
CompositeRectTileLayer.prototype.isModified = function (anim) {
|
||||
var layers = this.children;
|
||||
if (this.modificationMarker != layers.length) {
|
||||
return true;
|
||||
}
|
||||
for (var i = 0; i < layers.length; i++) {
|
||||
var layer = layers[i];
|
||||
if (layer.modificationMarker != layer.pointsBuf.length ||
|
||||
anim && layer.hasAnim) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
CompositeRectTileLayer.prototype.clearModify = function () {
|
||||
var layers = this.children;
|
||||
this.modificationMarker = layers.length;
|
||||
for (var i = 0; i < layers.length; i++) {
|
||||
var layer = layers[i];
|
||||
layer.modificationMarker = layer.pointsBuf.length;
|
||||
}
|
||||
};
|
||||
return CompositeRectTileLayer;
|
||||
}(PIXI.Container));
|
||||
tilemap.CompositeRectTileLayer = CompositeRectTileLayer;
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var GraphicsLayer = (function (_super) {
|
||||
__extends(GraphicsLayer, _super);
|
||||
function GraphicsLayer(zIndex) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.z = _this.zIndex = zIndex;
|
||||
return _this;
|
||||
}
|
||||
GraphicsLayer.prototype.renderCanvas = function (renderer) {
|
||||
var wt = null;
|
||||
if (renderer.plugins.tilemap.dontUseTransform) {
|
||||
wt = this.transform.worldTransform;
|
||||
this.transform.worldTransform = PIXI.Matrix.IDENTITY;
|
||||
}
|
||||
renderer.plugins.graphics.render(this);
|
||||
if (renderer.plugins.tilemap.dontUseTransform) {
|
||||
this.transform.worldTransform = wt;
|
||||
}
|
||||
renderer.context.globalAlpha = 1.0;
|
||||
};
|
||||
GraphicsLayer.prototype.renderWebGL = function (renderer) {
|
||||
if (!this._webGL[renderer.CONTEXT_UID])
|
||||
this.dirty = true;
|
||||
_super.prototype.renderWebGL.call(this, renderer);
|
||||
};
|
||||
GraphicsLayer.prototype.isModified = function (anim) {
|
||||
return false;
|
||||
};
|
||||
GraphicsLayer.prototype.clearModify = function () {
|
||||
};
|
||||
return GraphicsLayer;
|
||||
}(PIXI.Graphics));
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var RectTileLayer = (function (_super) {
|
||||
__extends(RectTileLayer, _super);
|
||||
function RectTileLayer(zIndex, texture) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.z = 0;
|
||||
_this.zIndex = 0;
|
||||
_this.pointsBuf = [];
|
||||
_this._tempSize = new Float32Array([0, 0]);
|
||||
_this._tempTexSize = 1;
|
||||
_this.modificationMarker = 0;
|
||||
_this.hasAnim = false;
|
||||
_this.vbId = 0;
|
||||
_this.vbBuffer = null;
|
||||
_this.vbArray = null;
|
||||
_this.vbInts = null;
|
||||
_this.initialize(zIndex, texture);
|
||||
return _this;
|
||||
}
|
||||
RectTileLayer.prototype.initialize = function (zIndex, textures) {
|
||||
if (!textures) {
|
||||
textures = [];
|
||||
}
|
||||
else if (!(textures instanceof Array) && textures.baseTexture) {
|
||||
textures = [textures];
|
||||
}
|
||||
this.textures = textures;
|
||||
this.z = this.zIndex = zIndex;
|
||||
this.visible = false;
|
||||
};
|
||||
RectTileLayer.prototype.clear = function () {
|
||||
this.pointsBuf.length = 0;
|
||||
this.modificationMarker = 0;
|
||||
this.hasAnim = false;
|
||||
};
|
||||
RectTileLayer.prototype.renderCanvas = function (renderer) {
|
||||
if (this.textures.length === 0)
|
||||
return;
|
||||
var points = this.pointsBuf;
|
||||
renderer.context.fillStyle = '#000000';
|
||||
for (var i = 0, n = points.length; i < n; i += 9) {
|
||||
var x1 = points[i], y1 = points[i + 1];
|
||||
var x2 = points[i + 2], y2 = points[i + 3];
|
||||
var w = points[i + 4];
|
||||
var h = points[i + 5];
|
||||
x1 += points[i + 6] * renderer.plugins.tilemap.tileAnim[0];
|
||||
y1 += points[i + 7] * renderer.plugins.tilemap.tileAnim[1];
|
||||
var textureId = points[i + 8];
|
||||
if (textureId >= 0 && this.textures[textureId] !== undefined) {
|
||||
renderer.context.drawImage(this.textures[textureId].baseTexture.source, x1, y1, w, h, x2, y2, w, h);
|
||||
}
|
||||
else {
|
||||
renderer.context.globalAlpha = 0.5;
|
||||
renderer.context.fillRect(x2, y2, w, h);
|
||||
renderer.context.globalAlpha = 1;
|
||||
}
|
||||
}
|
||||
};
|
||||
RectTileLayer.prototype.addRect = function (textureId, u, v, x, y, tileWidth, tileHeight, animX, animY) {
|
||||
if (animX === void 0) { animX = 0; }
|
||||
if (animY === void 0) { animY = 0; }
|
||||
var pb = this.pointsBuf;
|
||||
this.hasAnim = this.hasAnim || animX > 0 || animY > 0;
|
||||
if (tileWidth == tileHeight) {
|
||||
pb.push(u);
|
||||
pb.push(v);
|
||||
pb.push(x);
|
||||
pb.push(y);
|
||||
pb.push(tileWidth);
|
||||
pb.push(tileHeight);
|
||||
pb.push(animX | 0);
|
||||
pb.push(animY | 0);
|
||||
pb.push(textureId);
|
||||
}
|
||||
else {
|
||||
var i;
|
||||
if (tileWidth % tileHeight === 0) {
|
||||
for (i = 0; i < tileWidth / tileHeight; i++) {
|
||||
pb.push(u + i * tileHeight);
|
||||
pb.push(v);
|
||||
pb.push(x + i * tileHeight);
|
||||
pb.push(y);
|
||||
pb.push(tileHeight);
|
||||
pb.push(tileHeight);
|
||||
pb.push(animX | 0);
|
||||
pb.push(animY | 0);
|
||||
pb.push(textureId);
|
||||
}
|
||||
}
|
||||
else if (tileHeight % tileWidth === 0) {
|
||||
for (i = 0; i < tileHeight / tileWidth; i++) {
|
||||
pb.push(u);
|
||||
pb.push(v + i * tileWidth);
|
||||
pb.push(x);
|
||||
pb.push(y + i * tileWidth);
|
||||
pb.push(tileWidth);
|
||||
pb.push(tileWidth);
|
||||
pb.push(animX | 0);
|
||||
pb.push(animY | 0);
|
||||
pb.push(textureId);
|
||||
}
|
||||
}
|
||||
else {
|
||||
pb.push(u);
|
||||
pb.push(v);
|
||||
pb.push(x);
|
||||
pb.push(y);
|
||||
pb.push(tileWidth);
|
||||
pb.push(tileHeight);
|
||||
pb.push(animX | 0);
|
||||
pb.push(animY | 0);
|
||||
pb.push(textureId);
|
||||
}
|
||||
}
|
||||
};
|
||||
;
|
||||
RectTileLayer.prototype.renderWebGL = function (renderer, useSquare) {
|
||||
if (useSquare === void 0) { useSquare = false; }
|
||||
var points = this.pointsBuf;
|
||||
if (points.length === 0)
|
||||
return;
|
||||
var rectsCount = points.length / 9;
|
||||
var tile = renderer.plugins.tilemap;
|
||||
var gl = renderer.gl;
|
||||
if (!useSquare) {
|
||||
tile.checkIndexBuffer(rectsCount);
|
||||
}
|
||||
var shader = tile.getShader(useSquare);
|
||||
var textures = this.textures;
|
||||
if (textures.length === 0)
|
||||
return;
|
||||
var len = textures.length;
|
||||
if (this._tempTexSize < shader.maxTextures) {
|
||||
this._tempTexSize = shader.maxTextures;
|
||||
this._tempSize = new Float32Array(2 * shader.maxTextures);
|
||||
}
|
||||
for (var i = 0; i < len; i++) {
|
||||
if (!textures[i] || !textures[i].valid)
|
||||
return;
|
||||
var texture = textures[i].baseTexture;
|
||||
}
|
||||
tile.bindTextures(renderer, shader, textures);
|
||||
var vb = tile.getVb(this.vbId);
|
||||
if (!vb) {
|
||||
vb = tile.createVb(useSquare);
|
||||
this.vbId = vb.id;
|
||||
this.vbBuffer = null;
|
||||
this.modificationMarker = 0;
|
||||
}
|
||||
var vao = vb.vao;
|
||||
renderer.bindVao(vao);
|
||||
var vertexBuf = vb.vb;
|
||||
vertexBuf.bind();
|
||||
var vertices = rectsCount * shader.vertPerQuad;
|
||||
if (vertices === 0)
|
||||
return;
|
||||
if (this.modificationMarker != vertices) {
|
||||
this.modificationMarker = vertices;
|
||||
var vs = shader.stride * vertices;
|
||||
if (!this.vbBuffer || this.vbBuffer.byteLength < vs) {
|
||||
var bk = shader.stride;
|
||||
while (bk < vs) {
|
||||
bk *= 2;
|
||||
}
|
||||
this.vbBuffer = new ArrayBuffer(bk);
|
||||
this.vbArray = new Float32Array(this.vbBuffer);
|
||||
this.vbInts = new Uint32Array(this.vbBuffer);
|
||||
vertexBuf.upload(this.vbBuffer, 0, true);
|
||||
}
|
||||
var arr = this.vbArray, ints = this.vbInts;
|
||||
var sz = 0;
|
||||
var textureId, shiftU, shiftV;
|
||||
if (useSquare) {
|
||||
for (i = 0; i < points.length; i += 9) {
|
||||
textureId = (points[i + 8] >> 2);
|
||||
shiftU = 1024 * (points[i + 8] & 1);
|
||||
shiftV = 1024 * ((points[i + 8] >> 1) & 1);
|
||||
arr[sz++] = points[i + 2];
|
||||
arr[sz++] = points[i + 3];
|
||||
arr[sz++] = points[i + 0] + shiftU;
|
||||
arr[sz++] = points[i + 1] + shiftV;
|
||||
arr[sz++] = points[i + 4];
|
||||
arr[sz++] = points[i + 6];
|
||||
arr[sz++] = points[i + 7];
|
||||
arr[sz++] = textureId;
|
||||
}
|
||||
}
|
||||
else {
|
||||
var tint = -1;
|
||||
for (i = 0; i < points.length; i += 9) {
|
||||
var eps = 0.5;
|
||||
textureId = (points[i + 8] >> 2);
|
||||
shiftU = 1024 * (points[i + 8] & 1);
|
||||
shiftV = 1024 * ((points[i + 8] >> 1) & 1);
|
||||
var x = points[i + 2], y = points[i + 3];
|
||||
var w = points[i + 4], h = points[i + 5];
|
||||
var u = points[i] + shiftU, v = points[i + 1] + shiftV;
|
||||
var animX = points[i + 6], animY = points[i + 7];
|
||||
arr[sz++] = x;
|
||||
arr[sz++] = y;
|
||||
arr[sz++] = u;
|
||||
arr[sz++] = v;
|
||||
arr[sz++] = u + eps;
|
||||
arr[sz++] = v + eps;
|
||||
arr[sz++] = u + w - eps;
|
||||
arr[sz++] = v + h - eps;
|
||||
arr[sz++] = animX;
|
||||
arr[sz++] = animY;
|
||||
arr[sz++] = textureId;
|
||||
arr[sz++] = x + w;
|
||||
arr[sz++] = y;
|
||||
arr[sz++] = u + w;
|
||||
arr[sz++] = v;
|
||||
arr[sz++] = u + eps;
|
||||
arr[sz++] = v + eps;
|
||||
arr[sz++] = u + w - eps;
|
||||
arr[sz++] = v + h - eps;
|
||||
arr[sz++] = animX;
|
||||
arr[sz++] = animY;
|
||||
arr[sz++] = textureId;
|
||||
arr[sz++] = x + w;
|
||||
arr[sz++] = y + h;
|
||||
arr[sz++] = u + w;
|
||||
arr[sz++] = v + h;
|
||||
arr[sz++] = u + eps;
|
||||
arr[sz++] = v + eps;
|
||||
arr[sz++] = u + w - eps;
|
||||
arr[sz++] = v + h - eps;
|
||||
arr[sz++] = animX;
|
||||
arr[sz++] = animY;
|
||||
arr[sz++] = textureId;
|
||||
arr[sz++] = x;
|
||||
arr[sz++] = y + h;
|
||||
arr[sz++] = u;
|
||||
arr[sz++] = v + h;
|
||||
arr[sz++] = u + eps;
|
||||
arr[sz++] = v + eps;
|
||||
arr[sz++] = u + w - eps;
|
||||
arr[sz++] = v + h - eps;
|
||||
arr[sz++] = animX;
|
||||
arr[sz++] = animY;
|
||||
arr[sz++] = textureId;
|
||||
}
|
||||
}
|
||||
vertexBuf.upload(arr, 0, true);
|
||||
}
|
||||
if (useSquare)
|
||||
gl.drawArrays(gl.POINTS, 0, vertices);
|
||||
else
|
||||
gl.drawElements(gl.TRIANGLES, rectsCount * 6, gl.UNSIGNED_SHORT, 0);
|
||||
};
|
||||
return RectTileLayer;
|
||||
}(PIXI.Container));
|
||||
tilemap.RectTileLayer = RectTileLayer;
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var rectShaderFrag = "varying vec2 vTextureCoord;\nvarying vec4 vFrame;\nvarying float vTextureId;\nuniform vec4 shadowColor;\nuniform sampler2D uSamplers[%count%];\nuniform vec2 uSamplerSize[%count%];\n\nvoid main(void){\n vec2 textureCoord = clamp(vTextureCoord, vFrame.xy, vFrame.zw);\n float textureId = floor(vTextureId + 0.5);\n\n vec4 color;\n %forloop%\n gl_FragColor = color;\n}";
|
||||
var rectShaderVert = "\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aFrame;\nattribute vec2 aAnim;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform vec2 animationFrame;\n\nvarying vec2 vTextureCoord;\nvarying float vTextureId;\nvarying vec4 vFrame;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vec2 anim = aAnim * animationFrame;\n vTextureCoord = aTextureCoord + anim;\n vFrame = aFrame + vec4(anim, anim);\n vTextureId = aTextureId;\n}\n";
|
||||
var TilemapShader = (function (_super) {
|
||||
__extends(TilemapShader, _super);
|
||||
function TilemapShader(gl, maxTextures, shaderVert, shaderFrag) {
|
||||
var _this = _super.call(this, gl, shaderVert, shaderFrag) || this;
|
||||
_this.maxTextures = 0;
|
||||
_this.maxTextures = maxTextures;
|
||||
tilemap.shaderGenerator.fillSamplers(_this, _this.maxTextures);
|
||||
return _this;
|
||||
}
|
||||
return TilemapShader;
|
||||
}(PIXI.Shader));
|
||||
tilemap.TilemapShader = TilemapShader;
|
||||
var RectTileShader = (function (_super) {
|
||||
__extends(RectTileShader, _super);
|
||||
function RectTileShader(gl, maxTextures) {
|
||||
var _this = _super.call(this, gl, maxTextures, rectShaderVert, tilemap.shaderGenerator.generateFragmentSrc(maxTextures, rectShaderFrag)) || this;
|
||||
_this.vertSize = 11;
|
||||
_this.vertPerQuad = 4;
|
||||
_this.stride = _this.vertSize * 4;
|
||||
tilemap.shaderGenerator.fillSamplers(_this, _this.maxTextures);
|
||||
return _this;
|
||||
}
|
||||
RectTileShader.prototype.createVao = function (renderer, vb) {
|
||||
var gl = renderer.gl;
|
||||
return renderer.createVao()
|
||||
.addIndex(this.indexBuffer)
|
||||
.addAttribute(vb, this.attributes.aVertexPosition, gl.FLOAT, false, this.stride, 0)
|
||||
.addAttribute(vb, this.attributes.aTextureCoord, gl.FLOAT, false, this.stride, 2 * 4)
|
||||
.addAttribute(vb, this.attributes.aFrame, gl.FLOAT, false, this.stride, 4 * 4)
|
||||
.addAttribute(vb, this.attributes.aAnim, gl.FLOAT, false, this.stride, 8 * 4)
|
||||
.addAttribute(vb, this.attributes.aTextureId, gl.FLOAT, false, this.stride, 10 * 4);
|
||||
};
|
||||
return RectTileShader;
|
||||
}(TilemapShader));
|
||||
tilemap.RectTileShader = RectTileShader;
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var shaderGenerator;
|
||||
(function (shaderGenerator) {
|
||||
function fillSamplers(shader, maxTextures) {
|
||||
var sampleValues = [];
|
||||
for (var i = 0; i < maxTextures; i++) {
|
||||
sampleValues[i] = i;
|
||||
}
|
||||
shader.bind();
|
||||
shader.uniforms.uSamplers = sampleValues;
|
||||
var samplerSize = [];
|
||||
for (i = 0; i < maxTextures; i++) {
|
||||
samplerSize.push(1.0 / 2048);
|
||||
samplerSize.push(1.0 / 2048);
|
||||
}
|
||||
shader.uniforms.uSamplerSize = samplerSize;
|
||||
}
|
||||
shaderGenerator.fillSamplers = fillSamplers;
|
||||
function generateFragmentSrc(maxTextures, fragmentSrc) {
|
||||
return fragmentSrc.replace(/%count%/gi, maxTextures + "")
|
||||
.replace(/%forloop%/gi, this.generateSampleSrc(maxTextures));
|
||||
}
|
||||
shaderGenerator.generateFragmentSrc = generateFragmentSrc;
|
||||
function generateSampleSrc(maxTextures) {
|
||||
var src = '';
|
||||
src += '\n';
|
||||
src += '\n';
|
||||
src += 'if(vTextureId <= -1.0) {';
|
||||
src += '\n\tcolor = shadowColor;';
|
||||
src += '\n}';
|
||||
for (var i = 0; i < maxTextures; i++) {
|
||||
src += '\nelse ';
|
||||
if (i < maxTextures - 1) {
|
||||
src += 'if(textureId == ' + i + '.0)';
|
||||
}
|
||||
src += '\n{';
|
||||
src += '\n\tcolor = texture2D(uSamplers[' + i + '], textureCoord * uSamplerSize[' + i + ']);';
|
||||
src += '\n}';
|
||||
}
|
||||
src += '\n';
|
||||
src += '\n';
|
||||
return src;
|
||||
}
|
||||
shaderGenerator.generateSampleSrc = generateSampleSrc;
|
||||
})(shaderGenerator = tilemap.shaderGenerator || (tilemap.shaderGenerator = {}));
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var squareShaderVert = "\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec2 aAnim;\nattribute float aTextureId;\nattribute float aSize;\n\nuniform mat3 projectionMatrix;\nuniform vec2 samplerSize;\nuniform vec2 animationFrame;\nuniform float projectionScale;\n\nvarying vec2 vTextureCoord;\nvarying float vSize;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition + aSize * 0.5, 1.0)).xy, 0.0, 1.0);\n gl_PointSize = aSize * projectionScale;\n vTextureCoord = aTextureCoord + aAnim * animationFrame;\n vTextureId = aTextureId;\n vSize = aSize;\n}\n";
|
||||
var squareShaderFrag = "\nvarying vec2 vTextureCoord;\nvarying float vSize;\nvarying float vTextureId;\n\nuniform vec4 shadowColor;\nuniform sampler2D uSamplers[%count%];\nuniform vec2 uSamplerSize[%count%];\nuniform vec2 pointScale;\n\nvoid main(void){\n float margin = 0.5 / vSize;\n vec2 pointCoord = (gl_PointCoord - 0.5) * pointScale + 0.5;\n vec2 clamped = vec2(clamp(pointCoord.x, margin, 1.0 - margin), clamp(pointCoord.y, margin, 1.0 - margin));\n vec2 textureCoord = pointCoord * vSize + vTextureCoord;\n float textureId = vTextureId;\n vec4 color;\n %forloop%\n gl_FragColor = color;\n}\n\n";
|
||||
var SquareTileShader = (function (_super) {
|
||||
__extends(SquareTileShader, _super);
|
||||
function SquareTileShader(gl, maxTextures) {
|
||||
var _this = _super.call(this, gl, maxTextures, squareShaderVert, tilemap.shaderGenerator.generateFragmentSrc(maxTextures, squareShaderFrag)) || this;
|
||||
_this.vertSize = 8;
|
||||
_this.vertPerQuad = 1;
|
||||
_this.stride = _this.vertSize * 4;
|
||||
_this.maxTextures = maxTextures;
|
||||
tilemap.shaderGenerator.fillSamplers(_this, _this.maxTextures);
|
||||
return _this;
|
||||
}
|
||||
SquareTileShader.prototype.createVao = function (renderer, vb) {
|
||||
var gl = renderer.gl;
|
||||
return renderer.createVao()
|
||||
.addIndex(this.indexBuffer)
|
||||
.addAttribute(vb, this.attributes.aVertexPosition, gl.FLOAT, false, this.stride, 0)
|
||||
.addAttribute(vb, this.attributes.aTextureCoord, gl.FLOAT, false, this.stride, 2 * 4)
|
||||
.addAttribute(vb, this.attributes.aSize, gl.FLOAT, false, this.stride, 4 * 4)
|
||||
.addAttribute(vb, this.attributes.aAnim, gl.FLOAT, false, this.stride, 5 * 4)
|
||||
.addAttribute(vb, this.attributes.aTextureId, gl.FLOAT, false, this.stride, 7 * 4);
|
||||
};
|
||||
;
|
||||
return SquareTileShader;
|
||||
}(tilemap.TilemapShader));
|
||||
tilemap.SquareTileShader = SquareTileShader;
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap) {
|
||||
var glCore = PIXI.glCore;
|
||||
function _hackSubImage(tex, sprite, clearBuffer, clearWidth, clearHeight) {
|
||||
var gl = tex.gl;
|
||||
var baseTex = sprite.texture.baseTexture;
|
||||
if (clearBuffer && clearWidth > 0 && clearHeight > 0) {
|
||||
gl.texSubImage2D(gl.TEXTURE_2D, 0, sprite.position.x, sprite.position.y, clearWidth, clearHeight, tex.format, tex.type, clearBuffer);
|
||||
}
|
||||
gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1);
|
||||
gl.texSubImage2D(gl.TEXTURE_2D, 0, sprite.position.x, sprite.position.y, tex.format, tex.type, baseTex.source);
|
||||
}
|
||||
var TileRenderer = (function (_super) {
|
||||
__extends(TileRenderer, _super);
|
||||
function TileRenderer(renderer) {
|
||||
var _this = _super.call(this, renderer) || this;
|
||||
_this.vbs = {};
|
||||
_this.indices = new Uint16Array(0);
|
||||
_this.lastTimeCheck = 0;
|
||||
_this.tileAnim = [0, 0];
|
||||
_this.maxTextures = 4;
|
||||
_this.texLoc = [];
|
||||
return _this;
|
||||
}
|
||||
TileRenderer.prototype.onContextChange = function () {
|
||||
var gl = this.renderer.gl;
|
||||
var maxTextures = this.maxTextures;
|
||||
this.rectShader = new tilemap.RectTileShader(gl, maxTextures);
|
||||
this.squareShader = new tilemap.SquareTileShader(gl, maxTextures);
|
||||
this.checkIndexBuffer(2000);
|
||||
this.rectShader.indexBuffer = this.indexBuffer;
|
||||
this.squareShader.indexBuffer = this.indexBuffer;
|
||||
this.vbs = {};
|
||||
this.glTextures = [];
|
||||
this.boundSprites = [];
|
||||
this.initBounds();
|
||||
};
|
||||
TileRenderer.prototype.initBounds = function () {
|
||||
var gl = this.renderer.gl;
|
||||
var tempCanvas = document.createElement('canvas');
|
||||
tempCanvas.width = 2048;
|
||||
tempCanvas.height = 2048;
|
||||
for (var i = 0; i < this.maxTextures; i++) {
|
||||
var rt = PIXI.RenderTexture.create(2048, 2048);
|
||||
rt.baseTexture.premultipliedAlpha = true;
|
||||
rt.baseTexture.scaleMode = TileRenderer.SCALE_MODE;
|
||||
rt.baseTexture.wrapMode = PIXI.WRAP_MODES.CLAMP;
|
||||
this.renderer.textureManager.updateTexture(rt);
|
||||
this.glTextures.push(rt);
|
||||
var bs = [];
|
||||
for (var j = 0; j < 4; j++) {
|
||||
var spr = new PIXI.Sprite();
|
||||
spr.position.x = 1024 * (j & 1);
|
||||
spr.position.y = 1024 * (j >> 1);
|
||||
bs.push(spr);
|
||||
}
|
||||
this.boundSprites.push(bs);
|
||||
}
|
||||
};
|
||||
TileRenderer.prototype.bindTextures = function (renderer, shader, textures) {
|
||||
var bounds = this.boundSprites;
|
||||
var glts = this.glTextures;
|
||||
var len = textures.length;
|
||||
var maxTextures = this.maxTextures;
|
||||
if (len > 4 * maxTextures) {
|
||||
return;
|
||||
}
|
||||
var doClear = TileRenderer.DO_CLEAR;
|
||||
if (doClear && !this._clearBuffer) {
|
||||
this._clearBuffer = new Uint8Array(1024 * 1024 * 4);
|
||||
}
|
||||
var i;
|
||||
for (i = 0; i < len; i++) {
|
||||
var texture = textures[i];
|
||||
if (!texture || !textures[i].valid)
|
||||
continue;
|
||||
var bs = bounds[i >> 2][i & 3];
|
||||
if (!bs.texture ||
|
||||
bs.texture.baseTexture !== texture.baseTexture) {
|
||||
bs.texture = texture;
|
||||
var glt = glts[i >> 2];
|
||||
renderer.bindTexture(glt, 0, true);
|
||||
if (doClear) {
|
||||
_hackSubImage(glt.baseTexture._glTextures[renderer.CONTEXT_UID], bs, this._clearBuffer, 1024, 1024);
|
||||
}
|
||||
else {
|
||||
_hackSubImage(glt.baseTexture._glTextures[renderer.CONTEXT_UID], bs);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.texLoc.length = 0;
|
||||
for (i = 0; i < maxTextures; i++) {
|
||||
this.texLoc.push(renderer.bindTexture(glts[i], i, true));
|
||||
}
|
||||
shader.uniforms.uSamplers = this.texLoc;
|
||||
};
|
||||
TileRenderer.prototype.checkLeaks = function () {
|
||||
var now = Date.now();
|
||||
var old = now - 10000;
|
||||
if (this.lastTimeCheck < old ||
|
||||
this.lastTimeCheck > now) {
|
||||
this.lastTimeCheck = now;
|
||||
var vbs = this.vbs;
|
||||
for (var key in vbs) {
|
||||
if (vbs[key].lastTimeAccess < old) {
|
||||
this.removeVb(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
;
|
||||
TileRenderer.prototype.start = function () {
|
||||
this.renderer.state.setBlendMode(PIXI.BLEND_MODES.NORMAL);
|
||||
};
|
||||
TileRenderer.prototype.getVb = function (id) {
|
||||
this.checkLeaks();
|
||||
var vb = this.vbs[id];
|
||||
if (vb) {
|
||||
vb.lastTimeAccess = Date.now();
|
||||
return vb;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
TileRenderer.prototype.createVb = function (useSquare) {
|
||||
var id = ++TileRenderer.vbAutoincrement;
|
||||
var shader = this.getShader(useSquare);
|
||||
var gl = this.renderer.gl;
|
||||
var vb = PIXI.glCore.GLBuffer.createVertexBuffer(gl, null, gl.STREAM_DRAW);
|
||||
var stuff = {
|
||||
id: id,
|
||||
vb: vb,
|
||||
vao: shader.createVao(this.renderer, vb),
|
||||
lastTimeAccess: Date.now(),
|
||||
useSquare: useSquare,
|
||||
shader: shader
|
||||
};
|
||||
this.vbs[id] = stuff;
|
||||
return stuff;
|
||||
};
|
||||
TileRenderer.prototype.removeVb = function (id) {
|
||||
if (this.vbs[id]) {
|
||||
this.vbs[id].vb.destroy();
|
||||
this.vbs[id].vao.destroy();
|
||||
delete this.vbs[id];
|
||||
}
|
||||
};
|
||||
TileRenderer.prototype.checkIndexBuffer = function (size) {
|
||||
var totalIndices = size * 6;
|
||||
var indices = this.indices;
|
||||
if (totalIndices <= indices.length) {
|
||||
return;
|
||||
}
|
||||
var len = indices.length || totalIndices;
|
||||
while (len < totalIndices) {
|
||||
len <<= 1;
|
||||
}
|
||||
indices = new Uint16Array(len);
|
||||
this.indices = indices;
|
||||
for (var i = 0, j = 0; i + 5 < indices.length; i += 6, j += 4) {
|
||||
indices[i + 0] = j + 0;
|
||||
indices[i + 1] = j + 1;
|
||||
indices[i + 2] = j + 2;
|
||||
indices[i + 3] = j + 0;
|
||||
indices[i + 4] = j + 2;
|
||||
indices[i + 5] = j + 3;
|
||||
}
|
||||
if (this.indexBuffer) {
|
||||
this.indexBuffer.upload(indices);
|
||||
}
|
||||
else {
|
||||
var gl = this.renderer.gl;
|
||||
this.indexBuffer = glCore.GLBuffer.createIndexBuffer(gl, this.indices, gl.STATIC_DRAW);
|
||||
}
|
||||
};
|
||||
TileRenderer.prototype.getShader = function (useSquare) {
|
||||
return useSquare ? this.squareShader : this.rectShader;
|
||||
};
|
||||
TileRenderer.prototype.destroy = function () {
|
||||
_super.prototype.destroy.call(this);
|
||||
this.rectShader.destroy();
|
||||
this.squareShader.destroy();
|
||||
this.rectShader = null;
|
||||
this.squareShader = null;
|
||||
};
|
||||
;
|
||||
return TileRenderer;
|
||||
}(PIXI.ObjectRenderer));
|
||||
TileRenderer.vbAutoincrement = 0;
|
||||
TileRenderer.SCALE_MODE = PIXI.SCALE_MODES.LINEAR;
|
||||
TileRenderer.DO_CLEAR = false;
|
||||
tilemap.TileRenderer = TileRenderer;
|
||||
PIXI.WebGLRenderer.registerPlugin('tilemap', TileRenderer);
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
var PIXI;
|
||||
(function (PIXI) {
|
||||
var tilemap;
|
||||
(function (tilemap_1) {
|
||||
var ZLayer = (function (_super) {
|
||||
__extends(ZLayer, _super);
|
||||
function ZLayer(tilemap, zIndex) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this._lastAnimationFrame = -1;
|
||||
_this.tilemap = tilemap;
|
||||
_this.z = zIndex;
|
||||
return _this;
|
||||
}
|
||||
ZLayer.prototype.clear = function () {
|
||||
var layers = this.children;
|
||||
for (var i = 0; i < layers.length; i++)
|
||||
layers[i].clear();
|
||||
this._previousLayers = 0;
|
||||
};
|
||||
ZLayer.prototype.cacheIfDirty = function () {
|
||||
var tilemap = this.tilemap;
|
||||
var layers = this.children;
|
||||
var modified = this._previousLayers != layers.length;
|
||||
this._previousLayers = layers.length;
|
||||
var buf = this.canvasBuffer;
|
||||
var tempRender = this._tempRender;
|
||||
if (!buf) {
|
||||
buf = this.canvasBuffer = document.createElement('canvas');
|
||||
tempRender = this._tempRender = new PIXI.CanvasRenderer(100, 100, { view: buf });
|
||||
tempRender.context = tempRender.rootContext;
|
||||
tempRender.plugins.tilemap.dontUseTransform = true;
|
||||
}
|
||||
if (buf.width != tilemap._layerWidth ||
|
||||
buf.height != tilemap._layerHeight) {
|
||||
buf.width = tilemap._layerWidth;
|
||||
buf.height = tilemap._layerHeight;
|
||||
modified = true;
|
||||
}
|
||||
var i;
|
||||
if (!modified) {
|
||||
for (i = 0; i < layers.length; i++) {
|
||||
if (layers[i].isModified(this._lastAnimationFrame != tilemap.animationFrame)) {
|
||||
modified = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this._lastAnimationFrame = tilemap.animationFrame;
|
||||
if (modified) {
|
||||
if (tilemap._hackRenderer) {
|
||||
tilemap._hackRenderer(tempRender);
|
||||
}
|
||||
tempRender.context.clearRect(0, 0, buf.width, buf.height);
|
||||
for (i = 0; i < layers.length; i++) {
|
||||
layers[i].clearModify();
|
||||
layers[i].renderCanvas(tempRender);
|
||||
}
|
||||
}
|
||||
this.layerTransform = this.worldTransform;
|
||||
for (i = 0; i < layers.length; i++) {
|
||||
this.layerTransform = layers[i].worldTransform;
|
||||
break;
|
||||
}
|
||||
};
|
||||
;
|
||||
ZLayer.prototype.renderCanvas = function (renderer) {
|
||||
this.cacheIfDirty();
|
||||
var wt = this.layerTransform;
|
||||
renderer.context.setTransform(wt.a, wt.b, wt.c, wt.d, wt.tx * renderer.resolution, wt.ty * renderer.resolution);
|
||||
var tilemap = this.tilemap;
|
||||
renderer.context.drawImage(this.canvasBuffer, 0, 0);
|
||||
};
|
||||
;
|
||||
return ZLayer;
|
||||
}(PIXI.Container));
|
||||
tilemap_1.ZLayer = ZLayer;
|
||||
})(tilemap = PIXI.tilemap || (PIXI.tilemap = {}));
|
||||
})(PIXI || (PIXI = {}));
|
||||
//# sourceMappingURL=pixi-tilemap.js.map
|
41929
www.eng/js/libs/pixi.js
Normal file
41929
www.eng/js/libs/pixi.js
Normal file
File diff suppressed because it is too large
Load diff
BIN
www.eng/js/libs/sdkencryptedappticket.dll
Normal file
BIN
www.eng/js/libs/sdkencryptedappticket.dll
Normal file
Binary file not shown.
BIN
www.eng/js/libs/sdkencryptedappticket.lib
Normal file
BIN
www.eng/js/libs/sdkencryptedappticket.lib
Normal file
Binary file not shown.
BIN
www.eng/js/libs/sdkencryptedappticket64.dll
Normal file
BIN
www.eng/js/libs/sdkencryptedappticket64.dll
Normal file
Binary file not shown.
BIN
www.eng/js/libs/sdkencryptedappticket64.lib
Normal file
BIN
www.eng/js/libs/sdkencryptedappticket64.lib
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api.dll
Normal file
BIN
www.eng/js/libs/steam_api.dll
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api.dll.valve
Normal file
BIN
www.eng/js/libs/steam_api.dll.valve
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api.lib
Normal file
BIN
www.eng/js/libs/steam_api.lib
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api64.dll
Normal file
BIN
www.eng/js/libs/steam_api64.dll
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api64.dll.valve
Normal file
BIN
www.eng/js/libs/steam_api64.dll.valve
Normal file
Binary file not shown.
BIN
www.eng/js/libs/steam_api64.lib
Normal file
BIN
www.eng/js/libs/steam_api64.lib
Normal file
Binary file not shown.
6
www.eng/js/libs/trmix.min.js
vendored
Normal file
6
www.eng/js/libs/trmix.min.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
/* Type Rendering Mix JS - (c) 2013-2014 Tim Brown, Bram Stein. License: new BSD */(function(){'use strict';var b=window;function c(a){var f=d,g;a:{g=f.className.split(/\s+/);for(var n=0,H=g.length;n<H;n+=1)if(g[n]===a){g=!0;break a}g=!1}g||(f.className+=(""===f.className?"":" ")+a)};function e(a,f,g){this.b=null!=a?a:null;this.c=null!=f?f:null;this.g=null!=g?g:null}var h=/^([0-9]+)(?:[\._-]([0-9]+))?(?:[\._-]([0-9]+))?(?:[\._+-]?(.*))?$/;e.prototype.compare=function(a){return this.b>a.b||this.b===a.b&&this.c>a.c||this.b===a.b&&this.c===a.c&&this.g>a.g?1:this.b<a.b||this.b===a.b&&this.c<a.c||this.b===a.b&&this.c===a.c&&this.g<a.g?-1:0};function k(a,f){return 0===a.compare(f)||1===a.compare(f)}
|
||||
function l(){var a=h.exec(m[1]),f=null,g=null,n=null;a&&(null!==a[1]&&a[1]&&(f=parseInt(a[1],10)),null!==a[2]&&a[2]&&(g=parseInt(a[2],10)),null!==a[3]&&a[3]&&(n=parseInt(a[3],10)));return new e(f,g,n)};function p(){var a=q;return 3===a.a||7===a.a||6===a.a||9===a.a||8===a.a||5===a.a?"grayscale":1===a.a&&k(a.d,new e(6,2))&&1===a.e?"grayscale":"unknown"};var q,r=b.navigator.userAgent,s=0,t=new e,u=0,v=new e,m=null;if(m=/(?:iPod|iPad|iPhone).*? OS ([\d_]+)/.exec(r))u=3,v=l();else if(m=/(?:BB\d{2}|BlackBerry).*?Version\/([^\s]*)/.exec(r))u=9,v=l();else if(m=/Android ([^;)]+)|Android/.exec(r))u=5,v=l();else if(m=/Windows Phone(?: OS)? ([^;)]+)/.exec(r))u=8,v=l();else if(m=/Linux ([^;)]+)|Linux/.exec(r))u=4,v=l();else if(m=/OS X ([^;)]+)/.exec(r))u=2,v=l();else if(m=/Windows NT ([^;)]+)/.exec(r))u=1,v=l();else if(m=/CrOS ([^;)]+)/.exec(r))u=6,v=l();
|
||||
if(m=/MSIE ([\d\w\.]+)/.exec(r))s=1,t=l();else if(m=/Trident.*rv:([\d\w\.]+)/.exec(r))s=1,t=l();else if(m=/OPR\/([\d.]+)/.exec(r))s=4,t=l();else if(m=/Opera Mini.*Version\/([\d\.]+)/.exec(r))s=4,t=l();else if(m=/Opera(?: |.*Version\/|\/)([\d\.]+)/.exec(r))s=4,t=l();else if(m=/Firefox\/([\d\w\.]+)|Firefox/.exec(r))s=3,t=l();else if(m=/(?:Chrome|CrMo|CriOS)\/([\d\.]+)/.exec(r))s=2,t=l();else if(m=/Silk\/([\d\._]+)/.exec(r))s=7,t=l();else if(5===u||9===u)s=6;else if(m=/Version\/([\d\.\w]+).*Safari/.exec(r))s=
|
||||
5,t=l();q=new function(a,f,g,n){this.e=a;this.f=f;this.a=g;this.d=n}(s,t,u,v);var w,x;
|
||||
if(1===q.a){var y;if(2===q.e)y=k(q.f,new e(37))&&k(q.d,new e(6,1))?"directwrite":"gdi";else{var z;if(4===q.e)z=k(q.f,new e(24))&&k(q.d,new e(6,1))?"directwrite":"gdi";else{var A;if(-1===q.d.compare(new e(6,0)))A="gdi";else{var B;if(k(q.d,new e(6,0))){var C;if(C=1===q.e){var D=q.f,E=new e(8,0);C=0===D.compare(E)||-1===D.compare(E)}B=C?"gdi":"directwrite"}else B="unknown";A=B}z=A}y=z}x=y}else x=8===q.a?"directwrite":2===q.a||3===q.a?"coretext":5===q.a||4===q.a||6===q.a||7===q.a||9===q.a?"freetype":
|
||||
"unknown";w=x;var F=p(),G,I=p();G="unknown"!==I?I:2===q.a||4===q.a?"subpixel":1===q.a?k(q.d,new e(6,0))?"subpixel":1===q.e?k(q.f,new e(7,0))?"subpixel":"grayscale":"subpixel":"unknown";var d=b.document.documentElement;c("tr-"+w);"unknown"===F&&"unknown"!==G&&(F+="-"+G);c("tr-aa-"+F);}());
|
3875
www.eng/js/libs/yaml.js
Normal file
3875
www.eng/js/libs/yaml.js
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue