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
gfgtdf
8c4e09e940
allow to to use a custom rng in helper.rand
2017-04-07 15:05:56 +02: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
Jeffrey 'Sigurd' Westcoat
14239c6911
AOI: Remove unnecessary trait ( #969 )
...
Leaders don't need loyal.
2017-04-01 00:39:49 -04:00
sigurdfdragon
dde1854ba0
MP: Use title case for all use_map_settings options
2017-04-01 15:37:43 +11:00
ln-zookeeper
cc6239061f
UtBS: Fixed infinite loop in the support ability code (bug #25626 )
...
This happened due to the combination of the loop using [continue] and thus assuming FOREACH is implemented with [for], and FOREACH being reverted back to not using [for] in 8bbe4189.
2017-03-29 18:07:45 +03: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
Celtic Minstrel
0c4b05ee2a
Some fixes to [heal_unit]animate=yes
...
- Play the healed animation
- Pass the heal amount to both animations
2017-03-27 01:07:33 -04:00
ln-zookeeper
f5a1e44fb2
Fixed a few broken TC pixels in Cavalryman line sprites
2017-03-26 21:24:53 +03: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
Celtic Minstrel
701649a75e
Fix [heal_unit] attempting to animate even if filter didn't match a unit
2017-03-26 00:15:38 -04:00
Severin Glöckner
9ff0137ca1
HttT S19c:
...
The condition for this event wasn't working as intended before.
And since the injuried sergant is only used once and not as regular unit, he's now hidden in the help.
[ci skip]
2017-03-25 22:56:39 +02:00
Severin Glöckner
d1b9dde798
changed morningstar to morning star
...
[ci skip]
2017-03-25 22:03:00 +02:00
Celtic Minstrel
5397c1eabc
fix wmlparser2 and wmlparser2
...
fixup for 3d63f66dbb9e7cffec5376e044fc14b635d661c2
After this commit, all the wmlparser tests pass (including the new one) and the issue stated in #907 has also been verified to be fixed.
2017-03-24 13:58:20 -04:00
Allefant
9f3ed8df4c
[wmlunits] apply zookeeper's suggested eras.cfg fix
2017-03-24 13:13:59 -04: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
Celtic Minstrel
f45d795134
fixup 0f01f97b (GNA25615)
2017-03-23 17:00:51 -04:00
gfgtdf
cbd3c2644c
add lua end_music setter/getter
...
this also refactors some play_controller members and moves them
to game_data
this also adds a scenario_id getter in lua.
2017-03-23 18:08:16 +01: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
ln-zookeeper
8bbe4189ed
Reverted FOREACH, NEXT and REPEAT to their original forms
...
This is because the changes (9fb175c9d6) possibly break some existing uses for no reason.
2017-03-22 19:45:21 +02: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
gfgtdf
bd6a0c69d1
replace wesnoth.set_next_scenario() with wesnoth.game_config.next_scenario setter/getter
2017-03-20 02:48:03 +01:00
Celtic Minstrel
1a1a893a4c
Update [heal_unit] to use new animation API calls
2017-03-20 12:00:21 +11:00
Celtic Minstrel
0f01f97b30
Update Micro AIs to use new Lua API functions for altering AI
2017-03-20 12:00:21 +11:00