Declutter using a context menu, which I had to create from scratch.

This commit is contained in:
Henrik Rydgård committed 2022-12-07 10:27:02 +01:00
1 parent 39b627c0c1
commit a83a3f9d5d
4 files changed
+119 -36

No files matched your search

+1
View File
@@ -500,6 +500,7 @@ void Choice::Draw(UIContext &dc) {
if (image_.isValid()) {
const AtlasImage *image = dc.Draw()->GetAtlas()->getImage(image_);
_dbg_assert_(image);
paddingX += image->w + 6;
availWidth -= image->w + 6;
// TODO: Use scale rotation and flip here as well (DrawImageRotated is always ALIGN_CENTER for now)