Closed GladYouAsked closed 1 month ago
Can you show the contents (in a code block) of your layout(s) as well, please?
Sure, here is the layout I am using (slightly modified in the meantime for the position of "line1")
{ "id": "AW109SP.MFD_Rotary_Left.xkeypad.layout", "items": [ { "key": "icon", "type": "pixmap", "rect": [0, 0, 200, 100], "zOrder": 1 }, { "key": "line0", "type": "text", "rect": [60, 0, 140, 30], "font": {"size": 27, "weight": 350 }, "color": "#0ea116", "alignment": "left", "zOrder": 2 }, { "key": "line1", "type": "text", "rect": [60, 48, 140, 30], "font": {"size": 27, "weight": 350 }, "color": "#0ea116", "alignment": "left", "zOrder": 3 } ] }
Just for readability:
{
"id": "AW109SP.MFD_Rotary_Left.xkeypad.layout",
"items": [
{
"key": "icon",
"type": "pixmap",
"rect": [
0,
0,
200,
100
],
"zOrder": 1
},
{
"key": "line0",
"type": "text",
"rect": [
60,
0,
140,
30
],
"font": {
"size": 27,
"weight": 350
},
"color": "#0ea116",
"alignment": "left",
"zOrder": 2
},
{
"key": "line1",
"type": "text",
"rect": [
60,
48,
140,
30
],
"font": {
"size": 27,
"weight": 350
},
"color": "#0ea116",
"alignment": "left",
"zOrder": 3
}
]
}
(use three ticks (```) before and after your code to get a code formatting block. For syntax highlighting, add the language after the first three ticks, so ```json in this case.)
Your layout seems pretty straightforward. And I take it it's the only one. So no conflicts there. In that case it might be a bug on the Stream Deck side, as (as far as I know) X-KeyPad just sends the whole layout over to the Stream Deck to render.
I suspect it is getting clipped where it gets too big for the rectangle. Try making the size and weight smaller. On the key try making the size smaller.
@sanderdatema : Thanks for the tip with the code formatting block, I was looking for that! @markcellis : Tried it with a "size": 17 instead of "size": 27 but the same result. As it is displayed correctly in the end I assume the text fits in the box?
I have to correct my statement in the initial posting:
For the lines definition: the string is NOT shown completely in the X-KeyPad Plugin-Interface. I must have tricked myself by updating the page by selecting it. Now I have screenshot of the X-KeyPad Plugin and the DataRefEditor side-by-side:
While the string in the dataref-Editor says "CRS VOR1", the "1" is missing in X-KeyPad.
Am I using the "String Size:8" correctly (maximum number of characters to be displayed: 8)? But as it works "in most cases", this should be OK.
What happens if you set the end index to 7?
Since I don't have that aircraft it might make sense for me to take a look at what is going. Can you contact me on our Discord server so we can setup a time?
This will be in 1.6.1 Beta 5
Hello, I am not sure if this is a bug or just a limitation in the interface to the Stream Deck.
I am displaying a substring on a StreamDeck+ Touch Strip using layouts. In principle this works OK.
But sometimes some characters at the end of the string
How it should look:
This is the incomplete indication (the "1" is missing):
The lines definition (yes, the string is always shown completely in the X-KeyPad Plugin-Interface):
Additional Info: This also happens when displaying the substring on a button. In the example shown below the string is shown completely on the touch strip, but incompletely on the button. Pressing the button solves the issue:
I am using X-Plane 12.1.1 X-Keypad 1.6.0 Stream Deck Software 6.6.1