blue___phoenix Posted June 6, 2017 Share Posted June 6, 2017 (edited) First and foremost, I am new to XVM; please, make your replies extensive and easy to understand >_< At the top of the screen, you have a list of users, along with the name of the tank, tier and ranking. Yes, I know, you press ctrl+tab and the views changes. 1) What I want to do is, to display the Type of vehicle icon (HT/MT/LT/TD/Arty) next to the tank/tier icon. 2) If it is also possible, the flag of the country where that tank is from, to remove any guessing work od where the tank is from and go buy it. Just to be clear, I am referring to the country of the tank (tech tree's country). NOT the user In advance, thank you for your help! Edited June 6, 2017 by blue___phoenix @ Quote Link to comment Short link Share on other sites More sharing options...
scyorkie Posted June 6, 2017 Share Posted June 6, 2017 (edited) For #1, you can refer to this post, under the first part of his "code & picture" spoiler. For #2, you can use this as a starting point: a. Create an extraField definition in playersPanel.xc: "def": { ... "nationIcon": { "enabled": false, "bindToIcon": true, "hotKeyCode": 56, "visibleOnHotKey": true, "x": 55, "y": 4, "align": "center", "layer": "bottom", "alpha": 90, "format": "<img src='xvm://res/icons/barracks/nations/{{nation}}.png'>"}, ... }, b. Refer to the definition in the "extraFieldsLeft" and "extraFieldsRight" field where you want the flag to appear (there are 4 instances of each in playersPanel.xc): "extraFieldsLeft": [ ... ${"def.nationIcon"}, ...], Result on pressing Alt: Edited June 6, 2017 by scyorkie 1 @ Quote Link to comment Short link Share on other sites More sharing options...
Rhopegorn Posted June 6, 2017 Share Posted June 6, 2017 2) If it is also possible, the flag of the country where that tank is from, to remove any guessing work od where the tank is from and go buy it. Are you referring to the originating "tech tree" country or the player country? As for the player country, that's something you can set with the XVM settings part so that isn't always true. There used to be a helpful additional piece of code you could add to XVM to see what language client used, good as it indicates is some the countries without an native client use an language you share. But it was discontinued. @ Quote Link to comment Short link Share on other sites More sharing options...
blue___phoenix Posted June 6, 2017 Author Share Posted June 6, 2017 (edited) Are you referring to the originating "tech tree" country or the player country? As for the player country, that's something you can set with the XVM settings part so that isn't always true. There used to be a helpful additional piece of code you could add to XVM to see what language client used, good as it indicates is some the countries without an native client use an language you share. But it was discontinued. I am referring o the TANK's country, NOT the user For #1, you can refer to this post, under the first part of his "code & picture" spoiler. For #2, you can use this as a starting point: a. Create an extraField definition in playersPanel.xc: "def": { ... "nationIcon": { "enabled": false, "bindToIcon": true, "hotKeyCode": 56, "visibleOnHotKey": true, "x": 55, "y": 4, "align": "center", "layer": "bottom", "alpha": 90, "format": "<img src='xvm://res/icons/barracks/nations/{{nation}}.png'>" }, ... }, b. Refer to the definition in the "extraFieldsLeft" and "extraFieldsRight" field where you want the flag to appear (there are 4 instances of each in playersPanel.xc): "extraFieldsLeft": [ ... ${"def.nationIcon"}, ... ], Result on pressing Alt: scyorkie, on 06 Jun 2017 - 01:52, said: For #1, you can refer to this post, under the first part of his "code & picture" spoiler. For #2, you can use this as a starting point: a. Create an extraField definition in playersPanel.xc: "def": { ... "nationIcon": { "enabled": false, "bindToIcon": true, "hotKeyCode": 56, "visibleOnHotKey": true, "x": 55, "y": 4, "align": "center", "layer": "bottom", "alpha": 90, "format": "<img src='xvm://res/icons/barracks/nations/{{nation}}.png'>" }, ... }, b. Refer to the definition in the "extraFieldsLeft" and "extraFieldsRight" field where you want the flag to appear (there are 4 instances of each in playersPanel.xc): "extraFieldsLeft": [ ... ${"def.nationIcon"}, ... ], Result on pressing Alt: RcGAy0B.jpg 1) I went to the link you provided and is giving me a code. But I have no idea on what file to add it and exactly where to add it. 2) How do I create an extraFieldsLeft? This is how my playersPannel.xc looks: "playersPanel": { // false - Disable. "enabled": true, // Opacity percentage of the panels. 0 - transparent, 100 - opaque. "alpha": 80, // Opacity percentage of icons in the panels. 0 - transparent ... 100 - opaque. "iconAlpha": 100, // true - disable background of the selected player. "removeSelectedBackground": false, // true - Remove the Players Panel mode switcher (buttons for changing size). "removePanelsModeSwitcher": false, // Start panels mode. Possible values: "none", "short", "medium", "medium2", "large". "startMode": "large", // Alternative panels mode. Possible values: null, "none", "short", "medium", "medium2", "large". "altMode": null, // Options for the "none" panels - empty panels. "none": { // false - disable (отключить) "enabled": true, // Width of area for switching to "large" mode on mouse over "expandAreaWidth": 230, // Layout ("vertical" or "horizontal") "layout": "vertical", // true - don't change players positions on dead (default false) "fixedPosition": false, // Opacity of dynamic squad invite indicator "inviteIndicatorAlpha": 100, // X position offset of dynamic squad invite indicator "inviteIndicatorX": 0, // Y position offset of dynamic squad invite indicator "inviteIndicatorY": 0, // Extra fields. "extraFields": { "leftPanel": { "x": 0, // from left side of screen "y": 65, "width": 350, "height": 25, // Set of formats for left panel // example: // "formats": [ // // simple format (just a text) // "{{nick}}", // "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>", // // extended format // { "x": 20, "y": 10, "borderColor": "0xFFFFFF", "format": "{{nick}}" }, // { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }, // { "x": 200, "src": "img://gui/maps/icons/vehicle/{{vehiclename}}.png" } // { "x": 200, "src": "cfg://user/img/{{vehiclename}}.png" } // ] // // * all fields are optional // "formats": [] }, new reply Edited June 6, 2017 by blue___phoenix @ Quote Link to comment Short link Share on other sites More sharing options...
scyorkie Posted June 6, 2017 Share Posted June 6, 2017 That can't be your entire file. In any case, pls attach the .xc to your post instead of pasting the contents (too messy). @ Quote Link to comment Short link Share on other sites More sharing options...
blue___phoenix Posted June 6, 2017 Author Share Posted June 6, 2017 (edited) a. Create an extraField definition in playersPanel.xc:..."extraFieldsLeft": [ Since you mentioned the "extraFieldsLeft", that's the only section I copied and pasted. That can't be your entire file. In any case, pls attach the .xc to your post instead of pasting the contents (too messy). Can't find the attach option >_< /** * Parameters of the Players Panels ("ears"). */ { // Definitions (extended format supported, see extra-field.txt). "def": { // Enemy spotted status marker. "enemySpottedMarker": { // false - отключить. "enabled": true, // Opacity percentage of spotted markers in the panels. 0 - transparent (disabled) ... 100 - opaque. "alpha": "{{a:spotted}}", // x position. "x": 88, // y position. "y": -2, // Horizontal alignment "align": "center", // true - x position is bound to vehicle icon, false - bound to edge of the screen. "bindToIcon": true, // enemy spotted status marker format. "format": "<font color='{{c:spotted}}'>{{spotted}}</font>", // shadow (see below). "shadow": {} }, // XMQP service marker definition. "xmqpServiceMarker": { "enabled": true, "x": 88, "y": -2, "align": "center", "bindToIcon": true, "textFormat": { "font": "xvm", "size": 24 }, "format": "<font color='{{alive?{{x-spotted?#FFBB00|{{x-sense-on?#D9D9D9|#BFBFBF}}}}|#FFFFFF}}' alpha='{{alive?#FF|#80}}'>{{alive?{{x-spotted?p|{{x-sense-on?p|{{x-enabled?z}}}}}}}}</font>", "shadow": {} }, // "Top tankers" rank definition. "topTankers": { "enabled": true, "x": 77, "y": 6, "width": 16, "height": 16, "align": "center", "bindToIcon": true, "src": "{{top_tankers_emblem}}" }, // Clan icon. "clanIcon": { "enabled": true, "x": 65, "y": 6, "width": 16, "height": 16, "align": "center", "alpha": 90, "bindToIcon": true, "src": "{{clanicon}}" //"format": "<img src='{{clanicon}}' width='16' height='16'>" }, // XVM user marker. "xvmUserMarker": { "enabled": false, "x": 10, "y": 5, "bindToIcon": true, "src": "xvm://res/icons/xvm/xvm-user-{{xvm-user|none}}.png" }, // HP bar background. "hpBarBg": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 96, "y": 6, "width": 72, "bindToIcon": true, "height": 14, "bgColor": "0x000000", "alpha": "{{alive?35|0}}" }, // HP bar. "hpBar": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "x": 97, "y": 7, "bindToIcon": true, "width": "{{hp-ratio:70}}", "height": 12, "bgColor": "{{player?#FFDD33|{{c:system}}}}", "alpha": "{{alive?50|0}}" }, // Remaining HP. "hp": { "hotKeyCode": 56, "onHold": "true", "visibleOnHotKey": true, "bindToIcon": true, "alpha": "{{alive?100|0}}", "x": 96, "width": 72, "y": 4, "textFormat": { "font": "$FieldFont", "size": 11, "color": "0xD9D9D9", "bold": "true", "align": "center" }, "format": "<font alpha='{{alive?{{ready?#FF|#80}}|#80}}'>{{alive?{{hp|{{l10n:No data}}}}|{{l10n:Destroyed}}}}</font>", "shadow": { "enabled": true, "color": "0x000000", "alpha": 100, "blur": 4, "strength": 1, "distance": 0, "angle": 0 } } }, // Parameters of the Players Panels ("ears"). "playersPanel": { // false - Disable. "enabled": true, // Opacity percentage of the panels. 0 - transparent, 100 - opaque. "alpha": 80, // Opacity percentage of icons in the panels. 0 - transparent ... 100 - opaque. "iconAlpha": 100, // true - disable background of the selected player. "removeSelectedBackground": false, // true - Remove the Players Panel mode switcher (buttons for changing size). "removePanelsModeSwitcher": false, // Start panels mode. Possible values: "none", "short", "medium", "medium2", "large". "startMode": "large", // Alternative panels mode. Possible values: null, "none", "short", "medium", "medium2", "large". "altMode": null, // Options for the "none" panels - empty panels. "none": { // false - disable (отключить) "enabled": true, // Width of area for switching to "large" mode on mouse over "expandAreaWidth": 230, // Layout ("vertical" or "horizontal") "layout": "vertical", // true - don't change players positions on dead (default false) "fixedPosition": false, // Opacity of dynamic squad invite indicator "inviteIndicatorAlpha": 100, // X position offset of dynamic squad invite indicator "inviteIndicatorX": 0, // Y position offset of dynamic squad invite indicator "inviteIndicatorY": 0, // Extra fields. "extraFields": { "leftPanel": { "x": 0, // from left side of screen "y": 65, "width": 350, "height": 25, // Set of formats for left panel // example: // "formats": [ // // simple format (just a text) // "{{nick}}", // "<img src='xvm://res/img/panel-bg-l-{{alive|dead}}.png' width='318' height='28'>", // // extended format // { "x": 20, "y": 10, "borderColor": "0xFFFFFF", "format": "{{nick}}" }, // { "x": 200, "src": "xvm://res/contour/{{vehiclename}}.png" }, // { "x": 200, "src": "img://gui/maps/icons/vehicle/{{vehiclename}}.png" } // { "x": 200, "src": "cfg://user/img/{{vehiclename}}.png" } // ] // // * all fields are optional // "formats": [] }, "rightPanel": { "x": 0, // from right side of screen "y": 65, "width": 350, "height": 25, // Set of formats for right panel (extended format supported, see above) "formats": [] } } }, // Options for the "short" panels - panels with frags and vehicle icon. "short": { // false - disable (отключить) "enabled": true, // Displayed standard fields in this mode and their order. // Available names: "frags", "rank", "nick", "vehicle". "standardFields": [ "frags" ], // Width of area for switching to "large" mode on mouse over "expandAreaWidth": 230, // true - disable platoon icons "removeSquadIcon": false, // transparency of the squad icon // прозрачность иконки взвода "squadIconAlpha": 100, // Offset of X value for vehicle icon. "vehicleIconXOffsetLeft": 0, "vehicleIconXOffsetRight": 0, // Offset of X value for vehicle level. "vehicleLevelXOffsetLeft": 0, "vehicleLevelXOffsetRight": 0, // transparency of vehicle level "vehicleLevelAlpha": 100, // Offset of X value for frags column. "fragsXOffsetLeft": 0, "fragsXOffsetRight": 0, // Width of the frags column. Default is 24. "fragsWidth": 24, // Display format for frags (macros allowed, see macros.txt). "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", // Shadow for frags field (default null = no shadow, as in vanillas client). "fragsShadowLeft": null, "fragsShadowRight": null, // Offset of X value for rank column. "rankXOffsetLeft": 0, "rankXOffsetRight": 0, // Width of the rank column. Default is 24. "rankWidth": 24, // Offset of X value for player name column. "nickXOffsetLeft": 0, "nickXOffsetRight": 0, // Minimum width of the player name column. Default is 46. "nickMinWidth": 46, // Maximum width of the player name column. Default is 158. "nickMaxWidth": 158, // Display format for player name (macros allowed, see macros.txt). "nickFormatLeft": "<font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font> {{name%.15s~..}}<font alpha='#A0'>{{clan}}</font>", "nickFormatRight": "<font alpha='#A0'>{{clan}}</font>{{name%.15s~..}} <font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font>", // Shadow for player name field (default null = no shadow, as in vanillas client). "nickShadowLeft": null, "nickShadowRight": null, // Offset of X value for vehicle name column. "vehicleXOffsetLeft": 0, "vehicleXOffsetRight": 0, // Width of the vehicle name column. Default is 72. "vehicleWidth": 72, // Display format for vehicle name (macros allowed, see macros.txt). "vehicleFormatLeft": "{{vehicle}}", "vehicleFormatRight": "{{vehicle}}", // Shadow for vehicle name field (default null = no shadow, as in vanillas client). "vehicleShadowLeft": null, "vehicleShadowRight": null, // true - don't change players positions on dead (default false) "fixedPosition": false, // Extra fields. Each field have default size 350x25. // Fields are placed one above the other. // Set of formats for left panel (extended format supported, see above) "extraFieldsLeft": [ ${"def.topTankers"}, ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.xmqpServiceMarker"} ], // Set of formats for right panel (extended format supported, see above) "extraFieldsRight": [ ${"def.topTankers"}, ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.enemySpottedMarker"} ] }, // Options for the "medium" panels - the first of the medium panels. "medium": { // false - disable (отключить) "enabled": true, // Displayed standard fields in this mode and their order. // Available names: "frags", "rank", "nick", "vehicle". "standardFields": [ "frags", "rank", "nick" ], // Width of area for switching to "large" mode on mouse over "expandAreaWidth": 230, // true - disable platoon icons "removeSquadIcon": false, // transparency of the squad icon "squadIconAlpha": 100, // Offset of X value for vehicle icon. "vehicleIconXOffsetLeft": 0, "vehicleIconXOffsetRight": 0, // Offset of X value for vehicle level. "vehicleLevelXOffsetLeft": 0, "vehicleLevelXOffsetRight": 0, // transparency of vehicle level "vehicleLevelAlpha": 100, // Offset of X value for frags column. "fragsXOffsetLeft": 0, "fragsXOffsetRight": 0, // Width of the frags column. Default is 24. "fragsWidth": 24, // Display format for frags (macros allowed, see macros.txt). "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", // Shadow for frags field (default null = no shadow, as in vanillas client). "fragsShadowLeft": null, "fragsShadowRight": null, // Offset of X value for rank column. "rankXOffsetLeft": 0, "rankXOffsetRight": 0, // Width of the rank column. Default is 24. "rankWidth": 24, // Offset of X value for player name column. "nickXOffsetLeft": 0, "nickXOffsetRight": 0, // Minimum width of the player name column. Default is 46. "nickMinWidth": 46, // Maximum width of the player name column. Default is 158. "nickMaxWidth": 158, // Display format for player nickname (macros allowed, see macros.txt). "nickFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>", "nickFormatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font>", // Shadow for player name field (default null = no shadow, as in vanillas client). "nickShadowLeft": null, "nickShadowRight": null, // Offset of X value for vehicle name column. "vehicleXOffsetLeft": 0, "vehicleXOffsetRight": 0, // Width of the vehicle name column. Default is 72. "vehicleWidth": 72, // Display format for vehicle name (macros allowed, see macros.txt). "vehicleFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", "vehicleFormatRight": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", // Shadow for vehicle name field (default null = no shadow, as in vanillas client). "vehicleShadowLeft": null, "vehicleShadowRight": null, // true - don't change players positions on dead (default false) "fixedPosition": false, // Extra fields. Each field have size 350x25. Fields are placed one above the other. // Set of formats for left panel (extended format supported, see above) "extraFieldsLeft": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.xmqpServiceMarker"}, ${"def.topTankers"} ], // Set of formats for right panel (extended format supported, see above) "extraFieldsRight": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.enemySpottedMarker"}, ${"def.topTankers"} ] }, // Options for the "medium2" panels - the second of the medium panels. "medium2": { // false - disable (отключить) "enabled": true, // Displayed standard fields in this mode and their order. // Available names: "frags", "rank", "nick", "vehicle". "standardFields": [ "frags", "vehicle" ], // Width of area for switching to "large" mode on mouse over "expandAreaWidth": 230, // true - disable platoon icons "removeSquadIcon": false, // transparency of the squad icon "squadIconAlpha": 100, // Offset of X value for vehicle icon. "vehicleIconXOffsetLeft": 0, "vehicleIconXOffsetRight": 0, // Offset of X value for vehicle level. "vehicleLevelXOffsetLeft": 0, "vehicleLevelXOffsetRight": 0, // transparency of vehicle level "vehicleLevelAlpha": 100, // Offset of X value for frags column. "fragsXOffsetLeft": 0, "fragsXOffsetRight": 0, // Width of the frags column. Default is 24. "fragsWidth": 24, // Display format for frags (macros allowed, see macros.txt). "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", // Shadow for frags field (default null = no shadow, as in vanillas client). "fragsShadowLeft": null, "fragsShadowRight": null, // Offset of X value for rank column. "rankXOffsetLeft": 0, "rankXOffsetRight": 0, // Width of the rank column. Default is 24. "rankWidth": 24, // Offset of X value for player name column. "nickXOffsetLeft": 0, "nickXOffsetRight": 0, // Minimum width of the player name column. Default is 46. "nickMinWidth": 46, // Maximum width of the player name column. Default is 158. "nickMaxWidth": 158, // Display format for player nickname (macros allowed, see macros.txt). "nickFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font> <font alpha='#A0'>{{clan}}</font>", "nickFormatRight": "<font alpha='#A0'>{{clan}}</font> <font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{name%.12s~..}}</font>", // Shadow for player name field (default null = no shadow, as in vanillas client). "nickShadowLeft": null, "nickShadowRight": null, // Offset of X value for vehicle name column. "vehicleXOffsetLeft": 0, "vehicleXOffsetRight": 0, // Width of the vehicle name column. Default is 72. "vehicleWidth": 72, // Display format for vehicle name (macros allowed, see macros.txt). "vehicleFormatLeft": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", "vehicleFormatRight": "<font color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{vehicle}}</font>", // Shadow for vehicle name field (default null = no shadow, as in vanillas client). "vehicleShadowLeft": null, "vehicleShadowRight": null, // true - don't change players positions on dead (default false) // true - не изменять позиции игроков при уничтожении (по умолчанию false) "fixedPosition": false, // Extra fields. Each field have size 350x25. Fields are placed one above the other. // Set of formats for left panel (extended format supported, see above) "extraFieldsLeft": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.xmqpServiceMarker"}, ${"def.topTankers"} ], // Set of formats for right panel (extended format supported, see above) "extraFieldsRight": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.enemySpottedMarker"}, ${"def.topTankers"} ] }, // Options for the "large" panels - the widest panels. "large": { // false - disable (отключить) "enabled": true, // Displayed standard fields in this mode and their order. // Available names: "frags", "rank", "nick", "vehicle". "standardFields": [ "frags", "rank", "nick", "vehicle" ], // true - disable platoon icons "removeSquadIcon": false, // transparency of the squad icon "squadIconAlpha": 100, // Offset of X value for vehicle icon. "vehicleIconXOffsetLeft": 0, "vehicleIconXOffsetRight": 0, // Offset of X value for vehicle level. "vehicleLevelXOffsetLeft": 0, "vehicleLevelXOffsetRight": 0, // transparency of vehicle level "vehicleLevelAlpha": 100, // Offset of X value for frags column. "fragsXOffsetLeft": 0, "fragsXOffsetRight": 0, // Width of the frags column. Default is 24. "fragsWidth": 24, // Display format for frags (macros allowed, see macros.txt). "fragsFormatLeft": "{{frags}}", "fragsFormatRight": "{{frags}}", // Shadow for frags field (default null = no shadow, as in vanillas client). "fragsShadowLeft": null, "fragsShadowRight": null, // Offset of X value for rank column. "rankXOffsetLeft": 0, "rankXOffsetRight": 0, // Width of the rank column. Default is 24. "rankWidth": 24, // Offset of X value for player name column. "nickXOffsetLeft": 0, "nickXOffsetRight": 0, // Minimum width of the player name column. Default is 46. "nickMinWidth": 46, // Maximum width of the player name column, Default is 158. "nickMaxWidth": 158, // Display format for player nickname (macros allowed, see macros.txt). "nickFormatLeft": "<font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r|--}}</font> {{name%.15s~..}}<font alpha='#A0'>{{clan}}</font>", "nickFormatRight": "<font alpha='#A0'>{{clan}}</font>{{name%.15s~..}} <font face='mono' size='{{xvm-stat?13|0}}' color='{{c:r}}' alpha='{{alive?#FF|#80}}'>{{r}}</font>", // Shadow for player name field (default null = no shadow, as in vanillas client). "nickShadowLeft": null, "nickShadowRight": null, // Offset of X value for vehicle name column. "vehicleXOffsetLeft": 0, "vehicleXOffsetRight": 0, // Width of the vehicle name column. Default is 72. "vehicleWidth": 72, // Display format for vehicle name (macros allowed, see macros.txt). "vehicleFormatLeft": "{{vehicle}}", "vehicleFormatRight": "{{vehicle}}", // Shadow for vehicle name field (default null = no shadow, as in vanillas client). "vehicleShadowLeft": null, "vehicleShadowRight": null, // true - don't change players positions on dead (default false) "fixedPosition": false, // Extra fields. Each field have size 350x25. Fields are placed one above the other. // Set of formats for left panel (extended format supported, see above) "extraFieldsLeft": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.xmqpServiceMarker"}, ${"def.topTankers"} ], // Set of formats for right panel (extended format supported, see above) "extraFieldsRight": [ ${"def.hpBarBg"}, ${"def.hpBar"}, ${"def.hp"}, ${"def.clanIcon"}, ${"def.xvmUserMarker"}, ${"def.enemySpottedMarker"}, ${"def.topTankers"} ] } } } Result on pressing Alt: Is there a way to always have it "on" without having to press alt? Edited June 6, 2017 by blue___phoenix @ Quote Link to comment Short link Share on other sites More sharing options...
scyorkie Posted June 6, 2017 Share Posted June 6, 2017 (edited) I. Sharing contents of your .xc files 1. If you're using the box at the bottom of the page to reply, there is a lighter-coloured button which will state "Extra" if you use Google Translate on the entire page. That will bring you to the full editor which allows you to attach files. 2. Alternatively, you can use pastebin.com to dump the contents of your files. I have pasted the contents of your file at https://pastebin.com/BsRSP1na and I shall make references to it in rest of this post. II. Understanding playerPanels.xc 3. The file consists of 2 main sections:a. "def" (lines 6-68) where you create definitions for elements that appear repeatedly throughout the file, to make it easier to make subsequent edits; andb. "playersPanel" (lines 70-476)) which controls what shows up on the 5 different panel modes -- none, short, medium, medium2, and large -- using the correspondingly-named sub-sections (see lines 86, 136, 223, 308, 394). 4. For the purposes of this thread, you want to pay attention to how definitions are created, and how they are made to show up in the different panel modes. For the former, each definition is named between quotation marks, and the rest of it is contained between { } brackets (there needs to be a comma at the end of the closing bracket, if it's not the final definition in the "def" section). For the latter, each mode has "extraFieldsLeft" for calling up elements that apply to allies, and "extraFieldsRight" for calling up elements that apply to enemies. 5. For example, "clanIcon" is defined at lines 44-49, and called up for both allies and enemies in the short (lines 207 and 217), medium (lines 291 and 301), medium2 (lines 377 and 387), and large (lines 460 and 470) panels. 6. Using the "nationIcon" example in my earlier post, first insert that definition after line 49, then insert a new line containing ${"def.nationIcon"}, after each of the 8 instances of ${"def.clanIcon"}, to activate it for both allies and enemies in all panel modes (watch the commas). 7. For tank class icons, you can start with this definition "vtypeIcon": { "enabled": true, "bindToIcon": true,"x": 5, "y": 0, "align": "center", "layer": "top","format": "<font face='xvm' size='20' color='{{c:vtype}}'>{{vtype-key=LT?:}}{{vtype-key=MT?;}}{{vtype-key=HT??}}{{vtype-key=SPG?-}}{{vtype-key=TD?.}}</font>","alpha": 90, "shadow": {} }, ..and hopefully you know where to insert ${"def.vtypeIcon"}, after what I've explained above. III. Display on pressing Alt 8. This is what determines if something only shows up on pressing Alt: "hotKeyCode": 56, "visibleOnHotKey": true, 9. "56" corresponds to Left Alt (see hotKeys.xc), while "visibleOnHotKey" = true means it will only show up if that key is pressed. Conversely, "visibleOnHotKey": false means that it will always be shown until the relevant key is pressed (whereupon it is hidden). 10. If you delete these from my "nationIcon" definition, the icon will always show. Edited June 6, 2017 by scyorkie @ Quote Link to comment Short link Share on other sites More sharing options...
blue___phoenix Posted June 6, 2017 Author Share Posted June 6, 2017 I made the proper edits, https://pastebin.com/rVinwxbL It works, with a caveat. The game has 4 different views (5 if you count null). To switch between views, you press ctrl+tab. The map and icons only are displaying on option 1 (TypeIcon + Contour + Tier + Flag) How can I make it so they show on all 4? @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted June 6, 2017 Share Posted June 6, 2017 Add relevant references into the extrafields of remaining panel modes. @ Quote Link to comment Short link Share on other sites More sharing options...
blue___phoenix Posted June 6, 2017 Author Share Posted June 6, 2017 Add relevant references into the extrafields of remaining panel modes. I have no idea what you mean. -I am new to XVM @ Quote Link to comment Short link Share on other sites More sharing options...
konrad509 Posted June 6, 2017 Share Posted June 6, 2017 Put this ${"def.clanIcon"}, ${"def.vtypeIcon"}, into medium/medium2/large->extraFieldsLeft/extraFieldsRight as it is done in short->extraFieldsLeft/extraFieldsRight. @ 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.