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