File size: 1,313 Bytes
b6a38d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
DefineClass.BillboardEditor = {
__parents = { "GedApp" },
Title = "Billboard Editor",
AppId = "BillboardEditor",
InitialWidth = 1600,
InitialHeight = 900,
}
function BillboardEditor:Init(parent, context)
GedListPanel:new({
Id = "idBillboards",
Title = "Billboards",
Format = "<class>",
SelectionBind = "SelectedObject",
ItemActionContext = "Billboard",
}, self, "root")
XAction:new({
ActionId = "Bake",
ActionMenubar = "main",
ActionName = "Bake",
ActionTranslate = false,
OnAction = function(self, host, button)
host:Send("GedBakeBillboard")
end,
ActionContexts = { "Billboard" }
}, self)
XAction:new({
ActionId = "Spawn",
ActionMenubar = "main",
ActionName = "Spawn",
ActionTranslate = false,
OnAction = function(self, host, win)
host:Send("GedSpawnBillboard")
end,
ActionContexts = { "Billboard" }
}, self)
XAction:new({
ActionId = "Debug Billboards",
ActionMenubar = "main",
ActionName = "Debug Billboards",
ActionTranslate = false,
OnAction = function(self, host, win)
host:Send("GedDebugBillboards")
end,
}, self)
XAction:new({
ActionId = "Bake All",
ActionMenubar = "main",
ActionName = "Bake All",
ActionTranslate = false,
OnAction = function(self, host, win)
host:Send("GedBakeAllBillboards")
end,
}, self)
end |