Skip to content

Commit

Permalink
Merge pull request #12 from VirtueSky/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
VirtueSky authored Aug 22, 2024
2 parents 9188a16 + 0882398 commit 4f26072
Show file tree
Hide file tree
Showing 386 changed files with 2,347 additions and 71,702 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
### 1: Download the repo and drop it into folder `Assets`
### 2: Add the line below to `Packages/manifest.json`

for version `2.9.6`
for version `2.9.7`
```csharp
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#2.9.6",
"com.virtuesky.sunflower":"https://github.com/VirtueSky/sunflower.git#2.9.7",
```

## Includes modules
Expand Down
14 changes: 7 additions & 7 deletions VirtueSky/Advertising/Editor/AdSettingEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void Draw()
serializedObject.Update();
Initialize();
// EditorGUILayout.LabelField("ADS SETTING", EditorStyles.boldLabel);
GuiLine(2);
//GuiLine(2);
GUILayout.Space(10);
EditorGUILayout.PropertyField(_adCheckingInterval);
EditorGUILayout.PropertyField(_adLoadingInterval);
Expand Down Expand Up @@ -122,8 +122,8 @@ public override void OnInspectorGUI()

void SetupMax()
{
EditorGUILayout.LabelField("MAX", EditorStyles.boldLabel);
GuiLine(2);
EditorGUILayout.LabelField("Applovin - Max", EditorStyles.boldLabel);
GuiLine(1);
GUILayout.Space(10);
EditorGUILayout.PropertyField(_sdkKey);
EditorGUILayout.PropertyField(_applovinEnableAgeRestrictedUser);
Expand Down Expand Up @@ -196,8 +196,8 @@ void SetupMax()

void SetupAdmob()
{
EditorGUILayout.LabelField("ADMOB", EditorStyles.boldLabel);
GuiLine(2);
EditorGUILayout.LabelField("Google - Admob", EditorStyles.boldLabel);
GuiLine(1);
GUILayout.Space(10);
EditorGUILayout.BeginHorizontal();
EditorGUILayout.PropertyField(_admobBannerVariable);
Expand Down Expand Up @@ -279,8 +279,8 @@ void SetupAdmob()

void SetupIronSource()
{
EditorGUILayout.LabelField("IRON-SOURCE", EditorStyles.boldLabel);
GuiLine(2);
EditorGUILayout.LabelField("LevelPlay - IronSource", EditorStyles.boldLabel);
GuiLine(1);
GUILayout.Space(10);
EditorGUILayout.PropertyField(_androidAppKey);
EditorGUILayout.PropertyField(_iOSAppKey);
Expand Down
8 changes: 4 additions & 4 deletions VirtueSky/AssetFinder/Editor/AssetFinderWindowAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -732,10 +732,10 @@ protected void OnGUI2()
return;
}

EditorGUI.DrawRect(new Rect(0, 0, position.width, position.height),
GameDataEditor.ColorBackgroundRectWindowSunflower.ToColor());
GUI.contentColor = GameDataEditor.ColorTextContentWindowSunflower.ToColor();
GUI.backgroundColor = GameDataEditor.ColorContentWindowSunflower.ToColor();
// EditorGUI.DrawRect(new Rect(0, 0, position.width, position.height),
// GameDataEditor.ColorBackgroundRectWindowSunflower.ToColor());
// GUI.contentColor = GameDataEditor.ColorTextContentWindowSunflower.ToColor();
// GUI.backgroundColor = GameDataEditor.ColorContentWindowSunflower.ToColor();
if (sp1 == null) InitPanes();

DrawHeader();
Expand Down
17 changes: 12 additions & 5 deletions VirtueSky/ControlPanel/CPAboutDrawer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using UnityEditor;
using UnityEngine;
using VirtueSky.UtilsEditor;

namespace VirtueSky.ControlPanel.Editor
{
Expand All @@ -10,7 +11,9 @@ public static void OnDrawAbout(Rect position, Action drawSetting = null)
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("ABOUT", EditorStyles.boldLabel);
GUILayout.BeginHorizontal();
GUILayout.BeginVertical();
CPUtility.DrawHeaderIcon(StatePanelControl.About, "About");
GUILayout.Space(10);
GUILayout.TextArea("Name: Sunflower", EditorStyles.boldLabel);
GUILayout.TextArea(
Expand All @@ -30,12 +33,16 @@ public static void OnDrawAbout(Rect position, Action drawSetting = null)
Application.OpenURL("https://github.com/VirtueSky/sunflower/wiki");
}

GUILayout.Space(10);

GUILayout.EndVertical();
GUILayout.Box(EditorResources.IconVirtueSky, GUIStyle.none,
GUILayout.Width(180), GUILayout.Height(180));
GUILayout.EndHorizontal();


GUILayout.Space(10);
CPUtility.DrawLineLastRectY(3, ConstantControlPanel.POSITION_X_START_CONTENT, position.width);
// GUILayout.Space(20);
// GUILayout.Label("SETUP THEME", EditorStyles.boldLabel);
// GUILayout.Space(10);
// drawSetting?.Invoke();
GUILayout.EndVertical();
}
}
Expand Down
9 changes: 5 additions & 4 deletions VirtueSky/ControlPanel/CPAdjustDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,25 @@ public static void OnDrawAdjust()
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("ADJUST", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.Adjust, "Adjust");
GUILayout.Space(10);
CPUtility.DrawButtonInstallPackage("Install Adjust", "Remove Adjust",
ConstantPackage.PackageNameAdjust, ConstantPackage.MaxVersionAdjust);
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
CPUtility.DrawHeader("Add define symbols");
GUILayout.Space(10);
#if !VIRTUESKY_ADJUST
EditorGUILayout.HelpBox(
$"Add scripting define symbols: {ConstantDefineSymbols.VIRTUESKY_ADJUST} for Adjust to use",
MessageType.Info);
#endif
GUILayout.Space(10);
GUILayout.Label("ADD DEFINE SYMBOLS", EditorStyles.boldLabel);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_ADJUST);
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Label("ADJUST SETTINGS", EditorStyles.boldLabel);
CPUtility.DrawHeader("Adjust Settings");
GUILayout.Space(10);
if (_setting == null)
{
Expand Down Expand Up @@ -73,7 +74,7 @@ public static void OnDrawAdjust()
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("ADJUST TRACKING", EditorStyles.boldLabel);
CPUtility.DrawHeader("Adjust Tracking");
GUILayout.Space(10);
if (GUILayout.Button("Create Scriptable Tracking Adjust"))
{
Expand Down
16 changes: 8 additions & 8 deletions VirtueSky/ControlPanel/CPAdvertisingDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static void OnDrawAdvertising(Rect position)
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("ADVERTISING", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.Advertising, "Advertising");
GUILayout.Space(10);
scroll = EditorGUILayout.BeginScrollView(scroll);
if (_adSetting == null)
Expand Down Expand Up @@ -77,7 +77,7 @@ public static void OnDrawAdvertising(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("PING ADS SETTING", EditorStyles.boldLabel);
CPUtility.DrawHeader("Ping Ads Settings");
GUILayout.Space(10);
if (GUILayout.Button("Ping"))
{
Expand All @@ -103,7 +103,7 @@ static void DrawMaxField(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("INSTALL MAX SDK", EditorStyles.boldLabel);
CPUtility.DrawHeader("Install Max Sdk");
GUILayout.Space(10);
if (GUILayout.Button("Install Max Sdk Plugin"))
{
Expand All @@ -115,7 +115,7 @@ static void DrawMaxField(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("ADD SYMBOLS", EditorStyles.boldLabel);
CPUtility.DrawHeader("Define Symbols");
GUILayout.Space(10);
#if !VIRTUESKY_ADS || !VIRTUESKY_APPLOVIN
EditorGUILayout.HelpBox(
Expand All @@ -132,7 +132,7 @@ static void DrawAdmobField(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("INSTALL ADMOB SDK", EditorStyles.boldLabel);
CPUtility.DrawHeader("Install Admob Sdk");
GUILayout.Space(10);
if (GUILayout.Button("Install Admob Sdk Plugin"))
{
Expand All @@ -144,7 +144,7 @@ static void DrawAdmobField(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("ADD SYMBOLS", EditorStyles.boldLabel);
CPUtility.DrawHeader("Define Symbols");
GUILayout.Space(10);
#if !VIRTUESKY_ADS || !VIRTUESKY_ADMOB
EditorGUILayout.HelpBox(
Expand All @@ -161,7 +161,7 @@ static void DrawIronSource(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("INSTALL IRON-SOURCE SDK", EditorStyles.boldLabel);
CPUtility.DrawHeader("Install IronSource Sdk");
GUILayout.Space(10);
if (GUILayout.Button("Install IronSource Sdk Plugin"))
{
Expand All @@ -173,7 +173,7 @@ static void DrawIronSource(Rect position)
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Space(10);
GUILayout.Label("ADD SYMBOLS", EditorStyles.boldLabel);
CPUtility.DrawHeader("Define Symbols");
GUILayout.Space(10);
#if !VIRTUESKY_ADS || !VIRTUESKY_IRONSOURCE
EditorGUILayout.HelpBox(
Expand Down
9 changes: 5 additions & 4 deletions VirtueSky/ControlPanel/CPAppsFlyerDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static void OnDrawAppsFlyer()
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("APPSFLYER", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.AppsFlyer, "AppsFlyer");
GUILayout.Space(10);
scroll = EditorGUILayout.BeginScrollView(scroll);
CPUtility.DrawButtonInstallPackage("Install AppsFlyer", "Remove AppsFlyer",
Expand All @@ -43,11 +43,12 @@ public static void OnDrawAppsFlyer()
MessageType.Info);
#endif
GUILayout.Space(10);
GUILayout.Label("ADD DEFINE SYMBOLS", EditorStyles.boldLabel);
CPUtility.DrawHeader("Define Symbols");
GUILayout.Space(10);
CPUtility.DrawButtonAddDefineSymbols(ConstantDefineSymbols.VIRTUESKY_APPSFLYER);
GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Label("APPSFLYER SETTINGS", EditorStyles.boldLabel);
CPUtility.DrawHeader("AppsFlyer Settings");
GUILayout.Space(10);
if (_setting == null)
{
Expand Down Expand Up @@ -78,7 +79,7 @@ public static void OnDrawAppsFlyer()

GUILayout.Space(10);
CPUtility.GuiLine(2);
GUILayout.Label("APPSFLYER TRACKING", EditorStyles.boldLabel);
CPUtility.DrawHeader("AppsFlyer Tracking");
GUILayout.Space(10);

if (GUILayout.Button("Create Scriptable Tracking AppsFlyer No Param"))
Expand Down
2 changes: 1 addition & 1 deletion VirtueSky/ControlPanel/CPAssetFinderDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void OnDrawAssetUsageDetector()
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("ASSET FINDER", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.AssetsFinder, "Asset Finder");
GUILayout.Space(10);
if (GUILayout.Button("Open Asset Finder Window (Ctrl+Shift+K / Command+Shift+K)"))
{
Expand Down
8 changes: 4 additions & 4 deletions VirtueSky/ControlPanel/CPAudioDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public static void OnDrawAudio(Rect position)
{
GUILayout.Space(10);
GUILayout.BeginVertical();
GUILayout.Label("AUDIO", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.Audio, "Audio");
GUILayout.Space(10);
if (GUILayout.Button("Create Sound Data"))
{
Expand All @@ -20,7 +20,7 @@ public static void OnDrawAudio(Rect position)
GUILayout.Space(10);
CPUtility.DrawLineLastRectY(3, ConstantControlPanel.POSITION_X_START_CONTENT, position.width);
GUILayout.Space(10);
GUILayout.Label("MUSIC EVENT", EditorStyles.boldLabel);
CPUtility.DrawHeader("Music Event");
GUILayout.Space(10);
if (GUILayout.Button("Create Play Music Event"))
{
Expand All @@ -45,7 +45,7 @@ public static void OnDrawAudio(Rect position)
GUILayout.Space(10);
CPUtility.DrawLineLastRectY(3, ConstantControlPanel.POSITION_X_START_CONTENT, position.width);
GUILayout.Space(10);
GUILayout.Label("SFX EVENT", EditorStyles.boldLabel);
CPUtility.DrawHeader("Sfx Event");
GUILayout.Space(10);
if (GUILayout.Button("Create Play Sfx Event"))
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public static void OnDrawAudio(Rect position)
GUILayout.Space(10);
CPUtility.DrawLineLastRectY(3, ConstantControlPanel.POSITION_X_START_CONTENT, position.width);
GUILayout.Space(10);
GUILayout.Label("VOLUME CHANGE", EditorStyles.boldLabel);
CPUtility.DrawHeader("Volume Changed Variable");
GUILayout.Space(10);
if (GUILayout.Button("Create Music Volume Variable"))
{
Expand Down
2 changes: 1 addition & 1 deletion VirtueSky/ControlPanel/CPExtensionsDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static void OnDrawExtensions(Rect position)
GUILayout.Space(10);
GUILayout.BeginVertical();
#if UNITY_ANDROID
GUILayout.Label("ANDROID EXTERNAL TOOLS", EditorStyles.boldLabel);
CPUtility.DrawHeaderIcon(StatePanelControl.Extensions, "Android External Tools");
GUILayout.Space(10);
if (GUILayout.Button("Open Sdk"))
{
Expand Down
Loading

0 comments on commit 4f26072

Please sign in to comment.