Compare commits
2 Commits
e4ae23e114
...
3c7652efc2
Author | SHA1 | Date | |
---|---|---|---|
3c7652efc2 | |||
941bc71348 |
@ -154,7 +154,8 @@ void PaletteEditorImGui::drawColorsEditor() noexcept {
|
|||||||
ImGui::TableSetupColumn("Blue", ImGuiTableColumnFlags_WidthFixed, 40);
|
ImGui::TableSetupColumn("Blue", ImGuiTableColumnFlags_WidthFixed, 40);
|
||||||
ImGui::TableSetupColumn("Preview", ImGuiTableColumnFlags_NoHide);
|
ImGui::TableSetupColumn("Preview", ImGuiTableColumnFlags_NoHide);
|
||||||
ImGui::TableHeadersRow();
|
ImGui::TableHeadersRow();
|
||||||
for (auto i = 0u; auto const&c : m_pal.pages[m_page].colors) {
|
if (m_page < m_pal.pages.size()) {
|
||||||
|
for (auto i = 0u; auto const &c: m_pal.pages[m_page].colors) {
|
||||||
ig::IDStackItem const idStackItem(static_cast<int>(i));
|
ig::IDStackItem const idStackItem(static_cast<int>(i));
|
||||||
ImGui::TableNextRow();
|
ImGui::TableNextRow();
|
||||||
drawColumn(i + 1);
|
drawColumn(i + 1);
|
||||||
@ -172,6 +173,7 @@ void PaletteEditorImGui::drawColorsEditor() noexcept {
|
|||||||
++i;
|
++i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ImGui::EndTable();
|
ImGui::EndTable();
|
||||||
if (colorEditor) {
|
if (colorEditor) {
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
@ -77,7 +77,7 @@ void NewMenu::drawNewItemName(studio::StudioContext &sctx) noexcept {
|
|||||||
drawWindow(sctx.tctx, &m_open, [this, &sctx] {
|
drawWindow(sctx.tctx, &m_open, [this, &sctx] {
|
||||||
auto const typeIdx = static_cast<std::size_t>(m_selectedType);
|
auto const typeIdx = static_cast<std::size_t>(m_selectedType);
|
||||||
if (typeIdx < m_types.size()) {
|
if (typeIdx < m_types.size()) {
|
||||||
ImGui::InputText("Name", m_itemName.data(), m_itemName.cap());
|
ig::InputText("Name", m_itemName);
|
||||||
}
|
}
|
||||||
drawLastPageButtons(sctx);
|
drawLastPageButtons(sctx);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user