kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
farkmt2official 1
farkmt2official
Bvural41 1
Bvural41
noisiv 1
noisiv
Manwe Work 1
Manwe Work
Hikaye Ekle

Minimap Yanı ve Altı FPS

I get error.Can anyone help me

0626 23: 28: 37447 :: File "uiMiniMap.py", line 443, in OnUpdate

0626 23: 28: 37447 :: AttributeError
0626 23: 28: 37447 :::
0626 23: 28: 37447 :: 'int' object has no attribute 'SetText'
0626 23: 28: 37447 ::

I have attached my
 
Son düzenleme:
MİNİMAP YANI,

RESİM,

4ab15d1ce8b.png


Kod:
# Arat

def __SelectQuickPage(self, pageIndex):
    self.quickSlotPageIndex = pageIndex
    player.SetQuickPage(pageIndex)

# Altına Ekle

def ToggleFPSInfo(self):
    self.FrameRate.Show()

# Arat

if debugInfo.IsDebugMode():
    self.ToggleDebugInfo()

# Altına Ekle

self.ToggleFPSInfo()

# Arat

def __BuildDebugInfo(self):

# Üstüne Ekle

def __BuildFPSInfo(self):
    ## Frame Rate
    self.FrameRate = ui.TextLine()
    self.FrameRate.SetFontName(localeInfo.UI_DEF_FONT)
    self.FrameRate.SetPosition(wndMgr.GetScreenWidth() - 200, 20) #Change -200 for x coordinate, 20 for y coordinate

# Arat

def UpdateDebugInfo(self):

# Üstüne Ekle

def UpdateFPSInfo(self):
    nRenderFPS = app.GetRenderFPS()
    self.FrameRate.SetText("FPS: %3d" % (nRenderFPS))
    self.FrameRate.SetPackedFontColor(ui.GenerateColor(255, 0, 0)) #delete this line if you want normal color (like in debug mode)

# Arat

def OnUpdate(self):

# Bul

"self.interface.BUILD_OnUpdate()"

# Üstüne Ekle

self.UpdateFPSInfo()

MİNİMAP ALTI,

RESİM,

4953e21487e.png




Minimap altı için Kodlar @xxdracaryS 'a aittir.​

Kolay gelsin, minimap kodları nelerdir?
 
i did al this but still not showing anything in game ,,
C++:
Paste2
Create Paste
Followup Paste
QR
/BURHANBEY - DRACARYS\

uiminimap.py aç

arat

def __Initialize(self):

altına ekle

self.FPSBilgi = 0

arat

self.serverInfo = self.GetChild("ServerInfo")

altına ekle

self.FPSBilgi = self.GetChild("FPSBilgi")

arat

self.positionInfo.SetText("(%.0f, %.0f)" % (x/100, y/100))

altına ekle

nRenderFPS=app.GetRenderFPS()
fps="%3d"%(nRenderFPS)
self.FPSInfo.SetText(uiScriptLocale.FPS_PERFORMANS+ " " + str(fps))

uiscript/minimap.py aç ve arat

            {
                    "name" : "PositionInfo",
                    "type" : "text",
                    
                    "text_horizontal_align" : "center",

                    "outline" : 1,

                    "x" : 70,
                    "y" : 200,

                    "text" : "",
            },

altına ekle

            {
                    "name" : "FPSBilgi",
                    "type" : "text",

                    "text_horizontal_align" : "center",   

                    "outline" : 1,

                    "x" : 70,
                    "y" : 176,

                    "text" : "",
            },

locale_interface.txt ekle

FPS_PERFORMANS    FPS:

/BURHANBEY - DRACARYS\

uiminimap.py aç

arat

def __Initialize(self):

altına ekle

self.FPSBilgi = 0

arat

self.serverInfo = self.GetChild("ServerInfo")

altına ekle

self.FPSBilgi = self.GetChild("FPSBilgi")

arat

self.positionInfo.SetText("(%.0f, %.0f)" % (x/100, y/100))

altına ekle

nRenderFPS=app.GetRenderFPS()

fps="%3d"%(nRenderFPS)

self.FPSInfo.SetText(uiScriptLocale.FPS_PERFORMANS+ " " + str(fps))

open uiscript / minimap.py and search

{

"name" : "PositionInfo",

"type" : "text",

"text_horizontal_align" : "center",

"outline" : 1,

"x" : 70,

"y" : 200,

"text" : "",

},

add below

{

"name" : "FPSBilgi",

"type" : "text",

"text_horizontal_align" : "center",

"outline" : 1,

"x" : 70,

"y" : 176,

"text" : "",

},

locale_interface.txt ekle

FPS_PERFORMANS FPS:


© 2006 - 2020 Paste2.org.
Follow paste2.org on Twitter
 

Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)

Geri
Üst