Global

Members

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

"Engine.openRequest"

Source:

(constant) ACTION_CALLTOARMS

Source:

(constant) ACTION_GARRISON

Source:

(constant) ACTION_GUARD

Source:

(constant) ACTION_NONE

Source:

(constant) ACTION_OCCUPY_TURRET

Source:

(constant) ACTION_PATROL

Source:

(constant) ACTION_REPAIR

Source:

AIbehavior

Source:

AIdescription

Source:

AIdifficulty

Source:

AIname

Source:

AccountSettingsPage

The account settings page allows the player to change some of their account settings.
Source:

Autocomplete

Source:

Autocomplete

Source:

Autocomplete

Source:

Autocomplete

Source:

(constant) CAPTYPE_PLAYER_POPULATION

Source:

(constant) CAPTYPE_TEAM_POPULATION

Source:

(constant) CAPTYPE_WORLD_POPULATION

Source:

Caption

Source:

Caption

Source:

Caption

Source:

Caption

Source:

Default

Source:

Default

Source:

Default

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

Description

Source:

File

Source:

GUI_EXPLANATION

Source:

GetData

Source:

GetData

Source:

Handler

Source:

Handler

Source:

Handler

Source:

Handler

Source:

ID

Source:

INFO

Source:

(constant) INPUT_BANDBOXING

Source:

(constant) INPUT_BATCHTRAINING

Source:

(constant) INPUT_BUILDING_CLICK

Source:

(constant) INPUT_BUILDING_DRAG

Source:

(constant) INPUT_BUILDING_PLACEMENT

Source:

(constant) INPUT_BUILDING_WALL_CLICK

Source:

(constant) INPUT_BUILDING_WALL_PATHING

Source:

(constant) INPUT_FLARE

Source:

(constant) INPUT_NORMAL

Source:

(constant) INPUT_PRESELECTEDACTION

Source:

(constant) INPUT_SELECTING

Source:

(constant) INPUT_UNIT_POSITION

Source:

(constant) INPUT_UNIT_POSITION_START

Source:

INSTRUCTION

Source:

(constant) INVALID_ENTITY

Source:

Id

Source:

Id

Source:

Id

Source:

Id

Source:

Id

Source:

Id

Source:

Id

Source:

Match

Source:

Match

Source:

Match

Source:

Match

Source:

Match

Source:

Match

Source:

Match

Source:

(constant) MatchSort

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Name

Source:

Observable

Source:

Path

Source:

Path

Source:

Path

Source:

Preview

Source:

Preview

Source:

Preview

Source:

Preview

Source:

Profilable

Source:

(constant) SDLK_LALT

Source:

(constant) SDLK_LCTRL

Source:

(constant) SDLK_LEFTBRACKET

Source:

(constant) SDLK_LSHIFT

Source:

(constant) SDLK_RALT

Source:

(constant) SDLK_RCTRL

Source:

(constant) SDLK_RIGHTBRACKET

Source:

(constant) SDLK_RSHIFT

Source:

(constant) SDL_BUTTON_LEFT

Source:

(constant) SDL_BUTTON_MIDDLE

Source:

(constant) SDL_BUTTON_RIGHT

Source:

Suffix

Source:

Suffix

Source:

Suffix

Source:

(constant) TUTORIAL_STEP_TYPE

Source:

Team

Source:

TemplateVariant[undefined]

Source:

TemplateVariant[undefined]

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Title

Source:

Type

Source:

(constant) UPGRADING_CHOSEN_OTHER

Source:

(constant) UPGRADING_NOT_STARTED

Source:

Value

Source:

Value

Source:

Value

Source:

Value

Source:

a

Source:

action

Source:

action

Source:

actorSeed

Source:

actorSeed

Source:

ai

Source:

all

Source:

allowCapture

Source:

allowCapture

Source:

allowCapture

Source:

allowCapture

Source:

allowCapture

Source:

alpha

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amount

Source:

amountGained

Source:

amountGained

Source:

amountGiven

Source:

amountGiven

Source:

amounts

Source:

amounts

Source:

amounts

Source:

angle

Source:

angle

Source:

angle

Source:

angle

Source:

angle

Source:

answer

Source:

appendToPrevious

Source:

appendable

Source:

args

Source:

args

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

argument

Source:

attack

Source:

attack

Source:

attackLabel

Source:

attackType

Source:

attacker

Source:

attacker

Source:

attackers

Source:

attributes

Source:

aurainfo

Source:

auralabel

Source:

auraname

Source:

autocomplete

Source:

autocomplete

Source:

autocomplete[undefined]

Source:

autocontinue

Source:

autocontinue

Source:

autoqueue

Source:

autorepair

Source:

b

Source:

b

Source:

b

Source:

(constant) backgrounds

Source:

(constant) backgrounds

Source:

banned

Source:

batchSize

Source:

batchSize

Source:

behavior

Source:

behavior

Source:

behavior

Source:

blockPercentage

Source:

blockPercentage

Source:

bonus

Source:

bot

Source:

bot

Source:

bot

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bottom

Source:

bought

Source:

buildDate

Source:

buildings

Source:

buttonCaptions

Source:

buy

Source:

callback

Source:

callback

Source:

campaignRun

Source:

campaignRun

Source:

cancel

Source:

(constant) cancelTag

Source:

capacity

Source:

capacity

Source:

capacity

Source:

capacity

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

caption

Source:

captureLabel

Source:

capturePoints

Source:

captured

Source:

captured

Source:

captured

Source:

center

Source:

change

Source:

changedKeys

Source:

changer

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civ

Source:

civs

Source:

class

Source:

clickedEntity

Store the clicked entity on mousedown or mouseup for single/double/triple clicks to select entities. If any mousedown or mouseup of a sequence of clicks lands on a unit, that unit will be selected, which makes it easier to click on moving units.
Source:

clientMismatch

Source:

clientMismatch

Source:

close

Source:

cmd

Source:

cmd

Source:

cmd

Source:

cmd

Source:

cmd

Source:

cmd

Source:

code

Source:

code

Source:

color

Source:

color

Source:

color

Source:

color

Source:

color

Source:

colorIndicator

Source:

column

Source:

columnOrder

Source:

command

Source:

command

Source:

command

Source:

command

Source:

command

Source:

command

Source:

(constant) communityButtons

Source:

(constant) communityButtons

Source:

compatibleVersion

Source:

compatibleVersion

Source:

component

Source:

component

Source:

component

Source:

component

Source:

component

Source:

component

Source:

component

Source:

config

Source:

config

Source:

config

Source:

connectedPlayers

Source:

constructed

Source:

constructed

Source:

content

Source:

context

Source:

context

Source:

context

Source:

context

Source:

context

Source:

coord

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

cost

Source:

costs

Source:

costs

Source:

costs

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

count

Source:

counters

Source:

counters

Source:

counters

Source:

counters

Source:

counters

Source:

counters

Source:

currIdleClassIndex

Source:

current

Source:

current

Source:

current

Source:

current

Source:

currentGatherers

Source:

currentGatherers

Source:

currentPage

Source:

currentVersion

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

cursor

Source:

damage

Source:

damage

Source:

damage

Source:

damageType

Source:

damageType

Source:

damageType

Source:

data

Source:

data

Source:

data

Source:

data

Source:

data

Source:

data

Source:

date

Source:

dateString

Source:

description

Source:

description

Source:

description

Source:

description

Source:

description

Source:

description

Source:

destroyed

Source:

destroyed

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

details

Source:

dialog

Source:

dialog

Source:

dialog

Source:

difficulty

Source:

difficulty

Source:

difficulty

Source:

directories

Source:

directory

Source:

disabled

Source:

disabled

Source:

displayDiplomacyColors

Source:

displayedPlayerColors

Source:

displayedSteps

Source:

(constant) doublePressTime

Source:

doublePressTimer

Source:

durName

Source:

duration

Source:

durationReduction

Source:

durationReduction

Source:

durations

Source:

economyScore

Source:

effects

Source:

effects

Source:

enable

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

enabled

Source:

end

Source:

engine_info

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entities

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entity

Source:

entityCounts

Source:

ents

Source:

ents

Source:

ents

Source:

ents

Source:

enumerable

Source:

enumerable

Source:

error

Source:

error

Source:

errorCode

Source:

errorMessage

Source:

excludeUnits

Source:

expectedHash

Source:

experience

Source:

experience

Source:

extraSize

Source:

failed

Source:

failed

Source:

file

Source:

filename

Source:

filepath

Source:

filepath

Source:

filter

Source:

filter

Source:

filters

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

firstAbleEntity

Source:

flag

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

fn

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

font

Source:

format

Source:

format

Source:

format

Source:

format

Source:

format

Source:

format

Source:

format

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formation

Source:

formationTemplate

Source:

formationTemplate

Source:

foundation

Source:

foundation

Source:

fullBatch

Source:

functionName

Source:

functionName

Source:

g

Source:

g

Source:

g

Source:

g_AdditionalHighlight

Source:

g_AlwaysDisplayFriendlyFire

If true, always shows whether the splash damage deals friendly fire. Otherwise display the friendly fire tooltip only if it does.
Source:

g_Ambient

Source:

g_AutoFormation

Source:

g_AvailableFormations

Source:

g_BatchSize

Source:

g_BatchTrainingEntities

Source:

g_BatchTrainingEntityAllowedCount

Source:

g_BatchTrainingType

Source:

(constant) g_BiomesDirectory

Directory containing all biomes supported for random map scripts.
Source:

g_BuddySymbol

Denotes which players are a lobby buddy of the current user.
Source:

(constant) g_BuildingSelectIndex

Tracks the selection index per building template to allow cycling through multiple structures of the same type.
Source:

g_BuildingSelectIndex[undefined]

Source:

g_BuildingSelectIndex[undefined]

Source:

g_CachedTemplates

Source:

g_CampaignMenu

Source:

g_CampaignSession

Source:

g_CampaignSetupPage

Source:

g_CeasefireEndedHandlers

These handlers are called when the ceasefire time has run out.
Source:

g_ChangedKeys

Names of config keys that have changed, value returned when closing the page.
Source:

g_ChartPanelsData

Source:

g_Chat

Source:

g_Cheats

Source:

g_CinemaOverlay

Source:

(constant) g_CivData

Offer users to select playable civs only. Load unselectable civs as they could appear in scenario maps.
Source:

(constant) g_CivData

Needed for formatPlayerInfo to show the player civs in the details.
Source:

(constant) g_CivData

Used for civ settings display of the selected game.
Source:

(constant) g_CivData

Needed for formatPlayerInfo to show the player civs in the details.
Source:

(constant) g_CivData

Source:

(constant) g_CivData

Source:

g_ClientsLoadingHandlers

These handlers are triggered whenever a client finishes the loading screen.
Source:

g_ColorFade

Used for storing information about color fades
Source:

g_ColorFade[undefined]

Source:

g_ConfigChangeHandlers

These events are fired when the user has closed the options page. The handlers are provided a Set storing which config values have changed. TODO: This should become a GUI event sent by the engine.
Source:

g_CurrentCampaignRun

Source:

g_DamageTypesMetadata

Source:

g_DefaultLobbyRating

The rating assigned to lobby players who didn't complete a ranked 1v1 yet.
Source:

g_DependentLabelIndentation

Horizontal indentation to distinguish options that depend on another option.
Source:

g_DescriptionHighlight

Highlights the victory condition in the game-description.
Source:

g_DeveloperOverlay

Source:

g_DiplomacyColors

Source:

g_DiplomacyDialog

Source:

(constant) g_DisabledTags

Source:

g_Disconnected

True if the connection to the server has been lost.
Source:

g_DragStart

Used for remembering mouse coordinates at start of drag operations.
Source:

g_DurationFilterIntervals

Allow to filter replays by duration in 15min / 30min intervals.
Source:

(constant) g_EngineInfo

Used for checking replay compatibility.
Source:

g_EntityCommands

Info and actions for the entity commands Currently displayed in the bottom of the central panel
Source:

g_EntitySelectionChangeHandlers

These events are fired whenever the player added or removed entities from the selection.
Source:

g_EntityStates

Source:

g_EntityStates[undefined]

Source:

g_EntityStates[undefined]

Source:

g_FadeAttackUnit

Source:

(constant) g_FlareCooldown

The duration in ms for which we disable flaring after each flare to prevent overusage.
Source:

g_FlareRateLimitLastTimes

Contains the arrival timestamps the flares of the last g_FlareRateLimitScope seconds.
Source:

g_FlareRateLimitMaximumFlares

The maximum allowed number of flares within g_FlareRateLimitScope seconds. This should be a bit larger than the number of flares that can be sent in theory by using the GUI.
Source:

g_FlareRateLimitScope

The number of seconds we monitor to rate limit flares.
Source:

g_FlareSound

Sound we play when displaying a flare.
Source:

g_FollowPlayer

True if the camera should focus on attacks and player commands and select the affected units.
Source:

g_FormationsInfo

Source:

g_FreehandSelection_InputLine

Containing the ingame position which span the line.
Source:

(constant) g_FreehandSelection_MinLengthOfLine

Minimum length a dragged line should have to use the freehand selection.
Source:

(constant) g_FreehandSelection_MinNumberOfUnits

To start the freehandSelection function you need a minimum number of units. Minimum must be 2, for better performance you could set it higher.
Source:

(constant) g_FreehandSelection_ResolutionInputLineSquared

Minimum squared distance when a mouse move is called a drag.
Source:

g_GameData

Source:

g_GameSettings

Holds the actual settings & related logic. Global out of convenience in GUI controls.
Source:

g_GameSettingsLayout

This array determines the order in which the GUI controls are shown in the GameSettingTabs panel. The names correspond to property names of the GameSettingControls prototype.
Source:

g_GameSpeedControl

Source:

g_GameType

"server" or "client"
Source:

g_Groups

Source:

g_HasRejoined

True if the current user has rejoined (or joined the game after it started).
Source:

g_HighlightedAlpha

Source:

g_HotkeyChangeHandlers

These events are fired when the user has performed a hotkey assignment change. Currently only fired on init, but to be fired from any hotkey editor dialog.
Source:

g_HotkeyTags

Used to highlight hotkeys in tooltip descriptions.
Source:

g_Indent

String of four spaces to be used as indentation in gui strings.
Source:

g_InfinitySymbol

Source:

(constant) g_InitAttributes

Map, player and match settings set in game setup.
Source:

g_InsaneColor

Color used to indicate that the string entered by the player isn't a sane color.
Source:

g_IsConnecting

Whether we are attempting to join or host a game.
Source:

(constant) g_IsController

Is this user in control of game settings (i.e. is a network server, or offline player).
Source:

g_IsController

Is this user in control of game settings (i.e. is a network server, or offline player).
Source:

(constant) g_IsNetworked

Whether this is a single- or multiplayer match.
Source:

(constant) g_IsNetworked

True if this is a multiplayer game.
Source:

g_IsNetworkedActive

Whether we have finished the synchronization and can start showing simulation related message boxes.
Source:

g_IsObserver

True if the current user has observer capabilities.
Source:

g_IsRejoining

Source:

(constant) g_IsReplay

Source:

g_JumpCameraLast

Source:

g_JumpCameraPositions

Camera jumping: when the user presses a hotkey the current camera location is marked. When pressing another camera jump hotkey the camera jumps back to that position. When the camera is already roughly at that location, jump back to where it was previously.
Source:

g_JumpCameraPositions[undefined]

Source:

g_LastAttack

Source:

g_LastFlareTime

Store the last time the flare functionality was used to prevent overusage.
Source:

g_LastTickTime

Last time when onTick was called(). Used for animating the main menu.
Source:

g_LoadModal

Source:

g_LoadingPage

Source:

g_LobbyGamelistReporter

The host sends a gamelist update everytime a client joins or leaves the match.
Source:

g_LobbyHandler

This class organizes all components of this GUI page.
Source:

g_LobbyMessages

Source:

g_LobbyRatingReporter

The participants of a rated 1v1 match send a rating report when the winner was decided.
Source:

g_LongHeadingWidth

Source:

g_MapCache

Source:

g_MapNames

Sorted list of unique maptitles. Used by mapfilter.
Source:

(constant) g_MapSizes

Source:

(constant) g_MapSizes

Used for the gamelist-filtering.
Source:

(constant) g_MapSizes

Used for creating the mapsize filter.
Source:

(constant) g_MapSizes

Source:

(constant) g_MapTypes

Source:

(constant) g_MapTypes

Used for the gamelist-filtering.
Source:

(constant) g_MapTypes

TODO: better global state handling in the GUI.
Source:

(constant) g_MapTypes

Source:

g_MatchSettingsDialog

Source:

g_MaxHeadingTitle

Source:

(constant) g_MaxPlayers

The maximum number of players that the engine supports. TODO: Maybe we can support more than 8 players sometime.
Source:

g_MaxSelectionSize

Source:

(constant) g_MaxTeams

The maximum number of teams allowed.
Source:

g_Menu

Source:

g_MilitaryTypes

Unit classes to be checked for the military-only-selection modifier and for the idle-warrior-hotkey.
Source:

g_MiniMapPanel

Source:

g_NetMessageTypes

Handle all netmessage types that can occur.
Source:

g_NetworkCommands

Source:

g_NetworkDelayOverlay

Source:

g_NetworkOutOfSyncHandlers

These handlers are fired if the server informed the players that the networked game is out of sync.
Source:

g_NetworkStatusChangeHandlers

These handlers are fired when the match is networked and the current client established the connection, authenticated, finished the loading screen, starts or finished synchronizing after a rejoin. The messages are constructed in NetClient.cpp.
Source:

g_NetworkStatusOverlay

Source:

g_NetworkWarningTexts

Message-types to be displayed.
Source:

g_NetworkWarningTimeout

Number of milliseconds to display network warnings.
Source:

g_NetworkWarnings

Currently displayed network warnings. At most one message per user.
Source:

g_NetworkWarnings[undefined]

Source:

g_NewCampaignModal

Source:

g_Nickname

Current nickname.
Source:

g_NotificationsTypes

Defines how the GUI reacts to notifications that are sent by the simulation. Don't open new pages (message boxes) here! Otherwise further notifications handled in the same turn can't access the GUI objects anymore.
Source:

g_NumberOfBatches

Source:

g_OnSelectTab

Function to be executed when selecting a tab. The new category index is passed.
Source:

g_OptionControlDist

Vertical distance between two consecutive options.
Source:

g_OptionControlHeight

Vertical size of each option control.
Source:

g_OptionControlOffset

Vertical distance between the top of the page and the first option.
Source:

g_OptionType

Defines the parsing of config strings and GUI control interaction for the different option types.
Properties:
Name Type Description
configToValue parses a string from the user config to a value of the declared type.
valueToGui sets the GUI control to display the given value.
guiToValue returns the value of the GUI control.
guiSetter event name that should be considered a value change of the GUI control.
initGUI sets properties of the GUI control that are independent of the current value.
sanitizeValue Displays a visual clue if the entered value is invalid and returns a sane value.
tooltip appends a custom tooltip to the given option description depending on the current value.
Source:

g_Options

Translated JSON file contents.
Source:

g_OrderTabNames

Order in which the tabs should show up.
Source:

g_OutOfSyncNetwork

Source:

g_OutOfSyncReplay

Source:

g_OverlayCounterManager

Since every GUI page can display the FPS or realtime counter, this manager is initialized for every GUI page.
Source:

g_Page

Source:

g_PanelData

Array of Objects containg all relevant data per tab.
Source:

g_PanelEntityManager

Source:

g_PanelEntityOrder

Order in which the panel entities are shown.
Source:

(constant) g_PanelsOrder

If two panels need the same space, so they collide, the one appearing first in the order is rendered. Note that the panel needs to appear in the list to get rendered.
Source:

g_PatrolTargets

Which enemy entity types will be attacked on sight when patroling.
Source:

g_PauseControl

Source:

g_PauseOverlay

Source:

(constant) g_PlaceBuildingHotkeys

