Remove focus borders from remaining GUI text

This commit is contained in:
Vortrex
2021-01-23 13:30:11 -06:00
parent 25e3d25a34
commit 91b142f8b6

View File

@@ -1583,7 +1583,10 @@ app.init = function()
textAlign: 0.5, textAlign: 0.5,
textColour: toColour(255, 255, 255, 255), textColour: toColour(255, 255, 255, 255),
textFont: robotoFont, textFont: robotoFont,
} },
focused: {
borderColour: toColour(0, 0, 0, 0),
},
}); });
errorDialog.okayButton = errorDialog.window.button(20, 95, 360, 30, 'OK', { errorDialog.okayButton = errorDialog.window.button(20, 95, 360, 30, 'OK', {
@@ -1594,6 +1597,9 @@ app.init = function()
textFont: robotoFont, textFont: robotoFont,
textAlign: 0.5, textAlign: 0.5,
}, },
focused: {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, closeErrorDialog); }, closeErrorDialog);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created error GUI ...`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Created error GUI ...`);
@@ -1623,7 +1629,10 @@ app.init = function()
textAlign: 0.5, textAlign: 0.5,
textColour: toColour(255, 255, 255, 255), textColour: toColour(255, 255, 255, 255),
textFont: robotoFont, textFont: robotoFont,
} },
focused: {
borderColour: toColour(0, 0, 0, 0),
},
}); });
yesNoDialog.yesButton = yesNoDialog.window.button(20, 95, 175, 30, 'YES', { yesNoDialog.yesButton = yesNoDialog.window.button(20, 95, 175, 30, 'YES', {
@@ -1634,6 +1643,9 @@ app.init = function()
textFont: robotoFont, textFont: robotoFont,
textAlign: 0.5, textAlign: 0.5,
}, },
focused: {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, yesNoDialogAnswerYes); }, yesNoDialogAnswerYes);
yesNoDialog.noButton = yesNoDialog.window.button(205, 95, 175, 30, 'NO', { yesNoDialog.noButton = yesNoDialog.window.button(205, 95, 175, 30, 'NO', {
@@ -1644,6 +1656,9 @@ app.init = function()
textFont: robotoFont, textFont: robotoFont,
textAlign: 0.5, textAlign: 0.5,
}, },
focused: {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, yesNoDialogAnswerNo); }, yesNoDialogAnswerNo);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created prompt GUI`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Created prompt GUI`);
@@ -1672,7 +1687,10 @@ app.init = function()
textAlign: 0.5, textAlign: 0.5,
textColour: toColour(255, 255, 255, 220), textColour: toColour(255, 255, 255, 220),
textFont: robotoFont, textFont: robotoFont,
} },
focused: {
borderColour: toColour(0, 0, 0, 0),
},
}); });
infoDialog.okayButton = infoDialog.window.button(20, 95, 360, 30, 'OK', { infoDialog.okayButton = infoDialog.window.button(20, 95, 360, 30, 'OK', {
@@ -1683,6 +1701,9 @@ app.init = function()
textFont: robotoFont, textFont: robotoFont,
textAlign: 0.5, textAlign: 0.5,
}, },
focused: {
borderColour: toColour(primaryColour[0], primaryColour[1], primaryColour[2], 255),
},
}, closeInfoDialog); }, closeInfoDialog);
logToConsole(LOG_DEBUG, `[Asshat.GUI] Created info dialog GUI`); logToConsole(LOG_DEBUG, `[Asshat.GUI] Created info dialog GUI`);