Remove GUI to fix #1

This commit is contained in:
2024-12-31 12:42:42 +08:00 committed by GitHub
parent 51c08a935d
commit f2b9816f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,62 +41,9 @@ local function updateCursors()
end end
end end
function G.FUNCS.refreshCursors(arg_736_0)
sendDebugMessage("refreshCursors")
updateCursors()
end
-- init cursors -- init cursors
updateCursors() updateCursors()
SMODS.registerUIElement("JCursor", {
{
n = G.UIT.R,
config = {
padding = 0.2,
align = "cm"
},
nodes = {
UIBox_button({
minw = 3.85,
button = "openModDirectory",
label = {
"Open directory"
}
}),
UIBox_button({
minw = 3.85,
button = "refreshCursors",
label = {
"Refresh cursor"
}
}),
UIBox_button({
minw = 3.85,
button = "openJCursorGithub",
label = {
"Github"
}
}),
}
}
})
function G.FUNCS.openModDirectory(arg_736_0)
url = "file://" .. love.filesystem.getSaveDirectory() .. MOD_DIRECTORY
sendDebugMessage("openModDirectory: " .. url)
love.system.openURL(url)
end
function G.FUNCS.openJCursorGithub(arg_736_0)
sendDebugMessage("Open Github!")
love.system.openURL("https://github.com/jie65535/JMods/tree/main/JCursor")
end
local function myDrag() local function myDrag()
if cursorDrag then if cursorDrag then
setCursor(cursorDrag) setCursor(cursorDrag)