mirror of
https://github.com/drewcassidy/KSP-Conformal-Decals.git
synced 2024-09-01 18:23:54 +00:00
More minor tweaks
This commit is contained in:
parent
bb48782eff
commit
4a6d019227
@ -49,6 +49,8 @@ PART
|
|||||||
{
|
{
|
||||||
name = ModuleConformalText
|
name = ModuleConformalText
|
||||||
|
|
||||||
|
text = Text
|
||||||
|
|
||||||
shader = ConformalDecals/Decal/Text
|
shader = ConformalDecals/Decal/Text
|
||||||
useBaseNormal = true
|
useBaseNormal = true
|
||||||
scaleMode = MINIMUM
|
scaleMode = MINIMUM
|
||||||
|
Binary file not shown.
@ -512,7 +512,7 @@ namespace ConformalDecals {
|
|||||||
cutoffField.guiActiveEditor = cutoffAdjustable;
|
cutoffField.guiActiveEditor = cutoffAdjustable;
|
||||||
wearField.guiActiveEditor = useBaseNormal;
|
wearField.guiActiveEditor = useBaseNormal;
|
||||||
|
|
||||||
var steps = 20;
|
var steps = 40;
|
||||||
|
|
||||||
if (scaleAdjustable) {
|
if (scaleAdjustable) {
|
||||||
var minValue = Mathf.Max(Mathf.Epsilon, scaleRange.x);
|
var minValue = Mathf.Max(Mathf.Epsilon, scaleRange.x);
|
||||||
|
@ -6,12 +6,12 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace ConformalDecals {
|
namespace ConformalDecals {
|
||||||
public class ModuleConformalText : ModuleConformalDecal, ISerializationCallbackReceiver {
|
public class ModuleConformalText : ModuleConformalDecal, ISerializationCallbackReceiver {
|
||||||
[KSPField(isPersistant = true)] public string text = "Hello World!";
|
[KSPField(isPersistant = true)] public string text = "Text";
|
||||||
[KSPField(isPersistant = true)] public Color fillColor = Color.black;
|
[KSPField(isPersistant = true)] public Color fillColor = Color.black;
|
||||||
[KSPField(isPersistant = true)] public Color outlineColor = Color.white;
|
[KSPField(isPersistant = true)] public Color outlineColor = Color.white;
|
||||||
|
|
||||||
[KSPField] public Vector2 lineSpacingRange = new Vector2(-20, 50);
|
[KSPField] public Vector2 lineSpacingRange = new Vector2(-50, 50);
|
||||||
[KSPField] public Vector2 charSpacingRange = new Vector2(-20, 50);
|
[KSPField] public Vector2 charSpacingRange = new Vector2(-50, 50);
|
||||||
|
|
||||||
// serialization-only fields. do not use except in serialization functions
|
// serialization-only fields. do not use except in serialization functions
|
||||||
[KSPField(isPersistant = true)] public string fontName = "Calibri SDF";
|
[KSPField(isPersistant = true)] public string fontName = "Calibri SDF";
|
||||||
|
Loading…
Reference in New Issue
Block a user