api: remove set/get game drawing mode
This is being moved internally
This commit is contained in:
@@ -908,20 +908,6 @@ public interface Client extends GameEngine
|
|||||||
*/
|
*/
|
||||||
long getOverallExperience();
|
long getOverallExperience();
|
||||||
|
|
||||||
/**
|
|
||||||
* Gets the game drawing mode.
|
|
||||||
*
|
|
||||||
* @return the game drawing mode
|
|
||||||
*/
|
|
||||||
int getGameDrawingMode();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Sets the games drawing mode.
|
|
||||||
*
|
|
||||||
* @param gameDrawingMode the new drawing mode
|
|
||||||
*/
|
|
||||||
void setGameDrawingMode(int gameDrawingMode);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Refreshes the chat.
|
* Refreshes the chat.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ import java.awt.BorderLayout;
|
|||||||
import java.awt.Color;
|
import java.awt.Color;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import net.runelite.api.Client;
|
|
||||||
import net.runelite.api.Constants;
|
import net.runelite.api.Constants;
|
||||||
|
|
||||||
final class ClientPanel extends JPanel
|
final class ClientPanel extends JPanel
|
||||||
@@ -48,13 +47,5 @@ final class ClientPanel extends JPanel
|
|||||||
}
|
}
|
||||||
|
|
||||||
add(client, BorderLayout.CENTER);
|
add(client, BorderLayout.CENTER);
|
||||||
|
|
||||||
// This causes the whole game frame to be redrawn each frame instead
|
|
||||||
// of only the viewport, so we can hook to MainBufferProvider#draw
|
|
||||||
// and draw anywhere without it leaving artifacts
|
|
||||||
if (client instanceof Client)
|
|
||||||
{
|
|
||||||
((Client)client).setGameDrawingMode(2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user