diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-09 17:08:24 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-09 17:08:24 +0000 |
commit | 8a78d1312d2a7d25aabc4b2fd082891e4714dbb7 (patch) | |
tree | d0eae08094d99b1830ba66d581540f5ea10598dc /protocols/Steam/src/steam_xstatus.cpp | |
parent | 89ce406fb710ff91a3f80d5f1ee674c09a1f7603 (diff) |
Steam: Show xstatus as extra icon in clist (step 3)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11303 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_xstatus.cpp')
-rw-r--r-- | protocols/Steam/src/steam_xstatus.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_xstatus.cpp b/protocols/Steam/src/steam_xstatus.cpp index c67ddf5f6b..b157971331 100644 --- a/protocols/Steam/src/steam_xstatus.cpp +++ b/protocols/Steam/src/steam_xstatus.cpp @@ -17,6 +17,14 @@ int CSteamProto::GetContactXStatus(MCONTACT hContact) return getDword(hContact, "XStatusId", 0) ? 1 : 0; } +void SetContactExtraIcon(MCONTACT hContact, int status) +{ + char iconName[100]; + mir_snprintf(iconName, SIZEOF(iconName), "%s_%s", MODULE, "gaming"); + + ExtraIcon_SetIcon(hExtraXStatus, hContact, (status > 0) ? Skin_GetIconHandle(iconName) : NULL); +} + INT_PTR CSteamProto::OnGetXStatusEx(WPARAM wParam, LPARAM lParam) { MCONTACT hContact = (MCONTACT)wParam; |