Пример #1
0
    private inetLinkItem AddInetLinkItem(List <uItem> ItemList, string Text, string Link, float Height)
    {
        inetLinkItem new_item = new inetLinkItem(Text, Link, Height);

        ItemList.Add(new_item);
        return(new_item);
    }
Пример #2
0
    public void addUrlItem(GameObject Container, inetLinkItem infoItem)
    {
        GameObject newMenu = Instantiate(infoItemURL, new Vector3(0, 0, 0), new Quaternion(0, 0, 0, 0)) as GameObject;

        smprocSetCustomButton(newMenu, () => gotoURL(infoItem.Link));
        smprocSetText(newMenu, "Text", infoItem.Text);
        FillItemRectTransform(newMenu.GetComponent <RectTransform> (), infoItem.Height, Container.transform);
    }
Пример #3
0
 private void fillNextContainer(List <uItem> Items, GameObject NextContainer)
 {
     for (int itemIndex = 0; itemIndex < Items.Count; itemIndex++)
     {
         if (Items[itemIndex] is subMenuItemExtra)
         {
             subMenuItemExtra smItem = Items[itemIndex] as subMenuItemExtra;
             addSubMenu(NextContainer, smItem);
         }
         if (Items[itemIndex] is subMenuItemSingle)
         {
             subMenuItemSingle smItem = Items[itemIndex] as subMenuItemSingle;
             addSubMenu2(NextContainer, smItem);
         }
         if (Items[itemIndex] is callInfoItem)
         {
             callInfoItem iItem = Items[itemIndex] as callInfoItem;
             addInfoPhoneNumber(NextContainer, iItem);
         }
         if (Items[itemIndex] is inetLinkItem)
         {
             inetLinkItem iItem = Items[itemIndex] as inetLinkItem;
             addUrlItem(NextContainer, iItem);
         }
         if (Items[itemIndex] is calendarItem)
         {
             calendarItem iItem = Items[itemIndex] as calendarItem;
             addCalendarItem(NextContainer, iItem);
         }
         if (Items[itemIndex] is tableItem)
         {
             tableItem iItem = Items[itemIndex] as tableItem;
             addTableItem(NextContainer, iItem);
         }
         if (Items[itemIndex] is textInfoItem)
         {
             textInfoItem iItem = Items[itemIndex] as textInfoItem;
             addTextInfoItem(NextContainer, iItem);
         }
         if (Items[itemIndex] is mapItem)
         {
             mapItem iItem = Items[itemIndex] as mapItem;
             addMapItem(NextContainer, iItem);
         }
     }
 }