63404 Commits

Author SHA1 Message Date
gfgtdf
cc5dc5b382 attempt to fix replays of mp games not beeing loaded correctly.
https://gna.org/bugs/?24439
2016-02-22 14:56:29 +01:00
Charles Dang
499cadc37b Update GUI1 scrollbar image paths post-5aa86c42f004 2016-02-23 00:50:55 +11:00
Charles Dang
9cdc3bcbd2 SoF: center description poem 2016-02-23 00:48:27 +11:00
Charles Dang
e8c3fdb238 tcampaign_dialog: add support for setting alignment of description text from WML 2016-02-23 00:47:54 +11:00
Charles Dang
c0254f6bca tcontrol: add text_alignment setter to set_members 2016-02-23 00:45:18 +11:00
Charles Dang
b57def5130 ttitle_screen: use a standard label definition for version label
Since this label no longer has a special background, the custom definition isn't
necessary anymore.
2016-02-22 23:48:53 +11:00
Charles Dang
5aa86c42f0 Moved scrollbar images to their own folder 2016-02-22 23:35:23 +11:00
Charles Dang
04d510a91c gui2: dropped repeating buttons from scrollbars 2016-02-22 23:30:47 +11:00
ln-zookeeper
e85d504fbc Replaced feathered beach wave masks with hard-edged ones
This both improves performance slightly and eliminates glitches resulting from the feathered masks overlapping.
2016-02-22 14:19:18 +02:00
Charles Dang
67cf95a5af gui2: cleanup of the text box widget design
This reduces border size as well as removes a hack related to transparent
backgrounds and text rendering. I can't observe any issue with text AA
using semi-transparent backgrounds anymore.
2016-02-22 22:07:14 +11:00
Charles Dang
710b1fc3af tgame_load: very subtle layout fix
The Delete button wasn't perfectly aligned with the listbox scrollbar
on the right.
2016-02-22 21:38:10 +11:00
Charles Dang
34153effa8 gui2: removed borders from usecases of listbox_header type toggle buttons
This deliberately excludes the addon_list dialog, since work is being done
on that elsewhere.
2016-02-22 21:28:54 +11:00
Charles Dang
81389f4c88 gui2: tweaked layout of listbox header toggle button definition
This lays out the text by a 5 left offset, alleviating the necessary use
of a border in dialogs using this widget, since borders meant that the
colors backgrounds would not be drawn. As such, any use of this widget
should *not* have borders defined.
2016-02-22 21:28:00 +11:00
Charles Dang
c08a87a255 tpreferences: hopefully silenced unused parameter warning 2016-02-21 21:28:36 +11:00
Charles Dang
07169f5e7a tpreferences: fixup ad8468698916
The previous iteration caused a crash on exit if you weren't in the display tab,
since the scale slider couldn't be found. This keeps the value of the slider in
a class member variable so its always accessible.
2016-02-21 21:00:26 +11:00
Charles Dang
8952ca05a8 tpreferences: always apply suffix to bound status labels 2016-02-21 20:04:30 +11:00
Charles Dang
4f6be879a5 tpreferences: made font scaling apply during post show not when dragging slider 2016-02-21 20:01:47 +11:00
Charles Dang
ad84686989 tpreferences: tweaked layout of Font Scaling slider 2016-02-21 20:01:21 +11:00
Charles Dang
6d48d72b7b tpreferences: move composite slider definition to main file
This makes it available to all preference subfiles
2016-02-21 19:30:03 +11:00
Nils Kneuper
a13ad0c23e added Asturian translation 2016-02-21 09:13:42 +01:00
Celtic Minstrel
742d17932f Merge pull request #603 from CelticMinstrel/prefs_stuff
Font scaling and reimplemented orb colors
2016-02-21 01:34:57 -05:00
Celtic Minstrel
6848a6d596 Preferences: code cleanup and minor bugfix 2016-02-21 00:38:27 -05:00
Charles Dang
b0344fed20 Update GUI1 title style to match GUI2 (as of a6101bf80dda) 2016-02-21 13:18:36 +11:00
Ignacio R. Morelle
b04c158e89 gui2/tpreferences: Macro scope cleanup 2016-02-20 23:16:26 -03:00
Ignacio R. Morelle
eabe55b407 Remove obsolete documentation bit 2016-02-20 23:09:55 -03:00
Charles Dang
4ad4722160 tpreferences: slight height bump 2016-02-21 13:01:08 +11:00
Charles Dang
a6101bf80d gui2: tweak title-style label design 2016-02-21 12:59:52 +11:00
Charles Dang
d361754806 tunit_attack: specify characters per line for attack name details 2016-02-21 12:22:52 +11:00
Charles Dang
85fefbe5b8 Improve design of Orb toggle buttons 2016-02-20 19:55:53 -05:00
Ignacio R. Morelle
b430993a31 Make the MAKE_ENUM Doxygen documentation actually sane
Otherwise, most of the contents get attached to the bad_enum_cast type
definition instead.

