- changed the custom bar creation code to name each bar as the highest-numbered bar +1. e.g. if a bar "MyCustomBar4" exists and the user creates a new bar, the new bar will be called MyCustomBar5 (even if 1-3 don't exist any more, just to avoid complications). This way, each custom bar gets a unique name and users can't stomp an old custom bar by creating a new one without changing the old one's name first

This commit is contained in:
Parnic
2009-04-05 19:24:08 +00:00
parent 56fc146f56
commit eb905a92b7
2 changed files with 26 additions and 1 deletions

View File

@ -600,7 +600,7 @@ StaticPopupDialogs["ICEHUD_RESET"] =
StaticPopupDialogs["ICEHUD_CUSTOM_BAR_CREATED"] =
{
text = "A custom bar has been created and can be configured through Module Settings => MyCustomBar. It is highly recommended that you change the bar name of this module ASAP because creating two custom bars with the same name is bad.",
text = "A custom bar has been created and can be configured through Module Settings => MyCustomBar. It is highly recommended that you change the bar name of this module so that it's easier to identify.",
button1 = OKAY,
timeout = 0,
whileDead = 1,