Theme Element Library/DifficultyIcon

The DifficultyIcon is a simple graphic showing Difficulties from Beginner to Edit. With the advent of StepsDisplay, DifficultyIcon really doesn't have much use anymore. However, some StepMania 3.9 themes used it, and it still works in sm-ssc and StepMania 5, so it's a valid theming tool to learn.

Decorations
You'll want to add this to your  lua file:

The  lines are optional, but if you're going to include a DifficultyFrame, you might as well put them here. (See DifficultyFrame for implementation information.)

Metrics
The  lines are optional, but included here in case you're planning on using them.

Graphics
The heavy lifting is done by a Lua script in the  folder. This can either be called  or it can live in. The example assumes you're doing the latter, since the folder also includes  and   graphics you've made. (This is all theoretical; feel free to replace the filenames in the  calls if you have things set up differently.)

DifficultyFrame
Most 3.9 themes used a frame under the icon. While this is included in the Decorations section above, it's optional. In case you want to use it, though, here is how this setup works with the DifficultyIcons:

Graphics
Much like the DifficultyIcons, a folder is being used to hold the two frame graphics and a  file.

This assumes there are two files named  and   in the same directory.