UIElement.GetSizeVal (Civ5 API)

From Civilization Modding Wiki
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

int, int UIElement:GetSizeVal()


Returned Values

No description available.


Source code samples

Redundant occurences have been removed.

ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0016
local spWidth, spHeight = Controls.ItemScrollPanel:GetSizeVal();
0026
local bpWidth, bpHeight = Controls.BottomPanel:GetSizeVal();
0114
local buttonWidth, buttonHeight = itemInstance.Button:GetSizeVal();
0115
local descWidth, descHeight = itemInstance.Description:GetSizeVal();


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0514
local gw,gh = itemInstance.AnimGrid:GetSizeVal();
0515
local dw,dh = itemInstance.Description:GetSizeVal();
0516
local bw,bh = itemInstance.Button:GetSizeVal();


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0342
local width, height = Controls.ConfirmContent:GetSizeVal();
0987
local width, height = entry.PotentialMeterBack:GetSizeVal();
1480
local width, height = instance.Message:GetSizeVal();
1481
local baseWidth, baseHeight = instance.Base:GetSizeVal();
1710
local width, height = Controls.NotificationContent:GetSizeVal();


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0374
local bw,bh = entry.Base:GetSizeVal();
0375
local bdw,bdh = entry.BeliefDescription:GetSizeVal();


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0273
local baseWidth, baseHeight = messageInstance.Base:GetSizeVal();
0274
local msgWidth, msgHeight = messageInstance.MessageText:GetSizeVal();
0394
local graphWidth, graphHeight = Controls.GraphCanvas:GetSizeVal();


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
1046
local bw,bh = controlTable.Button:GetSizeVal();


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1059
local bw, bh = controlTable.Button:GetSizeVal();
1061
local tw, th = controlTable.Button:GetTextControl():GetSizeVal();


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0403
local name_length = Controls.UnitName:GetSizeVal();
0404
local box_length = Controls.UnitNameButton:GetSizeVal();
0410
name_length = Controls.UnitName:GetSizeVal();


WonderPopup.lua

UI/InGame/Popups/WonderPopup.lua
0049
m_fOriginalSizeX, m_fOriginalSizeY = Controls.WonderSplash:GetSizeVal();



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.