Valhalla Legends Forums Archive | Battle.net Bot Development | little icon questions

AuthorMessageTime
FrOzeN
ok, on the bot i'm working on i'm going to make it Draw Ratings on ladder icons.. i know this is difficult and i've been told that DrawText API is what to use.. but looking into i've had some problems..

1) ListView doesn't have a .hDC but it does have a .hWnd which theres a API to convert it, which i forgot of..  :-\

2) WHEN? do i draw the rating on the icon, is it done after its added to the list, or just before somehow?
i'd lyk to know the steps of doing it..
also Spht i think ur bot support drawing ladder ratings if i'm right.. what API's did you use to do this?

----
Some other simple icon questions..

In WarCraft 2 what does SOC, ROC, WAR stand for? in there icons..

And is this ([img]http://www.geocities.com/Area51/Nova/7641/icons/spawn.jpg[/img]) icon for both StarCraft and BroodWar spawn?

Finally..

Are any of these icons out of date by any chance? ([img]http://www.wolfness.com/upload/UNKNOWN%202.gif[/img] [img]http://www.wolfness.com/upload/UNKNOWN%205.gif[/img] [img]http://www.wolfness.com/upload/UNKNOWN%206.gif[/img])

And which one is for Ladder and which one for IronMan as i have no knowledge of wc2.. (i do know the first one is SC/BW)

Thanx :)
Also any other related help towards this would be appreciated.

[EDIT] Fixing Post :)
October 2, 2004, 2:30 PM
Spht
[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]ok, on the bot i'm working on i'm going to make it Draw Ratings on ladder icons.. i know this is difficult and i've been told that DrawText API is what to use.. but looking into i've had some problems..

1) ListView doesn't have a .hDC but it does have a .hWnd which theres a API to convert it, which i forgot of..  :-\[/quote]

hWnd is the window's handle.  I'll assume by "hDC" you're referring to the device context handle.  They're both fairly unrelated.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/devcons_0g6r.asp

[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]2) WHEN? do i draw the rating on the icon, is it done after its added to the list, or just before somehow?[/quote]

I'd assume you'd write it after.  Otherwise, your icon will get drawn on top of the rating.

[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]i'd lyk to know the steps of doing it..[/quote]

Didn't I just go over this?  Draw icon then write rating.

[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]also Spht i think ur bot support drawing ladder ratings if i'm right.. what API's did you use to do this?[/quote]

DrawTextA.

[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]Some other simple icon questions..

In WarCraft 2 what does SOC, ROC, WAR stand for? in there icons..[/quote]

That doesn't ring a bell.  Post the icon?

[quote author=FrOzeN link=topic=8975.msg82934#msg82934 date=1096727445]And is this ([img]http://www.geocities.com/Area51/Nova/7641/icons/spawn.jpg[/img]) icon for both StarCraft and BroodWar spawn?

Finally..

Are any of these icons out of date by any chance? ([img]http://www.wolfness.com/upload/UNKNOWN%202.gif[/img] [img]http://www.wolfness.com/upload/UNKNOWN%205.gif[/img] [img]http://www.wolfness.com/upload/UNKNOWN%206.gif[/img])

And which one is for Ladder and which one for IronMan as i have no knowledge of wc2.. (i do know the first one is SC/BW)

Thanx :)
Also any other related help towards this would be appreciated.
[/quote]

All covered here:
http://www.battle.net/info/icons.shtml
October 2, 2004, 4:12 PM
FrOzeN
thanz heaps :)

That battlenet info on icons is exactly what kind of thing i've been looking for..

and i just found out what the other things ment, sorry for not explaining well enough before..

ROC - Rogue
SOC - Shaman
WAR - Warrior
October 3, 2004, 10:21 AM

Search