Skip to content

Commit

Permalink
Changes in all parts of the player
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlenni committed Jan 22, 2014
1 parent 39c3beb commit 39061c6
Show file tree
Hide file tree
Showing 50 changed files with 4,139 additions and 2,304 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -1,4 +1,5 @@
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Cc]omponents/
[Bb]in/
[Oo]bj/

Expand All @@ -11,11 +12,14 @@ TestResults
# User-specific files
*.suo
*.user
*.userprefs
*.keystore
*.sln.docstates

# Build results
[Dd]ebug/
[Rr]elease/
[Ll]ib/
x64/
*_i.c
*_p.c
Expand All @@ -33,8 +37,10 @@ x64/
*.tlh
*.tmp
*.log
*.exe
*.vspscc
*.vssscc
*.apk
.builds

# Visual C++ cache files
Expand Down
89 changes: 89 additions & 0 deletions Android/Settings.cs
@@ -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);
}
}
}
}

0 comments on commit 39061c6

Please sign in to comment.