Skip to content

Commit f5e00aa

Browse files
committed
implemented message
removed unused options from clock and message updated readme removed NeoMatrix font from font options
1 parent 0f8912d commit f5e00aa

3 files changed

Lines changed: 23 additions & 30 deletions

File tree

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
8383
- Preserve Logo Color
8484
- Scale
8585
- Position
86+
- Clock
87+
- Horizontal/Vertical
88+
- 12/24 Hour Format
89+
- Scale
90+
- Position
91+
- Message
92+
- Horizontal
93+
- Text
94+
- Scale
95+
- Position
8696
- Other Customizations
8797
- Codes (these will be shown as decrypted Messages)
8898

@@ -101,8 +111,7 @@ This is a highly customizable animated Matrix wallpaper for Wallpaper Engine (We
101111
## TODO:
102112
- Option for disabling initial fall animation
103113
- Multiple drops (customizable count)
104-
- Clock support
105-
- Big Message support
114+
- Small Clock and Messsage
106115
- [Lively](https://github.com/rocksdanister/lively) Compatible version
107116
- Mobile support
108117

index.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,14 +374,22 @@ window.onload = function () {
374374
break;
375375
}
376376
}
377+
378+
switch (options.ui_message_message) {
379+
case "3": {
380+
let position = [0, 5 * options.ui_message_scale];
381+
drawTextOnMask(options.ui_message_text, position[0] + options.ui_message_positionX, position[1] + options.ui_message_positionY, options.ui_message_scale);
382+
break;
383+
}
384+
}
377385
}
378386

379387
function drawTextOnMask(text, x, y, scale) {
380388
mask.font = options.ui_font_size * 5 * scale + "px neo-matrix";
381389
mask.fillStyle = "#FFF";
382390
lines = text.split("\n");
383391
for (let i = 0; i < lines.length; i++) {
384-
mask.fillText(lines[i], options.ui_font_size * x - font_fraction, options.ui_font_size * y + font_fraction + (6 * i * options.ui_font_size * options.ui_clock_scale));
392+
mask.fillText(lines[i], options.ui_font_size * x - font_fraction, options.ui_font_size * y + font_fraction + (6 * i * options.ui_font_size * scale));
385393
}
386394
}
387395

project.json

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -187,19 +187,11 @@
187187
"value" : "0"
188188
},
189189
{
190-
"label" : "Small Horizontal",
191-
"value" : "1"
192-
},
193-
{
194-
"label" : "Small Vertical",
195-
"value" : "2"
196-
},
197-
{
198-
"label" : "Big Horizontal",
190+
"label" : "Horizontal",
199191
"value" : "3"
200192
},
201193
{
202-
"label" : "Big Vertical",
194+
"label" : "Vertical",
203195
"value" : "4"
204196
}
205197
],
@@ -331,10 +323,6 @@
331323
{
332324
"label" : "Courier Bold",
333325
"value" : "3"
334-
},
335-
{
336-
"label" : "Neo Matrix",
337-
"value" : "4"
338326
}
339327
],
340328
"order" : 113,
@@ -530,20 +518,8 @@
530518
"value" : "0"
531519
},
532520
{
533-
"label" : "Small Horizontal",
534-
"value" : "1"
535-
},
536-
{
537-
"label" : "Small Vertical",
538-
"value" : "2"
539-
},
540-
{
541-
"label" : "Big Horizontal",
521+
"label" : "Horizontal",
542522
"value" : "3"
543-
},
544-
{
545-
"label" : "Big Vertical",
546-
"value" : "4"
547523
}
548524
],
549525
"order" : 134,

0 commit comments

Comments
 (0)