Skip to main content
Version: v3

DATE_POINTER

ValueDescription
hmUI.date.MONTHmonth
hmUI.date.DAYday
hmUI.date.WEEKDay of the week

Code example

let week = hmUI.createWidget(hmUI.widget.DATE_POINTER, {
scale_x: 0,
scale_x: 0, scale_y: 0,
scale_sc: 'bg.png', // Background image, optional.
scale_tc: 'bg.png',
scale_en: 'bg.png',
center_x: 100,
center_y: 100,
src: 'pointer.png', // Image.
posX: 0,
posY: 0,
cover_x: 0, //Pointer above the hat.
cover_y: 0,
cover_path: 'cover.png',
start_angle: 0, //Point 0 is positive. You can write negative numbers.
end_angle: 180,
type: hmUI.date.WEEK //Refer to the table above.
})