Added New Mods; Swapped Mods and Removed Some

Removed EGUI in favor of UI Rework by Sota

Added in GTR Optimized for higher res textures, over Zone Reality Remade and removed all files that conflicted from ZRR to save storage space.
This commit is contained in:
2024-03-30 06:43:01 -04:00
parent 48d440e14c
commit 255081e1ee
2883 changed files with 39223 additions and 61569 deletions
@@ -0,0 +1,21 @@
function on_xml_read()
RegisterScriptCallback("on_xml_read", function(xml_file_name, xml_obj)
if xml_file_name == [[ui\ui_mm_main.xml]]
or xml_file_name == [[ui\ui_mm_main_16.xml]]
then
math.randomseed(os.time())
local res = xml_obj:query("menu_sound > menu_music")
local mus_t = {
"music\\mm_music\\track_1",
}
local picked_track = mus_t[math.random(1, #mus_t)]
if res[1] then
el = res[1]
xml_obj:setText (el, picked_track)
end
end
end)
end
@@ -0,0 +1,30 @@
local snd
local mus_t = {
"music\\mm_music\\track_1",
}
function main_menu_on_init()
math.randomseed(os.time())
local picked_track = mus_t[math.random(1, #mus_t)]
if not picked_track then return end
if snd then return end
snd = sound_object(picked_track)
if not snd then return end
snd:play(db.actor,0,sound_object.s2d)
end
function main_menu_on_quit()
if not snd then return end
snd:stop()
snd = nil
end
function on_game_start()
RegisterScriptCallback("main_menu_on_init", main_menu_on_init)
RegisterScriptCallback("main_menu_on_quit", main_menu_on_quit)
end