00001 #ifndef GUIELEMENTSETTINGS_H 00002 #define GUIELEMENTSETTINGS_H 00003 00004 #pragma once 00005 00006 class CGUIElement; 00007 #include "Entity.h" 00008 00009 class GUIElementSettings : publi 00010 { 00011 public: 00012 GUIElementSettings(); 00013 virtual ~GUIElementSettings(); 00014 00015 void UpdateRect(CRect NewRect); 00016 virtual void Update(CGUIElement *Element) {}; 00017 00018 virtual bool PropertyChanging( const void* pProperty , void* pNewValue ); 00019 virtual void GetProperties( EPropList& PropList ); 00020 00021 protected: 00022 CString m_strName; 00023 int m_iID; 00024 CString m_strElementType; 00025 int m_iChildren; 00026 bool m_bVisible; 00027 00028 CString m_strRectangle; 00029 00030 bool m_bRestrictMoveX; 00031 bool m_bRestrictMoveY; 00032 bool m_bRestrictSizeX; 00033 bool m_bRestrictSizeY; 00034 00035 #ifndef GUI_USE_ACTIVE_INACTIVE 00036 COLORREF m_MaterialAmbient; 00037 COLORREF m_MaterialDiffuse; 00038 COLORREF m_MaterialSpecular; 00039 COLORREF m_MaterialEmissive; 00040 int m_iMaterialShininess; 00041 int m_iMaterialIndex; 00042 #elif 00043 COLORREF m_ActiveColor; 00044 COLORREF m_InactiveColor; 00045 #endif 00046 00047 CString m_strTextureFilename; 00048 CString m_strTextureName; 00049 }; 00050 00051 #endif