2 Commits
Author SHA1 Message Date
Overlord 015bcd8545 Merge branch 'release/v1.0.1' 2026-09-18 22:39:56 +02:00
Overlord f9eccc68be Re-add helper function for file text management (fix). 2026-09-18 22:39:43 +02:00
3 changed files with 17 additions and 4 deletions

No files matched your search

@@ -16,14 +16,22 @@ local function onClick(_target, _button)
end end
function RepackableItems_RejoinPrompt.show() function RepackableItems_RejoinPrompt.show()
--- @diagnostic disable-next-line: unnecessary-if
if dialog then if dialog then
return return
end end
local width, height = 420, 150 local width, height = 420, 150
local x = (getCore():getScreenWidth() - width) / 2
local x = (getCore():getScreenWidth() - width) / 2
local y = (getCore():getScreenHeight() - height) / 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:initialise()
dialog:addToUIManager() dialog:addToUIManager()
dialog:setAlwaysOnTop(true) dialog:setAlwaysOnTop(true)
@@ -299,6 +299,11 @@ function RepackableItems_Types.getBootText()
return bootText return bootText
end 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) function RepackableItems_Types.getEntry(fullType)
return byFullType[fullType] return byFullType[fullType]
end end
+1 -1
View File
@@ -6,6 +6,6 @@ id=RepackableItems
description=Adds configurable packing recipes for admin-selected items, letting them be crafted into their own boxes and cartons like vanilla's repacking. description=Adds configurable packing recipes for admin-selected items, letting them be crafted into their own boxes and cartons like vanilla's repacking.
description= <LINE> <LINE> Configure the items in Sandbox Options (RepackableItems.ItemList). Changes apply after a server restart; players are asked to rejoin once. description= <LINE> <LINE> Configure the items in Sandbox Options (RepackableItems.ItemList). Changes apply after a server restart; players are asked to rejoin once.
description= <LINE> <LINE> Multiplayer servers must set DoLuaChecksum=false in the server settings. description= <LINE> <LINE> Multiplayer servers must set DoLuaChecksum=false in the server settings.
modversion=1.0.0 modversion=1.0.1
versionMin=42.0.0 versionMin=42.0.0
incompatible= incompatible=