Hotkey mappings for building placement, cycling through buildings, and selecting units by class.
Source:

g_PlaceBuildingHotkeys[undefined]

Source:

g_PlayerAssignments

Remembers which clients are assigned to which player slots and whether they are ready. The keys are GUIDs or "local" in single-player.
Source:

g_PlayerAssignments

Source:

g_PlayerAssignments

Remembers which clients are assigned to which player slots. The keys are GUIDs or "local" in single-player.
Source:

g_PlayerAssignmentsChangeHandlers

These handlers are called everytime a client joins or disconnects.
Source:

g_PlayerBoxAlpha

Source:

g_PlayerBoxGap

Source:

g_PlayerBoxYSize

Source:

g_PlayerCount

Source:

g_PlayerFinishedHandlers

These handlers are called when a player has been defeated or won the game.
Source:

g_PlayerStateMessages

Source:

g_PlayerViewControl

Source:

g_Playernames

Array of unique usernames of all replays. Used for autocompleting usernames.
Source:

g_Players

Cache the basic player data (name, civ, color).
Source:

g_PlayersInitHandlers

These handlers are called after the player states have been initialized.
Source:

(constant) g_PopulationCapacities

Source:

(constant) g_PopulationCapacities

Allow to filter by population capacity.
Source:

(constant) g_PopulationCapacities

Source:

g_QuitConfirmationDefeat

Source:

g_QuitConfirmationReplay

Source:

g_RallySound

Sound we play when setting a waypoint or rally point.
Source:

g_RangeOverlayManager

Source:

g_ReplaySelectionData

For restoring selection, order and filters when returning to the replay menu
Source:

g_Replays

All replays found in the directory.
Source:

g_ReplaysFiltered

List of replays after applying the display filter.
Source:

g_ReplaysLoaded

Skip duplicate expensive GUI updates before init is complete.
Source:

g_ResearchProgress

Source:

g_ResourceData

This needs to stay in the global scope, as it is used by various functions within gui/common/tooltip.js
Source:

g_ResourceData

Source:

g_ResourceData

Source:

g_SavegamePage

Source:

g_ScancodesMap

Holds a map of scancode name -> user keyboard name
Source:

g_ScorePanelsData

Source:

(constant) g_SelectBuildingHotkeys

Source:

g_SelectBuildingHotkeys[undefined]

Source:

(constant) g_SelectUnitHotkeys

Source:

g_SelectUnitHotkeys[undefined]

Source:

g_SelectedChart

Selected chart indexes.
Source:

g_SelectedReplayDirectory

Directory name of the currently selected replay. Used to restore the selection after changing filters.
Source:

g_Selection

Cache some quantities which depends only on selection
Source:

g_SelectionPanelBarterButtonManager

Source:

g_SelectionPanels

Source:

g_ServerHasPassword

Identifier if server is using password.
Source:

g_ServerName

Server title shown in the lobby gamelist.
Source:

(constant) g_Settings

An object containing all values given by setting name. Used by lobby, game setup, session, summary screen, and replay menu.
Source:

(constant) g_SettingsDirectory

Directory containing all editable settings.
Source:

g_SetupWindow

This instance owns all handlers that control the two synchronized states g_GameSettings and g_PlayerAssignments.
Source:

g_ShowAllStatusBars

Whether status bars should be shown for all of the player's units.
Source:

g_ShowGUI

Whether the entire UI should be hidden (useful for promotional screenshots). Can be toggled with a hotkey.
Source:

g_ShowGuarded

Source:

g_ShowGuarding

List of additional entities to highlight.
Source:

g_ShowSecondaryNames

Source:

g_SimState

Cache of simulation state and template data (apart from TechnologyData, updated on every simulation update).
Source:

g_SimulationUpdateHandlers

These handlers are called each time a new turn was simulated. Use this as sparely as possible.
Source:

g_SoundNotifications

Used for acoustic GUI notifications. Define the soundfile paths and specific time thresholds (avoid spam). And store the timestamp of last interaction for each notification.
Source:

g_SpecificNamesPrimary

Source:

(constant) g_StartingResources

Source:

(constant) g_StartingResources

Source:

g_StatusBarUpdate

Recalculate which units have their status bars shown with this frequency in milliseconds.
Source:

g_StatusEffectsMetadata

Source:

g_SummarySelection

Remember last viewed summary panel and charts.
Source:

g_SummaryTypes

Colors, captions and format used for units, structures, etc. types
Source:

g_TabButtonDist

Vertical space between two tab buttons.
Source:

g_TabButtonDist

Vertical space between two tab buttons.
Source:

g_TabButtonDist

Horizontal space between two tab buttons.
Source:

g_TabButtonHeight

Vertical size of a tab button.
Source:

g_TabButtonHeight

Vertical size of a tab button.
Source:

g_TabButtonWidth

Horizontal size of a tab button.
Source:

g_TabCategoryCount

Number of categories.
Source:

g_TabCategorySelected

Index of the currently visible tab, set first tab as default.
Source:

g_TabHorizontal

Align the buttons horizontally or vertically.
Source:

g_TargetMarker

Specifies which template should indicate the target location of a player command, given a command type.
Source:

g_TeamHelperData

Source:

g_TeamHelperData[undefined]

Source:

g_TeamHelperData[undefined][undefined]

Source:

g_Teams

Source:

g_TeamsBoxYStart

Source:

g_Teams[undefined]

Source:

g_TechnologyData

Source:

g_TechnologyData[undefined]

Source:

g_TechnologyData[undefined][undefined]

Source:

g_TemplateData

Source:

g_TemplateData[undefined]

Source:

g_TermsButtonHeight

Source:

g_TermsUserReport

Source:

g_Time

Source:

g_TimeNotificationOverlay

Source:

g_TimerID

Source:

g_Timers

Source:

g_Timers[undefined]

Source:

g_Timers[undefined][1]

Source:

g_TipsPage

Source:

g_TooltipTextFormats

Source:

g_TopPanel

Source:

g_TradeDialog

Source:

g_TutorialManager

Source:

g_TypeColors

Source:

g_UnitActions

List of different actions units can execute, this is mostly used to determine which actions can be executed "execute" is meant to send the command to the engine The next functions will always return false in case you have to continue to seek (i.e. look at the next entity for getActionInfo, the next possible action for the actionCheck ...) They will return an object when the searching is finished "getActionInfo" is used to determine if the action is possible, and also give visual feedback to the user (tooltips, cursors, ...) "preSelectedActionCheck" is used to select actions when the gui buttons were used to set them, but still require a target (like the guard button) "hotkeyActionCheck" is used to check the possibility of actions when a hotkey is pressed "actionCheck" is used to check the possibilty of actions without specific command. For that, the specificness variable is used "specificness" is used to determine how specific an action is, The lower the number, the more specific an action is, and the bigger the chance of selecting that action when multiple actions are possible
Source:

g_UnitActionsSortedKeys

Source:

g_UserRating

Source:

g_UserReportStatusFormat

Source:

g_ValidPorts

Source:

(constant) g_VictoryConditions

Source:

(constant) g_VictoryConditions

Used for gameselection details.
Source:

g_VictoryConditions

Sorted list of the victory conditions occuring in the replays
Source:

(constant) g_VictoryConditions

Source:

g_ViewedPlayer

The playerID selected in the change perspective tool.
Source:

g_WorkerTypes

Unit classes to be checked for the idle-worker-hotkey.
Source:

g_allBuildableEntities

Source:

g_allTrainableEntities

Source:

g_canMoveIntoFormation

Source:

g_canMoveIntoFormation[undefined]

Source:

g_unitPanelButtons

Source:

g_unitPanelButtons[undefined]

Source:

gain

Source:

gain

Source:

gain

Source:

gain

Source:

gain

Source:

gain

Source:

gain

Source:

gain

Source:

garrisonHolders

Source:

garrisonHolders

Source:

garrisonHolders

Source:

garrisonLimit

Source:

garrisonSize

Source:

garrisoned

Source:

garrisoned

Source:

garrisonedString

Source:

gathered

Source:

gathered

Source:

gathered

Source:

getHotloadData

Source:

getHotloadData

Source:

getPlayerColor

Source:

greaterAmount

Source:

groups

Source:

gui

Source:

guid

Source:

guid

Source:

guid

Source:

guid

Source:

guid

Source:

guid

Source:

guid

Source:

guid

Source:

halign

Source:

hasPassword

Source:

hash

Source:

headerCaption

Source:

headerCaption

Source:

headings

Source:

headings

Source:

headings

Source:

headings

Source:

headings

Source:

headings

Source:

healRateLabel

Source:

health

Source:

healthLabel

Source:

health_max

Source:

health_min

Source:

height

Source:

height

Source:

help

Source:

hidden

Source:

hidden

Source:

hidden

Source:

hideInSummary

Source:

hideInSummary

Source:

hitpoints

Source:

hitpoints

Source:

hitpoints

Source:

hitpoints

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

horizontal

Source:

hostJID

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkey

Source:

hotkeyName

Source:

hotkey_civinfo

Source:

hotkey_civinfo

Source:

hotkey_structree

Source:

hotkey_structree

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icon

Source:

icons

Source:

id

Source:

id

Source:

id

Source:

id

Source:

id

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

identifier

Source:

idleClasses

Source:

inactiveString

Source:

inactiveString

Source:

info_icon

Source:

initAttribs

Source:

initAttribs

Source:

inputState

Source:

isAlly

Source:

isEnemy

Source:

isMutualAlly

Source:

isNeutral

Source:

isOnLoadingScreen

Source:

isUpgrading

Source:

isUpgrading

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

key

Source:

killed

Source:

killed

Source:

killed

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

label

Source:

lastAmount

Source:

lastIdleClasses

Source:

lastIdleUnit

Source:

lastPlayer

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

left

Source:

limit

Source:

limit

Source:

limit

Source:

limit

Source:

list

Source:

listHeader

Source:

listOfValues

Source:

loadSavedGame

Source:

loadSavedGame

Source:

loadSavedGame

Source:

local

Source:

locale

Source:

lock

Source:

locked

Source:

locked

Source:

loot

Source:

lost

Source:

lost

Source:

lost

Source:

lost

Source:

lost

Source:
Source:
Source:

map

Source:

map

Source:

mapCount

Source:

mapName

Source:

mapName

Source:

mapNames

Source:

mapSizes

Source:

mapType

Source:

mapType

Source:

mapType

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

max

Source:

maxCapturePoints

Source:

maxHitpoints

Source:

maxHitpoints

Source:

maxHitpoints

Source:

maxHitpoints

Source:

maxPage

Source:

maxRange

Source:

maximum

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

message

Source:

militaryScore

Source:

milliseconds

Source:

milliseconds

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

min

Source:

minRange

Source:

minimum

Source:

(constant) minimumPasswordLength

Common definitions for the lobby password.
Source:

mismatchType

Source:

mode

Source:

mods

Source:

months

Source:

mouseIsOverObject

Source:

mouseX

Source:

mouseY

Source:

movementType

Source:

movementType

Source:

movementType

Source:

multiplayerGameType

Source:

multiplayerGameType

Source:

multiplayerGameType

Source:

multiplayerGameType

Source:

multiplayerGameType

Source:

multiplier

Source:

musicType

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

name

Source:

neededSlots

Source:

newAssignments

Source:

newrole

Source:

newrole

Source:

newrole

Source:

newrole

Source:

nick

Source:

nick

Source:

nick

Source:

nick

Source:

nick

Source:

nick

Source:

nick

Source:

nick

Source:

num

Source:

number

Source:

number

Source:

number

Source:

number

Source:

number

Source:

numberGarrisoned

Source:

numberOfLandTraders

Source:

numberOfPlayers

Source:

numberOfShipTraders

Source:

numberTrading

Source:

numberTrading

Source:

numeric

Source:

o

Source:

obj1[undefined]

Source:

obj[undefined]

Source:

obj[undefined]

Source:

occupied

Source:

occupied

Source:

offline

Source:

oldrole

Source:

oldrole

Source:

onPress

Source:

onPress

Source:

onPress

Source:

openingGarrisonedString

Source:

openingTradingString

Source:

openingTradingString

Source:

order

Source:

orderValue

Source:

orderValue

Source:

owner

Source:

owner

Source:

owner

Source:

owner

Source:

pack

Source:

pack

Source:

packed

Source:

packed

Source:

packed

Source:

packed

Source:

packing

Source:

packing

Source:

packing

Source:

packing

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

page

Source:

parameter

Source:

parameters

Source:

parameters

Source:

parameters[undefined]

Source:

pendingSteps

Source:

percent

Source:

percent

Source:

percent

Source:

percent

Source:

percent

Source:

percentage

Source:

percentage

Source:

phaseName

Source:

phaseName

Source:

phaseState

Source:

placementSupport

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player

Source:

player2

Source:

player2

Source:

playerAssignments

Source:

playerDescriptions

Source:

playerDescriptions

Source:

playerListing

Source:

playerName

Source:

playerName

Source:

playerNames

Source:

playerStates

Source:

playername

Source:

playername

Source:

playername

Source:

playername

Source:

playername

Source:

players

Source:

players

Source:

players

Source:

players

Source:

popCaps

Source:

population

Source:

population

Source:

populationCapacity

Source:

populationCapacityType

Source:

position

Source:

position

Source:

position

Source:

position

Source:

position

Source:

position

Source:

position

Source:

position

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

possible

Source:

preSelectedAction

Source:

prevHotkey

Source:

previousAmounts

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

primaryName

Source:

producingEnt

Source:

(constant) projectInformation

IMPORTANT: Remember to update session/top_panel/BuildLabel.xml in sync with this.
Source:

(constant) projectInformation

Source:

projectileCount

Source:

projectileLabel

Source:

projectileName

Source:

projectileString

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

pushFront

Source:

quantity

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queued

Source:

queuedItem

Source:

r

Source:

r

Source:

r

Source:

range

Source:

range

Source:

range

Source:

rangeLabel

Source:

rangeUnit

Source:

rank

Source:

rate

Source:

rate

Source:

rate

Source:

rate

Source:

rating

Source:

rating

Source:

rating

Source:

rating

Source:

rating

Source:

rbottom

Source:

rbottom

Source:

rbottom

Source:

reason

Source:

reason

Source:

received

Source:

received

Source:

relativeRange

Source:

remainderBatch

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

report[undefined]

Source:

reqs

Source:

required

Source:

requiredCompatibleVersion

Source:

requirements

Source:

requirements

Source:

requirements

Source:

requirements

Source:

requirements

Source:

researchFacilityId

Source:

researchFacilityId

Source:

resistancePercentage

Source:

resistancePercentage

Source:

resistancePercentage

Source:

resistancePercentage

Source:

resource

Source:

resourceAmount

Source:

resourceFirstWord

Source:

resourceGained

Source:

resourceGiven

Source:

resourceIcon

Source:

resourceIcon

Source:

resourceIcon

Source:

resourceIcon

Source:

resourceIcon

Source:

resourceType

Source:

resourceType

Source:

resourceWithinSentence

Source:

resources

Source:

resources

Source:

reward

Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:
Source:

rleft

Source:

rleft

Source:

rleft

Source:

rleft

Source:

rolechangemessage

Source:

route

Source:

rright

Source:

rright

Source:

rright

Source:

rright

Source:

rright

Source:

rtop

Source:

rtop

Source:

runningWidths[undefined]

Source:

savedGameData

Source:

second

Source:

second

Source:

second

Source:

second

Source:

second

Source:

second

Source:

second

Source:

secondaryName

Source:

secondaryName

Source:

secondaryName

Source:

secondaryName

Source:

secondaryName

Source:

secondaryName

Source:

seconds

Source:

seconds

Source:

selected

Source:

selected

Source:

selected

Source:

selection

Source:

sell

Source:

sent

Source:

sent

Source:

serverMismatch

Source:

serverMismatch

Source:

setting

Source:

settings

Source:

settings

Source:

settings

Source:

shared

Source:

showAllStatusBars

Source:

showExperience

Source:

showExperience

Source:

showRank

Source:

showRank

Source:

showSplashScreen

Source:

sim

Source:

size

Source:

size

Source:

size

Source:

size

Source:

size

Source:

size

Source:

snapEntities

Source:

snapToEdges

Source:

snapToEdges

Source:

snapToEdges

Source:

sold

Source:

source

Source:

source

Source:

sourcePlayer

Source:

sourcePlayer

Source:

speed

Source:

speed

Source:

speed

Source:

speeds

Source:

splash

Source:

splashScreenHandler

Source:

splashShape

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

sprite

Source:

stackability

Source:

stackability

Source:

stance

Source:

start

Source:

startingResourcesTitle

Source:

statValue

Source:

statValue

Source:

state

Source:

state

Source:

state

Source:

status

Source:

status

Source:

status

Source:

statusEffects

Source:

statusInfo

Source:

statusInfo

Source:

statusName

Source:

statusName

Source:

structures

Source:

structures

Source:
Source:
Source:
Source:
Source:

succeeded

Source:

succeeded

Source:

summarySelection

Source:

tabCategorySelected

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

target

Source:

targetClasses

Source:

targetClasses

Source:

targetClasses

Source:

targetClasses

Source:

targetIsDomesticAnimal

Source:

targetPlayer

Source:

targetPlayer

Source:

targetPositions

Source:

targets

Source:

targets

Source:

team

Source:

team

Source:

team

Source:

team

Source:

teamCounterFn

Source:

teamCounterFn

Source:

teamCounterFn

Source:

teamCounterFn

Source:

teamCounterFn

Source:

teamCounterFn

Source:

teamLocked

Source:

teams

Source:

teamsLocked

Source:

tech

Source:

tech

Source:

tech

Source:

techCostMultiplier

Source:

techCostMultiplier

Source:

techCostMultiplier

Source:

technology

Source:

techs

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

template

Source:

templateName

Source:

templateName

Source:

templateName

Source:

templateName

Source:

templateName

Source:

templates

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

text

Source:

texts

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

tiling

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

time

Source:

tipFilesData

Source:

tipImageIndex

Source:

tipIndex

Source:

tipScrolling

Source:

tipScrolling

Source:

title

Source:

title

Source:

titleHeadings

Source:

titleHeadings

Source:

titleHeadings

Source:

titleHeadings

Source:

titleHeadings

Source:

titleHeadings

Source:

to

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

tooltip

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

top

Source:

totalQueueTime

Source:

totalScore

Source:

trader

Source:

trader

Source:

tradingGoods

Source:

trained

Source:

trained

Source:

trained

Source:

translate

Source:

translateMessage

Source:

translateParameters

Source:

translateParameters

Source:

turn

Source:

turn

Source:

turretsLimit

Source:

tutorial

Source:

tutorial

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

type

Source:

types

Source:

types

Source:

unit

Source:

unit

Source:

unit

Source:

unit

Source:

unit

Source:

unitFilters

Source:

url

Source:

used

Source:

used

Source:

used

Source:

user

Source:

user

Source:

userDesc

Source:

userTag

Source:

username

Source:

username

Source:

users

Source:

val

Source:

val

Source:

val

Source:

val

Source:

val

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

value

Source:

version

Source:

version

Source:

version

Source:

viewedPlayer

Source:

viewedPlayer

Source:

wallSet

Source:

wallSet

Source:

warning

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

width

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

x

Source:

y

Source:

y

Source:

y

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

yStart

Source:

you

Source:

you

Source:

you

Source:

you

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

z

Source:

Methods

AuraTemplateExists()

Source:

CheckIfExists()

Source:

CheckIfExists()

Source:

CheckIfExists()

Source:

DrawTargetMarker()

Source:

GetData()

Source:

GetEntityState()

Get the current state of a given entity. The data is pulled from the simulation. The state is null, if the ID is undefined, invalid or no entity with the ID exists (anymore).
Source:

GetMultipleEntityStates()

Source:

GetSimState()

Source:

GetTechnologyData()

Source:

GetTemplateData()

