kettek2/wiki/games/newsboy/Newsboy_0x00/engine/State_Menu.h

39 lines
704 B
C

#ifndef STATE_MENU_H
#define STATE_MENU_H
#include <SDL2/SDL.h>
#include "Text.h"
#include "Animation.h"
#include "AnimData.h"
#include "Phys.h"
#include "MetaBit.h"
#include "Vector.h"
#include "State_Options.h"
#define MENU_TEXT 0
#define START_TEXT 1
#define EDITOR_TEXT 2
#define OPTIONS_TEXT 3
#define QUIT_TEXT 4
int openMenuState();
void closeMenuState();
int handleMenuState(SDL_Event event);
int processMenuState();
int renderMenuState();
struct Text *texts[6];
int texts_x[6];
int texts_y[6];
int focused;
int action;
SDL_Color unfocused_color;
SDL_Color focused_color;
struct Sound *sound_hover;
struct Vector menu_mouse;
struct MetaBit *meta_bit;
struct AnimData *meta_bit_anim;
#endif