| 66 | } |
| 67 | |
| 68 | void ImageBox::setImageRect(const IntRect& _rect) |
| 69 | { |
| 70 | mRectImage = _rect; |
| 71 | |
| 72 | // если тайл еще не установлен, то ставим тот что у координат |
| 73 | if (mSizeTile.empty()) |
| 74 | mSizeTile.set(_rect.width(), _rect.height()); |
| 75 | //если индекса еще нет, то ставим 0 |
| 76 | if (mIndexSelect == ITEM_NONE) |
| 77 | mIndexSelect = 0; |
| 78 | |
| 79 | recalcIndexes(); |
| 80 | updateSelectIndex(mIndexSelect); |
| 81 | } |
| 82 | |
| 83 | void ImageBox::setImageTexture(std::string_view _texture) |
| 84 | { |
no test coverage detected