net.runelite.client.ui.overlay.OverlayPosition Java Examples
The following examples show how to use
net.runelite.client.ui.overlay.OverlayPosition.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: PortalWeaknessOverlay.java From plugins with GNU General Public License v3.0 | 6 votes |
@Inject PortalWeaknessOverlay( final PestControlPlugin plugin, final Client client, final ItemManager itemManager, final SkillIconManager skillIconManager ) { this.plugin = plugin; this.client = client; this.magicImage = skillIconManager.getSkillImage(Skill.MAGIC); this.rangedImage = skillIconManager.getSkillImage(Skill.RANGED); this.stabImage = itemManager.getImage(ItemID.WHITE_DAGGER); this.slashImage = itemManager.getImage(ItemID.WHITE_SCIMITAR); this.crushImage = itemManager.getImage(ItemID.WHITE_WARHAMMER); setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.UNDER_WIDGETS); }
Example #2
Source File: OpponentInfoOverlay.java From plugins with GNU General Public License v3.0 | 6 votes |
@Inject private OpponentInfoOverlay( final OpponentInfoPlugin opponentInfoPlugin, final OpponentInfoConfig opponentInfoConfig) { super(opponentInfoPlugin); this.opponentInfoPlugin = opponentInfoPlugin; this.opponentInfoConfig = opponentInfoConfig; setPosition(OverlayPosition.TOP_LEFT); setPriority(OverlayPriority.HIGH); panelComponent.setBorder(new Rectangle(2, 2, 2, 2)); panelComponent.setGap(new Point(0, 2)); getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY_CONFIG, OPTION_CONFIGURE, "Opponent info overlay")); }
Example #3
Source File: KourendLibraryTutorialOverlay.java From plugins with GNU General Public License v3.0 | 6 votes |
@Inject private KourendLibraryTutorialOverlay(Client client, KourendLibraryConfig config, Library library) { this.client = client; this.config = config; this.library = library; panelComponent.setPreferredSize(new Dimension(177, 0)); noDataMessageComponent = LineComponent.builder().left("Click on the white squares to start finding books.").build(); incompleteMessageComponent = LineComponent.builder().left("Some books have been found. Keep checking marked bookcases to find more.").build(); completeMessageComponent = LineComponent.builder().left("All books found.").build(); sidebarMessageComponent = LineComponent.builder().left("Locations are in the sidebar.").build(); setPriority(OverlayPriority.LOW); setPosition(OverlayPosition.TOP_LEFT); }
Example #4
Source File: PerformanceStatsOverlay.java From plugins with GNU General Public License v3.0 | 6 votes |
@Inject PerformanceStatsOverlay(final PerformanceStatsPlugin tracker) { super(tracker); setPosition(OverlayPosition.TOP_RIGHT); setPriority(OverlayPriority.LOW); this.tracker = tracker; getMenuEntries().add(new OverlayMenuEntry(MenuOpcode.RUNELITE_OVERLAY, "Pause", TARGET)); getMenuEntries().add(new OverlayMenuEntry(MenuOpcode.RUNELITE_OVERLAY, "Reset", TARGET)); getMenuEntries().add(new OverlayMenuEntry(MenuOpcode.RUNELITE_OVERLAY, "Submit", TARGET)); panelComponent.setPreferredSize(new Dimension(350, 0)); panelComponent.setBackgroundColor(ComponentConstants.STANDARD_BACKGROUND_COLOR); tableComponent.setDefaultAlignment(TableAlignment.CENTER); tableComponent.setColumns(COLUMNS); panelComponent.getChildren().add(tableComponent); }
Example #5
Source File: ScreenMarkerOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
ScreenMarkerOverlay(@NonNull ScreenMarker marker) { this.marker = marker; this.screenMarkerRenderable = new ScreenMarkerRenderable(); setPosition(OverlayPosition.DETACHED); setLayer(OverlayLayer.ALWAYS_ON_TOP); setPriority(OverlayPriority.HIGH); setResizable(true); setResettable(false); }
Example #6
Source File: TileIndicatorsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private TileIndicatorsOverlay(final Client client, final TileIndicatorsConfig config) { this.client = client; this.config = config; setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); setPriority(OverlayPriority.MED); }
Example #7
Source File: CorpDamageOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private CorpDamageOverlay(final Client client, final CorpPlugin corpPlugin, final CorpConfig config) { super(corpPlugin); setPosition(OverlayPosition.TOP_LEFT); setLayer(OverlayLayer.UNDER_WIDGETS); setPriority(OverlayPriority.LOW); this.client = client; this.corpPlugin = corpPlugin; this.config = config; getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY_CONFIG, OPTION_CONFIGURE, "Corp overlay")); }
Example #8
Source File: PrayerBarOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private PrayerBarOverlay(final Client client, final PrayerPlugin plugin, final PrayerConfig config) { this.client = client; this.plugin = plugin; this.config = config; setPosition(OverlayPosition.DYNAMIC); setPriority(OverlayPriority.HIGH); setLayer(OverlayLayer.ABOVE_SCENE); }
Example #9
Source File: MTASceneOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject public MTASceneOverlay(final MTAPlugin plugin) { this.plugin = plugin; setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); }
Example #10
Source File: BankGridOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private BankGridOverlay(InventoryGridConfig config, Client client, ItemManager itemManager, InventoryGridPlugin plugin) { this.plugin = plugin; this.itemManager = itemManager; this.client = client; this.config = config; setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_WIDGETS); }
Example #11
Source File: AttackStylesOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private AttackStylesOverlay(final AttackStylesPlugin plugin, final AttackStylesConfig config) { super(plugin); setPosition(OverlayPosition.ABOVE_CHATBOX_RIGHT); this.plugin = plugin; this.config = config; getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY_CONFIG, OPTION_CONFIGURE, "Attack style overlay")); }
Example #12
Source File: RaidsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private RaidsOverlay(final Client client, final RaidsPlugin plugin, final RaidsConfig config, final ItemManager itemManager, final SpriteManager spriteManager) { super(plugin); setPosition(OverlayPosition.TOP_LEFT); setPriority(OverlayPriority.LOW); this.client = client; this.plugin = plugin; this.config = config; this.itemManager = itemManager; this.spriteManager = spriteManager; getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY_CONFIG, OPTION_CONFIGURE, "Raids overlay")); getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY, BROADCAST_ACTION, "Raids overlay")); }
Example #13
Source File: CannonSpotOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject CannonSpotOverlay(final Client client, final CannonPlugin plugin, final CannonConfig config) { setPosition(OverlayPosition.DYNAMIC); this.client = client; this.plugin = plugin; this.config = config; }
Example #14
Source File: ChestOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private ChestOverlay(final Client client, final ThievingPlugin plugin) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); this.respawns = plugin.getRespawns(); this.client = client; }
Example #15
Source File: ItemPricesOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject ItemPricesOverlay(final Client client, final ItemPricesConfig config, final TooltipManager tooltipManager) { setPosition(OverlayPosition.DYNAMIC); this.client = client; this.config = config; this.tooltipManager = tooltipManager; }
Example #16
Source File: ImplingCounterOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject public ImplingCounterOverlay(final ImplingsPlugin plugin, final ImplingsConfig config) { this.plugin = plugin; this.config = config; setPosition(OverlayPosition.TOP_LEFT); }
Example #17
Source File: GroundItemsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private GroundItemsOverlay(final Client client, final GroundItemsPlugin plugin, final GroundItemsConfig config) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); this.client = client; this.plugin = plugin; this.config = config; this.textComponent.setAlpha(true); }
Example #18
Source File: ItemRecoilOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject public ItemRecoilOverlay(final ItemChargePlugin plugin, final ItemChargeConfig config) { setPosition(OverlayPosition.TOP_LEFT); this.plugin = plugin; this.config = config; }
Example #19
Source File: InventoryViewerOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private InventoryViewerOverlay(Client client, ItemManager itemManager) { setPosition(OverlayPosition.BOTTOM_RIGHT); panelComponent.setWrap(true); panelComponent.setGap(new Point(6, 4)); panelComponent.setPreferredSize(new Dimension(4 * (Constants.ITEM_SPRITE_WIDTH + 6), 0)); panelComponent.setOrientation(ComponentOrientation.HORIZONTAL); this.itemManager = itemManager; this.client = client; }
Example #20
Source File: SpawnTimerOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject SpawnTimerOverlay(final SpawnTimerPlugin plugin, final SpawnTimerConfig config) { this.plugin = plugin; this.config = config; setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); }
Example #21
Source File: XpDropOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private XpDropOverlay(final XpDropPlugin plugin, final XpDropConfig config) { this.plugin = plugin; this.config = config; setPosition(OverlayPosition.DYNAMIC); setPriority(OverlayPriority.MED); }
Example #22
Source File: HerbiboarOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject public HerbiboarOverlay(HerbiboarPlugin plugin, HerbiboarConfig config) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); this.plugin = plugin; this.config = config; }
Example #23
Source File: HerbiboarMinimapOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject public HerbiboarMinimapOverlay(HerbiboarPlugin plugin, HerbiboarConfig config) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_WIDGETS); this.plugin = plugin; this.config = config; }
Example #24
Source File: SmeltingOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject SmeltingOverlay(final Client client, final SmeltingPlugin plugin, final XpTrackerService xpTrackerService) { super(plugin); this.client = client; this.plugin = plugin; this.xpTrackerService = xpTrackerService; setPosition(OverlayPosition.TOP_LEFT); getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY_CONFIG, OPTION_CONFIGURE, "Smelting overlay")); getMenuEntries().add(new OverlayMenuEntry(RUNELITE_OVERLAY, SMELTING_RESET, "Smelting overlay")); }
Example #25
Source File: ZalcanoStepsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject ZalcanoStepsOverlay(final Client client, final ZalcanoPlugin plugin, final ZalcanoConfig config) { super(plugin); setPosition(OverlayPosition.TOP_LEFT); this.client = client; this.config = config; this.plugin = plugin; }
Example #26
Source File: VirtualLevelsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private VirtualLevelsOverlay(Client client, DrawManager drawManager, VirtualLevelsPlugin plugin) { setPosition(OverlayPosition.DYNAMIC); setPriority(OverlayPriority.HIGH); setLayer(OverlayLayer.ABOVE_WIDGETS); this.client = client; this.drawManager = drawManager; this.plugin = plugin; }
Example #27
Source File: ObjectIndicatorsOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private ObjectIndicatorsOverlay(final Client client, final ObjectIndicatorsPlugin plugin, final ObjectIndicatorsConfig config, final ModelOutlineRenderer modelOutliner) { this.client = client; this.plugin = plugin; this.config = config; this.modelOutliner = modelOutliner; setPosition(OverlayPosition.DYNAMIC); setPriority(OverlayPriority.LOW); setLayer(OverlayLayer.ABOVE_SCENE); }
Example #28
Source File: ClueScrollWorldOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private ClueScrollWorldOverlay(ClueScrollPlugin plugin) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_SCENE); this.plugin = plugin; }
Example #29
Source File: ClueScrollEmoteOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private ClueScrollEmoteOverlay(ClueScrollPlugin plugin, Client client) { setPosition(OverlayPosition.DYNAMIC); setLayer(OverlayLayer.ABOVE_WIDGETS); this.plugin = plugin; this.client = client; }
Example #30
Source File: BlastFurnaceClickBoxOverlay.java From plugins with GNU General Public License v3.0 | 5 votes |
@Inject private BlastFurnaceClickBoxOverlay(final Client client, final BlastFurnacePlugin plugin, final BlastFurnaceConfig config) { setPosition(OverlayPosition.DYNAMIC); this.client = client; this.plugin = plugin; this.config = config; }