예제 #1
0
 public void OnSkewerNotificationChangedProxy(SkewerNotificationType type, ObjectGuid simGuid, bool bShow)
 {
     try
     {
         if (SkewerNotificationChanged != null)
         {
             SkewerNotificationChanged(type, simGuid, bShow);
         }
     }
     catch (Exception e)
     {
         Common.Exception(Simulator.GetProxy(simGuid), e);
     }
 }
예제 #2
0
        public void OnUpdateIconNotification(SkewerNotificationType type, ObjectGuid simGuid, bool bShow)
        {
            try
            {
                for (int i = 0x0; i < mHouseholdItems.Length; i++)
                {
                    if ((mHouseholdItems[i].mSimInfo != null) && (mHouseholdItems[i].mSimInfo.mGuid == simGuid))
                    {
                        switch (type)
                        {
                            case SkewerNotificationType.GroupingNotfication:
                                mHouseholdItems[i].mGroupButton.Visible = bShow;
                                mHouseholdItems[i].mDateButton.Visible = false;
                                break;

                            case SkewerNotificationType.DatingNotification:
                                mHouseholdItems[i].mDateButton.Visible = bShow;
                                mHouseholdItems[i].mGroupButton.Visible = false;
                                break;

                            case SkewerNotificationType.FollowNotification:
                                mHouseholdItems[i].mbShouldShowFollowNotify = bShow;
                                mHouseholdItems[i].mFollowNotification.Visible = bShow;
                                break;

                            case SkewerNotificationType.EnsorcelNotification:
                                mHouseholdItems[i].mEnsorcelButton.Visible = bShow;
                                mHouseholdItems[i].mGroupButton.Visible = bShow;
                                break;
                        }
                    }
                }
            }
            catch (Exception exception)
            {
                Common.Exception("OnUpdateIconNotification", exception);
            }
        }
예제 #3
0
 public void SendSkewerNotfication(SkewerNotificationType type, ObjectGuid simGuid, bool bShow)
 {
     mHudModel.SendSkewerNotfication(type, simGuid, bShow);
 }