[Addon] How to make warnings appear in addon panel

Some addons I’ve seen show warnings explaining some problems you might encounter before usage. For example TexTools has this one


How can I achieve this same effect?

it’s a label with a simple condition

if (x==True) and (y==""):
      layout.label(text="there's something wrong", icon="ERROR")
1 Like

Aaah yes that was exactly it. Thanks a lot I couldn’t find it!!