-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.h
43 lines (36 loc) · 935 Bytes
/
menu.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
#pragma once
#include "config.h"
#include "gui.h"
#include "buttonActionMap.h"
#include "raylib.h"
#include <string>
#include <vector>
enum class menuEnum
{
us = 0, kr, jp, game, settingScreen, exit,
};
class Menu
{
public :
void Init(int width, int height, std::string title);
void Tick();
Menu();
~Menu();
private:
void Draw();
void Update();
void KeyboardInputCheck();
void KeyboardButtonCheck();
bool IsActionPressed();
void RefreshLang();
// Text set up
LangManager* langs;
SceneManager* menuManager;
// GUI button;
GUI* button[6];
Texture2D flagImg[3];
// std::vector<std::string> texts;
// Font font;
menuEnum menuState;
int gamepad = 0; // 제일 처음에 꽂은 게임패드만 사용하도록 하자. 제일 처음이므로 0이다.
};