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 - Jens_K

Pages: 1 ... 8 9 [10] 11 12 13
136
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 30, 2013, 03:35:54 pm »
And finally (after 2 days) it's up on ticalc.org here:
http://www.ticalc.org/archives/files/fileinfo/454/45484.html

137
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 28, 2013, 03:43:27 pm »
:hyper: IT'S FINISHED!!! :hyper:
Version 1.0 is now attached to the first post!

There are only small improvements from Version 0.4.4, but this is the final version!
It's the last version for now, but I already have ideas for 2.0!

Thanks to all who helped and supported me!

138
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 28, 2013, 09:52:05 am »
I don't get luna to work, I guess it's because I installed everything on my HDD while my SSD is my system drive. I'll just include two versions then:
- "apilevel1 OS 3.x" with "platform.apilevel='1.0'"
- "apilevel2+ OS 3.2+" without an apilevel setting
If I get it to work some day or find another way I'll update the file.

@AnToX98: Yes, 6 weeks holiday + Jens + Music = great programming progress :D

139
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 27, 2013, 03:17:07 pm »
Well, I guess not (I noticed that running a program made in OS 3.2 wont work on nspires with OS 3.0/3.1 without setting the apilevel to 1.0) but where do I get a 3.1 software to add page 1.2? And another question: I used "if touch and touch.isKeyboardAvailable then" somewhere; is that right or is "touch.isKeyboardAvailable" a function?

140
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 27, 2013, 01:18:40 pm »
I think the program is finished, does everything work now? If so, then I'll compile it with Luna and then upload to ticalc.org.

Edit: Would there be problems if I'd just leave out setting the apilevel and don't compile with Luna? I tested it with apilevel='1.0' and '2.0'

141
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 25, 2013, 08:31:47 pm »
Update!
Version 0.4.4 is now attached to the first post!

Really small update here:
- apiLevel='2.0' functions added to the Reference Guide
- enhanced "About" Messagebox
- No improvements/bugfixes this time >:D

I hope this is one of the last versions, I actually have nothing left to do! :D
Special thanks to the TI-Planet user Lionel Debroux who keeps posting translations of the changelogs on the article of AnToX98 ;D (Yes, I'm still keeping an eye on it ;))

142
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 25, 2013, 10:25:30 am »
UPDATE!!
Version 0.4.3 is now attached to the first post!

New features:
- fully compatible to iPad (hopefully):
   - if on iPad, menu item "Script Editor" with special features gets attached to every user menu
   - Accept/Cancel Messages/Dialogues by clicking on/outside them
   - Improvements for Keyboard
- Copy/paste options now in the "Code" menu
- Controls layout option "no button rebindings" added
- Various bugfixes and Improvements, e.g.:
   - Messageboxes now look right in the desktop view
   - Menu items of the API Reference Guide are now sorted alphabetic

After I lost the work of hours on the content update of the Reference Guide to apiLevel='2.0' because of a stupid infinite loop I decided to ragequit and continue tonight ;)

143
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 06:24:45 pm »
@adriweb: Ok, then thank you for all your feedback and help! I think we'll get this to work on an iPad :D (after we filled like the whole page 5 in one day ^^)
Good night, I'll continue tomorrow!

144
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 06:06:07 pm »
- About the "Esc" key: Which Key would be good?
- I forgot to ask: Are there characters like "[]" and "{}" on the ipad keyboard or do I have to do a "ipad layout" with better rebindings?
- About the toolpalette, thats the plan:
...
__mG.oldTPregister = toolpalette.register
function __mG.newTPregister(menu)
    table.insert(menu,{"Script Editor",{"Return",__mG.reloadSEhandlers}})
    __mG.oldTPregister(menu)
end
...
function __mG.runCode()
    toolpalette.register=__mG.newTPregister
    ...
end
...
function __mG.reloadSEhandlers()
    toolpalette.register=__mG.oldTPregister
    ....
end

No problems here :D and no time to be tired! It's time to work (Update 0.2 was released 3 am XD)

145
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 05:17:20 pm »
@mdr1:
- Thanks but please note that I didn't wrote it myself, it's from the official TI-nspire API Reference Guide
- Oh, thanks for the report, I'll fix it!
- "Maybe .2 because of support for 0S 3.2? Or for the new page 1.2?" Yeah, that's exactly what I meant... ;)

