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

Fullscreen Mode

Started by Dlcruz129, 11 January 2013 - 12:11 PM
Dlcruz129 #1
Posted 11 January 2013 - 01:11 PM
So, I had an idea today.

When the computer is open and you press a key on your keyboard (probably something like F6), it would make the GUI take up the whole Minecraft window. The text size would stay the same, therefore you could have higher resolution graphics. There would also be a new function:

term.isFullscreen() -- returns true if it is in fullscreen, and false if it's not.

We could have higher resolution graphics, and I can also see this being useful for Operating Systems who want a "desktop" with a clock, programs, Start button, etc.
ChunLing #2
Posted 11 January 2013 - 01:42 PM
Huh. Is that even doable with the normal gui interface methods?
theoriginalbit #3
Posted 11 January 2013 - 01:53 PM
Huh. Is that even doable with the normal gui interface methods?
I can think of a way or two to do it…
NeverCast #4
Posted 11 January 2013 - 02:08 PM
Yeah I say it's plenty possible with the current GUI implementation
Cloudy #5
Posted 11 January 2013 - 02:34 PM
Nah. Little use really. Besides, we pass through all keys we can to the computer - and this would be any key other than escape.
Dlcruz129 #6
Posted 11 January 2013 - 02:47 PM
Nah. Little use really. Besides, we pass through all keys we can to the computer - and this would be any key other than escape.

I think higher resolution graphics would be useful.
Cloudy #7
Posted 11 January 2013 - 03:25 PM
It doesn't make logical sense. This is equivalent in real life to you pressing F6 and your monitor expanding to twice its size.
Orwell #8
Posted 11 January 2013 - 03:30 PM
And wouldn't screen proportions (IRL) affect the resolution of the GUI? It would get quite messy if people with 16:9 screen proportions could have more characters on one line than people with 4:3 screen proportions…
theoriginalbit #9
Posted 11 January 2013 - 04:10 PM
It doesn't make logical sense. This is equivalent in real life to you pressing F6 and your monitor expanding to twice its size.
No but I can go into settings and change my screen resolution from 800x600 to 1680x1050
Orwell #10
Posted 11 January 2013 - 04:31 PM
It doesn't make logical sense. This is equivalent in real life to you pressing F6 and your monitor expanding to twice its size.
No but I can go into settings and change my screen resolution from 800x600 to 1680x1050
Last time I checked (which is one minute ago), you can also change the character resolution of ComputerCraft in the config file. Also, changing your resolution from 800x600 to 1680x1050 doesn't make your screen 4 times larger. :P/>
theoriginalbit #11
Posted 11 January 2013 - 04:37 PM
It doesn't make logical sense. This is equivalent in real life to you pressing F6 and your monitor expanding to twice its size.
No but I can go into settings and change my screen resolution from 800x600 to 1680x1050
Last time I checked (which is one minute ago), you can also change the character resolution of ComputerCraft in the config file. Also, changing your resolution from 800x600 to 1680x1050 doesn't make your screen 4 times larger. :P/>
Doesn't changing the char resolution resize the gui window? … No but it displays a crisper image as the programs have access to more pixels…
Cloudy #12
Posted 11 January 2013 - 11:53 PM
I think you're just arguing for the sake of it now. This isn't going to happen anyway. It gets even more complicated when you consider multiplayer.
Sebra #13
Posted 12 January 2013 - 03:26 AM
Nah. Little use really. Besides, we pass through all keys we can to the computer - and this would be any key other than escape.
For me F11 change fullscreen mode and cannot be get, F10 works not each time, Esc close gui but cannot be get.
Also can you make gui close with mouse click outside gui?
Cloudy #14
Posted 12 January 2013 - 04:03 AM
For me F11 change fullscreen mode and cannot be get, F10 works not each time, Esc close gui but cannot be get.
Also can you make gui close with mouse click outside gui?

Like I said, all keys that we can.

And no, that would be annoying when trying to change focus back to the minecraft window.
theoriginalbit #15
Posted 12 January 2013 - 02:31 PM
Like I said, all keys that we can.

Just a side note here…. does the ESC key actually get passed to the program? or is it just captured by the gui?
The reason I ask is I was wanting to get a screen to reset to default when someone leaves the computer… And I can't test to see if it gets passed with CC-Emu… :P/>
ChunLing #16
Posted 12 January 2013 - 04:33 PM
It does send an event ("key", 1), if that's what you're asking.
theoriginalbit #17
Posted 12 January 2013 - 04:36 PM
It does send an event ("key", 1), if that's what you're asking.
Yeh thats what I was asking… cool thanx :)/>

+1 for the disadvantage of testing in CC-Emu and it closing the computer GUI … :P/>
Cloudy #18
Posted 13 January 2013 - 01:36 AM
No, it doesn't.
theoriginalbit #19
Posted 13 January 2013 - 01:39 AM
No, it doesn't.
Damn… :/
Is that a choice on you guys part, or on minecraft's part?
Cloudy #20
Posted 13 January 2013 - 01:48 AM
Our part. Does it make sense that a computer knows when you stop looking at it?
theoriginalbit #21
Posted 13 January 2013 - 01:50 AM
Our part. Does it make sense that a computer knows when you stop looking at it?
Well when you put it that way it makes sense :P/>
ChunLing #22
Posted 13 January 2013 - 08:11 AM
Hmm…okay but if you do a test loop to pull events and display them, you'll see that the escape key does still generate an event. Whether or not it's supposed to is, of course, out of my purview.
Cloudy #23
Posted 13 January 2013 - 11:25 AM
What version are you on? That makes all the difference.

Just tested the latest version, and escape doesn't throw an event.
Lyqyd #24
Posted 13 January 2013 - 02:25 PM
Hmm…okay but if you do a test loop to pull events and display them, you'll see that the escape key does still generate an event. Whether or not it's supposed to is, of course, out of my purview.

Yeah, it definitely used to, but does not do so any longer; programming to take advantage of the old behavior would therefore make no sense.
ChunLing #25
Posted 14 January 2013 - 01:14 PM
Whoops, I've tried the latest version, but the worlds with the mods I like are still in 1.2.5 MC with 1.41 CC.

Yeah, it was mostly something I remembered from when I did eventPull test loops a lot to establish input behavior, and I rechecked on the old version rather than the new one.
NeverCast #26
Posted 14 January 2013 - 03:21 PM
Our part. Does it make sense that a computer knows when you stop looking at it?

It would allow a computer to automagically log out a user when they leave the terminal, good for authentication or OS implementations.

Edit: After further thought, complications with multiple users on SMP would be horrific, I guess it wouldn't have much use after all.
Zoinky #27
Posted 14 January 2013 - 06:38 PM
Our part. Does it make sense that a computer knows when you stop looking at it?

It would allow a computer to automagically log out a user when they leave the terminal, good for authentication or OS implementations.

Edit: After further thought, complications with multiple users on SMP would be horrific, I guess it wouldn't have much use after all.

You could just do what regular computers do. After a certain time of inactivity, log the user out/go on standby.