public void changeSelectedType(EffectType new_type) { if (CurrentStrategy.getType() != new_type) { CurrentStrategy = createNewStrategy(new_type); } }
public EffectProperties(GuiCommandExecutor exec, NodeClick c, IEffect e, EffectPosition pos, NoteTreeNode f, NoteTreeNode s) : base(c, exec) { effect = e; init_type = effect?.Type ?? EffectType.No_Type; position = pos; first = f; second = s; Types = genValidEffectTypes(); CurrentStrategy = createNewStrategy(init_type); CurrentType = init_type.getMenuName(); }