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

Remove/fix channel list code #18

Open
spiralofhope opened this issue Aug 19, 2018 · 0 comments
Open

Remove/fix channel list code #18

spiralofhope opened this issue Aug 19, 2018 · 0 comments

Comments

@spiralofhope
Copy link

spiralofhope commented Aug 19, 2018

In tekticles.lua lines 90-94, there is some broken code:

	for i=1,MAX_CHANNEL_BUTTONS do
		local f = _G["ChannelButton"..i.."Text"]
		f:SetFontObject(GameFontNormalSmallLeft)
		-- function f:SetFont(...) error("Attempt to set font on ChannelButton"..i) end
	end

MAX_CHANNEL_BUTTONS can be replaced with GetNumDisplayChannels() to fix one error.

	for i=1,GetNumDisplayChannels() do
		local f = _G["ChannelButton"..i.."Text"]
		f:SetFontObject(GameFontNormalSmallLeft)
		-- function f:SetFont(...) error("Attempt to set font on ChannelButton"..i) end
	end

However, I still get an error with f. Commenting-out this block of code resolves that and doesn't seem to remove any functionality.

@spiralofhope spiralofhope mentioned this issue Jul 16, 2019
spiralofhope added a commit to spiralofhope/tekticles that referenced this issue Oct 5, 2020
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

1 participant