Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Relevant parts:
- Externing objectArray:
- ////////////////////
- extern Cursor playerElement[MAX_PLAYER_ELEMENTS];
- ////////////////////
- */
- ifndef C_CURSOR_H
- #define C_CURSOR_H
- #define MAX_CURSOR_ELEMENTS 300 //pretty random
- #define MAX_MENU_ELEMENTS 20
- #define MAX_PLAYER_ELEMENTS 49
- #define INVALID_ELEMENT 2000
- //main menu
- #define MENU_BUTTON_FACETAG 0
- #define MENU_BUTTON_STREAMED 1
- #define MENU_BUTTON_LIST 2
- #define MENU_BUTTON_NAMES 3
- #define MENU_BUTTON_POSITION 4
- //position
- #define MENU_BUTTON_HORIZONTALOFFSET 0
- #define MENU_BUTTON_HEIGHT 1
- #define MENU_BUTTON_WIDTH 2
- #define MENU_BUTTON_UPPERTHRESHOLD 3
- #define MENU_BUTTON_LOWERTHRESHOLD 4
- #define MENU_BUTTON_RADARMIDDLE 5
- using namespace std;
- struct XY_XY
- {
- float l;//left
- float t;//top
- float r;//right
- float b;//bottom
- };
- class Cursor{
- public:
- Cursor();
- void UpdateElement();
- bool IsCursorOverElement();
- float SetAdjusterValue(float maxVal);
- void DrawFrame();
- void SetPlayerElement(float , float , float , float , int , int ele);
- int GetID();
- float arrowPosX;
- XY_XY pos;
- int id;
- private:
- bool listed;//is anything assigned to the element
- int type; //personalized texture/any others(?)
- int state; // clicked/notclicked/cursor_over/normal
- int allignTo;//right/left/center
- friend void ManageCursorElements();
- };
- extern Cursor playerElement[MAX_PLAYER_ELEMENTS];
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement