Currently, the only way to remove an icon state is to create a New() icon and then Insert() all but the state(s) that you don't want. This doesn't seem very intuitive.
icon.AddBlank(icon_state="") - for lack of a better name - would add a masked/empty icon state to an icon as the icon_state specified. Currently the only way to do this is to either import an existing icon from the rsc (one that already has just single blank state - problematic for dmb-only projects) or to import any icon state and then mask it out using DrawBox() - not a very efficient solution.
As an alternative, icon.Insert() could take null as an argument. e.g. icon.Insert(null,"")
ID:1319737
![]() Jul 10 2013, 12:11 am
|
|||||||
| |||||||
In the meantime, here's some stuff I've put together with help of some others as well: