HaxeFlixel / HaxeFlixel/flixel

Lock Screen From FlxBasePreloader Doesn't Have Spaces In The siteLockBodyText.

Open
#2,448 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Haxe
Stars
2.2k
Forks
522
Avg merge
34m
Merged PRs (30d)
1

Description

  • Haxe version: 4.3.0-rc.1+5e0a029
  • Flixel version: 4.10.0
  • OpenFL version: 9.1.0-LqBuHo
  • Lime version: 7.9.0
  • Affected targets: Web

Code snippet reproducing the issue:

import flixel.system.FlxBasePreloader;
import flixel.system.FlxPreloader;

class Preloader extends FlxPreloader
{
	override public function new(MinDisplayTime:Float = 0, ?AllowedURLs:Array<String>):Void
	{
		super(0, ["https://rafplayz69yt.itch.io/trash-hook"]);
		siteLockTitleText = "Not poggers :(";
		siteLockBodyText = "Ok this is not epic as you did a not pog move there partner.\n I will cancel you on my twitter.com and you will suffer by the hands of the world.\nGood luck.\n also here is the link so you can be poggers :)";
	}
}


Observed behavior:
image

Expected behavior:
I expected the words to have spaces between them.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at FlxBasePreloader and the siteLockBodyText rendering path, using the supplied FlxPreloader subclass to reproduce the problem on the Web target. Done means the lock-screen message preserves spaces and line breaks as entered in the example.

Written by the indexing model from the issue text.

Assessment

Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.