Changeset 8607 in orxonox.OLD for branches/gui
- Timestamp:
- Jun 20, 2006, 10:15:46 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_widget.cc
r8606 r8607 317 317 { 318 318 _style[state]._borderLeft = value; 319 if (state == _state) 320 _currentStyle._borderLeft = value; 319 321 } 320 322 … … 351 353 { 352 354 _style[state]._borderRight = value; 355 if (state == _state) 356 _currentStyle._borderRight = value; 353 357 } 354 358 … … 386 390 { 387 391 _style[state]._borderTop = value; 392 if (state == _state) 393 _currentStyle._borderTop = value; 388 394 } 389 395 … … 421 427 { 422 428 _style[state]._borderBottom = value; 429 if (state == _state) 430 _currentStyle._borderBottom = value; 431 423 432 } 424 433 … … 456 465 { 457 466 _style[state]._textSize = value; 467 if (state == _state) 468 _currentStyle._textSize = value; 458 469 } 459 470 … … 491 502 { 492 503 _style[state]._background.setDiffuseColor(color); 504 if (state == _state) 505 _currentStyle._background.setDiffuseColor(color); 506 493 507 } 494 508 … … 539 553 { 540 554 _style[state]._background.setDiffuseMap(texture); 555 if (state == _state) 556 _currentStyle._background.setDiffuseMap(texture); 541 557 } 542 558 … … 576 592 { 577 593 _style[state]._foreground.setDiffuseColor(color); 594 if (state == _state) 595 _currentStyle._foreground.setDiffuseColor(color); 596 578 597 } 579 598 … … 605 624 { 606 625 this->_style[state]._background = material; 626 if (state == _state) 627 _currentStyle._background = material; 628 607 629 } 608 630 … … 610 632 { 611 633 for (unsigned int i = 0; i < GLGUI_STATE_COUNT; ++i) 612 this-> _style[i]._background.loadParams(element);634 this->loadBackgroundMaterial(element, (OrxGui::State)i); 613 635 } 614 636 … … 616 638 { 617 639 this->_style[state]._background.loadParams(element); 618 } 640 if (state == _state) 641 this->_currentStyle._background = _style[state]._background; 642 } 643 619 644 void GLGuiWidget::loadBackgroundMaterialS(const TiXmlElement* element, const std::string& stateName) 620 645 {
Note: See TracChangeset
for help on using the changeset viewer.