So I was looking for something with a scrollbar or similar. I could not find a single working solution, which led my to create my own.
It would be really cool if someone made a library off of it for future use.
Things that would be nice:
- actual border image (not just a single color)
- movable slider position
- option for horizontal slider (or both at the same time)
What it can do right now:
- hold as many dialog controls as you want (or even other instances of itself)
- keep visible content the same while adding/removing content
- scroll through the content
- create multiple instances (1 per struct instance)
Important information:
To capture the mouse, giantic invisible dialog controls are used. If the parent is too small (the mouse moves outside without hitting the invisible controls) the slider will react to any mouse down, no matter where on the screen.
Using a fullscreen dialog fully avoids that problem.
Keep in mind that this is a lot more sluggish in multiplayer but still grants a lot of power over the content.
Example content (wavedisplay for a td):
- 101 x content areas (0 - 100) named "Wave 0" to "Wave 100"
- pseudo content for the waves:
clicking on the wave button extends the content area and adds 1 additional random line
first click also adds a close button (that works)
edit: I pull back my request for a library for the moment. As a matter of fact, my current project needs more than my previous snippet can do, so I willl give creating the library a try.
Might ask again if the results are too far from what I intended.
edit2: Solved all my problems, fulfilled my own request :P library submission
So I was looking for something with a scrollbar or similar. I could not find a single working solution, which led my to create my own.It would be really cool if someone made a library off of it for future use.Things that would be nice:- actual border image (not just a single color)
- movable slider position
- option for horizontal slider (or both at the same time)
What it can do right now:- hold as many dialog controls as you want (or even other instances of itself)
- keep visible content the same while adding/removing content
- scroll through the content
- create multiple instances (1 per struct instance)
Important information:To capture the mouse, giantic invisible dialog controls are used. If the parent is too small (the mouse moves outside without hitting the invisible controls) the slider will react to any mouse down, no matter where on the screen.
Using a fullscreen dialog fully avoids that problem.
Keep in mind that this is a lot more sluggish in multiplayer but still grants a lot of power over the content.Example content (wavedisplay for a td):- 101 x content areas (0 - 100) named "Wave 0" to "Wave 100"
- pseudo content for the waves:
clicking on the wave button extends the content area and adds 1 additional random line
first click also adds a close button (that works)
edit: I pull back my request for a library for the moment. As a matter of fact, my current project needs more than my previous snippet can do, so I willl give creating the library a try.
Might ask again if the results are too far from what I intended.
edit2: Solved all my problems, fulfilled my own request :P
library submission