'ifnot' template property + hpp

This commit is contained in:
MihailRis
2024-05-06 00:45:43 +03:00
parent 8b1c102cfe
commit 9ea67deb13
59 changed files with 204 additions and 201 deletions
-1
View File
@@ -64,7 +64,6 @@ function check_dependencies(packinfo)
local depid = dep:sub(2,-1)
if dep:sub(1,1) == '!' then
if not table.has(packs_all, depid) then
packinfo.description = ""
return string.format(
"%s (%s)", gui.str("error.dependency-not-found"), depid
)
+1 -1
View File
@@ -8,7 +8,7 @@
%{creator}
</label>
<label if='%{error}' pos='80,28' size='355,50' multiline='true' color='#FF4040'>%{error}</label>
<label pos='80,28' size='355,50' multiline='true' color='#FFFFFFB2'>
<label ifnot='%{error}' pos='80,28' size='355,50' multiline='true' color='#FFFFFFB2'>
%{description}
</label>
<image pos='8,8' src='%{icon}' size='64'/>