Game.IsOption (Civ5 API)

From Civilization Modding Wiki
Revision as of 20:01, 19 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 Game.

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


Usage

int Game.IsOption(string index)


Returned Value

No description available.

Parameters

index: No description available.


Source code samples

Redundant occurences have been removed.

ActionInfoPanel.lua

UI/InGame/WorldView/ActionInfoPanel.lua
0219
return Game.IsOption(GameOptionTypes.GAMEOPTION_END_TURN_TIMER_ENABLED);
0288
if (Game.IsOption(GameOptionTypes.GAMEOPTION_POLICY_SAVING)) then


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0463
if (Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_WAR )) then


CityBannerManager.lua (G&K)

DLC/Expansion/UI/InGame/CityBannerManager.lua
0186
elseif (Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_WAR )) then


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0498
if (Game.IsOption(GameOptionTypes.GAMEOPTION_ALWAYS_PEACE)) then
0501
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_CHANGING_WAR_PEACE)) then


CivilopediaScreen.lua (G&K)

DLC/Expansion/UI/Civilopedia/CivilopediaScreen.lua
0456
if(Game == nil or not Game.IsOption(GameOptionTypes.GAMEOPTION_NO_RELIGION)) then
2461
if(Game and not Game.IsOption(GameOptionTypes.GAMEOPTION_NO_RELIGION)) then
2866
if(Game and Game.IsOption(GameOptionTypes.GAMEOPTION_NO_RELIGION)) then


DiploList.lua

UI/InGame/DiploList.lua
0296
not Game.IsOption(GameOptionTypes.GAMEOPTION_NO_SCIENCE)) then


EconomicOverview.lua

UI/InGame/Popups/EconomicOverview.lua
0112
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_HAPPINESS)) then


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0208
if (not Game.IsOption("GAMEOPTION_NO_ESPIONAGE")) then


InfoTooltipInclude.lua

UI/InGame/InfoTooltipInclude.lua
0440
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_SCIENCE)) then
0745
if (Game.IsOption(GameOptionTypes.GAMEOPTION_ALWAYS_WAR)) then


InfoTooltipInclude.lua (G&K)

DLC/Expansion/UI/InGame/InfoTooltipInclude.lua
0592
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_RELIGION)) then


MapGenerator.lua (G&K)

DLC/Expansion/Gameplay/Lua/MapGenerator.lua
0682
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_GOODY_HUTS)) then


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0150
if(not Game.IsOption(GameOptionTypes.GAMEOPTION_NO_RELIGION)) then


SaveMenu.lua

UI/InGame/Menus/SaveMenu.lua
0619
Game.IsOption( GameOptionTypes.GAMEOPTION_LOCK_MODS ) or


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0608
local bDisablePolicies = Game.IsOption(GameOptionTypes.GAMEOPTION_NO_POLICIES);


TechPopup.lua

UI/InGame/TechPopup.lua
0095
if (not Game.IsOption(GameOptionTypes.GAMEOPTION_NO_SCIENCE)) then


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0452
local scienceDisabled = Game.IsOption(GameOptionTypes.GAMEOPTION_NO_SCIENCE);


TopPanel.lua

UI/InGame/TopPanel.lua
0131
if (Game.IsOption(GameOptionTypes.GAMEOPTION_NO_POLICIES)) then


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0011
local g_bAlwaysWar = Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_WAR );
0012
local g_bAlwaysPeace = Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_PEACE );
0013
local g_bNoChangeWar = Game.IsOption( GameOptionTypes.GAMEOPTION_NO_CHANGING_WAR_PEACE );
2749
if( Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_WAR ) or
2750
Game.IsOption( GameOptionTypes.GAMEOPTION_ALWAYS_PEACE ) or
2751
Game.IsOption( GameOptionTypes.GAMEOPTION_NO_CHANGING_WAR_PEACE ) ) then


TutorialChecks.lua

Tutorial/TutorialChecks.lua
0970
if (Game.IsOption( GameOptionTypes.GAMEOPTION_ONE_CITY_CHALLENGE )) then



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.