123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #ifndef INFOWINDOW_H
- #define INFOWINDOW_H
- /*************************************************************************************************\
- InfoWindow.h : Interface for the InfoWindow component.
- //===========================================================================//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- \*************************************************************************************************/
- #include "mclib.h"
- #ifndef CONTROLGUI_H
- #include "controlGui.h"
- #endif
- class Mover;
- class ForceGroupIcon;
- #ifndef AFONT_H
- #include "aFont.h"
- #endif
- #define SCROLLUP 1
- #define SCROLLDOWN 2
- //*************************************************************************************************
- /**************************************************************************************************
- CLASS DESCRIPTION
- InfoWindow:
- **************************************************************************************************/
- class InfoWindow
- {
- public:
- InfoWindow();
- ~InfoWindow();
- void setUnit( Mover* pNewUnit );
- void update();
- void render();
- private:
- float scrollPos;
- float scrollLength;
- float infoLength;
- float lastYClick;
- // DATA
- Mover* pUnit;
- static ButtonData buttonData[2];
- static StaticInfo* skillInfos;
- unsigned long backgroundTexture;
- aFont nameFont;
- aFont componentFont;
- static ControlButton buttons[2];
- bool bUnitChanged;
- friend class ControlGui;
- // HELPER FUNCTIONS
- void drawScrollingStuff();
- void handleClick( int ID );
- void drawDivider( float yVal );
- void drawSkillBar( int skill, float yVal, float height );
- void setScrollPos( int where );
- void drawName( const char* name );
- ForceGroupIcon* icon;
- static long SCROLLLEFT;
- static long SCROLLRIGHT;
- static long SCROLLTOP;
- static long SCROLLBOTTOM;
- static long SCROLLMIN;
- static long SCROLLMAX;
- static long SCROLLBUTTONU;
- static long SCROLLBUTTONV;
- static long SCROLLBUTTONWIDTH;
- static long SCROLLBUTTONHEIGHT;
- static long SECTIONSKIP;
- static long NAMELEFT;
- static long NAMERIGHT;
- static long NAMETOP;
- static long NAMEBOTTOM;
- static long HEALTHLEFT;
- static long HEALTHRIGHT;
- static long HEALTHTOP;
- static long HEALTHBOTTOM;
- static long DIVIDERCOLOR;
- static long DIVIDERLEFT;
- static long DIVIDERRIGHT;
- static long PILOTLEFT;
- static long PILOTRIGHT;
- static long PILOTHEIGHT;
- static long MECHLEFT;
- static long MECHRIGHT;
- static long MECHHEIGHT;
- static long MECHBACKLEFT;
- static long MECHBACKRIGHT;
- static long MECHBACKHEIGHT;
- static long SKILLLEFT;
- static long SKILLHEIGHT;
- static long SKILLSKIP;
- static long SKILLRIGHT;
- static long SKILLUNITWIDTH;
- static long NUMBERSKILLBARS;
- static long INFOLEFT;
- static long INFOTOP;
- static long INFOWIDTH;
- static long INFOHEIGHT;
- static long SCROLLCOLOR;
- static long SCROLLBUTTONX;
- static long COMPONENTLEFT;
- static long SCROLLBOXLEFT;
- static long SCROLLBOXRIGHT;
- static long SCROLLBOXTOP;
- static long SCROLLBOXBOTTOM;
- static long PILOTNAMELEFT;
- static GUI_RECT NameRect;
- static void InfoWindow::init( FitIniFile& file );
- static InfoWindow* s_instance;
- };
- //*************************************************************************************************
- #endif // end of file ( InfoWindow.h )
|