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; } } }
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; } }