Вывод Panorama

uBluewolfu

Активный
20 Ноя 2017
90
5
Надо сделать скилл который выводит картинку. Решил сделать так, но при юзание абилки ничего не происходит.
XML:
<root>
<styles>
        <include src="file://{resources}/styles/dotastyles.vcss_c" />
        <include src="file://{resources}/styles/custom_game/artemon.vcss_c" />
        <include src="file://{resources}/scripts/custom_game/artemon.js" />
    </styles>
    
    <Panel class="Shangus" hittest="false">
        <Panel id="Shangusimg" hittest="false">
            <Image id="SeqBg" src="file://{images}/images/custom_game/shangus_image.vtex" hittest="false"/>
        </Panel>
    </Panel>   
</root>
CSS:
.Shangus
{
    width: 100%;
    height: 100%;
    overflow: clip;
}

#Shangusimg
{
    visibility: collapse;
    width: 100%;
    height: 100%;
    
}

#SeqBg
{
    width: 100%;
    height: 100%;
}
JavaScript:
function ShangusJs()
        {
            $("#Shangusimg").visible = true;
        }
        
        
        (function () {
            GameEvents.Subscribe( "ShangusEvent", ShangusJs );
        })();
Lua:
function Image( event )

local caster = event.caster
local target = PlayerResource:GetPlayer(caster:GetPlayerID())
CustomGameEventManager:Send_ServerToPlayer(target, "ShangusEvent", {} )
end
 

00zveroboi

Активный
14 Июл 2015
103
17
CSS:
#Shangusimg
{
    visibility: collapse;  <-------------
    width: 100%;
    height: 100%;
    
}

JavaScript:
function ShangusJs()
        {
            $("#Shangusimg").style.visibility = "visible";  <------------------------
        }
 
Реклама: