mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Version 0.9.5.7 - Alpha (see changelog.txt)
This commit is contained in:
parent
4614444ca4
commit
ed8a78a10c
@ -1,3 +1,8 @@
|
|||||||
|
================================================
|
||||||
|
Version 0.9.5.7 - Alpha (April 9 - 2013)
|
||||||
|
================================================
|
||||||
|
[FIXED] some issues with positioning the textinput object's text
|
||||||
|
|
||||||
================================================
|
================================================
|
||||||
Version 0.9.5.6 - Alpha (March 29 - 2013)
|
Version 0.9.5.6 - Alpha (March 29 - 2013)
|
||||||
================================================
|
================================================
|
||||||
|
2
init.lua
2
init.lua
@ -9,7 +9,7 @@ loveframes = {}
|
|||||||
-- library info
|
-- library info
|
||||||
loveframes.info = {}
|
loveframes.info = {}
|
||||||
loveframes.info.author = "Kenny Shields"
|
loveframes.info.author = "Kenny Shields"
|
||||||
loveframes.info.version = "0.9.5.6"
|
loveframes.info.version = "0.9.5.7"
|
||||||
loveframes.info.stage = "Alpha"
|
loveframes.info.stage = "Alpha"
|
||||||
|
|
||||||
-- library configurations
|
-- library configurations
|
||||||
|
@ -547,8 +547,9 @@ function newobject:RunKey(key, unicode)
|
|||||||
if indicatorx >= (self.x + swidth) and indicatornum ~= #text then
|
if indicatorx >= (self.x + swidth) and indicatornum ~= #text then
|
||||||
local width = self.font:getWidth(text:sub(indicatornum, indicatornum))
|
local width = self.font:getWidth(text:sub(indicatornum, indicatornum))
|
||||||
self.offsetx = self.offsetx + width
|
self.offsetx = self.offsetx + width
|
||||||
elseif indicatornum == #text and self.offsetx ~= ((0 - font:getWidth(text)) + swidth) and font:getWidth(text) + self.textoffsetx > self.width then
|
elseif indicatornum == #text and self.offsetx ~= ((font:getWidth(text)) - swidth + 10) and font:getWidth(text) + self.textoffsetx > self.width then
|
||||||
self.offsetx = ((0 - font:getWidth(text)) + swidth)
|
self.offsetx = ((font:getWidth(text)) - swidth + 10)
|
||||||
|
--print(((0 - font:getWidth(text)) + swidth))
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if indicatornum == #text then
|
if indicatornum == #text then
|
||||||
@ -613,8 +614,11 @@ function newobject:RunKey(key, unicode)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
local cwidth = font:getWidth(text:sub(#text))
|
local cwidth = font:getWidth(text:sub(#text))
|
||||||
if self.offsetx ~= 0 then
|
if self.offsetx > 0 then
|
||||||
self.offsetx = self.offsetx - cwidth
|
self.offsetx = self.offsetx - cwidth
|
||||||
|
print(self.offsetx, cwidth)
|
||||||
|
elseif self.offsetx < 0 then
|
||||||
|
self.offsetx = 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
elseif key == "delete" then
|
elseif key == "delete" then
|
||||||
@ -860,8 +864,6 @@ function newobject:RemoveFromeText(p)
|
|||||||
local line = self.line
|
local line = self.line
|
||||||
local curline = lines[line]
|
local curline = lines[line]
|
||||||
local text = curline
|
local text = curline
|
||||||
local indicatornum = self.indicatornum
|
|
||||||
|
|
||||||
local part1 = text:sub(1, p - 1)
|
local part1 = text:sub(1, p - 1)
|
||||||
local part2 = text:sub(p + 1)
|
local part2 = text:sub(p + 1)
|
||||||
local new = part1 .. part2
|
local new = part1 .. part2
|
||||||
|
Loading…
Reference in New Issue
Block a user