Exemple #1
0
        private void DoArrowField(FileChooser arrow, int arrowOrientation, int arrowState)
        {
            EditorGUI.BeginChangeCheck();
            arrow.Path = workingBook.getArrowImagePath(arrowOrientation, arrowState);
            if (string.IsNullOrEmpty(arrow.Path))
            {
                arrow.Path = arrow.Empty;
                workingBook.setArrowImagePath(arrowOrientation, arrowState, arrow.Path);
                RefreshPathInformation(workingBook);
            }

            arrow.DoLayout(GUILayout.ExpandWidth(true));
            if (EditorGUI.EndChangeCheck())
            {
                workingBook.setArrowImagePath(arrowOrientation, arrowState, arrow.Path);
                RefreshPathInformation(workingBook);
            }
        }
Exemple #2
0
        private Texture2D LoadArrowTexture(BookDataControl book, int arrowType, int arrowMode)
        {
            var path = book.getArrowImagePath(arrowType, arrowMode);

            return(!string.IsNullOrEmpty(path) ? Controller.ResourceManager.getImage(path) : null);
        }