@cabin-icarus/tooltip_generator 1.7.8 → 1.7.9
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.
- package/init.ts +30 -30
- package/install.ts +0 -4
- package/{languages.ts → languages.d.ts} +1 -1
- package/localization/localizationData.ts +0 -3
- package/localizationInterfaces.ts +8 -10
- package/package.json +1 -1
package/init.ts
CHANGED
|
@@ -16,36 +16,36 @@ function copyFiles() {
|
|
|
16
16
|
fs.copyFileSync(filePath, resultPath);
|
|
17
17
|
console.log(`Not found, tsconfig.json copied to ${resultPath} folder`);
|
|
18
18
|
}
|
|
19
|
-
filePath = __dirname + "/ModifierProperties.d.ts";
|
|
20
|
-
resultPath = resourcePath + "/ModifierProperties.d.ts";
|
|
21
|
-
console.log(`Checking if ModifierProperties.d.ts exists in ${filePath}`)
|
|
22
|
-
if (fs.existsSync(resultPath))
|
|
23
|
-
{
|
|
24
|
-
|
|
25
|
-
} else {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
filePath = __dirname + "/languages.ts";
|
|
30
|
-
resultPath = resourcePath + "/languages.ts";
|
|
31
|
-
console.log(`Checking if languages.ts exsts in ${filePath}`)
|
|
32
|
-
if (fs.existsSync(resultPath))
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
} else {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
filePath = __dirname + "/languages.ts";
|
|
40
|
-
resultPath = resourcePath + "/languages.ts";
|
|
41
|
-
console.log(`Checking if languages.js exsts in ${filePath}`)
|
|
42
|
-
if (fs.existsSync(resultPath))
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
} else {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
19
|
+
// filePath = __dirname + "/ModifierProperties.d.ts";
|
|
20
|
+
// resultPath = resourcePath + "/ModifierProperties.d.ts";
|
|
21
|
+
// console.log(`Checking if ModifierProperties.d.ts exists in ${filePath}`)
|
|
22
|
+
// if (fs.existsSync(resultPath))
|
|
23
|
+
// {
|
|
24
|
+
// console.log("ModifierProperties.d.ts found!");
|
|
25
|
+
// } else {
|
|
26
|
+
// fs.copyFileSync(filePath, resultPath);
|
|
27
|
+
// console.log(`Not found, ModifierProperties.d.ts copied to ${resultPath} folder`);
|
|
28
|
+
// }
|
|
29
|
+
// filePath = __dirname + "/languages.d.ts";
|
|
30
|
+
// resultPath = resourcePath + "/languages.ts";
|
|
31
|
+
// console.log(`Checking if languages.ts exsts in ${filePath}`)
|
|
32
|
+
// if (fs.existsSync(resultPath))
|
|
33
|
+
// {
|
|
34
|
+
// console.log("languages.ts found!");
|
|
35
|
+
// } else {
|
|
36
|
+
// fs.copyFileSync(filePath, resultPath);
|
|
37
|
+
// console.log(`Not found, languages.ts copied to ${resultPath} folder`);
|
|
38
|
+
// }
|
|
39
|
+
// filePath = __dirname + "/languages.ts";
|
|
40
|
+
// resultPath = resourcePath + "/languages.ts";
|
|
41
|
+
// console.log(`Checking if languages.js exsts in ${filePath}`)
|
|
42
|
+
// if (fs.existsSync(resultPath))
|
|
43
|
+
// {
|
|
44
|
+
// console.log("languages.js found!");
|
|
45
|
+
// } else {
|
|
46
|
+
// fs.copyFileSync(filePath, resultPath);
|
|
47
|
+
// console.log(`Not found, languages.js copied to ${resultPath} folder`);
|
|
48
|
+
// }
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
let dirPath = __dirname + "/localization";
|
package/install.ts
CHANGED
|
@@ -24,8 +24,6 @@ function CheckPackage() {
|
|
|
24
24
|
const rootPath = "../../../";
|
|
25
25
|
const scriptPath = "./";
|
|
26
26
|
|
|
27
|
-
console.log("F: ",fs.realpathSync(rootPath + "package.json"))
|
|
28
|
-
|
|
29
27
|
// adjust existing package.json
|
|
30
28
|
if (fs.existsSync(rootPath + "package.json")) {
|
|
31
29
|
console.log("Checking existing package.json...")
|
|
@@ -137,6 +135,4 @@ function CheckPackage() {
|
|
|
137
135
|
})
|
|
138
136
|
}
|
|
139
137
|
|
|
140
|
-
console.log("F: ",fs.realpathSync("../../../package.json"))
|
|
141
|
-
|
|
142
138
|
CheckPackage();
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { AbilityLocalization, LocalizationData, ModifierLocalization, StandardLocalization } from "../localizationInterfaces";
|
|
2
|
-
import { Language } from "../languages";
|
|
3
|
-
|
|
4
1
|
export function GenerateLocalizationData(): LocalizationData
|
|
5
2
|
{
|
|
6
3
|
// This section can be safely ignored, as it is only logic.
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export interface AbilityLocalization
|
|
1
|
+
declare interface AbilityLocalization
|
|
4
2
|
{
|
|
5
3
|
ability_classname: string;
|
|
6
4
|
name?: string;
|
|
@@ -14,7 +12,7 @@ export interface AbilityLocalization
|
|
|
14
12
|
language_overrides?: Array<AbilityLocalizationContent>;
|
|
15
13
|
}
|
|
16
14
|
|
|
17
|
-
|
|
15
|
+
declare interface AbilityLocalizationContent
|
|
18
16
|
{
|
|
19
17
|
language: Language;
|
|
20
18
|
name_override?: string;
|
|
@@ -27,7 +25,7 @@ export interface AbilityLocalizationContent
|
|
|
27
25
|
ability_specials_override?: Array<AbilitySpecialLocalization>;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
|
|
28
|
+
declare interface ModifierLocalization
|
|
31
29
|
{
|
|
32
30
|
modifier_classname: string;
|
|
33
31
|
name?: string;
|
|
@@ -35,21 +33,21 @@ export interface ModifierLocalization
|
|
|
35
33
|
language_overrides?: Array<ModifierLocalizationContent>;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
declare interface ModifierLocalizationContent
|
|
39
37
|
{
|
|
40
38
|
language: Language;
|
|
41
39
|
name_override?: string
|
|
42
40
|
description_override?: string;
|
|
43
41
|
}
|
|
44
42
|
|
|
45
|
-
|
|
43
|
+
declare interface StandardLocalization
|
|
46
44
|
{
|
|
47
45
|
classname: string;
|
|
48
46
|
name: string;
|
|
49
47
|
language_overrides?: StandardLocalizationNameOverride[]
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
|
|
50
|
+
declare interface StandardLocalizationNameOverride
|
|
53
51
|
{
|
|
54
52
|
language: Language;
|
|
55
53
|
name_override: string
|
|
@@ -61,7 +59,7 @@ export interface StandardLocalizationNameOverride
|
|
|
61
59
|
// description: string;
|
|
62
60
|
// }
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
declare interface AbilitySpecialLocalization
|
|
65
63
|
{
|
|
66
64
|
ability_special: string;
|
|
67
65
|
text: string;
|
|
@@ -91,7 +89,7 @@ export interface AbilitySpecialLocalization
|
|
|
91
89
|
// lore_override?: string;
|
|
92
90
|
// }
|
|
93
91
|
|
|
94
|
-
|
|
92
|
+
declare interface LocalizationData
|
|
95
93
|
{
|
|
96
94
|
AbilityArray?: Array<AbilityLocalization>;
|
|
97
95
|
ModifierArray?: Array<ModifierLocalization>;
|
package/package.json
CHANGED