[FIX] Informa de la versió del runtime de mini
[FIX] Viewport centrat en l'X de l'abad
This commit is contained in:
+3
-3
@@ -194,10 +194,10 @@ function viewport_update()
|
|||||||
local vp_x = viewp.x
|
local vp_x = viewp.x
|
||||||
local vp_y = viewp.y
|
local vp_y = viewp.y
|
||||||
|
|
||||||
local vp_center_offset_x = (viewp.width >> 1)
|
local vp_center_offset_x = (viewp.width // 2)
|
||||||
local vp_center_offset_y = (viewp.height >> 1)
|
local vp_center_offset_y = (viewp.height // 2)
|
||||||
|
|
||||||
vp_x = abad.x - vp_center_offset_x
|
vp_x = abad.x+(abad.w/2) - vp_center_offset_x
|
||||||
if vp_x < 0 then vp_x = 0 end
|
if vp_x < 0 then vp_x = 0 end
|
||||||
|
|
||||||
vp_y = abad.y - vp_center_offset_y
|
vp_y = abad.y - vp_center_offset_y
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ local parts = {}
|
|||||||
|
|
||||||
function reqs_init()
|
function reqs_init()
|
||||||
local version=sys.version()
|
local version=sys.version()
|
||||||
print(version)
|
-- print(version)
|
||||||
for part in string.gmatch(version, "[^.]+") do
|
for part in string.gmatch(version, "[^.]+") do
|
||||||
table.insert(parts, tonumber(part))
|
table.insert(parts, tonumber(part))
|
||||||
end
|
end
|
||||||
print(parts[1].." "..versio_req[1])
|
-- print(parts[1].." "..versio_req[1])
|
||||||
print(parts[2].." "..versio_req[2])
|
-- print(parts[2].." "..versio_req[2])
|
||||||
print(parts[3].." "..versio_req[3])
|
-- print(parts[3].." "..versio_req[3])
|
||||||
states:next()
|
states:next()
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -23,6 +23,7 @@ function reqs_draw()
|
|||||||
surf.cls(16)
|
surf.cls(16)
|
||||||
|
|
||||||
draw.text("Es requerix mini "..table.concat(versio_req, "."),20,20,2)
|
draw.text("Es requerix mini "..table.concat(versio_req, "."),20,20,2)
|
||||||
|
draw.text("Executant amb mini "..table.concat(parts, "."),20,30,2)
|
||||||
end
|
end
|
||||||
|
|
||||||
function reqs_end()
|
function reqs_end()
|
||||||
|
|||||||
Reference in New Issue
Block a user