Ejemplo n.º 1
0
        private void X_GOTO_GRAPHICS_TOOL_JP_NAME_Click(object sender, EventArgs e)
        {
            uint addr        = U.toOffset((uint)P8.Value);
            uint paletteAddr = Program.ROM.p32(JP_FONT_PALETTE_POINTER);

            GraphicsToolForm f = (GraphicsToolForm)InputFormRef.JumpForm <GraphicsToolForm>(U.NOT_FOUND);

            f.Jump(32 * 8, 4 * 8, addr, 0, 0, 0, paletteAddr, 0, 1, 0);
        }
Ejemplo n.º 2
0
        private void GraphicsToolButton_Click(object sender, EventArgs e)
        {
            uint image   = U.toOffset(D12.Value);
            uint palette = U.toOffset(D16.Value);

            int width          = 256;
            int height         = 8 * 4; //32
            GraphicsToolForm f = (GraphicsToolForm)InputFormRef.JumpFormLow <GraphicsToolForm>();

            f.Jump(width
                   , height
                   , image
                   , 0
                   , 0
                   , 0
                   , palette
                   , 0
                   , 0
                   , 0);
            f.Show();
        }
Ejemplo n.º 3
0
        private void X_JumpGraphicsTool_Click(object sender, EventArgs e)
        {
            if (this.DisplayImageWidth == 0)
            {
                return;
            }

            GraphicsToolForm f = (GraphicsToolForm)InputFormRef.JumpFormLow <GraphicsToolForm>();

            f.Jump(this.DisplayImageWidth
                   , this.DisplayImageHeight
                   , this.DisplayImageAddress
                   , 0
                   , this.DisplayTSAAddress
                   , 1
                   , this.DisplayPaletteAddress
                   , 0
                   , 0
                   , 0);
            f.Show();
        }
Ejemplo n.º 4
0
        private void GraphicsToolButton_Click(object sender, EventArgs e)
        {
            uint image   = U.toOffset(D0.Value);
            uint palette = U.toOffset(D8.Value);
            uint tsa     = U.toOffset(D4.Value);

            int width          = 30 * 8;
            int height         = 20 * 8;
            GraphicsToolForm f = (GraphicsToolForm)InputFormRef.JumpFormLow <GraphicsToolForm>();

            f.Jump(width
                   , height
                   , image
                   , 0
                   , tsa
                   , 1
                   , palette
                   , 1
                   , 8
                   , 0);
            f.Show();
        }
Ejemplo n.º 5
0
        private void GraphicsToolButton_Click(object sender, EventArgs e)
        {
            uint image   = U.toOffset(P0.Value);
            uint palette = U.toOffset(P4.Value);
            uint tsa     = U.toOffset(P8.Value);

            int width          = 32 * 8;
            int height         = GetThisImageHeight();
            int palette_count  = 8;
            GraphicsToolForm f = (GraphicsToolForm)InputFormRef.JumpFormLow <GraphicsToolForm>();

            f.Jump(width
                   , height
                   , image
                   , 0
                   , tsa
                   , 2
                   , palette
                   , 0
                   , palette_count
                   , 0);
            f.Show();
        }