Celtic Minstrel
59dd9cc6af
Formula engine: Add optional base argument to reduce()
2016-03-17 23:27:12 -04:00
Celtic Minstrel
c1ca72f1dc
Formula engine: fix abs() and modulus not working on decimals
2016-03-17 23:27:11 -04:00
Celtic Minstrel
fe05f51c9e
Formula engine: Fix decimal values not being convertible to integers
2016-03-17 23:27:11 -04:00
Celtic Minstrel
4aa725ac29
Formula engine: When possible, use synced RNG for the dice roll operator
2016-03-17 23:27:10 -04:00
Celtic Minstrel
ad6528d13c
Formula engine: Support function definitions everywhere
...
This constructs a temporary function symbol table (lasting only the duration of the formula)
if no symbol table was passed to the formula at construction time.
2016-03-17 23:27:09 -04:00
Celtic Minstrel
6490b535a3
Tweak output of formula evaluation command prompt
2016-03-17 23:27:08 -04:00
Celtic Minstrel
1c9eb0cdbb
Formula engine: add tan and tail functions, extra argument to head function
2016-03-17 23:27:08 -04:00
Celtic Minstrel
e4b944d83b
Make variant iterator bidirectional and stdlib compatible
2016-03-17 23:27:07 -04:00
Celtic Minstrel
279ced9b55
Formula engine: allow lists to be indexed by a list
...
This produces a slice of the original list
2016-03-17 23:27:06 -04:00
Celtic Minstrel
0674f2a844
Formula engine: support wfl/wflend instead of fai/faiend
2016-03-17 23:27:06 -04:00
Celtic Minstrel
1ae426c51c
Formula engine: new concatenate and range operators
...
str .. str = concatenation
list .. list = concatenation
int ~ int = range (as a list)
2016-03-17 23:27:05 -04:00
Celtic Minstrel
03bbc79367
Formula engine: change undocumented string substitution syntax
...
It used to use {}, which gets caught by the preprocessor.
Now it uses [] instead.
2016-03-17 23:27:04 -04:00
Celtic Minstrel
240b5f61a7
Output formula errors in unit filters to WML error stream
...
(And consider them to match no units)
2016-03-17 23:27:03 -04:00
Celtic Minstrel
26a2638f2c
Make the formula and Lua views of a unit coincide more closely
...
Several keys were either missing or misnamed in the formula view.
These have been changed to match the Lua and WML names for the keys.
This affects canrecruit, moves, and max_moves, as well as status.
In addition, a large number of keys were missing entirely from the formula view.
Most of these keys have now been added and can be accessed from formulas.
A few that have little use in filters (such as image_mods or profile) are still missing.
The Lua view missed a few keys that the formula view did provide.
Although these could in principle have been obtained by using the special __cfg key,
they have now been added to the Lua view anyway.
2016-03-17 23:27:03 -04:00
Celtic Minstrel
f02a038879
Fix wesnoth.erase_unit for recall units
2016-03-17 22:41:05 -04:00
Charles Dang
8b2ba647d1
Slight contrast bump to Wooden Bridges (regular and rotten)
2016-03-18 10:09:33 +11:00
ln-zookeeper
541dbb95c9
Fixed Clean Gray Cobbles drawing transitions on itself
2016-03-18 00:30:02 +02:00
ln-zookeeper
4e6a4e8aad
Cleaned up off-hex stray pixels
2016-03-18 00:02:39 +02:00
Charles Dang
80823d7987
Enable formula debugger in debug mode
2016-03-18 05:21:13 +11:00
Charles Dang
0a8247d837
Forward-declare a variant header include
2016-03-17 23:19:21 +11:00
Charles Dang
e8dd50aa8c
tformula_debugger: use verbatim scroll labels
2016-03-17 23:18:08 +11:00
Charles Dang
86261779f2
tscroll_label: update to verbatim style (matches description now)
2016-03-17 23:17:44 +11:00
ln-zookeeper
8c2fd342e4
Cleaned up off-hex stray pixels
2016-03-17 01:16:55 +02:00
Celtic Minstrel
92ab82fc8e
Update changelog
2016-03-16 17:53:00 -04:00
Charles Dang
999acb187f
tlobby_main: more design tweaks
2016-03-17 08:39:40 +11:00
Celtic Minstrel
d94c73a972
GUI: Fix tooltips occasionally getting cut off on the right
2016-03-16 16:50:29 -04:00
Charles Dang
32c9378992
tlobby_main: design improvements
2016-03-17 07:18:24 +11:00
Charles Dang
8c4dfc5d69
Design tweaks to description scroll label
2016-03-17 07:18:23 +11:00
Celtic Minstrel
df7cdba42c
Merge pull request #628 from CelticMinstrel/lua_map_locations
...
Several location-related Lua things
2016-03-16 15:50:12 -04:00
Celtic Minstrel
268620e2ca
GUI: Simplify WML message dialog formulas
...
Now with 99% less WML macros inserted into the formula.
This makes it easier to read and possibly even more efficient.
2016-03-16 15:47:00 -04:00
Celtic Minstrel
afcb382009
Replace Lua map_location helpers with new luaW functions
...
This does change the interface and return values of several functions.
However, these functions were undocumented, so this shoud not be a problem.
2016-03-16 12:51:34 -04:00
Celtic Minstrel
46cee1df68
Allow wesnoth.match_unit to take a location, for hypothetical matches
2016-03-16 12:51:32 -04:00
Celtic Minstrel
2e6ad2bee3
Add wesnoth.select_unit(), deprecate wesnoth.select_hex()
...
wesnoth.select_unit() is also callable as u:select() where u is a unit
2016-03-16 12:51:31 -04:00
Celtic Minstrel
d250e04566
Now luaW_tolocation accepts units and vconfigs
2016-03-16 12:51:29 -04:00
Celtic Minstrel
058ec266cf
Re-enable/fix put_unit deprecation warning
2016-03-16 12:51:28 -04:00
Celtic Minstrel
a84500fb8f
Add functions for transferring map locations to and from Lua stack
...
This also changes nearly all API functions taking locations to use the new functions.
As a result, these functions can now accept their location arguments in any of three formats:
- An array of two integers
- A table with x and y keys
- Two separate, consecutive integer arguments
Functions that return locations mostly still use whatever format they used before.
This is because changing return values is a more compatibility-breaking change.
This temporarily breaks compatibiliy for the following AI functions:
- ai.get_targets()
- ai.get_avoid()
- ai.get_attacks()
2016-03-16 12:50:54 -04:00
ln-zookeeper
3133ba325f
Cleaned up off-hex stray pixels
2016-03-16 17:42:13 +02:00
ln-zookeeper
bc6effd0de
Fixed a small glitch between flat shore and sand shore
2016-03-16 10:18:51 +02:00
ln-zookeeper
9cc1188ce7
Fixed a few more cases of Fixed compression-induced brokenness
2016-03-16 09:25:28 +02:00
ln-zookeeper
1e27198761
Fixed compression-induced brokenness
2016-03-16 09:06:57 +02:00
ln-zookeeper
091370494a
Removed feathering and fixed visual mismatch between convex and concave
2016-03-16 00:57:06 +02:00
Charles Dang
819c352e7c
Revert "Removed an extra CVideo::flip() call from GUI1"
...
This reverts commit 0aa8900dce348d5ca590250351b2ffafbc0befab.
2016-03-16 06:22:25 +11:00
ln-zookeeper
3223ea29b1
Cleaned up off-hex stray pixels
2016-03-15 21:14:32 +02:00
Charles Dang
0aa8900dce
Removed an extra CVideo::flip() call from GUI1
2016-03-16 06:13:21 +11:00
ln-zookeeper
d6be471108
Cleaned up off-hex stray pixels
2016-03-15 20:36:48 +02:00
Charles Dang
a8e5036c24
editor: No panel background for top bar status areas
2016-03-16 05:14:05 +11:00
Charles Dang
a4c4f18a7c
Don't show any images for buttons in menu bar
2016-03-16 05:01:26 +11:00
Charles Dang
8e8b4a3835
Added empty images for an imageless menu button
...
This is a huge hack, but it's how GUI1 was set up and it's not worth
trying to refactor it any differently.
2016-03-16 05:00:58 +11:00
Charles Dang
33a68d33fd
Remove background from theme status boxes and tweak position slightly
2016-03-16 00:13:53 +11:00
Charles Dang
4f106b4d1f
GUI2: gave windows procedurally-drawn minimal borders
2016-03-15 21:57:53 +11:00