UIElement.SetSizeVal (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

void UIElement:SetSizeVal(int baseWidth, int newHeight)


Parameters

baseWidth: No description available.
newHeight: No description available.


Source code samples

Redundant occurences have been removed.

ChoosePantheonPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChoosePantheonPopup.lua
0022
Controls.ItemScrollPanel:SetSizeVal(spWidth, spHeight);
0033
Controls.BottomPanel:SetSizeVal(bpWidth, bpHeight);
0120
itemInstance.Button:SetSizeVal(buttonWidth, newHeight);
0121
itemInstance.Box:SetSizeVal(buttonWidth + 20, newHeight);
0122
itemInstance.BounceAnim:SetSizeVal(buttonWidth + 20, newHeight + 5);
0123
itemInstance.BounceGrid:SetSizeVal(buttonWidth + 20, newHeight + 5);


ChooseReligionPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ChooseReligionPopup.lua
0521
itemInstance.Button:SetSizeVal(bw, newHeight);
0522
itemInstance.AnimGrid:SetSizeVal(gw, newHeight + 5);


EspionageOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/EspionageOverview.lua
0343
Controls.ConfirmFrame:SetSizeVal(width + 60, height + 120);
1482
instance.Base:SetSizeVal(baseWidth, height + 22);
1711
Controls.NotificationFrame:SetSizeVal(width + 60, height + 140);


InstalledPanel.lua

UI/FrontEnd/Modding/InstalledPanel.lua
0257
listing.ProgressBar:SetSizeVal(pct * 390, ph);


MiniMapPanel.lua

UI/InGame/WorldView/MiniMapPanel.lua
0012
Controls.Minimap:SetSizeVal( width, height );


ReligionOverview.lua (G&K)

DLC/Expansion/UI/InGame/Popups/ReligionOverview.lua
0376
entry.Base:SetSizeVal(bw, bdh + 18);


ReplayViewer.lua

UI/InGame/Popups/ReplayViewer.lua
0281
messageInstance.Base:SetSizeVal(baseWidth, newHeight);


TechPanel.lua

UI/InGame/TechPanel.lua
0110
Controls.ActiveStyle:SetSizeVal( numButtonsAdded*56 + 76, 126 );
0112
Controls.ActiveStyle:SetSizeVal( numButtonsAdded*56 + 130, 126 );


UnitFlagManager.lua

UI/InGame/UnitFlagManager.lua
1065
controlTable.Button:SetSizeVal(newWidth,bh);


UnitPanel.lua

UI/InGame/WorldView/UnitPanel.lua
0301
Controls.PrimaryStretchy:SetSizeVal( stretchySize.x, stackSize.y + buildCityButtonSize + 348 );
0324
Controls.SecondaryStretchy:SetSizeVal( stretchySize.x, stackSize.y + 290 );
0356
Controls.WorkerActionPanel:SetSizeVal( stackSize.x, math.floor((numBuildActions-1) / numberOfButtonsPerRow) * buttonSize + buttonPadding + buttonOffsetY + rbOffset + workerPanelSizeOffsetY );


WonderPopup.lua

UI/InGame/Popups/WonderPopup.lua
0050
Controls.WonderSplash:SetSizeVal( m_fOriginalSizeX * (1 + m_fScaleFactor), m_fOriginalSizeY * (1 + m_fScaleFactor) );
0109
Controls.WonderSplash:SetSizeVal( m_fOriginalSizeX, m_fOriginalSizeY );
0112
Controls.WonderSplash:SetSizeVal( m_fOriginalSizeX * fScale,
0113
m_fOriginalSizeY * fScale );



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.