Exemple #1
0
    public void SyncUiWithCharacter(Sheet character)
    {
        Clear();
//		GetComponent<GenericFloatingWindow> ().ClearContent ();
        List <GenericFeature> feats = character.AllMiscFeats();

        if (feats.Count > 0)
        {
            foreach (GenericFeature f in character.AllMiscFeats())
            {
                f.DressOptButtonForTooltip(AddOptButton(f.Name()), Tooltip.TooltipPosition.LEFT, 30);
            }
        }
        else
        {
            AddFeatureText("(none)");
        }



        (ContentParent as RectTransform).anchoredPosition = new Vector2(0f, 0f);
    }