Add Pager Item Index

This commit is contained in:
Olof Larsson 2015-02-17 10:40:15 +01:00
parent da5e1de456
commit 48a8e81113
3 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ public class CmdFactionsInviteList extends FactionsCommand
// Use Pager
List<String> messages = pager.getPageTxt(pageHumanBased, "Invited Players List", new Stringifier<MPlayer>(){
public String toString(MPlayer target)
public String toString(MPlayer target, int index)
{
// TODO: Madus would like to implement this in MPlayer
String targetName = target.getDisplayName(msender);

View File

@ -61,7 +61,7 @@ public class CmdFactionsList extends FactionsCommand
// Use Pager
List<String> messages = pager.getPageTxt(pageHumanBased, "Faction List", new Stringifier<Faction>() {
@Override
public String toString(Faction faction)
public String toString(Faction faction, int index)
{
if (faction.isNone())
{

View File

@ -69,7 +69,7 @@ public class CmdFactionsStatus extends FactionsCommand
List<String> messages = pager.getPageTxt(pageHumanBased, pagerTitle, new Stringifier<MPlayer>(){
@Override
public String toString(MPlayer mplayer)
public String toString(MPlayer mplayer, int index)
{
// Name
String displayName = mplayer.getNameAndSomething(msender.getColorTo(mplayer).toString(), "");