Commit graph

1566 commits

Author SHA1 Message Date
Charles Dang
7ed68f2e42 GUI2: experimental new design for toggle panel selected/focused states 2017-03-12 12:17:31 +11:00
Jyrki Vesterinen
0d6f7de167 Add-on manager: add an update button to the main panel 2017-03-11 19:12:37 +02:00
Charles Dang
81504c8da3 Addon Manager: mark all relevant strings as translatable
[ci_skip]
2017-03-10 20:43:57 +11:00
Charles Dang
93eb07ad8b Addon Manager/Addon List: center addon icon in available space 2017-03-10 18:07:39 +11:00
Charles Dang
790f88f39f Addon Manager: implement main panel publish/delete buttons 2017-03-09 22:06:42 +11:00
Charles Dang
637642f510 Added definitions for Addon Manager publish/delete buttons 2017-03-09 17:24:00 +11:00
Charles Dang
4a2711ad42 Addon Manager: temporarily disable background until I get a better image 2017-03-06 17:00:46 +11:00
Charles Dang
097867429b Addons Manager: allow installing addons on list row double click (bug #25547) 2017-03-01 09:13:54 +11:00
Charles Dang
f52d6499dc Unit Preview Pane: fixup e2065867a. We only want the default dimensions for the default definition 2017-03-01 08:09:26 +11:00
Charles Dang
22eebc6983 GUI2: allow labels to shrink to avoid scrollbars
This adds a new can_shrink key to widgets that allows the 'no label' codepath of styled_widget::request_reduce_width to be called.
In this case, it allows labels to shrink without forcing window scrollbars.
2017-02-25 07:52:00 +11:00
Charles Dang
afd0fe7efd Scroll Label: add small buffer between the text and scrollbars 2017-02-24 18:17:23 +11:00
Charles Dang
e2065867a6 Unit Preview Pane: set default widget dimensions
This gives the pane some extra height by default so that an initially shown unit will few attacks doesn't
cause a scrollbar to be shown for others with more.
2017-02-24 17:31:23 +11:00
Charles Dang
92a2baa38a GUI2: use more semi-transparent backgrounds for scrollbars 2017-02-24 17:13:15 +11:00
Charles Dang
73ba4cc4b1 Addons Manager: removed Options button
All the useful filter options have been migrated to in-dialog widgets, so the Options dialog isn't needed anymore.
Do note that the default filter order and ascending/descending options weren't migrated, but they could still be
if it was deemed necessary.
2017-02-24 17:01:04 +11:00
Charles Dang
2f5affc2ec Addons Manager: UI improvements and added a background (higher res version pending) 2017-02-24 11:45:54 +11:00
Charles Dang
2e43bebfa8 Editor Generate Map: fixup f693dbd8c2 (capitilization) 2017-02-24 11:20:19 +11:00
gfgtdf
f693dbd8c2 improve a label text
http://gna.org/bugs/index.php?25088
2017-02-24 01:14:53 +01:00
Charles Dang
b8bdea8487 Addons Manager: rename WML file 2017-02-24 01:32:50 +11:00
Charles Dang
e24336afeb GUI2: temporarily remove directional buttons from scrollbars
This is intended to be an experiment for the 1.13.7 release to see what players think.
2017-02-24 01:00:07 +11:00
Charles Dang
d46d8c3cb8 Addons List: removed border around containing listbox
Widgets usually leave it up to the dialogs to provide a border. Since this entire widget is wrapped in
a listbox, there's no need to adjust any internal borders.
2017-02-20 13:53:51 +11:00
Charles Dang
ad47ae901a Addons Manager: tweaked UI filter labels 2017-02-19 07:26:15 +11:00
Jyrki Vesterinen
02f78600c1 Revert "Drop down list: stop using has_minimum="false" and remove a workaround"
This reverts commit 1e8d8ff7d7.

@CelticMinstrel and @Vultraz pointed out that the change causes menus
and dropdowns (which are implemented as dropdowns) to initially have
an item selected, which isn't desired.
2017-02-16 20:46:48 +02:00
Jyrki Vesterinen
1e8d8ff7d7 Drop down list: stop using has_minimum="false" and remove a workaround
Has_minimum="false" caused the following bug:

1. In a dropdown with toggle buttons, select any entry.
2. Close the dropdown and open it again.
3. Deselecting the entry selected in 1 is now impossible.

This commit fixes the bug above and addresses a FIXME.
2017-02-16 20:38:10 +02:00
Charles Dang
4cbd411742 Campaign Difficulty: always keep entries the same height 2017-02-17 05:13:30 +11:00
Charles Dang
96c2a1eb6f Campaign Dialog: reposition Deterministic Mode checkbox 2017-02-14 01:11:13 +11:00
Charles Dang
66b590b732 Campaign Dialog: reimplement Mods section as an always-visible dropdown w/ checkboxes 2017-02-14 01:08:00 +11:00
Charles Dang
d3c53e4f0d Addons Manager: added (non-functional still) type filtering dropdown 2017-02-13 23:41:14 +11:00
Charles Dang
847ec8dcea Addons Manager: implement a bunch of functionality
* Display language and dependency lists
* Made status filtering work (not 100% complete)
* General code cleanup
2017-02-10 21:08:49 +11:00
Charles Dang
f307582334 Addons Manager: layout tweaks 2017-02-10 11:32:57 +11:00
Charles Dang
f3d6104831 Install Dependencies: minor layout fixes 2017-02-10 02:54:50 +11:00
Jyrki Vesterinen
678a21b4fe Replace the 'Install Dependencies' dialog with a GUI2 version 2017-02-02 21:44:15 +02:00
Jyrki Vesterinen
973edcc33a Add-on list: inject the required linked groups
This way it's no longer necessary for the containing window to define the
groups, eliminating possibility for an easy mistake if a developer wants to
create a new window that contains an add-on list.
2017-01-28 18:04:28 +02:00
Jyrki Vesterinen
6f94a8ffed Allow composite widgets to inject linked groups 2017-01-28 17:59:36 +02:00
Jyrki Vesterinen
dc71d9d671 WIP: make the add-on list a widget
The purpose of this change is ability to create more dialogs which present
a list of add-ons, such as a GUI2 version of the "Install Dependencies"
dialog.

This change is still highly incomplete. First of all, I disabled inline
install buttons and ability to sort the add-on list. In addition, a lot of
functionality that belongs in the add-on list widget is still in the GUI2
add-on manager instead. It is also notable that the widget relies on
several linked groups being defined in the window.

I plan to finish the transition to the add-on list widget, and address the
problems in the previous paragraph, in the future. The linked group issue
is going to require a lot of work in particular: I plan to either make
linked groups grid-specific instead of window-specific (like they are now)
or allow widgets to inject linked groups to the containing window. Either
way, I'm going to change the operation of GUI2 fairly deeply.
2017-01-21 22:57:51 +02:00
Jyrki Vesterinen
1914ba3488 New add-on manager: initial implementation of add-on installing 2017-01-07 20:05:32 +02:00
Charles Dang
fc91f5df10 GUI2: initial basic implementation of a GUI2 Attack Predictions dialog (WIP) 2016-12-18 11:10:24 +11:00
Charles Dang
320e85d907 GUI2: renamed text size macros
[ci skip]
2016-12-17 00:45:01 +11:00
Charles Dang
0fc5ab92a3 GUI2: added a background for filter text boxes instead of using a 'Filter' label
[ci skip]
2016-12-17 00:45:00 +11:00
Charles Dang
8da0284a3a Tooltips: improve placement to avoid source widget overlap
Still need some tweaks for the secondary placement methods.
2016-12-10 19:36:53 +11:00
gfgtdf
28df71d13a add unit preview pane hp xp mp tooltips (#897) 2016-12-08 18:25:54 +01:00
Celtic Minstrel
8041a0964e Fix missing GUI2 label link colour
Someone decided to specify it in Pango format, which the WML parser
interprets as a comment, resulting in an empty string.

[ci skip]
2016-11-27 17:38:51 -05:00
Charles Dang
376925bc9b Converted Terrain Layers dialog to GUI2 2016-11-24 01:46:33 +11:00
Charles Dang
b95be124e0 Campaign Dialog: code cleanup, including the removal of the old listbox code 2016-11-23 19:23:14 +11:00
Charles Dang
27b48683b1 Statistics Dialog: some WML layout tweaks 2016-11-20 17:10:04 +11:00
Charles Dang
049f067073 Converted Statistics dialog to GUI2 2016-11-20 07:33:22 +11:00
Charles Dang
5dcf1213b0 Removed WML for MP Game Set Password (32d69b9c2c) 2016-11-20 00:52:41 +11:00
Charles Dang
e6329da6f4 MP Login: specify same max username length as in MP Method Selection 2016-11-19 22:03:04 +11:00
Jyrki Vesterinen
4ed0146251 Lock sizes of all chat boxes
This fixes the chat box randomly becoming too large in the MP lobby.
2016-11-15 22:41:48 +02:00
Jyrki Vesterinen
8f40462116 Size lock widget, the WML part 2016-11-15 22:41:48 +02:00
Charles Dang
9a4d7594ee MP Create Game: fixed setting slider status labels not having enough space 2016-11-12 13:02:01 +11:00