Refactor
* Removed nonfunctional transform from gui_fade * Removed unused asyncio import * Unified the use of interface fade * Replaced function call with a Renpythonic text display in confirm context
This commit is contained in:
parent
f71070f7f3
commit
8d1a8b4ffa
@ -1,6 +1,4 @@
|
|||||||
init python:
|
init python:
|
||||||
import asyncio
|
|
||||||
|
|
||||||
class Doll(DollMethods):
|
class Doll(DollMethods):
|
||||||
# 0 - 50 = Skin/Body Layers
|
# 0 - 50 = Skin/Body Layers
|
||||||
# 51 - 100 = Face Layers
|
# 51 - 100 = Face Layers
|
||||||
|
@ -3,15 +3,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
image gui_fade:
|
image gui_fade:
|
||||||
Solid("#000")
|
Solid("#00000080")
|
||||||
alpha 0.0
|
|
||||||
|
|
||||||
on appear:
|
|
||||||
alpha 0.5
|
|
||||||
on show:
|
|
||||||
linear 0.1 alpha 0.5
|
|
||||||
on hide:
|
|
||||||
linear 0.1 alpha 0.0
|
|
||||||
|
|
||||||
image game_menu:
|
image game_menu:
|
||||||
contains:
|
contains:
|
||||||
|
@ -18,7 +18,7 @@ screen confirm(message, yes_action=Return(True), no_action=Return(False)):
|
|||||||
|
|
||||||
style_prefix gui.theme()
|
style_prefix gui.theme()
|
||||||
|
|
||||||
add "confirm_fade"
|
add "gui_fade"
|
||||||
|
|
||||||
frame:
|
frame:
|
||||||
padding (34, 34, 34, 34)
|
padding (34, 34, 34, 34)
|
||||||
@ -28,7 +28,7 @@ screen confirm(message, yes_action=Return(True), no_action=Return(False)):
|
|||||||
vbox:
|
vbox:
|
||||||
spacing 25
|
spacing 25
|
||||||
|
|
||||||
text _(message):
|
text "[message!t]":
|
||||||
xalign 0.5
|
xalign 0.5
|
||||||
text_align 0.5
|
text_align 0.5
|
||||||
|
|
||||||
@ -42,17 +42,6 @@ screen confirm(message, yes_action=Return(True), no_action=Return(False)):
|
|||||||
## Right-click and escape answer "no".
|
## Right-click and escape answer "no".
|
||||||
key "game_menu" action no_action
|
key "game_menu" action no_action
|
||||||
|
|
||||||
image confirm_fade:
|
|
||||||
Solid("#000")
|
|
||||||
alpha 0.0
|
|
||||||
|
|
||||||
on appear:
|
|
||||||
alpha 0.5
|
|
||||||
on show:
|
|
||||||
linear 0.3 alpha 0.5
|
|
||||||
on hide:
|
|
||||||
linear 0.3 alpha 0.0
|
|
||||||
|
|
||||||
style confirm_frame is gui_frame:
|
style confirm_frame is gui_frame:
|
||||||
padding (34, 34, 34, 34)
|
padding (34, 34, 34, 34)
|
||||||
xalign 0.5
|
xalign 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user