Compare commits
2 Commits
c03a75eb4b
...
fb5fe8e977
Author | SHA1 | Date | |
---|---|---|---|
fb5fe8e977 | |||
7819207253 |
@ -168,7 +168,7 @@ init python:
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
print(f"Missing textures:\n{self.__repr__()}")
|
print(f"Missing textures:\n{self.__repr__()}")
|
||||||
return Text(f"TexErr\n{{color=#00ffff}}{{size=-6}}ID:{self.id}{{/size}}{{/color}}", color="#ff0000")
|
return Text(f"TexErr\n{{color=#00ffff}}{{size=-6}}ID:{self.id}{{/size}}{{/color}}", color="#ff0000")
|
||||||
|
sprites.extend(self.char.body.build_image(self.char.body._hash, matrix=matrix))
|
||||||
sprites.sort(key=itemgetter(2))
|
sprites.sort(key=itemgetter(2))
|
||||||
|
|
||||||
wmax, hmax = self.sizes
|
wmax, hmax = self.sizes
|
||||||
|
@ -9,12 +9,15 @@ screen mods():
|
|||||||
default selection = next(iter(mods_list.keys()))
|
default selection = next(iter(mods_list.keys()))
|
||||||
default checkbox_enabled = gui.theme("check_true")
|
default checkbox_enabled = gui.theme("check_true")
|
||||||
default checkbox_disabled = gui.theme("check_false")
|
default checkbox_disabled = gui.theme("check_false")
|
||||||
|
default mods_enabled_now = set(persistent.mods_enabled)
|
||||||
|
$ awaits_restart = bool(mods_enabled_now != persistent.mods_enabled)
|
||||||
|
|
||||||
fixed:
|
fixed:
|
||||||
|
|
||||||
## The grid of file slots.
|
## The grid of file slots.
|
||||||
hbox:
|
hbox:
|
||||||
spacing 5
|
spacing 5
|
||||||
|
|
||||||
vpgrid:
|
vpgrid:
|
||||||
cols 1
|
cols 1
|
||||||
scrollbars "vertical"
|
scrollbars "vertical"
|
||||||
@ -37,8 +40,9 @@ screen mods():
|
|||||||
$ enabled = bool(name in persistent.mods_enabled)
|
$ enabled = bool(name in persistent.mods_enabled)
|
||||||
$ selected = (name == selection)
|
$ selected = (name == selection)
|
||||||
|
|
||||||
|
|
||||||
if selected:
|
if selected:
|
||||||
$ action = Function(toggle_mod, name)
|
$ action = ToggleMod(name)
|
||||||
else:
|
else:
|
||||||
$ action = SetScreenVariable("selection", name)
|
$ action = SetScreenVariable("selection", name)
|
||||||
|
|
||||||
@ -70,6 +74,8 @@ screen mods():
|
|||||||
else:
|
else:
|
||||||
add checkbox_disabled align (0.95, 0.5)
|
add checkbox_disabled align (0.95, 0.5)
|
||||||
|
|
||||||
|
if awaits_restart:
|
||||||
|
text "Awaiting game restart to apply changes..."
|
||||||
|
|
||||||
frame:
|
frame:
|
||||||
style gui.theme("frame")
|
style gui.theme("frame")
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user