[Gambas-user] Writing a "Choose Your Own Adventure" prototype

2009-04-15 Thread Marc Carson
I want to make a short adventure game that lets users read text and look 
at an image that explains where they are in the story, and then lets 
them make a decision like, 1) get in the car or 2) run and call the 
police. These choices then branch into other choices, and at many points 
the player may die or complete the adventure in different ways. I hope 
that makes sense...

What I'm wondering is, what sort of data structures and approaches to 
this type of software should I use? The last time I did something like 
this, as a youngster, I used GOTO everywhere. :-) But I've heard there 
are better ways.

Thanks for any tips for a beginner...

Marc

--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Can I use the mousewheel to control system audio volume?

2009-07-11 Thread Marc Carson
I would like to create a program that increments/decrements the system 
master audio volume if the mouse's mousewheel is scrolled up/down, in 
combination with a hotkey (like ctrl+shift+mousewheel).

Is this possible in Gambas? I see that the mousewheel can be detected, 
but I don't see anything about up or down. I also see volume-related 
items in SDL but I'm not sure if this is necessary to use or if there's 
some better component for the task.

Thank you,

Marc

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Can I use the mousewheel to control system audio volume?

2009-07-11 Thread Marc Carson
Stefano Palmeri wrote:
> Il domenica 12 luglio 2009 01:30:26 Stefano Palmeri ha scritto:
>   
>> PUBLIC SUB Form_MouseWheel()
>>  
>>  
>>   SELECT CASE Mouse.delta
>>
>> CASE 1
>> PRINT "mouse wheel up"
>> CASE -1
>>  PRINT "mouse wheel down"
>>  
>>   END SELECT  
>>
>> END
>> 
>
> I forgot about SHIFT+CTRL:
>
> PUBLIC SUB Form_MouseWheel()
>   
>   IF Mouse.Control AND Mouse.Shift THEN 
>
> SELECT CASE Mouse.delta
>   
>   CASE 1 
>   PRINT "mouse wheel up"
>   CASE -1 
>PRINT "mouse wheel down"
> 
> END SELECT   
>
>   ENDIF 
>
> END
>
>   
Thanks, Stefano. That part works for me. It seems to require the form to 
have focus, though. Is there a way to make it work globally, regardless 
of which application has focus?

aumix doesn't work for me, unfortunately. Maybe it's because I use 
pulseaudio? I can execute the command, but the volume doesn't change.

Marc

--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Making an image button launch an executable?

2009-03-01 Thread Marc Carson
I'm just starting to learn Gambas and I'd like to know how to make an 
image-button launch an executable or a Bash script. I'd like to make a 
grid of buttons that I can customize in this way, each button with its 
own icon, sort of like how launchers work on the GNOME panel.

Is this doable? If so I'd love to hear any advice on how.

Thanks.

-- 
*Marc Carson* <mailto:m...@marccarson.com>

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Save file dialog prepends path to Name field?

2009-03-06 Thread Marc Carson
I noticed that the typical GTK "save" dialog shows the file name in the 
"Name" field, but my simple test in Gambas prepends a path, such as 
"/home/user/," to the file name in that field.

Is this correct behavior? It seems like it needs to be "fixed" because 
no matter which folder icon I click in the Save dialog, the prepended 
path will overrule it until I type the path in myself.

Here's the code I'm working with, from a tutorial:

PUBLIC SUB btnSave_Click()

  Dialog.Filter = ["*.txt", "Text Files"]
  IF Dialog.SaveFile() THEN RETURN
  File.Save(Dialog.Path, TextAreaEdit.Text)
CATCH
  Message.Error(Error.Text)
END



Gambas version 2.0.0, Ubuntu 8.04.

-- 
*Marc Carson*
Web Designer, Illustrator
Web: friendlyskies.net <http://www.friendlyskies.net/>
Email: m...@marccarson.com <mailto:m...@marccarson.com>

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user