70 Commits

Author SHA1 Message Date
Mark de Wever
d41120795d Changed the buildin SDL_ttf to a dependency on the library version >= 2.0.8. 2008-03-04 18:24:15 +00:00
Dimitar Ilccov
ef907c83eb Changed the color of the scenario titles on the bigmap to green.
This will have to do for now for the problem of the title letters
sometimes being indistinguishable from the background because of lack
of contrast against the background image. Hopefully someday someone
will fix this problem in a better way.
2008-02-21 08:15:14 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +00:00
Ali El Gariani
fd3384bab2 remove unused DARK_COLOUR (which also had a bad name for dark blue) 2007-11-10 16:53:56 +00:00
Gunter Labes
ae9e10f260 codeclean run
set svn:eol-style to native where missing
2007-08-31 19:09:40 +00:00
Mark de Wever
080eb69f60 Updated the headers to state GPL 2+ and a few changelog cleanups. 2007-08-15 13:41:56 +00:00
Ali El Gariani
cbb32c8be1 tiny useless cleaning about the recently modified del_tags 2007-07-21 20:34:35 +00:00
Mark de Wever
bb01934b85 A rather large update which updates the copyright info
* Wesnoth is distributed under the terms of the GPL version 2, made
  that more explicit

* updated the copyright range to 2007

* updated Dave's email adress
2007-07-21 07:28:04 +00:00
Ali El Gariani
92bc473d63 Fix bad color buttons in multiplayer lobby.
when calculating if ellipsis are needed, we don't need to count
special format characters.

