123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- #ifndef MPSETUP_H
- #define MPSETUP_H
- /*************************************************************************************************\
- MPSetupArea.h : Interface for the MPSetupArea component.
- //---------------------------------------------------------------------------//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- \*************************************************************************************************/
- //*************************************************************************************************
- #ifndef LOGISTICSSCREEN_H
- #include "LogisticsScreen.h"
- #endif
- #include "aSystem.h"
- #include "aListBox.h"
- #include "AttributeMeter.h"
- #include "SimpleCamera.h"
- #ifndef AANIM_H
- #include "aAnim.h"
- #endif
- class aButton;
- class aColorPicker : public aObject
- {
- public:
- aColorPicker();
- virtual long init(long xPos, long yPos, long w, long h);
- void init( FitIniFile* file, const char* blockName );
- virtual void destroy();
- virtual void render();
- virtual void update();
- virtual int handleMessage( unsigned long message, unsigned long who );
- virtual void move( float offsetX, float offsetY );
- void setColor0(int color);
- int getColor0() const { return color0; }
- void setColor1(int color);
- int getColor1() const { return color1; }
- protected:
- aRect mainRect;
- aText tab0text;
- aRect tab0ColorOutlineRect;
- aRect tab0ColorRect;
- aButton tab0Button;
- aText tab1text;
- aRect tab1ColorOutlineRect;
- aRect tab1ColorRect;
- aButton tab1Button;
- aObject colorPlaneStatic;
- aRect intensityGradientRect;
- mcScrollBar intesitySliderScrollBar;
- aObject colorPlaneCursorStatic;
- int color0;
- int color1;
- int activeTab;
- };
- class aStyle1TextListItem : public aTextListItem
- {
- public:
- aStyle1TextListItem() { hasAnimation = false; normalColor = 0xff808080; }
- virtual long init( FitIniFile* file, const char* blockName );
- virtual void render();
- protected:
- bool hasAnimation;
- aAnimGroup animGroup;
- int normalColor;
- };
- class aInsigniaListItem : public aListItem
- {
- public:
- aInsigniaListItem() { ; }
- virtual long init( FitIniFile* file, const char* blockName );
- virtual void update();
- protected:
- aObject graphic;
- aStyle1TextListItem text;
- };
- class MPSetupXScreen : public LogisticsScreen
- {
- public:
-
- MPSetupXScreen();
- virtual ~MPSetupXScreen();
-
- void init(FitIniFile* file);
- bool isDone();
- virtual void begin();
- virtual void end();
- virtual void render( int xOffset, int yOffset );
- virtual void render();
- virtual void update();
- virtual int handleMessage( unsigned long, unsigned long );
- void updateMPSetup(); // put into inventory
- bool bDone;
- void **ppConnectionScreen;
- void *pLocalBrowserScreen;
- void *pDirectTcpipScreen;
- void *pModem2ModemScreen;
- private:
- int indexOfButtonWithID(int id);
- aComboBox playerNameComboBox;
- aComboBox unitNameComboBox;
- aDropList insigniaDropList;
- aColorPicker colorPicker;
- int baseColor;
- int stripeColor;
- SimpleCamera mechCamera;
- bool bPaintSchemeInitialized;
- };
- //*************************************************************************************************
- #endif // end of file ( MPSetupArea.h )
|