Commit graph

1566 commits

Author SHA1 Message Date
Celtic Minstrel
e46b10af0e Story viewer: Shrink translucent background behind title to a box 2017-04-08 03:37:41 -04:00
Celtic Minstrel
88420357b0 Story Viewer: add translucent background behind title 2017-04-08 17:56:51 +11:00
Celtic Minstrel
348d2e1bb2 Some cleanup of GUI2 formulas
This is mainly about shifting WML macro inclusions into a where clause,
especially when they appear multiple times in a specific formula.
2017-04-08 00:58:39 -04:00
Charles Dang
3a3e6fe725 Fixup 03c7b3d
* Cleaner variable set method
* Fix variable name
2017-04-08 15:19:05 +11:00
Charles Dang
03c7b3debd Story Viewer: hide title if there's no title to show, and display text panel borders appropriately
NOTE: not sure what the FIXME seems not to be an issue now. Perhaps due to the grid relayout happening as a result of
`set_vertical_alignment`.
2017-04-08 15:06:10 +11:00
Charles Dang
5fbd4a727b Story Viewer: deployed new alignment set API
The set_origin method worked, but not in every circumstance. For example, if the story box were not aligned to the bottom of the
screen in the initial part, it would not be correctly place. If you resized the screen while the box was not at the bottom, it
would return there. This was due to set_origin being purely temporary - ie, the layout engine did not record the new position,
and when invalidate_layout was called, the default (per the dialog WML) position of 'bottom' was restored.

This new method fixes the above issues. It also fixes an issue the old GUI2 screen had where a top-aligned box would also obscure
any available title.
2017-04-08 14:39:50 +11:00
Charles Dang
3b24361f1a Story Viewer: added proper nav button definitions 2017-04-07 12:19:40 +11:00
Charles Dang
0a2ba65046 GUI2: simplify GUI_WINDOW_FIXED_SIZE_CENTERED x,y calc 2017-04-07 12:13:21 +11:00
Charles Dang
a0ff2a5e96 GUI2: made GUI_CENTERED_IMAGE more robust and deployed it for buttons instead of a custom macro 2017-04-07 12:11:09 +11:00
Charles Dang
a5b795c57a Story Viewer: implemented correct display of panel borders based on story text position 2017-04-07 11:29:47 +11:00
Charles Dang
c8ac77da42 GUI2/Canvas: implement WFL action context
Right now this is only for the image shape, but it can be expanded later.
2017-04-06 09:04:21 +11:00
sigurdfdragon
dde1854ba0 MP: Use title case for all use_map_settings options 2017-04-01 15:37:43 +11:00
Charles Dang
396b33c8a9 Story Viewer: much progress
Most functionality is implemented now, except (most notably) floating images.
2017-03-28 01:07:52 +11:00
Charles Dang
6bb7bd1017 Use standard color macros for button code
Since we can now specify alpha in the standard ones, there's no need for the duplicates.
2017-03-28 01:07:51 +11:00
Charles Dang
18e29731e6 Add optional WIDTH and HEIGHT arguments to GUI_FILLER 2017-03-28 01:07:50 +11:00
Charles Dang
15b3317b36 Add optional ALPHA macro args to all color macros 2017-03-28 01:07:48 +11:00
Charles Dang
b0a51e5676 Story Viewer: more progress
* Story box can grow to accommodate more text
* Story panel can be hidden if no text is available
* Background images now respect scaling settings
2017-03-26 22:28:18 +11:00
Charles Dang
3648db32cf Updated GUI2 schema for 1a231c7 2017-03-24 20:28:33 +11:00
Charles Dang
aba06146be Story Viewer: progress on key nav and background image rendering 2017-03-24 17:48:40 +11:00
Charles Dang
1cf90d02d6 Initial implementation of GUI2 story viewer 2017-03-24 11:42:13 +11:00
Charles Dang
ecffef786a GUI2/Help Browser: display raw topic text
Not sure a multi page is the best way to go here. There's a 2 - 3 second lag when opening the browser.
2017-03-23 23:36:27 +11:00
Charles Dang
3281df4e2f Base framework for GUI2 Help Browser 2017-03-23 22:58:37 +11:00
Charles Dang
c0cfd2f054 Addon Manager: fixed a case of inconsistent label side
[ci skip]
2017-03-23 13:18:58 +11:00
Charles Dang
bed2622455 Addon Manager: shorten Uploaded/Updated labels
[ci skip]
2017-03-23 11:58:05 +11:00
Charles Dang
9f77919427 Addon Manager: cleaned up unnecessary vertical_alignment keys
[ci skip]
2017-03-23 11:56:43 +11:00
Charles Dang
e93d48cc8a Addon Manager: allow Language and Dependencies labels to shrink
[ci skip]
2017-03-23 11:46:53 +11:00
Charles Dang
26dadfc2fb Addon Manager: internal layout tweaks
Why in hell did I not have the description scroll_label's column not marked as grow :|
2017-03-23 11:39:20 +11:00
Charles Dang
736c222688 Addon Manager: switch to plain labels (as opposed to scroll labels) for Language and Dependency fields
I likely had this in to work around the labels not filling all available space before mordante made me realize
horizontal_grow = true was the way to go. Either way, we don't ever want a scrollable list here.
2017-03-23 11:22:55 +11:00
Charles Dang
01b955717c Addon Manager: fixed formatting for installed dependencies list
[ci skip]
2017-03-23 11:06:44 +11:00
Charles Dang
aa57974500 Reduced size of large addon manager action buttons based on feedback
[ci skip]
2017-03-23 11:01:19 +11:00
Charles Dang
9a288ab78c Attack Predictions: greatly simplified WML and fixed misalignment when rows are hidden 2017-03-23 03:51:40 +11:00
Charles Dang
faaf311981 Removed a FIXME
[ci_skip]

Was fixed in 6520c7c
2017-03-22 14:05:25 +11:00
Charles Dang
26d4e55500 Attack Predictions: temp fix to keep data values aligned with labels
[ci_skip]

Value rows still aren't aligned in the case of one side of the data not having the specified value. Will fix later.
2017-03-22 14:04:21 +11:00
Charles Dang
6520c7c81e Attack Predictions: fixup use of default arg syntax
[ci_skip]
2017-03-22 13:55:06 +11:00
Charles Dang
1387a647c3 Attack Predictions: added rest of the modifier fields and improved data readability 2017-03-22 13:47:01 +11:00
Charles Dang
27f2826703 Attack Predictions: interface improvements 2017-03-22 05:18:26 +11:00
Charles Dang
32118d59c4 Attack Predictions: initial implementation of HP probability graphs 2017-03-21 15:18:29 +11:00
Charles Dang
64a369ef6f Addon Manager: made Exit button normal size 2017-03-19 04:52:42 +11:00
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