Then your new updated code was loaded into RocketCake. Right-Click into this Window and select "Reload All Extensions". Then let RocketCake reload the component: You can adjust it to write out any code you want.Īdd another line into the onWriteHTML like this: In the code, you can see the onWriteHTML function. Also, you are able to change the background color and style and position of the component in the editor easily. You can create it in the editor, and in preview mode, it should generate the text which you select in the property window under "text". When you then start RocketCake, a new component named "test" should appear at the bottom of the components. RcWriteCode(rcHTMLEncode(rcGetElementProperty(me, "text"))) called when HTML Code needs to be generated RcSetElementProperty(me, "BackgroundMode", 0) // 0 = none, 1 = color, 2 = image, 3 = gradient RcSetElementProperty(me, "Size", "50%, 22") called at the start, so all default settings can be set here Supported types are: int, float, string, bool, color, rect The following embedded xml is for the editor and describes how the component can be edited: This is a scripted rocketcake component (In Notepad++ click the Menu Language -> J -> Javascript, in VisualStudio code click the button on the bottom right which is named "Plain Text" and select "JavaScript" Set the language of this file to Javascript so that you get the correct syntax highlighting.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |