Преглед изворни кода

Adding missing skin elements to non-editor GUI skin

BearishSun пре 9 година
родитељ
комит
c0dd3734a1

+ 90 - 0
Data/Raw/Engine/DataList.json

@@ -50,6 +50,26 @@
             "SpriteUUID": "8aad937c-499d-4935-bd7d-d9389aed4f33",
             "TextureUUID": "1070d714-83a2-4d15-860b-c3607ff5a3e0"
         },
+		{
+            "Path": "DropDownBoxEntryToggleHover.png",
+            "SpriteUUID": "4f0bfa04-ccfb-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "4f0bfd7e-ccfb-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "DropDownBoxEntryToggleHoverOn.png",
+            "SpriteUUID": "4f0c0292-ccfb-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "4f0c04fe-ccfb-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "DropDownBoxEntryToggleNormal.png",
+            "SpriteUUID": "4f0c06b6-ccfb-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "4f0c0864-ccfb-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "DropDownBoxEntryToggleNormalOn.png",
+            "SpriteUUID": "4f0c0a12-ccfb-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "4f0c0bca-ccfb-11e6-9d9d-cec0c932ce01"
+        },		
         {
             "Path": "DropDownBoxExpandBtnHover.png",
             "SpriteUUID": "94748c7b-dc27-44dd-8798-22f76ea69b36",
@@ -185,6 +205,21 @@
             "SpriteUUID": "6e2f9f25-88ad-4256-bf68-5ca80ecd2db1",
             "TextureUUID": "7b0c9474-d0ea-4370-894c-bc4386f6fa8b"
         },
+        {
+            "Path": "ScrollBarHHandleResizeableActive.png",
+            "SpriteUUID": "1828219c-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "18282476-cd06-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "ScrollBarHHandleResizeableHover.png",
+            "SpriteUUID": "1828278c-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "18282b24-cd06-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "ScrollBarHHandleResizeableNormal.png",
+            "SpriteUUID": "18282c00-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "18282cd2-cd06-11e6-9d9d-cec0c932ce01"
+        },		
         {
             "Path": "ScrollBarVBackground.png",
             "SpriteUUID": "b37d3e5b-891a-4950-a4f9-3f8fa820d40a",
@@ -205,6 +240,61 @@
             "SpriteUUID": "3d44c9c9-9bdd-48ab-97b1-4a7e929edb46",
             "TextureUUID": "98f70a3b-8da7-44b0-85d1-6aae294df9dc"
         },
