Browse Source

dirt -> cloud

master
Mrchiantos 4 months ago
parent
commit
ebb71ca8be
4 changed files with 5 additions and 4 deletions
  1. +1
    -0
      builtin/mainmenu/init.lua
  2. +4
    -4
      builtin/mainmenu/textures.lua
  3. BIN
      textures/base/bg.png
  4. BIN
      textures/base/menu_bg.png

+ 1
- 0
builtin/mainmenu/init.lua View File

@@ -163,6 +163,7 @@ local function init_globals()
ui.update()

core.sound_play("main_menu", true)

end

init_globals()

+ 4
- 4
builtin/mainmenu/textures.lua View File

@@ -64,7 +64,7 @@ function mm_texture.reset()
if core.settings:get_bool("menu_clouds") then
core.set_clouds(true)
else
mm_texture.set_dirt_bg()
core.set_clouds(true)
end
end
end
@@ -91,7 +91,7 @@ function mm_texture.update_game(gamedetails)
if core.settings:get_bool("menu_clouds") then
core.set_clouds(true)
else
mm_texture.set_dirt_bg()
core.set_clouds(true)
end
end
@@ -173,13 +173,13 @@ end

function mm_texture.set_dirt_bg()
if mm_texture.texturepack ~= nil then
local path = mm_texture.texturepack .. DIR_DELIM .."default_dirt.png"
local path = mm_texture.texturepack .. DIR_DELIM .."bg.png"
if core.set_background("background", path, true, 128) then
return true
end
end
-- Use universal fallback texture in textures/base/pack
local minimalpath = defaulttexturedir .. "menu_bg.png"
local minimalpath = defaulttexturedir .. "bg.png"
core.set_background("background", minimalpath, true, 128)
end

BIN
textures/base/bg.png View File

Before After
Width: 64  |  Height: 64  |  Size: 8.3KB Width: 16  |  Height: 16  |  Size: 124B

BIN
textures/base/menu_bg.png View File

Before After
Width: 16  |  Height: 16  |  Size: 124B

Loading…
Cancel
Save