Jump to content

Need help with gauge position in panel


jparnold

Recommended Posts

I have a few extra gauges installed in my (standard FSX) B737-800 panel and want to move the position of 2 of those gauges but can't work out how to change the 'co-ordinates'.

I have looked at the Microsoft panel configuration document which doesn't seem to give instruction on what to do.

 

Firstly the 'pushback gauge' which has the following data in the panel.cfg

 

size_mm=204,65

visible=0

window_size= 0.20,0.09

window_pos= 0.0,0.05

background_color=16,16,16

gauge00=RCB_Groundhandling5!PushbackDisplay, 2,2,74,61

gauge01=RCB_Groundhandling5!PushbackStates, 0,0

gauge02=RCB_Groundhandling5!Taxispeed, 79,2,64,61

//gauge03=RCB_Groundhandling!UseToebrakePedals, 0,0

gauge04=RCB_Groundhandling5!Brakes, 146,2,56,61

gauge05=RCB_Groundhandling5_Sound!dsd_xml_sound3, 0,0,0,0, ./Sound/Groundhandling5/Sound.ini

 

Firstly I realise that here there are actually 3 gauges which display next to each other.

 

I want them to display further down the panel (screen). I tried changing the Y co-ordinate from 2 to 20 which didn't work correctly and wonder if I also need to change the values for the 'window_pos'.

Lastly could someone explain exactly what the X and Y co-ordinates represent in relationship to the actual panel/screen display.

 

Thanks

 

Here is where they display and about where I would like them to display (marked with a red box)pushback.jpg

John

Gigabyte Z390 UD Intel Core i7-9700K 3.60 Ghz Dual 16Gb DDR4 2666

Gigabyte RTX2060 OC 6GB 2 X 256MB SSD drives 1 X 500GB HDD

Windows 10 64bit Home Logitech Extreme 3D Pro joystick

Link to comment
Share on other sites

What you were editing is the position of each of the 5 gauges on that popup panel.

 

From the image I see that what you really want to do is move the entire popup.

To do that, Change:

window_size= 0.20,0.09

window_pos= 0.0,0.55 //changed, orig0.0,0.05

 

 

Or do something like this:

//window_size= 0.20,0.09 //switched off

//window_pos= 0.0,0.55 //switched off

size_mm=127,60 //added

position=3 //added

 

(You will have to edit the size_mm to your own needs, this was taken from another gauge.)

Also:

position=0 -->>top left

position=1 -->top center

and this one, position=3 -->Center row, left

[sIGPIC][/sIGPIC]
Link to comment
Share on other sites

Sorry ....working on it! I looked at your picture too quickly!

 

I found position=3 was close but higher than you want. Very poor explanation by Microsoft about x,y window_position.

Still thinking about a new flightsim only computer!  ✈️

Link to comment
Share on other sites

I thought you wanted the popup to show up lower down. But maybe this question is not about placing the popup?

Is that an image of the 2D panel, or the 3D panel?

 

If you want the gauges on the 2D main panel, add the 5 gauges only, to the [Window00] section.

(not the windowsize= info and all that,

just the gauges.)

 

If you want to move them to the 3D panel. You can't.

You can't just add agauge to a 3D dashboard anywhere you like.

You can only put them where another gauge is now. They then repalce that gauge.

So for example, in the [VCocpit01] section:

put // in front of the PDF,

then add these 5 gauges in its place.

[sIGPIC][/sIGPIC]
Link to comment
Share on other sites

Thanks everyone.

 

(added after initial reply - I have fixed it see bottom of this reply)

 

Nice to read a reply from both of you as you both seem to visit such a lot of the different forums.

 

In answer to some questions.

YES the image I sent was of the 2D panel - don't want the 3D panel and know that it is a completely different "kettle of fish".

 

I prefer to have the gauge as a popup even though I have it set to always display.

 

Yes I know about the position=0 (1,2 etc) but those positions don't always result in exact position required (as MrZippy noticed).

 

I will now go and try the suggestions.

I wonder if there is a document around which explains how to use the positions X,Y after the gauge statement and also how window_size and window_position work and if they "tie in" with the X,Y positions after the gauge statement. The Microsoft document explains what is required but doesn't explain how they work.

 

Yes I have moved the push back gauge(s)

 

pushback1.jpg

 

I also changed the size smaller so that it doesn't 'interfere' with other gauges.

 

This is what I did -

 

//window_size= 0.20,0.09

window_size= 0.15,0.07

//window_pos= 0.0,0.05

window_pos= 0.21,0.53

 

I might 'play' with the position later to make it more unobstrusive.

 

Thanks again for 'pointing' me in the right direction ie use the window_pos. Still it would be nice to read somewhere what the values represent as fas as position on the screen. ALSO the co-ordinates for the 'command' are Y, X not X, Y - strange that.

John

Gigabyte Z390 UD Intel Core i7-9700K 3.60 Ghz Dual 16Gb DDR4 2666

Gigabyte RTX2060 OC 6GB 2 X 256MB SSD drives 1 X 500GB HDD

Windows 10 64bit Home Logitech Extreme 3D Pro joystick

Link to comment
Share on other sites

They just define where the popup appears on the screen.

You can make it appear anywhere you want by editing the numbers at the line:

window_pos=

 

I think that:

Window_pos= 0.0,0.0 is top left

Window_pos=1.0,1.0 is bottom right.

 

They are like x, y values, but they vary from 0 to 1.

They indicate a position on the screen. Not a position on the main panel.

 

(ps, you know you can grab a popup gauge and drag it, right? Just in case.;) )

[sIGPIC][/sIGPIC]
Link to comment
Share on other sites

From the SDK:

 

window_pos

 

Overrides the position and windowsize_ratio variables. Provide at least an x value, the y value is optional.

 

b747_400( window_pos=0.05, 0.25 )

beech_baron_58( window_pos=0.0,0.0 )

C172( window_pos=0.0,0.15 )

Extra300( window_pos= 0.000, 0.000 )

 

https://msdn.microsoft.com/en-us/library/cc526956.aspx

[sIGPIC][/sIGPIC]
Link to comment
Share on other sites

Thanks il88pp

 

Yes I know that popup gauges can be dragged. I just wanted to permanently position it (them) so that I don't have to drag every time.

 

It's good to know now what the values (Y,X) represent. I note that they can be expressed to 3 decimal places. So the value is sort of a percentage from left to right (and top to bottom) eg 0.5, 0.5 should be in the middle. That makes it easy (now that I know)

John

Gigabyte Z390 UD Intel Core i7-9700K 3.60 Ghz Dual 16Gb DDR4 2666

Gigabyte RTX2060 OC 6GB 2 X 256MB SSD drives 1 X 500GB HDD

Windows 10 64bit Home Logitech Extreme 3D Pro joystick

Link to comment
Share on other sites

Well, almost easy...

1,1 makes the popup drop off the screen.

Coordinates of a gauge/popup are always the coordinates of the top-left corner of a gauge/popup.

So it will still take some trial and error.:)

Good thing, keeps us off the street, lol.

[sIGPIC][/sIGPIC]
Link to comment
Share on other sites

window_pos and window_size are based on a percentage of the screen.

 

1.0 is all of the screen, 0.5 half.

 

window_pos places the top, left corner of the Window at the give percentage of the screen, from the left edge, from the top.

 

window_size dictates what percentage of the screen the window covers, width, height.

 

peace,

the Bean

WWOD---What Would Opa Do? Farewell, my freind (sp)

 

Never argue with idiots.

They drag you down to their level and beat you with experience

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...