Dagoba
Member
Hello!
There's a problem or more like lack of creativity to create a working scrollbar's view.
I bought a scrollbar example from YoYoGames market and the scrollbar works fine (after I slightly modified it because it didn't work instantly).
There wasn't an example of scrollbar how it works inside a box (which I thought there would be), so I want a scrollbar to make some kind of view to move. I know how to do this but is a view really a great way to do this? I already use one view to follow mouse and whenever I click a certain object, it will pop up a GUI with buttons, different tabs etc.
Now, how do I add items inside the GUI (or more like a list) that is longer than the height of my GUI box? That's why I am using a scrollbar. Should I draw those items outside of ROOM and make the view in the center of the box? I think that this kind of method is pretty poor/unprofessional.
And also, there are 3 different pages, 3 different scrollbars and 3 different items inside of them.
I know how to do this as well like:
But I have no idea to make a working scrollbar and view within GML, I could do it with other language but now I am using a GM:Studio..
Any ideas?
Thanks in advance!
There's a problem or more like lack of creativity to create a working scrollbar's view.
I bought a scrollbar example from YoYoGames market and the scrollbar works fine (after I slightly modified it because it didn't work instantly).
There wasn't an example of scrollbar how it works inside a box (which I thought there would be), so I want a scrollbar to make some kind of view to move. I know how to do this but is a view really a great way to do this? I already use one view to follow mouse and whenever I click a certain object, it will pop up a GUI with buttons, different tabs etc.
Now, how do I add items inside the GUI (or more like a list) that is longer than the height of my GUI box? That's why I am using a scrollbar. Should I draw those items outside of ROOM and make the view in the center of the box? I think that this kind of method is pretty poor/unprofessional.
And also, there are 3 different pages, 3 different scrollbars and 3 different items inside of them.
I know how to do this as well like:
Code:
if (page == 1)
{
//Draw this item
//Draw that
//Draw that
//Draw scrollbar
}
else if (page == 2)
//bla bla, you get it
Any ideas?
Thanks in advance!