Initial commit

This commit is contained in:
2026-03-03 00:39:30 +05:00
commit fc01f07d9b
29933 changed files with 5353098 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
using UnityEngine;
namespace Unity.VisualScripting
{
public class StickyNote : GraphElement<IGraph>
{
[DoNotSerialize] public static readonly Color defaultColor = new Color(.969f, .91f, .624f);
public StickyNote() : base() { }
[Serialize] public Rect position { get; set; }
[Serialize] public string title { get; set; } = "Sticky Note";
[Serialize]
[InspectorTextArea(minLines = 1)]
public string body { get; set; }
[Serialize] [Inspectable] public ColorEnum colorTheme { get; set; }
public enum ColorEnum
{
Classic,
Black,
Dark,
Orange,
Green,
Blue,
Red,
Purple,
Teal,
}
public static Color GetStickyColor(ColorEnum enumValue)
{
switch (enumValue)
{
case ColorEnum.Black:
return new Color(.122f, .114f, .09f);
case ColorEnum.Dark:
return new Color(.184f, .145f, .024f);
case ColorEnum.Orange:
return new Color(.988f, .663f, .275f);
case ColorEnum.Green:
return new Color(.376f, .886f, .655f);
case ColorEnum.Blue:
return new Color(.518f, .725f, .855f);
case ColorEnum.Red:
return new Color(1f, .502f, .502f);
case ColorEnum.Purple:
return new Color(.98f, .769f, .949f);
case ColorEnum.Teal:
return new Color(.475f, .878f, .89f);
default:
//Classic
return new Color(.969f, .91f, .624f);
}
}
public static Color GetFontColor(ColorEnum enumValue)
{
switch (enumValue)
{
case ColorEnum.Black:
case ColorEnum.Dark:
return Color.white;
default:
return Color.black;
}
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ce4f0beaed75f4949a8bab86dd9acba7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: