UIElement.SetAlpha (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:SetAlpha(float DimAlpha)


Parameters

DimAlpha: No description available.


Source code samples

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

EconomicGeneralInfo.lua

UI/InGame/Popups/EconomicGeneralInfo.lua
0218
Controls.CityToggle:SetAlpha( 1.0 );
0221
Controls.CityToggle:SetAlpha( 0.5 );
0269
Controls.TradeToggle:SetAlpha( 1.0 );
0272
Controls.TradeToggle:SetAlpha( 0.5 );
0339
Controls.BuildingsToggle:SetAlpha( 1.0 );
0342
Controls.BuildingsToggle:SetAlpha( 0.5 );


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0978
entry.CivilizationName:SetAlpha(1.0);
0980
entry.CityName:SetAlpha(1.0);
1011
entry.CityPopulation:SetAlpha(1.0);
1067
cityEntry.CivilizationName:SetAlpha(0.4);
1068
cityEntry.CityName:SetAlpha(0.4);
1069
cityEntry.CityPopulation:SetAlpha(0.4);


HappinessInfo.lua

UI/InGame/Popups/HappinessInfo.lua
0231
Controls.LuxuryHappinessToggle:SetAlpha( 1.0 );
0287
Controls.CityBuildingToggle:SetAlpha( 1.0 );
0589
Controls.CityUnhappinessToggle:SetAlpha( 1.0 );
0592
Controls.CityUnhappinessToggle:SetAlpha( 0.5 );
0640
Controls.ResourcesAvailableToggle:SetAlpha( 1.0 );
0643
Controls.ResourcesAvailableToggle:SetAlpha( 0.5 );
0684
Controls.ResourcesImportedToggle:SetAlpha( 0.5 );
0723
Controls.ResourcesExportedToggle:SetAlpha( 1.0 );
0726
Controls.ResourcesExportedToggle:SetAlpha( 0.5 );
0764
Controls.ResourcesLocalToggle:SetAlpha( 1.0 );
0767
Controls.ResourcesLocalToggle:SetAlpha( 0.5 );


MilitaryOverview.lua

UI/InGame/Popups/MilitaryOverview.lua
0167
instance.Button:SetAlpha( 0.6 );


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0036
Controls.ShowResources:SetAlpha( 0.5 );
0043
Controls.ShowResources:SetAlpha( 1.0 );


MPList.lua

UI/InGame/WorldView/MPList.lua
0180
controlTable.Name:SetAlpha( 0.5 );
0181
controlTable.IconBox:SetAlpha( 0.2 );
0184
controlTable.IconBox:SetAlpha( 1 );


OptionsMenu.lua

UI/Options/OptionsMenu.lua
0307
Controls.TutorialPull:SetAlpha( 0.5 );
0312
Controls.TutorialPull:SetAlpha( 1.0 );
0314
Controls.ResetTutorialButton:SetAlpha( 1.0 );
0320
Controls.MPQuickCombatCheckbox:SetAlpha( 0.5 );
0322
Controls.MPQuickMovementCheckbox:SetAlpha( 0.5 );
0325
Controls.MPQuickCombatCheckbox:SetAlpha( 1.0 );
0327
Controls.MPQuickMovementCheckbox:SetAlpha( 1.0 );
0334
Controls.LanguagePull:SetAlpha( 0.5 );
0336
Controls.SpokenLanguagePull:SetAlpha( 0.5 );
0338
Controls.AutoUIAssetsCheck:SetAlpha( 0.5 );
0340
Controls.SmallUIAssetsCheck:SetAlpha( 0.5 );
1183
controlTable.Button:SetAlpha(.3);


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
1022
controlTable.Button:SetAlpha( 0.4 );
1024
controlTable.Button:SetAlpha( 1.0 );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
2564
g_OtherPlayersButtons[ iLoopPlayer ][ SubTableName ].Button:SetAlpha( 1 );
2568
g_OtherPlayersButtons[ iLoopPlayer ][ SubTableName ].Button:SetAlpha( 0.5 );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
0783
self.m_Instance.Anchor:SetAlpha( g_DimAlpha );
0796
self.m_Instance.Anchor:SetAlpha( 1.0 );
0797
self.m_Instance.HealthBar:SetAlpha( 1.0 );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0263
instance.UnitActionButton:SetAlpha( 0.4 );
0266
instance.UnitActionButton:SetAlpha( 1.0 );



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.