Syl4s
Member
- Joined
- Apr 8, 2021
- Messages
- 4
- Reaction score
- 13
Could someone help me, the scrollbar is not working and is returning the error below.
The scrollbar in addons.ui is not working
shop.otui
addons.otui
The scrollbar in addons.ui is not working
shop.otui
Code:
MainWindow
id: shopWindow
!text: tr('Shop')
size: 480 340
@onEnter: modules.game_shop.hide()
@onEscape: modules.game_shop.hide()
TabBarVertical
id: shopTabBar
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: closeButton.top
Panel
id: shopTabContent
anchors.top: shopTabBar.top
anchors.left: shopTabBar.right
anchors.right: parent.right
anchors.bottom: closeButton.top
Button
id: closeButton
anchors.bottom: parent.bottom
anchors.right: parent.right
!text: tr('Close')
width: 90
@onClick: modules.game_shop.hide()
addons.otui
Lua:
AddonButton < UIButton
width: 97
height: 121
margin-left: 20
margin-bottom: 20
ScrollablePanel
ScrollablePanel
id: mainPanelScrollbar
vertical-scrollbar: mainPanelScrollbar
VerticalScrollBar
id: mainPanelScrollbar
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
margin-left:-20
minimum: 0
maximum: 100
step: 12
pixels-scroll: true
AddonButton
id: box1
image-source: /modules/game_shop/images/buttonimg/addon_espaceex
anchors.top: parent.top
anchors.left: parent.left
@onClick: modules.game_shop.buyExpaceEx()
AddonButton
id: box2
image-source: /modules/game_shop/images/buttonimg/addon_barbarian
anchors.top: prev.top
anchors.left: prev.right
@onClick: modules.game_shop.buyBarbarian()
AddonButton
id: box3
image-source: /modules/game_shop/images/buttonimg/addon_snakeness
anchors.top: prev.top
anchors.left: prev.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box4
image-source: /modules/game_shop/images/buttonimg/addon_theking
anchors.top: prev.top
anchors.left: prev.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box5
image-source: /modules/game_shop/images/buttonimg/addon_aqua
anchors.top: prev.top
anchors.left: prev.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box6
image-source: /modules/game_shop/images/buttonimg/addon_vikitrig
anchors.top: box1.bottom
anchors.left: parent.left
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box7
image-source: /modules/game_shop/images/buttonimg/addon_lancer
anchors.top: box2.bottom
anchors.left: box1.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box8
image-source: /modules/game_shop/images/buttonimg/addon_exploshion
anchors.top: box3.bottom
anchors.left: box2.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box9
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box4.bottom
anchors.left: box3.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box10
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box5.bottom
anchors.left: box4.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box11
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box6.bottom
anchors.left: parent.left
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box12
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box7.bottom
anchors.left: box1.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box13
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box8.bottom
anchors.left: box2.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box14
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box9.bottom
anchors.left: box3.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box15
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box10.bottom
anchors.left: box4.right
@onClick: modules.game_shop.buyBeggar()
AddonButton
id: box16
image-source: /modules/game_shop/images/buttonimg/addon_beggar
anchors.top: box11.bottom
anchors.left: parent.left
@onClick: modules.game_shop.buyBeggar()