Skip to content

Commit

Permalink
Merge pull request #25 from deadlykam/features-a
Browse files Browse the repository at this point in the history
Features a
  • Loading branch information
deadlykam authored Sep 2, 2023
2 parents c017e18 + 89097a2 commit 859b408
Show file tree
Hide file tree
Showing 46 changed files with 1,099 additions and 42 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 8633442b094ff784aaeae2674bb3918d, type: 3}
m_Name: DefaultFolderSelectSettings
m_EditorClassIdentifier:
_data: []

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bb457a5890f062349bb79df41dc0cf36, type: 3}
m_Name: Paths_RequestObject
m_EditorClassIdentifier:
_paths:
- Assets/KamranWali/CodeOptPro/SO_Data
- Assets/KamranWali/CodeOptPro/SO_Data

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;

namespace KamranWali.CodeOptPro.CustomClasses
{
[Serializable]
public class FolderSelectData
{
public string name;
public string path;

public FolderSelectData(string name, string path)
{
this.name = name;
this.path = path;
}

public FolderSelectData() : this("", "") { }
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using KamranWali.CodeOptPro.ScriptableObjects.FixedVars;
using UnityEditor;
using UnityEngine;

namespace KamranWali.CodeOptPro.Editor
{
public abstract class BaseCodeOptPro : EditorWindow
{
//[SerializeField] protected FixedStringVar version;

private string _log;
#region Logo Fields
private bool _isSetLogo;
Expand All @@ -32,8 +29,9 @@ private void OnGUI()
_isSetLogo = true;
}

_scrollPos = EditorGUILayout.BeginScrollView(_scrollPos);
InitInput();
_scrollPos = EditorGUILayout.BeginScrollView(_scrollPos);
InitInput_Scroll();

EditorGUI.BeginDisabledGroup(true);
_log = EditorGUILayout.TextArea(_log);
Expand Down Expand Up @@ -73,8 +71,13 @@ private void OnGUI()
protected string GetVersion() => CodeOptProSetupAuto.version;

/// <summary>
/// This method initializes inputs and is called from OnGUI() method.
/// This method initializes inputs and is called from OnGUI() method, is NOT part of the scroll view.
/// </summary>
protected abstract void InitInput();

/// <summary>
/// This method initializes inputs and is called from OnGUI() method, also is part of the scroll view.
/// </summary>
protected abstract void InitInput_Scroll();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private static void Init()
window.Show(); // Opening the window
}

protected override void InitInput()
protected override void InitInput() { }

protected override void InitInput_Scroll()
{
if (GUILayout.Button(new GUIContent("SCENE SETUP", _setupSceneToolTip))) SceneSetup();
EditorGUILayout.BeginVertical("Box");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace KamranWali.CodeOptPro.Editor
[InitializeOnLoad]
public static class CodeOptProSetupAuto
{
public static readonly string version = "Version - v1.2.0";
public static readonly string version = "Version - v1.3.0";
private static MonoAdvManager_Call[] _managerCallers;
private static MonoAdvManager[] _managers;
private static UpdateManagerLocal[] _ums_Local;
Expand Down
Loading

0 comments on commit 859b408

Please sign in to comment.