android
  #1  
Old 09-26-2010, 02:23 PM
xXFuchs13Xx xXFuchs13Xx is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Default Push Me

Sorry but my English isn't very well.
I want to build a programm which have only one button and a textbox.
In c# i can do it but in lua i have no idea. Can i only copy the source code or must i do something other like a button or else.
the app is a game which is in my alculator you ppush the button and then a number in the textbox rise one up. I want to do it because in school is me boring.
Here is the Code from C#
And how can i programm a button and a textbox in lua?
And can I built a webbrowser for html file i have written self I want to copy the code from this game and make a webbrowser that can open this is it possible or not?
sorry but this game is in german http://jundm-event.de/spiel_quadrat.html
Reply With Quote

Advertisement [Remove Advertisement]

  #2  
Old 09-26-2010, 02:25 PM
xXFuchs13Xx xXFuchs13Xx is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Default

In this game you have to help the box and have to alive mor than 18 seconds or go to google translator to translate the text
Reply With Quote

  #3  
Old 09-26-2010, 02:31 PM
xXFuchs13Xx xXFuchs13Xx is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Default

my record in this game is 22 seconds and in push me on my calculator 88000 can i built and save button for it like in visual basic
Reply With Quote

  #4  
Old 09-26-2010, 02:33 PM
xXFuchs13Xx xXFuchs13Xx is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Default

here is the code from push me
if (textBox1.Text == "")
{
textBox1.Text="0";
}
else
{
plus = true;
textBox1.Tag = textBox1.Text;
textBox1.Text = "";
decimal dec = Convert.ToDecimal(textBox1.Tag) + Convert.ToDecimal("1");
textBox1.Text = dec.ToString();

}
Reply With Quote

  #5  
Old 09-26-2010, 03:54 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,081
Default

[Thread moved into appropriate section]

Also, I suggest you check this wiki out, if you know how to program otherwise this will tell you which functions are available to us: http://en.wikipedia.org/wiki/User:Thieving6/X-FI_2_Lua

And also look at some other people's codes to learn how to lay the code out. I suggest some simpler app like: Easy Button

Also, I am not sure what you mean with the web browser and html things... If you want to try and connect to the internet, then that is a no since there is no hardware for that.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

  #6  
Old 09-27-2010, 12:17 AM
xXFuchs13Xx xXFuchs13Xx is offline
Junior Member
 
Join Date: Sep 2010
Posts: 5
Default

I want to programm an offline webbrowser to open html file that you have on your x-fi2. If you have a game like this what i want and it is in html then you can play it on your x-fi2 because it have no wifi than you can do it with this.
Reply With Quote

Reply

Tags
game

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 06:25 AM.