mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Text Plando Support
This commit is contained in:
4
Text.py
4
Text.py
@@ -1286,6 +1286,7 @@ class LargeCreditBottomMapper(CharTextMapper):
|
||||
|
||||
class TextTable(object):
|
||||
SIZE = 0x7355
|
||||
|
||||
def __init__(self):
|
||||
self._text = OrderedDict()
|
||||
self.setDefaultText()
|
||||
@@ -1293,6 +1294,9 @@ class TextTable(object):
|
||||
def __getitem__(self, key):
|
||||
return self._text[key]
|
||||
|
||||
def __contains__(self, key):
|
||||
return key in self._text
|
||||
|
||||
def __setitem__(self, key, value):
|
||||
if not key in self._text:
|
||||
raise KeyError(key)
|
||||
|
Reference in New Issue
Block a user