Created dummy GuiOverlayElement interface for ComposedElement to determine which Elements to draw last

Added methods to retrieve position and size from a GuiElement
Added draw() method with option to override hovered boolean to GuiElement interface and implemented it. This is required for GuiAdvancedButtons which would be tinted blue (as if hovered) even though an overlying GuiElement (e.g. GuiDropdown) was hovered
This commit is contained in:
CrushedPixel
2015-07-19 12:44:21 +02:00
parent 33bed3e6a5
commit 51814e143b
16 changed files with 323 additions and 22 deletions

View File

@@ -14,7 +14,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class GuiDropdown<T extends GuiEntryListEntry> extends GuiAdvancedTextField {
public class GuiDropdown<T extends GuiEntryListEntry> extends GuiAdvancedTextField implements GuiOverlayElement {
private final int visibleDropout;
private final int dropoutElementHeight = 14;