chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.47k stars 469 forks source link

Pinned Actor = Screen-Black-Out (WHY?) #807

Open skRapKlan opened 2 years ago

skRapKlan commented 2 years ago

Is your feature request related to a problem? Please describe. Not really a problem. More a really big 'work-flow' issue.

Describe the solution you'd like When editing a script like "Move Position" on an actor that is pinned to screen, you can't visualize where your location/position will be because the whole dang screen is blacked out (except for the standard pinned actor screen area - top left, as always...)

Describe alternatives you've considered Instead of totally blacking out the area that is "out of bounce". Make the outside 50% visible? Maybe even 75%? Maybe even have a little pull down menu where you can select the transparency of that layer?

Additional context This is what a pinned actor's frame work, should look like like in the GBS UI: pin actor idea

RichardULZ commented 2 years ago

Found it! it's not related to the other helpers as i initially thought, just this function it seems.

gbstudio\src\components\world\Actor.css line 29

https://github.com/chrismaltby/gb-studio/blob/9010620ac511107e142d98b1558678d6384e2de6/src/components/world/Actor.css#L25-L30

could be changed to outline: 2000px solid rgba(0, 0, 0, 0.5); image

Rebusmind commented 2 years ago

An alternative solution would be to only show the overlay when the pinned actor is dragged around, as the overlay is only really useful for that.