mirror of
				https://gitgud.io/lutepickle/rjw_menstruation.git
				synced 2024-08-14 22:46:52 +00:00 
			
		
		
		
	Fix spelling of overay to overlay
This commit is contained in:
		
							parent
							
								
									6f3f3d28cf
								
							
						
					
					
						commit
						45d7fc2c59
					
				
					 4 changed files with 14 additions and 14 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
					@ -43,7 +43,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        private static Gizmo CreateGizmo_WombStatus(Pawn pawn, HediffComp_Menstruation comp)
 | 
					        private static Gizmo CreateGizmo_WombStatus(Pawn pawn, HediffComp_Menstruation comp)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Texture2D icon, icon_overay;
 | 
					            Texture2D icon, icon_overlay;
 | 
				
			||||||
            StringBuilder description = new StringBuilder();
 | 
					            StringBuilder description = new StringBuilder();
 | 
				
			||||||
            if (Configurations.Debug)
 | 
					            if (Configurations.Debug)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					@ -69,15 +69,15 @@ namespace RJW_Menstruation
 | 
				
			||||||
                    float gestationProgress = comp.StageProgress;
 | 
					                    float gestationProgress = comp.StageProgress;
 | 
				
			||||||
                    if (hediff is Hediff_BasePregnancy || hediff is HediffWithParents)
 | 
					                    if (hediff is Hediff_BasePregnancy || hediff is HediffWithParents)
 | 
				
			||||||
                    {
 | 
					                    {
 | 
				
			||||||
                        if (gestationProgress < 0.2f) icon_overay = comp.GetCumIcon();
 | 
					                        if (gestationProgress < 0.2f) icon_overlay = comp.GetCumIcon();
 | 
				
			||||||
                        else icon_overay = ContentFinder<Texture2D>.Get(("Womb/Empty"), true);
 | 
					                        else icon_overlay = ContentFinder<Texture2D>.Get(("Womb/Empty"), true);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else icon_overay = ContentFinder<Texture2D>.Get(("Womb/Empty"), true);
 | 
					                    else icon_overlay = ContentFinder<Texture2D>.Get(("Womb/Empty"), true);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    icon = comp.GetWombIcon();
 | 
					                    icon = comp.GetWombIcon();
 | 
				
			||||||
                    icon_overay = comp.GetCumIcon();
 | 
					                    icon_overlay = comp.GetCumIcon();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
| 
						 | 
					@ -91,7 +91,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
                {
 | 
					                {
 | 
				
			||||||
                    icon = comp.GetWombIcon();
 | 
					                    icon = comp.GetWombIcon();
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                icon_overay = comp.GetCumIcon();
 | 
					                icon_overlay = comp.GetCumIcon();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            foreach (string s in comp.GetCumsInfo) description.AppendFormat("{0}\n", s);
 | 
					            foreach (string s in comp.GetCumsInfo) description.AppendFormat("{0}\n", s);
 | 
				
			||||||
| 
						 | 
					@ -103,7 +103,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
                defaultLabel = pawn.LabelShort,
 | 
					                defaultLabel = pawn.LabelShort,
 | 
				
			||||||
                defaultDesc = description.ToString(),
 | 
					                defaultDesc = description.ToString(),
 | 
				
			||||||
                icon = icon,
 | 
					                icon = icon,
 | 
				
			||||||
                icon_overay = icon_overay,
 | 
					                icon_overlay = icon_overlay,
 | 
				
			||||||
                shrinkable = Configurations.AllowShrinkIcon,
 | 
					                shrinkable = Configurations.AllowShrinkIcon,
 | 
				
			||||||
                cumcolor = c,
 | 
					                cumcolor = c,
 | 
				
			||||||
                comp = comp,
 | 
					                comp = comp,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -462,8 +462,8 @@ namespace RJW_Menstruation
 | 
				
			||||||
            statvalue = Configurations.ImplantationChance * comp.ImplantChance;
 | 
					            statvalue = Configurations.ImplantationChance * comp.ImplantChance;
 | 
				
			||||||
            float fertchance = comp.GetFertilityChance();
 | 
					            float fertchance = comp.GetFertilityChance();
 | 
				
			||||||
            FillableBarLabeled(lineRect, "  " + xxx.reproduction.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue, TextureCache.LutealTexture, Texture2D.blackTexture, Translations.FertilityDesc(string.Format("{0:0.##}", fertchance * 100)));
 | 
					            FillableBarLabeled(lineRect, "  " + xxx.reproduction.LabelCap.CapitalizeFirst() + " " + statvalue.ToStringPercent(), statvalue, TextureCache.LutealTexture, Texture2D.blackTexture, Translations.FertilityDesc(string.Format("{0:0.##}", fertchance * 100)));
 | 
				
			||||||
            Rect overayRect = new Rect(lineRect.x, lineRect.y, lineRect.width * Math.Min(1.0f, fertchance), lineRect.height);
 | 
					            Rect overlayRect = new Rect(lineRect.x, lineRect.y, lineRect.width * Math.Min(1.0f, fertchance), lineRect.height);
 | 
				
			||||||
            GUI.DrawTexture(overayRect, TextureCache.FertChanceTex);
 | 
					            GUI.DrawTexture(overlayRect, TextureCache.FertChanceTex);
 | 
				
			||||||
            lineRect.y += height;
 | 
					            lineRect.y += height;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -5,7 +5,7 @@ namespace RJW_Menstruation
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public class Gizmo_Womb : Command_Action
 | 
					    public class Gizmo_Womb : Command_Action
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        public Texture2D icon_overay;
 | 
					        public Texture2D icon_overlay;
 | 
				
			||||||
        public Color cumcolor;
 | 
					        public Color cumcolor;
 | 
				
			||||||
        public HediffComp_Menstruation comp;
 | 
					        public HediffComp_Menstruation comp;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -14,23 +14,23 @@ namespace RJW_Menstruation
 | 
				
			||||||
        public override void DrawIcon(Rect rect, Material buttonMat, GizmoRenderParms parms)
 | 
					        public override void DrawIcon(Rect rect, Material buttonMat, GizmoRenderParms parms)
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            Texture badTex = icon;
 | 
					            Texture badTex = icon;
 | 
				
			||||||
            Texture2D overay = icon_overay;
 | 
					            Texture2D overlay = icon_overlay;
 | 
				
			||||||
            Color color = cumcolor;
 | 
					            Color color = cumcolor;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (badTex == null)
 | 
					            if (badTex == null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                badTex = BaseContent.BadTex;
 | 
					                badTex = BaseContent.BadTex;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (overay == null)
 | 
					            if (overlay == null)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                overay = BaseContent.BadTex;
 | 
					                overlay = BaseContent.BadTex;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            if (color == null) color = Color.white;
 | 
					            if (color == null) color = Color.white;
 | 
				
			||||||
            rect.position += new Vector2(iconOffset.x * rect.size.x, iconOffset.y * rect.size.y);
 | 
					            rect.position += new Vector2(iconOffset.x * rect.size.x, iconOffset.y * rect.size.y);
 | 
				
			||||||
            GUI.color = IconDrawColor;
 | 
					            GUI.color = IconDrawColor;
 | 
				
			||||||
            Widgets.DrawTextureFitted(rect, badTex, this.iconDrawScale * 0.85f, this.iconProportions, this.iconTexCoords, this.iconAngle, buttonMat);
 | 
					            Widgets.DrawTextureFitted(rect, badTex, this.iconDrawScale * 0.85f, this.iconProportions, this.iconTexCoords, this.iconAngle, buttonMat);
 | 
				
			||||||
            GUI.color = color;
 | 
					            GUI.color = color;
 | 
				
			||||||
            Widgets.DrawTextureFitted(rect, overay, iconDrawScale * 0.85f, iconProportions, iconTexCoords, iconAngle, buttonMat);
 | 
					            Widgets.DrawTextureFitted(rect, overlay, iconDrawScale * 0.85f, iconProportions, iconTexCoords, iconAngle, buttonMat);
 | 
				
			||||||
            GUI.color = Color.white;
 | 
					            GUI.color = Color.white;
 | 
				
			||||||
            if (Configurations.DrawEggOverlay) comp.DrawEggOverlay(rect, false);
 | 
					            if (Configurations.DrawEggOverlay) comp.DrawEggOverlay(rect, false);
 | 
				
			||||||
            Rect progressRect = new Rect(rect.x + 2f, rect.y, rect.width - 4f, progressbarHeight);
 | 
					            Rect progressRect = new Rect(rect.x + 2f, rect.y, rect.width - 4f, progressbarHeight);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue