10-01-2023, 04:42 PM
(09-30-2023, 03:59 PM)DerVVulfman Wrote: Widget workings still going on, but more towards automation and shortcuts for users...
How boring is it to create a window, then have to create the drawing area IN that window... and then to create a scroll bar IN the window that must be tied to the drawing area. That was something that seemed to be MEH!!!
The Long way...
I put in a lot of comments in there for reflection and identification what the heck was going on. The first block just creates the window itself, defining its position and shape, if it has a title box, that little [X] box, and if I can drag it across the screen.
But the stuff below ... that's a lot of content. The first making the content window... and making the height '466' so it is loooonger than the window so it can be scrolled up and down. Second, making the scroll bar itself, aligning on the right side of the window and making it the right length.
That's a lot... so... I shortened it greatly.
The Short way...
Yeah, all that code I needed to type to create any windows content and scrollbar have now been summed up into a freakin' single statement. Here, you pass the width, the height, and a number from 0-5... 0 meaning no scroll bar.
However, if you have no scroll bar, then the width and height are moot and resets to the window width and height anyway. It's pretty much as if you want the windows to create the default content area (setting default_contents = true). I put in a lot of preventative measures within.
(09-27-2023, 02:57 PM)KasperKalamity Wrote: For starters, I like big maps and I cannot lie.
No kidding. But then again, so do I.
This landmass of Bounty Hunter Lani's was mapped out into a 1600x1600 tile map... but a seamless one without need of tleport-based map connections. So you can literally walk from the capital city of Ruma in the northwest to the city of Zan in the south east.... though it would take over 30 minutes game-time to do so. It's a 15 minute game-time trip to reach Zan from Lambast alone. Thank gawd for obelisk fast-travel teleports and vehiclesDestiny of End's world map
how did you break the 500x500? i need that in my life