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.base.Splitter;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import com.google.inject.Provides; import com.google.inject.Provides;
import java.awt.Color;
import java.awt.image.BufferedImage; import java.awt.image.BufferedImage;
import java.util.Arrays; import java.util.Arrays;
import java.util.HashMap; import java.util.HashMap;
@@ -73,7 +72,6 @@ public class TMorph extends Plugin
{ {
@Getter(AccessLevel.PACKAGE) @Getter(AccessLevel.PACKAGE)
private static final Map<String, KitType> kit; private static final Map<String, KitType> kit;
private static final Color COLOR = new Color(10, 134, 74, 255);
static static
{ {
@@ -157,10 +155,7 @@ public class TMorph extends Plugin
{ {
if (event.getGameState() == GameState.LOGIN_SCREEN) if (event.getGameState() == GameState.LOGIN_SCREEN)
{ {
clientThread.invokeLater(() -> clientThread.invokeLater(() -> panel.populateSlots());
{
panel.populateSlots();
});
} }
} }

View File

@@ -55,7 +55,7 @@ public class EquipSlot extends JComboBox<ComboBoxIconEntry>
super(); super();
this.kitType = kitType; this.kitType = kitType;
this.boxMap = new LinkedHashMap<>(); this.boxMap = new LinkedHashMap<>();
setPreferredSize(new Dimension(220, 42)); setPreferredSize(new Dimension(200, 42));
setBackground(ColorScheme.DARK_GRAY_COLOR); setBackground(ColorScheme.DARK_GRAY_COLOR);
setRenderer(new ComboBoxListRenderer()); setRenderer(new ComboBoxListRenderer());
original = new ComboBoxIconEntry( original = new ComboBoxIconEntry(

View File

@@ -168,7 +168,7 @@ public class TPanel extends PluginPanel
captionPanel.add(caption); captionPanel.add(caption);
equipPanel = new JPanel(); equipPanel = new JPanel();
equipPanel.setLayout(new GridLayout(15, 1, 1, 1)); equipPanel.setLayout(new GridLayout(11, 1, 1, 1));
addSlots(); addSlots();
containerPanel.setLayout(new BorderLayout()); containerPanel.setLayout(new BorderLayout());