Version 10 (modified by mitex, 16 years ago) (diff) |
---|
Analysis
Overview
- This is a list with some features that could be done:
- Halos and huds become part of the scene
- If halos and huds are part of the scene, they could be transparent, rotated and other effects could be applied to them. (Think if we need this now.)
- Huds and HudHaloButtons
- When the mouse is over a HudHaloButton, the hud appears.
- When the mouse is clicked over a HudHaloButton, the hud is pinned.
- The hud appears under the hud halo button it is connected to.
- The halo menu can have not more than one active hud. When the user pins a second hud, the first one get unpinned and disappears.
- Make extensible huds (just like in Sophie 1). When the extension button is clicked, extension of the hud appears/disappears. Extension of a hud is a part of the hud that has own visibility property.
- The size of the hud depends on the size of its subcomponents.
- The subhud should align with the sub hud button.
- Change the hud halo button icon depending on hud visibility.
- Change the hud halo button icon if mouse is pressed, rolled, if the halo is disabled. (selected or normal mode)
- Improve frame rotation
- Change rotation center
- More intuitive
- Halos and huds become part of the scene
Task requirements
- Prioritize task from the list.
- Decide which are needed to be done and which are optional.
- Fix the tasks that needs to be done.
Task result
- The result of this task should be source code.
Implementation idea
- Halos and huds become part of the scene - optional.
- When the mouse is over a HudHaloButton, the hud appears - optional.
- When the mouse is clicked over a HudHaloButton, the hud is pinned - optional.
- The hud appears under the hud halo button it is connected to - needed.
- The halo menu can have not more than one active hud - needed.
- Make extensible huds - needed.
- The size of the hud depends on the size of its subcomponents - needed.
- The subhud should align with the sub hud button - needed.
- Change the hud halo button icon depending on hud visibility - needed.
- Change the hud halo button icon if mouse is pressed, rolled, if the halo is disabled. (selected or normal mode) - optional.
- Improve rotation - optional.
Related
How to demo
- Demonstrate the new features and source code.
Design
- Change the hud halo button icon depending on hud visibility:
- Make HudHaloButton to extend SwitchHaloButton.
- Remove the TODO comment in the Javadoc.
- Override SwitchHaloButton.computeState.
- It should return State.ON when hud().get().shown().get() is true and State.OFF otherwise.
- In all subclasses of HudHaloButton replace the record ICON_PROP_ID with two skin records:
- ICON_OFF_PROP_ID - the default icon.
- ICON_ON_PROP_ID - the icon that will be used when the hud is visible.
- Use the icons provided by Shift Global.
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
- If the huds are part of the scene, they could not be drawn outside of the page work area (see http://sophie2.org/trac/ticket/1715) --mitex@2009-07-27.
- dido: 2009-07-28
- Here is a list of things that you have to keep in mind while implementing this.
- First of all if the hud appears on roll over some halo button, the area could become sensitive and a lot of undesired huds could start popping up. This could be partially avoided by adding some delay. My personal opinion is that this should be first developed as prototype and then take decision is this going to be the final behavior. Same applies for pinning, positioning and "only on visible hud". It may happen that the behavior we have at this point is more appropriate. Please focus on other topics first.
- Those two Change the hud halo button icon depending on hud visibility. and Change the hud halo button icon if mouse is pressed, rolled, if the halo is disabled. (selected or normal mode) looks like the same for me.
- Halos and huds become part of the scene - for this one please make sure that doesn't effect the performance of the application.
- Related section is not finished please review and add following tasks
- Peko and me are working on adding new skins for the entire application, please communicate with us and Deyan.
Analysis Reviewed 3.5p (1h)