Events.GameplaySetActivePlayer (Civ5 API)
This page is a part of the Lua and UI Reference (Civ5).
This function is a member of Events. This is a static method, invoke it with a dot. |
Usage
void Events.GameplaySetActivePlayer(PlayerID activePlayer, int prevActivePlayer)
Event Type
- Regular event: you can subscribe to it through
Events.GameplaySetActivePlayer.Add(<function handler>)
or invoke it directly throughEvents.GameplaySetActivePlayer(<arguments list>)
.
Parameters
activePlayer: No description available. prevActivePlayer: No description available.
Source code samples
Redundant occurences have been removed.
ActionInfoPanel.lua
UI/InGame/WorldView/ActionInfoPanel.lua
0454
|
Events.GameplaySetActivePlayer.Add( OnPlayerChangedEvent ); |
AdvisorCounselPopup.lua
UI/InGame/Popups/AdvisorCounselPopup.lua
0317
|
Events.GameplaySetActivePlayer.Add(Close); |
AnnexCityPopup.lua
UI/InGame/PopupsGeneric/AnnexCityPopup.lua
0061
|
Events.GameplaySetActivePlayer.Add(HideWindow); |
BarbarianCampPopup.lua
UI/InGame/Popups/BarbarianCampPopup.lua
0065
|
Events.GameplaySetActivePlayer.Add(OnCloseButtonClicked); |
ChooseFaithGreatPerson.lua (G&K)
DLC/Expansion/UI/InGame/Popups/ChooseFaithGreatPerson.lua
0188
|
Events.GameplaySetActivePlayer.Add(OnActivePlayerChanged); |
CityBannerManager.lua
UI/InGame/CityBannerManager.lua
1233
|
Events.GameplaySetActivePlayer.Add(OnCityBannerActivePlayerChanged); |
CityList.lua
UI/InGame/CityList.lua
0075
|
Events.GameplaySetActivePlayer.Add( OnChangeEvent ); |
CityView.lua
UI/InGame/CityView/CityView.lua
2412
|
Events.GameplaySetActivePlayer.Add(OnEventActivePlayerChanged); |
CivilopediaScreen.lua
UI/Civilopedia/CivilopediaScreen.lua
6455
|
Events.GameplaySetActivePlayer.Add(OnClose); |
Demographics.lua
UI/InGame/Popups/Demographics.lua
0540
|
Events.GameplaySetActivePlayer.Add(OnBack); |
DiploCorner.lua
UI/InGame/WorldView/DiploCorner.lua
0444
|
Events.GameplaySetActivePlayer.Add(OnDiploCornerActivePlayerChanged); |
DiploList.lua
UI/InGame/DiploList.lua
0632
|
Events.GameplaySetActivePlayer.Add(OnDiploListActivePlayerChanged); |
GameMenu.lua
UI/InGame/Menus/GameMenu.lua
0523
|
Events.GameplaySetActivePlayer.Add(OnGameMenuActivePlayerChanged); |
InfoCorner.lua
UI/InGame/InfoCorner.lua
0094
|
Events.GameplaySetActivePlayer.Add(OnInfoCornerActivePlayerChanged); |
MPList.lua
UI/InGame/WorldView/MPList.lua
0385
|
Events.GameplaySetActivePlayer.Add(OnMPListActivePlayerChanged); |
NotificationPanel.lua
UI/InGame/WorldView/NotificationPanel.lua
0355
|
Events.GameplaySetActivePlayer.Add(OnNotificationPanelActivePlayerChanged); |
0407
|
Events.GameplaySetActivePlayer.Add(OnNotificationsActivePlayerChanged); |
SetCityName.lua
UI/InGame/Popups/SetCityName.lua
0135
|
Events.GameplaySetActivePlayer.Add(OnCancel); |
SimpleDiploTrade.lua
UI/InGame/WorldView/SimpleDiploTrade.lua
0021
|
Events.GameplaySetActivePlayer.Add(OnDiploActivePlayerChanged); |
TechAwardPopup.lua
UI/InGame/Popups/TechAwardPopup.lua
0156
|
Events.GameplaySetActivePlayer.Add(OnTechAwardActivePlayerChanged); |
TechPanel.lua
UI/InGame/TechPanel.lua
0223
|
Events.GameplaySetActivePlayer.Add(OnTechPanelActivePlayerChanged); |
TechTree.lua
UI/InGame/TechTree/TechTree.lua
0817
|
Events.GameplaySetActivePlayer.Add(OnTechTreeActivePlayerChanged); |
UnitList.lua
UI/InGame/UnitList.lua
0090
|
Events.GameplaySetActivePlayer.Add(OnChangeEvent); |
The initial version of this page was created by the Civ5 API Bot, see the Civ5 API Reference FAQ. Some of the texts come from the 2kgames' wiki and most of code samples are copyrighted to Firaxis.
Functions' signatures were either copied from the 2kgames' wiki, or infered from the Lua source files and the binaries. Errors are possible.
Contributors may find help in the Contributors guide to the Civ5 API.