+        {
+            "Path": "ScrollBarVHandleResizeableActive.png",
+            "SpriteUUID": "3ae0a6a0-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "3ae0aa60-cd06-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "ScrollBarVHandleResizeableHover.png",
+            "SpriteUUID": "3ae0ae0c-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "3ae0afd8-cd06-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "ScrollBarVHandleResizeableNormal.png",
+            "SpriteUUID": "3ae0b230-cd06-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "3ae0b3f2-cd06-11e6-9d9d-cec0c932ce01"
+        },		
+        {
+            "Path": "SliderHandleActive.png",
+            "SpriteUUID": "1ede5e0e-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede6138-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderHandleHover.png",
+            "SpriteUUID": "1ede62aa-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede6430-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderHandleNormal.png",
+            "SpriteUUID": "1ede650c-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede6958-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderHBackground.png",
+            "SpriteUUID": "1ede6b24-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede6cb4-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderHFill.png",
+            "SpriteUUID": "1ede6d90-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede6ef8-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderVBackground.png",
+            "SpriteUUID": "1ede70ce-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede71b4-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "SliderVFill.png",
+            "SpriteUUID": "1ede736c-ccff-11e6-9d9d-cec0c932ce01",
+            "TextureUUID": "1ede7448-ccff-11e6-9d9d-cec0c932ce01"
+        },
+        {
+            "Path": "StatusBarBackground.png",
+            "SpriteUUID": "09887d53-d880-4576-b87b-50899b8bbf6d",
+            "TextureUUID": "4739c121-fcc5-4a08-b7b4-8c030030243d"
+        },		
         {
             "Path": "ToggleHover.png",
             "SpriteUUID": "daa9fd29-4228-47ca-8b9e-39636f0b566c",

BIN
Data/Raw/Engine/Skin/DropDownBoxEntryToggleHover.png


BIN
Data/Raw/Engine/Skin/DropDownBoxEntryToggleHoverOn.png


BIN
Data/Raw/Engine/Skin/DropDownBoxEntryToggleNormal.png


BIN
Data/Raw/Engine/Skin/DropDownBoxEntryToggleNormalOn.png


BIN
Data/Raw/Engine/Skin/ScrollBarHHandleResizeableActive.png


BIN
Data/Raw/Engine/Skin/ScrollBarHHandleResizeableHover.png


BIN
Data/Raw/Engine/Skin/ScrollBarHHandleResizeableNormal.png


BIN
Data/Raw/Engine/Skin/ScrollBarVHandleResizeableActive.png


BIN
Data/Raw/Engine/Skin/ScrollBarVHandleResizeableHover.png


BIN
Data/Raw/Engine/Skin/ScrollBarVHandleResizeableNormal.png


BIN
Data/Raw/Engine/Skin/SliderHBackground.png


BIN
Data/Raw/Engine/Skin/SliderHFill.png


BIN
Data/Raw/Engine/Skin/SliderHandleActive.png


BIN
Data/Raw/Engine/Skin/SliderHandleHover.png


BIN
Data/Raw/Engine/Skin/SliderHandleNormal.png


BIN
Data/Raw/Engine/Skin/SliderVBackground.png


BIN
Data/Raw/Engine/Skin/SliderVFill.png


+ 21 - 0
Source/BansheeEngine/Include/BsBuiltinResources.h

@@ -249,9 +249,25 @@ namespace bs
 		static const WString ScrollBarHandleVertHoverTex;
 		static const WString ScrollBarHandleVertActiveTex;
 
+		static const WString ScrollBarResizeableHandleHorzNormalTex;
+		static const WString ScrollBarResizeableHandleHorzHoverTex;
+		static const WString ScrollBarResizeableHandleHorzActiveTex;
+
+		static const WString ScrollBarResizeableHandleVertNormalTex;
+		static const WString ScrollBarResizeableHandleVertHoverTex;
+		static const WString ScrollBarResizeableHandleVertActiveTex;
+
 		static const WString ScrollBarHBgTex;
 		static const WString ScrollBarVBgTex;
 
+		static const WString SliderHBackgroundTex;
+		static const WString SliderHFillTex;
+		static const WString SliderVBackgroundTex;
+		static const WString SliderVFillTex;
+		static const WString SliderHandleNormalTex;
+		static const WString SliderHandleHoverTex;
+		static const WString SliderHandleActiveTex;
+
 		static const WString DropDownBtnNormalTex;
 		static const WString DropDownBtnHoverTex;
 		static const WString DropDownBtnActiveTex;
@@ -272,6 +288,11 @@ namespace bs
 		static const WString DropDownBoxEntryExpNormalTex;
 		static const WString DropDownBoxEntryExpHoverTex;
 
+		static const WString DropDownBoxEntryToggleNormalTex;
+		static const WString DropDownBoxEntryToggleHoverTex;
+		static const WString DropDownBoxEntryToggleNormalOnTex;
+		static const WString DropDownBoxEntryToggleHoverOnTex;
+
 		static const WString DropDownSeparatorTex;
 
 		static const WString CursorArrowTex;

+ 2 - 2
Source/BansheeEngine/Include/BsGUIListBox.h

@@ -90,7 +90,7 @@ namespace bs
 		 */
 
 		/** @copydoc GUIButtonBase::_getElementType */
-		virtual ElementType _getElementType() const override { return ElementType::ListBox; }
+		ElementType _getElementType() const override { return ElementType::ListBox; }
 
 		/** @} */
 	protected:
@@ -101,7 +101,7 @@ namespace bs
 			const GUIDimensions& dimensions);
 
 		/** @copydoc GUIButtonBase::mouseEvent */
