Changeset 8007 in orxonox.OLD for branches/gui
- Timestamp:
- May 31, 2006, 12:58:31 AM (18 years ago)
- Location:
- branches/gui/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/graphics/render2D/element_2d.cc
r7919 r8007 299 299 300 300 /** 301 * @brief updates the Rel - Coordinate in x-direction 302 * @param x the x coordinate 303 */ 304 void Element2D::setRelCoorX2D(float x) 305 { 306 this->setRelCoor2D(Vector2D(x, this->relCoordinate.y)); 307 } 308 309 /** 310 * @brief updates the Rel - Coordinate in y-direction 311 * @param y the y coordinate 312 */ 313 void Element2D::setRelCoorY2D(float y) 314 { 315 this->setRelCoor2D(Vector2D(this->relCoordinate.x, y)); 316 } 317 318 319 /** 301 320 * @brief sets the Relative coordinate to the parent in Pixels 302 321 * @param x the relCoord X … … 388 407 this->setAbsCoor2D(Vector2D(x, y)); 389 408 } 409 410 /** 411 * @brief updates the Abs - Coordinate in x-direction 412 * @param x the x coordinate 413 */ 414 void Element2D::setAbsCoorX2D(float x) 415 { 416 this->setAbsCoor2D(x, this->getAbsCoor2D().y); 417 } 418 419 /** 420 * @brief updates the Abs - Coordinate in y-direction 421 * @param y the y coordinate 422 */ 423 void Element2D::setAbsCoorY2D(float y) 424 { 425 this->setAbsCoor2D(this->getAbsCoor2D().x, y); 426 } 427 390 428 391 429 /** -
branches/gui/src/lib/graphics/render2D/element_2d.h
r7919 r8007 143 143 public: 144 144 void setRelCoor2D (const Vector2D& relCoord); 145 void setRelCoorX2D(float x); 146 void setRelCoorY2D(float y); 145 147 void setRelCoor2D (float x, float y); 146 148 void setRelCoor2Dpx (int x, int y); … … 155 157 void setAbsCoor2D (const Vector2D& absCoord); 156 158 void setAbsCoor2D (float x, float y); 159 void setAbsCoorX2D(float x); 160 void setAbsCoorY2D(float y); 157 161 void setAbsCoor2Dpx (int x, int y); 158 162 void setAbsCoorSoft2D (const Vector2D& absCoordSoft, float bias = 1.0); -
branches/gui/src/story_entities/simple_game_menu.cc
r8005 r8007 116 116 117 117 OrxGui::GLGuiSlider* slider = new OrxGui::GLGuiSlider(); 118 slider->connect(SIGNAL(slider, valueChanged), box, SLOT(Element2D, set AbsCoor2D));118 slider->connect(SIGNAL(slider, valueChanged), box, SLOT(Element2D, setRelCoorX2D)); 119 119 slider->setRange(100, 500); 120 120 slider->setStep(50); 121 121 slider->setValue(slider->min()); 122 122 slider->show(); 123 slider->setAbsCoor2D(100, 200);123 slider->setAbsCoor2D(100, 00); 124 124 125 125 /////
Note: See TracChangeset
for help on using the changeset viewer.