Ejemplo n.º 1
0
    internal static void smethod_0(Class421 A_0, FootnoteType A_1, AttrCollection A_2, bool A_3)
    {
        int    num  = 0;
        bool   flag = A_1 == FootnoteType.Endnote;
        object obj2 = A_2.method_31(2);
        object obj3 = A_2.method_31(1);
        object obj4 = A_2.method_31(4);
        object obj5 = A_2.method_31(3);

        if ((((obj2 != null) || (obj3 != null)) || ((obj4 != null) || (obj5 != null))) || A_3)
        {
            Class398 class2 = A_0.Interface52.imethod_1();
            class2.method_4(flag ? BookmarkStart.b("儥ሧ伩䈫䨭帯崱䀳匵样䠹", num) : BookmarkStart.b("儥ሧ䰩䌫䄭䐯就嬳䈵崷樹主", num));
            if (obj2 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ娩䌫崭", num), Class339.smethod_7((FootnotePosition)obj2, false));
            }
            class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭瘯弱䀳", num), Class911.smethod_3(Class911.smethod_12((FootnoteNumberFormat)obj3)));
            if (obj4 != null)
            {
                class2.method_32(BookmarkStart.b("儥ሧ䐩夫䌭振䘱唳䐵䰷", num), (int)obj4, 1);
            }
            if (obj5 != null)
            {
                class2.method_24(BookmarkStart.b("儥ሧ䐩夫䌭戯圱䜳䈵夷䠹䠻", num), Class339.smethod_1((FootnoteRestartRule)obj5, false));
            }
            if (A_3)
            {
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteSeparator : FootnoteSeparatorType.FootnoteSeparator);
                smethod_1(A_0, flag, flag ? FootnoteSeparatorType.EndnoteContinuation : FootnoteSeparatorType.FootnoteContinuation);
            }
            class2.method_5();
        }
    }
Ejemplo n.º 2
0
 // Token: 0x060028C5 RID: 10437
 // RVA: 0x00100D14 File Offset: 0x000FEF14
 internal Class658(Class911 class911_1, ProgressBarTypes progressBarTypes_0, float float_1)
 {
     this.class911_0 = class911_1;
     Enum115 enum115_;
     switch (progressBarTypes_0)
     {
     case ProgressBarTypes.Pie:
         return;
     case ProgressBarTypes.BottomRight:
         this.vector2_0 = new Vector2(118f, 460f);
         this.float_0 = 118f;
         enum115_ = Enum115.const_7;
         goto IL_9D;
     case ProgressBarTypes.Bottom:
         this.vector2_0 = new Vector2(0f, 477f);
         this.float_0 = (float)Class115.int_22 / Class115.float_4;
         enum115_ = Enum115.const_5;
         goto IL_9D;
     }
     this.vector2_0 = new Vector2(178f, float_1 - 2f);
     this.float_0 = 170f;
     enum115_ = Enum115.const_7;
     IL_9D:
     this.class531_0 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.938f, true, new Color(255, 255, 255, 20), null);
     this.class531_0.float_2 = 1.6f;
     this.class531_0.vector2_2 = new Vector2(this.float_0, 3f);
     this.class531_0.bool_7 = true;
     class911_1.Add(this.class531_0);
     this.class531_1 = new Class531(Class115.class731_0, enum115_, Origins.TopLeft, Enum114.const_0, this.vector2_0, 0.94f, true, new Color(255, 255, 128, 128), null);
     this.class531_1.float_2 = 1.6f;
     this.class531_1.vector2_2 = new Vector2(0f, 3f);
     this.class531_1.bool_7 = true;
     class911_1.Add(this.class531_1);
 }
Ejemplo n.º 3
0
 // Token: 0x0600259C RID: 9628
 // RVA: 0x0001D3E1 File Offset: 0x0001B5E1
 internal Class597(Class911 class911_1, List<Class598> list_1)
 {
     this.list_0 = list_1;
     this.class911_0 = class911_1;
     this.bool_0 = false;
     Class802.smethod_34(Enum96.const_8, new Delegate46(this.method_5), Enum98.const_2, Enum97.const_0);
 }
Ejemplo n.º 4
0
 // Token: 0x06001E18 RID: 7704
 // RVA: 0x000A3E88 File Offset: 0x000A2088
 public Class414(Class911 class911_1, Class421 class421_1, bool bool_2)
     : base(class911_1, Class885.class547_0.string_5)
 {
     this.class421_0 = class421_1;
     this.class536_0.vector2_1 = new Vector2(class421_1.method_23() + class421_1.float_0 / 2f, class421_1.method_41((float)class421_1.class546_0.int_2));
     this.class536_0.vector2_5 = Vector2.get_Zero();
     this.class536_0.origins_0 = Origins.Centre;
     if (Class885.class547_0.double_0 >= 2.4 || class421_1.method_31() < 1f)
     {
         this.class536_0.float_2 = class421_1.method_33();
     }
     this.class536_0.bool_21 = true;
     this.color_0 = class421_1.class546_0.method_8("Hold", new Color(255, 199, 51));
     this.color_1 = class421_1.class546_0.method_8("Break", Color.get_Red());
     if (!bool_2)
     {
         return;
     }
     if (class421_1.method_3() != null)
     {
         foreach (Class421 current in class421_1.method_3())
         {
             this.list_0.Add(new Class414(class911_1, current, false));
         }
     }
 }
Ejemplo n.º 5
0
 // Token: 0x060028F3 RID: 10483
 // RVA: 0x001027B4 File Offset: 0x001009B4
 internal Class412(Class911 class911_1)
     : base(class911_1)
 {
     this.bool_0 = false;
     this.class531_1.vector2_1 = new Vector2(this.class538_0.vector2_1.X + (float)this.class538_0.int_6 * Class115.float_5, this.class531_1.vector2_1.Y);
     this.class531_1.class26_0.Add(new Class746(TransformationType.Scale, 0f, 1f, Class115.int_1, Class115.int_1 + 1000, Enum70.const_1));
     this.class531_1.class26_0.Add(new Class746(TransformationType.Rotation, -4f, 0f, Class115.int_1, Class115.int_1 + 1000, Enum70.const_1));
 }
Ejemplo n.º 6
0
 // Token: 0x06001DC0 RID: 7616
 // RVA: 0x000A212C File Offset: 0x000A032C
 internal Class103(Class114 class114_1, Class297 class297_1)
     : base(class114_1)
 {
     this.class297_0 = class297_1;
     this.class911_0 = new Class911(true);
     this.class911_0.float_0 = 0f;
     this.Initialize();
 }
Ejemplo n.º 7
0
 // Token: 0x060028C9 RID: 10441
 // RVA: 0x00100EB4 File Offset: 0x000FF0B4
 internal Class659(Class911 class911_1, Vector2 vector2_1)
     : base(class911_1, ProgressBarTypes.Pie, 34f)
 {
     this.vector2_0 = vector2_1;
     this.class531_2 = new Class531(Class885.Load("circularmetre", Enum112.flag_1), Enum115.const_7, Origins.Centre, Enum114.const_0, vector2_1, 0.95f, true, Color.get_White(), null);
     class911_1.Add(this.class531_2);
     this.class82_0.vector2_0 = new Vector2((float)Class115.int_22 / Class115.float_4 - vector2_1.X, vector2_1.Y);
     this.class82_0.float_1 = 10f;
 }
Ejemplo n.º 8
0
 // Token: 0x06002D7A RID: 11642
 // RVA: 0x00127C74 File Offset: 0x00125E74
 internal Class594(Class911 class911_1, int int_5, Vector2 vector2_1, float float_3, bool bool_3, Color color_2)
     : base(class911_1, int_5, vector2_1, float_3, bool_3, color_2)
 {
     Vector2 vector2_2;
     vector2_2..ctor(vector2_1.X + (float)(this.list_1.Count % this.int_0 * 74) + (float)(this.list_1.Count / this.int_0 * 10), vector2_1.Y + 6f - (float)(14 * (1 + this.list_1.Count / this.int_0)));
     this.class751_0 = new Class751(vector2_2, 1f, false, false);
     this.class751_0.method_0(new EventHandler(this.method_13));
     this.list_0.AddRange(this.class751_0.list_0);
     class911_1.Add<Class531>(this.class751_0.list_0);
     this.list_1.Insert(0, this.class751_0);
 }
Ejemplo n.º 9
0
    internal static void smethod_0(Document A_0, Class399 A_1)
    {
        int num = 7;

        A_1.method_4(BookmarkStart.b("娬ᔮ地尲嬴䌶䨸", 7));
        A_1.method_4(BookmarkStart.b("娬ᔮ唰嘲匴嘶䰸场䤼社⹀ⵂㅄ㑆", 7));
        A_1.method_18(BookmarkStart.b("娬ᔮ倰䀲嘴帶倸", 7), A_0.DefaultFontNameTable.method_0());
        A_1.method_18(BookmarkStart.b("娬ᔮ地刲䜴制堸䠺䤼", 7), A_0.DefaultFontNameTable.method_2());
        A_1.method_18(BookmarkStart.b("娬ᔮ夰Ḳ吴夶䨸刺", 7), A_0.DefaultFontNameTable.method_4());
        A_1.method_18(BookmarkStart.b("娬ᔮ到䀲", 7), A_0.DefaultFontNameTable.method_6());
        A_1.method_5();
        using (IEnumerator enumerator = A_0.FontInfoList.System.Collections.IEnumerable.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                Form4 form = (Form4)enumerator.Current;
                A_1.method_4(BookmarkStart.b("娬ᔮ地尲嬴䌶", num));
                A_1.method_18(BookmarkStart.b("娬ᔮ弰刲場制", num), form.method_31());
                if (Class567.smethod_16(form.method_33()))
                {
                    if (form.method_33().IndexOf(BookmarkStart.b("⴬", num)) >= 0)
                    {
                        form.method_34(form.method_33().Substring(0, form.method_33().IndexOf(BookmarkStart.b("⴬", num))));
                    }
                    A_1.method_24(BookmarkStart.b("娬ᔮ倰弲䄴礶堸嘺堼", num), form.method_33().Replace(BookmarkStart.b("⴬", num), BookmarkStart.b("ᘬ", num)));
                }
                if (form.method_35() != null)
                {
                    A_1.method_24(BookmarkStart.b("娬ᔮ䄰刲嬴堶䨸帺ြ฾", num), Class567.smethod_40(form.method_35()));
                }
                A_1.method_24(BookmarkStart.b("娬ᔮ到嬲吴䔶䨸帺䤼", num), Class1041.smethod_39(form.method_37()));
                A_1.method_24(BookmarkStart.b("娬ᔮ地刲場帶唸䈺", num), Class911.smethod_1(form.method_39()));
                if (!form.method_43())
                {
                    A_1.method_10(BookmarkStart.b("娬ᔮ弰尲䄴挶䬸为堼款㡀㍂⁄", num));
                }
                A_1.method_24(BookmarkStart.b("娬ᔮ䄰娲䄴吶儸", num), Class417.smethod_7(form.method_41()));
                if (form.method_45() != null)
                {
                    A_1.method_4(BookmarkStart.b("娬ᔮ䈰娲刴", num));
                    A_1.method_18(BookmarkStart.b("娬ᔮ䐰䀲圴ᨶस", num), Class114.smethod_4(form.method_45(), 0));
                    A_1.method_18(BookmarkStart.b("娬ᔮ䐰䀲圴ᨶ࠸", num), Class114.smethod_4(form.method_45(), 4));
                    A_1.method_18(BookmarkStart.b("娬ᔮ䐰䀲圴ᨶସ", num), Class114.smethod_4(form.method_45(), 8));
                    A_1.method_18(BookmarkStart.b("娬ᔮ䐰䀲圴ᨶਸ", num), Class114.smethod_4(form.method_45(), 12));
                    A_1.method_18(BookmarkStart.b("娬ᔮ到䀲圴ᨶस", num), Class114.smethod_4(form.method_45(), 0x10));
                    A_1.method_18(BookmarkStart.b("娬ᔮ到䀲圴ᨶ࠸", num), Class114.smethod_4(form.method_45(), 20));
                    A_1.method_5();
                }
                A_1.method_5();
            }
        }
        A_1.method_5();
    }
Ejemplo n.º 10
0
    protected override void vmethod_3(string A_0, Border A_1, bool A_2)
    {
        int num = 11;

        if (!A_2)
        {
            base.method_33(A_0, new object[] { BookmarkStart.b("䘰ल䌴嘶唸", num), Class911.smethod_7(A_1.BorderType), BookmarkStart.b("䘰ल䘴䴶", num), (int)(A_1.LineWidth * 8f), BookmarkStart.b("䘰䬲༴唶崸䤺䨼嘾╀㝂ⵄ", num), (int)Math.Round((double)(A_1.LineWidth * 20f)), BookmarkStart.b("䘰ल䘴䜶堸堺堼", num), A_1.Space, BookmarkStart.b("䘰ल嘴堶唸吺似", num), A_1.Color, BookmarkStart.b("䘰ल䘴弶堸强刼䠾", num), Class398.smethod_10(A_1.Shadow), BookmarkStart.b("䘰ल匴䔶堸嘺堼", num), Class398.smethod_10(A_1.Frame) });
        }
        else
        {
            base.method_33(A_0, new object[] { BookmarkStart.b("䘰ल䌴嘶唸", num), Class911.smethod_7(A_1.BorderType), BookmarkStart.b("䘰ल䘴䴶", num), (int)(A_1.LineWidth * 8f), BookmarkStart.b("䘰ल䘴䜶堸堺堼", num), A_1.Space, BookmarkStart.b("䘰ल嘴堶唸吺似", num), A_1.Color, BookmarkStart.b("䘰ल䘴弶堸强刼䠾", num), Class398.smethod_10(A_1.Shadow), BookmarkStart.b("䘰ल匴䔶堸嘺堼", num), Class398.smethod_10(A_1.Frame) });
        }
    }
Ejemplo n.º 11
0
 // Token: 0x06002F19 RID: 12057
 // RVA: 0x0013204C File Offset: 0x0013024C
 internal Class796(Class911 class911_0, Vector2 vector2_1, Class799 class799_1)
 {
     this.class531_0 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, vector2_1, 0.999f, true, Color.get_Gray(), null);
     this.class531_0.float_2 = 1.6f;
     this.class531_0.float_3 = 0f;
     class911_0.Add(this.class531_0);
     this.class799_0 = class799_1;
     this.vector2_0 = vector2_1;
     this.class533_0 = new Class533[10];
     for (int i = 0; i < 10; i++)
     {
         this.class533_0[i] = new Class533("", 15f, vector2_1 + new Vector2(0f, (float)(15 * i)), 1f, true, Color.get_White());
         this.class533_0[i].float_3 = 0f;
         class911_0.Add(this.class533_0[i]);
     }
 }
Ejemplo n.º 12
0
    private static void smethod_8(Class581 A_0, FootnoteType A_1)
    {
        int num = 9;
        FootnoteSeparatorType normal = FootnoteSeparatorType.Normal;
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string str;
            if (((str = class2.method_1()) != null) && (str == BookmarkStart.b("嬮䠰䌲倴", num)))
            {
                bool flag = A_1 == FootnoteType.Endnote;
                normal = Class911.smethod_10(class2.method_3(), flag);
            }
        }
        if (normal != FootnoteSeparatorType.Normal)
        {
            Class8 class3 = new Class8(A_0.Interface50.imethod_0(), normal);
            A_0.Interface50.imethod_0().FootnoteSeparators.method_1(normal, class3);
        }
    }
Ejemplo n.º 13
0
    private static void smethod_7(Class581 A_0, Class17 A_1)
    {
        int      num    = 5;
        Class394 class2 = A_0.imethod_1();

        while (class2.method_19())
        {
            string str = class2.method_1();
            if (str != null)
            {
                if (str != BookmarkStart.b("䴪䀬嬮", num))
                {
                    if (str != BookmarkStart.b("堪夬丮䌰䜲", num))
                    {
                        if ((str != BookmarkStart.b("䠪䔬丮䄰怲䄴丶唸帺", num)) && (str != BookmarkStart.b("䠪䔬丮䄰Ḳ䘴䌶䀸场堼", num)))
                        {
                            if ((str == BookmarkStart.b("䠪䔬丮䄰怲倴䜶", num)) || (str == BookmarkStart.b("䠪䔬丮䄰Ḳ䘴制䤸", num)))
                            {
                                A_1.method_55(Class339.smethod_10(class2.method_3()));
                            }
                        }
                        else
                        {
                            A_1.method_85(class2.method_4());
                        }
                    }
                    else
                    {
                        A_1.method_87(class2.method_4());
                        A_1.method_61(true);
                    }
                }
                else
                {
                    A_0.vmethod_5();
                    A_1.method_53((PageNumberStyle)Class911.smethod_2(class2.method_3()));
                }
            }
        }
    }
