mirror of
https://github.com/trebonian/visual6502.git
synced 2024-09-27 14:59:46 +00:00
simplify: expertMode is no longer a checkbox, just a static indicator
This commit is contained in:
parent
369a188ad9
commit
3804eace6e
@ -82,7 +82,6 @@ function setup_part2(){
|
|||||||
setupNodes();
|
setupNodes();
|
||||||
setupTransistors();
|
setupTransistors();
|
||||||
setupParams();
|
setupParams();
|
||||||
updateExpertMode(expertMode);
|
|
||||||
detectOldBrowser();
|
detectOldBrowser();
|
||||||
setStatus('loading graphics...');
|
setStatus('loading graphics...');
|
||||||
setTimeout(setup_part3, 0);
|
setTimeout(setup_part3, 0);
|
||||||
@ -154,8 +153,6 @@ function setupParams(){
|
|||||||
updateLoglevel(value);
|
updateLoglevel(value);
|
||||||
} else if(name=="logmore" && value!=""){
|
} else if(name=="logmore" && value!=""){
|
||||||
updateLogList(value);
|
updateLogList(value);
|
||||||
} else if(name=="expert" && value.indexOf("t")==0){
|
|
||||||
updateExpertMode(true);
|
|
||||||
} else if(name=="headlesssteps" && parseInt(value)!=NaN){
|
} else if(name=="headlesssteps" && parseInt(value)!=NaN){
|
||||||
headlessSteps=parseInt(value);
|
headlessSteps=parseInt(value);
|
||||||
} else if(name=="graphics" && value.indexOf("f")==0){
|
} else if(name=="graphics" && value.indexOf("f")==0){
|
||||||
@ -346,15 +343,6 @@ function updateLoglevel(value){
|
|||||||
initLogbox(logThese);
|
initLogbox(logThese);
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateExpertMode(isOn){
|
|
||||||
expertMode=true
|
|
||||||
document.getElementById('expertControlPanel').style.display = 'block';
|
|
||||||
if(loglevel==0)
|
|
||||||
updateLoglevel(1);
|
|
||||||
if(chipLayoutIsVisible)
|
|
||||||
document.getElementById('layoutControlPanel').style.display = 'block';
|
|
||||||
}
|
|
||||||
|
|
||||||
var chipsurround;
|
var chipsurround;
|
||||||
|
|
||||||
function updateChipLayoutVisibility(isOn){
|
function updateChipLayoutVisibility(isOn){
|
||||||
@ -367,8 +355,7 @@ function updateChipLayoutVisibility(isOn){
|
|||||||
// replace the Show Chip button with the chip graphics
|
// replace the Show Chip button with the chip graphics
|
||||||
chipsurround=document.getElementById('chipsurround');
|
chipsurround=document.getElementById('chipsurround');
|
||||||
chipsurround.style.display = 'block';
|
chipsurround.style.display = 'block';
|
||||||
if(expertMode)
|
document.getElementById('layoutControlPanel').style.display = 'block';
|
||||||
document.getElementById('layoutControlPanel').style.display = 'block';
|
|
||||||
document.getElementById('nochip').style.display = 'none';
|
document.getElementById('nochip').style.display = 'none';
|
||||||
// allow the browser to respond while we load the graphics
|
// allow the browser to respond while we load the graphics
|
||||||
setStatus('loading graphics...');
|
setStatus('loading graphics...');
|
||||||
|
Loading…
Reference in New Issue
Block a user