Compare commits
No commits in common. "3a149fad6de8872da4d8489cf944750a47bdca2d" and "c5233e0d1db06b615b663d1b47422ebbe4bd8a63" have entirely different histories.
3a149fad6d
...
c5233e0d1d
@ -28,10 +28,4 @@ ox::Error init(
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
ox::Result<ox::UPtr<Context>> init(ox::UPtr<ox::FileSystem> &&fs, ox::CRStringView appName) noexcept {
|
|
||||||
auto ctx = ox::make_unique<Context>();
|
|
||||||
oxReturnError(keel::init(ctx.get(), std::move(fs), appName));
|
|
||||||
return ctx;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,11 @@ ox::Error init(
|
|||||||
ox::UPtr<ox::FileSystem> &&fs,
|
ox::UPtr<ox::FileSystem> &&fs,
|
||||||
ox::CRStringView appName) noexcept;
|
ox::CRStringView appName) noexcept;
|
||||||
|
|
||||||
ox::Result<ox::UPtr<Context>> init(
|
template<typename Ctx = keel::Context>
|
||||||
ox::UPtr<ox::FileSystem> &&fs,
|
ox::Result<ox::UPtr<Ctx>> init(ox::UPtr<ox::FileSystem> &&fs, ox::CRStringView appName) noexcept {
|
||||||
ox::CRStringView appName) noexcept;
|
auto ctx = ox::make_unique<Ctx>();
|
||||||
|
oxReturnError(keel::init(ctx.get(), std::move(fs), appName));
|
||||||
|
return ctx;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -123,7 +123,6 @@ void TileSheetEditorImGui::draw(turbine::Context*) noexcept {
|
|||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::BeginChild("Controls", ImVec2(m_palViewWidth - 8, paneSize.y), true);
|
ImGui::BeginChild("Controls", ImVec2(m_palViewWidth - 8, paneSize.y), true);
|
||||||
{
|
{
|
||||||
const auto controlsSize = ImGui::GetContentRegionAvail();
|
|
||||||
ImGui::BeginChild("ToolBox", ImVec2(m_palViewWidth - 24, 30), true);
|
ImGui::BeginChild("ToolBox", ImVec2(m_palViewWidth - 24, 30), true);
|
||||||
{
|
{
|
||||||
const auto btnSz = ImVec2(45, 14);
|
const auto btnSz = ImVec2(45, 14);
|
||||||
@ -142,14 +141,14 @@ void TileSheetEditorImGui::draw(turbine::Context*) noexcept {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
const auto ySize = controlsSize.y - 38;
|
const auto ySize = paneSize.y - 36;
|
||||||
// draw palette/color picker
|
// draw palette/color picker
|
||||||
ImGui::BeginChild("Palette", ImVec2(m_palViewWidth - 24, ySize / 2.f), true);
|
ImGui::BeginChild("Palette", ImVec2(m_palViewWidth - 24, ySize / 2.07f), true);
|
||||||
{
|
{
|
||||||
drawPaletteSelector();
|
drawPaletteSelector();
|
||||||
}
|
}
|
||||||
ImGui::EndChild();
|
ImGui::EndChild();
|
||||||
ImGui::BeginChild("SubSheets", ImVec2(m_palViewWidth - 24, ySize / 2.f), true);
|
ImGui::BeginChild("SubSheets", ImVec2(m_palViewWidth - 24, ySize / 2.03f), true);
|
||||||
{
|
{
|
||||||
static constexpr auto btnHeight = 18;
|
static constexpr auto btnHeight = 18;
|
||||||
const auto btnSize = ImVec2(18, btnHeight);
|
const auto btnSize = ImVec2(18, btnHeight);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user