mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
Dark mode
This commit is contained in:
@@ -43,6 +43,10 @@ SCRIPT_FUNCTION(get_mse_locale) {
|
||||
SCRIPT_RETURN(settings.locale);
|
||||
}
|
||||
|
||||
SCRIPT_FUNCTION(get_mse_dark_mode) {
|
||||
SCRIPT_RETURN(settings.darkMode());
|
||||
}
|
||||
|
||||
SCRIPT_FUNCTION(trace) {
|
||||
SCRIPT_PARAM_C(String, input);
|
||||
#if defined(_DEBUG) && 0
|
||||
@@ -866,10 +870,12 @@ SCRIPT_FUNCTION(rule) {
|
||||
// ----------------------------------------------------------------------------- : Init
|
||||
|
||||
void init_script_basic_functions(Context& ctx) {
|
||||
// debugging
|
||||
// app info
|
||||
ctx.setVariable(_("get_mse_version"), script_get_mse_version);
|
||||
ctx.setVariable(_("get_mse_locale"), script_get_mse_locale);
|
||||
ctx.setVariable(_("get_mse_path"), script_get_mse_path);
|
||||
ctx.setVariable(_("get_mse_dark_mode"), script_get_mse_dark_mode);
|
||||
// debugging
|
||||
ctx.setVariable(_("trace"), script_trace);
|
||||
ctx.setVariable(_("warning"), script_warning);
|
||||
ctx.setVariable(_("error"), script_error);
|
||||
|
||||
Reference in New Issue
Block a user