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); } } }
public bool GlyphIsBigger(ActionGlyphType glyphType) { return(DeviceID() == "Generic"); }
public bool GlyphIsDoubleWidth(ActionGlyphType glyphType) { return(DeviceID() == "Keyboard" && glyphType == ActionGlyphType.Spell); }