Skip to content

Instantly share code, notes, and snippets.

@shimeji87
Last active December 26, 2022 02:57
Show Gist options
  • Save shimeji87/ff616b18321d962e308e42bcfe2fb37b to your computer and use it in GitHub Desktop.
Save shimeji87/ff616b18321d962e308e42bcfe2fb37b to your computer and use it in GitHub Desktop.
// VARIABLES
var hologramColorInput:FlxUIInputText;
// UI INITIALIZATION
hologramColorInput = new FlxUIInputText(120, 200, 100, "", 8);
hologramColorInput.focusLost = () -> {
FlxG.save.data.hologramColor = ClientPrefs.chartingHologramColor = Std.parseInt('0xFF' + hologramColorInput.text.replace('#', ''));
dummyArrow.color = FlxG.save.data.hologramColor;
}
hologramColorInput.text = Std.string(StringTools.hex(ClientPrefs.chartingHologramColor));
blockPressWhileTypingOn.push(hologramColorInput);
var hciLabel = new FlxText(120, 180, 0, "Placement Hologram Color (#RRGGBB)");
// then add them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment