diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-02-17 04:29:28 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-02-17 04:29:28 +0000 |
commit | df1277bc854e0db5424623890be9a3d74750a03f (patch) | |
tree | e55d29c375ba8e175899bf0a65c7631533160876 /protocols/Steam/src | |
parent | 40da8fcc882ff988d14e50d204909b2a3b701418 (diff) |
Steam: New option to control showing chat state changes (i.e., user closed chat window); version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@16288 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/resource.h | 3 | ||||
-rw-r--r-- | protocols/Steam/src/steam_options.cpp | 3 | ||||
-rw-r--r-- | protocols/Steam/src/steam_options.h | 1 | ||||
-rw-r--r-- | protocols/Steam/src/steam_polling.cpp | 3 | ||||
-rw-r--r-- | protocols/Steam/src/version.h | 2 |
5 files changed, 9 insertions, 3 deletions
diff --git a/protocols/Steam/src/resource.h b/protocols/Steam/src/resource.h index e2b1aa120d..6532c01025 100644 --- a/protocols/Steam/src/resource.h +++ b/protocols/Steam/src/resource.h @@ -1,6 +1,6 @@ //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
-// Used by e:\Projects\C++\MirandaNG\protocols\Steam\res\Resource.rc
+// Used by D:\Development\Miranda NG\Miranda NG\protocols\Steam\res\Resource.rc
//
#define IDD_ACCMGR 9
#define IDD_OPT_MAIN 10
@@ -25,6 +25,7 @@ #define IDC_DEFAULT_GROUP 1020
#define IDC_GROUP 1021
#define IDC_BIGGER_AVATARS 1030
+#define IDC_SHOW_CHAT_EVENTS 1031
#define IDC_CONTACTS 1050
#define IDC_BLOCK 1059
#define IDC_BM_LIST 1064
diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp index 391f534b24..7dc841451a 100644 --- a/protocols/Steam/src/steam_options.cpp +++ b/protocols/Steam/src/steam_options.cpp @@ -3,7 +3,7 @@ CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent)
: CSteamDlgBase(proto, idDialog, false),
m_username(this, IDC_USERNAME), m_password(this, IDC_PASSWORD),
- m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS)
+ m_group(this, IDC_GROUP), m_biggerAvatars(this, IDC_BIGGER_AVATARS), m_showChatEvents(this, IDC_SHOW_CHAT_EVENTS)
{
SetParent(hwndParent);
@@ -11,6 +11,7 @@ CSteamOptionsMain::CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwnd CreateLink(m_password, "Password", _T(""));
CreateLink(m_group, "DefaultGroup", _T("Steam"));
CreateLink(m_biggerAvatars, "UseBigAvatars", DBVT_BYTE, FALSE);
+ CreateLink(m_showChatEvents, "ShowChatEvents", DBVT_BYTE, TRUE);
}
void CSteamOptionsMain::OnInitDialog()
diff --git a/protocols/Steam/src/steam_options.h b/protocols/Steam/src/steam_options.h index e06a0070ad..5aca344e28 100644 --- a/protocols/Steam/src/steam_options.h +++ b/protocols/Steam/src/steam_options.h @@ -9,6 +9,7 @@ private: CCtrlEdit m_group;
CCtrlCheck m_biggerAvatars;
+ CCtrlCheck m_showChatEvents;
protected:
CSteamOptionsMain(CSteamProto *proto, int idDialog, HWND hwndParent = NULL);
diff --git a/protocols/Steam/src/steam_polling.cpp b/protocols/Steam/src/steam_polling.cpp index c691cd979e..a008c359cb 100644 --- a/protocols/Steam/src/steam_polling.cpp +++ b/protocols/Steam/src/steam_polling.cpp @@ -145,6 +145,9 @@ void CSteamProto::ParsePollData(JSONNode *data) } else if (!lstrcmpi(type, _T("leftconversation"))) { + if (!getBool("ShowChatEvents", true)) + continue; + // chatstates gone event MCONTACT hContact = FindContact(steamId); if (hContact) diff --git a/protocols/Steam/src/version.h b/protocols/Steam/src/version.h index 9c2a1d29cc..3403cb5e45 100644 --- a/protocols/Steam/src/version.h +++ b/protocols/Steam/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
#define __RELEASE_NUM 5
-#define __BUILD_NUM 0
+#define __BUILD_NUM 1
#include <stdver.h>
|