forked from abertay-cmp404/virtual_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStateMenu.h
More file actions
76 lines (53 loc) · 1.5 KB
/
Copy pathStateMenu.h
File metadata and controls
76 lines (53 loc) · 1.5 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#pragma once
//#include <system/application.h>
//#include <graphics/sprite_renderer.h>
#include "..\CMP404Coursework\load_texture.h"
#include "StateBase.h"
#include <graphics/sprite.h>
class StateMenu :
public StateBase
{
public:
StateMenu();
~StateMenu();
virtual StateBase::EStates Update(float frame_time);
virtual void CleanUp();
virtual void Render();
virtual void Init();
private:
float lerp(float _a, float _b, float _t);
float xp;
gef::Texture* background_;
gef::Texture* Yellow_Button_Text;
gef::Texture* blackSlider_Texture;
// checker sprite and texture
gef::Texture* checker_texture_;
gef::Sprite checker_sprite_;
gef::Texture* logo_Background_Shadow_texture_;
gef::Sprite logo_Background_Shadow_sprite_;
gef::Texture* PlayTextButton_texture;
gef::Sprite PlayTextButton_sprite;
gef::Texture* Options_texture;
gef::Sprite OptionsButton_sprite;
// checker sprite and texture
gef::Texture* tower_texture_;
gef::Sprite tower_sprite_;
float towerWidrth, towerHeight;
gef::Sprite blackSlider_Sprite;
gef::Sprite Play_yellow_button_sprite;
gef::Sprite Option_sprite;
gef::Sprite background_sprite;
// menu choice int for selecting menu options
int menuChoice;
// these variables are used to setup the menu UI
float menu_options_space;
float playbutton_space;
float menu_button_space;
float timer;
float sliderFinalPosition, sliderIncrement;
bool isAnimationPlaying;
//FONT COLOR
int font_color = 0xFF0000FF;
float buttonWidth, buttonHeight;
float rotationIncrement;
};