11111
This commit is contained in:
@@ -98,7 +98,7 @@ class RinDro_Luke extends Rindro_BaseToolClass {
|
||||
} else {
|
||||
//在卢克区域的 要转移回普通城镇
|
||||
if (L_sq_GetTownIndex() == BaseConfig.town_index) {
|
||||
L_sq_MoveTown(1, 1, 474, 249);
|
||||
L_sq_MoveTown(getroottable().rawin("RindroRaidNormalTown") ? getroottable().RindroRaidNormalTown : 2, getroottable().rawin("RindroRaidNormalArea") ? getroottable().RindroRaidNormalArea : 1, 474, 249);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -160,11 +160,12 @@ class RinDro_Luke extends Rindro_BaseToolClass {
|
||||
}
|
||||
//构造CID对应的装备数组方便绘制
|
||||
Portrait.rawset(MemberObj.CID, {
|
||||
EquVos = clone(MemberObj.equVos),
|
||||
EquVos = Rindro_Draw_Character(MemberObj.PlayerJob, MemberObj.equVos, "rest.ani", null),
|
||||
Job = MemberObj.PlayerJob,
|
||||
TeamId = MemberObj.characNum,
|
||||
Name = MemberObj.PlayerName,
|
||||
});
|
||||
|
||||
local T = {
|
||||
PartyId = Jso.team.TeamId, //攻坚队ID
|
||||
TeamId = MemberObj.characNum, //小队编号
|
||||
@@ -173,7 +174,7 @@ class RinDro_Luke extends Rindro_BaseToolClass {
|
||||
JobName = MemberObj.PlayerGrowTypeJob, //职业名
|
||||
Job = MemberObj.PlayerJob, //职业编号
|
||||
StkHasFlag = MemberObj.isPrepare, //是否拥有攻坚材料
|
||||
EquVos = MemberObj.equVos, //装备List 用于显示头像
|
||||
EquVos = Rindro_Draw_Character(MemberObj.PlayerJob, MemberObj.equVos, "rest.ani", null), //装备List 用于显示头像
|
||||
Captain = MemberObj.CaptainBool, //是否为攻坚队队长
|
||||
Cid = MemberObj.CID, //Cid
|
||||
OnlineState = MemberObj.onLineStart, //在线状态
|
||||
@@ -335,7 +336,7 @@ class RinDro_Luke extends Rindro_BaseToolClass {
|
||||
PartyHallWindow_Object = LenheartNewUI_CreateWindow(Rindro_Luke_PartyHallC, "新卢克攻坚大厅窗口", ((getroottable().Rindro_Scr_Width - 478)).tointeger(), 40, 478, 434, 18);
|
||||
PartyFormationWindow_Object = LenheartNewUI_CreateWindow(Rindro_LukePartyFormation, "卢克我的队伍编队窗口", 375, 190, 294, 192, 18);
|
||||
FightSituationWindow_Object = LenheartNewUI_CreateWindow(Rindro_LukeFightSituationC, "卢克攻坚战况表", ((getroottable().Rindro_Scr_Width - 800) / 2).tointeger(), 8, 800, 600, 0);
|
||||
PartyWindow_Object = LenheartNewUI_CreateWindow(Rindro_LukePartyInfoC, "卢克我的队伍窗口", 6, 15, 354, 566, 18);
|
||||
PartyWindow_Object = LenheartNewUI_CreateWindow(Rindro_LukePartyInfoC, "卢克我的队伍窗口", 6, 15, 354, 566 - 255, 18);
|
||||
RewardWindow_Object = LenheartNewUI_CreateWindow(Rindro_Luke_RewardC, "卢克翻牌奖励窗口", 0, 0, 0, 0, 0);
|
||||
LenheartNewUI_CreateWindow(Rindro_Luke_NotiC, "卢克攻坚队伍消息分发", 0, 0, 0, 0, 0);
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
|
||||
Visible = false;
|
||||
//调试模式
|
||||
DeBugMode = true;
|
||||
// DeBugMode = true;
|
||||
//透明度
|
||||
AlphaValue = 1.0;
|
||||
|
||||
@@ -133,6 +133,7 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
obj = sq_ObjectToSQRCharacter(obj);
|
||||
local mob = LukeRaid_getMonsterObject(obj, 664670);
|
||||
if (mob) {
|
||||
mob = sq_GetCNRDObjectToActiveObject(mob);
|
||||
local mobMaxhp = mob.getHpMax();
|
||||
local mobhp = mob.getHp();
|
||||
local newhp = mobhp - (mobMaxhp.tofloat() * (Jso.ReduceHp.tofloat() / 100.0)).tointeger();
|
||||
@@ -143,7 +144,7 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
|
||||
constructor(gObjectId, gX, gY, gWidth, gHeight, gTitleH) {
|
||||
Childrens = [];
|
||||
Pack_Control.rawset(20084402, setLukeRaidBoss_DamageHp.bindenv(this));
|
||||
Pack_Control.rawset(20084042, setLukeRaidBoss_DamageHp.bindenv(this));
|
||||
//初始化判断孵化进入操作表
|
||||
MapIndexTable = {};
|
||||
MapIndexTable.rawset(33100, 7);
|
||||
@@ -409,13 +410,9 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
local YOffset = 9 + (index * 22);
|
||||
|
||||
//绘制队长头像
|
||||
foreach(AvatarObj in PartyMasterIcon.InfoObj.EquVos) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[PartyMasterIcon.InfoObj.Job][0] - 17 + ((PosI % 10) * 24);
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[PartyMasterIcon.InfoObj.Job][1] + 512 + ((PosI / 10) * 20);
|
||||
setClip(AXpos + OffsetArr[PartyMasterIcon.InfoObj.Job][2], AYpos + OffsetArr[PartyMasterIcon.InfoObj.Job][3], AXpos + OffsetArr[PartyMasterIcon.InfoObj.Job][2] + 22, AYpos + OffsetArr[PartyMasterIcon.InfoObj.Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
local AXpos = X + 26 + ((PosI % 10) * 24);
|
||||
local AYpos = Y + 513 + ((PosI / 10) * 20);
|
||||
PartyMasterIcon.InfoObj.EquVos.DrawFace(AXpos, AYpos);
|
||||
PosI++;
|
||||
}
|
||||
}
|
||||
@@ -524,13 +521,9 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
local YOffset = 9;
|
||||
|
||||
//绘制队长头像
|
||||
foreach(AvatarObj in CharacV.EquVos) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[CharacV.Job][0] + DgnObj.X + ImgInfo[3] - 28;
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[CharacV.Job][1] + DgnObj.Y + ImgInfo[4] + 2;
|
||||
setClip(AXpos + OffsetArr[CharacV.Job][2], AYpos + OffsetArr[CharacV.Job][3], AXpos + OffsetArr[CharacV.Job][2] + 22, AYpos + OffsetArr[CharacV.Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
local AXpos = X + DgnObj.X + ImgInfo[3] + 16;
|
||||
local AYpos = Y + DgnObj.Y + ImgInfo[4] + 2;
|
||||
CharacV.EquVos.DrawFace(AXpos, AYpos);
|
||||
|
||||
//绘制队伍人数
|
||||
for (local z = 0; z< count; z++) {
|
||||
@@ -740,29 +733,7 @@ class Rindro_LukeFightSituationC extends LenheartNewUI_Windows {
|
||||
}
|
||||
//判断自身地图相关事件
|
||||
function MapEventTest(obj) {
|
||||
if (sq_GetCurrentModuleType() != 3) return;
|
||||
local stage = sq_GetGlobaludpModuleStage();
|
||||
local MapIndex = sq_GetMapIndex(stage);
|
||||
if (MapIndexTable.rawin(MapIndex)) {
|
||||
local X = obj.getXPos();
|
||||
local Y = obj.getYPos();
|
||||
local Mark = false;
|
||||
if (MapIndex == 33103 && PosEvent(X, 737) && PosEvent(Y, 354)) Mark = true;
|
||||
if (MapIndex == 33100 && PosEvent(X, 369) && PosEvent(Y, 387)) Mark = true;
|
||||
if (MapIndex == 33116 && PosEvent(X, 365) && PosEvent(Y, 374)) Mark = true;
|
||||
if (MapIndex == 33119 && PosEvent(X, 838) && PosEvent(Y, 424)) Mark = true;
|
||||
|
||||
if (Mark == true && MapMoveMark == false) {
|
||||
local T = {
|
||||
op = 20084303,
|
||||
DunId = MapIndexTable[MapIndex]
|
||||
}
|
||||
SendPackEx(T);
|
||||
MapMoveMark = true;
|
||||
} else if (Mark == false) MapMoveMark = false;
|
||||
} else {
|
||||
MapMoveMark = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -87,18 +87,16 @@ class Rindro_Luke_NotiC extends LenheartNewUI_Windows {
|
||||
|
||||
if (Ct >= 200) {
|
||||
//绘制队长头像
|
||||
foreach(AvatarObj in PartyMasterIcon.InfoObj.EquVos) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[PartyMasterIcon.InfoObj.Job][0] - 9 + 150;
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[PartyMasterIcon.InfoObj.Job][1] + 184;
|
||||
setClip(AXpos + OffsetArr[PartyMasterIcon.InfoObj.Job][2], AYpos + OffsetArr[PartyMasterIcon.InfoObj.Job][3], AXpos + OffsetArr[PartyMasterIcon.InfoObj.Job][2] + 22, AYpos + OffsetArr[PartyMasterIcon.InfoObj.Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
local AXpos = X - 9 + 150 + 44;
|
||||
local AYpos = Y + 184 + 2;
|
||||
PartyMasterIcon.InfoObj.EquVos.DrawFace(AXpos, AYpos);
|
||||
}
|
||||
}
|
||||
|
||||
//绘制消息
|
||||
if (Ct >= 200) L_sq_DrawCode(Msg, X + 270 + LenheartTextClass.GetStringLength(Name), Y + 190, sq_RGBA(230, 200, 155, 255), 0, 1);
|
||||
|
||||
if (Ct >= 2000) Msg = null;
|
||||
}
|
||||
|
||||
function Show(obj) {
|
||||
|
||||
@@ -205,13 +205,10 @@ class Rindro_LukeApplyJoinC extends LenheartNewUI_Windows {
|
||||
L_sq_DrawImg("hud/fiendwarl.img", 14, X + 8, Y + 40);
|
||||
//绘制角色头像
|
||||
if (AvatarArr) {
|
||||
foreach(AvatarObj in AvatarArr) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[Job][0] - 8;
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[Job][1] + 40;
|
||||
setClip(AXpos + OffsetArr[Job][2], AYpos + OffsetArr[Job][3], AXpos + OffsetArr[Job][2] + 22, AYpos + OffsetArr[Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
//绘制队长头像
|
||||
local AXpos = X + 42 - 8;
|
||||
local AYpos = Y + 1 + 40;
|
||||
AvatarArr.DrawFace(AXpos, AYpos);
|
||||
}
|
||||
//绘制角色等级
|
||||
L_sq_DrawCode(Level, X + 78 - LenheartTextClass.GetStringLength(Level) / 2, Y + 45, sq_RGBA(134, 120, 79, 255), 0, 1);
|
||||
|
||||
@@ -326,7 +326,6 @@ class Rindro_Luke_PartyHallC extends LenheartNewUI_Windows {
|
||||
//逻辑入口
|
||||
function Proc(obj) {
|
||||
|
||||
|
||||
//界面未打开
|
||||
if (!this.Visible && L_sq_RA(0x1A5FB4C, "0x14+0x28+")< 2) {
|
||||
//在甲板
|
||||
|
||||
@@ -45,7 +45,7 @@ class Rindro_LukePartyInfoC extends LenheartNewUI_Windows {
|
||||
Fatigue = Jso.charac.PlayFatigue,
|
||||
Combat = Jso.charac.ZL,
|
||||
ClearanceCount = Jso.charac.ClearanceCount,
|
||||
AvatarArr = Jso.charac.equVos,
|
||||
AvatarArr = Rindro_Draw_Character(Jso.charac.PlayerJob, Jso.charac.equVos, "rest.ani", null),
|
||||
PlayerSession = Jso.charac.PlayerSession
|
||||
}
|
||||
//没人
|
||||
|
||||
@@ -135,13 +135,9 @@ class Rindro_LukePartyInfoMemberC extends LenheartNewUI_CommonUi {
|
||||
|
||||
sq_DrawBox(X + 42, Y + 1, 22, 18, HandBoxColor[InfoObj.TeamId]);
|
||||
//绘制队长头像
|
||||
foreach(AvatarObj in InfoObj.EquVos) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[InfoObj.Job][0];
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[InfoObj.Job][1];
|
||||
setClip(AXpos + OffsetArr[InfoObj.Job][2], AYpos + OffsetArr[InfoObj.Job][3], AXpos + OffsetArr[InfoObj.Job][2] + 22, AYpos + OffsetArr[InfoObj.Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
local AXpos = X + 42;
|
||||
local AYpos = Y + 1;
|
||||
InfoObj.EquVos.DrawFace(AXpos, AYpos);
|
||||
|
||||
if (InfoObj.Captain) L_sq_DrawImg("hud/rindroanton.img", 18, X + 42, Y + 1);
|
||||
|
||||
|
||||
@@ -753,14 +753,11 @@ class Rindro_Luke_RewardC extends LenheartNewUI_Windows {
|
||||
function DrawProfile(Cid, gx, gy, CodeXOffset) {
|
||||
if (RinDro_Luke_Obj.Portrait.rawin(Cid)) {
|
||||
local InfoObj = RinDro_Luke_Obj.Portrait[Cid];
|
||||
|
||||
//绘制队长头像
|
||||
foreach(AvatarObj in InfoObj.EquVos) {
|
||||
local AXpos = AvatarObj.F[0][2] + X + OffsetArr[InfoObj.Job][0] + gx - 110;
|
||||
local AYpos = AvatarObj.F[0][3] + Y + OffsetArr[InfoObj.Job][1] + gy - 5;
|
||||
setClip(AXpos + OffsetArr[InfoObj.Job][2], AYpos + OffsetArr[InfoObj.Job][3], AXpos + OffsetArr[InfoObj.Job][2] + 22, AYpos + OffsetArr[InfoObj.Job][3] + 18); //开始裁切
|
||||
L_sq_DrawImg("character/" + AvatarObj.B + ".img", AvatarObj.F[0][0], AXpos, AYpos);
|
||||
releaseClip(); //裁切结束
|
||||
}
|
||||
local AXpos = X + gx - 110 + 42;
|
||||
local AYpos = Y + gy - 5 + 1;
|
||||
InfoObj.EquVos.DrawFace(AXpos, AYpos);
|
||||
|
||||
L_sq_DrawCode(InfoObj.Name, gx + CodeXOffset - LenheartTextClass.GetStringLength(InfoObj.Name) / 2, gy, 0xff00b1ff, 0, 1);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user