This is needed because getEntityCostTooltip in tooltip.js needs to get the template data of the different wallSet pieces. In the session this function does some caching, but here we do that in the TemplateLoader class already.
Source:

GetTemplateData(templateName, player)

Returns template data calling GetTemplateData defined in GuiInterface.js and deepfreezing returned object.
Parameters:
Name Type Description
templateName string Data of this template will be returned.
player number | undefined Modifications of this player will be applied to the template. If undefined, id of player calling this method will be used.
Source:

ObservableMixin()

Observable is a self-proxy to enable opt-in reactive programming. Properties of an Observable can be watched, and whenever they are changed a callback will be fired.
Source:

OnTrainMouseWheel()

Source:

ProfilableMixin()

This is an auto-proxying class that adds profiling to all method. Can be quite useful to track where time is spent in the GUI. Usage: Just add "extens Profilable" to your class and call super() in the constructor as appropriate. Give your class a name if you want the ouput to be usable. It is recommended to only use this class when actually working on profiling, or the profiler2 graph will be very cluttered.
Source:

TechnologyTemplateExists()

This would ideally be an Engine method. Or part of globalscripts. Either would be better than here.
Source:

_playSound()

Source:

_setHighlight()

Source:

_setMotionOverlay()

Source:

_setStatusBars()

Source:

_trigger()

Source:

_watch()

Wrap object in a proxy, that calls callback anytime a property is set, passing the property name as parameter. Note that this doesn't modify any variable that pointer towards object, so this is _not_ equivalent to replacing the target object with a proxy.
Source:

abbreviateLargeNumbers(number)

Parameters:
Name Type Description
number number A number to shorten using SI prefix.
Source:

addChatMessage()

Source:

addNetworkWarning(msg)

Remember this warning for a few seconds. Overwrite previous warnings for this user.
Parameters:
Name Type Description
msg GUI message sent by NetServer or NetClient
Source:

addResearchToQueue()

Called by GUI when user clicks a research button.
Source:

addTrainingByPosition(position)

Add the unit shown at position to the training queue for all entities in the selection.
Parameters:
Name Type Description
position number The position of the template to train.
Source:

addTrainingToQueue()

Source:

adjustTabDividers()

Source:

allowedPlayersCheck(entStates, validPlayers) → {boolean}

Checks whether the entities have the right diplomatic status with respect to the currently active player. Also "Observer" can be used.
Parameters:
Name Type Description
entStates Array.<Object> An array containing the entity states to check.
validPlayers Array.<string> An array containing the diplomatic statuses.
Source:
Returns:
- Whether the currently active player is allowed.
Type
boolean

applySelectedLocale()

Source:

applySelectedLocale()

Source:

applyStatusDetails()

Source:

attackEffectsDetails()

Source:

attackRateDetails()

Source:

autoCompleteText()

Source:

autoDetectLocale()

Source:

backToWork()

Source:

bodyFont()

Source:

buildListText()

Creates text in the following format: Header: value1, value2, ..., valueN This function is only used below, nowhere else.
Source:

calculateBarterEfficiency()

Source:

calculateBribes()

Source:

calculateBuildings()

Source:

calculateBuildingsTeam()

Source:

calculateCivilianization()

Source:

calculateEconomyScore()

Keep this in sync with the score computation in session/ for the lobby rating reports!
Source:

calculateExplorationScore()

Keep this in sync with the score computation in session/ for the lobby rating reports!
Source:

calculateKillDeathRatio()

Source:

calculateLivestockTrained()

Source:

calculateLootCollected()

Source:

calculateMapExploration()

Source:

calculateMapFinalControl()

Source:

calculateMapPeakControl()

Source:

calculateMarketTeam()

Source:

calculateMilitaryScore()

Keep this in sync with the score computation in session/ for the lobby rating reports!
Source:

calculateMiscellaneousTeam()

Source:

calculatePercent()

Source:

calculatePopulationCount()

Source:

calculateRatio()

Source:

calculateResourceExchanged()

Source:

calculateResources()

Source:

calculateResourcesTeam()

Source:

calculateScoreTeam()

Source:

calculateScoreTotal()

Keep this in sync with the score computation in session/ for the lobby rating reports!
Source:

calculateTeamCounterDataHelper()

Source:

calculateTotalResources()

Source:

calculateTradeIncome()

Source:

calculateTreasureCollected()

Source:

calculateTributeSent()

Source:

calculateUnits()

Source:

calculateUnitsTeam()

Source:

calculateUnitsWithCaptured()

Source:

calculateVegetarianRatio()

Source:

callback()

Source:

callback()

Source:

callback()

Source:

callback()

Source:

canMoveSelectionIntoFormation()

Source:

(async) cancelButton()

Source:

cancelHandler()

Source:

cancelOr()

When the cancel button is pressed the returned promise will resolve to `cancelTag`. When the passed in promise resolves the returned promise will resolve to that result.
Source:

cancelPackUnit()

Source:

cancelSetup()

Source:

cancelUpgradeEntity()

Source:

captureDetails()

Source:

checkPassword()

Source:

checkPasswordConfirmation()

Source:

checkUsername()

Source:

clampColorValue(value) → {number}

Ensure `value` is between 0 and 1.
Parameters:
Name Type Description
value number
Source:
Returns:
Type
number

clearChatMessages()

Source:

clearSelection()

Source:

clearTimeout()

deletes a timer id: of the timer
Source:

closeOpenDialogs()

Source:

colorDistance(color1, color2) → {number}

Computes the euclidian distance between the two colors. The smaller the return value, the close the colors. Zero if identical.
Parameters:
Name Type Description
color1 Object
color2 Object
Source:
Returns:
Type
number

colorFade_attackUnit()

Source:

colorizeAutocompleteHotkey()

The autocomplete hotkey is hardcoded in SDLK_TAB of CInput.cpp, as we don't want hotkeys interfering with typing text.
Source:

colorizeHotkey()

Source:

colorizePlayernameByGUID()

Source:

colorizePlayernameByID()

This function is used for AIs, whose names don't exist in g_PlayerAssignments.
Source:

colorizePlayernameHelper()

Source:

colorizePlayernameParameters()

Insert the colorized playername to chat messages sent by the AI and time notifications.
Source:

commaFont()

Source:

confirmSetup()

Source:

constructPlayersWithColor()

Source:

continueButton()

Source:

continueButton()

Source:

continueButton()

Source:

controlsPlayer()

Returns true if the current user can issue commands for that player.
Source:

createReplaySelectionData()

Creates the data for restoring selection, order and filters when returning to the replay menu.
Source:

damageDetails()

Source:

(async) deleteReplayButtonPressed()

Callback.
Source:

determineAction()

Determine the context-sensitive action that should be performed when the mouse is at (x,y)
Source:

displayGamestateNotifications()

Update the overlay with the most recent network warning of each client.
Source:

displayMultiple()

Source:

displayOptions()

Sets up labels and controls of all options of the currently selected category.
Source:

displayReplayCompatibilityError(replay)

Shows an error message stating why the replay is not compatible.
Parameters:
Name Type Description
replay Object
Source:

displayReplayDetails()

Shows preview image, description and player text in the right panel.
Source:

displayReplayList()

Filter g_Replays, fill the GUI list with that data and show the description of the current replay.
Source:

displaySingle()

Source:

distributeAttackOrders()

Source:

doAction()

Source:

enableButtons()

Enable exactly the buttons whose dependencies are met.
Source:

enabled()

Source:

enabled()

Source:

enabled()

Source:

endOfAlert()

Source:

escapeQuotation()

Prepends a backslash to all quotation marks.
Source:

escapeText()

Escape tag start and escape characters, so users cannot use special formatting.
Source:

executeNetworkCommand(input) → {boolean}

Execute a command locally. Requires addChatMessage.
Parameters:
Name Type Description
input string
Source:
Returns:
whether a command was executed
Type
boolean

fadeColorTick(name)

Changes the color on tick.
Parameters:
Name Type Description
name string name of the object which color should be faded
Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filter()

Source:

filterReplay() → {bool}

Decides whether the replay should be listed.
Source:
Returns:
- true if replay should be visible
Type
bool

filterReplays()

Initializes g_ReplaysFiltered with replays that are not filtered out and sort it.
Source:

findGuidForPlayerID()

Source:

findIdleUnit()

Source:

fireConfigChangeHandlers(changes)

Parameters:
Name Type Description
changes a Set of config names
Source:

flushTrainingBatch()

Source:

focusAttack()

Source:

formatBatchTrainingString()

Format batch training string for the tooltip Examples: buildingsCountToTrainFullBatch = 1, fullBatchSize = 5, remainderBatch = 0: "Shift-click to train 5" buildingsCountToTrainFullBatch = 2, fullBatchSize = 5, remainderBatch = 0: "Shift-click to train 10 (2*5)" buildingsCountToTrainFullBatch = 1, fullBatchSize = 15, remainderBatch = 12: "Shift-click to train 27 (15 + 12)"
Source:

formatHotkeyCombination()

Source:

formatHotkeyCombinations()

Source:
Returns:
a sorted array when @param translateScancodes is false, a formatted string otherwise.

formatLimitString()

Format entity count/limit message for the tooltip
Source:

formatMatchLimitString(matchEntLimit, matchEntCount, type) → {string}

Format template match count/limit message for the tooltip.
Parameters:
Name Type Description
matchEntLimit number The limit of the entity.
matchEntCount number The count of the entity.
type string The type of the action (i.e. "build" or "training").
Source:
Returns:
- The string to show the user with information regarding the limit of this template.
Type
string

formatPlayerInfo(playerDataArray, playerStates) → {string}

Returns a formatted string describing the player assignments. Needs g_CivData to translate!
Parameters:
Name Type Description
playerDataArray Object As known from game setup and sim state.
playerStates Array.<string> | false One of "won", "defeated", "active" for each player.
Source:
Returns:
Type
string

formatSummaryValue()

Source:

formatXmppAnnouncement()

Source:

get()

Source:

get()

Source:

get(input, list, keyopt)

