예제 #1
0
        public override void AppendTo(ref SpanWriter writer, OrderedHashSet <string> strings, ref int entries, ref int switches)
        {
            writer.Write((ushort)0x7B20); // "{ "
            writer.Write(LayoutName);
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(X.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(Y.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(NormalID.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(PressedID.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(((int)Type).ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(Param.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(ButtonID.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(ItemID.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(Hue.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(Width.ToString());
            writer.Write((byte)0x20);     // ' '
            writer.WriteAscii(Height.ToString());

            if (LocalizedTooltip > 0)
            {
                writer.Write(LayoutTooltip);
                writer.WriteAscii(LocalizedTooltip.ToString());
            }

            writer.Write((ushort)0x207D); // " }"
        }
예제 #2
0
 public override void AppendTo(ref SpanWriter writer, OrderedHashSet <string> strings, ref int entries, ref int switches)
 {
     writer.Write((ushort)0x7B20); // "{ "
     writer.Write(LayoutName);
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(X.ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(Y.ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(NormalID.ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(PressedID.ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(((int)Type).ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(Param.ToString());
     writer.Write((byte)0x20);     // ' '
     writer.WriteAscii(ButtonID.ToString());
     writer.Write((ushort)0x207D); // " }"
 }