Files
OpenRA/interpreters/estrelashell.lua
2011-04-07 23:41:07 +02:00

21 lines
651 B
Lua

return {
name = "Estrela Shell",
description = "Estrela Lua Shell",
api = {"wxwidgets","baselib"},
frun = function(self,wfilename)
-- set shellbox for focus
local bottomnotebook = ide.frame.vsplitter.splitter.bottomnotebook
bottomnotebook:SetSelection(1)
if ide.frame.menuBar:IsChecked(ID_CLEAROUTPUT) then
local shellLog = bottomnotebook.shellbox.output
shellLog:SetReadOnly(false)
shellLog:ClearAll()
shellLog:SetReadOnly(true)
end
ShellExecuteCode(nil,wfilename)
end,
fprojdir = function(self,wfilename)
return wfilename:GetPath(wx.wxPATH_GET_VOLUME)
end,
}