Current Working on : [Main Menu] for AngelMedia
Spoiler
s
Press U or Y to scroll through both channels, this allows for more notes.
Suggestion for when it doesn't find a disk / monitor: Make it wait for an event to find a disk / or an attached peripheral (monitor in this case) comes into play and then it continues -_-/>/>
function DrawButton(x1,y1,x2,y2,sym,color1,color2,text,named)
if x1 == nil or 0 then x1 = 1 end
if x2 == nil or 0 then x2 = 6 end
if y1 == nil or 0 then y1 = 1 end
if y2 == nil or 0 then y2 = 6 end
if sym == nil or 0 then sym = "#" end
if color1 == nil then color1 = 0 end
if color2 == nil then color2 = 0 end
if text == nil then text = "NONE" end
if named == nil then print("Error : string expected, got " .. type(named)) print("Press any key to continue") os.pullEvent("key") end
for i = x1,y2 do
term.setTextColor(colorGet(color1))
term.setCursorPos(i,y1)
print(sym)
term.setCursorPos(i,y2)
print(sym)
end
term.setTextColor(colors.white)
for i = y1,y2 do
term.setTextColor(colorGet(color1))
term.setCursorPos(x1,i)
print(sym)
term.setCursorPos(x2,i)
print(sym)
end
term.setTextColor(colorGet(color2))
term.setCursorPos(x1+1,y1+1)
print(text)
term.setTextColor(colors.white)
inputin = named .. "*" .. x1 .. "*" .. y1 .. "*" .. x2 .. "*" .. y2 .. "*" .. text
return table.insert(Buttons,inputin)
end
function BreakBData(ButtonName)
local Temp = ButtonName
local startf = 1
local endf = 1
for i = 1,table.maxn[Buttons] do
if Buttons[i] == Temp then
---the function that breaks down the string and grabs the seperate data
--afterwards : Do note that BX1 BY1 BX2 BY2 and BButtonName etc are all the infomation we got from above function
for i = BY1,BY2 do
if MouseY == i then
for i = BX1,BX2 do
if MouseX == i then
clickedButton == BButtonName
end
end
end
end
end
end
end
gui.setButton(x,y,endx,endy,text,colorline,colorbackground)--button 1
gui.setButton(x,y,endx,endy,text,colorline,colorbackground)--button 2
gui.sRender()
gui.getSelection() --will return 1 if the button is clicked, 2 if the button 2 is clicked and so...
So the order you declare the button are very important. If you want more informations look into the thread of the API I describe functions and how to use it :)/>Food for thought. Have some "broadcasting" networks. So that people from any computer on any server, can all sit down and watch the same movie, at the same time ;)/>/> that is all :P/>/>
cps = cpsa
ooohhhhh.cps = cpsa
EDIT: It fails because "cpsa" is invalid
os.loadAPI("cpsaFilePath")
cpa = cpsa
feed the beast mindcrack pack has computer craft with advanced computersi cant wait for tekkit to have the advanced computers -.-'
Technically there shouldn't be any code editing needed, would most likely need a transcoder, but shouldn't have to rewrite any of CCTube as our player will only play our format.-snip-
thier may be abit of code editing for you on making CCtube have optional sound support.
Again shouldn't be a huge amount that you need to do, obviously if you do it makes our life easier ;)/> but our format might be quite difficult for you to understand. If you don't believe me take a look at the output our format makes ( https://raw.github.com/theoriginalbit/CCTube/develop/videos/transcoded-compressed )This afternoon ill look into the formats of LightShot and CCtube to get an idea of what must be done for compatibility.
local s = "afegef15afg1"
s = s:sub(1,4).."g"..s:sub(6)
there may be better ways of doing it, i had actually typed a gsub (replacement) way, but this was easier to understand…Our transcoder will never be an API. It is a program. Run it with shell.run or from the terminal with the appropriate parameters and it will work 100%. I don't see any point in making it an API.I see, then using a transcoder in CCTube would be best.
–
Im thinking if one can write thier own flawless transcoder can they not just provide it and then have it treated as a API in other programs? This can mean that if you wish for a transcode of XYZ to ACB then you just need the transcoding "API"… might be a good idea to support such behavior in AngelMedia.