Skip to content

Commit

Permalink
Merge pull request #308 from tjdeckard/main
Browse files Browse the repository at this point in the history
Update file path for supplies.png
  • Loading branch information
tjdeckard authored Aug 16, 2021
2 parents 8993bc0 + f34e066 commit 4d4db4c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Source/USILifeSupport/LifeSupportMonitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ public class LifeSupportMonitor : MonoBehaviour
void Awake()
{
var texture = new Texture2D(36, 36, TextureFormat.RGBA32, false);
var textureFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Supplies.png");
var textureFile = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"Assets",
"Supplies.png");
print("Loading " + textureFile);
texture.LoadImage(File.ReadAllBytes(textureFile));
_lifeSupportMonitorButton = ApplicationLauncher.Instance.AddModApplication(GuiOn, GuiOff, null, null, null, null,
Expand Down
5 changes: 4 additions & 1 deletion Source/USILifeSupport/LifeSupportMonitor_Editor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public class LifeSupportMonitor_Editor : MonoBehaviour
void Awake()
{
var texture = new Texture2D(36, 36, TextureFormat.RGBA32, false);
var textureFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Supplies.png");
var textureFile = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"Assets",
"Supplies.png");
print("Loading " + textureFile);
texture.LoadImage(File.ReadAllBytes(textureFile));
_lifeSupportMonitorButton = ApplicationLauncher.Instance.AddModApplication(GuiOn, GuiOff, null, null, null, null,
Expand Down
5 changes: 4 additions & 1 deletion Source/USILifeSupport/LifeSupportMonitor_SpaceCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ public class LifeSupportMonitor_SpaceCenter : MonoBehaviour
void Awake()
{
var texture = new Texture2D(36, 36, TextureFormat.RGBA32, false);
var textureFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "Supplies.png");
var textureFile = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"Assets",
"Supplies.png");
print("Loading " + textureFile);
texture.LoadImage(File.ReadAllBytes(textureFile));
this.orbLogButton = ApplicationLauncher.Instance.AddModApplication(GuiOn, GuiOff, null, null, null, null,
Expand Down

0 comments on commit 4d4db4c

Please sign in to comment.