Section Preferences
Preferences functions: workaround for bogus or missing function that read global preferences.
Summary
Return type | Function and summary |
---|---|
string | GetGlobalSetting(string settingName) Reads a line from global settings file, when MyrScript has no built-in function to get the value of a global setting. |
string, int, int, string | GetPreferredFont(string object) Get preferred font from Global settings > Fonts |
Functions
GetGlobalSetting(string settingName)
Reads a line from global settings file, when MyrScript has no built-in function to get the value of a global setting.
Parameter | Type | Default | Description |
---|---|---|---|
settingName | string | settingName |
- Return
- string: Found value, or
nil
if not found.
GetPreferredFont(string object)
Get preferred font from Global settings > Fonts
Parameter | Type | Default | Description |
---|---|---|---|
object | string | One of the items in the global settings dialog in English: "Staff name", "Break text", "Tempo", "Rules names", "Effects & ornaments",
"Tablature key", "Tablature grace note", "Tablature note",
"Chord grid name", "Chord grid display", "Chord grid summary",
"Key summary", "Karaoke line", "Ruler", "Help window", "Array", "Pop up menus" |
- Returns
- string: Font name, or
nil
if not found - int: Face, or
nil
if not found - int: Size, or
nil
if not found - string: color in RGB format,
"000000"
for now as it may be impossible to parse.