1
0
Fork 0
flightgear/src/Objects
curt f6fac40a11 David Megginson writes:
I have a scrollable panel working (it didn't take long in the end).  A
panel can now be much wider or higher than the available area, and the
user can scroll around using [Shift]F5, [Shift]F6, [Shift]F7, and
[Shift]F8.  The user can also scroll the panel down to get a bigger
external view.  Mouse clicks seem still to be working correctly.

To set the panel's (virtual) height and width, use the panel file's /w
and /h properties in a panel XML file; to set the initial x- and y-
offsets (untested), use the panel file's /x-offset and /y-offset
properties; to set the initial height of the external view (untested
and optional), use the panel file's /view-height property.  Note that
none of these show up in the regular FGFS property manager.

Unfortunately, these patches will not affect your initialization
problems with the property manager -- I'm having a hard time tracking
them down because I cannot reproduce them.

I have also made some patches to main.cxx and views.cxx to do two
things:

1. Expand or shrink the external view as the panel moves up and down.

2. Set the window ratio correctly, so that we don't get an oval sun
   and flat clouds when the panel is visible (the problem before was
   integer division, so I added casts).

Unfortunately, the window ratio is not set properly at start-up --
there are too many dependencies, and I haven't figured that part out
yet.  As soon as you hide and redisplay the panel or move it
vertically (i.e. force fgReshape to be called), you'll see the correct
ratio.
2000-10-06 21:16:01 +00:00
..
colours.h source tree reorganization prior to flightgear 0.7 2009-09-14 14:26:20 +02:00
Makefile.am builddir -> srcdir so builds can be done outside the master source directory. 2000-09-20 23:27:25 +00:00
matlib.cxx David Megginson writes: 2000-10-06 21:16:01 +00:00
matlib.hxx Add support in materials file for non-repeating textures. 2000-08-25 05:53:12 +00:00
newmat.cxx Tweaks relating to texture repeating effects for runways and disabling mipmaps 2000-09-06 00:10:50 +00:00
newmat.hxx Tweaks relating to texture repeating effects for runways and disabling mipmaps 2000-09-06 00:10:50 +00:00
obj.cxx A bit of fg->sg namespace changing. 2000-09-27 20:16:22 +00:00
obj.hxx Cleaned up all the old fragment and material_mgr stuff which originated 2000-06-23 00:30:04 +00:00
texload.c Code reorganization. 2000-02-15 03:30:01 +00:00
texload.h source tree reorganization prior to flightgear 0.7 2009-09-14 14:26:20 +02:00