点击样式
This commit is contained in:
parent
3ae74d0679
commit
12ee36d9f4
|
|
@ -226,7 +226,7 @@ MonoBehaviour:
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
|
|
@ -335,7 +335,7 @@ RectTransform:
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 110.46, y: 23.191}
|
m_SizeDelta: {x: 139.1114, y: 23.191}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &80257673495474489
|
--- !u!222 &80257673495474489
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|
@ -392,8 +392,8 @@ MonoBehaviour:
|
||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 12
|
m_fontSize: 10
|
||||||
m_fontSizeBase: 12
|
m_fontSizeBase: 10
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 0
|
m_enableAutoSizing: 0
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
|
|
@ -482,7 +482,7 @@ GameObject:
|
||||||
- component: {fileID: 1626309903163173992}
|
- component: {fileID: 1626309903163173992}
|
||||||
- component: {fileID: 6317492593845565527}
|
- component: {fileID: 6317492593845565527}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: "\u25B2X = "
|
m_Name: "\u25B2Y = "
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
|
|
@ -506,7 +506,7 @@ RectTransform:
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 110.46, y: 23.191}
|
m_SizeDelta: {x: 72.2754, y: 23.191}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &1626309903163173992
|
--- !u!222 &1626309903163173992
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|
@ -570,7 +570,7 @@ MonoBehaviour:
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
|
|
@ -6045,7 +6045,12 @@ MonoBehaviour:
|
||||||
m_EmphasisStyles: []
|
m_EmphasisStyles: []
|
||||||
m_BlurStyles: []
|
m_BlurStyles: []
|
||||||
m_SelectStyles: []
|
m_SelectStyles: []
|
||||||
Text: {fileID: 5493124275853578135}
|
x1: {fileID: 6510160900850636857}
|
||||||
|
x2: {fileID: 411952948401738086}
|
||||||
|
y1: {fileID: 3024905023954747513}
|
||||||
|
y2: {fileID: 1441724031879076888}
|
||||||
|
Sx1: {fileID: 4291046737424086617}
|
||||||
|
Sy1: {fileID: 6317492593845565527}
|
||||||
--- !u!1 &5233865049350209622
|
--- !u!1 &5233865049350209622
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
@ -10557,7 +10562,7 @@ MonoBehaviour:
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
|
|
@ -11012,7 +11017,7 @@ RectTransform:
|
||||||
m_AnchorMin: {x: 0, y: 0}
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
m_AnchorMax: {x: 0, y: 0}
|
m_AnchorMax: {x: 0, y: 0}
|
||||||
m_AnchoredPosition: {x: 0, y: 0}
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
m_SizeDelta: {x: 110.46, y: 23.191}
|
m_SizeDelta: {x: 139.1114, y: 23.191}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!222 &4502565318669052637
|
--- !u!222 &4502565318669052637
|
||||||
CanvasRenderer:
|
CanvasRenderer:
|
||||||
|
|
@ -11069,8 +11074,8 @@ MonoBehaviour:
|
||||||
m_faceColor:
|
m_faceColor:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
rgba: 4294967295
|
rgba: 4294967295
|
||||||
m_fontSize: 12
|
m_fontSize: 10
|
||||||
m_fontSizeBase: 12
|
m_fontSizeBase: 10
|
||||||
m_fontWeight: 400
|
m_fontWeight: 400
|
||||||
m_enableAutoSizing: 0
|
m_enableAutoSizing: 0
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
|
|
@ -11274,7 +11279,7 @@ MonoBehaviour:
|
||||||
m_fontSizeMin: 18
|
m_fontSizeMin: 18
|
||||||
m_fontSizeMax: 72
|
m_fontSizeMax: 72
|
||||||
m_fontStyle: 0
|
m_fontStyle: 0
|
||||||
m_HorizontalAlignment: 1
|
m_HorizontalAlignment: 2
|
||||||
m_VerticalAlignment: 512
|
m_VerticalAlignment: 512
|
||||||
m_textAlignment: 65535
|
m_textAlignment: 65535
|
||||||
m_characterSpacing: 0
|
m_characterSpacing: 0
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ public class Bootstrap : SingletonMono<Bootstrap>
|
||||||
scenesManager = new ScenesManager();
|
scenesManager = new ScenesManager();
|
||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
scenesManager.LoadSceneAsyn(this, "LoginScene", () =>
|
scenesManager.LoadSceneAsyn(this, "LoginScene", () =>
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,12 @@ public class ChartControl : MonoBehaviour
|
||||||
bool isclick = true;//是否可以开始添加新数据
|
bool isclick = true;//是否可以开始添加新数据
|
||||||
|
|
||||||
|
|
||||||
public TextMeshProUGUI Text;
|
public TextMeshProUGUI x1;
|
||||||
|
public TextMeshProUGUI x2;
|
||||||
|
public TextMeshProUGUI y1;
|
||||||
|
public TextMeshProUGUI y2;
|
||||||
|
public TextMeshProUGUI Sx1;
|
||||||
|
public TextMeshProUGUI Sy1;
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
serie = chart.GetSerie<Serie>();
|
serie = chart.GetSerie<Serie>();
|
||||||
|
|
@ -41,8 +46,12 @@ public class ChartControl : MonoBehaviour
|
||||||
|
|
||||||
string[] str1 = data[0].Split('|');
|
string[] str1 = data[0].Split('|');
|
||||||
string[] str2 = data[1].Split('|');
|
string[] str2 = data[1].Split('|');
|
||||||
|
x1.text = "X1 = " + str1[0];
|
||||||
Text.text = str1[0] + ":" + str1[1] + "和" + str2[0] + ":" + str2[1] + "的差值为:" + MathF.Abs(float.Parse(str1[1]) - float.Parse(str2[1]));
|
x2.text = "X2 = " + str2[0];
|
||||||
|
y1.text = "Y1 = "+str1[1];
|
||||||
|
y2.text = "Y2 = "+ str2[1];
|
||||||
|
Sy1.text = "ĄřY = "+ MathF.Abs(float.Parse(str1[1]) - float.Parse(str2[1])).ToString();
|
||||||
|
//Text.text = str1[0] + "Łş" + str1[1] + "şÍ" + str2[0] + "Łş" + str2[1] + "ľÄ˛î־Ϊ:" + MathF.Abs(float.Parse(str1[1]) - float.Parse(str2[1]));
|
||||||
Debug.Log(str1[0] + ":" + str1[1] + "和" + str2[0] + ":" + str2[1] + "的差值为:" + MathF.Abs(float.Parse(str1[1]) - float.Parse(str2[1])));
|
Debug.Log(str1[0] + ":" + str1[1] + "和" + str2[0] + ":" + str2[1] + "的差值为:" + MathF.Abs(float.Parse(str1[1]) - float.Parse(str2[1])));
|
||||||
data = new List<string>();
|
data = new List<string>();
|
||||||
isclick = false;
|
isclick = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue