Пример #1
0
 /// <summary>
 /// The constructor of the GUISliderControl.
 /// </summary>
 /// <param name="dwParentID">The parent of this control.</param>
 /// <param name="dwControlId">The ID of this control.</param>
 /// <param name="dwPosX">The X position of this control.</param>
 /// <param name="dwPosY">The Y position of this control.</param>
 /// <param name="dwWidth">The width of this control.</param>
 /// <param name="dwHeight">The height of this control.</param>
 /// <param name="strBackGroundTexture">The background texture of the </param>
 /// <param name="strMidTexture">The unfocused texture.</param>
 /// <param name="strMidTextureFocus">The focused texture</param>
 /// <param name="iType">The type of control.</param>
 public GUISliderControl(int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight,
                         string strBackGroundTexture, string strMidTexture, string strMidTextureFocus,
                         GUISpinControl.SpinType iType)
     : base(dwParentID, dwControlId, dwPosX, dwPosY, dwWidth, dwHeight)
 {
     _backgroundTextureName  = strBackGroundTexture;
     _sliderTextureName      = strMidTexture;
     _sliderFocusTextureName = strMidTextureFocus;
     _spinType = iType;
     FinalizeConstruction();
 }
 /// <summary>
 /// The constructor of the GUISliderControl.
 /// </summary>
 /// <param name="dwParentID">The parent of this control.</param>
 /// <param name="dwControlId">The ID of this control.</param>
 /// <param name="dwPosX">The X position of this control.</param>
 /// <param name="dwPosY">The Y position of this control.</param>
 /// <param name="dwWidth">The width of this control.</param>
 /// <param name="dwHeight">The height of this control.</param>
 /// <param name="strBackGroundTexture">The background texture of the </param>
 /// <param name="strMidTexture">The unfocused texture.</param>
 /// <param name="strMidTextureFocus">The focused texture</param>
 /// <param name="iType">The type of control.</param>
 public GUISliderControl(int dwParentID, int dwControlId, int dwPosX, int dwPosY, int dwWidth, int dwHeight,
                         string strBackGroundTexture, string strMidTexture, string strMidTextureFocus,
                         GUISpinControl.SpinType iType)
   : base(dwParentID, dwControlId, dwPosX, dwPosY, dwWidth, dwHeight)
 {
   _backgroundTextureName = strBackGroundTexture;
   _sliderTextureName = strMidTexture;
   _sliderFocusTextureName = strMidTextureFocus;
   _spinType = iType;
   FinalizeConstruction();
 }