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
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