Close ColorSelector on portchange
This commit is contained in:
@@ -26490,6 +26490,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
cms: {fileID: 89481405}
|
||||
marker: {fileID: 755573186}
|
||||
ColorSelector: {fileID: 1728979212}
|
||||
--- !u!222 &1541654566
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -8,6 +8,7 @@ public class PortSelectorButton : MonoBehaviour
|
||||
public ChildModelSelector cms;
|
||||
public GameObject marker;
|
||||
public Action RemoveOtherMarkers;
|
||||
public ColorSelector ColorSelector;
|
||||
public string PortID { get; set; }
|
||||
public int PortIndex { set; get; }
|
||||
|
||||
@@ -17,7 +18,8 @@ public class PortSelectorButton : MonoBehaviour
|
||||
}
|
||||
void OnClick()
|
||||
{
|
||||
Debug.Log($"Opening CMS on {this}");
|
||||
Debug.Log($"Changing Port to {this}");
|
||||
ColorSelector.ResetThis();
|
||||
cms.PortID = PortID;
|
||||
cms.PortIndex = PortIndex;
|
||||
cms.AssignButtons(); // rebuilds GUI
|
||||
|
||||
Reference in New Issue
Block a user