TOUR
PRICING
HELP
Stencylpedia
Blocks Guide
Sample Games
Developer Center
FORUMS
CHAT
#MADEINSTENCYL
EDUCATION
SIGN IN
×
Welcome back!
Username or E-mail
Password
(
Forgot?
)
C
OMMUNITY
Home
Issue Tracker
Inbox [0]
New Posts
New Replies
Search
Stencyl Community
→
Stencyl
→
Ask a Question
→
Can you add a CSS file to an extension
Pages:
1
Can you add a CSS file to an extension
designpeg
Posts: 731
November 27, 2019, 02:24:27 pm
I'm building an extension -works in html only, and I want to include a stylesheet.
I've worked out how to include my .js file by putting it in a file named dependencies, and putting the path in the include.nmml file. I was hoping I could do something similar with a css file? Anyone know if this is possible?
SadiQ
Posts: 1795
November 28, 2019, 01:25:43 am
Can't you change things from your .js file?
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.
designpeg
Posts: 731
November 28, 2019, 06:16:46 am
Hi, I've already got a work around, I can change styles from my js file, or I can manually add a css file to the template in plaf/templates/html but I was keen to have everything self contained in the extension.
rob1221
Posts: 9473
November 28, 2019, 06:58:41 am
You can use the template tag which will replace the default template with the one in the extension.
<template path="templates" />
https://twitter.com/Rob1221dev
Pages:
1