finer control for offsets

This commit is contained in:
c0ffee 2021-07-02 20:43:22 -07:00
parent c9dacad8a1
commit 2b60a84b3f
2 changed files with 5 additions and 6 deletions

View file

@ -56,15 +56,14 @@ namespace Rimworld_Animations {
if(curPawn.def.defName == "Human") { if(curPawn.def.defName == "Human") {
listingStandard.Label("Warning--You generally don't want to change human offsets, only alien offsets"); listingStandard.Label("Warning--You generally don't want to change human offsets, only alien offsets");
} }
listingStandard.Label("X Offset: " + offsetX); offsetX = float.Parse(listingStandard.TextEntryLabeled("X Offset: ", offsetX.ToString()));
offsetX = listingStandard.Slider(offsetX, -10, 10); offsetX = listingStandard.Slider(offsetX, -3, 3);
listingStandard.Label("Z Offset: " + offsetZ); offsetZ = float.Parse(listingStandard.TextEntryLabeled("X Offset: ", offsetZ.ToString()));
offsetZ = listingStandard.Slider(offsetZ, -10, 10); offsetZ = listingStandard.Slider(offsetZ, -3, 3);
listingStandard.Label("Rotation: " + rotation); rotation = float.Parse(listingStandard.TextEntryLabeled("X Offset: ", rotation.ToString()));
rotation = listingStandard.Slider(rotation, -180, 180); rotation = listingStandard.Slider(rotation, -180, 180);
if(listingStandard.ButtonText("Reset All")) { if(listingStandard.ButtonText("Reset All")) {