Jump to content
Korean Random

huepper

User
  • Posts

    13
  • Joined

  • Last visited

Posts posted by huepper

  1. Try to change alpha:100 for this:

    "alpha" : "{{v.elite?0|100}}",

    It will show You Text, Only on Not Elite Tank

     

    Thanks, this works perfect. :)

          // XP to Elite
    		// Progress Bar
    		{ "x": 2, "y": 97, "layer": "top", "alpha": "{{v.elite?0|100}}", "width": "{{py:math.mul({{py:math.div({{py:math.sub({{v.xpToElite}}, {{v.xpToEliteLeft}})}}, {{v.xpToElite}})}}, 160)}}", "height": 2, "bgColor": "#FF6600" },
    		//Text
    		{ "x": 80, "y": 2, "align": "center", "layer": "top", "alpha": "{{v.elite?0|100}}", "format": "<b><font size='11' color='#D4D4D4' face='$FieldFont'>XP to Elite:</font></b>" ,
    		"shadow": ${ "def.textFieldShadow" }
    		},
    		{ "x": 80, "y": 14, "align": "center", "layer": "top", "alpha": "{{v.elite?0|100}}", "format": "<b><font size='11' color='#FF6600' face='$FieldFont'>{{v.xpToEliteLeft}} / {{v.xpToElite}}</font></b>" ,
    		"shadow": ${ "def.textFieldShadow" }
    		},
    
    
  2. Hello,

     

    it works like konrad509 said, this is what i have now.

          // XP to Elite
    		// Progress Bar
    		{ "x": 2, "y": 97, "layer": "top", "alpha": "{{py:math.mul({{py:math.div({{py:math.sub({{v.xpToElite}}, {{v.xpToEliteLeft}})}}, {{v.xpToElite}})}}, 100)}}", "width": "{{py:math.mul({{py:math.div({{py:math.sub({{v.xpToElite}}, {{v.xpToEliteLeft}})}}, {{v.xpToElite}})}}, 160)}}", "height": 2, "bgColor": "#FF6600" },
    		//Text
    		{ "x": 80, "y": 2, "align": "center", "layer": "top", "alpha": "100", "format": "<b><font size='11' color='#D4D4D4' face='$FieldFont'>XP to Elite:</font></b>" ,
    		"shadow": ${ "def.textFieldShadow" }
    		},
    		{ "x": 80, "y": 14, "align": "center", "layer": "top", "alpha": "100", "format": "<b><font size='11' color='#FF6600' face='$FieldFont'>{{v.xpToEliteLeft}} / {{v.xpToElite}}</font></b>" ,
    		"shadow": ${ "def.textFieldShadow" }
    		},
    
    

    As you see, i use the same line for alpha, but with 100 at the end of line.

     

    post-38178-0-84463900-1477487513.jpg

     

  3. The calculation of the length of the progress bar isn't easy ... :/

     

    I think the calculation must be this way:

    160 * (100 - (100 * v.xpToEliteLeft / v.xpToElite)) / 100 = width
    

    Who will integrate this in a script file? :)

     

     

    EDIT:

     

    This will not work:

    "width": "{{py.math.div({{py.math.sub(100,{{py.math.div(100,{{py.math.div({{py.math.mul({{v.xpToEliteLeft}},{{v.ToElite}})}})}})}})}})}}",
    

    But i am not a programmer.

  4. There are two switches in damageLog.xc you have to change.

      "damageLog": {
        // true - disable standard detailed damage.
        // true - отключить стандартный детальный урон.
        "disabledDetailStats": true,
        // true - disable standard summarized damage.
        // true - отключить стандартный суммарный урон.
        "disabledSummaryStats": true,    
    
    

    They are set to "true" by default.

    You have to change to "false" to enable WoT internal log.

×
×
  • Create New...