--------------------------------------------- -- CharCreateRaceButton script functions --------------------------------------------- function CharCreateRaceButton_OnEnter(self) local raceData = C_CharacterCreation.GetRaceDataByID(self.raceID); if (raceData.isAlliedRace) then local hasExpansion, hasAchievement = C_CharacterCreation.GetAlliedRaceCreationRequirements(self.raceID); CharacterCreateTooltip:SetOwner(self, "ANCHOR_RIGHT", 8, -5); CharacterCreateTooltip:SetText(raceData.name, 1, 1, 1, 1, true); if (not hasExpansion) then CharacterCreateTooltip:AddLine(CHARACTER_CREATION_REQUIREMENTS_NEED_8_0, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, 1, true); end if (not hasAchievement) then CharacterCreateTooltip:AddLine(CHARACTER_CREATION_REQUIREMENTS_NEED_ACHIEVEMENT, RED_FONT_COLOR.r, RED_FONT_COLOR.g, RED_FONT_COLOR.b, 1, true); end end end function CharCreateRaceButton_OnLeave(self) CharacterCreateTooltip:Hide(); end finalizeRequirements:AddRequirement(FINALIZE_REQ_ALLIED_RACE_EXPANSION, CHARACTER_CREATION_REQUIREMENTS_NEED_8_0); finalizeRequirements:AddRequirement(FINALIZE_REQ_ALLIED_RACE_ACHIEVEMENT, CHARACTER_CREATION_REQUIREMENTS_NEED_ACHIEVEMENT);

Get Wowhead Premium

As little as less than $1 a month to enjoy an ad-free experience, unlock premium features, and support the site!