Подскажите как реализовать следующую вещь:
Чтобы меню выбора было в горизонтальном виде, где вместо кнопок будут условные картинки с текстом в них.Чтобы текст был строго ограничен картинкой.Взял пример из игры Reings, примерный стиль выбора который я хотел бы получить. Вопрос в позиционировании текста внутри картинок.
Поменял screens.rpy вот таким образом, добился горизонтального меню, но с остальным туговато...
Код
$ choice_var = 0
screen choice(items):
style_prefix "choice"
if choice_var == 0:
hbox:
for i in items:
textbutton i.caption action i.action
elif choice_var == 1:
hbox:
for i in items:
button:
minimum 350, 341
idle_background "gui/button/choice_idle.png"
hover_background "gui/button/choice_hover.png"
text i.caption align 0.5 , 0.5
action i.action
style choice_hbox is hbox
style choice_button is button
style choice_button_text is button_text
screen choice(items):
style_prefix "choice"
if choice_var == 0:
hbox:
for i in items:
textbutton i.caption action i.action
elif choice_var == 1:
hbox:
for i in items:
button:
minimum 350, 341
idle_background "gui/button/choice_idle.png"
hover_background "gui/button/choice_hover.png"
text i.caption align 0.5 , 0.5
action i.action
style choice_hbox is hbox
style choice_button is button
style choice_button_text is button_text