Ejemplo n.º 1
0
    public override void Fold()
    {
        base.Fold();

        if (isFolded)
        {
            foldoutButton.GetComponentInChildren <Text>().text = ">\n>\n>";
        }
        else
        {
            foldoutButton.GetComponentInChildren <Text>().text = "<\n<\n<";
        }
    }
Ejemplo n.º 2
0
 public void AdjustMain()
 {
     if (isFolded)
     {
         //foldoutButton.Fold();
         foldoutButton.GetComponentInChildren <Text>().text = "<";
         //mainPanel.rect.anchorMin = new Vector2(anchorFoldedMax.x, mainPanel.rect.anchorMin.y);
         //mainPanel.rect.anchoredPosition = Vector2.zero;
     }
     else
     {
         //foldoutButton.Fold();
         foldoutButton.GetComponentInChildren <Text>().text = ">";
         //mainPanel.rect.anchorMin = new Vector2(anchorFullMax.x, mainPanel.rect.anchorMin.y);
         //mainPanel.rect.anchoredPosition = Vector2.zero;
     }
 }