def activate( self, clientId ): """ convenience function. pushes menu cmdMap and prompt, and displays menu """ pushCmdHandler( clientId, self.cmdMap ) pushPrompt( clientId, lambda x: self.prompt ) sendToClient( clientId, self.menu( clientId ) )
def _editZoneName(clientId, zoneTemplateForm): getOneLine( clientId, lambda clientId, text: _editZoneNameCallback( clientId, zoneTemplateForm, text)) pushPrompt( clientId, lambda clientId: endl + "{!{FU<input new name for {FY%s{FU>" % zoneTemplateForm.zoneTemplate.name)
def activate(self, clientId): """ convenience function. pushes menu cmdMap and prompt, and displays menu """ pushCmdHandler(clientId, self.cmdMap) pushPrompt(clientId, lambda x: self.prompt) sendToClient(clientId, self.menu)
def _editMobShortName(clientId, mobTemplateForm): getOneLine( clientId, lambda clientId, text: _editMobShortNameCallback( clientId, mobTemplateForm, text)) pushPrompt( clientId, lambda clientId: endl + "{!{FU<input new short name for {FY%s{FU>" % mobTemplateForm.mobTemplate.sname)
def _editZoneName( clientId, zoneTemplateForm ): getOneLine( clientId, lambda clientId, text: _editZoneNameCallback( clientId, zoneTemplateForm, text ) ) pushPrompt( clientId, lambda clientId: endl + "{!{FU<input new name for {FY%s{FU>" % zoneTemplateForm.zoneTemplate.name )
def _activate( clientId, textEditor ): pushCmdHandler( clientId, textEditor.cmdMap ) pushPrompt( clientId, lambda clientId: _prompt ) sendToClient( clientId, textEditor.menu )
def _activate(clientId, textEditor): pushCmdHandler(clientId, textEditor.cmdMap) pushPrompt(clientId, lambda clientId: _prompt) sendToClient(clientId, textEditor.menu)
def _editMobShortName(clientId, mobTemplateForm): getOneLine(clientId, lambda clientId, text: _editMobShortNameCallback(clientId, mobTemplateForm, text)) pushPrompt( clientId, lambda clientId: endl + "{!{FU<input new short name for {FY%s{FU>" % mobTemplateForm.mobTemplate.sname )
def cmdText(clientId, remaining): getOneLine(clientId, textCallback) pushPrompt(clientId, lambda x: textPrompt)
def cmdText( clientId, remaining ): getOneLine( clientId, textCallback ) pushPrompt( clientId, lambda x: textPrompt )