Skip to content

Commit

Permalink
Add log example to HelloWorld
Browse files Browse the repository at this point in the history
  • Loading branch information
spitfirex86 committed Apr 10, 2020
1 parent 12f81e3 commit 67969d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/HelloWorld/HelloWorld.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public void Run(RemoteInterface remoteInterface)
// The X and Y values are coordinates on the screen space, mapped to a 1000x1000 area.
TextOverlay hello = new TextOverlay("Hello World", 10, 5, 5).Show();
TextOverlay colors = new TextOverlay("This text is red and transparent".Red(), 10, 5, 30, 180).Show();

// Use RemoteInterface.Log() to display text in the mod loader console.
remoteInterface.Log("Hello World");
}
}
}

0 comments on commit 67969d9

Please sign in to comment.