Commit graph

1878 commits

Author SHA1 Message Date
Charles Dang
d465879c89 MP Create Game: allow Leave button to fill all available space 2017-03-19 04:40:23 +11:00
Charles Dang
2d7ac7c887 File Dialog: disable horizontal scrollbar for Bookmarks list
This was probably disabled while the dialog had issues with long filename labels. Now that that's fixed,
this *should* be safe to enable.
2017-03-17 10:39:33 +11:00
Charles Dang
18a7e80243 Removed GUI2 Addon Description and Filter Options dialog
These have been rolled into the new GUI2 addon manager.
2017-03-17 08:52:01 +11:00
Charles Dang
9e258472c1 Allowed some immediately obvious labels to shrink
These were the ones this key was introduced to address.
2017-03-17 06:22:15 +11:00
Charles Dang
adb5ef90ad Demote can_shrink key from global widget scope to label-only
It was causing problems being enabled for all labels (ie, some labels being shrunken when it wasn't desirable),
and it didn't make much sense for all widgets anyway.
2017-03-17 06:21:13 +11:00
Charles Dang
70f827415b MP Lobby: rename class for better consistency with other dialogs 2017-03-16 18:47:45 +11:00
Charles Dang
e7cdb76a01 GUI2: basic dialog definition for a Hotkey Bind dialog (not enabled)
Still need to determine proper event handling.
2017-03-15 09:48:39 +11:00
Charles Dang
812c9d9607 MP Join Game: use 'Leave' instead of 'Cancel' for exit button 2017-03-14 13:07:19 +11:00
Charles Dang
4e92eb1b55 Second small tweak to standard "gold" color (fixup faaa412d) 2017-03-14 11:10:42 +11:00
Charles Dang
500e087d53 GUI2: deployed fancy toggle panels in a few places
[ci_skip]
2017-03-13 23:11:23 +11:00
Charles Dang
441b0f7691 GUI2: made new toggle panel selection style a separate definition (needs deployment)
The new style isn't appropriate in every context. This temporarily makes the old style default again.
2017-03-13 05:27:49 +11:00
Charles Dang
faaa412dc5 Tweaked standard "gold" color to give it slightly more contrast 2017-03-13 01:50:33 +11:00
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