UIElement.GetSize (Civ5 API)

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

Vector2 UIElement:GetSize()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

CityStateStatusHelper.lua (G&K)

DLC/Expansion/UI/CityStateStatusHelper.lua
0131
local size = barMarkerCtrl:GetSize().x;


CityView.lua

UI/InGame/CityView/CityView.lua
0018
local g_iPortraitSize = Controls.ProductionPortrait:GetSize().x;
0782
local panelSize = Controls.ProdQueueBackground:GetSize();


CivilopediaScreen.lua

UI/Civilopedia/CivilopediaScreen.lua
0110
local scrollBarWidth = Controls.ScrollBar:GetSize().x;
0111
local scrollPanelSize = Controls.ScrollPanel:GetSize();
0122
local leftScrollPanelSize = Controls.LeftScrollPanel:GetSize();
1765
contentSize = label:GetSize();


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0153
local contentSize = Controls.LeaderSpeech:GetSize().y + offsetOfString + bonusPadding;


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0017
local g_iPortraitSize = Controls.UnitPortrait:GetSize().x;


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0541
local size = detail.Label:GetSize();
0550
size = detailValue.Label:GetSize();
0600
local details_size = Controls.DetailsBox:GetSize();


SetCivNames.lua

UI/FrontEnd/GameSetup/SetCivNames.lua
0267
frameSize = Controls.MainBox:GetSize();
0270
frameSize = Controls.BackgroundBox:GetSize();
0273
frameSize = Controls.FrameBox:GetSize();


TechPanel.lua

UI/InGame/TechPanel.lua
0012
local techPortraitSize = Controls.TechIcon:GetSize().x;


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0071
Controls.TechTreeScrollBar:SetSizeX( Controls.TechTreeScrollPanel:GetSize().x - 150 );
0392
local blockSize = thisEraBlockInstance.EraBlock:GetSize();
0395
blockSize = thisEraBlockInstance.FrameBottom:GetSize();
0399
blockSize = thisEraBlockInstance.OldBar:GetSize();
0402
blockSize = thisEraBlockInstance.OldBlock:GetSize();
0406
blockSize = thisEraBlockInstance.CurrentBlock:GetSize();
0409
blockSize = thisEraBlockInstance.CurrentBlock1:GetSize();
0412
blockSize = thisEraBlockInstance.CurrentBlock2:GetSize();
0416
blockSize = thisEraBlockInstance.CurrentTop:GetSize();
0419
blockSize = thisEraBlockInstance.CurrentTop1:GetSize();
0422
blockSize = thisEraBlockInstance.CurrentTop2:GetSize();
0426
blockSize = thisEraBlockInstance.FutureBlock:GetSize();


TradeLogic.lua

UI/InGame/WorldView/TradeLogic.lua
0209
local contentSize = Controls.DiscussionText:GetSize().y + offsetOfString + bonusPadding;


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0024
local unitPortraitSize = Controls.UnitPortrait:GetSize().x;
0292
local stretchySize = Controls.PrimaryStretchy:GetSize();
0323
stretchySize = Controls.SecondaryStretchy:GetSize();
0331
stackSize = Controls.WorkerActionPanel:GetSize();


UnitPanel.lua (G&K)

DLC/Expansion/UI/InGame/WorldView/UnitPanel.lua
0292
local stackSize = Controls.PrimaryStack:GetSize();
0323
stackSize = Controls.SecondaryStack:GetSize();



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.