-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpawnDumperPanel.java
More file actions
40 lines (29 loc) · 1010 Bytes
/
SpawnDumperPanel.java
File metadata and controls
40 lines (29 loc) · 1010 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package net.runelite.client.plugins.spawndumper;
import java.awt.GridLayout;
import javax.inject.Inject;
import javax.swing.JPanel;
import net.runelite.client.ui.ColorScheme;
import net.runelite.client.ui.PluginPanel;
public class SpawnDumperPanel extends PluginPanel
{
private final SpawnDumperPlugin plugin;
@Inject
private SpawnDumperPanel(SpawnDumperPlugin plugin)
{
super();
this.plugin = plugin;
setBackground(ColorScheme.DARK_GRAY_COLOR);
add(createOptionsPanel());
}
private JPanel createOptionsPanel()
{
final JPanel container = new JPanel();
container.setBackground(ColorScheme.DARK_GRAY_COLOR);
container.setLayout(new GridLayout(0, 2, 3, 3));
container.add(plugin.getEnabled());
container.add(plugin.getSaveSpawns());
container.add(plugin.getLoadSpawns());
container.add(plugin.getClearSpawns());
return container;
}
}