Changeset 611
Author: Pilus
(2012/01/25 22:33) 29 days ago
Receiving an area sound should no longer give an error when trying to print the GHI_Message Integrated the advanced item menu into the current system. Items can now be converted by pressing the button in the simple menu

local delayedSounds = {};local delayedSounds = {};GHI_Message("Area sound by "..(sender or "nil"));misc.GHI_Message("Area sound by "..(sender or "nil"));menuFrame.ForceLabel("consumed",item.IsConsumed());menuFrame.ForceLabel("consumed",item.IsConsumed());menuFrame.ForceLabel("cooldown",item.GetCooldown());menuFrame.ForceLabel("cooldown",item.GetCooldown());menuFrame.GetLabelFrame("dynamicActions").SetDynamicActionInstanceSet(set);menuFrame.GetLabelFrame("dynamicActions").SetDynamicActionInstanceSet(item.GetDynamicActionSet());item = GHI_ItemInfo({item.ConvertToAdvanced();authorName = UnitName("player"),authorGuid = UnitGUID("player"),guid = guidCreator.MakeGUID();});set = GHI_DynamicActionInstanceSet();title = GHI_CREATE_TITLE_ADV,class.New = function(itemInProgress)menuFrame:AnimatedShow();menuFrame.SetPage(1);menuFrame:Show();item = itemInProgress;class.Edit = function(guid)class.Edit = function(editItem)local editItem = itemList.GetItemInfo(guid);class.New = function(itemInProgress)GetMenu().New(itemInProgress);class.Edit = function(guid)class.Edit = function(itemInProgress)GetMenu().Edit(guid);GetMenu().Edit(itemInProgress);local class = GHClass("GHI_ItemInfo");local class = GHClass("GHI_ItemInfo");local guid, name, itemType, quality, white1, white2, comment, icon, useText, stackSize, version, authorName, isAdvanced;local editableByOthers,copyableByOthers,actionVersion,isAdvancedItem,consumed,dynamicActionSet;menuFrame = GHM_NewFrame(class,{menuFrame = GHM_NewFrame(class,{{{local f = _G[main:GetName().."_P"..main.currentPage-1];if f then f:Hide(); endmain.bb:SetText("< Back");main.bb:SetText("< Back");-- todo: stringFromTable, boolean, code, color, time, slots, textureFromTable, icon-- todo: more types. See the wiki on assembla