forked from Cavemanon/Space-Lady-Game
Colorized UI
This commit is contained in:
@ -95,6 +95,19 @@ style frame:
|
|||||||
##
|
##
|
||||||
## https://www.renpy.org/doc/html/screen_special.html#say
|
## https://www.renpy.org/doc/html/screen_special.html#say
|
||||||
|
|
||||||
|
|
||||||
|
#image colored_button = im.MatrixColor("gui/button/template_idle.png", im.matrix.hue(50))
|
||||||
|
#
|
||||||
|
#
|
||||||
|
define textbox_colored = im.MatrixColor("gui/textbox.png",
|
||||||
|
im.matrix.colorize("453759", "9d48b1"))
|
||||||
|
define namebox_colored = im.MatrixColor("gui/textbox_name.png",
|
||||||
|
im.matrix.colorize("453759", "9d48b1"))
|
||||||
|
define colored_button = im.MatrixColor("gui/button/template_idle.png",
|
||||||
|
im.matrix.colorize("453759", "9d48b1"))
|
||||||
|
#im.matrix.colorize("9d48b1", "453759"))
|
||||||
|
|
||||||
|
|
||||||
screen say(who, what):
|
screen say(who, what):
|
||||||
style_prefix "say"
|
style_prefix "say"
|
||||||
|
|
||||||
@ -104,13 +117,15 @@ screen say(who, what):
|
|||||||
id "window"
|
id "window"
|
||||||
|
|
||||||
if who is not None:
|
if who is not None:
|
||||||
background Image("gui/textbox_name.png", xalign=0.5, yalign=1.0)
|
#background Image("gui/textbox_name.png", xalign=0.5, yalign=1.0)
|
||||||
|
add namebox_colored xalign 0.5 yalign 1.0
|
||||||
window:
|
window:
|
||||||
id "namebox"
|
id "namebox"
|
||||||
style "namebox"
|
style "namebox"
|
||||||
text who id "who"
|
text who id "who"
|
||||||
else:
|
else:
|
||||||
background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
|
add textbox_colored xalign 0.5 yalign 1.0
|
||||||
|
#background Image("gui/textbox.png", xalign=0.5, yalign=1.0)
|
||||||
|
|
||||||
text what id "what"
|
text what id "what"
|
||||||
|
|
||||||
@ -259,7 +274,6 @@ screen quick_buttons(filename, label_functions):
|
|||||||
for l_f in label_functions:
|
for l_f in label_functions:
|
||||||
use quick_button(filename, l_f[0], l_f[1])
|
use quick_button(filename, l_f[0], l_f[1])
|
||||||
|
|
||||||
image colored_button = im.MatrixColor("gui/button/template_idle.png", im.matrix.hue(50))
|
|
||||||
screen quick_menu():
|
screen quick_menu():
|
||||||
|
|
||||||
## Ensure this appears on top of other screens.
|
## Ensure this appears on top of other screens.
|
||||||
@ -272,8 +286,8 @@ screen quick_menu():
|
|||||||
style_prefix "quick"
|
style_prefix "quick"
|
||||||
spacing 1
|
spacing 1
|
||||||
|
|
||||||
#use quick_buttons(colored_button,
|
#use quick_buttons("gui/button/template_idle.png",
|
||||||
use quick_buttons("gui/button/template_idle.png",
|
use quick_buttons(colored_button,
|
||||||
[
|
[
|
||||||
[ "Skip", Skip() ],
|
[ "Skip", Skip() ],
|
||||||
[ "Auto", Preference("auto-forward", "toggle") ],
|
[ "Auto", Preference("auto-forward", "toggle") ],
|
||||||
|
Reference in New Issue
Block a user