Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10292 for code/trunk/src


Ignore:
Timestamp:
Mar 1, 2015, 3:27:01 PM (10 years ago)
Author:
landauf
Message:

fixed text size in HUD (marker which shows the enemy's name). the configured size was not used and it was completely distorted if the window was resized. now both works.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/overlays/hud/HUDNavigation.cc

    r10291 r10292  
    135135        {
    136136            if (it->second.text_ != NULL)
    137             it->second.text_->setFontName(this->fontName_);
     137                it->second.text_->setFontName(this->fontName_);
    138138        }
    139139    }
     
    155155        {
    156156            if (it->second.text_)
    157             it->second.text_->setCharHeight(size);
     157                it->second.text_->setCharHeight(size);
    158158        }
    159159    }
     
    541541                it->second.panel_->setDimensions(this->navMarkerSize_ * xScale, this->navMarkerSize_ * yScale);
    542542            if (it->second.text_ != NULL)
    543                 it->second.text_->setCharHeight(it->second.text_->getCharHeight() * yScale);
     543                it->second.text_->setCharHeight(this->textSize_ * yScale);
    544544            if (it->second.target_ != NULL)
    545545                it->second.target_->setDimensions(this->aimMarkerSize_ * xScale, this->aimMarkerSize_ * yScale);
     
    597597                .createOverlayElement("TextArea", "HUDNavigation_navText_" + getUniqueNumberString()));
    598598        text->setFontName(this->fontName_);
    599         text->setCharHeight(text->getCharHeight() * yScale);
     599        text->setCharHeight(this->textSize_ * yScale);
    600600        text->setColour(object->getRadarObjectColour());
    601601
Note: See TracChangeset for help on using the changeset viewer.