This commit is contained in:
@@ -134,9 +134,10 @@ void NewMenu::drawNewItemPath(Context &sctx) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewMenu::drawButtons(Stage const next) noexcept {
|
void NewMenu::drawButtons(Stage const next) noexcept {
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 198);
|
auto const scale = ig::dpiScale();
|
||||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 20);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 198 * scale);
|
||||||
constexpr ImVec2 btnSz{60, 20};
|
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 22 * scale);
|
||||||
|
ImVec2 const btnSz{60 * scale, ig::BtnSz.y * scale};
|
||||||
if (ImGui::Button("Back", btnSz)) {
|
if (ImGui::Button("Back", btnSz)) {
|
||||||
if (auto const p = m_prev.back(); p.ok()) {
|
if (auto const p = m_prev.back(); p.ok()) {
|
||||||
m_stage = *p.value;
|
m_stage = *p.value;
|
||||||
@@ -156,9 +157,10 @@ void NewMenu::drawButtons(Stage const next) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewMenu::drawFirstPageButtons(Stage const next) noexcept {
|
void NewMenu::drawFirstPageButtons(Stage const next) noexcept {
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 130);
|
auto const scale = ig::dpiScale();
|
||||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 20);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 130 * scale);
|
||||||
constexpr ImVec2 btnSz{60, 20};
|
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 22 * scale);
|
||||||
|
ImVec2 const btnSz{60 * scale, ig::BtnSz.y * scale};
|
||||||
if (ImGui::Button("Next", btnSz)) {
|
if (ImGui::Button("Next", btnSz)) {
|
||||||
m_prev.emplace_back(m_stage);
|
m_prev.emplace_back(m_stage);
|
||||||
m_stage = next;
|
m_stage = next;
|
||||||
@@ -171,9 +173,10 @@ void NewMenu::drawFirstPageButtons(Stage const next) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewMenu::drawLastPageButtons(Context &sctx) noexcept {
|
void NewMenu::drawLastPageButtons(Context &sctx) noexcept {
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 198);
|
auto const scale = ig::dpiScale();
|
||||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 20);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 198 * scale);
|
||||||
constexpr ImVec2 btnSz{60, 20};
|
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 22 * scale);
|
||||||
|
ImVec2 const btnSz{60 * scale, ig::BtnSz.y * scale};
|
||||||
if (ImGui::Button("Back", btnSz)) {
|
if (ImGui::Button("Back", btnSz)) {
|
||||||
if (auto const p = m_prev.back(); p.ok()) {
|
if (auto const p = m_prev.back(); p.ok()) {
|
||||||
m_stage = *p.value;
|
m_stage = *p.value;
|
||||||
|
|||||||
@@ -65,8 +65,9 @@ void NewProject::drawNewProjectName(Context &sctx) noexcept {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NewProject::drawLastPageButtons(Context&) noexcept {
|
void NewProject::drawLastPageButtons(Context&) noexcept {
|
||||||
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 110);
|
auto const scale = ig::dpiScale();
|
||||||
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 22);
|
ImGui::SetCursorPosX(ImGui::GetCursorPosX() + ImGui::GetContentRegionAvail().x - 110 * scale);
|
||||||
|
ImGui::SetCursorPosY(ImGui::GetCursorPosY() + ImGui::GetContentRegionAvail().y - 22 * scale);
|
||||||
if (ig::PushButton("Finish")) {
|
if (ig::PushButton("Finish")) {
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user