Author Topic: Possible new UI systems for FSO  (Read 3342 times)

0 Members and 1 Guest are viewing this topic.

Offline m!m

  • 210
Re: Possible new UI systems for FSO
I have an initial working implementation of the libRocket integration into FSO:


(the text and the image in the top left is the stuff that was drawn by libRocket).

Implementing the required interfaces was actually pretty straight forward and upon closer inspection, the framework seems flexible enough for our purposes. I still need to implement the animation display but hopefully that won't require too much effort.

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
Development update:


I have added support for handling input and I also already a few debug features. All current documents can be reloaded with Ctrl+Shift+R so modders don't have to exit the game to test their changes. Also, I added support for activating the integrated debugger which is also shown in action above.

However, while adding these new features I have also found a few bugs in libRocket and since development has pretty much stopped at this point we would have to fix all the bugs we find ourself. The development time so far has been pretty minimal so this would be a good time to reconsider alternative solutions if they exist.
Does anyone have a solution that could work better than libRocket?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️À➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Possible new UI systems for FSO
Is it that dead?  They had commits as recently as November.  Someone might still be merging PRs.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Re: Possible new UI systems for FSO
They've had commits, but they also have an untreated bot infection on their main forums and no releases in two years.
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Possible new UI systems for FSO
Yeah IMHO we can't use a library  that isn't actively developed/supported/maintained, as cool as this library sounds. Besides bugs that may never be fixed, if compatibility with for example future OS changes breaks, we'll be up the creek.
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
Do you know another solution? Even in its current state it's pretty good so "no longer in development" would just go into the "Reasons against" list which would not automatically disqualify the library.

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Re: Possible new UI systems for FSO
I would agree. Given that this library isn't built on top of OS functionality (Like wx), I think the risk of running into incompatibilities is reasonably low, and if the necessary bugfixes are trivial, I see no real reason not to use it.
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 

Offline jg18

  • A very happy zod
  • 210
  • can do more than spellcheck
Re: Possible new UI systems for FSO
Okay, then.
wxLauncher 0.10.1 beta now available! Toggle FRED launching with F3! | wxLauncher 2.0 Request for Comments
Hey mod authors! Did you know you can customize wxL's recommended lighting preset through your mod.ini? Check it out!

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
I think I'm more or less done with the initial integration. GitHub branch is here: https://github.com/asarium/fs2open.github.com/tree/feature/libRocket

This should support everything that is needed for most UI screens. It doesn't have support for animations yet but it should be possible to add support for that at some point by adding a new element type. The current version even has support for localization since that is pretty easy to support thanks to how libRocket works.

I'll try to go ahead and build an options menu using this library which will probably expose a few more bugs.

Also, I currently named the new system simply "NewUI". Does anybody have a better name for it?

 
Re: Possible new UI systems for FSO
SCPUI ? RocketUI ?

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
I like SCPUI, I'll use that.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Possible new UI systems for FSO
You should have gone with Even Snazzier UI. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: Possible new UI systems for FSO
Sounds really neat!  I suppose since it is dead,  future maintainability is important to you, and you intend on making it mission critical,  why not fork it and make it a sub project of FS2O on git?   Especially since you say currently no work needs to be done on it, and it has an MIT license.
« Last Edit: March 18, 2017, 09:12:24 am by Darklord42 »

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
I already use a fork of the project in my development branch. If it gets merged into the master then that fork would be transferred to the SCP organization.

 
Re: Possible new UI systems for FSO
Oh great!  Then problem solved, right?

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
No, the fundamental problem that the project isn't in development anymore still exists.

 
Re: Possible new UI systems for FSO
But you intend to fill that role for your own purposes.  If you can manage it, sometimes it's better not to have to rely on an upstream team as you know your needs better then anyone else. And this is already mature software, right?

 

Offline m!m

  • 210
Re: Possible new UI systems for FSO
I would like to avoid maintaining a code base I have no experience with. It would be better if I could just report a bug to upstream and get some help with fixing it.

 
Re: Possible new UI systems for FSO
I'm not saying being a pain isn't a con, but there are other advantages to it.  Eventually making it your own is one.

But, if the code is a mess and not maintainable or isn't commented very well, then that should be a good strike against it.
« Last Edit: March 18, 2017, 09:43:56 am by Darklord42 »

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Possible new UI systems for FSO
Maybe the fact that it's being used might get some of the original team interested again. Might be worth a try to use the old "I'm interested in using your library in my software, I've got it working but I was wondering if it's still in development" trick. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]