client: fix spec bar not updating with hide auto retaliate on

Move the widget listener from the auto retaliate text to the spec bar,
so when auto retaliate is hidden the listeners still function.
This commit is contained in:
Adam
2019-05-25 21:48:52 -04:00
committed by Adam
parent da260fb8b2
commit 2800a226a1
4 changed files with 32 additions and 0 deletions

View File

@@ -533,6 +533,7 @@ public class WidgetID
static final int SPELL_ICON = 27;
static final int SPELL_TEXT = 28;
static final int AUTO_RETALIATE = 29;
static final int SPEC_BAR = 34;
}
static class VolcanicMine

View File

@@ -313,6 +313,7 @@ public enum WidgetInfo
COMBAT_SPELL_ICON(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.SPELL_ICON),
COMBAT_SPELL_TEXT(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.SPELL_TEXT),
COMBAT_AUTO_RETALIATE(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.AUTO_RETALIATE),
COMBAT_SPEC_BAR(WidgetID.COMBAT_GROUP_ID, WidgetID.Combat.SPEC_BAR), // Used by CombatInterfaceSP.rs2asm
DIALOG_OPTION(WidgetID.DIALOG_OPTION_GROUP_ID, 0),