Minimap SHOW FPS

VIP
Developer
Member
Feb
Threads
31
114
621
93
HubMoney
759
hello, today I will show you how to add FPS under the mini map, it will work even if you add the codes completely​



Code:
uiminimap.py OPEN

FIND

def __Initialize(self):

ADD AFTER

self.FPSInfo = 0

FIND

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

ADD AFTER

self.FPSInfo = self.GetChild("FPSInfo")

FIND

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

ADD AFTER

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

uiscript/minimap.py OPEN and FIND

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

                    "outline" : 1,

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

                    "text" : "",
            },

ADD AFTER

            {
                    "name" : "FPSInfo",
                    "type" : "text",

                    "text_horizontal_align" : "center",   

                    "outline" : 1,

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

                    "text" : "",
            },

locale_interface.txt ADD

FPS_PERFORMANS    FPS:
 
Top