Skip to content

Commit

Permalink
Adjust icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Ramberg committed Jun 16, 2019
1 parent cb6280a commit bcdb8f1
Show file tree
Hide file tree
Showing 21 changed files with 903 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions Source/Functions/ScriptableObjectFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public GameFunction<R> SetFunc(Func<R> func)
}
}

public abstract class GameFunction<R, T1> : ScriptableObject
public abstract class GameFunction<R, T1> : ScriptableObject, IFunctionIcon
{
[HideInInspector]
public Func<T1, R> Func;
Expand All @@ -47,7 +47,7 @@ public virtual R Call(T1 t1)
}
}

public abstract class GameFunction<R, T1, T2> : ScriptableObject
public abstract class GameFunction<R, T1, T2> : ScriptableObject, IFunctionIcon
{
[HideInInspector]
public Func<T1, T2, R> Func;
Expand All @@ -69,7 +69,7 @@ public virtual R Call(T1 t1, T2 t2)
}
}

public abstract class GameFunction<R, T1, T2, T3> : ScriptableObject
public abstract class GameFunction<R, T1, T2, T3> : ScriptableObject, IFunctionIcon
{
[HideInInspector]
public Func<T1, T2, T3, R> Func;
Expand All @@ -91,7 +91,7 @@ public virtual R Call(T1 t1, T2 t2, T3 t3)
}
}

public abstract class GameFunction<R, T1, T2, T3, T4> : ScriptableObject
public abstract class GameFunction<R, T1, T2, T3, T4> : ScriptableObject, IFunctionIcon
{
[HideInInspector]
public Func<T1, T2, T3, T4, R> Func;
Expand All @@ -113,7 +113,7 @@ public virtual R Call(T1 t1, T2 t2, T3 t3, T4 t4)
}
}

public abstract class GameFunction<R, T1, T2, T3, T4, T5> : ScriptableObject
public abstract class GameFunction<R, T1, T2, T3, T4, T5> : ScriptableObject, IFunctionIcon
{
[HideInInspector]
public Func<T1, T2, T3, T4, T5, R> Func;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,29 @@ internal class AtomMonoScriptAssigner : IconAssigner<MonoScript>
}
else if (typeof(IVariableIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-orange");
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-lush");
}
else if (typeof(IConstantIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-teal");
}
else if (typeof(IEventIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-teal");
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-cherry");
}
else if (typeof(IFunctionIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-lush");
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-sand");
}
else if (typeof(IListenerIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-piglet");
}
else if (typeof(IListIcon).IsAssignableFrom(type))
{
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-pinky");
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-orange");
}
return icons.FirstOrDefault((icon) => icon.Name == "atom-icon-delicate");
}
return null;
Expand Down
1 change: 0 additions & 1 deletion Source/IconAssignmentPostProcessor/IIconAssigner.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using UnityEngine;

namespace UnityAtoms
{
Expand Down
1 change: 0 additions & 1 deletion Source/IconAssignmentPostProcessor/IconAssigmentSetting.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using UnityEngine;

namespace UnityAtoms
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void LoadFromFile()
}
catch (Exception e)
{
Debug.Log("No Settings Loaded: " + e.Message);
Debug.LogError("No Settings Loaded: " + e.Message);
}
}

Expand Down
1 change: 0 additions & 1 deletion Source/IconAssignmentPostProcessor/IconAssigner.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Reflection;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace UnityAtoms
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
using System;
using System.IO;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.Reflection;
using UnityAtoms;

namespace UnityAtoms
{
Expand Down
Binary file modified Source/IconMap/atom-icon-cherry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/IconMap/atom-icon-delicate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

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

Binary file modified Source/IconMap/atom-icon-lush.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Source/IconMap/atom-icon-orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Source/IconMap/atom-icon-piglet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Source/IconMap/atom-icon-pinky.png
Binary file not shown.
Binary file modified Source/IconMap/atom-icon-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Source/IconMap/atom-icon-sand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 90 additions & 0 deletions Source/IconMap/atom-icon-sand.png.meta

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

Binary file modified Source/IconMap/atom-icon-teal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bcdb8f1

Please sign in to comment.