UI.AddPopup (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 UI.

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


Usage

void UI.AddPopup(table popupInfo)


Parameters

popupInfo: No description available.


Source code samples

Redundant occurences have been removed.

CivsAlive.lua - DLC_01 DLC

DLC/DLC_01/Scenarios/Mongol Scenario/CivsAlive.lua
0128
UI.AddPopup(popupInfo);
0164
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0165
Data1 = 800,
0166
Option1 = true,
0167
Text = "TXT_KEY_MONGOL_SCENARIO_CIV5_DAWN_MONGOLIA_TEXT" } );


TurnsRemaining.lua - DLC_02 DLC

DLC/DLC_02/Scenarios/NewWorldScenario/TurnsRemaining.lua
0032
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0033
Data1 = 800,
0034
Option1 = true,
0035
Text = "TXT_KEY_NEWWORLD_SCENARIO_CIV5_DAWN_NEWWORLD_TEXT" } );


TurnsRemaining.lua - DLC_04 DLC

DLC/DLC_04/Scenarios/1066Scenario/TurnsRemaining.lua
0057
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0058
Data1 = 800,
0059
Option1 = true,
0060
Text = "TXT_KEY_1066_SCENARIO_CIV5_DAWN_VIKING_TEXT" } );


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/FallOfRomeScenario/TurnsRemaining.lua
0057
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0058
Data1 = 800,
0059
Option1 = true,
0060
Text = "TXT_KEY_FOR_SCENARIO_CIV5_DAWN_TEXT" } );


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/TurnsRemaining.lua
0122
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0123
Data1 = 800,
0124
Option1 = true,
0125
Text = "TXT_KEY_MEDIEVAL_SCENARIO_CIV5_DAWN_TEXT" } );


TurnsRemaining.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/TurnsRemaining.lua
0593
UI.AddPopup( { Type = ButtonPopupTypes.BUTTONPOPUP_TEXT,
0594
Data1 = 800,
0595
Option1 = true,
0596
Text = "TXT_KEY_STEAMPUNK_SCENARIO_CIV5_DAWN_TEXT" } );



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.