ISU_100 0 Posted December 16, 2019 (edited) At below picture, showing numeric MOE (1,2,3) at left side. How can change numeric MOE to graphic MOE at player panel? 1. playerPanel_large.xc (my config) // marksOnGun {"x": -300, "y": 5, "h": 5, "w": 5, "bgColor": "0x000000", "alpha": "{{marksOnGun> 0? 40 | 0}} "}, {" x ": 300," y ": 5," h ": 20," w ": 17," format ":" <font size = '12 'color =' 0xCC9933 '> 1 </font> "," alpha ":" {{marksOnGun == 1? 100 | 0}} "}, {" x ": 300," y ": 5," h ": 20," w ": 17 , "format": "<font size = '12 'color =' 0xCC9933 '> 2 </font>", "alpha": "{{marksOnGun == 2? 100 | 0}}"}, {"x" : 300, "y": 5, "h": 20, "w":17, "format": "<font size = '12 'color =' 0xCC9933 '> 3 </font>", "alpha": "{{marksOnGun == 3? 100 | 0}}"}, 2.texts.xc (my config) // Text for {{marksOnGun}}, {{v.marksOnGun}} macros. // Text for macros {{marksOnGun}}, {{v.marksOnGun}} "marksOnGun": { "_0": "0", "_1": "1", "_2": "2", "_3" : "3" }, 3. graphic MOE files (examples) - xvm: //res/gun/gun_1moe.png - xvm: //res/gun/gun_2moe.png - xvm: //res/gun/gun_3moe.png *** Reference attached xc file. playersPanel_large.xc Edited December 16, 2019 by ISU_100 Quote Share this post Link to post Short link Share on other sites
vlad_cs_sr 1,575 #473506 Posted December 20, 2019 Try smth like this: { " x ": 300," y ": 5," h ": 20," w ": 17, "src": "xvm://res/gun/{{marksOnGun}}.png" }, pics should be called: 1.png, 2.png, 3.png 1 Quote Share this post Link to post Short link Share on other sites