ark0n Posted June 9, 2010 Author Share Posted June 9, 2010 Alrighty guys.So I'm bored right now so i decided to Teach you guys how to make a Alpha Blended txtMyChat in EO.W/O EXPLANATIONSStep 1:Alright, so first make a Module called modAlphaBlending , Copy and Paste the following code inside of it.```Option Base 0Option Compare TextOption ExplicitPublic Type OSVERSIONINFO dwOSVersionInfoSize As Long ' 32 dwMajorVersion As Long ' 32 dwMinorVersion As Long ' 32 dwBuildNumber As Long ' 32 dwPlatformId As Long ' 32 szCSDVersion As String * 128End TypePublic Const GWL_EXSTYLE As Long = (-20)Public Const LWA_ALPHA As Long = &H2Public Const WS_EX_LAYERED As Long = &H80000Public Declare Function GetWindowLong Lib "user32.dll" Alias "GetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long) As LongPublic Declare Function GetVersionEx Lib "kernel32" Alias "GetVersionExA" (lpVersionInformation As OSVERSIONINFO) As LongPublic Declare Function SetWindowLong Lib "user32.dll" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPublic Declare Function SetLayeredWindowAttributes Lib "user32.dll" (ByVal hWnd As Long, ByVal crKey As Long, ByVal bAlpha As Byte, ByVal dwFlags As Long) As Long```Step 2:So, after you have created modAlphaBlending than go to frmMainGame and make the PicScreen 640x480.Step 3:Than, move the txtMyChat and txtChat over the PicScreen. Theres a ScreenShot of what it should look like below.Step 4: Add the Code to form LoadWILL BE FINISHED LATER, I WILL FINISH THIS LATER TODAY! Link to comment Share on other sites More sharing options...
peekay Posted June 9, 2010 Share Posted June 9, 2010 cant see any screenshot.. would be nice to see what it looks like Link to comment Share on other sites More sharing options...
balliztik1 Posted June 9, 2010 Share Posted June 9, 2010 It says it'll be finished later. There's no screenshot because he's not done. Link to comment Share on other sites More sharing options...
Helladen Posted June 9, 2010 Share Posted June 9, 2010 Question: What does Alpha Blending Chat do? Link to comment Share on other sites More sharing options...
ark0n Posted June 9, 2010 Author Share Posted June 9, 2010 It basically makes the ChatBox Transparent, but im about to go to bed, i got a big day tommarow, i'll finish it when i get home tommarow. Link to comment Share on other sites More sharing options...
Robin Posted June 9, 2010 Share Posted June 9, 2010 Transparency isn't done through alpha blending. Translucency is.Your code has nothing to do with alpha blending. Link to comment Share on other sites More sharing options...
Joyce Posted June 9, 2010 Share Posted June 9, 2010 Small detail, why post something you haven't even finished yet in the first place? :huh: Link to comment Share on other sites More sharing options...
mrmiguu Posted June 9, 2010 Share Posted June 9, 2010 Alpha blending (like Robin said) is not just transparency. You need to be able to see the main chat box, but see through it (the game graphics but tinted). Link to comment Share on other sites More sharing options...
StorN Posted July 12, 2010 Share Posted July 12, 2010 Akio, please … Continue turtorial Link to comment Share on other sites More sharing options...
Robin Posted July 12, 2010 Share Posted July 12, 2010 It's not a tutorial, it's just Akio copy and pasting stuff from someone's website. Completely useless. 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