Skip to content

Instantly share code, notes, and snippets.

@L-e-x-o-n
L-e-x-o-n / cmd_improved_area_reclaim.lua
Last active May 4, 2025 09:23
Easier and smarter area unit reclaim orders, priority system by team and unitdef
function widget:GetInfo()
return {
name = "Improved unit area reclaim",
desc = "Easier and smarter area unit reclaim orders, priority system by team and unitdef",
author = "Lexon",
date = "17.07.2022",
version = 1.1,
license = "GNU GPL, v2 or later",
layer = 10,
enabled = true -- loaded by default?
@L-e-x-o-n
L-e-x-o-n / gfx_commblast_range_gl4.lua
Created June 24, 2023 19:28
Draws the spherical commblast range onto the ground updated for comupdate
function widget:GetInfo()
return {
name = "Commblast Range GL4",
desc = "Draws the spherical commblast range onto the ground",
author = "Beherith", --Updated for commander update by Lexon
date = "2022.08.27",
license = "Lua code: GNU GPL, v2 or later, Shader GLSL code: (c) Beherith ([email protected])",
layer = -1,
enabled = true,
}
@L-e-x-o-n
L-e-x-o-n / cmd_prioritise.lua
Last active June 11, 2023 19:39
On action 'prioritise' nearby constructors will prioritise assisting or repairing the selected units
function widget:GetInfo()
return {
name = "Prioritise",
desc = "On action 'prioritise' nearby constructors will prioritise assisting or repairing the selected units",
author = "Lexon",
date = "05.05.2023",
license = "GNU GPL, v2 or later",
layer = 10,
enabled = true
}
function widget:GetInfo()
return {
name = "Onoff for Hound and trajectory",
desc = "onoff action will now work with units affected by the cmd_onoffdesc.lua",
author = "Lexon",
date = "19.08.2022",
license = "GNU GPL, v2 or later",
layer = 0,
enabled = true, --enabled by default
}
@L-e-x-o-n
L-e-x-o-n / gui_converter_usage.lua
Created August 10, 2022 12:04
Adds an UI element which shows how many of your energy converters are active, their energy consumption and metal production.
function widget:GetInfo()
return {
name = "Converter Usage",
desc = "Shows the % of converters that are in use, their energy consumption and metal production",
author = "Lexon",
date = "05.08.2022",
layer = 0,
enabled = true -- loaded by default?
}
end
@L-e-x-o-n
L-e-x-o-n / reclaim_field_highlight.lua
Last active July 3, 2023 20:07
Reclaim field highlight widget from ZK now in BAR. Makes it easier and faster to see reclaim fields and their sizes on the map map.
function widget:GetInfo()
return {
name = "Reclaim Field Highlight",
desc = "Highlights clusters of reclaimable material",
author = "ivand, refactored by esainane, edited for BAR by Lexon",
date = "2022",
license = "public",
layer = 1000,
enabled = true -- loaded by default?