[HELP] Now creating a new custom UI

Next
 From:  Kondou
10478.1 
I now creating a new custom UI

How to know the built-in html element of Mol3D ?
Have about HTML element more infomaction or document ?
exp: moi:Text, moi:TextInput, moi:DistanceInput, moi:Slider and more ...............

how to set charset of Chinese ? utf-8 or utf-16?

Attachments:

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
10478.2 In reply to 10478.1 
HI Kondou, I'm sorry but there isn't any documentation for those things. It's not a publicly supported area of MoI currently.

You'll primarily need to learn by studying the current UI and experimenting with your own changes. It's also an area that can be changed from time to time and so it's not guaranteed that your work will be compatible with future versions, that's something to keep in mind.


> how to set charset of Chinese ? utf-8 or utf-16?

You can use the standard way for HTML to define a charset which is the meta tag:
https://www.w3schools.com/TAGs/att_meta_charset.asp

But in the normal UI there isn't any text located directly in .htm files, instead all translatable text resides in a Strings.txt file and the UI uses a <moi:Text> element where you give a textid value. Then the text is looked up from the current language's Strings.txt file. That then allows for the feature of switching languages and having the UI text change to come from a different XXXStrings.txt file.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Kondou
10478.3 In reply to 10478.2 
Thank you Michael, I understand what you mean.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All