cluster Posted September 15, 2016 Share Posted September 15, 2016 Доброе время танкисты. Такая проблема после обновы, в моем конфиге, при нажатии альт появляется оставшееся хп. Так вот цифры в нем сдвинулись. Как вернуть по центру??? Скрин и файл приложил. Всем заранее спасибо! playersPanel.xc @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted September 15, 2016 Share Posted September 15, 2016 @cluster, проблема эта из-за введения align во все поля . впишите дополнительно в полях "align": "center" и проблема исчезнет @ Quote Link to comment Short link Share on other sites More sharing options...
cluster Posted September 15, 2016 Author Share Posted September 15, 2016 В файле у меня вот так: // Оставшееся ХП "hp": { "bindToIcon": true, "x": "{{ally?120|140}}", "y": 8, "alpha": "{{alive?100|0}}", "width": 70, "textFormat": { "font": "mono", "align": "center", "size": 11, "color": "{{c:hp-ratio}}", "bold": true }, "shadow": { "enabled": true, "blur": 4, "strength": 1 }, "format": " {{hp%4d|----}} " и проблема есть! Сделал так, вроде работает... это правильно? // Оставшееся ХП "hp": { "bindToIcon": true, "x": "{{ally?85|85}}", "y": 8, "alpha": "{{alive?100|0}}", "width": 70, "textFormat": { "font": "mono", "align": "center", "size": 11, "color": "{{c:hp-ratio}}", "bold": true }, "shadow": { "enabled": true, "blur": 4, "strength": 1 }, "format": " {{hp%4d|----}} " }, // Динамическая полоса здоровья "hpBar": { "bindToIcon":true, "x": "{{ally?85|85}}", "y": 11, "alpha": "{{alive?45|0}}", "bgColor": "{{c:system}}", "height": 12, "width": "{{hp-ratio:70}}" }, // Фон полосы здоровья "hpBg": { "bindToIcon":true, "x": "{{ally?84|84}}", "alpha": "{{alive?35|0}}", "bgColor": "0x000000", "y": 10, "height": 14, "width": 72 @ Quote Link to comment Short link Share on other sites More sharing options...
TornadoCat Posted September 16, 2016 Share Posted September 16, 2016 @cluster, да, когда-то это и мою проблему решило @ Quote Link to comment Short link Share on other sites More sharing options...
Kapany3uk Posted September 16, 2016 Share Posted September 16, 2016 @cluster, макрос вида {{ally?85|85}} не имеет смысла, поскольку отдает одно и то же значение и для союзников и для противника. Замени на просто числа, по типу "x": 85, @ Quote Link to comment Short link Share on other sites More sharing options...
cluster Posted September 17, 2016 Author Share Posted September 17, 2016 (edited) cluster, макрос вида {{ally?85|85}} не имеет смысла, поскольку отдает одно и то же значение и для союзников и для противника. Замени на просто числа, по типу "x": 85, СПАСИБО за ответ, не могли бы Вы примерчик сделать ???- я, к сожалению, не бетман в этом... Edited September 19, 2016 by cluster @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
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.