Page 1 of 1

Questions regarding StepsProgress/Heart

Posted: 14 Jul 2019, 15:45
by Besiuk
Hi everyone,

I've downloaded a couple of watch faces to understand how things work, and I'm now in the process of creating one by myself.
So what I'm trying to achieve is to recreate the classic Splinter Cell HUD as the HeartBeat & Step Counter.

This is how it looks in game:
sc-ingame.png
sc-ingame.png (73.22 KiB) Viewed 435 times
And this is what I got so far:
splinter-cell-en_packed_animated.gif
splinter-cell-en_packed_animated.gif (103.32 KiB) Viewed 435 times
There are some show stoppers I don't really understand.
  • Are the Step Counter segments limited to a specific number? I've created 18 segments, but it only shows 16.
  • Is there any chance to just move one segment (along coordinates) instead of adding more?
  • What for is the Heart->Scale parameter? Does it just show the bpm as a visual segment? Would like to use it as a single segment as well.
Also, I'm getting rendering errors as soon as I add my step function. Here is my code for that part, maybe someone will see an obvious error I missed:

Code: Select all

"StepsProgress": {
		"Linear": {
			"StartImageIndex": 87,
				"Segments": [
					{
					  "X": 14,
					  "Y": 174
					},
					{
					  "X": 19,
					  "Y": 174
					},
					{
					  "X": 24,
					  "Y": 174
					},
					{
					  "X": 29,
					  "Y": 174
					},
					{
					  "X": 34,
					  "Y": 174
					},
					{
					  "X": 39,
					  "Y": 174
					},
					{
					  "X": 44,
					  "Y": 174
					},
					{
					  "X": 49,
					  "Y": 174
					},
					{
					  "X": 54,
					  "Y": 174
					},
					{
					  "X": 59,
					  "Y": 174
					},
					{
					  "X": 64,
					  "Y": 174
					},
					{
					  "X": 69,
					  "Y": 174
					},
					{
					  "X": 74,
					  "Y": 174
					},
					{
					  "X": 79,
					  "Y": 174
					},
					{
					  "X": 84,
					  "Y": 174
					},
					{
					  "X": 89,
					  "Y": 174
					},
					{
					  "X": 94,
					  "Y": 174
					},
					{
					  "X": 99,
					  "Y": 174
					} 
			]
		}
	},
Maybe someone of you already figured out some of my questions, so thanks in advance ;)

Re: Questions regarding StepsProgress/Heart

Posted: 15 Jul 2019, 16:09
by TXK
I haven't done the progress bar of MI BAND 4. I've done it in other dial systems before. It seems that only 16 segments are supported.

The number of fragment images needs to be as large as the number of coordinate groups.

Heart - > Scale is another parameter that can be understood by referring to the code of other dials.