// Token: 0x06002CDF RID: 11487 RVA: 0x000A7F48 File Offset: 0x000A6148 private void OnGUI() { GUI.depth = 1; GUI.skin = this.skin; GUIStyle box = "ctxbox"; GUIStyle button = "ctxbutton"; int num = -1; ContextClientState clientState = this.clientState; if (clientState != ContextClientState.Options) { if (clientState != ContextClientState.Validating) { return; } ContextUI.GUIString(this.validatingString, box); } else { num = this.GUIOptions(box, button); if (num == -1 && global::NetCull.localTimeInMillis - this.clientQueryTime > 300UL && !global::Context.UICommands.IsButtonHeld(false)) { global::Context.EndQuery(); } } if (num != -1) { this.OnClientSelection(num); } }
private void SetContextClientState(ContextClientState state) { if (this._clientState != state) { if (this._clientState == ContextClientState.Off) { this._clientState = state; if (clientWorkingCallbacks != null) { clientWorkingCallbacks(true); } } else if (state == ContextClientState.Off) { this._clientState = state; if (clientWorkingCallbacks != null) { clientWorkingCallbacks(false); } } else { this._clientState = state; } } }
private void OnGUI() { GUI.depth = 1; GUI.skin = this.skin; GUIStyle gUIStyle = "ctxbox"; GUIStyle gUIStyle1 = "ctxbutton"; int num = -1; ContextClientState contextClientState = this.clientState; if (contextClientState == ContextClientState.Options) { num = this.GUIOptions(gUIStyle, gUIStyle1); if (num == -1 && NetCull.localTimeInMillis - this.clientQueryTime > (long)300 && !Context.UICommands.IsButtonHeld(false)) { Context.EndQuery(); } } else { if (contextClientState != ContextClientState.Validating) { return; } ContextUI.GUIString(this.validatingString, gUIStyle); } if (num != -1) { this.OnClientSelection(num); } }
private void SetContextClientState(ContextClientState state) { if (this._clientState != state) { if (this._clientState == ContextClientState.Off) { this._clientState = state; if (ContextUI.clientWorkingCallbacks != null) { ContextUI.clientWorkingCallbacks(true); } } else if (state != ContextClientState.Off) { this._clientState = state; } else { this._clientState = state; if (ContextUI.clientWorkingCallbacks != null) { ContextUI.clientWorkingCallbacks(false); } } } }