How to show XML frame with slash command - WoWInterface
Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-16-21, 07:13 AM   #1
A Murloc Raider
Join Date: Feb 2021
Posts: 6
How to show XML frame with slash command


I have an XML frame:

<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
    <Script file="TestFrame.lua"/>
    <Frame name="TestFrame" parent="UIParent" frameStrata="BACKGROUND" hidden="true" setAllPoints="true">
            <OnEvent function="Testframe_OnEvent"/>
	    <OnUpdate function="Testframe_OnUpdate"/>
and I want to show this frame by typing "/showtest" to the chat. I've tried in LUA this way but didn't work:

local myframe = TestFrame;
SLASH_SHOWTEST1 = "/showtest"
SlashCmdList["SHOWTEST"] = function(message, editbox)
any ideas who done something similar? or is it not possible to do it with an XML frame?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to show XML frame with slash command

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