mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 04:02:40 -06:00
fix button hiding pls k
This commit is contained in:
parent
af90da92db
commit
a503e92deb
3 changed files with 21 additions and 1 deletions
|
@ -1620,6 +1620,8 @@ class DistributedBattleBaseAI(DistributedObjectAI.DistributedObjectAI, BattleBas
|
||||||
toon.inventory.zeroInv(1)
|
toon.inventory.zeroInv(1)
|
||||||
deadToons.append(activeToon)
|
deadToons.append(activeToon)
|
||||||
self.notify.debug('AFTER ROUND: toon: %d setHp: %d' % (toon.doId, toon.hp))
|
self.notify.debug('AFTER ROUND: toon: %d setHp: %d' % (toon.doId, toon.hp))
|
||||||
|
if toon.unlimitedGags:
|
||||||
|
toon.doRestock(noUber=0, noPaid=0)
|
||||||
|
|
||||||
for deadToon in deadToons:
|
for deadToon in deadToons:
|
||||||
self.__removeToon(deadToon)
|
self.__removeToon(deadToon)
|
||||||
|
|
|
@ -689,10 +689,11 @@ class CatalogScreen(DirectFrame):
|
||||||
self.clarabelleFrame = DirectLabel(self, relief=None, image=guiItems.find('**/clarabelle_frame'))
|
self.clarabelleFrame = DirectLabel(self, relief=None, image=guiItems.find('**/clarabelle_frame'))
|
||||||
hangupGui = guiItems.find('**/hangup')
|
hangupGui = guiItems.find('**/hangup')
|
||||||
hangupRolloverGui = guiItems.find('**/hangup_rollover')
|
hangupRolloverGui = guiItems.find('**/hangup_rollover')
|
||||||
self.hangup = DirectButton(base.a2dBottomRight, relief=None, pos=(-0.158, 0, 0.14), scale=(0.7, 0.7, 0.7), image=[hangupGui,
|
self.hangup = DirectButton(self, relief=None, pos=(-0.158, 0, 0.14), scale=(0.7, 0.7, 0.7), image=[hangupGui,
|
||||||
hangupRolloverGui,
|
hangupRolloverGui,
|
||||||
hangupRolloverGui,
|
hangupRolloverGui,
|
||||||
hangupGui], text=['', TTLocalizer.CatalogHangUp, TTLocalizer.CatalogHangUp], text_fg=Vec4(1), text_scale=0.07, text_pos=(0.0, 0.14), command=self.hangUp)
|
hangupGui], text=['', TTLocalizer.CatalogHangUp, TTLocalizer.CatalogHangUp], text_fg=Vec4(1), text_scale=0.07, text_pos=(0.0, 0.14), command=self.hangUp)
|
||||||
|
self.hangup.reparentTo(base.a2dBottomRight)
|
||||||
self.beanBank = DirectLabel(self, relief=None, image=guiItems.find('**/bean_bank'), text=str(base.localAvatar.getMoney() + base.localAvatar.getBankMoney()), text_align=TextNode.ARight, text_scale=0.11, text_fg=(0.95, 0.95, 0, 1), text_shadow=(0, 0, 0, 1), text_pos=(0.75, -0.81), text_font=ToontownGlobals.getSignFont())
|
self.beanBank = DirectLabel(self, relief=None, image=guiItems.find('**/bean_bank'), text=str(base.localAvatar.getMoney() + base.localAvatar.getBankMoney()), text_align=TextNode.ARight, text_scale=0.11, text_fg=(0.95, 0.95, 0, 1), text_shadow=(0, 0, 0, 1), text_pos=(0.75, -0.81), text_font=ToontownGlobals.getSignFont())
|
||||||
nextUp = guiItems.find('**/arrow_up')
|
nextUp = guiItems.find('**/arrow_up')
|
||||||
nextRollover = guiItems.find('**/arrow_Rollover')
|
nextRollover = guiItems.find('**/arrow_Rollover')
|
||||||
|
|
|
@ -2307,6 +2307,9 @@ class DistributedToonAI(DistributedPlayerAI.DistributedPlayerAI, DistributedSmoo
|
||||||
def setImmortalMode(self, flag):
|
def setImmortalMode(self, flag):
|
||||||
self.immortalMode = flag
|
self.immortalMode = flag
|
||||||
|
|
||||||
|
def setUnlimitedGags(self, flag):
|
||||||
|
self.unlimitedGags = flag
|
||||||
|
|
||||||
def b_setSpeedChatStyleIndex(self, index):
|
def b_setSpeedChatStyleIndex(self, index):
|
||||||
self.setSpeedChatStyleIndex(index)
|
self.setSpeedChatStyleIndex(index)
|
||||||
self.d_setSpeedChatStyleIndex(index)
|
self.d_setSpeedChatStyleIndex(index)
|
||||||
|
@ -5159,3 +5162,17 @@ def disguise(command, suitIndex, value):
|
||||||
return 'Merits set.'
|
return 'Merits set.'
|
||||||
else:
|
else:
|
||||||
return 'Unknow command: %s' % command
|
return 'Unknow command: %s' % command
|
||||||
|
|
||||||
|
@magicWord(category=CATEGORY_PROGRAMMER)
|
||||||
|
def unlimitedGags():
|
||||||
|
""" Restock avatar's gags at the start of each round. """
|
||||||
|
av = spellbook.getTarget() if spellbook.getInvokerAccess() >= 500 else spellbook.getInvoker()
|
||||||
|
av.setUnlimitedGags(not av.unlimitedGags)
|
||||||
|
return 'Toggled unlimited gags %s for %s' % ('ON' if av.unlimitedGags else 'OFF', av.getName())
|
||||||
|
|
||||||
|
@magicWord(category=CATEGORY_PROGRAMMER)
|
||||||
|
def immortal():
|
||||||
|
""" Make target (if 500+) or self (if 499-) immortal. """
|
||||||
|
av = spellbook.getTarget() if spellbook.getInvokerAccess() >= 500 else spellbook.getInvoker()
|
||||||
|
av.setImmortalMode(not av.immortalMode)
|
||||||
|
return 'Toggled immortal mode %s for %s' % ('ON' if av.immortalMode else 'OFF', av.getName())
|
||||||
|
|
Loading…
Reference in a new issue