mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
Refactored ImGui::Bitfield to use std::format. (#2410)
This commit is contained in:
parent
cad70d8f67
commit
e102d6ca2c
@ -44,7 +44,7 @@ namespace ImGui
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, IM_COL32_BLACK_TRANS);
|
||||
ImGui::PushStyleColor(ImGuiCol_Text, IM_COL32(41, 134, 204, 255));
|
||||
if (ImGui::Button(std::string("1##").append(std::to_string(i)).append(name).c_str(), ImVec2(25, 0)))
|
||||
if (ImGui::Button(std::format("1##{}{}", name, i).c_str(), ImVec2(25, 0)))
|
||||
{
|
||||
ret_val = true;
|
||||
*param ^= (1ULL << i);
|
||||
@ -54,7 +54,7 @@ namespace ImGui
|
||||
else
|
||||
{
|
||||
ImGui::PushStyleColor(ImGuiCol_Button, IM_COL32_BLACK_TRANS);
|
||||
if (ImGui::Button(std::string("0##").append(std::to_string(i)).append(name).c_str(), ImVec2(25, 0)))
|
||||
if (ImGui::Button(std::format("0##{}{}", name, i).c_str(), ImVec2(25, 0)))
|
||||
{
|
||||
ret_val = true;
|
||||
*param ^= (1ULL << i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user