// Création de bouton, quand celui ci est dans un ATH public static ATHCompositeButton Create(ATHComposite parent, Vector2 position, Vector2 size, Anchor anchor = Anchor.topleft, int order = 0, ButtonType type = ButtonType.back) { ATHCompositeButton ath = new ATHCompositeButton(parent, position, size, anchor, order, type); parent.game.Components.Add(ath); parent.Add(ath); return(ath); }
public static ATHCompositeImage Create(ATHComposite parent, Vector2 position, Vector2 size, string texture, Anchor anchor = Anchor.topleft, int order = 0) { ATHCompositeImage ath = new ATHCompositeImage(parent, position, size, texture, anchor, order); parent.game.Components.Add(ath); parent.Add(ath); return(ath); }
public static ATHFeuilleColor Create(ATHComposite parent, Vector2 position, Vector2 size, Color color, Anchor anchor = Anchor.topleft, int order = 0) { ATHFeuilleColor ath = new ATHFeuilleColor(parent, position, size, color, anchor, order); parent.game.Components.Add(ath); parent.Add(ath); return(ath); }