-
Notifications
You must be signed in to change notification settings - Fork 1
/
__init__.py
28 lines (22 loc) · 934 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from modloader.modclass import Mod, loadable_mod
@loadable_mod
class MyAwSWMod(Mod):
name = "Music Viewer"
version = "v0.8"
author = "4onen"
dependencies = ["MagmaLink"]
def mod_load(self):
import jz_magmalink as ml
ml.register_mod_settings(self, screen='musicviewer_four_modsettings')
( ml.Overlay()
.add(['imagebutton auto "image/ui/musicviewer_four_musicbutton_%s.png":'\
,' xalign 0.655'\
,' yalign 0.965'\
,' action [Show("gallery", transition=dissolve), musicviewer_four.setup, Show("musicviewer_four_musicroom"), Play("audio", "se/sounds/open.ogg")]'\
,' hovered Play("audio", "se/sounds/select.ogg")'\
], condition="not persistent.musicviewer_four_musicviewer_off")
.compile_to("main_menu")
)
@staticmethod
def mod_complete():
pass