wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src dialogs.cpp


From: Jordà Polo
Subject: [Wesnoth-cvs-commits] wesnoth/src dialogs.cpp
Date: Sun, 19 Sep 2004 11:42:35 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Jordà Polo <address@hidden>     04/09/19 15:36:24

Modified files:
        src            : dialogs.cpp 

Log message:
        unified unit_preview_pane

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/dialogs.cpp.diff?tr1=1.54&tr2=1.55&r1=text&r2=text

Patches:
Index: wesnoth/src/dialogs.cpp
diff -u wesnoth/src/dialogs.cpp:1.54 wesnoth/src/dialogs.cpp:1.55
--- wesnoth/src/dialogs.cpp:1.54        Sun Sep 19 14:00:51 2004
+++ wesnoth/src/dialogs.cpp     Sun Sep 19 15:36:24 2004
@@ -1,4 +1,4 @@
-/* $Id: dialogs.cpp,v 1.54 2004/09/19 14:00:51 ettin Exp $ */
+/* $Id: dialogs.cpp,v 1.55 2004/09/19 15:36:24 ettin Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -623,28 +623,28 @@
                image_rect = rect;
        }
 
-       SDL_Rect description_rect = 
{image_rect.x,image_rect.y+image_rect.h,0,0};
-
-       if(u.description().empty() == false) {
-               std::stringstream desc;
-               desc << font::BOLD_TEXT << u.description();
-               const std::string description = desc.str();
-               description_rect = font::text_area(description,12);
-               description_rect = 
font::draw_text(&disp(),area,12,font::NORMAL_COLOUR,desc.str(),right_align ? 
image_rect.x : image_rect.x + image_rect.w - 
description_rect.w,image_rect.y+image_rect.h);
-       }
-
        //place the 'unit profile' button
        if(map_ != NULL) {
                const SDL_Rect button_loc = {right_align ? area.x : area.x + 
area.w - details_button_.location().w,
-                                            image_rect.y + image_rect.h + 
description_rect.h,
+                                            image_rect.y + image_rect.h,
                                             
details_button_.location().w,details_button_.location().h};
                details_button_.set_location(button_loc);
        }
 
+       SDL_Rect description_rect = 
{image_rect.x,image_rect.y+image_rect.h+details_button_.location().h,0,0};
+
+       if(u.description().empty() == false) {
+               std::stringstream desc;
+               desc << font::NORMAL_TEXT << u.description();
+               const std::string description = desc.str();
+               description_rect = font::text_area(description,14);
+               description_rect = 
font::draw_text(&disp(),area,14,font::NORMAL_COLOUR,desc.str(),right_align ? 
image_rect.x : image_rect.x + image_rect.w - 
description_rect.w,image_rect.y+image_rect.h+details_button_.location().h);
+       }
+
        std::stringstream details;
-       details << font::BOLD_TEXT << u.type().language_name()
-                       << "\n" << font::SMALL_TEXT << "(" << _("level") << " "
-                       << u.type().level() << ")\n"
+       details << u.type().language_name()
+                       << "\n" << _("level") << " "
+                       << u.type().level() << "\n"
                        << 
string_table[unit_type::alignment_description(u.type().alignment())] << "\n"
                        << u.traits_description() << " \n";
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]