fix conflig use item
This commit is contained in:
@@ -474,6 +474,13 @@ namespace CSNetwork
|
||||
SendProtocol(gamedatasendRequest);
|
||||
}
|
||||
|
||||
public void c2s_SendCmdUseItemWithTarget(byte byPackage, byte bySlot, int tid, byte byPVPMask)
|
||||
{
|
||||
gamedatasend gamedatasend = new gamedatasend();
|
||||
gamedatasend.Data = C2SCommandFactory.CreateUseItemWithTarget(byPackage, bySlot, tid, byPVPMask);
|
||||
SendProtocol(gamedatasend);
|
||||
}
|
||||
|
||||
public void RequestOwnItemInfoAsync(
|
||||
byte byPackage,
|
||||
byte bySlot,
|
||||
@@ -957,6 +964,9 @@ namespace CSNetwork
|
||||
case CommandID.SET_COOLDOWN:
|
||||
EC_ManMessage.PostMessage(EC_MsgDef.MSG_HST_SETCOOLTIME, MANAGER_INDEX.MAN_PLAYER, 0, pDataBuf, pCmdHeader);
|
||||
break;
|
||||
case CommandID.HOST_USE_ITEM:
|
||||
EC_ManMessage.PostMessage(EC_MsgDef.MSG_HST_USEITEM, MANAGER_INDEX.MAN_PLAYER, 0, pDataBuf, pCmdHeader);
|
||||
break;
|
||||
case CommandID.COMBO_SKILL_PREPARE:
|
||||
EC_ManMessage.PostMessage(EC_MsgDef.MSG_HST_COMBO_SKILL_PREPARE, MANAGER_INDEX.MAN_PLAYER, 0, pDataBuf, pCmdHeader, dwDataSize);
|
||||
break;
|
||||
|
||||
@@ -15,6 +15,8 @@ namespace BrewMonster.UI
|
||||
protected AUIManager m_pAUIManager = null;
|
||||
string m_szName;
|
||||
|
||||
private bool m_bUpdateRenderTarget = false;
|
||||
|
||||
public virtual void Show(bool value)
|
||||
{
|
||||
gameObject.SetActive(value);
|
||||
@@ -140,5 +142,20 @@ namespace BrewMonster.UI
|
||||
|
||||
/// <summary>Override in dialogs that support attribute-point reset (e.g. DlgCharacter). No-op by default.</summary>
|
||||
public virtual void ResetPoints() { }
|
||||
|
||||
public virtual void UpdateRenderTarget()
|
||||
{
|
||||
m_bUpdateRenderTarget = true;
|
||||
}
|
||||
|
||||
public bool NeedRenderTargetUpdate()
|
||||
{
|
||||
return m_bUpdateRenderTarget;
|
||||
}
|
||||
|
||||
public void ResetRenderTargetFlag()
|
||||
{
|
||||
m_bUpdateRenderTarget = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,6 @@ namespace BrewMonster
|
||||
|
||||
if (pItem != null)
|
||||
{
|
||||
slotIndex++;
|
||||
string itemIcon = pItem.GetIconFile();
|
||||
GetGameUIMan().SetCover(pCell, itemIcon, EC_GAMEUI_ICONS.ICONS_INVENTORY);
|
||||
}
|
||||
@@ -315,7 +314,6 @@ namespace BrewMonster
|
||||
pClock.SetColor(new Color32(0, 0, 0, 128));
|
||||
}
|
||||
|
||||
slotIndex++;
|
||||
string cmdIcon = pSC.GetIconFile();
|
||||
GetGameUIMan().SetCover(pCell, cmdIcon, EC_GAMEUI_ICONS.ICONS_ACTION);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user