I hacked at it and was able to get it to work using the Chinook as an example. Happy to share it back. I suspect some server operators would like this as well.
Support for Bradley APC eventSolved
Can you tell me please the Object / Class / Type Name of the Bradley??
I mean, that Chinook have also a different "Type" thing.
private ChinookEvent Chinook;
private List<CH47Helicopter> ActiveChinooks;
Exampe for Bradley:
private BradleyEvent Bradley;
private List<???CLASS/TYPE/OBJECT NAME??> ActiveBradleys; In response to DeliciousAce ():Can you tell me please the Object / Class / Type Name of the Bradley??
I mean, that Chino...
The Entity class is BradleyAPC
Merged post
I create a gist with the custom InfoPanel.cs. You need to add the json block config if you have a current configuration.
InfoPanel.cs
private List<BradleyAPC> ActiveBradleysMerged post
I create a gist with the custom InfoPanel.cs. You need to add the json block config if you have a current configuration.
InfoPanel.cs
it seems wiered how this plugin doesnt have the bradley at all? any one have the file that i can use that displayes it?
https://www.flaticon.com/
Grab yourself an icon from there, then add this to your infopanel.json :
"BradleyEvent": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": false,
"Available": false,
"BackgroundColor": "0 0 0 0.4",
"Dock": "TopLeftDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Height": 0.8,
"Margin": "0 0.1 0.1 0.1",
"Order": 1,
"Url": "PUT_YOUR_CUSTOM_ICON_HERE",
"Width": 0.75
},
"Margin": "0 0 0 0.01",
"Order": 5,
"PanelSettings": {
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
},
"Width": 0.1
},
Grab yourself an icon from there, then add this to your infopanel.json :
"BradleyEvent": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": false,
"Available": false,
"BackgroundColor": "0 0 0 0.4",
"Dock": "TopLeftDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Height": 0.8,
"Margin": "0 0.1 0.1 0.1",
"Order": 1,
"Url": "PUT_YOUR_CUSTOM_ICON_HERE",
"Width": 0.75
},
"Margin": "0 0 0 0.01",
"Order": 5,
"PanelSettings": {
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
},
"Width": 0.1
},
Personally I feel that as the bradley is always patrolling and is static on the map there is no point in it,
Agreed, that's why I don't have it running on my panel :)
i have a modded server where people can call them in so its ideal for them to see when they are active also thank you very much for this
Merged post
i have put it in the file but it doesnt to make the icon go red when its active?
Merged post
i have put it in the file but it doesnt to make the icon go red when its active?
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
It should?
"InactiveColor": "1 1 1 0.1"
It should?
},
"BradleyEvent": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": true,
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Dock": "TopLeftDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Height": 0.8,
"Margin": "0 0.1 0.1 0.1",
"Order": 1,
"Url": "https://cdn0.iconfinder.com/data/icons/military/100/16-128.png",
"Width": 0.75
},
"Margin": "0 0 0 0.01",
"Order": 5,
"PanelSettings": {
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
},
"Width": 0.1
},
"BradleyEvent": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": true,
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Dock": "TopLeftDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Height": 0.8,
"Margin": "0 0.1 0.1 0.1",
"Order": 1,
"Url": "https://cdn0.iconfinder.com/data/icons/military/100/16-128.png",
"Width": 0.75
},
"Margin": "0 0 0 0.01",
"Order": 5,
"PanelSettings": {
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
},
"Width": 0.1
},
Meh, shows up red when active if I enable it on mine. ...
could it be todo with the image file? silly question
I doubt it ... Here. This is the one I was using :

Is it possible to get the bradley to show in the infopanel so it is red when it is on site?
I can't seem to get it to work, the bradley is on the map when i posted this, but the "code" don't work.
"BradleyEvent": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Autoload": true,
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Dock": "TopLeftDock",
"FadeOut": 0.0,
"Height": 0.95,
"Image": {
"AnchorX": "Left",
"AnchorY": "Bottom",
"Available": true,
"BackgroundColor": "0 0 0 0.4",
"Height": 0.8,
"Margin": "0 0.1 0.1 0.1",
"Order": 1,
"Url": "https://cdn0.iconfinder.com/data/icons/military/100/16-128.png",
"Width": 0.75
},
"Margin": "0 0 0 0.01",
"Order": 5,
"PanelSettings": {
"ActiveColor": "0.7 0.2 0.2 1",
"InactiveColor": "1 1 1 0.1"
},
"Width": 0.1
Anyone with knowledge how to get it to work again?
Locked automatically