Skip to content

Commit

Permalink
Add various Inherent and SMART vendor powers to the PowerPicker
Browse files Browse the repository at this point in the history
This release updates the PowerPicker popup to contain various inherent,
SMART vendor, and accolade-based powers that weren't available in
BindControl any other place.  There are probably still powers in the
game that are missing from the picker, mostly a giant list of temporary
jetpacks and the like, but this covers lots of powers people might want
permanent binds for.
  • Loading branch information
emersonrp committed Jun 4, 2024
1 parent e65dbf9 commit fb0861f
Show file tree
Hide file tree
Showing 39 changed files with 53 additions and 1 deletion.
2 changes: 1 addition & 1 deletion GameData.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@
'Walk',
'Prestige Power Slide',
],
'P2W': [
'SMART': [
'Prestige Power Rush',
'Prestige Power Dash',
'Prestige Power Surge ',
Expand Down
40 changes: 40 additions & 0 deletions UI/PowerPicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,46 @@ def BuildMenu(self):
setattr(menuitem, 'IconFilename', power['iconfilename'])
submenu.Append(menuitem)

# Misc / Inherent Powers
submenu = wx.Menu()
self.AppendSubMenu(submenu, "Misc")

accoladepowers = GameData.MiscPowers['Badge']['Accolade']
if accoladepowers:
accolademenu = wx.Menu()
submenu.AppendSubMenu(accolademenu, "Accolade")
for power in accoladepowers:
menuitem = wx.MenuItem(id = wx.ID_ANY, text = power)
icon = GetIcon(powerset = 'Misc', power = power)
if icon:
menuitem.SetBitmap(icon)
setattr(menuitem, 'IconFilename', icon.Filename)
accolademenu.Append(menuitem)

inherentpowers = GameData.MiscPowers['General']['Inherent']
if inherentpowers:
inherentmenu = wx.Menu()
submenu.AppendSubMenu(inherentmenu, "Inherent")
for power in inherentpowers:
menuitem = wx.MenuItem(id = wx.ID_ANY, text = power)
icon = GetIcon(powerset = 'Misc', power = power)
if icon:
menuitem.SetBitmap(icon)
setattr(menuitem, 'IconFilename', icon.Filename)
inherentmenu.Append(menuitem)

smartpowers = GameData.MiscPowers['General']['SMART']
if smartpowers:
smartmenu = wx.Menu()
submenu.AppendSubMenu(smartmenu, "SMART")
for power in smartpowers:
menuitem = wx.MenuItem(id = wx.ID_ANY, text = power)
icon = GetIcon(powerset = 'Misc', power = power)
if icon:
menuitem.SetBitmap(icon)
setattr(menuitem, 'IconFilename', icon.Filename)
smartmenu.Append(menuitem)

def OnMenuSelection(self, evt):
menuitem = self.FindItemById(evt.GetId())
label = menuitem.GetItemLabel()
Expand Down
Binary file added icons/Powers/Misc_ApprenticeCharm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_AthleticRun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_BeastRun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_Brawl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_CreyCBX9Pistol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_DemonicAura.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_ElusiveMind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_EyeoftheMagus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_ForceofNature.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_GeasoftheKindOnes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_InnerInspiration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_JumpPack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_Megalomaniac.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_MissionTransporter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_Mutagen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_MysticFortune.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_NinjaRun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PocketDVIPPass.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PortableWorkbench.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PrestigePowerDash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PrestigePowerQuick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PrestigePowerRush.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PrestigePowerSlide.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_PrestigePowerSurge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_Rest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icons/Powers/Misc_SecondaryMutation.png
Binary file added icons/Powers/Misc_SelfDestruction.png
Binary file added icons/Powers/Misc_ShadowyPresence.png
Binary file added icons/Powers/Misc_Sprint.png
Binary file added icons/Powers/Misc_SteamJump.png
Binary file added icons/Powers/Misc_StolenImmobilizerRay.png
Binary file added icons/Powers/Misc_TaserDart.png
Binary file added icons/Powers/Misc_ThrowingKnives.png
Binary file added icons/Powers/Misc_TranqDart.png
Binary file added icons/Powers/Misc_VanguardMedal.png
Binary file added icons/Powers/Misc_Walk.png
12 changes: 12 additions & 0 deletions tools/icon_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,18 @@
else:
if filename in filecheck: filecheck.remove(filename)

# Misc Powers
# TODO generalize this more?
miscpowerlist = GameData.MiscPowers['Badge']['Accolade'] + GameData.MiscPowers['General']['Inherent'] + GameData.MiscPowers['General']['SMART']
for power in miscpowerlist:
power = re.sub(r'\W+', '', power)
filename = f"Misc_{power}.png"
if not os.path.exists(f"{parentdir}/icons/Powers/{filename}"):
print(f"Misc Power: {filename}")
count = count + 1
else:
if filename in filecheck: filecheck.remove(filename)

# Inspirations
for _, type in GameData.Inspirations.items():
for _, data in type.items():
Expand Down

0 comments on commit fb0861f

Please sign in to comment.