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 / AGK2: Tier 1: ? What is FoldStart or Fold Code?

Author
Message
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 24th Sep 2017 22:43
I ran across this in a example, but I am not for sure what it does. Have heard it called "Fold Code" at the beginning. The coder placed constants in its set up. I tried to find it in the docs (maybe just missed it). My question is what is the Fold used for?

Watch \"StarCrash\" a 1979 epic film, make sure your not to sober..
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 24th Sep 2017 23:43
it's only to allow this portion of code to be folded (hidden) in the IDE
--------------------------------
Join us on dedicated AppGameKit WeeKChat :
https://week.chat/room/AppGameKit
tmu
7
Years of Service
User Offline
Joined: 2nd Feb 2017
Location:
Posted: 25th Sep 2017 05:47
See your post in this thread? Your question? The code section is hidden and only shows if you click on the "+" char. This is code folding. But in the AppGameKit case it is simply "folded" within the IDE.
Kevin Cross
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 25th Sep 2017 12:31
That's handy! I knew about the pluses that fold blocks in the IDE but didn't realise we could add them ourselves.
Supertino
7
Years of Service
User Offline
Joined: 22nd Jun 2017
Location: Behind you!
Posted: 25th Sep 2017 12:42
I wish the IDE would remember what was folded when the files were saved and refold when you open the project again.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 25th Sep 2017 17:11
Quote: "I wish the IDE would remember what was folded when the files were saved and refold when you open the project again."


+1
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Sep 2017 18:53
how about a quick and dirty FoldstartClosed feature request?
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Timidon
19
Years of Service
User Offline
Joined: 26th Jun 2005
Location: Bakersfield, Ca. USA.
Posted: 25th Sep 2017 19:58
So all it is a way to remove some of the display clutter, got it. Did not know that, thanks.
Watch \"StarCrash\" a 1979 epic film, make sure your not to sober..
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Sep 2017 20:07 Edited at: 25th Sep 2017 20:10
this works also, you can fold with one click sub folders.

jumphere: appear in symbol list at labels, its usefully if you work on some code parts, you can jump to this place with a click if sourcecode is open.
AGK (Steam) V2017.08.16 : Windows 10 Pro 64 Bit : AMD (17.7.2) Radeon R7 265 : Mac mini OS Sierra (10.12.2)
Kevin Cross
21
Years of Service
User Offline
Joined: 15th Nov 2003
Location: London, UK
Posted: 26th Sep 2017 09:50
@Markus, thanks for sharing. Something else I didn't know that could turn in handy. I knew about labels for goto's but didn't know they appeared in a list that make it easier to jump to in the IDE.

Login to post a reply

Server time is: 2024-11-24 08:13:03
Your offset time is: 2024-11-24 08:13:03