Перейти к содержанию

Рекомендуемые сообщения

 
 
S.₮.A.Ł.₭.£.☈.
В 03.11.2026 в 20:00, Karula сказал:

у кого нибудь есть спанер котовода?

Держи тройной спавнер. Текстовый файл инструкции внутри.

Spavnery_Karavan_Nahas_Kotovod


Дополнено 38 минуты спустя
53 минуты назад, COMPLEXTER сказал:

Цель: заблокировать возможность смены худа и инвентаря,

gamedata\scripts\ui\ui_mm_opt_creator.script

Спойлер

 

        {     --button for huds
    --        ["etype"]="button",
            ["text"]="ui_mm_huds",
            ["hint"]="ui_mm_huds_hint",
            ["enable"]=function() return get_multihuds():enabled()    end,
            ["click"]=function(handler) 
                if not handler.huds then
                    handler.huds=ui_mm_opt_huds.opt_huds(handler,ui_mm_opt_huds.mc_index.hud)
                    handler.huds:InitControls()
                    handler.parent_wnd:AttachChild(handler.huds)
                end
                handler:Show(false)
                handler.huds:Show(true)
                handler.active_child=handler.huds
                --and load data :(
                handler.huds.art_panel_state:SetCheck(get_bool_console("hud_art_panel_visible"))
                handler.huds.qs_panel_state:SetCheck(get_bool_console("hud_qs_panel_visible"))
                handler.huds.qsp_empty_state:SetCheck(get_bool_console("hud_qsp_empty_slot_visible"))
                handler.huds.track_qsp_animation_time:SetValue(get_number_console("hud_qspanel_anim_time",2500))
            end,
            ["load"]=function(handler) end,
            ["save"]=function(handler)  
                if handler.huds then
                    local value1=handler.huds.art_panel_state:GetCheck()
                    local value2=handler.huds.qs_panel_state:GetCheck()
                    local value3=handler.huds.qsp_empty_state:GetCheck()
                    local value4=handler.huds.track_qsp_animation_time:GetValue()
                    set_bool_console("hud_art_panel_visible",value1)
                    set_bool_console("hud_qs_panel_visible",value2)
                    set_bool_console("hud_qsp_empty_slot_visible",value3)
                    set_number_console("hud_qspanel_anim_time",value4)
                    if handler.huds.start_profile_name ~= getter_console_param("g_current_hud","") then
                        get_multihuds():ReloadUITex("ui_hud.xml")
                    end                    
                end
            end,
            ["cancel"]=function(handler) 
                if handler.huds then
                    if handler.huds.start_profile_name ~= getter_console_param("g_current_hud","") then
                        setter_console_param("g_current_hud",handler.huds.start_profile_name)
                    end
                end
            end,

        },
        {     --button for inventorys
        --    ["etype"]="button",
            ["text"]="ui_mm_inventorys",
            ["hint"]="ui_mm_inventorys_hint",
            ["enable"]=function() return get_multiinvs():enabled()    end,
            ["click"]=function(handler) 
                if not handler.invs then
                    handler.invs=ui_mm_opt_huds.opt_huds(handler,ui_mm_opt_huds.mc_index.invs)
                    handler.invs:InitControls()
                    handler.parent_wnd:AttachChild(handler.invs)
                end
                handler:Show(false)
                handler.invs:Show(true)
                handler.active_child=handler.invs
            end,
            ["load"]=function(handler) end,
            ["save"]=function(handler)  
                if handler.invs then
                    if handler.invs.start_profile_name ~= getter_console_param("g_current_inventory","") then
                        get_multiinvs():ReloadUITex("dummy.xml")
                    end
                end
            end,
            ["cancel"]=function(handler) 
                if handler.invs then
                    if handler.invs.start_profile_name ~= getter_console_param("g_current_inventory","") then
                        setter_console_param("g_current_inventory",handler.invs.start_profile_name)
                    end
                end
            end,

        },

 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

Важная информация

Мы разместили cookie-файлы на ваше устройство, чтобы помочь сделать этот сайт лучше. Вы можете изменить свои настройки cookie-файлов, или продолжить без изменения настроек. Оставаясь на сайте, вы подтверждаете свое согласие на их использование. Политика конфиденциальности | Условия использования