WolfHUD icon indicating copy to clipboard operation
WolfHUD copied to clipboard

This can be fixed by checking if `self._mouse_click` variable is `nil`, but then you lose the functionality that there was before, which iirc it equipped a secondary equipment with a double right click.

Open Howl-Idiot opened this issue 4 years ago • 5 comments

This can be fixed by checking if self._mouse_click variable is nil

Originally posted by @Hexer10 in https://github.com/Kamikaze94/WolfHUD/issues/829#issuecomment-621169916

Please explain how to check that line, also i noticed that crash can occure during main manu or heist createing. Thanks!

Howl-Idiot avatar Apr 30 '20 15:04 Howl-Idiot

This mean you need to rewrite function in WolfHUD/lua/MenuTweaks.lua to something like this

function BlackMarketGui:mouse_clicked(...) 
 	BlackMarketGui_mouse_clicked_original(self, ...) 
  
--      if not self._enabled then 
++      if not self._enabled or self._mouse_click == nil  then
 		return 
 	end 
  
 	self._mouse_click[self._mouse_click_index].selected_tab = self._selected 
 end 

Test this and report results, if this work i may create pull request.

MEXAHOTABOP avatar Apr 30 '20 17:04 MEXAHOTABOP

Okey so this is how it is... Double click ''shortcut'' doesnt work but, now is vanilla select gadget which does not crash or conflicts the game in anyway so its safe to go... Thanks!

Howl-Idiot avatar Apr 30 '20 18:04 Howl-Idiot

One problem tho, not big just minor thing around. If you do this step mod will ask for update which will add old file with old script... Solution is to avoid updateing it for now!

Howl-Idiot avatar Apr 30 '20 19:04 Howl-Idiot

MEXAHOTABOP Test this and report results, if this work i may create pull request.

Now no problem thx. Can use RMB in all menu.

rentgen777 avatar Apr 30 '20 23:04 rentgen777

Problem was fixed with new release

MEXAHOTABOP avatar May 01 '20 14:05 MEXAHOTABOP