ScrollPanel (Civ5 Type)
This page is a part of the Lua and UI Reference (Civ5).
New Properties
AutoScrollBar
- Format: Unknown.
- Usage: Unknown.
FullClip
- Format: Unknown.
- Usage: Unknown.
HideScrollBar
- Format: Unknown.
- Usage: Unknown.
Vertical
- Format: Unknown.
- Usage: Unknown.
New Instance Methods
Methods are functions that belong to an object. Instance methods are invoked through a colon, as in caller:SomeMethod(<args>)
, where caller is an instance of ScrollPanel.
A colon implictly passes the caller object as the first argument. That is, the former call is equivalent to this one: caller.SomeMethod(caller, <args>)
int
|
GetRatio()
|
Inherited from ControlBase
XML Properties: none.
|
BuildEntry(string arg0, table arg1)
| ||||
|
CalculateInternals()
| ||||
|
CalculateInternalSize()
| ||||
|
CalculateSize()
| ||||
|
ClearEntries()
| ||||
Button
|
GetButton()
| ||||
|
RegisterCheckHandler((void func(bool bIsChecked)) OnPolicyInfo)
| ||||
|
RegisterSelectionCallback((void func(FaithPurchaseType v1, int v2)) OnChatTarget)
| ||||
|
SetCheck(bool cityBanners)
| ||||
|
SetPercent(int percentDone)
| ||||
|
SetPercents(float productionProgressPercent, float productionProgressPlusThisTurnPercent)
| ||||
|
SetScrollValue(int arg0)
| ||||
|
SetTexture(string textureName)
| ||||
|
SetTextureOffsetVal(int arg0, int offset)
| ||||
|
UnloadTexture()
| ||||
|
SetVoid2(ProcessType process)
| ||||
|
SetVoids(ResourceType building, ResourceType addToList)
| ||||
string
|
GetText()
| ||||
|
LocalizeAndSetText(string name, int searchString = nil, string minFaithForProphet = nil, unknown arg3, unknown arg4, unknown arg5, unknown arg6, unknown arg7, unknown arg8, string arg9, unknown arg10, unknown arg11)
| ||||
|
RegisterCallback(MouseType OnSearchTextEnter, (void func(PolicyBranchType policyBranchIndex, UnitType y, Button button)) OnClose = nil)
| ||||
|
SetText(string localizedString)
| ||||
|
SetVoid1(OrderType MAINTAIN_GOLD)
|
Common
|
ChangeParent(Image parent)
| ||||
|
DestroyAllChildren()
| ||||
string
|
GetID()
| ||||
|
GetNumChildren
| ||||
|
IsDisabled
| ||||
|
ReleaseChild(WorldAnchor arg0)
| ||||
|
SetDisabled(bool disableBanners)
| ||||
|
SortChildren((void func(unknown a, unknown b)) SortFunction)
|
Layout
XML Properties: SizeOffsetAnchorAnchorSide
unknown, int
|
GetOffsetVal()
| ||||
int
|
GetOffsetX()
| ||||
int
|
GetOffsetY()
| ||||
Vector2
|
GetSize()
| ||||
int, int
|
GetSizeVal()
| ||||
int
|
GetSizeX()
| ||||
int
|
GetSizeY()
| ||||
|
ReprocessAnchoring()
| ||||
|
SetAnchor(string arg0)
| ||||
|
SetOffset(Vector2 offset)
| ||||
|
SetOffsetVal(int xOffset, int yOffset)
| ||||
|
SetOffsetX(int xOffset)
| ||||
|
SetOffsetY(int TOP_COMPENSATION)
| ||||
|
SetSize(table blockSize)
| ||||
|
SetSizeVal(int baseWidth, int newHeight)
| ||||
|
SetSizeX(int width)
| ||||
|
SetSizeY(int newSizeY)
|
Appearance
XML Properties: HiddenStyleNoClipColorBranchAlpha
|
BranchResetAnimation()
| ||||
|
CalculateVisibilityBox
| ||||
int
|
IsHidden()
| ||||
|
SetAlpha(float DimAlpha)
| ||||
|
SetColor(table fadeColor, int arg1)
| ||||
|
SetColorByName(string colorSet)
| ||||
|
SetColorChannel(int arg0, float arg1)
| ||||
|
SetColorVal(int arg0, int arg1 = nil, int arg2 = nil, int arg3 = nil)
| ||||
|
SetHide(int disablePolicies)
| ||||
|
SetNoClip
|
Interaction
XML Properties: NeedsMouseOverConsumeMouseConsumeMouseOverConsumeMouseWheelConsumeMouseButton
|
GetConsumeMouseButton
| ||||
|
GetConsumeMouseOver
| ||||
|
GetConsumeMouseWheel
| ||||
bool
|
HasMouseOver()
| ||||
|
SetConsumeMouseButton
| ||||
|
SetConsumeMouseOver(bool arg0)
| ||||
|
SetConsumeMouseWheel
|
Tool Tip
XML Properties: ToolTipToolTipType
|
EnableToolTip(bool arg0)
| ||||
|
GetToolTipString
| ||||
|
IsToolTipEnabled
| ||||
|
LocalizeAndSetToolTip(string description, string minFaithForProphet = nil, string threshold, string moodText, string spyRank, string spyName, string spyRank, string spyName, unknown arg8, unknown arg9, string arg10, unknown arg11, unknown arg12)
| ||||
|
SetToolTipCallback((void func(Slider control)) TipHandler)
| ||||
|
SetToolTipString(string foodToolTip)
| ||||
|
SetToolTipType(string arg0)
|
Source code samples
Too many occurences. Only 10 out of 271 are listed.
AdvisorModal.xml
UI/InGame/Popups/AdvisorModal.xml
0019
|
<ScrollPanel Anchor="C,B" AnchorSide="I.O" Vertical="1" Offset="0,12" Size="400,400" AutoScrollBar="1"> |
CityView.xml (G&K)
DLC/Expansion/UI/InGame/CityView/CityView.xml
0306
|
<ScrollPanel Anchor="L,T" Offset="18,44" Size="272,500" Vertical="1" ID="ScrollPanel"> |
DiploCurrentDeals.xml
UI/InGame/Popups/DiploCurrentDeals.xml
0102
|
<ScrollPanel ID="ThemPocketPanel" Hidden="1" /> |
0220
|
<ScrollPanel Anchor="R,T" Offset="5,0" Size="210,400" Vertical="1" ID="ThemTablePanel" AutoScrollBar="1" > |
MilitaryOverview.xml
UI/InGame/Popups/MilitaryOverview.xml
0156
|
<ScrollPanel Anchor="L,T" Offset="200,29" Size="724,474" Vertical="1" ID="ScrollPanel" > |
MPGameSetupScreen.xml
UI/FrontEnd/Multiplayer/GameSetup/MPGameSetupScreen.xml
0027
|
<ScrollPanel Anchor="L,T" ID="OptionsScrollPanel" Vertical="1" Offset="40, 106" Size="884,344" AutoScrollBar="1"> |
SelectMapSize.xml
UI/FrontEnd/GameSetup/SelectMapSize.xml
0034
|
<ScrollPanel Offset="0,32" Size="330,372" Vertical="1" ID="ScrollPanel" > |
SocialPolicyPopup.xml
UI/InGame/Popups/SocialPolicyPopup.xml
0318
|
<ScrollPanel Anchor="C,T" Offset="0,86" Size="190,500" Vertical="1" ID="AutocracyPanel"> |
TechTree.xml
UI/InGame/TechTree/TechTree.xml
0013
|
<ScrollPanel Anchor="L,C" Size="Full,705" Vertical="0" ID="TechTreeScrollPanel"> |
VictoryProgress.xml
UI/InGame/Popups/VictoryProgress.xml
0431
|
<ScrollPanel Anchor="L,T" Offset="0,32" Size="596,539" Vertical="1" ID="ScoreScrollPanel"> |
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.