jacobpaige Posted May 5, 2018 Author Share Posted May 5, 2018 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 More sharing options...
FaegenFeorhlif Posted May 14, 2018 Share Posted May 14, 2018 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 wellBasically you make a While loop, e.g.i = 0While i < Formlist.GetSize()MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here) i += 1EndWhileMyUIListMenu.OpenMenu() Etc etcAnd 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 More sharing options...
jacobpaige Posted May 16, 2018 Author Share Posted May 16, 2018 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 wellBasically you make a While loop, e.g.i = 0While i < Formlist.GetSize()MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here) i += 1EndWhileMyUIListMenu.OpenMenu() Etc etcAnd 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 More sharing options...
FaegenFeorhlif Posted May 19, 2018 Share Posted May 19, 2018 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 wellBasically you make a While loop, e.g.i = 0While i < Formlist.GetSize()MyUIListMenu.AddEntryItem(i.GetName(), etc etc insert other parameters here) i += 1EndWhileMyUIListMenu.OpenMenu() Etc etcAnd 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 More sharing options...
Ghaunadaur Posted May 19, 2018 Share Posted May 19, 2018 One reason why I suggested SkyUILib.The permissions allow to include the files in your mod, so you only have one dependency (SKSE).Plus, the list menu can be used in game, or in combination with MCM. Link to comment Share on other sites More sharing options...
FaegenFeorhlif Posted May 19, 2018 Share Posted May 19, 2018 Yes SkyUILib is a good solution! Link to comment Share on other sites More sharing options...
Recommended Posts