UIElement.SetCheck (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:39, 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 function is a member of ControlBase.

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


Usage

void UIElement:SetCheck(bool cityBanners)


Parameters

cityBanners: No description available.


Source code samples

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

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0918
Controls.MaxTurnsCheck:SetCheck(true);


AdvisorModal.lua

UI/InGame/Popups/AdvisorModal.lua
0036
Controls.DontShowAgainCheckbox:SetCheck(false);


CityView.lua

UI/InGame/CityView/CityView.lua
0934
Controls.FoodFocusButton:SetCheck( true );
0938
Controls.GoldFocusButton:SetCheck( true );
0940
Controls.ResearchFocusButton:SetCheck( true );
0942
Controls.CultureFocusButton:SetCheck( true );
0944
Controls.GPFocusButton:SetCheck( true );
0948
Controls.AvoidGrowthButton:SetCheck( pCity:IsForcedAvoidGrowth() );
2036
Controls.NoAutoSpecialistCheckbox:SetCheck(true);


DebugMenu.lua

UI/InGame/DebugMenu.lua
0163
Controls.ToggleUnitFlags_Checkbox:SetCheck( bUnitFlags );


DebugMode.lua

UI/InGame/DebugMode.lua
0574
Controls.UnitSpecRenderDiffuse_Checkbox:SetCheck( g_iUnitSpecularRender == 1 );
0575
Controls.UnitSpecRenderSpecular_Checkbox:SetCheck( g_iUnitSpecularRender == 2 );
0602
Controls.UnitMemberFSMDebug_Checkbox:SetCheck( g_bUnitMemberFSMDebugCheck );
0665
Controls.UnitMemberSelectAll_Checkbox:SetCheck( false );


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0852
Controls.ShowDLCMods:SetCheck(showDLCMods == "1");


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0598
Controls.AutoCheck:SetCheck(g_ShowAutoSaves);


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0169
Controls.ShowGrid:SetCheck( mapOptions.ShowGrid );
0172
Controls.HideRecommendation:SetCheck( mapOptions.HideTileRecommendations );
0176
Controls.ShowFogOfWar:SetCheck( mapOptions.SVShowFOW );
0327
Controls.ShowGrid:SetCheck( true );
0382
Controls.ShowYield:SetCheck( true );
0386
Controls.ShowYield:SetCheck( false );
0390
Controls.ShowResources:SetCheck( true );
0394
Controls.ShowResources:SetCheck( false );


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0355
Controls.ScenarioCheck:SetCheck( loadScenarioChecked );
0882
victoryCondition.GameOptionRoot:SetCheck(PreGame.IsVictory(row.ID));
0973
Controls.MaxTurnsCheck:SetCheck(false);
0992
dlcEntries.GameOptionRoot:SetCheck(PreGame.IsDLCAllowed(row.PackageID));


NetworkDebug.lua

UI/InGame/NetworkDebug.lua
0092
Controls.VerboseLoggingToggle:SetCheck(Network.GetDebugLogLevel() == 2);


OptionsMenu.lua

UI/Options/OptionsMenu.lua
0637
Controls.AutoWorkersDontReplaceCB:SetCheck( OptionsManager.IsAutoWorkersDontReplace_Cached() );
0639
Controls.NoRewardPopupsCheckbox:SetCheck( OptionsManager.IsNoRewardPopups_Cached() );
0641
Controls.NoTileRecommendationsCheckbox:SetCheck( OptionsManager.IsNoTileRecommendations_Cached() );
0642
Controls.CivilianYieldsCheckbox:SetCheck( OptionsManager.IsCivilianYields_Cached() );
0644
Controls.MultiplayerAutoEndTurnCheckbox:SetCheck(OptionsManager.GetMultiplayerAutoEndTurnEnabled_Cached());
0649
Controls.SPQuickMovementCheckBox:SetCheck(OptionsManager.GetSinglePlayerQuickMovementEnabled_Cached());
0653
Controls.SPQuickCombatCheckBox:SetCheck(m_bInGameQuickCombatState_Cached);
0654
Controls.SPQuickMovementCheckBox:SetCheck(m_bInGameQuickMovementState_Cached);
0655
Controls.MPQuickCombatCheckbox:SetCheck(OptionsManager.GetMultiplayerQuickCombatEnabled_Cached());
0656
Controls.MPQuickMovementCheckbox:SetCheck(OptionsManager.GetMultiplayerQuickMovementEnabled_Cached());
0669
Controls.PolicyInfo:SetCheck( OptionsManager.GetPolicyInfo_Cached() );
0670
Controls.AutoUnitCycleCheck:SetCheck( OptionsManager.GetAutoUnitCycle_Cached() );
0699
Controls.SmallUIAssetsCheck:SetCheck( false );
0703
Controls.AutoUIAssetsCheck:SetCheck( false );
0709
Controls.SkipIntroVideoCheck:SetCheck( OptionsManager.GetSkipIntroVideo_Cached() );


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0729
graphLegendInstance.ShowHide:SetCheck(checked);


SetCivNames.lua

UI/FrontEnd/GameSetup/SetCivNames.lua
0245
Controls.UsePasswordCheck:SetCheck( name ~= "" );


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0419
slotInstance.EnableCheck:SetCheck( false );
0430
slotInstance.LockCheck:SetCheck( false );


TerrainPanel.lua

UI/InGame/TerrainPanel.lua
0031
Controls.WaterAutoReload_Checkbox:SetCheck(g_bWaterReload);
0045
Controls.WaterAutoReload_Checkbox:SetCheck(g_iWaterReload);



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.