Computer Science Canada Scrollbox Class |
Author: | Raknarg [ Wed Jan 25, 2012 1:02 pm ] | ||
Post subject: | Scrollbox Class | ||
I made another class for your games. This here is a scrollbox. Basically whenever you want text added into it, you call the procedure add_line with whatever text you want and it'll throw it in. You can also scroll through the text history at your leisure. Theres another function, clear_text, which you can use to clear all history. I'll include an example I made:
Some notes: -This program requires the button class i made, which can be found here: http://compsci.ca/v3/viewtopic.php?t=30797 -The initialization is as follows: left x coordinate, bottom y coordinate, right x coordinate, font, fill colour, border colour, font colour, font size (or size of each line), number of visible lines -You must include scrollbox_change in your loop for the buttons to actually work. If you have any questions or suggestions, go ahead |
Author: | Velocity [ Wed Jan 25, 2012 4:38 pm ] |
Post subject: | RE:Scrollbox Class |
Nice work! I love it. Thats new, i never knew that with turing you can import different files too, assuming they are made in turing. |
Author: | Raknarg [ Wed Jan 25, 2012 5:20 pm ] |
Post subject: | RE:Scrollbox Class |
Yeah, it can import other modules and classes. |
Author: | Raknarg [ Fri Feb 03, 2012 1:22 pm ] |
Post subject: | RE:Scrollbox Class |
as long as the word unit is on the top of the file, I should say |
Author: | Raknarg [ Sat Aug 04, 2012 11:05 pm ] |
Post subject: | Re: Scrollbox Class |
interesting update, gave that scrollbox a slider. Scrollboxes love sliders. Slider can be seen here: http://compsci.ca/v3/viewtopic.php?p=263021 From my recent addition, the slider class which I added vertical and reverse direction. Normally small to big is left to right or bottom to top. Quick change. |
Author: | Raknarg [ Sun Aug 12, 2012 7:38 pm ] | ||
Post subject: | Re: Scrollbox Class | ||
Update again, fixing add_line, just replace it with this:
|