Skip to content
This repository was archived by the owner on Jul 14, 2021. It is now read-only.

Comments

Feature/vm layer frontend components view#47

Open
Zulvinia wants to merge 5 commits intodevelopfrom
feature/VMLayer_Frontend_ComponentsView
Open

Feature/vm layer frontend components view#47
Zulvinia wants to merge 5 commits intodevelopfrom
feature/VMLayer_Frontend_ComponentsView

Conversation

@Zulvinia
Copy link
Collaborator

Adds Undo/Redo to the frontend, testing can be done on the Properties View.
You need to run the Engine, with an internet connection, and have the frontend running.

Updated the visuals for the Properties View components:

  • Added the trashcan icon to remove the component from the current object (works only on the frontend, no backend support yet)
  • Added a header link to the matmenu icons, to get the trashcan icon and others

Added the "View" drop down menu to the Menu Bar

  • Added drop downs: Project, Scene, Hierarchy, Console, Properties
  • Each button will open the corresponding view that was clicked on

  + moved most of the properties viewer logic to the VM layer
  + setup the properties viewer logic to call the VM layers
  + setup the RESTAPI in engine, the properties viewer is now getting info from the engine

RESTAPI in engine
  + stubbed the transform component for front end testing / REST testing
  + reconstructed the RESTAPI to support localhost communication on chrome
  + working add component / remove component
  + Undo had a bug where it was calling the redo's callback
  + a global static was set up in the Undo/Redo call for other Modules use

Menu Bar:
  + Added View option to the bar, with some stubbed out view options
  + changed the font color to something more readable

Hierarchy Viewer:
  + created an instance of the a golden layout container, this enabled me to use
    resize feature for undo/redo testing
  + can now open Properties View
  + can now open Hierarchy View
  + can now open Scene View
  + can now open Project View
  + can now open Console View

All buttons in the "View" dropdown on the Menu Bar are all functional.
If the window is not active, you can open a new one. You can only open
a new window if there is currently no active window for the one you chose.
Only 1 of each window can be active at a time.

constructor() {
this.undoRedoManager = UndoRedoManagerService.getInstance();
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a singleton may cause issues later on with multiple editors running on one machine. Noted in issue #48

constructor(private http: HttpClient) {}

getComponentsList() {
const url = `${this.realEngineURL}/ComponentsList`;
Copy link
Owner

@Masstronaut Masstronaut Jun 12, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed as it is satisfied by the component definitions provided by /Components as documented here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants