Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7457 in orxonox.OLD


Ignore:
Timestamp:
Apr 30, 2006, 4:28:17 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: Size2D is ok now for the MultiLineText

Location:
trunk/src/lib
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/BuildLibs.am

    r7455 r7457  
    1919                $(LIB_PREFIX)/parser/cmdline_parser/libCmdLineParser.a \
    2020                $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \
    21                 $(LIB_PREFIX)/shell/libORXshell.a \
    2221                $(LIB_PREFIX)/math/libORXmath.a \
    2322                $(LIB_PREFIX)/libORXlibs.a
  • trunk/src/lib/graphics/render2D/render_2d.cc

    r7453 r7457  
    2121#include "class_list.h"
    2222#include "element_2d.h"
    23 
    24 #include "shell_command.h"
    25 SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility);
    2623
    2724using namespace std;
  • trunk/src/lib/graphics/text_engine/multi_line_text.cc

    r7456 r7457  
    3232
    3333  this->lineSpacing = 1.0f;
    34   this->lineWidth = 100.0f;
    35   this->setupTextWidth();
     34  this->setLineWidth(100.0f);
    3635}
    3736
     
    4342{
    4443  this->lineWidth = lineWidth;
     44  this->setSizeX2D(lineWidth);
    4545  this->setupTextWidth();
    4646}
     
    141141      width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance;
    142142  }
    143   this->setSizeY2D(this->lineEnds.size() * (this->lineSpacing + this->getFont()->getMaxHeight()));
     143  this->setSizeY2D((this->lineEnds.size()+1) * (this->lineSpacing + this->getFont()->getMaxHeight()));
    144144}
  • trunk/src/lib/shell/shell_input.cc

    r7456 r7457  
    4242  */
    4343  ShellInput::ShellInput ()
    44       : Text ("")
     44      : MultiLineText ("")
    4545  {
    4646    this->pressedKey = SDLK_FIRST;
  • trunk/src/lib/shell/shell_input.h

    r7456 r7457  
    1010#define _SHELL_INPUT_H
    1111
    12 #include "text.h"
     12#include "multi_line_text.h"
    1313#include "event_listener.h"
    1414#include "shell_completion.h"
     
    2828   * [UP] and [DOWN] move through the history of allready given commands.
    2929   */
    30   class ShellInput : public Text,  public EventListener
     30  class ShellInput : public MultiLineText,  public EventListener
    3131  {
    3232
  • trunk/src/lib/shell/some_shell_commands.cc

    r7428 r7457  
    3535  SHELL_COMMAND(setPosition, PNode, setAbsCoor);
    3636
     37#include "render_2d.h"
     38  SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility);
     39
    3740
    3841#include "material.h"
Note: See TracChangeset for help on using the changeset viewer.