Skip to content

Commit

Permalink
more UI refacotoring
Browse files Browse the repository at this point in the history
* added drawTabs to Surface, which is used in the friends list, magic
  and player info tab
* moved all the tabs to separate files in ./ui
* merged packet and client-stream into packet-stream
* various mudclient code consistency improvements
  • Loading branch information
misterhat committed Aug 24, 2020
1 parent 07db154 commit 2146ae2
Show file tree
Hide file tree
Showing 23 changed files with 4,411 additions and 4,166 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ this client is designed to work with
## usage
the `dist/` directory contains everything you need to use the client.
run `npm start` to start a simple HTTP server http://localhost:1337.
you may put optional arguments into the hash of the URL as such:
you may put optional arguments into the hash of the URL:

http://localhost:1337/index.html#members,127.0.0.1,43595

alternatively, you can manually invoke `mudclient` on your own canvas as such:
alternatively, you can manually invoke `mudclient` on your own canvas:

```javascript
const mudclient = require('rsc-client');
const mudclient = require('@2003scape/rsc-client');

const mc = new mudclient(document.getElementById('mudclient-canvas'));
mc.members = false;
Expand All @@ -45,6 +45,8 @@ mc.options.middleClickCamera = true;
mc.options.mouseWheel = true;
// click the compas to face north
mc.options.resetCompass = true;
// show roofs unless inside buildings
mc.options.showRoofs = false;
// use arrow keys (and mouse wheel if enabled) to zoom in and out
mc.options.zoomCamera = true;
```
Expand Down
Loading

0 comments on commit 2146ae2

Please sign in to comment.