1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2025-05-01 22:11:08 +00:00

Added text input

This commit is contained in:
Harley White 2021-04-26 22:43:36 -04:00
parent 919f30906e
commit 5e324fe59b
5 changed files with 30 additions and 4 deletions

View file

@ -360,7 +360,14 @@ function isPlainObject(obj) {
document.title = modInfo.name
// Converts a string value to whatever it's supposed to be
function toValue(value, oldValue) {
if (oldValue instanceof Decimal)
return new Decimal (value)
else if (!isNaN(oldValue))
return value.toNumber()
else return value
}
// Variables that must be defined to display popups
var activePopups = [];