Comments (1)
Bit late (sorry!) but I looked into this and it seems that Text uses a bitmap font (defined in kenneytheme\fonts and kenneytheme\kenney.json), which I think means you can't easily change colour on-the-fly.
I managed to get an alternate font colour by editing the .png file in \fonts. If you want to use multiple colours you'll need to add a line to kenney.json, but then you'll also need to specify which font you're using every time you create a Text object, otherwise the font won't render.
My first thought was that it doesn't default to the first one in the array, but line 89 in Text.js does exactly that. I'll have a look today and see if I can figure it out.
from slick-ui.
Related Issues (20)
- basic & minimum unit testing coverage HOT 1
- license? HOT 4
- multiple sliders on a page do not get move callback HOT 2
- Vertical Slider (new Feature) HOT 3
- Scrollbar in containers
- how to hide/delete panels / elements? HOT 2
- Update button/element text and/or destroy panel? HOT 4
- Slider fixed to camera HOT 1
- Slider handle snaps to position onDragStop
- Texture Atlas support HOT 2
- How do you bring a panel to top HOT 3
- Upload to npm? HOT 6
- Keyboard not hiding when parent.visible = false
- slick-ui.js
- Borders as offset
- Phaser 3 support? HOT 2
- last working version that works with Phaser CE is from August 22, 2016?
- phaser object variable name
- can't add "Panel"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slick-ui.