aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
654 stars 201 forks source link

Add dropdown menu to select entity presets while adding a new entity #228

Closed fernandojsg closed 5 years ago

fernandojsg commented 7 years ago

I need some help here with the dropdown menu on the + icon on the scenegraph, basically it will show a list of presets (sphere, cube, plane, light, etc...) /cc @feiss @nucliweb

feiss commented 7 years ago

I think using something like the dropdown list of components is cool enough. Dark background, blue highlighting.

image

dmarcos commented 7 years ago

Should all the dropdowns be consistent? Either centered or aligned to left?

feiss commented 7 years ago

who said centered? ^_^

fernandojsg commented 7 years ago

I like it! PR please! :P

feiss commented 7 years ago
div.context-menu {
  font-family: 'Roboto', sans-serif;
  position: absolute;
  margin-left: -2px;
  margin-top: -8px;
  background: #222;
  z-index: 99999999;
  font-size: 14px;
}
div.context-menu a {
  color: #868686;
  padding: 6px 15px;
}
div.context-menu a:hover {
  background-color: #1faaf2 !important;
  color: #fff;
}
fernandojsg commented 7 years ago

I believe it needs a larger z-index:D

feiss commented 7 years ago

http://s2.quickmeme.com/img/88/88f0f2bf2507cf431bf6b63e9f15a4e5b4205bd1ce57f995016c5e75265093a5.jpg

ngokevin commented 5 years ago

not going to focus inspector on being a creation tool with primitives atm. although stuff like import from blocks/sketchfab would be good for dropdown