void setText(RewardButton button) { if (button == null) { // Debug.Log("SetText blank\n"); foreach (MyText t in verbose_label.moretext) { t.setText(""); } } else { // Debug.Log("Setting text for " + button.game_event.reward_trigger.condition + "\n"); verbose_label.getText(LabelName.Name).setText(GetText.getName(button.game_event.reward_trigger.getReward().reward_type)); string[] req = new string[2]; req[0] = button.game_event.reward_trigger.number.ToString(); req[1] = button.game_event.reward_trigger.getReward().current_number.ToString(); string requirement = Show.FixText(GetText.getLabel(button.game_event.reward_trigger.getReward().reward_type), req); if (button.game_event.reward_trigger.getReward().unlocked) { requirement += " YOU ALREADY UNLOCKED THIS!"; } verbose_label.getText(LabelName.Requirement).setText(requirement); verbose_label.getText(LabelName.Reward).setText(GetText.getReward(button.game_event.reward_trigger.getReward().reward_type)); } }