![]() What you get with "" pairing after hitting the quote key once is It would be nice if they would only pair IF NO text followed the first ".īut needed to covert something to an actual string(maybe you copied an pasted the data from some source without quotes): With 100% greedy delete and backspace it takes one keystroke to form the line above.Īnother suggestion is "", etc pairing. In which case you have to delete the 2nd ". In fact, it would be nice for it to autoquote the whole string OR simply not pair the ""'s.Access for Microsoft 365 Access 2021 Access 2019 Access 2016 Access 2013 Access 2010 Access 2007 More. Short Text and Long Text fields (also called Memo) are perhaps the most commonly used Data Types. This is what you should see if you did everything right.With text formatting you have two choices: keep the default formats or create a custom format. add both to stage(screen) so we can see them for oneMoreTextField we set all kinds of properties - position, color (in HEX), rotation. for myTextField we only set the position of the text on screen Local oneMoreTextField = TextField.new(myfont, "How are you?") Local myTextField = TextField.new(myfont, "Hello World!") create 2 text fields with text "Hello World!" and "How are you?" which use myfont Local myfont = TTFont.new("orange juice 2.0.ttf", 48) We define the font we will use and set the size to 48 Now replace/modify your code so it will look like this(comments in the code): ![]() Right click on the HelloWorld project icon and select Add Existing Files. Download this font from and extract it to your HelloWorld project folder. Think of stage as screen for now so everything that we want to display will have to be added to stage as its “child”. In all our previous lines we just created textfield, set its parameters but we have to display it on our screen. In this case we simply set the position of our textfield to appear on screen (X=40, Y=100). Our myTextField is now TextField object so we can access and use/set all kinds of methods, events and properties. We assign this to local variable myTextField. Word nil just means that Gideros will use the default font. What we do here is create new text field object with the text Hello World!. local myTextField = TextField.new(nil, "Hello World!") Please check some Lua tutorials on net for more. In Lua you start one line comments with. Let me explain this line by line - a script Great, your first mobile app is finished! Save it, run Player and you will see text “Hello World” displayed there or on your smartphone (you have to run the Gideros app on your smartphone first of course). Local myTextField = TextField.new(nil, "Hello World!") Delete the code in our editor and add this : This takes few more lines but it is still easy. “Hello World” on Gideros Player / Smartphone There is our hello world! Of course this is handy when we need to debut or test something but what we want is this text to appear on Player or our smartphone. But check the Output window and you will see something like this: ![]() Program will execute and… nothing will happen on Player. Start the the local player (Player->Start Local Player) and press play button on Gideros menu. Double click it so it opens in the editor. This is how you will add new code files to your project. Right click on the HelloWorld project icon and select Add New File as seen below: Name the project HelloWorld and browse to directory where you want to store your projects and click OK. Start Gideros(Gideros Mobile Studio) and select File->New Project from menu. We will create 2 versions of “Hello World” – one that prints to console and one that prints to your mobile device phone screen (or Gideros Player). Again, I am just learning Lua too so you don’t need to be master Lua to follow this tutorial. I am assuming that you are a developer who knows at least one language and have a basic understanding of how programing works. Every tutorial starts with “Hello World” and who am I to break this tradition? □ Please keep in mind that I will not be teaching Lua language, concepts of Objects, functions etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |