Example #1
0
 public Sprite SpriteForAction(ActionGlyphType glyphType)
 {
     if (DeviceID() == "Keyboard")
     {
         if (glyphType == ActionGlyphType.ConfirmActivate)
         {
             return(keyboardSet.confirm);
         }
         else if (glyphType == ActionGlyphType.CancelDance)
         {
             return(keyboardSet.cancel);
         }
         else if (glyphType == ActionGlyphType.Spell)
         {
             return(keyboardSet.spell);
         }
         else
         {
             return(keyboardSet.questR);
         }
     }
     else if (DeviceID() == "XBox")
     {
         if (glyphType == ActionGlyphType.ConfirmActivate)
         {
             return(xboxSet.confirm);
         }
         else if (glyphType == ActionGlyphType.CancelDance)
         {
             return(xboxSet.cancel);
         }
         else if (glyphType == ActionGlyphType.Spell)
         {
             return(xboxSet.spell);
         }
         else
         {
             return(xboxSet.questR);
         }
     }
     else
     {
         if (glyphType == ActionGlyphType.ConfirmActivate)
         {
             return(genericSet.confirm);
         }
         else if (glyphType == ActionGlyphType.CancelDance)
         {
             return(genericSet.cancel);
         }
         else if (glyphType == ActionGlyphType.Spell)
         {
             return(genericSet.spell);
         }
         else
         {
             return(genericSet.questR);
         }
     }
 }
Example #2
0
 public bool GlyphIsBigger(ActionGlyphType glyphType)
 {
     return(DeviceID() == "Generic");
 }
Example #3
0
 public bool GlyphIsDoubleWidth(ActionGlyphType glyphType)
 {
     return(DeviceID() == "Keyboard" && glyphType == ActionGlyphType.Spell);
 }