Problems customizing HTML exporter

Discussion and feedback on Construct 2

Post » Mon Jun 20, 2016 4:35 pm

Hi guys, I´m trying to put a border on my html5 exported games. So I got to C:\Program Files\Construct 2\exporters\html5\templates and changed the style to
Code: Select all
   <style type="text/css">
      #c2canvasdiv
      {
         border:thick;
         border-style:ridge;
      }
   </style>

if I put this code in the index.html it works, but I dont want to do that every time I export, so I changed export.html directly, but it seams tha C2 override this file every time, so where can I put a default CSS code to my exported games ?
Be nice with others and with yourself!
My musics: https://soundcloud.com/vinians
My C2 Forum:
http://nmbr.forumeiros.com/
My Site:
http://www.dicasebytes.com.br
B
22
S
5
G
6
Posts: 167
Reputation: 4,949

Post » Tue Jun 21, 2016 2:01 pm

Vinians wrote:Hi guys, I´m trying to put a border on my html5 exported games. So I got to C:\Program Files\Construct 2\exporters\html5\templates and changed the style to
Code: Select all
   <style type="text/css">
      #c2canvasdiv
      {
         border:thick;
         border-style:ridge;
      }
   </style>

if I put this code in the index.html it works, but I dont want to do that every time I export, so I changed export.html directly, but it seams tha C2 override this file every time, so where can I put a default CSS code to my exported games ?

I didn't try this out yet but I think it could be possible using the CSSimport plugin.
ImageImageImageImage
B
56
S
21
G
77
Posts: 636
Reputation: 43,961


Return to Construct 2 General

Who is online

Users browsing this forum: Brendan2007 and 10 guests