quest list plugin: add not completed filter
This commit is contained in:
committed by
Tomas Slusny
parent
40ee0fede2
commit
7b7ac8ff93
@@ -357,7 +357,14 @@ public class QuestListPlugin extends Plugin
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Otherwise hide if it doesn't match the filter state
|
// Otherwise hide if it doesn't match the filter state
|
||||||
hidden = currentFilterState != QuestState.ALL && questState != currentFilterState;
|
if (currentFilterState == QuestState.NOT_COMPLETED)
|
||||||
|
{
|
||||||
|
hidden = questState == QuestState.COMPLETE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
hidden = currentFilterState != QuestState.ALL && questState != currentFilterState;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
quest.setHidden(hidden);
|
quest.setHidden(hidden);
|
||||||
@@ -391,7 +398,8 @@ public class QuestListPlugin extends Plugin
|
|||||||
NOT_STARTED(0xff0000, "Not started", SpriteID.MINIMAP_ORB_HITPOINTS),
|
NOT_STARTED(0xff0000, "Not started", SpriteID.MINIMAP_ORB_HITPOINTS),
|
||||||
IN_PROGRESS(0xffff00, "In progress", SpriteID.MINIMAP_ORB_HITPOINTS_DISEASE),
|
IN_PROGRESS(0xffff00, "In progress", SpriteID.MINIMAP_ORB_HITPOINTS_DISEASE),
|
||||||
COMPLETE(0xdc10d, "Completed", SpriteID.MINIMAP_ORB_HITPOINTS_POISON),
|
COMPLETE(0xdc10d, "Completed", SpriteID.MINIMAP_ORB_HITPOINTS_POISON),
|
||||||
ALL(0, "All", SpriteID.MINIMAP_ORB_PRAYER);
|
ALL(0, "All", SpriteID.MINIMAP_ORB_PRAYER),
|
||||||
|
NOT_COMPLETED(0, "Not Completed", SpriteID.MINIMAP_ORB_RUN);
|
||||||
|
|
||||||
private final int color;
|
private final int color;
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|||||||
Reference in New Issue
Block a user