Jump to content
Korean Random
Sign in to follow this  
V127

Центровка уровня техники

Recommended Posts

Подскажите, почему некорректно центруется уровень техники над полоской HP в новой версии XVM?

 

markersAliveNormal.xc

// Уровень танка.
"levelIcon": {
      "enabled": true,
      "x": 0,
      "y": -63,
      "alpha": 100
},

post-30540-0-60717300-1471087013_thumb.jpg

Edited by V127

Share this post


Link to post

Short link
Share on other sites

потому что в чистом клиенте так же.

можно выключить его вообще и заменить на текстовое поле

Share this post


Link to post

Short link
Share on other sites

@V127, скажи спасибо ВГ .

вот тут говорилось о проблеме, а тут - о решении 

Код для решения - вот тут

Мне не для ушей надо, а для уровня техники над полоской HP.

Share this post


Link to post

Short link
Share on other sites

@V127, что в ушах, что там, что по табу, выравнивание было похерено .
так что экстра поле можно применять повсюду

Share this post


Link to post

Short link
Share on other sites

{{ally?23|21}} - не работает...

а на кой оно, если Вы пишете одно текстовое поле для своих (секция ally - textFields) , а второе для врагов (enemy - textFields)
  • Upvote 2
  • Downvote 1

Share this post


Link to post

Short link
Share on other sites

а на кой оно, если Вы пишете одно текстовое поле для своих (секция ally - textFields) , а второе для врагов (enemy - textFields)

Это не ответ...

Share this post


Link to post

Short link
Share on other sites

@Tornado_Odan_Rot

это не решение для его проблема

 

@V127

сделайте как sirmax предложил

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

@konrad509, sirmax said how to do, I said how to configure .
so dat's true shit to work .

 

 

 

Это не ответ...
 

конечно это не ответ .
а что ответ ? есть и вместо Вас сделать ?

  • Downvote 1

Share this post


Link to post

Short link
Share on other sites

But how changing the horizontal position of level icon, depending on whether it's ally or enemy vehicle, is supposed to help him centre the icon over a vehicle? Sorry, but I don't see how is one related to another.

If I'm wrong, enlighten me please...

Share this post


Link to post

Short link
Share on other sites

@konrad509, look on these screenshons and compare them

post-11373-0-74260000-1470946428.png post-11373-0-51843000-1470946462.jpg

1st - how it was before 9.15.1.1, 2nd - how it's become .

Do u see the levelicon aligned center in 1st screen ? and look on it in the 2nd screen .
It's aligned on left .

Same shi~ is in the Markers, so extra additional text fiels are valid there .

Edited by Tornado_Odan_Rot
  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

Yes, I agree with you. But making it possible to centre the level icon, or to be technically correct, making all these icons collinear in relation to their centres, is thanks to this one line:

"align": "center",

not this

"x": "{{ally?23|21}}",
Edited by konrad509

Share this post


Link to post

Short link
Share on other sites

@konrad509, ye dat was my bad, coz I gave a piece of pPanel code ..
excume me )

 

so this guy need to disable the client icon

"levelIcon": { "alpha": 100, "enabled": false, "x": 0, "y": -21 },

and write this in textFields

{
			  "name": "Level Icon",
			  "enabled": true,
			  "x": 0,
			  "y": -31,
			  "alpha": 100,
			  "textFormat": {
				"font": "$FieldFont",
				"size": 14,
				"color": null,
				"align": "center",
				"bold": false,
				"italic": false
			  },
			  "shadow": {
				"enabled": true,
				"distance": 0,
				"angle": 0,
				"color": "0x000000",
				"alpha": 100,
				"blur": 4,
				"strength": 2
			  },
			  "format": "{{rlevel}}"
			},

.

Dat's correct code )

Edited by Tornado_Odan_Rot
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

@konrad509, ye dat was my bad, coz I gave a piece of pPanel code ..

excume me )

 

so this guy need to disable the client icon

"levelIcon": { "alpha": 100, "enabled": false, "x": 0, "y": -21 },

and write this in textFields

{
			  "name": "Level Icon",
			  "enabled": true,
			  "x": 0,
			  "y": -31,
			  "alpha": 100,
			  "textFormat": {
				"font": "$FieldFont",
				"size": 14,
				"color": null,
				"align": "center",
				"bold": false,
				"italic": false
			  },
			  "shadow": {
				"enabled": true,
				"distance": 0,
				"angle": 0,
				"color": "0x000000",
				"alpha": 100,
				"blur": 4,
				"strength": 2
			  },
			  "format": "{{rlevel}}"
			},

.

Dat's correct code )

 

Выравнивание по центру так и не работает...

Share this post


Link to post

Short link
Share on other sites

Выравнивание по центру так и не работает...

блин, уже код кинули, там хочешь, не хочешь, поле само себя выровняет .

Что не работает на этот раз ? Скрин ?

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...