I just moved the repository. Now you can find it here:
- c3plugins.stranianelli.com/html-element
- github.com/el3um4s/construct-plugins-and-addons/tree/master/html-element
I just moved the repository. Now the linked image is here:
c3plugins.stranianelli.com/html-element/images/test/2019-05-17-test.PNG
I just moved the link to the sample file. Now you can download it from
c3plugins.stranianelli.com/html-element/download/demo/workaround-2020-02-16.c3p
raw.githubusercontent.com/el3um4s/strani-anelli-blog/master/_posts/2020/2020-02-20-come-aggiungere-stili-css-a-input-text-con-construct-3/text-input-css-vanilla.c3p
If you have only one TextInput to stylize, you can use only vanilla Construct3
You are right. There is a bug because of a Construct 3 update but I don't know which version broke this plugin.
This is a demo with a temporary workaround:
github.com/el3um4s/construct-html-element-plugin/blob/master/download/example/Workaround-2020-02-16.c3p
github.com/el3um4s/construct-html-element-plugin/raw/master/download/example/Workaround-2020-02-16.c3p
Can I ask you why are you using this plugin instead of Text Input? You can style TextInput with CSS
Because you can do this via Vanilla C3. Add a JS script in the editor and insert this
runOnStartup(async runtime =>
{
runtime.addEventListener("beforeprojectstart", () => LoadExternalScript(runtime));
});
async function LoadExternalScript(runtime)
await runtime.assets.loadScripts("https://apis.google.com/js/api.js");
await runtime.assets.loadScripts("https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js");
}
I think it's better to use the official way instead of a custom option that replicates the official one.
Enjoy your holiday, and welcome to Italy :)
Hi macube, LuisCGForte
Finally I can work on this bug. And I decided it's time to deprecate this addon and start a new version. I hope the 2.0 version will be simpler and... better :)
If you like, you can try the very first version.
construct.net/en/make-games/addons/317/css
online demo:
el3um4s.github.io/construct-inject-css-plugin/version%202/demo/test
I deleted a lot of "actions": I think they were redundant.
Let me know if you need some of the actions I cancelled.
Ok thanks
I don't know why he makes this warning.
If I can check tonight or tomorrow. In any case, I think I'll check in September, when I come back from my honeymoon.
"New scripting examples 'Simple alert', 'Simple keyboard movement', 'Local storage' and 'Integrating events with script'"
I hadn't noticed before the possibility of using "localVars" to pass values between scripts and the event sheet.
Thanks for these examples: they are very useful.
Are you referring to FreeCodeCamp test?
See an image like this?
raw.githubusercontent.com/el3um4s/construct-html-element-plugin/master/img/2019-05-17-test.PNG
This test refers to FreeCodeCamp. I only added it to illustrate how to insert script js from a different source.
The script is loaded using a different plugin: InjectCSS.
What project are you testing?
You can check the demo projects in github: there are some links to online versions ( el3um4s.github.io/construct-html-element-plugin ).
Thanks, you're welcome
I just tested on my android phone and it works. You can check the demo projects in github: there are some links to online versions (https://el3um4s.github.io/construct-html-element-plugin/).
Note
The Markdown editor is only for large screen: I have not implemented in this project the smartphone version.
Member since 9 Nov, 2015