Exemplo n.º 1
0
        public S3DPanel(S3DPoint pos, SDPoint size, Direction direction = Direction.Top)
        {
            this.pos       = pos;
            this.size      = size;
            this.direction = direction;

            dif_color = DX.GetColorU8(255, 0, 0, 0);
            spc_color = DX.GetColorU8(0, 0, 0, 255);
        }
Exemplo n.º 2
0
        public void Draw(SDPoint src_pos, Rectangle dst_rc, double alpha, bool is_turn)
        {
            if (alpha > 1)
            {
                alpha = 1;
            }
            if (alpha <= 0)
            {
                return;
            }

            DX.SetDrawBlendMode(DX.DX_BLENDMODE_ALPHA, (int)(alpha * 255));
            int is_turn_flag = DX.FALSE;

            if (is_turn)
            {
                is_turn_flag = DX.TRUE;
            }
            DX.DrawRectGraphF((float)src_pos.x, (float)src_pos.y, dst_rc.X, dst_rc.Y, dst_rc.Width, dst_rc.Height, image_handle, DX.TRUE, is_turn_flag);
            DX.SetDrawBlendMode(DX.DX_BLENDMODE_NOBLEND, 0);
        }
Exemplo n.º 3
0
 public void SetUV(SDPoint pos, SDPoint size)
 {
     uv_pos  = pos;
     uv_size = size;
 }
Exemplo n.º 4
0
 public void SetSize(SDPoint size)
 {
     this.size = size;
 }