diff --git a/mods/menu.hjson b/mods/menu.hjson index 1ed12a98..858cd1f2 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -739,6 +739,10 @@ value: { command: "CHAT"} action: @menu:ercClient } + { + value: { command: "BBS"} + action: @menu:bbsList + } { value: 1 action: @menu:mainMenu @@ -1140,6 +1144,109 @@ } } + bbsList: { + desc: Viewing BBS List + module: bbs_list + options: { + cls: true + } + config: { + art: { + entries: BBSLIST + add: BBSADD + } + } + + form: { + 0: { + mci: { + VM1: { maxLength: 32 } + TL2: { maxLength: 32 } + TL3: { maxLength: 32 } + TL4: { maxLength: 32 } + TL5: { maxLength: 32 } + TL6: { maxLength: 32 } + TL7: { maxLength: 32 } + TL8: { maxLength: 32 } + TL9: { maxLength: 32 } + } + actionKeys: [ + { + keys: [ "a" ] + action: @method:addBBS + } + { + // :TODO: add delete key + keys: [ "d" ] + action: @method:deleteBBS + } + { + keys: [ "q", "escape" ] + action: @method:quitBBSList + } + ] + } + 1: { + mci: { + ET1: { + argName: name + maxLength: 32 + validate: @systemMethod:validateNonEmpty + } + ET2: { + argName: sysop + maxLength: 32 + validate: @systemMethod:validateNonEmpty + } + ET3: { + argName: telnet + maxLength: 32 + validate: @systemMethod:validateNonEmpty + } + ET4: { + argName: www + maxLength: 32 + } + ET5: { + argName: location + maxLength: 32 + } + ET6: { + argName: software + maxLength: 32 + } + ET7: { + argName: notes + maxLength: 32 + } + TM17: { + argName: submission + items: [ "save", "cancel" ] + submit: true + } + } + actionKeys: [ + { + keys: [ "escape" ] + action: @method:cancelSubmit + } + ] + submit: { + *: [ + { + value: { "submission" : 0 } + action: @method:submitBBS + } + { + value: { "submission" : 1 } + action: @method:cancelSubmit + } + ] + } + } + } + } + /////////////////////////////////////////////////////////////////////// // Doors Menu /////////////////////////////////////////////////////////////////////// diff --git a/mods/themes/luciano_blocktronics/BBSADD.ANS b/mods/themes/luciano_blocktronics/BBSADD.ANS new file mode 100644 index 00000000..f341f486 Binary files /dev/null and b/mods/themes/luciano_blocktronics/BBSADD.ANS differ diff --git a/mods/themes/luciano_blocktronics/BBSLIST.ANS b/mods/themes/luciano_blocktronics/BBSLIST.ANS new file mode 100644 index 00000000..ec2974e9 Binary files /dev/null and b/mods/themes/luciano_blocktronics/BBSLIST.ANS differ diff --git a/mods/themes/luciano_blocktronics/theme.hjson b/mods/themes/luciano_blocktronics/theme.hjson index ac359ac8..2bb2ab4f 100644 --- a/mods/themes/luciano_blocktronics/theme.hjson +++ b/mods/themes/luciano_blocktronics/theme.hjson @@ -243,6 +243,43 @@ } } + bbsList: { + 0: { + mci: { + VM1: { + height: 11 + width: 22 + focusTextStyle: first upper + } + TL2: { width: 28 } + TL3: { width: 28 } + TL4: { width: 28 } + TL5: { width: 28 } + TL6: { width: 28 } + TL7: { width: 28 } + TL8: { width: 28 } + TL9: { width: 28 } + } + }, + 1: { + mci: { + ET1: { width: 32 } + ET2: { width: 32 } + ET3: { width: 32 } + ET4: { width: 32 } + ET5: { width: 32 } + ET6: { width: 32 } + ET7: { width: 32 } + ET8: { width: 32 } + + TM17: { + focusTextStyle: first upper + } + } + } + } + + messageAreaViewPost: { 0: { mci: {