diff --git a/changelog.md b/changelog.md index b67ed3e..dbf4e32 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +# v1.0.5 +- Fixed issue with pausing the editor causing misalignment +- Fixed the "token expiration" popup # v1.0.4 - Showcased whether or not your object is pending - Allowed sending a report reason (required) diff --git a/mod.json b/mod.json index 008c6fa..c048ac1 100644 --- a/mod.json +++ b/mod.json @@ -8,7 +8,7 @@ }, "id": "firee.object-workshop", "name": "Object Workshop", - "version": "v1.0.4", + "version": "v1.0.5", "developer": "Firee", "description": "Download, upload, or find custom objects made by other creators!", "resources": { @@ -59,7 +59,7 @@ }, { "id": "alphalaneous.editortab_api", - "version": ">=v1.0.0-alpha.21", + "version": ">=v1.0.0-beta.2", "importance": "required" } ] diff --git a/src/main.cpp b/src/main.cpp index a0e59c1..3b27d1f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -32,6 +32,7 @@ void CustomObjects::onWorkshop(CCObject*) { } case AuthMethod::Custom: { FLAlertLayer::create("Error", "Either the token you set is expired, or you entered the token incorrectly!", "OK")->show(); + break; } case AuthMethod::GDAuth: { authentication::AuthenticationManager::get()->getAuthenticationToken([](std::string token) { @@ -182,13 +183,13 @@ bool CustomObjects::init(LevelEditorLayer* editorLayer) { req.bodyJSON(myjson); 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({-2, -112}); + 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) { - m_fields->menu->setPosition({-2, -112}); + //m_fields->menu->setPosition({-2, -112}); } });