181181
182182local function OpenRaidDragPanel (dwMemberID )
183183 local hTeam = GetClientTeam ()
184- local tMemberInfo = hTeam . GetMemberInfo (dwMemberID )
184+ local tMemberInfo = X . GetTeamMemberInfo (dwMemberID )
185185 if not tMemberInfo then
186186 return
187187 end
@@ -202,7 +202,7 @@ local function OpenRaidDragPanel(dwMemberID)
202202
203203 local hImageLife = hMember :Lookup (' Image_Health' )
204204 local hImageMana = hMember :Lookup (' Image_Mana' )
205- if tMemberInfo .bIsOnLine then
205+ if tMemberInfo .bOnline then
206206 local fCurrentLife , fMaxLife = X .GetCharacterLife (tMemberInfo )
207207 if fMaxLife > 0 then
208208 hImageLife :SetPercentage (fCurrentLife / fMaxLife )
330330function D .SetTargetTeammate (dwID , info )
331331 if X .IsInPubgMap () and X .GetClientPlayer ().nMoveState == MOVE_STATE .ON_DEATH then
332332 BattleField_MatchPlayer (dwID )
333- elseif info .bIsOnLine and CanTarget (dwID ) then -- 有待考证
333+ elseif info .bOnline and CanTarget (dwID ) then -- 有待考证
334334 if CFG .bTempTargetEnable then
335335 X .DelayCall (' MY_Cataclysm_TempTarget' , false )
336336 CTM_TEMP_TARGET_TYPE , CTM_TEMP_TARGET_ID = nil
@@ -436,7 +436,7 @@ function MY_CataclysmParty_Base.OnItemMouseEnter()
436436 OnItemRefreshTip ()
437437 local dwID = (this .bBuff and this :GetParent ():GetParent ().dwID ) or (this .bRole and this .dwID )
438438 local info = dwID ~= CTM_TEMP_TARGET_ID and CTM :GetMemberInfo (dwID ) or nil
439- if info and info .bIsOnLine and CanTarget (dwID ) and CFG .bTempTargetEnable then
439+ if info and info .bOnline and CanTarget (dwID ) and CFG .bTempTargetEnable then
440440 X .DelayCall (' MY_Cataclysm_TempTarget' , false )
441441 local function fnAction ()
442442 if not CTM_TEMP_TARGET_TYPE then
@@ -534,12 +534,12 @@ function MY_CataclysmParty_Base.OnItemRButtonClick()
534534 table.insert (menu , v )
535535 end
536536 end
537- table.insert (menu , { szOption = g_tStrings .STR_LOOKUP , bDisable = not info .bIsOnLine , fnAction = function ()
537+ table.insert (menu , { szOption = g_tStrings .STR_LOOKUP , bDisable = not info .bOnline , fnAction = function ()
538538 X .ViewOtherPlayerByID (dwID )
539539 end })
540540 if MY_CharInfo and MY_CharInfo .ViewCharInfoToPlayer then
541541 table.insert (menu , {
542- szOption = g_tStrings .STR_LOOK .. g_tStrings .STR_EQUIP_ATTR , bDisable = not info .bIsOnLine , fnAction = function ()
542+ szOption = g_tStrings .STR_LOOK .. g_tStrings .STR_EQUIP_ATTR , bDisable = not info .bOnline , fnAction = function ()
543543 MY_CharInfo .ViewCharInfoToPlayer (dwID )
544544 end
545545 })
@@ -1963,7 +1963,7 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
19631963 if CFG .nBGColorMode ~= CTM_BG_COLOR_MODE .BY_DISTANCE then
19641964 if h .nDistanceLevel then
19651965 nAlpha = CFG .tDistanceAlpha [h .nDistanceLevel ]
1966- elseif info .bIsOnLine then
1966+ elseif info .bOnline then
19671967 nAlpha = CFG .tOtherAlpha [3 ]
19681968 else
19691969 nAlpha = CFG .tOtherAlpha [2 ]
@@ -1991,13 +1991,13 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
19911991 end
19921992 if bSha then
19931993 local r , g , b = unpack (CFG .tManaColor )
1994- if not info .bIsOnLine then
1994+ if not info .bOnline then
19951995 r , g , b = unpack (CFG .tOtherCol [2 ]) -- 不在线就灰色了
19961996 end
19971997 self :DrawShadow (Msha , hMana :GetW () * nPercentage , Msha :GetH (), r , g , b , nAlpha , CFG .bManaGradient )
19981998 Msha :Show ()
19991999 else
2000- if info .bIsOnLine then
2000+ if info .bOnline then
20012001 Mimg :ToNormal ()
20022002 else
20032003 Mimg :ToGray ()
@@ -2048,7 +2048,7 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
20482048 -- 颜色计算
20492049 local nNewW = hLife :GetW () * fLifePercentage
20502050 local r , g , b = unpack (CFG .tOtherCol [2 ]) -- 不在线就灰色了
2051- if info .bIsOnLine then
2051+ if info .bOnline then
20522052 if CFG .nBGColorMode == CTM_BG_COLOR_MODE .BY_DISTANCE then
20532053 if player or X .GetPlayer (dwID ) then
20542054 if h .nDistanceLevel then
@@ -2073,7 +2073,7 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
20732073 Ledg :SetAlpha (nAlpha )
20742074 Ledg :SetRelX (nRelX )
20752075 Ledg :SetAbsX (hLife :GetAbsX () + nRelX )
2076- if info .bIsOnLine then
2076+ if info .bOnline then
20772077 Limg :ToNormal ()
20782078 else
20792079 Limg :ToGray ()
@@ -2091,15 +2091,15 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
20912091 -- 数值绘制
20922092 local life = h :Lookup (' Text_Life' )
20932093 local nFontAlpha = math.min (nAlpha * 0.4 + 255 * 0.6 , 255 )
2094- if not info .bIsOnLine then
2094+ if not info .bOnline then
20952095 nFontAlpha = nFontAlpha * 0.8
20962096 end
20972097 life :SetAlpha (nAlpha == 0 and 0 or nFontAlpha )
20982098 life :SetFontScheme (CFG .nLifeFont )
20992099 life :SetFontScale (CFG .fLifeFontScale )
21002100 h :Lookup (' Text_Name' ):SetAlpha (nFontAlpha )
21012101
2102- if not bDeathFlag and info .bIsOnLine then
2102+ if not bDeathFlag and info .bOnline then
21032103 life :SetFontColor (255 , 255 , 255 )
21042104 if CFG .nHPShownMode2 == 0 then
21052105 life :SetText (' ' )
@@ -2125,7 +2125,7 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
21252125 end
21262126 end
21272127 end
2128- elseif not info .bIsOnLine then
2128+ elseif not info .bOnline then
21292129 life :SetText (' ' )
21302130 elseif bDeathFlag then
21312131 life :SetText (' ' )
@@ -2137,10 +2137,10 @@ function CTM:DrawHPMP(h, dwID, info, bRefresh)
21372137 -- life:SetText('sync ...')
21382138 -- end
21392139 h :Lookup (' Text_Death' ):SetVisible (bDeathFlag )
2140- h :Lookup (' Text_OffLine' ):SetVisible (not info .bIsOnLine )
2140+ h :Lookup (' Text_OffLine' ):SetVisible (not info .bOnline )
21412141 h :Lookup (' Text_Death' ):SetFontScale (CFG .fLifeFontScale )
21422142 h :Lookup (' Text_OffLine' ):SetFontScale (CFG .fLifeFontScale )
2143- h :Lookup (' Image_PlayerBg' ):SetVisible (info .bIsOnLine )
2143+ h :Lookup (' Image_PlayerBg' ):SetVisible (info .bOnline )
21442144 end
21452145end
21462146
@@ -2157,11 +2157,11 @@ function CTM:RefreshSputtering()
21572157 for _ , dwID in pairs (tGroupInfo .MemberList ) do
21582158 local info , nCount = team .GetMemberInfo (dwID ), 0
21592159 local player = X .GetPlayer (dwID )
2160- if player and not info .bDeathFlag and info .bIsOnLine then
2160+ if player and not info .bDeathFlag and info .bOnline then
21612161 for _ , dwID2 in pairs (tGroupInfo .MemberList ) do
21622162 local info2 = team .GetMemberInfo (dwID2 )
21632163 local player2 = X .GetPlayer (dwID2 )
2164- if player2 and not info2 .bDeathFlag and info2 .bIsOnLine
2164+ if player2 and not info2 .bDeathFlag and info2 .bOnline
21652165 and X .GetCharacterDistance (player , player2 , ' gwwean' ) <= CFG .nSputteringDistance then
21662166 nCount = nCount + 1
21672167 end
@@ -2227,7 +2227,7 @@ function CTM:StartTeamVote(eType)
22272227 for k , v in pairs (CTM_CACHE ) do
22282228 if v :IsValid () then
22292229 local info = self :GetMemberInfo (k )
2230- local bAwait = info .bIsOnLine
2230+ local bAwait = info .bOnline
22312231 if k == X .GetClientPlayerID () then
22322232 if eType == ' raid_ready' then
22332233 bAwait = false
0 commit comments