• Amministratore
  •  
    Support Ukraine
    If you experience any problems with the forum (it is not visible, there is no way to post messages, or some functionality does not work), please let us know. If you have problems with registration or you did not receive confirmation letter, let us know and we will activate your account manually.
    If you get an "The submitted form was invalid. Try submitting again" error, delete cookies, then try again.
     

Customize text displayed for editable components

Topics for the request of watch faces development.

Moderatori: asoo, Watchmens

Regole del forum
When adding a new topic, use the template: Topic title [device name]
For example: Requesting creation of watch face [T-Rex Pro]
All communication in this branch should only be in English.
Rispondi
toolsrme
Messaggi: 19
Iscritto il: 04 ago 2023, 18:36
Località: Missouri
Has thanked: 9 times
Contatta:

Customize text displayed for editable components

Messaggio da toolsrme »

Is there a way to customize the text that is displayed in the tips panel in the edit mode?

e.g. How to make the text associated with hmUI.edit_type.HEART say something other than "Heart Rate" in the example code:

Codice: Seleziona tutto

editGroup = hmUI.createWidget(hmUI.widget.WATCHFACE_EDIT_GROUP, {
  edit_id: 101,
  x: groupX,
  y: groupY,
  w: 148,
  h: 148,
  select_image: rootPath + 'mask/select.png',
  un_select_image: rootPath + 'mask/select.png',
  default_type: hmUI.edit_type.HEART,
  optional_types: [{ type: hmUI.edit_type.HEART, preview: rootPath + 'preview/bat.png' }],
  count: 1,
  tips_BG: rootPath + 'mask/text_tag.png',
  tips_x: 172 - groupX,
  tips_y: 210 - groupY,
  tips_width: 110,
  tips_margin: 10 // optional, default value: 0
})
Or is there a way to create your own custom types and use that instead of the built-in hmUI.edit_type's?
Rispondi

Torna a “Watchfaces creation (order table)”

Chi c’è in linea

Visitano il forum: Nessuno e 1 ospite