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.directnotify import DirectNotifyGlobal
|
||||||
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
||||||
from toontown.catalog import CatalogClothingItem
|
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 toontown.toonbase import ToontownGlobals
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import time
|
import time
|
||||||
|
@ -22,12 +31,11 @@ Expiration date, month and day are optional fields.
|
||||||
class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
class TTCodeRedemptionMgrAI(DistributedObjectAI):
|
||||||
notify = DirectNotifyGlobal.directNotify.newCategory("TTCodeRedemptionMgrAI")
|
notify = DirectNotifyGlobal.directNotify.newCategory("TTCodeRedemptionMgrAI")
|
||||||
codes = {
|
codes = {
|
||||||
'weed': {
|
'test': {
|
||||||
'items': [
|
'items': [
|
||||||
CatalogClothingItem.CatalogClothingItem(1821, 0)
|
CatalogClothingItem.CatalogClothingItem(1821, 0)
|
||||||
],
|
]
|
||||||
'month': 4,
|
'expirationDate': datetime(2015, 3, 30)
|
||||||
'day': 20
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -568,6 +568,7 @@ class CodesTabPage(DirectFrame):
|
||||||
return
|
return
|
||||||
|
|
||||||
def load(self):
|
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')
|
cdrGui = loader.loadModel('phase_3.5/models/gui/tt_m_gui_sbk_codeRedemptionGui')
|
||||||
instructionGui = cdrGui.find('**/tt_t_gui_sbk_cdrPresent')
|
instructionGui = cdrGui.find('**/tt_t_gui_sbk_cdrPresent')
|
||||||
flippyGui = cdrGui.find('**/tt_t_gui_sbk_cdrFlippy')
|
flippyGui = cdrGui.find('**/tt_t_gui_sbk_cdrFlippy')
|
||||||
|
|
Loading…
Reference in a new issue