UIElement.SetVoids (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 method is declared by ButtonBase, Grid and GridButton.

This is an instance method, invoke it with a colon.


Usage

void UIElement:SetVoids(ResourceType building, ResourceType addToList)


Parameters

building: No description available.
addToList: No description available.


Source code samples

Too many occurences. Only 50 out of 343 are listed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0430
controlTable.Button:SetVoids( playerID, id );
0979
controlTable.Button:SetVoids( playerID, 0 );
0987
controlTable.Button:SetVoids( playerID, i );


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0392
controls.CityBannerProductionButton:SetVoids( city:GetID(), nil );


CityList.lua

UI/InGame/CityList.lua
0107
instance.Button:SetVoids( pCity:GetX(), pCity:GetY() );
0426
instance.ProdButton:SetVoids( city:GetID(), nil );


CityView.lua

UI/InGame/CityView/CityView.lua
0467
controlTable.BuildingFilledSpecialistSlot2:SetVoids( buildingID, 2 );
0468
controlTable.BuildingFilledSpecialistSlot3:SetVoids( buildingID, 3 );
0474
controlTable.BuildingEmptySpecialistSlot1:SetVoids( buildingID, 1 );
0475
controlTable.BuildingEmptySpecialistSlot2:SetVoids( buildingID, 2 );
0476
controlTable.BuildingEmptySpecialistSlot3:SetVoids( buildingID, 3 );


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
1808
button:SetVoids( buttonId, addToList );
2088
thisBuildingInstance.UnlockedBuildingButton:SetVoids( thisBuildingInfo.ID, addToList );
2946
thisBuildingInstance.RequiredBuildingButton:SetVoids( thisBuildingInfo.ID, addToList );
3553
thisBuildingInstance.UniqueBuildingButton:SetVoids( thisBuildingInfo.ID, addToList );
3584
thisImprovementInstance.UniqueImprovementButton:SetVoids( thisImprovement.ID, addToList );
4621
thisListInstance.ListItemButton:SetVoids( homePageOfCategoryID, addToList );
4654
thisListInstance.ListItemButton:SetVoids( v.entryID, addToList );
4682
thisTechInstance.ListItemButton:SetVoids( homePageOfCategoryID, addToList );
4704
thisEraInstance.ListHeadingButton:SetVoids( eraID, 0 );
5019
thisHeadingInstance.ListHeadingButton:SetVoids( branchID, 0 );
5210
thisHeadingInstance.ListHeadingButton:SetVoids( traitID, 0 );
5518
thisTechInstance.ListItemButton:SetVoids( v.entryID, addToList );


CivilopediaScreen.lua (G&K)

DLC/Expansion/UI/Civilopedia/CivilopediaScreen.lua
4984
thisEraInstance.ListHeadingButton:SetVoids( categoryID, 0 );
5652
thisListInstance.ListItemButton:SetVoids(0, addToList );
6469
thisListInstance.ListItemButton:SetVoids( v.entryID[2], addToList );


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0320
controlTable.Button:SetVoids( -1, -1 );
0339
controlTable.Button:SetVoids( g_iLocalTeam, -1 );
0354
controlTable.Button:SetVoids( -1, iPlayer );


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0057
controlTable.DealButton:SetVoids( i, 0 );


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0224
Controls.CityButton:SetVoids( city:GetX(), city:GetY() );


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0412
controlTable.Button:SetVoids(v1, v2);


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
1043
controlTable.Button:SetVoids( playerID, v.ID );
1084
controlTable.Button:SetVoids( playerID, friendList[i].steamID );
1115
controlTable.Button:SetVoids( playerID, i-1 ); -- TODO: playerID is really more like the slot position.
1137
controlTable.Button:SetVoids( playerID, info.ID );
1160
controlTable.Button:SetVoids( playerID, 1 );


TechButtonInclude.lua

UI/InGame/TechTree/TechButtonInclude.lua
0334
thisTechButtonInstance[buttonName]:SetVoids(void1, void2);


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1713
instance.Button:SetVoids( g_iUs, pCity:GetID() );
1718
instance.Button:SetVoids( g_iThem, pCity:GetID() );
2255
controlTable.Button:SetVoids( isUs, row.ID );
2472
instance.Button:SetVoids( m_iFrom, iCityID );
2639
Controls.UsPocketOtherPlayerWar:SetVoids( 1, WAR );
2642
Controls.ThemPocketOtherPlayerWar:SetVoids( 0, WAR );
2645
Controls.UsPocketOtherPlayerPeace:SetVoids( 1, PEACE );
2648
Controls.ThemPocketOtherPlayerPeace:SetVoids( 0, PEACE );
2785
controlTable.Button:SetVoids( iLoopPlayer, 1 );
2795
controlTable.Button:SetVoids( iLoopPlayer, 0 );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0696
controlTable.Button:SetVoids( self.m_playerID, self.m_UnitID );
1069
controlTable.Button:SetVoids( pPlotUnit:GetOwner(), pPlotUnit:GetID() );



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.