Jump to content
Korean Random

clockformat in new configs


Recommended Posts

Hey guys,

 

I've used in my old settings in battle.xc this clockformat: "clockFormat": "<font face='digital-7 mono' color='#96FF00' size='20'>H:N.S</font>",

 

Now is HTML string ignored and clock are not shown, if I set default format "H:i", all is working well...

 

Any thoughts ?

 

Thanks

 

Ragna

Link to comment
Short link
Share on other sites

I guess it's because the clock is using PHP formatting now http://php.net/date

 

O_o

And what format was it using before??

 

Wrong guess. The clock using PHP format isn't new at all. There hasn't been any changes here afaic.

 

Hey guys,

 

I've used in my old settings in battle.xc this clockformat: "clockFormat": "<font face='digital-7 mono' color='#96FF00' size='20'>H:N.S</font>",

 

Now is HTML string ignored and clock are not shown, if I set default format "H:i", all is working well...

 

Any thoughts ?

 

Thanks

 

Ragna

 

Try

"clockFormat": "H:N.S"

Does it work?

 

I assume the font might be causing the issue. If the line above works fine, the next step is try different fonts, system ones.

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

O_o

And what format was it using before??

 

Wrong guess. The clock using PHP format isn't new at all. There hasn't been any changes here afaic.

 

 

Try

"clockFormat": "H:N.S"

Does it work?

 

I assume the font might be causing the issue. If the line above works fine, the next step is try different fonts, system ones.

Thanks for reply, but I know clock format, but HTML formatting isnt working (font, color, etc.)

Link to comment
Short link
Share on other sites

I think I was a bit misled here. I thought about the format first, not formatting. And the PHP format isn't new at all for the clock.

Now I probably get it.

 

The changelog says:

 

* clock are using php formatting

 

Which likely literally means the clock is now using php formatting, which means that html formatting isn't working anymore.

That's simple logic based on what is written.

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

so html formatting for "clockformat": is gone?

Yes, because PHP Date use many letters in its format, and HTML tags will be substituted with values. But you can use "elements" section to change text format.

May be later I'll make macros like in the hangar.

Also you can make your own clock using BattleLabels and py_macro, but it have no timer event yet, later I'll add it.

And I have one more question, cant find string for hitlog rows... It will be implemented, or is abandoned ?

Not implemented, you can just limit the size with "height" option.

Link to comment
Short link
Share on other sites

My fault, I mean "PHP format", not "PHP formatting"

 

А в чем тогда изменение? PHP format же и раньше был

 

И кстати там clock "is", а не "are", часы в английском это единственное число ;)

Надо мне будет пробежаться по докам, подкорректировать ошибки

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

@sirmax,

 

my WoT client is on english language. How can I get with XVM Russian format for days and months without changing the client language?

In Anton's mod you could set whatever you have liked as the name of days and months, sadly he hasn't updated his mod for 0.9.15.1.

 

I would like to see ВТОРНИК instead of Tuesday and АВГ instead of Aug.

 

FWpUWhw.jpg

Link to comment
Short link
Share on other sites

А в чем тогда изменение? PHP format же и раньше был

Он был на экране загрузки, а теперь и в бою.

Надо мне будет пробежаться по докам, подкорректировать ошибки

Вот за это буду очень признателен.

@sirmax,

my WoT client is on english language. How can I get with XVM Russian format for days and months without changing the client language?

No, you can't, XVM only implements internal client formatting functions.

But as a workaround, you can try to make images with required text and load they using <img> tag.

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...