UIElement.SetSizeX (Civ5 API)

From Civilization Modding Wiki
Revision as of 14:29, 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:SetSizeX(int width)


Parameters

width: No description available.


Source code samples

Redundant occurences have been removed.

CityBannerManager.lua

UI/InGame/CityBannerManager.lua
0763
BannerInstance.CityBannerBackgroundIcon:SetSizeX(iWidth);
0764
BannerInstance.CityBannerButtonGlow:SetSizeX(iWidth);
0765
BannerInstance.CityBannerButtonBase:SetSizeX(iWidth);
0778
BannerInstance.BannerButton:SetSizeX(iWidth);
0779
BannerInstance.CityBannerBackground:SetSizeX(iWidth);
0780
BannerInstance.CityBannerBackgroundHL:SetSizeX(iWidth);


CityView.lua

UI/InGame/CityView/CityView.lua
1300
Controls.ResourceDemandedBox:SetSizeX(Controls.ResourceDemandedString:GetSizeX() + 10);


EnemyUnitPanel.lua

UI/InGame/WorldView/EnemyUnitPanel.lua
0555
Controls.DetailsGrid:SetSizeX( sizeX );


MPList.lua

UI/InGame/WorldView/MPList.lua
0110
controlTable.Root:SetSizeX(260);
0113
controlTable.ClickEntry:SetSizeX(260);
0115
controlTable.Seperator:SetSizeX( 235 );
0117
controlTable.Root:SetSizeX(200);
0120
controlTable.ClickEntry:SetSizeX(200);
0122
controlTable.Seperator:SetSizeX( 175 );
0245
teamEntry.Root:SetSizeX( teamEntry.TeamStack:GetSizeX() );
0278
teamEntry.TeamBox:SetSizeX(260);
0280
teamEntry.TeamClickEntry:SetSizeX( 260 );
0282
teamEntry.TeamSeparator:SetSizeX( 235 );
0284
teamEntry.TeamBox:SetSizeX(200);
0286
teamEntry.TeamClickEntry:SetSizeX(200);
0288
teamEntry.TeamSeparator:SetSizeX( 175 );


TechTree.lua

UI/InGame/TechTree/TechTree.lua
0071
Controls.TechTreeScrollBar:SetSizeX( Controls.TechTreeScrollPanel:GetSize().x - 150 );



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.