Skip to content

Commit

Permalink
Merge pull request #323 from randovania/custom-title
Browse files Browse the repository at this point in the history
Add custom title screen texture
  • Loading branch information
ThanatosGit authored Apr 21, 2024
2 parents 25fb71f + fef422a commit 57066d0
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 0 deletions.
96 changes: 96 additions & 0 deletions src/open_samus_returns_rando/files/custom/sprites_splashes.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
GUI.AddSpriteSheetItem("splashxbla", "gui/textures/texturesplashlivearcade.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashlegalps3eng", "gui/textures/texturesplashlegalps3eng.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashlegalps3jap", "gui/textures/texturesplashlegalps3jap.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashlegalxboxeng", "gui/textures/texturesplashlegalxboxeng.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashlegalxboxjap", "gui/textures/texturesplashlegalxboxjap.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashlegal", "gui/textures/texturesplashlegal.bctex", {
TextureWidth = "512",
TextureHeight = "256",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "400",
VPixelScale = "240"
})
GUI.AddSpriteSheetItem("splashkonami", "gui/textures/texturesplashkonami.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashengine", "gui/textures/texturesplashengine.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashantipiracyjap", "gui/textures/texturesplashantipiracyjap.bctex", {
TextureWidth = "2048",
TextureHeight = "1024",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "1280",
VPixelScale = "720"
})
GUI.AddSpriteSheetItem("splashgamelogo", "gui/textures/gamelogo.bctex", {
TextureWidth = "512",
TextureHeight = "256",
UPixelOffset = "0",
VPixelOffset = "0",
UPixelScale = "350",
VPixelScale = "155"
})
GUI.AddSpriteSheetItem("splashgamelogoflare", "gui/textures/gamelogo.bctex", {
TextureWidth = "512",
TextureHeight = "256",
UPixelOffset = "261",
VPixelOffset = "186",
UPixelScale = "251",
VPixelScale = "115"
})
GUI.AddSpriteSheetItem("splashgamelogocopyright", "gui/textures/gamelogo.bctex", {
TextureWidth = "512",
TextureHeight = "256",
UPixelOffset = "0",
VPixelOffset = "245",
UPixelScale = "90",
VPixelScale = "11"
})
Binary file not shown.
1 change: 1 addition & 0 deletions src/open_samus_returns_rando/lua_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def _add_replacement_files(self, editor: PatcherEditor, configuration: dict):
lua_util.replace_script(editor, "actors/props/samusship/scripts/samusship", "custom/ship.lua")
lua_util.replace_script(editor, "actors/props/savestation/scripts/savestation", "custom/savestation.lua")
lua_util.replace_script(editor, "actors/props/heatzone/scripts/heatzone", "custom/heatzone.lua")
lua_util.replace_script(editor, "gui/scripts/sprites_splashes", "custom/sprites_splashes.lua")

def save_modifications(self, editor: PatcherEditor, configuration: dict):
self._add_replacement_files(editor, configuration)
Expand Down

0 comments on commit 57066d0

Please sign in to comment.