Skip to content

Commit 23e3946

Browse files
committed
Button to open and close DPP from the pause menu.
1 parent 18749e9 commit 23e3946

5 files changed

Lines changed: 24 additions & 2 deletions

File tree

callback_functions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function G.FUNCS.DPP_main_menu()
1010
offset = {x=0,y=0},
1111
major = G.ROOM_ATTACH,
1212
bond = 'Weak',
13-
no_esc = true
13+
no_esc = false
1414
},
1515
}
1616
end

localization/en-us.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ return {
22
misc = {
33
dictionary = {
44
dpp_name = "DebugPlusPlus",
5+
dpp_close = "Close DebugPlusPlus",
56

67
-- Config tab
78
dpp_cfg_label = "Mod options",
@@ -39,7 +40,7 @@ return {
3940
-- Run tab
4041
dpp_run_label = "Run",
4142
dpp_run_blind_label = "Blind",
42-
dpp_run_set_blind = "Set boos blind",
43+
dpp_run_set_blind = "Set boss blind",
4344
dpp_run_player_chips = "Player chips",
4445
dpp_run_blind_chips = "Required chips",
4546
dpp_run_ante_label = "Ante",

localization/es_ES.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ return {
22
misc = {
33
dictionary = {
44
dpp_name = "DebugPlusPlus",
5+
dpp_close = "Cerrar DebugPlusPlus",
56

67
-- Config tab
78
dpp_cfg_label = "Opciones del mod",

main_UI.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ function DPP.main_menu ()
7272
no_pips = true
7373
},
7474
}},
75+
UIBox_button{
76+
label = {localize("dpp_close")},
77+
scale = 1,
78+
minw = 2, minh = 0.5
79+
},
80+
{n = G.UIT.R, config = {minh = 0.1}}
7581
}}}},
7682

7783
{n = G.UIT.C, nodes = {{n = G.UIT.C, config = {align = "tm", colour = G.C[DPP.config.background_colour.selected], padding = 0.05, outline = 1, outline_colour = G.C.WHITE, r = 0.15}, nodes = { -- Tab

overrides.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,18 @@ function Game:update(dt)
4848
end
4949

5050
return ref(self,dt)
51+
end
52+
53+
local ref = create_UIBox_options
54+
55+
function create_UIBox_options(args)
56+
local tbl = ref()
57+
local dpp_button = UIBox_button{ label = {localize("dpp_name")}, button = "DPP_main_menu", minw = 5}
58+
59+
local t = create_UIBox_generic_options({ contents = {
60+
dpp_button,
61+
}})
62+
63+
table.insert(tbl.nodes[1].nodes[1].nodes[1].nodes,1,dpp_button)
64+
return tbl
5165
end

0 commit comments

Comments
 (0)