For any feature requests to either the Skyline Engine or the websites and forums please leave your suggestion here.

Script editor - code auto insertion

Script editor - code auto insertion

Postby howler » 20 Apr 2014, 04:20

Inserting a function via clicking the "commands" in the left hand window will insert the code at the cursor position unless you insert a code module. Code modules insert at the top of your script. I think (though I'm not stressed if you think otherwise) it would be nice if insertion was consistent - ie all insertions go wherever the cursor currently is. If it's going to do an insertion at the top, maybe it could insert a comment like the following so it's easy to find your original code?

-- | End of inserted code module "Ray from Object"
-- | =====================================================
User avatar
howler
Skyline Ensen
 
Posts: 110
Joined: 10 Apr 2014, 23:50
Location: Sydney, Australia

Re: Script editor - code auto insertion

Postby SolarPortal » 20 Apr 2014, 10:43

yes there are 3 different insertion types.

Code Modules are placed at the top of the script as they are script examples themselves and generally only need added when you start a script.
API Functions are inserted to the cursor position because they are the command you require to call
Events are inserted at the bottom because we dont want users to place their new event function inside another function as this will break the script.
These are the reasons why it works the way it is.

As for the rem on the code module, that is something which might help seperate the code when placed when together, will think about this one :P
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 5 guests

cron