Page 1 of 1

Question about JSON FILE

Posted: 07 Jul 2019, 01:30
by SrPhilippe
What do these parameters (BottomRightX, bottomRightY and alignment) do?

Code: Select all

"Pulse": {
      "Number": {
        "TopLeftX": 47,
        "TopLeftY": 33,
        "BottomRightX": 69,
        "BottomRightY": 49,
        "Alignment": "TopCenter",
        "Spacing": 1,
        "ImageIndex": 81,
        "ImagesCount": 10
      },
      "DelimiterImageIndex": 91
    }
I'm not understanding it, because the code already has the TopLeftX and TopLeftY to positioning the object, right?

Re: Question about JSON FILE

Posted: 14 Jul 2019, 08:32
by yzx_28
yes you are right
They are of no use

Re: Question about JSON FILE

Posted: 14 Jul 2019, 08:58
by lvpokka
No, it's showing end of place holder of image for some purpose, alignment work like where to shift text in placeholder if it's very wide

Re: Question about JSON FILE

Posted: 15 Jul 2019, 01:51
by yzx_28
lvpokka wrote: 14 Jul 2019, 08:58
No, it's showing end of place holder of image for some purpose, alignment work like where to shift text in placeholder if it's very wide
However, if you enter the wrong parameters, it will not affect the image display.

Re: Question about JSON FILE

Posted: 15 Jul 2019, 02:14
by yzx_28
lvpokka wrote: 14 Jul 2019, 08:58
No, it's showing end of place holder of image for some purpose, alignment work like where to shift text in placeholder if it's very wide
I was wrong. I saw that one of the parameters was the alignment. If it was on the top left it didn't matter, but if it was centered it did
Translated by youdao