Jump to content

Photo

MCM Page Reset.

page reset reset page mcm update update page page update mcm page reset mcm page update scripting

  • Please log in to reply
2 replies to this topic

#1
ArrowFX

ArrowFX

    Fan

  • Premium Member
  • 261 posts

Hello, I have been working on an mcm menu for a specific feature in my mod for the last few days and I would like to ask you all for help.

 

So currently I need to make a menu that can natrually change its layout, I have been able todo this thru using a drop down menu and then using the index to determine the layout but the problem I am facing is that for the menu to actually change you need to exit the menu and then enter it again. This is a problem because users of this part of the mod will most likely have to change layout multiple times in one session and it would just become a hassle.

 

So my question would be if there is a function or event that will force the mcm menu to update, like how it updates when the event "OnPageReset" is called but without the need for the user to exit the menu. I have thought about the possiblity of doing it thru loading another menu for a split second and then leaving that menu but I don't know how I would get the user to comeback to the mcm menu if I did that. 

 

Sry for not making it more clear but I am pretty tired at this point.



#2
dylbill

dylbill

    Resident poster

  • Premium Member
  • 2,827 posts

You can use the ForcePageReset() function.



#3
ArrowFX

ArrowFX

    Fan

  • Premium Member
  • 261 posts

You can use the ForcePageReset() function.

... Can't believe it was that simple...







Also tagged with one or more of these keywords: page reset, reset, page, mcm, update, update page, page update, mcm page reset, mcm page update, scripting

IPB skins by Skinbox
Page loaded in: 1.230 seconds