internal static void FixBillboardText(ItemLabelsBase labels, BillboardText text) { float sharpness = Mathf.Clamp(labels.FontSharpness, 1f, 3f); ChartCommon.SetTextParams(text.UIText, null, labels.FontSize, sharpness); text.Scale = 1f / sharpness; text.UIText.transform.localScale = new Vector3(text.Scale, text.Scale); }
internal static void FixBillboardText(ItemLabelsBase labels, BillboardText text) { float sharpness = Mathf.Clamp(labels.FontSharpness, 1f, 3f); text.Scale = 1f / sharpness; text.UIText.fontSize = (int)(labels.FontSize * sharpness); text.UIText.transform.localScale = new Vector3(text.Scale, text.Scale); }
public override void OnInspectorGUI() { ItemLabelsBase labels = (ItemLabelsBase)target; if (labels.gameObject == null) { return; } AnyChart chart = labels.gameObject.GetComponent <AnyChart>(); if (chart == null) { return; } if (isSupported(chart) == false) { EditorGUILayout.HelpBox(string.Format("Chart of type {0} does not support {1}", chart.GetType().Name, Name), MessageType.Warning); return; } base.OnInspectorGUI(); }
public LabelPositionInfo(ItemLabelsBase options, GroupObject group) { Options = options; Group = group; }
public LabelPositionInfo(ItemLabelsBase options, BarObject bar) { Options = options; Bar = bar; }