RELEASE Plutonium - An easy-to-use UI framework for Nintendo Switch homebrew

Discussion in 'Switch - Emulation, Homebrew & Software Projects' started by XorTroll, Dec 29, 2018.

  1. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Plutonium - an easy-to-use UI framework for Nintendo Switch homebrew

    Plutonium is a high-level, C++ graphical library with the aim of making UIs in a more simple, user-friendly way.

    Here you have some sample screenshots:

    2019032315044900-DB1426D1DFD034027CECDE9C2DD914B8.
    2019032315045400-DB1426D1DFD034027CECDE9C2DD914B8.

    For further information, check the README in the links below:

    GitHub link: https://github.com/XorTroll/Plutonium
    Github release: https://github.com/XorTroll/Plutonium/releases

    Currently version 0.2 is the latest released version.
    Enjoy making homebrew with some nice UIs!
     
    Last edited by XorTroll, Mar 23, 2019
  2. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    I made some stuff for SDL2 rendered games (such as buttons, toggles and stuff) so if I can contribute with anything, just ask ^^
     
    XorTroll likes this.
  3. Miqote

    Miqote GBAtemp Regular

    Member
    5
    May 2, 2018
    Macedonia, The Former Yugoslav Republic of
    This is pretty neat, good stuff! I think making a good UI was one of the main reasons holding people back, or at least it was for me.
     
  4. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Just check out Goldleaf's UI, that beauty is all handled via this library.
    To be honest, I made this library to have a good UI system for Goldleaf and future projects like Brew.js
     
  5. linuxares

    linuxares I'm not a generous god!

    Moderator
    16
    Aug 5, 2007
    Sweden
    Oh neat! Really useful!
     
  6. Sora Takihawa

    Sora Takihawa Planeptunes Male CPU

    Member
    6
    Oct 11, 2015
    Germany
    Planeptune
    good tool
     
  7. annoo

    annoo Newbie

    Newcomer
    1
    Dec 29, 2018
    Germany
    Already played around with it in the last few days. Great to see an official release!
    Great job!
     
  8. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Plutonium 0.2 has been released! Introducing roundy and crispy rendering now, as you might have seen in Goldleaf!
    Link: https://github.com/XorTroll/Plutonium/releases/tag/0.2

    Changelog:

    • Rendering:
      • The internal application rendering system has slightly changed to improve dialogs' rendering, which has also changed some rendering callbacks for elements.
      • New functions have been added into SDL2-based rendering system, mostly related to round shapes.
    • Dialogs have been redesigned, without the old fullscreen, round shapes. Now the right joystick allows fast moving among options, and all the margins and sizes are automatically computed.

    • Elements:
      • Rounded shapes have been added, now applying to progress bars and dialogs.
      • Some element destructors have been fixed and/or improved.
    • Added a WIP focus system, which is barely untested:
      • It's based in Windows's focus system with UI elements.
      • Only an element has focus, and focus is changed via touch or R-Stick, based on stick directions.
      • As said it's WIP, so might not work as expected. By default elements don't use the focus system.

    — Posts automatically merged - Please don't double post! —

    Also I've updated this thread with some screenshots (how didn't I have any, this is an UI library, jesus)
     
  9. fourminute

    fourminute GBAtemp Regular

    Member
    3
    Jan 15, 2019
    United States
    XorTroll back at it again. Good work. You forgot to include the XorTroll Industries copyright tag btw. wink wink.
     
    Last edited by fourminute, Mar 23, 2019
    XorTroll likes this.
  10. Sumandora

    Sumandora GBAtemp Fan

    Member
    3
    Nov 13, 2018
    Germany
    more examples or a better usage would be very helpful... i tried it and after 5 Days of installing cuz im to silly i dont know how to add a button..... maybe because im learning C++ currently and know 5 % of the complete usages D:
     
  11. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    Just need to create a button object in your scene
     
  12. Sumandora

    Sumandora GBAtemp Fan

    Member
    3
    Nov 13, 2018
    Germany
    i did but always get an error from dkp
     
  13. romain337

    romain337 Advanced Member

    Newcomer
    2
    Jan 7, 2016
    France
    Paris
    Why not use IMGUI ? The opengl3 renderer work as it using the glad loader build option :)
     
  14. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    SDL2 is a lot easier (?)
     
  15. romain337

    romain337 Advanced Member

    Newcomer
    2
    Jan 7, 2016
    France
    Paris
    IMGUI as a SDL2 renderer, take a look at the repo:
    https://github.com/ocornut/imgui

    It's a GUI cross platform framework...
     
  16. XorTroll
    OP

    XorTroll Dev: Goldleaf, emuiibo, Brew.js...

    Member
    11
    Dec 28, 2017
    Spain
    Nowhere
    Released 0.2.1 with a few small changes: https://github.com/XorTroll/Plutonium/releases/tag/0.2.1

    Changelog:

    • Elements
      • When moving among Menu items, going upper than the top element will move to the latest element, ang going down on the latest one will start at the top.
    • Examples
      • Added two new examples: GlobalInputs and Dialogs.
     
    hippy dave likes this.
  17. Manurocker95

    Manurocker95 Game Developer & Pokémon Master

    Member
    6
    May 29, 2016
    Spain
    Madrid
    Buttons on dialog should call function pointers so custom methods could be accessed when pressing them. Nice update btw.
     
Loading...