From b5961f140cd1089fe91f761226faf7fa8407692e Mon Sep 17 00:00:00 2001 From: Lenheart <947330670@qq.com> Date: Wed, 16 Jul 2025 15:20:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AE=80=E6=98=93=E7=BB=98?= =?UTF-8?q?=E5=88=B6Ani?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Base/_Tool/BaseTool_Class.nut | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Base/_Tool/BaseTool_Class.nut b/Base/_Tool/BaseTool_Class.nut index c880755..7a10d57 100644 --- a/Base/_Tool/BaseTool_Class.nut +++ b/Base/_Tool/BaseTool_Class.nut @@ -164,6 +164,17 @@ class Rindro_BaseToolClass { 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) { @@ -232,7 +243,7 @@ class Rindro_BaseToolClass { //获取文字绘制长度 class LenheartTextClass { function GetStringLength(str) { - if(typeof str != "string")str = "无字符"; + if (typeof str != "string") str = "无字符"; return L_sq_GetStringDrawLength(str); } } @@ -254,6 +265,7 @@ class MemoryTool { nEcx8 = NativePointer(L_sq_I2P(Address + 8)).readInt(); if (nEcx8 == -1) return nEcx8; nEsi = NativePointer(L_sq_I2P(0x1AF8D78)).readInt(); + if (nEsi == -1) return nEdx; nEdx = nEax >> 16; nTmp = (nEdx << 2) + nEsi + 36; 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; JEcx = AddreSs; JEax = L_sq_RA(0x1AF8DB8);