Returns a new list filtered and sorted by the similarity with the input text Order of sorting: 1. Exact match 2. Exact lowercase match 3. Starting letters match and sorted alphabetically 4. By similarity score (lookahead match) 5. Entry is discarded if one of the previous don't apply
Parameters:
Name Type Attributes Description
input string text to seach for
list Array.<string> | Array.<object>
key string <optional>
text to use if the list is made up of objects
Source:

getActionInfo()

Source:

getAllBuildableEntities()

Source:

getAllBuildableEntitiesFromSelection()

Source:

getAllTrainableEntities()

Source:

getAllTrainableEntitiesFromSelection()

Source:

getAttackTooltip()

Source:

getAurasTooltip()

Source:

getBatchTrainingSize()

Source:

getBuildString()

Source:

getBuildText() → {string}

Source:
Returns:
List of the names of the buildings the selected unit can build.
Type
string

getBuildTimeTooltip()

Source:

getBuildingsSortedByQueueTime()

Returns the given production building selection sorted by their current queued training time, from lowest to highest. Invalid entities or entities without a valid production queue are filtered out.
Source:

getBuildingsWhichCanTrainEntity()

Source:

getBuiltByText()

The following functions in this file work on the same basis as those in gui/common/tooltips.js Note: Due to quirks in loading order, this file might not be loaded before ReferencePage.js. Do not put anything in here that you wish to access static'ly there.
Source:

getCaptureResistanceTooltip()

Source:

getColoredTypeTranslation()

Source:

getCommandInfo()

Source:

getConnectionFailReason()

Source:

getCostTypes()

Source:

getCurrentCaptureTooltip()

Source:

getCurrentHealthTooltip()

Source:

getDamageResistanceTooltip()

Source:

getDefaultBatchTrainingSize()

Source:

getDefaultGameName()

Source:

getDefaultPassword()

Source:

getDescriptionTooltip()

Technologies have a `description` attribute, and Auras have an `auraDescription` attribute, which becomes `description`. (For technologies, this happens in globalscripts.) (For auras, this happens either in the Auras component (for session gui) or reference/common/load.js (for Reference Suite gui))
Source:

getDisconnectReason()

Must be kept in sync with source/network/NetHost.h
Source:

getEncryptedPassword()

Source:

getEntityCostComponentsTooltipString()

Helper function for getEntityCostTooltip.
Source:

getEntityCostTooltip()

Returns the cost information to display in the specified entity's construction button tooltip.
Source:

getEntityLimitAndCount()

Source:

getEntityNames()

Source:

getEntityNamesFormatted()

Source:

getEntityOrHolder(ent) → {number}

Parameters:
Name Type Description
ent number The entity to get its ID for.
Source:
Returns:
- The entity ID of the entity or of its garrisonHolder.
Type
number

getEntityPrimaryNameFormatted()

Source:

getEntityTooltip()

Entity templates have a `Tooltip` tag in the Identity component. (The contents of which are copied to a `tooltip` attribute in globalscripts.) Technologies have a `tooltip` attribute.
Source:

getFocusOnLeftClickTooltip()

Source:

getFollowOnLeftClickTooltip()

Source:

getGameDescription()

Sets an additional map label, map preview image and describes the chosen game settings more closely. Requires g_VictoryConditions.
Source:

getGarrisonTooltip()

Source:

getGatherTooltip()

Source:

getHealerTooltip()

Source:

getHealthTooltip()

Source:

getHistoryTooltip()

Entity templates have a `History` tag in the Identity component. (The contents of which are copied to a `history` attribute in globalscripts.)
Source:

getHotloadData()

Source:

getHotloadData()

Source:

getHotloadData()

Source:

getHotloadData()

Source:

getInitColorFadeRGB()

Source:

getLocalizedResourceAmounts()

Format resource amounts to proper english and translate (for example: "200 food, 100 wood and 300 metal").
Source:

getLootTooltip()

Source:

getMaxDragDelta()

Source:

getMismatchMessage()

Source:

getNeededResourcesTooltip()

Returns a message with the amount of each resource needed to create an entity.
Source:

getNetworkWarnings()

Colorizes and concatenates all network warnings. Returns text and textWidth.
Source:

getNextPageOpenRequest()

Put together an open request for the next GUI page to show after closing the session. This could be, depending on the situation, the the summary screen, the main menu, the lobby, etc.
Source:

getNumberOfRightPanelButtons()

Source:

getPackingTooltip()

Source:

getPlayerValuesPerTeam()

Source:

getPopulationBonusTooltip()

Returns the population bonus information to display in the specified entity's construction button tooltip.
Source:

getPreferredEntities()

Source:

getProjectilesTooltip()

Source:

getRepairTimeTooltip()

Source:

getReplayDateTime()

Returns a human-readable version of the replay date.
Source:

getReplayDuration() → {string}

Returns a human-readable version of the time when the replay started.
Source:
Returns:
Type
string

getReplayMapName() → {string}

Returns the name of the map of the given replay.
Source:
Returns:
Type
string

getReplayMonth() → {string}

Returns the month of the given replay in the format "yyyy-MM".
Source:
Returns:
Type
string

getReplayPlayernames() → {string}

Returns a human-readable list of the playernames of that replay.
Source:
Returns:
Type
string

getRequestTimeOutMessage()

Source:

getRequirementsTooltip()

Source:

getResearchText() → {string}

Source:
Returns:
List of the names of the technologies the selected structure/unit can research.
Type
string

getResearchedByText()

Source:

getResistanceTooltip()

Source:

getResourceDropsiteTooltip()

Source:

getResourceSupplyTooltip()

Returns the resources this entity supplies in the specified entity's tooltip
Source:

getResourceTrickleTooltip()

Source:

getSavedGameData()

Source:

getScorePanelsData()

Source:

getSecondsString()

Source:

getSpeedTooltip()

Source:

getStanceDisplayName()

Source:

getStanceTooltip()

Source:

getStatusEffectDurationTooltip()

Source:

getStatusEffectStackabilityTooltip()

Source:

getStatusEffectsResistanceTooltip()

Source:

getStatusEffectsTooltip(applier)

Parameters:
Name Type Description
applier if true, return the tooltip for the Applier. If false, Receiver is returned.
Source:

getTargetableEntities()

Source:

getTemplateViewerOnClickTooltip()

Source:

getTemplateViewerOnRightClickTooltip()

Source:

getTotalQueueTime()

Calculates the total remaining production queue time of a building.
Source:

getTradingTooltip()

Returns a message with the details of the trade gain.
Source:

getTrainText() → {string}

Source:
Returns:
List of the names of the units the selected unit can train.
Type
string

getTrainedByText()

Source:

getTrainingStatus()

Returns the number of units that will be present in a batch if the user clicks the training button depending on the batch training modifier hotkey.
Source:

getTreasureTooltip(template) → {string}

Parameters:
Name Type Description
template Object The entity's template.
Source:
Returns:
- The resources this entity rewards to a collecter.
Type
string

getTurretsTooltip()

Source:

getUpgradeText() → {string}

Source:
Returns:
List of the names of the buildings/units the selected structure/unit can upgrade to.
Type
string

getUpkeepTooltip()

Source:

getUsernameList() → {string}

Get a colorized list of usernames sorted by player slot, observers last. Requires g_PlayerAssignments and colorizePlayernameByGUID.
Source:
Returns:
Type
string

getValidPort()

Source:

getVisibleEntityClassesFormatted()

Source:

getWallPieceTooltip()

Returns an array of strings for a set of wall pieces. If the pieces share resource type requirements, output will be of the form '10 to 30 Stone', otherwise output will be, e.g. '10 Stone, 20 Stone, 30 Stone'.
Source:

guiToRgbColor()

Source:

(async) handleAuthenticated()

Source:

handleFlare()

Source:

handleInputAfterGui()

Source:

handleInputBeforeGui()

Source:

(async) handleNetMessages()

Process every CNetMessage (see NetMessage.h, NetMessages.h) sent by the CNetServer. Saves the received object to mainlog.html.
Source:

handleNetStatusMessage()

Source:

handleNotifications()

Processes all pending notifications sent from the GUIInterface simulation component.
Source:

handlePlayerAssignmentsMessage()

Source:

handlePlayersFinished()

Source:

handleUnitAction()

Source:

hasClass()

Source:

hasSameRestrictionCategory()

Source:

headerFont()

Source:

hideRemaining()

Hide all children after a certain index
Source:

hideUnitCommands()

Source:

horizontallySpaceObjects(margin)

Horizontally spaces objects within a parent
Parameters:
Name Type Default Description
margin 0 The gap, in px, between the objects
Source:

hotkeySort()

Source:

hslToRgb(h, s, l) → {Array}

Convert color value from HSL to RGB space.
Parameters:
Name Type Description
h number hueness
s number saturation
l number lightness
Source:
See:
Returns:
Type
Array

(async) init()

Source:

(async) init()

Source:

init()

This is a transient page, triggered at the end of a game session, to perform custom computations on the endgame data.
Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

(async) init()

Source:

init()

Source:

init()

Source:

(async) init()

Source:

(async) init()

Called after the XmppConnection succeeded and when returning from a game.
Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

(async) init()

Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

init()

Source:

init()

Initialize the dropdown containing all the available civs.
Source:

init(data)

Initialize the page.
Parameters:
Name Type Description
data Object Parameters passed from the code that calls this page into existence.
Source:

init()

Source:

init(data)

Page initialisation. May also eventually pre-draw/arrange objects.
Parameters:
Name Type Description
data Object Contains the civCode and the name of the template to display.
Properties
Name Type Attributes Description
templateName string
civ string <optional>
Source:

(async) init()

Initializes globals, loads replays and displays the list.
Source:

(async) init()

Source:

init()

Source:

(async) init()

Source:

init()

Source:

initBatchTrain()

Source:

initCommunityButton()

Source:

initDateFilter()

Allow to filter by month. Uses g_Replays.
Source:

initDisplayedNames()

Source:

initDurationFilter()

Allow to filter by game duration. Uses g_DurationFilterIntervals.
Source:

initFilters()

Reloads the selectable values in the filters. The filters depend on g_Settings and g_Replays (including its derivatives g_MapSizes, g_MapNames).
Source:

