| 35 | } |
| 36 | |
| 37 | void TextureControlLE::updateScale() |
| 38 | { |
| 39 | double width = (double)mTextureRegion.width * mScaleValue; |
| 40 | double height = (double)mTextureRegion.height * mScaleValue; |
| 41 | |
| 42 | mView->setCanvasSize(MyGUI::IntSize((int)width, (int)height)); |
| 43 | |
| 44 | for (auto& selector : mSelectors) |
| 45 | selector->setScale(mScaleValue); |
| 46 | } |
| 47 | |
| 48 | void TextureControlLE::setTextureName(const MyGUI::UString& _value) |
| 49 | { |
nothing calls this directly
no test coverage detected