diff options
Diffstat (limited to 'protocols/Steam')
-rw-r--r-- | protocols/Steam/res/Resource.rc | 5 | ||||
-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 |
6 files changed, 13 insertions, 4 deletions
diff --git a/protocols/Steam/res/Resource.rc b/protocols/Steam/res/Resource.rc index f7ee0f42ba..054d9b2660 100644 --- a/protocols/Steam/res/Resource.rc +++ b/protocols/Steam/res/Resource.rc @@ -17,7 +17,7 @@ #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NEUD)
LANGUAGE LANG_NEUTRAL, SUBLANG_DEFAULT
-#pragma code_page(1251)
+#pragma code_page(1250)
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
@@ -107,6 +107,9 @@ BEGIN LTEXT "Default group:",IDC_STATIC,15,71,69,8
EDITTEXT IDC_GROUP,90,69,201,14,ES_AUTOHSCROLL
CONTROL "Use bigger avatars",IDC_BIGGER_AVATARS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,17,90,271,10
+ GROUPBOX "Message sessions",IDC_STATIC,7,115,291,32
+ CONTROL "Show chat state events (i.e., user closed chat session)",IDC_SHOW_CHAT_EVENTS,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,129,271,10
END
IDD_CAPTCHA DIALOGEX 0, 0, 143, 81
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>
|