CustomContextmenuLib #1277
KVonGit
started this conversation in
Libraries and Code Samples
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Download the library files as a ZIP
CustomContextmenuLib.zip
The library files
Click here to view CustomContextmenuLib.aslx
Click here to view customContextmenu.js
How to use it
Add the library to your game. 1
Create
game.contextmenucommands
for your menu's items. 2For
game.contextmenucommands
, you can use:Important
Be sure to add this to
game.inituserinterface
! 3Example Game
Play or download
https://textadventures.co.uk/games/view/656ev17sr0unwhvsfd_1aw/custom-contextmenu-example
The code
Click here to view Custom Contextmenu Example.aslx
Original idea by @Pertex
Much thanks to Davy B for all his contributions!
Footnotes
How to Add a Library to Your Game ↩
Optionally, you could just modify this line in
game.inituserinterface
to customize your menu items:game.contextmenucommands = "look,save,help,inventory"
↩Advanced game scripts ↩
Beta Was this translation helpful? Give feedback.
All reactions