mirror of
https://github.com/jie65535/JMods.git
synced 2025-06-02 17:39:12 +08:00
Remove GUI to fix #1
This commit is contained in:
parent
51c08a935d
commit
f2b9816f7d
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user