public override void Enable() { selectlist.Clear(); selectset.Clear(); _update_mesh = true; _render_mesh = true; _repaint_menu = true; _axiscroll = Vector2.zero; _socketscroll = Vector2.zero; _selectdisplay.Enable(); _meshdisplay.Enable(); _axilist = new ReorderableList(_axilabels, typeof(string), false, false, false, false); _axilist.showDefaultBackground = false; _axilist.headerHeight = 0; _axilist.footerHeight = 0; _axilist.elementHeightCallback += SocketAxiHeight; _axilist.drawNoneElementCallback += DrawSocketAxiNone; _axilist.drawElementCallback += DrawSocketAxi; _axilist.drawElementBackgroundCallback += DrawSocketAxiBackground; _socketlist = new ReorderableList(_sockets, typeof(int), true, false, false, false); _socketlist.showDefaultBackground = false; _socketlist.headerHeight = 0; _socketlist.footerHeight = 0; _socketlist.elementHeight = VxlGUI.MED_BAR; _socketlist.drawNoneElementCallback += DrawSocketNone; _socketlist.drawElementCallback += DrawSocket; _socketlist.drawElementBackgroundCallback += DrawSocketBackground; _socketlist.onReorderCallbackWithDetails += ReorderSocket; _socketlist.onSelectCallback += SelectSocket; }
public override void Enable() { _update_mesh = true; _repaint_menu = true; _render_mesh = true; _scroll = Vector2.zero; _selectdisplay.Enable(); selectlist.Clear(); selectset.Clear(); //initialize triangle list _trianglelist = new ReorderableList(_triangles, typeof(Triangle), true, false, false, false); _trianglelist.showDefaultBackground = false; _trianglelist.headerHeight = 0; _trianglelist.footerHeight = 0; _trianglelist.elementHeight = (4 * VxlGUI.MED_BAR) + (5 * VxlGUI.SM_SPACE); _trianglelist.drawNoneElementCallback += DrawTriangleNoneElement; _trianglelist.drawElementBackgroundCallback += DrawTriangleElementBackground; _trianglelist.drawElementCallback += DrawTriangleElement; _trianglelist.onReorderCallbackWithDetails += ReorderTriangleElements; _trianglelist.onSelectCallback += SelectTriangle; }