Add keybind and EscapeExitButton Balatro mods
This commit is contained in:
parent
fa312ada5d
commit
ed708ccb64
|
@ -4,3 +4,6 @@
|
|||
[submodule "fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/MikasBalatro"]
|
||||
path = fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/MikasBalatro
|
||||
url = https://github.com/MikaSchoenmakers/MikasBalatro
|
||||
[submodule "fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL"]
|
||||
path = fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL
|
||||
url = https://github.com/Mi1cK/Milcks-QOL
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
--- STEAMODDED HEADER
|
||||
--- MOD_NAME: Escape Exit Button
|
||||
--- MOD_ID: EscapeExitButton
|
||||
--- MOD_AUTHOR: [Steamo]
|
||||
--- MOD_DESCRIPTION: Add an "Exit" button into the "Escape" menu
|
||||
|
||||
----------------------------------------------
|
||||
------------MOD CODE -------------------------
|
||||
|
||||
function G.FUNCS.exit_button(arg_736_0)
|
||||
G.SETTINGS.paused = true
|
||||
|
||||
love.event.quit()
|
||||
end
|
||||
|
||||
local createOptionsRef = create_UIBox_options
|
||||
function create_UIBox_options()
|
||||
contents = createOptionsRef()
|
||||
local exit_button = UIBox_button({
|
||||
minw = 5,
|
||||
button = "exit_button",
|
||||
label = {
|
||||
"Exit Game"
|
||||
}
|
||||
})
|
||||
table.insert(contents.nodes[1].nodes[1].nodes[1].nodes, #contents.nodes[1].nodes[1].nodes[1].nodes + 1, exit_button)
|
||||
return contents
|
||||
end
|
||||
|
||||
----------------------------------------------
|
||||
------------MOD CODE END----------------------
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 5b5db29d1b4501629a809a21526d57488fc471c4
|
Loading…
Reference in New Issue