/* ScummVM - Graphic Adventure Engine * * ScummVM is the legal property of its developers, whose names * are too numerous to list here. Please refer to the COPYRIGHT * file distributed with this source distribution. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . * */ #ifndef HODJNPODJ_FUGE_USERCFG_H #define HODJNPODJ_FUGE_USERCFG_H #include "bagel/afxwin.h" #include "bagel/hodjnpodj/hnplibs/cbofdlg.h" #include "bagel/hodjnpodj/hnplibs/stdinc.h" namespace Bagel { namespace HodjNPodj { namespace Fuge { #define IDD_USERCFG 100 #define BALLS_MIN 1 #define BALLS_DEF 5 #define BALLS_MAX 5 #define LEVEL_MIN 1 #define LEVEL_DEF 6 #define LEVEL_MAX 6 #define SPEED_MIN 1 #define SPEED_DEF 6 #define SPEED_MAX 10 #define PSIZE_MIN 0 #define PSIZE_DEF 2 #define PSIZE_MAX 2 #define GFORCE_MIN 0 #define GFORCE_DEF 0 #define GFORCE_MAX 20 class CUserCfgDlg : public CBmpDialog { public: CUserCfgDlg(CWnd *pParent, CPalette *pPalette, unsigned int); protected: virtual void DoDataExchange(CDataExchange *) override; virtual bool OnCommand(WPARAM, LPARAM) override; virtual bool OnInitDialog() override; void PutDlgData(); void GetDlgData(); void LoadIniSettings(); void SaveIniSettings(); void UpdateOptions(); void ClearDialogImage(); afx_msg bool OnEraseBkgnd(CDC *); void OnHScroll(unsigned int, unsigned int, CScrollBar *); void OnClose(); void OnDestroy(); void OnPaint(); DECLARE_MESSAGE_MAP() CText *m_pTxtNumBalls = nullptr; CText *m_pTxtStartLevel = nullptr; CText *m_pTxtBallSpeed = nullptr; CText *m_pTxtPaddleSize = nullptr; CScrollBar *m_pScrollBar1 = nullptr; CScrollBar *m_pScrollBar2 = nullptr; CScrollBar *m_pScrollBar3 = nullptr; CScrollBar *m_pScrollBar4 = nullptr; CCheckButton *m_pWallButton = nullptr; int m_nNumBalls = 0; int m_nStartLevel = 0; int m_nBallSpeed = 0; int m_nPaddleSize = 0; bool m_bOutterWall = false; bool m_bSave = false; // True if should save theses values }; } // namespace Fuge } // namespace HodjNPodj } // namespace Bagel #endif