Ragnarocek 17 Posted November 27, 2016 Hey all, I need some help with bgColor for damagelog. If I set: "bgColor": "#000000", - I got solid black suqre in panel position, so I need to set alpha If I set: "bgColor": { "color": #000000", "alpha": 60 }, background disappears What am I doing wrong ? Thx for help Quote Share this post Link to post Short link Share on other sites
konrad509 445 #367246 Posted November 27, 2016 (edited) I can't tell right now whether it should work or not in general, but in the code you posted there's a quote missing before #000000". EDIT: I think it's just incorrect, so it doesn't work. bgColor is the parameter just for the color (as the name suggests), so you can't use anything except the color value or anything that returns such value. I guess it should work simply this way: "bgColor": "#000000", "alpha": 60 Edited November 27, 2016 by konrad509 Quote Share this post Link to post Short link Share on other sites
Ragnarocek 17 #367247 Posted November 27, 2016 I can't tell right now whether it should work or not in general, but in the code you posted there's a quote missing before #000000". I figured it out: I've added to battleLabels.xc: ${ "battleLabelsTemplates.xc":"def.damageLogBg"}, battleLabelsTemplates: "damageLog": { "enabled": true, "updateEvent": "PY(ON_HIT)", "x": 240, "y": 0, "width": 300, "height": 233, "screenVAlign": "bottom", "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 3 }, "textFormat": { "color": "0xF4EFE8", "size": 16 }, "format": "{{py:xvm.damageLog.dLog}}" }, "damageLogBg": { "enabled": "true", "x": 240, "y": 0, "width": 300, "height": 233, "alpha": 20, "bgColor": "0x000000", "screenVAlign": "bottom", "format": "" }, result: Quote Share this post Link to post Short link Share on other sites
Сербия 12 #367249 Posted November 27, 2016 @Ragnarocek, share your dmglog configuration with us, please. Quote Share this post Link to post Short link Share on other sites
Ragnarocek 17 #367251 Posted November 27, 2016 @Ragnarocek, share your dmglog configuration with us, please. damageLog.rar - ofc you need to add / change lines mentioned in my previous post... Quote Share this post Link to post Short link Share on other sites