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:
parent
919f30906e
commit
5e324fe59b
5 changed files with 30 additions and 4 deletions
js
|
@ -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 = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue