Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "engine.class"
- local Mouse = require "engine.Mouse"
- local Button = require "engine.ui.Button"
- local TooltipsData = require "mod.class.interface.TooltipsData"
- module(..., package.seeall, class.inherit(TooltipsData))
- -- how much from the original file do I have to put here? just add new thing, not copy
- function _M:display()
- local player = game.player
- if not player or not player.changed or not game.level then return end
- self.mouse:reset()
- self.items = {}
- local cur_exp, max_exp = player.exp, player:getExpChart(player.level+1)
- local h = 6
- local x = 2
- -- hmm add cha somehow to this separate or with a group?
- self:mouseTooltip(self.TOOLTIP_STRDEXCON, self:makeTexture(("Str/Dex/Con: #00ff00#%3d/%3d/%3d"):format(player:getStr(), player:getDex(), player:getCon()), x, h, 255, 255, 255)) h = h + self.font_h
- self:mouseTooltip(self.TOOLTIP_MAGWILCUN, self:makeTexture(("Mag/Wil/Cun: #00ff00#%3d/%3d/%3d"):format(player:getMag(), player:getWil(), player:getCun()), x, h, 255, 255, 255)) h = h + self.font_h
- self:mouseTooltip(self.TOOLTIP_CHA, self:makeTexture(("Cha: #00ff00#%3d"):format(player:getCha()), x, h, 255, 255, 255)) h = h + self.font_h
- h = h + self.font_h
- if player:knowTalent(player.T_LIBIDO_POOL) then
- local chance = player:libidoFailChance()
- self:mouseTooltip(self.TOOLTIP_LIBIDO, self:makeTextureBar("#LIGHT_STEEL_BLUE#Libido:", ("%d/%d (%d%s)"):format(player:getModifiedLibido(), player:getLibido(), chance, "%%"), chance, 100, chance, x, h, 255, 255, 255,
- {r=176 / 2, g=196 / 2, b=222 / 2},
- {r=176 / 5, g=196 / 5, b=222 / 5}
- )) h = h + self.font_h
- end
- }
- --or as below but the above would be interesting, copied from paradox pool code. lol, so if libido gets too high weird things could happen.
- --if player:knowTalent(player.T_PSI_POOL) then
- -- self:mouseTooltip(self.TOOLTIP_PSI, self:makeTextureBar("#7fffd4#Psi:", nil, player:getPsi(), player.max_psi, player.psi_regen, x, h, 255, 255, 255,
- -- {r=colors.BLUE.r / 2, g=colors.BLUE.g / 2, b=colors.BLUE.b / 2},
- -- {r=colors.BLUE.r / 5, g=colors.BLUE.g / 5, b=colors.BLUE.b / 5}
- --)) h = h + self.font_h
- --end
Advertisement
Add Comment
Please, Sign In to add comment