79 if (!visible_) {
return; }
81 const int base_color = GetColor(128, 128, 128);
82 const int button_color =
83 GetColor(255 - now_color_blue_, 255 - now_color_blue_ / 2, 255);
84 const int str_color = GetColor(20, 20, 20);
85 const int frame_size = 1;
89 pos_middle_x - kSizeX / 2,
90 pos_middle_y - kSizeY / 2,
91 pos_middle_x + kSizeX / 2,
92 pos_middle_y + kSizeY / 2,
98 pos_middle_x - kSizeX / 2 + frame_size,
99 pos_middle_y - kSizeY / 2 + frame_size,
100 pos_middle_x + kSizeX / 2 - frame_size,
101 pos_middle_y + kSizeY / 2 - frame_size,
106 const int font_handle =
109 for (
int i = 0; i < text_.size(); ++i)
111 const auto text_width = GetDrawStringWidthToHandle(
112 text_[i].c_str(),
static_cast<int>(text_[i].size()), font_handle);
114 const auto text_height =
static_cast<int>(text_.size()) * kFontSize;
117 pos_middle_x - text_width / 2,
118 pos_middle_y - text_height / 2 + i * kFontSize,