mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
CodeRedemption: Added notice, and added all catalog item imports.
This commit is contained in:
parent
e9ffbadbd6
commit
639a8d953c
2 changed files with 14 additions and 5 deletions
|
@ -1,6 +1,15 @@
|
|||
from direct.directnotify import DirectNotifyGlobal
|
||||
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
||||
from toontown.catalog import CatalogClothingItem
|
||||
from toontown.catalog import CatalogNametagItem
|
||||
from toontown.catalog import CatalogChatItem
|
||||
from toontown.catalog import CatalogEmoteItem
|
||||
from toontown.catalog import CatalogGardenItem
|
||||
from toontown.catalog import CatalogGardenStarterItem
|
||||
from toontown.catalog import CatalogMouldingItem
|
||||
from toontown.catalog import CatalogRentalItem
|
||||
from toontown.catalog import CatalogFurnitureItem
|
||||
from toontown.catalog import CatalogFlooringItem
|
||||
from toontown.toonbase import ToontownGlobals
|
||||
from datetime import datetime, timedelta
|
||||
import time
|
||||
|
@ -22,12 +31,11 @@ Expiration date, month and day are optional fields.
|
|||
class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("TTCodeRedemptionMgrAI")
|
||||
codes = {
|
||||
'weed': {
|
||||
'test': {
|
||||
'items': [
|
||||
CatalogClothingItem.CatalogClothingItem(1821, 0)
|
||||
],
|
||||
'month': 4,
|
||||
'day': 20
|
||||
]
|
||||
'expirationDate': datetime(2015, 3, 30)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -568,6 +568,7 @@ class CodesTabPage(DirectFrame):
|
|||
return
|
||||
|
||||
def load(self):
|
||||
self.notice = DirectLabel(parent=self, relief=None, text='NOTICE: All codes can only be entered once!', text_scale=0.06, pos=(0.0, 0, 0.53), text_fg=Vec4(1.0, 0, 0, 1))
|
||||
cdrGui = loader.loadModel('phase_3.5/models/gui/tt_m_gui_sbk_codeRedemptionGui')
|
||||
instructionGui = cdrGui.find('**/tt_t_gui_sbk_cdrPresent')
|
||||
flippyGui = cdrGui.find('**/tt_t_gui_sbk_cdrFlippy')
|
||||
|
|
Loading…
Reference in a new issue