Customize Hovercard
Scripting customization of the hovercard.
Basic Description Customization
using Esper.SkillWeb.UI.UGUI;
public class MyHovercard : SkillHovercardUGUI
{
public override bool Open(SkillNodeUGUI target)
{
// Get the result from the base method (simply a check to see if the hovercard was successfully opened)
var result = base.Open(target);
if (result)
{
// Get data from a custom dataset
var dataset = target.skillNode.skill.dataset as MyDataset;
// Extend the description
descriptionLabel.text += $"\n\nAttack: {dataset.attack}";
}
return result;
}
}Resizing
Customize Height
Example
Last updated