Some Suggestions for gui2
Moderator: Forum Moderators
Some Suggestions for gui2
listbox(tgenerator_vectical_list), use it to implement table. In table, all rows are same height.
Simply, I have tried to implement above in War of Kingom that base Wesnoth. If interests it, can download source code, then compare <src>/gui that derived form wesnoth-1.10.2.
On the other hand, below is pure suggestions.
1. Support focus state. In focus, there is distinct background.
2. Optimize CPU/memory usage duration displaying table. At least, all grids in line are same, can use one only.
3. Add Combo Box widget.
- 1. In despite of where is visible area, always display header that defined "id=_header_grid".
2. Height of "id=_list_grid" should be the integer times of one line height.
3. Hieght of offset should be the integer times of one line height.
4. Support to sort.
5. Support to switch page.
Simply, I have tried to implement above in War of Kingom that base Wesnoth. If interests it, can download source code, then compare <src>/gui that derived form wesnoth-1.10.2.
On the other hand, below is pure suggestions.
1. Support focus state. In focus, there is distinct background.
2. Optimize CPU/memory usage duration displaying table. At least, all grids in line are same, can use one only.
3. Add Combo Box widget.
Last edited by ancientcc on April 22nd, 2012, 12:48 am, edited 1 time in total.
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: Some Suggestions for gui2
Yeah gui2 is still in development, I'm especially not happy with the current listbox class.
I'm not really sure what you mean with switching pages, most of the other ideas are indeed
`defects' in the current implementation.
I'm not really sure what you mean with switching pages, most of the other ideas are indeed
`defects' in the current implementation.
Re: Some Suggestions for gui2
One hero has many property, and one page cannot diplay all, so classify them. As one floor displayed, "Ability" page includes Name, Leadership, Force, Intellect, Politics and Charm. on the other hand, "Relation" page is relative to relation, includes Name, Father, Mother, Oath, Intimate and Hate. How to switch page? Player presses corresponding buttons. Press "Ability" button will display "Ability" page, "Relation" will display "Relation" page, etc. To get better player experience, after pressing buttun, gui2 should not recontruct window, even not change table rectangle.SkeletonCrew wrote:Yeah gui2 is still in development, I'm especially not happy with the current listbox class.
I'm not really sure what you mean with switching pages, most of the other ideas are indeed
`defects' in the current implementation.
Same as switching page in table, gui2 maybe implement another switch. In "Preferences" dialog, there is "General", "Display", "Sound", "Multiplayer", "Advanced" pages, press one button should display corresponding page.
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Re: Some Suggestions for gui2
There is a multipage widget that might do what you want.
Best have a look at the campaign selection dialog.
Best have a look at the campaign selection dialog.