111
This commit is contained in:
29
Plugins/SeverNotiAnimotion/SeverNotiAnimotion.nut
Normal file
29
Plugins/SeverNotiAnimotion/SeverNotiAnimotion.nut
Normal file
@@ -0,0 +1,29 @@
|
||||
function LenheartSeverNotiAnimotionCallBack(Chunk) {
|
||||
local Jso = Json.Decode(Chunk);
|
||||
|
||||
getroottable().rawset("LenheartSeverNotiAnimotionSw", Jso.Ani);
|
||||
}
|
||||
|
||||
Pack_Control.rawset(30060, LenheartSeverNotiAnimotionCallBack);
|
||||
|
||||
function LenheartSeverNotiAnimotion(obj) {
|
||||
// getroottable().rawset("LenheartSeverNotiAnimotionSw", "common/announcement/leveche_cutscene.ani");
|
||||
if (getroottable().rawin("LenheartSeverNotiAnimotionSw")) {
|
||||
if (getroottable()["LenheartSeverNotiAnimotionSw"]) {
|
||||
//LenheartSeverNotiAnimotionSwmain.img
|
||||
if (sq_GetCurrentModuleType() == 1) {
|
||||
L_sq_DrawImg("lenheartsevernotianimotionswmain.img", 0, -1, 0);
|
||||
obj = sq_GetCNRDObjectToSQRCharacter(obj);
|
||||
local Ani = obj.sq_GetRestAni();
|
||||
sq_AnimationProc(Ani);
|
||||
sq_drawCurrentFrame(Ani, 400, 350, true);
|
||||
|
||||
local TAni = BasicsDrawTool.T_DrawDynamicAni(obj, getroottable()["LenheartSeverNotiAnimotionSw"], 0, 0, getroottable()["LenheartSeverNotiAnimotionSw"]);
|
||||
if (sq_IsEnd(TAni)) {
|
||||
sq_Rewind(TAni);
|
||||
getroottable().rawdelete("LenheartSeverNotiAnimotionSw");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user