LUA скрипт [neverlose] panorama elements

Модератор раздела "Создание скриптов для читов"
Модератор
Статус
Оффлайн
Регистрация
1 Фев 2020
Сообщения
1,199
Реакции[?]
390
Поинты[?]
43K
main menu button (counter-strike logo)
1724620842339.png
code_language.lua:
local javascript_cslogo = panorama.loadstring([[
    var panel
    var _Create = function(layout) {
        var cs_logo = $.GetContextPanel().FindChildTraverse("MainMenuNavBarHome");
        cs_logo.RemoveAndDeleteChildren() //remove image

        var parent = cs_logo;
     
        panel = $.CreatePanel("Panel", parent, "CustomPanel")
        if(!panel)
            return

        if(!panel.BLoadLayoutFromString(layout, false, false))
            return

        parent.MoveChildBefore(panel, parent.GetChild(0))

    }
    var _Destroy = function() {
        if (panel !== null) {
            panel.DeleteAsync(0.0);
            panel = null;
        }
    }
    return {
        create: _Create,
        destroy: _Destroy,
    }

]], "CSGOMainMenu")()

local layout_cslogo = [[
<root>
    <Panel class="mainmenu-navbar__btn-small mainmenu-navbar__btn-home">
        <RadioButton id="main_menu"
            onactivate="MainMenu.OnHomeButtonPressed(); $.DispatchEvent( 'PlaySoundEffect', 'UIPanorama.mainmenu_press_home', 'MOUSE' ); $.DispatchEvent('PlayMainMenuMusic', true, true); GameInterfaceAPI.SetSettingString('panorama_play_movie_ambient_sound', '1');"
            oncancel="MainMenu.OnEscapeKeyPressed();"
            onmouseover=""
            onmouseout="">
            <Image textureheight="80" texturewidth="-1" src="]] .. "https://en.neverlose.cc/static/avatars/" .. common.get_username() .. ".png" .. [[" />
        </RadioButton>
    </Panel>
</root>
]]

-- @note: usage
--javascript_cslogo.create(layout_cslogo)

news feed
1724621035114.png
code_language.lua:
local javascript_news = panorama.loadstring([[
    var panel
    var _Create = function(layout) {
        var js_news = $.GetContextPanel().FindChildTraverse("JsNewsContainer");
        js_news.RemoveAndDeleteChildren() //remove news feed

        var parent = js_news;
     
        panel = $.CreatePanel("Panel", parent, "CustomPanel")
        if(!panel)
            return

        if(!panel.BLoadLayoutFromString(layout, false, false))
            return

        parent.MoveChildBefore(panel, parent.GetChild(0))

    }
    var _Destroy = function() {
        if (panel !== null) {
            panel.DeleteAsync(0.0);
            panel = null;
        }
    }
    return {
        create: _Create,
        destroy: _Destroy,
    }

]], "CSGOMainMenu")()

local layout_news = [[
<root>
    <Panel class="news-panel MainMenuModeOnly">
        <Button id="main_menu_news"
            onactivate="UiToolkitAPI.ShowGenericPopupBgStyle('uwukson4800', 'yougame.biz', '', 'blur'); $.DispatchEvent( 'PlaySoundEffect', 'UIPanorama.mainmenu_press_quit', 'MOUSE' ); $.DispatchEvent('PlayMainMenuMusic', true, true); GameInterfaceAPI.SetSettingString('panorama_play_movie_ambient_sound', '1');"
            oncancel="MainMenu.OnEscapeKeyPressed();"
            onmouseover=""
            onmouseout="">
            <Image textureheight="1920" texturewidth="-1" src="https://yougame.biz/data/avatars/o/279/279781.jpg?1681929515" />
        </Button>
    </Panel>
</root>
]]

-- @note: usage
--javascript_news.create(layout_news)
 
Сверху Снизу