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:
|
||||
import asyncio
|
||||
|
||||
class Doll(DollMethods):
|
||||
# 0 - 50 = Skin/Body Layers
|
||||
# 51 - 100 = Face Layers
|
||||
|
@ -3,15 +3,7 @@
|
||||
#
|
||||
|
||||
image gui_fade:
|
||||
Solid("#000")
|
||||
alpha 0.0
|
||||
|
||||
on appear:
|
||||
alpha 0.5
|
||||
on show:
|
||||
linear 0.1 alpha 0.5
|
||||
on hide:
|
||||
linear 0.1 alpha 0.0
|
||||
Solid("#00000080")
|
||||
|
||||
image game_menu:
|
||||
contains:
|
||||
|
@ -18,7 +18,7 @@ screen confirm(message, yes_action=Return(True), no_action=Return(False)):
|
||||
|
||||
style_prefix gui.theme()
|
||||
|
||||
add "confirm_fade"
|
||||
add "gui_fade"
|
||||
|
||||
frame:
|
||||
padding (34, 34, 34, 34)
|
||||
@ -28,7 +28,7 @@ screen confirm(message, yes_action=Return(True), no_action=Return(False)):
|
||||
vbox:
|
||||
spacing 25
|
||||
|
||||
text _(message):
|
||||
text "[message!t]":
|
||||
xalign 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".
|
||||
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:
|
||||
padding (34, 34, 34, 34)
|
||||
xalign 0.5
|
||||
|
Loading…
Reference in New Issue
Block a user