[b41] Classic ui right click buff remove quickfix

A place to post your add ons and ideas for them

Moderator: Moderator

Post Reply
Message
Author
Regalion
Posts: 4
Joined: Wed Aug 08, 2012 11:01 pm

[b41] Classic ui right click buff remove quickfix

#1 Post 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
Attachments
tome-classic-ui-right-click-b41.zip
Change extension to teaa.
(5.01 KiB) Downloaded 96 times
Last edited by Regalion on Thu Aug 23, 2012 6:31 pm, edited 2 times in total.

MisiuPysiu
Archmage
Posts: 379
Joined: Tue Nov 11, 2003 10:54 am
Location: Wroclaw/Poland

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

#2 Post 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.

Regalion
Posts: 4
Joined: Wed Aug 08, 2012 11:01 pm

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

#3 Post 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.

Post Reply