ScrollingMenuSign Support

If the ScrollingMenuSign plugin (v0.6 or later) is installed, ChessCraft will make use of it to create several useful menus of operations that can be carried out, and these menus can be displayed on signs, maps carried by players, or even popup Spout menus if your server uses Spout.

Here are the menus that are currently created (the menu names are shown in parentheses):

  • Create a new game (cc_create-game)
  • View information for games in progress (cc_game-info)
  • View information for boards (cc_board-info)
  • Teleport to a game in progress (cc_tp-game)
  • Delete a game in progress (cc_delete-game)

If you're familiar with ScrollingMenuSign, you should know what to do with these menus. If not, then read on (and I recommend reading at least the Quickstart Guide in the ScrollingMenuSign documentation)...

Setting up Signs

  • Ensure you have the scrollingmenusign.admin permission node
  • Place a sign somewhere (can be a wall or floor sign, whichever you prefer). The sign text doesn't matter - it can be blank.
  • Look at the sign (target it), and type /sms sync cc_board-info
  • The sign will change, showing a "Board Info" title on the first line, and a scrollable list of the chessboards you have created on the following three lines.
  • You can scroll the list down by right-clicking it, or scroll up by shift+right-clicking.
  • Left-clicking will display information for the selected board, just as if you had typed /chess list board <board-name>

You can repeat this for the other menus, creating a new sign for each menu. Add as many or few signs as you like. You can also have two or more signs at different locations displaying the same menu if you want!

Setting up Maps

You can also display these menus on maps that players carry around with them. To do this:

  • Use /sms give map cc_board-info to get a map view for the cc_board-info menu. You can do the same for any other menu. You can also get multiple maps if you want, with e.g. /sms give map cc_board-info 5
  • Alternatively, if you've already created a sign for a menu, hit that sign with a map, and the sign's menu will transfer to the map you're holding
  • The cc_board-info menu will now be displayed on your map! Note that all other maps of the same ID will also show this menu, so you can craft or obtain multiple maps and give them to players, if you want.

Setting up Spout Menus

  • To create a Spout menu for the board info menu, type /sms sync cc_board-info -spout. You'll get given a view name, e.g. cc_board-info-1.
  • Now you'll need to choose a hotkey for that menu. You can require multiple keys to be pressed, e.g. if you want CTRL-I to be used: /sms view cc_board-info-1 spoutkeys LCONTROL+I (see http://jd.spout.org/legacy/plugin/recommended/org/getspout/spoutapi/keyboard/Keyboard.html for a full list of keys that Spout accepts - you can leave off the KEY_ prefix if you want)
  • Now, when a player (using the Spoutcraft client) presses CTRL+I, the board info menu will pop up.

Read Using Map Views in the SMS documentation for more information.


Comments

Posts Quoted:
Reply
Clear All Quotes