Find list by id

This commit is contained in:
Gabriel Tofvesson 2024-10-12 05:25:47 +02:00
parent ee1ba9585a
commit 059f9f2938

View File

@ -482,6 +482,7 @@ local PAGES = {
[Orientation:getId()] = Orientation.VERTICAL,
[Children:getId()] = {
List:new{
id = "list_request_count",
[Orientation:getId()] = Orientation.HORIZONTAL,
[Children:getId()] = {
Text:new{ text = "Request" },
@ -558,6 +559,7 @@ local PAGES = {
local dataDividerPad = paddedRequestCount:findById("data_divider")
local dataAvailableText = paddedRequestCount:findById("data_available")
local requestCapProgress = paddedRequestCount:findById("request_capacity")
local requestCountList = paddedRequestCount:findById("list_request_count")
local requestText = tostring(pageState.request)
local availableText = tostring(group:getItemCount())
@ -570,7 +572,7 @@ local PAGES = {
dataAvailableText:setText(availableText)
requestCapProgress:setProgress(pageState.request / group:getItemCount())
paddedRequestCount:adjustPositions()
requestCountList:adjustPositions()
end
local function bindRequestButton(increment)