Commit graph

158 commits

Author SHA1 Message Date
Charles Dang
dba4bd78b3 Added short slider definition 2016-09-20 03:42:06 +11:00
Charles Dang
33653e3969 Reduced chatbox size slightly 2016-09-18 03:01:03 +11:00
Charles Dang
94b092fa9d Added a definition for a really large button 2016-09-17 01:54:41 +11:00
Charles Dang
865f7262f9 Added large scroll label definition 2016-09-11 18:53:48 +11:00
Charles Dang
838c0e0a09 Renamed title_screen panel definition and added a blur-less version 2016-09-11 18:53:47 +11:00
Charles Dang
eaf5ef96ed Buttons: refactored procedural drawing to avid alpha-corner hack
That hacked stopped being a thing in e993e2820b
2016-09-10 21:44:28 +11:00
Charles Dang
da2027c274 MP Create: added framework for background images 2016-09-10 08:54:24 +11:00
Charles Dang
b07810608a Renamed the mp_chatbox widget simply "chatbox" 2016-09-09 08:25:04 +11:00
Charles Dang
765f0bfc6a Moved chatbox code to its own file and updates schema 2016-09-09 07:47:02 +11:00
Charles Dang
0bc5e2ba4a Removed listbox toggle button definitions
A toggle_panel should be used instead
2016-08-29 18:41:05 +11:00
Celtic Minstrel
82153b1da8 Implement new grid_listbox widget 2016-08-29 01:05:02 -04:00
Charles Dang
898d98ab8d Split image widget into two definitions, default and centered (redo of d2191297c5) 2016-08-29 07:26:12 +11:00
Charles Dang
d2191297c5 Image: center drawn image on available space 2016-08-29 05:38:01 +11:00
Celtic Minstrel
201abc9d7e Make title screen rebuild its layout when the window is resized
This also restores one of the two reverted title screen tweaks.
2016-08-25 15:58:17 -04:00
Charles Dang
1701031e1b Partially revert "Tweaks to the title screen, mainly for 800x600"
This reverts commit 2cde73888c.
2016-08-25 21:05:11 +11:00
Celtic Minstrel
2cde73888c Tweaks to the title screen, mainly for 800x600
Also:
- Hide cores button if there are no addon cores installed
- Remove "failsafe" core since it didn't work as advertised
2016-08-25 04:36:50 -04:00
Charles Dang
6d39cffe14 Menu Button: increase min width
This serves the immediate purpose of making the Resolutions Menu Button in Prefs equal the size of
its dropdown, but it also ensures there's more space for lists with small initial entries but longer
choices. Obviously, horizontal_grow = true could be used in any dialogs where this is a case, but this
provides a safer minimum should that not be desired.
2016-08-25 00:12:05 +11:00
Celtic Minstrel
396f5dfc4c Rename combobox -> menu_button 2016-08-22 19:37:14 -04:00
Celtic Minstrel
f5acf47a19 Rename indention -> indentation 2016-08-20 02:52:11 -04:00
Charles Dang
369cabc9ae Use standard label definitions for scroll labels
These were simply copies of their respective label definitions, so this reduces the WML slightly.
This also renames the 'scroll_label_mono' definition, since there's no reason a label couldn't use it,
and this makes that clearer.
2016-08-19 17:45:17 +11:00
Charles Dang
b58a6de578 Fixed description_small scroll labels not working 2016-08-17 00:00:04 +11:00
Charles Dang
a9116a7ed5 Don't scale toggle button icons if they're smaller than the button size 2016-08-17 00:00:01 +11:00
Charles Dang
0fd26b9dc7 Few small improvements 2016-08-16 23:59:58 +11:00
Charles Dang
156ac4cf93 Revert "timage: allowed use of width/height keys for specific image size"
This reverts commit 05340bb81f.
2016-08-15 14:30:49 +11:00
Charles Dang
2c6b4b9ee9 Gray out borders of a disabled combobox 2016-08-15 02:31:15 +11:00
Charles Dang
05340bb81f timage: allowed use of width/height keys for specific image size 2016-08-15 00:02:48 +11:00
Charles Dang
176f962518 Minor cleanup 2016-08-14 12:32:32 +11:00
gfgtdf
3cc2d0962a more fixes to unit_preview_pane and treeviews. 2016-08-13 19:51:20 +02:00
gfgtdf
59284452c6 show ability and wepon specials tooltips in unit recruti dialog. 2016-08-13 17:50:01 +02:00
Charles Dang
9d3f3442b4 Obvious fixed to the Unit Preview Pane. More reworking needed 2016-08-13 17:32:15 +11:00
Charles Dang
bacece459c MP Lobby: fixed a few layout issues 2016-08-13 13:08:26 +11:00
gfgtdf
6f179bf4d0 show trait and ability tooltips in recall dialog
This still needs to be done for the recruit dialog, doing that might also
reduce code duplication.

This also contains multiple other fixes to treeviews.
2016-08-13 03:10:14 +02:00
Charles Dang
806c5b1b8b Unit Preview Pane: force minimum size for details area 2016-08-06 10:36:06 +11:00
Charles Dang
95fecb9d90 Small code and border cleanups 2016-08-05 05:06:52 +11:00
Charles Dang
c2b09cbe5b tunit_preview_pane: general cleanup and functionality improvements
This includes:
* Allowing the details area to scroll should the parent dialog not be long enough.
* Scaling all displayed sprites to 144x144 while maintaining aspect ratio.
* Forcing extra width so all mainline unit names have enough space to appear.
* Removing the unused 'minimal' definition. Might be added back later.
* Fixing the borders. The internal widgets shouldn't have outside borders, since borders
  should be set for the widget instance in a containing dialog.
2016-08-04 01:11:47 +11:00
Charles Dang
105fbe6bc6 Converted Recall dialog to GUI2
This also includes  the appropriate expansions and design updates to the unit_preview_pane widget.
2016-08-02 09:13:07 +11:00
Charles Dang
639548a108 Made Attack dialog use a unit_preview_pane widget
This also adds the necessary changes to said widget to allow single-unit stats display.
It still needs to be expanded somewhat. Right now it contains the minimum required for
the attack dialog.
2016-08-01 02:17:03 +11:00
Charles Dang
9f3639d5bb Tweaked minimal slider magic numbers again so maximum value can be reached (bug #24531)
There seems to possibly be an internal issue with the slider (and more generally, the
scrollbar implementation form which it inherits) where is min/maximum_positioner_length
equal an even number, sliders with an even number of options will reach max value.

Setting it to what, in this case is 1 below the actual width of the slider image (15)
means both even and odd-numbered sliders will reach max value, however the edge is cut off.

Attempting to set the right_offset to 1 and using the above off value for the positioned
width means only sliders with an odd number of options reach max value.

The magic numbers in this commit seem to give the widget enough space to reach the end of
the slider and max values regardless of the number of options, but the internal widget dimension
calculation should perhaps be investigated in the future.
2016-07-29 01:50:19 +11:00
Charles Dang
2826881eef Bumped button text size by 1 point and fixed text centering. 2016-07-27 03:18:29 +11:00
Charles Dang
9f6d9b45cb Use darker borders on titlescreen panels 2016-07-24 09:45:25 +11:00
Charles Dang
fbcf4943b1 Use darker window border color 2016-07-19 13:07:14 +11:00
Charles Dang
07fee4038b Improve visual design of buttons
A dark border was added to the left and bottom to add definition.
2016-05-16 22:58:19 +11:00
Charles Dang
f5fbb3872a Disable [message] blurring once again pending further testing
There are certain performance issues with scrolling lists with this enabled
that would render this unusable even without the weird hover bug (#24667).
2016-05-16 22:57:22 +11:00
Charles Dang
f32b10aa33 Fixed transparent scrollbar buttons 2016-05-13 18:45:42 +11:00
Charles Dang
eb943e57af Reapplied blur effect to [message]s 2016-05-13 18:30:09 +11:00
Charles Dang
3359961b00 Various new icon graphics by LordBob and button definitions using them
The 'help_30' icon is a Ariel question mark generated with the text tool
in Gimp and not drawn by LB.
2016-04-23 19:01:45 +11:00
Charles Dang
1702f10360 tbutton: fix borders of disabled state buttons not being gray 2016-04-10 06:47:50 +11:00
Charles Dang
9cc4834070 GUI2: converted horizontal scrollbars to new style 2016-04-09 01:03:40 +11:00
Charles Dang
7525646cd0 tunit_preview_pane: redesigned Minimal style
This restores the title and image and replaces the icons with labels.
2016-04-06 23:12:08 +11:00
Charles Dang
1df91e0119 tbutton: provide alpha color values to satisfy schema 2016-04-03 23:45:27 +11:00