Maggz 6 Posted February 8, 2014 ok if i try to add images (instead of font images) to player panel medium or medium2 i am getting a really wierd alignment error here is the line of code ive been experimenting with: "formatRight": "{{vehicle}} <img src='xvmres://Maggz/img/xvmicons/{{c:rating}}_dot.png' width='16' height='23' vspace='-1'>" now in that xvmicons folder i have created images named: #02C9B3_dot#60FF00_dot#D042F3_dot#F8F400_dot#FE0E00_dot#FE7903_dot this directly corresponds to the color tags defined in my colors.xc file "colorRating": { "very_bad": "0xFE0E00", // very bad / очень плохо "bad": "0xFE7903", // bad / плохо "normal": "0xF8F400", // normal / средне "good": "0x60FF00", // good / хорошо "very_good": "0x02C9B3", // very good / очень хорошо "unique": "0xD042F3" // unique / уникально }, so as you see it does load the images as defined above. However, this then creates an alignment error in the players panel. as you see in this image as players tanks die, the text disapears next to the contour (it is actually pushed up and misaligns the entire list of text and eventually the entire roster fits in half the vertical space. i dont know whether im misusing the image setup for the players panel or not, this was more or less a test i was trying out, it is not something that cant be done with font replacements. I was just assuming the image replacement should work as the font replacement would. Also no dead tankers display any images in the players panel. This seems like it should also be a bug, Possibly the cause of this? Quote Share this post Link to post Short link Share on other sites
jage 73 #151753 Posted February 9, 2014 дамаг панель с картой ++++ Quote Share this post Link to post Short link Share on other sites
Maggz 6 #151754 Posted February 9, 2014 from translating you are saying this is caused by the damage panel and minimap? I am unsure why the players panel swf would be affected by damage panel or minimap. If it is the minimap then it is still and xvm minimap i am using so it is still an xvm bug. the damage panel i am using is just that damagepanel.swf along with its controlling pyc file I dont think there should be any reason its caused by this. I have also tested this with no damage panel mod at all installed, Same result. The players panel is not behaving as intended when using image tags but works fine for font tags. I would like atleast a confirmation from someone who is actually a developer, or one that speaks english (since this is posted in the english subforum). Quote Share this post Link to post Short link Share on other sites
Yupi 505 #151770 Posted February 9, 2014 (edited) @Maggz, it seems everything is working as it should, what exactly is your problem? Can you show 2 images: 1) how it should look, 2) how it looks now? Oh, now I noticed the description after the picture...) Also i advise to use this symbol " • " instead of "{{c:rating}}_dot.png". Edited February 9, 2014 by TwoPizza Quote Share this post Link to post Short link Share on other sites
Maggz 6 #151775 Posted February 9, 2014 i understand i can use a symbol twopizza, however images should also work, the alignment issue as far as i can tell is a bug with xvm in how it handles tankers deaths. that part seems to only allow fonts instead of images. This is not the intended effect. therefore this is a bug report. I know how to use fonts for symbols, however images should be fully supported mainly because you can have a far wider robust look. currently my ui doesnt use the images anyhow, this was done soley for bug test purposes. my current code displays as follows: // Options for the "medium2" panels - the second of the medium panels. "medium2": { // Width of the vehicle name column, 0-250. Default is 65. "width": 150, // Display format for the left panel (macros allowed, see readme-en.txt). "formatLeft": "<textformat align='left' tabstops='[104,117,137]'><font face='Verdana' size='11' color='{{c:eff}}'>{{clan}}{{name}}</font><tab><font face='xvmsymbol' size='10' color='{{c:rating}}'>$</font><tab><font face='xvmsymbol' size='10' color='{{c:wn8}}'>'</font><tab><font face='xvmsymbol' size='10' color='{{c:t_battles}}'>!</font></textformat>", // Display format for the right panel (macros allowed, see readme-en.txt). "formatRight": "<textformat align='right' tabstops='[13,26,50]'><font face='xvmsymbol' size='10' color='{{c:t_battles}}'>!</font><tab><font face='xvmsymbol' size='10' color='{{c:wn8}}'>'</font><tab><font face='xvmsymbol' size='10' color='{{c:eff}}'>$</font><tab><font face='Verdana' size='11' align='right' color='{{c:eff}}'>{{name}}{{clan}}</font></textformat>" }, that being said, the above code works fine, but why should we be limited to only using fonts due to a bug. The reason i posted here is to get this addressed in the future. Quote Share this post Link to post Short link Share on other sites