Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
VeryVanilla
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
38
Issues
38
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RG Creators
VeryVanilla
Commits
f5e87912
Commit
f5e87912
authored
May 24, 2018
by
Red Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mq2mybuttons, mq2portalsetter
parent
a0a14e64
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
5235 additions
and
3 deletions
+5235
-3
MQ2MYButtons/MQ2MYButtons.cpp
MQ2MYButtons/MQ2MYButtons.cpp
+478
-0
MQ2MYButtons/MQ2MYButtons.vcxproj
MQ2MYButtons/MQ2MYButtons.vcxproj
+56
-0
MQ2MYButtons/MQ2MYButtons.vcxproj.filters
MQ2MYButtons/MQ2MYButtons.vcxproj.filters
+30
-0
MQ2MYButtons/MQ2MYButtons.vcxproj.vspscc
MQ2MYButtons/MQ2MYButtons.vcxproj.vspscc
+10
-0
MQ2MYButtons/MQ2MyButtons.h
MQ2MYButtons/MQ2MyButtons.h
+29
-0
MQ2MYButtons/MQUI_ButtonsWnd.xml
MQ2MYButtons/MQUI_ButtonsWnd.xml
+637
-0
MQ2PortalSetter/ISXEQPortalSetter.cpp
MQ2PortalSetter/ISXEQPortalSetter.cpp
+441
-0
MQ2PortalSetter/ISXEQPortalSetter.h
MQ2PortalSetter/ISXEQPortalSetter.h
+60
-0
MQ2PortalSetter/ISXEQPortalSetter.vcxproj
MQ2PortalSetter/ISXEQPortalSetter.vcxproj
+75
-0
MQ2PortalSetter/ISXEQPortalSetter.vcxproj.filters
MQ2PortalSetter/ISXEQPortalSetter.vcxproj.filters
+27
-0
MQ2PortalSetter/MQ2PortalSetter.cpp
MQ2PortalSetter/MQ2PortalSetter.cpp
+590
-0
MQ2PortalSetter/MQ2PortalSetter.vcxproj
MQ2PortalSetter/MQ2PortalSetter.vcxproj
+55
-0
MQ2PortalSetter/MQ2PortalSetter.vcxproj.filters
MQ2PortalSetter/MQ2PortalSetter.vcxproj.filters
+27
-0
MQ2PortalSetter/MQ2PortalSetter.vcxproj.vspscc
MQ2PortalSetter/MQ2PortalSetter.vcxproj.vspscc
+10
-0
Release/Changes.txt
Release/Changes.txt
+14
-0
Release/redchanges.txt
Release/redchanges.txt
+34
-3
eqbcsold/BCCore.cpp
eqbcsold/BCCore.cpp
+1807
-0
eqbcsold/BCService.cpp
eqbcsold/BCService.cpp
+425
-0
eqbcsold/EQBCS2.cpp
eqbcsold/EQBCS2.cpp
+168
-0
eqbcsold/EQBCS2.exe
eqbcsold/EQBCS2.exe
+0
-0
eqbcsold/EQBCS2.h
eqbcsold/EQBCS2.h
+262
-0
No files found.
MQ2MYButtons/MQ2MYButtons.cpp
0 → 100644
View file @
f5e87912
// MQ2MYButtons.cpp : Defines the entry point for the DLL application.
//
//9/26/2004 Plugin to add a new button bank
// PLUGIN_API is only to be used for callbacks. All existing callbacks at this time
// are shown below. Remove the ones your plugin does not use. Always use Initialize
// and Shutdown for setup and cleanup, do NOT do it in DllMain.
#include "../MQ2Plugin.h"
#include "MQ2MyButtons.h"
PreSetup
(
"MQ2MYButtons"
);
class
CHButWnd
:
public
CCustomWnd
{
public:
CHButWnd
()
:
CCustomWnd
(
"MQButtonWnd"
)
{
MyButton1
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button1"
);
MyButton2
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button2"
);
MyButton3
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button3"
);
MyButton4
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button4"
);
MyButton5
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button5"
);
MyButton6
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button6"
);
MyButton7
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button7"
);
MyButton8
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button8"
);
MyButton9
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button9"
);
MyButton10
=
(
CButtonWnd
*
)
GetChildItem
(
"MQHB_Button10"
);
SetWndNotification
(
CHButWnd
);
}
~
CHButWnd
()
{
}
int
WndNotification
(
CXWnd
*
pWnd
,
unsigned
int
Message
,
void
*
unknown
)
{
if
(
pWnd
==
(
CXWnd
*
)
MyButton1
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand1
);
else
DebugSpew
(
"MyButton1 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton2
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand2
);
else
DebugSpew
(
"MyButton2 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton3
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand3
);
else
DebugSpew
(
"MyButton3 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton4
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand4
);
else
DebugSpew
(
"MyButton4 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton5
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand5
);
else
DebugSpew
(
"MyButton5 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton6
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand6
);
else
DebugSpew
(
"MyButton6 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton7
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand7
);
else
DebugSpew
(
"MyButton7 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton8
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand8
);
else
DebugSpew
(
"MyButton8 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton9
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand9
);
else
DebugSpew
(
"MyButton9 message %Xh / %d"
,
Message
,
Message
);
}
if
(
pWnd
==
(
CXWnd
*
)
MyButton10
)
{
if
(
Message
==
XWM_LCLICK
)
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand10
);
else
DebugSpew
(
"MyButton10 message %Xh / %d"
,
Message
,
Message
);
}
return
0
;
};
CButtonWnd
*
MyButton1
;
CButtonWnd
*
MyButton2
;
CButtonWnd
*
MyButton3
;
CButtonWnd
*
MyButton4
;
CButtonWnd
*
MyButton5
;
CButtonWnd
*
MyButton6
;
CButtonWnd
*
MyButton7
;
CButtonWnd
*
MyButton8
;
CButtonWnd
*
MyButton9
;
CButtonWnd
*
MyButton10
;
};
CHButWnd
*
MyWnd
=
0
;
BOOL
dataBntLbl1
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_1"
,
"1"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl2
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_2"
,
"2"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl3
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_3"
,
"3"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl4
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_4"
,
"4"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl5
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_5"
,
"5"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl6
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_6"
,
"6"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl7
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_7"
,
"7"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl8
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_8"
,
"8"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl9
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_9"
,
"9"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
BOOL
dataBntLbl10
(
PCHAR
szIndex
,
MQ2TYPEVAR
&
Ret
)
{
char
szButoonLbl
[
MAX_STRING
];
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonLabel_10"
,
"10"
,
szButoonLbl
,
MAX_STRING
,
INIFileName
);
Ret
.
Ptr
=
szButoonLbl
;
Ret
.
Type
=
pStringType
;
return
true
;
}
PLUGIN_API
VOID
OnCleanUI
(
VOID
)
{
DebugSpewAlways
(
"MQ2HBut::OnCleanUI()"
);
DebugSpewAlways
(
"MQ2WndTest::OnCleanUI()"
);
if
(
MyWnd
)
{
delete
MyWnd
;
MyWnd
=
0
;
}
}
PLUGIN_API
VOID
SetGameState
(
DWORD
GameState
)
{
// DebugSpewAlways("MQ2WndTest::SetGameState()");
if
(
GameState
==
GAMESTATE_INGAME
&&
!
MyWnd
)
{
if
(
pSidlMgr
->
FindScreenPieceTemplate
(
"MQButtonWnd"
))
CreateButtonWindow
();
}
}
PLUGIN_API
VOID
OnReloadUI
()
{
// DebugSpewAlways("MQ2WndTest::OnReloadUI()");
CreateButtonWindow
();
}
PLUGIN_API
VOID
OnPulse
(
VOID
)
{
if
(
gGameState
==
GAMESTATE_INGAME
&&
winActive
&&
(
!
MyWnd
||
(
MyWnd
&&
!
(
MyWnd
->
dShow
))))
{
CreateButtonWindow
();
((
CXWnd
*
)
MyWnd
)
->
Show
(
1
,
1
);
}
if
(
gGameState
==
GAMESTATE_INGAME
&&
!
winActive
)
{
CreateButtonWindow
();
((
CXWnd
*
)
MyWnd
)
->
Show
(
0
,
0
);
}
}
PLUGIN_API
VOID
InitializePlugin
(
VOID
)
{
DebugSpewAlways
(
"Initializing MQ2WndTest"
);
WriteChatColor
(
"Loading MyMQButtons.05 ..."
);
AddXMLFile
(
"MQUI_ButtonsWnd.xml"
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_1"
,
NULL
,
szMyCommand1
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_2"
,
NULL
,
szMyCommand2
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_3"
,
NULL
,
szMyCommand3
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_4"
,
NULL
,
szMyCommand4
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_5"
,
NULL
,
szMyCommand5
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_6"
,
NULL
,
szMyCommand6
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_7"
,
NULL
,
szMyCommand7
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_8"
,
NULL
,
szMyCommand8
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_9"
,
NULL
,
szMyCommand9
,
MAX_STRING
,
INIFileName
);
GetPrivateProfileString
(
"MYButtons"
,
"MyButtonCommand_10"
,
NULL
,
szMyCommand10
,
MAX_STRING
,
INIFileName
);
AddCommand
(
"/mybntshow"
,
MyButtonWindowShow
);
AddCommand
(
"/mybntclk1"
,
CmdMyButtonClick1
);
AddCommand
(
"/mybntclk2"
,
CmdMyButtonClick2
);
AddCommand
(
"/mybntclk3"
,
CmdMyButtonClick3
);
AddCommand
(
"/mybntclk4"
,
CmdMyButtonClick4
);
AddCommand
(
"/mybntclk5"
,
CmdMyButtonClick5
);
AddCommand
(
"/mybntclk6"
,
CmdMyButtonClick6
);
AddCommand
(
"/mybntclk7"
,
CmdMyButtonClick7
);
AddCommand
(
"/mybntclk8"
,
CmdMyButtonClick8
);
AddCommand
(
"/mybntclk9"
,
CmdMyButtonClick9
);
AddCommand
(
"/mybntclk10"
,
CmdMyButtonClick10
);
AddMQ2Data
(
"MyBntLbl1"
,
dataBntLbl1
);
AddMQ2Data
(
"MyBntLbl2"
,
dataBntLbl2
);
AddMQ2Data
(
"MyBntLbl3"
,
dataBntLbl3
);
AddMQ2Data
(
"MyBntLbl4"
,
dataBntLbl4
);
AddMQ2Data
(
"MyBntLbl5"
,
dataBntLbl5
);
AddMQ2Data
(
"MyBntLbl6"
,
dataBntLbl6
);
AddMQ2Data
(
"MyBntLbl7"
,
dataBntLbl7
);
AddMQ2Data
(
"MyBntLbl8"
,
dataBntLbl8
);
AddMQ2Data
(
"MyBntLbl9"
,
dataBntLbl9
);
AddMQ2Data
(
"MyBntLbl10"
,
dataBntLbl10
);
}
// Called once, when the plugin is to shutdown
PLUGIN_API
VOID
ShutdownPlugin
(
VOID
)
{
DebugSpewAlways
(
"Shutting down MQ2WndTest"
);
// Remove commands, macro parameters, hooks, etc.
// RemoveParm("$myparm(x)");
// // RemoveCommand("/mycommand");
DestroyButtonWindow
();
RemoveCommand
(
"/mybntshow"
);
RemoveCommand
(
"/mybntclk1"
);
RemoveCommand
(
"/mybntclk2"
);
RemoveCommand
(
"/mybntclk3"
);
RemoveCommand
(
"/mybntclk4"
);
RemoveCommand
(
"/mybntclk5"
);
RemoveCommand
(
"/mybntclk6"
);
RemoveCommand
(
"/mybntclk7"
);
RemoveCommand
(
"/mybntclk8"
);
RemoveCommand
(
"/mybntclk9"
);
RemoveCommand
(
"/mybntclk10"
);
}
void
ReadWindowINI
(
PCSIDLWND
pWindow
)
{
CHAR
Buffer
[
MAX_STRING
]
=
{
0
};
pWindow
->
Locked
=
GetPrivateProfileInt
(
"Settings"
,
"Locked"
,
0
,
INIFileName
);
pWindow
->
Fades
=
GetPrivateProfileInt
(
"Settings"
,
"Fades"
,
0
,
INIFileName
);
pWindow
->
FadeDelay
=
GetPrivateProfileInt
(
"Settings"
,
"Delay"
,
2000
,
INIFileName
);
pWindow
->
FadeDuration
=
GetPrivateProfileInt
(
"Settings"
,
"Duration"
,
500
,
INIFileName
);
pWindow
->
Alpha
=
GetPrivateProfileInt
(
"Settings"
,
"Alpha"
,
255
,
INIFileName
);
pWindow
->
FadeToAlpha
=
GetPrivateProfileInt
(
"Settings"
,
"FadeToAlpha"
,
255
,
INIFileName
);
pWindow
->
BGType
=
GetPrivateProfileInt
(
"Settings"
,
"BGType"
,
1
,
INIFileName
);
ARGBCOLOR
argb
;
argb
.
A
=
GetPrivateProfileInt
(
"Settings"
,
"BGTint.alpha"
,
255
,
INIFileName
);
argb
.
R
=
GetPrivateProfileInt
(
"Settings"
,
"BGTint.red"
,
255
,
INIFileName
);
argb
.
G
=
GetPrivateProfileInt
(
"Settings"
,
"BGTint.green"
,
255
,
INIFileName
);
argb
.
B
=
GetPrivateProfileInt
(
"Settings"
,
"BGTint.blue"
,
255
,
INIFileName
);
pWindow
->
BGColor
=
argb
.
ARGB
;
GetPrivateProfileString
(
"Settings"
,
"WindowTitle"
,
"MQ Button Window"
,
Buffer
,
MAX_STRING
,
INIFileName
);
winActive
=
0x00000001
&
GetPrivateProfileInt
(
"Settings"
,
"winActive"
,
1
,
INIFileName
);
SetCXStr
(
&
pWindow
->
WindowText
,
Buffer
);
}
template
<
unsigned
int
_Size
>
LPSTR
SafeItoa
(
int
_Value
,
char
(
&
_Buffer
)[
_Size
],
int
_Radix
)
{
errno_t
err
=
_itoa_s
(
_Value
,
_Buffer
,
_Radix
);
if
(
!
err
)
{
return
_Buffer
;
}
return
""
;
}
void
WriteWindowINI
(
PCSIDLWND
pWindow
)
{
CHAR
szTemp
[
MAX_STRING
]
=
{
0
};
WritePrivateProfileString
(
"Settings"
,
"Locked"
,
SafeItoa
(
pWindow
->
Locked
,
szTemp
,
10
),
INIFileName
);
GetCXStr
(
pWindow
->
WindowText
,
szTemp
);
WritePrivateProfileString
(
"Settings"
,
"WindowTitle"
,
szTemp
,
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"Fades"
,
SafeItoa
(
pWindow
->
Fades
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"Delay"
,
SafeItoa
(
pWindow
->
MouseOver
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"Duration"
,
SafeItoa
(
pWindow
->
FadeDuration
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"Alpha"
,
SafeItoa
(
pWindow
->
Alpha
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"FadeToAlpha"
,
SafeItoa
(
pWindow
->
FadeToAlpha
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"BGType"
,
SafeItoa
(
pWindow
->
BGType
,
szTemp
,
10
),
INIFileName
);
ARGBCOLOR
argb
;
argb
.
ARGB
=
pWindow
->
BGColor
;
WritePrivateProfileString
(
"Settings"
,
"BGTint.alpha"
,
SafeItoa
(
argb
.
A
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"BGTint.red"
,
SafeItoa
(
argb
.
R
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"BGTint.green"
,
SafeItoa
(
argb
.
G
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"BGTint.blue"
,
SafeItoa
(
argb
.
B
,
szTemp
,
10
),
INIFileName
);
WritePrivateProfileString
(
"Settings"
,
"winActive"
,
SafeItoa
((
int
)
winActive
,
szTemp
,
10
),
INIFileName
);
}
VOID
MyButtonWindowShow
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
(
MyWnd
&&
MyWnd
->
dShow
)
||
strstr
(
szLine
,
"off"
)
)
{
winActive
=
false
;
CreateButtonWindow
();
((
CXWnd
*
)
MyWnd
)
->
Show
(
0
,
0
);
}
else
{
winActive
=
true
;
CreateButtonWindow
();
((
CXWnd
*
)
MyWnd
)
->
Show
(
1
,
1
);
}
}
void
CreateButtonWindow
()
{
DebugSpewAlways
(
"MQ2Timer::CreateTimerWindow()"
);
if
(
MyWnd
)
return
;
if
(
pSidlMgr
->
FindScreenPieceTemplate
(
"MQButtonWnd"
))
{
MyWnd
=
new
CHButWnd
;
ReadWindowINI
((
PCSIDLWND
)
MyWnd
);
WriteWindowINI
((
PCSIDLWND
)
MyWnd
);
}
}
void
DestroyButtonWindow
()
{
DebugSpewAlways
(
"MQ2Timer::DestroyButtonWindow()"
);
if
(
MyWnd
)
{
WriteWindowINI
((
PCSIDLWND
)
MyWnd
);
delete
MyWnd
;
MyWnd
=
0
;
}
}
void
CmdMyButtonClick1
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand1
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand1
);}
}
void
CmdMyButtonClick2
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand2
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand2
);}
}
void
CmdMyButtonClick3
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand3
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand3
);}
}
void
CmdMyButtonClick4
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand4
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand4
);}
}
void
CmdMyButtonClick5
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand5
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand5
);}
}
void
CmdMyButtonClick6
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand6
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand6
);}
}
void
CmdMyButtonClick7
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand7
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand7
);}
}
void
CmdMyButtonClick8
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand8
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand8
);}
}
void
CmdMyButtonClick9
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand9
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand9
);}
}
void
CmdMyButtonClick10
(
PSPAWNINFO
pChar
,
PCHAR
szLine
)
{
if
(
szMyCommand10
!=
NULL
){
DoCommand
((
PSPAWNINFO
)
pCharSpawn
,
szMyCommand10
);}
}
\ No newline at end of file
MQ2MYButtons/MQ2MYButtons.vcxproj
0 → 100644
View file @
f5e87912
<?xml version="1.0" encoding="utf-8"?>
<Project
DefaultTargets=
"Build"
ToolsVersion=
"14.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup
Label=
"ProjectConfigurations"
>
<ProjectConfiguration
Include=
"Debug|Win32"
>
<Configuration>
Debug
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
<ProjectConfiguration
Include=
"Release|Win32"
>
<Configuration>
Release
</Configuration>
<Platform>
Win32
</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup
Label=
"Globals"
>
<ProjectGuid>
{0BF42876-5764-4968-AADD-306D0E336C57}
</ProjectGuid>
<Keyword>
Win32Proj
</Keyword>
<WindowsTargetPlatformVersion>
10.0.16299.0
</WindowsTargetPlatformVersion>
<SccProjectName>
SAK
</SccProjectName>
<SccAuxPath>
SAK
</SccAuxPath>
<SccLocalPath>
SAK
</SccLocalPath>
<SccProvider>
SAK
</SccProvider>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.Default.props"
/>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<PlatformToolset>
v141
</PlatformToolset>
</PropertyGroup>
<PropertyGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"Configuration"
>
<ConfigurationType>
DynamicLibrary
</ConfigurationType>
<PlatformToolset>
v141
</PlatformToolset>
</PropertyGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.props"
/>
<ImportGroup
Label=
"ExtensionSettings"
>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='Release|Win32'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
<Import
Project=
"..\Plugin.Release.props"
/>
</ImportGroup>
<ImportGroup
Condition=
"'$(Configuration)|$(Platform)'=='Debug|Win32'"
Label=
"PropertySheets"
>
<Import
Project=
"$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props"
Condition=
"exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
Label=
"LocalAppDataPlatform"
/>
<Import
Project=
"..\Plugin.Debug.props"
/>
</ImportGroup>
<PropertyGroup
Label=
"UserMacros"
/>
<PropertyGroup>
<_ProjectFileVersion>
11.0.51106.1
</_ProjectFileVersion>
</PropertyGroup>
<ItemGroup>
<ClCompile
Include=
"MQ2MYButtons.cpp"
/>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\MQ2Plugin.h"
/>
<ClInclude
Include=
"MQ2MyButtons.h"
/>
</ItemGroup>
<Import
Project=
"$(VCTargetsPath)\Microsoft.Cpp.targets"
/>
<ImportGroup
Label=
"ExtensionTargets"
>
</ImportGroup>
</Project>
\ No newline at end of file
MQ2MYButtons/MQ2MYButtons.vcxproj.filters
0 → 100644
View file @
f5e87912
<?xml version="1.0" encoding="utf-8"?>
<Project
ToolsVersion=
"4.0"
xmlns=
"http://schemas.microsoft.com/developer/msbuild/2003"
>
<ItemGroup>
<Filter
Include=
"Source Files"
>
<UniqueIdentifier>
{88bfac3a-75d5-44ef-883c-44da15d732ef}
</UniqueIdentifier>
<Extensions>
cpp;c;cxx;def;odl;idl;hpj;bat;asm
</Extensions>
</Filter>
<Filter
Include=
"Header Files"
>
<UniqueIdentifier>
{82b04263-17d1-4e43-ae37-7f05bd584d79}
</UniqueIdentifier>
<Extensions>
h;hpp;hxx;hm;inl;inc
</Extensions>
</Filter>
<Filter
Include=
"Resource Files"
>
<UniqueIdentifier>
{5c7a0f0b-8d0c-4645-b3b1-76e09413d3f5}
</UniqueIdentifier>
<Extensions>
rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe
</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile
Include=
"MQ2MYButtons.cpp"
>
<Filter>
Source Files
</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude
Include=
"..\MQ2Plugin.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
<ClInclude
Include=
"MQ2MyButtons.h"
>
<Filter>
Header Files
</Filter>
</ClInclude>
</ItemGroup>
</Project>
\ No newline at end of file
MQ2MYButtons/MQ2MYButtons.vcxproj.vspscc
0 → 100644
View file @
f5e87912
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}
MQ2MYButtons/MQ2MyButtons.h
0 → 100644
View file @
f5e87912
//MQ2MyButtons.h
//9/26/2004
void
MyButtonWindowShow
(
PSPAWNINFO
pChar
,
PCHAR
szLine
);
void
CreateButtonWindow
();
void
DestroyButtonWindow
();
void
CmdMyButtonClick1
(
PSPAWNINFO
pChar
,
PCHAR
szLine
);
void
CmdMyButtonClick2
(
PSPAWNINFO
pChar
,
PCHAR
szLine
);
void
CmdMyButtonClick3
(
PSPAWNINFO
pChar
,
PCHAR
szLine
);
void
CmdMyButtonClick4
(
PSPAWNINFO
pChar
,
PCHAR
szLine
);
void
CmdMyButt