Skip to content

Instantly share code, notes, and snippets.

@Steveveepee
Created December 28, 2016 09:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steveveepee/de6c4543841d5a82c3cc588a763f483e to your computer and use it in GitHub Desktop.
Save Steveveepee/de6c4543841d5a82c3cc588a763f483e to your computer and use it in GitHub Desktop.
Experimental Labels config for DCS World v1.5.5 or better
-- Label parameters
-- Copyright (C) 2004, Eagle Dynamics.
AirOn = true
GroundOn = true
NavyOn = true
WeaponOn = true
labels_format_version = 1 -- labels format vesrion
-- Label max distance depends on graphics visibility range option value
-- For low E40000.0 m
-- For medium E50000.0 m
-- For high E80000.0 m
---------------------------------
-- Label text format symbols
-- %N - name of object
-- %D - distance to object
-- %P - pilot name
-- %n - new line
-- %% - symbol '%'
-- %x, where x is not NDPn% - symbol 'x'
-- %C - extended info for vehicle's and ship's weapon systems
------------------------------------------
-- Example
-- labelFormat[5000] = {"Name: %N%nDistance: %D%n Pilot: %P","LeftBottom",0,0}
-- up to 5km label is:
-- Name: Su-33
-- Distance: 30km
-- Pilot: Pilot1
-- alignment options
--"RightBottom"
--"LeftTop"
--"RightTop"
--"LeftCenter"
--"RightCenter"
--"CenterBottom"
--"CenterTop"
--"CenterCenter"
--"LeftBottom"
AirFormat = {
--[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
[1000] = {"","CenterBottom",1 , 1},
[5000] = {"%`","CenterBottom",1 , 1},
[10000] = {"%`","CenterBottom",1 , 0.5},
[20000] = {"%^","CenterBottom",1 , 0.3},
[30000] = {"%^","CenterBottom",1 , 0.1},
[35000] = {"","CenterBottom"},
}
GroundFormat = {
--[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
[3000] = {"","CenterBottom"},
[5000] = {"%`" ,"CenterCenter",4 ,0.2},
[10000] = {"%`" ,"CenterCenter",4 ,0.3},
[20000] = {"%`" ,"CenterCenter",4 ,0.1},
[25000] = {"","CenterBottom",1,1},
}
NavyFormat = {
--[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
[10000] = {"{%N%n%D" ,"CenterBottom"},
[20000] = {"~%n%D" ,"CenterBottom"},
[40000] = {"`" ,"CenterBottom"},
}
WeaponFormat = {
--[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
[5000] = {"|" ,"CenterBottom"},
[10000] = {"|" ,"CenterBottom"},
[20000] = {"|" ,"CenterBottom"},
}
--AirFormat = {
--[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
--[10] = {"" ,"LeftBottom",1 , 1},
--[5000] = {"}%N%n%D%n%P","LeftBottom",1 , 1},
--[10000] = {"}%N%n%D" ,"LeftBottom",1 , 1},
--[20000] = {"]%n%D" ,"LeftBottom",1 , 1},
--[30000] = {"'" ,"LeftBottom",1 , 1},
--}
--
--GroundFormat = {
----[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
--[5000] = {"{%N%n%D%n%P","LeftBottom"},
--[10000] = {"~%n%D" ,"LeftBottom"},
--[20000] = {"`" ,"LeftBottom"},
--}
--
--NavyFormat = {
----[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
--[10000] = {"{%N%n%D" ,"LeftBottom"},
--[20000] = {"~%n%D" ,"LeftBottom"},
--[40000] = {"`" ,"LeftBottom"},
--}
--
--WeaponFormat = {
----[distance] = {format , alignment,color_blending_k,opacity,shift_pixels_x,shift_in_pixels_y}
--[5000] = {"[%N%n%D" ,"LeftBottom"},
--[10000] = {"|%n%D" ,"LeftBottom"},
--[20000] = {"|" ,"LeftBottom"},
--}
-- Colors in {red, green, blue} format, volume from 0 up to 255
ColorAliesSide = {255, 0, 0}
ColorEnemiesSide = {0, 0, 255}
ColorUnknown = {50,50,50} -- will be blend at distance with coalition color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment