public TrickOverViewInfo(string name, string description, string category, string code, string codePath,
                                 Type type, string picPath = "", string videoPath = "")
        {
            this.Name        = name;
            this.Description = description;
            this.Category    = category;

            this.Code     = code;
            this.CodePath = codePath;

            this.m_Example = AllTrickOverViewUtilities.GetExampleByType(type);

            this.PicPath   = picPath;
            this.VideoPath = videoPath;
        }
예제 #2
0
        public TrickOverViewItem(Type type)
        {
            this.DrawCodeExample = true;
            AExample_Base aExampleBase =
                AllTrickOverViewUtilities.GetExampleByType(type);

            if (aExampleBase == null)
            {
                return;
            }

            TrickOverViewInfo trickOverViewInfo = aExampleBase.GetTrickOverViewInfo();

            this.Name        = trickOverViewInfo.Name;
            this.Description = trickOverViewInfo.Description;

            this.m_TrickOverViewPreviewDrawer = new TrickOverViewPreview(trickOverViewInfo);
            this.tabGroup = new GUITabGroup
            {
                ToolbarHeight = 30f
            };

            this.tabGroup.RegisterTab(trickOverViewInfo.Name);
        }