PreGame.GetMapScript (Civ5 API)

From Civilization Modding Wiki
Revision as of 10:52, 20 September 2012 by DonQuich (talk | contribs) (Bot update)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 PreGame.

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


Usage

string PreGame.GetMapScript()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0043
local currentMapScript = PreGame.GetMapScript();
0184
for option in DB.Query("select * from MapScriptOptions where not exists (select 1 from MapScriptOptionPossibleValues where FileName = MapScriptOptions.FileName and OptionID = MapScriptOptions.OptionID) and Hidden = 0 and FileName = ?", PreGame.GetMapScript()) do
0624
local filename = PreGame.GetMapScript();
0842
local mapScriptFileName = PreGame.GetMapScript();


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0222
local mapScript = PreGame.GetMapScript();


GameSetupScreen.lua

UI/FrontEnd/GameSetup/GameSetupScreen.lua
0024
if( bIsModding and IsWBMap(PreGame.GetMapScript()) ) then


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0054
local mapScriptFileName = Locale.ToLower(PreGame.GetMapScript());
0251
local fileTitle = Path.GetFileNameWithoutExtension(PreGame.GetMapScript());


SaveMenu.lua

UI/InGame/Menus/SaveMenu.lua
0072
PreGame.GetHandicap(), PreGame.GetWorldSize(), PreGame.GetMapScript(), nil,


SelectCivilization.lua

UI/FrontEnd/GameSetup/SelectCivilization.lua
0025
local isWBMap = IsWBMap(PreGame.GetMapScript());
0069
local playerList = UI.GetMapPlayers(PreGame.GetMapScript());
0159
local civList = UI.GetMapPlayers(PreGame.GetMapScript());


SinglePlayer.lua

UI/FrontEnd/SinglePlayer.lua
0046
local savedMapScript = PreGame.GetMapScript();



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.