jakubg1/OpenSMCE

Rewrite UI

jakubg1 opened this issue · 0 comments

The current UI system is pretty convoluted and hard to use. I have an idea to make it much more user-friendly.

The new UI system will be comprised of three elements:

  • Layout: That's where all UI dialogs will be contained. Their starting positions, scales, rotations, colors, alphas and more will be stored here.
  • Animations: Simple animation presets to be applied to dialogs, for example "change alpha from 0 to 1 in 0.5 seconds". Will allow changing positions, scales, rotations, etc. Will allow other transitions than linear, similarly to paths.
  • Sequences: More complex animation routines which will contain information about applying multiple animations to multiple widgets at certain times, as well as deploying particles or playing sounds.

The layers will remain as they are.
The UI script will be much less convoluted via addition of sequences, and it will still perform an important role in terms of changing widget texts, calling functions, receiving callbacks or activating sequences.