mail[Wesnoth-commits] r28483 - /trunk/src/editor2/editor_palettes.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kailoran on August 12, 2008 - 13:43:
Author: ilor
Date: Tue Aug 12 13:43:44 2008
New Revision: 28483

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28483&view=rev
Log:
editor2: terrain palette tooltips for the terrains

Modified:
    trunk/src/editor2/editor_palettes.cpp

Modified: trunk/src/editor2/editor_palettes.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/editor2/editor_palettes.cpp?rev=28483&r1=28482&r2=28483&view=diff
==============================================================================
--- trunk/src/editor2/editor_palettes.cpp (original)
+++ trunk/src/editor2/editor_palettes.cpp Tue Aug 12 13:43:44 2008
@@ -455,6 +455,8 @@
                        color = SDL_MapRGB(screen->format,0x00,0x00,0x00);
                }
                draw_rectangle(dstrect.x, dstrect.y, image->w, image->h, 
color, screen);
+               tooltips::clear_tooltips(dstrect);
+               tooltips::add_tooltip(dstrect, 
map_.get_terrain_string(terrain));
                if (counter_from_zero % size_specs_.terrain_width == 
size_specs_.terrain_width - 1)
                        y += size_specs_.terrain_space;
        }




Related Messages


Powered by MHonArc, Updated Tue Aug 12 14:41:01 2008