Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10292


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.

Location:
code/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/overlays/HUD.oxo

    r9939 r10292  
    6161   correctAspect = true
    6262   font          = "Monofur"
    63    textSize      = 0.05
     63   textSize      = 0.02
    6464   navMarkerSize = 0.03
    6565   aimMarkerSize = 0.02
  • code/trunk/data/overlays/HUDTemplates3.oxo

    r10258 r10292  
    103103     correctaspect = true
    104104     font          = "Monofur"
    105      textsize      = 0.05
     105     textsize      = 0.02
    106106     navMarkerSize = 0.03
    107107     aimMarkerSize = 0.02
  • code/trunk/data/overlays/HUDTemplatesFPS.oxo

    r7679 r10292  
    4646     correctaspect = true
    4747     font          = "Monofur"
    48      textsize      = 0.05
     48     textsize      = 0.02
    4949     navMarkerSize = 0.03
    5050     aimMarkerSize = 0.04
  • 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.