Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //==========Interface.h===========
- #ifndef INTERFACE_INCLUDED
- #define INTERFACE_INCLUDED
- //=================================
- // included dependencies
- #include "Object.h"
- #include <string>
- #include <vector>
- //=================================
- struct CharInMenu
- {
- int key , posx, posy; //the key position values and the real position of the pic
- int id; //the id of the character
- spritegrid tex; //the texture stored in a custom class "spritegrid"
- int up=4321, down=4321; //the value of the key to go to when the corressponding button is pressed
- int left=4321, right=4321;
- int _disjoin=4321;
- int _showstance=4321;
- int _destroystance=4321;
- int _effctfrm=0;
- int _whnhighlght=0;
- int _psfrm=4321;
- int highlight=0;
- int whenchoose=0;
- bool isbg=false;
- bool flags[1]= {false}; //actually "switches". that is the old name which is used throughout this source
- };
- class LoadMenuStuff
- {
- public:
- int _charschoices[10]= {4321, 4321, 4321, 4321, 4321, 4321, 4321, 4321, 4321, 4321};
- int playersselections[4]= {0,0,0,0};
- bool LOADNOW=false;
- CharInMenu Chars[200]; //chars in selection data
- spritegrid CharMenuBG; //stores the charater menu texture
- int MenuID=10; //this var tells what menu you're currently on
- int _nextbutton=4;
- int _backbutton=5;
- int Chars_index=0;
- int _unallocatedobjindx=8;
- int _currbgkey=0;
- int _bg_key=4321;
- int CharMenuBG_x=0, CharMenuBG_y=0;
- int SelectionCurr_key[4]= {0,0,0,0};
- int _clicktojoinpos[8]= {0, 0, 0, 0, 0, 0, 0, 0}; //from 0->3=posx; from 4->7;posy;
- int _clicktojoinfrms[8]= {0, 0, 0, 0, 0, 0, 0, 0}; // from 0->3=Initial; from 3->7=WhenJoin;
- int _highlightframes[8]= {0, 0, 0, 0, 0, 0, 0, 0}; // from 0->3=Initial; from 3->7=WhenChoose;
- int _humanplayersjoining[4]= {4321, 4321, 4321, 4321};
- int _playerorigins[20]= {0,0 ,0,0 ,0,0 ,0,0 ,0,0 ,0,0 ,0,0 ,0,0 ,0,0 ,0,0};
- std::string SelectionMenuBG_dir;
- std::string _objectstoload=":";
- LOAD _menusdata;
- std::vector<std::vector<int> > P_INPUTDATA;
- LoadMenuStuff( LOAD * LOADED );
- void LoadIntros();
- void LoadCharacterSelection(LOAD*LOADED);
- void LoadMainMenu();
- void LoadBGSelection();
- void LoadOptions();
- void LoadCredits();
- void Update_Interface( LOAD * LOADED );
- };
- //Renders textures into the screen
- void BlitTexture(spritegrid griddy, int x, int y);
- #endif // INTERFACE_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement