[jasper/world/studio] Cleanup
This commit is contained in:
parent
0d3b87d60c
commit
3c068296ca
@ -95,7 +95,7 @@ WorldEditorImGui::WorldEditorImGui(studio::StudioContext &sctx, ox::StringView p
|
|||||||
}
|
}
|
||||||
|
|
||||||
void WorldEditorImGui::draw(studio::StudioContext&) noexcept {
|
void WorldEditorImGui::draw(studio::StudioContext&) noexcept {
|
||||||
const auto paneSize = ImGui::GetContentRegionAvail();
|
auto const paneSize = ImGui::GetContentRegionAvail();
|
||||||
constexpr auto resourcesWidth = 300.f;
|
constexpr auto resourcesWidth = 300.f;
|
||||||
{
|
{
|
||||||
ig::ChildStackItem const worldView{"WorldView", ImVec2(paneSize.x - resourcesWidth, 0)};
|
ig::ChildStackItem const worldView{"WorldView", ImVec2(paneSize.x - resourcesWidth, 0)};
|
||||||
@ -244,7 +244,7 @@ void WorldEditorImGui::drawPropEditor() noexcept {
|
|||||||
if (ig::BeginPopup(m_sctx.tctx, "Edit Map Size", m_sizeEditor.show, popupSz)) {
|
if (ig::BeginPopup(m_sctx.tctx, "Edit Map Size", m_sizeEditor.show, popupSz)) {
|
||||||
ImGui::InputInt("Map Width", &m_sizeEditor.columns, 1);
|
ImGui::InputInt("Map Width", &m_sizeEditor.columns, 1);
|
||||||
ImGui::InputInt("Map Height", &m_sizeEditor.rows, 1);
|
ImGui::InputInt("Map Height", &m_sizeEditor.rows, 1);
|
||||||
const bool changed = m_doc.columns != m_sizeEditor.columns
|
bool const changed = m_doc.columns != m_sizeEditor.columns
|
||||||
|| m_doc.rows != m_sizeEditor.rows;
|
|| m_doc.rows != m_sizeEditor.rows;
|
||||||
if (ig::PopupControlsOkCancel(popupSz.x, m_sizeEditor.show) == ig::PopupResponse::OK) {
|
if (ig::PopupControlsOkCancel(popupSz.x, m_sizeEditor.show) == ig::PopupResponse::OK) {
|
||||||
if (changed) {
|
if (changed) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user