aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollablePanel.gui
blob: 9047865c8a3fc5e9e007e088fe1b193b71a9f6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!--
  ~ Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod
  ~ Copyright (C) 2023  cyoung06 (syeyoung)
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU Affero General Public License as published
  ~ by the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU Affero General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Affero General Public License
  ~ along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->

<col crossAlign="STRETCH">
    <flexible>
        <row crossAlign="STRETCH">
            <flexible>
                <measure bind:size="viewportSize">
                    <clip>
                        <absXY bind:x="contentX" bind:y="contentY">
                            <UnconstrainedBox bind:direction="direction">
                                <measure bind:size="contentSize">
                                    <slot bind:child="$"/>
                                </measure>
                            </UnconstrainedBox>
                        </absXY>
                    </clip>
                </measure>
            </flexible>
            <SimpleVerticalScrollBar bind:ref="vertRef" bind:thickness="verticalThickness" min="0" bind:max="contentHeight" bind:current="y" bind:thumbValue="viewportHeight"/>
        </row>
    </flexible>
    <row>
        <flexible>
            <SimpleHorizontalScrollBar bind:ref="horzRef" bind:thickness="horizontalThickness" min="0" bind:max="contentWidth" bind:current="x" bind:thumbValue="viewportWidth"/>
        </flexible>
        <size bind:width="verticalThickness" bind:height="horizontalThickness">
            <bgcolor backgroundColor="#FF1F1F1F"/>
        </size>
    </row>
</col>