Вопрос UI

  • Автор темы Автор темы entity5
  • Дата начала Дата начала
Начинающий
Начинающий
Статус
Оффлайн
Регистрация
8 Апр 2023
Сообщения
13
Реакции
4
В общем попробовав все способы так и не понял через что делается обновление цвета текста в меню, не перезагружая скрипт, был бы благодарен за подсказочку
 
В общем попробовав все способы так и не понял через что делается обновление цвета текста в меню, не перезагружая скрипт, был бы благодарен за подсказочку

Код:
Expand Collapse Copy
local element = ui.create('...', '...'):switch('hysteria is a project that is meant to create surpassing high-quality scripts. Our main goal is to improve the experience of playing HvH by being a supreme script-provider.')

events.render(function ()
    if ui.get_alpha() ~= 1 then
        return
    end

    local style = ui.get_style()

    element:name(
        string.format('\a%s%s', style['Link Active']:to_hex(), 'hysteria is a project that is meant to create surpassing high-quality scripts. Our main goal is to improve the experience of playing HvH by being a supreme script-provider.')
    )
end)
 
Код:
Expand Collapse Copy
local element = ui.create('...', '...'):switch('hysteria is a project that is meant to create surpassing high-quality scripts. Our main goal is to improve the experience of playing HvH by being a supreme script-provider.')

events.render(function ()
    if ui.get_alpha() ~= 1 then
        return
    end

    local style = ui.get_style()

    element:name(
        string.format('\a%s%s', style['Link Active']:to_hex(), 'hysteria is a project that is meant to create surpassing high-quality scripts. Our main goal is to improve the experience of playing HvH by being a supreme script-provider.')
    )
end)
спасибо
 
Назад
Сверху Снизу