增加简易绘制Ani
This commit is contained in:
parent
a95f9e94d3
commit
b5961f140c
|
|
@ -164,6 +164,17 @@ class Rindro_BaseToolClass {
|
||||||
return ani;
|
return ani;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//超简易绘制动态Ani
|
||||||
|
function DrawAniEx(X, Y, AniPath, ...) {
|
||||||
|
local AniName = "简易播放Ani:" + AniPath;
|
||||||
|
if (vargc > 0) AniName = vargv[0];
|
||||||
|
local obj = sq_getMyCharacter();
|
||||||
|
local ani = obj.getVar().GetAnimationMap(AniName, AniPath);
|
||||||
|
sq_AnimationProc(ani);
|
||||||
|
sq_drawCurrentFrame(ani, X, Y, true);
|
||||||
|
return ani;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//初始化根表成员
|
//初始化根表成员
|
||||||
function InitClass(Name) {
|
function InitClass(Name) {
|
||||||
|
|
@ -232,7 +243,7 @@ class Rindro_BaseToolClass {
|
||||||
//获取文字绘制长度
|
//获取文字绘制长度
|
||||||
class LenheartTextClass {
|
class LenheartTextClass {
|
||||||
function GetStringLength(str) {
|
function GetStringLength(str) {
|
||||||
if(typeof str != "string")str = "无字符";
|
if (typeof str != "string") str = "无字符";
|
||||||
return L_sq_GetStringDrawLength(str);
|
return L_sq_GetStringDrawLength(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -254,6 +265,7 @@ class MemoryTool {
|
||||||
nEcx8 = NativePointer(L_sq_I2P(Address + 8)).readInt();
|
nEcx8 = NativePointer(L_sq_I2P(Address + 8)).readInt();
|
||||||
if (nEcx8 == -1) return nEcx8;
|
if (nEcx8 == -1) return nEcx8;
|
||||||
nEsi = NativePointer(L_sq_I2P(0x1AF8D78)).readInt();
|
nEsi = NativePointer(L_sq_I2P(0x1AF8D78)).readInt();
|
||||||
|
if (nEsi == -1) return nEdx;
|
||||||
nEdx = nEax >> 16;
|
nEdx = nEax >> 16;
|
||||||
nTmp = (nEdx << 2) + nEsi + 36;
|
nTmp = (nEdx << 2) + nEsi + 36;
|
||||||
nEdx = NativePointer(L_sq_I2P(nTmp)).readInt();
|
nEdx = NativePointer(L_sq_I2P(nTmp)).readInt();
|
||||||
|
|
@ -270,7 +282,7 @@ class MemoryTool {
|
||||||
}
|
}
|
||||||
|
|
||||||
//加密写入内存地址数据
|
//加密写入内存地址数据
|
||||||
function EncodeMemoryData() {
|
function EncodeMemoryData(AddreSs, Data) {
|
||||||
local JEdi, JEcx, JEax, JEsi, JEdx, JSs;
|
local JEdi, JEcx, JEax, JEsi, JEdx, JSs;
|
||||||
JEcx = AddreSs;
|
JEcx = AddreSs;
|
||||||
JEax = L_sq_RA(0x1AF8DB8);
|
JEax = L_sq_RA(0x1AF8DB8);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue