Beispiel #1
0
 public override void LoadContent()
 {
     computers = new List <Texture2D>();
     computers.Add(TextureBank.load("Sprites/CompLogos/Sec0Computer", os.content));
     computers.Add(TextureBank.load("Sprites/CompLogos/Sec1Computer", os.content));
     computers.Add(TextureBank.load("Sprites/CompLogos/Computer", os.content));
     computers.Add(TextureBank.load("Sprites/CompLogos/OldServer", os.content));
     computers.Add(TextureBank.load("Sprites/CompLogos/Sec2Computer", os.content));
     computers.Add(TextureBank.load("Sprites/CompLogos/Sec2Computer", os.content));
     compAltIcons = new Dictionary <string, Texture2D>();
     compAltIcons.Add("laptop", TextureBank.load("Sprites/CompLogos/Laptop", os.content));
     compAltIcons.Add("chip", TextureBank.load("Sprites/CompLogos/chip", os.content));
     compAltIcons.Add("kellis", TextureBank.load("Sprites/CompLogos/KellisCompIcon", os.content));
     compAltIcons.Add("tablet", TextureBank.load("Sprites/CompLogos/Tablet", os.content));
     compAltIcons.Add("ePhone", TextureBank.load("Sprites/CompLogos/Phone1", os.content));
     compAltIcons.Add("ePhone2", TextureBank.load("Sprites/CompLogos/Phone2", os.content));
     defaultComputer   = TextureBank.load("Sprites/CompLogos/Computer", os.content);
     lockSprite        = TextureBank.load("Lock", os.content);
     openLockSprite    = TextureBank.load("OpenLock", os.content);
     fancyCornerSprite = TextureBank.load("Corner", os.content);
     fancyPanelSprite  = TextureBank.load("Panel", os.content);
     tmpRect           = new Rectangle();
     scroll            = Vector2.Zero;
     catScroll         = Vector2.Zero;
     WebRenderer.setSize(bounds.Width, bounds.Height);
 }
Beispiel #2
0
 public override void LoadContent()
 {
     this.computers = new List <Texture2D>();
     this.computers.Add(TextureBank.load("Sprites/CompLogos/Sec0Computer", this.os.content));
     this.computers.Add(TextureBank.load("Sprites/CompLogos/Sec1Computer", this.os.content));
     this.computers.Add(TextureBank.load("Sprites/CompLogos/Computer", this.os.content));
     this.computers.Add(TextureBank.load("Sprites/CompLogos/OldServer", this.os.content));
     this.computers.Add(TextureBank.load("Sprites/CompLogos/Sec2Computer", this.os.content));
     this.computers.Add(TextureBank.load("Sprites/CompLogos/Sec2Computer", this.os.content));
     this.compAltIcons = new Dictionary <string, Texture2D>();
     this.compAltIcons.Add("laptop", TextureBank.load("Sprites/CompLogos/Laptop", this.os.content));
     this.compAltIcons.Add("chip", TextureBank.load("Sprites/CompLogos/Chip", this.os.content));
     this.compAltIcons.Add("kellis", TextureBank.load("Sprites/CompLogos/KellisCompIcon", this.os.content));
     this.compAltIcons.Add("tablet", TextureBank.load("Sprites/CompLogos/Tablet", this.os.content));
     this.compAltIcons.Add("ePhone", TextureBank.load("Sprites/CompLogos/Phone1", this.os.content));
     this.compAltIcons.Add("ePhone2", TextureBank.load("Sprites/CompLogos/Phone2", this.os.content));
     if (DLC1SessionUpgrader.HasDLC1Installed)
     {
         this.compAltIcons.Add("Psylance", TextureBank.load("DLC/Sprites/Psylance", this.os.content));
         this.compAltIcons.Add("PacificAir", TextureBank.load("DLC/Sprites/PacificAir", this.os.content));
         this.compAltIcons.Add("Alchemist", TextureBank.load("DLC/Sprites/AlchemistsIcon", this.os.content));
         this.compAltIcons.Add("DLCLaptop", TextureBank.load("DLC/Icons/Laptop", this.os.content));
         this.compAltIcons.Add("DLCPC1", TextureBank.load("DLC/Icons/PC1", this.os.content));
         this.compAltIcons.Add("DLCPC2", TextureBank.load("DLC/Icons/PC2", this.os.content));
         this.compAltIcons.Add("DLCServer", TextureBank.load("DLC/Icons/Server", this.os.content));
     }
     this.defaultComputer   = TextureBank.load("Sprites/CompLogos/Computer", this.os.content);
     this.lockSprite        = TextureBank.load("Lock", this.os.content);
     this.openLockSprite    = TextureBank.load("OpenLock", this.os.content);
     this.fancyCornerSprite = TextureBank.load("Corner", this.os.content);
     this.fancyPanelSprite  = TextureBank.load("Panel", this.os.content);
     this.tmpRect           = new Rectangle();
     this.scroll            = Vector2.Zero;
     this.catScroll         = Vector2.Zero;
 }
