tmorph: fix panel sizing.

This commit is contained in:
Ganom
2020-01-15 16:25:42 -05:00
parent 7801d209f8
commit e267006532
3 changed files with 3 additions and 8 deletions

View File

@@ -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());
}
}

View File

@@ -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(

View File

@@ -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());