This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from VeteranXT/Fix/Settings
Fixed Settings #28
- Loading branch information
Showing
14 changed files
with
1,008 additions
and
680 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,185 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LanguageData> | ||
|
||
<MISC_Robots_Category>MiscRobots++ Settings</MISC_Robots_Category> | ||
<MISC_WIP>Work In Progress!! DO NOT USE!! IF You open Delete This mod config...</MISC_WIP> | ||
<MISC_Robots_Category>MiscRobots++</MISC_Robots_Category> | ||
<Teir_0>Teir I Settings</Teir_0> | ||
<Teir_1>Teir II Settings</Teir_1> | ||
<Teir_2>Teir III Settings</Teir_2> | ||
<Teir_3>Teir IV Settings</Teir_3> | ||
<Teir_4>Teir V Settings</Teir_4> | ||
|
||
|
||
<Cleaner_Settings>Cleaner Settings</Cleaner_Settings> | ||
|
||
<AIRobot_Cleaner_CleaningSpeed>Clening Speed {0}%, Recommended 100%</AIRobot_Cleaner_CleaningSpeed> | ||
<AIRobot_Cleaner_II_CleaningSpeed>Clening Speed {0}%, Recommended 200%</AIRobot_Cleaner_II_CleaningSpeed> | ||
<AIRobot_Cleaner_III_CleaningSpeed>Clening Speed {0}%, Recommended 250%</AIRobot_Cleaner_III_CleaningSpeed> | ||
<AIRobot_Cleaner_IV_CleaningSpeed>Clening Speed {0}%, Recommended 300%</AIRobot_Cleaner_IV_CleaningSpeed>> | ||
<AIRobot_Cleaner_V_CleaningSpeed>Clening Speed {0}%, Recommended 400%</AIRobot_Cleaner_V_CleaningSpeed> | ||
|
||
<AIRobot_Cleaner_MarketValue>Recommended 1000$</AIRobot_Cleaner_MarketValue> | ||
<AIRobot_Cleaner_II_MarketValue>Recommended 2000$</AIRobot_Cleaner_II_MarketValue> | ||
<AIRobot_Cleaner_III_MarketValue>Recommended 3500$</AIRobot_Cleaner_III_MarketValue> | ||
<AIRobot_Cleaner_IV_MarketValue>Recommended 7000$</AIRobot_Cleaner_IV_MarketValue> | ||
<AIRobot_Cleaner_V_MarketValue>Recommended 9000$</AIRobot_Cleaner_V_MarketValue> | ||
|
||
|
||
|
||
<Builder_Settings>Builder Settings</Builder_Settings> | ||
|
||
<RPP_Bot_Builder_I_MarketValue>Recommended 4000$</RPP_Bot_Builder_I_MarketValue> | ||
<RPP_Bot_Builder_II_MarketValue>Recommended 8000$</RPP_Bot_Builder_II_MarketValue> | ||
<RPP_Bot_Builder_III_MarketValue>Recommended 12000$</RPP_Bot_Builder_III_MarketValue> | ||
<RPP_Bot_Builder_IV_MarketValue>Recommended 19000$</RPP_Bot_Builder_IV_MarketValue> | ||
<RPP_Bot_Builder_V_MarketValue>Recommended 30000$</RPP_Bot_Builder_V_MarketValue> | ||
|
||
<RPP_Bot_Builder_I_ConstructionSpeed>Construction Speed {0}%, Recommended 100%</RPP_Bot_Builder_I_ConstructionSpeed> | ||
<RPP_Bot_Builder_II_ConstructionSpeed>Construction Speed {0}%, Recommended 200%</RPP_Bot_Builder_II_ConstructionSpeed> | ||
<RPP_Bot_Builder_III_ConstructionSpeed>Construction Speed {0}%, Recommended 250%</RPP_Bot_Builder_III_ConstructionSpeed> | ||
<RPP_Bot_Builder_IV_ConstructionSpeed>Construction Speed {0}%, Recommended 300%</RPP_Bot_Builder_IV_ConstructionSpeed> | ||
<RPP_Bot_Builder_V_ConstructionSpeed>Construction Speed {0}%, Recommended 400%</RPP_Bot_Builder_V_ConstructionSpeed> | ||
|
||
<RPP_Bot_Builder_I_DeepDrillingSpeed>DeepDrillingSpeed {0}%, Recommended 100%</RPP_Bot_Builder_I_DeepDrillingSpeed> | ||
<RPP_Bot_Builder_II_DeepDrillingSpeed>DeepDrillingSpeed {0}%, Recommended 200%</RPP_Bot_Builder_II_DeepDrillingSpeed> | ||
<RPP_Bot_Builder_III_DeepDrillingSpeed>DeepDrillingSpeed {0}%, Recommended 250%</RPP_Bot_Builder_III_DeepDrillingSpeed> | ||
<RPP_Bot_Builder_IV_DeepDrillingSpeed>DeepDrillingSpeed {0}%, Recommended 300%</RPP_Bot_Builder_IV_DeepDrillingSpeed> | ||
<RPP_Bot_Builder_V_DeepDrillingSpeed>DeepDrillingSpeed {0}%, Recommended 400%</RPP_Bot_Builder_V_DeepDrillingSpeed> | ||
|
||
<RPP_Bot_Builder_I_SmoothingSpeed>SmoothingSpeed {0}%, Recommended 100%</RPP_Bot_Builder_I_SmoothingSpeed> | ||
<RPP_Bot_Builder_II_SmoothingSpeed>SmoothingSpeed {0}%, Recommended 200%</RPP_Bot_Builder_II_SmoothingSpeed> | ||
<RPP_Bot_Builder_III_SmoothingSpeed>SmoothingSpeed {0}%, Recommended 250%</RPP_Bot_Builder_III_SmoothingSpeed> | ||
<RPP_Bot_Builder_IV_SmoothingSpeed>SmoothingSpeed {0}%, Recommended 300%</RPP_Bot_Builder_IV_SmoothingSpeed> | ||
<RPP_Bot_Builder_V_SmoothingSpeed>SmoothingSpeed {0}%, Recommended 400%</RPP_Bot_Builder_V_SmoothingSpeed> | ||
|
||
<RPP_Bot_Builder_I_MiningYield>MiningYield {0}%, Recommended 100%</RPP_Bot_Builder_I_MiningYield> | ||
<RPP_Bot_Builder_II_MiningYield>MiningYield {0}%, Recommended 125%</RPP_Bot_Builder_II_MiningYield> | ||
<RPP_Bot_Builder_III_MiningYield>MiningYield {0}%, Recommended 150%</RPP_Bot_Builder_III_MiningYield> | ||
<RPP_Bot_Builder_IV_MiningYield>MiningYield {0}%, Recommended 175%</RPP_Bot_Builder_IV_MiningYield> | ||
<RPP_Bot_Builder_V_MiningYield>MiningYield {0}%, Recommended 200%</RPP_Bot_Builder_V_MiningYield> | ||
|
||
<RPP_Bot_Builder_I_MarketValue>Recommended 4000$</RPP_Bot_Builder_I_MarketValue> | ||
<RPP_Bot_Builder_II_MarketValue>Recommended 8000$</RPP_Bot_Builder_II_MarketValue> | ||
<RPP_Bot_Builder_III_MarketValue>Recommended 12000$</RPP_Bot_Builder_III_MarketValue> | ||
<RPP_Bot_Builder_IV_MarketValue>Recommended 19000$</RPP_Bot_Builder_IV_MarketValue> | ||
<RPP_Bot_Builder_V_MarketValue>Recommended 30000$</RPP_Bot_Builder_V_MarketValue> | ||
|
||
<RPP_Bot_Builder_I>Teir I Settings</RPP_Bot_Builder_I> | ||
<RPP_Bot_Builder_II>Teir II Settings</RPP_Bot_Builder_II> | ||
<RPP_Bot_Builder_III>Teir III Settings</RPP_Bot_Builder_III> | ||
<RPP_Bot_Builder_IV>Teir IV Settings</RPP_Bot_Builder_IV> | ||
<RPP_Bot_Builder_V>Teir V Settings</RPP_Bot_Builder_V> | ||
|
||
|
||
|
||
<Crafter_Settings>Crafter Settings</Crafter_Settings> | ||
|
||
<RPP_Bot_Crafter_I_WorkSpeedGlobal>Crafting Speed {0}%, Recommended 100%</RPP_Bot_Crafter_I_WorkSpeedGlobal> | ||
<RPP_Bot_Crafter_II_WorkSpeedGlobal>Crafting Speed {0}%, Recommended 125%</RPP_Bot_Crafter_II_WorkSpeedGlobal> | ||
<RPP_Bot_Crafter_III_WorkSpeedGlobal>Crafting Speed {0}%, Recommended 150%</RPP_Bot_Crafter_III_WorkSpeedGlobal> | ||
<RPP_Bot_Crafter_IV_WorkSpeedGlobal>Crafting Speed {0}%, Recommended 175%</RPP_Bot_Crafter_IV_WorkSpeedGlobal> | ||
<RPP_Bot_Crafter_V_WorkSpeedGlobal>Crafting Speed {0}%, Recommended 200%</RPP_Bot_Crafter_V_WorkSpeedGlobal> | ||
|
||
<RPP_Bot_Crafter_I_MarketValue>Recommended 1000$</RPP_Bot_Crafter_I_MarketValue> | ||
<RPP_Bot_Crafter_II_MarketValue>Recommended 2000$</RPP_Bot_Crafter_II_MarketValue> | ||
<RPP_Bot_Crafter_III_MarketValue>Recommended 3500$</RPP_Bot_Crafter_III_MarketValue> | ||
<RPP_Bot_Crafter_IV_MarketValue>Recommended 7000$</RPP_Bot_Crafter_IV_MarketValue> | ||
<RPP_Bot_Crafter_V_MarketValue>Recommended 14000$</RPP_Bot_Crafter_V_MarketValue> | ||
|
||
|
||
|
||
|
||
<Kitchen_Settings>Kitchen Settings</Kitchen_Settings> | ||
|
||
<RPP_Bot_Kitchen_I_MarketValue>Recommended 4000$</RPP_Bot_Kitchen_I_MarketValue> | ||
<RPP_Bot_Kitchen_II_MarketValue>Recommended 8000$</RPP_Bot_Kitchen_II_MarketValue> | ||
<RPP_Bot_Kitchen_III_MarketValue>Recommended 12000$</RPP_Bot_Kitchen_III_MarketValue> | ||
<RPP_Bot_Kitchen_IV_MarketValue>Recommended 18000$</RPP_Bot_Kitchen_IV_MarketValue> | ||
<RPP_Bot_Kitchen_V_MarketValue>Recommended 30000$</RPP_Bot_Kitchen_V_MarketValue> | ||
|
||
<RPP_Bot_Kitchen_I_GeneralLaborSpeed>Cooking Speed {0}%, Recommended 100%</RPP_Bot_Kitchen_I_GeneralLaborSpeed> | ||
<RPP_Bot_Kitchen_II_GeneralLaborSpeed>Cooking Speed {0}%, Recommended 200%</RPP_Bot_Kitchen_II_GeneralLaborSpeed> | ||
<RPP_Bot_Kitchen_III_GeneralLaborSpeed>Cooking Speed {0}%, Recommended 250%</RPP_Bot_Kitchen_III_GeneralLaborSpeed> | ||
<RPP_Bot_Kitchen_IV_GeneralLaborSpeed>Cooking Speed {0}%, Recommended 300%</RPP_Bot_Kitchen_IV_GeneralLaborSpeed> | ||
<RPP_Bot_Kitchen_V_GeneralLaborSpeed>Cooking Speed {0}%, Recommended 400%</RPP_Bot_Kitchen_V_GeneralLaborSpeed> | ||
|
||
<RPP_Bot_Kitchen_I_PlantWorkSpeed>Growing and Harvesting Plants Speed {0}%, Recommended 100%</RPP_Bot_Kitchen_I_PlantWorkSpeed> | ||
<RPP_Bot_Kitchen_II_PlantWorkSpeed>Growing and Harvesting Plants Speed {0}%, Recommended 200%</RPP_Bot_Kitchen_II_PlantWorkSpeed> | ||
<RPP_Bot_Kitchen_III_PlantWorkSpeed>Growing and Harvesting Plants Speed {0}%, Recommended 250%</RPP_Bot_Kitchen_III_PlantWorkSpeed> | ||
<RPP_Bot_Kitchen_IV_PlantWorkSpeed>Growing and Harvesting Plants Speed {0}%, Recommended 300%</RPP_Bot_Kitchen_IV_PlantWorkSpeed> | ||
<RPP_Bot_Kitchen_V_PlantWorkSpeed>Growing Pand Harvesting lants Speed {0}%, Recommended 400%</RPP_Bot_Kitchen_V_PlantWorkSpeed> | ||
|
||
<RPP_Bot_Kitchen_I_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 100%</RPP_Bot_Kitchen_I_PlantHarvestYield> | ||
<RPP_Bot_Kitchen_II_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 125%</RPP_Bot_Kitchen_II_PlantHarvestYield> | ||
<RPP_Bot_Kitchen_III_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 150%</RPP_Bot_Kitchen_III_PlantHarvestYield> | ||
<RPP_Bot_Kitchen_IV_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 175%</RPP_Bot_Kitchen_IV_PlantHarvestYield> | ||
<RPP_Bot_Kitchen_V_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 200%</RPP_Bot_Kitchen_V_PlantHarvestYield> | ||
|
||
<RPP_Bot_Kitchen_I_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 100%</RPP_Bot_Kitchen_I_DrugHarvestYield> | ||
<RPP_Bot_Kitchen_II_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 125%</RPP_Bot_Kitchen_II_DrugHarvestYield> | ||
<RPP_Bot_Kitchen_III_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 150%</RPP_Bot_Kitchen_III_DrugHarvestYield> | ||
<RPP_Bot_Kitchen_IV_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 175%</RPP_Bot_Kitchen_IV_DrugHarvestYield> | ||
<RPP_Bot_Kitchen_V_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 200%</RPP_Bot_Kitchen_V_DrugHarvestYield> | ||
|
||
|
||
|
||
<ER_Settings>ER Settings</ER_Settings> | ||
|
||
<RPP_Bot_ER_I_MedicalTendSpeed>Tending Speed {0}%, Recommended 100%</RPP_Bot_ER_I_MedicalTendSpeed> | ||
<RPP_Bot_ER_II_MedicalTendSpeed>Tending Speed {0}%, Recommended 200%</RPP_Bot_ER_II_MedicalTendSpeed> | ||
<RPP_Bot_ER_III_MedicalTendSpeed>Tending Speed {0}%, Recommended 250%</RPP_Bot_ER_III_MedicalTendSpeed> | ||
<RPP_Bot_ER_IV_MedicalTendSpeed>Tending Speed {0}%, Recommended 300%</RPP_Bot_ER_IV_MedicalTendSpeed> | ||
<RPP_Bot_ER_V_MedicalTendSpeed>Tending Speed {0}%, Recommended 400%</RPP_Bot_ER_V_MedicalTendSpeed> | ||
|
||
<RPP_Bot_ER_I_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 100%</RPP_Bot_ER_I_MedicalSurgerySuccessChance> | ||
<RPP_Bot_ER_II_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 125%</RPP_Bot_ER_II_MedicalSurgerySuccessChance> | ||
<RPP_Bot_ER_III_MedicalSurgerySuccessChance>Surgery Chance Incressedd {0}%, Recommended 150%</RPP_Bot_ER_III_MedicalSurgerySuccessChance> | ||
<RPP_Bot_ER_IV_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 175%</RPP_Bot_ER_IV_MedicalSurgerySuccessChance> | ||
<RPP_Bot_ER_V_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 200%</RPP_Bot_ER_V_MedicalSurgerySuccessChance> | ||
|
||
<RPP_Bot_ER_I_MarketValue>Recommended 2000$</RPP_Bot_ER_I_MarketValue> | ||
<RPP_Bot_ER_II_MarketValue>Recommended 4000$</RPP_Bot_ER_II_MarketValue> | ||
<RPP_Bot_ER_III_MarketValue>Recommended 8000$</RPP_Bot_ER_III_MarketValue> | ||
<RPP_Bot_ER_IV_MarketValue>Recommended 16000$</RPP_Bot_ER_IV_MarketValue> | ||
<RPP_Bot_ER_V_MarketValue>Recommended 24000$</RPP_Bot_ER_V_MarketValue> | ||
|
||
<Omni_Settings>Omni Settings</Omni_Settings> | ||
|
||
<RPP_Bot_Omni_I_WorkSpeedGlobal>Work Speed {0}%, Recommended 200%</RPP_Bot_Omni_I_WorkSpeedGlobal> | ||
<RPP_Bot_Omni_II_WorkSpeedGlobal>Work Speed {0}%, Recommended 125%</RPP_Bot_Omni_II_WorkSpeedGlobal> | ||
<RPP_Bot_Omni_III_WorkSpeedGlobal>Work Speed {0}%, Recommended 400%</RPP_Bot_Omni_III_WorkSpeedGlobal> | ||
<RPP_Bot_Omni_IV_WorkSpeedGlobal>Work Speed {0}%, Recommended 500%</RPP_Bot_Omni_IV_WorkSpeedGlobal> | ||
<RPP_Bot_Omni_V_WorkSpeedGlobal>Work Speed {0}%, Recommended 550%</RPP_Bot_Omni_V_WorkSpeedGlobal> | ||
|
||
<RPP_Bot_Omni_I_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 100%</RPP_Bot_Omni_I_MedicalSurgerySuccessChance> | ||
<RPP_Bot_Omni_II_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 110%</RPP_Bot_Omni_II_MedicalSurgerySuccessChance> | ||
<RPP_Bot_Omni_III_MedicalSurgerySuccessChance>Surgery Chance Incressedd {0}%, Recommended 120%</RPP_Bot_Omni_III_MedicalSurgerySuccessChance> | ||
<RPP_Bot_Omni_IV_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 130%</RPP_Bot_Omni_IV_MedicalSurgerySuccessChance> | ||
<RPP_Bot_Omni_V_MedicalSurgerySuccessChance>Surgery Chance Incressed {0}%, Recommended 140%</RPP_Bot_Omni_V_MedicalSurgerySuccessChance> | ||
|
||
<RPP_Bot_Omni_I_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 100%</RPP_Bot_Omni_I_PlantHarvestYield> | ||
<RPP_Bot_Omni_II_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 110%</RPP_Bot_Omni_II_PlantHarvestYield> | ||
<RPP_Bot_Omni_III_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 120%</RPP_Bot_Omni_III_PlantHarvestYield> | ||
<RPP_Bot_Omni_IV_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 130%</RPP_Bot_Omni_IV_PlantHarvestYield> | ||
<RPP_Bot_Omni_V_PlantHarvestYield>Plant Harvest Yield {0}%, Recommended 140%</RPP_Bot_Omni_V_PlantHarvestYield> | ||
|
||
<RPP_Bot_Omni_I_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 100%</RPP_Bot_Omni_I_DrugHarvestYield> | ||
<RPP_Bot_Omni_II_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 120%</RPP_Bot_Omni_II_DrugHarvestYield> | ||
<RPP_Bot_Omni_III_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 110%</RPP_Bot_Omni_III_DrugHarvestYield> | ||
<RPP_Bot_Omni_IV_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 130%</RPP_Bot_Omni_IV_DrugHarvestYield> | ||
<RPP_Bot_Omni_V_DrugHarvestYield>Drug Harvest Yield {0}%, Recommended 140%</RPP_Bot_Omni_V_DrugHarvestYield> | ||
|
||
<RPP_Bot_Omni_I_MiningYield>MiningYield {0}%, Recommended 100%</RPP_Bot_Omni_I_MiningYield> | ||
<RPP_Bot_Omni_II_MiningYield>MiningYield {0}%, Recommended 110%</RPP_Bot_Omni_II_MiningYield> | ||
<RPP_Bot_Omni_III_MiningYield>MiningYield {0}%, Recommended 120%</RPP_Bot_Omni_III_MiningYield> | ||
<RPP_Bot_Omni_IV_MiningYield>MiningYield {0}%, Recommended 130%</RPP_Bot_Omni_IV_MiningYield> | ||
<RPP_Bot_Omni_V_MiningYield>MiningYield {0}%, Recommended 140%</RPP_Bot_Omni_V_MiningYield> | ||
|
||
|
||
<RPP_Bot_Omni_I_MarketValue>Recommended 8000$</RPP_Bot_Omni_I_MarketValue> | ||
<RPP_Bot_Omni_II_MarketValue>Recommended 15000$</RPP_Bot_Omni_II_MarketValue> | ||
<RPP_Bot_Omni_III_MarketValue>Recommended 35000$</RPP_Bot_Omni_III_MarketValue> | ||
<RPP_Bot_Omni_IV_MarketValue>Recommended 80000$</RPP_Bot_Omni_IV_MarketValue> | ||
<RPP_Bot_Omni_V_MarketValue>Recommended 100000$</RPP_Bot_Omni_V_MarketValue> | ||
|
||
</LanguageData> | ||
|
50 changes: 50 additions & 0 deletions
50
Source/HelperClasses/ListingExtentions/ListingExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using RimWorld; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using UnityEngine; | ||
using Verse; | ||
|
||
namespace MiscRobotsPlusPlus | ||
{ | ||
public static class ListingExtensions | ||
{ | ||
public static void DropDownSettings(this Listing_Standard listing, string name, string explanation, Enum pages, float width) | ||
{ | ||
float curHeight = listing.CurHeight; | ||
Rect rect = listing.GetRect(Text.LineHeight + listing.verticalSpacing); | ||
Text.Font = GameFont.Small; | ||
GUI.color = Color.white; | ||
TextAnchor anchor = Text.Anchor; | ||
Text.Anchor = TextAnchor.MiddleLeft; | ||
Widgets.Label(rect, name); | ||
Text.Anchor = TextAnchor.MiddleRight; ; | ||
if (Widgets.ButtonText(new Rect(width - 150f, 9, 150, 29), pages.ToString().Replace("_", " "))) | ||
{ | ||
List<FloatMenuOption> floatMenus = new List<FloatMenuOption>(); | ||
foreach (var item in Enum.GetValues(typeof(SettingsPages)).Cast<SettingsPages>().ToList()) | ||
{ | ||
floatMenus.Add(new FloatMenuOption(item.ToString().Replace("_", " "), delegate | ||
{ | ||
MiscPlusPlusSettings.currentPage = item; | ||
})); | ||
} | ||
Find.WindowStack.Add(new FloatMenu(floatMenus)); | ||
|
||
} | ||
Text.Anchor = anchor; | ||
Text.Font = GameFont.Tiny; | ||
listing.ColumnWidth -= 34f; | ||
GUI.color = Color.gray; | ||
listing.Label(explanation); | ||
listing.ColumnWidth += 34f; | ||
Text.Font = GameFont.Small; | ||
rect = listing.GetRect(0f); | ||
rect.height = listing.CurHeight - curHeight; | ||
rect.y -= rect.height; | ||
GUI.color = Color.white; | ||
listing.Gap(6f); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using RimWorld; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
using UnityEngine.Rendering; | ||
using Verse; | ||
|
||
namespace MiscRobotsPlusPlus | ||
{ | ||
public class RobotsData | ||
{ | ||
public string[] defThing; | ||
public StatDef[] statsData; | ||
public float[,] settingsValue; | ||
public string[,] buffers; | ||
public float[,] defaultValues; | ||
public bool[,] isPrecent = null; | ||
|
||
|
||
public RobotsData(string[] robotsData, StatDef[] statsData, float[,] defa, bool[,] prec = null) | ||
{ | ||
this.defThing = robotsData; | ||
this.statsData = statsData; | ||
settingsValue = new float[defThing.Length, statsData.Length]; | ||
settingsValue = defa; | ||
buffers = new string[defThing.Length, statsData.Length]; | ||
|
||
//Set Default Values | ||
defaultValues = settingsValue; | ||
isPrecent = prec; | ||
} | ||
public static void DrawingSettings(Listing_Standard listing, RobotsData data, float min = 0.1f, float max = 100f) | ||
{ | ||
for (int i = 0; i < data.defThing.Length; i++) | ||
{ | ||
string tier = "Teir_" + i; | ||
listing.Label(tier.Translate()); | ||
for (int x = 0; x < data.statsData.Length; x++) | ||
{ | ||
if (data.isPrecent != null) | ||
{ | ||
if (data.isPrecent[i, x]) | ||
{ | ||
listing.Label((data.defThing[i] + "_" + data.statsData[x].defName).Translate(data.settingsValue[i, x] * 100f)); | ||
data.settingsValue[i, x] = listing.Slider(data.settingsValue[i, x], min, max); | ||
} | ||
else | ||
{ | ||
listing.Label((data.defThing[i] + "_" + data.statsData[x].defName).Translate(data.settingsValue[i, x])); | ||
listing.TextFieldNumeric(ref data.settingsValue[i, x], ref data.buffers[i, x]); | ||
} | ||
} | ||
else | ||
{ | ||
listing.TextFieldNumeric(ref data.settingsValue[i, x], ref data.buffers[i, x]); | ||
} | ||
} | ||
listing.GapLine(); | ||
} | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.