Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
v5.011
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Jun 15, 2020
1 parent 9e7e000 commit a7165b8
Show file tree
Hide file tree
Showing 19 changed files with 11 additions and 1 deletion.
Binary file modified 1.1/Assemblies/NewAnimalSubproducts.dll
Binary file not shown.
Binary file modified 1.1/Source/DraftingPatcher/.vs/DraftingPatcher/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class GeneticRim_Settings : ModSettings


public bool useLeglessGraphics = true;
public bool removeUpdateNotice = false;
public static float failureRate = 10;


Expand All @@ -19,6 +20,8 @@ public override void ExposeData()
{
base.ExposeData();
Scribe_Values.Look(ref this.useLeglessGraphics, "useLeglessGraphics", true);
Scribe_Values.Look(ref this.removeUpdateNotice, "removeUpdateNotice", false);

Scribe_Values.Look(ref failureRate, "failureRate", 10);


Expand All @@ -45,6 +48,9 @@ public override void DoSettingsWindowContents(Rect inRect)
ls.CheckboxLabeled("GR_useLeglessGraphics".Translate(), ref settings.useLeglessGraphics, null);
ls.Gap(12f);
ls.Gap(12f);
ls.CheckboxLabeled("GR_RemoveUpdateNotice".Translate(), ref settings.removeUpdateNotice, null);
ls.Gap(12f);
ls.Gap(12f);
var label = "GR_IncubatorFailureRate".Translate();
GeneticRim_Settings.failureRate= Widgets.HorizontalSlider(inRect.TopHalf().TopHalf().TopHalf(), GeneticRim_Settings.failureRate, 0f, 100f, false, label, "0%", "100%", -1);
ls.Gap(12f);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public override void MapComponentTick()
{
if (!ModLister.HasActiveModWithName("Vanilla Textures Expanded - Genetic Rim"))
{
Find.LetterStack.ReceiveLetter("GR_UpdateLetterLabel".Translate(), "GR_UpdateLetterText".Translate(), DefDatabase<LetterDef>.GetNamed("GR_UpdateLetter"));
if (!LoadedModManager.GetMod<GeneticRim_Mod>().GetSettings<GeneticRim_Settings>().removeUpdateNotice) {
Find.LetterStack.ReceiveLetter("GR_UpdateLetterLabel".Translate(), "GR_UpdateLetterText".Translate(), DefDatabase<LetterDef>.GetNamed("GR_UpdateLetter"));

}
}
Current.Game.GetComponent<UpdateNoticeGlobal>().sentUpdateLetterGlobal = true;
}
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 1.1/Source/NewMachinery/.vs/NewMachinery/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions Languages/English/Keyed/Misc_Gameplay.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@

<GR_useLeglessGraphics>Uncheck this to use alternate legless graphics for ALL Genetic hybrids (takes a few seconds to update)</GR_useLeglessGraphics>
<GR_IncubatorFailureRate>Incubator failure rate (default is 10%)</GR_IncubatorFailureRate>
<GR_RemoveUpdateNotice>Remove VGE - Genetic Rim update notice</GR_RemoveUpdateNotice>


<!-- This isn't used for now -->
Expand Down

0 comments on commit a7165b8

Please sign in to comment.