From 3bd10fe54edefb6a90a8ee40481b77f829e149b0 Mon Sep 17 00:00:00 2001 From: FireMario211 <17692105+FireMario211@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:45:51 -0400 Subject: [PATCH] bru --- changelog.md | 2 ++ mod.json | 2 +- src/main.cpp | 10 +++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/changelog.md b/changelog.md index 9b5db00..c06847f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,5 @@ +# v1.0.2 +- Quickly revert a change with Editor Tab API # v1.0.1 - Added more to the mod description - Added refresh button diff --git a/mod.json b/mod.json index 85bee6d..1424474 100644 --- a/mod.json +++ b/mod.json @@ -8,7 +8,7 @@ }, "id": "firee.object-workshop", "name": "Object Workshop", - "version": "v1.0.1", + "version": "v1.0.2", "developer": "Firee", "description": "Download, upload, or find custom objects made by other creators!", "resources": { diff --git a/src/main.cpp b/src/main.cpp index b0f2396..8008779 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -180,13 +180,13 @@ bool CustomObjects::init(LevelEditorLayer* editorLayer) { m_fields->m_listener.setFilter(req.post(fmt::format("{}/user/@me", HOST_URL))); } m_fields->menu->setPosition({-2, -112}); - m_fields->menu->setPosition({285, 45}); - //return EditorTabUtils::createEditButtonBar(arr, ui); - return m_fields->menu; + //m_fields->menu->setPosition({285, 45}); + return EditorTabUtils::createEditButtonBar(arr, ui); + //return m_fields->menu; }, [this](EditorUI* ui, bool state, CCNode*) { //toggled the tab (activates on every tab click) - /*if (m_fields->menu != nullptr) { + if (m_fields->menu != nullptr) { m_fields->menu->setPosition({-2, -112}); - }*/ + } }); return true;