Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Code regions?

Author
Message
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 12th Jul 2016 02:29
Hi all! So it's quite handy being able to fold functions and loops and whatnot in AGK2, but is there a way to put in your own regions? Much like the #REGION command in Visual Studio?

In addition, is there any way to ensure that folded functions will stay folded between openings? Seems every time I open AGK2, everything's always unfolded again.
easter bunny
11
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 12th Jul 2016 07:37 Edited at: 12th Jul 2016 07:39
Pretty sure the answer is no :/ although I just learnt that there is a #region commands for VS
However you might want to try typing a {... I don't know if this still works, but a while back it would trick the ide into making a collapsible section. It might have been fixed since but I expect it probably still works.
If it does work, you could just put a ` before it to comment it out for the compiler yet Code::Blocks will still parse it.
Hope this works I can't test it right now so I can't say for sure whether it'll do anything but as long as TGC hasn't fixed it it will probably still work.

Ex:

Audacia Games - Latest WIP - AUTOMAYTE 2.1, AppGameKit one click deploy to Android
130,000 installs with AppGameKit and counting
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 12th Jul 2016 11:47
Aww, doesn't work

Thanks for the attempt, though!
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 12th Jul 2016 14:01
Quote: ", you could just put a ` before it to comment it out for the compiler yet Code::Blocks will still parse it."

AGK2 uses Geaney,AGK1 used code::blocks.
easter bunny
11
Years of Service
User Offline
Joined: 20th Nov 2012
Playing: Dota 2
Posted: 13th Jul 2016 08:13

Shows how long it's been since I've been coding seriously in AppGameKit I guess

Audacia Games - Latest WIP - AUTOMAYTE 2.1, AppGameKit one click deploy to Android
130,000 installs with AppGameKit and counting
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Jul 2016 11:21
v2 feature by me
foldstart
foldend
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Jul 2016 04:06 Edited at: 16th Jul 2016 04:07
Hi Markus, I tried that out and it works! Thanks!
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 25th Jul 2016 10:24
Markus, do you know if there's a setting hidden somewhere that keeps regions closed between opening/closing AppGameKit? Every time I open my project everything is unfolded again.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Jul 2016 19:50
sorry, it seems it is not saved, i see only a menupoint document fold all,unfold all.
for a better workflow you can add labels, this appear in tab symbols beside project.
here1:
here2:
so you can quick jump between or move where your work is in progress.
AGK (Steam) V2.0.20 : Windows 10 Pro 64 Bit : AMD (16.3.2) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 27th Jul 2016 04:33
Good plan!

Login to post a reply

Server time is: 2024-04-27 00:28:20
Your offset time is: 2024-04-27 00:28:20