瀏覽代碼

[SugarCube] Move resources from tool to tw-output.

For simpilicity and to prepare generation of CLI-application.
Stephan Fuchs 2 月之前
父節點
當前提交
86d3c86903
共有 79 個文件被更改,包括 4 次插入5 次删除
  1. 0 1
      qsrc2tw/.gitignore
  2. 4 4
      qsrc2tw/tools/QSRC2TW/index.js
  3. 0 0
      qsrc2tw/twine-code/+resources/Interface/DebugTools.css
  4. 0 0
      qsrc2tw/twine-code/+resources/Interface/DebugTools.js
  5. 0 0
      qsrc2tw/twine-code/+resources/Interface/DebugTools.tw
  6. 0 0
      qsrc2tw/twine-code/+resources/Interface/PassageFooter.tw
  7. 0 0
      qsrc2tw/twine-code/+resources/Interface/Sidebar.js
  8. 0 0
      qsrc2tw/twine-code/+resources/Interface/Sidebar.tw
  9. 0 0
      qsrc2tw/twine-code/+resources/Interface/StoryInterface.tw
  10. 0 0
      qsrc2tw/twine-code/+resources/Interface/UISettingsDialog.tw
  11. 0 0
      qsrc2tw/twine-code/+resources/Interface/UserStyle.js
  12. 0 0
      qsrc2tw/twine-code/+resources/Interface/grid/grid.js
  13. 0 0
      qsrc2tw/twine-code/+resources/Interface/grid/gridstack-all.js
  14. 0 0
      qsrc2tw/twine-code/+resources/Interface/grid/gridstack.min.css
  15. 0 0
      qsrc2tw/twine-code/+resources/Macros/attr-macro.min.js
  16. 0 0
      qsrc2tw/twine-code/+resources/Overwrite/Overwrite.js
  17. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/addobj.js
  18. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/arrpos.js
  19. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/arrsize.js
  20. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/copyarr.js
  21. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/dynamic.js
  22. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/dyneveal.js
  23. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/func.js
  24. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/iif.js
  25. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/input.js
  26. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/instr.js
  27. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/isnum.js
  28. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/lcase.js
  29. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/len.js
  30. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/logic.js
  31. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/max.js
  32. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/mid.js
  33. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/min.js
  34. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/msg.js
  35. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/rand.js
  36. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/replace.js
  37. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/rgb.js
  38. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/str.js
  39. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/strpos.js
  40. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/trim.js
  41. 0 0
      qsrc2tw/twine-code/+resources/QSP-functions/val.js
  42. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLA.tw
  43. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLOSE.tw
  44. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLOSEALL.tw
  45. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLR.js
  46. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLR.tw
  47. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/CLS.tw
  48. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/EXIT.js
  49. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/GS.js
  50. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/GT.js
  51. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/JUMPMARKER.js
  52. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/SHOW.js
  53. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/SIDE_BR.tw
  54. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/VIEW.tw
  55. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/WAIT.tw
  56. 0 0
      qsrc2tw/twine-code/+resources/QSP-macros/XGT.js
  57. 0 0
      qsrc2tw/twine-code/+resources/QSPPARSER.js
  58. 0 0
      qsrc2tw/twine-code/+resources/Start.tw
  59. 0 0
      qsrc2tw/twine-code/+resources/StoryData.tw
  60. 0 0
      qsrc2tw/twine-code/+resources/StoryTitle.tw
  61. 0 0
      qsrc2tw/twine-code/+resources/UIUserSettings.js
  62. 0 0
      qsrc2tw/twine-code/+resources/console.js
  63. 0 0
      qsrc2tw/twine-code/+resources/defaultStyle.css
  64. 0 0
      qsrc2tw/twine-code/+resources/interceptClickEvent.js
  65. 0 0
      qsrc2tw/twine-code/+resources/resources/Topbar.css
  66. 0 0
      qsrc2tw/twine-code/+resources/resources/Topbar.tw
  67. 0 0
      qsrc2tw/twine-code/+resources/resources/act/Actions.tw
  68. 0 0
      qsrc2tw/twine-code/+resources/resources/act/act.js
  69. 0 0
      qsrc2tw/twine-code/+resources/resources/act/action.js
  70. 0 0
      qsrc2tw/twine-code/+resources/resources/act/delact.js
  71. 0 0
      qsrc2tw/twine-code/+resources/resources/act/update.js
  72. 0 0
      qsrc2tw/twine-code/+resources/resources/dyneval.js
  73. 0 0
      qsrc2tw/twine-code/+resources/resources/echo.tw
  74. 0 0
      qsrc2tw/twine-code/+resources/resources/killall.tw
  75. 0 0
      qsrc2tw/twine-code/+resources/resources/opengame.tw
  76. 0 0
      qsrc2tw/twine-code/+resources/resources/styles.css
  77. 0 0
      qsrc2tw/twine-code/+resources/resources/variables.js
  78. 0 0
      qsrc2tw/twine-code/+resources/resources/versioning.js
  79. 0 0
      qsrc2tw/twine-code/+resources/settings.js

