From 60758e0f34c8ce6dc6bd6774bd9233e1c1797682 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 4 Oct 2015 22:04:56 -0600 Subject: [PATCH] * WIP on theme by Luciano Ayres * %TL for area name vs MA which is to become "default" message area --- core/fse.js | 7 +++++++ mods/menu.hjson | 2 +- mods/themes/luciano_blocktronics/MNUPRMT.ANS | Bin 204 -> 285 bytes mods/themes/luciano_blocktronics/MSGBODY.ANS | Bin 0 -> 177 bytes mods/themes/luciano_blocktronics/MSGEFTR.ANS | Bin 0 -> 254 bytes mods/themes/luciano_blocktronics/MSGEHDR.ANS | Bin 0 -> 1574 bytes mods/themes/luciano_blocktronics/MSGVFTR.ANS | Bin 0 -> 217 bytes mods/themes/luciano_blocktronics/MSGVHDR.ANS | Bin 0 -> 1608 bytes 8 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 mods/themes/luciano_blocktronics/MSGBODY.ANS create mode 100644 mods/themes/luciano_blocktronics/MSGEFTR.ANS create mode 100644 mods/themes/luciano_blocktronics/MSGEHDR.ANS create mode 100644 mods/themes/luciano_blocktronics/MSGVFTR.ANS create mode 100644 mods/themes/luciano_blocktronics/MSGVHDR.ANS diff --git a/core/fse.js b/core/fse.js index bf775609..d9081fc0 100644 --- a/core/fse.js +++ b/core/fse.js @@ -34,6 +34,7 @@ exports.moduleInfo = { TL1 - From TL2 - To TL3 - Subject + TL4 - Area name TL5 - Date/Time (TODO: format) TL6 - Message number @@ -62,6 +63,7 @@ var MCICodeIds = { From : 1, To : 2, Subject : 3, + AreaName : 4, DateTime : 5, MsgNum : 6, @@ -169,6 +171,7 @@ function FullScreenEditorModule(options) { from : vc.getView(1), to : vc.getView(2), subject : vc.getView(3), + areaName : vc.getView(4), dateTime : vc.getView(5), msgNum : vc.getView(7), @@ -514,6 +517,9 @@ function FullScreenEditorModule(options) { } ], function complete(err) { + if(err) { + console.error(err) + } cb(err); } ); @@ -575,6 +581,7 @@ function FullScreenEditorModule(options) { setHeaderText(MCICodeIds.ViewModeHeader.From, self.message.fromUserName); setHeaderText(MCICodeIds.ViewModeHeader.To, self.message.toUserName); setHeaderText(MCICodeIds.ViewModeHeader.Subject, self.message.subject); + setHeaderText(MCICodeIds.ViewModeHeader.AreaName, self.messageAreaName); setHeaderText(MCICodeIds.ViewModeHeader.DateTime, moment(self.message.modTimestamp).format(self.client.currentTheme.helpers.getDateTimeFormat())); setHeaderText(MCICodeIds.ViewModeHeader.MsgNum, (self.messageIndex + 1).toString()); setHeaderText(MCICodeIds.ViewModeHeader.MsgTotal, self.messageTotal.toString()); diff --git a/mods/menu.hjson b/mods/menu.hjson index 12d9cccb..aaa83b04 100644 --- a/mods/menu.hjson +++ b/mods/menu.hjson @@ -662,7 +662,7 @@ "*" : [ { value: { 1: 0 } - action: @method:prevMessage" + action: @method:prevMessage } { value: { 1: 1 } diff --git a/mods/themes/luciano_blocktronics/MNUPRMT.ANS b/mods/themes/luciano_blocktronics/MNUPRMT.ANS index 065a0ec9f795f19da36f4115cc7c1829e8a10205..0e7411163b4558d2ab9bed1b8e4f58460789561e 100644 GIT binary patch literal 285 zcmb1+Hn27^ur@ZxRgjK0v^Fu%y(0}0GPgE1%Dr<3A_$Z>&%G}l4HcD+hH`Hv#WuD0`-8AfuX6Pfq}^!1_lO3#sCH;APoeMR{?n5*g>!pkKcZETjC3{nZC e^K)|(^HP9v*2V_8Rud;Avl>_$nR`$Cp$Y&;^%f!k diff --git a/mods/themes/luciano_blocktronics/MSGBODY.ANS b/mods/themes/luciano_blocktronics/MSGBODY.ANS new file mode 100644 index 0000000000000000000000000000000000000000..78771ade371cdfb9432bd6d994388e43ca490783 GIT binary patch literal 177 zcmb1+Hn27^ur@Z&RrL)q9R=xVW3yb>U}tHdJdg$C8-kR4hw*b$^Gd;D z=D9$n<{)(-MaD+Cx%nxnP}Not5!DbMBLyH6Xp&K`1IVacppYRimsGH0sI#kqfdch_ kk%6J9p@D%(Edv7sBVzyqBaj9HVNWMtg)nzV2oFvI0NVRC9smFU literal 0 HcmV?d00001 diff --git a/mods/themes/luciano_blocktronics/MSGEHDR.ANS b/mods/themes/luciano_blocktronics/MSGEHDR.ANS new file mode 100644 index 0000000000000000000000000000000000000000..e12ad8e1d82b117a2f514befd91b8a9d63a9dee9 GIT binary patch literal 1574 zcmb_cJ#X7E5OszOHQ*^*y=ci?ic&13o?Ig+3M4>)rdd2?NH;ER|5A6ue@6oNSNh(4 zP_h#Q8LENe9q;SCJ94=T>w4XWbraIik6#}0u-t{T+|~6K3(uh&4Y12Jsw%GfugqoT z9&#c+!(!g|8nC)p}vtZR;jTBBgSJ25@(3|7K27S zY|vC7BNuU;xDjI3kNHLtHNFEn96aA~eagQ0$?zF)?>U^x03bRAtjf=1dNCU(xfSuW z9wp!LszdtyqJs^5*ukd2!>tqsmOEZXUam>GEQ*B~*ZaLC(6&z@`2i4uP7UUh51kVM zZ~}#cK{YIma+y}6!x}m%#F#4dXgp=b%P6F9qNNBMZ9G_cF;^DVk^AhWvH(5=P@brU zfrh8rTphU^ZSEQyy-$24k+esRlJn`;^AiEtn}LLQDO#nVj`SfjP%|So@`~bFv|II# uA25FWzWK4e34t;G(-%X16|Up;-}Bk*?CgH_VJ6?jw=Z|q9R+EixUpHTs)w(kbTm+bnYFPwlxL7D9c^Oa z3=%dr%2f^VF$1awYS#ynM!5<=0drn1sbI%YXIBFQ1?mAK14C0o0|TQ71_lO3#sCIJ TAPoe&{DQ9GZfMO9sBO>HJCdT&gz#h^RK;M3A?qXvH%*BRA z2%1aMYK;+RWS&`2p&L@mtO)#pJ)|oL;(z(|V+-HJ?`mmE;;e;Hc0hkv+5j7-LL>o4 z(QL%zX#bQ0Zi>=Fin}8NN)E(|qhf@u>Z}2Y=GX=$Ig$wh_{IP}o&k(VLx8aYoEH;l zGCT4r7LG?z3M^q4eV3{eKThh%O~4_6^W~JGzlkw+sksCruE!iCY{>dI290?5V5mSw zF5-0KCWu8B>rEtTeh2jY?DdZOQ}!iJE}sGSnIouP0A#0tUHO^aUfhk7+KPDIkCN|r zH6T5lO|U}@C)ibZ_$!5h^?^Slf38`(Y>JH-*H2GYK*v6Z>$#qqF9 zz7|lPsB)&`skSsn;l{0p#;z8{%T`A8A~o-Re!nAXdst8qv+ALVEI*Jt=vWR1d1vu( y+JE;C9{_y)<@(#ryAYV;Kdl(rP1wcVuNRBO#l`2v%Z030AKrdyZr@+4RQKOB0VVAK literal 0 HcmV?d00001