initGUIButtons()

Source:

initGUICharts()

Source:

initGUILabels()

Source:

initGUISummary()

Source:

initGUIWindow()

Sets the style and title of the page.
Source:

initHotkeyTooltips()

Source:

initLobbyTerms()

Source:

initMapNameFilter()

Allow to filter by mapname. Uses g_MapNames.
Source:

initMapSizeFilter()

Allow to filter by mapsize. Uses g_MapSizes.
Source:

initMusic()

Source:

initMusic()

Source:

initPlayerBoxPositions()

Source:

initPopCapFilter()

Allow to filter by population capacity.
Source:

initProjectInformation()

Source:

initRatedGamesFilter()

Source:

initRememberPassword()

Source:

initSelectionPanels()

Source:

initSingleplayerFilter()

Source:

initSummaryData()

Source:

initTeamData()

Source:

initUnitsAndBuildingsHotkeys()

Source:

initUserReport()

Source:

initUserReport()

Source:

initVictoryConditionFilter()

Source:

initializeMusic()

Source:

isAddressee()

Source:

isAddressee()

Source:

isAddressee()

Source:

isAddressee()

Source:

isAddressee()

Source:

isAttackMovePressed()

Source:

isColorFadeRunning(name) → {boolean}

Checks, if a color fade on that object is running.
Parameters:
Name Type Description
name string name of the object which color fade should be checked
Source:
Returns:
- true a running fade was found
Type
boolean

isCompleted()

Source:

isMutualAllyBuilding()

Source:

isPlayerObserver()

Returns true if the player with that ID is in observermode.
Source:

isReplayCompatible()

True if we can start the given replay with the currently loaded mods.
Source:

isSelectable()

Source:

isSelectable()

Source:

isSelectable()

Source:

isSelectable()

Source:

isSelectable()

Source:

isSnapToEdgesEnabled()

Source:

isUndeletable()

Keep in sync with Commands.js.
Source:

jumpCamera()

Source:

kickError()

Source:

kickObservers()

Source:

kickPlayer()

Source:

languageSelectionChanged()

Source:

layoutSelectionMultiple()

Source:

layoutSelectionSingle()

Source:

leaveTurretPoints()

Source:

loadAIBehaviors()

Source:

loadAIDescriptions() → {Array}

Loads the descriptions as defined in simulation/ai/.../data.json and loaded by ICmpAIManager.cpp.
Source:
Returns:
Type
Array

loadAIDifficulties() → {Array}

Hardcoded, as modding is not supported without major changes. Notice the AI code parses the difficulty level by the index, not by name.
Source:
Returns:
Type
Array

loadBiomes()

Source:

loadCivData()

Returns translated history and gameplay data of all civs, optionally including a mock gaia civ.
Source:

loadMapTypes()

Hardcoded, as modding is not supported without major changes.
Source:

loadPlayerDefaults() → {Array|undefined}

Loads the default player settings (like civs and colors).
Source:
Returns:
Type
Array | undefined

loadReplays(replaySelectionData, compareFiles)

Store the list of replays loaded in C++ in g_Replays. Check timestamp and compatibility and extract g_Playernames, g_MapNames, g_VictoryConditions. Restore selected filters and item.
Parameters:
Name Type Description
replaySelectionData Currently selected filters and item to be restored after the loading.
compareFiles If true, compares files briefly (which might be slow with optical harddrives), otherwise blindly trusts the replay cache.
Source:

loadSettingValuesFile(filename) → {Array|undefined}

Returns an array of objects reflecting all possible values for a given setting.
Parameters:
Name Type Description
filename string
Source:
See:
  • simulation/data/settings/
Returns:
Type
Array | undefined

loadSettingsValues() → {Object|undefined}

Loads and translates all values of all settings which can be configured by dropdowns in the game setup.
Source:
Returns:
Type
Object | undefined

loadVictoryConditions() → {Array|undefined}

Loads available victoryCondtions from json files.
Source:
Returns:
Type
Array | undefined

lockGate()

Source:

(async) loginButton()

Source:

makePrimarySelectionGroup()

Called by unit selection buttons.
Source:

markLevelComplete()

Various utilities.
Source:

meetsRequirements()

Source:

multiplayerName()

Source:

multiplyEntityCosts()

Multiplies the costs for a template by a given batch size.
Source:

objectionFont()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

offset()

Source:

onClientJoin()

Source:

onClientLeave()

Source:

(async) onLoggedin()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

onPress()

Source:

(async) onRegistered()

Source:

onSelectionChange()

Source:

onSimulationUpdate()

Source:

onTick()

Source:

onTick()

Source:

onTick()

Other message types (such as gamelists) may be received in case of the current player being logged in and logging in in a second program instance with the same account name. Therefore messages without handlers are ignored without reporting them here.
Source:

onTick()

Called every frame.
Source:

onUsernameEdit()

Source:

onUsernameEdit()

Source:

(async) openAdvancedMenu()

Source:

openDialog()

Custom dialog opening, usable by trigger maps.
Source:

ownsEntity()

Source:

packUnit()

Source:

parseHelper()

Source:

performCommand()

Source:

performFormation()

Source:

performGroup()

Source:

performStance()

Source:

placeTabButtons(categoriesData, horizontal, buttonSize, spacing, onPress, onSelect)

Create tab buttons.
Parameters:
Name Type Description
categoriesData Array Arrays of objects containing for every tab a (translated) label and tooltip.
horizontal boolean Have the tabs horizontally or vertically aligned.
buttonSize number Size of a button in the specified direction.
spacing number Distance between two buttons in the specified direction.
onPress function Function to be executed when a button is pressed, it gets the new category index passed.
onSelect function Function to be executed whenever the selection changes (so also for scrolling), it gets the new category index passed.
Source:

playerCheck()

Source:

playerDataToStringifiedTeamList()

Merge players by team to remove duplicate Team entries, thus reducing the packet size of the lobby report.
Source:

(async) pollAndHandleNetworkClient()

Source:

popOneFromSelection()

Source:

positionUnitsFreehandSelectionMouseMove()

Source:

positionUnitsFreehandSelectionMouseUp()

Source:

prepareForDropdown(settingValues) → {Object|undefined}

Creates an object with all values of that property of the given setting and finds the index of the default value. This allows easy copying of setting values to dropdown lists.
Parameters:
Name Type Description
settingValues Array
Source:
Returns:
Type
Object | undefined

raiseAlert()

Source:

rangeDetails()

Source:

reallyShowReplaySummary()

Source:

reallyStartVisualReplay(replayDirectory)

Attempts the visual replay, regardless of the compatibility.
Parameters:
Name Type Description
replayDirectory string
Source:

recalculateStatusBarDisplay(remove)

Toggles the display of status bars for all of the player's entities.
Parameters:
Name Type Default Description
remove boolean false Whether to hide all previously shown status bars.
Source:

(async) registerButton()

Source:

registerCeasefireEndedHandler()

Source:

registerClientsLoadingHandler()

Source:

registerConfigChangeHandler()

Source:

registerEntitySelectionChangeHandler()

Source:

registerGlobalGuiPageHotkeys()

Registers global hotkeys for opening GUI pages. Each hotkey opens a child page following the naming convention: page_${hotkey}.xml
Source:

registerHotkeyChangeHandler()

Source:

registerNetworkOutOfSyncHandler()

Source:

registerNetworkStatusChangeHandler()

Source:

registerPlayerAssignmentsChangeHandler()

Source:

registerPlayersFinishedHandler()

Source:

registerPlayersInitHandler()

Source:

registerSimulationUpdateHandler()

Source:

reloadCache()

Source:

removeDupes()

Source:

removeFromProductionQueue()

Called by GUI when user clicks a production queue item.
Source:

removeFromSelectionGroup()

Source:

removeGuard()

Source:

removeStatusBarDisplay()

Source:

renderAndPlayFlare()

Source:

replayHasCompatibleEngineVersion()

True if we can start the given replay with the currently loaded mods.
Source:

reportConnectionFail()

Source:

(async) reportConnectionRequestTimeOut()

Source:

reportDisconnect(message, wasConnected)

Show the disconnect reason in a message box.
Parameters:
Name Type Description
message Object
wasConnected boolean
Source:

reportMismatchingSoftwareVersions()

Source:

resetGeneralPanel()

Source:

resetIdleUnit()

Source:

resetTemplates()

Source:

resistanceLevelToPercentageString()

Converts an resistance level into the actual reduction percentage.
Source:

resizeDropdown()

Source:

resizeGUIObjectToCaption(object, align, margin)

Change the width of a GUIObject to make the caption fits nicely.
Parameters:
Name Type Description
object Object The GUIObject to consider.
align Object Directions to change the side either "left" or "right" for horizontal and "top" or "bottom" for vertical.
margin Object Margins to be added to the width and height (can be negative).
Source:

resourceIcon()

Source:

resourceNameFirstWord()

Source:

resourceNameWithinSentence()

Source:

resourcesToAlphaMask()

Returns a "color:255 0 0 Alpha" string based on how many resources are needed.
Source:

restartColorFade(name)

Restarts a color fade using the parameters stored in g_ColorFade.
Parameters:
Name Type Description
name string Name of the object whose color should be faded.
Source:

restoreSavedGameData()

Source:

resumeGame()

Source:

revertChange()

Source:

revertChanges()

Source:

rgbToGuiColor(color, alpha) → {string}

Concatenate integer color values to a string (for use in GUI objects)
Parameters:
Name Type Description
color Object
alpha number
Source:
Returns:
Type
string

rgbToHsl(r, g, b) → {Array}

Convert color value from RGB to HSL space.
Parameters:
Name Type Description
r number red
g number green
b number blue
Source:
See:
Returns:
Type
Array

sameColor(color1, color2) → {boolean}

True if the colors are identical.
Parameters:
Name Type Description
color1 Object
color2 Object
Source:
Returns:
Type
boolean

sanitizeInitAttributes()

We may encounter malformed replays.
Source:

(async) saveChanges()

Source:

saveCredentials()

Source:

scoreText()

The lower the score the better the match.
Source:

selectNextTab(direction)

Show next/previous panel.
Parameters:
Name Type Description
direction +1/-1 for forward/backward.
Source:

selectPanel()

Source:

selectPanelGUI()

Source:

sendDialogAnswer()

Custom dialog response handling, usable by trigger maps.
Source:

set()

Source:

set()

Source:

setCameraFollow()

Focus the camera on the entity and follow if it's a unit. If that's not possible, stop any current follow.
Source:

(async) setDefaults()

Source:

setFeedback()

Source:

setJumpCamera()

Source:

setNewTimerFunction()

alters an function call id: of the timer func: function to call
Source:

setOutcomeIcon()

Sets the win/defeat icon to indicate current player's state.
Source:

setPanelObjectPosition()

Set the position of a panel object according to the index, from left to right, from top to bottom. Will wrap around to subsequent rows if the index is larger than rowLength.
Source:

setTimeout()

Set a timeout to call func() after 'delay' msecs. func: function to call delay: delay in ms Returns an id that can be passed to clearTimeout.
Source:

setUserReportEnabled()

Source:

setupUnitPanel(guiName, unitEntStates, playerState)

Helper function for updateUnitCommands; sets up "unit panels" (i.e. panels with rows of icons) for the currently selected unit.
Parameters:
Name Type Description
guiName Short identifier string of this panel. See g_SelectionPanels.
unitEntStates Entity states of the selected units
playerState Player state
Source:

(async) shouldClosePage()

Asks the user if this page really should be closed.
Source:

showReplaySummary()

Opens the summary screen of the given replay, if its data was found in that directory, , or shows an error message in case of incompatibility.
Source:

(async) showTemplateDetails(civCodeopt)

Pauses game and opens the template details viewer for a selected entity or technology. Technologies don't have a set civ, so we pass along the native civ of the template of the entity that's researching it.
Parameters:
Name Type Attributes Description
civCode string <optional>
The template name of the entity that researches the selected technology.
Source:

singleplayerName()

Source:

smoothColorFadeRestart_attackUnit()

Source:

sort()

Source:

sortEntitiesAlongLine(entities, lineStart, lineEnd, sortByDirection) → {Array.<number>}

Sorts entity IDs by their projection onto a line's direction or perpendicular axis.
Parameters:
Name Type Default Description
entities Array.<number> Array of entity IDs.
lineStart Vector2D Start point of the reference line.
lineEnd Vector2D End point of the reference line.
sortByDirection boolean false If true, sort by parallel projection (along line); If false, sort by perpendicular distance (default).
Source:
Returns:
Sorted entity IDs.
Type
Array.<number>

sortEntitiesForEngagement(attackers, targets) → {Object}

Sorts attackers and targets for left-to-right engagement across the battle line. Entities are sorted by their perpendicular distance to the line connecting the two army centers, creating natural pairings across the battle front.
Parameters:
Name Type Description
attackers Array.<number> Array of attacking entity IDs.
targets Array.<number> Array of target entity IDs.
Source:
Returns:
{ attackers: number[], targets: number[] } - Both arrays sorted along the same shared axis so corresponding indices pair up for realistic line engagement.
Type
Object

sortGUIDsByPlayerID()

Sort GUIDs of connected users sorted by playerindex, observers last. Requires g_PlayerAssignments.
Source:

sortNameIgnoreCase()

Source:

soundNotification(type)

Manage acoustic GUI notifications.
Parameters:
Name Type Description
type string Notification type.
Source:

splashDetails()

Source:

splitRatingFromNick()

Returns the nickname without the lobby rating.
Source:

startBuildingPlacement(buildTemplate)

Called by GUI when user clicks construction button.
Parameters:
Name Type Description
buildTemplate string Template name of the entity the user wants to build.
Source:

startColorFade(name, tickInterval, duration, fun_colorTransform, restartableopt, fun_smoothRestartopt)

Starts fading a color of a GUI object using the sprite argument.
Parameters:
Name Type Attributes Default Description
name string name of the object which color should be faded
tickInterval number interval in ms when the next color change should be made
duration number maximum duration of the complete fade (if 0 it runs until it is stopped)
fun_colorTransform function function which transform the colors
restartable boolean <optional>
true if false, the fade can not be restarted; default: true
fun_smoothRestart function <optional>
false a function, which returns a smooth tick counter, if the fade should be started; arguments: [var data]; must return false, if smooth restart was not possible and true, if it was ok
Source:

startConnectionStatus()

Source:

startHost()

Source:

startJoin()

Connect via direct IP (used by the 'simple' MP screen)
Source:

startJoinFromLobby()

Connect via the lobby.
Source:

startReplay()

Source:

startReplayHandler()

Starts the selected visual replay, or shows an error message in case of incompatibility.
Source:

stopColorFade(name, hideOverlay) → {boolean}

Stops fading a color.
Parameters:
Name Type Default Description
name string name of the object which color fade should be stopped
hideOverlay boolean true hides the overlay, if true [default: true]
Source:
Returns:
true a running fade was stopped
Type
boolean

stopUnits()

Source:

stringifiedTeamListToPlayerData()

Source:

summaryAddObject(obj1, obj2)

Add two objects property-wise and writes the result to obj1. So summaryAddObject([1, 2], [7, 42]) will result in [8, 44] and summaryAddObject({ "f": 3, "o", 5 }, { "f": -1, "o", 42 }) will result in { "f": 2, "o", 47 }.
Parameters:
Name Type Description
obj1 Object First summand object. This will be set to the sum of both.
obj2 Object Second summand object.
Source:

summaryArraySum(array)

The sum of all elements of an array. So summaryArraySum([1, 2]) will be 3 and summaryArraySum([{ "f": 3, "o", 5 }, { "f": -1, "o", 42 }]) will be { "f": 2, "o", 47 }.
Parameters:
Name Type Description
array Array The array to sum up.
Source:
Returns:
the sum of all elements.

switchSetupPage()

Source:

toPascalCase()

Converts underscore-separated identifiers to PascalCase class names for selecting entities by identity class.
Source:

toggleConfigBool()

Inverts the given configuration boolean and returns the current state. For example "silhouettes".
Source:

toggleGUI()

Source:

(async) toggleRememberPassword()

Source:

tradingGainString()

Source:

translateAIBehavior(aiBehavior)

Returns title or placeholder.
Parameters:
Name Type Description
aiBehavior string for example "defensive"
Source:

translateAIDifficulty(index)

Returns title or placeholder.
Parameters:
Name Type Description
index number index of AIDifficulties
Source:

translateAIName(aiName)

Returns title or placeholder.
Parameters:
Name Type Description
aiName string for example "petra"
Source:

translateAISettings()

Source:

translateMapSize(mapSize) → {string}

Returns title or placeholder "Default".
Parameters:
Name Type Description
mapSize number tilecount
Source:
Returns:
Type
string

translateMapType(mapType) → {string}

Returns title or placeholder.
Parameters:
Name Type Description
mapType string for example "skirmish"
Source:
Returns:
Type
string

translatePopulationCapacity(popCap, popCapType) → {string}

Returns title or placeholder.
Parameters:
Name Type Description
popCap number
popCapType string "player", "team", or "world"
Source:
Returns:
Type
string

translateVictoryCondition(victoryConditionName) → {string}

Returns title or placeholder.
Parameters:
Name Type Description
victoryConditionName string For example "conquest".
Source:
Returns:
Type
string

trigger()

Source:

triggerFlareAction()

Source:

tryAutoComplete()

Source:

tryPlaceBuilding()

Source:

tryPlaceWall()

Source:

tryStartBuildingPlacementByBuildingId()

Checks whether the given structure is buildable by g_ViewedPlayer, including civ restrictions, technology requirements and available resources. If all requirements are met, it initiates the building placement.
Source:

turnAutoQueueOff()

Source:

turnAutoQueueOn()

Source:

unescapeText()

Source:

unitFont()

Source:

unloadAll()

Source:

unloadAllTurrets()

Source:

unloadTemplate()

Source:

unregisterEntitySelectionChangeHandler()

Source:

unregisterSimulationUpdateHandler()

Source:

updateAdditionalHighlight()

Source:

updateBandbox() → {array}

Updates the bandbox object with new positions and visibility.
Source:
Returns:
The coordinates of the vertices of the bandbox.
Type
array

updateBuildingPlacementPreview()

Source:

updateCategoryDropdown()

Source:

updateChart()

Source:

updateChartColorAndLegend()

Source:

updateCountersPlayer()

Source:

updateCountersTeam()

Source:

updateCursorAndTooltip()

Source:

updateDefaultBatchSize()

Source:

updateDisplayedNames()

Updates the primary/secondary names in the simulation and GUI.
Source:

updateFeedback()

Source:

updateFeedback()

Source:

updateGUIObjects()

Source:

updateGarrisonHealthBar()

Source:

updateGeneralPanelCounter()

Source:

updateGeneralPanelHeadings()

Source:

updateGeneralPanelTeams()

Source:

updateGeneralPanelTitles()

Source:

updateGroups()

Source:

updatePanelData()

Source:

updatePlayerData()

Source:

updateResultingLocale()

Source:

updateSelectionDetails()

Source:

updateTimers()

If you want to use timers, then you must call this function regularly (e.g. in a Tick handler)
Source:

updateTypeDropdown()

Source:

updateUnitCommands(entStates, supplementalDetailsPanel, commandsPanel)

Updates the selection panels where buttons are supposed to depend on the context. Runs in the main session loop via updateSelectionDetails(). Delegates to setupUnitPanel to set up individual subpanels, appropriately activated depending on the selected unit's state.
Parameters:
Name Type Description
entStates Entity states of the selected units
supplementalDetailsPanel Reference to the "supplementalSelectionDetails" GUI Object
commandsPanel Reference to the "commandsPanel" GUI Object
Source:

updateUserReportButtons()

Source:

updateUserReportStatus()

Source:

updateUserReportStatus()

Source:

updateValueDropdown()

Source:

upgradeEntity()

Source:

(async) waitOnEvent()

Source:

watch()

Source: