By hovering the button (left) you can see, that the real button doesn't even have 1/3 of the height it should have. If I click on the button outside of this hovered field, the button doesn't react.
This is my code:
Code: Select all
image cg1 = "cg/c0_i1.png"
image cg2 = "cg/c0_i2.png"
init python:
g = Gallery()
g.hover_border = Color((255, 250, 250, 200))
g.button("chara0_illust1")
g.unlock_image("cg1")
g.button("chara0_illust2")
g.unlock_image("cg2")
screen gallery():
tag menu
use game_menu(_("Galerie"), scroll="viewport"):
style_prefix "galerie"
vbox:
spacing 23
grid 2 1:
frame:
add g.make_button("chara0_illust1", "cg/thumb/c0_i1.png", locked="cg/thumb/locked.png")
text g.get_fraction("chara0_illust1")
frame:
add g.make_button("chara0_illust2", "cg/thumb/c0_i2.png", locked="cg/thumb/locked.png")
text g.get_fraction("chara0_illust2")
style galerie_frame:
xysize(300,200)
Code: Select all
label start:
scene cg1
e "Random Text."
return
Code: Select all
# code from gui.rpy
define gui.button_height = 36
I would be glad about some help please.