Jump to content

Context Menu Actions


eliw00d

Recommended Posts

Is it possible to add new, or edit old, Context Menu actions via Lua? If not, where?

 

Also, in the Reloadable Lua scripts, there are functions that return text for the reload context menu action, but changing it does nothing. Are they not implemented yet?

Link to comment
Share on other sites

You mean the pistol mechanics? The menu entry for it should be located in the ISInventoryContextMenu (not sure if that's the exact name of the file but it is something pretty similar).

 

You could simply overwrite the function with your mod if that's what you are asking. I've done the same for the sleeping menu entry in my Sleeping Overhaul.

Link to comment
Share on other sites

Well, where do other items pull data from for their "Remaining" bars? Just so we're on the same page, I took a screenshot:

 

remaining.png

 

Something like that is what I have in mind, using currentCapacity/maxCapacity.

 

Yes, a lot of the code is very messy, and not just for the UI!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...