UIElement.SetVoid1 (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:18, 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 method is declared by ButtonBase, EditBox, Grid, GridButton, Image, Slider and TextButton.

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


Usage

void UIElement:SetVoid1(OrderType MAINTAIN_GOLD)


Parameters

MAINTAIN_GOLD: No description available.


Source code samples

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

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0589
instance.Button:SetVoid1( -1 );


CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0598
controlTable.BannerButton:SetVoid1( gridPosX );
0611
controlTable.CityRangeStrikeButton:SetVoid1(playerID);
0617
svStrikeButton.CityRangeStrikeButton:SetVoid1(playerID);


CityList.lua

UI/InGame/CityList.lua
0274
Controls.SortPopulation:SetVoid1( ePopulation );


CityView.lua

UI/InGame/CityView/CityView.lua
0528
controlTable.BuildingButton:SetVoid1( buildingID );
1917
Controls.b2remove:SetVoid1( 1 );
1919
Controls.b3remove:SetVoid1( 2 );
1921
Controls.b4remove:SetVoid1( 3 );
1923
Controls.b5remove:SetVoid1( 4 );
1934
Controls.b1down:SetVoid1( 0 );
1957
Controls.b6up:SetVoid1( 4 );
2268
Controls.BalancedFocusButton:SetVoid1( CityAIFocusTypes.NO_CITY_AI_FOCUS_TYPE )
2269
Controls.BalancedFocusButton:RegisterCallback( Mouse.eLClick, FocusChanged );
2277
Controls.GoldFocusButton:SetVoid1( CityAIFocusTypes.CITY_AI_FOCUS_TYPE_GOLD )
2278
Controls.GoldFocusButton:RegisterCallback( Mouse.eLClick, FocusChanged );


DiploCurrentDeals.lua

UI/InGame/Popups/DiploCurrentDeals.lua
0132
Controls.CurrentDealsButton:SetVoid1( 0 );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0075
controlTable.Button:SetVoid1(iOtherPlayer);


DiploList.lua

UI/InGame/DiploList.lua
0465
controlTable.MinorButton:SetVoid1( iPlayerLoop );


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0921
instanceControls.Button:SetVoid1( iLeaderId ); -- leader ID


EconomicGeneralInfo.lua

UI/InGame/Popups/EconomicGeneralInfo.lua
0508
Controls.SortResearch:SetVoid1( eResearch );
0510
Controls.SortCulture:SetVoid1( eCulture );


InGame.lua

UI/InGame/InGame.lua
1052
Controls.ScrollBottom:SetVoid1( BOTTOM );


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0366
controlTable.JoinButton:SetVoid1( serverEntry.serverID ); -- Server ID


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0159
instance.Button:SetVoid1( unit:GetID() );
0358
Controls.SortMovement:SetVoid1( eMovement );


NotificationLogPopup.lua

UI/InGame/Popups/NotificationLogPopup.lua
0059
controlTable.Button:SetVoid1( id ); -- indicates type


NotificationPanel.lua

UI/InGame/WorldView/NotificationPanel.lua
0278
button:SetVoid1( Id );


OptionsMenu.lua

UI/Options/OptionsMenu.lua
0385
Controls.GameButton:SetVoid1(  1 );
0387
Controls.VideoButton:SetVoid1( 3 );
0451
Controls.MusicVolumeSlider:SetVoid1(   iMusicVolumeKnobID );


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
1015
controlTable.Button:SetVoid1( orderType ); -- indicates type


ProductionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ProductionPopup.lua
0547
Controls.ProduceResearchButton:SetVoid1( g_MAINTAIN_TECH );
1148
controlTable.Button:SetVoid1( ePurchaseEnum );


ResourceList.lua

UI/InGame/ResourceList.lua
0275
Controls.SortTradeInfo:SetVoid1( eTradeInfo );


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0887
controlTable.PolicyIcon:SetVoid1( i ); -- indicates which policy


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
1274
instance.EnableCheck:SetVoid1( i );


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0583
thisTechButton.TechButton:SetVoid1( techID ); -- indicates tech to add to queue
0713
thisTechButton.TechButton:SetVoid1( -1 );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0554
Controls.ProposeButton:SetVoid1( PROPOSE_TYPE );
0745
Controls.UsPocketOtherPlayer:SetVoid1( 1 );
1909
Controls.UsTableGold:SetVoid1( 1 );
1910
Controls.ThemTableGold:SetVoid1( 0 );
1955
Controls.UsGoldAmount:SetVoid1( 1 );
1957
Controls.ThemGoldAmount:SetVoid1( 0 );
1994
Controls.UsPocketGoldPerTurn:SetVoid1( 1 );
1995
Controls.ThemPocketGoldPerTurn:SetVoid1( 0 );
2124
Controls.UsPocketDefensivePact:SetVoid1( 1 );
2196
Controls.UsPocketTradeAgreement:SetVoid1( 1 );
2197
Controls.ThemPocketTradeAgreement:SetVoid1( 0 );
2503
Controls.ThemPocketCities:SetVoid1( 0 );


UITestMenu.lua

UI/FrontEnd/UITestMenu.lua
0091
Controls.SmallSlider:SetVoid1( 2 );



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.