31
Feature requests / Re: File drop
« on: November 08, 2015, 09:45:26 am »
Never did we suggest that SFML should decide on what to do depending on the type of file. The problem is that it's hard to implement and maintain features, so if you need to add one then it better be useful.
If you're referring to the Lua thing I was just saying that many applications that use scripts usually use more than one script, so dragging-and-dropping it into the window doesn't make a whole lot of sense since the application (which consists of more than just SFML) wouldn't know where to place that script since different scripts serve different purposes.
This applies to more than games, but for example: If your game has two scripts, one for GUI that has an onButtonClick function and one for AI that has an onPlayerSeen function, they're obviously not interchangeable, so how do you know which of the two purposes the script serves? You can't (at least not with drag-and-drop). And if you're just testing out a single Lua script that doesn't require any specific functions to be defined, why not use an actual Lua IDE or something instead? Let alone the fact that if you have a single script and version control, you could just have an "update script" hotkey and just modify the one file instead of dragging-and-dropping files into your window.
If you're referring to the Lua thing I was just saying that many applications that use scripts usually use more than one script, so dragging-and-dropping it into the window doesn't make a whole lot of sense since the application (which consists of more than just SFML) wouldn't know where to place that script since different scripts serve different purposes.
This applies to more than games, but for example: If your game has two scripts, one for GUI that has an onButtonClick function and one for AI that has an onPlayerSeen function, they're obviously not interchangeable, so how do you know which of the two purposes the script serves? You can't (at least not with drag-and-drop). And if you're just testing out a single Lua script that doesn't require any specific functions to be defined, why not use an actual Lua IDE or something instead? Let alone the fact that if you have a single script and version control, you could just have an "update script" hotkey and just modify the one file instead of dragging-and-dropping files into your window.