+ 0 - 1
qsrc2tw/.gitignore

@@ -1,5 +1,4 @@
 node_modules
 temp
 twine-code/-generated
-twine-code/+resources
 

+ 4 - 4
qsrc2tw/tools/QSRC2TW/index.js

@@ -11,7 +11,7 @@ import { execSync } from 'node:child_process';
 
 const VERSION = 8;
 const generatedFilesPrefix = '-generated';
-const resourcesFilesPrefix = '+resources';
+//const resourcesFilesPrefix = '+resources';
 
 const program = new Command();
 program
@@ -120,9 +120,9 @@ if(!options.skipFailedfilesFile){
     });
 }
 
-const resourcesPath = path.join(outPath,resourcesFilesPrefix);
-fs.rmSync(resourcesPath, { recursive: true, force: true });
-fs.cpSync("./resources", resourcesPath, {recursive: true});
+//const resourcesPath = path.join(outPath,resourcesFilesPrefix);
+//fs.rmSync(resourcesPath, { recursive: true, force: true });
+//fs.cpSync("./resources", resourcesPath, {recursive: true});
 
 
 const executionTime =  (new Date()).getTime() - startTime;

+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/DebugTools.css → qsrc2tw/twine-code/+resources/Interface/DebugTools.css


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/DebugTools.js → qsrc2tw/twine-code/+resources/Interface/DebugTools.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/DebugTools.tw → qsrc2tw/twine-code/+resources/Interface/DebugTools.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/PassageFooter.tw → qsrc2tw/twine-code/+resources/Interface/PassageFooter.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/Sidebar.js → qsrc2tw/twine-code/+resources/Interface/Sidebar.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/Sidebar.tw → qsrc2tw/twine-code/+resources/Interface/Sidebar.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/StoryInterface.tw → qsrc2tw/twine-code/+resources/Interface/StoryInterface.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/UISettingsDialog.tw → qsrc2tw/twine-code/+resources/Interface/UISettingsDialog.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/UserStyle.js → qsrc2tw/twine-code/+resources/Interface/UserStyle.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/grid/grid.js → qsrc2tw/twine-code/+resources/Interface/grid/grid.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/grid/gridstack-all.js → qsrc2tw/twine-code/+resources/Interface/grid/gridstack-all.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Interface/grid/gridstack.min.css → qsrc2tw/twine-code/+resources/Interface/grid/gridstack.min.css


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Macros/attr-macro.min.js → qsrc2tw/twine-code/+resources/Macros/attr-macro.min.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Overwrite/Overwrite.js → qsrc2tw/twine-code/+resources/Overwrite/Overwrite.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/addobj.js → qsrc2tw/twine-code/+resources/QSP-functions/addobj.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/arrpos.js → qsrc2tw/twine-code/+resources/QSP-functions/arrpos.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/arrsize.js → qsrc2tw/twine-code/+resources/QSP-functions/arrsize.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/copyarr.js → qsrc2tw/twine-code/+resources/QSP-functions/copyarr.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/dynamic.js → qsrc2tw/twine-code/+resources/QSP-functions/dynamic.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/dyneveal.js → qsrc2tw/twine-code/+resources/QSP-functions/dyneveal.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/func.js → qsrc2tw/twine-code/+resources/QSP-functions/func.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/iif.js → qsrc2tw/twine-code/+resources/QSP-functions/iif.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/input.js → qsrc2tw/twine-code/+resources/QSP-functions/input.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/instr.js → qsrc2tw/twine-code/+resources/QSP-functions/instr.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/isnum.js → qsrc2tw/twine-code/+resources/QSP-functions/isnum.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/lcase.js → qsrc2tw/twine-code/+resources/QSP-functions/lcase.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/len.js → qsrc2tw/twine-code/+resources/QSP-functions/len.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/logic.js → qsrc2tw/twine-code/+resources/QSP-functions/logic.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/max.js → qsrc2tw/twine-code/+resources/QSP-functions/max.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/mid.js → qsrc2tw/twine-code/+resources/QSP-functions/mid.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/min.js → qsrc2tw/twine-code/+resources/QSP-functions/min.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/msg.js → qsrc2tw/twine-code/+resources/QSP-functions/msg.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/rand.js → qsrc2tw/twine-code/+resources/QSP-functions/rand.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/replace.js → qsrc2tw/twine-code/+resources/QSP-functions/replace.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/rgb.js → qsrc2tw/twine-code/+resources/QSP-functions/rgb.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/str.js → qsrc2tw/twine-code/+resources/QSP-functions/str.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/strpos.js → qsrc2tw/twine-code/+resources/QSP-functions/strpos.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/trim.js → qsrc2tw/twine-code/+resources/QSP-functions/trim.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-functions/val.js → qsrc2tw/twine-code/+resources/QSP-functions/val.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLA.tw → qsrc2tw/twine-code/+resources/QSP-macros/CLA.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLOSE.tw → qsrc2tw/twine-code/+resources/QSP-macros/CLOSE.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLOSEALL.tw → qsrc2tw/twine-code/+resources/QSP-macros/CLOSEALL.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLR.js → qsrc2tw/twine-code/+resources/QSP-macros/CLR.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLR.tw → qsrc2tw/twine-code/+resources/QSP-macros/CLR.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/CLS.tw → qsrc2tw/twine-code/+resources/QSP-macros/CLS.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/EXIT.js → qsrc2tw/twine-code/+resources/QSP-macros/EXIT.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/GS.js → qsrc2tw/twine-code/+resources/QSP-macros/GS.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/GT.js → qsrc2tw/twine-code/+resources/QSP-macros/GT.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/JUMPMARKER.js → qsrc2tw/twine-code/+resources/QSP-macros/JUMPMARKER.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/SHOW.js → qsrc2tw/twine-code/+resources/QSP-macros/SHOW.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/SIDE_BR.tw → qsrc2tw/twine-code/+resources/QSP-macros/SIDE_BR.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/VIEW.tw → qsrc2tw/twine-code/+resources/QSP-macros/VIEW.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/WAIT.tw → qsrc2tw/twine-code/+resources/QSP-macros/WAIT.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSP-macros/XGT.js → qsrc2tw/twine-code/+resources/QSP-macros/XGT.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/QSPPARSER.js → qsrc2tw/twine-code/+resources/QSPPARSER.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/Start.tw → qsrc2tw/twine-code/+resources/Start.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/StoryData.tw → qsrc2tw/twine-code/+resources/StoryData.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/StoryTitle.tw → qsrc2tw/twine-code/+resources/StoryTitle.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/UIUserSettings.js → qsrc2tw/twine-code/+resources/UIUserSettings.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/console.js → qsrc2tw/twine-code/+resources/console.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/defaultStyle.css → qsrc2tw/twine-code/+resources/defaultStyle.css


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/interceptClickEvent.js → qsrc2tw/twine-code/+resources/interceptClickEvent.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/Topbar.css → qsrc2tw/twine-code/+resources/resources/Topbar.css


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/Topbar.tw → qsrc2tw/twine-code/+resources/resources/Topbar.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/act/Actions.tw → qsrc2tw/twine-code/+resources/resources/act/Actions.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/act/act.js → qsrc2tw/twine-code/+resources/resources/act/act.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/act/action.js → qsrc2tw/twine-code/+resources/resources/act/action.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/act/delact.js → qsrc2tw/twine-code/+resources/resources/act/delact.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/act/update.js → qsrc2tw/twine-code/+resources/resources/act/update.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/dyneval.js → qsrc2tw/twine-code/+resources/resources/dyneval.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/echo.tw → qsrc2tw/twine-code/+resources/resources/echo.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/killall.tw → qsrc2tw/twine-code/+resources/resources/killall.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/opengame.tw → qsrc2tw/twine-code/+resources/resources/opengame.tw


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/styles.css → qsrc2tw/twine-code/+resources/resources/styles.css


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/variables.js → qsrc2tw/twine-code/+resources/resources/variables.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/resources/versioning.js → qsrc2tw/twine-code/+resources/resources/versioning.js


+ 0 - 0
qsrc2tw/tools/QSRC2TW/resources/settings.js → qsrc2tw/twine-code/+resources/settings.js