| 700 | } |
| 701 | |
| 702 | void CEditor::DoToolbarImages(CUIRect ToolBar) |
| 703 | { |
| 704 | CUIRect ToolBarTop, ToolBarBottom; |
| 705 | ToolBar.HSplitMid(&ToolBarTop, &ToolBarBottom, 5.0f); |
| 706 | |
| 707 | std::shared_ptr<CEditorImage> pSelectedImage = Map()->SelectedImage(); |
| 708 | if(pSelectedImage != nullptr) |
| 709 | { |
| 710 | char aLabel[64]; |
| 711 | str_format(aLabel, sizeof(aLabel), "Size: %" PRIzu " × %" PRIzu, pSelectedImage->m_Width, pSelectedImage->m_Height); |
| 712 | Ui()->DoLabel(&ToolBarBottom, aLabel, 12.0f, TEXTALIGN_ML); |
| 713 | } |
| 714 | } |
| 715 | |
| 716 | void CEditor::DoToolbarSounds(CUIRect ToolBar) |
| 717 | { |
nothing calls this directly
no test coverage detected