Alternate styling
* Implemented alternate styling for the say window used during CG scenes
This commit is contained in:
parent
45ddbb7321
commit
f88f036ea2
@ -210,6 +210,8 @@ style dark_say_label:
|
|||||||
style light_say_label:
|
style light_say_label:
|
||||||
color settings.get('text_color_day')
|
color settings.get('text_color_day')
|
||||||
|
|
||||||
|
style say_label_alt is say_dialogue_alt
|
||||||
|
|
||||||
# Say dialogue
|
# Say dialogue
|
||||||
|
|
||||||
style say_dialogue is default:
|
style say_dialogue is default:
|
||||||
@ -221,6 +223,10 @@ style dark_say_dialogue:
|
|||||||
style light_say_dialogue:
|
style light_say_dialogue:
|
||||||
color settings.get('text_color_day')
|
color settings.get('text_color_day')
|
||||||
|
|
||||||
|
style say_dialogue_alt:
|
||||||
|
color "#ffffff"
|
||||||
|
outlines [(1, "#000000", 1, 0)]
|
||||||
|
|
||||||
style say_thought is say_dialogue
|
style say_thought is say_dialogue
|
||||||
style dark_say_thought is dark_say_dialogue
|
style dark_say_thought is dark_say_dialogue
|
||||||
style light_say_thought is light_say_dialogue
|
style light_say_thought is light_say_dialogue
|
||||||
@ -255,6 +261,10 @@ style light_say_window is light_window:
|
|||||||
take say_window
|
take say_window
|
||||||
background "interface/frames/gold/frame.webp"
|
background "interface/frames/gold/frame.webp"
|
||||||
|
|
||||||
|
style say_window_alt:
|
||||||
|
take say_window
|
||||||
|
background "fade_gradient"
|
||||||
|
|
||||||
# Namebox
|
# Namebox
|
||||||
|
|
||||||
style namebox is gui_frame:
|
style namebox is gui_frame:
|
||||||
@ -272,6 +282,9 @@ style light_namebox is light_gui_frame:
|
|||||||
take namebox
|
take namebox
|
||||||
# background Transform(Frame("gui/light_namebox.png", 8, 8))
|
# background Transform(Frame("gui/light_namebox.png", 8, 8))
|
||||||
|
|
||||||
|
style namebox_alt:
|
||||||
|
take namebox
|
||||||
|
|
||||||
# Text
|
# Text
|
||||||
|
|
||||||
style dark_text:
|
style dark_text:
|
||||||
|
@ -38,6 +38,8 @@ screen say(who, what, side_image=None, icon=None):
|
|||||||
|
|
||||||
if text_inner_thought(what) and not renpy.showing("cg"):
|
if text_inner_thought(what) and not renpy.showing("cg"):
|
||||||
add "fade_gradient"
|
add "fade_gradient"
|
||||||
|
elif renpy.showing("cg"):
|
||||||
|
add "interface/bld.webp"
|
||||||
|
|
||||||
if side_image:
|
if side_image:
|
||||||
add side_image yalign 1.0 yanchor 1.0 zoom 0.5
|
add side_image yalign 1.0 yanchor 1.0 zoom 0.5
|
||||||
@ -45,25 +47,39 @@ screen say(who, what, side_image=None, icon=None):
|
|||||||
add SideImage()
|
add SideImage()
|
||||||
|
|
||||||
window id "window":
|
window id "window":
|
||||||
style gui.theme("say_window")
|
if renpy.showing("cg"):
|
||||||
|
style "say_window_alt"
|
||||||
|
|
||||||
|
if who:
|
||||||
|
window:
|
||||||
|
id "namebox"
|
||||||
|
style "namebox_alt"
|
||||||
|
text who:
|
||||||
|
style "say_label_alt"
|
||||||
|
|
||||||
|
text what:
|
||||||
|
id "what"
|
||||||
|
style "say_dialogue_alt"
|
||||||
|
else:
|
||||||
|
style gui.theme("say_window")
|
||||||
|
|
||||||
|
if who:
|
||||||
|
window:
|
||||||
|
id "namebox"
|
||||||
|
style gui.theme("namebox")
|
||||||
|
text who:
|
||||||
|
style gui.theme("say_label")
|
||||||
|
|
||||||
|
text what:
|
||||||
|
id "what"
|
||||||
|
style gui.theme("say_dialogue")
|
||||||
|
|
||||||
if _windows_hidden:
|
if _windows_hidden:
|
||||||
ypos 1000
|
ypos 1000
|
||||||
|
|
||||||
if _game_menu_screen:
|
if _game_menu_screen:
|
||||||
use quick_menu
|
use quick_menu
|
||||||
|
|
||||||
if who:
|
|
||||||
window:
|
|
||||||
id "namebox"
|
|
||||||
style gui.theme("namebox")
|
|
||||||
text who:
|
|
||||||
style gui.theme("say_label")
|
|
||||||
|
|
||||||
text what:
|
|
||||||
id "what"
|
|
||||||
style gui.theme("say_dialogue")
|
|
||||||
|
|
||||||
if renpy.android:
|
if renpy.android:
|
||||||
button:
|
button:
|
||||||
style "empty"
|
style "empty"
|
||||||
@ -90,7 +106,10 @@ screen say(who, what, side_image=None, icon=None):
|
|||||||
|
|
||||||
screen quick_menu():
|
screen quick_menu():
|
||||||
hbox:
|
hbox:
|
||||||
style_prefix "quick"
|
if renpy.showing("cg"):
|
||||||
|
style_prefix "quick_alt"
|
||||||
|
else:
|
||||||
|
style_prefix "quick"
|
||||||
xalign 1.0
|
xalign 1.0
|
||||||
yoffset -30
|
yoffset -30
|
||||||
|
|
||||||
@ -114,6 +133,16 @@ style quick_button_text is default:
|
|||||||
selected_hover_color "#cc0"
|
selected_hover_color "#cc0"
|
||||||
insensitive_color "#4448"
|
insensitive_color "#4448"
|
||||||
|
|
||||||
|
style quick_alt_button is quick_button
|
||||||
|
|
||||||
|
style quick_alt_button_text:
|
||||||
|
take quick_button_text
|
||||||
|
idle_color "#8888"
|
||||||
|
hover_color "#fff"
|
||||||
|
idle_outlines [(1, "#0008", 1, 1)]
|
||||||
|
hover_outlines [(1, "#000", 1, 1)]
|
||||||
|
|
||||||
|
|
||||||
# Choice screen
|
# Choice screen
|
||||||
#
|
#
|
||||||
# This screen is used to display the in-game choices presented by the menu
|
# This screen is used to display the in-game choices presented by the menu
|
||||||
|
Loading…
Reference in New Issue
Block a user