Open Domenick90 opened 1 year ago
I think you can only control where it ends. You should rotate the image manually to be at the start and then choose the maximum degree of rotation. Did you figure out what the mask_unk_1 and mask_unk_2 do ? Maybe they will break something if you don't set them correctly
It looks like unk mask 1 and 2 somehow affect this position, but I still can’t understand the regularity of their values, in different dials - different values!
In original json for watchfases (amazfit gts) i see this code:
"StepsProgress": {
"Circle": {
"CenterX": 67,
"CenterY": 132,
"RadiusX": 41,
"RadiusY": 41,
"StartAngle": 214,
"EndAngle": 501,
"Width": 9,
"Color": "0x000000000034C8ED",
"Flatness": 0
In Redmi Watch2:
{ "x": 102, "y": 18, "type": { "category": "STEPS", "type": "PERCENTAGE", "format": "FORMAT_IMAGE", "coordinate_types": "RMSS" }, "mask": "images_6\\mask.png", "mask_max_value": 100, "mask_pivot_x": 58, "mask_pivot_y": 58, "mask_max_degrees": 3600, "mask_unk_1": 54, "mask_unk_2": 8, "static": "images_6\\static.png" },
Maybe mask_unk_1 and 2 its start and end angle or center x and y ?
See this source code for Unpacker from m0tral: https://github.com/m0tral/UnpackMiColorFace - Maybe you can deal with these masks
Did you figure out what the mask_unk_1 and mask_unk_2 do ? Maybe they will break something if you don't set them correctly
I figured it out. These are the coordinates of the starting point on the circle(mask.png) In stock watchfaces this coordinates match. in custom for some reason these values do not change anything - the starting point is always on top.
I can't figure out how to select the initial coordinate point. In my dial, the countdown starts at 90 degrees! See the screenshot. Nike_decoded.zip