Since i haven't seen tutorial about it i've decided to make one.
So this tutorial is for making some special tooltips, for ex. as set items have "This item is part of (set name)"
First off all, go to src\com\company\assembleegameclient\ui\tooltip\Equ ipmentToolTip.as
Search for:
Code:
if (this.objectXML.hasOwnProperty("Soulbound")) {
this.restrictions.push(new Restriction(TextKey.ITEM_SOULBOUND, 0xB3B3B3, false));
Copy it and past it under it and:
- Change "Soulbound" to "WhateverYouWant". Example: "Artifact"
- Replace TextKey.ITEM_SOULBOUND to ( then write something you want to it to say and end it with bracket. Example:
[CODE] this.restrictions.push(new Restriction(("Artifacts are the rarest items in realm"), 0xB3B3B3, false));
- Change 0xB3B3B3 to hex color what you want to that tooltip be. Ex. 8B1A1A
All should look like this:
Code:
if (this.objectXML.hasOwnProperty("Artifact")) {
this.restrictions.push(new Restriction(("Artifacts are the rarest items in realm"), 0x8B1A1A, false));
Almost end!
Then go to server to db\data\Descriptors.cs
Search for
Code:
Secret = elem.Element("Secret") != null;
and add under this
Code:
Artifact = elem.Element("Artifact") != null;
That's all.
Rebuild server and client, then to item add <Artifact/> and should work!
ALSO: I haven't tested it so don't be wrong if it won't work.