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

summaryrefslogtreecommitdiff
path: root/assets/opensb/interface/windowconfig/title.config.patch.lua
blob: 34d65c3b45f3eb46c712848c19ed7eeb7b095b88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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(300) == 0 and "barst" or "starb") .. "ound.png",
      0.5,
      jarray{0.5, 0.5}
    }
  }
  return data
end