Jump to content
Korean Random

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


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
Link to comment
Short link
Share on other sites

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

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

Link to comment
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
Link to comment
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
Link to comment
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
Link to comment
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 )

 

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

Link to comment
Short link
Share on other sites

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

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

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

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