Starsector API
Loading...
Searching...
No Matches
TextPanelAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.characters.PersonAPI;
6import com.fs.starfarer.api.ui.LabelAPI;
7import com.fs.starfarer.api.ui.TooltipMakerAPI;
8import com.fs.starfarer.api.util.Highlights;
9
10public interface TextPanelAPI {
11
16
17 LabelAPI addPara(String text);
18 LabelAPI addPara(String text, Color color);
19 LabelAPI addParagraph(String text);
20 LabelAPI addParagraph(String text, Color color);
21 void replaceLastParagraph(String text);
22 void replaceLastParagraph(String text, Color color);
23 void appendToLastParagraph(String text);
24 void appendToLastParagraph(int charsToCut, String text);
25
26 void highlightFirstInLastPara(String text, Color color);
27 void highlightLastInLastPara(String text, Color color);
28 void highlightInLastPara(Color color, String ...strings);
29
34 void highlightInLastPara(String ...strings);
35 void setHighlightColorsInLastPara(Color ...colors);
36 void clear();
37
39 boolean isOrbitronMode();
40 void setOrbitronMode(boolean orbitronMode);
41 ResourceCostPanelAPI addCostPanel(String title, float height, Color color, Color dark);
42 void setHighlightsInLastPara(Highlights h);
43 LabelAPI addPara(String format, Color color, Color hl, String ... highlights);
44 LabelAPI addPara(String format, Color hl, String ... highlights);
45
46 void advance(float amount);
47
48 TooltipMakerAPI beginTooltip();
49 void addTooltip();
50 void updateSize();
51 boolean addCostPanel(String title, Color color, Color dark, Object ... params);
52 boolean addCostPanel(String title, Object ... params);
53 void addSkillPanel(PersonAPI person, boolean admin);
55 void addImage(String category, String key);
56 void addImage(String spriteName);
57}
void highlightFirstInLastPara(String text, Color color)
void highlightInLastPara(String ...strings)
void replaceLastParagraph(String text, Color color)
void setHighlightColorsInLastPara(Color ...colors)
void addSkillPanel(PersonAPI person, boolean admin)
LabelAPI addParagraph(String text, Color color)
ResourceCostPanelAPI addCostPanel(String title, float height, Color color, Color dark)
LabelAPI addPara(String format, Color color, Color hl, String ... highlights)
LabelAPI addPara(String format, Color hl, String ... highlights)
boolean addCostPanel(String title, Color color, Color dark, Object ... params)
void appendToLastParagraph(int charsToCut, String text)
LabelAPI addPara(String text, Color color)
void addImage(String category, String key)
void setOrbitronMode(boolean orbitronMode)
boolean addCostPanel(String title, Object ... params)
void highlightInLastPara(Color color, String ...strings)
void highlightLastInLastPara(String text, Color color)