Conversation
Blocks can added to the game by choosing them in the Add...-menu or by pressing ctrl+shift+1 (+2, +3...)
|
Interesting. At the moment I'm not fully clear how this would be used. What are some examples of the text blocks you use yourself - are they templates for using some Handlebars helpers for example? I can certainly see we could have some way of integrating those a bit better, though I don't think it should be up to game authors to have to configure these all themselves. |
|
There is text I often use in my Squiffy5 game ( but will be the same with Sq6) or even complete sections: I must always search the code to copy and paste it to the new sections |
|
Ah ok, so this is specific to each game, rather than something that you would use across different games? I wonder if maybe we could have a way of defining these "macros" in the game source file itself. You could always copy macros across to other game files too if they're useful there. |
|
yes, most codeparts would be specific to a game. |
|
These should not be functions that can be started for execution, but rather the code must be copied to the actual location. The code is then adjusted manually. |
|
Got it. "Macros" was just me suggesting a name, I think these would just be static text. A better name is "snippets" - looking into implementing this now.. |
Hi Alex,
I played around with the code a bit with the help of AI and implemented the text blocks I mentioned earlier.
Maybe you can use it, if not, just delete it. That's how I imagined it.
Adding textblocks to the setting menu and to the editor "Add..." menu
Blocks can added to the game by choosing them in the Add...-menu or by pressing ctrl+shift+1 (+2, +3...). Hmmm, the keyboard shortcuts will ony work on Window-systems, I suppose.