Moved lineditor into utils/eveditor.py. The line editor is accessed by simply importing the class (same as EvTable, EvMenu etc), so the utils.get_line_editor function was removed.
This commit is contained in:
parent
adae4f2ec4
commit
cc2b094bc6
5 changed files with 143 additions and 112 deletions
|
|
@ -13,6 +13,7 @@ from evennia.commands.default.muxcommand import MuxCommand
|
|||
from evennia.commands.cmdhandler import get_and_merge_cmdsets
|
||||
from evennia.utils import create, utils, search
|
||||
from evennia.utils.utils import inherits_from
|
||||
from evennia.utils.eveditor import EvEditor
|
||||
from evennia.utils.spawner import spawn
|
||||
from evennia.utils.ansi import raw
|
||||
|
||||
|
|
@ -554,12 +555,11 @@ class CmdDesc(MuxCommand):
|
|||
self.caller.msg("Saved.")
|
||||
return True
|
||||
|
||||
self.editor = utils.get_line_editor()(
|
||||
self.caller,
|
||||
loadfunc=load,
|
||||
savefunc=save,
|
||||
key="desc",
|
||||
)
|
||||
self.editor = EvEditor(
|
||||
self.caller,
|
||||
loadfunc=load,
|
||||
savefunc=save,
|
||||
key="desc")
|
||||
return
|
||||
|
||||
def func(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue