@drincs/pixi-vn 0.5.2 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/dist/classes/CharacterBaseModel.js +110 -112
  2. package/dist/classes/CharacterBaseModel.js.map +1 -1
  3. package/dist/classes/CharacterBaseModel.mjs +110 -112
  4. package/dist/classes/CharacterBaseModel.mjs.map +1 -1
  5. package/dist/classes/ChoiceMenuOption.d.mts +19 -7
  6. package/dist/classes/ChoiceMenuOption.d.ts +19 -7
  7. package/dist/classes/ChoiceMenuOption.js +1386 -7
  8. package/dist/classes/ChoiceMenuOption.js.map +1 -1
  9. package/dist/classes/ChoiceMenuOption.mjs +1386 -7
  10. package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
  11. package/dist/classes/CloseLabel.d.mts +8 -3
  12. package/dist/classes/CloseLabel.d.ts +8 -3
  13. package/dist/classes/CloseLabel.js +44 -2
  14. package/dist/classes/CloseLabel.js.map +1 -1
  15. package/dist/classes/CloseLabel.mjs +41 -2
  16. package/dist/classes/CloseLabel.mjs.map +1 -1
  17. package/dist/classes/Label.d.mts +47 -21
  18. package/dist/classes/Label.d.ts +47 -21
  19. package/dist/classes/Label.js +36 -1
  20. package/dist/classes/Label.js.map +1 -1
  21. package/dist/classes/Label.mjs +36 -1
  22. package/dist/classes/Label.mjs.map +1 -1
  23. package/dist/classes/StoredClassModel.js +55 -57
  24. package/dist/classes/StoredClassModel.js.map +1 -1
  25. package/dist/classes/StoredClassModel.mjs +55 -57
  26. package/dist/classes/StoredClassModel.mjs.map +1 -1
  27. package/dist/classes/index.d.mts +2 -2
  28. package/dist/classes/index.d.ts +2 -2
  29. package/dist/classes/index.js +125 -73
  30. package/dist/classes/index.js.map +1 -1
  31. package/dist/classes/index.mjs +125 -73
  32. package/dist/classes/index.mjs.map +1 -1
  33. package/dist/classes/ticker/TickerFadeAlpha.js +27 -27
  34. package/dist/classes/ticker/TickerFadeAlpha.js.map +1 -1
  35. package/dist/classes/ticker/TickerFadeAlpha.mjs +27 -27
  36. package/dist/classes/ticker/TickerFadeAlpha.mjs.map +1 -1
  37. package/dist/classes/ticker/TickerMove.js +57 -55
  38. package/dist/classes/ticker/TickerMove.js.map +1 -1
  39. package/dist/classes/ticker/TickerMove.mjs +57 -55
  40. package/dist/classes/ticker/TickerMove.mjs.map +1 -1
  41. package/dist/classes/ticker/TickerRotate.js +57 -55
  42. package/dist/classes/ticker/TickerRotate.js.map +1 -1
  43. package/dist/classes/ticker/TickerRotate.mjs +57 -55
  44. package/dist/classes/ticker/TickerRotate.mjs.map +1 -1
  45. package/dist/classes/ticker/index.js +17 -17
  46. package/dist/classes/ticker/index.js.map +1 -1
  47. package/dist/classes/ticker/index.mjs +17 -17
  48. package/dist/classes/ticker/index.mjs.map +1 -1
  49. package/dist/constants.d.mts +1 -1
  50. package/dist/constants.d.ts +1 -1
  51. package/dist/constants.js +1 -1
  52. package/dist/constants.js.map +1 -1
  53. package/dist/constants.mjs +1 -1
  54. package/dist/constants.mjs.map +1 -1
  55. package/dist/decorators/LabelDecorator.d.mts +13 -20
  56. package/dist/decorators/LabelDecorator.d.ts +13 -20
  57. package/dist/decorators/LabelDecorator.js +1388 -28
  58. package/dist/decorators/LabelDecorator.js.map +1 -1
  59. package/dist/decorators/LabelDecorator.mjs +1388 -25
  60. package/dist/decorators/LabelDecorator.mjs.map +1 -1
  61. package/dist/decorators/index.d.mts +4 -4
  62. package/dist/decorators/index.d.ts +4 -4
  63. package/dist/decorators/index.js +1385 -13
  64. package/dist/decorators/index.js.map +1 -1
  65. package/dist/decorators/index.mjs +1384 -13
  66. package/dist/decorators/index.mjs.map +1 -1
  67. package/dist/functions/DialogueUtility.d.mts +7 -7
  68. package/dist/functions/DialogueUtility.d.ts +7 -7
  69. package/dist/functions/DialogueUtility.js +97 -67
  70. package/dist/functions/DialogueUtility.js.map +1 -1
  71. package/dist/functions/DialogueUtility.mjs +97 -67
  72. package/dist/functions/DialogueUtility.mjs.map +1 -1
  73. package/dist/functions/FlagsUtility.js +55 -57
  74. package/dist/functions/FlagsUtility.js.map +1 -1
  75. package/dist/functions/FlagsUtility.mjs +55 -57
  76. package/dist/functions/FlagsUtility.mjs.map +1 -1
  77. package/dist/functions/GameUtility.js +55 -57
  78. package/dist/functions/GameUtility.js.map +1 -1
  79. package/dist/functions/GameUtility.mjs +55 -57
  80. package/dist/functions/GameUtility.mjs.map +1 -1
  81. package/dist/functions/ImageUtility.js +17 -17
  82. package/dist/functions/ImageUtility.js.map +1 -1
  83. package/dist/functions/ImageUtility.mjs +17 -17
  84. package/dist/functions/ImageUtility.mjs.map +1 -1
  85. package/dist/functions/SavesUtility.d.mts +2 -2
  86. package/dist/functions/SavesUtility.d.ts +2 -2
  87. package/dist/functions/SavesUtility.js +115 -143
  88. package/dist/functions/SavesUtility.js.map +1 -1
  89. package/dist/functions/SavesUtility.mjs +115 -143
  90. package/dist/functions/SavesUtility.mjs.map +1 -1
  91. package/dist/functions/StepLabelUtility.d.mts +0 -1
  92. package/dist/functions/StepLabelUtility.d.ts +0 -1
  93. package/dist/functions/index.d.mts +4 -4
  94. package/dist/functions/index.d.ts +4 -4
  95. package/dist/functions/index.js +98 -68
  96. package/dist/functions/index.js.map +1 -1
  97. package/dist/functions/index.mjs +98 -68
  98. package/dist/functions/index.mjs.map +1 -1
  99. package/dist/index.d.mts +3 -3
  100. package/dist/index.d.ts +3 -3
  101. package/dist/index.js +361 -327
  102. package/dist/index.js.map +1 -1
  103. package/dist/index.mjs +360 -327
  104. package/dist/index.mjs.map +1 -1
  105. package/dist/interface/{IDialogueHistory.d.mts → DialogueHistory.d.mts} +5 -5
  106. package/dist/interface/{IDialogueHistory.d.ts → DialogueHistory.d.ts} +5 -5
  107. package/dist/interface/{IDialogueHistory.js → DialogueHistory.js} +1 -1
  108. package/dist/interface/DialogueHistory.mjs +3 -0
  109. package/dist/interface/IHistoryStep.d.mts +2 -2
  110. package/dist/interface/IHistoryStep.d.ts +2 -2
  111. package/dist/interface/ISaveData.d.mts +2 -2
  112. package/dist/interface/ISaveData.d.ts +2 -2
  113. package/dist/interface/export/ExportedStep.d.mts +2 -2
  114. package/dist/interface/export/ExportedStep.d.ts +2 -2
  115. package/dist/interface/export/index.d.mts +2 -2
  116. package/dist/interface/export/index.d.ts +2 -2
  117. package/dist/interface/index.d.mts +6 -6
  118. package/dist/interface/index.d.ts +6 -6
  119. package/dist/managers/StepManager.d.mts +12 -12
  120. package/dist/managers/StepManager.d.ts +12 -12
  121. package/dist/managers/StepManager.js +55 -81
  122. package/dist/managers/StepManager.js.map +1 -1
  123. package/dist/managers/StepManager.mjs +55 -81
  124. package/dist/managers/StepManager.mjs.map +1 -1
  125. package/dist/managers/WindowManager.d.mts +1 -1
  126. package/dist/managers/WindowManager.d.ts +1 -1
  127. package/dist/managers/index.d.mts +2 -2
  128. package/dist/managers/index.d.ts +2 -2
  129. package/dist/managers/index.js +114 -142
  130. package/dist/managers/index.js.map +1 -1
  131. package/dist/managers/index.mjs +114 -142
  132. package/dist/managers/index.mjs.map +1 -1
  133. package/dist/types/ChoiceMenuOptionsType.d.mts +3 -3
  134. package/dist/types/ChoiceMenuOptionsType.d.ts +3 -3
  135. package/dist/types/StepLabelType.d.mts +2 -3
  136. package/dist/types/StepLabelType.d.ts +2 -3
  137. package/dist/types/index.d.mts +1 -1
  138. package/dist/types/index.d.ts +1 -1
  139. package/package.json +2 -2
  140. package/dist/interface/IDialogueHistory.mjs +0 -3
  141. /package/dist/interface/{IDialogueHistory.js.map → DialogueHistory.js.map} +0 -0
  142. /package/dist/interface/{IDialogueHistory.mjs.map → DialogueHistory.mjs.map} +0 -0
@@ -61,13 +61,31 @@ function checkIfStepsIsEqual(step1, step2) {
61
61
 
62
62
  // src/classes/Label.ts
63
63
  var Label = class {
64
+ /**
65
+ * @param id is the id of the label
66
+ * @param steps is the list of steps that the label will perform
67
+ * @param onStepRun is a function that will be executed before any step is executed, is useful for example to make sure all images used have been cached
68
+ * @param choiseIndex is the index of the choice that the label will perform
69
+ */
70
+ constructor(id, steps, onStepRun, choiseIndex) {
71
+ this._id = id;
72
+ this._steps = steps;
73
+ this._onStepRun = onStepRun;
74
+ this._choiseIndex = choiseIndex;
75
+ }
76
+ /**
77
+ * Get the id of the label
78
+ */
79
+ get id() {
80
+ return this._id;
81
+ }
64
82
  /**
65
83
  * Get the steps of the label.
66
84
  * This class should be extended and the steps method should be overridden.
67
85
  * Every time you update this list will also be updated when the other game versions load.
68
86
  */
69
87
  get steps() {
70
- throw new Error("[Pixi'VN] The method Label.steps must be overridden");
88
+ return this._steps;
71
89
  }
72
90
  /**
73
91
  * Get the corresponding steps number
@@ -86,45 +104,42 @@ var Label = class {
86
104
  });
87
105
  return res;
88
106
  }
107
+ /**
108
+ * Get the function that will be executed before any step is executed, is useful for example to make sure all images used have been cached
109
+ * @returns Promise<void> or void
110
+ * @example
111
+ * ```typescript
112
+ * newLabel("id", [], () => {
113
+ * Assets.load('path/to/image1.png')
114
+ * Assets.load('path/to/image2.png')
115
+ * })
116
+ * ```
117
+ */
118
+ get onStepRun() {
119
+ return this._onStepRun;
120
+ }
121
+ get choiseIndex() {
122
+ return this._choiseIndex;
123
+ }
89
124
  };
90
125
 
91
126
  // src/classes/CloseLabel.ts
127
+ var CLOSE_LABEL_ID = "__close-label-id__";
92
128
  var CloseLabel = class extends Label {
129
+ constructor(choiseIndex) {
130
+ super(CLOSE_LABEL_ID, [], void 0, choiseIndex);
131
+ }
93
132
  };
94
133
 
95
134
  // src/decorators/LabelDecorator.ts
96
135
  var registeredLabels = {};
97
- function getLabelTypeByClassName(labelName) {
98
- try {
99
- let labelType = registeredLabels[labelName];
100
- if (!labelType) {
101
- console.error(`[Pixi'VN] Label ${labelName} not found`);
102
- return;
103
- }
104
- new labelType();
105
- return labelType;
106
- } catch (e) {
107
- console.error(`[Pixi'VN] Error while getting Label ${labelName}`, e);
108
- return;
109
- }
110
- }
111
- function getLabelInstanceByClassName(labelName) {
112
- try {
113
- let labelType = registeredLabels[labelName];
114
- if (!labelType) {
115
- console.error(`[Pixi'VN] Label ${labelName} not found`);
116
- return;
117
- }
118
- let label = new labelType();
119
- let step = label.steps;
120
- if (step.length = 0) {
121
- console.warn(`[Pixi'VN] Label ${labelName} has no steps`);
122
- }
123
- return label;
124
- } catch (e) {
125
- console.error(`[Pixi'VN] Error while getting Label ${labelName}`, e);
136
+ function getLabelById(id) {
137
+ let label = registeredLabels[id];
138
+ if (!label) {
139
+ console.error(`[Pixi'VN] Label ${id} not found`);
126
140
  return;
127
141
  }
142
+ return label;
128
143
  }
129
144
 
130
145
  // src/decorators/CanvasElementDecorator.ts
@@ -1561,7 +1576,7 @@ var _GameStepManager = class _GameStepManager {
1561
1576
  */
1562
1577
  static get currentLabel() {
1563
1578
  if (_GameStepManager.currentLabelId) {
1564
- return getLabelInstanceByClassName(_GameStepManager.currentLabelId);
1579
+ return getLabelById(_GameStepManager.currentLabelId);
1565
1580
  }
1566
1581
  }
1567
1582
  static get currentLabelStepIndex() {
@@ -1582,7 +1597,7 @@ var _GameStepManager = class _GameStepManager {
1582
1597
  return true;
1583
1598
  } else {
1584
1599
  this.openedLabels.forEach((item) => {
1585
- let label = getLabelInstanceByClassName(item.label);
1600
+ let label = getLabelById(item.label);
1586
1601
  if (label && label.steps.length > item.currentStepIndex) {
1587
1602
  return false;
1588
1603
  }
@@ -1675,9 +1690,9 @@ var _GameStepManager = class _GameStepManager {
1675
1690
  * @param label The label to add to the history.
1676
1691
  */
1677
1692
  static pushNewLabel(label) {
1678
- let currentLabel = getLabelInstanceByClassName(label);
1693
+ let currentLabel = getLabelById(label);
1679
1694
  if (!currentLabel) {
1680
- throw new Error("[Pixi'VN] Label not found");
1695
+ throw new Error(`[Pixi'VN] Label ${label} not found`);
1681
1696
  }
1682
1697
  _GameStepManager._openedLabels.push({
1683
1698
  label,
@@ -1694,7 +1709,7 @@ var _GameStepManager = class _GameStepManager {
1694
1709
  return;
1695
1710
  }
1696
1711
  if (!_GameStepManager.currentLabel) {
1697
- console.error("[Pixi'VN] Label not found");
1712
+ console.error("[Pixi'VN] currentLabel not found");
1698
1713
  return;
1699
1714
  }
1700
1715
  _GameStepManager._openedLabels.pop();
@@ -1766,7 +1781,7 @@ var _GameStepManager = class _GameStepManager {
1766
1781
  }
1767
1782
  let currentLabel = _GameStepManager.currentLabel;
1768
1783
  if (!currentLabel) {
1769
- console.error("[Pixi'VN] Label not found");
1784
+ console.error("[Pixi'VN] currentLabel not found");
1770
1785
  return;
1771
1786
  }
1772
1787
  let n = currentLabel.steps.length;
@@ -1787,12 +1802,12 @@ var _GameStepManager = class _GameStepManager {
1787
1802
  /**
1788
1803
  * Execute the label and add it to the history.
1789
1804
  * Is a call function in Ren'Py.
1790
- * @param label The label to execute.
1805
+ * @param label The label to execute or the id of the label
1791
1806
  * @param props The props to pass to the label.
1792
1807
  * @returns StepLabelResultType or undefined.
1793
1808
  * @example
1794
1809
  * ```typescript
1795
- * GameStepManager.callLabel(StartLabel, yourParams).then((result) => {
1810
+ * GameStepManager.callLabel(startLabel, yourParams).then((result) => {
1796
1811
  * if (result) {
1797
1812
  * // your code
1798
1813
  * }
@@ -1801,7 +1816,7 @@ var _GameStepManager = class _GameStepManager {
1801
1816
  * @example
1802
1817
  * ```typescript
1803
1818
  * // if you use it in a step label you should return the result.
1804
- * return GameStepManager.callLabel(StartLabel).then((result) => {
1819
+ * return GameStepManager.callLabel(startLabel).then((result) => {
1805
1820
  * return result
1806
1821
  * })
1807
1822
  * ```
@@ -1809,16 +1824,24 @@ var _GameStepManager = class _GameStepManager {
1809
1824
  static callLabel(label, props) {
1810
1825
  return __async(this, null, function* () {
1811
1826
  let choiseMade = void 0;
1827
+ let labelId;
1828
+ if (typeof label === "string") {
1829
+ labelId = label;
1830
+ } else {
1831
+ labelId = label.id;
1832
+ if (typeof label.choiseIndex === "number") {
1833
+ choiseMade = label.choiseIndex;
1834
+ }
1835
+ }
1812
1836
  try {
1813
- if (label instanceof CloseLabel) {
1837
+ if (labelId === CLOSE_LABEL_ID) {
1814
1838
  return _GameStepManager.runNextStep(props);
1815
1839
  }
1816
- if (label instanceof Label) {
1817
- choiseMade = label.choiseIndex;
1818
- label = label.constructor;
1840
+ let tempLabel = getLabelById(labelId);
1841
+ if (!tempLabel) {
1842
+ throw new Error(`[Pixi'VN] Label ${labelId} not found`);
1819
1843
  }
1820
- let labelName = label.name;
1821
- _GameStepManager.pushNewLabel(labelName);
1844
+ _GameStepManager.pushNewLabel(tempLabel.id);
1822
1845
  } catch (e) {
1823
1846
  console.error("[Pixi'VN] Error calling label", e);
1824
1847
  return;
@@ -1830,11 +1853,11 @@ var _GameStepManager = class _GameStepManager {
1830
1853
  * Execute the label, close all labels and add them to the history.
1831
1854
  * Is a jump function in Ren'Py.
1832
1855
  * @param label The label to execute.
1833
- * @param props The props to pass to the label.
1856
+ * @param props The props to pass to the label or the id of the label
1834
1857
  * @returns StepLabelResultType or undefined.
1835
1858
  * @example
1836
1859
  * ```typescript
1837
- * GameStepManager.jumpLabel(StartLabel, yourParams).then((result) => {
1860
+ * GameStepManager.jumpLabel(startLabel, yourParams).then((result) => {
1838
1861
  * if (result) {
1839
1862
  * // your code
1840
1863
  * }
@@ -1843,7 +1866,7 @@ var _GameStepManager = class _GameStepManager {
1843
1866
  * @example
1844
1867
  * ```typescript
1845
1868
  * // if you use it in a step label you should return the result.
1846
- * return GameStepManager.jumpLabel(StartLabel).then((result) => {
1869
+ * return GameStepManager.jumpLabel(startLabel).then((result) => {
1847
1870
  * return result
1848
1871
  * })
1849
1872
  * ```
@@ -1851,15 +1874,24 @@ var _GameStepManager = class _GameStepManager {
1851
1874
  static jumpLabel(label, props) {
1852
1875
  return __async(this, null, function* () {
1853
1876
  _GameStepManager.closeAllLabels();
1877
+ let labelId;
1878
+ if (typeof label === "string") {
1879
+ labelId = label;
1880
+ } else {
1881
+ labelId = label.id;
1882
+ if (typeof label.choiseIndex === "number") {
1883
+ label.choiseIndex;
1884
+ }
1885
+ }
1854
1886
  try {
1855
- if (label instanceof CloseLabel) {
1887
+ if (labelId === CLOSE_LABEL_ID) {
1856
1888
  return _GameStepManager.runNextStep(props);
1857
1889
  }
1858
- if (label instanceof Label) {
1859
- label = label.constructor;
1890
+ let tempLabel = getLabelById(labelId);
1891
+ if (!tempLabel) {
1892
+ throw new Error(`[Pixi'VN] Label ${labelId} not found`);
1860
1893
  }
1861
- let labelName = label.name;
1862
- _GameStepManager.pushNewLabel(labelName);
1894
+ _GameStepManager.pushNewLabel(tempLabel.id);
1863
1895
  } catch (e) {
1864
1896
  console.error("[Pixi'VN] Error jumping label", e);
1865
1897
  return;
@@ -1873,14 +1905,14 @@ var _GameStepManager = class _GameStepManager {
1873
1905
  * @returns StepLabelResultType or undefined.
1874
1906
  * @example
1875
1907
  * ```typescript
1876
- * GameStepManager.exitToChoiceMenu(yourParams).then((result) => {
1908
+ * GameStepManager.closeChoiceMenu(yourParams).then((result) => {
1877
1909
  * if (result) {
1878
1910
  * // your code
1879
1911
  * }
1880
1912
  * })
1881
1913
  * ```
1882
1914
  */
1883
- static exitToChoiceMenu(props) {
1915
+ static closeChoiceMenu(props) {
1884
1916
  return __async(this, null, function* () {
1885
1917
  return _GameStepManager.runNextStep(props);
1886
1918
  });
@@ -2103,7 +2135,7 @@ var ChoiceMenuOptionClose = class {
2103
2135
  };
2104
2136
 
2105
2137
  // src/classes/DialogueBaseModel.ts
2106
- var DialogueBaseModel2 = class {
2138
+ var DialogueBaseModel = class {
2107
2139
  /**
2108
2140
  * @param text The text of the dialogue.
2109
2141
  * @param character The id of the character that is speaking.
@@ -2155,8 +2187,8 @@ function setDialogue(props) {
2155
2187
  let dialogue;
2156
2188
  if (typeof props === "string") {
2157
2189
  text = props;
2158
- dialogue = new DialogueBaseModel2(text, characterId);
2159
- } else if (!(props instanceof DialogueBaseModel2)) {
2190
+ dialogue = new DialogueBaseModel(text, characterId);
2191
+ } else if (!(props instanceof DialogueBaseModel)) {
2160
2192
  text = props.text;
2161
2193
  if (props.character) {
2162
2194
  if (typeof props.character === "string") {
@@ -2165,7 +2197,7 @@ function setDialogue(props) {
2165
2197
  characterId = props.character.id;
2166
2198
  }
2167
2199
  }
2168
- dialogue = new DialogueBaseModel2(text, characterId);
2200
+ dialogue = new DialogueBaseModel(text, characterId);
2169
2201
  } else {
2170
2202
  dialogue = props;
2171
2203
  }
@@ -2187,7 +2219,7 @@ function setChoiceMenuOptions(options) {
2187
2219
  };
2188
2220
  }
2189
2221
  return __spreadProps(__spreadValues({}, option), {
2190
- label: option.label.constructor.name
2222
+ label: option.label.id
2191
2223
  });
2192
2224
  });
2193
2225
  GameStorageManager.setVariable(GameStorageManager.keysSystem.CURRENT_MENU_OPTIONS_MEMORY_KEY, value);
@@ -2199,8 +2231,7 @@ function getChoiceMenuOptions() {
2199
2231
  let options = [];
2200
2232
  d.forEach((option, index) => {
2201
2233
  if (option.type === Close) {
2202
- let itemLabel = new CloseLabel();
2203
- itemLabel.choiseIndex = index;
2234
+ let itemLabel = new CloseLabel(index);
2204
2235
  options.push({
2205
2236
  text: option.text,
2206
2237
  label: itemLabel,
@@ -2209,10 +2240,9 @@ function getChoiceMenuOptions() {
2209
2240
  });
2210
2241
  return;
2211
2242
  }
2212
- let label = getLabelTypeByClassName(option.label);
2243
+ let label = getLabelById(option.label);
2213
2244
  if (label) {
2214
- let itemLabel = new label();
2215
- itemLabel.choiseIndex = index;
2245
+ let itemLabel = new Label(label.id, label.steps, label.onStepRun, index);
2216
2246
  options.push(__spreadProps(__spreadValues({}, option), {
2217
2247
  label: itemLabel
2218
2248
  }));
@@ -2235,7 +2265,7 @@ function getDialogueHistory() {
2235
2265
  if (oldChoices) {
2236
2266
  let choiceMade = false;
2237
2267
  if (step.choiceIndexMade !== void 0 && oldChoices.length > step.choiceIndexMade) {
2238
- oldChoices[step.choiceIndexMade].isMadeChoice = true;
2268
+ oldChoices[step.choiceIndexMade].isResponse = true;
2239
2269
  choiceMade = true;
2240
2270
  }
2241
2271
  list[list.length - 1].playerMadeChoice = choiceMade;
@@ -2247,7 +2277,7 @@ function getDialogueHistory() {
2247
2277
  return {
2248
2278
  text: choice.text,
2249
2279
  type: choice.type,
2250
- isMadeChoice: false
2280
+ isResponse: false
2251
2281
  };
2252
2282
  });
2253
2283
  list.push({