コード例 #1
0
 // Token: 0x06002AD6 RID: 10966 RVA: 0x0009F030 File Offset: 0x0009D230
 public void Invoke(global::RPOSWindow window, global::RPOSWindowMessage message)
 {
     if (!this.init || this.count == 0)
     {
         return;
     }
     if ((message - global::RPOSWindowMessage.WillShow & 1) == 1)
     {
         for (int i = this.count - 1; i >= 0; i--)
         {
             if (!this.TryInvoke(window, message, i))
             {
                 this.handlerGate.Remove(this.handlers[i]);
                 this.handlers.RemoveAt(i);
                 this.count--;
             }
         }
     }
     else
     {
         for (int j = 0; j < this.count; j++)
         {
             if (!this.TryInvoke(window, message, j))
             {
                 this.handlerGate.Remove(this.handlers[j]);
                 this.handlers.RemoveAt(j--);
                 this.count--;
             }
         }
     }
 }
コード例 #2
0
 // Token: 0x06002ACE RID: 10958 RVA: 0x0009ED4C File Offset: 0x0009CF4C
 public void Fire(global::RPOSWindow window, global::RPOSWindowMessage message)
 {
     if (this.init && message >= global::RPOSWindowMessage.WillShow && message <= global::RPOSWindowMessage.DidHide)
     {
         this.responders[message - global::RPOSWindowMessage.WillShow].Invoke(window, message);
     }
 }
コード例 #3
0
        // Token: 0x06002AD5 RID: 10965 RVA: 0x0009EF9C File Offset: 0x0009D19C
        private bool TryInvoke(global::RPOSWindow window, global::RPOSWindowMessage message, int i)
        {
            global::RPOSWindowMessageHandler rposwindowMessageHandler = this.handlers[i];
            bool result;

            try
            {
                result = rposwindowMessageHandler(window, message);
            }
            catch (Exception ex)
            {
                Debug.LogError(string.Concat(new object[]
                {
                    "handler ",
                    rposwindowMessageHandler,
                    " threw exception with message ",
                    message,
                    " on window ",
                    window,
                    " and will no longer execute. The exception is below\r\n",
                    ex
                }), window);
                result = false;
            }
            return(result);
        }
コード例 #4
0
 // Token: 0x06002AD8 RID: 10968 RVA: 0x0009F138 File Offset: 0x0009D338
 public static bool IsRegistered(this global::RPOSWindow window)
 {
     return(window && window.ready);
 }
コード例 #5
0
 // Token: 0x06002AB5 RID: 10933 RVA: 0x0009EA74 File Offset: 0x0009CC74
 public bool IsBelow(global::RPOSWindow window)
 {
     return(window.order > this.order);
 }
コード例 #6
0
 // Token: 0x06002AB4 RID: 10932 RVA: 0x0009EA64 File Offset: 0x0009CC64
 public bool IsAbove(global::RPOSWindow window)
 {
     return(window.order < this.order);
 }
コード例 #7
0
 // Token: 0x06002A84 RID: 10884 RVA: 0x0009E2A8 File Offset: 0x0009C4A8
 public static void EnsureAwake(global::RPOSWindow window)
 {
     window._EnsureAwake();
 }