Skip to content

Instantly share code, notes, and snippets.

@PilzAdam
Last active December 19, 2015 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilzAdam/5970006 to your computer and use it in GitHub Desktop.
Save PilzAdam/5970006 to your computer and use it in GitHub Desktop.
local overlay = nil
local background = nil
local header = nil
local footer = nil
local clouds = false
texturepack_game_overlay = texture(texturepack_path .. gameid .. "_overlay.png")
texturepack_game_background = texture(texturepack_path .. gameid .. "_background.png")
texturepack_game_header = texture(texturepack_path .. gameid .. "_header.png")
texturepack_game_footer = texture(texturepack_path .. gameid .. "_footer.png")
texturepack_overlay = texture(texturepack_path .. "overlay.png")
texturepack_background = texture(texturepack_path .. "background.png")
texturepack_header = texture(texturepack_path .. "header.png")
texturepack_footer = texture(texturepack_path .. "footer.png")
game_overlay = texture(game_path .. "menu/overlay.png")
game_background = texture(game_path .. "menu/background.png")
game_header = texture(game_path .. "menu/header.png")
game_footer = texture(game_path .. "menu/footer.png")
default_overlay = texture(path_share .. "textures/base/pack/menu_overlay.png")
default_background = texture(path_share .. "textures/base/pack/menu_background.png")
default_header = texture(path_share .. "textures/base/pack/menu_header.png")
default_footer = texture(path_share .. "textures/base/pack/menu_footer.png")
if singleplayer then
overlay = texturepack_game_overlay or game_overlay
background = texturepack_game_background or game_background
header = texturepack_game_header or game_header
footer = texturepack_game_footer or game_footer
else
overlay = texturepack_overlay or default_overlay
background = texturepack_background or default_background
header = texturepack_header or default_header
footer = texturepack_footer or default_footer
end
if not background and setting.getBool("enable_clouds") then
clouds = true
end
if not background and not clouds then
background = "color:blue"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment