- Timestamp:
- Jan 30, 2007, 1:13:28 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/billboard.cc
r10473 r10491 154 154 // changes the color of the texture (if any is set) 155 155 if(this->texColor != NULL) 156 glColor4ub((GLubyte) this->texColor->r()*255, (GLubyte)this->texColor->g()*255, (GLubyte)this->texColor->b()*255, (GLubyte)(this->texColor->a()*255));156 glColor4ub((GLubyte)(this->texColor->r()*255.0f), (GLubyte)(this->texColor->g()*255.0f), (GLubyte)(this->texColor->b()*255.0f), (GLubyte)(this->texColor->a()*255)); 157 157 158 158 glBegin(GL_QUADS); -
trunk/src/world_entities/effects/blink.cc
r10445 r10491 38 38 // calculation of the symbolTime 39 39 this->symbolTime = this->period / this->blinkSequence.length(); 40 //PRINTF(0)("\n\n\nperiod: %f\n\n\n", this->period); 40 41 } 41 42 … … 80 81 this->timer = 0; 81 82 this->seqCounter = 0; 83 84 // ugly hack continued 85 this->setCoor = true; 82 86 } 83 87 … … 91 95 WorldEntity::loadParams(root); 92 96 93 LoadParam(root, "position", this, Blink, setPosition);97 LoadParam(root, "position", this, Blink, PNode::setAbsCoor); 94 98 LoadParam(root, "size", this, Blink, setSize); 95 99 LoadParam(root, "color", this, Blink, setColor); … … 105 109 void Blink::tick(float dt) 106 110 { 111 // ugly hack continued, set absCoor only once 112 if(this->setCoor) { 113 this->bBoard->setAbsCoor(this->getAbsCoor()); 114 this->setCoor = false; 115 this->symbolTime = this->period / this->blinkSequence.length(); 116 } 117 107 118 timer += dt; 108 119 -
trunk/src/world_entities/effects/blink.h
r10445 r10491 36 36 void loadParams(const TiXmlElement* root); 37 37 38 void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); } 38 //void setAbsCoor(const Vector& absCoor) { this->bBoard->setAbsCoor(absCoor); } 39 //void setAbsCoor(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); } 40 //void setPosition(float x, float y, float z) { this->bBoard->setAbsCoor(x, y, z); } 39 41 void setSize(float s) { this->size = s; this->bBoard->setSize(this->size, this->size); } 40 42 void setPeriod(float t) { this->period = t; } … … 56 58 float symbolTime; //! defines how long one symbol of the sequence will be shown in sec 57 59 float timer; 60 bool setCoor; // this is a really ugly hack 58 61 }; 59 62 -
trunk/src/world_entities/mount_point.cc
r10455 r10491 176 176 this->_mount->setParent( this); 177 177 178 this->_mount->toList( (OM_LIST)(this->getOMListNumber()+1));178 this->_mount->toList((OM_LIST)(this->getOMListNumber())); 179 179 } 180 180 else if( obj->isA( WeaponSlot::staticClassID())) -
trunk/src/world_entities/questGUI/quest_gui.cc
r10489 r10491 157 157 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage(); 158 158 placeImage->setWidgetSize(85, 10); 159 placeImage->loadImageFromFile(" maps/schwarz.png");159 placeImage->loadImageFromFile("textures/gui/gui_quest_black.png"); 160 160 placeImage->show(); 161 161 labelBox->pack(placeImage); … … 191 191 OrxGui::GLGuiImage* placeImage = new OrxGui::GLGuiImage(); 192 192 placeImage->setWidgetSize(20, 10); 193 placeImage->loadImageFromFile(" maps/schwarz.png");193 placeImage->loadImageFromFile("textures/gui/gui_quest_black.png"); 194 194 placeImage->show(); 195 195 answerBox->pack(placeImage);
Note: See TracChangeset
for help on using the changeset viewer.