n precisa ser flash.. tudo da pra faze pelo otui e .lua.. só ta dificil, mas da pra fazer sim..
@Banana
entao, eu ja consegui fazer uma scrollbar mas tipo ficou só a scrollbar... ela nao funciona.. ela aparece mas tipo n tem nenhum painel ligado a ela, e nao estou conseguindo fazer ligar =/
Veja como está ficando:
http://img42.imageshack.us/img42/2059/imagemjfq.jpg
shop.lua
local shopWindow
local shopButton
local shopTabBar
local premiumPanel
local itenPanel
local outfitPanel
function init()
shopWindow = g_ui.displayUI('shop')
shopWindow:hide()
shopTabBar = shopWindow:getChildById('shopTabBar')
shopTabBar:setContentWidget(shopWindow:getChildById('shopTabContent'))
premiumPanel = g_ui.loadUI('premium')
shopTabBar:addTab('Premium', premiumPanel, '/mods/shop/imagens/premium')
--itenPanel = g_ui.loadUI('itens')
--shopTabBar:addTab('Itens', itenPanel, '/mods/shop/imagens/iten')
--outfitPanel = g_ui.loadUI('outfits')
--shopTabBar:addTab('Outfits', outfitPanel, '/mods/shop/imagens/outfit')
shopButton = modules.client_topmenu.addRightButton('shopButton', 'SHOP', 'imagens/shop', toggle)
end
function terminate()
shopWindow:destroy()
shopButton:destroy()
end
function toggle()
if shopButton:isOn() then
shopWindow:hide()
shopButton:setOn(false)
else
shopWindow:show()
shopButton:setOn(true)
end
end
shop.otui
MainWindow
id: shopWindow
!text: tr('Draky Shop System')
size: 480 340
TabBarVertical
id: shopTabBar
anchors.top: parent.top
anchors.left: parent.left
anchors.bottom: parent.bottom
Panel
id: shopTabContent
anchors.top: shopTabBar.top
anchors.left: shopTabBar.right
anchors.right: parent.right
anchors.bottom: okButton.top
margin-left: 10
margin-bottom: 10
ScrollablePanel
id: scrollTab
anchors.fill: parent
margin-right: 12
vertical-scrollbar: consoleScrollBar
layout:
type: verticalBox
align-bottom: true
border-width: 1
border-color: #202327
background: #00000066
inverted-scroll: true
padding: 1
VerticalScrollBar
id: consoleScrollBar
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
step: 14
pixels-scroll: true
Button
id: okButton
!text: tr('Ok')
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
@onClick: toggle()
premium.otui
Panel
Button
id: button1
!text: 'vamos testar:'
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
height: 75
margin-top: 5
margin-left: 10
margin-right: 15
Button
id: button2
!text: 'vamos testar2:'
anchors.left: prev.left
anchors.right: prev.right
anchors.top: prev.bottom
height: 75
margin-top: 5
Button
id: button3
!text: 'vamos testar2:'
anchors.left: prev.left
anchors.right: prev.right
anchors.top: prev.bottom
margin-top: 5
height: 75
Button
id: button4
!text: 'vamos testar2:'
anchors.left: prev.left
anchors.right: prev.right
anchors.top: prev.bottom
margin-top: 5
height: 75
Button
id: button5
!text: 'vamos testar2:'
anchors.left: prev.left
anchors.right: prev.right
anchors.top: prev.bottom
margin-top: 5
height: 75