Cast bar and tooltips implemented. Constants file is now generated by python.