diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2013-02-23 13:36:18 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2013-02-23 13:36:18 +0000 |
commit | 197abf300c77a2ca088d2cd22ea51e23dfc48983 (patch) | |
tree | a00cc83c19927b0d269b79e920339729acd7a879 /protocols | |
parent | 23d8983fd3935d7d9d43bd14454eb6be55de3c40 (diff) |
the XFire options redesign (fixes #229)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3723 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Xfire/res/resource.rc | 410 | ||||
-rw-r--r-- | protocols/Xfire/src/main.cpp | 24 | ||||
-rw-r--r-- | protocols/Xfire/src/options.cpp | 241 |
3 files changed, 289 insertions, 386 deletions
diff --git a/protocols/Xfire/res/resource.rc b/protocols/Xfire/res/resource.rc index ed887cc120..6f7f4d6825 100644 --- a/protocols/Xfire/res/resource.rc +++ b/protocols/Xfire/res/resource.rc @@ -1,3 +1,6 @@ +// Microsoft Visual C++ generated resource script.
+//
+
#define IDC_STC23 1002
#define IDC_EDT1 1006
#define IDC_GRP9 1002
@@ -40,255 +43,270 @@ #define IDC_STC44 1006
#define IDC_IMG1 1002
+
#include "..\src\resource.h"
#include "windows.h"
+/////////////////////////////////////////////////////////////////////////////
+// German (Germany) resources
-ID_OP ICON DISCARDABLE "x_fire16x16.ico"
-IDI_TM ICON DISCARDABLE "d_xfire.ico"
-IDI_ONLINE ICON DISCARDABLE "xfire online.ico"
-IDI_OFFLINE ICON DISCARDABLE "xfire offline.ico"
-IDI_AWAY ICON DISCARDABLE "xfire away.ico"
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_DEU)
+LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
+#pragma code_page(1252)
-IDD_OPT DIALOGEX 0,0,318,252
-FONT 8,"MS Shell Dlg",0,0,1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
-EXSTYLE WS_EX_CONTROLPARENT
-BEGIN
- CONTROL "",IDC_OPTIONSTAB,"SysTabControl32",WS_VISIBLE|WS_TABSTOP,1,1,316,250
-END
+/////////////////////////////////////////////////////////////////////////////
+//
+// Icon
+//
-IDD_OPTLOGIN DIALOGEX 0,0,304,235
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+// Icon with lowest ID value placed first to ensure application icon
+// remains consistent on all systems.
+ID_OP ICON "x_fire16x16.ico"
+IDI_TM ICON "d_xfire.ico"
+IDI_ONLINE ICON "xfire online.ico"
+IDI_OFFLINE ICON "xfire offline.ico"
+IDI_AWAY ICON "xfire away.ico"
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Dialog
+//
+
+IDD_OPTLOGIN DIALOGEX 0, 0, 304, 227
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "",IDC_LOGIN,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,66,12,100,13,WS_EX_CLIENTEDGE
- CONTROL "",IDC_PASSWORD,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL|ES_PASSWORD,66,31,100,13,WS_EX_CLIENTEDGE
- CONTROL "Password:",IDC_STATIC,"Static",WS_CHILD|WS_VISIBLE|WS_GROUP|SS_RIGHT,8,33,56,9
- CONTROL "Loginname:",IDC_STATIC,"Static",WS_CHILD|WS_VISIBLE|WS_GROUP|SS_RIGHT,16,14,48,9
- CONTROL "XFire",IDC_GROUPMAIN,"Button",WS_CHILD|WS_VISIBLE|WS_GROUP|BS_GROUPBOX,2,1,300,46
- CONTROL "Nick:",IDC_STC1,"Static",WS_CHILD|WS_VISIBLE|WS_GROUP|SS_RIGHT,8,88,58,9
- CONTROL "",IDC_NICK,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,68,86,100,13,WS_EX_CLIENTEDGE
- CONTROL "Current Protocolversion:",IDC_STC16,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_RIGHT|0x00000800,178,217,94,11
- CONTROL "",IDC_PVER,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY,274,217,24,11,WS_EX_CLIENTEDGE
- CONTROL "",IDC_LASTGAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL|ES_CENTER,2,51,298,11
- CONTROL "Note: You can only change these settings, if you are connected to Xfire.",IDC_STC22,"Static",WS_CHILD|WS_VISIBLE,6,73,290,11
- CONTROL "Create a new Xfire account on website",IDC_URLNEWACC,"Hyperlink",WS_CHILD|WS_VISIBLE|WS_TABSTOP,170,14,126,9
- CONTROL "Lost Password?",IDC_LOSTPW,"Hyperlink",WS_CHILD|WS_VISIBLE|WS_TABSTOP,170,33,124,9
- CONTROL "Account options",IDC_GRP12,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,62,300,170
- CONTROL "Show my friends",IDC_KONFIG_1,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,114,282,9
- CONTROL "Game Status",IDC_GRP13,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,6,103,292,57
- CONTROL "Show on my profile and miniprofile",IDC_KONFIG_2,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,125,282,9
- CONTROL "Show my game server data",IDC_KONFIG_3,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,136,282,9
- CONTROL "Other Activity",IDC_GRP14,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,6,162,292,35
- CONTROL "Show my voice chat server to my friends",IDC_KONFIG_5,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,173,282,9
- CONTROL "Show people when I type to them",IDC_KONFIG_6,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,184,282,9
- CONTROL "Show nicknames when available",IDC_KONFIG_4,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,170,88,128,9
- CONTROL "Show friends of my friends",IDC_KONFIG_7,"Button",WS_CHILD|WS_VISIBLE|WS_DISABLED|WS_TABSTOP|BS_AUTOCHECKBOX,10,147,282,9
+ EDITTEXT IDC_LOGIN,66,12,100,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ EDITTEXT IDC_PASSWORD,66,31,100,13,ES_PASSWORD | ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ RTEXT "Password:",IDC_STATIC,8,33,56,9
+ RTEXT "Loginname:",IDC_STATIC,8,14,56,9
+ GROUPBOX "XFire",IDC_GROUPMAIN,2,1,300,46,WS_GROUP
+ RTEXT "Nick:",IDC_STC1,8,88,58,9
+ EDITTEXT IDC_NICK,68,86,100,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ RTEXT "Current Protocolversion:",IDC_STC16,178,206,94,11,SS_CENTERIMAGE | SS_REALSIZEIMAGE | NOT WS_GROUP
+ EDITTEXT IDC_PVER,274,207,24,12,ES_READONLY | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ EDITTEXT IDC_LASTGAME,2,51,298,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ LTEXT "Note: You can only change these settings, if you are connected to Xfire.",IDC_STC22,6,73,290,11,NOT WS_GROUP
+ CONTROL "Create a new Xfire account on website",IDC_URLNEWACC,
+ "Hyperlink",WS_TABSTOP,170,14,126,9
+ CONTROL "Lost Password?",IDC_LOSTPW,"Hyperlink",WS_TABSTOP,170,33,124,9
+ GROUPBOX "Account options",IDC_GRP12,2,62,300,160
+ CONTROL "Show my friends",IDC_KONFIG_1,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,114,282,9
+ GROUPBOX "Game Status",IDC_GRP13,6,103,292,57
+ CONTROL "Show on my profile and miniprofile",IDC_KONFIG_2,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,125,282,9
+ CONTROL "Show my game server data",IDC_KONFIG_3,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,136,282,9
+ GROUPBOX "Other Activity",IDC_GRP14,6,162,292,35
+ CONTROL "Show my voice chat server to my friends",IDC_KONFIG_5,
+ "Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,173,282,9
+ CONTROL "Show people when I type to them",IDC_KONFIG_6,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,184,282,9
+ CONTROL "Show nicknames when available",IDC_KONFIG_4,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,170,88,128,9
+ CONTROL "Show friends of my friends",IDC_KONFIG_7,"Button",BS_AUTOCHECKBOX | WS_DISABLED | WS_TABSTOP,10,147,282,9
END
-IDD_OPTFEAT DIALOGEX 0,0,304,235
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_OPTFEAT DIALOGEX 0, 0, 304, 230
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Options",IDC_GRP1,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,1,300,133
- CONTROL "More options",IDC_GRP5,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,136,300,98
- CONTROL "Display Error and Infomessage:",IDC_STC12,"Static",WS_CHILD|WS_VISIBLE|SS_RIGHT,4,190,144,9
- CONTROL "",IDC_NOMSG,"ComboBox",WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,152,188,106,61
- CONTROL "Tree1",IDC_TREE,"SysTreeView32",WS_VISIBLE|WS_BORDER|WS_TABSTOP|TVS_FULLROWSELECT|TVS_SHOWSELALWAYS|TVS_DISABLEDRAGDROP|TVS_LINESATROOT|TVS_HASLINES|TVS_HASBUTTONS,6,11,292,120
- CONTROL "Main group for clan groups:",IDC_STC25,"Static",WS_CHILD|WS_VISIBLE|SS_RIGHT,4,175,144,9
- CONTROL "",IDC_CLANGROUP,"ComboBox",WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,152,173,106,61
- CONTROL "Automatically scan for games:",IDC_STC26,"Static",WS_CHILD|WS_VISIBLE|SS_RIGHT,4,145,144,9
- CONTROL "",IDC_SCANUPDATECB,"ComboBox",WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,152,144,106,61
- CONTROL "",IDC_FOFGROUP,"ComboBox",WS_CHILD|WS_VISIBLE|WS_TABSTOP|CBS_DROPDOWNLIST,152,158,106,61
- CONTROL "Main group for Friends of Friends:",IDC_STC33,"Static",WS_CHILD|WS_VISIBLE|SS_RIGHT,4,160,144,9
+ GROUPBOX "Options",IDC_GRP1,2,1,300,152
+ GROUPBOX "More options",IDC_GRP5,2,155,300,71
+ RTEXT "Display Error and Infomessage:",IDC_STC12,4,209,144,9,NOT WS_GROUP
+ COMBOBOX IDC_NOMSG,152,207,142,61,CBS_DROPDOWNLIST | WS_TABSTOP
+ CONTROL "Tree1",IDC_TREE,"SysTreeView32",TVS_HASBUTTONS | TVS_HASLINES | TVS_LINESATROOT | TVS_DISABLEDRAGDROP | TVS_SHOWSELALWAYS | TVS_FULLROWSELECT | WS_BORDER | WS_HSCROLL | WS_TABSTOP,6,11,292,138
+ RTEXT "Main group for clan groups:",IDC_STC25,4,194,144,9,NOT WS_GROUP
+ COMBOBOX IDC_CLANGROUP,152,193,142,61,CBS_DROPDOWNLIST | WS_TABSTOP
+ RTEXT "Automatically scan for games:",IDC_STC26,4,166,144,9,NOT WS_GROUP
+ COMBOBOX IDC_SCANUPDATECB,152,164,142,61,CBS_DROPDOWNLIST | WS_TABSTOP
+ COMBOBOX IDC_FOFGROUP,152,179,142,61,CBS_DROPDOWNLIST | WS_TABSTOP
+ RTEXT "Main group for Friends of Friends:",IDC_STC33,4,180,144,9,NOT WS_GROUP
END
-IDD_OPTFEAT2 DIALOGEX 0,0,304,242
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_OPTFEAT2 DIALOGEX 0, 0, 304, 210
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Files",IDC_GRP6,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,94,300,102
- CONTROL "xfire_games.ini",IDC_CHKG,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,8,105,80,9
- CONTROL "icons.dll",IDC_CHKI,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,8,136,80,9
- CONTROL "Blocked User List",IDC_GRP8,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,1,300,91
- CONTROL "",IDC_BLOCKUSER,"ListBox",WS_CHILD|WS_VISIBLE|WS_TABSTOP|LBS_NOINTEGRALHEIGHT|LBS_HASSTRINGS|LBS_NOTIFY,6,11,128,78,WS_EX_CLIENTEDGE
- CONTROL "",IDC_REMUSER,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|0x00000040,138,42,16,15
- CONTROL "This list contains all your blocked Xfire users. You can remove one, if you wanna allow him to send you a friend request.",IDC_STC9,"Static",WS_CHILD|WS_VISIBLE,160,12,136,74
- CONTROL "You can simply block someone, if you right click on his friend request in clist and choose Block User ...",IDC_STC19,"Static",WS_CHILD|WS_VISIBLE,160,48,130,39
- CONTROL "This file is used for the game search, game detection and gameid resolving. It contains all xfire supported games.",IDC_STC20,"Static",WS_CHILD|WS_VISIBLE,92,105,206,28
- CONTROL "This file contains all original game icons. You can also activate the option for icon downloading, if you dont have it.",IDC_STC21,"Static",WS_CHILD|WS_VISIBLE,92,136,206,26
- CONTROL "Be sure you put these files in following folder:",IDC_STC24,"Static",WS_CHILD|WS_VISIBLE,8,168,290,9
- CONTROL "",IDC_FILESSHOULDBE,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY,8,179,290,13,WS_EX_CLIENTEDGE
+ GROUPBOX "Files",IDC_GRP6,2,94,300,104
+ CONTROL "xfire_games.ini",IDC_CHKG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,105,80,9
+ CONTROL "icons.dll",IDC_CHKI,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,8,136,80,9
+ GROUPBOX "Blocked User List",IDC_GRP8,2,1,300,91
+ LISTBOX IDC_BLOCKUSER,6,11,128,78,LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | NOT WS_BORDER | WS_TABSTOP,WS_EX_CLIENTEDGE
+ PUSHBUTTON "",IDC_REMUSER,138,42,16,15,BS_ICON
+ LTEXT "This list contains all your blocked Xfire users. You can remove one, if you wanna allow him to send you a friend request.",IDC_STC9,160,12,136,74,NOT WS_GROUP
+ LTEXT "You can simply block someone, if you right click on his friend request in clist and choose Block User ...",IDC_STC19,160,48,130,39,NOT WS_GROUP
+ LTEXT "This file is used for the game search, game detection and gameid resolving. It contains all xfire supported games.",IDC_STC20,92,105,206,28,NOT WS_GROUP
+ LTEXT "This file contains all original game icons. You can also activate the option for icon downloading, if you dont have it.",IDC_STC21,92,136,206,30,NOT WS_GROUP
+ LTEXT "Be sure you put these files in following folder:",IDC_STC24,7,171,290,9,NOT WS_GROUP
+ EDITTEXT IDC_FILESSHOULDBE,7,183,290,13,ES_READONLY | NOT WS_BORDER,WS_EX_CLIENTEDGE
END
-IDD_OPTFEAT3 DIALOGEX 0,0,304,235
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_OPTFEAT3 DIALOGEX 0, 0, 304, 220
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Status Message",IDC_GRP1,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,1,300,214
- CONTROL "Enable",IDC_ENABLESTSMSG,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,10,14,132,9
- CONTROL "With this feature, following status message will be set on your other protocol plugins, if you are ingame. So your other buddy's can also see what you play. It will also change the status to occupied, if this option is enabled.",IDC_STC28,"Static",WS_CHILD|WS_VISIBLE,10,38,286,24
- CONTROL "Following Variables are available: %myxfiregame%, %myxfirevoice%, %myxfireserverip%, %myxfirevoiceip%",IDC_STC29,"Static",WS_CHILD|WS_VISIBLE,10,96,286,19
- CONTROL "",IDC_STATUSMSG,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_MULTILINE,8,131,286,70,WS_EX_CLIENTEDGE
- CONTROL "Status message:",IDC_STC30,"Static",WS_CHILD|WS_VISIBLE,10,118,94,9
- CONTROL "",IDC_STC31,"Static",WS_CHILD|WS_VISIBLE,6,203,134,9
- CONTROL "Change the status to occupied or dnd",IDC_CHGSTATUS,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,142,14,154,9
- CONTROL "The status message and status will be reset, if you close the game.",IDC_STC32,"Static",WS_CHILD|WS_VISIBLE,10,72,286,20
- CONTROL "Prefer dnd when it is available",IDC_DNDFIRST,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,142,25,154,9
+ GROUPBOX "Status Message",IDC_GRP1,2,1,300,214
+ CONTROL "Enable",IDC_ENABLESTSMSG,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,14,132,9
+ LTEXT "With this feature, following status message will be set on your other protocol plugins, if you are ingame. So your other buddy's can also see what you play. It will also change the status to occupied, if this option is enabled.",IDC_STC28,10,38,286,24,NOT WS_GROUP
+ LTEXT "Following Variables are available: %myxfiregame%, %myxfirevoice%, %myxfireserverip%, %myxfirevoiceip%",IDC_STC29,10,96,286,19,NOT WS_GROUP
+ EDITTEXT IDC_STATUSMSG,8,131,286,70,ES_MULTILINE | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ LTEXT "Status message:",IDC_STC30,10,118,94,9,NOT WS_GROUP
+ LTEXT "",IDC_STC31,6,203,134,9,NOT WS_GROUP
+ CONTROL "Change the status to occupied or dnd",IDC_CHGSTATUS,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,142,14,154,9
+ LTEXT "The status message and status will be reset, if you close the game.",IDC_STC32,10,72,286,20,NOT WS_GROUP
+ CONTROL "Prefer dnd when it is available",IDC_DNDFIRST,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,142,25,154,9
END
-IDD_OPTFEAT4 DIALOGEX 0,0,304,235
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_OPTFEAT4 DIALOGEX 0, 0, 304, 230
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "",IDC_LGAMELIST,"ListBox",WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|LBS_NOINTEGRALHEIGHT|LBS_HASSTRINGS|LBS_SORT|LBS_NOTIFY,6,11,128,200,WS_EX_CLIENTEDGE
- CONTROL "Games",IDC_GRP10,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,0,300,233
- CONTROL "Game:",IDC_STC27,"Static",WS_CHILD|WS_VISIBLE,162,11,136,9
- CONTROL "",IDC_GAMENAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,162,20,136,11
- CONTROL "Dont detect this game as running",IDC_DONTDETECT,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,142,55,152,9
- CONTROL "",IDC_GAMEICO,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_ICON,138,11,22,19
- CONTROL "Options",IDC_GRP11,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,138,40,160,187
- CONTROL "Apply",IDC_APPLY,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,142,206,72,17
- CONTROL "Dont set status message for other protocols",IDC_NOSTATUSMSG,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,142,68,152,9
- CONTROL "",IDC_TEXTSTATUS,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL|ES_CENTER,142,192,152,11
- CONTROL "Add new game",IDC_ADDGAME,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,6,212,66,15
- CONTROL "Remove",IDC_REMOVE,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,74,212,60,15
- CONTROL "Dont show in start menu",IDC_NOTINSTARTMENU,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX,142,81,152,9
- CONTROL "(manual added)",IDC_MANADDED,"Static",NOT WS_VISIBLE|WS_CHILD,162,31,134,9
- CONTROL "Extra Command Line Parameters:",IDC_STC15,"Static",WS_CHILD|WS_VISIBLE,142,99,150,9
- CONTROL "",IDC_EXTRAPARAMS,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,142,110,152,13,WS_EX_CLIENTEDGE
- CONTROL "Edit ...",IDC_EDITGAME,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,222,206,72,17
+ LISTBOX IDC_LGAMELIST,6,11,128,185,LBS_SORT | LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | NOT WS_BORDER | WS_VSCROLL | WS_TABSTOP,WS_EX_CLIENTEDGE
+ GROUPBOX "Games",IDC_GRP10,2,0,300,225
+ LTEXT "Game:",IDC_STC27,162,11,136,9,NOT WS_GROUP
+ EDITTEXT IDC_GAMENAME,162,20,136,12,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ CONTROL "Dont detect this game as running",IDC_DONTDETECT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,142,55,152,9
+ ICON "",IDC_GAMEICO,138,11,21,20,SS_CENTERIMAGE
+ GROUPBOX "Options",IDC_GRP11,138,40,160,181
+ PUSHBUTTON "Apply",IDC_APPLY,142,199,72,17
+ CONTROL "Dont set status message for other protocols",IDC_NOSTATUSMSG,
+ "Button",BS_AUTOCHECKBOX | WS_TABSTOP,142,68,152,9
+ EDITTEXT IDC_TEXTSTATUS,142,186,152,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ PUSHBUTTON "Add new game",IDC_ADDGAME,6,201,66,15
+ PUSHBUTTON "Remove",IDC_REMOVE,74,202,60,15
+ CONTROL "Dont show in start menu",IDC_NOTINSTARTMENU,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,142,81,152,9
+ LTEXT "(manual added)",IDC_MANADDED,162,31,134,9,NOT WS_VISIBLE | NOT WS_GROUP
+ LTEXT "Extra Command Line Parameters:",IDC_STC15,142,99,150,9,NOT WS_GROUP
+ EDITTEXT IDC_EXTRAPARAMS,142,110,152,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ PUSHBUTTON "Edit ...",IDC_EDITGAME,222,199,72,17
END
-IDD_UD DIALOGEX 0,0,223,159
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_UD DIALOGEX 0, 0, 223, 159
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Username:",IDC_STC2,"Static",WS_CHILD|WS_VISIBLE,8,18,36,9
- CONTROL "Nick:",IDC_STC3,"Static",WS_CHILD|WS_VISIBLE,8,9,32,9
- CONTROL "Game",IDC_GRP2,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,44,220,32
- CONTROL "Voicechat",IDC_GRP3,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,77,220,33
- CONTROL "Name:",IDC_STC4,"Static",WS_CHILD|WS_VISIBLE,30,53,36,9
- CONTROL "Unreal Tournament 2004",IDC_GAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,54,53,134,9
- CONTROL "IP:",IDC_STC5,"Static",WS_CHILD|WS_VISIBLE,30,64,18,9
- CONTROL "255.255.255.255",IDC_GIP,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,54,64,54,9
- CONTROL "Port:",IDC_STC7,"Static",WS_CHILD|WS_VISIBLE,134,64,16,9
- CONTROL "27770",IDC_GPORT,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,150,64,70,9
- CONTROL "Unreal Tournament 2004",IDC_VNAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,54,88,132,9
- CONTROL "Name:",IDC_STC10,"Static",WS_CHILD|WS_VISIBLE,30,88,22,9
- CONTROL "IP:",IDC_STC11,"Static",WS_CHILD|WS_VISIBLE,30,99,18,9
- CONTROL "255.255.255.255",IDC_VIP,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,54,99,54,9
- CONTROL "Port:",IDC_STC13,"Static",WS_CHILD|WS_VISIBLE,134,99,16,9
- CONTROL "27770",IDC_VPORT,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,150,99,70,9
- CONTROL "Userdetails",IDC_GRP4,"Button",WS_CHILD|WS_VISIBLE|BS_GROUPBOX,2,0,112,44
- CONTROL "dufte",IDC_DNICK,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,46,9,64,9
- CONTROL "dufte",IDC_DUSERNAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_READONLY|ES_AUTOHSCROLL,46,18,66,9
- CONTROL "",IDC_GAMEICO,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_ICON,6,53,22,19
- CONTROL "",IDC_VOICEICO,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_ICON,6,88,22,19
- CONTROL "Copy",IDC_COPYGAME,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,190,49,30,11
- CONTROL "Copy",IDC_COPYVOICE,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,190,83,30,11
- CONTROL "",IDC_PROFILIMG,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_BITMAP,0,112,222,44
- CONTROL "",IDC_GAMEINFOLIST,"SysListView32",WS_CHILD|WS_VISIBLE|LVS_REPORT,116,1,106,43,WS_EX_CLIENTEDGE
+ LTEXT "Username:",IDC_STC2,8,18,36,9,NOT WS_GROUP
+ LTEXT "Nick:",IDC_STC3,8,9,32,9,NOT WS_GROUP
+ GROUPBOX "Game",IDC_GRP2,2,44,220,32
+ GROUPBOX "Voicechat",IDC_GRP3,2,77,220,33
+ LTEXT "Name:",IDC_STC4,30,53,36,9,NOT WS_GROUP
+ EDITTEXT IDC_GAME,54,53,134,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ LTEXT "IP:",IDC_STC5,30,64,18,9,NOT WS_GROUP
+ EDITTEXT IDC_GIP,54,64,54,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ LTEXT "Port:",IDC_STC7,134,64,16,9,NOT WS_GROUP
+ EDITTEXT IDC_GPORT,150,64,70,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ EDITTEXT IDC_VNAME,54,88,132,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ LTEXT "Name:",IDC_STC10,30,88,22,9,NOT WS_GROUP
+ LTEXT "IP:",IDC_STC11,30,99,18,9,NOT WS_GROUP
+ EDITTEXT IDC_VIP,54,99,54,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ LTEXT "Port:",IDC_STC13,134,99,16,9,NOT WS_GROUP
+ EDITTEXT IDC_VPORT,150,99,70,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ GROUPBOX "Userdetails",IDC_GRP4,2,0,112,44
+ EDITTEXT IDC_DNICK,46,9,64,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ EDITTEXT IDC_DUSERNAME,46,18,66,9,ES_AUTOHSCROLL | ES_READONLY | NOT WS_BORDER
+ ICON "",IDC_GAMEICO,6,53,22,19,SS_CENTERIMAGE
+ ICON "",IDC_VOICEICO,6,88,22,19,SS_CENTERIMAGE
+ PUSHBUTTON "Copy",IDC_COPYGAME,190,49,30,11
+ PUSHBUTTON "Copy",IDC_COPYVOICE,190,83,30,11
+ CONTROL "",IDC_PROFILIMG,"Static",SS_BITMAP | SS_CENTERIMAGE,0,112,222,44
+ CONTROL "",IDC_GAMEINFOLIST,"SysListView32",LVS_REPORT,116,1,106,43,WS_EX_CLIENTEDGE
END
-IDD_PWDLG DIALOGEX 6,5,204,38
-CAPTION "Enter Password"
-FONT 8,"MS Sans Serif",0,0,1
-STYLE WS_POPUP|WS_VISIBLE|WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME|DS_SETFONT|DS_FIXEDSYS
+IDD_PWDLG DIALOGEX 6, 5, 204, 38
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_TOPMOST
+CAPTION "Enter Password"
+FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
- CONTROL "Password:",IDC_STC17,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_RIGHT,0,12,34,11
- CONTROL "",IDC_PWNICK,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP,38,0,166,11,WS_EX_CLIENTEDGE
- CONTROL "",IDC_PWSTRING,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP,38,12,166,11,WS_EX_CLIENTEDGE
- CONTROL "Join",IDC_BTN4,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,144,25,60,11
- CONTROL "Nick:",IDC_STC18,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_RIGHT,0,0,34,11
+ RTEXT "Password:",IDC_STC17,0,12,34,11,SS_CENTERIMAGE | NOT WS_GROUP
+ EDITTEXT IDC_PWNICK,38,0,166,11,NOT WS_BORDER,WS_EX_CLIENTEDGE
+ EDITTEXT IDC_PWSTRING,38,12,166,11,NOT WS_BORDER,WS_EX_CLIENTEDGE
+ PUSHBUTTON "Join",IDC_BTN4,144,25,60,11
+ RTEXT "Nick:",IDC_STC18,0,0,34,11,SS_CENTERIMAGE | NOT WS_GROUP
END
-IDD_SETNICKNAME DIALOGEX 0,0,187,42
+IDD_SETNICKNAME DIALOGEX 0, 0, 187, 42
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Set Nickname"
-FONT 8,"MS Sans Serif",0,0,1
-STYLE WS_POPUP|WS_VISIBLE|WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME|DS_SETFONT|DS_FIXEDSYS
+FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
- CONTROL "",IDC_NICKNAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,5,5,177,12,WS_EX_CLIENTEDGE
- CONTROL "OK",IDOK,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_DEFPUSHBUTTON,36,23,50,14
- CONTROL "Cancel",IDCANCEL,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,102,23,50,14
+ EDITTEXT IDC_NICKNAME,5,5,177,12,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ DEFPUSHBUTTON "OK",IDOK,36,23,50,14
+ PUSHBUTTON "Cancel",IDCANCEL,102,23,50,14
END
-IDD_UPDATE DIALOGEX 0,0,188,107
+IDD_UPDATE DIALOGEX 0, 0, 188, 107
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "New xfire_games.ini"
-FONT 8,"MS Sans Serif",0,0,1
-STYLE WS_POPUP|WS_VISIBLE|WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME|DS_SETFONT|DS_FIXEDSYS
+FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
- CONTROL "There is a new XFire Gamelist online, do you want to update now?",IDC_STC34,"Static",WS_CHILD|WS_VISIBLE,30,5,154,19
- CONTROL 14,IDC_IMG2,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_ICON,4,3,22,19
- CONTROL "New supported Games:",IDC_STC35,"Static",WS_CHILD|WS_VISIBLE,6,29,124,9
- CONTROL "Update",IDOK,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_DEFPUSHBUTTON,36,88,50,15
- CONTROL "Cancel",IDCANCEL,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,102,88,50,15
- CONTROL "",IDC_UPDATEGAMES,"Edit",WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|ES_READONLY|ES_AUTOVSCROLL|ES_MULTILINE,6,40,178,44,WS_EX_CLIENTEDGE
+ LTEXT "There is a new XFire Gamelist online, do you want to update now?",IDC_STC34,30,5,154,19,NOT WS_GROUP
+ ICON IDI_TM,IDC_IMG2,4,3,22,19,SS_CENTERIMAGE
+ LTEXT "New supported Games:",IDC_STC35,6,29,124,9,NOT WS_GROUP
+ DEFPUSHBUTTON "Update",IDOK,36,88,50,15
+ PUSHBUTTON "Cancel",IDCANCEL,102,88,50,15
+ EDITTEXT IDC_UPDATEGAMES,6,40,178,44,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL,WS_EX_CLIENTEDGE
END
-IDD_ADDGAME DIALOGEX 0,0,196,205
-FONT 8,"MS Sans Serif",0,0,1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_ADDGAME DIALOGEX 0, 0, 196, 205
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
- CONTROL "Add Game",IDOK,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,4,186,50,15
- CONTROL "Cancel",IDCANCEL,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,142,186,50,15
- CONTROL "",IDC_GAMELIST,"ListBox",WS_CHILD|WS_VISIBLE|WS_VSCROLL|WS_TABSTOP|LBS_NOINTEGRALHEIGHT|LBS_HASSTRINGS|LBS_SORT|LBS_NOTIFY,4,33,186,148,WS_EX_CLIENTEDGE
- CONTROL "",IDC_PROGRESS,"msctls_progress32",WS_CHILD|WS_VISIBLE,6,96,184,13
- CONTROL "",IDC_SEARCH,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP,4,14,186,13,WS_EX_CLIENTEDGE
- CONTROL "Search:",IDC_STC14,"Static",WS_CHILD|WS_VISIBLE,4,3,186,9
- CONTROL "Custom ...",IDC_CUSTOM,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,56,186,50,15
+ PUSHBUTTON "Add Game",IDOK,4,186,50,15
+ PUSHBUTTON "Cancel",IDCANCEL,142,186,50,15
+ LISTBOX IDC_GAMELIST,4,33,186,148,LBS_SORT | LBS_HASSTRINGS | LBS_NOINTEGRALHEIGHT | NOT WS_BORDER | WS_VSCROLL | WS_TABSTOP,WS_EX_CLIENTEDGE
+ CONTROL "",IDC_PROGRESS,"msctls_progress32",0x0,6,96,184,13
+ EDITTEXT IDC_SEARCH,4,14,186,13,NOT WS_BORDER,WS_EX_CLIENTEDGE
+ LTEXT "Search:",IDC_STC14,4,3,186,9,NOT WS_GROUP
+ PUSHBUTTON "Custom ...",IDC_CUSTOM,56,186,50,15
END
-IDD_ADDGAME2 DIALOGEX 0,0,196,205
-FONT 8,"MS Sans Serif",0,0,1
-STYLE WS_CHILD|WS_VISIBLE|DS_FIXEDSYS|DS_SETFONT
+IDD_ADDGAME2 DIALOGEX 0, 0, 196, 205
+STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE
EXSTYLE WS_EX_CONTROLPARENT
+FONT 8, "MS Sans Serif", 0, 0, 0x1
BEGIN
- CONTROL "Add Game",IDOK,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_DEFPUSHBUTTON,4,186,50,15
- CONTROL "Cancel",IDCANCEL,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,142,186,50,15
- CONTROL "Game name:",IDC_STC36,"Static",WS_CHILD|WS_VISIBLE,4,3,188,9
- CONTROL "",IDC_ADD_NAME,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,4,14,186,13,WS_EX_CLIENTEDGE
- CONTROL "",IDC_ADD_DETECTEXE,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,4,42,136,13,WS_EX_CLIENTEDGE
- CONTROL "Game exe:",IDC_STC37,"Static",WS_CHILD|WS_VISIBLE,4,31,188,9
- CONTROL "Browse ...",IDC_ADD_BROWSEDETECT,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,144,42,48,14
- CONTROL "Launcher exe (optional):",IDC_STC38,"Static",WS_CHILD|WS_VISIBLE,4,59,188,9
- CONTROL "",IDC_ADD_LAUNCHEREXE,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,4,70,136,13,WS_EX_CLIENTEDGE
- CONTROL "Browse ...",IDC_ADD_BROWSELAUNCHER,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,144,70,48,14
- CONTROL "Game id:",IDC_STC39,"Static",WS_CHILD|WS_VISIBLE,4,86,52,9
- CONTROL "",IDC_ADD_ID,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP,4,97,36,13,WS_EX_CLIENTEDGE
- CONTROL "?",IDC_GAMEIDHELP,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,42,97,14,13
- CONTROL "Send game id:",IDC_STC42,"Static",WS_CHILD|WS_VISIBLE,60,86,50,9
- CONTROL "",IDC_ADD_SENDID,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP,60,97,36,13,WS_EX_CLIENTEDGE
- CONTROL "?",IDC_SENDIDHELP,"Button",WS_CHILD|WS_VISIBLE|WS_TABSTOP,98,97,14,13
- CONTROL "Statusmessage for Xfire, if this game will be started:",IDC_STC43,"Static",WS_CHILD|WS_VISIBLE,4,114,188,9
- CONTROL "",IDC_ADD_STATUSMSG,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL|ES_MULTILINE,4,125,188,56,WS_EX_CLIENTEDGE
- CONTROL "Parameter:",IDC_STC44,"Static",WS_CHILD|WS_VISIBLE,116,86,74,9
- CONTROL "",IDC_ADD_CUSTOMPARAMS,"Edit",WS_CHILD|WS_VISIBLE|WS_TABSTOP|ES_AUTOHSCROLL,116,97,76,13,WS_EX_CLIENTEDGE
+ DEFPUSHBUTTON "Add Game",IDOK,4,186,50,15
+ PUSHBUTTON "Cancel",IDCANCEL,142,186,50,15
+ LTEXT "Game name:",IDC_STC36,4,3,188,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_NAME,4,14,186,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ EDITTEXT IDC_ADD_DETECTEXE,4,42,136,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ LTEXT "Game exe:",IDC_STC37,4,31,188,9,NOT WS_GROUP
+ PUSHBUTTON "Browse ...",IDC_ADD_BROWSEDETECT,144,42,48,14
+ LTEXT "Launcher exe (optional):",IDC_STC38,4,59,188,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_LAUNCHEREXE,4,70,136,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ PUSHBUTTON "Browse ...",IDC_ADD_BROWSELAUNCHER,144,70,48,14
+ LTEXT "Game id:",IDC_STC39,4,86,52,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_ID,4,97,36,13,NOT WS_BORDER,WS_EX_CLIENTEDGE
+ PUSHBUTTON "?",IDC_GAMEIDHELP,42,97,14,13
+ LTEXT "Send game id:",IDC_STC42,60,86,50,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_SENDID,60,97,36,13,NOT WS_BORDER,WS_EX_CLIENTEDGE
+ PUSHBUTTON "?",IDC_SENDIDHELP,98,97,14,13
+ LTEXT "Statusmessage for Xfire, if this game will be started:",IDC_STC43,4,114,188,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_STATUSMSG,4,125,188,56,ES_MULTILINE | ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
+ LTEXT "Parameter:",IDC_STC44,116,86,74,9,NOT WS_GROUP
+ EDITTEXT IDC_ADD_CUSTOMPARAMS,116,97,76,13,ES_AUTOHSCROLL | NOT WS_BORDER,WS_EX_CLIENTEDGE
END
-IDD_ADDGAMEMAIN DIALOGEX 0,0,199,219
+IDD_ADDGAMEMAIN DIALOGEX 0, 0, 199, 219
+STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Add a new game"
-FONT 8,"MS Shell Dlg",0,0,1
-STYLE WS_POPUP|WS_VISIBLE|WS_CAPTION|WS_SYSMENU|DS_CENTER|DS_MODALFRAME|DS_SETFONT|DS_FIXEDSYS
+FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
- CONTROL "",IDC_OPTIONSTAB,"SysTabControl32",WS_VISIBLE|WS_TABSTOP,1,1,198,218
+ CONTROL "",IDC_OPTIONSTAB,"SysTabControl32",WS_TABSTOP,1,1,198,218
END
-IDD_SEARCHING DIALOGEX 6,5,198,41
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-STYLE WS_POPUP|WS_VISIBLE|WS_BORDER|DS_CENTER
+IDD_SEARCHING DIALOGEX 6, 5, 198, 41
+STYLE DS_SETFONT | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_BORDER
EXSTYLE WS_EX_TOPMOST
+FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
- CONTROL "Searching games ...",IDC_SEARCHINGLABL,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_CENTER,0,0,196,41
- CONTROL 14,IDC_IMG1,"Static",WS_CHILD|WS_VISIBLE|SS_CENTERIMAGE|SS_ICON,2,1,46,37
- CONTROL "",IDC_CURRENTGAME,"Static",WS_CHILD|WS_VISIBLE,44,29,150,9
+ CTEXT "Searching games ...",IDC_SEARCHINGLABL,0,0,196,41,SS_CENTERIMAGE | NOT WS_GROUP
+ ICON IDI_TM,IDC_IMG1,2,1,46,37,SS_CENTERIMAGE
+ LTEXT "",IDC_CURRENTGAME,44,29,150,9,NOT WS_GROUP
END
-
+#endif
\ No newline at end of file diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index dab7685ef9..e723338788 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -764,13 +764,11 @@ void XFireClient::sendmsg(char*usr,char*cmsg) { //=====================================================
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_PROTOCOL, MIID_LAST};
-
//=====================================================
// Unloads plugin
//=====================================================
@@ -948,42 +946,42 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam) tr.tszTokenString = _T("xfiregame");
tr.parseFunction = Varxfiregame;
- tr.szHelpText = "XFire\tCurrent Game";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Current Game");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfiregame");
tr.parseFunction = Varmyxfiregame;
- tr.szHelpText = "XFire\tMy Current Game";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current Game");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfireserverip");
tr.parseFunction = Varxfireserverip;
- tr.szHelpText = "XFire\tServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfireserverip");
tr.parseFunction = Varmyxfireserverip;
- tr.szHelpText = "XFire\tMy Current ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfirevoice");
tr.parseFunction = Varxfirevoice;
- tr.szHelpText = "XFire\tVoice";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Voice");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfirevoice");
tr.parseFunction = Varmyxfirevoice;
- tr.szHelpText = "XFire\tMy Current Voice";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Current Voice");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("xfirevoiceip");
tr.parseFunction = Varxfirevoiceip;
- tr.szHelpText = "XFire\tVoice ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("Voice ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
tr.tszTokenString = _T("myxfirevoiceip");
tr.parseFunction = Varmyxfirevoiceip;
- tr.szHelpText = "XFire\tMy Voice ServerIP";
+ tr.szHelpText = LPGEN("XFire")"\t"LPGEN("My Voice ServerIP");
CallService(MS_VARS_REGISTERTOKEN, 0, (LPARAM) &tr);
}
@@ -995,7 +993,7 @@ static int OnSystemModulesLoaded(WPARAM wParam,LPARAM lParam) }
//sound einfügen
- SkinAddNewSoundEx(Translate("xfirebstartgame"),protocolname,Translate("Buddy start a game"));
+ SkinAddNewSoundEx("xfirebstartgame",protocolname,LPGEN("Buddy start a game"));
//hook für mbot einfügen, nur wenn mbot option aktiv
if(DBGetContactSettingByte(NULL,protocolname,"mbotsupport",0))
@@ -3147,7 +3145,7 @@ HANDLE handlingBuddys(BuddyListEntry *entry, int clan,char*group,BOOL dontscan) //buddy vorher ein spielgestartet, wenn nicht sound spielen?
if(!DBGetContactSettingWord(hContact, protocolname, "GameId",0))
- SkinPlaySound( Translate( "xfirebstartgame" ) );
+ SkinPlaySound("xfirebstartgame");
DBWriteContactSettingWord(hContact, protocolname, "GameId", entry->game);
}
diff --git a/protocols/Xfire/src/options.cpp b/protocols/Xfire/src/options.cpp index f1b38be7f0..e5e9b1ee2e 100644 --- a/protocols/Xfire/src/options.cpp +++ b/protocols/Xfire/src/options.cpp @@ -64,44 +64,44 @@ xfireconfigitem xfireconfigitems[XFIRE_RECVPREFSPACKET_SUPPORTEDONFIGS] = { };
#define NUM_ICONS 4
- -static mytreeitem mytree[] = { - {LPGEN("Avatars"),"",1,0}, - {LPGEN("Disable avatars"),"noavatars",0,0}, - {LPGEN("Dont download avatars of clan members"),"noclanavatars",0,0}, - {LPGEN("Use alternate way for Avatar download"),"specialavatarload",0,0}, - {LPGEN("General"),"",1,0}, - {LPGEN("Use UTF8 for messaging and nick's (beta)"),"useutf8",0,0}, - {LPGEN("Automatically reconnect on protocol version changes"),"recprotoverchg",0,0}, - {LPGEN("No Ip/Port in StatusMsg"),"noipportinstatus",0,0}, - {LPGEN("Use Online status for unsupported global statuses"),"oninsteadafk",0,0}, - {LPGEN("Dont move friends to clan groups"),"skipfriendsgroups",0,0}, - {LPGEN("GameServerQuery support"),"gsqsupport",0,0}, - {LPGEN("No custom away message"),"nocustomaway",0,0}, - {LPGEN("Remove friend of friend buddies from database"),"fofdbremove",0,0}, - /*{"Show usernames only","onlyusername",0},*/ - {LPGEN("Hide yourself in buddylist"),"skipmyself",0,0}, - {LPGEN("Dont display game search results"),"dontdisresults",0,0}, - {LPGEN("Dont display game search status window"),"dontdissstatus",0,0}, - {LPGEN("Display popup, if someone start a game"),"gamepopup",0,0}, - {LPGEN("Dont automatically create clan groups"),"noclangroups",0,0}, - {LPGEN("Enable MBot support"),"mbotsupport",0,0}, - {LPGEN("Gamedetection"),"",1,0}, - /*{"Scan for games on every Miranda start","scanalways",0},*/ - {LPGEN("Disable game detection"),"nogamedetect",0,0}, - /*{"Enable server IP/Port detection","ipportdetec",0},*/ - /*{"Enable TeamSpeak2/Ventrilo detection","",0},*/ - {LPGEN("Use TSRemote.dll to get teamspeak server info"),"ts2useremote",0,0}, - {LPGEN("Disable popups when ingame"),"nopopups",0,0}, - {LPGEN("Disable sound events when ingame"),"nosoundev",0,0}, - {LPGEN("Files"),"",1,0}, - {LPGEN("Automatically update xfire_games.ini (pro-laming.de)"),"autoiniupdate",0,0}, - {LPGEN("Automatically update icons.dll (pro-laming.de)"),"autoicodllupdate",0,0}, - {LPGEN("Download missing game icons from Xfire website"),"xfiresitegameico",0,0}, - {LPGEN("No backup on update"),"nobackupini",0,0}, - {LPGEN("Background updating"),"dontaskforupdate",0,0}, -}; - +
+static mytreeitem mytree[] = {
+ {LPGEN("Avatars"),"",1,0},
+ {LPGEN("Disable avatars"),"noavatars",0,0},
+ {LPGEN("Dont download avatars of clan members"),"noclanavatars",0,0},
+ {LPGEN("Use alternate way for Avatar download"),"specialavatarload",0,0},
+ {LPGEN("General"),"",1,0},
+ {LPGEN("Use UTF8 for messaging and nick's (beta)"),"useutf8",0,0},
+ {LPGEN("Automatically reconnect on protocol version changes"),"recprotoverchg",0,0},
+ {LPGEN("No Ip/Port in StatusMsg"),"noipportinstatus",0,0},
+ {LPGEN("Use Online status for unsupported global statuses"),"oninsteadafk",0,0},
+ {LPGEN("Dont move friends to clan groups"),"skipfriendsgroups",0,0},
+ {LPGEN("GameServerQuery support"),"gsqsupport",0,0},
+ {LPGEN("No custom away message"),"nocustomaway",0,0},
+ {LPGEN("Remove friend of friend buddies from database"),"fofdbremove",0,0},
+ /*{"Show usernames only","onlyusername",0},*/
+ {LPGEN("Hide yourself in buddylist"),"skipmyself",0,0},
+ {LPGEN("Dont display game search results"),"dontdisresults",0,0},
+ {LPGEN("Dont display game search status window"),"dontdissstatus",0,0},
+ {LPGEN("Display popup, if someone start a game"),"gamepopup",0,0},
+ {LPGEN("Dont automatically create clan groups"),"noclangroups",0,0},
+ {LPGEN("Enable MBot support"),"mbotsupport",0,0},
+ {LPGEN("Gamedetection"),"",1,0},
+ /*{"Scan for games on every Miranda start","scanalways",0},*/
+ {LPGEN("Disable game detection"),"nogamedetect",0,0},
+ /*{"Enable server IP/Port detection","ipportdetec",0},*/
+ /*{"Enable TeamSpeak2/Ventrilo detection","",0},*/
+ {LPGEN("Use TSRemote.dll to get teamspeak server info"),"ts2useremote",0,0},
+ {LPGEN("Disable popups when ingame"),"nopopups",0,0},
+ {LPGEN("Disable sound events when ingame"),"nosoundev",0,0},
+ {LPGEN("Files"),"",1,0},
+ {LPGEN("Automatically update xfire_games.ini (pro-laming.de)"),"autoiniupdate",0,0},
+ {LPGEN("Automatically update icons.dll (pro-laming.de)"),"autoicodllupdate",0,0},
+ {LPGEN("Download missing game icons from Xfire website"),"xfiresitegameico",0,0},
+ {LPGEN("No backup on update"),"nobackupini",0,0},
+ {LPGEN("Background updating"),"dontaskforupdate",0,0},
+};
+
//funktion zum auslesen aller einträge unter XFireBlock
static int enumSettingsProc(const char *szSetting,LPARAM lParam)
{
@@ -1099,152 +1099,39 @@ static INT_PTR CALLBACK DlgProcOpts6(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR return FALSE;
}
-static INT_PTR CALLBACK DlgProcOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+int OptInit(WPARAM wParam,LPARAM)
{
- switch (msg)
- {
- case PSM_CHANGED:
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
- break;
- case WM_INITDIALOG:
- {
- HWND hwndTab,hPage;
- TCITEMA tci = {0};
- int iTotal;
- RECT rcClient;
-
- hwndTab = GetDlgItem(hwndDlg, IDC_OPTIONSTAB);
- TabCtrl_DeleteAllItems(hwndTab);
- GetClientRect(GetParent(hwndTab), &rcClient);
-
- hPage=CreateDialog(hinstance, MAKEINTRESOURCE(IDD_OPTLOGIN), hwndDlg, DlgProcOpts2);
- iTotal = TabCtrl_GetItemCount(hwndTab);
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)hPage;
- tci.pszText = Translate("Account");
- SendMessageA(hwndTab, TCM_INSERTITEMA, iTotal, (WPARAM)&tci);
- MoveWindow(hPage, 3, 24, rcClient.right - 6, rcClient.bottom - 28, 1);
- iTotal++;
-
-
- hPage=CreateDialog(hinstance, MAKEINTRESOURCE(IDD_OPTFEAT), hwndDlg, DlgProcOpts3);
- ShowWindow(hPage,FALSE);
- iTotal = TabCtrl_GetItemCount(hwndTab);
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)hPage;
- tci.pszText = Translate("Features");
- SendMessageA(hwndTab, TCM_INSERTITEMA, iTotal, (WPARAM)&tci);
- MoveWindow(hPage, 3, 24, rcClient.right - 6, rcClient.bottom - 28, 1);
- iTotal++;
-
- hPage=CreateDialog(hinstance, MAKEINTRESOURCE(IDD_OPTFEAT2), hwndDlg, DlgProcOpts4);
- ShowWindow(hPage,FALSE);
- iTotal = TabCtrl_GetItemCount(hwndTab);
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)hPage;
- tci.pszText = Translate("Blocklist / Games");
- SendMessageA(hwndTab, TCM_INSERTITEMA, iTotal, (WPARAM)&tci);
- MoveWindow(hPage, 3, 24, rcClient.right - 6, rcClient.bottom - 28, 1);
- iTotal++;
-
- hPage=CreateDialog(hinstance, MAKEINTRESOURCE(IDD_OPTFEAT3), hwndDlg, DlgProcOpts5);
- ShowWindow(hPage,FALSE);
- iTotal = TabCtrl_GetItemCount(hwndTab);
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)hPage;
- tci.pszText = Translate("StatusMsg");
- SendMessageA(hwndTab, TCM_INSERTITEMA, iTotal, (WPARAM)&tci);
- MoveWindow(hPage, 3, 24, rcClient.right - 6, rcClient.bottom - 28, 1);
- iTotal++;
-
- hPage=CreateDialog(hinstance, MAKEINTRESOURCE(IDD_OPTFEAT4), hwndDlg, DlgProcOpts6);
- ShowWindow(hPage,FALSE);
- iTotal = TabCtrl_GetItemCount(hwndTab);
- tci.mask = TCIF_PARAM|TCIF_TEXT;
- tci.lParam = (LPARAM)hPage;
- tci.pszText = Translate("Games");
- SendMessageA(hwndTab, TCM_INSERTITEMA, iTotal, (WPARAM)&tci);
- MoveWindow(hPage, 3, 24, rcClient.right - 6, rcClient.bottom - 28, 1);
- iTotal++;
-
- TabCtrl_SetCurSel(hwndTab, 0);
+ ghwndDlg2 = NULL;
- return TRUE;
- }
- case WM_NOTIFY:
- switch (((LPNMHDR)lParam)->idFrom)
- {
- case 0:
- switch (((LPNMHDR)lParam)->code)
- {
- case PSN_APPLY:
- {
- TCITEM tci;
- int i,count;
-
- tci.mask = TCIF_PARAM;
- count = TabCtrl_GetItemCount(GetDlgItem(hwndDlg,IDC_OPTIONSTAB));
- for (i=0; i<count; i++)
- {
- TabCtrl_GetItem(GetDlgItem(hwndDlg,IDC_OPTIONSTAB),i,&tci);
- SendMessage((HWND)tci.lParam,WM_NOTIFY,0,lParam);
- }
- break;
- }
- }
- break;
+ OPTIONSDIALOGPAGE odp = { sizeof(odp) };
+ odp.hInstance = hinstance;
+ odp.ptszTitle = LPGENT("XFire");
+ odp.ptszGroup = LPGENT("Network");
+ odp.flags = ODPF_BOLDGROUPS| ODPF_TCHAR;
- case IDC_OPTIONSTAB:
- {
- HWND hTabCtrl = GetDlgItem(hwndDlg, IDC_OPTIONSTAB);
-
- switch (((LPNMHDR)lParam)->code)
- {
- case TCN_SELCHANGING:
- {
- TCITEM tci;
-
- tci.mask = TCIF_PARAM;
- TabCtrl_GetItem(hTabCtrl, TabCtrl_GetCurSel(hTabCtrl), &tci);
- ShowWindow((HWND)tci.lParam, SW_HIDE);
- }
- break;
+ odp.pfnDlgProc = DlgProcOpts2;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTLOGIN);
+ odp.ptszTab = LPGENT("Account");
+ Options_AddPage(wParam, &odp);
- case TCN_SELCHANGE:
- {
- TCITEM tci;
+ odp.pfnDlgProc = DlgProcOpts3;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTFEAT);
+ odp.ptszTab = LPGENT("Features");
+ Options_AddPage(wParam, &odp);
- tci.mask = TCIF_PARAM;
- TabCtrl_GetItem(hTabCtrl, TabCtrl_GetCurSel(hTabCtrl), &tci);
- ShowWindow((HWND)tci.lParam,SW_SHOW);
- }
- break;
- }
- break;
- }
- }
- break;
- }
+ odp.pfnDlgProc = DlgProcOpts4;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTFEAT2);
+ odp.ptszTab = LPGENT("Blocklist / Games");
+ Options_AddPage(wParam, &odp);
- return FALSE;
-}
+ odp.pfnDlgProc = DlgProcOpts5;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTFEAT3);
+ odp.ptszTab = LPGENT("StatusMsg");
+ Options_AddPage(wParam, &odp);
-int OptInit(WPARAM wParam,LPARAM lParam)
-{
- OPTIONSDIALOGPAGE odp;
-
- ghwndDlg2=NULL;
-
- ZeroMemory(&odp,sizeof(odp));
- odp.cbSize=sizeof(odp);
- //odp.position=-790000000;
- odp.hInstance=hinstance;
- odp.pszTemplate=MAKEINTRESOURCE(IDD_OPT);
- odp.ptszTitle=_T("XFire");
- odp.ptszGroup = TranslateT("Network");
- odp.flags=ODPF_BOLDGROUPS, ODPF_UNICODE;
- //odp.nIDBottomSimpleControl=IDC_GROUPMAIN;
- odp.pfnDlgProc=DlgProcOpts;
+ odp.pfnDlgProc = DlgProcOpts6;
+ odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTFEAT4);
+ odp.ptszTab = LPGENT("Games");
Options_AddPage(wParam, &odp);
return 0;
|