SpikeHimself / XPortal

XPortal is a Valheim mod that lets you select a portal's destination from a list. XPortal is a complete rewrite of AnyPortal.
GNU General Public License v3.0
19 stars 6 forks source link

Unable to scroll portal list #38

Open Quentin-ctrL opened 1 year ago

Quentin-ctrL commented 1 year ago

Hi,

I have more than 80 portals and it's difficult to choose between them with the controller. When we open the list we can see the first 20 portals (approximately). Using D-Pad Up' / 'D-Pad Down' we can choose previous or next portal . We can alternatively use joystick (faster) After the 20th items, we don't see what is selected.

In fact, the scroll bar is not focusing the selection. Without a mouse, it's impossible to scroll the portal list.

Regards.

Let me know if you need more details. Without this problem Gamepad support is excellent (adding keyhints would be perfect)

SpikeHimself commented 1 year ago

Hi, thanks for reporting!

I think I understand what you mean. I'll see what I can do about this.

As for keyhints, they're coming in the next release, see #32 ;)

SpikeHimself commented 1 year ago

Just to keep you updated, I am still working on this, but it's a lot harder than I expected.

The reason this isn't working, is not a fault of XPortal or Valheim, but it's a bug in Unity itself. So I have to build a work-around to "manually" make the dropdown scroll to the selected item, and, as with anything UI-related in Unity, this is difficult.

It was first reported in 2016:

Unity staff said they acknowledge that there is a bug, but they will not work on it:

The issue still exists in 2019:

SpikeHimself commented 1 year ago

Hi @Quentin-ctrL first of all thank you very much for your continued support. The issue you've reported here really annoys me, but after many hours of struggling I cannot find a feasible way to fix it.

I am leaving the issue open in case anyone else wants to look at it, but I regret to say that I have given up.

Quentin-ctrL commented 1 year ago

If it's Unity's bug and hard work, don't waste your time. It's a minor issue so let's focus on major issue or other projects.

Thanks for your time and your effort :)