From 1c73fdbcc36ab05592752c69cf06bdbe0a7ec0f8 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 21 Sep 2015 10:40:02 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=D1=84=D0=B8=D0=BA=D1=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ECSAPI.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ECSAPI.lua b/lib/ECSAPI.lua index b1001003..6bf70889 100644 --- a/lib/ECSAPI.lua +++ b/lib/ECSAPI.lua @@ -1831,17 +1831,17 @@ function ECSAPI.universalWindow(x, y, width, background, closeWindowAfter, ...) local xPos, yPos = x + 2, objects[number].y local activeColor, passiveColor, textColor, text, state = objects[number][2], objects[number][3], objects[number][4], objects[number][5], objects[number][6] local switchWidth = 10 - ecs.colorTextWithBack(xPos, yPos, textColor, background, text) + ECSAPI.colorTextWithBack(xPos, yPos, textColor, background, text) xPos = x + width - switchWidth - 2 if state then - ecs.square(xPos, yPos, switchWidth, 1, activeColor) - ecs.square(xPos + switchWidth - 2, yPos, 2, 1, passiveColor) - ecs.colorTextWithBack(xPos + 4, yPos, passiveColor, activeColor, "ON") + ECSAPI.square(xPos, yPos, switchWidth, 1, activeColor) + ECSAPI.square(xPos + switchWidth - 2, yPos, 2, 1, passiveColor) + ECSAPI.colorTextWithBack(xPos + 4, yPos, passiveColor, activeColor, "ON") else - ecs.square(xPos, yPos, switchWidth, 1, passiveColor - 0x444444) - ecs.square(xPos, yPos, 2, 1, passiveColor) - ecs.colorTextWithBack(xPos + 4, yPos, passiveColor, passiveColor - 0x444444, "OFF") + ECSAPI.square(xPos, yPos, switchWidth, 1, passiveColor - 0x444444) + ECSAPI.square(xPos, yPos, 2, 1, passiveColor) + ECSAPI.colorTextWithBack(xPos + 4, yPos, passiveColor, passiveColor - 0x444444, "OFF") end newObj("Switches", number, xPos, yPos, xPos + switchWidth - 1, yPos) end