Commit graph

1566 commits

Author SHA1 Message Date
Charles Dang
5cbe50b765 Game Load: improvements to leader stats display 2017-05-14 08:54:42 +11:00
Celtic Minstrel
cbc4af1a20 Add blinking text cursor to focused textbox
Unlike the previous implementation, the blinking cursor now only applies
to the focused (frontmost) window.
2017-05-12 15:34:16 -04:00
Celtic Minstrel
99693041b1 Add current gold and troops count to Load Game dialog (resolves #4180)
I'll let @vultraz pretty it up a little if he wants.
Note that old saves won't show this info; it'll only show up in new saves.
It might show up for old saves if you clear your cache, though.
2017-05-11 16:00:50 -04:00
Celtic Minstrel
6ea57e78f4 Game Load: Factor out listboxes to reduce overall indentation level 2017-05-11 16:00:49 -04:00
Charles Dang
bf60a0a209 Custom Options Tree: allow 'no mods' label to grow
[ci skip]

Allows it to fill all available space, especially on low resolutions.
2017-05-06 14:20:02 +11:00
Celtic Minstrel
4f3d7507e8 Prevent scrollbar in MP Create 1024x768 (usually)
A scrollbar can still sometimes appear for scenarios that have custom options.

[ci skip]
2017-05-05 23:03:56 -04:00
Charles Dang
a31f62b8bc Editor New Map: set the title based on whether a new map or scenario is being created 2017-05-02 13:10:43 +11:00
Charles Dang
4d23e8359e SP Options Configure: hide option tree toggle for this dialog
[ci skip]
2017-04-30 21:28:15 +11:00
Charles Dang
b0f91e7d2e GUI2: removed unused Campaign Settings dialog
This was a dialog used early in 1.13 during the SP/MP codepath unification to configure certain options.
The modification selection is now built into the Selection dialog, and we decided not to enable other options
like Era selection in SP. The only option we might look to restoring in the future is the "show_connect"
option, but that requires some additional code elsewhere and probably won't be used anyway.
2017-04-30 21:15:39 +11:00
Celtic Minstrel
819fa75330 Some improvements to tooltip placement 2017-04-28 15:32:37 -04:00
Celtic Minstrel
06450e8bb6 Split tooltip definitions into separate files 2017-04-28 14:57:19 -04:00
Charles Dang
07d418f543 MP Change Control: cleaned up internal layout
This seems to have also fixed a bug... when testing before the changes, the Nickname list didn't appear, but
after these changes it does.
2017-04-25 12:41:24 +11:00
Celtic Minstrel
b9a35fa870 Allow changing theme while in a game 2017-04-24 11:01:10 -04:00
Charles Dang
02cf739db7 MP Staging: better size ratio for chat and players list at low resolution 2017-04-22 06:59:19 +11:00
Charles Dang
e36023aaab MP Staging: fixed button placement on low resolutions
[ci skip]
2017-04-22 06:49:44 +11:00
Charles Dang
a1806c2d31 GUI2: refactored Custom ToD dialog
In addition to an interface update, this also makes the dialog work better with the editor, with improvements
such as restoring the currently selected ToD when the dialog exits (until we implement the saving of changes
made within the dialog) and opening to the same.
2017-04-19 12:53:23 +11:00
Charles Dang
8b98e82b34 Added GUI_FILLER_ROW macro 2017-04-19 12:47:09 +11:00
Charles Dang
0f585a5807 GUI2/WML Message: gave grow priority to text over options 2017-04-17 11:00:31 +11:00
Celtic Minstrel
bb535fe452 MP Staging: A few more tooltips 2017-04-16 11:18:04 -04:00
Celtic Minstrel
3af50b919c MP Staging: Request tooltip on label overflow for leader/faction name
Unfortunately the underlying mechanism doesn't seem to work though...
2017-04-16 11:14:47 -04:00
Celtic Minstrel
e5ff9f9584 (Multi)menu Buttons: Reduce default size at low resolutions
This fixes the scrollbar in MP Staging, but causes the buttons to be
too small in some cases (eg the resolution button in prefs)
2017-04-16 11:07:54 -04:00
Celtic Minstrel
d54c8ad40e MP Staging: Add tooltip to bizarre arrow buttons 2017-04-16 10:39:39 -04:00
Charles Dang
9b326e21db Menu Button/Multimenu Button: re-enable text markup (fixup 1ea440fed) 2017-04-17 01:39:11 +11:00
Celtic Minstrel
c294484cda MP Staging: New layout for resolutions < 1024x768 2017-04-16 10:30:05 -04:00
Celtic Minstrel
65deb19bcc Addon List: Limit width of version column 2017-04-16 10:30:03 -04:00
Charles Dang
4f50559af9 GUI2 WML: consistent styling, don't use strings for bools 2017-04-16 17:19:03 +11:00
Charles Dang
70e607d04a Preferences Dialog: make hotkey category multimenu fill all available space as requested 2017-04-16 17:05:09 +11:00
Celtic Minstrel
1793133a59 Fix menu_button widget trying to be two things at the same time.
The menu_button is now only a drop-down menu that supports a single selection.
A new multimenu_button widget supports a drop-down menu with multiple selections.
The new multimenu_button widget displays its current selection while not open.
2017-04-16 00:08:50 -04:00
Celtic Minstrel
cb333dbfdf Addons List: Hide some columns on lower resolutions 2017-04-15 21:34:37 -04:00
Celtic Minstrel
4fbc943612 Addons Manager: New layout for resolutions < ~1280x800 2017-04-15 18:24:25 -04:00
Charles Dang
1ea440fed3 Menu Button: fix overlap of long text and down arrow (bug #25320) 2017-04-16 07:09:02 +11:00
Charles Dang
96ef6b1f5a MP Create Game: ensure campaign icons always line up (bug #22956) 2017-04-16 06:35:25 +11:00
Charles Dang
120aa0e6ca Story Viewer Label: ensure sufficient top padding for text
[ci skip]
2017-04-16 00:31:32 +11:00
Charles Dang
e0751c1f54 GUI2: implement ability to set label alpha 2017-04-13 04:01:01 +11:00
gfgtdf
75c21815f6 allow multi_page to contain differnt types of pages
although stacked_widget supports similar functionality this is currently
not easily doable from the lua gui2 api. In particular
1) stacked_widget cannot add pages dynamically
2) multi_page can only contain one type of widget.
3) a stacked_widget inside a multi_page is ineffective since it
generates many unused widgets
4) a multi_page inside a stacked_widget is just unhandy to use
2017-04-12 15:14:58 +02:00
Charles Dang
c834d99556 Preferences: convert hotkey category list to a dropdown w/ checkboxes
This allows more space for the hotkey list.
2017-04-12 21:12:47 +11:00
Charles Dang
f0dffab55a Tree View Node: rename tree_view_node_icon to tree_view_node_toggle
This better reflect its function
2017-04-12 17:00:03 +11:00
Jyrki Vesterinen
aa762995e2 Add tooltips to add-on manager buttons 2017-04-11 21:32:53 +03:00
Celtic Minstrel
898f9ea0c7 GUI2 Canvas: Add tile_center resize mode 2017-04-11 01:05:51 -04:00
Charles Dang
e369e10eee Story Viewer: disabled title background for now
It's causing placement issues with some titles...
2017-04-11 03:37:18 +11:00
Charles Dang
15daebd149 Outro: fixed text being shown for approx 2.5 seconds longer than specified
I was performing a value check on fade_step in the timer, and then multiplying it fivefold in the alpha
calculation, meaning full alpha was reached long before the fade in sequence stopped and the duration timer
was initialized.
2017-04-11 03:19:17 +11:00
Charles Dang
61aa601a6f GUI2/Canvas: converted other shapes to use formulas for their color handling
For rectangles, color_t::null_color() needs to be specified as the default since typed_formula
utilizes the default type ctor if no default value is provided. In this case, color_t's default
ctor returns opaque white, which doesn't mesh well with GUI2's drawing.

