FS4
Открыть в Telegram
Нет данных
Подписчики
Нет данных24 часа
+347 дней
+5630 дней
Архив постов
0
local TXtime_ticker = require('common.time_ticker')
TXtime_ticker.AddTimerLoop(0.5, function()
pcall(function()
local hud = require("game_frontend_hud")
if hud and hud.FindWidgetByClass then
local popup = hud.FindWidgetByClass("Common_Popup_Large_UIBP")
if popup and slua.isValid(popup) then
local btn = popup.Button_Confirm or popup.Button_OK
if btn and btn.OnClicked then
btn.OnClicked:Broadcast()
else
popup:RemoveFromParent()
end
end
end
end)
end, 10, 0.5)
end)0
Repost from 𝐑𝐃𝐗
fix annoying notification
this code deletes this notification.
pcall(function()
local TXtime_ticker = require('common.time_ticker')
TXtime_ticker.AddTimerLoop(0.5, function()
pcall(function()
local hud = require("game_frontend_hud")
if hud and hud.FindWidgetByClass then
local popup = hud.FindWidgetByClass("Common_Popup_Large_UIBP")
if popup and slua.isValid(popup) then
local btn = popup.Button_Confirm or popup.Button_OK
if btn and btn.OnClicked then
btn.OnClicked:Broadcast()
else
popup:RemoveFromParent()
end
end
end
end)
end, 10, 0.5)
end)