From 4adb1064dda7baa6c786381237ea30d6f454ea6b Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sat, 24 Mar 2018 19:36:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=87=D0=B5=D0=BD=D1=8C=20=D0=B0=D0=BA?= =?UTF-8?q?=D1=82=D1=83=D0=B0=D0=BB=D1=8C=D0=BD=D0=B0=D1=8F=20=D0=B8=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/AppMarket/Main.lua | 22 ++++++++++------------ Icons/Idiot.pic | Bin 0 -> 197 bytes 2 files changed, 10 insertions(+), 12 deletions(-) create mode 100644 Icons/Idiot.pic diff --git a/Applications/AppMarket/Main.lua b/Applications/AppMarket/Main.lua index 3262699d..6b8186c4 100644 --- a/Applications/AppMarket/Main.lua +++ b/Applications/AppMarket/Main.lua @@ -1329,6 +1329,16 @@ newPublicationInfo = function(file_id) mainMenu(2, publication.user_name) end + local existingReviewText + if #reviews > 0 then + for i = 1, #reviews do + if reviews[i].user_name == user.name then + existingReviewText = reviews[i].comment + break + end + end + end + buttonsLayout:addChild(GUI.adaptiveRoundedButton(1, 1, 1, 0, 0xA5A5A5, 0xFFFFFF, 0x2D2D2D, 0xFFFFFF, existingReviewText and localization.changeReview or localization.writeReview)).onTouch = function() local container = MineOSInterface.addUniversalContainer(window, existingReviewText and localization.changeReview or localization.writeReview) container.layout:setCellFitting(2, 1, false, false) @@ -1446,18 +1456,6 @@ newPublicationInfo = function(file_id) ratingsContainer.panel.height = textDetailsContainer.height detailsContainer.height = textDetailsContainer.height - if user.token and user.name ~= publication.user_name then - local existingReviewText - if #reviews > 0 then - for i = 1, #reviews do - if reviews[i].user_name == user.name then - existingReviewText = reviews[i].comment - break - end - end - end - end - if #reviews > 0 then -- Отображаем все оценки layout:addChild(GUI.text(1, 1, 0x696969, localization.reviewsOfUsers)) diff --git a/Icons/Idiot.pic b/Icons/Idiot.pic new file mode 100644 index 0000000000000000000000000000000000000000..d555f5144a7116f154d487d7888922e1218536a2 GIT binary patch literal 197 zcmXZUxeWqA429wOZO;)>0udB~gtQSgtd<0cO9C38an>_9^5^H{beN8%87XaEeEDIt z=YUdf1EAMP>Z3!UDSlM$y%q0`IuA?F*}9Wg6BR3p8M?&08u=YY(NDJ{pGOGAkbT&H S%Wf