From d50544c6648f5548609a9fb184a9f2ac04343223 Mon Sep 17 00:00:00 2001 From: nightfox <> Date: Sun, 3 Feb 2013 23:16:57 +0000 Subject: [PATCH] Minor bug fix - Moved the load() function calls for SlyEdit_IceStuff.js and SlyEdit_DCTStuff.js up a bit so that the edit color & quote line color will be set correctly again. --- exec/SlyEdit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec/SlyEdit.js b/exec/SlyEdit.js index dbbc7a6c97..ee2e3624a8 100644 --- a/exec/SlyEdit.js +++ b/exec/SlyEdit.js @@ -278,6 +278,7 @@ var fpHandleESCMenu = null; var fpDisplayTime = null; if (EDITOR_STYLE == "DCT") { + load(gStartupPath + "SlyEdit_DCTStuff.js"); gEditTop = 6; gQuoteWinTextColor = gConfigSettings.DCTColors.QuoteWinText; gQuoteLineHighlightColor = gConfigSettings.DCTColors.QuoteLineHighlightColor; @@ -285,7 +286,6 @@ if (EDITOR_STYLE == "DCT") gQuoteLineColor = gConfigSettings.DCTColors.QuoteLineColor; // Function pointers for the DCTEdit-style screen update functions - load(gStartupPath + "SlyEdit_DCTStuff.js"); fpDrawQuoteWindowTopBorder = DrawQuoteWindowTopBorder_DCTStyle; fpDisplayTextAreaBottomBorder = DisplayTextAreaBottomBorder_DCTStyle; fpDrawQuoteWindowBottomBorder = DrawQuoteWindowBottomBorder_DCTStyle; @@ -297,6 +297,7 @@ if (EDITOR_STYLE == "DCT") } else if (EDITOR_STYLE == "ICE") { + load(gStartupPath + "SlyEdit_IceStuff.js"); gEditTop = 5; gQuoteWinTextColor = gConfigSettings.iceColors.QuoteWinText; gQuoteLineHighlightColor = gConfigSettings.iceColors.QuoteLineHighlightColor; @@ -304,7 +305,6 @@ else if (EDITOR_STYLE == "ICE") gQuoteLineColor = gConfigSettings.iceColors.QuoteLineColor; // Function pointers for the IceEdit-style screen update functions - load(gStartupPath + "SlyEdit_IceStuff.js"); fpDrawQuoteWindowTopBorder = DrawQuoteWindowTopBorder_IceStyle; fpDisplayTextAreaBottomBorder = DisplayTextAreaBottomBorder_IceStyle; fpDrawQuoteWindowBottomBorder = DrawQuoteWindowBottomBorder_IceStyle; -- GitLab