Finding BAR widgets and accessibility improvements for colorblind players

Where to find community widgets, how to learn Lua for BAR modding, and accessibility ideas like colorblind-friendly team labels.

Tags: beyond all reason community widgets, lua examples, accessibility, colorblind support, health bars widget

Where to find BAR community widgets

The BAR community maintains a widget repository at github.com/badosu/bar-community-widgets. This hosts widgets like the large health bars display (gui_healthbars_big.lua) and other interface improvements. The repository makes finding specific widgets straightforward compared to searching through chat logs.

For learning to build your own widgets, the SpringRTS wiki at springrts.com/wiki/Lua:Main is the best starter resource. It contains working widget examples that show callbacks, configuration, and rendering patterns in actual code.

Accessibility for colorblind players

BAR team assignments use color coding across the interface. Players with color vision differences struggle when someone calls out "brown do XYZ" in chat and they cannot identify who that refers to. The solution involves adding a text column to the player list widget that shows the color name alongside the player.

Color naming algorithms already exist for this exact problem. The approach runs a color through a classification function and outputs the closest standard name. Integrating this into the player list widget would help all colorblind players participate in team communication without asking "which team am I."

This has seen discussion in BAR community spaces but has not shipped as a built-in feature yet. Community widget developers remain the place where this kind of accessibility improvement appears first.

Starting with widget examples

Reading existing widget source code teaches faster than any tutorial. The Spring wiki examples cover the basics: registering callbacks like widget:Initialize(), drawing with widget:DrawScreen(), and responding to game state changes. BAR community widgets then show how the patterns apply to a real game with hundreds of unit types.

Pick one simple widget, trace through every function call, and understand what hooks it into. The learning curve drops significantly once the pattern clicks.

Inclusive play for everyone

Accessibility improvements like colorblind-friendly labels make BAR more welcoming for every player. Creed of Champions values environments where nobody gets left out because of how the game displays information. The community actively discusses and supports features that reduce barriers to entry.

[Crd] Crd is the first really comfortable community I have been a part of. Everyone is nice and kind, the atmosphere is relaxed, and I am not getting yelled at for not being optimal.

Competitive play without the toxic baggage.