After the design, I have tried and researched the way toa dd them to the code, and I have managed to change the default layout of the scrollbar that is in the GUI folder (replacing the png files and also adding the new ones of the second scrollbar), but I don't know how to put my second layout in the game since it seems that you can only use the default scrollbar style!
I have tried to create scrollbar styles but I don't know how to apply them to the second viewport. Does anyone know how? On another occasion I have made several bars of different designs that works but I cannot do the same with the scrollbars.
Here's my viewport... The second is more or less the same, the code is identical except some text.
Code: Select all
screen two_texts():
viewport pos (245, 200) xysize (250, 500):
scrollbars "vertical"
mousewheel True
draggable True
side_yfill True
vbox:
text ""
And here's some styles I use it, but no one works...
Code: Select all
style vscrollbar_second is vscrollbar:
base_bar Frame("gui/verticalbar_idle_bar_2.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
thumb Frame("gui/verticalbar_idle_thumb_2.png", gui.vscrollbar_borders, tile=gui.scrollbar_tile)
style vscrollbar_second is vscrollbar: # another try
top_bar Frame("gui/verticalbar_idle_2.png", 5, 5)
bottom_bar Frame("gui/verticalbar_hover_2.png", 5, 5)
thumb Frame("gui/verticalbar_idle_thumb_2.png", 5, 5)