Events.SerialEventGameMessagePopup (Civ5 API)

From Civilization Modding Wiki
Jump to navigationJump to search

This page is a part of the Lua and UI Reference (Civ5).


Function.png This function is a member of Events.

This is a static method, invoke it with a dot.


Usage

void Events.SerialEventGameMessagePopup(PopupInfo popupInfo)


Event Type

Regular event: you can subscribe to it through Events.SerialEventGameMessagePopup.Add(<function handler>) or invoke it directly through Events.SerialEventGameMessagePopup(<arguments list>).

Parameters

popupInfo: No description available.


Source code samples

Redundant occurences have been removed.

AdvisorCounselPopup.lua

UI/InGame/Popups/AdvisorCounselPopup.lua
0208
Events.SerialEventGameMessagePopup.Add( OnPopup );


Advisors.lua

UI/InGame/WorldView/Advisors.lua
0019
Events.SerialEventGameMessagePopup(popupInfo);


ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0048
Events.SerialEventGameMessagePopup.Add( OnPopupMessage );


CityList.lua

UI/InGame/CityList.lua
0034
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_ECONOMIC_OVERVIEW } );


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0035
Events.SerialEventGameMessagePopup.Add( OnEventReceived );


CityView.lua

UI/InGame/CityView/CityView.lua
2175
Events.SerialEventGameMessagePopup( popupInfo );


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0027
Events.SerialEventGameMessagePopup{
0028
Type = popupType,
0029
Data1 = data1,
0030
Data2 = data2
0031
};
0251
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_CHOOSEPOLICY } );


DiploCorner.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/DiploCorner.lua
0024
g_MultiPullInfo[0] = { text="TXT_KEY_ADVISOR_SCREEN_TECH_TREE_DISPLAY",        call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TECH_TREE } ); end };
0025
g_MultiPullInfo[1] = { text="TXT_KEY_DIPLOMACY_OVERVIEW",        call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_DIPLOMATIC_OVERVIEW } ); end };
0026
g_MultiPullInfo[2] = { text="TXT_KEY_MILITARY_OVERVIEW",         call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_MILITARY_OVERVIEW } ); end };
0027
g_MultiPullInfo[3] = { text="TXT_KEY_ECONOMIC_OVERVIEW",         call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_ECONOMIC_OVERVIEW } ); end };
0029
g_MultiPullInfo[4] = { text="TXT_KEY_DEMOGRAPHICS",              call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_DEMOGRAPHICS} ); end };
0030
g_MultiPullInfo[5] = { text="TXT_KEY_POP_NOTIFICATION_LOG",      call=function() Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_NOTIFICATION_LOG, Data1 = Game.GetActivePlayer() } ); end };


DiploCorner.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/DiploCorner.lua
0106
Events.SerialEventGameMessagePopup{
0107
Type = ButtonPopupTypes.BUTTONPOPUP_ESPIONAGE_OVERVIEW,
0108
};


DiploList.lua

UI/InGame/DiploList.lua
0115
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_DIPLOMATIC_OVERVIEW } );
0124
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_MINOR_CIVS_LIST, } );
0576
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_CITY_STATE_DIPLO, Data1 = PlayerID; } );


GenericPopup.lua

UI/InGame/Popups/GenericPopup.lua
0111
Events.SerialEventGameMessagePopup.Add( OnDisplay );


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0808
Events.SerialEventGameMessagePopup{
0809
Type = ButtonPopupTypes.BUTTONPOPUP_RELIGION_OVERVIEW,
0810
};


TechPanel.lua

UI/InGame/TechPanel.lua
0018
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_CHOOSETECH,
0019
Data1 = Game.GetActivePlayer(),
0020
Data3 = -1 -- this is to tell it that a tech was not just finished
0021
} );


TechPopup.lua

UI/InGame/TechPopup.lua
0036
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TECH_TREE } );


TechPopup.lua (G&K)

DLC/Expansion/UI/InGame/TechPopup.lua
0037
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TECH_TREE, Data2 = stealingTechTargetPlayerID } );


TopPanel.lua (G&K)

DLC/Expansion/UI/InGame/TopPanel.lua
0304
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TECH_TREE, Data2 = -1} );
0313
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_RELIGION_OVERVIEW } );


TutorialEngine.lua

Tutorial/TutorialEngine.lua
0652
Events.SerialEventGameMessagePopup.Add(ActivatedPopup);


UnitList.lua

UI/InGame/UnitList.lua
0066
Events.SerialEventGameMessagePopup( { Type = ButtonPopupTypes.BUTTONPOPUP_MILITARY_OVERVIEW } );



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.