bnstooltips 1.14.3 → 1.15.1
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/Utilities/ISkill.d.ts +13 -0
- package/build/index.es.js +41 -1
- package/build/index.es.js.map +1 -1
- package/build/index.js +41 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -22,6 +22,19 @@ export interface Skill {
|
|
|
22
22
|
Item2: number;
|
|
23
23
|
};
|
|
24
24
|
RealCastCondition: RealCastCondition;
|
|
25
|
+
RealEffects: RealEffects;
|
|
26
|
+
}
|
|
27
|
+
export interface RealEffects {
|
|
28
|
+
Effects: {
|
|
29
|
+
[id: number]: RealEffect;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface RealEffect {
|
|
33
|
+
Id: number;
|
|
34
|
+
Alias: string;
|
|
35
|
+
Name: string;
|
|
36
|
+
Description: string;
|
|
37
|
+
EffectType: string;
|
|
25
38
|
}
|
|
26
39
|
export interface RealCastCondition {
|
|
27
40
|
Id: number;
|
package/build/index.es.js
CHANGED
|
@@ -8303,6 +8303,7 @@ function SkillTooltip(_a) {
|
|
|
8303
8303
|
if (debug) {
|
|
8304
8304
|
AddIds(tooltipBaseProps.subInfoGroups, skill);
|
|
8305
8305
|
AddRealCastConds(tooltipBaseProps.subInfoGroups, skill);
|
|
8306
|
+
AddRealEffects(tooltipBaseProps.subInfoGroups, skill);
|
|
8306
8307
|
}
|
|
8307
8308
|
}
|
|
8308
8309
|
return React.createElement(TooltipBase, __assign({}, tooltipBaseProps));
|
|
@@ -8419,6 +8420,41 @@ function AddIds(subInfoGroups, skill) {
|
|
|
8419
8420
|
}
|
|
8420
8421
|
subInfoGroups.push(subInfoGroup);
|
|
8421
8422
|
}
|
|
8423
|
+
function AddRealEffects(subInfoGroups, skill) {
|
|
8424
|
+
var realEffects = skill.RealEffects;
|
|
8425
|
+
if (realEffects == undefined || realEffects == null)
|
|
8426
|
+
return;
|
|
8427
|
+
for (var key in realEffects.Effects) {
|
|
8428
|
+
var realEffect = realEffects.Effects[key];
|
|
8429
|
+
var subInfoGroup = {
|
|
8430
|
+
title: "Effect: " + realEffect.Alias,
|
|
8431
|
+
texts: []
|
|
8432
|
+
};
|
|
8433
|
+
var texts = [
|
|
8434
|
+
React.createElement("div", null,
|
|
8435
|
+
"Id: ",
|
|
8436
|
+
React.createElement(BlueColoredText, { text: realEffect.Id.toString() })),
|
|
8437
|
+
React.createElement("div", null,
|
|
8438
|
+
"Alias: ",
|
|
8439
|
+
React.createElement(BlueColoredText, { text: realEffect.Alias })),
|
|
8440
|
+
React.createElement("div", null,
|
|
8441
|
+
"Effect type: ",
|
|
8442
|
+
React.createElement(BlueColoredText, { text: realEffect.EffectType }))
|
|
8443
|
+
];
|
|
8444
|
+
if (realEffect.Name != null && realEffect.Name != "") {
|
|
8445
|
+
texts.push(React.createElement("div", null,
|
|
8446
|
+
"Name: ",
|
|
8447
|
+
React.createElement(BlueColoredText, { text: realEffect.Name })));
|
|
8448
|
+
}
|
|
8449
|
+
if (realEffect.Description != null && realEffect.Description != "") {
|
|
8450
|
+
texts.push(React.createElement("div", null,
|
|
8451
|
+
"Description: ",
|
|
8452
|
+
React.createElement(BlueColoredTextDangerous, { text: realEffect.Description })));
|
|
8453
|
+
}
|
|
8454
|
+
subInfoGroup.texts = texts;
|
|
8455
|
+
subInfoGroups.push(subInfoGroup);
|
|
8456
|
+
}
|
|
8457
|
+
}
|
|
8422
8458
|
function AddRealCastConds(subInfoGroups, skill) {
|
|
8423
8459
|
var realCastCondition = skill.RealCastCondition;
|
|
8424
8460
|
if (realCastCondition == undefined || realCastCondition == null)
|
|
@@ -8498,6 +8534,10 @@ function AddRealCastConds(subInfoGroups, skill) {
|
|
|
8498
8534
|
if (subInfoGroup4 != null)
|
|
8499
8535
|
subInfoGroups.push(subInfoGroup4);
|
|
8500
8536
|
}
|
|
8537
|
+
function BlueColoredTextDangerous(_a) {
|
|
8538
|
+
var text = _a.text;
|
|
8539
|
+
return (React.createElement("span", { className: "tooltipArg", dangerouslySetInnerHTML: { __html: text } }));
|
|
8540
|
+
}
|
|
8501
8541
|
function BlueColoredText(_a) {
|
|
8502
8542
|
var text = _a.text;
|
|
8503
8543
|
return (React.createElement("span", { className: "tooltipArg" }, text));
|
|
@@ -8530,7 +8570,7 @@ var SkillTooltipWrapper = function (_a) {
|
|
|
8530
8570
|
}, []);
|
|
8531
8571
|
return (React.createElement(React.Fragment, null,
|
|
8532
8572
|
children,
|
|
8533
|
-
childRef ? (React.createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && !interactive, appendTo: document.body, placement: placement, animation: "fade", interactive: interactive, content: React.createElement(SkillTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
8573
|
+
childRef ? (React.createElement(Tippy, { arrow: showArrow, trigger: trigger, plugins: [followCursor], followCursor: followCursor$1 && (!interactive && !debug), appendTo: document.body, placement: placement, animation: "fade", interactive: interactive || debug, content: React.createElement(SkillTooltip, { data: data, debug: debug }), theme: "grade" + 4, reference: childRef })) : (React.createElement("span", { "data-testid": "TooltipWrapper", ref: spanRef, style: { display: "none" } }))));
|
|
8534
8574
|
};
|
|
8535
8575
|
|
|
8536
8576
|
var ServerRegion;
|