mail[Wesnoth-commits] r44040 - in /trunk: changelog src/game_display.cpp


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

Header


Content

Posted by jeremy . rosen on July 09, 2010 - 18:35:
Author: boucman
Date: Fri Jul  9 18:34:58 2010
New Revision: 44040

URL: http://svn.gna.org/viewcvs/wesnoth?rev=44040&view=rev
Log:
use eleazar's new mouseover image... it's not 72x72 so there are redraw 
commits. I don't have enough gimp talent to fix that, so i'll wait for an 
artist to fix it :P

Modified:
    trunk/changelog
    trunk/src/game_display.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=44040&r1=44039&r2=44040&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Fri Jul  9 18:34:58 2010
@@ -30,6 +30,7 @@
      and Flameheart, Dwarf Lord ranged attack, Dwarf guard melee attack.
    * Items & scenery: New anvil, and revised trash and lighthouse
    * Two new flag styles.
+   * New mouseover image instead of simply highlighting the hex
  * Language and i18n:
    * Updated translations: British English, Chinese (Simplified), Chinese
      (Traditional), Czech, Dutch, Finnish, French, Galician, German, 
Hungarian,

Modified: trunk/src/game_display.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/game_display.cpp?rev=44040&r1=44039&r2=44040&view=diff
==============================================================================
--- trunk/src/game_display.cpp (original)
+++ trunk/src/game_display.cpp Fri Jul  9 18:34:58 2010
@@ -131,6 +131,7 @@
                
flags_.back().start_animation(rand()%flags_.back().get_end_time(), true);
        }
        image::set_team_colors(&side_colors);
+       
set_mouseover_hex_overlay(image::get_image(image::locator("misc/hover-hex.png")));
        clear_screen();
 }
 
@@ -282,7 +283,7 @@
 image::TYPE game_display::get_image_type(const map_location& loc) {
        // We highlight hex under the mouse, or under a selected unit.
        if (get_map().on_board(loc)) {
-               if (loc == mouseoverHex_ || loc == attack_indicator_src_) {
+               if ( loc == attack_indicator_src_) {
                        return image::BRIGHTENED;
                } else if (loc == selectedHex_) {
                        const unit *un = get_visible_unit(loc, 
teams_[currentTeam_], !viewpoint_);




Related Messages


Powered by MHonArc, Updated Fri Jul 09 19:00:08 2010