AnimationWindow.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. /** @addtogroup Windows
  7. * @{
  8. */
  9. /// <summary>
  10. /// Displays animation curve editor window.
  11. /// </summary>
  12. internal class AnimationWindow : EditorWindow
  13. {
  14. private GUITimeline timeline;
  15. /// <summary>
  16. /// Opens the animation window.
  17. /// </summary>
  18. [MenuItem("Windows/Animation", ButtonModifier.CtrlAlt, ButtonCode.A, 6000)]
  19. private static void OpenGameWindow()
  20. {
  21. OpenWindow<AnimationWindow>();
  22. }
  23. /// <inheritdoc/>
  24. protected override LocString GetDisplayName()
  25. {
  26. return new LocEdString("Animation");
  27. }
  28. private void OnInitialize()
  29. {
  30. timeline = new GUITimeline(GUI, 300, 40);
  31. }
  32. private void OnEditorUpdate()
  33. {
  34. //int position = (int)(MathEx.Sin(Time.RealElapsed)*50.0f + 50.0f);
  35. //canvas.SetPosition(position, 0);
  36. }
  37. private void OnDestroy()
  38. {
  39. // TODO
  40. }
  41. }
  42. /** @} */
  43. }