Skip to content

Commit

Permalink
fixed hsv detail not working
Browse files Browse the repository at this point in the history
  • Loading branch information
anatom3000 committed Dec 4, 2024
1 parent addd5e9 commit c37ed74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.1.3
- Fixed detail HSV not working

# 1.1.2
- 2.2074 support

Expand Down
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"developer": "anatom3000",
"repository": "https://github.com/anatom3000/Functional",
"id": "anatom3000.functional",
"version": "v1.1.2",
"geode": "4.0.0",
"version": "v1.1.3",
"geode": "4.0.1",
"gd": {
"win": "2.2074",
"android": "2.2074"
Expand Down
6 changes: 4 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,6 @@ class FunctionToolPopup : public geode::Popup<> {

auto base_scale_x = obj->getRScaleX();
auto base_scale_y = obj->getRScaleY();
// FIXME: find addresses for these
obj->updateCustomScaleX(base_scale_x*scale_x);
obj->updateCustomScaleY(base_scale_y*scale_y);
if (!m_abs_scaling) this->scaleRelative(obj, current_center, scale_x, scale_y);
Expand All @@ -463,10 +462,13 @@ class FunctionToolPopup : public geode::Popup<> {
obj_single->removeLastObject(false);
}


obj->m_baseColor->m_hsv.h += base_hue;
obj->m_baseColor->m_hsv.s += base_saturation;
obj->m_baseColor->m_hsv.v += base_value;

obj->m_detailColor->m_hsv.h += detail_hue;
obj->m_detailColor->m_hsv.s += detail_saturation;
obj->m_detailColor->m_hsv.v += detail_value;
}

if (!m_abs_rotation) ui->rotateObjects(current, rotation, current_center);
Expand Down

0 comments on commit c37ed74

Please sign in to comment.