Other shapes don't get this default value, since color is essentially mandatory for them, whereas
in rectangles either fill_color or border_color may be omitted.
2017-04-10 00:02:49 +11:00
Charles Dang
8ed11e7506 GUI2/Canvas: removed [line] alpha= key in favor of evaluating color as a formula 2017-04-09 22:04:11 +11:00
Charles Dang
53adf0ba1a Story Viewer: enforce at least 200 height for the story box
[ci skip]
2017-04-09 21:57:34 +11:00
Charles Dang
dec0fd6dfd Convert outro screen to GUI2
It's the screen that shows 'The End' at the end of an SP campaign.
2017-04-09 21:37:16 +11:00
Charles Dang
10f867bd7e GUI2/Canvas: evaluate text color as formula 2017-04-09 21:37:15 +11:00
Celtic Minstrel
753df47137 Story viewer: Use a slightly fuzzy rounded rectangle as the title background 2017-04-08 19:00:36 -04:00
Celtic Minstrel
2dbdc7ec66 GUI2 Canvas: Enable drawing filled circles 2017-04-08 18:04:07 -04:00
Celtic Minstrel
76dcfcb32f GUI2 Canvas: Implement rounded rectangle shape
Currently it's outline only.
2017-04-08 08:30:00 -04:00
Celtic Minstrel
9b2eac1920 Simplify storyscreen title definition 2017-04-08 07:22:37 -04:00