This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class OverrideFormattedStringExtension | |
{ | |
// | |
// Static Methods | |
// | |
public static SpannableString ToAttributed(this FormattedString formattedString, Font defaultFont, Color defaultForegroundColor, TextView view) | |
{ | |
if (formattedString == null) | |
{ | |
return null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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) |