001package com.fs.starfarer.api.ui;
002
003import java.awt.Color;
004
005import com.fs.starfarer.api.campaign.CustomUIPanelPlugin;
006
007public interface CustomPanelAPI extends UIPanelAPI {
008
009        CustomPanelAPI createCustomPanel(float width, float height, CustomUIPanelPlugin plugin);
010
011        TooltipMakerAPI createUIElement(float width, float height, boolean withScroller);
012        PositionAPI addUIElement(TooltipMakerAPI element);
013        
014        CustomUIPanelPlugin getPlugin();
015        
016        
017        /**
018         * Returns the intel UI; only works when creating large intel descriptions.
019         * @return
020         */
021        IntelUIAPI getIntelUI();
022
023        UIPanelAPI wrapTooltipWithBox(TooltipMakerAPI tooltip);
024        UIPanelAPI wrapTooltipWithBox(TooltipMakerAPI tooltip, Color color);
025        UIPanelAPI wrapTooltipWithBox(TooltipMakerAPI tooltip, float padLeft, float padRight, float padBelow, float padAbove, Color color);
026
027        void updateUIElementSizeAndMakeItProcessInput(TooltipMakerAPI element);
028
029}