From ed708ccb6450b9e40d4f37c140b3c98281d5fd1d Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 13 Mar 2024 11:15:36 -0400 Subject: [PATCH] Add keybind and EscapeExitButton Balatro mods --- .gitmodules | 3 ++ .../Roaming/Balatro/Mods/EscapeExitButton.lua | 31 +++++++++++++++++++ .../AppData/Roaming/Balatro/Mods/Milcks-QOL | 1 + 3 files changed, 35 insertions(+) create mode 100644 fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua create mode 160000 fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL diff --git a/.gitmodules b/.gitmodules index 01073e6..701464b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua b/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua new file mode 100644 index 0000000..558a695 --- /dev/null +++ b/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/EscapeExitButton.lua @@ -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---------------------- diff --git a/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL b/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL new file mode 160000 index 0000000..5b5db29 --- /dev/null +++ b/fake_home/.local/share/Steam/steamapps/compatdata/2379780/pfx/drive_c/users/steamuser/AppData/Roaming/Balatro/Mods/Milcks-QOL @@ -0,0 +1 @@ +Subproject commit 5b5db29d1b4501629a809a21526d57488fc471c4