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

Flood-filling decoration is affected by UI elements such as the zoom window #594

Open
ghost opened this issue Jul 20, 2018 · 10 comments
Open
Labels
Simulation oddity that shouldn't happen

Comments

@ghost
Copy link

ghost commented Jul 20, 2018

If you zoom in on a homogeneously-coloured block and use ctrl+shift+click on it, the interior, border, exterior of and area behind the zoom window are treated like separate areas.

It doesn't matter whether you click inside the large or small zoom window, its border, something around it or around the large window.

@iczero
Copy link
Contributor

iczero commented Jul 20, 2018

Wouldn't this be intended behavior? It sounds awfully like it was done intentionally.

@ghost
Copy link
Author

ghost commented Jul 20, 2018

Definitely not, judging by what happens in all the different ways you can click outside the zoom window. Especially what happens when flood-filling whatever occupies the corner where the large zoomed window is.

@ghost ghost changed the title Flood-filling decoration is affected by edge of zoom window Flood-filling decoration uses displayed colour Jan 9, 2019
@jacob1
Copy link
Member

jacob1 commented Jan 9, 2019

The new title makes less sense?

Anyway this one of those things I say "it's not a bug, it's a feature!" I knew about it when adding deco flood fill. I may or may not eventually fix it but it's very low priority.

@ghost
Copy link
Author

ghost commented Jan 9, 2019

The benefits of coming back to something after an extended period of time.

When flood-filling, it applies that decoration to everything connected that renders the same colour. So there are a lot of unintended side-effects:

  • overlays of all kinds block it
    • both parts of the zoom window
    • HUD
    • fire effect glow
    • centre text, e.g. "Air: Off"
    • element info in bottom right
  • something undecorated and something (same or different element) coloured to look the same will be affected together
  • if something is decorated with multiple colours, e.g. sand effect, disabling decoration display allows the whole thing to be coloured simultaneously.

fake edit: have patience, @jacob1

@ghost
Copy link
Author

ghost commented Jan 9, 2019

This was a single flood-fill operation. Surely not intended behaviour.
image

@ghost ghost changed the title Flood-filling decoration uses displayed colour Flood-filling decoration uses only displayed colour Jan 9, 2019
@jacob1
Copy link
Member

jacob1 commented Jan 9, 2019

Using "displayed" color is entirely intentional. All the overlay issues you mentioned are bugs though. The thing with a decoed element and a non decoed element both being flood filled is intentional, because they are the same color. Same with the sand effect thing, that is also intentional.

It should take a snapshot of the screen before rendering the UI objects. Then it can flood fill properly.

@ghost
Copy link
Author

ghost commented Jan 9, 2019

@jacob1 Not entirely sure how to phrase it. Feel free to change the title if you have something better :)

Though I don't agree that sand effect should work differently because you disabled deco rendering.

Another repro: try zooming into the area under the top HUD, and flood-filling inside the enlarged zoom window. Doesn't even cover the whole thing.
tptfill

@jacob1
Copy link
Member

jacob1 commented Jan 9, 2019

Deco flood fill flood fills based on the color on the screen. So of course decoration color will affect it. The only bug is that UI elements shouldn't affect.

Deco flood fill is different from other types of flood fills. Other types flood fill based on elements, but deco flood fills based on the color displayed on the screen.

@jacob1 jacob1 changed the title Flood-filling decoration uses only displayed colour Flood-filling decoration is affected by UI elements such as the zoom window Jan 9, 2019
@ghost
Copy link
Author

ghost commented Jan 9, 2019

Fair enough. I was just listing as many tangentially-related examples of the underlying cause as I could. That's behaviour I dispute but don't oppose, if you know what I mean :)

Title's definitely better now.

@ghost
Copy link
Author

ghost commented May 4, 2019

Flood-filling on the empty background will colour anything that is dark.

@simtr simtr added the Simulation oddity that shouldn't happen label May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Simulation oddity that shouldn't happen
Projects
None yet
Development

No branches or pull requests

3 participants