22273 Commits

Author SHA1 Message Date
fendrin
bd5ff0e35f LoW: [+units] -> [units] 2016-08-03 21:45:47 +02:00
fendrin
0fd792a676 Removed a silly use of [+unit]. 2016-08-03 20:10:53 +02:00
Fabian Müller
f7c48a0222 LoW: Add Great Ogre unit. 2016-08-03 17:07:39 +02: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
Jyrki Vesterinen
c4d51b1bbb Add @PoignardAzur to credits 2016-08-02 15:43:09 +03:00
Celtic Minstrel
53828a01b9 New [remove_object] WML tag 2016-08-02 00:52:52 -04:00
Celtic Minstrel
6dab777f66 Accept [effect] in [modify_unit] 2016-08-02 00:01:48 -04: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
gfgtdf
864d84c2b5 fix recall list lost in LoW scenario13
fixes http://gna.org/bugs/?24896
2016-08-01 14:46:03 +02:00
Andreas Löf
2360fb6260 Merge branch 'monte-carlo-damage-calculation' of https://github.com/jyrkive/wesnoth into jyrkive-monte-carlo-damage-calculation 2016-08-01 22:04:06 +12:00
Charles Dang
6080cfb969 Switch unit_preview_pane image_facing key to image_mods 2016-08-01 08:14:19 +11:00
Bär Halberkamp
fd1a776997 Change attack sounds for short swords 2016-07-31 13:10:00 -04: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
Celtic Minstrel
dc3d22a5e4 Merge pull request #710 from spixi/call_events_by_id
Allow firing an event by id instead of name.
2016-07-30 01:21:12 -04:00
Gregory A Lundberg
346d8ceac5 L S04 Update for new auto_recall sub-tag 2016-07-29 18:18:53 -05:00
Gregory A Lundberg
585412a222 AOI Update macros for new auto_recall sub-tag 2016-07-29 18:18:53 -05:00
Gregory A Lundberg
b064328102 New features for [role]
Add search_recall_list=only to search the recall list, but not the map
This is intended as a more clear way of doing 'x,y=recall,recall' and omitting search_recall_list. Note that search_recall_list=no with x,y=recall,recall produces a useless [role] which only runs the [else] block(s).

Add reassign attribute
Optional attribute, default 'yes'. If 'no' then do not re-assign the role if a unit already has the role. If 'no' and no unit has the role, the role is still assigned.

Refactor auto_recall as a sub-tag
Instead of a yes|no attribute, if there is an [auto_recall] sub-tag then recall the unit from the recall list. This acts as a [recall] tag without any StandardUnitFilterto which we add id=$unit.id and issue the recall.
2016-07-29 18:18:53 -05:00
Bär Halberkamp
4e71bbe448 Generate trait help instead of hardcoding
Introduces a new key "help_text=" in [trait]
2016-07-29 18:44:10 -04:00
Celtic Minstrel
95c4556a59 fai -> wfl in FormulaAI files 2016-07-29 12:52:10 -04:00
Charles Dang
db7d94f4f4 tunit_attack: few layout tweaks 2016-07-29 18:00:08 +11:00
Charles Dang
1dafd22365 Further text clipping fixes (bug #24707) 2016-07-29 05:21:38 +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
772f78b5a0 Fixed some ext clipping with Lato in sidebar (bug #24707) 2016-07-29 00:22:50 +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
mattsc
3f2df87bed Recruit rushers AIs: adapt syntax to recent AI changes
This caused an error message and recruiting to be abandoned when the
recruit rushers Micro AI was used for two different sides in the same
scenario.  It was only presents since the AI refactoring done during
1.13.4+dev and did not affect any release.
2016-07-27 19:58:22 -07:00
Charles Dang
2826881eef Bumped button text size by 1 point and fixed text centering. 2016-07-27 03:18:29 +11:00
Celtic Minstrel
220a85377d Fix extraneous quote 2016-07-24 14:33:24 -04: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
7a859a2ece Fixup a5130a4c3600 (forgot to include small resolution buttons) 2016-07-24 10:00:01 +11:00
Charles Dang
a5130a4c36 Made sure menu button are flush with window border 2016-07-24 09:56:12 +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
Spixi
5588642c81 Allow firing an event by id instead of name. 2016-07-23 12:23:19 +02:00
Charles Dang
a3e535300b Revert "Don't show any images for buttons in menu bar"
This reverts commit a4c4f18a7c45ef8c652fe9be72d166ab3e798309.
2016-07-23 15:27:15 +11:00
Jyrki Vesterinen
0e7305017e Enabled Monte Carlo simulation mode by default 2016-07-21 20:41:04 +03:00
Jyrki Vesterinen
6766e05747 Put the Monte Carlo mode behind an advanced preference and update changelog 2016-07-21 20:13:24 +03: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
Bär Halberkamp
1d8d843a80 move set_variable.rand's logic to helper.rand 2016-07-19 13:48:31 -04:00
Lari Nieminen
849cacceb1 Merge pull request #699 from GregoryLundberg/GL_L_final
Liberty fixes
2016-07-19 16:31:53 +03:00
Lari Nieminen
b02e084064 Merge pull request #690 from GregoryLundberg/GL_AOI_recruit_mages
AOI Linaera should recruit Mages, not Elves
2016-07-19 16:30:53 +03:00