Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Drawing char on menu screen


damian666
 Share

Recommended Posts

so… i been trying to get some modifications in a normal 2.0 eo.

things like hair etc, which works wonderfull ingame, because we can draw ontop of things ingame, but that wont work in the create character screen on the main menu, so my question is, does anybody know a way to get that to work?

thanx in advance ![:P](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/tongue.png)
Link to comment
Share on other sites

Yeah I'm tried it out, BltToDC didn't work, because she doesn't cut out the background of an image. If only I was able to trans the outside of the damn image, because right now, it would work beautifully except for that… The concept is there, if you can transparent the background and you would have hair on the head.

I attached the source edit I did, and you can try it out or try to see if someone else can actually get it going. I'm pretty much stumped... BltFast would do the trick, but I've been err'n about how to switch the BackBuffer to another picture box control, if that's even possible. :\

Even if going the BltFast route, it seems like it would need to be in a loop, which I've tried from the very start, found out the GameLoop starts only when the player is actually in-game lol.

Anyways, just do ctrl+f to find CreateFace and CreateHair , most of my code would deal with those two entries.

(Disclamer; Just to clarify that my experience in rendering is close to null... So be very cautious when looking at that code lol, coding I'm sure could be optimised and better performed...)
Link to comment
Share on other sites

i dunno whats to understand , its just so we can modify our characters, while creating a new one.

so you select a hairtype, and it shows on the sprite preview on char create screen.

select different clothes, and the clothes on the preview change etc.

like here > http://www.touchofdeathforums.com/community/index.php?/topic/123485-csde-character-customization-gender-hair/

but then in a dx7 EO
Link to comment
Share on other sites

seriously? alright you know what, this is going to need a InMenu Boolean and a bunch of other stuff you need to declare and set it up on the gameloop above InGame.

Create a sub routine for rendering that would replace NewCharacterBltSprite.and finally flip and render everything to frmMenu

Have this below the routine after setting up a rect for the sprite:

```
DX7.GetWindowRect frmMenu.picCreate.hwnd, dRECT

DDS_Primary.Blt dRECT, DDS_BackBuffer, sRECT, DDBLT_WAIT
```

This is just an idea on how it will work. Hence letting it be brief.

I'm going to get started on this now so I could post a better idea on gettting this to work.
Link to comment
Share on other sites

Christ, I spent the whole night trying to figure this out. For some reason vb6 doesn't like it when i create more buffers on a separate form or picturebox. I tried linking them to another picturebox though im having the problem of this code.

```
DD_Clip.SetHWnd frmMain.picScreen.hWnd
```
Its not allowing me to create a duplicate.

Best bet is to just to just use bltfast, render the whole Menu with collision and get rid of frmMenu.

but thats just too much to do. =(
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...