private bool UpdateVisible() { for (int i = 1; i <= TotalSlotNum; i++) { if (_adapter.HasWeaponByIndex(i)) { _viewModel.Show = true; return(true); } } _viewModel.Show = false; return(false); }
private bool UpdateVisible() { //var player = _adapter.Player; //bool Show = true; //if (null != player && player.hasPlayerInfo) { // Show = (player.playerInfo.JobAttribute == (int)EJobAttribute.EJob_Variant); //} for (int i = 1; i <= TotalSlotNum; i++) { if (_adapter.HasWeaponByIndex(i)) { _viewModel.Show = true; return(true); } } _viewModel.Show = false; return(false); }