Domino_ Posted February 1, 2012 Author Share Posted February 1, 2012 How to make this invisiable?![](http://www.freemmorpgmaker.com/files/imagehost/pics/c86bb74440888c7bdfa6ed202a909672.png)Can I use same as item pink transperent color? But where is code who makes it invisiable? EO2.0 Link to comment Share on other sites More sharing options...
Wucker Posted February 1, 2012 Share Posted February 1, 2012 if you using a jpg then you cant, but if you using bmp and drawing on screen then you can mask it with something like```Engine_BltFast X, Y, DDS_Button, sRect, DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY```or just make the background of the gui image you're putting that button black. Link to comment Share on other sites More sharing options...
Robin Posted February 1, 2012 Share Posted February 1, 2012 If it's off-screen GUI then you simply can't. There's a reason I pre-render all GDI stuff. Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2012 Author Share Posted February 1, 2012 Im adding the buttons on picScreen And imgButton(1) on imagebox but Can I make all ImgButtons from picture to picturebox format and than make transperent pink place? And I added imgButtons into boxes because they dont appear on screen if picture format xDIn game:![](http://www.freemmorpgmaker.com/files/imagehost/pics/6bdbe602673d5ac30c4c794682c72078.png)Buttons are all like this: ![](http://www.freemmorpgmaker.com/files/imagehost/pics/6dd9b71210abef2f4bd4643ca17373af.png) just left is ' - 'Also can I draw picture with functions like text?example:```Call DrawText(frmMain.picCharacter.hDC, frmMain.picCharacter.width / 4 - 8, 16, Trim$(picture xD), QBColor(White))``` Link to comment Share on other sites More sharing options...
Robin Posted February 1, 2012 Share Posted February 1, 2012 GDI controls cannot be transparent. Link to comment Share on other sites More sharing options...
Domino_ Posted February 1, 2012 Author Share Posted February 1, 2012 So I can't make buttons background transperent in DD7 ?Also adding a small DD8 to handle only button bg will be messy and stupid yes?p.s. Also is there a way to do transperent backgrount to picture or picturebox? I just need to know can I do that without DD8.. But just make like making transperent first pixel… Link to comment Share on other sites More sharing options...
Wucker Posted February 1, 2012 Share Posted February 1, 2012 theres no such thing as "DD8", it's D3D8\. also, its not hard to use DD to draw on the screen. you just make the buttons a .bmp, then draw it to the screen, and then program the mouse events Link to comment Share on other sites More sharing options...
jcsnider Posted February 1, 2012 Share Posted February 1, 2012 The only correct way to accomplish this is to draw your "buttons" directly to the game screen using DX7\. Just reference what you already have to render the tiles, characters, etc.. Link to comment Share on other sites More sharing options...
Robin Posted February 1, 2012 Share Posted February 1, 2012 @Domino_:> So I can't make buttons background transperent in DD7 ?How the hell did you jump to that conclusion? You're using GDI. You need to use DirectDraw7 to draw anything on top of the screen. Link to comment Share on other sites More sharing options...
Domino_ Posted February 2, 2012 Author Share Posted February 2, 2012 Okey, so is there any possibility to make a window transperent in EO2.0 ? and how…? Link to comment Share on other sites More sharing options...
Robin Posted February 2, 2012 Share Posted February 2, 2012 Stop confusing terminology.You cannot have any sort of GDI controls overlapping the screen which rely on masking.Also don't confuse transparency and translucency. You can very easily add masked blting to EO as the _entire_ graphics engine is based off that. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now