antiblock
diamwall
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
Sr.Coninhas

Como Meter Relógio No Teu Cliente

5 posts in this topic

Como meter relógio no teu cliente.

 

 

Abrimos o root, dentro do root pegamos o " game.py ", de baixo de uiTarget adicionamos " import time " e na linha 125/126 acrescentamos

ui.TextLine self.timeLine = ()self.timeLine.SetFontName (locale.UI_DEF_FONT)self.timeLine.SetPosition ((wndMgr.GetScreenWidth () - 130) / 1, 175)

130, 175 para coordenar a posição do relógio

 

Por ultimo na linha 1388 adicionamos isto

# Self.__DayMode__Auto_Update ()[/size]localtime2 = localtime = time.strftime ("% S")si localtime == "00":self.__DayMode__Auto_Update1 ()si localtime == "30":self.__DayMode__Auto_Update1 ()localtime = localtime = time.strftime ("% H:% M:% S")self._timeLine_on (localtime)_timeLine_on def (self, localtime):self.timeLine.SetText (localtime)self.timeLine.Show ()_timeLine_off def (self):self.timeLine.Hide ()

Cumprimentos.

Share this post


Link to post
Share on other sites
antiblock
Elveron
Então vai ver se é igual... -_-P.S: não fassas os tuts baseados em linhas, que basta ter se o game.py editado que as linhas podem já não ser as mesmas...

Share this post


Link to post
Share on other sites

 

Sim mas esse tutorial não funciona, tinha tentado de todas as maneiras possíveis e nunca consegui meter a funcionar com esse tutorial.

Share this post


Link to post
Share on other sites

 

Então vai ver se é igual... -_- 

 

Sim mas esse tutorial não funciona, tinha tentado de todas as maneiras possíveis e nunca consegui meter a funcionar com esse tutorial.

Share this post


Link to post
Share on other sites

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
Sign in to follow this