Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move down local points assigment on gui/design #956

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ Template for new versions:

## Fixes
- `combine`: prevent stack sizes from growing beyond quantities that you would normally see in vanilla gameplay
- `gui/design`: Center dragging shapes now track the mouse correctly

## Misc Improvements
- `caravan`: enable searching within containers in trade screen when in "trade bin with contents" mode
Expand Down
6 changes: 3 additions & 3 deletions gui/design.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,6 @@ function Design:onRenderFrame(dc, rect)
self.marks[self.placing_mark.index] = mouse_pos
end

-- Set main points
local points = copyall(self.marks)

-- Set the pos of the currently moving extra point
if self.placing_extra.active then
self.extra_points[self.placing_extra.index] = mouse_pos
Expand Down Expand Up @@ -1289,6 +1286,9 @@ function Design:onRenderFrame(dc, rect)
self.prev_center = mouse_pos
end

-- Set main points
local points = copyall(self.marks)

if self.mirror_point then
points = self:get_mirrored_points(points)
end
Expand Down