Advertisement
Guest User

LanaPixel C# constants

a guest
Jun 25th, 2022
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.43 KB | None | 0 0
  1.   /**
  2.      * Maps unicode characters in the 'private use area' of the lanapixel font.
  3.      * For displaying controller button symbols/glyphs in text labels.
  4.      */
  5.     public static class ControllerButtonGlyphCodes
  6.     {
  7.         public static string RightOutline = UnicodeToChar("e000");
  8.         public static string RightFilled = UnicodeToChar("e001");
  9.  
  10.         public static string LeftOutline = UnicodeToChar("e002");
  11.         public static string LeftFilled = UnicodeToChar("e003");
  12.  
  13.         public static string UpOutline = UnicodeToChar("e004");
  14.         public static string UpFilled = UnicodeToChar("e005");
  15.  
  16.         public static string DownOutline = UnicodeToChar("e006");
  17.         public static string DownFilled = UnicodeToChar("e007");
  18.  
  19.         public static string RStickOutline = UnicodeToChar("e008");
  20.         public static string RStickFilled = UnicodeToChar("e009");
  21.  
  22.         public static string LStickOutline = UnicodeToChar("e00a");
  23.         public static string LStickFilled = UnicodeToChar("e00b");
  24.  
  25.         public static string RStickHOutline = UnicodeToChar("e00c");
  26.         public static string RStickHFilled = UnicodeToChar("e00d");
  27.  
  28.         public static string LStickHOutline = UnicodeToChar("e00e");
  29.         public static string LStickHFilled = UnicodeToChar("e00f");
  30.  
  31.         public static string RStickVOutline = UnicodeToChar("e010");
  32.         public static string RStickVFilled = UnicodeToChar("e011");
  33.  
  34.         public static string LStickVOutline = UnicodeToChar("e012");
  35.         public static string LStickVFilled = UnicodeToChar("e013");
  36.  
  37.         public static string PSTriangleOutline = UnicodeToChar("e014");
  38.         public static string PSTriangleFilled = UnicodeToChar("e015");
  39.  
  40.         public static string PSSquareOutline = UnicodeToChar("e016");
  41.         public static string PSSquareFilled = UnicodeToChar("e017");
  42.  
  43.         public static string PSCircleOutline = UnicodeToChar("e018");
  44.         public static string PSCircleFilled = UnicodeToChar("e019");
  45.  
  46.         public static string PSCrossOutline = UnicodeToChar("e01a");
  47.         public static string PSCrossFilled = UnicodeToChar("e01b");
  48.  
  49.         public static string PSStartOutline = UnicodeToChar("e01c");
  50.         public static string PSStartFilled = UnicodeToChar("e01d");
  51.  
  52.         public static string PSSelectOutline = UnicodeToChar("e01e");
  53.         public static string PSSelectFilled = UnicodeToChar("e01f");
  54.  
  55.         public static string PSR1Outline = UnicodeToChar("e020");
  56.         public static string PSR1Filled = UnicodeToChar("e021");
  57.  
  58.         public static string PSR2Outline = UnicodeToChar("e022");
  59.         public static string PSR2Filled = UnicodeToChar("e023");
  60.  
  61.         public static string PSR3Outline = UnicodeToChar("e024");
  62.         public static string PSR3Filled = UnicodeToChar("e025");
  63.  
  64.         public static string PSL1Outline = UnicodeToChar("e026");
  65.         public static string PSL1Filled = UnicodeToChar("e027");
  66.  
  67.         public static string PSL2Outline = UnicodeToChar("e028");
  68.         public static string PSL2Filled = UnicodeToChar("e029");
  69.  
  70.         public static string PSL3Outline = UnicodeToChar("e02a");
  71.         public static string PSL3Filled = UnicodeToChar("e02b");
  72.  
  73.         public static string PSTouchpadOutline = UnicodeToChar("e02c");
  74.         public static string PSTouchpadFilled = UnicodeToChar("e02d");
  75.  
  76.         public static string XBAOutline = UnicodeToChar("e02e");
  77.         public static string XBAFilled = UnicodeToChar("e02f");
  78.  
  79.         public static string XBBOutline = UnicodeToChar("e030");
  80.         public static string XBBFilled = UnicodeToChar("e031");
  81.  
  82.         public static string XBXOutline = UnicodeToChar("e032");
  83.         public static string XBXFilled = UnicodeToChar("e033");
  84.  
  85.         public static string XBYOutline = UnicodeToChar("e034");
  86.         public static string XBYFilled = UnicodeToChar("e035");
  87.  
  88.         public static string XBRBOutline = UnicodeToChar("e036");
  89.         public static string XBRBFilled = UnicodeToChar("e037");
  90.  
  91.         public static string XBRTOutline = UnicodeToChar("e038");
  92.         public static string XBRTFilled = UnicodeToChar("e039");
  93.  
  94.         public static string XBLBOutline = UnicodeToChar("e03a");
  95.         public static string XBLBFilled = UnicodeToChar("e03b");
  96.  
  97.         public static string XBLTOutline = UnicodeToChar("e03c");
  98.         public static string XBLTFilled = UnicodeToChar("e03d");
  99.  
  100.         public static string XBViewOutline = UnicodeToChar("e03e");
  101.         public static string XBViewFilled = UnicodeToChar("e03f");
  102.  
  103.         public static string XBMenuOutline = UnicodeToChar("e040");
  104.         public static string XBMenuFilled = UnicodeToChar("e041");
  105.  
  106.         public static string SwitchAOutline = UnicodeToChar("e042");
  107.         public static string SwitchAFilled = UnicodeToChar("e043");
  108.  
  109.         public static string SwitchBOutline = UnicodeToChar("e044");
  110.         public static string SwitchBFilled = UnicodeToChar("e045");
  111.  
  112.         public static string SwitchXOutline = UnicodeToChar("e046");
  113.         public static string SwitchXFilled = UnicodeToChar("e047");
  114.  
  115.         public static string SwitchYOutline = UnicodeToChar("e048");
  116.         public static string SwitchYFilled = UnicodeToChar("e049");
  117.  
  118.         public static string SwitchPlusOutline = UnicodeToChar("e04a");
  119.         public static string SwitchPlusFilled = UnicodeToChar("e04b");
  120.  
  121.         public static string SwitchMinusOutline = UnicodeToChar("e04c");
  122.         public static string SwitchMinusFilled = UnicodeToChar("e04d");
  123.  
  124.         public static string SwitchRPressOutline = UnicodeToChar("e04e");
  125.         public static string SwitchRPressFilled = UnicodeToChar("e04f");
  126.  
  127.         public static string SwitchLPressOutline = UnicodeToChar("e050");
  128.         public static string SwitchLPressFilled = UnicodeToChar("e051");
  129.  
  130.         public static string SwitchHomeOutline = UnicodeToChar("e052");
  131.         public static string SwitchHomeFilled = UnicodeToChar("e053");
  132.  
  133.         public static string SwitchShareOutline = UnicodeToChar("e054");
  134.         public static string SwitchShareFilled = UnicodeToChar("e055");
  135.  
  136.         public static string SwitchZROutline = UnicodeToChar("e056");
  137.         public static string SwitchZRFilled = UnicodeToChar("e057");
  138.  
  139.         public static string SwitchROutline = UnicodeToChar("e058");
  140.         public static string SwitchRFilled = UnicodeToChar("e059");
  141.  
  142.         public static string SwitchZLOutline = UnicodeToChar("e05a");
  143.         public static string SwitchZLFilled = UnicodeToChar("e05b");
  144.  
  145.         public static string SwitchLOutline = UnicodeToChar("e05c");
  146.         public static string SwitchLFilled = UnicodeToChar("e05d");
  147.  
  148.         public static string ArrowUp = "↑";
  149.         public static string ArrowUpLeft = "↖";
  150.         public static string ArrowUpRight = "↗";
  151.         public static string ArrowLeft = "←";
  152.         public static string ArrowRight = "→";
  153.         public static string ArrowDown = "↓";
  154.         public static string ArrowDownLeft = "↙";
  155.         public static string ArrowDownRight = "↘";
  156.         public static string ArrowBidirectionalHorizontal = "↔";
  157.         public static string ArrowBidirectionalVertical = "↕";
  158.  
  159.         private static string UnicodeToChar(string hex)
  160.         {
  161.             int code = int.Parse(hex, System.Globalization.NumberStyles.HexNumber);
  162.             string unicodeString = char.ConvertFromUtf32(code);
  163.             return unicodeString;
  164.         }
  165.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement