Switch to monospaced font. Ensure that things get displayed when they should and not when they shouldn't be
This commit is contained in:
parent
1cb7573d0a
commit
856ea163b6
1 changed files with 11 additions and 3 deletions
|
@ -109,7 +109,7 @@ var canvas_DCDU = {
|
||||||
m.init(canvas_group, file);
|
m.init(canvas_group, file);
|
||||||
m.updateActiveATC();
|
m.updateActiveATC();
|
||||||
m["MessageTimeStamp"].hide();
|
m["MessageTimeStamp"].hide();
|
||||||
m["Close"].hide();
|
m.hideResponses();
|
||||||
return m;
|
return m;
|
||||||
},
|
},
|
||||||
getKeys: func() {
|
getKeys: func() {
|
||||||
|
@ -180,11 +180,18 @@ var canvas_DCDU = {
|
||||||
me["UNABLE"].hide();
|
me["UNABLE"].hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
hideResponses: func() {
|
||||||
|
me["Close"].hide();
|
||||||
|
me["WILCO"].hide();
|
||||||
|
me["STBY"].hide();
|
||||||
|
me["UNABLE"].hide();
|
||||||
|
me["OTHER"].hide();
|
||||||
|
},
|
||||||
clearMessage: func() {
|
clearMessage: func() {
|
||||||
if (me.showingMessage) {
|
if (me.showingMessage) {
|
||||||
me.currentMessage = nil;
|
me.currentMessage = nil;
|
||||||
|
me.hideResponses();
|
||||||
me["MessageTimeStamp"].hide();
|
me["MessageTimeStamp"].hide();
|
||||||
me["Close"].hide();
|
|
||||||
me.updateActiveATC();
|
me.updateActiveATC();
|
||||||
me.showingMessage = 0;
|
me.showingMessage = 0;
|
||||||
}
|
}
|
||||||
|
@ -192,6 +199,7 @@ var canvas_DCDU = {
|
||||||
updateActiveATC: func() {
|
updateActiveATC: func() {
|
||||||
if (CPDLCstatusNode.getValue() == 2) {
|
if (CPDLCstatusNode.getValue() == 2) {
|
||||||
me["Line1"].setText("ACTIVE ATC : " ~ CPDLCauthority.getValue() ~ " CTL");
|
me["Line1"].setText("ACTIVE ATC : " ~ CPDLCauthority.getValue() ~ " CTL");
|
||||||
|
me["Line1"].show();
|
||||||
me["Line2"].hide();
|
me["Line2"].hide();
|
||||||
me["Line3"].hide();
|
me["Line3"].hide();
|
||||||
me["Line4"].hide();
|
me["Line4"].hide();
|
||||||
|
@ -233,7 +241,7 @@ setlistener("/network/cpdlc/link/data-authority", func() {
|
||||||
var canvas_DCDU_test = {
|
var canvas_DCDU_test = {
|
||||||
init: func(canvas_group, file) {
|
init: func(canvas_group, file) {
|
||||||
var font_mapper = func(family, weight) {
|
var font_mapper = func(family, weight) {
|
||||||
return "LiberationFonts/LiberationSans-Regular.ttf";
|
return "LiberationMonoCustom.ttf";
|
||||||
};
|
};
|
||||||
|
|
||||||
canvas.parsesvg(canvas_group, file, {"font-mapper": font_mapper});
|
canvas.parsesvg(canvas_group, file, {"font-mapper": font_mapper});
|
||||||
|
|
Loading…
Add table
Reference in a new issue