View gamedev1.js
// Help message | |
new Game.Text('Warrior! Grab all', 50, 0); | |
new Game.Text('Hong Kong 1 Dollar to save the world!!', 50, 25); | |
// Setup player & guns | |
function createPlayer1() { | |
var player = new Game.Player(0, 0, '/image/game/player1.png'); | |
player.onKilled = createPlayer1; | |
View OverrideFormattedStringExtension.cs
public static class OverrideFormattedStringExtension | |
{ | |
// | |
// Static Methods | |
// | |
public static SpannableString ToAttributed(this FormattedString formattedString, Font defaultFont, Color defaultForegroundColor, TextView view) | |
{ | |
if (formattedString == null) | |
{ | |
return null; |
View ExtendedPageRenderer.cs
[assembly: ExportRenderer(typeof(ContentPage), typeof(ExtendedPageRenderer))] | |
public class ExtendedPageRenderer : PageRenderer | |
{ | |
public override void ViewWillAppear(bool animated) | |
{ | |
base.ViewWillAppear(animated); | |
var contentPage = this.Element as ContentPage; | |
if (contentPage == null || NavigationController == null) |