Archived
Re-add helper function for file text management (fix).
This commit is contained in:
1 parent
2a7eac1a2e
commit
f9eccc68be
3 files changed
+17
-4
No files matched your search
+11
-3
@@ -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)
|
||||||
|
|||||||
+5
@@ -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
|
||||||
|
|||||||
@@ -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=
|
||||||
Reference in new issue
Block a user