コード例 #1
0
        private void DrawPoint(IGUIState guiState, Control control, int index)
        {
            var position = GetPoint(index).position;

            if (guiState.hotControl == control.actionID && control.hotLayoutData.index == index || IsSelected(index))
            {
                m_Drawer.DrawPointSelected(position);
            }
            else if (guiState.hotControl == 0 && guiState.nearestControl == control.ID && control.layoutData.index == index)
            {
                m_Drawer.DrawPointHovered(position);
            }
            else
            {
                m_Drawer.DrawPoint(position);
            }
        }
コード例 #2
0
ファイル: SpriteShapeEditorTool.cs プロジェクト: 0geova0/Jam
 void IDrawer.DrawPointSelected(Vector3 position)
 {
     m_Drawer.DrawPointSelected(position);
 }