Author Topic: GUI maker (WIP)  (Read 869 times)

Offline Banbury

  • Posts: 8
  • Cookies: 17
    • Banbury's Home
GUI maker (WIP)
« on: October 04, 2009, 02:27:40 PM »
Hi,
a few weeks ago I bought one of those fancy Netbooks. While playing around with it I noticed, that it had a 3D accelerator card. I looked through my games to see which game I could try to run on it. Given the nature of this forum, you probably guessed that I chose Bridge Commander. To my joy it ran like a charm. From this I started to install a few mods and before I knew what happened I was back modding.

One of the things I always wanted to do, was to create a GUI editor. Handscripting GUIs in BC is a pain. I actually started two or three attempts in different languages but got nowhere. But this time I made some real progress.





SharpDevelop recently added a Form editor for IronPython. The auto generated code from this editor is very simple Python. I implemented parts of the System.Windows.Forms namespace in BC and created code to build a GUI from the resulting object tree. With only minor changes files created by the SharpDevelop editor can now be used in BC.
I have still some things to do before I can release something, but so far the results are very promising.

PS: Some images where supposed to show up in the gap above, but thanks to my low post count they don't show up.
http://banbury.110mb.com/screenshots/sh_form.jpg
http://banbury.110mb.com/screenshots/bc_form.jpg
PPS: The images seem to be a problem with my host. Try to copy and paste the links into a new browser window.
PPPS: I've uploaded the images to my website:
http://banbury.110mb.com/?wips,15
PPPPS: Uploaded the images to ImageShack.
B.A.N.B.U.R.Y.: Biomechanical Artificial Neohuman Built for Ultimate Repair and Yelling

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: GUI maker (WIP)
« Reply #1 on: October 04, 2009, 02:48:57 PM »
Good to have you back!

I've always thought we needed such a thing, it's one of the primary reasons why I always try to keep my mods GUI free (ok, some exceptions, such as UMM and Chameleon, and BPCore, and BPUniforms, and indirectly also SubMenu, ok, a lot of my mods contain GUI :S).

A second reason is that GUI management through mods is difficult.

It would appear I get 403 (not authorized) when I try to view those images.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline captain_obvious

  • The captain of obvious-ness
  • Posts: 1703
  • Cookies: 54
    • ARmy Rumour SErvice- British Army Unofficial community
Re: GUI maker (WIP)
« Reply #2 on: October 04, 2009, 03:29:54 PM »
Good to see that you've decided to rejoin us banbury!
I miss :bigdance: