001package com.fs.starfarer.api.impl.campaign.intel;
002
003import com.fs.starfarer.api.Global;
004import com.fs.starfarer.api.ui.TooltipMakerAPI;
005import com.fs.starfarer.api.util.Misc;
006
007/**
008 * "X new items" or whatnot message. Shown when enough new intel items would be added in a single frame that
009 * it would flood the player. 
010 * 
011 * @author Alex Mosolov
012 *
013 * Copyright 2018 Fractal Softworks, LLC
014 */
015public class NewMessagesIntel extends BaseIntelPlugin {
016        
017        private int num;
018
019        public NewMessagesIntel(int num) {
020                this.num = num;
021                
022        }
023        
024        @Override
025        public void createIntelInfo(TooltipMakerAPI info, ListInfoMode mode) {
026                //info.setParaSmallInsignia();
027                info.addPara("New intel (%s)", 0f, Misc.getTextColor(), Misc.getHighlightColor(), "" + num);
028                //info.setParaFontDefault();
029        }
030
031        public String getIcon() {
032                return Global.getSettings().getSpriteName("intel", "multipleNew");
033        }
034
035        @Override
036        public String getCommMessageSound() {
037                return super.getCommMessageSound();
038        }
039
040        
041        
042}
043
044
045
046
047
048
049
050