Heres My Idea :P/>/>
Spoiler
Program Name: ASCII Creator
What its for: Making ASCII Art On CC
What It Does:
It gives you a gui and you can select where you want certain text to be or dots, Example (so you can select the S and change them to whatever u like and than save it and run it and it will show what u made (Basically An ASCII Art Maker For CC)
(Its hard to explain)
+———————————————+
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
| SSSSSSSSSSSSSSSSSSSSSSSSSS|
|SSSSSSSSSSSSSSSSSSSSSSSSSS|
+———————————————+
I like this idea and I'm working on it right now. here is screen shot and Unfinished code
Picture
Spoiler
code ver 0.1
note:
use up and down to navigate the menu.Press enter to confirm Currently only new and exit work so use them.
new will make a lot of "1' appear on the screen use up down left right to move cursor around and press letters or other characters to add them to the grid.to exit program press Ctrl and use the menu to return to your work grid press Ctrl and the menu will disappear.
Spoiler
--[[
ASCII art editer
by Big SHiny Toys
]]
------- varibals ---------
local curX,curY
local winX,winY
local picX,picY
local picT = {}
local MMSelset = 1
local ver = 0.1
--------- end ------------
------- functions --------
local function redrawfull(off1,off2)
term.clear()
if off1 == nil then off1 = 0 end
if off2 == nil then off2 = 0 end
for i = 1 , picX + off1 do
for v = 1 , picY + off2 do
term.setCursorPos(i,v)
write(picT[i][v])
end
end
end
local function CustomExit()
term.clear()
winX,winY = term.getSize()
term.setCursorPos((winX/2)-(string.len("Thank you for trying ACSII art")/2),(winY/2)-1)
write("Thank you for trying ACSII art")
term.setCursorPos((winX/2)-(string.len("Idear from Troll")/2),(winY/2))
write("Idear from Troll")
term.setCursorPos((winX/2)-(string.len("By Big SHiny Toys")/2),(winY/2)+1)
write("By Big SHiny Toys")
sleep(2)
term.clear()
term.setCursorPos(1,1)
error()
end
local function redrawXY()
end
local function save()
end
local function load()
end
local function Newgrid(x,y)
for i = 1 , x do
picT[i] = {}
for v = 1 , y do
picT[i][v] = "1"
end
end
end
local function menue2() -- save - load - new - exit 6 lines
local crnX,crnY = term.getSize()
local selected = 1
while true do
if selected > 4 then selected = 1
end
if selected < 1 then selected = 4
end
term.setCursorPos(crnX-9,crnY-6)
write("+-------+")
term.setCursorPos(crnX-9,crnY-5)
if selected == 1 then write("|> Save |") else write("| Save |") end
term.setCursorPos(crnX-9,crnY-4)
if selected == 2 then write("|> Load |") else write("| Load |") end
term.setCursorPos(crnX-9,crnY-3)
if selected == 3 then write("|> New |") else write("| New |") end
term.setCursorPos(crnX-9,crnY-2)
if selected == 4 then write("|> Exit |") else write("| Exit |") end
term.setCursorPos(crnX-9,crnY-1)
write("+-------+")
while true do
e,e1,e2,e3,e4,e5 = os.pullEvent()
if e == "key" then
if e1 == 200 then -- up key
selected = selected-1
break
end
if e1 == 208 then -- down key
selected = selected+1
break
end
if e1 == 29 then -- Ctrl
return
end
if e1 == 28 then -- enter key
if selected == 3 then
Newgrid(20,10)
picX,picY = 20,10
return
end
if selected == 4 then
CustomExit()
end
end
end
end
end
end
---------- end -----------
------- Main Menue -------
-- load - new - help - exit
local function Mmenue()
MMSelset = 1
local s1 = "ACSII Art ver "..ver
local s2 = "--- Main Menue ---"
while true do
if MMSelset > 4 then MMSelset = 1
end
if MMSelset < 1 then MMSelset = 4
end
winX,winY = term.getSize()
term.clear()
term.setCursorPos((winX/2)-(string.len(s1)/2),1)
write(s1)
term.setCursorPos((winX/2)-(string.len(s2)/2),3)
write(s2)
if MMSelset == 1 then
term.setCursorPos((winX/2)-(string.len(" Load ")/2),5)
write("> Load <")
else
term.setCursorPos((winX/2)-(string.len(" Load ")/2),5)
write(" Load ")
end
if MMSelset == 2 then
term.setCursorPos((winX/2)-(string.len(" new ")/2),6)
write("> New <")
else
term.setCursorPos((winX/2)-(string.len(" new ")/2),6)
write(" New ")
end
if MMSelset == 3 then
term.setCursorPos((winX/2)-(string.len(" Help ")/2),7)
write("> Help <")
else
term.setCursorPos((winX/2)-(string.len(" Help ")/2),7)
write(" Help ")
end
if MMSelset == 4 then
term.setCursorPos((winX/2)-(string.len(" Exit ")/2),8)
write("> Exit <")
else
term.setCursorPos((winX/2)-(string.len(" Exit ")/2),8)
write(" Exit ")
end
while true do
e,e1,e2,e3,e4,e5 = os.pullEvent()
if e == "key" then
if e1 == 200 then -- up key
MMSelset = MMSelset-1
break
end
if e1 == 208 then -- down key
MMSelset = MMSelset+1
break
end
if e1 == 28 then -- enter key
if MMSelset == 2 then
local temvar1,tempvar2 = term.getSize()
Newgrid(temvar1-1,tempvar2-1) -- term.getSize()
picX,picY = temvar1-1,tempvar2-1
return
end
if MMSelset == 4 then
CustomExit()
end
end
end
end
end
end
---------- end -----------
------- Main loop --------
Mmenue()
redrawfull()
curX,curY = 1,1
term.setCursorBlink(true)
term.setCursorPos(curX,curY)
while true do
e,e1,e2,e3,e4,e5 = os.pullEvent()
if e == "key" then
if e1 == 200 then -- up key
curY = curY -1
end
if e1 == 29 then -- Ctrl key
term.setCursorBlink(false)
menue2()
redrawfull()
term.setCursorPos(curX,curY)
term.setCursorBlink(true)
end
if e1 == 208 then -- down key
curY = curY +1
end
if e1 == 203 then -- left key
curX = curX-1
end
if e1 == 205 then -- right key
curX = curX+1
end
if curX > picX then curX = picX
elseif curX < 1 then curX = 1
end
if curY > picY then curY = picY
elseif curY < 1 then curY = 1
end
term.setCursorPos(curX,curY)
end
if e == "char" then
picT[curX][curY] = e1
write(picT[curX][curY])
term.setCursorPos(curX,curY)
end
end
---------- end -----------
when I am happy with it i will make a thread for it.
(feed back is appreciated)