Commit graph

95 commits

Author SHA1 Message Date
Ali El Gariani
51ab72860e Replace all uses of 'colour' by 'color' in code. 2010-06-03 01:47:06 +00:00
Ali El Gariani
f6fab3788f Rename all SDL_Color font::FOO_COLOUR as font::FOO_COLOR 2010-06-02 22:14:44 +00:00
Ali El Gariani
8c731f62e4 Remove now unsused color parameter in tooltip
(using pango markup is better)
2010-06-02 22:01:35 +00:00
Ali El Gariani
9a004e457c Use pango word wrapping in tooltip instead of our homemade function.
This fix inaccuracies when using pango markups.
2010-06-02 01:32:05 +00:00
Ali El Gariani
c35d05ce2d Use named parameter idiom for floating labels 2010-05-29 14:23:18 +00:00
Ali El Gariani
b1312a5167 Increase a little tooltip's opacity (from 128 to 160).
Because they contains more text these days and it's a bit hard to read
when there is other underlying lines (as in the sidepanel)
2010-05-17 23:15:16 +00:00
Mark de Wever
92f5f92ce5 New year copyright update. 2010-01-01 13:16:49 +00:00
Ali El Gariani
9d68ec0b23 remove redundant code for rectangle overlapping 2009-09-27 02:22:51 +00:00
Tomasz Śniatowski
85968f8ac0 Allow storing the color for a tooltip as well s it's text 2009-07-02 12:59:13 +01:00
Mark de Wever
a5d1d2e969 New year copyright update. 2009-01-01 10:27:41 +00:00
Eric S. Raymond
9223460daa Remove unused headers. 2008-11-09 04:35:13 +00:00
Bruno Wolff III
cb4171b955 Silence gcc 4.3 warnings by add parens around && clauses near ||. 2008-03-19 17:48:22 +00:00
Mark de Wever
001af46e6e Updated all headers to 2008. 2008-02-16 08:47:16 +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
Mark de Wever
badabe330f small cleanup of unused variables and functions which Ivanovic found 2007-07-21 20:25:53 +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
07c0f45cb9 Fix bug#9209 (Tooltip blinks annoyingly)
Now removing an inactive tooltip don't kill the current active
tooltip, (except, of course, if you remove the current one)
2007-05-31 01:14:24 +00:00
Ali El Gariani
5630168f27 Wrap the text of tooltips only when we show them, not when we create them.
(tooltips are created for every places where they can appear)

Since we use now the more expensive good wrapper, it's the perfect
time for this optimization
2007-05-10 03:59:31 +00:00
Ali El Gariani
5cee07fe04 Use the standard word wrapper in tooltips.
Previously used a bad special word wrapper (broken for long words like
in Chinese/Japanese)

The old tooltip had a maximum width of 60 chars (overwritten by long
words, so the bug).

Now the maximum width is 400 pixels and 260 for tiny-gui (+borders)

These arbitray values try to reproduce the previous size with the english fonts.
Feel free to comment/change this choice.
2007-05-09 23:30: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
Karol Nowak
188f759f04 Tiny gui: reduce font and border size of help strings and tooltips. 2006-08-04 13:46:36 +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
Philippe Plantier
69c52dc9fb Fixed bug (or feature req) 14084. This was caused by the clock on dfool's theme. 2005-08-21 20:58:48 +00:00
András Salamon
cc1b0aecf0 add copyright notices (please change as appropriate), and deDOSify 2005-07-20 08:22:37 +00:00
András Salamon
8bd9bc98a5 ran codeclean against files 2005-06-04 19:16:06 +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
887f32d629 cleanup of deps against display: tooltips do not need a display for most work 2005-03-15 00:45:00 +00:00
Yann Dirson
59ad858b54 include cleanup: tooltips 2005-03-10 22:29:57 +00:00
Guillaume Melquiond
95d4f8ce12 Remove unused parameters and fix font drawing invokation in tooltips.cpp. 2004-11-27 10:53:22 +00:00
Dave White
c661b3043a reduced warnings to 0 on VC++ 2004-11-18 04:08:33 +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
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
c0fedb5a10 attempt to fix tooltips from game setup appearing in-game 2004-05-09 14:20:12 +00:00
Dave White
9db644e45b improvements to chat system.
fixed bugs with tooltips
2004-04-14 17:12:18 +00:00
uid68842
77dbff1900 Font size changes 2004-02-14 16:50:01 +00:00
uid68803
901fdd21a6 tweaked look of tooltips 2004-01-29 18:34:23 +00:00
uid68803
541e1bc669 added some explanatory tooltips for some unit attributes on sidebar 2003-12-30 17:24:46 +00:00
uid66289
15574b6539 v0.6.1 2003-12-23 21:55:07 +00:00
Dave White
78df98d752 fixed problem with tooltips not always being displayed correctly 2003-11-25 23:53:35 +00:00
Dave White
94f7272329 fixed tool tips to work again 2003-11-11 11:59:20 +00:00
Dave White
7003c8da39 final changes for RC3 2003-10-29 05:34:48 +00:00
Dave White
839eac713c refactored menu class into its own source file 2003-10-11 00:30:46 +00:00
Dave White
8a8b84b4da added basic multiplayer capabilities 2003-10-04 22:38:42 +00:00
Dave White
35f11b1cee added tooltips for text that cannot fit 2003-10-04 06:09:11 +00:00