UIElement.SetSizeY (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:SetSizeY(int newSizeY)


Parameters

newSizeY: No description available.


Source code samples

Too many occurences. Only 50 out of 88 are listed.

AdvancedSetup.lua

UI/FrontEnd/GameSetup/AdvancedSetup.lua
1300
Controls.MainGrid:SetSizeY( screenY - TOP_COMPENSATION );
1301
Controls.ListingScrollPanel:SetSizeY( screenY - TOP_COMPENSATION - BOTTOM_COMPENSATION - LOCAL_SLOT_COMPENSATION );
1302
Controls.OptionsScrollPanel:SetSizeY( screenY - TOP_COMPENSATION - BOTTOM_COMPENSATION );


CityStateDiploPopup.lua

UI/InGame/Popups/CityStateDiploPopup.lua
0775
buttonControl:SetSizeY(sizeY);
0776
animControl:SetSizeY(sizeY+WordWrapAnimOffset);


CityStateDiploPopup.lua (G&K)

DLC/Expansion/UI/InGame/Popups/CityStateDiploPopup.lua
0042
buttonHL:SetSizeY(sizeY+WordWrapAnimOffset);


CityView.lua

UI/InGame/CityView/CityView.lua
1477
Controls.BuildingListBackground:SetSizeY( size );
1480
Controls.ScrollPanel:SetSizeY( size );


DiploCorner.lua

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


DiploGlobalRelationships.lua

UI/InGame/Popups/DiploGlobalRelationships.lua
0296
controlTable.Button:SetSizeY(newSizeY);
0297
controlTable.ButtonAnim:SetSizeY(newSizeY);
0298
controlTable.ButtonAnimGrid:SetSizeY(newSizeY+5);


DiploList.lua

UI/InGame/DiploList.lua
0037
Controls.OuterGrid:SetSizeY( MAX_SIZE );
0038
Controls.ScrollPanel:SetSizeY( MAX_SIZE - PANEL_OFFSET );
0585
Controls.OuterGrid:SetSizeY( size );
0586
Controls.ScrollPanel:SetSizeY( size - PANEL_OFFSET );


DiploRelationships.lua

UI/InGame/Popups/DiploRelationships.lua
0095
controlTable.LeaderButton:SetSizeY(buttonY);
0096
controlTable.LeaderButtonHL:SetSizeY(buttonY);
0215
controlTable.LeaderNameStack:SetSizeY(buttonY);
0221
controlTable.DiploButton:SetSizeY(buttonY);
0222
controlTable.DiploButtonHL:SetSizeY(buttonY);
0606
pStack.ResourcesLabel:SetSizeY(resourceY);


DiscussionDialog.lua

UI/InGame/LeaderHead/DiscussionDialog.lua
0154
Controls.LeaderSpeechBorderFrame:SetSizeY( contentSize );
0155
Controls.LeaderSpeechFrame:SetSizeY( contentSize - offsetsBetweenFrames );


EndGameMenu.lua

UI/InGame/Popups/EndGameMenu.lua
0210
Controls.GameOverContainer:SetSizeY(sizeY + 30);


EnemyUnitPanel.lua

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


HallOfFame.lua

UI/InGame/Popups/HallOfFame.lua
0174
controlTable.GameItem:SetSizeY(itemY);


Lobby.lua

UI/FrontEnd/Multiplayer/Lobby.lua
0545
Controls.ListingStack:SetSizeY( SIZE );
0546
Controls.ListingScrollPanel:SetSizeY( SIZE );


MPGameSetupScreen.lua

UI/FrontEnd/Multiplayer/GameSetup/MPGameSetupScreen.lua
0168
Controls.OptionsScrollPanel:SetSizeY( SIZE );


MPList.lua

UI/InGame/WorldView/MPList.lua
0018
Controls.MPListScroll:SetSizeY( screenY - MINIMAP_GUESS - TOP_COMPENSATION - CHAT_COMPENSATION );


NotificationLogPopup.lua

UI/InGame/Popups/NotificationLogPopup.lua
0067
controlTable.Button:SetSizeY(sizeY);
0068
controlTable.TextAnim:SetSizeY(sizeY);
0069
controlTable.TextHL:SetSizeY(sizeY);


NotificationPanel.lua

UI/InGame/WorldView/NotificationPanel.lua
0364
Controls.SmallScrollPanel:SetSizeY( g_SmallScrollMax - bigY );


Ranking.lua

UI/InGame/Popups/Ranking.lua
0045
controlTable.MainStack:SetSizeY(buttonY);
0046
controlTable.SelectHighlight:SetSizeY(buttonY);


StagingRoom.lua

UI/FrontEnd/Multiplayer/StagingRoom.lua
0793
Controls.OptionsScrollPanel:SetSizeY( Controls.VerticalTrim:GetSizeY() - 2);
1191
controlTable.Box:SetSizeY( controlTable.String:GetSizeY() + 15 );
1354
Controls.ListingScrollPanel:SetSizeY( screenY - TOP_COMPENSATION - LOCAL_SLOT_COMPENSATION - BOTTOM_COMPENSATION - TOP_FRAME );
1357
Controls.VerticalTrim:SetSizeY( screenY - TOP_COMPENSATION - BOTTOM_COMPENSATION - TOP_FRAME );


TechPopup.lua

UI/InGame/TechPopup.lua
0106
Controls.ScrollPanelBlackFrame:SetSizeY( screenY );
0107
Controls.ScrollPanelFrame:SetSizeY( screenY );
0109
Controls.ScrollPanel:SetSizeY( screenY - 244 );
0111
Controls.ScrollPanel:SetSizeY( screenY - 300 );


UnitList.lua

UI/InGame/UnitList.lua
0208
instance.StatusBox:SetSizeY(statusY);
0209
instance.SelectionFrame:SetSizeY(statusY);
0210
instance.Root:SetSizeY(statusY);
0211
instance.SelectHL:SetSizeY(statusY);
0212
instance.SelectAnim:SetSizeY(statusY);



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.