add function reporting X endpoint of a text box
uses the "print offscreen" trick
This commit is contained in:
parent
c60b07183b
commit
368eeb2fb4
@ -178,6 +178,10 @@ function txtbox:draw()
|
|||||||
print(self.text, self.x, self.y, self.col)
|
print(self.text, self.x, self.y, self.col)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function txtbox:xmax()
|
||||||
|
return print(self.text, self.x, -9999)
|
||||||
|
end
|
||||||
|
|
||||||
spring = {
|
spring = {
|
||||||
from = 128,
|
from = 128,
|
||||||
to = 0,
|
to = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user