예제 #1
0
        private PopupBoxVoteIssue getVoteIssueBox(Ab_Soc_ProposeVote ab, Society soc, VoteIssue issue)
        {
            GameObject        obj = Instantiate(popScrollVoteIssue) as GameObject;
            PopupBoxVoteIssue msg = obj.GetComponent <PopupBoxVoteIssue>();

            msg.setTo(ab, soc, issue);
            return(msg);
        }
 public void setTo(Ab_Soc_ProposeVote ability,Society soc,VoteIssue issue)
 {
     this.soc = soc;
     this.issue = issue;
     this.ability = ability;
     title.text = issue.ToString();
     //body.text = issue.getLargeDesc();
 }
예제 #3
0
        public PopupScrollSet getScrollSet(Ab_Soc_ProposeVote ab, Society soc, List <VoteIssue> issues)
        {
            PopupScrollSet specific = getInnerScrollSet();

            foreach (VoteIssue issue in issues)
            {
                PopupBoxVoteIssue box = getVoteIssueBox(ab, soc, issue);
                box.gameObject.transform.SetParent(specific.gameObject.transform);
                specific.scrollables.Add(box);
            }

            return(specific);
        }