Beispiel #3
0
 public static Texture2D White(ContentManager content)
 {
     if (white == null || white.IsDisposed)
     {
         white = TextureBank.load("Other\\white", content);
     }
     return(white);
 }
Beispiel #4
0
 public MissionHubServer(Computer c, string serviceName, string group, OS _os)
     : base(c, serviceName, _os)
 {
     groupName           = group;
     decorationPanel     = TextureBank.load("Sprites/HubDecoration", os.content);
     decorationPanelSide = TextureBank.load("Sprites/HubDecorationSide", os.content);
     lockIcon            = TextureBank.load("Lock", os.content);
 }
Beispiel #5
0
 public static void init(ContentManager content)
 {
     warningStripe = TextureBank.load("StripePattern", content);
     errorTile     = TextureBank.load("ErrorTile", content);
     binaryTile    = TextureBank.load("BinaryTile", content);
     thinStripe    = TextureBank.load("ThinStripe", content);
     star          = TextureBank.load("Sprites/Star", content);
 }
Beispiel #6
0
 public static void init(ContentManager content)
 {
     PatternDrawer.warningStripe = TextureBank.load("StripePattern", content);
     PatternDrawer.errorTile     = TextureBank.load("ErrorTile", content);
     PatternDrawer.binaryTile    = TextureBank.load("BinaryTile", content);
     PatternDrawer.thinStripe    = TextureBank.load("ThinStripe", content);
     PatternDrawer.star          = TextureBank.load("Sprites/Star", content);
     PatternDrawer.wipTile       = TextureBank.load("Sprites/WIPTile", content);
 }
Beispiel #7
0
 public ThemeChangerExe(Rectangle location, OS operatingSystem, string[] p)
     : base(location, operatingSystem)
 {
     this.name           = "ThemeSwitch";
     this.ramCost        = 320;
     this.IdentifierName = "Theme Switch";
     this.targetIP       = this.os.thisComputer.ip;
     this.circle         = TextureBank.load("Circle", this.os.content);
     AchievementsManager.Unlock("themeswitch_run", false);
 }
Beispiel #8
0
 public BoatMail(Computer c, string name, OS os)
     : base(c, name, os)
 {
     oddLine  = Color.White;
     evenLine = Color.White;
     setThemeColor(new Color(155, 155, 230));
     seperatorLineColor = new Color(22, 22, 22, 150);
     panel     = TextureBank.load("BoatmailHeader", os.content);
     logo      = TextureBank.load("BoatmailLogo", os.content);
     textColor = Color.Black;
 }
Beispiel #9
0
        public override void LoadContent()
        {
            ContentManager content = this.ScreenManager.Game.Content;

            this.top    = TextureBank.load("PopupFrame", content);
            this.mid    = TextureBank.load("PopupFrame", content);
            this.bottom = !this.ScreenManager.usingGamePad ? TextureBank.load("PopupBase", content) : TextureBank.load("PopupBase", content);
            float num = GuiData.font.MeasureString(this.message).Y + MessageBoxScreen.HEIGHT_BUFFER;

            this.topLeft       = new Vector2((float)((double)this.ScreenManager.GraphicsDevice.Viewport.Width / 2.0 - (double)this.top.Width / 2.0), (float)((double)this.ScreenManager.GraphicsDevice.Viewport.Height / 2.0 - (double)num / 2.0) - (float)this.top.Height);
            this.contentBounds = new Rectangle((int)this.topLeft.X, (int)this.topLeft.Y + this.top.Height, this.top.Width, (int)num);
            if (!this.hasEscGuide)
            {
                return;
            }
            this.guideFont = GuiData.font;
        }
Beispiel #10
0
        public override void LoadContent()
        {
            var content = ScreenManager.Game.Content;

            top    = TextureBank.load("PopupFrame", content);
            mid    = TextureBank.load("PopupFrame", content);
            bottom = !ScreenManager.usingGamePad
                ? TextureBank.load("PopupBase", content)
                : TextureBank.load("PopupBase", content);
            var num = GuiData.font.MeasureString(message).Y + HEIGHT_BUFFER;

            topLeft = new Vector2((float)(ScreenManager.GraphicsDevice.Viewport.Width / 2.0 - top.Width / 2.0),
                                  (float)(ScreenManager.GraphicsDevice.Viewport.Height / 2.0 - num / 2.0) - top.Height);
            contentBounds = new Rectangle((int)topLeft.X, (int)topLeft.Y + top.Height, top.Width, (int)num);
            if (!hasEscGuide)
            {
                return;
            }
            guideFont = GuiData.font;
        }
Beispiel #11
0
 public override void LoadContent()
 {
     this.label        = "Network Map";
     this.visibleNodes = new List <int>();
     if (OS.WillLoadSave || Settings.IsInExtensionMode)
     {
         this.nodes        = new List <Computer>();
         this.corporations = new List <Corporation>();
     }
     else if (this.os.multiplayer)
     {
         this.nodes        = this.generateNetwork(this.os);
         this.corporations = new List <Corporation>();
     }
     else
     {
         this.nodes = new List <Computer>();
         List <Computer> gameNodes = this.generateGameNodes();
         this.nodes.Clear();
         this.nodes.AddRange((IEnumerable <Computer>)gameNodes);
         if (Settings.isDemoMode)
         {
             this.nodes.AddRange((IEnumerable <Computer>) this.generateDemoNodes());
         }
         this.nodes.Insert(0, this.generateSPNetwork(this.os)[0]);
         this.corporations = this.generateCorporations();
     }
     this.nodeEffect            = new ConnectedNodeEffect(this.os);
     this.adminNodeEffect       = new ConnectedNodeEffect(this.os);
     this.adminNodeEffect.color = new Color(60, 65, 75, 19);
     this.circle                 = TextureBank.load("Circle", this.os.content);
     this.nodeCircle             = TextureBank.load("NodeCircle", this.os.content);
     this.adminNodeCircle        = TextureBank.load("AdminNodeCircle", this.os.content);
     this.homeNodeCircle         = TextureBank.load("HomeNodeCircle", this.os.content);
     this.targetNodeCircle       = TextureBank.load("TargetNodeCircle", this.os.content);
     this.assetServerNodeOverlay = TextureBank.load("AssetServerNodeOverlay", this.os.content);
     this.circleOutline          = TextureBank.load("CircleOutline", this.os.content);
     this.adminCircle            = TextureBank.load("AdminCircle", this.os.content);
     this.nodeGlow               = TextureBank.load("RadialGradient", this.os.content);
     this.circleOrigin           = new Vector2((float)(this.circleOutline.Width / 2), (float)(this.circleOutline.Height / 2));
 }
Beispiel #12
0
 public override void LoadContent()
 {
     label        = "Network Map";
     visibleNodes = new List <int>();
     if (OS.WillLoadSave)
     {
         nodes        = new List <Computer>();
         corporations = new List <Corporation>();
     }
     else if (os.multiplayer)
     {
         nodes        = generateNetwork(os);
         corporations = new List <Corporation>();
     }
     else
     {
         nodes = new List <Computer>();
         var list = generateGameNodes();
         nodes.Clear();
         nodes.AddRange(list);
         if (Settings.isDemoMode)
         {
             nodes.AddRange(generateDemoNodes());
         }
         nodes.Insert(0, generateSPNetwork(os)[0]);
         corporations = generateCorporations();
     }
     nodeEffect            = new ConnectedNodeEffect(os);
     adminNodeEffect       = new ConnectedNodeEffect(os);
     adminNodeEffect.color = new Color(60, 65, 75, 19);
     circle                 = TextureBank.load("Circle", os.content);
     nodeCircle             = TextureBank.load("NodeCircle", os.content);
     adminNodeCircle        = TextureBank.load("AdminNodeCircle", os.content);
     homeNodeCircle         = TextureBank.load("HomeNodeCircle", os.content);
     targetNodeCircle       = TextureBank.load("TargetNodeCircle", os.content);
     assetServerNodeOverlay = TextureBank.load("AssetServerNodeOverlay", os.content);
     circleOutline          = TextureBank.load("CircleOutline", os.content);
     adminCircle            = TextureBank.load("AdminCircle", os.content);
     nodeGlow               = TextureBank.load("RadialGradient", os.content);
     circleOrigin           = new Vector2(circleOutline.Width / 2, circleOutline.Height / 2);
 }
Beispiel #13
0
 public static void unload(Texture2D tex)
 {
     TextureBank.unloadWithoutRemoval(tex);
 }
Beispiel #14
0
 public TrailLoadingSpinnerEffect(OS operatingSystem)
 {
     this.circle = TextureBank.load("Circle", operatingSystem.content);
 }