-		virtual bool _mouseEvent(const GUIMouseEvent& ev) override;
+		bool _mouseEvent(const GUIMouseEvent& ev) override;
 
 		/**	Triggered when user clicks on an element. */
 		void elementSelected(UINT32 idx);

+ 4 - 4
Source/BansheeEngine/Include/BsGUIScrollArea.h

@@ -139,17 +139,17 @@ namespace bs
 		 */
 
 		/** @copydoc GUIElementContainer::_getElementType */
-		virtual ElementType _getElementType() const override { return ElementType::ScrollArea; }
+		ElementType _getElementType() const override { return ElementType::ScrollArea; }
 
 		/** @} */
 	protected:
 		~GUIScrollArea();
 
 		/** @copydoc GUIElementContainer::_getLayoutSizeRange */
-		virtual LayoutSizeRange _getLayoutSizeRange() const override;
+		LayoutSizeRange _getLayoutSizeRange() const override;
 
 		/** @copydoc GUIElementContainer::updateClippedBounds */
-		virtual void updateClippedBounds() override;
+		void updateClippedBounds() override;
 
 		/** @copydoc GUIElementBase::_calculateLayoutSizeRange */
 		LayoutSizeRange _calculateLayoutSizeRange() const override;
@@ -164,7 +164,7 @@ namespace bs
 			const String& scrollBarStyle, const String& scrollAreaStyle, const GUIDimensions& dimensions);
 
 		/** @copydoc GUIElementContainer::mouseEvent */
-		virtual bool _mouseEvent(const GUIMouseEvent& ev) override;
+		bool _mouseEvent(const GUIMouseEvent& ev) override;
 
 		/**
 		 * Called when the vertical scrollbar moves. 

+ 188 - 0
Source/BansheeEngine/Source/BsBuiltinResources.cpp

@@ -27,6 +27,8 @@
 #include "BsFileSerializer.h"
 #include "BsTextureImportOptions.h"
 #include "BsBuiltinResourcesHelper.h"
+#include "BsGUISlider.h"
+#include "BsGUIScrollBar.h"
 
 using json = nlohmann::json;
 
@@ -96,9 +98,25 @@ namespace bs
 	const WString BuiltinResources::ScrollBarHandleVertHoverTex = L"ScrollBarVHandleHover.png";
 	const WString BuiltinResources::ScrollBarHandleVertActiveTex = L"ScrollBarVHandleActive.png";
 
+	const WString BuiltinResources::ScrollBarResizeableHandleHorzNormalTex = L"ScrollBarHHandleResizeableNormal.png";
+	const WString BuiltinResources::ScrollBarResizeableHandleHorzHoverTex = L"ScrollBarHHandleResizeableHover.png";
+	const WString BuiltinResources::ScrollBarResizeableHandleHorzActiveTex = L"ScrollBarHHandleResizeableActive.png";
+
+	const WString BuiltinResources::ScrollBarResizeableHandleVertNormalTex = L"ScrollBarVHandleResizeableNormal.png";
+	const WString BuiltinResources::ScrollBarResizeableHandleVertHoverTex = L"ScrollBarVHandleResizeableHover.png";
+	const WString BuiltinResources::ScrollBarResizeableHandleVertActiveTex = L"ScrollBarVHandleResizeableActive.png";
+
 	const WString BuiltinResources::ScrollBarHBgTex = L"ScrollBarHBackground.png";
 	const WString BuiltinResources::ScrollBarVBgTex = L"ScrollBarVBackground.png";
 
+	const WString BuiltinResources::SliderHBackgroundTex = L"SliderHBackground.png";
+	const WString BuiltinResources::SliderHFillTex = L"SliderHFill.png";
+	const WString BuiltinResources::SliderVBackgroundTex = L"SliderVBackground.png";
+	const WString BuiltinResources::SliderVFillTex = L"SliderVFill.png";
+	const WString BuiltinResources::SliderHandleNormalTex = L"SliderHandleNormal.png";
+	const WString BuiltinResources::SliderHandleHoverTex = L"SliderHandleHover.png";
+	const WString BuiltinResources::SliderHandleActiveTex = L"SliderHandleActive.png";
+
 	const WString BuiltinResources::DropDownBtnNormalTex = L"DropDownButtonNormal.png";
 	const WString BuiltinResources::DropDownBtnHoverTex = L"DropDownButtonHover.png";
 	const WString BuiltinResources::DropDownBtnActiveTex = L"DropDownButtonActive.png";
@@ -119,6 +137,11 @@ namespace bs
 	const WString BuiltinResources::DropDownBoxEntryExpNormalTex = L"DropDownBoxExpandBtnNormal.png";
 	const WString BuiltinResources::DropDownBoxEntryExpHoverTex = L"DropDownBoxExpandBtnHover.png";
 
+	const WString BuiltinResources::DropDownBoxEntryToggleNormalTex = L"DropDownBoxEntryToggleNormal.png";
+	const WString BuiltinResources::DropDownBoxEntryToggleHoverTex = L"DropDownBoxEntryToggleHover.png";
+	const WString BuiltinResources::DropDownBoxEntryToggleNormalOnTex = L"DropDownBoxEntryToggleNormalOn.png";
+	const WString BuiltinResources::DropDownBoxEntryToggleHoverOnTex = L"DropDownBoxEntryToggleHoverOn.png";
+
 	const WString BuiltinResources::DropDownSeparatorTex = L"DropDownBoxSeparator.png";
 
 	/************************************************************************/
@@ -591,6 +614,9 @@ namespace bs
 		vertScrollBarStyle.minHeight = 8;
 		vertScrollBarStyle.width = 16;
 
+		vertScrollBarStyle.subStyles[GUIScrollBar::getVScrollHandleType()] = "ScrollBarVertBtn";
+		vertScrollBarStyle.subStyles[GUIScrollBar::getHScrollHandleType()] = "ScrollBarHorzBtn";
+
 		skin->setStyle("ScrollBarVert", vertScrollBarStyle);
 
 		// Horizontal scroll bar
@@ -603,8 +629,69 @@ namespace bs
 		horzScrollBarStyle.minWidth = 8;
 		horzScrollBarStyle.height = 16;
 
+		horzScrollBarStyle.subStyles[GUIScrollBar::getVScrollHandleType()] = "ScrollBarVertBtn";
+		horzScrollBarStyle.subStyles[GUIScrollBar::getHScrollHandleType()] = "ScrollBarHorzBtn";
+
 		skin->setStyle("ScrollBarHorz", horzScrollBarStyle);
 
+		// Horizontal resizeable handle
+		GUIElementStyle scrollBarHorzResizeableBtnStyle;
+		scrollBarHorzResizeableBtnStyle.normal.texture = getSkinTexture(ScrollBarResizeableHandleHorzNormalTex);
+		scrollBarHorzResizeableBtnStyle.hover.texture = getSkinTexture(ScrollBarResizeableHandleHorzHoverTex);
+		scrollBarHorzResizeableBtnStyle.active.texture = getSkinTexture(ScrollBarResizeableHandleHorzActiveTex);
+		scrollBarHorzResizeableBtnStyle.fixedHeight = true;
+		scrollBarHorzResizeableBtnStyle.fixedWidth = false;
+		scrollBarHorzResizeableBtnStyle.minWidth = 15;
+		scrollBarHorzResizeableBtnStyle.height = 13;
+		scrollBarHorzResizeableBtnStyle.border.left = 7;
+		scrollBarHorzResizeableBtnStyle.border.right = 7;
+
+		skin->setStyle("ScrollBarResizeableHorzBtn", scrollBarHorzResizeableBtnStyle);
+
+		// Vertical resizeable handle
+		GUIElementStyle scrollBarVertResizeableBtnStyle;
+		scrollBarVertResizeableBtnStyle.normal.texture = getSkinTexture(ScrollBarResizeableHandleVertNormalTex);
+		scrollBarVertResizeableBtnStyle.hover.texture = getSkinTexture(ScrollBarResizeableHandleVertHoverTex);
+		scrollBarVertResizeableBtnStyle.active.texture = getSkinTexture(ScrollBarResizeableHandleVertActiveTex);
+		scrollBarVertResizeableBtnStyle.fixedHeight = false;
+		scrollBarVertResizeableBtnStyle.fixedWidth = true;
+		scrollBarVertResizeableBtnStyle.width = 13;
+		scrollBarVertResizeableBtnStyle.minHeight = 15;
+		scrollBarVertResizeableBtnStyle.border.top = 7;
+		scrollBarVertResizeableBtnStyle.border.bottom = 7;
+
+		skin->setStyle("ScrollBarResizeableVertBtn", scrollBarVertResizeableBtnStyle);
+
+		// Vertical resizeable scroll bar
+		GUIElementStyle vertResizeableScrollBarStyle;
+		vertResizeableScrollBarStyle.normal.texture = getSkinTexture(ScrollBarVBgTex);
+		vertResizeableScrollBarStyle.hover.texture = vertResizeableScrollBarStyle.normal.texture;
+		vertResizeableScrollBarStyle.active.texture = vertResizeableScrollBarStyle.normal.texture;
+		vertResizeableScrollBarStyle.fixedHeight = false;
+		vertResizeableScrollBarStyle.fixedWidth = true;
+		vertResizeableScrollBarStyle.minHeight = 15;
+		vertResizeableScrollBarStyle.width = 16;
+
+		vertResizeableScrollBarStyle.subStyles[GUIScrollBar::getVScrollHandleType()] = "ScrollBarResizeableVertBtn";
+		vertResizeableScrollBarStyle.subStyles[GUIScrollBar::getHScrollHandleType()] = "ScrollBarResizeableHorzBtn";
+
+		skin->setStyle("ResizeableScrollBarVert", vertResizeableScrollBarStyle);
+
+		// Horizontal resizeable scroll bar
+		GUIElementStyle horzResizeableScrollBarStyle;
+		horzResizeableScrollBarStyle.normal.texture = getSkinTexture(ScrollBarHBgTex);
+		horzResizeableScrollBarStyle.hover.texture = horzResizeableScrollBarStyle.normal.texture;
+		horzResizeableScrollBarStyle.active.texture = horzResizeableScrollBarStyle.normal.texture;
+		horzResizeableScrollBarStyle.fixedHeight = true;
+		horzResizeableScrollBarStyle.fixedWidth = false;
+		horzResizeableScrollBarStyle.minWidth = 15;
+		horzResizeableScrollBarStyle.height = 16;
+
+		horzResizeableScrollBarStyle.subStyles[GUIScrollBar::getVScrollHandleType()] = "ScrollBarResizeableVertBtn";
+		horzResizeableScrollBarStyle.subStyles[GUIScrollBar::getHScrollHandleType()] = "ScrollBarResizeableHorzBtn";
+
+		skin->setStyle("ResizeableScrollBarHorz", horzResizeableScrollBarStyle);
+
 		/************************************************************************/
 		/* 								DROP DOWN BOX                      		*/
 		/************************************************************************/
