UIElement.SetDisabled (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:30, 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 ControlBase.

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


Usage

void UIElement:SetDisabled(bool disableBanners)


Parameters

disableBanners: No description available.


Source code samples

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

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0098
gameOption.OptionDropDown:SetDisabled(option.Disabled);
1104
Controls.StartButton:SetDisabled(not args.Valid);


AdvisorCounselPopup.lua

UI/InGame/Popups/AdvisorCounselPopup.lua
0079
Controls.EconomicNextButton:SetDisabled(not CanAdvisorCounselAdvance(AdvisorTypes.ADVISOR_ECONOMIC));
0086
Controls.ForeignPrevButton:SetDisabled (not CanAdvisorCounselReverse(AdvisorTypes.ADVISOR_FOREIGN));
0087
Controls.SciencePrevButton:SetDisabled (not CanAdvisorCounselReverse(AdvisorTypes.ADVISOR_SCIENCE));


ChooseFaithGreatPerson.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseFaithGreatPerson.lua
0039
controlTable.Button:SetDisabled(true);


CityView.lua

UI/InGame/CityView/CityView.lua
0539
controlTable.BuildingButton:SetDisabled( true );
0542
controlTable.BuildingFilledSpecialistSlot2:SetDisabled( true );
0555
controlTable.BuildingEmptySpecialistSlot3:SetDisabled( false );
0711
Controls.NextCityButton:SetDisabled( true );
0713
Controls.PrevCityButton:SetDisabled( false );
1271
Controls.BuyPlotButton:SetDisabled(true);
1417
Controls.BalancedFocusButton:SetDisabled( true );
1420
Controls.GoldFocusButton:SetDisabled( true );
1425
Controls.ResetButton:SetDisabled( true );
1431
Controls.RazeCityButton:SetDisabled( true );
1445
Controls.ProductionFocusButton:SetDisabled( false );
1450
Controls.AvoidGrowthButton:SetDisabled( false );


CityView.lua (G&K)

DLC/Expansion/UI/InGame/CityView/CityView.lua
1477
Controls.FaithFocusButton:SetDisabled( false );


DiploList.lua

UI/InGame/DiploList.lua
0348
controlTable.LeaderButton:SetDisabled( true );


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0170
Controls.Button3:SetDisabled(false);


DiscussionDialog.lua (G&K)

DLC/Expansion/UI/InGame/LeaderHead/DiscussionDialog.lua
1093
Controls.Button5:SetDisabled(true);


EconomicGeneralInfo.lua

UI/InGame/Popups/EconomicGeneralInfo.lua
0271
Controls.TradeToggle:SetDisabled( true );
0341
Controls.BuildingsToggle:SetDisabled( true );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0685
agentEntry.RelocateButton:SetDisabled(v.State == "TXT_KEY_SPY_STATE_DEAD");


HappinessInfo.lua

UI/InGame/Popups/HappinessInfo.lua
0233
Controls.LuxuryHappinessToggle:SetDisabled( true );
0588
Controls.CityUnhappinessToggle:SetDisabled( false );
0722
Controls.ResourcesExportedToggle:SetDisabled( false );
0766
Controls.ResourcesLocalToggle:SetDisabled( true );


LoadMenu.lua

UI/FrontEnd/LoadMenu.lua
0449
Controls.Delete:SetDisabled(true);


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0152
Controls.HostButton:SetDisabled( true );
0169
Controls.RefreshButton:SetDisabled( false );


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0042
Controls.ShowResources:SetDisabled( false );


MPGameOptions.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameOptions.lua
0980
Controls.MaxTurnsCheck:SetDisabled( not bCanEdit );


OptionsMenu.lua

UI/Options/OptionsMenu.lua
0319
Controls.MPQuickCombatCheckbox:SetDisabled( true );
0335
Controls.SpokenLanguagePull:SetDisabled(true);


PlayerChange.lua

UI/InGame/PlayerChange.lua
0076
Controls.ContinueButton:SetDisabled( not bValid );


SetCityName.lua

UI/InGame/Popups/SetCityName.lua
0087
Controls.AcceptButton:SetDisabled(not bValid);


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0364
thisButton:SetDisabled( true );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
1044
Controls.UsPocketGoldPerTurn:SetDisabled(false);
1059
Controls.ThemPocketGoldPerTurn:SetDisabled(false);
1142
Controls.UsPocketDefensivePact:SetDisabled(true);
1247
Controls.UsPocketTradeAgreement:SetDisabled(false);
1258
Controls.ThemPocketTradeAgreement:SetDisabled(false);
1296
Controls.ThemPocketCities:SetDisabled( true );
1318
Controls.UsPocketOtherPlayer:SetDisabled( false );
1323
Controls.ThemPocketOtherPlayer:SetDisabled( false );
2563
g_OtherPlayersButtons[ iLoopPlayer ][ SubTableName ].Button:SetDisabled( false );


TradeLogic.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/TradeLogic.lua
1107
Controls.UsPocketAllowEmbassy:SetDisabled(false);


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1594
pFlag.m_Instance.NormalButton:SetDisabled( false );



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.