lowne / xCodea

a live execution environment for large Codea projects
12 stars 1 forks source link

SaveImage("Project:Icon", myicon) sets xCodea's icon #3

Open elian opened 10 years ago

elian commented 10 years ago

Hi,

During testing of xCodea with one of my projects, I observd the following differences in behaviour of xCodea compared to the project run in Codea:

Note: I am using LDT for project edit on OS X 10.9.2 and xCodea runs on an iPad2.

2) Using the 'SaveImage("Project:Icon", myicon)' to set the icon of the Project actually is setting 'xCodea' Project's icon, not the tested Project's one.

Thanks, Elian Epstan

lowne commented 10 years ago

I found no "documentation" (official or otherwise) of the following suggestion, but it seems to work for me (Codea 2.0): SaveImage("Documents:NameOfProject.codea/Icon",myIcon). If confirmed to work, I can put a workaround in xCodea to do the conversion automatically for the "Project:Icon" idiom.

elian commented 10 years ago

Hi,

I tested the implementation in Codea2.0 and it works fine. In my understanding, Codea looks for an image file called Icon.png in each project's folder an uses this as the internal project icon. I tested this by copying the file in another project's folder on my iPad.

Thanks, Elian