Products Panel usable
This commit is contained in:
1 parent
257abd0110
commit
c930c9af05
3 files changed
+16
-3
No files matched your search
+12
-1
@@ -134,7 +134,7 @@ function newProductCard () {
|
||||
}
|
||||
|
||||
thisObject.container.frame.position = position
|
||||
thisObject.container.frame.width = UI_PANEL.WIDTH.LARGE - 20
|
||||
thisObject.container.frame.width = UI_PANEL.WIDTH.LARGE
|
||||
thisObject.container.frame.height = 100
|
||||
|
||||
/* We retrieve the locally stored status of the Product */
|
||||
@@ -346,6 +346,17 @@ function newProductCard () {
|
||||
}
|
||||
}
|
||||
|
||||
let label1 = label
|
||||
let label2 = 'ON'
|
||||
let label3 = ''
|
||||
|
||||
let icon1 = canvas.designerSpace.iconCollection.get('oscillator')
|
||||
let icon2 = canvas.designerSpace.iconCollection.get('poloniex') // canvas.designerSpace.iconByUiObjectType.get(thisObject.payload.node.type)
|
||||
|
||||
let backgroundColor = UI_COLOR.BLACK
|
||||
|
||||
drawScaleDisplay(label1, label2, label3, 0, 0, 0, icon1, icon2, thisObject.container, backgroundColor)
|
||||
|
||||
/* ------------------- Progress Bars -------------------------- */
|
||||
|
||||
const ANIMATED_INCREMENT = 5
|
||||
|
||||
@@ -494,7 +494,7 @@ function newProductsPanel () {
|
||||
function draw () {
|
||||
if (isInitialized === false) { return }
|
||||
|
||||
thisObject.container.frame.draw(false, false, true, thisObject.fitFunction)
|
||||
thisObject.container.frame.draw(false, false, false, thisObject.fitFunction)
|
||||
|
||||
for (let i = 0; i < visibleProductCards.length; i++) {
|
||||
visibleProductCards[i].draw()
|
||||
|
||||
@@ -215,7 +215,9 @@ function newDesignerSpace () {
|
||||
'oscillator',
|
||||
'moving-average',
|
||||
'histogram',
|
||||
'band'
|
||||
'band',
|
||||
'volume',
|
||||
'candles'
|
||||
]
|
||||
|
||||
for (let i = 0; i < iconsNames.length; i++) {
|
||||
|
||||
Reference in new issue
Block a user