Ui XML ScrollContent - funovus/editor-wiki GitHub Wiki
Table of Contents
- [Ui XML Reference\ScrollContent](#ui-xml-referencescrollcontent)
|
Ui XML Reference\ScrollContent
The scrollable content frame. Automatically created by creating a NewHScroll(), NewVScroll(), or NewScroll() in lua. When creating the scroll elements in xml, the explicit declaration of this frame is only necessary to set the padding and spacing for the child frames.
<VScroll height="200" width="120" backgroundImage="frame01_blue">
<ScrollContent spacing="10" padding="10">
<Frame height="100" width="100" backgroundImage="cart" />
<Frame height="100" width="100" backgroundImage="cart" />
<Frame height="100" width="100" backgroundImage="cart" />
<Frame height="100" width="100" backgroundImage="cart" />
</ScrollContent>
</VScroll>
This XML produces the following UI:
The scrollable content frame.