Last active
December 26, 2022 02:57
-
-
Save shimeji87/ff616b18321d962e308e42bcfe2fb37b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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