Ejemplo n.º 14
0
 // Token: 0x060028BD RID: 10429
 // RVA: 0x001005D8 File Offset: 0x000FE7D8
 internal Class657(Class64 class64_1, Class911 class911_1)
 {
     this.class64_0 = class64_1;
     this.class911_0 = class911_1;
     this.class533_0 = new Class533("Blue Team", 16f, new Vector2(0f, 100f), 1f, true, Color.get_White());
     this.class533_0.bool_16 = true;
     this.class533_0.method_58(true);
     class911_1.Add(this.class533_0);
     this.class533_1 = new Class533("Red Team", 16f, new Vector2((float)Class115.smethod_43(), 100f), 1f, true, Color.get_White());
     this.class533_1.method_58(true);
     this.class533_1.bool_16 = true;
     this.class533_1.origins_0 = Origins.TopRight;
     class911_1.Add(this.class533_1);
     this.bool_0 = (Class64.class10_0.matchScoringType == MatchScoringTypes.Accuracy);
     this.class666_0 = new Class666(class911_1, new Vector2(0f, 120f), false, 0.7f, !this.bool_0, this.bool_0);
     this.class666_1 = new Class666(class911_1, new Vector2(0f, 120f), true, 0.7f, !this.bool_0, this.bool_0);
     this.class531_0 = new Class531(Class885.Load("lobby-crown", Enum112.flag_1), Origins.Centre, new Vector2((float)(Class115.smethod_43() / 2), 90f), 0.99f, true, Color.get_Yellow());
     this.class531_0.float_2 = 1.2f;
     class911_1.Add(this.class531_0);
     this.class531_1 = new Class531(Class885.Load("lobby-crown", Enum112.flag_1), Origins.Centre, new Vector2((float)(Class115.smethod_43() / 2), 90f), 1f, true, Color.get_Yellow());
     this.class531_1.bool_7 = true;
     Class746 class = new Class746(TransformationType.Scale, 1.2f, 1.3f, Class115.int_1, Class115.int_1 + 1000, Enum70.const_2);
Ejemplo n.º 15
0
 // Token: 0x06002902 RID: 10498
 // RVA: 0x001029F4 File Offset: 0x00100BF4
 internal Class666(Class911 class911_1, Vector2 vector2_2, bool bool_0, float float_1, bool bool_1, bool bool_2)
 {
     this.class911_0 = class911_1;
     this.float_0 = float_1;
     if (Class115.bool_16)
     {
         float_1 *= 1.4f;
     }
     float num = vector2_2.Y;
     this.vector2_1 = Vector2.get_Zero();
     if (bool_1)
     {
         this.class536_0 = new Class536("00000000", Class885.class547_0.string_4, Class885.class547_0.int_1, bool_0 ? Enum115.const_7 : Enum115.const_5, bool_0 ? Origins.TopRight : Origins.TopLeft, Enum114.const_0, new Vector2(0f, 0f), 0.95f, true, Color.get_White(), true);
         this.class536_0.bool_21 = true;
         this.vector2_1 = this.class536_0.vmethod_11() * 0.625f * float_1;
         this.class536_0.vector2_1 = new Vector2(vector2_2.X, num);
         this.class536_0.float_2 = float_1;
         num += this.vector2_1.Y;
     }
     if (Class885.smethod_25())
     {
         num += 3f;
     }
     if (bool_2)
     {
         this.class536_1 = new Class536("00.00%", Class885.class547_0.string_4, Class885.class547_0.int_1, bool_0 ? Enum115.const_7 : Enum115.const_5, bool_0 ? Origins.TopRight : Origins.TopLeft, Enum114.const_0, new Vector2(0f, 0f), 0.95f, true, Color.get_White(), true);
         this.class536_1.float_2 = float_1 * (bool_1 ? 0.6f : 1f);
         this.class536_1.bool_21 = true;
         this.class536_1.vector2_1 = new Vector2(vector2_2.X, num);
         this.vector2_0 = this.class536_1.vector2_1 + new Vector2(this.class536_1.vmethod_11().X * 0.625f * this.class536_1.float_2 + 24f, this.class536_1.vmethod_11().Y * 0.625f * this.class536_1.float_2 / 2f);
     }
     if (!Class62.bool_15 && !Class62.bool_16)
     {
         class911_1.Add(this.class536_0);
         class911_1.Add(this.class536_1);
     }
 }
Ejemplo n.º 16
0
 // Token: 0x06002887 RID: 10375
 // RVA: 0x000FE924 File Offset: 0x000FCB24
 internal Class415(Class911 class911_1)
     : base(class911_1, "")
 {
     if (Class885.smethod_25())
     {
         this.class536_0.vector2_1 = new Vector2(56f, 211f);
         this.class536_0.vector2_0 = new Vector2(56f, 211f);
         this.class536_0.vector2_5 = Vector2.get_Zero();
         this.class536_1.vector2_1 = new Vector2(56f, 211f);
         this.class536_1.vector2_5 = Vector2.get_Zero();
         this.class536_0.bool_21 = true;
     }
     else
     {
         this.class536_0.vector2_1 = new Vector2(53f, 211f);
         this.class536_0.vector2_0 = new Vector2(53f, 211f);
         this.class536_0.vector2_5 = Vector2.get_Zero();
         this.class536_1.vector2_1 = new Vector2(53f, 211f);
         this.class536_1.vector2_5 = Vector2.get_Zero();
     }
     this.class536_0.float_2 = 0.8f;
     this.class536_1.float_2 = 0.8f;
     this.class536_0.origins_0 = Origins.BottomCentre;
 }
Ejemplo n.º 17
0
		// Token: 0x06002371 RID: 9073
		// RVA: 0x0001C0D6 File Offset: 0x0001A2D6
		public Class520(bool bool_0)
		{
			this.class911_0 = new Class911(bool_0);
		}
Ejemplo n.º 18
0
 // Token: 0x06002907 RID: 10503
 // RVA: 0x0001F8DA File Offset: 0x0001DADA
 internal Class667(Class911 class911_1)
     : base(class911_1)
 {
     Class536 expr_12_cp_0 = this.class536_1;
     expr_12_cp_0.vector2_1.Y = expr_12_cp_0.vector2_1.Y + this.vector2_1.Y * 0.8f;
 }
Ejemplo n.º 19
0
 // Token: 0x060027B1 RID: 10161
 // RVA: 0x000F6AD4 File Offset: 0x000F4CD4
 public Class95()
     : base(Class41.GetString(OsuString.JumpToDialog_Title), true)
 {
     this.class911_0.Add(new Class540(new Vector2(10f, 79f), new Vector2((float)(Class115.smethod_43() - 20), 1f), 1f, Color.get_White()));
     this.class911_0.Add(new Class540(new Vector2(10f, 440f), new Vector2((float)(Class115.smethod_43() - 20), 1f), 1f, Color.get_White()));
     Rectangle rectangle_;
     rectangle_..ctor(10, 80, (int)(640f * Class115.smethod_46()) - 20, 360);
     this.class110_0 = new Class110(rectangle_, Vector2.get_Zero(), true, 0f, Enum98.const_5);
     this.class911_1 = new Class911(true);
     this.class911_2 = new Class911(true);
     this.class911_1.method_4(Class115.bool_21, null);
     this.int_1 = Class115.smethod_43();
     this.class533_0 = new Class533(Class41.GetString(OsuString.SongSelection_Collections) + ":", 20f, new Vector2(10f, 30f), 2f, true, new Color(254, 220, 97));
     this.class753_0 = new Class753(this.class911_2, "All", new Vector2(10f, 55f), 140f, 3f);
     this.class756_0 = new Class756(20, new Vector2(10f, 50f), 20, Enum72.const_3);
     this.int_2 = -1;
     this.class911_0.Add<Class531>(this.class756_0.list_0);
     this.class911_0.Add(this.class533_0);
     this.class110_0.method_30(this.class911_1);
     Class754 arg_1FF_0 = this.class756_0;
     Class754.Delegate37 delegate37_ = delegate(Class754 class754_0, bool bool_6)
     {
         if (bool_6)
         {
             if (this.class756_0.method_29() && this.class756_0.string_0.Length == 1)
             {
                 this.int_2 = Class115.int_1;
                 return;
             }
             if (!this.class756_0.method_29())
             {
                 this.int_2 = Class115.int_1 + 300;
             }
         }
     };
     arg_1FF_0.method_3(delegate37_);
     if (Class95.eventHandler_4 == null)
     {
         Class95.eventHandler_4 = new EventHandler(Class95.smethod_2);
     }
     base.method_2(Class95.eventHandler_4);
     this.class753_0.method_9("All", "All");
     this.class753_0.method_18("All", true);
     foreach (string current in Class476.smethod_0().Keys)
     {
         this.class753_0.method_9(current, current);
     }
     this.class753_0.method_0(new EventHandler(this.method_11));
     this.class296_0 = Class466.Current;
     this.method_9();
 }
Ejemplo n.º 20
0
 // Token: 0x06002F1D RID: 12061
 // RVA: 0x001322EC File Offset: 0x001304EC
 public InputOverlay()
     : base(Class115.class114_0)
 {
     this.class911_0 = new Class911(true);
     this.Initialize();
 }
Ejemplo n.º 21
0
    internal static void smethod_0(Class581 A_0, Section A_1)
    {
        int      num       = 15;
        bool     isDefault = A_1.SectPr.IsDefault;
        Class17  sectPr    = A_1.SectPr;
        Class394 class3    = A_0.imethod_1();

        if (A_0.vmethod_5())
        {
            while (class3.method_19())
            {
                string str2;
                if (((str2 = class3.method_1()) != null) && (str2 == BookmarkStart.b("䜴䐶倸强渼娾≀㝂", num)))
                {
                    int num3 = Class114.smethod_7(class3.method_3());
                    if (num3 != -2147483648)
                    {
                        sectPr.SetAttr(0x8ca, num3);
                    }
                }
            }
        }
        while (class3.method_9(BookmarkStart.b("䘴制娸伺洼䴾", num)))
        {
            string key = class3.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_220 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x18);
                    dictionary1.Add(BookmarkStart.b("崴制堸强堼䴾ፀ♂⍄≆㭈⹊⍌ⱎ㑐", num), 0);
                    dictionary1.Add(BookmarkStart.b("匴堶嘸伺堼䴾ፀ♂⍄≆㭈⹊⍌ⱎ㑐", num), 1);
                    dictionary1.Add(BookmarkStart.b("崴匶䬸", num), 2);
                    dictionary1.Add(BookmarkStart.b("匴䌶䬸", num), 3);
                    dictionary1.Add(BookmarkStart.b("匴堶嘸伺匼倾㕀♂ᕄ㕆", num), 4);
                    dictionary1.Add(BookmarkStart.b("倴夶崸唺刼䬾⑀ፂ㝄", num), 5);
                    dictionary1.Add(BookmarkStart.b("䄴丶䤸帺", num), 6);
                    dictionary1.Add(BookmarkStart.b("䔴倶樸䄺", num), 7);
                    dictionary1.Add(BookmarkStart.b("䔴倶琸娺似", num), 8);
                    dictionary1.Add(BookmarkStart.b("䔴嘶䤸帺似氾㍀⁂", num), 9);
                    dictionary1.Add(BookmarkStart.b("䔴倶笸吺似嬾⑀ㅂ㙄", num), 10);
                    dictionary1.Add(BookmarkStart.b("头夶眸为值款㡀㍂⁄", num), 11);
                    dictionary1.Add(BookmarkStart.b("䔴倶眸为值款㡀㍂⁄", num), 12);
                    dictionary1.Add(BookmarkStart.b("嘴堶唸䠺", num), 13);
                    dictionary1.Add(BookmarkStart.b("匴堶䬸嘺洼䴾⹀㝂", num), 14);
                    dictionary1.Add(BookmarkStart.b("䌴瘶唸刺娼儾", num), 15);
                    dictionary1.Add(BookmarkStart.b("嬴堶簸唺夼儾⹀㝂⁄", num), 0x10);
                    dictionary1.Add(BookmarkStart.b("䄴帶䴸场堼漾♀", num), 0x11);
                    dictionary1.Add(BookmarkStart.b("䄴制䄸伺笼匾⹀㑂", num), 0x12);
                    dictionary1.Add(BookmarkStart.b("圴帶崸刺", num), 0x13);
                    dictionary1.Add(BookmarkStart.b("䜴䌶唸簺䠼䬾㕀♂㝄", num), 20);
                    dictionary1.Add(BookmarkStart.b("儴堶娸簺似嘾╀", num), 0x15);
                    dictionary1.Add(BookmarkStart.b("䘴制娸伺洼䴾ɀ⭂⑄⥆⹈⹊", num), 0x16);
                    dictionary1.Add(BookmarkStart.b("吴夶圸吺䤼帾㕀⩂⩄⥆", num), 0x17);
                    Class1160.dictionary_220 = dictionary1;
                }
                if (Class1160.dictionary_220.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 2:
                    case 3:
                        smethod_1(A_1, A_0);
                        break;

                    case 4:
                        Class913.smethod_7(A_0, class3.method_1(), sectPr.method_139());
                        break;

                    case 5:
                        Class913.smethod_7(A_0, class3.method_1(), sectPr.method_138());
                        break;

                    case 6:
                        sectPr.SetAttr(0x7ee, Class339.smethod_20(class3.method_28()));
                        break;

                    case 7:
                        smethod_2(class3, sectPr);
                        break;

                    case 8:
                        smethod_3(class3, sectPr);
                        break;

                    case 9:
                        smethod_4(class3, sectPr);
                        break;

                    case 10:
                        smethod_5(class3, sectPr, A_1.PageSetup.Borders);
                        break;

                    case 11:
                        smethod_6(class3, sectPr);
                        break;

                    case 12:
                        smethod_7(A_0, sectPr);
                        break;

                    case 13:
                        smethod_8(class3, sectPr, A_1);
                        break;

                    case 14:
                        sectPr.SetAttr(0x956, !class3.method_31());
                        break;

                    case 15:
                        sectPr.SetAttr(0x924, Class339.smethod_8(class3.method_28()));
                        break;

                    case 0x10:
                        sectPr.SetAttr(0x834, class3.method_31());
                        break;

                    case 0x11:
                        sectPr.SetAttr(0x7f8, class3.method_31());
                        break;

                    case 0x12:
                        sectPr.SetAttr(0x988, Class911.smethod_4(class3.method_28()));
                        break;

                    case 0x13:
                        sectPr.SetAttr(0x992, class3.method_31());
                        break;

                    case 20:
                        sectPr.SetAttr(0x96a, class3.method_31());
                        break;

                    case 0x15:
                        smethod_10(class3, sectPr);
                        break;

                    case 0x17:
                        Class519.smethod_8(sectPr, A_0);
                        break;
                    }
                }
            }
        }
    }
Ejemplo n.º 22
0
 // Token: 0x06002164 RID: 8548
 // RVA: 0x000C4C8C File Offset: 0x000C2E8C
 internal Class297(bool bool_2)
 {
     if (bool_2)
     {
         this.class911_0 = new Class911(this.vmethod_2())
         {
             bool_6 = false
         };
         this.class911_0.method_15();
         lock (Class297.list_0)
         {
             Class297.list_0.Add(this);
         }
         Class115.smethod_50(new Delegate1(this.method_10));
     }
     if (this.class911_0 != null && Class115.osuModes_1 != OsuModes.Edit)
     {
         this.class911_0.bool_4 = true;
     }
 }
Ejemplo n.º 23
0
 // Token: 0x06001B49 RID: 6985
 // RVA: 0x00016DAD File Offset: 0x00014FAD
 internal Class370(Editor editor_1)
 {
     this.editor_0 = editor_1;
     this.class297_0 = editor_1.class297_0;
     this.class911_0 = new Class911(true);
 }
Ejemplo n.º 24
0
    private static void smethod_3(Class582 A_0, ArrayList A_1, Hashtable A_2, Dictionary <string, string> A_3, Dictionary <string, string> A_4)
    {
        int             num            = 3;
        StyleCollection styles         = A_0.Interface50.imethod_0().Styles;
        Class394        class2         = A_0.imethod_1();
        StyleType       paragraphStyle = StyleType.ParagraphStyle;
        string          str            = null;
        bool            flag           = false;

        while (class2.method_19())
        {
            string str6 = class2.method_1();
            if (str6 != null)
            {
                if (str6 != BookmarkStart.b("崨刪崬䨮", num))
                {
                    if (!(str6 == BookmarkStart.b("䴨个䬬丮䐰弲䄴", num)))
                    {
                        if (str6 == BookmarkStart.b("娨弪听䌮吰稲儴", num))
                        {
                            str = class2.method_3();
                        }
                    }
                    else
                    {
                        flag = class2.method_63();
                    }
                }
                else
                {
                    paragraphStyle = Class911.smethod_8(class2.method_3());
                }
            }
        }
        if (paragraphStyle == StyleType.ListStyle)
        {
            MemoryStream stream = new MemoryStream();
            XmlWriter    writer = Class57.smethod_19(stream, Encoding.UTF8);
            writer.WriteNode(class2.method_8(), false);
            writer.Flush();
        }
        else
        {
            Style style = Style.smethod_1(paragraphStyle, A_0.Interface50.imethod_0()) as Style;
            if (!string.IsNullOrEmpty(str))
            {
                style.method_5(str);
            }
            Class801 class3 = new Class801(style);
            string   str3   = null;
            while (class2.method_9(BookmarkStart.b("娨弪听䌮吰", num)))
            {
                string str2;
                string str5;
                string str7;
                string key = class2.method_1();
                if (key != null)
                {
                    int num2;
                    if (Class1160.dictionary_223 == null)
                    {
                        Dictionary <string, int> dictionary1 = new Dictionary <string, int>(0x10);
                        dictionary1.Add(BookmarkStart.b("䜨䨪䀬䨮", num), 0);
                        dictionary1.Add(BookmarkStart.b("䠨䜪䐬丮䈰嘲䘴", num), 1);
                        dictionary1.Add(BookmarkStart.b("䬨䨪帬䨮唰簲嬴", num), 2);
                        dictionary1.Add(BookmarkStart.b("䜨个唬嬮", num), 3);
                        dictionary1.Add(BookmarkStart.b("䔨䈪䌬䐮", num), 4);
                        dictionary1.Add(BookmarkStart.b("䠨帪夬䀮挰嘲儴制弸刺匼娾", num), 5);
                        dictionary1.Add(BookmarkStart.b("䄨䈪䤬䬮吰崲", num), 6);
                        dictionary1.Add(BookmarkStart.b("娨个䀬䘮礰娲儴匶尸唺", num), 7);
                        dictionary1.Add(BookmarkStart.b("䔨䐪丬䐮吰圲", num), 8);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶", num), 9);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶稸吺值伾⹀あ⁄", num), 10);
                        dictionary1.Add(BookmarkStart.b("夨个弬尮帰崲吴嬶欸帺䴼匾㡀", num), 11);
                        dictionary1.Add(BookmarkStart.b("嬨堪䐬䬮", num), 12);
                        dictionary1.Add(BookmarkStart.b("夨笪弬", num), 13);
                        dictionary1.Add(BookmarkStart.b("嬨笪弬", num), 14);
                        dictionary1.Add(BookmarkStart.b("尨䈪挬丮尰嘲", num), 15);
                        Class1160.dictionary_223 = dictionary1;
                    }
                    if (Class1160.dictionary_223.TryGetValue(key, out num2))
                    {
                        switch (num2)
                        {
                        case 0:
                            goto Label_02A7;

                        case 1:
                        {
                            str3 = class2.method_28();
                            continue;
                        }

                        case 2:
                        {
                            if (style.Name.ToLower() != BookmarkStart.b("䜨䐪弬䈮倰弲", num))
                            {
                                str5 = class2.method_28();
                                if (A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str5))
                                {
                                    goto Label_0345;
                                }
                                A_3.Add(style.StyleId, str5);
                            }
                            continue;
                        }

                        case 3:
                        {
                            style.NextStyle = class2.method_28();
                            continue;
                        }

                        case 4:
                        {
                            str2 = class2.method_28();
                            if (!A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str2))
                            {
                                goto Label_03EB;
                            }
                            style.LinkStyle = A_0.Interface50.imethod_0().StyleNameIds[str2];
                            continue;
                        }

                        case 5:
                        {
                            style.AutomaticallyUpdate = class2.method_31();
                            continue;
                        }

                        case 6:
                        {
                            style.Hidden = class2.method_31();
                            continue;
                        }

                        case 7:
                        {
                            style.IsSemiHidden = class2.method_31();
                            continue;
                        }

                        case 8:
                        {
                            style.Locked = class2.method_31();
                            continue;
                        }

                        case 9:
                        {
                            style.Personal = class2.method_31();
                            continue;
                        }

                        case 10:
                        {
                            style.PersonalCompose = class2.method_31();
                            continue;
                        }

                        case 11:
                        {
                            style.PersonalReply = class2.method_31();
                            continue;
                        }

                        case 12:
                        {
                            int num3 = Class114.smethod_7(class2.method_28());
                            if (num3 != -2147483648)
                            {
                                style.Rsid = num3;
                            }
                            continue;
                        }

                        case 13:
                        {
                            Class924.smethod_0(A_0, style.ParaPr, style.CharacterFormat);
                            continue;
                        }

                        case 14:
                        {
                            Class733.smethod_0(A_0, style.CharacterFormat);
                            continue;
                        }

                        case 15:
                        {
                            continue;
                        }
                        }
                    }
                }
                goto Label_04DE;
Label_02A7:
                str7 = class2.method_28();
                if (Class567.smethod_16(str7))
                {
                    Class1145.smethod_0(str7, styles, false, style);
                    if (!Class567.smethod_16(str))
                    {
                        str = str7;
                    }
                    A_0.Interface58.imethod_1(str, style.Istd);
                }
                continue;
Label_0345:
                if (A_0.Interface50.imethod_0().Styles.FindByName(A_0.Interface50.imethod_0().StyleNameIds[str5]) == null)
                {
                    A_3.Add(style.StyleId, str5);
                }
                else
                {
                    style.ApplyBaseStyle(A_0.Interface50.imethod_0().StyleNameIds[str5]);
                }
                continue;
Label_03EB:
                if (A_4.ContainsKey(style.StyleId))
                {
                    A_4[style.StyleId] = str2;
                }
                else
                {
                    A_4.Add(style.StyleId, str2);
                }
                continue;
Label_04DE:
                smethod_6(A_0, style);
            }
            string[] strArray = null;
            if (str3 != null)
            {
                strArray = str3.Split(new char[] { ',' });
            }
            if (!string.IsNullOrEmpty(str) && !A_0.Interface50.imethod_0().StyleNameIds.ContainsKey(str))
            {
                A_0.Interface50.imethod_0().StyleNameIds.Add(str, style.Name);
            }
            if (Class567.smethod_16(style.Name))
            {
                if (styles.method_9(style.StyleId) == null)
                {
                    styles.method_7(style, strArray);
                    if (flag && (paragraphStyle == StyleType.ParagraphStyle))
                    {
                        styles.DefaultParaStyle = style as ParagraphStyle;
                    }
                }
                A_1.Add(class3);
            }
        }
    }
Ejemplo n.º 25
0
 // Token: 0x06001E07 RID: 7687
 // RVA: 0x00018AA0 File Offset: 0x00016CA0
 public Class413(Class911 class911_1, string string_1)
 {
     this.class911_0 = class911_1;
     this.string_0 = ((string_1 != "") ? string_1 : Class885.class547_0.string_5);
     this.vmethod_2();
 }
Ejemplo n.º 26
0
 // Token: 0x0600200D RID: 8205
 // RVA: 0x000B64B4 File Offset: 0x000B46B4
 internal Class68(Class114 class114_1)
 {
     EventHandler eventHandler = null;
     EventHandler eventHandler2 = null;
     EventHandler eventHandler3 = null;
     this.enum113_0 = Enum113.const_2;
     this.list_0 = new List<Class531>();
     this.int_2 = -1;
     this.int_4 = -1;
     this.list_1 = new List<Class531>();
     this.bool_12 = true;
     base..ctor(class114_1);
     Class695.smethod_1();
     this.smartThreadPool_0 = new SmartThreadPool(new STPStartInfo
     {
         MaxWorkerThreads = 1,
         AreThreadsBackground = true,
         IdleTimeout = 1000,
         ThreadPriority = ThreadPriority.BelowNormal
     });
     this.class296_1 = Class466.Current;
     this.bool_5 = (Class115.osuModes_1 == OsuModes.SelectPlay);
     this.bool_4 = (Class115.osuModes_1 == OsuModes.SelectMulti);
     if (!this.bool_4 && this.bool_5)
     {
         Class62.Mode = Class68.class605_0;
     }
     Class908.smethod_1();
     Class476.smethod_3();
     if (Class466.Current != null)
     {
         Class466.Current.list_0.Clear();
     }
     Class62.class512_0 = null;
     lock (Class858.object_0)
     {
         Class802.smethod_1(false);
         Class802.bool_16 = false;
     }
     this.method_23();
     if ((Class466.Current == null || string.IsNullOrEmpty(Class466.Current.string_4) || !Class466.Current.bool_4) && (Class115.osuModes_1 == OsuModes.SelectPlay || Class115.osuModes_1 == OsuModes.SelectMulti || Class115.osuModes_1 == OsuModes.SelectEdit))
     {
         Class109.smethod_3(true, true);
     }
     Class570.smethod_4(new Class570.Delegate45(this.method_39));
     Class570.smethod_2(new Class570.Delegate44(this.method_38));
     Class569.smethod_0(new Class569.Delegate43(this.method_19));
     Class809.smethod_8(new VoidDelegate(this.method_21));
     Class876.smethod_0(new Class876.Delegate53(this.method_9));
     this.class86_0 = new Class86(class114_1);
     this.class86_0.method_16(new Class86.Delegate56(this.method_10));
     this.class86_0.method_18(new Class86.Delegate56(this.method_11));
     this.class86_0.method_20(new Class86.Delegate56(this.method_12));
     this.class86_0.method_22(new Class86.Delegate56(this.method_13));
     this.class86_0.method_24(new Class86.Delegate56(this.method_14));
     this.class86_0.method_26(new Class86.Delegate56(this.method_15));
     this.class86_0.method_28(new VoidDelegate(this.method_44));
     this.class86_0.method_30(new VoidDelegate(this.method_45));
     Class466.smethod_19(new Class466.Delegate33(this.method_32));
     if (Class62.class911_1 != null)
     {
         this.class911_3 = Class62.class911_1;
     }
     else
     {
         this.class911_3 = new Class911(true);
     }
     this.class110_0 = new Class110(new Rectangle(-5, 92, 290, 267), Vector2.get_Zero(), true, 0f, Enum98.const_2)
     {
         bool_2 = true,
         bool_8 = true
     };
     this.class911_2 = new Class911(true);
     this.class911_4 = new Class911(true);
     this.class911_1 = new Class911(true);
     this.class533_0 = new Class533(" ", 18f, new Vector2(21f, -3f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class533_0.vmethod_11();
     this.class911_1.Add(this.class533_0);
     this.class533_1 = new Class533(string.Empty, 12f, new Vector2(23f, 12f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_1);
     this.class533_2 = new Class533(string.Empty, 12f, new Vector2(1f, 24f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_2);
     this.class533_3 = new Class533(string.Empty, 12f, new Vector2(1f, 36f), Vector2.get_Zero(), 0.79f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_3);
     this.class533_4 = new Class533(string.Empty, 8f, new Vector2(1f, 48f), Vector2.get_Zero(), 1f, true, Color.get_White(), false);
     this.class911_1.Add(this.class533_4);
     this.class533_6 = new Class533(string.Empty, 20f, new Vector2(5f, -1f), 1f, true, new Color(255, 255, 255, 128))
     {
         enum115_0 = Enum115.const_7,
         origins_0 = Origins.TopRight,
         object_0 = 0.0
     };
     this.class911_1.Add(this.class533_6);
     this.class731_2 = Class885.Load("selection-ranked", Enum112.flag_1);
     this.class731_3 = Class885.Load("selection-question", Enum112.flag_1);
     this.class731_1 = Class885.Load("selection-approved", Enum112.flag_1);
     this.class531_12 = new Class531(this.class731_2, Enum115.const_5, Origins.Centre, Enum114.const_0, new Vector2(12f, 12f), 0.78f, true, Color.get_TransparentWhite(), null);
     this.class911_1.Add(this.class531_12);
     this.class531_13 = new Class531(Class115.class731_0, Enum115.const_5, Origins.TopLeft, Enum114.const_0, Vector2.get_Zero(), 1f, true, Color.get_TransparentWhite(), null);
     this.class531_13.bool_13 = false;
     this.class531_13.bool_7 = true;
     this.class531_13.vector2_2 = new Vector2((float)Class115.int_22, (float)Class115.int_23);
     this.class911_1.Add(this.class531_13);
     this.class531_9 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.88f, true, new Color(0, 0, 0, 128), null);
     this.class531_9.float_2 = 1.6f;
     this.class531_9.vector2_2 = new Vector2(3f, 330f);
     this.class531_10 = new Class531(Class115.class731_0, Enum115.const_7, Origins.TopLeft, Enum114.const_0, new Vector2(3f, 73f), 0.89f, true, new Color(255, 255, 255, 255), null);
     this.class531_10.float_2 = 1.6f;
     this.class531_10.vector2_2 = new Vector2(3f, 20f);
     this.class911_1.Add(this.class531_9);
     this.class911_1.Add(this.class531_10);
     if (!this.bool_5 && !this.bool_4)
     {
         Class876.class623_0 = Mods.None;
         Class531 class530_ = new Class531(Class885.Load("selection-drop", Enum112.flag_1), new Vector2(5f, 110f), 0.5f, true, Color.get_White());
         this.class911_1.Add(class530_);
     }
     else
     {
         bool flag;
         Enum115 enum115_ = (flag = (Class885.smethod_25() || Class885.Load("selection-mods", Enum112.flag_6).enum112_0 == Enum112.flag_1)) ? Enum115.const_11 : Enum115.const_5;
         Origins origins_ = flag ? Origins.BottomLeft : Origins.TopLeft;
         float num = (float)(flag ? 0 : 426);
         float num2 = (float)(Class115.bool_21 ? 140 : 120);
         if (Class68.bool_11)
         {
             this.class531_17 = new Class531(Class885.Load("selection-mode", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.95f, true, Color.get_White(), null);
             this.class911_1.Add(this.class531_17);
             this.class531_17 = new Class531(Class885.Load("selection-mode-over", Enum112.flag_6), enum115_, origins_, Enum114.const_0, new Vector2(num2, num), 0.96f, true, Color.get_White(), null);
             this.class531_17.float_3 = 0.01f;
             this.class531_17.class746_1 = new Class746(TransformationType.Fade, 0.01f, 1f, 0, 100, Enum70.const_0);
             this.class531_17.bool_1 = true;
             Class531 arg_831_0 = this.class531_17;
             if (Class68.eventHandler_4 == null)
             {
                 Class68.eventHandler_4 = new EventHandler(Class68.smethod_5);
             }
             arg_831_0.method_35(Class68.eventHandler_4);
             Class530 arg_850_0 = this.class531_17;
             if (eventHandler == null)
             {
                 eventHandler = new EventHandler(this.method_64);
             }
             arg_850_0.method_2(eventHandler);
             this.class911_1.Add(this.class531_17);
             this.class597_0 = new Class597(this.class911_1);
             float num3 = 80f;
             Vector2 vector;
             vector..ctor(num2, 344f);
             for (int i = 0; i < 4; i++)
             {
                 Class68.Class449 class = new Class68.Class449();
Ejemplo n.º 27
0
 // Token: 0x0600342C RID: 13356
 // RVA: 0x00166704 File Offset: 0x00164904
 internal Class883(Class911 class911_0, double double_5, double double_6, double double_7, Vector2 vector2_1, int int_1)
 {
     Class883 class883_0 = this;
     this.double_3 = double_5;
     this.double_2 = double_6;
     this.double_1 = (this.double_0 = Math.Max(double_5, Math.Min(double_6, double_7)));
     this.int_0 = int_1;
     this.color_0 = Class885.color_1;
     this.class531_1 = new Class883.Class542(Class115.class731_0, vector2_1, 0.992f, this.color_0, (float)int_1);
     this.class531_1.bool_1 = true;
     this.class531_1.nullable_2 = new bool?(true);
     this.class531_1.vector2_2 = new Vector2((float)int_1 * 1.6f, 1.5f);
     this.class531_2 = new Class531(Class115.class731_0, vector2_1, 0.991f, true, this.color_0);
     this.class531_2.nullable_2 = new bool?(true);
     this.class531_2.bool_1 = true;
     this.class531_2.float_3 = 0.5f;
     this.class531_2.vector2_2 = new Vector2((float)int_1 * 1.6f, 1.5f);
     this.class531_0 = new Class531(Class885.Load("circle-empty", Enum112.flag_1), Enum115.const_5, Origins.Centre, Enum114.const_0, this.method_18(), 0.99f, true, this.color_0, null);
     this.class531_0.bool_1 = true;
     Class531 arg_19C_0 = this.class531_0;
     VoidDelegate voidDelegate_ = delegate
     {
         float num = class883_0.class531_0.rectangleF_0.X - class883_0.class531_1.rectangleF_0.X;
         float num2 = (float)class883_0.class531_0.int_4 / 1.6f / 2f;
         class883_0.class531_1.vector2_2.X = Math.Max(0f, num / Class115.float_5);
         class883_0.class531_2.vector2_2.X = Math.Max(0f, (float)int_1 * 1.6f - (num + (float)class883_0.class531_0.int_4) / Class115.float_5);
         class883_0.class531_2.vector2_1.X = class883_0.class531_0.vector2_1.X + num2;
     };
     arg_19C_0.method_30(voidDelegate_);
     this.list_0.Add(this.class531_0);
     this.list_0.Add(this.class531_1);
     this.list_0.Add(this.class531_2);
     this.class531_1.method_35(new EventHandler(this.method_10));
     this.class531_1.method_37(new EventHandler(this.method_9));
     if (class911_0 != null)
     {
         class911_0.Add(this.class531_0);
         class911_0.Add(this.class531_1);
         class911_0.Add(this.class531_2);
     }
     this.method_21();
 }
Ejemplo n.º 28
0
 // Token: 0x06002808 RID: 10248
 // RVA: 0x000F93A4 File Offset: 0x000F75A4
 public override void Initialize()
 {
     Class570.smethod_4(new Class570.Delegate45(this.method_8));
     Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_2), Enum98.const_2, Enum97.const_0);
     Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_4), Enum98.const_2, Enum97.const_0);
     this.class911_1 = new Class911(true);
     Class591 class = new Class591(new EventHandler(Class69.smethod_0), true, false);
Ejemplo n.º 29
0
 // Token: 0x0600289B RID: 10395
 // RVA: 0x000FED68 File Offset: 0x000FCF68
 public override void Initialize()
 {
     this.class911_0 = new Class911(true);
     this.class911_0.bool_1 = false;
     if (!Class802.smethod_0())
     {
         return;
     }
     this.method_10();
     this.method_8();
     if (this.method_1())
     {
         this.method_2();
     }
     base.Initialize();
 }
Ejemplo n.º 30
0
 // Token: 0x06001F0E RID: 7950
 // RVA: 0x000AE65C File Offset: 0x000AC85C
 internal Class427(Class62 class62_1)
 {
     Class427.class427_0 = this;
     this.class62_0 = class62_1;
     this.class911_0 = class62_1.class911_7;
     this.class911_1 = class62_1.class911_8;
     this.class911_2 = class62_1.class911_3;
     this.class297_0 = this.vmethod_27();
     class62_1.method_66(new Delegate55(this.vmethod_15));
     Class115.smethod_53(new Delegate1(this.vmethod_2));
 }
Ejemplo n.º 31
0
    private static void smethod_1(AttrCollection A_0, bool A_1, Interface52 A_2)
    {
        int              num     = 13;
        Class398         class2  = A_2.imethod_1();
        bool             flag    = A_2.imethod_2();
        string           str     = null;
        string           str2    = null;
        string           str3    = null;
        string           str4    = null;
        string           str5    = null;
        string           str6    = null;
        string           str7    = null;
        string           str8    = null;
        string           str9    = null;
        string           str10   = null;
        string           str11   = null;
        string           str12   = null;
        string           str13   = null;
        string           str14   = null;
        string           str15   = null;
        string           str16   = null;
        Border           top     = null;
        Border           left    = null;
        Border           bottom  = null;
        Border           right   = null;
        string           str17   = null;
        string           str18   = null;
        string           str19   = null;
        string           str20   = null;
        string           str21   = null;
        string           str22   = null;
        string           str23   = null;
        string           str24   = null;
        object           obj2    = null;
        string           str25   = null;
        string           str26   = null;
        object           obj3    = null;
        ColumnCollection columns = null;
        string           str27   = null;
        string           str28   = null;
        string           str29   = null;
        string           str30   = null;
        string           str31   = null;
        object           obj4    = null;
        object           obj5    = null;
        object           obj6    = null;
        object           obj7    = null;
        object           obj8    = null;
        object           obj9    = null;

        for (int i = 0; i < A_0.Count; i++)
        {
            int    num3  = A_0.method_18(i);
            object obj10 = A_0.method_19(i);
            int    num4  = num3;
            if (num4 <= 0x8a2)
            {
                if (num4 <= 0x820)
                {
                    if (num4 <= 0x7e4)
                    {
                        if (num4 <= 0x7d0)
                        {
                            if (num4 == 0x7c6)
                            {
                                bottom = (obj10 as Borders).Bottom;
                                left   = (obj10 as Borders).Left;
                                top    = (obj10 as Borders).Top;
                                right  = (obj10 as Borders).Right;
                            }
                            else if (num4 == 0x7d0)
                            {
                                MarginsF sf = (MarginsF)obj10;
                                str5  = A_2.imethod_1().method_23(sf.Top, 20f).ToString();
                                str8  = A_2.imethod_1().method_23(sf.Left, 20f).ToString();
                                str6  = A_2.imethod_1().method_23(sf.Right, 20f).ToString();
                                str7  = A_2.imethod_1().method_23(sf.Bottom, 20f).ToString();
                                str11 = A_2.imethod_1().method_23(sf.Gutter, 20f).ToString();
                            }
                        }
                        else if (num4 == 0x7da)
                        {
                            str21 = Class911.smethod_3((ListPatternType)obj10);
                        }
                        else if (num4 == 0x7e4)
                        {
                            str24 = Class339.smethod_11((PageSeparator)obj10, flag);
                        }
                    }
                    else if (num4 <= 0x7f8)
                    {
                        if (num4 == 0x7ee)
                        {
                            str30 = Class339.smethod_21((SectionBreakType)obj10, flag);
                        }
                        else if (num4 == 0x7f8)
                        {
                            obj6 = obj10;
                        }
                    }
                    else
                    {
                        switch (num4)
                        {
                        case 0x80c:
                        {
                            obj3 = obj10;
                            continue;
                        }

                        case 0x816:
                        {
                            str12 = Class1041.smethod_8((int)obj10);
                            continue;
                        }
                        }
                        if (num4 == 0x820)
                        {
                            str13 = Class1041.smethod_8((int)obj10);
                        }
                    }
                }
                else if (num4 <= 0x848)
                {
                    if (num4 <= 0x834)
                    {
                        if (num4 == 0x82a)
                        {
                            str4 = Class1041.smethod_8((int)obj10);
                        }
                        else if (num4 == 0x834)
                        {
                            obj8 = obj10;
                        }
                    }
                    else if (num4 == 0x83e)
                    {
                        str20 = Class339.smethod_13((LineNumberingRestartMode)obj10, flag);
                    }
                    else if (num4 == 0x848)
                    {
                        str17 = Class1041.smethod_8((int)obj10);
                    }
                }
                else if (num4 <= 0x884)
                {
                    if (num4 == 0x87a)
                    {
                        str28 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x884)
                    {
                        str18 = Class1041.smethod_8(((int)obj10) - 1);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x88e:
                    {
                        str23 = Class1041.smethod_8((int)obj10);
                        continue;
                    }

                    case 0x898:
                    {
                        if ((bool)A_0.method_32(0x802))
                        {
                            str22 = Class1041.smethod_8((int)obj10);
                        }
                        continue;
                    }
                    }
                    if (num4 == 0x8a2)
                    {
                        str3 = Class339.smethod_19((PageOrientation)obj10);
                    }
                }
            }
            else if (num4 <= 0x92e)
            {
                if (num4 <= 0x8d4)
                {
                    if (num4 <= 0x8b6)
                    {
                        if (num4 == 0x8ac)
                        {
                            str15 = Class339.smethod_17((PageBordersApplyType)obj10, flag);
                        }
                        else if (num4 == 0x8b6)
                        {
                            if ((bool)obj10)
                            {
                                str14 = BookmarkStart.b("唲䜴堶圸伺", num);
                            }
                            else
                            {
                                str14 = BookmarkStart.b("儲吴吶券", num);
                            }
                        }
                    }
                    else if (num4 == 0x8c0)
                    {
                        str16 = Class339.smethod_15((PageBorderOffsetFrom)obj10);
                    }
                    else if (num4 == 0x8d4)
                    {
                        str = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else if (num4 <= 0x910)
                {
                    if (num4 == 0x8de)
                    {
                        str2 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                    else if (num4 == 0x910)
                    {
                        str9 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x91a:
                    {
                        str10 = A_2.imethod_1().method_23(obj10, 20f).ToString();
                        continue;
                    }

                    case 0x924:
                    {
                        str31 = Class339.smethod_9((PageAlignment)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x92e)
                    {
                        str26 = Class1041.smethod_8((int)obj10);
                    }
                }
            }
            else if (num4 <= 0x960)
            {
                if (num4 <= 0x942)
                {
                    if (num4 == 0x938)
                    {
                        obj2 = obj10;
                    }
                    else if (num4 == 0x942)
                    {
                        str25 = Class1041.smethod_8((int)obj10);
                    }
                }
                else
                {
                    switch (num4)
                    {
                    case 0x94c:
                    {
                        columns = (ColumnCollection)obj10;
                        str26   = columns.Count.ToString();
                        continue;
                    }

                    case 0x956:
                    {
                        obj7 = !((bool)obj10);
                        continue;
                    }
                    }
                    if (num4 == 0x960)
                    {
                        str19 = Class1041.smethod_10(Convert.ToUInt32(obj10));
                    }
                }
            }
            else
            {
                switch (num4)
                {
                case 0x96a:
                    obj5 = obj10;
                    break;

                case 0x974:
                    str29 = Class1041.smethod_8((int)obj10);
                    break;

                case 0x97e:
                    str27 = Class339.smethod_3((GridPitchType)obj10, flag);
                    break;

                case 0x988:
                    obj9 = Class911.smethod_5((TextDirection)obj10);
                    break;

                case 0x992:
                    obj4 = obj10;
                    break;
                }
            }
        }
        if (!A_1)
        {
            if (str9 == null)
            {
                str9 = A_2.imethod_1().method_23((float)A_0.method_32(0x910), 20f).ToString();
            }
            if (str10 == null)
            {
                str10 = A_2.imethod_1().method_23((float)A_0.method_32(0x91a), 20f).ToString();
            }
            if (((str25 == null) && (columns != null)) && (columns.Count > 0))
            {
                str25 = (columns[0].Space * 20f).ToString();
            }
        }
        A_2.imethod_8(A_0, false);
        class2.method_24(BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str30);
        bool   flag2 = ((PageOrientation)A_0[0x8a2]) == PageOrientation.Landscape;
        string str32 = str;
        string str33 = str2;
        float  num7  = (A_0 as Class17).method_96() * 20f;
        float  num8  = (A_0 as Class17).method_98() * 20f;

        if (flag2 && (num7 < num8))
        {
            str32 = num8.ToString();
            str33 = num7.ToString();
        }
        class2.method_33(BookmarkStart.b("䐲༴䜶常栺䜼", num), new object[] { BookmarkStart.b("䐲༴䀶", num), str32, BookmarkStart.b("䐲༴弶", num), str33, BookmarkStart.b("䐲༴堶䬸刺堼儾㕀", num), str3, BookmarkStart.b("䐲༴吶嘸强堼", num), str4 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常瘺尼䴾", num), new object[] { BookmarkStart.b("䐲༴䌶嘸䬺", num), str5, BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), str6, BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), str7, BookmarkStart.b("䐲༴嬶尸崺䤼", num), str8, BookmarkStart.b("䐲༴弶尸娺夼娾㍀", num), str9, BookmarkStart.b("䐲༴儶嘸吺䤼娾㍀", num), str10, BookmarkStart.b("䐲༴倶䰸伺䤼娾㍀", num), str11 });
        class2.method_33(BookmarkStart.b("䐲༴䜶堸䬺堼䴾ቀㅂ♄", num), new object[] { BookmarkStart.b("䐲༴儶倸䤺丼䬾", num), str12, BookmarkStart.b("䐲༴堶䴸区堼䴾", num), str13 });
        if (((top != null) || (left != null)) || ((bottom != null) || (right != null)))
        {
            class2.method_4(BookmarkStart.b("䐲༴䜶常示刼䴾╀♂㝄㑆", num));
            class2.method_40(flag ? BookmarkStart.b("䐲༴䴶瘸䤺夼娾㍀", num) : BookmarkStart.b("䐲༴䴶ᐸ吺似嬾⑀ㅂ", num), str14);
            class2.method_40(BookmarkStart.b("䐲༴匶倸䠺䴼匾⁀㩂", num), str15);
            class2.method_40(flag ? BookmarkStart.b("䐲༴堶弸崺丼娾㕀Ղ㝄⡆⑈", num) : BookmarkStart.b("䐲༴堶弸崺丼娾㕀湂⍄㕆♈♊", num), str16);
            class2.method_47(BookmarkStart.b("䐲༴䌶嘸䬺", num), top, flag);
            class2.method_47(BookmarkStart.b("䐲༴嬶尸崺䤼", num), left, flag);
            class2.method_47(BookmarkStart.b("䐲༴唶嘸伺䤼倾ⱀ", num), bottom, flag);
            class2.method_47(BookmarkStart.b("䐲༴䔶倸尺唼䬾", num), right, flag);
            class2.method_5();
        }
        class2.method_33(BookmarkStart.b("䐲༴嬶圸町䠼刾ᕀ㩂㕄≆", num), new object[] { flag?BookmarkStart.b("䐲༴吶嘸为匼䬾̀㩂", num) : BookmarkStart.b("䐲༴吶嘸为匼䬾汀⅂㱄", num), str17, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str18, BookmarkStart.b("䐲༴匶倸䠺䤼帾⽀⁂⁄", num), str19, BookmarkStart.b("䐲༴䔶尸䠺䤼帾㍀㝂", num), str20 });
        class2.method_33(BookmarkStart.b("䐲༴䜶常町䠼刾ᕀ㩂㕄≆", num), new object[] { BookmarkStart.b("䐲༴儶吸伺", num), str21, BookmarkStart.b("䐲༴䐶䴸娺似䬾", num), str22, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾㕀㩂⥄≆", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀㝂㱄⭆ⱈ", num), str23, flag ? BookmarkStart.b("䐲༴吶儸娺䴼氾⑀㍂", num) : BookmarkStart.b("䐲༴吶儸娺䴼ሾ㉀♂㕄", num), str24 });
        if (class2.method_34(BookmarkStart.b("䐲༴吶嘸场丼", num), new object[] { BookmarkStart.b("䐲༴夶䰸嘺", num), str26, BookmarkStart.b("䐲༴䐶尸䬺", num), obj3, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), str25, BookmarkStart.b("䐲༴制䠸为尼匾ᙀ⩂⅄㍆ⅈ", num), obj2 }))
        {
            if (columns != null)
            {
                for (int j = 0; j < columns.Count; j++)
                {
                    class2.method_33(BookmarkStart.b("䐲༴吶嘸场", num), new object[] { BookmarkStart.b("䐲༴䀶", num), (columns[j].Width > 0f) ? ((object)(columns[j].Width * 20f)) : null, BookmarkStart.b("䐲༴䐶䤸娺帼娾", num), (columns[j].Space > 0f) ? ((object)(columns[j].Space * 20f)) : null });
                }
            }
            class2.method_5();
        }
        class2.method_22(BookmarkStart.b("䐲༴儶嘸䤺值漾㍀ⱂㅄ", num), obj7);
        class2.method_24(BookmarkStart.b("䐲༴䄶砸场吼堾⽀", num), str31);
        class2.method_22(BookmarkStart.b("䐲༴夶嘸縺匼嬾⽀ⱂㅄ≆", num), obj8);
        class2.method_22(BookmarkStart.b("䐲༴䌶倸伺儼娾ᅀ⑂", num), obj6);
        class2.method_22(flag ? BookmarkStart.b("䐲༴䌶尸䌺䤼笾⡀ㅂ⁄⑆㵈≊≌ⅎ", num) : BookmarkStart.b("䐲༴䌶尸䌺䤼社ⵀⱂ㉄", num), obj9);
        class2.method_22(BookmarkStart.b("䐲༴唶倸强吼", num), obj4);
        class2.method_22(BookmarkStart.b("䐲༴䔶䴸场稼䨾㕀㝂⁄㕆", num), obj5);
        class2.method_33(BookmarkStart.b("䐲༴匶嘸堺稼䴾⡀❂", num), new object[] { BookmarkStart.b("䐲༴䌶䀸䬺堼", num), str27, flag ? BookmarkStart.b("䐲༴嬶倸唺堼漾⡀㝂♄⽆", num) : BookmarkStart.b("䐲༴嬶倸唺堼ሾㅀ⩂ㅄ⑆ⅈ", num), str28, flag ? BookmarkStart.b("䐲༴吶儸娺似氾ㅀ≂♄≆", num) : BookmarkStart.b("䐲༴吶儸娺似ሾ㉀㍂⑄⑆ⱈ", num), str29 });
    }
Ejemplo n.º 32
0
 // Token: 0x06002700 RID: 9984
 // RVA: 0x0001E2CE File Offset: 0x0001C4CE
 internal Class375(Editor editor_1)
     : base(editor_1)
 {
     this.class911_1 = new Class911();
 }
Ejemplo n.º 33
0
 // Token: 0x0600288D RID: 10381
 // RVA: 0x0001F40F File Offset: 0x0001D60F
 internal Class416(Class911 class911_1)
     : base(class911_1, "")
 {
 }
Ejemplo n.º 34
0
 // Token: 0x0600257F RID: 9599
 // RVA: 0x000E2208 File Offset: 0x000E0408
 internal Class592(Class911 class911_1, int int_3, Vector2 vector2_1, float float_2, bool bool_3, Color color_2, int int_4, bool bool_4)
 {
     this.int_1 = int_4;
     this.class911_0 = class911_1;
     this.float_0 = float_2;
     this.bool_1 = bool_3;
     this.int_0 = int_3;
     this.vector2_0 = vector2_1;
     this.bool_2 = bool_4;
     this.color_0 = color_2;
     this.color_1 = new Color((byte)Math.Min(255f, (float)this.color_0.get_R() * 1.8f), (byte)Math.Min(255f, (float)this.color_0.get_G() * 1.8f), (byte)Math.Min(255f, (float)this.color_0.get_B() * 1.8f));
     this.class746_0 = new Class746(this.color_0, new Color((byte)Math.Min(255, (int)(this.color_0.get_R() + 20)), (byte)Math.Min(255, (int)(this.color_0.get_G() + 50)), (byte)Math.Min(255, (int)(this.color_0.get_B() + 50))), 0, 80);
     this.class746_1 = new Class746(this.color_1, new Color((byte)Math.Min(255, (int)(this.color_1.get_R() + 20)), (byte)Math.Min(255, (int)(this.color_1.get_G() + 50)), (byte)Math.Min(255, (int)(this.color_1.get_B() + 50))), 0, 80);
 }
Ejemplo n.º 35
0
    private static Form4 smethod_1(Class394 A_0, Document A_1)
    {
        int   num  = 2;
        Form4 form = new Form4(A_1, A_0.method_12(BookmarkStart.b("䘧䬩䄫䬭", 2), ""));

        while (A_0.method_9(BookmarkStart.b("丧䔩䈫娭", num)))
        {
            string str;
            string key = A_0.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_202 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(7);
                    dictionary1.Add(BookmarkStart.b("䤧䘩堫怭儯弱儳", num), 0);
                    dictionary1.Add(BookmarkStart.b("堧䬩䈫䄭䌯圱ᤳܵ", num), 1);
                    dictionary1.Add(BookmarkStart.b("䬧䈩䴫尭䌯圱䀳", num), 2);
                    dictionary1.Add(BookmarkStart.b("丧䬩䄫䜭尯䬱", num), 3);
                    dictionary1.Add(BookmarkStart.b("䘧䔩堫稭䈯䜱儳戵䄷䨹夻", num), 4);
                    dictionary1.Add(BookmarkStart.b("堧䌩堫䴭堯", num), 5);
                    dictionary1.Add(BookmarkStart.b("嬧䌩䬫", num), 6);
                    Class1160.dictionary_202 = dictionary1;
                }
                if (Class1160.dictionary_202.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                    {
                        form.method_34(A_0.method_28());
                        continue;
                    }

                    case 1:
                    {
                        form.method_36(new byte[10]);
                        Class114.smethod_10(A_0.method_28(), form.method_35(), 0);
                        continue;
                    }

                    case 2:
                    {
                        form.method_38(Class114.smethod_8(A_0.method_28()));
                        continue;
                    }

                    case 3:
                    {
                        form.method_40(Class911.smethod_0(A_0.method_28()));
                        continue;
                    }

                    case 4:
                    {
                        form.method_44(!A_0.method_31());
                        continue;
                    }

                    case 5:
                    {
                        form.method_42(Class417.smethod_6(A_0.method_28()));
                        continue;
                    }

                    case 6:
                        form.method_46(new byte[0x18]);
                        goto Label_02A3;
                    }
                }
            }
            goto Label_02B0;
Label_01A5:
            if ((str = A_0.method_1()) != null)
            {
                if (str != BookmarkStart.b("崧天丫̭/", num))
                {
                    if (str != BookmarkStart.b("崧天丫̭į", num))
                    {
                        if (str != BookmarkStart.b("崧天丫̭ȯ", num))
                        {
                            if (str != BookmarkStart.b("崧天丫̭̯", num))
                            {
                                if (!(str == BookmarkStart.b("䬧天丫̭/", num)))
                                {
                                    if (str == BookmarkStart.b("䬧天丫̭į", num))
                                    {
                                        Class114.smethod_11(A_0.method_3(), form.method_45(), 20);
                                    }
                                }
                                else
                                {
                                    Class114.smethod_11(A_0.method_3(), form.method_45(), 0x10);
                                }
                            }
                            else
                            {
                                Class114.smethod_11(A_0.method_3(), form.method_45(), 12);
                            }
                        }
                        else
                        {
                            Class114.smethod_11(A_0.method_3(), form.method_45(), 8);
                        }
                    }
                    else
                    {
                        Class114.smethod_11(A_0.method_3(), form.method_45(), 4);
                    }
                }
                else
                {
                    Class114.smethod_11(A_0.method_3(), form.method_45(), 0);
                }
            }
Label_02A3:
            if (A_0.method_19())
            {
                goto Label_01A5;
            }
            continue;
Label_02B0:
            A_0.vmethod_1();
        }
        return(form);
    }
Ejemplo n.º 36
0
 // Token: 0x0600266B RID: 9835
 // RVA: 0x000E74D4 File Offset: 0x000E56D4
 public override void Initialize()
 {
     Class858.smethod_4(false);
     Class296 current = Class466.Current;
     Class466.smethod_2(current);
     Class872.int_2 = 30;
     this.list_0 = new List<Editor.Class626>();
     this.stack_0 = new Stack<Editor.Class626>();
     this.stack_1 = new Stack<Editor.Class626>();
     this.class911_3 = new Class911(true);
     this.class297_0 = new Class301(true);
     Class876.Reset();
     Class876.class623_0 &= ~Mods.DoubleTime;
     Class62.class512_0 = null;
     Class115.editorControl_0.method_7(this);
     this.method_60();
     try
     {
         if (current.Title.Length == 0)
         {
             Class331.smethod_91();
             string text = Class34.smethod_19(current.string_1);
             if (text != current.string_1)
             {
                 if (text.Length < 4)
                 {
                     text = "music.mp3";
                 }
                 if (Class34.smethod_14(current.string_1, text, true, true))
                 {
                     current.string_1 = text;
                 }
             }
             Class331.smethod_84(current, true, false, true, false);
             current.Title = Class34.smethod_19(Class331.string_1);
             current.TitleUnicode = Class331.string_1;
             current.Artist = Class34.smethod_19(Class331.string_0);
             current.ArtistUnicode = Class331.string_0;
         }
         else
         {
             Class331.smethod_84(current, false, false, true, false);
         }
     }
     catch (Exception11)
     {
         Class723.smethod_1("Could not load audio file.", 2000);
         this.method_82(false);
         return;
     }
     if (this.method_3(current, false, false))
     {
         this.method_67(Class778.smethod_2(current.float_2, 0.1f, 8f));
         this.method_43();
         switch (current.method_5())
         {
         case PlayModes.Taiko:
             this.class371_0 = new Class373(this);
             break;
         case PlayModes.CatchTheBeat:
             this.class371_0 = new Class372(this);
             break;
         case PlayModes.OsuMania:
             this.class371_0 = new Class374(this);
             break;
         default:
             this.class371_0 = new Class371(this);
             break;
         }
         if (Class63.list_4 != null && Class63.list_4 != this.class297_0.list_1)
         {
             this.class297_0.list_1 = Class63.list_4;
             Editor.editor_0.bool_5 = true;
         }
         Class63.list_4 = null;
         this.playModes_0 = current.method_5();
         this.class375_0 = new Class375(this);
         this.class376_0 = new Class376(this);
         Class802.smethod_34(Enum96.const_8, new Delegate46(this.method_84), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_6, new Delegate46(this.method_28), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_5, new Delegate46(this.method_83), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_3, new Delegate46(this.method_86), Enum98.const_2, Enum97.const_0);
         Class570.smethod_4(new Class570.Delegate45(this.method_78));
         Class802.smethod_34(Enum96.const_2, new Delegate46(this.method_87), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_74), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_75), Enum98.const_2, Enum97.const_0);
         Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_72), Enum98.const_7, Enum97.const_0);
         Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_73), Enum98.const_7, Enum97.const_0);
         Class115.smethod_15(new VoidDelegate(this.method_26));
         Class331.smethod_27(new Class331.Delegate31(this.method_27));
         this.class371_0.Initialize();
         this.class375_0.Initialize();
         this.class376_0.Initialize();
         Class115.editorControl_0.method_3(100);
         Class115.editorControl_0.method_6(Class371.dictionary_0[Enum106.flag_3]);
         this.method_42(Class341.class608_3, false);
         base.Initialize();
         Class331.smethod_89(100, false);
         if (Class331.smethod_14().Count == 0)
         {
             this.method_57(Enum105.const_3);
         }
         else
         {
             this.method_57((Editor.enum105_1 != Enum105.const_0) ? Editor.enum105_1 : Enum105.const_1);
         }
         Class115.editorControl_0.method_2(this.enum105_0);
         if (!Class115.bool_25 && Class115.int_28 <= 0)
         {
             if (current.int_7 > 0)
             {
                 Class331.smethod_70(current.int_7, false, false);
             }
             else
             {
                 Class331.smethod_70(0, false, false);
             }
         }
         else
         {
             Class331.smethod_70(Class115.int_28, false, false);
             Class115.int_28 = 0;
             Class115.bool_25 = false;
         }
         this.method_38(Class331.smethod_67());
         Class115.editorControl_0.method_11(Class331.smethod_18());
         Class723.smethod_2(null, null);
         Class115.class83_0.bool_2 = false;
         return;
     }
 }
Ejemplo n.º 37
0
    internal static void smethod_7(Class581 A_0, string A_1, FormatBase A_2)
    {
        int      num    = 0x11;
        bool     flag1  = A_1 == BookmarkStart.b("制圸强匼倾㕀♂ᕄ㕆", 0x11);
        Class394 class2 = A_0.imethod_1();

        while (class2.method_9(A_1))
        {
            string key = class2.method_1();
            if (key != null)
            {
                int num2;
                if (Class1160.dictionary_183 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(6);
                    dictionary1.Add(BookmarkStart.b("䜶嘸䠺", num), 0);
                    dictionary1.Add(BookmarkStart.b("夶䰸嘺笼刾㕀", num), 1);
                    dictionary1.Add(BookmarkStart.b("夶䰸嘺渼䬾⁀ㅂㅄ", num), 2);
                    dictionary1.Add(BookmarkStart.b("夶䰸嘺漼娾㉀㝂⑄㕆㵈", num), 3);
                    dictionary1.Add(BookmarkStart.b("儶嘸吺䤼儾⹀㝂⁄", num), 4);
                    dictionary1.Add(BookmarkStart.b("制圸强匼倾㕀♂", num), 5);
                    Class1160.dictionary_183 = dictionary1;
                }
                if (Class1160.dictionary_183.TryGetValue(key, out num2))
                {
                    switch (num2)
                    {
                    case 0:
                    {
                        A_2.SetAttr(2, Class339.smethod_6(class2.method_28()));
                        continue;
                    }

                    case 1:
                    {
                        A_2.SetAttr(1, Class911.smethod_13(Class911.smethod_2(class2.method_28())));
                        continue;
                    }

                    case 2:
                    {
                        A_2.SetAttr(4, class2.method_29());
                        continue;
                    }

                    case 3:
                    {
                        A_2.SetAttr(3, Class339.smethod_0(class2.method_28()));
                        continue;
                    }

                    case 4:
                    {
                        smethod_8(A_0, FootnoteType.Footnote);
                        continue;
                    }

                    case 5:
                    {
                        smethod_8(A_0, FootnoteType.Endnote);
                        continue;
                    }
                    }
                }
            }
            class2.vmethod_1();
        }
    }
Ejemplo n.º 38
0
 protected override BorderStyle vmethod_3()
 {
     return(Class911.smethod_6(base.method_3()));
 }
Ejemplo n.º 39
0
 // Token: 0x06001C0C RID: 7180
 // RVA: 0x00093E8C File Offset: 0x0009208C
 internal override void Initialize()
 {
     this.int_9 = (int)Math.Round((double)Class466.Current.DifficultyCircleSize);
     this.class297_0.class421_0 = new Class421(Class885.smethod_21(this.int_9, Mods.None), true, 0f, 480f, float.NaN, 1f, 0, 0);
     this.float_0 = (float)this.int_6 + this.method_72() * (float)this.int_9;
     this.class911_1 = new Class911(true);
     this.list_0 = new List<Class304>();
     this.list_4 = new List<Class704>();
     this.list_3 = new List<Class704>();
     this.class306_0 = new Class306[this.int_9];
     base.Initialize();
 }
Ejemplo n.º 40
0
 // Token: 0x0600349B RID: 13467
 // RVA: 0x00168B90 File Offset: 0x00166D90
 internal Class86(Class114 class114_1)
     : base(class114_1)
 {
     this.smartThreadPool_0 = new SmartThreadPool(new STPStartInfo
     {
         MaxWorkerThreads = 1,
         AreThreadsBackground = true,
         IdleTimeout = 1000,
         ThreadPriority = ThreadPriority.Normal
     });
     Class115.smethod_50(new Delegate1(this.method_34));
     Class466.smethod_0(new EventHandler(this.method_44));
     Class802.smethod_34(Enum96.const_1, new Delegate46(this.method_39), Enum98.const_2, Enum97.const_0);
     Class802.smethod_34(Enum96.const_0, new Delegate46(this.method_40), Enum98.const_2, Enum97.const_0);
     Class802.smethod_34(Enum96.const_6, new Delegate46(this.method_38), Enum98.const_2, Enum97.const_0);
     Class802.smethod_34(Enum96.const_8, new Delegate46(this.method_37), Enum98.const_2, Enum97.const_0);
     Class570.smethod_4(new Class570.Delegate45(this.method_41));
     Class569.smethod_0(new Class569.Delegate43(this.method_42));
     Class466.smethod_19(new Class466.Delegate33(this.method_32));
     this.class911_0 = new Class911(true);
     this.class605_0 = Class341.class605_23;
     this.class605_1 = Class341.class605_24;
     Comparison<Class296> comparison_ = delegate(Class296 class296_0, Class296 class296_1)
     {
         if (class296_0 == class296_1)
         {
             return 0;
         }
         if (!class296_0.bool_4)
         {
             return 1;
         }
         if (!class296_1.bool_4)
         {
             return -1;
         }
         int num = 0;
         switch (this.class605_1.Value)
         {
         case TreeSortMode.Artist:
             num = class296_0.Artist.CompareTo(class296_1.Artist);
             if (num != 0)
             {
                 return num;
             }
             break;
         case TreeSortMode.BPM:
             num = class296_0.method_32().CompareTo(class296_1.method_32());
             goto IL_171;
         case TreeSortMode.Creator:
             num = class296_0.string_5.CompareTo(class296_1.string_5);
             goto IL_171;
         case TreeSortMode.Date:
             if (!(class296_0.method_3() != class296_1.method_3()) && (!class296_0.bool_10 || !class296_1.bool_10) && Math.Abs((class296_0.dateTime_1 - class296_1.dateTime_1).TotalSeconds) <= 10.0)
             {
                 num = 0;
                 goto IL_171;
             }
             num = class296_0.dateTime_1.CompareTo(class296_1.dateTime_1);
             goto IL_171;
         case TreeSortMode.Difficulty:
             num = class296_0.method_26().CompareTo(class296_1.method_26());
             goto IL_171;
         case TreeSortMode.Length:
             num = (class296_0.int_16 / 1000).CompareTo(class296_1.int_16 / 1000);
             goto IL_171;
         case TreeSortMode.Rank:
             num = class296_1.method_41().CompareTo(class296_0.method_41());
             goto IL_171;
         case TreeSortMode.Title:
             break;
         default:
             goto IL_171;
         }
         num = class296_0.Title.CompareTo(class296_1.Title);
         IL_171:
         if (num != 0)
         {
             return num;
         }
         num = class296_0.string_4.CompareTo(class296_1.string_4);
         if (num != 0)
         {
             return num;
         }
         num = class296_0.method_29().CompareTo(class296_1.method_29());
         if (num != 0)
         {
             return num;
         }
         num = class296_0.method_28().CompareTo(class296_1.method_28());
         if (num != 0)
         {
             return num;
         }
         num = class296_0.string_9.CompareTo(class296_1.string_9);
         if (num != 0)
         {
             return num;
         }
         return 0;
     };
     this.icomparer_0 = new Class700(comparison_);
 }
Ejemplo n.º 41
0
 // Token: 0x0600259B RID: 9627
 // RVA: 0x0001D3D3 File Offset: 0x0001B5D3
 internal Class597(Class911 class911_1)
     : this(class911_1, new List<Class598>())
 {
 }