Jump to content
Korean Random
sirmax

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

Recommended Posts

 

Пролистай 1-2 страницы назад.

 

я  скачал что давал seriych .в елементе прописал всё но не работает почемуто.по этому и спрашиваю. если можете помочь то помогите пожалуйста

Edited by crasovsky.a

Share this post


Link to post

Short link
Share on other sites

@crasovsky.a

 

    // Battle start timer
    // Таймер начала боя
    {
      "timerBig": {
//        "_alpha": 0
      }
    },
    // Battle timer
    // Таймер боя
    {
      "$delay": 100,
      "battleTimer": {
        "main": {
          "__height": 10,
          "__width": 250,
          "_x": "WIDTH / 2 - 5",
          "_y": 90,
          "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" }
          }
        }
      }
    }, 


 

 

Share this post


Link to post

Short link
Share on other sites

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

 

Проверьте.

elements.xc

Share this post


Link to post

Short link
Share on other sites

 

 

в каком файле это редактировать ?

Доброе. В файле elements.xc 

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Нет там таких параметров

ВНИМАТЕЛЬНЕЕ надо быть!

elements.xc  дефолтный файл, строки с 129 по 140  

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Спасибо! У меня в конфиги вот такой находится. На ваш можно заменить ?

Запросто! Оба файла изначально ничего не меняют, только дефолтный имеет "заготовки" для дальнейшего форматирования...

(кроме шрифта миникарты - цвет меняется чуть)

Edited by Duv21
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Запросто! Оба файла изначально ничего не меняют, только дефолтный имеет "заготовки" для дальнейшего форматирования...

(кроме шрифта миникарты - цвет меняется чуть)

Спасибо Вам за помощь

Share this post


Link to post

Short link
Share on other sites

Anyone know how to fix this?

When I reduce the screen size/resolution the Timer disappears.

It should look like the second pic.

 

Кто-нибудь знает, как это исправить?
Когда я уменьшить разрешение размер экрана / таймер исчезает.
Это должно выглядеть как второй картинке.

 

9frzaey.jpg

 

ur0br2B.jpg

 

 

Here's the code....

 

Вот код.

        // Battle timer
        // Таймер боя
        {          
        "battleTimer": {
	  "$delay": 1000,
          "main": {
            
           // "__height": 10,
            //"__width": 250,
            "_x": "WIDTH / 2 - 5",
            "_y": 1,
            "dotsMC": {
              "_x": "1699/2",
              "_height": 100,
              "_width": 80,
              "text": ":",
              "$textFormat": { "font": "$FieldFont",  "size": 40, "align": "center" }
            },
            "secondsMC": {
              "_x": 895,
              "_height": 100,
              "_width": 80,
              "$textFormat": { "font": "$FieldFont", "size": 45, "align": "left" }
            },
            "minutesMC": {
              "_x": 805,
              "_height": 100,
              "_width": 80,
              "$textFormat": { "font": "$FieldFont", "size": 45, "align": "right" }
            }
          }
        }
        },

Share this post


Link to post

Short link
Share on other sites

@leeuniverse,

Какое было разрешение экрана? Какое сейчас разрешение экрана?

 

What display resolution was? What now display resolution?

Share this post


Link to post

Short link
Share on other sites

 

 

Anyone know how to fix this?

You just changed "_x" only (is matched to the screen resolution)

            "_x": "WIDTH / 2 - 5", 

but you had to change "_x" here too (also match to the width of the screen or to the width of the field with timer):

            "dotsMC": {
              "_x": "1699/2",
...
            "secondsMC": {
              "_x": 895,
...
            "minutesMC": {
              "_x": 805,

try like this:

    "dotsMC": {
      "_x": "-80/2",   // when the "_width" of the field is 80
...
    "secondsMC": { 
      "_x": 2,         // "$textFormat": { ... "align": "left" } --> the indentation from the left side of the field
...
    "minutesMC": {
      "_x": -82,       // "$textFormat": { ..."align": "right" } --> alignment to the right, so "_x" = -(width+indent)

Share this post


Link to post

Short link
Share on other sites

@leeuniverse,

Какое было разрешение экрана? Какое сейчас разрешение экрана?

 

What display resolution was? What now display resolution?

 

1920x1080 большой.

И маленький был, как 1280x800 или что-то я не помню.

Проблема заключается в следующем. Часы нужно оставаться в углу, независимо от того, каков размер экрана и разрешение.

Это для моей мод пакет. Люди имеют разные размеры экрана и резолюций и поэтому он должен регулироваться автоматически, как и другие вещи сделать, например, при отладке Группа корректирует в соответствии с экрана, и не исчезнет, если вы сделать экран меньше.

 

1920x1080 Big one.

And the small one was like 1280x800 or something I can't remember.

The problem is this.  The clock needs to stay in the corner, no matter what the size of the screen and resolution is.

This is for my mod pack.  People will have different screen sizes and resolutions and so it needs to adjust automatically like other things do, such as the Debug Panel adjusts according to screen, and doesn't disappear if you make the screen smaller.

 

 

You just changed "_x" only (is matched to the screen resolution)

            "_x": "WIDTH / 2 - 5", 

but you had to change "_x" here too (also match to the width of the screen or to the width of the field with timer):

            "dotsMC": {
              "_x": "1699/2",
...
            "secondsMC": {
              "_x": 895,
...
            "minutesMC": {
              "_x": 805,

try like this:

    "dotsMC": {
      "_x": "-80/2",   // when the "_width" of the field is 80
...
    "secondsMC": { 
      "_x": 2,         // "$textFormat": { ... "align": "left" } --> the indentation from the left side of the field
...
    "minutesMC": {
      "_x": -82,       // "$textFormat": { ..."align": "right" } --> alignment to the right, so "_x" = -(width+indent)

 

I get the clock in the center of the screen when I change to yours above.

How do I get it to stay on the Right side of the screen no matter screen size and resolution?

 

Я получаю часы в центре экрана, когда я меняю с вашей выше.

Как я могу получить, чтобы остаться на правой стороне экрана независимо от того, размер экрана и разрешение?

 

JYfNbLm.jpg

 

Thank you for trying to help guys.

 

Спасибо за то, чтобы помочь, ребята.

Edited by leeuniverse

Share this post


Link to post

Short link
Share on other sites

@leeuniverse,

        // Battle timer
        // Таймер боя
        {          
        "battleTimer": {
	  "$delay": 1000,
          "main": {
            
           // "__height": 10,
            //"__width": 250,
            "_x": "WIDTH  - 80",
            "_y": 1,
            "dotsMC": {
              "_x": "80/2",
              "_height": 100,
              "_width": 80,
              "text": ":",
              "$textFormat": { "font": "$FieldFont",  "size": 40, "align": "center" }
            },
            "secondsMC": {
              "_x": 15,
              "_height": 100,
              "_width": 80,
              "$textFormat": { "font": "$FieldFont", "size": 45, "align": "left" }
            },
            "minutesMC": {
              "_x": -95,
              "_height": 100,
              "_width": 80,
              "$textFormat": { "font": "$FieldFont", "size": 45, "align": "right" }
            }
          }
        }
        }, 

  • Upvote 1

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...