fix map label offset, some more tiles
This commit is contained in:
parent
de6ac91c95
commit
38023f8828
|
@ -174,7 +174,8 @@
|
|||
(love.graphics.setColor 1 1 1))
|
||||
(when (mouse-inside tilex intiley tilew intileh)
|
||||
(when (not= iobject nil) (set iobject-over iobject))
|
||||
(renderer.draw_text style.font (string.format "%x" (encode-yx {:x mx :y my})) tilex (+ intiley 15) style.text)
|
||||
(local labely (math.floor (+ intiley (- (or ystagger 0)) (/ (- (if ystagger (* ystagger 2) tileh) (style.font:get_height)) 2))))
|
||||
(renderer.draw_text style.font (string.format "%x" (encode-yx {:x mx :y my})) (+ tilex 20) labely style.text)
|
||||
(love.graphics.setColor 1 1 1))
|
||||
(when (and self.itile (active? self :map) (mouse-inside tilex intiley tilew intileh) (not= itile self.itile))
|
||||
(self:set-tile mx my self.itile))
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue