Table of Contents

Class UITKWorldQueueDisplay

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

The client's view of its wait in either of the connection pipeline's queues — the world server's scene routing, or the login server's admission: where it stands, how long it may take, how long it has waited, and a way out. When the server gives up on the wait, the same panel says which wait failed and what can be done about it.

public class UITKWorldQueueDisplay : UITKControl
Inheritance
Object
Component
Behaviour
MonoBehaviour
UITKWorldQueueDisplay
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.MemberwiseClone()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

The world server places waiting players strictly in the order they arrived, and only as many as there are free slots, so a player can legitimately wait while a zone is full. That wait used to be a line of text in the shared dialog box. The dialog is a Modal panel, underneath the loading overlay, and every return through the world server after a zone change, a channel switch or a bind-point respawn happens with that overlay up: the one message explaining the wait was drawn behind it, and the player watched a loading screen that never moved. When the wait ended, the client quit to the login screen with no choice offered.

The login server's queue had the same dialog and moved here too, as a second QueueKind with its own wording. It has one wait rather than three, keeps no place across connections, and cannot be rejoined from here (that means signing in again), so its ended state offers only Close.

This panel sits at SystemStatus, above the overlay and below the reconnect display. Client owns the connection decisions — it stops the connection manager redialling on its own when a world wait ends, performs the rejoin, and retries the login handshake on admission — and forwards each WorldSceneQueuePositionBroadcast and LoginQueuePositionBroadcast here. The wording and arithmetic live in WorldQueuePresentation.

Fields

PanelName

Name this panel registers under with UIManager: its GameObject name.

public const string PanelName = "UIWorldQueueDisplay"

Field Value

string

Properties

CanDrag

A full-screen status panel, not a window: nowhere to drag it to.

protected override bool CanDrag { get; }

Property Value

bool

Kind

Which queue the panel is showing, or showed last.

public QueueKind Kind { get; }

Property Value

QueueKind

Layer

Draw order tier for this panel. See SystemStatus.

protected override UITKPanelLayer Layer { get; }

Property Value

UITKPanelLayer

State

What the panel is showing.

public UITKWorldQueueDisplay.DisplayState State { get; }

Property Value

UITKWorldQueueDisplay.DisplayState

Methods

Dismiss()

Takes the panel down without doing anything else: the wait is over because the client was routed, or something else now owns the screen.

public void Dismiss()

Hide(bool)

Hides the panel, forgets its state and hands the cursor back.

public override void Hide(bool overrideIsAlwaysOpen)

Parameters

overrideIsAlwaysOpen bool

When true, the call is a no-op.

Remarks

Overrides Hide(bool) because the quit-to-login teardown calls that form directly; see Hide(bool) for why the cursor claim must be released on every path.

OnAfterShow()

Called at the end of Show(), against the tree the player will actually see. Override to write content that changes from one opening to the next.

protected override void OnAfterShow()

Remarks

Panels keep their tree across hide and show, so an element written while hidden still holds that value when shown. This is the place for content that should be current at the moment of opening, and for resetting anything a fresh opening should not inherit from the last one: typed text, a pending confirmation, a leftover error.

Distinct from OnAfterStarting(), which runs once when the panel starts and again only if its tree is ever genuinely rebuilt. This one runs on every show.

OnAfterStarting()

Re-applies the state to a tree that was replaced while the panel was showing.

protected override void OnAfterStarting()

Remarks

Only while visible: at scene load the panel is hidden, and FishMMO.Client.UITKWorldQueueDisplay.ApplyState() claims the cursor.

OnClientSet()

Steps aside for the reconnect display whenever a reconnect is armed or running.

public override void OnClientSet()

OnClientUnset()

Called when the Client is cleared via SetClient(Client). Override to unsubscribe from client events.

public override void OnClientUnset()

OnStarting()

Resolves cached elements and wires the buttons and keys. Runs once, at scene load.

public override void OnStarting()

OnTick()

Advances the elapsed time and breathes the lamp once a second while waiting, and keeps Try again unavailable until the old connection has actually closed.

protected override void OnTick()

ShowLoginWaitEnded()

Shows that the login server abandoned the wait. The client is already back at the login screen; the panel explains why and closes.

public void ShowLoginWaitEnded()

ShowLoginWaiting(int, int, int)

Shows, or updates, a wait in the login server's admission queue.

public void ShowLoginWaiting(int position, int totalQueued, int estimatedWaitSeconds)

Parameters

position int

1-based position in the queue.

totalQueued int

Size of the queue.

estimatedWaitSeconds int

Server estimate; 0 when it has none.

ShowWaitEnded(WorldSceneQueueReason)

Shows that the world server abandoned the wait, and offers to queue again or go back.

public void ShowWaitEnded(WorldSceneQueueReason reason)

Parameters

reason WorldSceneQueueReason

What the wait that ended was for.

ShowWaiting(int, int, int, WorldSceneQueueReason)

Shows, or updates, the waiting state.

public void ShowWaiting(int position, int totalQueued, int estimatedWaitSeconds, WorldSceneQueueReason reason)

Parameters

position int

1-based position in the queue.

totalQueued int

Size of the group being waited in.

estimatedWaitSeconds int

Server estimate; 0 when it has none.

reason WorldSceneQueueReason

What the client is waiting for.

Remarks

State first, tree second, as UITKReconnectDisplay does: the values are kept here and written by FishMMO.Client.UITKWorldQueueDisplay.ApplyState(), which also runs from OnAfterShow() and OnAfterStarting(), so an update that arrives before the tree exists is not lost.