Griatch
|
ac9c68b877
|
Some rewordings in docstring.
|
2014-12-17 00:53:31 +01:00 |
|
Griatch
|
192d12d905
|
Some minor cleanups.
|
2014-12-17 00:50:05 +01:00 |
|
luyijun
|
ad4426d55d
|
edit prompt_choice's documentation
|
2014-12-16 23:48:10 +08:00 |
|
luyijun
|
fe6763a33f
|
Adds links in prompt_yesno. Adds prompt_choice.
|
2014-12-14 12:01:34 +08:00 |
|
Griatch
|
60931c26a7
|
Deprecated the code= keyword of contrib/menusystem - this is replaced with a callback keyword where a function object is supplied rather than a code string. Code still works, but will give a deprecation warning in log. Cleaned up the code and fixed dynamic yes/no allocation. Should handle the remaining issues of #596.
|
2014-10-23 01:27:31 +02:00 |
|
Griatch
|
182488a713
|
Updates to menu_node to make sure separate, new cmdsets are initialized in different tree instances, as per #596.
|
2014-10-17 19:32:33 +02:00 |
|
Simon Vermeersch
|
cde64692ff
|
Adds in support for links
|
2014-10-05 17:44:35 +02:00 |
|
Griatch
|
1ae17bcbe4
|
PEP8 cleanup of the entire codebase. Unchanged are many cases of too-long lines, partly because of the rewrite they would require but also because splitting many lines up would make the code harder to read. Also the third-party libraries (idmapper, prettytable etc) were not cleaned.
|
2013-11-14 19:31:17 +01:00 |
|
Griatch
|
ca32950d90
|
Fixed headers on contribs, they were still referring to the old base*.py -style files under gamesrc.
|
2012-04-01 22:23:47 +02:00 |
|
Griatch
|
93a1646ea7
|
Moved contribs to use the new API. Added the system command keys to a property syscmdkeys, for easy access from ev.py.
|
2012-03-25 18:11:14 +02:00 |
|
Griatch
|
e379816866
|
Fixed some bugs, added an example connection screen for the menu-login system.
|
2011-11-06 19:16:34 +01:00 |
|
Griatch
|
55f6f5b713
|
Contrib: Added a new, alternative login system, using menus. Also edited the ways unlogged commands are started by the engine, by using a standardized system command name (it does not need to be "look" anymore).
|
2011-11-06 18:53:10 +01:00 |
|
Griatch
|
2b2d27ed39
|
Changed the way unloggedin commands work. Rather than the cmdhander having a special state for unlogged-in commands, the session itself simply stores the cmdset from settings.CMDSET_UNLOGGEDIN. Clean and efficient and also gives a lot more freedom for creating custom login mechanisms (notably it opens the door to using menu systems).
|
2011-11-06 17:38:29 +01:00 |
|
Griatch
|
b9c1921a0b
|
Added a new 'contrib' folder for optional code snippets not suitable for the server core. Added contrib/menusystem for implementing a multi-choice menu system. Added contrib/lineeditor - a powerful line editor with commands mimicking VI. Also added an example NPC class using the menu system to allow for a conversation. As part of creating these contributions, lots of bugs were found and fixed. A new and more powerful cmdparser was intruduced as a result - this one is much easier to understand than the old one, while being more efficient and versatile. All testsuites were updated. Also: Resolves issue 165.
|
2011-05-12 21:51:11 +00:00 |
|