public override void resetToDefault() { if (current_type != init_type) { CurrentType = init_type.getMenuName(); } else { CurrentStrategy.resetToDefault(); } }
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(); }