diff --git a/art/themes/luciano_blocktronics/theme.hjson b/art/themes/luciano_blocktronics/theme.hjson index a9e2bdc3..79aff03b 100644 --- a/art/themes/luciano_blocktronics/theme.hjson +++ b/art/themes/luciano_blocktronics/theme.hjson @@ -255,12 +255,12 @@ mainInfoFormat10: "|00|11{now} {currentUserName} |08- |03Prv|08:|11{newPrivateMail} |03Addr|08:|11{newMessagesAddrTo} |08- |03Avail|08:|11{availIndicator} |03Vis|08:|11{visIndicator}" mainInfoFormat11: "|00|10{callsToday:>5}" mainInfoFormat12: "|00|10{postsToday:>5}" - mainInfoFormat13: "|00|10{uploadsToday:>2} |08/ |10{uploadBytesToday!sizeWithoutAbbr} |02{uploadBytesToday!sizeAbbr}" - mainInfoFormat14: "|00|10{downloadsToday:>2} |08/ |10{downloadBytesToday!sizeWithoutAbbr} |02{downloadBytesToday!sizeAbbr}" + mainInfoFormat13: "|00|10{uploadsToday:>2} |08/ |10{uploadBytesToday!sizeWithoutAbbr:>3} |02{uploadBytesToday!sizeAbbr}" + mainInfoFormat14: "|00|10{downloadsToday:>2} |08/ |10{downloadBytesToday!sizeWithoutAbbr:>3} |02{downloadBytesToday!sizeAbbr}" mainInfoFormat15: "|00|10{lastLoginUserName:<26} |02{lastLogin}" - mainInfoFormat16: "|00|10{newUsersToday}" + mainInfoFormat16: "|00|10{newUsersToday:>5}" mainInfoFormat17: "|00|10{freeMemoryBytes!sizeWithoutAbbr} |02{freeMemoryBytes!sizeAbbr} free |08/ |10{totalMemoryBytes!sizeWithoutAbbr} |02{totalMemoryBytes!sizeAbbr}" mainInfoFormat18: "|00|10{systemCurrentLoad} |02% |08/ |10{systemAvgLoad} |02load avg|08." @@ -269,7 +269,7 @@ mainInfoFormat20: "|00|10{totalCalls:>5}" mainInfoFormat21: "|00|10{totalPosts:>7}" mainInfoFormat22: "|00|10{totalUsers:>5}" - mainInfoFormat23: "|00|10{totalFiles} |08/ |10{totalFileBytes!sizeWithoutAbbr} |02{totalFileBytes!sizeAbbr}" + mainInfoFormat23: "|00|10{totalFiles:>4} |08/ |10{totalFileBytes!sizeWithoutAbbr:>4} |02{totalFileBytes!sizeAbbr}" quickLogLevel: info quickLogLevelIndicators: { @@ -293,6 +293,9 @@ } 0: { mci: { + TL16: { + fillChar: . + } TL17: { width: 23 } TL18: { width: 23 } TL19: { width: 14 } diff --git a/art/themes/luciano_blocktronics/wfc.ans b/art/themes/luciano_blocktronics/wfc.ans index 198ba676..2333e610 100644 Binary files a/art/themes/luciano_blocktronics/wfc.ans and b/art/themes/luciano_blocktronics/wfc.ans differ diff --git a/core/user.js b/core/user.js index 0206e868..e5063608 100644 --- a/core/user.js +++ b/core/user.js @@ -136,6 +136,14 @@ module.exports = class User { return (this.statusFlags & User.StatusFlags.NotVisible) == 0; } + setAvailability(available) { + if (available) { + this.statusFlags &= ~User.StatusFlags.NotAvailable; + } else { + this.statusFlags |= User.StatusFlags.NotAvailable; + } + } + setVisibility(visible) { if (visible) { this.statusFlags &= ~User.StatusFlags.NotVisible; diff --git a/core/wfc.js b/core/wfc.js index aaf6bce8..bc87f6f4 100644 --- a/core/wfc.js +++ b/core/wfc.js @@ -51,6 +51,19 @@ exports.getModule = class WaitingForCallerModule extends MenuModule { if (!this.config.acs.includes('SC')) { this.config.acs = 'SC' + this.config.acs; // secure connection at the very least } + + this.menuMethods = { + toggleAvailable : (formData, extraArgs, cb) => { + const avail = this.client.user.isAvailable(); + this.client.user.setAvailability(!avail); + return this._refreshAll(cb); + }, + toggleVisible : (formData, extraArgs, cb) => { + const visible = this.client.user.isVisible(); + this.client.user.setVisibility(!visible); + return this._refreshAll(cb); + }, + } } // initSequence -> MenuModule.displayArtAndPrepViewController() (make common)