protected void Initialize(List <CItemBase> menulist, bool showAllItems, string title, int defaultPos)
        {
            ConditionallyInitializePrvFont();

            stqMenuTitle              = new stQuickMenuItem();
            stqMenuTitle.cItem        = new CItemBase();
            stqMenuTitle.cItem.str項目名 = title;
            using (var bitmap = prvFont.DrawPrivateFont(title, Color.White, Color.Black))
            {
                stqMenuTitle.txName   = TJAPlayer3.tテクスチャの生成(bitmap, false);
                stqMenuTitle.rectName = prvFont.RectStrings;
            }
            lciMenuItems = new stQuickMenuItem[menulist.Count];
            for (int i = 0; i < menulist.Count; i++)
            {
                stQuickMenuItem stqm = new stQuickMenuItem();
                stqm.cItem = menulist[i];
                using (var bitmap = prvFont.DrawPrivateFont(menulist[i].str項目名, Color.White, Color.Black))
                {
                    stqm.txName   = TJAPlayer3.tテクスチャの生成(bitmap, false);
                    stqm.rectName = prvFont.RectStrings;
                }
                lciMenuItems[i] = stqm;
            }

            bShowAllItems = showAllItems;
            n現在の選択行       = defaultPos;
        }
Ejemplo n.º 2
0
        public void Initialize(List <CItemBase> menulist, bool showAllItems, string title, int defaultPos)
        {
            prvFont = new CPrivateFastFont(CSkin.Path(@"Graphics\fonts\ipag.ttf"), 18);

            stqMenuTitle              = new stQuickMenuItem();
            stqMenuTitle.cItem        = new CItemBase();
            stqMenuTitle.cItem.str項目名 = title;
            stqMenuTitle.txName       = CDTXMania.tテクスチャの生成(prvFont.DrawPrivateFont(title, Color.White, Color.Black), false);
            stqMenuTitle.rectName     = prvFont.RectStrings;
            lciMenuItems              = new stQuickMenuItem[menulist.Count];
            for (int i = 0; i < menulist.Count; i++)
            {
                stQuickMenuItem stqm = new stQuickMenuItem();
                stqm.cItem      = menulist[i];
                stqm.txName     = CDTXMania.tテクスチャの生成(prvFont.DrawPrivateFont(menulist[i].str項目名, Color.White, Color.Black), false);
                stqm.rectName   = prvFont.RectStrings;
                lciMenuItems[i] = stqm;
            }

            bShowAllItems = showAllItems;
            n現在の選択行       = defaultPos;
        }