package org.rsbot.event.impl; import org.rsbot.bot.Bot; import org.rsbot.event.listeners.TextPaintListener; import org.rsbot.script.methods.Game; import org.rsbot.util.StringUtil; import java.awt.*; public class TLoginIndex implements TextPaintListener { private final Game game; public TLoginIndex(final Bot bot) { game = bot.getMethodContext().game; } public int drawLine(final Graphics render, int idx) { StringUtil.drawLine(render, idx++, "Client State: " + game.getClientState()); return idx; } }