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.


Messages - Levak

Pages: 1 ... 49 50 [51] 52 53 ... 68
751
TI-Nspire / Re: [Lua] Bobby Carrot
« on: July 03, 2011, 08:06:07 pm »
The emulator, in the "Linux" folder, contains only a bash script and a .EXE file... The script tries to execute the .EXE file, and it doesn't work.

You mean my package for Goplat's emulator (nspire-emu) ?

752
Lua / Re: Lua Q&A
« on: July 02, 2011, 03:30:20 pm »
Levak: you mean you can't set the focus on it? A quick try with a single D2Editor on the screen gets the focus on nspire_emu.
I can't. setFocus is a nil value :

Code: [Select]
function on.create()
editor = D2Editor.newRichText()
editor:move(50,50)
editor:resize(200,100)
end
 
function on.charIn(char)
currentText = editor:getText()
editor:setText(currentText .. char) --Add char to the editor
end
 
function on.enterKey()
on.charIn(string.char(10)) --Add a new line
end

function on.tabKey()
if focus then
focus = false
D2Editor.setFocus(false)
else
focus = true
D2Editor.setFocus(false)
end
end

But yes, if I type some keys, it enters the text, OK.

I have thus found another reason to not use the D2Editor : we can't delete it.

753
Lua / Re: Lua Q&A
« on: July 02, 2011, 10:35:14 am »
Try to use the class D2Editor.

[edit] sorry I missed jimbauwens's post.

jimbauwens, what's wrong with it? The scrolling?

Because we can't edit it on ClickPad ? (or even I'm stupid)

754
TI-Nspire / Re: [Lua] Bobby Carrot
« on: June 30, 2011, 08:18:20 am »
I understand...
Did you finish the level 50 ?

Yes =)

755
TI-Nspire / Re: [Lua] Bobby Carrot
« on: June 29, 2011, 06:59:45 pm »
@Levak
Yes, it's fixed now. I've just inverted the two buttons. Did you really do all the other levels ? :o

I've finished it like 15 times on my phone during 3 boring high shool years x)

756
TI-Nspire / Re: [Lua] Bobby Carrot
« on: June 29, 2011, 04:19:44 pm »
level 22 is impossible =)

757
Lua / Re: on.up() Event
« on: June 26, 2011, 04:24:13 pm »
on.up doesn't exist (unless you define it and make a function to call it).

Hm, it is listed in the Wiki, maybe I'll remove it.

Well, in a way, we hadn't found it function yet... but it is listed in the OS itself as a built-in function already handled (examining phoenix.bin). So it works for something. Because we didn't had the time to test it, we temporary put this description. I will look for it for now.

758
TI-Nspire / Re: [Lua] Space Invaders
« on: June 23, 2011, 10:37:47 am »
When you launch the OS the first time, you can choose your language. I'm sure most of French pupils select French language instead of English one.

759
TI-Nspire / Re: [Lua] Space Invaders
« on: June 23, 2011, 10:06:30 am »
because a lot of French people (including me) have their calc in English..

Wait wait wait .... what ??

760
[FR] Hors-Sujet / Re: Un RickRoll à la française?
« on: June 20, 2011, 03:54:22 pm »
* Levak se cache

761
Lua / Re: Lua Accessing Array
« on: June 20, 2011, 03:49:12 pm »
As the error says, you're trying to do a [C] for loop

In lua, it is :

for var = initial_value, end_value, [increment] do

like :

Code: [Select]
a = {{1,2},{3,4}}

print(#a)


for i=0, #a do
print(a[i][0])
end

but it is cleverest to do :

Code: [Select]
a = {{1,2},{3,4}}

print(#a)


for i, var in ipairs(a) do
print(i.." : "..var)
end

762
[FR] Hors-Sujet / Re: Un RickRoll à la française?
« on: June 20, 2011, 02:02:22 pm »
Après Rebecca Black :
&feature=player_embedded

763
Lua / Re: Lua Accessing Array
« on: June 20, 2011, 01:47:10 pm »
"blocks" ? Either I'm stupid, or I don't understand why you're trying to access to a nil table ...
In the case you wrote "a" instead of "blocks", it should return "1", not "2" because the Lua is in base 1 (contrary to C/C++/PHP/etc ... in base 0)

764
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: June 15, 2011, 02:43:02 pm »
like so ? :


* Levak loves Paint.NET

edit :
EPIC LOGO \o/
http://levak.free.fr/ftp/nspire/Make3D/logos/Make3D3.jpg

765
TI-Nspire / Re: [TI-Nspire] Make3D - TI-Basic to Lua
« on: June 14, 2011, 06:16:01 pm »
* Levak designed a logo concept with paint.NET for Make3D while doing his computer school project


Pages: 1 ... 49 50 [51] 52 53 ... 68