Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Charlenni
committed
Jan 22, 2014
1 parent
39c3beb
commit 39061c6
Showing
50 changed files
with
4,139 additions
and
2,304 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,90 @@ | ||
using System; | ||
using System.Text; | ||
using Vernacular; | ||
|
||
namespace WF.Player.Android | ||
{ | ||
public class Values | ||
{ | ||
static public float Frame = 10.0f; | ||
static public float ButtonHeight = 35.0f; | ||
} | ||
|
||
public class Colors | ||
{ | ||
// static public UIColor NavBar = UIColor.FromRGB(0.2118f,0.4588f,0.7333f); | ||
// static public UIColor NavBarButton = UIColor.FromRGB(0.1569f,0.3608f,0.5961f); | ||
// static public UIColor ButtonText = UIColor.FromRGB(1.0f,1.0f,1.0f); | ||
// public static UIColor ZoneFill = UIColor.FromRGBA (1.0f, 0, 0, 0.1f); | ||
// public static UIColor ZoneStroke = UIColor.FromRGBA (1.0f, 0, 0, 0.3f); | ||
} | ||
|
||
public class Images | ||
{ | ||
// static public UIImage IconLocation = UIImage.FromFile ("Images/IconLocation.png"); | ||
// static public UIImage IconYouSee = UIImage.FromFile ("Images/IconYouSee.png"); | ||
// static public UIImage IconInventory = UIImage.FromFile ("Images/IconInventory.png"); | ||
// static public UIImage IconTask = UIImage.FromFile ("Images/IconTask.png"); | ||
// | ||
// public static UIImage IconMapZone = UIImage.FromFile ("Images/glow-marker.png"); | ||
// | ||
// static public UIImage Blue = UIImage.FromFile ("Images/blue.png").StretchableImage(0, 0); | ||
// static public UIImage BlueTop = UIImage.FromFile ("Images/blueTop.png").StretchableImage(0, 0); | ||
// static public UIImage BlueButton = UIImage.FromFile ("Images/blueButton.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
// static public UIImage BlueButtonHighlight = UIImage.FromFile ("Images/blueButtonHighlight.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
// static public UIImage OrangeButton = UIImage.FromFile ("Images/orangeButton.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
// static public UIImage OrangeButtonHighlight = UIImage.FromFile ("Images/orangeButtonHighlight.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
// static public UIImage GreenButton = UIImage.FromFile ("Images/greenButton.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
// static public UIImage GreenButtonHighlight = UIImage.FromFile ("Images/greenButtonHighlight.png").CreateResizableImage(new UIEdgeInsets (18f, 18f, 18f, 18f)); | ||
} | ||
|
||
public sealed class Strings | ||
{ | ||
// static Vernacular.Catalog catalog = new GettextResourceManager("WF.Player.Android"); | ||
|
||
public static string TaskCorrect = Encoding.UTF8.GetString(new byte[] { 0xE2, 0x9C, 0x93 } ); // UTF-8 2713 | ||
public static string TaskNotCorrect = Encoding.UTF8.GetString(new byte[] { 0xE2, 0x9C, 0x97 } ); // UTF-8 2717 | ||
public static string Infinite = Encoding.UTF8.GetString(new byte[] { 0xE2, 0x88, 0x9E } ); // UTF-8 221E | ||
public static string Newline = "\n"; | ||
|
||
public static string GetString(string text) | ||
{ | ||
try { | ||
return Catalog.GetString(text); | ||
} | ||
catch { | ||
return text; | ||
} | ||
} | ||
|
||
public static string GetStringFmt(string text, params object[] args) | ||
{ | ||
try { | ||
return Catalog.Format(GetString(text), args); | ||
} | ||
catch { | ||
return Catalog.Format(text, args); | ||
} | ||
} | ||
|
||
public static string GetPluralString(string singular, string plural, int n) | ||
{ | ||
try { | ||
return Catalog.GetPluralString(singular, plural, n); | ||
} | ||
catch { | ||
return singular; | ||
} | ||
} | ||
|
||
public static string GetPluralStringFmt(string singular, string plural, int n, params object[] args) | ||
{ | ||
try { | ||
return Catalog.Format(Catalog.GetPluralString(singular, plural, n), args); | ||
} | ||
catch { | ||
return Catalog.Format(singular, args); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.