Note that I couldn't figure out why the documentation for the stream
input operator says that twml_exception is thrown when in debug-mode
when the code does not actually do that at this time (the relevant
function call is commented out).
2016-02-20 21:15:46 -03:00
Ignacio R. Morelle
c04bb94149 Fix cases of people not updating the documentation when refactoring 2016-02-20 20:47:40 -03:00
Ignacio R. Morelle
1e167aaa66 Fix cases of made-up Doxygen syntax 2016-02-20 20:38:12 -03:00
Ignacio R. Morelle
7fe5437298 Fix comment 2016-02-20 20:38:12 -03:00
gfgtdf
fe3709dba7 Merge pull request #606 from Wedge009/bug_24427_fix
Restore loading of user hot-keys at start-up (bug #24427)
2016-02-20 04:12:14 +01:00
Charles Dang
da86bcb7a2 Cleaned up some GUI1 includes 2016-02-20 12:13:34 +11:00
Charles Dang
100e463473 Convert two GUI1 popups to GUI2 2016-02-20 11:59:08 +11:00
gfgtdf
8eafd50980 fix wesnoth.read_file() 2016-02-18 23:49:09 +01:00
gfgtdf
439ded53ee 2p dark forecast: don't store unit pool types in savefiles
instead of storing the poolypesin savefiles we now have them as 'const'
lua array and store only the indexes to this array in the savefiles.
this has some advantages:
1) It makes the savefiles smaller
2) It simplyfies the lua code becasue we don't have to convert the wml
tables to lua tables anymore.

This also changes the scenario so that the spawned unit types are now
calculated at the beginning (they will be the same when reloading from a
savefile.)
2016-02-18 23:34:50 +01:00
gfgtdf
39eb8feaf1 add difficulcy level slider to dark forecast mp scenario
unfortunateley the 'description' (the tooltip of the widget in the mp
configure dialog) doesn't show in current master. This is likeley to be
a bug related to gui internals.
2016-02-18 23:08:44 +01:00
gfgtdf
f507418655 fix gui1 sliders
this fixes issued with gui1 sliders beeing unable to handle negative min
values.
2016-02-18 23:08:43 +01:00
gfgtdf
8ee34c39b2 move most dark forecast code to lua
This has multiple advantages:
1) It makes the code easier to understand because we now can use local
variables and return values.
2) It makes the code easier to debug because we don't have to reload the
wml cache anymore for changes to have an effect
3) It makes loading the multiplayer wml faster, specially dark forecasts
wml codes is now so short that we don't need to guard it inside its own
preprocessor marco anymore.
4) It decreases the save file size.

This commit also does other improvements to the code, for example:
1) We don't create temporary units anymore just to query the costs of
a unittype.
2) We now load the weather maps dynamically at runtime with
wesnoth.read_file, this decreased the prorocessor paring time and savefile
size further.
3) When creating the new spawns we use temporary objects to decrease
the units movement, instead of changing and resetting the unit stats
manually.

This also has a disadvantage:
1) It now requires all players to have this scenario installed, since it
it a mainline scenario i see no problems with that.
2016-02-18 23:08:41 +01:00
gfgtdf
6623641ebb remove unused code 2016-02-18 23:08:40 +01:00
gfgtdf
9c59311b41 add function wesnoth.read_file
It can for example used to read map files.
2016-02-18 23:08:39 +01:00
gfgtdf
322a2f7141 allow .. in relative filenames in wesnoth.dofile/require
This changes the lua loadfile code to store relative filenames (like
~add-ons/campaign1/lua/code.lua) the in descriptions attributes of lua
codechunks. This not only makes the lua error messages easier to read
(previously: 'error in C:\users\... ...ign1/lua/code.lua", now: "Error
in ~add-ons/campaign1/lua/code.lua").
This also removes the possiblity for wml authors to query the wesnoth
install directory path by using lua debug functions.

We have to use a custom function resolve_filename() to resolve filenames
that begin with "./" becasue get_wml_location() expects a abolsute
directoy ("C:\users\....") as second parameter, and i didnt want to
change it becasue it is also used by the wml proprocessor which i don't
want to look at right now.

Since i had to write a custom function resolve_filename() function
anyway i decided to also put support for ../ and  ./ in it, note that
the results is passed to get_wml_location() anyway so all security
checks that were there previously are still there.
2016-02-18 23:08:37 +01:00
gfgtdf
3e2dfed89d added border to dark forecast map
this adds borders to the 2p dark forecast survival map, it also removes
the big empty space in the upper third of the map.

This also renames the mask files to map files, becasue they are actually
just normal maps, and the [terrain_mask] just replaces the current map
with these.
2016-02-18 23:08:36 +01:00
gfgtdf
561e30bc7d 2p Dark Forceast cleanups 2016-02-18 23:08:34 +01:00
Wedge009
964d7bb09f Restore loading of user preferences at start-up (bug #24427)
Loading of user preferences - or user hot-keys at the very least - were broken with the deletion at 28be388d6d (diff-fce7a1e6525522f3e4ab47349051a806L770)

This restores loading of user preferences at start-up.
2016-02-19 06:23:35 +11:00
Ignacio R. Morelle
7bbb18452e pofix: Add latest website rules 2016-02-18 06:18:38 -03:00
Celtic Minstrel
1e71e1f0bc Preferences: Handle cases of renamed orb colour ranges 2016-02-18 01:14:15 -05:00
Celtic Minstrel
eef5db9327 Minor prefs cleanup 2016-02-18 01:14:14 -05:00