![]() |
|
Transparent Background for Text - Printable Version +- Little Fighter Empire - Forums (https://lf-empire.de/forum) +-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7) +--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43) +--- Thread: Transparent Background for Text (/showthread.php?tid=3291) Pages:
1
2
|
|
Transparent Background for Text - Boop - 07-21-2009 ![]() Being, bored + seeing how the NTSD skin(yes I follow the progress, because it is the only mod which is making progress) is getting ruined by non transparent text, I decided to make this ![]() Code: .data in rarara.asm, add(at the top bit, you should be able to figure it out) : Code: include \masm32\include\gdi32.inc Now there are two ways of using this. Patching every line of text that you want to be transparent (useful if you want the majority of your text to still have a background) or completely replacing the real function with your one. #1: ;makes the background of the first line in the credits transparent invoke CallPatch,004272C2h, addr draw_text #2: ;i haven't tested this, should make all text transparent invoke JmpPatch,00401290h, addr draw_text Enjoy. RE: Transparent Background for Text - naruto hyuuga - 07-21-2009 waitttttttttttttt................. thats awesome you found how to make text bmps (in the exe) in to pngs (trasparency) if you can do this getting 2.0 to load pngs shouldn't be tough RE: Transparent Background for Text - Boop - 07-21-2009 No... ![]() That is what I'm talking about(the blue background around the letters). Those little things really annoy me ![]() RE: Transparent Background for Text - naruto hyuuga - 07-21-2009 i noe that blue background its like when lf2 types the letters it's pasting the letters with a blue background together so you can say they are bmps - a.bmp b.bmp c.bmp d.bmp e.bmp etc so you like changed it to pngs - a.png b.png c.png d.png e.png etc so its the same pic but with transparency (atleast my logic) i wonder if you can get 2.0 to load pngs (it will help ntsd2 (they needed alpha transparency before)) RE: Transparent Background for Text - TheNave - 07-21-2009 naruto, you have absolutely no clue how that works and are talking random wrong sh*t... that stuff is all we need, thanks alot silva^^ RE: Transparent Background for Text - naruto hyuuga - 07-22-2009 not working for me 0.o i put the .code part in generic.inc's .code part and .data part in generic.inc's .data part and the
and this include \masm32\include\gdi32.inc includelib \masm32\lib\gdi32.lib in rarara. asm top part (they were toghether) and these #1: ;makes the background of the first line in the credits transparent invoke CallPatch,004272C2h, addr draw_text #2: ;i haven't tested this, should make all text transparent invoke JmpPatch,00401290h, addr draw_text tried both not working RE: Transparent Background for Text - Boop - 07-22-2009 Works fine for: me, Nave, 1477. What doesn't work? You can't assemble the dll? If so what error do you get. Doesn't work in game? Are you sure you are using the correct exe? Kind of hard to help you, when all you say is "its not working" RE: Transparent Background for Text - naruto hyuuga - 07-22-2009 i used the newest exe to load the dll when i build it doesn't work am i suppose to modify the "?" in hDC dd ? because i didn't and its not working i.e not making background transparent RE: Transparent Background for Text - Boop - 07-22-2009 (07-22-2009, 12:53 PM)naruto hyuuga Wrote: i used the newest exe to load the dll when i build it doesn't work rarara.asm: Code: ; Based on Masm32 Dll Plugin Example for Damnation by Drakken generic.inc: Code: .data I've also attached the compiled dll, which I tested with the new exe, and it works perfectly. If you still can't get it to work, just give up. RE: Transparent Background for Text - Ramond - 07-22-2009 naruto you're supposed to describe your problem (ie what exactly happens/doesn't work). |