Beispiel #1
0
    public void InitCat()
    {
        // 最新/搜索
        //var mangaIlluLv3Cat = new Categories(Config, "插画+动图", "漫画");
        //var newItemCat = new Category(Config, "最新/搜索", mangaIlluLv3Cat);
        //newItemCat.Config.IsSupportSearchByImageLastId = true;
        //Lv2Cat.Add(newItemCat); //0

        //// 作者ID搜索
        //Lv2Cat.Add(new Category(Config, "作者ID搜索", mangaIlluLv3Cat)); //1

        //// 排行
        //var rankLv4Cat = new Categories(Config, "综合", "插画", "漫画", "动图");
        //var r18Lv3Cats = new Categories(Config, rankLv4Cat, "今日", "本周", "最受男性欢迎", "最受女性欢迎");
        //var normalLv3Cats = new Categories(Config, rankLv4Cat, "今日", "本周", "本月", "新人", "原创", "最受男性欢迎", "最受女性欢迎");
        //var item = new Category(Config, "排行", IsR18 ? r18Lv3Cats : normalLv3Cats); //2
        //item.Config.IsSupportDatePicker = true;
        //item.Config.IsSupportKeyword = false;
        //Lv2Cat.Add(item);

        Config.IsSupportKeyword    = true;
        Config.IsSupportRating     = true;
        Config.IsSupportResolution = true;
        Config.IsSupportScore      = true;
        Config.IsSupportAccount    = true;

        Lv2Cat = new Categories(Config);
        // 最新/搜索 + 作者ID搜索
        Lv2Cat.Adds("最新/搜索", "作者ID搜索");
        Lv2Cat.EachSubAdds("插画+动图", "漫画");

        // 排行
        var rank = Lv2Cat.AddAndSelect("排行");

        rank.Config.IsSupportDatePicker = true;
        rank.Config.IsSupportKeyword    = false;
        if (IsR18)
        {
            rank.SubCategories.Adds("今日", "本周", "最受男性欢迎", "最受女性欢迎");
        }
        else
        {
            rank.SubCategories.Adds("今日", "本周", "本月", "新人", "原创", "最受男性欢迎", "最受女性欢迎");
        }
        rank.SubCategories.EachSubAdds("综合", "插画", "漫画", "动图");
    }