However since we release tomorow, i play it safe and activate this
perfectly valid operation only for buttons (maybe some strings
somewhere use badly these special characters, with this i must just
check buttons)
2007-07-19 22:03:35 +00:00
David Philippi
f231fb12e0 merged patch #714 by silene
- removal of dead stuff and static linkage marking for internal functions
2007-04-06 12:26:02 +00:00
Patrick Parker
f8ce4365d8 port 2007-02-13T07:13:20Z!patrick_x99@hotmail.com to trunk 2007-02-13 07:41:09 +00:00
Pauli Nieminen
b58a67c38b Support for team only labels 2007-01-01 10:32:00 +00:00
Jérémy Rosen
796f535de3 greying out of top menu when the info is not valid (i.e it's not your turn) 2006-08-05 10:17:48 +00:00
Karol Nowak
dc6d9d4a0a New background for tiny gui lobby, with input field removed.
Tiny gui lobby should now be usable, as well as the game creation
screen. Also, further tweaked font sizes.
2006-08-04 19:53:18 +00:00
Karol Nowak
3b1f32b34d Font sizes fixed for tiny gui; use the padding values from game.cfg 2006-08-03 13:41:51 +00:00
Patrick Parker
9bb4e5c9cf add support for disabling labels and sliders
disable inactive sliders instead of hiding them
2006-07-13 09:51:57 +00:00
Rusty Russell
c65d466167 Finally! Merge decker2's hitpoint distribution graph code.
attack_prediction still needs to understand stone.
2006-04-11 04:51:19 +00:00
Jörg Hinrichs
8674b86082 [[vc++ and inclusion handling fixes]]
- changed include paths to be relative to source root
- removed some unnecessary includes
- added some includes of global.hpp to editor files to prevent useless vc++ compiler warnings
- Extended vc++ project files
- fixed the bug of having to press escape two times in a continuous replay to get back to the titlescreen
2006-01-03 20:04:50 +00:00
Yann Dirson
5d352a5961 dependency cleanup: split font.* into marked-up_string.*,
...so that 'font' does not depend any more on 'team' (was a major
contributor to the dependency mess)
2005-10-28 21:03:07 +00:00
András Salamon
8d25fb99a6 codeclean in src, mostly Dave's new email address (checked with cvs diff -b)
BY THE WAY, many of the source files have no copyright headers!
2005-07-02 21:37:20 +00:00
Yann Dirson
6a797fbb0a scale down fontsize in tinygui mode a bit...
...since many dialogs cannot yet cope with such large fontsizes; still
need to fix at least the following dialogs: attack, attack stats,
objectives (see tutorial)
2005-06-22 23:30:18 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +00:00
Yann Dirson
45d98e7c3c use a slightly larger font in tiny-gui mode;
changed the way we adjust some widget sizes in tiny-gui mode to make
them fit with the new font-size
2005-05-17 22:19:40 +00:00
Dave White
5dcfc67cab made help system faster and fixed formatting problems with it 2005-05-14 19:18:31 +00:00
Jordà Polo
c3a75bd53b User interface polishing:
* MP lobby: improved background
* MP lobby: tweaked margins and paddings
* MP lobby: getting rid of font::GOOD_COLOUR
* MP lobby: fixed multiplayer_wait game_menu_'s width
* Slider is now less "bright"
* The text of disabled buttons is now grayed out
2005-05-07 21:53:43 +00:00
Philippe Plantier
22d1f9aebf Made dialog text have a maximal height as well as a maximal width.
Made dialog text use word_wrap_text instead of text_to_lines to wrap text.
Rewrote word_wrap_text to support the notion of maximal height.
2005-04-02 14:06:35 +00:00
Yann Dirson
8f311d9d87 text_to_lines() does not belong to show_dialog
- being more closely related to text, moved it to font
2005-03-23 20:46:58 +00:00
Yann Dirson
a5a9f8205d cleanup of deps against display: fonts do not need a display at all 2005-03-15 20:01:31 +00:00
Yann Dirson
50e405a352 include cleanup: font 2005-03-09 23:30:28 +00:00
Jon Daniel
4daf9b75c6 Added measure_ucs2_text_line function...
...which retrieves the pixel width annd height of the range [first,
last) in a specific font size and style.
2005-03-04 04:26:15 +00:00
Philippe Plantier
a2c635d81e Fixed the fonts and i18n not working properly in the editor. 2005-02-26 18:52:24 +00:00
Philippe Plantier
16fecddb97 [[Translation housekeeping and a bug fix]]
* Added the ability for texts to be displayed in multiple fonts, depending on
characters.

* Fixed a few strings missing from translations

* Update pot and po files

* Fixed a bug, occuring when scrollbars are too small to contain the buttons
and the grip, resulting in huge scrollbars.
2005-02-26 18:10:02 +00:00
Guillaume Melquiond
d7b3e389b7 Remove unused parameters and enum from font.cpp. 2004-11-27 10:24:50 +00:00
Yann Dirson
1d61e847f4 provide font::relative_size() for easy scaling of gui dimensions;
use it to make recruit dialog fit on 320x240
2004-11-04 20:58:43 +00:00
Philippe Plantier
d55feb8585 Added shadows under labels,
so they can be visible on each type of terrain, light or dark.
2004-10-30 13:18:04 +00:00
Yann Dirson
bf7d32cb79 automatic computation of font sizes relatively to SIZE_NORMAL;
make TINY mode really tiny to better help with UI downsizing work
2004-10-04 23:34:51 +00:00
Yann Dirson
bff2c19a41 more source files converted to use font::SIZE_*
- hopefully all hardcoded text heights are done now
2004-09-27 00:24:42 +00:00
Yann Dirson
1702b387ed more fontsize names, more source files converted, -DUSE_TINY_GUI can be used to test with smaller fonts 2004-09-25 19:46:33 +00:00
Yann Dirson
7002c23c7a use normal/small/tiny types of fontsize names, use them in src/widgets 2004-09-24 23:25:09 +00:00
Yann Dirson
02f61da5d9 first stake at centralizing font sizes into font.hpp 2004-09-24 23:04:49 +00:00
Yann Dirson
37d0073136 drop the font from english.cfg,
...fill it directly from font.cpp.  also drop useless strings
2004-08-29 14:58:40 +00:00
Jordà Polo
03ee3f6676 title changes
* size: 18px

 * color: #BCB088
2004-08-26 20:56:03 +00:00
Kristoffer Erlandsson
b851507b62 Made the tables in the unit help dynamic in size.
Should decrease the weirdness occuring on lower resolutions.
2004-08-16 14:17:19 +00:00
Philippe Plantier
ac441889d9 [[Animation refactoring]]
* Refactoring of all animation code in unit_display and halo.

* Adding animated.hpp, and the animated<T> template.

* Partial rewrite of image.?pp for speed: looking up images was what
  was slowing the game

* Replacing all SDL_Surface*, and scoped_sdl_surface, with
  shared_sdl_surface, which was renamed surface.

* Optimizing halo movement when unit moves

* Inlining some stuff for performance reasons

* Optimizing invalide_all redraws

* Adding support for animated terrain images
2004-07-18 19:02:25 +00:00
Dave White
83b9db2e5d made color selection dialog in multiplayer work.
Made load dialog not take up lots of CPU. fixed bug where underlying
widgets could 'show through' the load dialog
2004-06-13 21:44:14 +00:00
Dave White
f0df140327 added new 'load' dialog.
changed behavior of pressing 'space' to end a unit's turn
2004-06-10 00:35:45 +00:00
Dave White
bb90f34fdd added 'help strings' feature 2004-06-08 22:36:39 +00:00
Philippe Plantier
695bc5346c Fixed text ellipsis ...
... (triple dot being added after too long text) not being UTF-8-aware.

Added font::make_text_ellipsis function, that works like
word_wrap_text, but instead adds ellipsis on too long text Made
word_wrap_text UTF-8-aware.
2004-05-26 20:18:28 +00:00
Philippe Plantier
9d0ec9c14a Fixed font redrawing for the font used in the slovak (and polish) translations
(see bug #8764)
2004-05-05 20:11:51 +00:00
Dave White
10bb960447 made it so the titles of dialogs are displayed in bold 2004-05-03 18:09:12 +00:00