Thread Tools Display Modes
10-08-22, 06:08 PM   #1
Sharpedge
A Cyclonian
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 42
lockButton:SetText

By looking at the screen shot you can see the error for line 21...I fixed that with the code below. Also you can see the sword with Runes.
Code:
	-- Button to lock/unlock runehero
	local lockButton = CreateFrame( "CheckButton", "lockButton", rhOptions, "SettingsCheckBoxControlTemplate");
	lockButton.text = _G["lockButton".."Text"];
	lockButton:SetText("Lock RuneHero");
	lockButton:SetPoint("BOTTOMLEFT", titleString, 0, -40);
	lockButton:SetScript("OnClick", RuneHero_Lock );
	lockButton:SetChecked(true);
But upon applying this fix is does eliminate the errors and allows for the settings to show up in the Options Tab, but the Sword disappears.

https://imgur.com/a/uNmdEON


Is there something I'm overlooking?

Last edited by Sharpedge : 10-09-22 at 03:15 AM.
  Reply With Quote
10-09-22, 03:17 AM   #2
Sharpedge
A Cyclonian
 
Sharpedge's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2022
Posts: 42
Figured it out.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » lockButton:SetText

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off