示例#1
0
        public void Render(CompendiumPreviewPageGump gump)
        {
            if (Compendium.LOG_MESSAGES)
            {
                Console.WriteLine("Rendering Preview Gump");
            }
            try
            {
                //purple gump outline
                gump.AddImageTiled(0, 0, 790, 1, 1); //top
                gump.AddImageTiled(0, 1, 790, 1, 1); //top
                gump.AddImageTiled(0, 2, 790, 1, 1); //top
                gump.AddImageTiled(0, 3, 790, 1, 1); //top
                gump.AddImageTiled(0, 4, 790, 1, 1); //top


                gump.AddImageTiled(0, 541, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 542, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 543, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 544, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 545, 790, 1, 1); //bottom

                gump.AddImageTiled(0, 0, 1, 545, 1);   //left
                gump.AddImageTiled(1, 0, 1, 545, 1);   //left
                gump.AddImageTiled(2, 0, 1, 545, 1);   //left
                gump.AddImageTiled(3, 0, 1, 545, 1);   //left
                gump.AddImageTiled(4, 0, 1, 545, 1);   //left

                gump.AddImageTiled(786, 0, 1, 545, 1); //right
                gump.AddImageTiled(787, 0, 1, 545, 1); //right
                gump.AddImageTiled(788, 0, 1, 545, 1); //right
                gump.AddImageTiled(789, 0, 1, 545, 1); //right
                gump.AddImageTiled(790, 0, 1, 545, 1); //right

                gump.AddAlphaRegion(1, 1, 789, 544);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            Render((CompendiumPageGump)gump);
        }
        public void Render(CompendiumPreviewPageGump gump)
        {
            if (Compendium.LOG_MESSAGES)
                Console.WriteLine("Rendering Preview Gump");
            try
            {
                //purple gump outline
                gump.AddImageTiled(0, 0, 790, 1, 1); //top
                gump.AddImageTiled(0, 1, 790, 1, 1); //top
                gump.AddImageTiled(0, 2, 790, 1, 1); //top
                gump.AddImageTiled(0, 3, 790, 1, 1); //top
                gump.AddImageTiled(0, 4, 790, 1, 1); //top


                gump.AddImageTiled(0, 541, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 542, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 543, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 544, 790, 1, 1); //bottom
                gump.AddImageTiled(0, 545, 790, 1, 1); //bottom

                gump.AddImageTiled(0, 0, 1, 545, 1); //left
                gump.AddImageTiled(1, 0, 1, 545, 1); //left
                gump.AddImageTiled(2, 0, 1, 545, 1); //left
                gump.AddImageTiled(3, 0, 1, 545, 1); //left
                gump.AddImageTiled(4, 0, 1, 545, 1); //left

                gump.AddImageTiled(786, 0, 1, 545, 1); //right
                gump.AddImageTiled(787, 0, 1, 545, 1); //right
                gump.AddImageTiled(788, 0, 1, 545, 1); //right
                gump.AddImageTiled(789, 0, 1, 545, 1); //right
                gump.AddImageTiled(790, 0, 1, 545, 1); //right

                gump.AddAlphaRegion(1, 1, 789, 544);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            Render((CompendiumPageGump) gump);
        }