ScummVM API documentation
usercfg.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
*/
21
22
#ifndef HODJNPODJ_BATTLEFISH_USERCFG_H
23
#define HODJNPODJ_BATTLEFISH_USERCFG_H
24
25
#include "bagel/afxwin.h"
26
#include "bagel/hodjnpodj/hnplibs/cbofdlg.h"
27
#include "bagel/hodjnpodj/hnplibs/button.h"
28
#include "bagel/boflib/misc.h"
29
30
namespace
Bagel {
31
namespace
HodjNPodj {
32
namespace
Battlefish {
33
34
#define IDD_USERCFG 100
35
36
#define DIFF_MIN 0
37
#define DIFF_MAX 2
38
#define DIFF_DEF 2
39
40
#define TURN_DEF false
41
42
class
CUserCfgDlg
:
public
CBmpDialog
{
43
public
:
44
CUserCfgDlg
(
CWnd
*pParent =
nullptr
,
CPalette
*pPalette =
nullptr
,
unsigned
int
= IDD_USERCFG);
45
46
protected
:
47
48
virtual
bool
OnCommand(WPARAM, LPARAM)
override
;
49
virtual
bool
OnInitDialog()
override
;
50
void
PutDlgData();
51
void
GetDlgData();
52
void
DispLimit();
53
void
LoadIniSettings();
54
void
SaveIniSettings();
55
56
void
OnHScroll(
unsigned
int
,
unsigned
int
,
CScrollBar
*);
57
void
OnDestroy();
58
void
OnPaint();
59
void
ClearDialogImage();
60
DECLARE_MESSAGE_MAP()
61
62
CColorButton
*m_pOKButton =
nullptr
;
// OKAY button on scroll
63
CColorButton
*m_pCancelButton =
nullptr
;
// Cancel button on scroll
64
CColorButton
*m_pDefaultsButton =
nullptr
;
// Defaults button on scroll
65
CRadioButton
*m_pUserButton =
nullptr
;
66
CRadioButton
*m_pCompButton =
nullptr
;
67
CText
*m_pTxtDifficulty =
nullptr
;
68
CText
*m_pTxtLevel =
nullptr
;
69
CText
*m_pTxtOrder =
nullptr
;
70
CScrollBar
*m_pScrollBar =
nullptr
;
71
unsigned
int
m_nDifficultyLevel = 0;
// Difficulty level for BattleFish
72
bool
m_bSave =
false
;
// True if should save theses settings
73
bool
m_bUserGoesFirst =
false
;
// true if Human player goes 1st
74
};
75
76
}
// namespace Battlefish
77
}
// namespace HodjNPodj
78
}
// namespace Bagel
79
80
#endif
Bagel::HodjNPodj::Battlefish::CUserCfgDlg
Definition:
usercfg.h:42
Bagel::HodjNPodj::CBmpDialog
Definition:
cbofdlg.h:31
Bagel::HodjNPodj::CColorButton
Definition:
button.h:141
Bagel::HodjNPodj::CRadioButton
Definition:
button.h:221
Bagel::HodjNPodj::CText
Definition:
text.h:62
Graphics::MFC::CPalette
Definition:
afxwin.h:667
Graphics::MFC::CScrollBar
Definition:
afxwin.h:1765
Graphics::MFC::CWnd
Definition:
afxwin.h:1141
engines
bagel
hodjnpodj
battlefish
usercfg.h
Generated on Sun Nov 22 2026 09:21:31 for ScummVM API documentation by
1.9.4