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.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();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user