Skip to content

Commit

Permalink
Modify Add component menu path
Browse files Browse the repository at this point in the history
  • Loading branch information
ls9512 committed Mar 27, 2024
1 parent 69ab13d commit a2c9e72
Show file tree
Hide file tree
Showing 21 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
![last](https://img.shields.io/github/last-commit/ls9512/UBind)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)

[![issue](https://img.shields.io/github/issues/ls9512/UTween)](https://github.com/ls9512/UBind/issues)
[![issue](https://img.shields.io/github/issues/ls9512/UBind)](https://github.com/ls9512/UBind/issues)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/ls9512/UBind/pulls)
[![Updates](https://img.shields.io/badge/Platform-%20iOS%20%7C%20OS%20X%20%7C%20Android%20%7C%20Windows%20%7C%20Linux%20-brightgreen.svg)](https://github.com/ls9512/UBind)

Expand Down
2 changes: 1 addition & 1 deletion .github/README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
![last](https://img.shields.io/github/last-commit/ls9512/UBind)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)

[![issue](https://img.shields.io/github/issues/ls9512/UTween)](https://github.com/ls9512/UBind/issues)
[![issue](https://img.shields.io/github/issues/ls9512/UBind)](https://github.com/ls9512/UBind/issues)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/ls9512/UBind/pulls)
[![Updates](https://img.shields.io/badge/Platform-%20iOS%20%7C%20OS%20X%20%7C%20Android%20%7C%20Windows%20%7C%20Linux%20-brightgreen.svg)](https://github.com/ls9512/UBind)

Expand Down
2 changes: 1 addition & 1 deletion Extension/TextMeshPro/Script/TMPTextBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/TMP Text Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/TMP Text Binder")]
public class TMPTextBinder : ComponentBinder<TMP_Text, string, RuntimeTMPTextBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Extension/TextMeshPro/Script/TMPTextFormatValueBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/TMP Text Format Value Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/TMP Text Format Value Binder")]
public class TMPTextFormatValueBinder : ComponentBinder<TMP_Text, float, RuntimeTMPTextFormatValueBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/PropertyBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Property Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Property Binder")]
public class PropertyBinder : ComponentBinder<Component, object, RuntimePropertyBinder<Component>>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/TypeBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class TypeBindMap
public string TargetProperty;
}

[AddComponentMenu("Data Binding/Type Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Type Binder")]
public class TypeBinder : MonoBehaviour
{
public string Container = DataContainer.Default;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/CanvasGroupBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/CanvasGroup Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/CanvasGroup Binder")]
public class CanvasGroupBinder : ComponentBinder<CanvasGroup, float, RuntimeCanvasGroupBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/ColorBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Color Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Color Binder")]
public class ColorBinder : ComponentBinder<Graphic, Color, RuntimeColorBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/DropdownBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Dropdown Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Dropdown Binder")]
public class DropdownBinder : ComponentBinder<Dropdown, int, RuntimeDropdownBinder>
{

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/DropdownListBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Dropdown List Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Dropdown List Binder")]
public class DropdownListBinder : ComponentBinder<Dropdown, List<Dropdown.OptionData>, RuntimeDropdownListBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/ImageBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Image Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Image Binder")]
public class ImageBinder : ComponentBinder<Image, Sprite, RuntimeImageBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/ImageFillAmountBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Image FillAmount Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Image FillAmount Binder")]
public class ImageFillAmountBinder : ComponentBinder<Image, float, RuntimeImageFillAmountBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/InputFieldBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/InputField Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/InputField Binder")]
public class InputFieldBinder : ComponentBinder<InputField, string, RuntimeInputDataBinder>
{

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/RawImageBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/RawImage Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/RawImage Binder")]
public class RawImageBinder : ComponentBinder<RawImage, Texture, RuntimeRawImageBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/ScrollbarBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Scrollbar Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Scrollbar Binder")]
public class ScrollbarBinder : ComponentBinder<Scrollbar, float, RuntimeScrollbarBinder>
{

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/SliderBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Slider Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Slider Binder")]
public class SliderBinder : ComponentBinder<Slider, float, RuntimeSliderBinder>
{

Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/TextBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Text Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Text Binder")]
public class TextBinder : ComponentBinder<Text, string, RuntimeTextBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/TextFontSizeBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Text FontSize Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Text FontSize Binder")]
public class TextFontSizeBinder : ComponentBinder<Text, int, RuntimeTextFontSizeBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/TextFormatValueBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Text Format Value Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Text Format Value Binder")]
public class TextFormatValueBinder : ComponentBinder<Text, float, RuntimeTextFormatValueBinder>
{
public override bool NeedUpdate => true;
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Script/Component/UI/ToggleBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace Aya.DataBinding
{
[AddComponentMenu("Data Binding/Toggle Binder")]
[AddComponentMenu(UBind.AddComponentMenuPath + "/Toggle Binder")]
public class ToggleBinder : ComponentBinder<Toggle, bool, ToggleDataBinder>
{

Expand Down
5 changes: 3 additions & 2 deletions Runtime/Script/UBind.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using Aya.Sample;
using System;
using System;
using System.Reflection;

namespace Aya.DataBinding
{
public static class UBind
{
public const string AddComponentMenuPath = nameof(UBind);

#region Converter

public static void RegisterConverter(Type sourceType, Type targetType, DataConverter dataConverter)
Expand Down

0 comments on commit a2c9e72

Please sign in to comment.