Page 1 of 1

wish make "script write easyer....

PostPosted: 27 Jun 2017, 21:06
by Oliver_Buo
My wish for next realise;

make "script write easyer....

* copy paste is not possible jet. ;)
* insert is not possible jet. :|
* Yellow text on On gray background... can not be read easily :?

and finally :cool:

* a script selecton by pull down menu - wow that would be grat! :)

Re: wish make "script write easyer....

PostPosted: 28 Jun 2017, 22:41
by brmbrmcar
And you can't really go back easily.

Re: wish make "script write easyer....

PostPosted: 05 Jul 2017, 09:32
by GunChleoc
Oliver_Buo {l Wrote}:My wish for next realise;

make "script write easyer....

* copy paste is not possible jet. ;)
* insert is not possible jet. :|

I did a bit of research on that one since we'd like to have this at Widelands too. Unless you are using a toolkit that provides this function, this is actually not easy to implement. You will need special code for each operating system in order to access their clipboards.

Oliver_Buo {l Wrote}:* Yellow text on On gray background... can not be read easily :?

Eek, I agree that should be fixed.

Oliver_Buo {l Wrote}:and finally :cool:

* a script selecton by pull down menu - wow that would be grat! :)

I don't think that I've seen pull-down menus in ST yet, but a pop-up menu should be theoretically doable if somebody finds the time. It's a good idea.

Re: wish make "script write easyer....

PostPosted: 05 Jul 2017, 20:37
by VNS
Here's another type of code, blockly. You can snap the blocks together to form a script. Might be easier for users new to scripting.

( Check out scratch.mit.edu if you want to try blockly. )

Capture.PNG

Re: wish make "script write easyer....

PostPosted: 05 Jul 2017, 21:04
by Tobbi
This is a great idea and something that I have been thinking about as well.

Can any of you guys learn C++ and help me with this? I have other things on my plate for SuperTux.

Re: wish make "script write easyer....

PostPosted: 05 Jul 2017, 23:56
by farrer
GunChleoc {l Wrote}:I did a bit of research on that one since we'd like to have this at Widelands too. Unless you are using a toolkit that provides this function, this is actually not easy to implement. You will need special code for each operating system in order to access their clipboards.

Not sure if both projects use SDL2, but SDL2 have these functions:

{l Code}: {l Select All Code}
SDL_GetClipboardText
SDL_HasClipboardText
SDL_SetClipboardText


which does clipboard copy/paste on a cross-platform way. Worth check them out.

Re: wish make "script write easyer....

PostPosted: 06 Jul 2017, 11:09
by GunChleoc
Thanks for the hint, we do use SDL2. *bookmarked*

Re: wish make "script write easyer....

PostPosted: 06 Jul 2017, 22:14
by brmbrmcar
"Can any of you guys learn C++ and help me with this?"

Yes, because we are going to spend loads of hours learning a programming language just to implement this feature.

As for the actual idea, it may work quite well. But there should also still be a plain text option.

Re: wish make "script write easyer....

PostPosted: 11 Jul 2017, 11:07
by GunChleoc
Well, once you're learned it, you might surprise yourself and enjoy implementing other wanted features / fixing annoyances.

Re: wish make "script write easyer....

PostPosted: 11 Jul 2017, 11:32
by Tobbi
brmbrmcar {l Wrote}:"Can any of you guys learn C++ and help me with this?"

Yes, because we are going to spend loads of hours learning a programming language just to implement this feature.


I believe learning C++ takes less time than your numerous complaints over the last couple years.