Skip to content
Snippets Groups Projects
  • sam's avatar
    Simplify main render system (#106) · 0bb15dea
    sam authored
    * add TODOs
    
    * separate CosmicEdit from display
    
    breaks loads of stuff: sizing, click functions, cursor hovering just a few
    
    Only tested on login example
    
    not optimized; spams handle weak clones to ensure got correct handle (will be fixed by new handle swapping routine)
    
    not sure about the API changes but might just need to get used to it, is much more extensible
    
    * break render function apart
    
    centered padding now broken, not tested other text positions
    
    * reshape earlier in render to fix padding issue
    
    * move image creation to own system
    
    * resize internal sprite to computed UI size
    
    * prevent panic on zero size UI elements
    
    * clicks + editor-display one-to-many relationships
    
    * add render systemset
    
    * fix hoverable invisible sprites
    
    * update examples
    
    * fix auto-height bugs
    
    * clippy
    0bb15dea