Skip to content
Snippets Groups Projects
Commit b4b3cded authored by Alex Ksandra's avatar Alex Ksandra
Browse files

A more direct way maybe

parent 26762158
No related branches found
No related tags found
1 merge request!81Levelup height fix
......@@ -693,7 +693,7 @@ function _M:createDisplay()
font = core.display.newFont("/data/font/DroidSans.ttf", 14),
tiles=game.uiset.hotkeys_display_icons,
tree=self.gtree,
width=320, height=self.ih-50 - math.max((not self.b_prodigies and 0 or self.b_prodigies.h + 5), (not self.b_inscriptions and 0 or self.b_inscriptions.h + 5)),
width=320, height=(self.no_tooltip and self.ih - 50) or self.ih-50 - math.max((not self.b_prodigies and 0 or self.b_prodigies.h + 5), (not self.b_inscriptions and 0 or self.b_inscriptions.h + 5)),
tooltip=function(item)
local x = self.display_x + self.uis[8].x - game.tooltip.max
if self.display_x + self.w + game.tooltip.max <= game.w then x = self.display_x + self.w end
......@@ -807,8 +807,6 @@ function _M:createDisplay()
self.c_desc = TextzoneList.new{ focus_check = true, scrollbar = true, width=200, height = self.ih - (self.b_prodigies and self.b_prodigies.h + 5 or 0), dest_area = { h = self.ih - (self.b_prodigies and self.b_prodigies.h + 5 or 0) } }
ret[#ret+1] = {left=self.c_gtree, top=align_empty1, ui=vsep3}
ret[#ret+1] = {left=vsep3, right=0, top=0, ui=self.c_desc, calc_width=3}
self.c_gtree.h = self.ih - 50
self.c_gtree:generate()
end
return ret
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment