From 186e52b2225f57379698b932ea8e538055c63df8 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 14 May 2014 00:37:22 +0000 Subject: [PATCH] Add a header and a simple one-icon rotation display for generated scripts. These generated scripts are now functional directly within Ovale. However, they will generally need more work to split up the functions into the usual "shortcd/main/aoe/cd" icons for default scripts. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1437 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleSimulationCraft.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/OvaleSimulationCraft.lua b/OvaleSimulationCraft.lua index 8539001..593fd85 100644 --- a/OvaleSimulationCraft.lua +++ b/OvaleSimulationCraft.lua @@ -191,6 +191,13 @@ do if profile.default_pet then self:Append(script, "# pet=%s", profile.default_pet) end + + self:Append(script, "") + self:Append(script, "Include(ovale_items)") + self:Append(script, "Include(ovale_racials)") + self:Append(script, format("Include(ovale_%s_spells)", profile.class)) + self:Append(script, "") + if profile.actionList then for listName, actionList in pairs(profile.actionList) do self:ParseActionList(script, listName, actionList) @@ -198,6 +205,21 @@ do end self:Append(script, "") + if profile.spec then + self:Append(script, format("AddIcon mastery=%s help=main", profile.spec)) + else + self:Append(script, "AddIcon help=main") + end + self:Append(script, "{") + self:Indent() + if profile.actionList.precombat then + self:Append(script, format("if InCombat(no) %s()", self:FunctionName("precombat"))) + end + self:Append(script, format("%s()", self:FunctionName("default"))) + self:UnIndent() + self:Append(script, "}") + self:Append(script, "") + tsort(self.symbols) wipe(symbols) for _, v in ipairs(self.symbols) do -- 1.7.9.5