Ejemplo n.º 1
0
 public ListBitmapsCommand(OpenTagCache info, TagInstance tag, RenderMethod definition)
     : base(CommandFlags.Inherit,
          "listbitmaps",
          "Lists the bitmaps used by the render_method.",
          "listbitmaps",
          "Lists the bitmaps used by the render_method.")
 {
     Info = info;
     Tag = tag;
     Definition = definition;
 }
        public static CommandContext Create(CommandContext parent, OpenTagCache info, TagInstance tag, RenderMethod renderMethod)
        {
            var groupName = info.StringIDs.GetString(tag.Group.Name);

            var context = new CommandContext(parent,
                string.Format("{0:X8}.{1}", tag.Index, groupName));

            Populate(context, info, tag, renderMethod);

            return context;
        }
Ejemplo n.º 3
0
 public SpecifyBitmapsCommand(OpenTagCache info, TagInstance tag, RenderMethod definition)
     : base(CommandFlags.Inherit,
          "specifybitmaps",
          "Allows the bitmaps of the render_method to be respecified.",
          "specifybitmaps",
          "Allows the bitmaps of the render_method to be respecified.")
 {
     Info = info;
     Tag = tag;
     Definition = definition;
 }
 public static void Populate(CommandContext context, OpenTagCache info, TagInstance tag, RenderMethod renderMethod)
 {
     context.AddCommand(new ListArgumentsCommand(info, tag, renderMethod));
     context.AddCommand(new ListBitmapsCommand(info, tag, renderMethod));
     context.AddCommand(new SpecifyBitmapsCommand(info, tag, renderMethod));
 }