jurialmunkey / skin.arctic.fuse

Other
143 stars 21 forks source link

:bug: Spotlight autoscroll doesn't stop when context menu or plot info is visible [Proposed Fix] #959

Closed OfficerKD637 closed 2 weeks ago

OfficerKD637 commented 2 weeks ago

Skin section

Widgets

Current Behavior

Hey Jurial!

Hope you're doing well!

After playing around with the spotlight a bit more, I noticed the carousel keeps going even after clicking the context menu button (button id=313) and having the context menu or subsequently clicking the plot side button to bring up the plot info.

This feels a bit jarring when you're trying to read the plot of a movie and the autoscroll timer runs out and it switches to the next one.

Adding + !Window.IsVisible(DialogContextMenu.xml) + !Window.IsVisible(Custom_1113_Dialog_Plot.xml) to the end of the condition here has fixed the issue for me.

Optional: I also added + !Window.IsVisible(1170) to stop the Spotlight from autoscrolling when the Options Tray is visible.

Let me know if this works!

Expected Behavior

Spotlight autoscroll to stop when context menu or plot info is on screen.

Steps To Reproduce

  1. Create a complex setup with a Spotlight
  2. Set a autoscroll time interval
  3. Click on the context menu button in the spotlight

You'll notice the carousel behind the context menu doesn't stop.

Although clicking on anyone of the options like 'Select Player', 'Trakt Options' will take you to the correct film/show i.e. the one you pressed the context info button for, so this is more for visual coherence.

  1. Once the context menu is visible, click on the Plot side button

This will bring up the Plot Info Window

This is more of a bigger fix since if you have the auto scroll interval to something low (like 5s or 8s) and you're trying to read the plot (and maybe you're a slow reader haha), it'll switch to the plot info of the next item as soon as the timer runs out.

Proposed fix: Adding + !Window.IsVisible(DialogContextMenu.xml) + !Window.IsVisible(Custom_1113_Dialog_Plot.xml) to the end of the condition here

Screenshots and Additional Info

No response

Checklist

jurialmunkey commented 2 weeks ago

I don't think it should stop for options tray, but definitely should for plot and context. I also added trailer dialog and wikipedia, as I think we don't want it to change on those either.

OfficerKD637 commented 2 weeks ago

Yeah I changed my mind about the options tray and forgot to edit the post haha.

This commit works for everything except the wiki script. I hadn't used Wiki when I initially made the post but decided to test it out now. It seems after the first click that brings up the dialog list, there's a weird glitch happening (almost like there's conflict between two set of instructions).

Here's a video to demonstrate my issue (default skin settings/font/everything): https://streamable.com/yscfa8

If you move through the menu quickly and select any of the items in the first dialog to bring out the actual Wiki Window then you avoided the glitch. But if you stay on the first list too long, the glitch starts.

It's weird because it worked for the other windows (1113, 1123 and the context menu) but something weird happens with the wiki one.

jurialmunkey commented 2 weeks ago

The glitch is weird, but the autoscroll starting is expected because the dialog you're on isn't script-wikipedia.xml, it's just DialogSelect (to "select" the wikipedia title to open).

Not sure what that glitch is though -- I would've just expected it to scroll to the next item.

Probably a good idea to just block autoscroll when dialogselect is active too anyway because that'd be used for things like selecting a TMDbHelper player or choosing to resume etc.

OfficerKD637 commented 2 weeks ago

Haha this is perfect! Cutting off the problem from its root is the best solution. I am actually learning a lot about skinning by just studying your commits.