Starsector API
Loading...
Searching...
No Matches
PLTextEntry.java
Go to the documentation of this file.
1package com.fs.starfarer.api.impl.campaign.plog;
2
3import java.awt.Color;
4
5import com.fs.starfarer.api.util.Misc;
6
7public class PLTextEntry extends BasePLEntry {
8
9 protected Boolean story = null;
10
11 public PLTextEntry(String text) {
12 super(text);
13 }
14
15 public PLTextEntry(String text, boolean story) {
16 super(text);
17 this.story = story;
18 }
19
20 @Override
21 public Color getColor() {
22 if (story != null && story) {
23 return Misc.getStoryOptionColor();
24 }
25 return super.getColor();
26 }
27
28}