Search the Community

Showing results for tags 'style'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 9 results

  1. Hi! I'm doing a thing in pixi (actually, in it's dart port (https://github.com/FedeOmoto/pixi) but that should be the same for the purpose of this question) and I'm using its text features (http://www.goodboydigital.com/text-updates/). I understand that before rendering a text, you set the style in which to render it, and that the style includes many different things like color, align and font... What I don't get is: where do the fonts come from? In the provided example, they used 'Arial' font and I know for sure that you can use 'Snippet' font as well. Is there any list of all available fonts I can choose from? And will these fonts work the on every machine?
  2. I know that I need to use .buttonMode = true and .defaultCursor = "inherit", but I want to change the cursor to an image (like in CSS). defaultCursor = "url(http://www.image.com/jpeg.png)" doesn't seem to be working. How can i achieve this?
  3. Hi there! My name is Alexsey I am an illustrator from Russia, St. Petersburg and I do 2D art for mobile games and appsI specialise in illustration and character design but also do backgrounds, UI, simple frame-by-frame animation, icons, promo materials and everything in between.Mostly I work with raster based graphics to hire me write at :trampiton@gmail.comskype: trampiton here are some samples of my work Thanks for watching and have a nice day!
  4. Hey there, I would like to have a single text object with multicolored text and various styles. I want to use it for chat, where name of user who posted message is highlighted with different color. This would be rather easy for single line or if the multiline text could be in separate "column", but since my space is very limited, I need to have the user's name as a part of the text so that new line starts where the name starts. You can see clearly what I mean in following screenshot (the part on the right side): Ideally I would like to be able to achieve the thing on the left as well (multiple styles wherever) The Text object supports only one style AFAIK, is there any workaround I could use (for example rendering DOM element into texture, I could use css to style my text and then render it to texture that would be displayed instead of the Text object)?
  5. Released a new library for haxe code analysis which can easily be integrated with Hudson/Bamboo, etc. https://github.com/adireddy/haxe-checkstyle Any comments/suggestions, please let me know.
  6. Hi, I am trying to format a specific part of a Phaser.Text object as a superscript. I am using TypeScript in the project. For example: var question: Phaser.Text = this.add.text(0, 0, "3x2", { font: "24px Arial", fill: "#000", align: "center" });Looks like: 3x2 But I want it to look like: 3x2 Unfortunately String.prototype.sup() is depreciated. How would I get this result? I know I can use the <sup> tag, but am not sure how to use this in a Phaser.Text object. Thank you.
  7. function generate_hex(){ return '#'+((0.5 + 0.5*Math.random())*0xFFFFFF<<0).toString(16); } var style = { font: "24px Arial", align: "center" }; var texts = game.add.group();var text = 'hello';for(var i = 0; i < 5; i++){ (function(t){ // var t = game.add.text(10, i * 25, text, style); t.fill = generate_hex(); texts.add(t); })(game.add.text(10, i * 25, text, style) )} Idea that I want five lines of text with various color. Problem that all 5 text lines has one color - last that generate_hex function generate. I know this kind of problems happens in loop - that's why I using scope. But it is not helping now. Please help
  8. Do you guys have any plans on text formatting functionality? Being able to have different text styles in one Pixi text object. For example: This is a bold string and an italic string as well as the strikethrough within a single Pixi text object. Also, do you guys plan on adding different orientation support (like vertically oriented text for oriental characters)? Thanks for the great work you guys are doing.
  9. So, the documentation on Text objects has a "style" parameter that is described as: The style object containing style attributes like font, font sizeWhat exactly are all the supported style attributes and are they listed somewhere?