Illidanz
09-03-2009 13:53:02
Hello,
I was in the process of making the GUI for my game, and I'm missing a couple of things.
1) Wordwrapping List: The actual list does not wordwrap if the text is too long.
I read in another thread that this can be done with an ItemBoxV of StaticTexts. I've tried but I wasn't able to come up with something that actually worked, anyone have an example?
1b) Wordwrap in general: I'm quit confused. What widget I should use if I have some very long text (for example "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") and I would like to see it all?
2) "Fluid" Panel/StaticText: A panel that adapts its size depending on the size of the internal elements.
This is very useful for example for a descriptive tooltip, where you don't know if the Description of the object will be 1 row or 20 row maybe.
3) Texture Button: A button with a custom texture.
Like a clickable StaticImage. This can already be done via skins?
4) Moving Pinpoint: A pinpoint is a small area where you can click and drag the Panel to move it around. It's like the top of a window, but restricted to a small area. How can this be done?
5) I would also like to insert some LUA scripts that will be loaded with the Layout items, what is the best way of doing this?
For example, i could set an UserString named "Script" with the name of the LUA script to load when the widget is loaded, but how i can get notified that a specific widget has been loaded?
Any suggestion for how this things can be done is welcome
Thanks in advance and sorry for my english, I hope everything is understandable
I was in the process of making the GUI for my game, and I'm missing a couple of things.
1) Wordwrapping List: The actual list does not wordwrap if the text is too long.
I read in another thread that this can be done with an ItemBoxV of StaticTexts. I've tried but I wasn't able to come up with something that actually worked, anyone have an example?
1b) Wordwrap in general: I'm quit confused. What widget I should use if I have some very long text (for example "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") and I would like to see it all?
2) "Fluid" Panel/StaticText: A panel that adapts its size depending on the size of the internal elements.
This is very useful for example for a descriptive tooltip, where you don't know if the Description of the object will be 1 row or 20 row maybe.
3) Texture Button: A button with a custom texture.
Like a clickable StaticImage. This can already be done via skins?
4) Moving Pinpoint: A pinpoint is a small area where you can click and drag the Panel to move it around. It's like the top of a window, but restricted to a small area. How can this be done?
5) I would also like to insert some LUA scripts that will be loaded with the Layout items, what is the best way of doing this?
For example, i could set an UserString named "Script" with the name of the LUA script to load when the widget is loaded, but how i can get notified that a specific widget has been loaded?
Any suggestion for how this things can be done is welcome

Thanks in advance and sorry for my english, I hope everything is understandable