Advertisement
Simlor_GER

SimSoft Yellow (english) - Desktop

Jun 11th, 2017
3,494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.08 KB | None | 0 0
  1. --SimSoft Yellow - Copyright by Simlor (http://www.computercraft.info/forums2/index.php?/user/55655-simlor/)
  2.  
  3. --Desktop
  4.  
  5. BC(1)
  6. Clear()
  7.  
  8. festSeite = 1
  9.  
  10. file = fs.open("SimSoft/Data/SystemColor","r")
  11. local fileData = {}
  12. local line = file.readLine()
  13. repeat
  14. table.insert(fileData,line)
  15. line = file.readLine()
  16. until line == nil
  17. file.close()
  18.  
  19. SystemColor = fileData[3]
  20.  
  21. SystemColor = ((SystemColor-1)+1)
  22.  
  23.  
  24. --Funktionen
  25.  
  26. function SideBarANZEIGE(seite)
  27.  
  28. seite = seite
  29.  
  30. w, h = term.getSize()
  31.  
  32. BC(SystemColor)
  33.  
  34. wC = 1
  35. hC = 1
  36.  
  37. while true do
  38.  
  39. wC = (wC+1)
  40.  
  41. CP(wC, hC)
  42. BC(SystemColor)
  43. write(" ")
  44.  
  45. if wC == 14 then
  46. if hC == (h) then
  47. break
  48. else
  49. hC = (hC+1)
  50. wC = 1
  51. end
  52. end
  53.  
  54. end
  55.  
  56. CP(3, (h-1))
  57. TC(128)
  58. print("< >")
  59.  
  60.  
  61. --SappS
  62.  
  63. AppListe = nil
  64. AppListe = {}
  65.  
  66. AppListeRoh = nil
  67. AppListeRoh = fs.list("SimSoft/SappS")
  68.  
  69. C = 0
  70.  
  71. AppC = 0
  72.  
  73. while true do
  74.  
  75. C = (C+1)
  76.  
  77. if AppListeRoh[C] == nil then
  78. C = (C-1)
  79.  
  80. break
  81. else
  82. GibtEsSappS = fs.exists("SimSoft/SappS/"..AppListeRoh[C].."/SappS")
  83.  
  84. if GibtEsSappS == true then
  85.  
  86. file = fs.open("SimSoft/SappS/"..AppListeRoh[C].."/SappS","r")
  87. local fileData = {}
  88. local line = file.readLine()
  89. repeat
  90. table.insert(fileData,line)
  91. line = file.readLine()
  92. until line == nil
  93. file.close()
  94.  
  95. PathOfApp = fileData[2]
  96. AppName = fileData[3]
  97.  
  98. GibtEsMainApp = fs.exists(PathOfApp)
  99.  
  100. if GibtEsMainApp == true and not (AppName == nil) and not (AppName == "") then
  101.  
  102. table.insert(AppListe, ("SimSoft/SappS/"..AppListeRoh[C]))
  103. table.insert(AppListe, PathOfApp)
  104. table.insert(AppListe, AppName)
  105.  
  106. AppC = (AppC+1)
  107.  
  108. end
  109.  
  110. end
  111. end
  112. end
  113.  
  114. -- 14
  115.  
  116. if AppC <= 15 then
  117. MAXseiten = 1
  118. elseif AppC <= 30 then
  119. MAXseiten = 2
  120. elseif AppC <= 45 then
  121. MAXseiten = 3
  122. elseif AppC <= 60 then
  123. MAXseiten = 4
  124. elseif AppC <= 75 then
  125. MAXseiten = 5
  126. elseif AppC <= 90 then
  127. MAXseiten = 6
  128. elseif AppC <= 105 then
  129. MAXseiten = 7
  130. elseif AppC <= 120 then
  131. MAXseiten = 8
  132. elseif AppC >= 135 then
  133. MAXseiten = 9
  134. end
  135.  
  136. C = 0
  137.  
  138. while true do
  139.  
  140. C = (C+1)
  141.  
  142. if AppC <= (15*C) then
  143. MAXseiten = C
  144. break
  145. end
  146.  
  147.  
  148. end
  149.  
  150.  
  151. CP(7, (h-1))
  152. TC(1)
  153.  
  154. print(seite.."/"..MAXseiten)
  155.  
  156.  
  157. if seite == 1 then
  158. seitenC = 0
  159. seitenCfest = 0
  160. else
  161. seitenC = (15*(seite-1))
  162. seitenCfest = (15*(seite-1))
  163. end
  164.  
  165.  
  166. C = 0
  167.  
  168. while true do
  169.  
  170. seitenC = (seitenC+1)
  171. C = (C+1)
  172.  
  173. if C <= AppC then
  174.  
  175. TC(1)
  176. CP(4, (C+1))
  177.  
  178. print(AppListe[(seitenC*3)])
  179.  
  180. end
  181.  
  182. if C == 15 or (C+seitenCfest) >= AppC then
  183. break
  184. end
  185.  
  186.  
  187. end
  188.  
  189. end
  190.  
  191.  
  192. function SimSoftLineANZEIGE()
  193.  
  194.  
  195. w, h = term.getSize()
  196.  
  197.  
  198. wC = 0
  199. hC = 0
  200.  
  201. while true do
  202.  
  203. wC = (wC+1)
  204.  
  205. BC(SystemColor)
  206.  
  207. CP(((w-3)+wC), (hC))
  208.  
  209. write(" ")
  210.  
  211. if wC == 3 then
  212. if hC == h then
  213. break
  214. else
  215. wC = 0
  216. hC = (hC+1)
  217. end
  218. end
  219.  
  220. end
  221.  
  222. CP((w-1), 2)
  223. BC(SystemColor)
  224. TC(1)
  225. write("=")
  226.  
  227. CP((w-1), (h-1))
  228. BC(SystemColor)
  229. TC(1)
  230. write("=")
  231.  
  232. CP(1,1)
  233.  
  234. end
  235.  
  236. function HintergrundBildANZEIGE()
  237.  
  238. w, h = term.getSize()
  239.  
  240. file = fs.open("SimSoft/Data/BackgroundConfig","r")
  241. local fileData = {}
  242. local line = file.readLine()
  243. repeat
  244. table.insert(fileData,line)
  245. line = file.readLine()
  246. until line == nil
  247. file.close()
  248.  
  249. IsBackground = fileData[3]
  250.  
  251. if IsBackground == true or IsBackground == "true" then
  252.  
  253. _Background = paintutils.loadImage("SimSoft/Data/Background")
  254. paintutils.drawImage(_Background,15,(h-17))
  255.  
  256. end
  257.  
  258. end
  259.  
  260. function LeftAppANZEIGE(x,y)
  261.  
  262. w, h = term.getSize()
  263.  
  264. TC(1)
  265.  
  266. if (h-6) >= y then
  267.  
  268. BC(128)
  269.  
  270. CP(x,y)
  271. print(" ")
  272. CP(x,y)
  273. print(" "..AppListe[(((y-1)+seitenCfest)*3)])
  274.  
  275. BC(256)
  276.  
  277. CP(x,(y+1))
  278. print(" ")
  279. CP(x,(y+2))
  280. print(" Run ")
  281. CP(x,(y+3))
  282. print(" Run with Arg. ")
  283. CP(x,(y+4))
  284. print(" Delete ")
  285. CP(x,(y+5))
  286. print(" ")
  287.  
  288. openUnten = "unten"
  289.  
  290. elseif (h-6) < y then
  291.  
  292. BC(128)
  293.  
  294. CP(x,y)
  295. print(" ")
  296. CP(x,y)
  297. print(" "..AppListe[(((y-1)+seitenCfest)*3)])
  298.  
  299. BC(256)
  300.  
  301. CP(x,(y-1))
  302. print(" ")
  303. CP(x,(y-2))
  304. print(" Run ")
  305. CP(x,(y-3))
  306. print(" Run with Arg. ")
  307. CP(x,(y-4))
  308. print(" Delete ")
  309. CP(x,(y-5))
  310. print(" ")
  311.  
  312. openUnten = "oben"
  313.  
  314. end
  315. end
  316.  
  317. function SimSoftOverviewANZEIGE()
  318.  
  319. w, h = term.getSize()
  320.  
  321.  
  322. wC = 0
  323. hC = 0
  324.  
  325. while true do
  326.  
  327. wC = (wC+1)
  328.  
  329. BC(SystemColor)
  330.  
  331. CP(((w-18)+wC), (hC))
  332.  
  333. write(" ")
  334.  
  335. if wC == 3 then
  336. if hC == h then
  337. break
  338. else
  339. wC = 0
  340. hC = (hC+1)
  341. end
  342. end
  343.  
  344. end
  345.  
  346. wC = 0
  347. hC = 0
  348.  
  349. while true do
  350.  
  351. wC = (wC+1)
  352.  
  353. BC(SystemColor)
  354.  
  355. CP(((w-15)+wC), (hC))
  356.  
  357. write(" ")
  358.  
  359. if wC == 3 then
  360. if hC == h then
  361. break
  362. else
  363. wC = 0
  364. hC = (hC+1)
  365. end
  366. end
  367.  
  368. end
  369.  
  370. CP((w-16), 2)
  371. BC(SystemColor)
  372. TC(1)
  373. write("<")
  374.  
  375. CP((w-16), (h-1))
  376. BC(SystemColor)
  377. TC(1)
  378. write("<")
  379.  
  380.  
  381. TC(1)
  382. BC(1)
  383. CP((w-17), 4)
  384. write(" ")
  385. CP((w-17), 5)
  386. write(" ")
  387. CP((w-17), 6)
  388. write(" ")
  389.  
  390. CP((w-15), 5)
  391. TC(SystemColor)
  392. write("SimSoft Yellow")
  393.  
  394. --
  395.  
  396. BC(SystemColor)
  397. TC(1)
  398.  
  399. CP((w-9), 8)
  400. write("Settings")
  401.  
  402. CP((w-12), 9)
  403. write("System Info")
  404.  
  405. CP((w-10), 10)
  406. write("App Store")
  407.  
  408. CP((w-6), 11)
  409. write("Shell")
  410.  
  411. CP((w-7), 12)
  412. write("Update")
  413.  
  414. CP((w-7), 13)
  415. write("Reboot")
  416.  
  417. CP((w-9), 14)
  418. write("Shutdown")
  419.  
  420. end
  421.  
  422. function SystemInfoANZEIGE()
  423.  
  424. BC(1)
  425. Clear()
  426.  
  427. wC = 0
  428. hC = 1
  429.  
  430. while true do
  431.  
  432. wC = (wC+1)
  433.  
  434. CP(wC, hC)
  435. BC(SystemColor)
  436. write(" ")
  437.  
  438. if wC == w then
  439. if hC == 3 then
  440. break
  441. else
  442. hC = (hC+1)
  443. wC = 0
  444. end
  445. end
  446.  
  447. end
  448.  
  449. anzeige = "System Info"
  450.  
  451. TC(1)
  452. CP(((w/2)-((#anzeige)/2)+1),2)
  453.  
  454. print(anzeige)
  455.  
  456.  
  457. BC(SystemColor)
  458. TC(1)
  459.  
  460. CP((w-11), (h-3))
  461. print(" ")
  462. CP((w-11), (h-2))
  463. print(" Desktop ")
  464. CP((w-11), (h-1))
  465. print(" ")
  466.  
  467.  
  468. file = fs.open("SimSoft/Data/Version","r")
  469. local fileData = {}
  470. local line = file.readLine()
  471. repeat
  472. table.insert(fileData,line)
  473. line = file.readLine()
  474. until line == nil
  475. file.close()
  476.  
  477. SystemVersion = fileData[3]
  478. SystemLanguage = fileData[4]
  479.  
  480.  
  481. BC(1)
  482.  
  483. TC(128)
  484. CP(4,6)
  485. write("Version - ")
  486. TC(SystemColor)
  487. print(SystemVersion)
  488.  
  489. TC(128)
  490. CP(4,8)
  491. write("Language - ")
  492. TC(SystemColor)
  493. print(SystemLanguage)
  494.  
  495. TC(128)
  496. CP(4,10)
  497. write("Copyright - ")
  498. TC(SystemColor)
  499. print("simlor")
  500.  
  501. TC(128)
  502. CP(4,12)
  503. write("PC-ID - ")
  504. TC(SystemColor)
  505. print(os.getComputerID())
  506.  
  507. TC(128)
  508. CP(4,14)
  509. write("Forum - ")
  510. TC(SystemColor)
  511. print("https://goo.gl/Mo02cO")
  512.  
  513.  
  514.  
  515.  
  516. end
  517.  
  518. function Settings_2_ANZEIGE()
  519.  
  520. file = fs.open("SimSoft/Data/BackgroundConfig","r")
  521. local fileData = {}
  522. local line = file.readLine()
  523. repeat
  524. table.insert(fileData,line)
  525. line = file.readLine()
  526. until line == nil
  527. file.close()
  528.  
  529. IsBackground = fileData[3]
  530.  
  531. file = fs.open("SimSoft/Data/UserData","r")
  532. local fileData = {}
  533. local line = file.readLine()
  534. repeat
  535. table.insert(fileData,line)
  536. line = file.readLine()
  537. until line == nil
  538. file.close()
  539.  
  540. OName = fileData[3]
  541. OPass = fileData[4]
  542. IsPass = fileData[5]
  543.  
  544. file = fs.open("SimSoft/Data/BackgroundConfig","r")
  545. local fileData = {}
  546. local line = file.readLine()
  547. repeat
  548. table.insert(fileData,line)
  549. line = file.readLine()
  550. until line == nil
  551. file.close()
  552.  
  553. IsDesktop = fileData[3]
  554.  
  555. if IsBackground == true or IsBackground == "true" then
  556.  
  557. CP(23,12)
  558.  
  559. BC(SystemColor)
  560. write(" ")
  561.  
  562. BC(128)
  563. print(" ")
  564.  
  565. else
  566.  
  567. CP(23,12)
  568.  
  569. BC(SystemColor)
  570. write(" ")
  571.  
  572. BC(128)
  573. print(" ")
  574.  
  575. end
  576.  
  577.  
  578. if IsPass == true or IsPass == "true" then
  579.  
  580. CP(10,14)
  581.  
  582. BC(SystemColor)
  583. write(" ")
  584.  
  585. BC(128)
  586. print(" ")
  587.  
  588. else
  589.  
  590. CP(10,14)
  591.  
  592. BC(SystemColor)
  593. write(" ")
  594.  
  595. BC(128)
  596. print(" ")
  597.  
  598. end
  599.  
  600. end
  601.  
  602. function LoadSettingsForColor()
  603. file = fs.open("SimSoft/Data/SystemColor","r")
  604. local fileData = {}
  605. local line = file.readLine()
  606. repeat
  607. table.insert(fileData,line)
  608. line = file.readLine()
  609. until line == nil
  610. file.close()
  611.  
  612. SystemColor = nil
  613. SystemColor = fileData[3]
  614. end
  615.  
  616. function SettingsANZEIGE()
  617.  
  618. BC(1)
  619. Clear()
  620.  
  621. wC = 0
  622. hC = 1
  623.  
  624. while true do
  625.  
  626. wC = (wC+1)
  627.  
  628. CP(wC, hC)
  629. BC(SystemColor)
  630. write(" ")
  631.  
  632. if wC == w then
  633. if hC == 3 then
  634. break
  635. else
  636. hC = (hC+1)
  637. wC = 0
  638. end
  639. end
  640.  
  641. end
  642.  
  643. anzeige = "Settings"
  644.  
  645. TC(1)
  646. CP(((w/2)-((#anzeige)/2)+1),2)
  647.  
  648. print(anzeige)
  649.  
  650.  
  651. BC(SystemColor)
  652. TC(1)
  653.  
  654. CP((w-11), (h-3))
  655. print(" ")
  656. CP((w-11), (h-2))
  657. print(" Desktop ")
  658. CP((w-11), (h-1))
  659. print(" ")
  660.  
  661.  
  662. BC(1)
  663.  
  664. TC(SystemColor)
  665. CP(4,6)
  666. write("Edit Username")
  667.  
  668. TC(SystemColor)
  669. CP(4,8)
  670. write("Edit Password")
  671.  
  672. TC(SystemColor)
  673. CP(4,10)
  674. write("Edit Desktop")
  675.  
  676. TC(128)
  677. CP(4,12)
  678. write("Desktop Background")
  679.  
  680. TC(128)
  681. CP(4,14)
  682. write("Login")
  683.  
  684. Settings_2_ANZEIGE()
  685.  
  686. BC(2)
  687. CP(4,(h-1))
  688. print(" ")
  689.  
  690. BC(4)
  691. CP(7,(h-1))
  692. print(" ")
  693.  
  694. BC(8)
  695. CP(10,(h-1))
  696. print(" ")
  697.  
  698. BC(16)
  699. CP(13,(h-1))
  700. print(" ")
  701.  
  702. BC(32)
  703. CP(16,(h-1))
  704. print(" ")
  705.  
  706. BC(64)
  707. CP(19,(h-1))
  708. print(" ")
  709.  
  710. BC(512)
  711. CP(4,(h-3))
  712. print(" ")
  713.  
  714. BC(1024)
  715. CP(7,(h-3))
  716. print(" ")
  717.  
  718. BC(2048)
  719. CP(10,(h-3))
  720. print(" ")
  721.  
  722. BC(4096)
  723. CP(13,(h-3))
  724. print(" ")
  725.  
  726. BC(8192)
  727. CP(16,(h-3))
  728. print(" ")
  729.  
  730. BC(16384)
  731. CP(19,(h-3))
  732. print(" ")
  733.  
  734. end
  735.  
  736. --Standertseting
  737. HintergrundBildANZEIGE()
  738. SideBarANZEIGE(festSeite)
  739. SimSoftLineANZEIGE()
  740.  
  741.  
  742. --System
  743.  
  744. w, h = term.getSize()
  745.  
  746. DeskEXIT = false
  747.  
  748. while true do
  749. event, side, x, y = os.pullEvent()
  750. if event == "mouse_click" then
  751.  
  752. if x >= (w-2) and x <= w and y >= 1 and y <= h and not (DeskEXIT == true) then
  753.  
  754. SimSoftOverviewANZEIGE()
  755.  
  756. while true do
  757. event, side, x, y = os.pullEvent()
  758. if event == "mouse_click" then
  759.  
  760. if x >= (w-9) and x <= (w-2) and y == 8 then -- Settings
  761.  
  762. SettingsANZEIGE()
  763.  
  764. while true do
  765. event, side, x, y = os.pullEvent()
  766. if event == "mouse_click" then
  767.  
  768.  
  769. SettingsANZEIGE()
  770.  
  771. --Farben
  772.  
  773. if x >= 4 and x <= 5 and y == (h-1) then
  774. local file = fs.open("SimSoft/Data/SystemColor", "w")
  775. file.writeLine("SimSoft System Color")
  776. file.writeLine("")
  777. file.writeLine("2.0")
  778. file.close()
  779.  
  780. SystemColor = 2.0
  781. Settings_2_ANZEIGE()
  782. SettingsANZEIGE()
  783.  
  784. end
  785.  
  786. if x >= 7 and x <= 8 and y == (h-1) then
  787. local file = fs.open("SimSoft/Data/SystemColor", "w")
  788. file.writeLine("SimSoft System Color")
  789. file.writeLine("")
  790. file.writeLine("4.0")
  791. file.close()
  792.  
  793. SystemColor = 4.0
  794. Settings_2_ANZEIGE()
  795. SettingsANZEIGE()
  796.  
  797. end
  798.  
  799. if x >= 10 and x <= 11 and y == (h-1) then
  800. local file = fs.open("SimSoft/Data/SystemColor", "w")
  801. file.writeLine("SimSoft System Color")
  802. file.writeLine("")
  803. file.writeLine("8.0")
  804. file.close()
  805.  
  806. SystemColor = 8.0
  807. Settings_2_ANZEIGE()
  808. SettingsANZEIGE()
  809.  
  810. end
  811.  
  812. if x >= 13 and x <= 14 and y == (h-1) then
  813. local file = fs.open("SimSoft/Data/SystemColor", "w")
  814. file.writeLine("SimSoft System Color")
  815. file.writeLine("")
  816. file.writeLine("16.0")
  817. file.close()
  818.  
  819. SystemColor = 16.0
  820. Settings_2_ANZEIGE()
  821. SettingsANZEIGE()
  822.  
  823. end
  824.  
  825. if x >= 16 and x <= 17 and y == (h-1) then
  826. local file = fs.open("SimSoft/Data/SystemColor", "w")
  827. file.writeLine("SimSoft System Color")
  828. file.writeLine("")
  829. file.writeLine("32.0")
  830. file.close()
  831.  
  832. SystemColor = 32.0
  833. Settings_2_ANZEIGE()
  834. SettingsANZEIGE()
  835.  
  836. end
  837.  
  838. if x >= 19 and x <= 20 and y == (h-1) then
  839. local file = fs.open("SimSoft/Data/SystemColor", "w")
  840. file.writeLine("SimSoft System Color")
  841. file.writeLine("")
  842. file.writeLine("64.0")
  843. file.close()
  844.  
  845. SystemColor = 64
  846. Settings_2_ANZEIGE()
  847. SettingsANZEIGE()
  848.  
  849. end
  850.  
  851. --zeile 2
  852.  
  853. if x >= 4 and x <= 5 and y == (h-3) then
  854. local file = fs.open("SimSoft/Data/SystemColor", "w")
  855. file.writeLine("SimSoft System Color")
  856. file.writeLine("")
  857. file.writeLine("512.0")
  858. file.close()
  859.  
  860. SystemColor = 512.0
  861. Settings_2_ANZEIGE()
  862. SettingsANZEIGE()
  863.  
  864. end
  865.  
  866. if x >= 7 and x <= 8 and y == (h-3) then
  867. local file = fs.open("SimSoft/Data/SystemColor", "w")
  868. file.writeLine("SimSoft System Color")
  869. file.writeLine("")
  870. file.writeLine("1024.0")
  871. file.close()
  872.  
  873. SystemColor = 1024.0
  874. Settings_2_ANZEIGE()
  875. SettingsANZEIGE()
  876.  
  877. end
  878.  
  879. if x >= 10 and x <= 11 and y == (h-3) then
  880. local file = fs.open("SimSoft/Data/SystemColor", "w")
  881. file.writeLine("SimSoft System Color")
  882. file.writeLine("")
  883. file.writeLine("2048.0")
  884. file.close()
  885.  
  886. SystemColor = 2048.0
  887. Settings_2_ANZEIGE()
  888. SettingsANZEIGE()
  889.  
  890. end
  891.  
  892. if x >= 13 and x <= 14 and y == (h-3) then
  893. local file = fs.open("SimSoft/Data/SystemColor", "w")
  894. file.writeLine("SimSoft System Color")
  895. file.writeLine("")
  896. file.writeLine("4096.0")
  897. file.close()
  898.  
  899. SystemColor = 4096.0
  900. Settings_2_ANZEIGE()
  901. SettingsANZEIGE()
  902.  
  903. end
  904.  
  905. if x >= 16 and x <= 17 and y == (h-3) then
  906. local file = fs.open("SimSoft/Data/SystemColor", "w")
  907. file.writeLine("SimSoft System Color")
  908. file.writeLine("")
  909. file.writeLine("8192.0")
  910. file.close()
  911.  
  912. SystemColor = 8192.0
  913. Settings_2_ANZEIGE()
  914. SettingsANZEIGE()
  915.  
  916. end
  917.  
  918. if x >= 19 and x <= 20 and y == (h-3) then
  919. local file = fs.open("SimSoft/Data/SystemColor", "w")
  920. file.writeLine("SimSoft System Color")
  921. file.writeLine("")
  922. file.writeLine("16384.0")
  923. file.close()
  924.  
  925. SystemColor = 16384.0
  926. Settings_2_ANZEIGE()
  927. SettingsANZEIGE()
  928.  
  929. end
  930.  
  931.  
  932. --Farben ENDE
  933.  
  934. if x >= 4 and x <= 16 and y == 6 then
  935. CP(4,6)
  936. BC(1)
  937. print(" ")
  938. CP(4,6)
  939. TC(SystemColor)
  940.  
  941. NewName = read()
  942.  
  943. CP(4,6)
  944. BC(1)
  945. print("Edit Username ")
  946.  
  947. local file = fs.open("SimSoft/Data/UserData", "w")
  948. file.writeLine("SimSoft System Version")
  949. file.writeLine("")
  950. file.writeLine(NewName)
  951. file.writeLine(OPass)
  952. file.writeLine(IsPass)
  953. file.close()
  954.  
  955. Settings_2_ANZEIGE()
  956.  
  957.  
  958. end
  959.  
  960. if x >= 4 and x <= 16 and y == 8 then
  961. CP(4,8)
  962. BC(1)
  963. print(" ")
  964. CP(4,8)
  965. TC(SystemColor)
  966.  
  967. NewPass = read()
  968.  
  969. CP(4,8)
  970. BC(1)
  971. print("Edit Password ")
  972.  
  973. local file = fs.open("SimSoft/Data/UserData", "w")
  974. file.writeLine("SimSoft System Version")
  975. file.writeLine("")
  976. file.writeLine(OName)
  977. file.writeLine(NewPass)
  978. file.writeLine(IsPass)
  979. file.close()
  980.  
  981. Settings_2_ANZEIGE()
  982.  
  983.  
  984. end
  985.  
  986. if x >= 4 and x <= 15 and y == 10 then
  987.  
  988. shell.run("paint SimSoft/Data/Background")
  989. SettingsANZEIGE()
  990.  
  991. end
  992.  
  993. if x >= 23 and x <= 25 and y == 12 then
  994.  
  995. if IsBackground == true or IsBackground == "true" then
  996.  
  997. local file = fs.open("SimSoft/Data/BackgroundConfig", "w")
  998. file.writeLine("SimSoft Background Config")
  999. file.writeLine("")
  1000. file.writeLine("false")
  1001. file.close()
  1002.  
  1003. Settings_2_ANZEIGE()
  1004.  
  1005. else
  1006.  
  1007. local file = fs.open("SimSoft/Data/BackgroundConfig", "w")
  1008. file.writeLine("SimSoft Background Config")
  1009. file.writeLine("")
  1010. file.writeLine("true")
  1011. file.close()
  1012.  
  1013. Settings_2_ANZEIGE()
  1014.  
  1015. end
  1016.  
  1017. end
  1018.  
  1019. if x >= 10 and x <= 12 and y == 14 then
  1020.  
  1021. if IsPass == true or IsPass == "true" then
  1022.  
  1023. local file = fs.open("SimSoft/Data/UserData", "w")
  1024. file.writeLine("SimSoft System Version")
  1025. file.writeLine("")
  1026. file.writeLine(OName)
  1027. file.writeLine(OPass)
  1028. file.writeLine("false")
  1029. file.close()
  1030.  
  1031. Settings_2_ANZEIGE()
  1032.  
  1033. else
  1034.  
  1035. local file = fs.open("SimSoft/Data/UserData", "w")
  1036. file.writeLine("SimSoft System Version")
  1037. file.writeLine("")
  1038. file.writeLine(OName)
  1039. file.writeLine(OPass)
  1040. file.writeLine("true")
  1041. file.close()
  1042.  
  1043. Settings_2_ANZEIGE()
  1044.  
  1045. end
  1046.  
  1047. end
  1048.  
  1049. if x >= (w-11) and x <= (w-1) and y >= (h-3) and y <= (h-1) then
  1050.  
  1051. break
  1052.  
  1053. end
  1054.  
  1055. end
  1056. end
  1057.  
  1058. break
  1059.  
  1060. end
  1061.  
  1062. if x >= (w-12) and x <= (w-2) and y == 9 then -- SystemInfo
  1063.  
  1064. SystemInfoANZEIGE()
  1065.  
  1066. while true do
  1067. event, side, x, y = os.pullEvent()
  1068. if event == "mouse_click" then
  1069.  
  1070.  
  1071. if x >= (w-11) and x <= (w-1) and y >= (h-3) and y <= (h-1) then
  1072.  
  1073. break
  1074.  
  1075. end
  1076.  
  1077. end
  1078. end
  1079.  
  1080. break
  1081.  
  1082. end
  1083.  
  1084. if x >= (w-10) and x <= (w-2) and y == 10 then -- AppStore
  1085.  
  1086. shell.run("SimSoft/System/AppStore")
  1087. break
  1088.  
  1089. end
  1090.  
  1091. if x >= (w-6) and x <= (w-2) and y == 11 then
  1092.  
  1093. BC(32768)
  1094. TC(1)
  1095. Clear()
  1096. print("Use 'exit' to return")
  1097. shell.run("shell")
  1098. break
  1099.  
  1100. end
  1101.  
  1102. if x >= (w-7) and x <= (w-2) and y == 12 then
  1103.  
  1104. shell.run("SimSoft/System/Update")
  1105. break
  1106.  
  1107. end
  1108.  
  1109. if x >= (w-7) and x <= (w-2) and y == 13 then
  1110.  
  1111. os.reboot()
  1112.  
  1113. end
  1114.  
  1115. if x >= (w-9) and x <= (w-2) and y == 14 then
  1116.  
  1117. os.shutdown()
  1118.  
  1119. end
  1120.  
  1121. if not (x >= (w-17) and x <= w and y >= 1 and y <= h) then
  1122. break
  1123. end
  1124.  
  1125. end
  1126. end
  1127.  
  1128. DeskEXIT = true
  1129.  
  1130. end
  1131.  
  1132. if x >= 4 and x <= 12 and y >= 2 and y <= (h-3) and not (DeskEXIT == true) then
  1133.  
  1134. if side == 1 then
  1135.  
  1136. if not (((y-1)+seitenCfest) > AppC) then
  1137.  
  1138. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-1)]
  1139.  
  1140. shell.run(GoForProgram)
  1141.  
  1142. DeskEXIT = true
  1143.  
  1144. end
  1145. end
  1146.  
  1147. if side == 2 then
  1148.  
  1149. if not (((y-1)+seitenCfest) > AppC) then
  1150.  
  1151. LeftAppANZEIGE(x,y)
  1152.  
  1153. while true do
  1154. event, side, xS, yS = os.pullEvent()
  1155. if event == "mouse_click" then
  1156.  
  1157. if openUnten == "unten" then
  1158.  
  1159. if xS >= (x+1) and xS <= (x+13) and yS == (y+2) then
  1160.  
  1161. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-1)]
  1162.  
  1163. shell.run(GoForProgram)
  1164.  
  1165. break
  1166.  
  1167. end
  1168.  
  1169. if xS >= (x+1) and xS <= (x+13) and yS == (y+3) then
  1170.  
  1171. BC(256)
  1172. TC(1)
  1173. CP((x+1),(y+3))
  1174. print(" ")
  1175. CP((x+1),(y+3))
  1176. runWitchArg = read()
  1177.  
  1178. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-1)]
  1179.  
  1180. shell.run(GoForProgram.." "..runWitchArg)
  1181.  
  1182. break
  1183.  
  1184. end
  1185.  
  1186. if xS >= (x+1) and xS <= (x+13) and yS == (y+4) then
  1187.  
  1188. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-2)]
  1189.  
  1190. fs.delete(GoForProgram)
  1191.  
  1192. break
  1193.  
  1194. end
  1195.  
  1196. if not (xS >= x and xS <= (x+14) and yS >= y and yS <= (y+5)) then
  1197.  
  1198. break
  1199.  
  1200. end
  1201.  
  1202. end
  1203.  
  1204. if openUnten == "oben" then
  1205.  
  1206. if xS >= (x+1) and xS <= (x+13) and yS == (y-2) then
  1207.  
  1208. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-1)]
  1209.  
  1210. shell.run(GoForProgram)
  1211.  
  1212. break
  1213.  
  1214. end
  1215.  
  1216. if xS >= (x+1) and xS <= (x+13) and yS == (y-3) then
  1217.  
  1218. BC(256)
  1219. TC(1)
  1220. CP((x+1),(y-3))
  1221. print(" ")
  1222. CP((x+1),(y-3))
  1223. runWitchArg = read()
  1224.  
  1225. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-1)]
  1226.  
  1227. shell.run(GoForProgram.." "..runWitchArg)
  1228.  
  1229. break
  1230.  
  1231. end
  1232.  
  1233. if xS >= (x+1) and xS <= (x+13) and yS == (y-4) then
  1234.  
  1235. GoForProgram = AppListe[((((y-1)+seitenCfest)*3)-2)]
  1236.  
  1237. fs.delete(GoForProgram)
  1238.  
  1239. break
  1240.  
  1241. end
  1242.  
  1243. if not (xS >= x and xS <= (x+14) and yS >= y and yS <= (y-5)) then
  1244.  
  1245. break
  1246.  
  1247. end
  1248.  
  1249. end
  1250.  
  1251. end
  1252.  
  1253. end
  1254.  
  1255. DeskEXIT = true
  1256.  
  1257. end
  1258. end
  1259.  
  1260. end
  1261.  
  1262. if x == 3 and y == (h-1) and not (DeskEXIT == true) then
  1263.  
  1264.  
  1265. if MAXseiten == 1 then
  1266. festSeite = festSeite
  1267. elseif festSeite == 1 then
  1268. festSeite = MAXseiten
  1269. else
  1270. festSeite = (festSeite-1)
  1271. end
  1272.  
  1273. SideBarANZEIGE(festSeite)
  1274.  
  1275. end
  1276.  
  1277. if x == 13 and y == (h-1) and not (DeskEXIT == true) then
  1278.  
  1279. if MAXseiten == 1 then
  1280. festSeite = festSeite
  1281. elseif festSeite == MAXseiten then
  1282. festSeite = 1
  1283. else
  1284. festSeite = (festSeite+1)
  1285. end
  1286.  
  1287. SideBarANZEIGE(festSeite)
  1288.  
  1289. end
  1290.  
  1291. if DeskEXIT == true then
  1292. break
  1293. end
  1294.  
  1295. end
  1296. end
  1297.  
  1298. shell.run("SimSoft/System/Desktop")
  1299.  
  1300.  
  1301.  
  1302.  
  1303.  
  1304.  
  1305.  
  1306. --end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement