Jump to content
Korean Random

[Сниппеты / Snippets] Расширенная настройка боевого интерфейса


Recommended Posts

вроде нет. В дефолте смотрим- там массив же.

"elements": [

{

// блаблабла

}

],

и всё это внутри battle

 

О... спасибо буду пробовать так

 

Попробовал вставить в свой battle, выдает какую то ошибку, не могу правильно это вставить чтобы по правилам:(

// Блок общих параметров боевого интерфейса
  "battle": {
  "elements":  [
  {
           "$delay": 100,
           // Capture bar
           // Полоса захвата баз
           "teamBasesPanel": {
               "_alpha": 100,
              "_x": "teamBasesPanel._x + 0",
              "_y": "teamBasesPanel._y + 100"
		}
 },
 ],
    "mirroredVehicleIcons": false,              // false - отключить зеркалирования иконок танков (полезно для альтернативных иконок). По умолчанию включено.
    "showPostmortemTips": false,                // false - отключить всплывающую внизу панель после смерти. По умолчанию включено.
    "removePanelsModeSwitcher": false,          // true - убрать переключатель режимов ушей мышкой
    "highlightVehicleIcon": true,               // false - отключить подсветку иконки выбранного танка и взвода
    // true - enable {{hp*}} macros ability in players panels and minimap. WARNING: performance expensive
    // true - включить возможность {{hp*}} макросов в ушах и на миникарте. ВНИМАНИЕ: может понизить производительность
    "allowHpInPanelsAndMinimap": false,
    // true - enable {{marksOnGun}} macro in players panels and minimap. WARNING: performance expensive
    // true - включить макрос {{marksOnGun}} в ушах и на миникарте. ВНИМАНИЕ: может понизить производительность
    "allowMarksOnGunInPanelsAndMinimap": false,
   "clockFormat": "",                          // Показать часы на экране панели отладки (возле FPS). Формат: Y:год, M:месяц, D:день, H:часы, N:минуты, S:секунды. "" - убрать часы.
    "useStandardMarkers": false,                // true - использовать стандартные маркеры клиента
    "clanIconsFolder": "clanicons"     // путь к папке иконок кланов относительно res_mods/[ВЕРСИЯ ИГРЫ]/gui/flash
  },
Edited by TurinDeNar
Link to comment
Short link
Share on other sites

@TurinDeNar, запятая в 13 строке - зачем? Это же последний элемент массива, после него нельзя.

Хех... если б я знал зачем:) мне в этих кодах тяжело, потому и сижу как динозавтр на старом своем добром однофайловом конфиге который в свое время помогли настроить:)

  Все отлично! Получилось! Спасибо! Я в экстазе:)

Edited by TurinDeNar
Link to comment
Short link
Share on other sites

'офф'

 

 

на старом своем добром однофайловом конфиге
  :bo:

Я тоже на однофайловом, но новом и актуализированном. Всё не пойму почему их старыми считают.

Link to comment
Short link
Share on other sites

