[ Új üzenetek · Tagok · Fórumszabályzat · Keresés · RSS ]
  • Oldal 1 / 1
  • 1
Fórum » Test category » Metin2 Új cuccok 2010-2011 » Kliensbe idő jelzés (kliensbe idő!)
Kliensbe idő jelzés
BajnokManDátum: Szerda, 2012-04-11, 6.24.25 | Üzenet # 1
Admin
Csoport: Adminisztrátorok
Üzenetek: 318
Hírnév: 6
Helyzet: Offline
Csomagoljuk ki a (rot.eix.epk)root fájlokat majd nyissuk meg a game.py-t.

Írjuk bele h:
import time
Így nézen ki:
import os
import app
import dbg
import grp
import item
import background
import chr
import chrmgr
import player
import snd
import chat
import textTail
import snd
import net
import effect
import wndMgr
import fly
import systemSetting
import quest
import guild
import skill
import messenger
import locale
import constInfo
import exchange
import ime
import time

import ui
import uiCommon
import uiPhaseCurtain
import uiMapNameShower
import uiAffectShower
import uiPlayerGauge
import uiCharacter
import uiTarget
[Egy szimpla GF kliens esetében így néz ki]

Erre keressünk rá:
self.__ProcessPreservedServerCommand()

majd alá ezt írjuk be:
self.timeLine = ui.TextLine()
self.timeLine.SetFontName(locale.UI_DEF_FONT_LARGE)
self.timeLine.SetFontColor( 255, 045, 0)
self.timeLine.SetPosition((wndMgr.GetScreenWidth() - 130) / 2, 175)

[Egy szimpla GF kliens esetében így fog kinézni]:
self.__ProcessPreservedServerCommand()

self.timeLine = ui.TextLine()
self.timeLine.SetFontName(locale.UI_DEF_FONT_LARGE)
self.timeLine.SetFontColor( 255, 045, 0)
self.timeLine.SetPosition((wndMgr.GetScreenWidth() - 130) / 2, 175)

Keressünk rá erre:
def __BuildDebugInfo(self)

Alá:
self.timeLine.SetWindowHorizontalAlignCenter()
self.timeLine.SetHorizontalAlignCenter()
self.timeLine.SetFeather()
self.timeLine.SetOutline()
self.timeLine.Show()

[Egy szimpla GF kliens esetében így fog kinézni]

def __BuildDebugInfo(self):
self.timeLine.SetWindowHorizontalAlignCenter()
self.timeLine.SetHorizontalAlignCenter()
self.timeLine.SetFeather()
self.timeLine.SetOutline()
self.timeLine.Show()

.

Keressünk rá erre:
def OnUpdate(self):

Alá ezt:
localtime = localtime = time.strftime("[%H:%M:%S]")
self.timeLine.SetText(localtime)
self.timeLine.Show()

Majd alá ezt:
self.timeLine.SetFontColor( 255, 045, 0)

def OnUpdate(self):
localtime = localtime = time.strftime("[%H:%M:%S]")
self.timeLine.SetText(localtime)
self.timeLine.Show()
self.timeLine.SetFontColor( 255, 045, 0) így nézne ki

Ez jelöli a színt. Ha valaki változtatni szeretné akkor EZEN az oldalon megnézve a színkódokat könnyen megteheti.




http://metin2hungary.net/index.php/topic,128480.0.html


By Bajnok TheRapiKing

Jó töltögetés nézegetést kivánók By Bajnok

 
Fórum » Test category » Metin2 Új cuccok 2010-2011 » Kliensbe idő jelzés (kliensbe idő!)
  • Oldal 1 / 1
  • 1
Keresés: