Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Banbury on October 04, 2009, 02:27:40 PM

Title: GUI maker (WIP)
Post by: Banbury 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.

(http://img131.imageshack.us/img131/8006/shform.jpg)

(http://img524.imageshack.us/img524/3626/bcform.jpg)

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.
Title: Re: GUI maker (WIP)
Post by: MLeo 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.
Title: Re: GUI maker (WIP)
Post by: captain_obvious on October 04, 2009, 03:29:54 PM
Good to see that you've decided to rejoin us banbury!