Re-add helper function for file text management (fix).

This commit is contained in:
Overlord committed 2026-09-18 22:39:43 +02:00
1 parent 2a7eac1a2e
commit f9eccc68be
3 files changed
+17 -4

No files matched your search

@@ -16,14 +16,22 @@ local function onClick(_target, _button)
end
function RepackableItems_RejoinPrompt.show()
--- @diagnostic disable-next-line: unnecessary-if
if dialog then
return
end
local width, height = 420, 150
local x = (getCore():getScreenWidth() - width) / 2
local x = (getCore():getScreenWidth() - width) / 2
local y = (getCore():getScreenHeight() - height) / 2
dialog = ISModalDialog:new(x, y, width, height,
getText("IGUI_RepackableItems_RejoinRequired"), false, nil, onClick, 0)
dialog = ISModalDialog:new(
x, y, width, height,
getText("IGUI_RepackableItems_RejoinRequired"),
false, nil, onClick, 0
)
dialog:initialise()
dialog:addToUIManager()
dialog:setAlwaysOnTop(true)
@@ -299,6 +299,11 @@ function RepackableItems_Types.getBootText()
return bootText
end
---The file text as of the last sync (may not be applied yet).
function RepackableItems_Types.getFileText()
return buildFileText(merged, configuredEntries)
end
function RepackableItems_Types.getEntry(fullType)
return byFullType[fullType]
end