Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
playerlistdlg.h
Go to the documentation of this file.
1/*
2** Command & Conquer Generals Zero Hour(tm)
3** Copyright 2025 Electronic Arts Inc.
4**
5** This program is free software: you can redistribute it and/or modify
6** it under the terms of the GNU General Public License as published by
7** the Free Software Foundation, either version 3 of the License, or
8** (at your option) any later version.
9**
10** This program is distributed in the hope that it will be useful,
11** but WITHOUT ANY WARRANTY; without even the implied warranty of
12** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13** GNU General Public License for more details.
14**
15** You should have received a copy of the GNU General Public License
16** along with this program. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#if !defined(AFX_PLAYERLISTDLG_H__103B4125_78ED_48A8_9DBB_289DDC6B0208__INCLUDED_)
20#define AFX_PLAYERLISTDLG_H__103B4125_78ED_48A8_9DBB_289DDC6B0208__INCLUDED_
21
22#if _MSC_VER > 1000
23#pragma once
24#endif // _MSC_VER > 1000
25// playerlistdlg.h : header file
26//
27
28#include "GameLogic/SidesList.h"
29#include "CButtonShowColor.h"
30
32// PlayerListDlg dialog
33
34class PlayerListDlg : public CDialog
35{
36// Construction
37public:
38 PlayerListDlg(CWnd* pParent = NULL); // standard constructor
39
40// Dialog Data
41 //{{AFX_DATA(PlayerListDlg)
42 enum { IDD = IDD_PLAYERLIST };
43 // NOTE: the ClassWizard will add data members here
44 //}}AFX_DATA
45
46
47// Overrides
48 // ClassWizard generated virtual function overrides
49 //{{AFX_VIRTUAL(PlayerListDlg)
50 protected:
51 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
52 //}}AFX_VIRTUAL
53
54// Implementation
55protected:
56
61
62 void updateTheUI(void);
63 void PopulateColorComboBox(void);
64 void SelectColor(RGBColor rgb);
65
66 // Generated message map functions
67 //{{AFX_MSG(PlayerListDlg)
68 afx_msg void OnNewplayer();
69 afx_msg void OnEditplayer();
70 afx_msg void OnRemoveplayer();
71 afx_msg void OnSelchangePlayers();
72 virtual BOOL OnInitDialog();
73 afx_msg void OnDblclkPlayers();
74 afx_msg void OnSelchangeAllieslist();
75 afx_msg void OnSelchangeEnemieslist();
76 virtual void OnOK();
77 virtual void OnCancel();
78 afx_msg void OnPlayeriscomputer();
79 afx_msg void OnEditchangePlayerfaction();
80 afx_msg void OnChangePlayername();
81 afx_msg void OnChangePlayerdisplayname();
82 afx_msg void OnColorPress();
83 afx_msg void OnSelectPlayerColor();
84 afx_msg void OnAddskirmishplayers();
85 //}}AFX_MSG
86 DECLARE_MESSAGE_MAP()
87};
88
89//{{AFX_INSERT_LOCATION}}
90// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
91
92#endif // !defined(AFX_PLAYERLISTDLG_H__103B4125_78ED_48A8_9DBB_289DDC6B0208__INCLUDED_)
#define NULL
Definition BaseType.h:92
#define IDD_PLAYERLIST
Definition resource.h:76
#define BOOL
Definition Wnd_File.h:57
afx_msg void OnNewplayer()
virtual void OnCancel()
afx_msg void OnChangePlayername()
afx_msg void OnSelectPlayerColor()
afx_msg void OnChangePlayerdisplayname()
virtual void OnOK()
virtual void DoDataExchange(CDataExchange *pDX)
afx_msg void OnAddskirmishplayers()
afx_msg void OnSelchangePlayers()
SidesList m_sides
afx_msg void OnColorPress()
afx_msg void OnPlayeriscomputer()
afx_msg void OnEditplayer()
afx_msg void OnRemoveplayer()
afx_msg void OnEditchangePlayerfaction()
afx_msg void OnSelchangeEnemieslist()
afx_msg void OnSelchangeAllieslist()
virtual BOOL OnInitDialog()
CButtonShowColor m_colorButton
PlayerListDlg(CWnd *pParent=NULL)
void SelectColor(RGBColor rgb)
afx_msg void OnDblclkPlayers()
void updateTheUI(void)
void PopulateColorComboBox(void)