Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xml scalesize

Featured Replies

HiI know that in the ACE xml format you can use <SizeScale> to scale an image:<Element id="Element"> <FloatPosition>0.000,0.000</FloatPosition> <Visibility>1</Visibility> <SizeScale>0.5</SizeScale> <Image id="My_image.bmp" Name="My_image.bmp"> <Transparent>True</Transparent> </Image> </Element>I'm trying to use this in an older style xml gauge and it doesn't seem to be working. Anyone know what the key to solving this is, or should I convert my old gauge to the new style?Thanks for the helpBobby

  • Moderator

That option is only available using the new FSX XML schema. Either convert your existing script to use the newer, richer and excessively verbose schema, or......simply scale your bitmap to the size you actually need. :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author

I was afraid you'd say that. I haven't decided if I should convert everything to ACE, or resize my bitmap. I've got about 15 gauges that will need it, and many of them are different sizes.Thanks for the help n4gix.

  • Moderator

For the sake of both efficiency and framerates, I long ago made it my practice to size bitmaps to precisely what I needed for any given gauge. Why force the sim to do more than it has to? :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator
  • Author
For the sake of both efficiency and framerates, I long ago made it my practice to size bitmaps to precisely what I needed for any given gauge. Why force the sim to do more than it has to? :(
That's a good point.Thanks

Just a little tidbit to add -- It worked in FS02 ex. <Image Name="X.bmp" ImageSizes="145,87,190,107" /> . It was totally forgotten in FS04, which is good as Bill stated. Why have FS do the extra work? IIRC the 2 sets of sizes were for a low res operation of FS and a normal resolution, or somthing like that..Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

  • Moderator
Why have FS do the extra work? IIRC the 2 sets of sizes were for a low res operation of FS and a normal resolution, or somthing like that..
Those were the days when XML scripted "gauges" had two texture subfolders:..\640..\1024All "scripts" were written to use the "640" resolution bitmap coordinates. FS would then automatically rescale the scripted coordinates whenever the hires (1024) bitmaps were loaded.Even though these "dual resolution" XML "gauges" are still supported by both FS9 and FSX, there's absolutely no good reason why anyone would even want to use the technique now, as I suspect there are likely few (if any) users who still own a 640x480 resolution monitor! :(:)In any event, what the OP was asking about is the <SizeScale> property tag, which is new for FSX, but only supported when the entire script is written using the newer FSX XML Schema.I've never seen any example of it being used at all:
SizeScale Float value to scale the size of the element, default is 1.000.

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.