-
Notifications
You must be signed in to change notification settings - Fork 2
/
CTeamRulePropertyControlManager.h
60 lines (50 loc) · 1.59 KB
/
CTeamRulePropertyControlManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef H_TEAM_RULE_PROPERTY_CONTROL_CLASS___
#define H_TEAM_RULE_PROPERTY_CONTROL_CLASS___
// ===================================================================
// CTeamRulePropertyControlManager.h
// チーム分け設定用コントロール管理クラス・ヘッダー
// 左右ボタンが押されたらテキストを変更するだけ
// ===================================================================
#include <windows.h>
#include <TCHAR.h>
#include <vector>
#include "util.h"
#include "../include/define.h"
#include "../lib/DXUT/dxstdafx.h"
#include "../lib/DXUT/DXUT.h"
#define MAX_TEAMRULEPROPCONT_TEXT (16)
#define TEAMRULEPROPCONT_TEAM_ZERO L"個人バトル"
#define TEAMRULEPROPCONT_TEXTFORMAT L"%dチームバトル"
#define TEAMRULEPROPCONT_FONT (4)
class CTeamRulePropertyControlManager
{
public:
CTeamRulePropertyControlManager();
virtual ~CTeamRulePropertyControlManager() { };
// 生成
// pBtnArrowL : 左矢印ボタン
// pBtnArrowR : 右矢印ボタン
// pStaticText : 文字表示用スタティック
// pntLocate : 左上位置
void Create(CDXUTButton *pBtnArrowL, CDXUTButton *pBtnArrowR, CDXUTStatic* pStaticText, int *pCount);
void Destroy();
void Update(bool b, int nTeamCount);
void OnRightButtonDown();
void OnLeftButtonDown();
void SetEnable(BOOL b);
BOOL GetEnable(BOOL b) { m_bEnable = b; };
void SetVisible(bool b);
BOOL GetVisible() { return m_bVisible; };
protected:
void UpdateText(int nTeamCount);
void SetButtonEnable(CDXUTButton* pBtn, bool b);
BOOL m_bCreated;
BOOL m_bEnable;
BOOL m_bVisible;
POINT m_pntLocate;
CDXUTButton* m_pBtnArrowL;
CDXUTButton* m_pBtnArrowR;
CDXUTStatic* m_pStaticText;
int *p_pUserCount;
};
#endif