- Timestamp:
- Jan 25, 2007, 11:27:47 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
- 7 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/Makefile.am
r9656 r10374 25 25 glgui_frame.cc \ 26 26 glgui_text.cc \ 27 glgui_multiline_text.cc \ 27 28 glgui_inputline.cc \ 28 29 glgui_textfield.cc \ … … 53 54 glgui_frame.h \ 54 55 glgui_text.h \ 56 glgui_multiline_text.h \ 55 57 glgui_inputline.h \ 56 58 glgui_textfield.h \ -
trunk/src/lib/gui/gl/glgui_text.cc
r9869 r10374 50 50 this->_text.setFont("fonts/final_frontier.ttf", 20); 51 51 this->_text.setLineWidth(400); 52 this->_text.setDotsPosition(LimitedWidthText::Begin);52 // this->_text.setDotsPosition(LimitedWidthText::Begin); 53 53 this->_text.setColor(foregroundColor()); 54 54 this->_text.setVisibility(false); -
trunk/src/lib/gui/gl/glgui_widget.cc
r10368 r10374 112 112 113 113 114 this->setBackgroundColor(Color(.51, .3, .3, .5)); 115 this->setBackgroundColor(Color(.3, .5, .3, 1), OrxGui::Selected); 116 this->_style[0]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 117 this->_style[1]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 118 this->_style[2]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 119 this->_style[3]._background.setBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); 114 this->setBackgroundColor(Color(0, 0, 0, 0)); 115 this->setBackgroundColor(Color(0, 0, 0, 0), OrxGui::Selected); 116 117 118 this->_style[0]._background.setBlendFunc( GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); 119 this->_style[1]._background.setBlendFunc( GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); 120 this->_style[2]._background.setBlendFunc( GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); 121 this->_style[3]._background.setBlendFunc( GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA); 120 122 121 123 this->setForegroundColor(Color(.8, .8, 1, 1), OrxGui::Normal); … … 563 565 } 564 566 567 568 569 570 571 565 572 /** 566 573 * @brief sets the Background Texture to all States. … … 569 576 void GLGuiWidget::setBackgroundTexture(const std::string& textureName) 570 577 { 571 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 578 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) { 572 579 _style[i]._background.setDiffuseMap(textureName); 580 _style[i]._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 581 } 573 582 this->_currentStyle._background.setDiffuseMap(textureName); 574 } 575 583 this->_currentStyle._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 584 } 585 586 void GLGuiWidget::setBackgroundTexture(const std::string& textureName, OrxGui::State state) 587 { 588 _style[state]._background.setDiffuseMap(textureName); 589 _style[state]._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 590 591 if (state == _state) { 592 _currentStyle._background.setDiffuseMap(textureName); 593 _currentStyle._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 594 } 595 } 596 597 598 599 576 600 /** 577 601 * @brief sets the Background Texture. … … 582 606 { 583 607 _style[state]._background.setDiffuseMap(texture); 584 if (state == _state) 608 _style[state]._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 609 610 if (state == _state) { 585 611 _currentStyle._background.setDiffuseMap(texture); 612 _currentStyle._background.setDiffuseColor(Color(1.0, 1.0, 1.0, 1.0)); 613 } 586 614 } 587 615 -
trunk/src/lib/gui/gl/glgui_widget.h
r10368 r10374 181 181 void setBackgroundTexture(const std::string& textureName); 182 182 void setBackgroundTexture(const Texture& texture, OrxGui::State state); 183 void setBackgroundTexture(const std::string& textureName, OrxGui::State state); 183 184 void setBackgroundTexture(const std::string& textureName, const std::string& stateName); 184 185 -
trunk/src/world_entities/WorldEntities.am
r10368 r10374 28 28 world_entities/mount_point.cc \ 29 29 world_entities/sound_entity.cc \ 30 \ 31 world_entities/questGUI/quest_gui.cc \ 32 world_entities/questGUI/quest.cc \ 30 33 \ 31 34 world_entities/weapons/test_gun.cc \ … … 153 156 sound_entity.h \ 154 157 \ 158 questGUI/quest_gui.h \ 159 questGUI/quest.h \ 160 \ 155 161 weapons/test_gun.h \ 156 162 weapons/laser_cannon.cc \ -
trunk/src/world_entities/script_trigger.cc
r10321 r10374 181 181 } 182 182 183 183 if(triggerRemains && scriptCalled) 184 184 { 185 185 executeAction(timestep); … … 190 190 { 191 191 if( !invert && this->distance(target) < radius) 192 { 193 //printf("Distance is %f \n", this->distance(target)); 194 executeAction(timestep); 195 scriptCalled = true; 196 return; 197 198 } 199 else if( invert && this->distance(target) > radius) 192 200 { 193 201 executeAction(timestep); 194 202 scriptCalled = true; 195 203 return; 196 197 } 198 else if( invert && this->distance(target) > radius) 199 { 200 executeAction(timestep); 201 scriptCalled = true; 202 return; 203 } 204 } 205 //else 206 //printf("SCRIPTTRIGGER: target out of range\n"); 207 204 } 205 } 208 206 } 209 207 … … 211 209 void ScriptTrigger::executeAction(float timestep) 212 210 { 213 214 211 if(scriptIsOk) 215 212 {
Note: See TracChangeset
for help on using the changeset viewer.