Exemplo n.º 1
0
 protected MiniMapOverlay(MiniMap minimap, MiniMapOverlayDef overlayDef)
 {
     this.minimap    = minimap;
     this.overlayDef = overlayDef;
     _hidden         = overlayDef.hiddenByDefault;
     dirty           = true;
 }
 protected MiniMapOverlay( MiniMap minimap, MiniMapOverlayDef overlayDef )
 {
     this.minimap = minimap;
     this.overlayDef = overlayDef;
     _hidden = overlayDef.hiddenByDefault;
     dirty = true;
 }
Exemplo n.º 3
0
        public MiniMapOverlay_Area(MiniMap minimap, MiniMapOverlayDef def, Area area) : base(minimap, def)
        {
            this.area = area;

            // initial update
            Update();
            texture.Apply();
        }
Exemplo n.º 4
0
        private void MinimapHeader(Listing_Standard listing, MiniMap.MiniMap minimap)
        {
            var str = minimap.LabelCap;

            listing.DoLabel(str);
            listing.DoGap(6);
            listing.Indent();
        }
Exemplo n.º 5
0
 private bool                    ShouldUpdateMiniMap(MiniMap minimap)
 {
     return(
         (minimap.dirty) ||
         (
             (minimap.miniMapDef.updateInterval > 0) &&
             ((Time.frameCount + minimap.GetHashCode()) % minimap.miniMapDef.updateInterval == 0)
         )
         );
 }
Exemplo n.º 6
0
        private void MinimapHeader(Listing_Standard listing, MiniMap.MiniMap minimap)
        {
            var str = minimap.LabelCap;

            if (!string.IsNullOrEmpty(str))
            {
                listing.Label(str);
                listing.Gap(6);
            }
            listing.Indent();
        }
 public MiniMapOverlay_SecurityCameras( MiniMap minimap, MiniMapOverlayDef overlayDef )
     : base(minimap, overlayDef)
 {
     unmonitoredColor = new Color( 0.125f, 0.125f, 0.0f, 1.0f );
     unmonitoredInput = new LabeledInput_Color(
         this.unmonitoredColor,
         Data.Strings.OverlayUnmonitoredColor.Translate(),
         Data.Strings.OverlayUnmonitoredColorTip.Translate()
     );
     monitoredColor = new Color( 0.25f, 0.25f, 0.0f, 1.0f );
     monitoredInput = new LabeledInput_Color(
         this.monitoredColor,
         Data.Strings.OverlayMonitoredColor.Translate(),
         Data.Strings.OverlayMonitoredColorTip.Translate()
     );
 }
Exemplo n.º 8
0
 public MiniMapOverlay_Fog(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
 }
Exemplo n.º 9
0
 public MiniMapOverlay_ViewPort(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
     colorInput = new UI.LabeledInput_Color(color, "MiniMap.ViewPort.Color".Translate(), "MiniMap.ViewPort.ColorTip".Translate());
 }
Exemplo n.º 10
0
 public MiniMapOverlay_Wildlife(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
     CreateInputFields();
 }
 public MiniMapOverlay_ViewPort( MiniMap minimap, MiniMapOverlayDef overlayData )
     : base(minimap, overlayData)
 {
     colorInput = new UI.LabeledInput_Color( color, "MiniMap.ViewPort.Color".Translate(), "MiniMap.ViewPort.ColorTip".Translate() );
 }
 public MiniMapOverlay_Colonists(MiniMap minimap, MiniMapOverlayDef overlayDef) : base(minimap, overlayDef)
 {
     radiusInput = new UI.LabeledInput_Float(radius, "MiniMap.CP.Radius".Translate(), "MiniMap.CP.RadiusTip".Translate());
     colorInput  = new UI.LabeledInput_Color(color, "MiniMap.CP.Color".Translate(), "MiniMap.CP.ColorTip".Translate());
 }
 public MiniMapOverlay_NonColonistPawns( MiniMap minimap, MiniMapOverlayDef overlayDef )
     : base(minimap, overlayDef)
 {
     CreateInputFields();
 }
 public MiniMapOverlay_NonColonistPawns(MiniMap minimap, MiniMapOverlayDef overlayDef) : base(minimap, overlayDef)
 {
     CreateInputFields();
 }
 public MiniMapOverlay_Wildlife( MiniMap minimap, MiniMapOverlayDef overlayData )
     : base(minimap, overlayData)
 {
 }
 public MiniMapOverlay_Colonists( MiniMap minimap, MiniMapOverlayDef overlayDef )
     : base(minimap, overlayDef)
 {
     radiusInput = new UI.LabeledInput_Float( radius, "MiniMap.CP.Radius".Translate(), "MiniMap.CP.RadiusTip".Translate() );
     colorInput = new UI.LabeledInput_Color( color, "MiniMap.CP.Color".Translate(), "MiniMap.CP.ColorTip".Translate() );
 }
Exemplo n.º 17
0
 public MiniMapOverlay_PowerGrid(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
     CreateInputFields();
 }
Exemplo n.º 18
0
 public MiniMapOverlay_PowerGrid( MiniMap minimap, MiniMapOverlayDef overlayData )
     : base(minimap, overlayData)
 {
     CreateInputFields();
 }
Exemplo n.º 19
0
 public MiniMapOverlay_PlanningTool(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
     CreateInputFields();
 }
Exemplo n.º 20
0
 public MiniMapOverlay_Terrain(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
 }
 protected MiniMapOverlay_Pawns(MiniMap minimap, MiniMapOverlayDef overlayData) : base(minimap, overlayData)
 {
 }