-
-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy pathdev_warning.lua
More file actions
74 lines (70 loc) · 2.19 KB
/
Copy pathdev_warning.lua
File metadata and controls
74 lines (70 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
function G.FUNCS.mp_open_install_docs(e)
love.system.openURL("https://balatromp.com/docs/getting-started/installation")
end
function MP.UI.show_dev_build_warning()
if MP._dev_warning_shown then return end
if MP.EXPERIMENTAL.suppress_dev_warning then return end
local version = SMODS.Mods["Multiplayer"].version or ""
if not version:lower():match("dev") then return end
MP._dev_warning_shown = true
G.SETTINGS.paused = true
G.FUNCS.overlay_menu({
definition = create_UIBox_generic_options({
no_back = true,
no_esc = true,
contents = {
MP.UI.UTILS.create_column({ align = "cm", padding = 0.15 }, {
MP.UI.UTILS.create_row({ align = "cm", padding = 0.1 }, {
MP.UI.UTILS.create_text_node("MULTIPLAYER", {
scale = 0.8,
colour = G.C.UI.TEXT_LIGHT,
}),
}),
MP.UI.UTILS.create_row({ align = "cm", padding = 0.05 }, {
MP.UI.UTILS.create_text_node("Hand of cards, off the workbench - " .. version, {
scale = 0.55,
colour = G.C.MULT,
}),
}),
MP.UI.UTILS.create_row({ align = "cm", padding = 0.04 }, {
MP.UI.UTILS.create_text_node("You're playing a dev build - jokers may misbehave.", {
scale = 0.4,
colour = G.C.UI.TEXT_LIGHT,
}),
}),
MP.UI.UTILS.create_row({ align = "cm", padding = 0.04 }, {
MP.UI.UTILS.create_text_node("Ranked is locked. You may desync your nemesis.", {
scale = 0.4,
colour = G.C.UI.TEXT_LIGHT,
}),
}),
MP.UI.UTILS.create_row({ align = "cm", padding = 0.04 }, {
MP.UI.UTILS.create_text_node("For a clean shuffle, get the launcher below.", {
scale = 0.4,
colour = G.C.UI.TEXT_LIGHT,
}),
}),
MP.UI.UTILS.create_row({ align = "cm", padding = 0.15 }, {
UIBox_button({
label = { "Grab the launcher" },
button = "mp_open_install_docs",
colour = HEX("72A5F2"),
minw = 4.2,
scale = 0.5,
col = true,
}),
MP.UI.UTILS.create_blank(0.25, 0.1),
UIBox_button({
label = { "OK, I'll risk it" },
button = "exit_overlay_menu",
colour = G.C.RED,
minw = 3.2,
scale = 0.5,
col = true,
}),
}),
}),
},
}),
})
end