Prev Previous Post   Next Post Next
Old 12-30-2010, 07:11 PM
WooDChecker's Avatar
WooDChecker WooDChecker is offline
Junior Member
Join Date: Dec 2010
Location: Germany
Posts: 35
Default How to make a Button in LUA?

Hello people.
First ive to say my english is not the best (Im from Germany).
Hope you understand me. About one week ago I bought a ZEN X-fi 2 and Im really interested in programming apps for my ZEN. So I found this Website and downloaded some apps. Very cool thing btw.
Yesterday I looked at the code from: LINK. Now my problem is I dont know how to add a another button to it. I want to add two buttons they control the volume of my app. The functions are finished:

function volPlus()
    local volOld = audio.volume()
    if(volOld < 25) then
        audio.volume(volOld + 1)

function volMinus()
    local volOld = audio.volume()
    if(volOld > 0) then
        audio.volume(volOld - 1)
But how can I add these two functions to my two buttons??
I hope you guys can help me with that.

-sincerely Wood
Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:24 PM.