补充样式默认值
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
namespace: default
|
namespace: default
|
||||||
|
|
||||||
/button/TargetGraphic/ColorTint:UnityEngine.UI.ColorBlock/ {
|
button/TargetGraphic/ColorTint:UnityEngine.UI.ColorBlock/ {
|
||||||
.NormalColor = (1,1,1,1)
|
.NormalColor = (1,1,1,1)
|
||||||
.HighlightedColor = (0.96,0.96,0.96,1)
|
.HighlightedColor = (0.96,0.96,0.96,1)
|
||||||
.PressedColor = (0.78,0.78,0.78,1)
|
.PressedColor = (0.78,0.78,0.78,1)
|
||||||
@@ -12,7 +12,23 @@ namespace: default
|
|||||||
.DisabledColor = (0.6,0.6,0.6,0.8)
|
.DisabledColor = (0.6,0.6,0.6,0.8)
|
||||||
}
|
}
|
||||||
|
|
||||||
/toggle/TargetGraphic/ColorTint:UnityEngine.UI.ColorBlock/ {
|
button/TargetGraphic/SpriteState:UnityEngine.UI.SpriteState/ {
|
||||||
|
.NormalColor = guid::UnityEngine.Sprite
|
||||||
|
.HighlightedColor = guid::UnityEngine.Sprite
|
||||||
|
.PressedColor = guid::UnityEngine.Sprite
|
||||||
|
.SelectedColor = guid::UnityEngine.Sprite
|
||||||
|
.DisabledColor = guid::UnityEngine.Sprite
|
||||||
|
}
|
||||||
|
|
||||||
|
button/TargetGraphic/Animation/ {
|
||||||
|
.NormalColor = None
|
||||||
|
.HighlightedColor = None
|
||||||
|
.PressedColor = None
|
||||||
|
.SelectedColor = None
|
||||||
|
.DisabledColor = None
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle/TargetGraphic/ColorTint:UnityEngine.UI.ColorBlock/ {
|
||||||
.NormalColor = (1,1,1,1)
|
.NormalColor = (1,1,1,1)
|
||||||
.HighlightedColor = (0.96,0.96,0.96,1)
|
.HighlightedColor = (0.96,0.96,0.96,1)
|
||||||
.PressedColor = (0.78,0.78,0.78,1)
|
.PressedColor = (0.78,0.78,0.78,1)
|
||||||
@@ -20,10 +36,24 @@ namespace: default
|
|||||||
.DisabledColor = (0.6,0.6,0.6,0.8)
|
.DisabledColor = (0.6,0.6,0.6,0.8)
|
||||||
}
|
}
|
||||||
|
|
||||||
/image/ColorTint:UnityEngine.UI.ColorBlock/ {
|
toggle/TargetGraphic/SpriteState:UnityEngine.UI.SpriteState/ {
|
||||||
|
.NormalColor = guid::UnityEngine.Sprite
|
||||||
|
.HighlightedColor = guid::UnityEngine.Sprite
|
||||||
|
.PressedColor = guid::UnityEngine.Sprite
|
||||||
|
.SelectedColor = guid::UnityEngine.Sprite
|
||||||
|
.DisabledColor = guid::UnityEngine.Sprite
|
||||||
|
}
|
||||||
|
|
||||||
|
toggle/TargetGraphic/Animation/ {
|
||||||
|
.NormalColor = None
|
||||||
|
.HighlightedColor = None
|
||||||
|
.PressedColor = None
|
||||||
|
.SelectedColor = None
|
||||||
|
.DisabledColor = None
|
||||||
|
}
|
||||||
|
|
||||||
|
image/ColorTint:UnityEngine.UI.ColorBlock/ {
|
||||||
.NormalColor = (1,1,1,1)
|
.NormalColor = (1,1,1,1)
|
||||||
.HighlightedColor = (0.96,0.96,0.96,1)
|
.Sprite = guid::UnityEngine.Sprite
|
||||||
.PressedColor = (0.78,0.78,0.78,1)
|
.Material = guid::UnityEngine.Material
|
||||||
.SelectedColor = (0.96,0.96,0.96,1)
|
|
||||||
.DisabledColor = (0.6,0.6,0.6,0.8)
|
|
||||||
}
|
}
|
||||||
@@ -35,11 +35,11 @@ namespace XericUI.OverrideUI
|
|||||||
|
|
||||||
[Header("样式表状态")] [SerializeField]
|
[Header("样式表状态")] [SerializeField]
|
||||||
[Tooltip("五态颜色样式块(ColorTint)")]
|
[Tooltip("五态颜色样式块(ColorTint)")]
|
||||||
private StyleSheetState m_ColorState = StyleSheetState.Default;
|
private StyleSheetState m_ColorState = new StyleSheetState("button", Transition.ColorTint);
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("五态纹理样式块(SpriteState)")]
|
[Tooltip("五态纹理样式块(SpriteState)")]
|
||||||
private StyleSheetState m_TextureState = StyleSheetState.CreateTexture();
|
private StyleSheetState m_TextureState = new StyleSheetState("button", Transition.SpriteSwap);
|
||||||
|
|
||||||
[SerializeField] [Tooltip("启用样式表驱动过渡(关闭则回退为 Unity ColorBlock)")]
|
[SerializeField] [Tooltip("启用样式表驱动过渡(关闭则回退为 Unity ColorBlock)")]
|
||||||
private bool m_EnableStyleTransition = true;
|
private bool m_EnableStyleTransition = true;
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ namespace XericUI.OverrideUI
|
|||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("颜色样式路径")]
|
[Tooltip("颜色样式路径")]
|
||||||
private StyleField m_ColorStyle = new StyleField();
|
private StyleField m_ColorStyle = new StyleField("image/ColorTint/NormalColor");
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("纹理/精灵样式路径")]
|
[Tooltip("纹理/精灵样式路径")]
|
||||||
private StyleField m_TextureStyle = new StyleField();
|
private StyleField m_TextureStyle = new StyleField("image/ColorTint/Sprite");
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("材质样式路径")]
|
[Tooltip("材质样式路径")]
|
||||||
private StyleField m_MaterialStyle = new StyleField();
|
private StyleField m_MaterialStyle = new StyleField("image/ColorTint/Material");
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("启用样式表自动刷新")]
|
[Tooltip("启用样式表自动刷新")]
|
||||||
|
|||||||
@@ -36,11 +36,11 @@ namespace XericUI.OverrideUI
|
|||||||
[Header("样式表状态")]
|
[Header("样式表状态")]
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("五态颜色样式块(ColorTint)")]
|
[Tooltip("五态颜色样式块(ColorTint)")]
|
||||||
private StyleSheetState m_ColorState = StyleSheetState.Default;
|
private StyleSheetState m_ColorState = new StyleSheetState("toggle", Transition.ColorTint);
|
||||||
|
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
[Tooltip("五态纹理样式块(SpriteState)")]
|
[Tooltip("五态纹理样式块(SpriteState)")]
|
||||||
private StyleSheetState m_TextureState = StyleSheetState.CreateTexture();
|
private StyleSheetState m_TextureState = new StyleSheetState("toggle", Transition.SpriteSwap);
|
||||||
|
|
||||||
[Header("Toggle 专用")]
|
[Header("Toggle 专用")]
|
||||||
[SerializeField]
|
[SerializeField]
|
||||||
|
|||||||
Reference in New Issue
Block a user