Page 1 of 1

[b41] Classic ui right click buff remove quickfix

Posted: Wed Aug 08, 2012 11:18 pm
by Regalion
As per title: a very rough and dirty fix for the classic version of the interface.
Unwanted buffs can now be removed by clicking on their icons (just icons, nothing for the text version).
Made mainly for personal use but perhaps it might benefit someone else.
Not quite checked for bugs. "Seems to be working for me" is all the guarantee I can give.

Edit: and here it is:
http://te4.org/games/addons/tome/classi ... e-quickfix

Edit 2: Updated to b42 (a while ago) but it is also available as a part of slightly bigger mod:
http://forums.te4.org/viewtopic.php?f=50&t=34521

Re: [b41] Classic ui right click buff remove quickfix

Posted: Thu Aug 09, 2012 8:40 am
by MisiuPysiu
Great!
I had problems with the canceling of buffs. Can You tell, what had to be done to fix the problem?
Maybe it could be integrated into the main branch of the game?

Cheers.

Re: [b41] Classic ui right click buff remove quickfix

Posted: Thu Aug 09, 2012 11:41 am
by Regalion
Sure, although all I did was copy the behavior from minimalist ui into

Code: Select all

mod.class.PlayerDisplay
I changed two signatures.

Code: Select all

function _M:handleEffect(eff_id, e, p, ex, h, allow_remove)
function _M:makeEntityIcon(e, tiles, x, y, desc, gtxt, frame, allow_remove, eff_id, name, player)
They are backwards-compatible in the way that setting allow_remove to false or not setting it at all invokes the old functionality.
Also, it's left-click removal, not right click. My bad.
For now I guess I'll go pray to darkgod so that I can post the fix on the site and you can use it with your online profile.