Jump to content

Painel de Login


Recommended Posts

Olá

eu tenho um painel de login super certinho que normalmente funciona mas tenho uma vida

seria possível enquanto ainda está fazendo o download do servidor ou painel de login e estar aparecendo na tela?

pq ele só aparece por último e fica uma tela preta

no caso o arquivo .zip do painel de login de chama Painellogin

se eu adicionasse isso a o arquivo server do meu painel de login ele se tornaria prioridade?

function setResourcePriority(theResource, priority)
    local Painellogin = getResourceName(theResource)
    local theMeta = Painellogin and xmlLoadFile(":"..Painellogin.."/meta.xml")
    if (theMeta) then
        local node = xmlFindChild(theMeta, "download_priority_group", 1)
        if (node) then 
            xmlNodeSetValue(node, tonumber(priority))
        else
            local newNode = xmlCreateChild(theMeta, "download_priority_group")
            xmlNodeSetValue(newNode, tonumber(priority))
        end
        xmlSaveFile(theMeta)
        xmlUnloadFile(theMeta)
        return true
    end
    return false
end

 

Edited by Dadinho2828
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...