UIElement.SetSize (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:28, 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:SetSize(table blockSize)


Parameters

blockSize: No description available.


Source code samples

Redundant occurences have been removed.

CityView.lua

UI/InGame/CityView/CityView.lua
0825
Controls.ProdQueueBackground:SetSize(panelSize);
1094
Controls.BoxOSlackers:SetSize( frameSize );


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
0113
Controls.ScrollBar:SetSize( scrollBarSize );
0114
Controls.LeftScrollBar:SetSize( scrollBarSize );
0121
Controls.ScrollPanel:SetSize( scrollPanelSize );
0124
Controls.LeftScrollPanel:SetSize( leftScrollPanelSize );
1768
innerFrame:SetSize( frameSize );
1771
outerFrame:SetSize( frameSize );


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
1683
Controls.MyRedBar:SetSize(healthBarSize);
1688
Controls.MyYellowBar:SetSize(healthBarSize);
1693
Controls.MyGreenBar:SetSize(healthBarSize);
1709
Controls.MyDeltaBar:SetSize(damageBarSize);
1710
Controls.MyDeltaBarFlash:SetSize(damageBarSize);
1728
Controls.TheirRedBar:SetSize(healthBarSize);
1733
Controls.TheirYellowBar:SetSize(healthBarSize);
1738
Controls.TheirGreenBar:SetSize(healthBarSize);
1754
Controls.TheirDeltaBar:SetSize(damageBarSize);
1755
Controls.TheirDeltaBarFlash:SetSize(damageBarSize);


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0734
Controls.DetailValuesStack:SetSize{x = max_detail_value_width, y =  details_size.y};


ProductionPopup.lua

UI/InGame/Popups/ProductionPopup.lua
0042
Controls.Backdrop:SetSize( backdropSize );


SetCivNames.lua

UI/FrontEnd/GameSetup/SetCivNames.lua
0269
Controls.MainBox:SetSize( frameSize );
0272
Controls.BackgroundBox:SetSize( frameSize );
0275
Controls.FrameBox:SetSize( frameSize );


SocialPolicyPopup.lua

UI/InGame/Popups/SocialPolicyPopup.lua
0706
pipe.ConnectorImage:SetSize(size);


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0155
hConnection.TechPipeIcon:SetSize(size);
0163
vConnection.TechPipeIcon:SetSize(size);
0204
startPipe.TechPipeIcon:SetSize(connectorSize);
0271
startPipe.TechPipeIcon:SetSize(   Vector2(40, 42) );
0394
thisEraBlockInstance.EraBlock:SetSize( blockSize );
0397
thisEraBlockInstance.FrameBottom:SetSize( blockSize );
0401
thisEraBlockInstance.OldBar:SetSize( blockSize );
0404
thisEraBlockInstance.OldBlock:SetSize( blockSize );
0408
thisEraBlockInstance.CurrentBlock:SetSize( blockSize );
0411
thisEraBlockInstance.CurrentBlock1:SetSize( blockSize );
0414
thisEraBlockInstance.CurrentBlock2:SetSize( blockSize );
0418
thisEraBlockInstance.CurrentTop:SetSize( blockSize );
0421
thisEraBlockInstance.CurrentTop1:SetSize( blockSize );
0424
thisEraBlockInstance.CurrentTop2:SetSize( blockSize );
0428
thisEraBlockInstance.FutureBlock:SetSize( blockSize );


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0213
Controls.LeaderSpeechBorderFrame:SetSize( frameSize );
0216
Controls.LeaderSpeechFrame:SetSize( frameSize );


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0659
Controls.RedBar:SetSize(barSize);
0660
Controls.RedAnim:SetSize(barSize);
0665
Controls.YellowBar:SetSize(barSize);
0670
Controls.GreenBar:SetSize(barSize);



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.