Подскажите plz: в чем может быть причина того, что "лампочка" не двигается. координаты в elements.xc меняю - реакции никакой :( а хотелось ее приподнять всего лишь.

Link to comment
Short link
Share on other sites

Подскажите plz: в чем может быть причина того, что "лампочка" не двигается. координаты в elements.xc меняю - реакции никакой :( а хотелось ее приподнять всего лишь.

sixthSenseIndicator или sixthSenseIndicatorXVM?

Link to comment
Short link
Share on other sites

sixthSenseIndicator или sixthSenseIndicatorXVM?

 

Менял в блоке sixthSenseIndicator

'code'

        // Sixth sense lamp
        // Лампа шестого чувства
        {
            "$delay": 100,
            // Sixth sense lamp duration (in milliseconds). Example: "sixthSenseDuration": 7000,
            // Время горения лампочки шестого чувства (в миллисекундах). Например: "sixthSenseDuration": 7000,
            "sixthSenseDuration": "sixthSenseDuration",
            // Sixth sense lamp
            // Лампа шестого чувства
            "sixthSenseIndicator": {
                // To use some settings in this section, you may need to remove "//" before "$interval". Reduces the performance!
                // Чтобы использовать некоторые настройки этой секции, может понадобиться удалить "//" перед "$interval". Снижает производительность!
                // "$interval": 0,
                "_alpha": 100,
                "_x": "sixthSenseIndicator._x",
                "_y": "sixthSenseIndicator._y"
            }
        },

Edited by refaol
Link to comment
Short link
Share on other sites

друзья, подскажите плиз, есть ли уже название этого нового элемента, который во время боя показывает "вы повредили, засветили, помогли...."?

Link to comment
Short link
Share on other sites

Hi....  What are the configuration options for BIG TIMER?

        // Battle timer
        // Таймер боя
        {
            "$delay": 100,
            // Battle timer
            // Таймер боя
            "battleTimer": {
               "_alpha": 100,
               "_x": "battleTimer._x - 40",
               "_y": "battleTimer._y + 15",
               "dotsMC": { "_height": 40, "_width": 50, "_x": 300, "_y": -16, "text": ":", "align": "center", "$textFormat": { "font": "Digiface", "size": 30} },
               "minutesMC": { "_height": 40, "_width": 50, "_x": 275, "_y": -15, "align": "left", "$textFormat": { "font": "Digiface", "size": 30} },
               "secondsMC": { "_height": 40, "_width": 50, "_x": null, "_y": -15, "align": "right", "$textFormat": { "font": "Digiface", "size": 30} }
           }
        },
        // Timer BIG
        // Таймер боя
        {
            "$delay": 100,
            // Timer BIG
            // Таймер боя
            "timerBig": {
               "_alpha": 100,
               "_x": "timerBig._x",
               "_y": "timerBig._y"
            }
        },

I understand the options to change color, size, etc. for the BattleTimer, but what are the ones for the Big Timer?

 

Thanks

Link to comment
Short link
Share on other sites

@leeuniverse, there is no setting for seconds, minute and dots.There is only for all timer and message, above it.

// Timer BIG
 {
   "$delay": 100,
   // Timer BIG
   "timerBig": {
     "_alpha": 100,
     "_x": "timerBig._x",
     "_y": "timerBig._y",

     "message": {
       "$textFormat": {
       }
     },

     "time": {
       "$textFormat": {
       }
     }
   }
 },

Link to comment
Short link
Share on other sites

@leeuniverse, there is no setting for seconds, minute and dots.There is only for all timer and message, above it.

// Timer BIG
 {
   "$delay": 100,
   // Timer BIG
   "timerBig": {
     "_alpha": 100,
     "_x": "timerBig._x",
     "_y": "timerBig._y",

     "message": {
       "$textFormat": {
       }
     },

     "time": {
       "$textFormat": {
       }
     }
   }
 },

 

Isn't it minutesTF and secondsTF? The colon should be 'dots' but cannot be formated.

 

My settings below. _x for secondsTF isn't working, the rest does.

           "timerBig": {
             "_alpha": 100,
             "_x": "timerBig._x",
             "_y": "timerBig._y",
             "message": {
               "message": {
                 "_height": 50,
                 "$textFormat": { "font": "Tannenberg Fett", "size": 40 }
               }
             },
             "time": {
               "secondsTF": {
                 "_x": "secondsTF._x + 3",
                 "$textFormat": { "font": "Tannenberg Fett", "size": 50 }
               },
               "minutesTF": {
                 "$textFormat": { "font": "Tannenberg Fett", "size": 50 }
               }
             }
           }

Edited by OlliN
Link to comment
Short link
Share on other sites

Uh, you're not supposed to have "two" ..... "message" statements are you?  Maybe that's why?

I'm trying to put it together your code per my way, to see if it works.


This works.....  Thanks for the right codes.

It's "raw", still got to tweak it....

        // Timer BIG
        // Таймер боя
        {
            "$delay": 100,
            // Timer BIG
            // Таймер боя
            "timerBig": {
               "_alpha": 100,
               "_x": "timerBig._x",
               "_y": "timerBig._y",
			   "message": {
//			   "_height": 50, "_width": 50, "_x": 275, "_y": -15, "align": "left",
			   "$textFormat": { "font": "Arial", "size": 40} },
             "time": {
			   "minutesTF": {
//			   "_height": 40, "_width": 50, "_x": 275, "_y": -15, "align": "left",
			   "$textFormat": { "font": "Arial", "size": 30} },
               "secondsTF": {
//			   "_height": 40, "_width": 50, "_x": null, "_y": -15, "align": "right",
			   "$textFormat": { "font": "Arial", "size": 30} }
			   }
            }
        },

Ya.....  I can't get dotsTF working either?

			   "dotsTF": {
//			   "_height": 40, "_width": 50, "_x": 0, "_y": -30, "align": "center",
			   "text": ":", "$textFormat": { "font": "Arial", "size": 10} },

Anyone have any ideas?

Link to comment
Short link
Share on other sites

@leeuniverse,

 

'battle timer from my elements.xc'

    // Battle timer
    // Таймер боя
    {
      "$delay": 100,
      "battleTimer": {
        "_x": "WIDTH / 2 - 5",
        "_y": 150,
        "dotsMC": {
          "_x": "-71/2",
          "_height": 100,
          "_width": 80,
          "text": ":",
          "$textFormat": { "font": "Crystal",  "size": 40, "align": "center" }
        },
        "secondsMC": {
          "_x": 10,
          "_height": 100,
          "_width": 80,
          "$textFormat": { "font": "Crystal", "size": 45, "align": "left" }
        },
        "minutesMC": {
          "_x": -80,
          "_height": 100,
          "_width": 80,
          "$textFormat": { "font": "Crystal", "size": 45, "align": "right" }
        },
        "messageMC": {
      	  "_x": -45,
          "_y": -15,
     	  "_height": 100,
     	  "_width": 100,
     	  "_alpha": 50,
     	  "text": "config by jem1510",
     	  "$textFormat": { "font": "$FieldFont", "size": 12, "align": "center" }
      	}
      }
    },

 

'this is the result of work battle timer'

post-29258-0-13703000-1433690864_thumb.jpg
Edited by jem1510
Link to comment
Short link
Share on other sites

@leeuniverse,

 

'battle timer from my elements.xc'

    // Battle timer
    // Таймер боя
    {
      "$delay": 100,
      "battleTimer": {
        "_x": "WIDTH / 2 - 5",
        "_y": 150,
        "dotsMC": {
          "_x": "-71/2",
          "_height": 100,
          "_width": 80,
          "text": ":",
          "$textFormat": { "font": "Crystal",  "size": 40, "align": "center" }
        },
        "secondsMC": {
          "_x": 10,
          "_height": 100,
          "_width": 80,
          "$textFormat": { "font": "Crystal", "size": 45, "align": "left" }
        },
        "minutesMC": {
          "_x": -80,
          "_height": 100,
          "_width": 80,
          "$textFormat": { "font": "Crystal", "size": 45, "align": "right" }
        },
        "messageMC": {
      	  "_x": -45,
          "_y": -15,
     	  "_height": 100,
     	  "_width": 100,
     	  "_alpha": 50,
     	  "text": "config by jem1510",
     	  "$textFormat": { "font": "$FieldFont", "size": 12, "align": "center" }
      	}
      }
    },

 

'this is the result of work battle timer'

 

 

Слушай, а как сделать таймер боя как у тебя (только тот, который в центре)?

Link to comment
Short link
Share on other sites

Эй jem1510, спасибо, постараюсь его. :)

 

Не могли бы вы также быть добрым, чтобы обеспечить ваш FPS раздел кода и раздел ЧАСОВ также?
Я хочу, чтобы сравнить ..... Причина вами выглядит красиво, и я хочу, чтобы увидеть, если она выходит глядя, как хорошо на моей стороне.

Спасибо большое. :)

 

ОБНОВЛЕНИЕ .....

 

К сожалению, были не нуждаясь в "Таймер Битва" код, были были нуждаясь в "большой" BIG TIMER код.

К сожалению .... я имею Battle Timer уже.

 

English

Hey jem1510, thank you very much, will try it out. :)

Would you also be kind to provide your FPS code section and the CLOCK section also?
I want to compare..... Cause yours looks nice, and I want to see if it comes out looking as good on my side.

Thanks much. :)

 

UPDATE.....

 

Sorry, were were not needing the "Battle Timer" code, were were needing the "BIG TIMER" code.

Sorry....  I have Battle Timer already.

Edited by leeuniverse
Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...