- Timestamp:
- Apr 30, 2006, 4:28:17 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/BuildLibs.am
r7455 r7457 19 19 $(LIB_PREFIX)/parser/cmdline_parser/libCmdLineParser.a \ 20 20 $(LIB_PREFIX)/parser/ini_parser/libIniParser.a \ 21 $(LIB_PREFIX)/shell/libORXshell.a \22 21 $(LIB_PREFIX)/math/libORXmath.a \ 23 22 $(LIB_PREFIX)/libORXlibs.a -
trunk/src/lib/graphics/render2D/render_2d.cc
r7453 r7457 21 21 #include "class_list.h" 22 22 #include "element_2d.h" 23 24 #include "shell_command.h"25 SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility);26 23 27 24 using namespace std; -
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7456 r7457 32 32 33 33 this->lineSpacing = 1.0f; 34 this->lineWidth = 100.0f; 35 this->setupTextWidth(); 34 this->setLineWidth(100.0f); 36 35 } 37 36 … … 43 42 { 44 43 this->lineWidth = lineWidth; 44 this->setSizeX2D(lineWidth); 45 45 this->setupTextWidth(); 46 46 } … … 141 141 width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance; 142 142 } 143 this->setSizeY2D( this->lineEnds.size() * (this->lineSpacing + this->getFont()->getMaxHeight()));143 this->setSizeY2D((this->lineEnds.size()+1) * (this->lineSpacing + this->getFont()->getMaxHeight())); 144 144 } -
trunk/src/lib/shell/shell_input.cc
r7456 r7457 42 42 */ 43 43 ShellInput::ShellInput () 44 : Text ("")44 : MultiLineText ("") 45 45 { 46 46 this->pressedKey = SDLK_FIRST; -
trunk/src/lib/shell/shell_input.h
r7456 r7457 10 10 #define _SHELL_INPUT_H 11 11 12 #include " text.h"12 #include "multi_line_text.h" 13 13 #include "event_listener.h" 14 14 #include "shell_completion.h" … … 28 28 * [UP] and [DOWN] move through the history of allready given commands. 29 29 */ 30 class ShellInput : public Text, public EventListener30 class ShellInput : public MultiLineText, public EventListener 31 31 { 32 32 -
trunk/src/lib/shell/some_shell_commands.cc
r7428 r7457 35 35 SHELL_COMMAND(setPosition, PNode, setAbsCoor); 36 36 37 #include "render_2d.h" 38 SHELL_COMMAND(toggleNodeVisibility, Render2D, toggleNodesVisibility); 39 37 40 38 41 #include "material.h"
Note: See TracChangeset
for help on using the changeset viewer.