def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def getText(self, callingWindow, itmContext, mainItem):
        return "Set {} as Damage Pattern".format(itmContext if itmContext is not None else "Item")