November 18, 201015 yr 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
November 18, 201015 yr 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
November 18, 201015 yr 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.
November 19, 201015 yr 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
November 22, 201015 yr 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
November 25, 201015 yr 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 FS RTWR SHRS F-111 JoinFS Little Navmap
November 25, 201015 yr 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