Запрещено публиковать исходный код без BB-кода — CODE
Код:
function setAhclemyOpener ( )
{
local userinfo info;
if ( !GetPlayerInfo( info ) ) return ;
if ( info.Race == 6 ) <----------------- REMOVE THIS CHECK
{
AlchemyOpenerBtn.ShowWindow();
if ( GetClassTransferDegree( info.nSubClass ) > 1 && mainClass == info.nSubClass )
{
toggleAlchemyOpenerTooltip ( true ) ;
AlchemyOpenerBtn.EnableWindow();
AlchemyOpenerBtn.ShowWindow();
AlchemyOpenerBtn.SetTexture( "L2ui_ct1.InventoryWnd.Alchemyopener", "L2ui_ct1.InventoryWnd.InventoryWnd.Alchemyopener", "L2ui_ct1.InventoryWnd.Alchemyopener_drag");
}
else
{
toggleAlchemyOpenerTooltip ( false ) ;
AlchemyOpenerBtn.disableWindow();
AlchemyOpenerBtn.HideWindow();
AlchemyOpenerBtn.SetTexture( "L2ui_ct1.InventoryWnd.Alchemyopener_disable", "L2ui_ct1.InventoryWnd.InventoryWnd.Alchemyopener_disable", "L2ui_ct1.InventoryWnd.Alchemyopener_disable");
AlchemyOpenerWindow.HideWindow();
}
}
else
{
AlchemyOpenerBtn.hideWindow();
}
}
Последнее редактирование модератором: