Class: PlayerViewControl

PlayerViewControl()

This class manages the player selection dropdown. This dropdown is available in observermode and when enabling the developers option. For observers, the user can view the player but not send commands. If the developer feature is enabled and cheats enabled, the player becomes assigned to and can control the selected player.

Constructor

new PlayerViewControl()

Source:

Members

ObserverTitle

Source:

changePerspective

Source:

changePerspective

Source:

observerText

Source:

playerIDChangeHandlers

Source:

preViewedPlayerChangeHandlers

Source:

viewPlayer

Source:

viewedPlayerChangeHandlers

Source:

Methods

onPlayersFinished()

Select "observer" item on loss. On win enable observermode without changing perspective.
Source:

onPlayersInit()

Select "observer" in the view player dropdown when rejoining as a defeated player.
Source:

onSelectionChange()

Source:

rebuild()

Source:

registerPlayerIDChangeHandler()

Source:

registerPreViewedPlayerChangeHandler()

Source:

registerViewedPlayerChangeHandler()

Source:

selectViewPlayer()

Source:

setChangePerspective()

Source: