Skip to content
Snippets Groups Projects
Commit a0707743 authored by Tomáš Prachenský's avatar Tomáš Prachenský
Browse files

Merge branch 'dialogue_fix' into 'master'

Dialogue fix

See merge request !26
parents e733d4b0 0f264ba5
No related branches found
No related tags found
1 merge request!26Dialogue fix
......@@ -36,7 +36,7 @@ RectTransform:
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: -750.00006, y: -264.11722}
m_SizeDelta: {x: 1600.0427, y: 235.83124}
m_SizeDelta: {x: 1600.0427, y: 526.77216}
m_Pivot: {x: 0, y: 1}
--- !u!222 &3502585139583547296
CanvasRenderer:
......@@ -321,11 +321,11 @@ RectTransform:
m_Father: {fileID: 3502585139583547302}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.000061035156, y: 0.000030517578}
m_AnchorMin: {x: 0.5, y: 1}
m_AnchorMax: {x: 0.5, y: 1}
m_AnchoredPosition: {x: 0.000061035156, y: -10}
m_SizeDelta: {x: 1582.78, y: 214.52246}
m_Pivot: {x: 0.5, y: 0.5}
m_Pivot: {x: 0.5, y: 1}
--- !u!222 &3502585141059889551
CanvasRenderer:
m_ObjectHideFlags: 0
......
......@@ -75,6 +75,7 @@ namespace Nudle.Scripts.Dialogue
choiceButtons.Add(button);
button.transform.SetParent(DialogueCanvas.transform);
button.transform.GetChild(0).GetComponent<Text>().text = choice.Text;
button.transform.localScale = Vector3.one;
button.onClick.AddListener(() => SelectChoice(choice));
button.GetComponent<RectTransform>().anchoredPosition = new Vector2(0, (i * 100) - 100 + ((5 -count) * 50));
++i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment