xpdrop plugin: use script events instead of widget hidden

This also uses the default color enum to assign default xpdrop colors
instead of using our hardcoded enum.
This commit is contained in:
Adam
2020-07-09 13:04:48 -04:00
parent 9b65de74ee
commit 9fd36a600c
4 changed files with 69 additions and 138 deletions

View File

@@ -33,4 +33,5 @@ public final class EnumID
{
public static final int MUSIC_TRACK_NAMES = 812;
public static final int MUSIC_TRACK_IDS = 819;
public static final int XPDROP_COLORS = 1169;
}

View File

@@ -275,4 +275,13 @@ public final class ScriptID
*/
@ScriptArguments(integer = 2)
public static final int TOPLEVEL_REDRAW = 907;
/**
* Called to set position of an xpdrop text and sprite(s)
* <ul>
* <li> XP drop parent component </li>
* </ul>
*/
@ScriptArguments(integer = 4, string = 1)
public static final int XPDROPS_SETDROPSIZE = 996;
}