mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 22:46:17 +02:00
* Some new skeleton files for area messages + some conceptual thoughts
This commit is contained in:
parent
901f83453c
commit
c26fb573a1
4 changed files with 353 additions and 31 deletions
50
mods/msg_area_post.js
Normal file
50
mods/msg_area_post.js
Normal file
|
@ -0,0 +1,50 @@
|
|||
/* jslint node: true */
|
||||
'use strict';
|
||||
|
||||
var MenuModule = require('../core/menu_module.js').MenuModule;
|
||||
var FullScreenEditor = require('../core/fse--class.js'); // :TODO: fix this
|
||||
//var theme = require('../core/theme.js');
|
||||
|
||||
var async = require('async');
|
||||
var assert = require('assert');
|
||||
var _ = require('lodash');
|
||||
|
||||
exports.getModule = MessageAreaPostModule;
|
||||
|
||||
exports.moduleInfo = {
|
||||
name : 'Message Area Post',
|
||||
desc : 'Module posting a new message to an area',
|
||||
author : 'NuSkooler',
|
||||
};
|
||||
|
||||
function MessageAreaPostModule(options) {
|
||||
MenuModule.call(this, options);
|
||||
|
||||
var self = this;
|
||||
|
||||
|
||||
this.initSequence = function() {
|
||||
var fse = new FullScreenEditor( {
|
||||
client : this.client,
|
||||
art : this.menuConfig.config.fseArt,
|
||||
font : this.menuConfig.font,
|
||||
editorType : 'area',
|
||||
editorMode : 'edit',
|
||||
});
|
||||
|
||||
fse.on('error', function fseError(err) {
|
||||
|
||||
});
|
||||
|
||||
fse.enter();
|
||||
};
|
||||
}
|
||||
|
||||
require('util').inherits(MessageAreaPostModule, MenuModule);
|
||||
|
||||
/*
|
||||
MessageAreaPostModule.prototype.mciReady = function(mciData, cb) {
|
||||
this.standardMCIReadyHandler(mciData, cb);
|
||||
};
|
||||
*/
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue