A game about forced loneliness, made by TACStudios
1using System;
2using System.Linq;
3using UnityEditor.Graphing;
4using UnityEngine;
5using UnityEngine.UIElements;
6
7namespace UnityEditor.ShaderGraph.Drawing
8{
9 class NodeSettingsView : VisualElement
10 {
11 VisualElement m_ContentContainer;
12
13 public NodeSettingsView()
14 {
15 pickingMode = PickingMode.Ignore;
16 styleSheets.Add(Resources.Load<StyleSheet>("Styles/NodeSettings"));
17 var uxml = Resources.Load<VisualTreeAsset>("UXML/NodeSettings");
18 uxml.CloneTree(this);
19 // Get the element we want to use as content container
20 m_ContentContainer = this.Q("contentContainer");
21 RegisterCallback<MouseDownEvent>(OnMouseDown);
22 RegisterCallback<MouseUpEvent>(OnMouseUp);
23 }
24
25 void OnMouseUp(MouseUpEvent evt)
26 {
27 evt.StopPropagation();
28 }
29
30 void OnMouseDown(MouseDownEvent evt)
31 {
32 evt.StopPropagation();
33 }
34
35 public override VisualElement contentContainer
36 {
37 get { return m_ContentContainer; }
38 }
39 }
40}