27 using HorizontalMenu::HorizontalMenu;
32 void renderInHorizontalMenu(int32_t startX, int32_t width, int32_t startY, int32_t height)
override {
33 using namespace deluge::hid::display;
37 const auto& diceIcon = OLED::diceIcon;
38 const int32_t diceIconWidth = diceIcon.
size() / 2;
39 constexpr int32_t diceIconHeight = 16;
41 int32_t x = startX + ((width - diceIconWidth) / 2) - 3;
42 int32_t y = startY + ((height - diceIconHeight) / 2) + 1;
43 image.drawGraphicMultiLine(diceIcon.data(), x, y, diceIconWidth, diceIconHeight, 2);
46 const auto& arrowIcon = OLED::submenuArrowIconBold;
47 constexpr int32_t arrowIconWidth = 7;
48 constexpr int32_t arrowIconHeight = 8;
50 x += diceIconWidth + 1;
51 y = startY + ((height - arrowIconHeight) / 2);
52 image.drawGraphicMultiLine(arrowIcon, x, y, arrowIconWidth);