传奇代码

设置滚动容器上下箭头提示,可点击箭头滚动

LuaGM 29
GUI:removeAllChildren(ui.List)
local innH = 0
for i = 1, 9 do
    local layout = GUI:Layout_Create(ui.List, 'lay_' .. i, 0, 0, 300, 50, false)
    GUI:Text_Create(layout, 'test', 0, 0, 16, '#000000', '测试文本_' .. i)
    innH = i * 50
end
HUI:UI_Layout(ui.List, { dir = 1 })
HUI:Set_Scroll_Arrow(ui.Layout_1, ui.List, innH, 50)

1486b158-71f9-4414-8f2b-89a5d01004db.png

暂无