8,013
edits
Paradox-01 (talk | contribs) m (→Bulk import) |
Paradox-01 (talk | contribs) (dynamic text, ok fine, but how do I set image to "none" ?) |
||
Line 652: | Line 652: | ||
* text warping is not accurately working | * text warping is not accurately working | ||
* space for an image has to be planned in advance | * space for an image has to be planned in advance | ||
'''Text vs text box''' | |||
Because of the multiline feature I rushed to use a text box for static text. | |||
Reminder: While "Text" is for static text, "Text box" is for letting the user type his own text. | |||
It turns out the font color of "Text box" cannot be changed at runtime and a simple "Text" object does also has the multi-line feature. | |||
'''Dynamic text content''' | |||
We can either use | |||
: A) the "Set Text" node with a reference to the object or | |||
: B) bind the object to a text variable or function, making the code a bit shorter | |||
// ------------------------------------ move this to Pause Menu section at a later time | |||
When you insert text you have to compile (F7) before you see the result. | When you insert text you have to compile (F7) before you see the result. | ||
Line 674: | Line 695: | ||
Variables that track active pages are destroyed as the widget is closed. If we want to resume reading after reopening a menu the variable values should have been copied to somewhere else. If we put them into character variable then we can easily restore those values even after a level loading. | Variables that track active pages are destroyed as the widget is closed. If we want to resume reading after reopening a menu the variable values should have been copied to somewhere else. If we put them into character variable then we can easily restore those values even after a level loading. | ||
// --------------------------------------------------------------------------------------------------------------------- | |||
=====Bulk import===== | =====Bulk import===== |
edits