@@ -16,6 +16,12 @@ public static class Gui
1616 private static Rect _closeButton = new Rect ( 0 , 0 , 25 , 15 ) ;
1717 private static Vector2 _scrollPosition ;
1818
19+ private static Texture2D normalTexture ;
20+ private static Texture2D hoverTexture ;
21+ private static Texture2D onNormalTexture ;
22+ private static Texture2D sectionsTexture ;
23+ private static Texture2D sections2Texture ;
24+
1925 //internal static GUIStyle Separator;
2026 internal static GUIStyle MainWindow ;
2127
@@ -48,37 +54,45 @@ internal static void StartGui()
4854 };
4955 */
5056
57+ normalTexture = UiToolbox . MakeWindowTex ( new Color ( 0 , 0 , 0 , 0.05f ) , new Color ( 0 , 0 , 0 , 0.5f ) ) ;
58+ hoverTexture = UiToolbox . MakeWindowTex ( new Color ( 0.3f , 0.3f , 0.3f , 0.3f ) , new Color ( 0 , 1 , 1 , 0.5f ) ) ;
59+ onNormalTexture = UiToolbox . MakeWindowTex ( new Color ( 0.3f , 0.3f , 0.3f , 0.6f ) , new Color ( 0 , 1 , 1 , 0.5f ) ) ;
60+
5161 MainWindow = new GUIStyle ( GUI . skin . window )
5262 {
5363 normal =
5464 {
55- background = UiToolbox . MakeWindowTex ( new Color ( 0 , 0 , 0 , 0.05f ) , new Color ( 0 , 0 , 0 , 0.5f ) ) ,
65+ background = normalTexture ,
5666 textColor = new Color ( 1 , 1 , 1 , 0.05f )
5767 } ,
5868 hover =
5969 {
60- background = UiToolbox . MakeWindowTex ( new Color ( 0.3f , 0.3f , 0.3f , 0.3f ) , new Color ( 0 , 1 , 1 , 0.5f ) ) ,
70+ background = hoverTexture ,
6171 textColor = new Color ( 1 , 1 , 1 , 0.3f )
6272 } ,
6373 onNormal =
6474 {
65- background = UiToolbox . MakeWindowTex ( new Color ( 0.3f , 0.3f , 0.3f , 0.6f ) , new Color ( 0 , 1 , 1 , 0.5f ) )
75+ background = onNormalTexture
6676 }
6777 } ;
6878
79+ sectionsTexture = UiToolbox . MakeTex ( 2 , 2 , new Color ( 0 , 0 , 0 , 0.3f ) ) ;
80+
6981 Sections = new GUIStyle ( GUI . skin . box )
7082 {
7183 normal =
7284 {
73- background = UiToolbox . MakeTex ( 2 , 2 , new Color ( 0 , 0 , 0 , 0.3f ) )
85+ background = sectionsTexture
7486 }
7587 } ;
7688
89+ sections2Texture = UiToolbox . MakeTexWithRoundedCorner ( new Color ( 0 , 0 , 0 , 0.8f ) ) ;
90+
7791 Sections2 = new GUIStyle ( GUI . skin . box )
7892 {
7993 normal =
8094 {
81- background = UiToolbox . MakeTexWithRoundedCorner ( new Color ( 0 , 0 , 0 , 0.8f ) )
95+ background = sections2Texture
8296 }
8397 } ;
8498
0 commit comments