Merge pull request #5358 from MagicfTail/Quest-Screenshot

Add Quest to quest screenshots
This commit is contained in:
Tomas Slusny
2018-09-07 18:19:53 +02:00
committed by GitHub

View File

@@ -273,7 +273,7 @@ public class ScreenshotPlugin extends Plugin
{ {
// "You have completed The Corsair Curse!" // "You have completed The Corsair Curse!"
String text = client.getWidget(WidgetInfo.QUEST_COMPLETED_NAME_TEXT).getText(); String text = client.getWidget(WidgetInfo.QUEST_COMPLETED_NAME_TEXT).getText();
fileName = text.substring(19, text.length() - 1); fileName = "Quest(" + text.substring(19, text.length() - 1) + ")";
} }
if (fileName != null) if (fileName != null)