I'm trying to add a button into a viewport I've created. But the problem is that when I add the button, the sidescroll bars stop working (you can see them, but don't work).
This is the code without the button:
Code: Select all
screen panel_tube:
add "images/icons/ViewTubeScreenF.png" xoffset 234 yoffset 135
imagebutton auto "images/icons/closewindow_%s.png" action Jump ("monitor") xoffset 1583 yoffset 135
screen viewport_example():
side "c b r":
area (584, 312, 923, 603)
viewport id "vp":
draggable True mousewheel True
add "images/icons/courses.png"
bar value XScrollValue("vp")
vbar value YScrollValue("vp")
Code: Select all
imagebutton auto "images/icons/CSGO_%s.png" action Jump ("OutsideRooms") xoffset 100 yoffset 600