Jump to content
Korean Random
Sign in to follow this  
Frost_DeatH

request FPS and PING bar styles

Recommended Posts

LINK > Download:debugPanel.py

1.put debug_panel.py inside py_macro folder

2.inside your config folder open elements.xc, disable/hide default debugPanel
example:

{
  "elements": [
    {
	"debugPanel": { "$delay": 100, "alpha": 0 }
	}
 ]
}

3.inside your config folder create new config file for new debugPanel
example battleLabelsDebugPanel.xc
 

{
  "def": {
	"debugPanel": {
      "enabled": true,
	  "updateEvent": "ON_EVERY_FRAME",
      "x": 5,
      "y": 0,
      "align": "left",
      "screenHAlign": "left",
	  "screenVAlign": "top",
      "shadow": { "distance": 0, "angle": 45, "alpha": 90, "blur": 4, "strength": 2 },
      "textFormat": { "font": "Calibri", "color": "0xEEEEEE", "size": 18, "align": "left" },
      "format": "<textformat tabstops='[70]'><b><font color='{{py:xvm.lag?#ff0000}}'>FPS: </font><font color='{{py:xvm.fps>45?#60FF00|{{py:xvm.fps>30?#F8F400|{{py:xvm.fps>20?#FE7903|#FE0E00}}}}}}'>{{py:xvm.fps%3d}}</font><tab><font color='{{py:xvm.lag?#ff0000}}'>PING: </font><font color='{{py:xvm.ping>160?#FE0E00|{{py:xvm.ping>100?#FE7903|{{py:xvm.ping>80?#F8F400|#60FF00}}}}}}'>{{py:xvm.ping%3d}}</font></b></textformat>"
	}
  }
}

4.link/add your new debugPanel config inside battleLabels.xc

example:
{
  "labels": {
    "formats": [
      ${ "battleLabelsTemplates.xc":"def.hitlogHeader" },
           ...
           ...
           ...
      ${ "battleLabelsTemplates.xc":"def.repairTimeRadio" },
      ${ "battleLabelsDebugPanel.xc":"def.debugPanel" }

    ]
  }
}

Done!

This is basic example, but for more "style" you will need extra images...for bars, background...etc.
And little bit bigger config file with more then 1 definition ;)

Check LINKED topic again for more info and help.

Example preview:
debugpanel.jpg.291614d17d16f6895f56b93c625523fb.jpg

Share this post


Link to post

Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...