Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Arcadefan1

Pages: [1]
Hi guys!
I think of adding a little feature to my layout. But I have no idea where to start. ;) I want to use my spinner to navigate through the games list. The spinner is just emulating the mouse movement on the „X“ axis. I have no idea how to make mouse movement accessible in a script. Has anyone done something like this?
Any help is appreciated!

Scripting / Particle animation question
« on: January 06, 2019, 11:18:08 AM »
Hi guys!
I am playing around with particle animation. I have one question. How can I make a particle animation visible or invisible!

Code: [Select]
ParticleAnimation.visible = false;

This doesn't work.

Can someone give me a hint please?

Scripting / Need help with ".file_name.length ()" please
« on: February 11, 2018, 04:19:06 AM »
Can someone please tell me why my code doesn't work? I want to do stuff when the length of a filename is larger then zero. Basically it should do stuff if the file is existing... the "if" statement always equals zero. Can someone tell me how to get the length of the filename?

Code: [Select]
Picture [ "pic" ] <- surface.add_artwork (config "image",0,0,surface.width,surface.height)

If Picture [ "pic" ].file_name.length() > 0
// do stuff

Scripting / Enable/disable plugins on-the-fly from script?
« on: January 20, 2018, 08:41:51 AM »
Is there a way to enable or disable a plugin from within a script?

Thanks guys

General / "Confirm favorite" option question
« on: November 19, 2017, 01:48:04 PM »
Hi guys,
I have one button dedicated to toggle a game to favorite or remove it from favorites.
Now when I accidentally hit the favorite button while I am on the favorite list, the game disappears immediately from the favorite list. To get it back I have to find it in another filter list... a little annoying... but I only want the "confirm favorite" option when I am about to remove a game from the favorite list. On the other lists I want to toggle favorites without confirming first.
Any chance this is doable?

Scripting / Need your help with History.dat plugin
« on: November 05, 2017, 08:15:55 AM »
Hi guys,
I want a second button to start the plugin. Like, press "button 1" OR  "button 2" to start the plugin. That's all. I looked at the plugin.nut file, but can't figure out how to do it.
Can someone show me a way to do it please?

And one more thing. Can I somewhere change the scroll speed of the text while browsing with the stick? It's a little too fast for my liking...

Thanks guys! :)

Scripting / Struggling with String operations in Squirrel...
« on: March 20, 2017, 12:13:20 PM »
Hey guys,
I am new to attract mode and I try to get my head around modifying a theme.

First question:
I get a string back from calling a function. Like this...

Local scroller = "[!get_history]";

The string shows ok on screen. It contains the text from history.dat. But if I try something like

Local length = scroller.len();

I always get 14. And when I print the string to console it says  "[!get_history]"
It seems like it behaves similar to a magic token.
How do I convert such a string to a real string with real content?

Second question:
How do I remove all line feeds (/n) from a string?

Any help is appreciated!

Pages: [1]