Game.GetReligionName (Civ5 API)

From Civilization Modding Wiki
Revision as of 20:21, 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

string Game.GetReligionName(ReligionType religion)


Returned Value

No description available.

Parameters

religion: No description available.


Source code samples

Redundant occurences have been removed.

ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0663
SelectReligion(g_CurrentReligionID, Game.GetReligionName(g_CurrentReligionID), religionRow.IconAtlas, religionRow.PortraitIndex);


CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0530
sToolTipText = sToolTipText .. Locale.Lookup( "TXT_KEY_CITY_STATE_QUEST_SPREAD_RELIGION_FORMAL", Game.GetReligionName(iQuestData1) );


InfoTooltipInclude.lua (G&K)

DLC/Expansion/UI/InGame/InfoTooltipInclude.lua
1104
local strReligion = Locale.ConvertTextKey(Game.GetReligionName(eReligion));
1138
local strReligion = Locale.ConvertTextKey(Game.GetReligionName(iReligionID));


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0112
text = Locale.Lookup("TXT_KEY_RO_STATUS_FOUNDER", Game.GetReligionName(eReligion));
0514
Name = Locale.Lookup(Game.GetReligionName(eReligion)),
0586
Religion = Locale.Lookup(Game.GetReligionName(eReligion)),


ReligionOverview.lua (G&K)

DLC/Expansion/Scenarios/MedievalScenario/ReligionOverview.lua
0393
Controls.ReligionStatusLabel:LocalizeAndSetText(Game.GetReligionName(eReligion));


UnitFlagManager.lua (G&K)

DLC/Expansion/UI/InGame/UnitFlagManager.lua
0202
string = string .. " - " .. Locale.Lookup(Game.GetReligionName(eReligion));


UnitPanel.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/UnitPanel.lua
1098
local religionName = Game.GetReligionName(unit:GetReligion());
1109
local majorityReligionName = Locale.Lookup(Game.GetReligionName(eMajorityReligion));



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.