←  Programs

ComputerCraft | Programmable Computers for Minecraft

»

plusNick's Memo Board

+Nick's Photo +Nick 11 Jan 2014

Posted ImageplusNick's Memo BoardPosted Image



Hi there!

I'd like to share with you a project I've worked on for the last 2 days. An interactive, monitor based memo board. I recently got into the whole monitor_touch function, and decided to utilise it in a project. And this is what I came up with! Its not the best, nor cleanest code, but it works, and that's what matters! :)

What is it?

*A program that allows for you to write memos for yourself.
*A program that uses a touch screen monitor for interactivity.


Features:
*Touch screen monitor
*Erasable messages
*Customisable monitor width (height must be at 2)
*Clean error messages (Memos too long, not on advanced computer, not advanced monitor, advanced monitor wrong size)

Images:

Main GUI on Monitor

Posted Image


Memo's are written, and you see the remove button
Spoiler

The terminal interface - simple, but does what it needs to do
Spoiler

Clean error message of memo being too long
Spoiler

How to use:

1. To write a message, first click on one of the green X's. A message will pop up, to say to type into the computer.
2. Type in your message into the computer, and press enter. (If its too long, you will be told)
3. Your message will now appear on the monitor.
4.To remove it, simply click the respective red X on the monitor.


Pastebin:
View the code at: http://pastebin.com/PvLRRrMP

or type into your in-game computer: pastebin get PvLRRrMP [name]



And that is it! I hope you like this program, and find it useful. Please post any bugs you find, and what you think of it!

Thanks
~plusNick
Edited by +Nick, 11 January 2014 - 03:35 AM.
Quote

Symmetryc's Photo Symmetryc 12 Jan 2014

Nice, but you might want to localize your variables =P.
Quote

+Nick's Photo +Nick 12 Jan 2014

Thanks. And yeah, that's on my list of things to do, along with storing the memo's in a seperate file, so unloading a chunk doesn't remove them.
Quote

Deegs4232's Photo Deegs4232 26 Jan 2014

Hello!

I love your monitor program but one thing is bugging me. Is there a way to have a longer memo board?
Instead of 2 blocks high, can I have it 5, 10 or mabye 25 blocks tall?
If there is that would be great.
Quote