1414using System . Xml ;
1515
1616namespace Nabu . Network ;
17- public static class CommonUI { static string [ ] Phrases = [
18- //"👁️🚢👿",
19- "Assimilation in progress" ,
20- "Admiral! There be whales here!" ,
21- "Ay Sir, I'm working on it!" ,
22- "Hey Mr. 🦉" ,
23- "Standby for NABUfall" ,
24- "Your honor, I object to this preposterous poppycock" ,
25- "It works for us now, Comrade" ,
26- "Buy Pants" ,
27- "2 NABUs and a KayPro walk into a bar..." ,
28- "💣 0.015625 MEGA POWER 💣" ,
29- "9/10 Doctors would prefer not to endorse this product" ,
30- "NABU4Ever!" ,
31- "👸Beware the wrath of King NABU 👸" ,
32- "☎️ Please stay on the line, your call is important to us ☎️" ,
33- "🎵 Never gonna give you up. Never gonna let you down 🎵" ,
34- "Excuse me human, can I interest you in this pamphlet on the kingdom of NABU?"
35- ] ; public static string Phrase ( ) => Phrases [ Random . Shared . Next ( 0 , Phrases . Length ) ] ; public static byte [ ] BlankIconPattern { get ; } = [
36- //0xFF,0x80,0xA2,0xB2,0xAA,0xA6,0xA2,0x80,
37- //0x80,0xBE,0xA2,0xAC,0xA2,0xBE,0x80,0xFF,
38- //0xFF,0x01,0x7D,0x45,0x7D,0x45,0x45,0x01,
39- //0x01,0x45,0x45,0x45,0x45,0x7D,0x01,0xFF 0xE0 , 0xC0 , 0xC0 , 0x80 , 0xFF , 0x6D , 0x2A , 0x0A , 0x48 , 0x6A , 0xFF , 0x80 , 0xC0 , 0xC0 , 0xE0 , 0xE0 ,
40- 0x07 , 0x03 , 0x03 , 0x01 , 0xFF , 0x9A , 0xAA , 0x9A , 0xAA , 0x98 , 0xFF , 0x01 , 0x03 , 0x03 , 0x07 , 0x07 ] ; public static byte [ ] BlankIconColor { get ; } = [
41- //0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,
42- //0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,
43- //0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,
44- //0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F,0x0F 0x4F , 0x41 , 0x4E , 0x41 , 0xE1 , 0xE1 , 0xE1 , 0xE1 ,
45- 0xE1 , 0xE1 , 0xE1 , 0x41 , 0x4E , 0x41 , 0x4F , 0x41 , 0x4F , 0x41 , 0x4E , 0x41 , 0xE1 , 0xE1 , 0xE1 , 0xE1 , 0xE1 , 0xE1 , 0xE1 , 0x41 , 0x4E , 0x41 , 0x4F , 0x41 ] ;
46- public static string BlankIconClrStr { get ; } = Convert . ToBase64String ( BlankIconColor ) ;
47- public static string BlankIconPtrnStr { get ; } = Convert . ToBase64String ( BlankIconPattern ) ; }
17+
4818public partial class NabuNetwork : NabuBase , INabuNetwork
4919{
5020 public const string HeadlessSourceName = "headless" ;
@@ -287,8 +257,8 @@ await Task.Run(async () =>
287257 DefaultPatches ,
288258 source . Author ?? Empty ,
289259 source . Description ?? Empty ,
290- CommonUI . BlankIconClrStr ,
291- CommonUI . BlankIconPtrnStr ,
260+ Settings . DefaultIconColor ?? CommonUI . BlankIconClrStr ,
261+ Settings . DefaultIconPattern ?? CommonUI . BlankIconPtrnStr ,
292262 isPakMenu : true
293263 ) ) ;
294264 }
@@ -305,8 +275,8 @@ await Task.Run(async () =>
305275 DefaultPatches ,
306276 source . Author ?? Empty ,
307277 source . Description ?? Empty ,
308- CommonUI . BlankIconClrStr ,
309- CommonUI . BlankIconPtrnStr
278+ Settings . DefaultIconColor ?? CommonUI . BlankIconClrStr ,
279+ Settings . DefaultIconPattern ?? CommonUI . BlankIconPtrnStr
310280 ) ) ;
311281 }
312282
@@ -360,8 +330,8 @@ await Task.Run(async () =>
360330 DefaultPatches ,
361331 source . Author ?? Empty ,
362332 Empty ,
363- CommonUI . BlankIconClrStr ,
364- CommonUI . BlankIconPtrnStr
333+ Settings . DefaultIconColor ?? CommonUI . BlankIconClrStr ,
334+ Settings . DefaultIconPattern ?? CommonUI . BlankIconPtrnStr
365335 ) ) ;
366336 }
367337
@@ -391,8 +361,8 @@ from program in from p in package.Programs select p with { }
391361 DefaultPatches ,
392362 program . Author ?? source . Author ?? Empty ,
393363 program . Description ?? Empty ,
394- program . TileColor ?? CommonUI . BlankIconClrStr ,
395- program . TilePattern ?? CommonUI . BlankIconPtrnStr ,
364+ Settings . DefaultIconColor ?? CommonUI . BlankIconClrStr ,
365+ Settings . DefaultIconPattern ?? CommonUI . BlankIconPtrnStr ,
396366 options : program . Options
397367 )
398368 ) ;
0 commit comments