public void ResetImage(ImageCode.ImagePos pos) { switch (pos) { case ImageCode.ImagePos.BACK: ResetImage(image_back); break; case ImageCode.ImagePos.CENTER: ResetImage(image_center); break; case ImageCode.ImagePos.LEFT: ResetImage(image_left); break; case ImageCode.ImagePos.RIGHT: ResetImage(image_right); break; } }
public void SetDirection(ImageCode.ImagePos pos, ImageCode.ImageDirection dir) { switch (pos) { case ImageCode.ImagePos.BACK: SetDirection(image_back, GetDirectionScale(dir)); break; case ImageCode.ImagePos.CENTER: SetDirection(image_center, GetDirectionScale(dir)); break; case ImageCode.ImagePos.LEFT: SetDirection(image_left, GetDirectionScale(dir)); break; case ImageCode.ImagePos.RIGHT: SetDirection(image_right, GetDirectionScale(dir) * -1); break; } }
public void SetImage(string spName, int spIndex, ImageCode.ImagePos pos) { var sp = _dataBase.GetSprite(spName, spIndex); switch (pos) { case ImageCode.ImagePos.BACK: SetImage(image_back, sp); break; case ImageCode.ImagePos.CENTER: SetImage(image_center, sp); break; case ImageCode.ImagePos.LEFT: SetImage(image_left, sp); break; case ImageCode.ImagePos.RIGHT: SetImage(image_right, sp); break; } }