Added New Mods and Profiles Folders

This is a complete rebuild of the modpack, with all new mods and updates for 1.5.3 of Anomaly.
This commit is contained in:
2025-01-14 05:07:53 -05:00
parent 85c665b107
commit 376b4b9689
21217 changed files with 546254 additions and 0 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