Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undo-Redo System #576

Open
wants to merge 96 commits into
base: develop
Choose a base branch
from
Open

Undo-Redo System #576

wants to merge 96 commits into from

Conversation

zeynebGueven
Copy link

implemented undo-redo-system

jonast2 and others added 30 commits January 4, 2023 17:04
The Unity UserSettings should not be tracked by git, as they are personalized for each user. Because of that, the files themselves, as well as their tracking in the .gitignore file, have been removed.
Inside of the Main Menu on the left side a third button called "Undo-Redo Menu" is created.
Created a Prefab Menu called UndoRedoMenu, which contains a bar at the top and 4 buttons, "Follow Me", "Close", "Undo" and "Redo".
Upon pressing the UndoRedoButton the corresponding Menu appears.
Added both the menu and button to the MainMenu Script
The UndoRedoMenu Prefab is integrated into WindowMangager.cs by creating a script UndoRedoMenu, which inherits from IWindow.
Additionally, the close button now works by calling the Close() function defined by IWindow.
- Added Rotation Axis, Apparent Size and FollowMeToggle Constraints to the UndoRedoMenu
- The FollowMe Button now activates/disables the FollowMeToggle Constraint, but starts disabled
The Command/Command Processor was implemented. The Interface ICommand represents various commands and can only be Executed/Reversed. The CommandProcessor keeps track of the commands in a list and can Execute/Undo/Redo them.
The [SerializeField] reference to the UndoRedoMenu Prefab from the WindowManager got reset. This was fixed.
The CommandController is used to manage an instance of the CommandProcessor.
The new CreateMenuCommand will Open/Close menus, although for now it is limited to the UndoRedoMenu
Ich habe begonnen, das Undo Feature auf die Kanban Griffe anzuwenden (beim Skalieren). Momentan gibt es da noch einen Fehler.
Es funktioniert nun Undo, also, dass sich das Kanban Board zurückskaliert und positioniert :)
Undo für Progressbar ist in Arbeit
…ground Material noch nicht und Logik fehlt noch (wann grau wann blau). Arbeite später weiter
zeynebGueven and others added 25 commits January 28, 2023 23:48
The text color of the TextMeshPro containing the current command will be set to red.
* the executed commands will now have an description
* jumping between commands now possible
* Changed formatting
* Changed negative scale of SelectionCubes to positive
* removed unnesescary directives
* refactored files
* added summaries
* reset ProjectPreferences
Changed Undo Button design, added Command to Avatar Controller
@zeynebGueven zeynebGueven added the mixed-reality-lab An issue of a project in the mixed reality lab label Jan 29, 2023
@jonast2 jonast2 changed the title Minus eins/development Undo-Redo System Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mixed-reality-lab An issue of a project in the mixed reality lab
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants