Ir para conteúdo

Featured Replies

Postado

Gente boa noite...eu queria se existe alguma maneira de colocar uma imagem antes do backgroundo do otc, um exemplo é a do otp: index2.thumb.jpg.9c251a34f15ce9fa8d5d84d62138ce38.jpg

 

Essa imagem ela abre, fica uns 5/ segundos na tela e some...liberando assim a area de login...

 

eu tentei fazer assim no client_backgroun...

 

 

-- private variables
local background
local clientVersionLabel

-- public functions
function init()
  background = g_ui.displayUI('background')
  background:lower()

  clientVersionLabel = background:getChildById('clientVersionLabel')
  clientVersionLabel:setText("Poke Generations - Fan Game Server 2020\nVersão: BETA")
  background:setImageSource("background1") (tentei isso)
 
  background:getChildById("socialThings"):getChildById("facebook").onClick = function() g_platform.openUrl('www.facebook.com/') end
  background:getChildById("socialThings"):getChildById("facebook").advancedTooltip = "Facebook"
  background:getChildById("socialThings"):getChildById("youtube").onClick = function() g_platform.openUrl('www.youtube.com/') end
  background:getChildById("socialThings"):getChildById("youtube").advancedTooltip = "Youtube"
  background:getChildById("socialThings"):getChildById("instagram").onClick = function() g_platform.openUrl('www.instagram.com/') end
  background:getChildById("socialThings"):getChildById("instagram").advancedTooltip = "Instagram"
  background:getChildById("socialThings"):getChildById("discord").onClick = function() g_platform.openUrl('') end
  background:getChildById("socialThings"):getChildById("discord").advancedTooltip = "Discord"
  background:getChildById("socialThings"):getChildById("trello").onClick = function() g_platform.openUrl('trello.com/') end
  background:getChildById("socialThings"):getChildById("trello").advancedTooltip = "Trello"
  background:getChildById("logo").onClick = function() g_platform.openUrl('http://#') end
  background:getChildById("config").advancedTooltip = "Configurações"
  background:getChildById("aviso").onClick = function() g_platform.openUrl('http://#') end

  if not g_game.isOnline() then
    addEvent(function() g_effects.fadeIn(clientVersionLabel, 4000) end)
    addEvent(function() g_effects.fadeIn(background, 4000) end)
    addEvent(function() background:setImageSource("background") end, 4000)(isso)
  end

  connect(g_game, { onGameStart = hide })
  connect(g_game, { onGameEnd = show })
  modules.client_topmenu.getTopMenu():setHeight(0)
end

function terminate()
  disconnect(g_game, { onGameStart = hide })
  disconnect(g_game, { onGameEnd = show })

  g_effects.cancelFade(background:getChildById('clientVersionLabel'))
  background:destroy()

  Background = nil
end

function hide()
  background:hide()
  local name = g_game.getCharacterName()
  g_window.setTitle("Pokemon Generations. - "..name)
  modules.client_topmenu.getTopMenu():setHeight(36)
end

function show()
  background:show()
  modules.client_topmenu.getTopMenu():setHeight(0)
end

function hideVersionLabel()
  background:getChildById('clientVersionLabel'):hide()
end

function setVersionText(text)
  clientVersionLabel:setText(text)
end 

 

Lembrando essa tela ela cobre o entergame

 

porem não obtive sucesso, se alguem puder ajudar ficarei mto agradecido, tanto eu quanto a comunidade.

 

@Gengo

@Movie

@LeoTK

@L3K0T

 

Editado por KevinLuzetti (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo