private void RefreshExcuteButton(ScNpcActive msg) { if (msg.result != 0) { moduleGlobal.ShowMessage(9854, msg.result); return; } RefreshExcuteButton(); }
private void _Packet(ScNpcActive msg) { moduleGlobal.UnLockUI(); if (msg.result == 0) { //已经激活的为取消,否则为激活 if (activeNpc == (NpcTypeID)msg.npcId) { activeNpc = NpcTypeID.None; } else { activeNpc = (NpcTypeID)msg.npcId; } } DispatchModuleEvent(Response_NpcActive, msg); }