Jumbofile Posted May 31, 2013 Author Share Posted May 31, 2013 I have been trying to get a transparent chat box in eo 3.0 for a while. Is there anyone who can help me put it in a clean version of 3.0? Link to comment Share on other sites More sharing options...
blkcrow Posted May 31, 2013 Share Posted May 31, 2013 are you trying to make the picturebox transperent or are you trying to render the chat into the screen Link to comment Share on other sites More sharing options...
Jumbofile Posted June 1, 2013 Author Share Posted June 1, 2013 i want the chat to be rendered into the game screen Link to comment Share on other sites More sharing options...
abhi2011 Posted June 1, 2013 Share Posted June 1, 2013 I will go through on how it is done.* Load the texture into memory. (Not sure if the texture/image should have certain properties other than it should be .png and/or should have Alpha enabled.)* Render the texture in a loop. The alpha parameter should be the transparency of the texture.* Make a chat index value. This will determine the text to be rendered.* Render the text based on the chat index value. (On a for loop from say chatIndex value to 10\. Put the text in an array)* Render the buttons. The buttons will change the chat index value. Link to comment Share on other sites More sharing options...
Zeno Posted June 1, 2013 Share Posted June 1, 2013 You don't need to reinvent the wheel or program any text-related things, just stop a picture from being rendered. This is DX8\. The chat is already rendered into the game screen, and the GUI has no interaction with it, other than being behind it and sharing some position variables (which are set elsewhere from the rendering, so it completely doesn't matter if the image renders or not).As far as I know the GUI index for the chatbox is 1 across the board (if not, it will be the #.png of your chatbox in the GUI folder), so search in Sub DrawGUI for a line like this:```RenderTexture Tex_GUI(1)```And comment it out like so:```'RenderTexture Tex_GUI(1)```There should be two of those lines within an if/else/then statement. Text is rendered after that statement in RenderChatTextBuffer - it will still be rendered even if the chatbox is not.The chat scrolling buttons would still be rendered. You can use most image editors to make them more transparent. You could remove them by deleting their for-next loop. You could also change their position in modGeneral InitialiseGUI to move them more out of the way, or adjust their sizes if you care to change their graphics to something less bulky. Link to comment Share on other sites More sharing options...
abhi2011 Posted June 1, 2013 Share Posted June 1, 2013 You are talking about a fully rendered DX8 engine. He needs it for 3.0. Link to comment Share on other sites More sharing options...
Zeno Posted June 3, 2013 Share Posted June 3, 2013 > You are talking about a fully rendered DX8 engine. He needs it for 3.0.The only 3.0 version I've been able to find is 3.0.21 (which is a fully rendered DX8 version). It works perfectly. Link to comment Share on other sites More sharing options...
abhi2011 Posted June 3, 2013 Share Posted June 3, 2013 > The only 3.0 version I've been able to find is 3.0.21 (which is a fully rendered DX8 version). It works perfectly.[There ya go.](http://www.touchofdeathforums.com/community/index.php?/topic/127309-eclipse-nightly-releases-24-30/) Link to comment Share on other sites More sharing options...
Zeno Posted June 3, 2013 Share Posted June 3, 2013 > [There ya go.](http://www.touchofdeathforums.com/community/index.php?/topic/127309-eclipse-nightly-releases-24-30/)Ah I see. Yeah… that sucks. All but the chatbox is DX8. Link to comment Share on other sites More sharing options...
DarkDino Posted June 6, 2013 Share Posted June 6, 2013 Go to frmMain Codein Sub Form_Load() declare this:```Dim TransRichText As LongDim TransRich As Long```and put above "' If debug mode, handle error then exit out"```TransRichText = SetWindowLong(txtChat.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT)TransRich = SetWindowLong(txtMyChat.hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT)``` 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