예제 #1
0
        static private void FlagViewedTooltipCallback(DataEntryBase data)
        {
            UserFlagsEntry flags = data as UserFlagsEntry;

            if (null == flags)
            {
                return;
            }

            HelperMethods.UserFlags tempFlags = flags.Data;
            if (null == flags.Data)
            {
                tempFlags = new HelperMethods.UserFlags();
            }

            tempFlags.hasSeenTooltip = true;
            ITTDataCache.Instance.Data.UpdateDataEntry((int)DataCacheIndices.USER_FLAGS, tempFlags, false);

            ITTDataCache.Instance.Data.RemoveCallbackFromEntry((int)DataCacheIndices.USER_FLAGS, FlagViewedTooltipCallback);
        }
예제 #2
0
        void OnRetrievedUserFlags(DataEntryBase data)
        {
            UserFlagsEntry flags = data as UserFlagsEntry;

            if (null == flags)
            {
                return;
            }

            HelperMethods.UserFlags tempFlags = flags.Data;
            if (null == flags.Data)
            {
                tempFlags        = new HelperMethods.UserFlags();
                _toolTipComplete = tempFlags.hasSeenTooltip = false;
                ITTDataCache.Instance.Data.UpdateDataEntry((int)DataCacheIndices.USER_FLAGS, tempFlags, false);
            }
            else
            {
                if (tempFlags.hasSeenTooltip == true)
                {
                    _toolTipComplete = true;
                }
            }
        }
예제 #3
0
		static private void FlagViewedTooltipCallback(DataEntryBase data)
		{
			UserFlagsEntry flags = data as UserFlagsEntry;
			if (null == flags)
				return;
			
			HelperMethods.UserFlags tempFlags = flags.Data;
			if (null == flags.Data)
				tempFlags = new HelperMethods.UserFlags();
			
			tempFlags.hasSeenTooltip = true;
			ITTDataCache.Instance.Data.UpdateDataEntry((int)DataCacheIndices.USER_FLAGS, tempFlags, false);
			
			ITTDataCache.Instance.Data.RemoveCallbackFromEntry((int)DataCacheIndices.USER_FLAGS, FlagViewedTooltipCallback);
		}
		void OnRetrievedUserFlags(DataEntryBase data)
		{
			UserFlagsEntry flags = data as UserFlagsEntry;
			if (null == flags)
				return;

			HelperMethods.UserFlags tempFlags = flags.Data;
			if (null == flags.Data)
			{
				tempFlags = new HelperMethods.UserFlags();
				_toolTipComplete = tempFlags.hasSeenTooltip = false;	
				ITTDataCache.Instance.Data.UpdateDataEntry((int)DataCacheIndices.USER_FLAGS, tempFlags, false);
			}
			else
			{
				if (tempFlags.hasSeenTooltip == true)
					_toolTipComplete = true;
			}
		}