tmorph: fix panel sizing.
This commit is contained in:
@@ -26,7 +26,6 @@ package net.runelite.client.plugins.tmorph;
|
||||
import com.google.common.base.Splitter;
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import com.google.inject.Provides;
|
||||
import java.awt.Color;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
@@ -73,7 +72,6 @@ public class TMorph extends Plugin
|
||||
{
|
||||
@Getter(AccessLevel.PACKAGE)
|
||||
private static final Map<String, KitType> kit;
|
||||
private static final Color COLOR = new Color(10, 134, 74, 255);
|
||||
|
||||
static
|
||||
{
|
||||
@@ -157,10 +155,7 @@ public class TMorph extends Plugin
|
||||
{
|
||||
if (event.getGameState() == GameState.LOGIN_SCREEN)
|
||||
{
|
||||
clientThread.invokeLater(() ->
|
||||
{
|
||||
panel.populateSlots();
|
||||
});
|
||||
clientThread.invokeLater(() -> panel.populateSlots());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class EquipSlot extends JComboBox<ComboBoxIconEntry>
|
||||
super();
|
||||
this.kitType = kitType;
|
||||
this.boxMap = new LinkedHashMap<>();
|
||||
setPreferredSize(new Dimension(220, 42));
|
||||
setPreferredSize(new Dimension(200, 42));
|
||||
setBackground(ColorScheme.DARK_GRAY_COLOR);
|
||||
setRenderer(new ComboBoxListRenderer());
|
||||
original = new ComboBoxIconEntry(
|
||||
|
||||
@@ -168,7 +168,7 @@ public class TPanel extends PluginPanel
|
||||
captionPanel.add(caption);
|
||||
|
||||
equipPanel = new JPanel();
|
||||
equipPanel.setLayout(new GridLayout(15, 1, 1, 1));
|
||||
equipPanel.setLayout(new GridLayout(11, 1, 1, 1));
|
||||
addSlots();
|
||||
|
||||
containerPanel.setLayout(new BorderLayout());
|
||||
|
||||
Reference in New Issue
Block a user