📄 menu.h
字号:
/*************************************************************************** globals.h - headers for the corresponding cpp file ------------------- copyright : (C) 2003 by Artur Hallmann, (C) 2003 by FluXy email : mail@arturh.com website : http://www.arturh.com ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef __MENU_H__#define __MENU_H__#include "include/globals.h"class cMainMenu
{public: cMainMenu(); ~cMainMenu();
void LoadImages();
void FreeImages();
void ShowMenu(); void UpdateMenu(); void MenuAction(); // Options Submenu void ShowSubOptions(); void UpdateSubOptions(); void SubOptionsAction(); // Controls Submenu void ShowSubControls(); void UpdateSubControls(); void SubControlsAction(); // Audio Submenu void ShowSubAudio(); void UpdateSubAudio();
// Video Submenu
void ShowSubVideo();
void UpdateSubVideo();
// Savegame Load Submenu
void ShowLoadGames();
void UpdateLoadGames();
// Savegame Save Submenu
void ShowSaveGames();
void UpdateSaveGames();
std :: string Set_SaveDescription(int Save_file);
void GetSavedGames(); // Gets all 9 Save Descriptions into the SaveLoadTemp Surfaces
void SetScreeninfo(int Tmp_screen_w,int Tmp_screen_h,int Tmp_screen_Bpp,bool Tmp_screen_Fullscreen); // Sets the screen info
// Other void CorrectFrameTime(void); bool done; int MenuItem; SDL_Surface* logo; SDL_Surface* logo_quit;
SDL_Surface* bstart1; SDL_Surface* bstart2; SDL_Surface* boptions1; SDL_Surface* boptions2; SDL_Surface* bload1; SDL_Surface* bload2; SDL_Surface* bsave1; SDL_Surface* bsave2; SDL_Surface* bquit1; SDL_Surface* bquit2; SDL_Surface* bcontrols1; SDL_Surface* bcontrols2; SDL_Surface* baudio1; SDL_Surface* baudio2; SDL_Surface* bvideo1; SDL_Surface* bvideo2; SDL_Surface* bon1; SDL_Surface* bon2; SDL_Surface* boff1; SDL_Surface* boff2;
// Keyboard Keys SDL_Surface* text_up; SDL_Surface* text_upkey; SDL_Surface* text_down; SDL_Surface* text_downkey; SDL_Surface* text_left; SDL_Surface* text_leftkey; SDL_Surface* text_right; SDL_Surface* text_rightkey; SDL_Surface* text_shoot; SDL_Surface* text_shootkey; SDL_Surface* text_pointer; SDL_Surface* text_usejoystick;
SDL_Surface* text_usejoystick_on;
SDL_Surface* text_usejoystick_off;
// Video Items
SDL_Surface* video_resolution;
SDL_Surface* video_bpp;
SDL_Surface* video_fullscreen;
SDL_Surface* video_resolution_val;
SDL_Surface* video_bpp_val;
SDL_Surface* video_fullscreen_val;
SDL_Surface* video_change;
SDL_Surface* back1;
// Da new Junk ;)
SDL_Surface* Item_1;
SDL_Surface* Item_2;
SDL_Surface* Item_3;
SDL_Surface* Item_4;
// Version
SDL_Surface* SMC_Version;
// Save and Load Picture Temps
SDL_Surface* SaveLoadTemp1[9];
SDL_Surface* SaveLoadTemp2[9];
};/* *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** */#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -