// Token: 0x0600157E RID: 5502 RVA: 0x00031CC8 File Offset: 0x0002FEC8
        protected override void vmethod_0(BinaryWriter writer)
        {
            writer.Write((int)this.Hotkey.Key);
            writer.Write((int)this.Hotkey.Modifier);
            writer.Write((short)this.HotkeyType);
            Enum40 hotkeyType = this.HotkeyType;

            if (hotkeyType == Enum40.const_0)
            {
                writer.Write((short)this.InputEventFlags);
                writer.Write((int)this.KeyToPress);
                if (this.RepeatKeyPress)
                {
                    writer.Write(this.KeyPressRepeatRate);
                }
                if (this.ReleaseKey)
                {
                    writer.Write(this.KeyReleaseDelay);
                }
                if (this.MoveMouse)
                {
                    writer.Write(this.MoveMouseRate);
                }
            }
            writer.Write(this.Description);
        }
        // Token: 0x0600157D RID: 5501 RVA: 0x00031C2C File Offset: 0x0002FE2C
        protected override void vmethod_2(BinaryReader reader, int version)
        {
            this.Hotkey     = new Struct21((Keys)reader.ReadInt32(), (Keys)reader.ReadInt32());
            this.HotkeyType = (Enum40)reader.ReadInt16();
            Enum40 hotkeyType = this.HotkeyType;

            if (hotkeyType == Enum40.const_0)
            {
                this.InputEventFlags = (Enum108)reader.ReadInt16();
                this.KeyToPress      = (Keys)reader.ReadInt32();
                if (this.RepeatKeyPress)
                {
                    this.KeyPressRepeatRate = reader.ReadInt32();
                }
                if (this.ReleaseKey)
                {
                    this.KeyReleaseDelay = reader.ReadInt32();
                }
                if (this.MoveMouse)
                {
                    this.MoveMouseRate = reader.ReadInt32();
                }
            }
            this.Description = reader.ReadString();
        }
Beispiel #3
0
        public void method_21(Enum40 enum401)
        {
            _enum400 = enum401;
            var b = (byte)enum401;

            _color0 = _color8[b, 0];
            _color1 = _color8[b, 1];
            _color2 = _color8[b, 2];
            _color3 = _color8[b, 3];
            _color4 = _color8[b, 4];
            _color5 = _color8[b, 5];
            _color6 = _color8[b, 6];
            _color7 = _color8[b, 7];
            Invalidate();
        }