CivIconHookup (Civ5 API)

From Civilization Modding Wiki
Revision as of 16:50, 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 global function. Use: include("IconSupport.lua")


Usage

void CivIconHookup(PlayerID player, int iconSize, Image iconControl, Image teamColorControl, int shadowIconControl, int alwaysUseComposite, int shadowed)


Parameters

player: No description available.
iconSize: No description available.
iconControl: No description available.
teamColorControl: No description available.
shadowIconControl: No description available.
alwaysUseComposite: No description available.
shadowed: No description available.


Source code samples

Redundant occurences have been removed.

AdvisorCounselPopup.lua

UI/InGame/Popups/AdvisorCounselPopup.lua
0195
CivIconHookup( Game.GetActivePlayer(), 64, Controls.Icon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0082
CivIconHookup( pPlayer:GetID(), 64, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0259
CivIconHookup(iAlly, 32, Controls.AllyIcon, Controls.AllyIconBG, Controls.AllyIconShadow, false, true);
0264
CivIconHookup(-1, 32, Controls.AllyIcon, Controls.AllyIconBG, Controls.AllyIconShadow, false, true);


Demographics.lua

UI/InGame/Popups/Demographics.lua
0333
CivIconHookup( iPlayerID, 32, control, controlBG, controlShadow, false, true);
0336
CivIconHookup( -1, 32, control, controlBG, controlShadow, false, true);
0445
CivIconHookup( iPlayer, 64, Controls.Icon, Controls.CivIconBG, Controls.CivIconShadow, false, true);


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0090
CivIconHookup( iOtherPlayer, 32, controlTable.CivIcon, controlTable.CivIconBG, controlTable.CivIconShadow, false, true );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0056
CivIconHookup(iOtherPlayer, 64, controlTable.CivSymbol, controlTable.CivIconBG, controlTable.CivIconShadow, false, true);


DiploList.lua

UI/InGame/DiploList.lua
0210
CivIconHookup( g_iPlayer, 32, Controls.MyCivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );
0276
CivIconHookup( iPlayerLoop, 32, controlTable.CivSymbol, controlTable.CivIconBG, controlTable.CivIconShadow, false, true );


DiploVotePopup.lua

UI/InGame/Popups/DiploVotePopup.lua
0063
CivIconHookup( iPlayerLoop, 45, controlTable.CivIcon, controlTable.CivIconBG, controlTable.CivIconShadow, false, true );


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0054
CivIconHookup( g_iAIPlayer, 64, Controls.ThemSymbolShadow, Controls.CivIconBG, Controls.CivIconShadow, false, true );


EconomicOverview.lua

UI/InGame/Popups/EconomicOverview.lua
0060
CivIconHookup( Game.GetActivePlayer(), 64, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0285
CivIconHookup( Game.GetActivePlayer(), 80, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0393
CivIconHookup(city:GetOwner(), 32, Controls.AgentLocationIcon, Controls.AgentLocationIconBG, Controls.AgentLocationIconShadow, false, true);
0584
CivIconHookup(city:GetOwner(), 32, agentEntry.AgentLocationIcon, agentEntry.AgentLocationIconBG, agentEntry.AgentLocationIconShadow, false, true);
0975
CivIconHookup( Game.GetActivePlayer(), 32, entry.CivIcon, entry.CivIconBG, entry.CivIconShadow, false, true);
1139
CivIconHookup( cityInfo.PlayerID, 32, entry.CivIcon, entry.CivIconBG, entry.CivIconShadow, false, true);


GameMenu.lua

UI/InGame/Menus/GameMenu.lua
0201
CivIconHookup( iPlayer, 64, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


LeaderHeadRoot.lua

UI/InGame/LeaderHead/LeaderHeadRoot.lua
0037
CivIconHookup( iPlayer, 64, Controls.ThemSymbolShadow, Controls.CivIconBG, Controls.CivIconShadow, false, true );


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0369
CivIconHookup( 0, 64, Controls.Icon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


MPList.lua

UI/InGame/WorldView/MPList.lua
0144
CivIconHookup( pPlayer:GetID(), 32, controlTable.Icon, controlTable.CivIconBG, controlTable.CivIconShadow, false, true );


NewTurn.lua

UI/InGame/NewTurn.lua
0040
CivIconHookup(  Game.GetActivePlayer(), 64, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true);


NotificationPanel.lua

UI/InGame/WorldView/NotificationPanel.lua
0200
CivIconHookup( iExtraGameData, 45, instance.CivIcon, instance.CivIconBG, instance.CivIconShadow, false, true );
0203
CivIconHookup( 22, 45, instance.CivIcon, instance.CivIconBG, instance.CivIconShadow, false, true );
0256
CivIconHookup( index, 80, instance.WarImage, instance.CivIconBG, instance.CivIconShadow, false, true );
0259
CivIconHookup( index, 45, instance.War1Image, instance.Civ1IconBG, instance.Civ1IconShadow, false, true );
0261
CivIconHookup( index, 45, instance.War2Image, instance.Civ2IconBG, instance.Civ2IconShadow, false, true );
0264
CivIconHookup( index, 80, instance.PeaceImage, instance.CivIconBG, instance.CivIconShadow, false, true );
0267
CivIconHookup( index, 45, instance.Peace1Image, instance.Civ1IconBG, instance.Civ1IconShadow, false, true );
0272
CivIconHookup( index, 45, instance.Peace2Image, instance.Civ2IconBG, instance.Civ2IconShadow, false, true );


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0753
CivIconHookup( Game.GetActivePlayer(), 32, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0926
CivIconHookup( g_iUs, 64, Controls.UsSymbolShadow, Controls.UsCivIconBG, Controls.UsCivIconShadow, false, true );
0927
CivIconHookup( g_iThem, 64, Controls.ThemSymbolShadow, Controls.ThemCivIconBG, Controls.ThemCivIconShadow, false, true );
2783
CivIconHookup( iLoopPlayer, 32, controlTable.CivSymbol, controlTable.CivIconBG, controlTable.CivIconShadow, false, true );


VictoryProgress.lua

UI/InGame/Popups/VictoryProgress.lua
0900
CivIconHookup( iPlayer, iconSize, controlTable, controlBG, controlShadow, false, true );
0913
CivIconHookup(-1, iconSize, controlTable, controlBG, controlShadow, false, true );


VictoryProgress.lua (G&K)

DLC/Expansion/UI/InGame/Popups/VictoryProgress.lua
0787
CivIconHookup(iLastVoteLeader, 32, controlTable.LastVoteCivIcon, controlTable.LastVoteCivIconBG, controlTable.LastVoteCivIconShadow, false, true);


VictoryStatus.lua (G&K)

DLC/Expansion/Scenarios/SteampunkScenario/VictoryStatus.lua
0236
CivIconHookup(iActivePlayer, 64, Controls.CivIcon, Controls.CivIconBG, Controls.CivIconShadow, false, true);


VoteResultsPopup.lua

UI/InGame/Popups/VoteResultsPopup.lua
0047
CivIconHookup( pPlayer:GetID(), 32, controlTable.Icon, controlTable.IconBG, controlTable.IconShadow, false, true );
0054
CivIconHookup( -1, 32, controlTable.Icon, controlTable.IconBG, controlTable.IconShadow, false, true );
0082
CivIconHookup( pPlayer:GetID(), 32, controlTable.Icon, controlTable.IconBG, controlTable.IconShadow, false, true);
0123
CivIconHookup( pVoteCastTeam:GetLeaderID(), 32, controlTable.BallotIcon, controlTable.BallotIconBG, controlTable.BallotIconShadow, false, true );
0128
CivIconHookup( -1, 32, controlTable.BallotIcon, controlTable.BallotIconBG, controlTable.BallotIconShadow, false, true );


WhosWinningPopup.lua

UI/InGame/Popups/WhosWinningPopup.lua
0274
CivIconHookup( iPlayerID, 32, controlTable.Icon, controlTable.CivIconBG, controlTable.CivIconShadow, false, true);
0279
CivIconHookup( -1, 32, controlTable.Icon, controlTable.CivIconBG, controlTable.CivIconShadow, false, true);



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.