made environment for BensonV4
This commit is contained in:
@@ -1,104 +0,0 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public class WelcomeWindow : EditorWindow
|
||||
{
|
||||
private GUIStyle textureButton;
|
||||
private GUIStyle headingText;
|
||||
private GUIStyle commonText;
|
||||
|
||||
private Texture2D top;
|
||||
|
||||
private Texture2D image1;
|
||||
|
||||
private Texture2D linkButton;
|
||||
|
||||
private Texture2D logo;
|
||||
|
||||
private Vector2 scrollIndex;
|
||||
|
||||
[UnityEditor.Callbacks.DidReloadScripts]
|
||||
private static void OpenWindowOnUnityStart()
|
||||
{
|
||||
if (EditorApplication.isPlayingOrWillChangePlaymode)
|
||||
return;
|
||||
|
||||
OpenWindow();
|
||||
}
|
||||
|
||||
[MenuItem("Tools/EmaceArt/Welcome Window")]
|
||||
private static void OpenWindow()
|
||||
{
|
||||
EditorWindow panel = GetWindow<WelcomeWindow>();
|
||||
panel.titleContent = new GUIContent("Hello Developer!", Resources.Load<Texture2D>("Favi_top"));
|
||||
// panel.minSize = new Vector2(600, Mathf.Min(Screen.currentResolution.height, 862));
|
||||
// panel.maxSize = new Vector2(600, Mathf.Min(Screen.currentResolution.height, 862));
|
||||
//panel.ShowUtility();
|
||||
}
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
var style = Resources.Load<GUISkin>("GUISkin");
|
||||
textureButton = style.GetStyle("textureButton");
|
||||
headingText = style.GetStyle("headingText");
|
||||
commonText = style.GetStyle("commonText");
|
||||
|
||||
top = Resources.Load<Texture2D>("EA_Top");
|
||||
|
||||
image1 = Resources.Load<Texture2D>("Btn_01");
|
||||
|
||||
linkButton = Resources.Load<Texture2D>("button_free_zone");
|
||||
|
||||
logo = Resources.Load<Texture2D>("Logo");
|
||||
}
|
||||
|
||||
private void OnGUI()
|
||||
{
|
||||
scrollIndex = GUILayout.BeginScrollView(scrollIndex);
|
||||
GUILayout.BeginVertical();
|
||||
|
||||
DrawHeader();
|
||||
GUILayout.Space(20f);
|
||||
DrawBody();
|
||||
GUILayout.Space(20f);
|
||||
DrawFooter();
|
||||
|
||||
GUILayout.EndVertical();
|
||||
GUILayout.EndScrollView();
|
||||
}
|
||||
|
||||
private void DrawHeader()
|
||||
{
|
||||
if (GUILayout.Button(top, textureButton))
|
||||
Application.OpenURL("https://assetstore.unity.com/packages/3d/environments/fantasy/slavic-medieval-village-town-interior-and-exterior-pack-environm-137794");
|
||||
}
|
||||
|
||||
private void DrawBody()
|
||||
{
|
||||
GUILayout.Label("Thanks for checkin Slavica Lite", headingText);
|
||||
GUILayout.Space(1f);
|
||||
GUILayout.Label("This pack perfect match with the Medieval Slavica Town Full!", commonText);
|
||||
GUILayout.Space(20f);
|
||||
|
||||
if (GUILayout.Button(image1, textureButton))
|
||||
Application.OpenURL("https://assetstore.unity.com/packages/3d/environments/fantasy/slavic-medieval-village-town-interior-and-exterior-pack-environm-137794");
|
||||
}
|
||||
|
||||
private void DrawFooter()
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
if (GUILayout.Button(logo, textureButton))
|
||||
Application.OpenURL("https://www.emaceart.com");
|
||||
|
||||
GUILayout.BeginVertical();
|
||||
GUILayout.Space(10f);
|
||||
GUILayout.Label("Visit my free zone. If you like this content, don't forget leave review :)", commonText);
|
||||
GUILayout.Space(10f);
|
||||
if (GUILayout.Button(linkButton, textureButton))
|
||||
Application.OpenURL("https://assetstore.unity.com/lists/free-zone-178789");
|
||||
|
||||
GUILayout.EndVertical();
|
||||
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 15e5888e5fc5cbe4cbe94ecca9240790
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b8c300fd72328743893f6c3a05071cc
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,6 +0,0 @@
|
||||
Thanks for download!
|
||||
This pack of assets belongs to my other huge pack, which I encourage to buy!
|
||||
|
||||
https://assetstore.unity.com/packages/3d/environments/fantasy/slavic-medieval-village-town-interior-and-exterior-pack-environm-137794
|
||||
|
||||
If you have any questions, or request of additional models, fell free to email me at CONTACT@EMACEART.COM
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c85e6a8b5d07b545988a6efab51a32e
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4fa517224fb5c15469ddaafdf4a94068
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d884527f3e242c144af52b11faf49d2f
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user