mirror of
https://github.com/lxsang/Diya-API.git
synced 2024-12-26 03:18:22 +01:00
f61e17de9c
Some checks reported errors
gitea-sync/Diya-API/pipeline/head Something is wrong with the build of this commit
22 lines
507 B
Smalltalk
22 lines
507 B
Smalltalk
Class {
|
|
#name : #DiyaDefaultSystemLoader,
|
|
#superclass : #DiyaLoader,
|
|
#instVars : [
|
|
'progress'
|
|
],
|
|
#category : #'Diya-Applications'
|
|
}
|
|
|
|
{ #category : #initialization }
|
|
DiyaDefaultSystemLoader >> updateLayout [
|
|
|xtent|
|
|
xtent := DiyaRenderer resolution.
|
|
progress ifNil:[progress := node addNode: (DiyaLoadingBar new) at: 20@((xtent y >> 1) - 50)].
|
|
progress extent: (xtent x - 40) @ 20.
|
|
]
|
|
|
|
{ #category : #scheduling }
|
|
DiyaDefaultSystemLoader >> updateProgress: name percent: p [
|
|
progress percent: p
|
|
]
|