- Joined
- Mar 27, 2019
- Messages
- 56
Hi there,
I created my UI in the Reforged UI Designer and exported the UI to Lua. Then I pasted it in the Map Custom Script Code only to find out it doesn't show up, the JASS version of that UI doesnt have that Problem at all, do I need to call the UI somehow?
Here is the snippet:
The JASS UI works fine:
Any advice on how to fix the Lua UI?
I created my UI in the Reforged UI Designer and exported the UI to Lua. Then I pasted it in the Map Custom Script Code only to find out it doesn't show up, the JASS version of that UI doesnt have that Problem at all, do I need to call the UI somehow?
Here is the snippet:
Lua:
AutoSendDisplay = nil
BackdropAutoSendDisplay = nil
TriggerAutoSendDisplay = nil
SelectBarrack = nil
BackdropSelectBarrack = nil
TriggerSelectBarrack = nil
SelectHeadquarter = nil
BackdropSelectHeadquarter = nil
TriggerSelectHeadquarter = nil
SelectBuilder = nil
BackdropSelectBuilder = nil
TriggerSelectBuilder = nil
AutoSendToggle = nil
BackdropAutoSendToggle = nil
TriggerAutoSendToggle = nil
AutoSendType = nil
BackdropAutoSendType = nil
TriggerAutoSendType = nil
AutoSendIncrease = nil
BackdropAutoSendIncrease = nil
TriggerAutoSendIncrease = nil
AutoSendDecrease = nil
BackdropAutoSendDecrease = nil
TriggerAutoSendDecrease = nil
AutoSendToggleTooltip = nil
TriggerAutoSendToggleTooltip = nil
AutoSendCount = nil
BackdropAutoSendCount = nil
TriggerAutoSendCount = nil
AutoSendIncreaseTooltip = nil
TriggerAutoSendIncreaseTooltip = nil
AutoSendDecreaseTooltip = nil
TriggerAutoSendDecreaseTooltip = nil
AutoSendTypeTooltip = nil
TriggerAutoSendTypeTooltip = nil
REFORGEDUIMAKER = {}
REFORGEDUIMAKER.AutoSendDisplayFunc = function()
BlzFrameSetEnable(AutoSendDisplay, false)
BlzFrameSetEnable(AutoSendDisplay, true)
end
REFORGEDUIMAKER.SelectBarrackFunc = function()
BlzFrameSetEnable(SelectBarrack, false)
BlzFrameSetEnable(SelectBarrack, true)
end
REFORGEDUIMAKER.SelectHeadquarterFunc = function()
BlzFrameSetEnable(SelectHeadquarter, false)
BlzFrameSetEnable(SelectHeadquarter, true)
end
REFORGEDUIMAKER.SelectBuilderFunc = function()
BlzFrameSetEnable(SelectBuilder, false)
BlzFrameSetEnable(SelectBuilder, true)
end
REFORGEDUIMAKER.AutoSendToggleFunc = function()
BlzFrameSetEnable(AutoSendToggle, false)
BlzFrameSetEnable(AutoSendToggle, true)
end
REFORGEDUIMAKER.AutoSendTypeFunc = function()
BlzFrameSetEnable(AutoSendType, false)
BlzFrameSetEnable(AutoSendType, true)
end
REFORGEDUIMAKER.AutoSendIncreaseFunc = function()
BlzFrameSetEnable(AutoSendIncrease, false)
BlzFrameSetEnable(AutoSendIncrease, true)
end
REFORGEDUIMAKER.AutoSendDecreaseFunc = function()
BlzFrameSetEnable(AutoSendDecrease, false)
BlzFrameSetEnable(AutoSendDecrease, true)
end
REFORGEDUIMAKER.AutoSendCountFunc = function()
BlzFrameSetEnable(AutoSendCount, false)
BlzFrameSetEnable(AutoSendCount, true)
end
REFORGEDUIMAKER.Initialize = function()
AutoSendDisplay = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
BlzFrameSetAbsPoint(AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.134350, 0.208000)
BlzFrameSetAbsPoint(AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, 0.172350, 0.170000)
BackdropAutoSendDisplay = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendDisplay", AutoSendDisplay, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendDisplay, AutoSendDisplay)
BlzFrameSetTexture(BackdropAutoSendDisplay, "Custom\\BTNBorder.tga", 0, true)
TriggerAutoSendDisplay = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendDisplay, AutoSendDisplay, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendDisplay, REFORGEDUIMAKER.AutoSendDisplayFunc)
SelectBarrack = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
BlzFrameSetAbsPoint(SelectBarrack, FRAMEPOINT_TOPLEFT, 0.0470600, 0.208490)
BlzFrameSetAbsPoint(SelectBarrack, FRAMEPOINT_BOTTOMRIGHT, 0.0850600, 0.170490)
BackdropSelectBarrack = BlzCreateFrameByType("BACKDROP", "BackdropSelectBarrack", SelectBarrack, "", 0)
BlzFrameSetAllPoints(BackdropSelectBarrack, SelectBarrack)
BlzFrameSetTexture(BackdropSelectBarrack, "ReplaceableTextures\\CommandButtons\\BTNHumanBarracks.blp", 0, true)
TriggerSelectBarrack = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerSelectBarrack, SelectBarrack, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerSelectBarrack, REFORGEDUIMAKER.SelectBarrackFunc)
SelectHeadquarter = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
BlzFrameSetAbsPoint(SelectHeadquarter, FRAMEPOINT_TOPLEFT, 0.0907500, 0.208000)
BlzFrameSetAbsPoint(SelectHeadquarter, FRAMEPOINT_BOTTOMRIGHT, 0.128750, 0.170000)
BackdropSelectHeadquarter = BlzCreateFrameByType("BACKDROP", "BackdropSelectHeadquarter", SelectHeadquarter, "", 0)
BlzFrameSetAllPoints(BackdropSelectHeadquarter, SelectHeadquarter)
BlzFrameSetTexture(BackdropSelectHeadquarter, "ReplaceableTextures\\CommandButtons\\BTNTownHall.blp", 0, true)
TriggerSelectHeadquarter = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerSelectHeadquarter, SelectHeadquarter, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerSelectHeadquarter, REFORGEDUIMAKER.SelectHeadquarterFunc)
SelectBuilder = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
BlzFrameSetAbsPoint(SelectBuilder, FRAMEPOINT_TOPLEFT, 0.00355000, 0.208000)
BlzFrameSetAbsPoint(SelectBuilder, FRAMEPOINT_BOTTOMRIGHT, 0.0415500, 0.170000)
BackdropSelectBuilder = BlzCreateFrameByType("BACKDROP", "BackdropSelectBuilder", SelectBuilder, "", 0)
BlzFrameSetAllPoints(BackdropSelectBuilder, SelectBuilder)
BlzFrameSetTexture(BackdropSelectBuilder, "ReplaceableTextures\\CommandButtons\\BTNAcolyte.blp", 0, true)
TriggerSelectBuilder = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerSelectBuilder, SelectBuilder, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerSelectBuilder, REFORGEDUIMAKER.SelectBuilderFunc)
AutoSendToggle = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
BlzFrameSetPoint(AutoSendToggle, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.00040000, -0.00040000)
BlzFrameSetPoint(AutoSendToggle, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.019100, 0.019100)
BackdropAutoSendToggle = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendToggle", AutoSendToggle, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendToggle, AutoSendToggle)
BlzFrameSetTexture(BackdropAutoSendToggle, "Custom\\BTNInactive.tga", 0, true)
TriggerAutoSendToggle = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendToggle, AutoSendToggle, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendToggle, REFORGEDUIMAKER.AutoSendToggleFunc)
AutoSendType = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
BlzFrameSetPoint(AutoSendType, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.019150, -0.00040000)
BlzFrameSetPoint(AutoSendType, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.00035000, 0.019100)
BackdropAutoSendType = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendType", AutoSendType, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendType, AutoSendType)
BlzFrameSetTexture(BackdropAutoSendType, "ReplaceableTextures\\CommandButtons\\BTNPeasant.blp", 0, true)
TriggerAutoSendType = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendType, AutoSendType, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendType, REFORGEDUIMAKER.AutoSendTypeFunc)
AutoSendIncrease = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
BlzFrameSetPoint(AutoSendIncrease, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.00040000, -0.019175)
BlzFrameSetPoint(AutoSendIncrease, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.019100, 0.00032500)
BackdropAutoSendIncrease = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendIncrease", AutoSendIncrease, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendIncrease, AutoSendIncrease)
BlzFrameSetTexture(BackdropAutoSendIncrease, "Custom\\BTNIncrease.tga", 0, true)
TriggerAutoSendIncrease = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendIncrease, AutoSendIncrease, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendIncrease, REFORGEDUIMAKER.AutoSendIncreaseFunc)
AutoSendDecrease = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
BlzFrameSetPoint(AutoSendDecrease, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.019150, -0.019175)
BlzFrameSetPoint(AutoSendDecrease, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.00035000, 0.00032500)
BackdropAutoSendDecrease = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendDecrease", AutoSendDecrease, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendDecrease, AutoSendDecrease)
BlzFrameSetTexture(BackdropAutoSendDecrease, "Custom\\BTNDecrease.tga", 0, true)
TriggerAutoSendDecrease = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendDecrease, AutoSendDecrease, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendDecrease, REFORGEDUIMAKER.AutoSendDecreaseFunc)
AutoSendToggleTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendToggle, "", 0)
BlzFrameSetAbsPoint(AutoSendToggleTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
BlzFrameSetAbsPoint(AutoSendToggleTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
BlzFrameSetText(AutoSendToggleTooltip, "|cffffff00Enable / Disable\n\nUnit Auto Sending|r")
BlzFrameSetEnable(AutoSendToggleTooltip, false)
BlzFrameSetScale(AutoSendToggleTooltip, 0.572)
BlzFrameSetTextAlignment(AutoSendToggleTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
BlzFrameSetTooltip(AutoSendToggle, AutoSendToggleTooltip)
AutoSendCount = BlzCreateFrame("IconButtonTemplate", AutoSendType, 0, 0)
BlzFrameSetPoint(AutoSendCount, FRAMEPOINT_TOPLEFT, AutoSendType, FRAMEPOINT_TOPLEFT, 0.0000, 0.0000)
BlzFrameSetPoint(AutoSendCount, FRAMEPOINT_BOTTOMRIGHT, AutoSendType, FRAMEPOINT_BOTTOMRIGHT, 0.0000, 0.0000)
BackdropAutoSendCount = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendCount", AutoSendCount, "", 0)
BlzFrameSetAllPoints(BackdropAutoSendCount, AutoSendCount)
BlzFrameSetTexture(BackdropAutoSendCount, "Custom\\BTNIncrease_01.tga", 0, true)
TriggerAutoSendCount = CreateTrigger()
BlzTriggerRegisterFrameEvent(TriggerAutoSendCount, AutoSendCount, FRAMEEVENT_CONTROL_CLICK)
TriggerAddAction(TriggerAutoSendCount, REFORGEDUIMAKER.AutoSendCountFunc)
AutoSendIncreaseTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendIncrease, "", 0)
BlzFrameSetAbsPoint(AutoSendIncreaseTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
BlzFrameSetAbsPoint(AutoSendIncreaseTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
BlzFrameSetText(AutoSendIncreaseTooltip, "|cffffff00Increase Amount\n\nFor Auto Sending|r")
BlzFrameSetEnable(AutoSendIncreaseTooltip, false)
BlzFrameSetScale(AutoSendIncreaseTooltip, 0.572)
BlzFrameSetTextAlignment(AutoSendIncreaseTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
BlzFrameSetTooltip(AutoSendIncrease, AutoSendIncreaseTooltip)
AutoSendDecreaseTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendDecrease, "", 0)
BlzFrameSetAbsPoint(AutoSendDecreaseTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
BlzFrameSetAbsPoint(AutoSendDecreaseTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
BlzFrameSetText(AutoSendDecreaseTooltip, "|cffffff00Increase Amount\n\nFor Auto Sending|r")
BlzFrameSetEnable(AutoSendDecreaseTooltip, false)
BlzFrameSetScale(AutoSendDecreaseTooltip, 0.572)
BlzFrameSetTextAlignment(AutoSendDecreaseTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
BlzFrameSetTooltip(AutoSendDecrease, AutoSendDecreaseTooltip)
AutoSendTypeTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendCount, "", 0)
BlzFrameSetAbsPoint(AutoSendTypeTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
BlzFrameSetAbsPoint(AutoSendTypeTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
BlzFrameSetText(AutoSendTypeTooltip, "|cffffff00Change Unit Type\n\nTo Last Sent Unit|r")
BlzFrameSetEnable(AutoSendTypeTooltip, false)
BlzFrameSetScale(AutoSendTypeTooltip, 0.572)
BlzFrameSetTextAlignment(AutoSendTypeTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
BlzFrameSetTooltip(AutoSendCount, AutoSendTypeTooltip)
end
The JASS UI works fine:
JASS:
globals
framehandle AutoSendDisplay = null
framehandle BackdropAutoSendDisplay = null
trigger TriggerAutoSendDisplay = null
framehandle SelectBarrack = null
framehandle BackdropSelectBarrack = null
trigger TriggerSelectBarrack = null
framehandle SelectHeadquarter = null
framehandle BackdropSelectHeadquarter = null
trigger TriggerSelectHeadquarter = null
framehandle SelectBuilder = null
framehandle BackdropSelectBuilder = null
trigger TriggerSelectBuilder = null
framehandle AutoSendToggle = null
framehandle BackdropAutoSendToggle = null
trigger TriggerAutoSendToggle = null
framehandle AutoSendType = null
framehandle BackdropAutoSendType = null
trigger TriggerAutoSendType = null
framehandle AutoSendIncrease = null
framehandle BackdropAutoSendIncrease = null
trigger TriggerAutoSendIncrease = null
framehandle AutoSendDecrease = null
framehandle BackdropAutoSendDecrease = null
trigger TriggerAutoSendDecrease = null
framehandle AutoSendToggleTooltip = null
framehandle TooltipAutoSendToggleTooltip = null
trigger TriggerAutoSendToggleTooltip = null
framehandle AutoSendCount = null
framehandle BackdropAutoSendCount = null
trigger TriggerAutoSendCount = null
framehandle AutoSendIncreaseTooltip = null
framehandle TooltipAutoSendIncreaseTooltip = null
trigger TriggerAutoSendIncreaseTooltip = null
framehandle AutoSendDecreaseTooltip = null
framehandle TooltipAutoSendDecreaseTooltip = null
trigger TriggerAutoSendDecreaseTooltip = null
framehandle AutoSendTypeTooltip = null
framehandle TooltipAutoSendTypeTooltip = null
trigger TriggerAutoSendTypeTooltip = null
endglobals
library REFORGEDUIMAKER initializer init
function AutoSendDisplayFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendDisplay, false)
call BlzFrameSetEnable(AutoSendDisplay, true)
endfunction
function SelectBarrackFunc takes nothing returns nothing
call BlzFrameSetEnable(SelectBarrack, false)
call BlzFrameSetEnable(SelectBarrack, true)
endfunction
function SelectHeadquarterFunc takes nothing returns nothing
call BlzFrameSetEnable(SelectHeadquarter, false)
call BlzFrameSetEnable(SelectHeadquarter, true)
endfunction
function SelectBuilderFunc takes nothing returns nothing
call BlzFrameSetEnable(SelectBuilder, false)
call BlzFrameSetEnable(SelectBuilder, true)
endfunction
function AutoSendToggleFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendToggle, false)
call BlzFrameSetEnable(AutoSendToggle, true)
endfunction
function AutoSendTypeFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendType, false)
call BlzFrameSetEnable(AutoSendType, true)
endfunction
function AutoSendIncreaseFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendIncrease, false)
call BlzFrameSetEnable(AutoSendIncrease, true)
endfunction
function AutoSendDecreaseFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendDecrease, false)
call BlzFrameSetEnable(AutoSendDecrease, true)
endfunction
function AutoSendCountFunc takes nothing returns nothing
call BlzFrameSetEnable(AutoSendCount, false)
call BlzFrameSetEnable(AutoSendCount, true)
endfunction
private function init takes nothing returns nothing
set AutoSendDisplay = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
call BlzFrameSetAbsPoint(AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.134350, 0.208000)
call BlzFrameSetAbsPoint(AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, 0.172350, 0.170000)
set BackdropAutoSendDisplay = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendDisplay", AutoSendDisplay, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendDisplay, AutoSendDisplay)
call BlzFrameSetTexture(BackdropAutoSendDisplay, "Custom\\BTNBorder.tga", 0, true)
set TriggerAutoSendDisplay = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendDisplay, AutoSendDisplay, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendDisplay, function AutoSendDisplayFunc)
set SelectBarrack = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
call BlzFrameSetAbsPoint(SelectBarrack, FRAMEPOINT_TOPLEFT, 0.0470600, 0.208490)
call BlzFrameSetAbsPoint(SelectBarrack, FRAMEPOINT_BOTTOMRIGHT, 0.0850600, 0.170490)
set BackdropSelectBarrack = BlzCreateFrameByType("BACKDROP", "BackdropSelectBarrack", SelectBarrack, "", 0)
call BlzFrameSetAllPoints(BackdropSelectBarrack, SelectBarrack)
call BlzFrameSetTexture(BackdropSelectBarrack, "ReplaceableTextures\\CommandButtons\\BTNHumanBarracks.blp", 0, true)
set TriggerSelectBarrack = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerSelectBarrack, SelectBarrack, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerSelectBarrack, function SelectBarrackFunc)
set SelectHeadquarter = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
call BlzFrameSetAbsPoint(SelectHeadquarter, FRAMEPOINT_TOPLEFT, 0.0907500, 0.208000)
call BlzFrameSetAbsPoint(SelectHeadquarter, FRAMEPOINT_BOTTOMRIGHT, 0.128750, 0.170000)
set BackdropSelectHeadquarter = BlzCreateFrameByType("BACKDROP", "BackdropSelectHeadquarter", SelectHeadquarter, "", 0)
call BlzFrameSetAllPoints(BackdropSelectHeadquarter, SelectHeadquarter)
call BlzFrameSetTexture(BackdropSelectHeadquarter, "ReplaceableTextures\\CommandButtons\\BTNTownHall.blp", 0, true)
set TriggerSelectHeadquarter = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerSelectHeadquarter, SelectHeadquarter, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerSelectHeadquarter, function SelectHeadquarterFunc)
set SelectBuilder = BlzCreateFrame("IconButtonTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 0, 0)
call BlzFrameSetAbsPoint(SelectBuilder, FRAMEPOINT_TOPLEFT, 0.00355000, 0.208000)
call BlzFrameSetAbsPoint(SelectBuilder, FRAMEPOINT_BOTTOMRIGHT, 0.0415500, 0.170000)
set BackdropSelectBuilder = BlzCreateFrameByType("BACKDROP", "BackdropSelectBuilder", SelectBuilder, "", 0)
call BlzFrameSetAllPoints(BackdropSelectBuilder, SelectBuilder)
call BlzFrameSetTexture(BackdropSelectBuilder, "ReplaceableTextures\\CommandButtons\\BTNAcolyte.blp", 0, true)
set TriggerSelectBuilder = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerSelectBuilder, SelectBuilder, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerSelectBuilder, function SelectBuilderFunc)
set AutoSendToggle = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
call BlzFrameSetPoint(AutoSendToggle, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.00040000, -0.00040000)
call BlzFrameSetPoint(AutoSendToggle, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.019100, 0.019100)
set BackdropAutoSendToggle = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendToggle", AutoSendToggle, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendToggle, AutoSendToggle)
call BlzFrameSetTexture(BackdropAutoSendToggle, "Custom\\BTNInactive.tga", 0, true)
set TriggerAutoSendToggle = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendToggle, AutoSendToggle, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendToggle, function AutoSendToggleFunc)
set AutoSendType = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
call BlzFrameSetPoint(AutoSendType, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.019150, -0.00040000)
call BlzFrameSetPoint(AutoSendType, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.00035000, 0.019100)
set BackdropAutoSendType = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendType", AutoSendType, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendType, AutoSendType)
call BlzFrameSetTexture(BackdropAutoSendType, "ReplaceableTextures\\CommandButtons\\BTNPeasant.blp", 0, true)
set TriggerAutoSendType = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendType, AutoSendType, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendType, function AutoSendTypeFunc)
set AutoSendIncrease = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
call BlzFrameSetPoint(AutoSendIncrease, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.00040000, -0.019175)
call BlzFrameSetPoint(AutoSendIncrease, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.019100, 0.00032500)
set BackdropAutoSendIncrease = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendIncrease", AutoSendIncrease, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendIncrease, AutoSendIncrease)
call BlzFrameSetTexture(BackdropAutoSendIncrease, "Custom\\BTNIncrease.tga", 0, true)
set TriggerAutoSendIncrease = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendIncrease, AutoSendIncrease, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendIncrease, function AutoSendIncreaseFunc)
set AutoSendDecrease = BlzCreateFrame("IconButtonTemplate", AutoSendDisplay, 0, 0)
call BlzFrameSetPoint(AutoSendDecrease, FRAMEPOINT_TOPLEFT, AutoSendDisplay, FRAMEPOINT_TOPLEFT, 0.019150, -0.019175)
call BlzFrameSetPoint(AutoSendDecrease, FRAMEPOINT_BOTTOMRIGHT, AutoSendDisplay, FRAMEPOINT_BOTTOMRIGHT, -0.00035000, 0.00032500)
set BackdropAutoSendDecrease = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendDecrease", AutoSendDecrease, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendDecrease, AutoSendDecrease)
call BlzFrameSetTexture(BackdropAutoSendDecrease, "Custom\\BTNDecrease.tga", 0, true)
set TriggerAutoSendDecrease = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendDecrease, AutoSendDecrease, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendDecrease, function AutoSendDecreaseFunc)
set AutoSendToggleTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendToggle, "", 0)
call BlzFrameSetAbsPoint(AutoSendToggleTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
call BlzFrameSetAbsPoint(AutoSendToggleTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
call BlzFrameSetText(AutoSendToggleTooltip, "|cffffff00Enable / Disable\n\nUnit Auto Sending|r")
call BlzFrameSetEnable(AutoSendToggleTooltip, false)
call BlzFrameSetScale(AutoSendToggleTooltip, 0.572)
call BlzFrameSetTextAlignment(AutoSendToggleTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
call BlzFrameSetTooltip(AutoSendToggle, AutoSendToggleTooltip)
set AutoSendCount = BlzCreateFrame("IconButtonTemplate", AutoSendType, 0, 0)
call BlzFrameSetPoint(AutoSendCount, FRAMEPOINT_TOPLEFT, AutoSendType, FRAMEPOINT_TOPLEFT, 0.0000, 0.0000)
call BlzFrameSetPoint(AutoSendCount, FRAMEPOINT_BOTTOMRIGHT, AutoSendType, FRAMEPOINT_BOTTOMRIGHT, 0.0000, 0.0000)
set BackdropAutoSendCount = BlzCreateFrameByType("BACKDROP", "BackdropAutoSendCount", AutoSendCount, "", 0)
call BlzFrameSetAllPoints(BackdropAutoSendCount, AutoSendCount)
call BlzFrameSetTexture(BackdropAutoSendCount, "Custom\\BTNIncrease_01.tga", 0, true)
set TriggerAutoSendCount = CreateTrigger()
call BlzTriggerRegisterFrameEvent(TriggerAutoSendCount, AutoSendCount, FRAMEEVENT_CONTROL_CLICK)
call TriggerAddAction(TriggerAutoSendCount, function AutoSendCountFunc)
set AutoSendIncreaseTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendIncrease, "", 0)
call BlzFrameSetAbsPoint(AutoSendIncreaseTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
call BlzFrameSetAbsPoint(AutoSendIncreaseTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
call BlzFrameSetText(AutoSendIncreaseTooltip, "|cffffff00Increase Amount\n\nFor Auto Sending|r")
call BlzFrameSetEnable(AutoSendIncreaseTooltip, false)
call BlzFrameSetScale(AutoSendIncreaseTooltip, 0.572)
call BlzFrameSetTextAlignment(AutoSendIncreaseTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
call BlzFrameSetTooltip(AutoSendIncrease, AutoSendIncreaseTooltip)
set AutoSendDecreaseTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendDecrease, "", 0)
call BlzFrameSetAbsPoint(AutoSendDecreaseTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
call BlzFrameSetAbsPoint(AutoSendDecreaseTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
call BlzFrameSetText(AutoSendDecreaseTooltip, "|cffffff00Increase Amount\n\nFor Auto Sending|r")
call BlzFrameSetEnable(AutoSendDecreaseTooltip, false)
call BlzFrameSetScale(AutoSendDecreaseTooltip, 0.572)
call BlzFrameSetTextAlignment(AutoSendDecreaseTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
call BlzFrameSetTooltip(AutoSendDecrease, AutoSendDecreaseTooltip)
set AutoSendTypeTooltip = BlzCreateFrameByType("TEXT", "name", AutoSendCount, "", 0)
call BlzFrameSetAbsPoint(AutoSendTypeTooltip, FRAMEPOINT_TOPLEFT, 0.120500, 0.240000)
call BlzFrameSetAbsPoint(AutoSendTypeTooltip, FRAMEPOINT_BOTTOMRIGHT, 0.188000, 0.207500)
call BlzFrameSetText(AutoSendTypeTooltip, "|cffffff00Change Unit Type\n\nTo Last Sent Unit|r")
call BlzFrameSetEnable(AutoSendTypeTooltip, false)
call BlzFrameSetScale(AutoSendTypeTooltip, 0.572)
call BlzFrameSetTextAlignment(AutoSendTypeTooltip, TEXT_JUSTIFY_CENTER, TEXT_JUSTIFY_MIDDLE)
call BlzFrameSetTooltip(AutoSendCount, AutoSendTypeTooltip)
endfunction
endlibrary
Any advice on how to fix the Lua UI?