Skip to content

Commit

Permalink
Merge pull request runelite#10967 from abextm/gauntlet-timer-movable
Browse files Browse the repository at this point in the history
runelite-client: Make gauntlet timer layoutable
  • Loading branch information
deathbeam authored Mar 6, 2020
2 parents 128c43b + 5143259 commit ca622d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public class WidgetID
public static final int LMS_INGAME_GROUP_ID = 328;
public static final int ADVENTURE_LOG_ID = 187;
public static final int COUNTERS_LOG_GROUP_ID = 625;
public static final int GAUNTLET_TIMER_GROUP_ID = 637;

static class WorldMap
{
Expand Down Expand Up @@ -886,4 +887,9 @@ static class CountersLog
static final int OWNER = 4;
static final int TEXT = 6;
}

static class GauntletTimer
{
static final int CONTAINER = 2;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,9 @@ public enum WidgetInfo

ACHIEVEMENT_DIARY_CONTAINER(WidgetID.ACHIEVEMENT_DIARY_GROUP_ID, WidgetID.AchievementDiary.CONTAINER),

SKILLS_CONTAINER(WidgetID.SKILLS_GROUP_ID, WidgetID.Skills.CONTAINER);
SKILLS_CONTAINER(WidgetID.SKILLS_GROUP_ID, WidgetID.Skills.CONTAINER),

GAUNTLET_TIMER_CONTAINER(WidgetID.GAUNTLET_TIMER_GROUP_ID, WidgetID.GauntletTimer.CONTAINER);

private final int groupId;
private final int childId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public class WidgetOverlay extends Overlay
.put(WidgetInfo.PYRAMID_PLUNDER_DATA, OverlayPosition.TOP_CENTER)
.put(WidgetInfo.LMS_INFO, OverlayPosition.TOP_CENTER)
.put(WidgetInfo.LMS_KDA, OverlayPosition.TOP_CENTER)
.put(WidgetInfo.GAUNTLET_TIMER_CONTAINER, OverlayPosition.TOP_LEFT)
.build();

public static Collection<WidgetOverlay> createOverlays(final Client client)
Expand Down

0 comments on commit ca622d2

Please sign in to comment.