maint: added livewatch asset

This commit is contained in:
Chris
2025-08-31 18:14:07 -04:00
parent 7f5d95787b
commit ae2371a6fa
385 changed files with 150792 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
using UnityEditor;
using UnityEngine;
namespace Ingvar.LiveWatch.Editor
{
public static class Colors
{
public static readonly Color Background;
public static readonly Color BackgroundOdd;
public static readonly Color SegmentFrame;
public static readonly Color SegmentFrameInner;
public static readonly Color SegmentFill;
public static readonly Color SegmentFillOdd;
public static readonly Color GraphFill;
public static readonly Color GraphFillOdd;
public static readonly Color GraphLine;
public static readonly Color GraphLineSearch;
public static readonly Color CellDivider;
public static readonly Color CellBackgroundSelected;
public static readonly Color CellBackgroundSelectedGraph;
public static readonly Color CellSelectionLine;
public static readonly Color CellSelectionLineGraph;
public static readonly Color MetaInfoLine;
public static readonly Color ExtraTextLineGraph;
public static readonly Color32 PreviewCellEmpty;
public static readonly Color32 PreviewCellHasValue;
public static readonly Color32 PreviewCellHasValueOdd;
public static readonly Color32 PreviewCellOriginal;
public static readonly Color32 PreviewCellOriginalOdd;
public static readonly Color32 PreviewCellSearched;
public static readonly Color32 PreviewCellSearchedOdd;
public static readonly Color32 PreviewCellSearchedOriginal;
public static readonly Color32 PreviewCellSearchedOriginalOdd;
public static readonly Color32 PreviewOriginalEdge;
static Colors()
{
Background = EditorGUIUtility.isProSkin ? new Color32 (56, 56, 56, 255) : new Color32 (194, 194, 194, 255);
BackgroundOdd = Background + new Color32(6, 6, 6, 0);
SegmentFrame = EditorGUIUtility.isProSkin ? new Color32(80, 80, 80, 255) : new Color32(130, 130, 130, 255);
SegmentFrameInner = EditorGUIUtility.isProSkin ? new Color32(90, 90, 90, 40) : new Color32(140, 140, 140, 255);
SegmentFill = EditorGUIUtility.isProSkin ? new Color32(70, 70, 70, 255) : new Color32(160, 160, 160, 255);
SegmentFillOdd = SegmentFill + new Color32(6, 6, 6, 0);
GraphFill = EditorGUIUtility.isProSkin ? new Color32(80, 80, 80, 255) : new Color32(170, 170, 170, 255);
GraphFillOdd = SegmentFill + new Color32(6, 6, 6, 0);
GraphLine = EditorGUIUtility.isProSkin ? new Color32(100, 100, 100, 255) : new Color32(140, 140, 140, 255);
GraphLineSearch = new Color32(0, 100, 150, 255);
CellDivider = new Color32(90, 90, 90, 100);
CellBackgroundSelected = EditorGUIUtility.isProSkin ? new Color32(100, 100, 100, 200) : new Color32(150, 150, 150, 200);;
CellBackgroundSelectedGraph = EditorGUIUtility.isProSkin ? new Color32(120, 120, 120, 175) : new Color32(140, 140, 140, 225);;
CellSelectionLine = new Color32(0, 100, 150, 255);
CellSelectionLineGraph = new Color32(0, 100, 200, 100);
MetaInfoLine = EditorGUIUtility.isProSkin ? new Color32(150, 150, 150, 255) : new Color32(255, 255, 255, 255);
ExtraTextLineGraph = EditorGUIUtility.isProSkin ? new Color32(170, 170, 170, 255) : new Color32(255, 255, 255, 255);
PreviewCellEmpty = new Color32(0, 0, 0, 0);
PreviewOriginalEdge = new Color32(50, 50, 50, 80);
PreviewCellHasValue = new Color32(60, 60, 60, 80);
PreviewCellHasValueOdd = new Color32(70, 70, 70, 80);
PreviewCellOriginal = new Color32(100, 100, 100, 80);
PreviewCellOriginalOdd = new Color32(110, 110, 110, 80);
PreviewCellSearched = new Color32(0, 150, 250, 30);
PreviewCellSearchedOdd = new Color32(0, 160, 255, 35);
PreviewCellSearchedOriginal = new Color32(0, 150, 250, 50);
PreviewCellSearchedOriginalOdd = new Color32(0, 160, 255, 55);
}
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: c4130c7ebfa04ea8aff82105dedcbfaa
timeCreated: 1637702036
AssetOrigin:
serializedVersion: 1
productId: 324001
packageName: LiveWatch Lite | Debug with full history of changes
packageVersion: 1.0.1
assetPath: Assets/LiveWatchLite/Scripts/Editor/Predefined/Colors.cs
uploadId: 770587

View File

@@ -0,0 +1,60 @@
namespace Ingvar.LiveWatch.Editor
{
public static class Constants
{
public const float MouseScrollbarMultiplier = 10;
public const float ToolbarAreaHeight = 20;
public const float ToolbarClearButtonWidth = 50;
public const float ToolbarLiveButtonWidth = 50;
public const float ToolbarCollapseButtonWidth = 60;
public const float ToolbarSearchButtonWidth = 60;
public const float ToolbarSaveButtonWidth = 30;
public const float ToolbarLoadButtonWidth = 30;
public const float ToolbarOptionsButtonWidth = 30;
public const float ToolbarViewButtonWidth = 50;
public const float SearchAreaMinHeight = 46;
public const float SearchToolbarHeight = 20;
public const float SearchToolbarProgressBarMinWidth = 40;
public const float SearchToolbarAddWidth = 50;
public const float SearchToolbarRunWidth = 60;
public const float SearchToolbarAutoRunWidth = 60;
public const float SearchToolbarSpaceWidth = 40;
public const float SearchToolbarMoveWidth = 20;
public const float SearchLineHeight = 20;
public const float SearchConnectiveWidth = 50;
public const float SearchInvertWidth = 40;
public const float SearchTargetWidth = 55;
public const float SearchValueWidth = 70;
public const float SearchOperatorWidth = 115;
public const float SearchQueryMinWidth = 60;
public const float SearchCaseWidth = 50;
public const float SearchDeleteWidth = 20;
public const float VariablesAreaMinHeight = 100;
public const float VariableLabelMinWidth = 100;
public const float VariableLabelIndentWidth = 25;
public const float VariableValuesMinWidth = 100;
public const float VariableRowHeight = 30;
public const float VariableRowHeighMin = 17;
public const float VariableRowHeightMax = 80;
public const float VariableValueColumnWidth = 30;
public const float VariableValueColumnWidthMin = 1;
public const float VariableValueColumnWidthMax = 120;
public const float VariableLabelOffset = 10;
public const float VariableSelectionLineMinWidth = 3;
public const float VariableGraphMinValueHeight = 10;
public const float VerticalScrollWidth = 15;
public const float HorizontalScrollHeight = 15;
public const float InfoAreaMinHeight = 60;
public const float InfoHeaderCopyButtonWidth = 50;
public const int VariableValueFontSize = 11;
public const int VariableSelectedValueFontSize = 11;
public const int VariableGraphMinMaxFontSize = 10;
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: cd6b300b538a48c8a0973096e5f4f19f
timeCreated: 1636230183
AssetOrigin:
serializedVersion: 1
productId: 324001
packageName: LiveWatch Lite | Debug with full history of changes
packageVersion: 1.0.1
assetPath: Assets/LiveWatchLite/Scripts/Editor/Predefined/Constants.cs
uploadId: 770587

View File

@@ -0,0 +1,97 @@
using UnityEditor;
using UnityEngine;
namespace Ingvar.LiveWatch.Editor
{
public static class Styles
{
public static readonly GUIStyle VariableLabel;
public static readonly GUIStyle VariableFoldoutLabel;
public static readonly GUIStyle VariableGraphMaxLabel;
public static readonly GUIStyle VariableGraphMinLabel;
public static readonly GUIStyle VariableValue;
public static readonly GUIStyle VariableValueSelected;
public static readonly GUIStyle VariableValueLeft;
public static readonly GUIStyle VariableValueSelectedLeft;
public static readonly GUIStyle InfoValueText;
public static readonly GUIStyle InfoMetaText;
public static readonly GUIStyle InfoHeaderFoldout;
public static readonly GUIStyle InfoCopyButton;
public static readonly GUIStyle InfoCustomButton;
public static readonly GUIStyle SettingsSubTitleText;
public static readonly GUIStyle ElementBackground = (GUIStyle) "RL Element";
static Styles()
{
VariableLabel = new GUIStyle(EditorStyles.label);
VariableFoldoutLabel = new GUIStyle(EditorStyles.foldout);
VariableGraphMaxLabel = new GUIStyle(new GUIStyle(EditorStyles.label)
{
alignment = TextAnchor.UpperRight,
fontSize = Constants.VariableGraphMinMaxFontSize
});
VariableGraphMinLabel = new GUIStyle(new GUIStyle(EditorStyles.label)
{
alignment = TextAnchor.LowerRight,
fontSize = Constants.VariableGraphMinMaxFontSize
});
VariableValue = new GUIStyle(new GUIStyle(EditorStyles.label)
{
alignment = TextAnchor.MiddleCenter,
fontSize = Constants.VariableValueFontSize
});
VariableValueLeft = new GUIStyle(new GUIStyle(EditorStyles.label)
{
alignment = TextAnchor.MiddleLeft,
fontSize = Constants.VariableValueFontSize
});
VariableValueSelected = new GUIStyle(new GUIStyle(EditorStyles.boldLabel)
{
alignment = TextAnchor.MiddleCenter,
fontSize = Constants.VariableSelectedValueFontSize
});
VariableValueSelectedLeft = new GUIStyle(new GUIStyle(EditorStyles.boldLabel)
{
alignment = TextAnchor.MiddleLeft,
fontSize = Constants.VariableSelectedValueFontSize
});
InfoValueText = new GUIStyle(EditorStyles.label)
{
alignment = TextAnchor.UpperLeft,
wordWrap = true
};
InfoMetaText = "CN Message";
InfoHeaderFoldout = new GUIStyle(EditorStyles.foldout)
{
fontSize = 10,
fontStyle = FontStyle.Italic,
};
InfoCopyButton = new GUIStyle(EditorStyles.toolbarButton)
{
fixedHeight = 14,
fontSize = 10
};
InfoCustomButton = new GUIStyle(GUI.skin.button);
SettingsSubTitleText = new GUIStyle(EditorStyles.boldLabel)
{
alignment = TextAnchor.UpperLeft,
fontSize = 14,
};
}
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: e1767215ceea4e84913a4a9ecae3bd44
timeCreated: 1636575597
AssetOrigin:
serializedVersion: 1
productId: 324001
packageName: LiveWatch Lite | Debug with full history of changes
packageVersion: 1.0.1
assetPath: Assets/LiveWatchLite/Scripts/Editor/Predefined/Styles.cs
uploadId: 770587

View File

@@ -0,0 +1,304 @@
using UnityEditor;
using UnityEngine;
namespace Ingvar.LiveWatch.Editor
{
public static class Textures
{
public static Texture2D Dots => EditorGUIUtility.isProSkin ? WhiteDots : BlackDots;
public static Texture2D WhiteDots
{
get
{
if (whiteDots != null)
return whiteDots;
whiteDots = new Texture2D(8, 3);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(200, 200, 200, 255);
var w2 = new Color32(200, 200, 200, 100);
var w3 = new Color32(200, 200, 200, 30);
var w4 = new Color32(200, 200, 200, 20);
var w5 = new Color32(200, 200, 200, 5);
whiteDots.SetPixels(new Color[]
{
e, w5, e, e, e, e, w5, e,
w3, w1, w4, e, e, w3, w1, w4,
e, w2, e, e, e, e, w2, e,
});
whiteDots.Apply();
return whiteDots;
}
}
public static Texture2D BlueDots
{
get
{
if (blueDots != null)
return blueDots;
blueDots = new Texture2D(8, 3);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 150, 255, 255);
var w2 = new Color32(0, 150, 255, 150);
var w3 = new Color32(0, 150, 255, 60);
var w4 = new Color32(0, 150, 255, 40);
var w5 = new Color32(0, 150, 255, 15);
blueDots.SetPixels(new Color[]
{
e, w5, e, e, e, e, w5, e,
w3, w1, w4, e, e, w3, w1, w4,
e, w2, e, e, e, e, w2, e,
});
blueDots.Apply();
return blueDots;
}
}
public static Texture2D BlackDots
{
get
{
if (blackDots != null)
return blackDots;
blackDots = new Texture2D(8, 3);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 0, 0, 255);
var w2 = new Color32(0, 0, 0, 150);
var w3 = new Color32(0, 0, 0, 60);
var w4 = new Color32(0, 0, 0, 40);
var w5 = new Color32(0, 0, 0, 15);
blackDots.SetPixels(new Color[]
{
e, w5, e, e, e, e, w5, e,
w3, w1, w4, e, e, w3, w1, w4,
e, w2, e, e, e, e, w2, e,
});
blackDots.Apply();
return blackDots;
}
}
public static Texture2D WhiteTriangleTopLeft
{
get
{
if (whiteTriangleTopLeft != null)
return whiteTriangleTopLeft;
whiteTriangleTopLeft = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(TriangleColor, TriangleColor, TriangleColor, 255);
var w2 = new Color32(TriangleColor, TriangleColor, TriangleColor, 150);
whiteTriangleTopLeft.SetPixels(new Color[]
{
w2, e, e, e,
w1, w2, e, e,
w1, w1, w2, e,
w1, w1, w1, w2,
});
whiteTriangleTopLeft.Apply();
return whiteTriangleTopLeft;
}
}
public static Texture2D WhiteTriangleTopRight
{
get
{
if (whiteTriangleTopRight != null)
return whiteTriangleTopRight;
whiteTriangleTopRight = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(TriangleColor, TriangleColor, TriangleColor, 255);
var w2 = new Color32(TriangleColor, TriangleColor, TriangleColor, 150);
whiteTriangleTopRight.SetPixels(new Color[]
{
e, e, e, w2,
e, e, w2, w1,
e, w2, w1, w1,
w2, w1, w1, w1,
});
whiteTriangleTopRight.Apply();
return whiteTriangleTopRight;
}
}
public static Texture2D WhiteTriangleBottomLeft
{
get
{
if (whiteTriangleBottomLeft != null)
return whiteTriangleBottomLeft;
whiteTriangleBottomLeft = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(TriangleColor, TriangleColor, TriangleColor, 255);
var w2 = new Color32(TriangleColor, TriangleColor, TriangleColor, 150);
whiteTriangleBottomLeft.SetPixels(new Color[]
{
w1, w1, w1, w2,
w1, w1, w2, e,
w1, w2, e, e,
w2, e, e, e,
});
whiteTriangleBottomLeft.Apply();
return whiteTriangleBottomLeft;
}
}
public static Texture2D WhiteTriangleBottomRight
{
get
{
if (whiteTriangleBottomRight != null)
return whiteTriangleBottomRight;
whiteTriangleBottomRight = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(TriangleColor, TriangleColor, TriangleColor, 255);
var w2 = new Color32(TriangleColor, TriangleColor, TriangleColor, 150);
whiteTriangleBottomRight.SetPixels(new Color[]
{
w2, w1, w1, w1,
e, w2, w1, w1,
e, e, w2, w1,
e, e, e, w2,
});
whiteTriangleBottomRight.Apply();
return whiteTriangleBottomRight;
}
}
public static Texture2D BlueTriangleTopLeft
{
get
{
if (blueTriangleTopLeft != null)
return blueTriangleTopLeft;
blueTriangleTopLeft = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 150, 255, 255);
var w2 = new Color32(0, 150, 255, 150);
blueTriangleTopLeft.SetPixels(new Color[]
{
w2, e, e, e,
w1, w2, e, e,
w1, w1, w2, e,
w1, w1, w1, w2,
});
blueTriangleTopLeft.Apply();
return blueTriangleTopLeft;
}
}
public static Texture2D BlueTriangleTopRight
{
get
{
if (blueTriangleTopRight != null)
return blueTriangleTopRight;
blueTriangleTopRight = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 150, 255, 255);
var w2 = new Color32(0, 150, 255, 150);
blueTriangleTopRight.SetPixels(new Color[]
{
e, e, e, w2,
e, e, w2, w1,
e, w2, w1, w1,
w2, w1, w1, w1,
});
blueTriangleTopRight.Apply();
return blueTriangleTopRight;
}
}
public static Texture2D BlueTriangleBottomLeft
{
get
{
if (blueTriangleBottomLeft != null)
return blueTriangleBottomLeft;
blueTriangleBottomLeft = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 150, 255, 255);
var w2 = new Color32(0, 150, 255, 150);
blueTriangleBottomLeft.SetPixels(new Color[]
{
w1, w1, w1, w2,
w1, w1, w2, e,
w1, w2, e, e,
w2, e, e, e,
});
blueTriangleBottomLeft.Apply();
return blueTriangleBottomLeft;
}
}
public static Texture2D BlueTriangleBottomRight
{
get
{
if (blueTriangleBottomRight != null)
return blueTriangleBottomRight;
blueTriangleBottomRight = new Texture2D(4, 4, TextureFormat.RGBA32, false);
var e = new Color32(0, 0, 0, 0);
var w1 = new Color32(0, 150, 255, 255);
var w2 = new Color32(0, 150, 255, 150);
blueTriangleBottomRight.SetPixels(new Color[]
{
w2, w1, w1, w1,
e, w2, w1, w1,
e, e, w2, w1,
e, e, e, w2,
});
blueTriangleBottomRight.Apply();
return blueTriangleBottomRight;
}
}
private static Texture2D whiteDots;
private static Texture2D blackDots;
private static Texture2D blueDots;
private static Texture2D whiteTriangleTopLeft;
private static Texture2D whiteTriangleTopRight;
private static Texture2D whiteTriangleBottomLeft;
private static Texture2D whiteTriangleBottomRight;
private static Texture2D blueTriangleTopLeft;
private static Texture2D blueTriangleTopRight;
private static Texture2D blueTriangleBottomLeft;
private static Texture2D blueTriangleBottomRight;
private const byte TriangleColor = 150;
}
}

View File

@@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 7c71c5a3984d4d18891c622b864c7776
timeCreated: 1638208750
AssetOrigin:
serializedVersion: 1
productId: 324001
packageName: LiveWatch Lite | Debug with full history of changes
packageVersion: 1.0.1
assetPath: Assets/LiveWatchLite/Scripts/Editor/Predefined/Textures.cs
uploadId: 770587