Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!mc menu #4

Open
TheWhiteWolves opened this issue Apr 12, 2016 · 5 comments
Open

!mc menu #4

TheWhiteWolves opened this issue Apr 12, 2016 · 5 comments

Comments

@TheWhiteWolves
Copy link
Owner

Add in a menu command, this command will send a menu to the chat with a list of the map names and buttons to allow a player to use this to move between pages instead of either manually sending the command or using a macro.

public maps will display for players and GMs
private maps will only display for GMs

When the command is used a table will be generated and sent to the player, following the bellow example:

Player View:

Map Link
Caves [ ]
Forest [ ]
Mountain [ ]

GM View:

Public Map Link
Caves [ ]
Forest [ ]
Mountain [ ]
Private Map Link
[GM] Dungeon [ ]
[GM] Castle [ ]
[GM] Secret Room [ ]

[ ] is a placeholder for a button in the chat

@TheWhiteWolves
Copy link
Owner Author

@TheWhiteWolves
Copy link
Owner Author

TheWhiteWolves commented May 16, 2016

Done first pass at this (see commit 2321985).

At the moment this has no custom styling as whispering does not support setting the html yourself, this can only be done through /direct but this sends the message to all players which we do not want to happen.

Current Version Example
Example

@TheWhiteWolves
Copy link
Owner Author

Idea for enhancement:

Add a parameter to the menu command to allow GM's to display only one of the map files. e.g. "!mc menu --display public" will only display the public maps.

By default it will still display all the map files to the GM.

@TheWhiteWolves
Copy link
Owner Author

TheWhiteWolves commented May 20, 2016

Filter completed in commit 7bb4813

Also refactored the menu in commit 53fc485 so that in now looks like this (I need to decide which formatting is better):

Normal:
image
Itallic:
image
Bold and Itallic:
image
Bold:
image

@TheWhiteWolves
Copy link
Owner Author

Need to work on some better styling across the board

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant