Skip to content

Commit

Permalink
Merge branch 'feature/refactoring-help' of https://github.com/ONLYOFF…
Browse files Browse the repository at this point in the history
…ICE/web-apps into feature/refactoring-help
  • Loading branch information
OVSharova committed Jun 11, 2022
2 parents b1443b2 + 74721b2 commit d3d9d42
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 326 deletions.
263 changes: 0 additions & 263 deletions apps/common/main/resources/help/helpsprite.py

This file was deleted.

30 changes: 0 additions & 30 deletions apps/common/main/resources/help/instruction.txt

This file was deleted.

30 changes: 0 additions & 30 deletions apps/common/main/resources/help/readme.txt

This file was deleted.

25 changes: 22 additions & 3 deletions translation/help/helpsprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,19 +228,27 @@ def createSprite (dirName, adrSprite, cssClassName, urlDirImage):
strCSS += "\twidth: "+ str(gp.blocks[i].get_width())+"px;\n\theight: "+ str(gp.blocks[i].get_height())+"px;\n}\n\n"
spriteFile.write(strCSS)
spriteFile.close()
img.save(adrDir + dirName +".png",'PNG')


imgPath = adrDir + dirName +".png";
img.save(imgPath,'PNG')

print('created sprite', imgPath)
print('created styles', adrSprite)

#crreate all sprites
for index_editor in range(len(pathEditors)):
adrDir = PATH_WA + pathEditors[index_editor] + PATH_HELP
print('start for', adrDir)

spriteName = adrDir + NAME_CSS
isCommon = (pathEditors[index_editor]=="common")

if(isCommon):
spriteName = adrDir + NAME_SMB_CSS
spriteName = adrDir + NAME_SMB_CSS

if(path.exists(spriteName)):
remove(spriteName)

if(isCommon):
createSprite(spriteSmbDirName, spriteName, cssClassSmbName, "../../../../../common/main/resources/help/images/")
else:
Expand All @@ -249,4 +257,15 @@ def createSprite (dirName, adrSprite, cssClassName, urlDirImage):
spriteFile.close()
for index_spr in range(len(spriteDirNames)):
createSprite(spriteDirNames[index_spr], spriteName, cssClassNames[index_spr],"../images/")

print("done!\n")










Loading

0 comments on commit d3d9d42

Please sign in to comment.