Jump to content

Battletimer x,y and ridgeline shooting


Recommended Posts

Hi

 

Changing battletimer is tough. Depends if it is added by mod or original.

I went through hell before I got it closer to center and bigger.

Seryich at KoreanRandom had it done via elements.xc and I kinda 

mixed it in with Aslains config, suddenly it popped right as I wanted.

 

At least these had something to do with it:

 

    // Timer text format
    // Подстановка для формата текста в таймере боя
    "timerFont": {
      "size": 38,              // размер шрифта
      "font": "$TitleFont",    // шрифт
      "align": "center"        // выравнивание
 
and
 
        // Battle timer
        // Таймер боя
        {
            "$delay": 100,
            // Battle timer
            // Таймер боя
            "battleTimer": {
                "_x": "WIDTH - 80",        // установить X на 80 левее края экрана
                "_y": 0,                   // установить Y по верху экрана
                "dotsMC": {                // TextField: точки
                    "_x": "-80/2",           // центрируем
                    "_y": "-3",              // выравниваем точки относительно цифр
                    "_height": 100,          // высота (с запасом)
                    "_width": 80,            // ширина (с запасом)
                    "text": ":",
                    "$textFormat": ${"timerFont"}
                },
                "secondsMC": {             // TextField: секунды
                    "_x": 5,                 // выравнивание влево, поэтому x = 5
                    "_height": 100,          // высота (с запасом)
                    "_width": 80,            // ширина (с запасом)
                    "$textFormat": { "$ref": { "path": "timerFont" }, "align": "left" } // формат текста с выравниванием влево
                },
                "minutesMC": {             // TextField: минуты
                    "_x": -85,               // выравнивание вправо, поэтому x = -(width+5)
                    "_height": 100,          // высота (с запасом)
                    "_width": 80,            // ширина (с запасом)
                    "$textFormat": { "$ref": { "path": "timerFont" }, "align": "right" } // формат текста с выравниванием вправо
                }
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.