Commit graph

1566 commits

Author SHA1 Message Date
Charles Dang
62a299d1eb Mp Create: further progress, including adding a page for custom Options 2016-08-12 12:22:24 +11:00
Charles Dang
8651dabfe9 MP Create: major progress on layout of GUI2 MP Create dialog 2016-08-11 18:10:52 +11:00
Charles Dang
89246cd473 MP Create: minor progress, mostly bringing the existing content to a semi-proper layout 2016-08-11 05:48:31 +11:00
Charles Dang
11162e02e7 Game Stats: fixed handling and display of leaderless, non-hidden sides 2016-08-10 19:46:25 +11:00
Charles Dang
650f0c0912 Unit List: removed a duplicate border definition 2016-08-10 17:59:53 +11:00
Charles Dang
ce5cb51c57 Language Selection: use a proper toggle panel list instead of toggle buttons 2016-08-10 17:52:35 +11:00
Charles Dang
5398980ac0 Unit Advance: some layout improvements, code cleanup and clarification, and a minor issue fix
The fix is disabling ESC-closing of the dialog.
2016-08-10 13:40:06 +11:00
Charles Dang
79de5a8ae8 Convert Scenario Status/Settings dialog pair to GUI2 2016-08-09 22:01:14 -04:00
Celtic Minstrel
8a9a466a29 Revert "Convert Scenario Status/Settings dialog pair to GUI2"
This reverts commit bb49be8428.
2016-08-09 21:58:48 -04:00
Charles Dang
bb49be8428 Convert Scenario Status/Settings dialog pair to GUI2 2016-08-10 12:52:26 +11:00
Celtic Minstrel
febb34cfbb Convert unit advancement dialog to GUI2 2016-08-09 20:49:48 -04:00
Charles Dang
cfd205e3a4 Completed and activated the GUI2 Unit List dialog 2016-08-09 15:00:42 +11:00
Charles Dang
9c683576d9 Added GUI2 Unit List dialog (unused yet) 2016-08-08 04:36:40 +11:00
Charles Dang
aab702fb1e Unit Recall: no longer force scrollbar for list
This was intended as a workaround for bug #24708, but since the unit preview pane now ensures
sufficient space, this isn't an issue anymore.
2016-08-06 17:15:34 +11:00
Charles Dang
806c5b1b8b Unit Preview Pane: force minimum size for details area 2016-08-06 10:36:06 +11:00
Charles Dang
96453a3e9c Unit Recruit: layout tweaks to display more recruits before needing to scroll 2016-08-06 10:21:34 +11:00
Charles Dang
95fecb9d90 Small code and border cleanups 2016-08-05 05:06:52 +11:00
Charles Dang
e2d48f4482 Cleaned up some unused code
This was left around after switching the dialog to a unit preview pane widget.
2016-08-04 08:09:40 +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
5b8a64405a Load Game: used a spacer to force space in the details area 2016-08-03 14:46:39 +11:00
Charles Dang
12601cc6e2 Convert several GUI2 dialogs to use the new sorting code 2016-08-03 11:42:16 +11:00
Charles Dang
853cbb7347 Forgot to add Recall dialog WML... 2016-08-02 12:23:54 +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
6080cfb969 Switch unit_preview_pane image_facing key to image_mods 2016-08-01 08:14:19 +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
db5f497fd7 Logging: fixed placement of title 2016-07-30 17:05:54 +11:00
Charles Dang
56e2a733e5 Merge pull request #674 from jyrkive/mute-in-background
Mute the music when the game loses focus
2016-07-30 16:49:21 +11:00
Charles Dang
fbef58a29a Lua console: made window fullscreen and cleaned up layout code 2016-07-30 16:46:55 +11:00
Charles Dang
db7d94f4f4 tunit_attack: few layout tweaks 2016-07-29 18:00:08 +11:00
Celtic Minstrel
f828ad0eea Reduce max font scaling to avoid crashes 2016-07-28 11:48:11 -04: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
6c98f52b82 Don't show BfW text in loadscreen, only logo 2016-07-29 01:08:53 +11:00
Charles Dang
1cfad2404f Simpler and safer GUI2 text positioning formulas 2016-07-28 23:01:35 +11:00
Charles Dang
95ab7971f8 Fixup GUI2 centered text formula 2016-07-28 21:52:48 +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
aea6cbbabc Tiny tweak to vertically centered text to make it more centered 2016-07-24 13:51:36 +11:00
Charles Dang
d90f1eae7b tlua_interpreter: fixed placement of Clear button 2016-07-24 09:48:42 +11:00
Charles Dang
9f6d9b45cb Use darker borders on titlescreen panels 2016-07-24 09:45:25 +11:00
Celtic Minstrel
939e15f771 Merge pull request #670 from dorng/core_logo
[game_config]: new keys for logo
2016-07-19 23:14:47 -04:00
Charles Dang
02a43e2d61 tpreferences: small hotkey tooltip tweak 2016-07-20 13:57:04 +11:00
Charles Dang
fbcf4943b1 Use darker window border color 2016-07-19 13:07:14 +11:00
Celtic Minstrel
35d17dcaa1 Add clear button to Lua console 2016-07-15 01:37:30 -04:00
Jyrki Vesterinen
b7b6531a6f Add a checkbox for the "stop music in background" preference 2016-06-30 13:07:32 +03:00
dorng
c67538f93d [game_config]: new keys for logo
remove hardcoded path for logo image
add 'game_logo' & 'game_logo_background' keys in [game_config]
this allows [core] authors to define their own game logo to appear on the title screen
this does not (yet) affect the loadscreen
2016-06-16 00:15:53 +02:00
Celtic Minstrel
893607e077 Merge pull request #650 from ScegfOd/master
gui2: new logging dialog
2016-06-06 12:48:45 -04:00
Charles Dang
bfffc881f6 Increase max campaign selection dialog height 2016-05-30 02:13:46 +11:00
Jonathan Combs
7d8a032589 gui2: new logging dialog
New dialog added to advanced preferences. It contains toggles to
activate and deactivate logging (log messages print to console). Also
added a getter method to the base log methods so that the dialog can
'remember' previous choices.
2016-05-27 13:11:53 -07:00
Charles Dang
87f0716616 Reduced brightness of lobby game list border 2016-05-18 13:06:10 +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