This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Noodle's profile picture

Buttons

Started by Noodle, 08 April 2012 - 11:23 AM
Noodle #1
Posted 08 April 2012 - 01:23 PM
New buttons for computers!
You could code buttons on the computers and click them.
Imagine the possibilities!
Shortcuts.
Startmenu
etc.

You could also implement re-sizable windows.
Example
f = frame
f.width(400)
f.height(400)

And WAAAYYY more.
Cloudy #2
Posted 08 April 2012 - 02:09 PM
Not gonna happen.
Noodle #3
Posted 08 April 2012 - 02:16 PM
@Cloudy
Y u gotteh be so negative?
It could, when it does.. I'll gloat in your face!

If it doesn't ill make it.

You are only a member. Why should I believe you??
Cloudy #4
Posted 08 April 2012 - 02:25 PM
Excuse me? I know it isn't going to happen because it is against dan's vision for his mod. Hence why it is text based, with no colours. You can carry on holding your breath for it if you want, but prepare to be blue in the face.
djblocksaway #5
Posted 10 April 2012 - 02:51 PM
xD i guess you never know what might happen
ComputerCraftFan11 #6
Posted 22 April 2012 - 08:53 AM
New buttons for computers!
You could code buttons on the computers and click them.
Imagine the possibilities!
Shortcuts.
Startmenu
etc.

You could also implement re-sizable windows.
Example
f = frame
f.width(400)
f.height(400)

And WAAAYYY more.

Ya… About that

Just use the buttons on the keyboard and bind them to os.pullEvent
Teraminer #7
Posted 22 April 2012 - 04:34 PM
New buttons for computers!
You could code buttons on the computers and click them.
Imagine the possibilities!
Shortcuts.
Startmenu
etc.

You could also implement re-sizable windows.
Example
f = frame
f.width(400)
f.height(400)

And WAAAYYY more.

Ya… About that

Just use the buttons on the keyboard and bind them to os.pullEvent
I agree, but it would be nice to have f.width(400) f.height(400). Plus it is 100% posible since he (Dan200) did that in the config already.
louisrocks40 #8
Posted 23 April 2012 - 10:57 PM
Excellent idea! However I do agree it goes against the vision of the mod. The current setup really gets rid of the distractions of GUIs and such. The os.pullEvent will work, and I think I will stick with that regardless. Just my two cents ^.^
Noodle #9
Posted 25 May 2012 - 06:36 AM
I meant like minecraft buttons if you missed that.
Ik it does mess with the GUI and/or the main idea.
It just seems easier to, atleast add a button to click on not a "ESC Menu button".
As for teraminer
IKR What if you could do that without going into the config!
D3matt #10
Posted 25 May 2012 - 07:25 AM
There is an API that adds clicking buttons. http://www.computercraft.info/forums2/index.php?/topic/1101-apisprogramsutilitiesmads-programs/
ComputerCraftFan11 #11
Posted 25 May 2012 - 08:07 AM
New buttons for computers!
You could code buttons on the computers and click them.
Imagine the possibilities!
Shortcuts.
Startmenu
etc.

You could also implement re-sizable windows.
Example
f = frame
f.width(400)
f.height(400)

And WAAAYYY more.

Or this:

