[SOLVED]Using icons in quick menu instead of text and changing border at the same time...
Posted: Thu Mar 14, 2024 8:08 pm
I watched a video where a guy explained how to add icons in quick menu instead of text. So I created a rpy file, name quickmenu.rpy, with this code:
It works to change icons, but even if I put that same code inside screens.rpy and change borders in gui.quick_button_borders = Borders, the icons still close to each other, but the "textbuttons" that I haven't changed yet keep ther border change.
How to add spacing between them?
Maybe there is a better way to use icons insted of text than this one?
ALso, there is a way to add background image to quick menu?
Code: Select all
init:
transform buttonZoom:
zoom 0.06
#backbutton
##################################
image backidle:
"gui/quickmenu/back.png"
image backhover:
"gui/quickmenu/back.png"
matrixcolor TintMatrix("#ffffff")
ease 0.5 matrixcolor TintMatrix("#bd0000")
easeout 0.5 matrixcolor TintMatrix("#ffffff")
repeat
image inactiveback:
"gui/quickmenu/back.png"
alpha 0.5
#history
##################################
image historyidle:
"gui/quickmenu/history.png"
image historyhover:
"gui/quickmenu/history.png"
matrixcolor TintMatrix("#ffffff")
ease 0.5 matrixcolor TintMatrix("#bd0000")
easeout 0.5 matrixcolor TintMatrix("#ffffff")
repeat
image historyinactive:
"gui/quickmenu/history.png"
alpha 0.5
init 100:
screen quick_menu():
zorder 100
if quick_menu:
vbox:
style_prefix "quick"
$ tooltip = GetTooltip()
if tooltip:
text "[tooltip]"
xalign 0.01
yalign 1.0
imagebutton:
idle "backidle"
hover "backhover"
insensitive "inactiveback"
tooltip "Voltar"
at buttonZoom
action Rollback()
imagebutton:
idle "historyidle"
hover "historyhover"
insensitive "historyinactive"
tooltip "Voltar"
at buttonZoom
action ShowMenu('history')
textbutton _("Pular") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Automotivo") action Preference("auto-forward", "toggle")
textbutton _("Salvar") action ShowMenu('save')
textbutton _("Q.Salvar") action QuickSave()
textbutton _("Q.Caregar") action QuickLoad()
How to add spacing between them?
Maybe there is a better way to use icons insted of text than this one?
ALso, there is a way to add background image to quick menu?