0 Members and 1 Guest are viewing this topic.
Edit : also, what about apilevel 2 documention ? (without the physics stuff, though)
if platform.isTabletModeRendering then if touch then -- maybe even : if touch and touch.enabled() then if not touch.isKeyboardVisible() then touch.showKeyboard() end endend
- 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?
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 ?
Edit 5 : You should put copy/paste in an "Edit" toolpalette.
Well, in the output script, reordering the things by hand would work ^^
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.)
- 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.1Edit : 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.)
function __mG.on.mouseUp() __mG.mouseDown=nil if platform.isTabletModeRendering and platform.isTabletModeRendering() then -- 3.4 detection -- toolpalette bug workaround platform.window:setFocus(false) platform.window:setFocus(true) if touch then if not touch.isKeyboardVisible() then touch.showKeyboard() end end endend
textBox=D2Editor.newRichText()...if textBox.setFontSize then textBox:setFontSize(size)end