March 31, 201115 yr Hi,I'm new to panel.cfg edits and been trying to find a way to do something pretty simple for a couple hours... beside going the trial-and-error-load-reload-edit-load-reload-edit............ way, I can't seem to underestand the relation between my screen resolution, size_mm, window_size, gauge size etc...What I want to do is simple, I want to add a detachable radar PUP for my F-18, showing the radar (which is in fact an XML gauge).I can display the popup allright, it's even showing the radar, no problem, but the gauge is supposed to be perfectly square and no matter what I try, I can't get it to display perfectly square!:( I've read the ESP SDK documentation but this is not helping.The closest I came to get what I'm looking for is with this: [Window01]background_color=0,0,255size_mm=185,185position=0window_pos=1.000, 1.000window_size=0.2109,0.375visible=1zorder=1ident=10000gauge00=FA18E!LDDI_LITE The gauge size is declared as 185x185 in the XML file, so that's what I used on the size_mm line, in order for the gauge to take the whole window space.My problem is with the window_size. After dozens of tests, I came to the conclusion that the values had to match my resolution ratio, am I right?So after many tries, 0.375 looked about right for the width, so I divided that value by my resolution ratio (1.7777777777...) to come up with 0.2109 for the height.Isn't there a better, simplier, FASTER way to create single gauge PUPs the correct size automatically? And what if I was to share this panel.cfg with someone on a different resolution, it wouldn't work anymore... Any tips, tricks, suggestions, comments?Thanks guys!
April 1, 201115 yr Hi,I'm new to panel.cfg edits and been trying to find a way to do something pretty simple for a couple hours... beside going the trial-and-error-load-reload-edit-load-reload-edit............ way, I can't seem to underestand the relation between my screen resolution, size_mm, window_size, gauge size etc...What I want to do is simple, I want to add a detachable radar PUP for my F-18, showing the radar (which is in fact an XML gauge).I can display the popup allright, it's even showing the radar, no problem, but the gauge is supposed to be perfectly square and no matter what I try, I can't get it to display perfectly square!:( I've read the ESP SDK documentation but this is not helping.The closest I came to get what I'm looking for is with this:[Window01]background_color=0,0,255size_mm=185,185position=0window_pos=1.000, 1.000window_size=0.2109,0.375visible=1zorder=1ident=10000gauge00=FA18E!LDDI_LITE The gauge size is declared as 185x185 in the XML file, so that's what I used on the size_mm line, in order for the gauge to take the whole window space.My problem is with the window_size. After dozens of tests, I came to the conclusion that the values had to match my resolution ratio, am I right?So after many tries, 0.375 looked about right for the width, so I divided that value by my resolution ratio (1.7777777777...) to come up with 0.2109 for the height.Isn't there a better, simplier, FASTER way to create single gauge PUPs the correct size automatically? And what if I was to share this panel.cfg with someone on a different resolution, it wouldn't work anymore... Any tips, tricks, suggestions, comments?Thanks guys! I believe you have two options,1.[Window01]background_color=0,0,255size_mm=185,185position=0window_size=0.2109,0.375visible=1zorder=1ident=10000gauge00=FA18E!LDDI_LITE,0,0,185,185or2.[Window01]background_color=0,0,255position=0window_size=0.2109,0.375visible=1zorder=1ident=10000gauge00=FA18E!LDDI_LITE,0,0,100,100either way, window_size is calculated based on your monitor, so no itwill not be square on a monitor with a different ratio.position=n will decide where to put the gaugewith n=0 1 23 4 56 7 8 Bert
Create an account or sign in to comment