Jump to content
Korean Random

skitey

User
  • Content Count

    20
  • Joined

  • Last visited

Posts posted by skitey


  1. @steaxch

    Полная строка выглядит так:

    "format": "<textformat tabstops='[65,130,195,260]'><font color='#CCFFFF' face='$FieldFont' size='12'>{{py:bst.type(1)?{{py:lstrip('{{py:bst.leftTimeHrMin(1)}}', '0:')}}<tab>}}{{py:bst.type(2)?{{py:lstrip('{{py:bst.leftTimeHrMin(2)}}', '0:')}}<tab>}}{{py:bst.type(3)?{{py:lstrip('{{py:bst.leftTimeHrMin(3)}}', '0:')}}<tab>}}{{py:bst.typeCR(1)?{{py:lstrip('{{py:bst.leftTimeHrMinCR(1)}}', '0:')}}<tab>}}{{py:lstrip('{{py:bst.leftTimeHrMinCR(2)}}', '0:')}}</font></textformat>"

     


  2. 14.02.2020 в 08:57, ktulho сказал:

    Попробуйте, не проверял. Используйте макросы {{py:bst.leftTimeHrMin}} и {{py:bst.leftTimeHrMinCR}}.

    boosters.py 7 kB · 10 скачиваний

     

    как сделать красный цвет (<font color = "# FF0000">), если осталось всего несколько секунд? (00:00:59)


  3. 18 часов назад, Wild_RNB сказал:

    Собрал конфиг с рамками для бустеров. Теперь возник вопрос, как убрать отображение пустых ячеек?

    boosters.png.42130e0e411370c161c40dab7a74454b.png

    
    {
     "def": {
    	/** Тень текстовых полей. */
        "textFieldShadow": { "enabled": true, "distance": 0, "angle": 0, "color": "0x000000", "alpha": 70, "blur": 4, "strength": 2 }
       },
      "boosterName": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
    		// Горизонтальное выравнивание поля на экране ("left", "center", "right").
            "screenHAlign": "left",
            "x": 380,
            "y": 132,
            "width": 200,
            "height": 60,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC", "bold": "true", "size": 15},
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMin(0)?<img src='img://gui/maps/icons/library/info.png' width='22' height='22' vspace='-6'> <u>Личные резервы</u>}}</textformat>" 
          }	  
        ]
      },
      "boosterBg": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 380,
            "y": 155,
            "width": 400,
            "height": 65,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC" },
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMin(0)?<img src='img://gui/maps/icons/premacc/dashboard/header/personalSlot/active.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMin(0)?<img src='img://gui/maps/icons/premacc/dashboard/header/personalSlot/active.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMin(0)?<img src='img://gui/maps/icons/premacc/dashboard/header/personalSlot/active.png' width='60' height='60' vspace='0'>}}</textformat>"
          }	  
        ]
      },
      "booster": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 380,
            "y": 155,
            "width": 400,
            "height": 65,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC" },
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMin(1)>1?{{py:bst.name(1)}}|<img src='img://gui/maps/icons/boosters/{{py:bst.type(1)}}_medium.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMin(2)>1?{{py:bst.name(2)}}|<img src='img://gui/maps/icons/boosters/{{py:bst.type(2)}}_medium.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMin(3)>1?{{py:bst.name(3)}}|<img src='img://gui/maps/icons/boosters/{{py:bst.type(3)}}_medium.png' width='60' height='60' vspace='0'>}}</textformat>"		
          }	  
        ]
      },
      "boosterTime": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 390,
            "y": 215,
            "width": 400,
            "height": 60,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC", "bold": "true", "size": 15},
            "format": "<textformat tabstops='[68,137]' leading='-9'><font color='{{py:bst.leftTimeMin(1)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(1)}}</font><tab><font color='{{py:bst.leftTimeMin(2)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(2)}}</font><tab><font color='{{py:bst.leftTimeMin(3)<11?#FFB841|}}'>{{py:bst.leftTimeHrMin(3)}}</font></textformat>"
    		
          }	  
        ]
      },
      // Клановые резервы название
      "boosterCRName": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 380,
            "y": 235,
            "width": 500,
            "height": 120,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC", "bold": "true", "size": 15},
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMinCR(0)?<img src='img://gui/maps/icons/library/info.png' width='22' height='22' vspace='-6'> <u>Клановые резервы</u>}}</textformat>"
          }	  
        ]
      },
      "boosterCRBg": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 380,
            "y": 258,
            "width": 400,
            "height": 65,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC" },
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMinCR(0)?<img src='img://gui/maps/icons/premacc/dashboard/header/clanSlot/active.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMinCR(0)?<img src='img://gui/maps/icons/premacc/dashboard/header/clanSlot/active.png' width='60' height='60' vspace='0'>}}</textformat>"
          }	  
        ]
      },
      "boosterCR": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 380,
            "y": 258,
            "width": 400,
            "height": 65,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC" },
            "format": "<textformat tabstops='[0]'>{{py:bst.leftTimeMinCR(1)>1?{{py:bst.nameCR(1)}}|<img src='img://gui/maps/icons/boosters/{{py:bst.typeCR(1)}}_medium.png' width='60' height='60' vspace='0'>}}  {{py:bst.leftTimeMinCR(2)>1?{{py:bst.nameCR(2)}}|<img src='img://gui/maps/icons/boosters/{{py:bst.typeCR(2)}}_medium.png' width='60' height='60' vspace='0'>}}</textformat>"		
          }	  
        ]
      },
      "boosterTimeCR": {
        "enabled": true,
        "layer": "normal",
        "type": "extrafield",	
        "formats": [
          { "updateEvent": "ON_EVERY_SECOND",
            "screenHAlign": "left",
            "x": 390,
            "y": 317,
            "width": 400,
            "height": 60,
            "alpha": 75,
            "textFormat": {  "color": "0xF9F1BC", "bold": "true", "size": 15},
            "format": "<textformat tabstops='[68]' leading='-9'><font color='{{py:bst.leftTimeMinCR(1)<11?#FFB841|}}'>{{py:bst.leftTimeHrMinCR(1)}}</font><tab><font color='{{py:bst.leftTimeMinCR(2)<11?#FFB841|}}'>{{py:bst.leftTimeHrMinCR(2)}}</font></textformat>"
          }	  
        ]
      }
    }

     

     

    could u upload all files needed for this, please?


  4. 38 minutes ago, ktulho said:
    
    
     

    @skitey try to write in minimapMapSize .xc file :

    
    
    
      
      
       
         
         
         
         
         
           
           
           
           
           ,
          "italic": false
        },
        "format": "<font size='18' color='{{py:map.kind=summer?#FF0000|{{py:map.kind=winter?#FFFFFF|#00FFFF}}}}'>{{py:map.localeName}}</font>  {{cellsize}}0 {{l10n:m}}",
        "shadow": {
          "enabled": true,
          "color": "0x000000",
          "alpha": 70,
          "blur": 2,
          "strength": 3,
          "distance": 0,
          "angle": 0
        }
      }
    }

     

     

    nice, it's working :) thx

    one last question:

     

    is it possible to move the mapname a bit up?

    so it looks like this:

     

    
    Malinovka
    
                    1000M
    
    


  5. Hello, hope somebody can help me with maps.py.

    I want to show mapname on minimap near mapsize..but it does not work :( please help

     

    in minimap.xc:

    
    // Map size label
        // Поле размера карты
        "mapSize": ${"minimapMapSize.xc":"mapSize"},
        // Map name label
        // Поле размера карты
        "mapName": ${"minimapMapName.xc":"mapName"},
    
    

     

    in minimapMapName.xc:

    
    /**
     * Textfield for map name.
     */
    {
      // The settings correspond to the extra fields parameters
      // Настройки соответствуют параметрам дополнительных полей
      // {{py: map.nameFile}} - the name of the map file on which the battle takes place.
      // {{py: map.localeName}} - localized name of the map on which the battle takes place.
      // {{py: map.kind}} - returns 'summer' if the map is summer, 'winter' - winter, 'desert' - desert.
      "mapName": {
        "enabled": true,
        "x": 10,
        "y": 0,
        "alpha": 70,
        "textFormat": {
          "font": "Times New Roman",
          "size": 18,
          "color": "0xFFCC66",
          "align": "left",
          "bold": true,
          "italic": false
        },
        "format": "<font size='18' color='{{py:map.kind=summer?#FF0000|{{py:map.kind=winter?#FFFFFF|#00FFFF}}}}'>{{py:map.localeName}}</font>",
        "shadow": {
          "enabled": true,
          "color": "0x000000",
          "alpha": 70,
          "blur": 2,
          "strength": 3,
          "distance": 0,
          "angle": 0
        }
      }
    }
    


  6. i changed key from left to right ctrl. shows up when i press teh key. xvm.log

     

    Update : OK, I had to press leftctrl + rightctrl and then click on the icon to repair ... what a mess :(

     

    i tried to fix it in handler:

    
    @registerEvent(PlayerAvatar, 'handleKey')
    def handleKey(self, isDown, key, mods):
        global select
        #if (key == Keys.KEY_LCONTROL) and (select is not None):
        if (key == Keys.KEY_RCONTROL) and (select is not None):
            old_select = select
            select = None
            as_event(EVENTS[old_select[:-4]])
    
    

    and using Hotkey Code 157 in the repaircontrol.xc

    but now i don't see the wheel :(

     

    please help me


  7. 43 минуты назад, Kotyarko_O сказал:

    @skitey , try to swap this formats: panel near crosshair to "infoPanel1" and panel near minimap to "infoPanel0".

    Funny, but can help, i hope =) Otherwise i`ll rework some methods, soon.

     

    no, sorry, that did not work.

    the only thing that got updated are the shell_power and shell_damage values.

    the other numbers and picture are from my own tank :(

    • Upvote 1
    • Downvote 1

  8. after i added the code for the weight check (green/red) on my mid-right panel, my bottom right panel don't update and shows only my stats..why?

     

    shot_004.thumb.jpg.898d562cf42e7bf93c4a95bc64942a2e.jpg

     

    infopanel

    
    {
      "infoPanel": {
        // false - Disable info panel.
        // false - Отключить информационную панель.
        "enabled": true,
        // true - Show only for enemies.
        // true - Отображать только для противников.
        "enemiesOnly": false,
        //true - Show only for alive players.
        //true - Отображать только для живых игроков.
        "aliveOnly": true,
        // Hide panel delay (in seconds)
        // Задержка скрытия панели (в секундах)
        "delay": 5,
        // Key for self vehicle information display.
        // Клавиша для отображения информации о своей технике.
        "altKey": 56,
        // Values for {{py:compareDelim(X, Y)}} and {{py:compareColor(X, Y)}} macros
        // Значения для макросов {{py:compareDelim(X, Y)}} и {{py:compareColor(X, Y)}}
        "compareValues": {
          "moreThan": {
            "delim": "&gt;", // '<'
            "color": "#FF0000"
          },
          "equal": {
            "delim": "=",
            "color": "#FFFFFF"
          },
          "lessThan": {
            "delim": "&lt;", // '>'
            "color": "#00FF00"
          }
        },
        // Block of text formats. Allow multiple formats (https://koreanrandom.com/forum/topic/36811-/).
        // Блок текстовых форматов. Допускается создание нескольких форматов (https://koreanrandom.com/forum/topic/36811-/).
        "formats": [
          //"<font face='Arial' size='12' color='#9FF781' alpha='90'>{{vehicle_name}}</font> <font face='Arial' size='10'>({{vehicle_weight}}t)</font>
          "<font face='Arial' size='14' color='#D4FFAA' alpha='90'>{{vehicle_name}}</font> {{py:isTarget=trg?<font size='12' color='{{py:compareColor({{vehicle_weight}}, {{pl_vehicle_weight}})}}'>{{vehicle_weight}}t</font>|{{pl_vehicle_weight}}}}
           <br/><font face='Arial' size='14' color='#00FFFF'>T: {{armor_turret_front}}/{{armor_turret_side}}/{{armor_turret_back}}
           <br/>W: {{armor_hull_front}}/{{armor_hull_side}}/{{armor_hull_back}}</font>",
          "{{vehicle_name}}       
           <br/>{{gun_reload_equip}}s
           <br/><img src='img://gui/maps/icons/vehicle/{{icon_system_name}}.png'>
           <br/><textformat tabstops='[95]'>Gewicht: {{vehicle_weight}}t<tab>Sicht: {{vision_radius}}m</textformat>
           <br/><textformat tabstops='[65,105,145]'>Wanne:<tab>{{armor_hull_front}}<tab>{{armor_hull_side}}<tab>{{armor_hull_back}}</textformat>
           <br/><textformat tabstops='[65,105,145]'>Turm:<tab>{{armor_turret_front}}<tab>{{armor_turret_side}}<tab>{{armor_turret_back}}</textformat>
           <br/><textformat tabstops='[65,105,145]'>Munition:<tab>{{shell_type_1}}<tab>{{shell_type_2}}<tab>{{shell_type_3}}</textformat>
           <br/><textformat tabstops='[65,105,145]'>Pen:<tab>{{shell_power_1}}<tab>{{shell_power_2}}<tab>{{shell_power_3}}</textformat>
           <br/><textformat tabstops='[65,105,145]'>Schaden:<tab>{{shell_damage_1}}<tab>{{shell_damage_2}}<tab>{{shell_damage_3}}</textformat>"
        ]
      }
    }
    

     

    battlelabletemplate:

    
    //Panel near Crosshair
        "infoPanel0": {
          "enabled": true,
          "updateEvent": "PY(ON_INFO_PANEL)",
          "x": 400,
          "y": 550,
          "width": 200,
          "height": 200,
          "align": "center",
          "valign": "center",
          "screenHAlign": "center",
          "screenVAlign": "center",
          "shadow": { "enabled": true, "distance": 1, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 2 },
          //"textFormat": { "align": "left", "leading": -10 },
          "textFormat": { "font": "$FieldFont", "size": 14, "color": "0xFCFCFC", "align": "left", "leading": -10 },
          "format": "{{py:infoPanelFormat(0)}}"
        },
        //Panel near Minimap
        "infoPanel1": {
          "enabled": true,
          "updateEvent": "PY(ON_INFO_PANEL)",
          "x": 500,
          "y": 420,
          "width": 250,
          "height": 250,
          "align": "center",
          "valign": "center",
          "screenHAlign": "center",
          "screenVAlign": "center",
          "shadow": { "enabled": true, "distance": 1, "angle": 90, "color": "0x000000", "alpha": 80, "blur": 5, "strength": 2 },
          "textFormat": { "font": "$FieldFont", "size": 14, "color": "0xFCFCFC", "align": "left", "leading": -12 },
          "format": "{{py:infoPanelFormat(1)}}"
        }
    
    


  9. ошибка с XVM ночью 4281 и Rudy:

     

     

     

    ERROR: Traceback (most recent call last):
    ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/hangar/Crew.py", line 167, in onCrewDogItemClick
    ERROR:   File "scripts/client/gui/Scaleform/daapi/view/lobby/hangar/Crew.py", line 178, in __playSound
    ERROR:   File "scripts/client/gui/shared/utils/sound.py", line 63, in play
    ERROR:   File "scripts/client/gui/shared/utils/sound.py", line 96, in __playNextSound
    ERROR:   File "scripts/client/gui/shared/utils/sound.py", line 13, in __init__
    ERROR:   File "scripts/client/SoundGroups.py", line 715, in FMODplaySound
    ERROR: TypeError: must be string, not None
×
×
  • Create New...