Open p-czaja opened 4 years ago
@huiyueun, could you please take a look?
I've added 'Badge' property to RotarySelectorItem. If you set 'Badge' property, draw badge icon. ex) RotarySelectorItem item; item.Badge = 4;
But Badge icon have problem. If the Badge number is three-digit or two-digit, the badge icon size should be increased. If I increase the size arbitrarily, the image will be broken. Images with large badge icon resources cannot be found. How do we deal with it?
https://github.com/dalihub/nui-demo/pull/90
I changed it to the resource you sent me. But I think "bg_1.9.png" is also needed, but there is no file. could you check this file?
1 digit -> bg_1.9.png 2 digit -> bg_2.9.png 3 digit -> bg_3.9.png And the UX guide and the file you sent are different.
int Badge
to the RotarySelectorItem class that is responsible for viewing the set number next to item icon. If the number is 0 (default) no number is displayed.