bnstooltips 1.5.6 → 1.6.0
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/build/index.es.js +15 -0
- package/build/index.es.js.map +1 -1
- package/build/index.js +15 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -167,6 +167,21 @@ styleInject(css_248z$5);
|
|
|
167
167
|
function BuildIconPath(iconPath, iconIndex) {
|
|
168
168
|
if (iconPath == null)
|
|
169
169
|
return "";
|
|
170
|
+
if (iconPath.startsWith("//")) {
|
|
171
|
+
iconPath = iconPath.substring(1);
|
|
172
|
+
}
|
|
173
|
+
if (iconPath.startsWith("/Game/")) {
|
|
174
|
+
console.log(iconPath);
|
|
175
|
+
var split = iconPath.split('/');
|
|
176
|
+
var last = split[split.length - 1];
|
|
177
|
+
console.log(last);
|
|
178
|
+
var penultimate = split[split.length - 2];
|
|
179
|
+
console.log(penultimate);
|
|
180
|
+
if (last === penultimate) {
|
|
181
|
+
iconPath = iconPath.replace("/".concat(penultimate, "/"), "/");
|
|
182
|
+
}
|
|
183
|
+
console.log(iconPath);
|
|
184
|
+
}
|
|
170
185
|
iconPath = iconPath.replace("/Game/Art/UI/GameUI/Resource/GameUI_Icon/Skill_Icon_DualBlader_2", "00008758");
|
|
171
186
|
iconPath = iconPath.replace("/Game/Art/UI/GameUI/Resource/GameUI_Icon/Skill_Icon_Shooter_2", "00008758");
|
|
172
187
|
iconPath = ReplacePoharanSS(iconPath);
|