public override void DeserializeSpecialData(string key, string value) { switch (key) { case "sctp": currentType = (ScreenPosType)int.Parse(value); UpdateIcon(); break; } }
/* * public override Vector4 NodeOperator() { * return new Color( Screen.width - base.rect.x + x * 0.66666f, Screen.height - base.rect.y + y * 0.66666f, 0, 0 ); * } */ public override void DrawLowerPropertyBox() { GUI.color = Color.white; EditorGUI.BeginChangeCheck(); //currentType = (ScreenPosType)EditorGUI.EnumPopup( lowerRect, currentType ); currentType = (ScreenPosType)UndoableEnumPopup(lowerRect, currentType, "switch screen position type"); if (EditorGUI.EndChangeCheck()) { UpdateIcon(); OnUpdateNode(); } }