босс
This commit is contained in:
1 parent
76b6566e46
commit
11d290d572
49 files changed
+2562
-587
No files matched your search
@@ -301,40 +301,18 @@ public static class LevelStoryBuilder
|
||||
trackerObj.transform.SetParent(hudRoot, false);
|
||||
|
||||
RectTransform rt = trackerObj.AddComponent<RectTransform>();
|
||||
rt.anchorMin = new Vector2(1.0f, 1.0f);
|
||||
rt.anchorMax = new Vector2(1.0f, 1.0f);
|
||||
rt.pivot = new Vector2(1.0f, 1.0f);
|
||||
rt.anchoredPosition = new Vector2(-25f, -25f);
|
||||
rt.sizeDelta = new Vector2(260f, 68f);
|
||||
|
||||
Image bg = trackerObj.AddComponent<Image>();
|
||||
bg.color = new Color(0.04f, 0.04f, 0.04f, 0.88f);
|
||||
|
||||
Outline outline = trackerObj.AddComponent<Outline>();
|
||||
outline.effectColor = new Color(1.0f, 0.85f, 0.1f, 0.5f);
|
||||
outline.effectDistance = new Vector2(1f, -1f);
|
||||
|
||||
GameObject labelObj = new GameObject("Label");
|
||||
labelObj.transform.SetParent(trackerObj.transform, false);
|
||||
RectTransform labelRt = labelObj.AddComponent<RectTransform>();
|
||||
labelRt.anchorMin = new Vector2(0f, 0.6f);
|
||||
labelRt.anchorMax = new Vector2(1f, 1f);
|
||||
labelRt.offsetMin = new Vector2(10f, 0f);
|
||||
labelRt.offsetMax = new Vector2(-10f, -4f);
|
||||
|
||||
Text labelTxt = labelObj.AddComponent<Text>();
|
||||
labelTxt.font = defaultUiFont;
|
||||
labelTxt.fontSize = 13;
|
||||
labelTxt.fontStyle = FontStyle.Bold;
|
||||
labelTxt.alignment = TextAnchor.MiddleCenter;
|
||||
labelTxt.color = new Color(1.0f, 0.85f, 0.1f, 0.9f);
|
||||
labelTxt.text = "КОД ЛИФТА (УРОВЕНЬ 2):";
|
||||
rt.anchorMin = new Vector2(0f, 1.0f);
|
||||
rt.anchorMax = new Vector2(0f, 1.0f);
|
||||
rt.pivot = new Vector2(0f, 1.0f);
|
||||
rt.anchoredPosition = new Vector2(35f, -35f);
|
||||
rt.sizeDelta = new Vector2(210f, 50f);
|
||||
|
||||
Text[] slotTexts = new Text[4];
|
||||
Image[] slotBorders = new Image[4];
|
||||
|
||||
float startX = 25f;
|
||||
float spacing = 55f;
|
||||
float slotSize = 44f;
|
||||
float spacing = 52f;
|
||||
float startX = slotSize * 0.5f;
|
||||
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
@@ -342,11 +320,11 @@ public static class LevelStoryBuilder
|
||||
slotObj.transform.SetParent(trackerObj.transform, false);
|
||||
|
||||
RectTransform slotRt = slotObj.AddComponent<RectTransform>();
|
||||
slotRt.anchorMin = new Vector2(0f, 0f);
|
||||
slotRt.anchorMax = new Vector2(0f, 0.6f);
|
||||
slotRt.anchorMin = new Vector2(0f, 0.5f);
|
||||
slotRt.anchorMax = new Vector2(0f, 0.5f);
|
||||
slotRt.pivot = new Vector2(0.5f, 0.5f);
|
||||
slotRt.anchoredPosition = new Vector2(startX + i * spacing + 20f, 20f);
|
||||
slotRt.sizeDelta = new Vector2(42f, 32f);
|
||||
slotRt.anchoredPosition = new Vector2(startX + i * spacing, 0f);
|
||||
slotRt.sizeDelta = new Vector2(slotSize, slotSize);
|
||||
|
||||
Image slotBg = slotObj.AddComponent<Image>();
|
||||
slotBg.color = new Color(0.08f, 0.08f, 0.08f, 0.95f);
|
||||
@@ -365,7 +343,7 @@ public static class LevelStoryBuilder
|
||||
|
||||
Text st = txtObj.AddComponent<Text>();
|
||||
st.font = handwrittenFont;
|
||||
st.fontSize = 20;
|
||||
st.fontSize = 22;
|
||||
st.fontStyle = FontStyle.Bold;
|
||||
st.alignment = TextAnchor.MiddleCenter;
|
||||
st.color = new Color(0.45f, 0.45f, 0.45f, 0.7f);
|
||||
|
||||
Reference in new issue
Block a user