UIElement.GetSizeY (Civ5 API)

From Civilization Modding Wiki
Jump to: navigation, 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

int UIElement:GetSizeY()


Returned Value

No description available.


Source code samples

Redundant occurences have been removed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
0226
sizeY = sizeY + gameOption.GameOptionRoot:GetSizeY();


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0774
local sizeY = textControl:GetSizeY() + WordWrapOffset;


CityView.lua

UI/InGame/CityView/CityView.lua
1475
local size = math.min( screenSizeY + 30, Controls.RightStack:GetSizeY() + 85 );
1479
size = math.min( screenSizeY - 65, Controls.RightStack:GetSizeY() + 85 );


DiploCorner.lua

UI/InGame/WorldView/DiploCorner.lua
0171
controlTable.Box:SetSizeY( controlTable.String:GetSizeY() + 8 );


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0284
print("controlTable.OuterStack:GetSizeY()" .. controlTable.OuterStack:GetSizeY());
0285
print("controlTable.PoliciesStack:GetSizeY()" .. controlTable.PoliciesStack:GetSizeY());
0286
print("controlTable.WondersStack:GetSizeY()" .. controlTable.WondersStack:GetSizeY());
0288
local sizeY = math.max(controlTable.OuterStack:GetSizeY(), controlTable.PoliciesStack:GetSizeY());
0289
local sizeY = math.max(sizeY, controlTable.WondersStack:GetSizeY());


DiploList.lua

UI/InGame/DiploList.lua
0584
local size = math.min( MAX_SIZE, Controls.OuterStack:GetSizeY() + 250 );


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0094
local buttonY = controlTable.CityStack:GetSizeY();
0214
local buttonY = controlTable.TradeStack:GetSizeY();
0220
buttonY = controlTable.LeaderButton:GetSizeY();
0605
local resourceY = pStack.ResourcesInfo:GetSizeY();


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0209
local sizeY = Controls.EndGameText:GetSizeY();


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0556
Controls.DetailsSeperator:SetSizeY( Controls.DetailsGrid:GetSizeY() );


HallOfFame.lua

UI/InGame/Popups/HallOfFame.lua
0173
local itemY = controlTable.SettingStack:GetSizeY();


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0256
local ph = listing.ProgressBar:GetSizeY();


MPList.lua

UI/InGame/WorldView/MPList.lua
0246
teamEntry.Root:SetSizeY( teamEntry.TeamStack:GetSizeY() + teamEntry.TeamName:GetSizeY() );


NotificationLogPopup.lua

UI/InGame/Popups/NotificationLogPopup.lua
0066
local sizeY = controlTable.TextStack:GetSizeY()
0067
controlTable.Button:SetSizeY(sizeY);


NotificationPanel.lua

UI/InGame/WorldView/NotificationPanel.lua
0363
local bigY = Controls.BigStack:GetSizeY();


Ranking.lua

UI/InGame/Popups/Ranking.lua
0044
local buttonY = controlTable.MyStack:GetSizeY();


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0327
local yAbsoluteOffset = (screenY * 0.5) - (Controls.MainPanel:GetSizeY() * 0.5);
0333
local graphDisplayHeight = Controls.GraphDisplay:GetSizeY();


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0793
Controls.OptionsScrollPanel:SetSizeY( Controls.VerticalTrim:GetSizeY() - 2);
1191
controlTable.Box:SetSizeY( controlTable.String:GetSizeY() + 15 );


UnitList.lua

UI/InGame/UnitList.lua
0204
local statusY = instance.Status:GetSizeY();



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.