[nostalgia/core/studio] Fix SubSheet editor to return an appropriately sized string
This commit is contained in:
parent
b69e7ebb98
commit
23a09e4a13
@ -544,7 +544,7 @@ void TileSheetEditorImGui::SubSheetEditor::draw(turbine::Context &tctx) noexcept
|
|||||||
auto const popupHeight = modSize ? 130.f : 85.f;
|
auto const popupHeight = modSize ? 130.f : 85.f;
|
||||||
auto const popupSz = ImVec2{popupWidth, popupHeight};
|
auto const popupSz = ImVec2{popupWidth, popupHeight};
|
||||||
if (ig::BeginPopup(tctx, popupName, m_show, popupSz)) {
|
if (ig::BeginPopup(tctx, popupName, m_show, popupSz)) {
|
||||||
ImGui::InputText("Name", m_name.data(), m_name.cap());
|
ig::InputText("Name", m_name);
|
||||||
if (modSize) {
|
if (modSize) {
|
||||||
ImGui::InputInt("Columns", &m_cols);
|
ImGui::InputInt("Columns", &m_cols);
|
||||||
ImGui::InputInt("Rows", &m_rows);
|
ImGui::InputInt("Rows", &m_rows);
|
||||||
|
Loading…
Reference in New Issue
Block a user