@adriweb: Thanks for the code, I'll implement those fixes tomorrow (Much to do tomorrow ;) ) but with your current code, if the user would change the menu somewhen after initialisation, the escape option would be overwritten. But I could redefine/modify toolpalette.register to add that menu item every time the user creates a new menu.

Edit:
In the Reference Guide I used
Code: [Select]
textBox=D2Editor.newRichText()
...
if textBox.setFontSize then
    textBox:setFontSize(size)
end
Is this right? I'm a bit confused because of ./:

146
TI-Nspire / Re: Minecraft 2D for TI-Nspire
« on: July 24, 2013, 05:09:13 pm »
Hi, well it's been a while since the last time I posted somthing here, because I was working on my lua editor, but as you can see in my signature, it is nearly finished, so I'll get back to work on Minecraft soon...
About the clickpad: I haven't thought about it while developing... The best way to make it compatible now is moving the block-selection with the num-pad, I'll do that for the next update.
Btw. how's the performance on older devices? I only have a CX...

147
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 04:35:45 pm »
When you paste, you are waiting for an event like a click to occur, what about just showing the pasted text as soon as it's done ? ;)
Yeah, I'll fix that

Edit 5 : You should put copy/paste in an "Edit" toolpalette.
Ok, I'll do that

Well, in the output script, reordering the things by hand would work ^^
Yeah, but... work :( ok, I'll do it

Yes there is. I guess it can work, I haven't tested. However, the thing is : How do I access the keyboard on the iPad, while in the user's script ? ;)
Maybe you'll have to force a toolpalette with a "Back to Editor" function, or force the "EE" key (backing up the user's on.charIn, handle the EE button, then let the user's charIn resume/continue.)
Maybe I'll just leave the Keyboard up and when the event on.keyboardDown() is fired, it'll automatically return to the editor because <epic> the last chance of return was destroyed </nonsense>

- Don't put any platform.apilevel at the top of the script source
- make a bunch of tests for the functions that are new in 3.2 and 3.4. (the if you made, that's good. However you dont need if on.resize, that exists on all versions.  ; whatch out with on.create/on.construction. in on.construction all the API isn't ready yet. if you need some API things in it, reconsider this by making init codes within on.resize for example)
- compile the .lua file with Luna to get a .tns working with any 3.x OS.
- make any change to the .tns with a 3.1 software if needed (here, adding the tab 1.2...) .
- Save under OS/software 3.1

Edit : watch out for the screen size available when the keyboard is up, on the iPad. There are some functions that will help you here : http://wiki.inspired-lua.org/Changes_in_OS_3.4 (platform.window:getScrollHeight() etc.)
Ok, I'll see what I can do here...

Edit: Can you please post the video here so I can see the situation?

148
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 04:06:51 pm »
- At the moment the contend is save like this: content["Graphics"]["drawString"]=... and the menu is created via pairs(content) and the pairs function doesn't sort in any way... I'look what I can do here.
- Ah, didn't know that I have to trigger the keyboard, that'll defenitely be in the update tomorrow
- About the button, I found that picture on the TI website:

There is a EE button on the right, doesn't that work?
- I'm still a bit confused about setting the api level: What do I have to do that the editor runs on older OS (3.0-3.1) but also executes newer functions?

149
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 03:36:12 pm »
Edit : also, what about apilevel 2 documention ? (without the physics stuff, though)
I made the content when I didn't know that apilevel 2 functions can be available in apilevel 1 and now I forgot to add them... Update tomorrow :P

150
TI-Nspire / Re: Jens' Script Editor - An on-calc lua editor
« on: July 24, 2013, 03:02:43 pm »
UPDATE!!
Version 0.4.2 is now attached to the first post!

New features:
- API Reference Guide on page 1.2
- Full compatibility to OS 3.2
- Full compatibility to the desktop view
- Mouse based selection
- Various bugfixes and improvements

Why .2? I don't know ;D but I know this will be one of the last development versions (maybe the last) :D

@Jim Bauwens: Do mean saving the contend of the API Reference Guide as a library? It's only 10KB do you think this is worth the effort?
@Legimet: Open the tns in the student software and there click "insert"==>"Script Editor"==>"Edit Script"

Pages: 1 ... 8 9 [10] 11 12 13