(SBARINfO update)

- Added: fullscreenoffsets flag for status bars.  This changes the coordinate
  system to be relative to the top left corner of the screen.  This is useful
  for full screen status bars.
- Changed: drawinventorybar will use the width of artibox or invcurs (strife)
  to determine the spacing.  Let me know if this breaks any released mods.
- Fixed: If a status bar height of 0 was specified in SBarInfo the wrong bar
  would be shown.
- Fixed: If a static inventory bar was used the user still had to press invuse
  in order to get rid of the "overlay".
- Fixed: forcescaled would not work if the height of the bar was 0.
- Added: keyslot to drawswitchableimage.
- Fixed: The transition effects for the log and keys popups were switched.


SVN r1116 (trunk)
This commit is contained in:
Christoph Oelckers 2008-08-06 07:38:21 +00:00
commit 3908c71510
6 changed files with 236 additions and 114 deletions

View file

@ -188,9 +188,11 @@ void DBaseStatusBar::Destroy ()
//
//---------------------------------------------------------------------------
void DBaseStatusBar::SetScaled (bool scale)
//[BL] Added force argument to have forcescaled mean forcescaled.
void DBaseStatusBar::SetScaled (bool scale, bool force)
{
Scaled = RelTop != 0 && (SCREENWIDTH != 320 && scale);
Scaled = (RelTop != 0 || force) && (SCREENWIDTH != 320 && scale);
if (!Scaled)
{
ST_X = (SCREENWIDTH - 320) / 2;