1
0
Fork 0

More improvements

This commit is contained in:
legoboyvdlp R 2020-03-28 20:06:55 +00:00
parent e8d5baecd7
commit a87aced049
2 changed files with 7 additions and 2 deletions

View file

@ -3640,6 +3640,7 @@ var canvas_MCDU_base = {
if (myDirTo[i] != nil) {
me["Simple_Title"].setText(sprintf("%s", myDirTo[i].title[0]));
me["Simple_Title"].setColor(getprop("MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/r"), getprop("MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/g"), getprop("MCDUC/colors/" ~ myDirTo[i].titleColour ~ "/b"));
forindex (var matrixArrow; myDirTo[i].arrowsMatrix) {
if (matrixArrow == 0) {
var sign = "L";

View file

@ -46,8 +46,8 @@ var dirTo = {
me.R4 = ["[ ] ", "RADIAL IN ", "blu"];
me.R5 = ["[ ] ", "RADIAL OUT ", "blu"];
me.R6 = ["INSERT* ", "DIR TO ", "yel"];
me.arrowsMatrix = [[0, 0, 0, 0, 0, 1], [0, 1, 0, 1, 0, 0]];
me.arrowsColour = [["ack", "blu", "blu", "blu", "blu", "yel"], ["ack", "blu", "ack", "blu", "ack", "ack"]];
me.arrowsMatrix = [[0, 0, 0, 0, 0, 0], [0, 1, 0, 1, 0, 0]];
me.arrowsColour = [["ack", "blu", "blu", "blu", "blu", "ack"], ["ack", "blu", "ack", "blu", "ack", "ack"]];
me.fontMatrix = [[1, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 0]];
me.updateFromFpln();
me.updateTmpy();
@ -67,6 +67,7 @@ var dirTo = {
me.L6 = [" ERASE", " DIR TO", "yel"];
me.R6 = ["INSERT ", "DIR TO ", "yel"];
me.arrowsMatrix[0][5] = 1;
me.arrowsColour[0][5] = "yel";
me.L1[2] = "yel";
me.R2[2] = "yel";
me.titleColour = "yel";
@ -74,15 +75,18 @@ var dirTo = {
me.L6 = [nil, nil, "yel"];
me.R6 = [nil, nil, "yel"];
me.arrowsMatrix[0][5] = 0;
me.arrowsColour[0][5] = "ack";
me.L1[2] = "blu";
me.R2[2] = "blu";
me.titleColour = "wht";
}
canvas_mcdu.pageSwitch[me.computer].setBoolValue(0);
},
updateFromFpln: func() {
if (canvas_mcdu.myFpln[me.computer] == nil) {
canvas_mcdu.myFpln[i] = fplnPage.new(2, me.computer);
}
var x = 0;
me.vector = [];
for (var i = 1 + (me.scroll - 1); i < size(canvas_mcdu.myFpln[me.computer].planList) - 2; i = i + 1) {