Made "Hide" key be able to be mapped to controllers
This commit is contained in:
1 parent
6d7fe2f128
commit
09dcd44928
3 files changed
+3
-2
No files matched your search
@@ -51,6 +51,7 @@ EID.UserConfig = {
|
||||
["Indicator"] = "none",
|
||||
-- Set the keybinding to toggle the descriptions
|
||||
-- look into the AB+ or Repentance documentation for the key names here: https://wofsauge.github.io/IsaacDocs/rep/enums/Keyboard.html
|
||||
-- if you want to map it onto a controller button, you need to use the "ButtonAction" enum instead of the Keyboard enum https://wofsauge.github.io/IsaacDocs/rep/enums/ButtonAction.html
|
||||
-- Default = Keyboard.KEY_F2
|
||||
["HideKey"] = Keyboard.KEY_F2,
|
||||
-- Initial displaystate. Can be used to change the toggle behavior of the "Hide Key" event
|
||||
|
||||
@@ -591,7 +591,7 @@ local searchPartitions = EntityPartition.FAMILIAR + EntityPartition.ENEMY + Enti
|
||||
|
||||
local function onRender(t)
|
||||
EID.isDisplaying = false
|
||||
if Input.IsButtonTriggered(EID.Config["HideKey"], 0) then
|
||||
if Input.IsButtonTriggered(EID.Config["HideKey"], EID.player.ControllerIndex or 0) then
|
||||
EID.isHidden = not EID.isHidden
|
||||
end
|
||||
if ModConfigMenu and ModConfigMenu.IsVisible and ModConfigMenu.Config["Mod Config Menu"].HideHudInMenu and EID.MCMCompat_isDisplayingEIDTab ~= "Visuals" then --if if the mod config menu exists, is opened and Hide Hud is enabled, and ModConfigMenu is currently in the "Visuals" tab of EID
|
||||
|
||||
+1
-1
@@ -90,7 +90,7 @@ https://moddingofisaac.com/mod/1079/external-item-descriptions
|
||||
- Jake for the sweet [b]German[/b] language pack
|
||||
- [url=https://steamcommunity.com/id/whytefang/]adc[/url] for creating an awesome new Languagepack and providing ideas for new functionalities
|
||||
</description>
|
||||
<version>3.88</version>
|
||||
<version>3.89</version>
|
||||
<visibility>Public</visibility>
|
||||
<tag id="Lua"/>
|
||||
<tag id="Items"/>
|
||||
|
||||
Reference in new issue
Block a user