1244
This commit is contained in:
1 parent
bae57661a9
commit
6673d5b90d
10 files changed
+2705
-1157
No files matched your search
@@ -236,20 +236,12 @@ local SOFT_EDGES = NumberSequence.new({
|
||||
NumberSequenceKeypoint.new(0.82, 0.62), NumberSequenceKeypoint.new(1, 1),
|
||||
})
|
||||
-- жирный округлый шрифт с кириллицей (у FredokaOne кириллицы нет — Roblox подставляет тонкий шрифт)
|
||||
<<<<<<< HEAD
|
||||
local HINT_FONT = Theme.HINT_FACE
|
||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует.
|
||||
-- Цвет — тёмное дерево
|
||||
local function softPlate(props, textProps)
|
||||
local plate = new("Frame", props)
|
||||
plate.BackgroundColor3 = C.woodDark
|
||||
=======
|
||||
local HINT_FONT = Font.new("rbxasset://fonts/families/Nunito.json", Enum.FontWeight.Heavy)
|
||||
-- плашка-дымка (Frame) с текстом внутри; градиент только на плашке, на текст он не действует
|
||||
local function softPlate(props, textProps)
|
||||
local plate = new("Frame", props)
|
||||
plate.BackgroundColor3 = BLACK
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
plate.BackgroundTransparency = 0
|
||||
corner(30).Parent = plate
|
||||
new("UIGradient", { Transparency = SOFT_EDGES, Parent = plate })
|
||||
@@ -275,11 +267,7 @@ end
|
||||
-- уведомления — под подсказкой обучения, которая стоит в самом верху
|
||||
local toasts = new("Frame", {
|
||||
Size = UDim2.new(0, 900, 0, 200), AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 84),
|
||||
<<<<<<< HEAD
|
||||
BackgroundTransparency = 1, ZIndex = 30, Parent = screen,
|
||||
=======
|
||||
BackgroundTransparency = 1, Parent = gui,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
}, { new("UIListLayout", { Padding = UDim.new(0, 6), HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||
local toastOrder = 0
|
||||
local toastTimers = {}
|
||||
@@ -310,11 +298,7 @@ local function notify(msg, color)
|
||||
end
|
||||
local t, l = softPlate(
|
||||
{ Size = UDim2.new(0, 0, 0, 54), AutomaticSize = Enum.AutomaticSize.X, LayoutOrder = toastOrder, Parent = toasts },
|
||||
<<<<<<< HEAD
|
||||
{ TextSize = 30, TextColor3 = color or C.text, Text = msg }
|
||||
=======
|
||||
{ TextSize = 30, TextColor3 = color or WHITE, Text = msg }
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
)
|
||||
popIn(t)
|
||||
t:SetAttribute("Msg", msg)
|
||||
@@ -362,11 +346,7 @@ local function showCatch(fish, extra)
|
||||
catchName.TextColor3 = r.color
|
||||
catchInfo.Text = ("<font color=\"%s\">%s</font>%s · %.2f кг"):format(
|
||||
hex(r.color), r.name, mut and (" · <font color=\"" .. hex(mut.color) .. "\">" .. mut.name .. " x" .. mut.mult .. "</font>") or "", fish.weight)
|
||||
<<<<<<< HEAD
|
||||
catchValue.Text = ("⚪ %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
|
||||
=======
|
||||
catchValue.Text = ("💰 %s ⭐ +%d XP%s"):format(fmt(fish.value), fish.xp * ((extra and extra.new) and 2 or 1),
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
(extra and extra.combo and extra.combo > 1.001) and (" 🔥 x%.1f"):format(extra.combo) or "")
|
||||
catchCard.Visible = true
|
||||
TweenService:Create(catchCard, TweenInfo.new(0.45, Enum.EasingStyle.Back, Enum.EasingDirection.Out), { Position = UDim2.new(0.5, 0, 0, 120) }):Play()
|
||||
@@ -398,11 +378,7 @@ end
|
||||
|
||||
-- вверху, на месте подсказки обучения (она во время рыбалки скрыта)
|
||||
local statusLabel = softPlate(
|
||||
<<<<<<< HEAD
|
||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = screen },
|
||||
=======
|
||||
{ Size = UDim2.fromOffset(0, 64), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 12), Visible = false, Parent = gui },
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
{ TextSize = 36, Text = "🎣 Ждём клёв…" }
|
||||
)
|
||||
wobble(statusLabel, 1.2, 1.4)
|
||||
@@ -995,11 +971,7 @@ questWin.render = function(tab)
|
||||
end
|
||||
text({
|
||||
Size = UDim2.new(1, -4, 0, 30), LayoutOrder = 0, Font = TITLE, TextSize = 22, RichText = true,
|
||||
<<<<<<< HEAD
|
||||
Text = ("%s <font color=\"#C0AC88\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
|
||||
=======
|
||||
Text = ("%s <font color=\"#AAB4CD\" size=\"15\">круг %d · награда сразу, следующее задание — тоже</font>"):format(chain.name, chain.round), Parent = questList,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
})
|
||||
for i, st in ipairs(chain.steps) do
|
||||
local done, cur = i < chain.step, i == chain.step
|
||||
@@ -1012,11 +984,7 @@ questWin.render = function(tab)
|
||||
})
|
||||
text({
|
||||
Size = UDim2.fromOffset(180, 28), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -14, 0, cur and 8 or 14), Font = TITLE, TextSize = 17,
|
||||
<<<<<<< HEAD
|
||||
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s ⚪ +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
|
||||
=======
|
||||
TextXAlignment = Enum.TextXAlignment.Right, TextColor3 = done and C.muted or C.gold, Text = ("+%s 💰 +%s XP"):format(fmt(st.coins), fmt(st.xp)), Parent = row,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
})
|
||||
if cur then
|
||||
progressBar(row, UDim2.fromOffset(16, 44), UDim2.new(1, -110, 0, 16), chain.progress / st.goal, C.gold)
|
||||
@@ -1029,11 +997,7 @@ questWin.render = function(tab)
|
||||
{ corner(14), stroke(C.purple, 2, 0.2), gradient(Color3.fromRGB(70, 40, 100), C.panel, 90) })
|
||||
text({
|
||||
Size = UDim2.new(1, -32, 1, 0), Position = UDim2.fromOffset(16, 0), Font = TITLE, TextSize = 18, RichText = true,
|
||||
<<<<<<< HEAD
|
||||
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s ⚪ +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
|
||||
=======
|
||||
Text = ("🎁 За всю цепочку: <font color=\"#FFD45A\">+%s 💰 +%s XP</font>%s"):format(fmt(b.coins), fmt(b.xp), b.potion and (" + " .. b.potion) or ""), Parent = row,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
})
|
||||
elseif tab == "daily" then
|
||||
clear(dailyPage)
|
||||
@@ -1092,11 +1056,8 @@ robuxWin.render = function(tab)
|
||||
notify("⚙ Товар не настроен", Color3.fromRGB(255, 200, 120))
|
||||
return
|
||||
end
|
||||
if tab == "passes" then
|
||||
MarketplaceService:PromptGamePassPurchase(player, it.id)
|
||||
else
|
||||
MarketplaceService:PromptProductPurchase(player, it.id)
|
||||
end
|
||||
-- и наборы, и пропуска — Developer Products; пропуск сервер запоминает навсегда
|
||||
MarketplaceService:PromptProductPurchase(player, it.id)
|
||||
end,
|
||||
})
|
||||
end
|
||||
@@ -1341,11 +1302,7 @@ end
|
||||
local GAUGE_R, GAUGE_DEG, GAUGE_N = 190, 110, 32
|
||||
local gauge = new("Frame", {
|
||||
Size = UDim2.fromOffset(150, 280), AnchorPoint = Vector2.new(0, 0.5), Position = UDim2.new(0.57, 0, 0.48, 0),
|
||||
<<<<<<< HEAD
|
||||
BackgroundTransparency = 1, Visible = false, Parent = screen,
|
||||
=======
|
||||
BackgroundTransparency = 1, Visible = false, Parent = gui,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
})
|
||||
local GAUGE_C = Vector2.new(110 - GAUGE_R, 140) -- центр окружности левее рамки: дуга выгнута вправо
|
||||
local function arcPoint(v, r)
|
||||
@@ -1763,7 +1720,6 @@ local function setLook(obj, goal, instant)
|
||||
end
|
||||
end
|
||||
|
||||
<<<<<<< HEAD
|
||||
-- погода сгущает дымку поверх настроек локации (туман — сильно, дождь и гроза — слегка)
|
||||
local WEATHER_ATMO = {
|
||||
Fog = { Density = 0.22, Haze = 1.5 },
|
||||
@@ -1775,8 +1731,6 @@ local function weatherAtmo(prop)
|
||||
return (add and add[prop]) or 0
|
||||
end
|
||||
|
||||
=======
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local function applyLook(world, instant)
|
||||
-- исходные значения запоминаем до первой правки; эффект мог ещё не прийти с сервера, тогда в следующий раз
|
||||
for _, w in ipairs(lookSources) do
|
||||
@@ -1800,12 +1754,9 @@ local function applyLook(world, instant)
|
||||
for prop, def in pairs(defaults) do
|
||||
local v = look[section] and look[section][prop]
|
||||
if v == nil then v = def end
|
||||
<<<<<<< HEAD
|
||||
if section == "atmosphere" and typeof(v) == "number" then
|
||||
v += weatherAtmo(prop)
|
||||
end
|
||||
=======
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
-- плавно меняются только числа и цвета; флаги и режимы (EnumItem) ставим сразу
|
||||
local kind = typeof(v)
|
||||
if kind == "number" or kind == "Color3" then goal[prop] = v else obj[prop] = v end
|
||||
@@ -1822,15 +1773,10 @@ local function applyAmbience(world, instant)
|
||||
end
|
||||
table.clear(lookTweens)
|
||||
world = world or Config.Lobby
|
||||
<<<<<<< HEAD
|
||||
-- при смене суток часы двигает Ambience; иначе у каждой локации своё время
|
||||
if not Config.DayNight.enabled then
|
||||
setLook(Lighting, { ClockTime = (world and world.clock) or 14.5 }, instant)
|
||||
end
|
||||
=======
|
||||
local clock = (world and world.clock) or 14.5
|
||||
setLook(Lighting, { ClockTime = clock }, instant)
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local cc = Lighting:FindFirstChildOfClass("ColorCorrectionEffect")
|
||||
if cc then
|
||||
setLook(cc, { TintColor = (world and world.tint) or DEFAULT_LOOK.tint }, instant)
|
||||
@@ -1934,7 +1880,6 @@ local function enterWorld(w, instant)
|
||||
end
|
||||
end
|
||||
|
||||
<<<<<<< HEAD
|
||||
-- погода сменилась: плавно пересчитываем дымку текущей локации
|
||||
workspace:GetAttributeChangedSignal("Weather"):Connect(function()
|
||||
if lastWorldId ~= "none" and not loadingVisible() then
|
||||
@@ -1954,8 +1899,6 @@ do
|
||||
end)
|
||||
end
|
||||
|
||||
=======
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
-- первое появление: ждём персонажа, ставим свет его локации сразу и отпускаем экран загрузки
|
||||
task.spawn(function()
|
||||
local char = player.Character or player.CharacterAdded:Wait()
|
||||
@@ -2033,7 +1976,6 @@ local guideStep = 0 -- шаг, отправленный на сервер (ат
|
||||
|
||||
-- крупная мультяшная подсказка под уведомлениями: покачивается, при смене шага «выпрыгивает»
|
||||
local guideHint, guideHintText = softPlate(
|
||||
<<<<<<< HEAD
|
||||
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = screen },
|
||||
{ TextSize = 42, Text = "" }
|
||||
)
|
||||
@@ -2041,12 +1983,6 @@ wobble(guideHint, 1.2, 1.6)
|
||||
Theme.onLayout(function(compact)
|
||||
guideHintText.TextSize = compact and 30 or 42
|
||||
end)
|
||||
=======
|
||||
{ Size = UDim2.fromOffset(0, 70), AutomaticSize = Enum.AutomaticSize.X, AnchorPoint = Vector2.new(0.5, 0), Position = UDim2.new(0.5, 0, 0, 10), Visible = false, Parent = gui },
|
||||
{ TextSize = 42, Text = "" }
|
||||
)
|
||||
wobble(guideHint, 1.2, 1.6)
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local lastHint = nil
|
||||
|
||||
local guideFolder = new("Folder", { Name = "TutorialGuide", Parent = workspace })
|
||||
@@ -2247,11 +2183,7 @@ local function guideRoute(step, pos, world)
|
||||
elseif step == 2 and inW1 then
|
||||
return { guideMarker("GuideFishSpot") }, "🎣 Зажми ЛКМ у воды", "Pier"
|
||||
elseif step == 3 and inW1 then
|
||||
<<<<<<< HEAD
|
||||
return { sellTargetW1() }, "⚪ Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||
=======
|
||||
return { sellTargetW1() }, "💰 Продай рыбу", "Sell" -- лавка у самого причала, идём напрямую
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
end
|
||||
return nil
|
||||
end
|
||||
@@ -2416,19 +2348,11 @@ local FIRE = Color3.fromRGB(255, 150, 60)
|
||||
|
||||
-- серия улова — справа от HUD; полоска показывает, сколько осталось до того, как серия сгорит
|
||||
local comboBox = new("Frame", {
|
||||
<<<<<<< HEAD
|
||||
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = screen,
|
||||
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
|
||||
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
|
||||
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
|
||||
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = C.dark, Parent = comboBox }, { corner(3) })
|
||||
=======
|
||||
Size = UDim2.fromOffset(140, 66), Position = UDim2.fromOffset(310, 10), BackgroundColor3 = WHITE, Visible = false, Parent = gui,
|
||||
}, { corner(14), stroke(FIRE, 2, 0.1), gradient(Color3.fromRGB(110, 50, 20), C.bg, 90) })
|
||||
local comboMultText = text({ Size = UDim2.new(1, 0, 0, 34), Position = UDim2.fromOffset(0, 3), Font = TITLE, TextSize = 28, TextXAlignment = CENTER, TextColor3 = Color3.fromRGB(255, 195, 95), TextStrokeTransparency = 0.5, Text = "", Parent = comboBox })
|
||||
local comboSub = text({ Size = UDim2.new(1, 0, 0, 16), Position = UDim2.fromOffset(0, 36), Font = BODY2, TextSize = 12, TextXAlignment = CENTER, TextColor3 = C.muted, Text = "", Parent = comboBox })
|
||||
local comboBack = new("Frame", { Size = UDim2.new(1, -20, 0, 5), Position = UDim2.new(0, 10, 1, -10), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = comboBox }, { corner(3) })
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local comboFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = FIRE, BorderSizePixel = 0, Parent = comboBack }, { corner(3) })
|
||||
|
||||
local function refreshCombo(pop)
|
||||
@@ -2451,7 +2375,6 @@ refreshCombo(false)
|
||||
-- правая колонка: босс и цели
|
||||
local rightCol = new("Frame", {
|
||||
Size = UDim2.fromOffset(300, 0), AutomaticSize = Enum.AutomaticSize.Y, AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -12, 0.5, 10),
|
||||
<<<<<<< HEAD
|
||||
BackgroundTransparency = 1, Parent = screen,
|
||||
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||
|
||||
@@ -2464,20 +2387,11 @@ Theme.onLayout(function(compact)
|
||||
comboBox.Position = compact and UDim2.fromOffset(254, 6) or UDim2.fromOffset(310, 10)
|
||||
end)
|
||||
|
||||
=======
|
||||
BackgroundTransparency = 1, Parent = gui,
|
||||
}, { new("UIListLayout", { Padding = UDim.new(0, 8), SortOrder = Enum.SortOrder.LayoutOrder }) })
|
||||
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local bossBox = new("Frame", { Size = UDim2.fromOffset(300, 78), BackgroundColor3 = WHITE, Visible = false, LayoutOrder = 1, Parent = rightCol },
|
||||
{ corner(14), stroke(C.red, 2.5, 0.05), gradient(Color3.fromRGB(110, 30, 40), C.bg, 90) })
|
||||
local bossTitle = text({ Size = UDim2.new(1, -80, 0, 24), Position = UDim2.fromOffset(12, 5), Font = TITLE, TextSize = 18, TextColor3 = Color3.fromRGB(255, 205, 120), TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = bossBox })
|
||||
local bossTime = text({ Size = UDim2.fromOffset(60, 24), AnchorPoint = Vector2.new(1, 0), Position = UDim2.new(1, -12, 0, 5), Font = TITLE, TextSize = 17, TextXAlignment = RIGHT, Text = "", Parent = bossBox })
|
||||
<<<<<<< HEAD
|
||||
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = C.dark, Parent = bossBox }, { corner(9) })
|
||||
=======
|
||||
local bossBack = new("Frame", { Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 32), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = bossBox }, { corner(9) })
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local bossFill = new("Frame", { Size = UDim2.fromScale(1, 1), BackgroundColor3 = WHITE, Parent = bossBack }, { corner(9), gradient(Color3.fromRGB(255, 120, 90), Color3.fromRGB(190, 30, 50), 0) })
|
||||
local bossHpText = text({ Size = UDim2.fromScale(1, 1), TextSize = 12, TextXAlignment = CENTER, ZIndex = 2, TextStrokeTransparency = 0.5, Text = "", Parent = bossBack })
|
||||
local bossHint = text({ Size = UDim2.new(1, -24, 0, 18), Position = UDim2.fromOffset(12, 54), Font = BODY2, TextSize = 12, TextColor3 = C.muted, Text = "", Parent = bossBox })
|
||||
@@ -2492,11 +2406,7 @@ text({ Size = UDim2.new(1, 0, 0, 20), LayoutOrder = 0, Font = TITLE, TextSize =
|
||||
local function trackerLine(order, onClick)
|
||||
local root = new("TextButton", { Size = UDim2.new(1, 0, 0, 38), BackgroundTransparency = 1, AutoButtonColor = false, Text = "", LayoutOrder = order, Parent = tracker })
|
||||
local label = text({ Size = UDim2.new(1, 0, 0, 22), Font = BODY, TextSize = 14, RichText = true, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = root })
|
||||
<<<<<<< HEAD
|
||||
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = C.dark, Parent = root }, { corner(4) })
|
||||
=======
|
||||
local back = new("Frame", { Size = UDim2.new(1, 0, 0, 8), Position = UDim2.fromOffset(0, 26), BackgroundColor3 = Color3.fromRGB(14, 18, 30), Parent = root }, { corner(4) })
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
local fill = new("Frame", { Size = UDim2.fromScale(0, 1), BackgroundColor3 = C.gold, BorderSizePixel = 0, Parent = back }, { corner(4) })
|
||||
if onClick then
|
||||
root.MouseButton1Click:Connect(onClick)
|
||||
@@ -2551,11 +2461,7 @@ local function buyGoal()
|
||||
elseif coins >= r.price then
|
||||
return ("🎣 <b>%s</b> — можно купить!"):format(r.name), 1, C.green
|
||||
end
|
||||
<<<<<<< HEAD
|
||||
return ("🎣 До «%s»: ещё <b>%s</b> ⚪"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
|
||||
=======
|
||||
return ("🎣 До «%s»: ещё <b>%s</b> 💰"):format(r.name, fmt(r.price - coins)), coins / r.price, C.gold
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
end
|
||||
end
|
||||
local rod = Config.Find(Config.Rods, player:GetAttribute("Rod") or "Basic")
|
||||
@@ -2565,11 +2471,7 @@ local function buyGoal()
|
||||
if coins >= cost then
|
||||
return ("✨ Улучшение до +%d — можно купить!"):format(rl + 1), 1, C.green
|
||||
end
|
||||
<<<<<<< HEAD
|
||||
return ("✨ До улучшения +%d: ещё <b>%s</b> ⚪"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
|
||||
=======
|
||||
return ("✨ До улучшения +%d: ещё <b>%s</b> 💰"):format(rl + 1, fmt(cost - coins)), coins / cost, C.gold
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
end
|
||||
return nil
|
||||
end
|
||||
@@ -2713,11 +2615,7 @@ end)
|
||||
-- у скупщика после продажи: предложение купить то, на что уже хватает
|
||||
local offerCard = new("Frame", {
|
||||
Size = UDim2.fromOffset(440, 96), AnchorPoint = Vector2.new(0.5, 1), Position = UDim2.new(0.5, 0, 1, -110),
|
||||
<<<<<<< HEAD
|
||||
BackgroundColor3 = WHITE, Visible = false, Parent = screen,
|
||||
=======
|
||||
BackgroundColor3 = WHITE, Visible = false, Parent = gui,
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
}, { corner(16), stroke(C.green, 2.5, 0.05), gradient(Color3.fromRGB(30, 85, 55), C.bg, 90) })
|
||||
local offerIcon = text({ Size = UDim2.fromOffset(70, 70), Position = UDim2.fromOffset(12, 13), TextSize = 46, TextXAlignment = CENTER, Text = "", Parent = offerCard })
|
||||
local offerTitle = text({ Size = UDim2.new(1, -250, 0, 26), Position = UDim2.fromOffset(90, 12), Font = TITLE, TextSize = 19, TextTruncate = Enum.TextTruncate.AtEnd, Text = "", Parent = offerCard })
|
||||
@@ -2730,19 +2628,11 @@ end
|
||||
local offerBuy = btn({ Size = UDim2.fromOffset(146, 52), AnchorPoint = Vector2.new(1, 0.5), Position = UDim2.new(1, -14, 0.5, 0), BackgroundColor3 = C.green, TextSize = 18, Text = "", Parent = offerCard }, function()
|
||||
if offerItem then
|
||||
remote:FireServer("Buy", offerItem.kind, offerItem.id)
|
||||
<<<<<<< HEAD
|
||||
Audio.play("coins")
|
||||
end
|
||||
hideOffer()
|
||||
end)
|
||||
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "×", TextSize = 22, Parent = offerCard }, hideOffer)
|
||||
=======
|
||||
playUiSound(DING, 0.5)
|
||||
end
|
||||
hideOffer()
|
||||
end)
|
||||
btn({ Size = UDim2.fromOffset(26, 26), Position = UDim2.new(1, -18, 0, -8), BackgroundColor3 = C.red, Text = "✕", TextSize = 14, Parent = offerCard }, hideOffer)
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
|
||||
bestOffer = function(bagWasFull)
|
||||
local coins, lvl = player:GetAttribute("Coins") or 0, player:GetAttribute("Level") or 1
|
||||
@@ -2794,11 +2684,7 @@ showOffer = function(o)
|
||||
offerIcon.Text = o.icon
|
||||
offerTitle.Text = o.title
|
||||
offerDesc.Text = o.desc
|
||||
<<<<<<< HEAD
|
||||
offerBuy.Text = ("Купить · %s ⚪"):format(fmt(o.price))
|
||||
=======
|
||||
offerBuy.Text = ("Купить · %s 💰"):format(fmt(o.price))
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
offerCard.Visible = true
|
||||
popIn(offerCard, 0.6)
|
||||
task.delay(9, function()
|
||||
@@ -2827,12 +2713,9 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
||||
setState("waiting")
|
||||
startCastCam(a, b)
|
||||
elseif action == "CastFail" or action == "Cancel" or action == "Escaped" then
|
||||
<<<<<<< HEAD
|
||||
if action == "Escaped" then
|
||||
Audio.play("escape")
|
||||
end
|
||||
=======
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
if action == "CastFail" and castTool and castTool.Parent then
|
||||
castTool.Grip = gripCF(REST_ANGLE) -- сервер удочку не трогал, а у нас она в замахе
|
||||
end
|
||||
@@ -2861,20 +2744,12 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
||||
Audio.play("sparkle")
|
||||
end
|
||||
elseif action == "Sold" then
|
||||
<<<<<<< HEAD
|
||||
Audio.play("coins")
|
||||
if tutorialStep() == 3 then
|
||||
advanceTutorial(Config.TutorialDone)
|
||||
end
|
||||
floatText("+" .. fmt(a) .. " ⚪", C.gold)
|
||||
notify(("⚪ +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||
=======
|
||||
if tutorialStep() == 3 then
|
||||
advanceTutorial(Config.TutorialDone)
|
||||
end
|
||||
floatText("+" .. fmt(a) .. " 💰", C.gold)
|
||||
notify(("💰 +%s"):format(fmt(a)), Color3.fromRGB(120, 255, 140))
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
-- монеты приходят атрибутом чуть позже события, поэтому предложение — с задержкой
|
||||
local wasFull = offerState.bagWasFull
|
||||
offerState.bagWasFull = false
|
||||
@@ -2903,30 +2778,17 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
||||
refreshDots()
|
||||
refreshTracker()
|
||||
elseif action == "QuestDone" then
|
||||
<<<<<<< HEAD
|
||||
notify(("✅ %s +%s ⚪ +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
|
||||
Audio.play("quest")
|
||||
elseif action == "ChainDone" then
|
||||
floatText("🏆 Цепочка пройдена!", C.gold)
|
||||
notify(("🎁 %s: +%s ⚪ +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
||||
Audio.play("fanfare")
|
||||
=======
|
||||
notify(("✅ %s +%s 💰 +%s XP"):format(questText(a, b), fmt(c), fmt(d or 0)), Color3.fromRGB(120, 255, 140))
|
||||
playUiSound(DING, 0.6)
|
||||
elseif action == "ChainDone" then
|
||||
floatText("🏆 Цепочка пройдена!", C.gold)
|
||||
notify(("🎁 %s: +%s 💰 +%s XP%s"):format(a, fmt(b), fmt(c), d and (" + " .. d) or ""), C.gold)
|
||||
playUiSound(DING, 0.8)
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
elseif action == "ComboLost" then
|
||||
notify(("💔 Серия из %d прервана"):format(a), Color3.fromRGB(255, 130, 110))
|
||||
elseif action == "BossStart" then
|
||||
notify(("👑 %s в мире «%s»! Ловите всем сервером"):format(a, b), C.gold)
|
||||
<<<<<<< HEAD
|
||||
Audio.play("quest")
|
||||
=======
|
||||
playUiSound(DING, 0.8)
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
elseif action == "BossHit" then
|
||||
floatText(("⚔ -%d боссу"):format(a), Color3.fromRGB(255, 130, 100))
|
||||
elseif action == "BossDone" then
|
||||
@@ -2936,11 +2798,7 @@ remote.OnClientEvent:Connect(function(action, a, b, c, d)
|
||||
notify(("🌊 %s ушёл на глубину…"):format(b), C.muted)
|
||||
end
|
||||
elseif action == "BossReward" then
|
||||
<<<<<<< HEAD
|
||||
notify(("🎁 За босса: +%s ⚪ +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
|
||||
=======
|
||||
notify(("🎁 За босса: +%s 💰 +%s XP%s"):format(fmt(a), fmt(b), c and (" + " .. c) or ""), Color3.fromRGB(120, 255, 140))
|
||||
>>>>>>> 1ff7ef7e83a97a0e100d5c3805ebc4ad762a2806
|
||||
elseif action == "OpenShop" then
|
||||
shopWin.open("rods")
|
||||
elseif action == "OpenQuests" then
|
||||
|
||||
Reference in new issue
Block a user