| 350 | } |
| 351 | |
| 352 | void ScopeTextureControl::setCoordValue(const MyGUI::IntCoord& _value, SelectorType _type) |
| 353 | { |
| 354 | if (mCurrentSelectorType != _type) |
| 355 | { |
| 356 | clearCoordValue(); |
| 357 | |
| 358 | mCurrentSelectorType = _type; |
| 359 | bool changes = false; |
| 360 | mCurrentSelectorControl = getFreeSelector(mSelectors, false, mCurrentSelectorType, changes); |
| 361 | mCurrentSelectorControl->setCoord(mCoordValue); |
| 362 | } |
| 363 | |
| 364 | mCurrentSelectorControl->setVisible(true); |
| 365 | |
| 366 | if (mCoordValue != _value) |
| 367 | { |
| 368 | mCoordValue = _value; |
| 369 | mCurrentSelectorControl->setCoord(mCoordValue); |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | void ScopeTextureControl::clearCoordValue() |
| 374 | { |
no test coverage detected