wish make "script write easyer....

wish make "script write easyer....

Postby Oliver_Buo » 27 Jun 2017, 21:06

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! :)
User avatar
Oliver_Buo
 
Posts: 286
Joined: 27 Nov 2016, 17:51

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

Postby brmbrmcar » 28 Jun 2017, 22:41

And you can't really go back easily.
brmbrmbrmbrmbrmbrmcar
User avatar
brmbrmcar
 
Posts: 357
Joined: 24 Oct 2015, 14:46

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

Postby GunChleoc » 05 Jul 2017, 09:32

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.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

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

Postby VNS » 05 Jul 2017, 20:37

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
Hello there!
User avatar
VNS
 
Posts: 151
Joined: 30 Nov 2016, 21:40
Location: on a planet named Earth

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

Postby Tobbi » 05 Jul 2017, 21:04

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.
SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

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

Postby farrer » 05 Jul 2017, 23:56

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.
User avatar
farrer
 
Posts: 110
Joined: 24 Feb 2014, 21:00

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

Postby GunChleoc » 06 Jul 2017, 11:09

Thanks for the hint, we do use SDL2. *bookmarked*
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

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

Postby brmbrmcar » 06 Jul 2017, 22:14

"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.
brmbrmbrmbrmbrmbrmcar
User avatar
brmbrmcar
 
Posts: 357
Joined: 24 Oct 2015, 14:46

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

Postby GunChleoc » 11 Jul 2017, 11:07

Well, once you're learned it, you might surprise yourself and enjoy implementing other wanted features / fixing annoyances.
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

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

Postby Tobbi » 11 Jul 2017, 11:32

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.
SuperTux developer.
User avatar
Tobbi
SuperTux Moderator
 
Posts: 353
Joined: 12 Oct 2013, 13:08

Who is online

Users browsing this forum: No registered users and 1 guest