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

Toggle button to show/don't show the portal in the list. #77

Open Skjolbir opened 10 months ago

Skjolbir commented 10 months ago

Is your feature request related to a problem? Please describe. Sometimes I wish to have portals similar to the default vanilla portals. Say for instance, a portal on the ground floor of a tower to the top floor (stairs are lame). I don't want these two portals to clutter up the list however.

Describe the solution you'd like I'd like a toggle button that I can turn off to remove a portal from the list. This will let me set up their portal destination behaviour locally, and then pretty much just use them like a vanilla teleport, from portal A to portal B and vice versa.

Describe alternatives you've considered As of right now, I just prepend a "9" to the names of portals I want to shove/hide at the bottom of the list. This works for organisation, but it doesn't look so great.

Additional context No additional context.

SpikeHimself commented 10 months ago

Interesting idea! I'll give this some thought :)

Skjolbir commented 10 months ago

Interesting idea! I'll give this some thought :)

I had a bonus idea, to have another toggle to show hidden portals in the list, so you can still select them remotely if you really need to, but otherwise the default behaviour is the list does not show these "hidden" portals.

CapTV8 commented 10 months ago

I second this, as I have a lot of "trash, travel, explore" portals that appear in the list as well, that I do not care about the mats and just leave them where they are. Maybe as someone else said in another post, the folder structure?

Looking at Portal, hit E and the drop down to select portal would look like this (either being pre-defined or ability to name the folders yourself)

Collapsed it would look like this:

Bosses Exploration Farms Local Trash

Expanded:

Bosses

  • Eikthyr
  • Elder
  • Bonemass
  • Moder
  • Yagluth
  • Queen Exploration
  • IDK where I am
  • Traveling to far destination checkpoint Farms
  • Greydwarf farm
  • Jotun puffs/magecap
  • Plains flax/barley
  • surtling core/coal
  • Ygg Sap root 1 Local (as in SKs example)
  • Base downstairs
  • Base upstairs
  • Eitr refinery Trash
  • about to fight 2 star seeker soldier
  • trying this jump without feather cape
  • wood farming this area etc.

As it now I do the same, just put a ! or - in front of the portal name to organize it that way, but the list just keeps getting longer.

That hide/unhide sounds interesting, too! That way you could just put a map pin down for your trash portals but not show them in the list.

Sorry for the wall of text :)|

SpikeHimself commented 10 months ago

It's very unlikely that I'll make something like a folder structure for portals. Working with Unity's UI is painful enough as it is, and I don't have that much time at the moment.

It would involve a complete overhaul of the XPortal UI as it won't be possible to use the Unity dropdown for this. Plus you'd need somewhere to create/edit the folders, it's quite a huge task.