Merge pull request #5753 from deathbeam/fix-screenshot-plugin-access-modifiers

Fix screenshot plugin access levels
This commit is contained in:
Tomas Slusny
2018-10-02 20:48:24 +02:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ import net.runelite.client.ui.overlay.OverlayLayer;
import net.runelite.client.ui.overlay.OverlayPosition; import net.runelite.client.ui.overlay.OverlayPosition;
import net.runelite.client.ui.overlay.OverlayPriority; import net.runelite.client.ui.overlay.OverlayPriority;
public class ScreenshotOverlay extends Overlay class ScreenshotOverlay extends Overlay
{ {
private static final DateFormat DATE_FORMAT = new SimpleDateFormat("MMM. dd, yyyy"); private static final DateFormat DATE_FORMAT = new SimpleDateFormat("MMM. dd, yyyy");
private static final int REPORT_BUTTON_X_OFFSET = 404; private static final int REPORT_BUTTON_X_OFFSET = 404;
@@ -59,7 +59,7 @@ public class ScreenshotOverlay extends Overlay
private final Queue<Consumer<Image>> consumers = new ConcurrentLinkedQueue<>(); private final Queue<Consumer<Image>> consumers = new ConcurrentLinkedQueue<>();
@Inject @Inject
public ScreenshotOverlay(Client client, DrawManager drawManager, ScreenshotPlugin plugin) private ScreenshotOverlay(Client client, DrawManager drawManager, ScreenshotPlugin plugin)
{ {
setPosition(OverlayPosition.DYNAMIC); setPosition(OverlayPosition.DYNAMIC);
setPriority(OverlayPriority.HIGH); setPriority(OverlayPriority.HIGH);
@@ -110,7 +110,7 @@ public class ScreenshotOverlay extends Overlay
return null; return null;
} }
public void queueForTimestamp(Consumer<Image> screenshotConsumer) void queueForTimestamp(Consumer<Image> screenshotConsumer)
{ {
if (plugin.getReportButton() == null) if (plugin.getReportButton() == null)
{ {

View File

@@ -502,7 +502,7 @@ public class ScreenshotPlugin extends Plugin
* *
* @param fileName Filename to use, without file extension. * @param fileName Filename to use, without file extension.
*/ */
void takeScreenshot(String fileName) private void takeScreenshot(String fileName)
{ {
if (client.getGameState() == GameState.LOGIN_SCREEN) if (client.getGameState() == GameState.LOGIN_SCREEN)
{ {