BsScriptHandleManager.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #include "BsScriptHandleManager.h"
  2. namespace BansheeEngine
  3. {
  4. // TODO - Query a list of all IHandle implementations and the types they are activated on
  5. // - Make sure the list can be refreshed on assembly reload
  6. // TODO - Keep a list of every active ScriptSlider* type
  7. void ScriptHandleManager::refreshHandles()
  8. {
  9. // TODO - Query Selection class to detect new and removed items from selection
  10. // - Create and destroy IHandle implementations accordingly
  11. // - Query new selection for a list of their components and create new handles appropriately
  12. // TODO - Also handle creation of default move/rotate/scale handles
  13. // TODO - Call Update() method on all active IHandle implementations
  14. // TODO - Update matrices of all active sliders from their corresponding SOs
  15. // - Need to add a new field to SliderHandle for such matrix
  16. }
  17. void ScriptHandleManager::triggerHandles()
  18. {
  19. // TODO - See if any sliders are active and if so, trigger their callbacks
  20. }
  21. void ScriptHandleManager::queueDrawCommands()
  22. {
  23. // TODO - Call Draw methods of all active IHandle implementations
  24. }
  25. }