mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-14 07:47:29 +08:00
Byte pin type
This commit is contained in:
@@ -8,10 +8,8 @@ import INumericInputPinTemplate from "./INumericInputPinTemplate"
|
||||
export default class IntInputPinTemplate extends INumericInputPinTemplate {
|
||||
|
||||
setDefaultValue(values = [], rawValues = values) {
|
||||
let value = parseInt(values[0])
|
||||
const integer = this.element.getDefaultValue(true)
|
||||
if (!(integer instanceof IntegerEntity)) {
|
||||
throw new TypeError("Expected DefaultValue to be a IntegerEntity")
|
||||
}
|
||||
integer.value = values[0]
|
||||
this.element.requestUpdate("DefaultValue", integer)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user