Jump to content

[LE] Are dynamic menu options possible?


Recommended Posts

I had a quick thought. If you remove(dismiss?) a follower from the middle of the Array, you need PapyrusUtil to remove the None Form & Resize the Array!!! So you need PapyrusUtil. For a Professional Looking Display in MCM, SkyUIlib or UIExts UI Dialogue Box.

 

So, does that mean that this method would persist the list of followers? I was just planning to regenerate it each time when I was considering this implementation. The menu being opened should pause the game after all, so the follower list shouldn't be able to change while it's open.

Link to comment
Share on other sites

  • 2 weeks later...

 

I had a quick thought. If you remove(dismiss?) a follower from the middle of the Array, you need PapyrusUtil to remove the None Form & Resize the Array!!! So you need PapyrusUtil. For a Professional Looking Display in MCM, SkyUIlib or UIExts UI Dialogue Box.

 

So, does that mean that this method would persist the list of followers? I was just planning to regenerate it each time when I was considering this implementation. The menu being opened should pause the game after all, so the follower list shouldn't be able to change while it's open.

 

Yeah using UIExtensions you have to restate the menu entries each time before you open the menu, so no need to do anything special. Presumably you're planning to make a formlist or array of followers?

UIExtensions can handle this very well

Basically you make a While loop, e.g.

i = 0

While i < Formlist.GetSize()

MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here)

i += 1

EndWhile

MyUIListMenu.OpenMenu()

 

Etc etc

And hey presto! Your dynamic menu.

Let me know if you need any more guidance on this, I have been using UIExtensions's list menu to make my own dynamic menus for my mod in progress

Link to comment
Share on other sites

Yeah using UIExtensions you have to restate the menu entries each time before you open the menu, so no need to do anything special. Presumably you're planning to make a formlist or array of followers?

UIExtensions can handle this very well

Basically you make a While loop, e.g.

i = 0

While i < Formlist.GetSize()

MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here)

i += 1

EndWhile

MyUIListMenu.OpenMenu()

 

Etc etc

And hey presto! Your dynamic menu.

Let me know if you need any more guidance on this, I have been using UIExtensions's list menu to make my own dynamic menus for my mod in progress

 

Adding three dependencies (SKSE, SkyUI, and UIExtensions) sounds like a bit much just to have a dynamic menu, especially when it's not the main focus of the mod. I don't know that people would even want to download my mod if they didn't already have all three. I'm sure most people already have the first two, so they aren't as much of an issue, but is UIExtensions really necessary for this? I know it makes the menu vertical and scrollable, which would make it look nicer and save me having to split it up when people have a dozen followers, but does it do anything else that would warrant its inclusion for what would basically just be a simple selection menu?

Link to comment
Share on other sites

 

Yeah using UIExtensions you have to restate the menu entries each time before you open the menu, so no need to do anything special. Presumably you're planning to make a formlist or array of followers?

UIExtensions can handle this very well

Basically you make a While loop, e.g.

i = 0

While i < Formlist.GetSize()

MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here)

i += 1

EndWhile

MyUIListMenu.OpenMenu()

 

Etc etc

And hey presto! Your dynamic menu.

Let me know if you need any more guidance on this, I have been using UIExtensions's list menu to make my own dynamic menus for my mod in progress

 

Adding three dependencies (SKSE, SkyUI, and UIExtensions) sounds like a bit much just to have a dynamic menu, especially when it's not the main focus of the mod. I don't know that people would even want to download my mod if they didn't already have all three. I'm sure most people already have the first two, so they aren't as much of an issue, but is UIExtensions really necessary for this? I know it makes the menu vertical and scrollable, which would make it look nicer and save me having to split it up when people have a dozen followers, but does it do anything else that would warrant its inclusion for what would basically just be a simple selection menu?

 

If I've understood your question correctly, you would like to make an ingame menu where the options change depending on what followers the player has - I am fairly sure the vanilla messagebox/menu system does not allow this functionality.

You could do it within an MCM, thereby limiting your dependencies to SKSE & SkyUI but in my opinion that would spoil the flow of the game having to exit the game and enter the MCM every time you want to access your follower menu.

 

I personally don't know of any other way to make a dynamic menu interface as you've described without resorting to other UI mods to help you. UIExtensions is used by several popular mods e.g. EFF, AddItemMenu, Become a Bard etc so you may find that people aren't as reluctant to download one new mod as you think!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...