[Gtkradiant] working on a plugin, need some advice
Anout 'RR2DO2' van Meer
gtkradiant@zerowing.idsoftware.com
Mon, 20 Oct 2003 01:35:52 +0100
We could add a pre-xyzwindow paint callback to plugins so they can paint
before the xyzwindow does it's stuff? Should be trivial.
- Arnout
----- Original Message -----
From: "ydnar" <ydnar@shaderlab.com>
To: <gtkradiant@zerowing.idsoftware.com>
Sent: Monday, October 20, 2003 12:10 AM
Subject: Re: [Gtkradiant] working on a plugin, need some advice
> Why not just add it to the core? It's an oft-requested feature.
>
>
>
> Reed Mideke wrote:
>
> > *This message was transferred with a trial version of CommuniGate(tm)
> > Pro*
> > I'm working on a plugin for this feature:
> > http://zerowing.idsoftware.com/bugzilla/show_bug.cgi?id=88
> > "loading a background image in the 2D view to use as a layout"
> >
> > I have the basic functionality working:
> > http://www.splashdamage.com/forums/viewtopic.php?t=4765
> >
> > Now I'm trying to clean it up and make is user friendly.
> > Currently, it uses m_pfnLoadImage from radiant to load the
> > background. This is handy, since it means I don't have to
> > write any loading code, and users have plenty of format choices.
> > The downside is, as far as I can tell, this will only load the
> > file from the under the game directory (main, baseq3 etc) or
> > a .pk3 file. That means that if I use a standard file dialog,
> > I would have to munge the path, and users might browse outside
> > of the the usable directories.
> >
> > It sure would be nice if there was a way to tell VFS 'it is OK
> > to try an absolute path first'
> >
> > Any suggestion on a good way around that ?
> >
> > Another issue with the plugin is that it renders after
> > everything else in the 2d window, so it is not really a
> > proper background image. I get around this by having user
> > selectable alpha, as well as allowing the use of the
> > images own alpha channel.
> > Blending works reasonably well, but it would be faster and more
> > convenient to have the background image just get rendered at the
> > very start of the 2d windows stuff. I don't see any way to do
> > that without either putting it in the radiant core, or adding
> > another point to hook into.
> >
> > Thanks in advance for any advice.
>
>
>
> _______________________________________________
> Gtkradiant mailing list
> Gtkradiant@zerowing.idsoftware.com
> http://zerowing.idsoftware.com/mailman/listinfo/gtkradiant