Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
- Show a warning message on the dropdown when libndi is not ready.
- Hide the mouse cursor when an empty area is clicked.
  • Loading branch information
keijiro committed Jul 19, 2019
1 parent 087bff2 commit 38bcd6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Assets/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ MonoBehaviour:
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: Option A
m_Text: libndi is not ready
--- !u!222 &1590606018
CanvasRenderer:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -1157,11 +1157,7 @@ MonoBehaviour:
m_Value: 0
m_Options:
m_Options:
- m_Text: Option A
m_Image: {fileID: 0}
- m_Text: Option B
m_Image: {fileID: 0}
- m_Text: Option C
- m_Text: libndi is not ready
m_Image: {fileID: 0}
m_OnValueChanged:
m_PersistentCalls:
Expand Down
1 change: 1 addition & 0 deletions Assets/SourceSelector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public void OnClickEmptyArea()
{
var go = _dropdown.gameObject;
go.SetActive(!go.activeSelf);
Cursor.visible = go.activeSelf;
}
}
}

0 comments on commit 38bcd6e

Please sign in to comment.