// -------------------------
        // Draw method
        // ---------------------
        public void draw()
        {
            if (!Usable)
            {
                return;
            }

            EditorGUI.BeginChangeCheck();
            var newScannerMessage = EditorGUILayout.TextField("QR.QRScannerEffectEditor.Message".Traslate(), effect.ScannerMessage, new GUILayoutOption[0]);

            if (EditorGUI.EndChangeCheck())
            {
                Controller.Instance.AddTool(new ChangeValueTool <QRScannerEffect, string>(effect, newScannerMessage, "ScannerMessage"));
            }
            EditorGUI.BeginChangeCheck();
            var newSelectionType = (QRScannerEffect.ListType)EditorGUILayout.Popup("QR.QRScannerEffectEditor.ListType".Traslate(), (int)effect.SelectionType, listTypeNames);

            if (EditorGUI.EndChangeCheck())
            {
                Controller.Instance.AddTool(ChangeEnumValueTool.Create(effect, newSelectionType, "SelectionType"));
            }

            UpdateEffectQRIds();
            UpdateAvailableQRIds();
            qrIdReorderableList.DoLayoutList();
        }
Beispiel #2
0
        public void setMethod(Completable.Score.ScoreMethod scoreMethod)
        {
            if (getMethod() == scoreMethod)
            {
                return;
            }

            if (scoreMethod != Completable.Score.ScoreMethod.SINGLE)
            {
                score.setId("");
            }
            else
            {
                score.setSubScores(new List <Completable.Score>());
                scoreDataControls.Clear();
            }

            Controller.Instance.AddTool(ChangeEnumValueTool.Create(score, scoreMethod, "getMethod", "setMethod"));
        }
Beispiel #3
0
 public void setStorageType(TrackerConfig.StorageType storageType)
 {
     controller.AddTool(ChangeEnumValueTool.Create(trackerConfig, storageType, "getStorageType",
                                                   "setStorageType"));
 }
Beispiel #4
0
 public void setTraceFormat(TrackerConfig.TraceFormat traceFormat)
 {
     controller.AddTool(ChangeEnumValueTool.Create(trackerConfig, traceFormat, "getTraceFormat",
                                                   "setTraceFormat"));
 }
 public void setType(Completable.Progress.ProgressType type)
 {
     Controller.Instance.AddTool(ChangeEnumValueTool.Create(progress, type, "getType", "setType"));
 }
 public void setType(Completable.Milestone.MilestoneType type)
 {
     Controller.Instance.AddTool(ChangeEnumValueTool.Create(milestone, type, "getType", "setType"));
 }
Beispiel #7
0
 public void setType(Completable.Score.ScoreType scoreType)
 {
     score.setId("");
     Controller.Instance.AddTool(ChangeEnumValueTool.Create(score, scoreType, "getType", "setType"));
 }