Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Party and Raid Frames Role Fix - WOTLK #90

Open
Richyrich07 opened this issue Dec 21, 2022 · 2 comments
Open

Party and Raid Frames Role Fix - WOTLK #90

Richyrich07 opened this issue Dec 21, 2022 · 2 comments

Comments

@Richyrich07
Copy link

Hello, can you please fix the party and raid frames to show the roles of the players and please show who has sauteed as these do not show up

@hherrera99
Copy link

hherrera99 commented Mar 2, 2023

This is also still not showing up for party and if it could be added to the Raid module.

@CadoCat
Copy link
Contributor

CadoCat commented Jun 27, 2023

So this looks like an issue with the oUF code. For what ever reason it's not working as it should I was able to create a similar action by adding a function to set the co-ords for the texture.

function GetTexCoordsForRoleSmallCircle(role)
	if ( role == "TANK" ) then
		return 0, 19/64, 22/64, 41/64;
	elseif ( role == "HEALER" ) then
		return 20/64, 39/64, 1/64, 20/64;
	elseif ( role == "DAMAGER" ) then
		return 20/64, 39/64, 22/64, 41/64;
	else
		error("Unknown role: "..tostring(role));
	end
end

Then changing the local RoleIndicator to the following:

local RoleIndicator = Health:CreateTexture(nil, "OVERLAY")
	RoleIndicator:SetTexture([[Interface\LFGFrame\UI-LFG-ICON-PORTRAITROLES]])
	RoleIndicator:SetSize(16, 16)
	RoleIndicator:SetPoint("CENTER", Health, -20, 0)

local role = UnitGroupRolesAssigned("player")
	if(role == 'TANK' or role == 'HEALER' or role == 'DAMAGER') then
		RoleIndicator:SetTexCoord(GetTexCoordsForRoleSmallCircle(role))
		RoleIndicator:Show()
	else
		RoleIndicator:Hide()
	end

The only issues here is that it doesn't update when the role is changed.

@Hydra-Mods hopefully you can use something like this to flesh this function out.

Here is the LUA if anyone wants to test and build from it.
Player.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants