2019-06-10 02:06 AM
as title say, my current project is getting a little messy, i'd like to reorder the Texts resources i've made so far. Any way to do that without deleting and recreate in the correct order all the resources?
Thanks
Stefano
2019-06-10 04:15 AM
Hello @Zui ,
I think you can reorder the texts and make changes in Excel file:
\TouchGFX\assets\texts\texts.xls
If you change the order there when you open touchgfx the order ir updated.
Hope this helps.
Regards.
Anderson
2019-06-11 12:56 AM
Hi @Zui,
As long as the keys remain the same you can re-arrange as much as you want. You reference the text keys (e.g. T_MY_TEXT_ID) in your code, and if you change the keys in the text-sheet then you also have to modify your code.
Keeping text sheet nice and clean can be a challenge as the project grows because it is difficult to design good names with prefixes or postfixes, etc, from the start.
/Martin
2019-06-13 01:18 AM
I may have misunderstood your question: If you open the text sheet (assets/text/texts.xlsx) you can reorder things there. If you don't have excel you can use openoffice or similar (google docs) to do it.
/Martin
2019-06-13 04:21 AM
openoffice can't save in xlsx, i must find a proper converter (tryed 3 so far, but converted bad and got error and touchGfx coudn't load the project with the modified texts.xlsx
2019-06-13 04:56 AM
Use Google docs. It can export as xlsx. I do it all the time.
/Martin