68287 Commits

Author SHA1 Message Date
Charles Dang
a9ba9a9fea Stacked Widget: initialize internal generator with a minimum defined
This shouldn't have any external effects, since in practice a stacked_widget would always have at least
one layer visible. I just noticed this while trying to fix something else, and it seems a rather harmless
change.

Note it does change the internal policy method used for this generator.
2017-03-26 11:41:08 +11:00
Celtic Minstrel
e78f499a1c Fix [animate_unit]text= rejecting translatable strings (GNA25625) 2017-03-26 11:15:12 +11: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
Jyrki Vesterinen
74083a2f89 MP create: fix scrollbar not appearing in the SP campaign list
It turned out that in AUTO_VISIBLE_FIRST_RUN mode, scrollbar_container
expects the scrollbar to be either visible or invisible. The code I added
in commit 9b1ca36b5c8ad353daf5881d65adfd8ba843381c made the scrollbar hidden instead, which
prevented a full relayout from occurring if the content grew afterwards.
Showing the scrollbar, in turn, depends on full relayout.

This issue only affected listboxes and not scroll labels,
which is why I didn't initially notice it.
2017-03-25 20:36:53 +02:00
Jyrki Vesterinen
9b1ca36b5c Remove layout_initialise() calls from content_resize_request()
The calls were there to work around automatic rewrapping of text caused by
a hack in `scroll_label::set_label()`. @Vultraz removed that hack in commit
ae76bb0efbc53f102cc772ace3941c5867e2c91c. After that, there wasn't any
reason to call `layout_initialise()` any more.

Well, other than that removal of scrollbars set as `AUTO_VISIBLE_FIRST_RUN`
relied on full layout initialization. I implemented a secondary, faster
mechanism for that.

This commit removes unnecessary code, and speeds up switching between
add-ons in the add-on manager further still.
2017-03-24 20:53:41 +02:00
Jyrki Vesterinen
fb700d775f Fix "failed to place a grid" messages when partial relayout is used
The problem was that some widgets which wrap a grid didn't have their
cached sizes thrown away when the grid itself did. As a result, when the
parent grid of such a widget tried partial relayout, it discovered that the
widget fits just fine (according to the cached size) and attempted to lay
it out without shrinking it first. Then the grid found that it was given
much less space than it would prefer, and printed the error message.

Fixed by discarding cached sizes of such widgets.
2017-03-24 20:53:41 +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
14bb0ab73e GUI2/Canvas: made set_is_dirty member public 2017-03-24 17:46:03 +11:00
Charles Dang
1a231c7fdc GUI2/Canvas: add flag for immutable shapes
Immutable shapes aren't removed when the canvas shapes are set.
2017-03-24 17:45:37 +11:00
mattsc
3b2ff54e2f Update Xcode project 2017-03-23 19:00:39 -07:00
Wedge009
9451452fb4 Updating VC project files for 1cf90d02.
Also tidy some filters.

[ci skip]
2017-03-24 12:38:59 +11:00
Charles Dang
d22a4ca696 Removed event context from storyscreen controller
This fixes an issue where no click would register if using the GUI2 storyscreen dialog. Its removal doesn't seem
to have any effect on the GUI1 one either.
2017-03-24 12:24:28 +11:00
Charles Dang
b917e16e6a Fixup 1cf90d02d618 (accidentally removed a piece of code in the old codepath) 2017-03-24 11:58:52 +11:00
Charles Dang
c204d3e1e2 Don't show GUI2 help by default (hide it behind --new-widgets switch)
Looks like it might be awhile before we get more progress on this, so I'm hiding it by default for now.
2017-03-24 11:43:34 +11:00
Charles Dang
1cf90d02d6 Initial implementation of GUI2 story viewer 2017-03-24 11:42:13 +11:00
Charles Dang
dd41514ea8 Password Box: removed an unnecessary set_cursor call
[ci skip]

This was rendered unnecessary by de090c16
2017-03-24 08:47:25 +11:00
Charles Dang
8d608f65f5 Adding missing and fixed incorrectly formatted copyright notices 2017-03-24 08:26:06 +11:00
Celtic Minstrel
f45d795134 fixup 0f01f97b (GNA25615) 2017-03-23 17:00:51 -04:00
mattsc
cada1d24ee Update Xcode project 2017-03-23 13:43:37 -07:00
Nils Kneuper
3073952332 updated British English translation 2017-03-23 19:32:19 +01:00
Nils Kneuper
05ee1a20c4 fixed wesnoth-sota files
* add headers to "completely untranslated files" (translated files had
  headers)
* added missing languages (fur/nb)
* ran a pot-update to verify everything works
2017-03-23 19:30:26 +01:00
Nils Kneuper
f12bf3345f add wesnoth-sota to CMake list (allow compilation + pot-update) 2017-03-23 19:30:25 +01:00
Jyrki Vesterinen
be4d1c1702 Suppress MSVC compiler warnings in md5.cpp 2017-03-23 19:36:14 +02: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
gfgtdf
23f1cc1349 change game_config::default_victory_music to vector type 2017-03-23 18:08:16 +01:00
gfgtdf
d13f76fdd6 cleanup a loop by using range for 2017-03-23 18:08:15 +01:00
gfgtdf
506fe190bb some indent fix 2017-03-23 18:08:15 +01:00
gfgtdf
6d5ec1368d remove unused game_data default ctor 2017-03-23 18:08:15 +01:00
Celtic Minstrel
16df1f3c43 wesnoth.create_animator: Set standing right after animation completed rather than at finalization 2017-03-23 12:44:28 -04:00
Celtic Minstrel
c3e0ce4745 Fixup wesnoth.get_end_level_data 2017-03-23 12:43:25 -04:00
Celtic Minstrel
9749689551 Update MSVC project files 2017-03-23 12:42:17 -04: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
c8ed96f0eb Updated changelog
[ci skip]
2017-03-23 22:14:33 +11:00
Charles Dang
b9951dd39b Attack Predictions: used a lambda comparison instead of std::greater as @jyrkvie requested 2017-03-23 22:07:34 +11:00
Charles Dang
5e07b27500 File Dialog: update selection data when updating fileview
This fixes an issue where the relevant selection wasn't updated when, say, deleting a file.
2017-03-23 22:03:26 +11:00
Charles Dang
aeaf44da03 File Dialog: set path label to left (start) ellipse mode
This ensures the important part of the file path - the end - is always visible.
2017-03-23 22:01:37 +11:00
Charles Dang
db654cc0dc Styled Widget: allowed override of ellipsize mode fallback if can_wrap is false 2017-03-23 21:57:43 +11:00
Nils Kneuper
91f50aa0bc ran a pot-update to make sure new campaign works 2017-03-23 08:16:16 +01: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