@@ -723,6 +810,33 @@ namespace bs
 
 		skin->setStyle(GUIDropDownContent::ENTRY_STYLE_TYPE, dropDownEntryBtnStyle);
 
+		// DropDown toggle entry button
+		GUIElementStyle dropDownToggleEntryBtnStyle;
+		dropDownToggleEntryBtnStyle.normal.texture = getSkinTexture(DropDownBoxEntryToggleNormalTex);
+		dropDownToggleEntryBtnStyle.hover.texture = getSkinTexture(DropDownBoxEntryToggleHoverTex);
+		dropDownToggleEntryBtnStyle.active.texture = dropDownToggleEntryBtnStyle.hover.texture;
+		dropDownToggleEntryBtnStyle.normalOn.texture = getSkinTexture(DropDownBoxEntryToggleNormalOnTex);
+		dropDownToggleEntryBtnStyle.hoverOn.texture = getSkinTexture(DropDownBoxEntryToggleHoverOnTex);
+		dropDownToggleEntryBtnStyle.activeOn.texture = dropDownToggleEntryBtnStyle.hoverOn.texture;
+		dropDownToggleEntryBtnStyle.normal.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.hover.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.active.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.normalOn.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.hoverOn.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.activeOn.textColor = TextNormalColor;
+		dropDownToggleEntryBtnStyle.fixedHeight = true;
+		dropDownToggleEntryBtnStyle.fixedWidth = false;
+		dropDownToggleEntryBtnStyle.height = 18;
+		dropDownToggleEntryBtnStyle.width = 30;
+		dropDownToggleEntryBtnStyle.border.left = 17;
+		dropDownToggleEntryBtnStyle.contentOffset.left = 17;
+		dropDownToggleEntryBtnStyle.font = font;
+		dropDownToggleEntryBtnStyle.fontSize = DefaultFontSize;
+		dropDownToggleEntryBtnStyle.textHorzAlign = THA_Left;
+		dropDownToggleEntryBtnStyle.textVertAlign = TVA_Center;
+
+		skin->setStyle(GUIDropDownContent::ENTRY_TOGGLE_STYLE_TYPE, dropDownToggleEntryBtnStyle);
+
 		// DropDown entry button with expand
 		GUIElementStyle dropDownEntryExpBtnStyle;
 		dropDownEntryExpBtnStyle.normal.texture = getSkinTexture(DropDownBoxEntryExpNormalTex);
@@ -763,6 +877,7 @@ namespace bs
 		GUIElementStyle dropDownContentStyle;
 		dropDownContentStyle.minWidth = 50;
 		dropDownContentStyle.minHeight = 20;
+		dropDownContentStyle.subStyles[GUIDropDownContent::ENTRY_TOGGLE_STYLE_TYPE] = GUIDropDownContent::ENTRY_TOGGLE_STYLE_TYPE;
 		dropDownContentStyle.subStyles[GUIDropDownContent::ENTRY_STYLE_TYPE] = GUIDropDownContent::ENTRY_STYLE_TYPE;
 		dropDownContentStyle.subStyles[GUIDropDownContent::ENTRY_EXP_STYLE_TYPE] = GUIDropDownContent::ENTRY_EXP_STYLE_TYPE;
 		dropDownContentStyle.subStyles[GUIDropDownContent::SEPARATOR_STYLE_TYPE] = GUIDropDownContent::SEPARATOR_STYLE_TYPE;
@@ -812,6 +927,79 @@ namespace bs
 
 		skin->setStyle(GUITooltip::getFrameStyleName(), tooltipFrameStyle);
 
+		/************************************************************************/
+		/* 								SLIDER                      			*/
+		/************************************************************************/
+
+		GUIElementStyle sliderHandleStyle;
+		sliderHandleStyle.fixedHeight = true;
+		sliderHandleStyle.fixedWidth = true;
+		sliderHandleStyle.width = 12;
+		sliderHandleStyle.height = 13;
+		sliderHandleStyle.normal.texture = getSkinTexture(SliderHandleNormalTex);
+		sliderHandleStyle.hover.texture = getSkinTexture(SliderHandleHoverTex);
+		sliderHandleStyle.active.texture = getSkinTexture(SliderHandleActiveTex);
+
+		skin->setStyle(GUISlider::getHandleStyleType(), sliderHandleStyle);
+
+		GUIElementStyle sliderHorizontalBgStyle;
+		sliderHorizontalBgStyle.fixedHeight = true;
+		sliderHorizontalBgStyle.height = 10;
+		sliderHorizontalBgStyle.normal.texture = getSkinTexture(SliderHBackgroundTex);
+		sliderHorizontalBgStyle.border.left = 4;
+		sliderHorizontalBgStyle.border.right = 4;
+
+		skin->setStyle("SliderHorzBg", sliderHorizontalBgStyle);
+
+		GUIElementStyle sliderHorizontalFillStyle;
+		sliderHorizontalFillStyle.fixedHeight = true;
+		sliderHorizontalFillStyle.height = 10;
+		sliderHorizontalFillStyle.normal.texture = getSkinTexture(SliderHFillTex);
+		sliderHorizontalFillStyle.border.left = 6;
+		sliderHorizontalFillStyle.border.right = 4;
+
+		skin->setStyle("SliderHorzFill", sliderHorizontalFillStyle);
+
+		GUIElementStyle sliderHorizontalStyle;
+		sliderHorizontalStyle.fixedHeight = true;
+		sliderHorizontalStyle.height = 13;
+		sliderHorizontalStyle.width = 150;
+		sliderHorizontalStyle.minWidth = 10;
+		sliderHorizontalStyle.subStyles[GUISlider::getHandleStyleType()] = GUISlider::getHandleStyleType();
+		sliderHorizontalStyle.subStyles[GUISlider::getBackgroundStyleType()] = "SliderHorzBg";
+		sliderHorizontalStyle.subStyles[GUISlider::getFillStyleType()] = "SliderHorzFill";
+
+		skin->setStyle(GUISliderHorz::getGUITypeName(), sliderHorizontalStyle);
+
+		GUIElementStyle sliderVerticalBgStyle;
+		sliderVerticalBgStyle.fixedWidth = true;
+		sliderVerticalBgStyle.width = 10;
+		sliderVerticalBgStyle.normal.texture = getSkinTexture(SliderVBackgroundTex);
+		sliderVerticalBgStyle.border.top = 4;
+		sliderVerticalBgStyle.border.bottom = 4;
+
+		skin->setStyle("SliderVertBg", sliderVerticalBgStyle);
+
+		GUIElementStyle sliderVerticalFillStyle;
+		sliderVerticalFillStyle.fixedWidth = true;
+		sliderVerticalFillStyle.width = 10;
+		sliderVerticalFillStyle.normal.texture = getSkinTexture(SliderVFillTex);
+		sliderVerticalFillStyle.border.top = 6;
+		sliderVerticalFillStyle.border.bottom = 4;
+
+		skin->setStyle("SliderVertFill", sliderVerticalFillStyle);
+
+		GUIElementStyle sliderVerticalStyle;
+		sliderVerticalStyle.fixedWidth = true;
+		sliderVerticalStyle.width = 13;
+		sliderVerticalStyle.height = 150;
+		sliderVerticalStyle.minHeight = 10;
+		sliderVerticalStyle.subStyles[GUISlider::getHandleStyleType()] = GUISlider::getHandleStyleType();
+		sliderVerticalStyle.subStyles[GUISlider::getBackgroundStyleType()] = "SliderVertBg";
+		sliderVerticalStyle.subStyles[GUISlider::getFillStyleType()] = "SliderVertFill";
+
+		skin->setStyle(GUISliderVert::getGUITypeName(), sliderVerticalStyle);
+
 		/************************************************************************/
 		/* 									OTHER                      			*/
 		/************************************************************************/