f = frame.new()
f.name = "Fart"
f.width = (400)
f.height = (400)
f.text = "Shutdown"
local event, id = os.pullEvent("button")
if id == "Fart" then
os.shutdown()
end
Cloudy #12
Posted 25 May 2012 - 11:53 AM
As I said before, it isn't going to happen. I know that Dan has no interest in making a GUI for computers - and on a personal level, it isn't something I am interested in developing either - so talking about implementation is moot.
Noodle #13
Posted 26 May 2012 - 12:17 AM
Not a gui, but a button that is flat. You can make it, style it (using #'s and symbols), JUST SOMETHING CLICKABLE.
D3matt #14
Posted 26 May 2012 - 02:51 AM
There is an API that adds clicking buttons. http://www.computerc...smads-programs/
Like this?
Noodle #15
Posted 26 May 2012 - 03:18 AM
Meh, similar but implemented!
Teraminer #16
Posted 30 May 2012 - 06:22 PM
Of course I mean without going in the config.
Pinkishu #17
Posted 30 May 2012 - 08:46 PM
Uhm a button is a GUI component
Graphical
yeah the button, that oyu style and such

User Interface
it interfaces with the user
Noodle #18
Posted 30 May 2012 - 09:01 PM
Uhm a button is a GUI component
Graphical
yeah the button, that oyu style and such

User Interface
it interfaces with the user

a UI isn't a GUI, I'm talking about a click event. Have a click event or a target item to click on.
Pinkishu #19
Posted 30 May 2012 - 10:58 PM
So ingame minecraft buttons? or what

still missing the point, we already have buttons
Teraminer #20
Posted 31 May 2012 - 07:34 PM
he means butttons like in the main menu (I think).
ComputerCraftFan11 #21
Posted 31 May 2012 - 11:54 PM
So ingame minecraft buttons? or what

still missing the point, we already have buttons

Buttons you can put your mouse over, and call a event by left clicking.
MysticT #22
Posted 01 June 2012 - 12:02 AM
So, it would be more like mouse support than buttons. If you have mouse support, you can make the buttons yourself in ascii art (not as fancy as you might want, but it's something).
Noodle #23
Posted 01 June 2012 - 12:57 AM
@MysticT
I would like that to be implemented. I have no problem with ascii art but if you can take the position of your mouse and click.
MysticT #24
Posted 01 June 2012 - 01:09 AM
Yeah, I wanted that too, it would be really usefull even with no gui. There could be a "mouse_click" event with mouse position and button (left, right, middle) arguments, and a "mouse_move" event with the x and y positions as arguments. It would be usefull to make better guis, games, and some other things I can't think of now :)/>/>.
Pinkishu #25
Posted 01 June 2012 - 01:29 AM
So ingame minecraft buttons? or what

still missing the point, we already have buttons

Buttons you can put your mouse over, and call a event by left clicking.

Well that would still be a graphical user interface then ?.? I don't get it lol oh well whatever
PixelToast #26
Posted 01 June 2012 - 04:39 AM
Yeah, I wanted that too, it would be really usefull even with no gui. There could be a "mouse_click" event with mouse position and button (left, right, middle) arguments, and a "mouse_move" event with the x and y positions as arguments. It would be usefull to make better guis, games, and some other things I can't think of now :)/>/>.

then you could make an api for creating ascii buttons
Well that would still be a graphical user interface then ?.? I don't get it lol oh well whatever
being able to highlight text instead of a gui type thing would be best as dan wants it to be terminal based
Bossman201 #27
Posted 06 June 2012 - 08:17 PM
But imagine how angry all those OS programmers would be? They'd have to redo everything.
Pinkishu #28
Posted 07 June 2012 - 01:53 AM
But imagine how angry all those OS programmers would be? They'd have to redo everything.

Only the GUI, which shouldn't be a problem if they coded their OS properly :)/>/>
D3matt #29
Posted 07 June 2012 - 03:59 AM
But imagine how angry all those OS programmers would be? They'd have to redo everything.
They wouldn't HAVE to…
kazagistar #30
Posted 08 June 2012 - 06:15 AM
Only the GUI, which shouldn't be a problem if they coded their OS properly :)/>/>
What you are saying is Linux>everything else, right? Cause that is all I heard :D/>/>
Pinkishu #31
Posted 08 June 2012 - 11:26 AM
Only the GUI, which shouldn't be a problem if they coded their OS properly :)/>/>
What you are saying is Linux>everything else, right? Cause that is all I heard :D/>/>

Nah any OS > everything else would have to properly and natively run WinAPI, Window, Linux, Mac, DirectX, OpenGL, … software ;)/>/>