From a92d0c85f0e502ab0f8ef6ae18eea6f273dcb700 Mon Sep 17 00:00:00 2001 From: ChrisLR Date: Sat, 3 Oct 2020 15:41:37 -0400 Subject: [PATCH 1/3] Removed SplitHandler from the docs and plugins folder --- docs/source/Webclient.md | 75 +-- .../webclient/js/plugins/splithandler.js | 438 ------------------ .../webclient/templates/webclient/base.html | 1 - 3 files changed, 2 insertions(+), 512 deletions(-) delete mode 100644 evennia/web/webclient/static/webclient/js/plugins/splithandler.js diff --git a/docs/source/Webclient.md b/docs/source/Webclient.md index 610ad667cf..97f465eabd 100644 --- a/docs/source/Webclient.md +++ b/docs/source/Webclient.md @@ -69,12 +69,11 @@ The order of the plugins defined in `base.html` is important. All the callbacks * `oob.js` Defines onSend. Allows the user to test/send Out Of Band json messages to the server. * `options.js` Defines most callbacks. Provides a popup-based UI to coordinate options settings with the server. * `options2.js` Defines most callbacks. Provides a goldenlayout-based version of the options/settings tab. Integrates with other plugins via the custom onOptionsUI callback. -* `popups.js` Provides default popups/Dialog UI for other plugins to use. -* `splithandler.js` Defines onText. Provides an older, less-flexible alternative to goldenlayout for multi-window UI to automatically separate out screen real-estate by type of message. +* `popups.js` Provides default popups/Dialog UI for other plugins to use. # Writing your own Plugins -So, you love the functionality of the webclient, but your game has specific types of text that need to be separated out into their own space, visually. There are two plugins to help with this. The Goldenlayout plugin framework, and the older Splithandler framework. +So, you love the functionality of the webclient, but your game has specific types of text that need to be separated out into their own space, visually. The Goldenlayout plugin framework can help with this. ## GoldenLayout @@ -189,73 +188,3 @@ window.plugin_handler.add("myplugin", myplugin); You can then add "mycomponent" to an item's componentName in your goldenlayout_default_config.js. Make sure to stop your server, evennia collectstatic, and restart your server. Then make sure to clear your browser cache before loading the webclient page. - - -## Older Splithandler -The splithandler.js plugin provides a means to do this, but you don't want to have to force every player to set up their own layout every time they use the client. - -Let's create a `mygame/web/static_overrides/webclient/js/plugins/layout.js` plugin! - -First up, follow the directions in Customizing the Web Client section above to override the base.html. - -Next, add the new plugin to your copy of base.html: -``` - -``` -Remember, plugins are load-order dependent, so make sure the new ` From 83c69cb327d7c60e83281bc8d771017f41b29aa2 Mon Sep 17 00:00:00 2001 From: ChrisLR Date: Sat, 3 Oct 2020 16:21:37 -0400 Subject: [PATCH 2/3] Uppercased failing doc build reference, is docbuild case sensitive? --- docs/source/toc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/toc.md b/docs/source/toc.md index b82dc4f013..f155f146cf 100644 --- a/docs/source/toc.md +++ b/docs/source/toc.md @@ -1,5 +1,5 @@ # Toc -- [API root](api/evennia-api.rst) +- [API root](api/Evennia-API.rst) - [./A voice operated elevator using events](./A-voice-operated-elevator-using-events) - [./API refactoring](./API-refactoring) - [./Accounts](./Accounts) From 1fb98630aa09917a2ba1ef1fea9761424ee248ca Mon Sep 17 00:00:00 2001 From: ChrisLR Date: Sat, 3 Oct 2020 16:25:26 -0400 Subject: [PATCH 3/3] Revert "Uppercased failing doc build reference, is docbuild case sensitive?" --- docs/source/toc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/toc.md b/docs/source/toc.md index f155f146cf..b82dc4f013 100644 --- a/docs/source/toc.md +++ b/docs/source/toc.md @@ -1,5 +1,5 @@ # Toc -- [API root](api/Evennia-API.rst) +- [API root](api/evennia-api.rst) - [./A voice operated elevator using events](./A-voice-operated-elevator-using-events) - [./API refactoring](./API-refactoring) - [./Accounts](./Accounts)