EN Hover Cards and Info Bar - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어

Hover Cards and Info Bar

Card on hover

World-hover card supports:

  • characters and creatures;
  • objects in the world;
  • backpack and nested containers;
  • equipped items and paperdoll;
  • static, multi and land tiles.

Card settings

  • delayed appearance;
  • horizontal row or vertical column;
  • background color and transparency;
  • font, size, color and transparency of text;
  • automatic width according to actual content;
  • selecting which fields to display.

Available fields include name, serial, graphic/body/tile ID, hue, amount, XYZ, container and layer. Items can also display the OPL properties that the server actually sent to the client.

Server name

For a serial object, the client can make a secure single name request after a hover delay. The result matches the signature that appears with a normal click. The request is limited in frequency: no more than once per object per 30 seconds within the current session.

For static, multi and land tile there is no server serial, so the available name from the client ones TileData is used. If there is no name, the card shows the type and ID.

Local item signature

The Label item... command allows you to save your own label up to 120 characters long:

  1. open world-hover/typography settings;
  2. click Label item...;
  3. select an item;
  4. enter signature.

An empty line removes the signature. This operation does not rename the item on the server; the value is stored only in the client profile by serial.

Properties of weapons and armor

The card can only show data available to the client:

  1. extended status/server data;
  2. server OPL item;
  3. known customer baseline data;
  4. N/A if no data available.

Hidden server properties that the server does not send cannot be retrieved. The client should not replace them with a guess.

Info Bar

Info Bar supports 25 character values ​​and safely calculates percentages. For ease of reading:

  • there is an external frame;
  • values ​​are separated by vertical boundaries;
  • the width of each cell is calculated based on the text;
  • the text should not go beyond the separator;
  • When the width is reduced, the values ​​are transferred or added to additional rows.

Weapon Damage range is displayed after equipping only if there is server or client data available. If the range cannot be determined, N/A is shown instead of a zero or an ellipsis.

Home · C# · IDE · API · Examples