Skip to content

Commit

Permalink
2.2.0: add skip_notifycolon option
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldero committed Jul 13, 2022
1 parent b53c988 commit a94de5b
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 6 deletions.
5 changes: 5 additions & 0 deletions examples/configuration/desktop_dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions examples/configuration/desktop_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions examples/configuration/mobile_dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions examples/configuration/mobile_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
3 changes: 2 additions & 1 deletion sim_core/sim_cfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
var wscfg = {
/* version */
"version": { upgrade:false, type:"string", value:"2.2.0" },
"build": { upgrade:true, type:"string", value:"2.2.0.20220620A" },
"build": { upgrade:true, type:"string", value:"2.2.0.20220705A" },

/* simulation screen: SVG */
"color_data_active": { upgrade:false, type:"string", value:"#0066FF" },
Expand All @@ -227,6 +227,7 @@
"DBG_level": { upgrade:false, type:"string", value:"microinstruction" },
"DBG_limitins": { upgrade:false, type:"int", value:10000 },
"DBG_limitick": { upgrade:false, type:"int", value:1000 },
"DBG_skip_notifycolon": { upgrade:true, type:"boolean", value:false },
"ICON_theme": { upgrade:false, type:"string", value:'classic' },
"AS_enable": { upgrade:true, type:"boolean", value:true },
"AS_delay": { upgrade:true, type:"int", value:500 },
Expand Down
9 changes: 8 additions & 1 deletion wepsim_core/wepsim_execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@

function wepsim_check_memdashboard ( ref_mdash, notif_origin )
{
var ret = true ;

if (typeof ref_mdash === "undefined") {
return true ;
}
Expand All @@ -423,7 +425,12 @@
var notifications = ref_mdash.notify.length ;
if (notifications > 1)
{
var ret = wepsim_check_getnotifyoptions(ref_mdash.notify[1]) ;
ret = get_cfg('DBG_skip_notifycolon') ;
if (ret) {
return true ;
}

ret = wepsim_check_getnotifyoptions(ref_mdash.notify[1]) ;
if (ret.skipme) {
return true ;
}
Expand Down
19 changes: 19 additions & 0 deletions wepsim_web/wepsim_web_ui_config_commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
"wepsim_config_button_toggle('ws_skin_dark_mode',true,'15');"),
code_init: function() {
wepsim_config_button_pretoggle('ws_skin_dark_mode', '15') ;
var optValue = get_cfg('ws_skin_dark_mode') ;
wepsim_restore_darkmode(optValue) ;
},
description: "<span data-langkey='Dark Mode'>Dark Mode</span>"
Expand Down Expand Up @@ -208,6 +209,24 @@
description: "<span data-langkey='Limit instruction ticks: to limit clock ticks'>Limit instruction ticks: to limit clock ticks</span>"
});

ws_info.config_ui.push({
id: "radio4",
type: "Execution",
u_class: "",
code_cfg: wepsim_config_button_html_onoff('4', 'Skip notify: comments',
i18n_get_TagFor('cfg', 'Off'),
"update_cfg('editor_mode', false);" +
"wepsim_config_button_toggle('DBG_skip_notifycolon',false,'4');",
i18n_get_TagFor('cfg', 'On'),
"update_cfg('editor_mode', true);" +
"wepsim_config_button_toggle('DBG_skip_notifycolon',true,'4');"),
code_init: function() {
wepsim_config_button_pretoggle('DBG_skip_notifycolon', '4') ;
},
description: "<span data-langkey='Skip notify: comments'>Skip notify: comments</span>"
});


ws_info.config_ui.push({
id: "radio7",
type: "Editor",
Expand Down
5 changes: 5 additions & 0 deletions ws_dist/examples/configuration/desktop_dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions ws_dist/examples/configuration/desktop_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions ws_dist/examples/configuration/mobile_dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
5 changes: 5 additions & 0 deletions ws_dist/examples/configuration/mobile_light.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,11 @@
"type": "int",
"value": 1000
},
"DBG_skip_notifycolon": {
"upgrade": false,
"type": "boolean",
"value": false
},
"ICON_theme": {
"upgrade": false,
"type": "string",
Expand Down
2 changes: 1 addition & 1 deletion ws_dist/min.sim_all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ws_dist/min.wepsim_core.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ws_dist/min.wepsim_node.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ws_dist/min.wepsim_web.js

Large diffs are not rendered by default.

0 comments on commit a94de5b

Please sign in to comment.