Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/assets/opensb/interface/windowconfig
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 08:40:02 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-25 08:40:02 +1100
commit5981880a99b62b52c74619ea535abd24b6b132cf (patch)
tree1c15395c792dd7e2d01b32770753ab3e93f349a1 /assets/opensb/interface/windowconfig
parent8899a1d27016880708783f9452cb010d8111fe82 (diff)
title changes (moved quit button away) + better compressed all the pngs
Diffstat (limited to 'assets/opensb/interface/windowconfig')
-rw-r--r--assets/opensb/interface/windowconfig/title.config.patch4
-rw-r--r--assets/opensb/interface/windowconfig/title.config.patch.lua17
2 files changed, 17 insertions, 4 deletions
diff --git a/assets/opensb/interface/windowconfig/title.config.patch b/assets/opensb/interface/windowconfig/title.config.patch
deleted file mode 100644
index a120e11..0000000
--- a/assets/opensb/interface/windowconfig/title.config.patch
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "skyBackdropDarken" : [0, 0, 0, 64],
- "backdropImages" : [ [ [0, 0], "/interface/title/starbound.png", 0.5, [0.5, 0.5] ] ]
-} \ No newline at end of file
diff --git a/assets/opensb/interface/windowconfig/title.config.patch.lua b/assets/opensb/interface/windowconfig/title.config.patch.lua
new file mode 100644
index 0000000..c5d9e57
--- /dev/null
+++ b/assets/opensb/interface/windowconfig/title.config.patch.lua
@@ -0,0 +1,17 @@
+function patch(data)
+ for i, v in pairs(data.mainMenuButtons) do
+ if not v.rightAnchored then
+ v.offset[2] = v.offset[2] + (v.key == "quit" and -5 or 15)
+ end
+ end
+ data.skyBackdropDarken = jarray{0, 0, 0, 64}
+ data.backdropImages = jarray{
+ jarray{
+ jarray{0, 0},
+ "/interface/title/" .. (sb.makeRandomSource():randUInt(100) == 0 and "barst" or "starb") .. "ound.png",
+ 0.5,
+ jarray{0.5, 0.5}
+ }
+ }
+ return data
+end \ No newline at end of file