

![]() |
![]() |
|
|||||||
![]() |
![]() |
| Code Snippets and Tutorials The place for open source releases, great information, and tutorials written by other members. |
![]() |
|
|
LinkBack | Thread Tools |
![]() |
![]() |
|
|
#1 (permalink) |
|
rol 3905h, 8
Senior Member
Administrator ![]() ![]() Saint Join Date: Jul 2004
Location: Canada
Posts: 5,414
![]() |
Yeah, so I was bored and decided to do some Starspeak-like work with the original Diablo. Here are my results, maybe someone can learn something from them.
PrintXY with Color Selection (Available colors: 0-white, 1-blue, 2-red, 3-gold) Code:
D1_StaticText proc xinfo:DWORD, yinfo:DWORD, colorinfo:DWORD, textinfo:DWORD
pushad
push colorinfo
push textinfo
mov ecx, xinfo
mov edx, yinfo
call 00405681h
popad
ret
D1_StaticText endp
Printing Gold Client-Sided Text Code:
D1_PrintText proc textaddr:DWORD
pushad
push textaddr
call 0043D97Dh
add esp, 04h
popad
ret
D1_PrintText endp
Box Drawing Function Code:
D1_DrawBox proc xstart:DWORD, xend:DWORD, ystart:DWORD, yend:DWORD, col:DWORD
push ecx
mov ecx, xstart
.while ecx <= xend
invoke D1_StaticText, ecx, ystart, col, CTEXT(".")
invoke D1_StaticText, ecx, yend, col, CTEXT(".")
inc ecx
.endw
mov ecx, ystart
.while ecx <= yend
invoke D1_StaticText, xstart, ecx, col, CTEXT(".")
invoke D1_StaticText, xend, ecx, col, CTEXT(".")
inc ecx
.endw
pop ecx
ret
D1_DrawBox endp
Last edited by Perma : 02-07-2008 at 10:50 AM. |
|
|
|
![]() |
![]() |
|
Advertisement
|
|
![]() |
![]() |
|
|
#6 (permalink) | ||
|
The Sexy Penguin
Senior Member
Retired Staff Member ![]() ![]() ![]() Prophet |
I use MASM and RadASM for IDE and I belive perma uses the same, maybe a different IDE though.
__________________
Quote:
LCS, 707, BELPHEGOR YEEEEEEEH BITCH Quote:
|
||
|
|
|
![]() |
![]() |
![]() |
![]() |
|
|
#11 (permalink) |
|
rol 3905h, 8
Senior Member
Administrator ![]() ![]() Saint Join Date: Jul 2004
Location: Canada
Posts: 5,414
![]() |
Starcraft has different drawing functions with different parameters. But this same idea could easily be implemented on any game if you found the correct functions (like Starspeak, for example).
|
|
|
|
![]() |
![]() |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorials] Lots of them. | gamepin126 | Tips and Tricks | 9 | 03-27-2007 10:11 AM |
| Useful Keyboard Shortcuts | lpxxfaintxx | Tips and Tricks | 15 | 10-19-2006 12:45 AM |
| Useful Windows Software | Dan | Hardware and Software | 12 | 12-28-2005 03:24 AM |
| All times are GMT. The time now is 02:21 AM. |

