def __init__(self, hero_party, enemy_party): self.hero_party = hero_party self.enemy_party = enemy_party frame = DirectFrame( frameColor=(0, 0, 0, 0.5), borderWidth=(10, 10), # (Left,Right,Bottom,Top) frameSize=(-2, 2, -1, -0.45)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [ { "event": "Fight-Attack", "text": "Attack" }, # {"event": "Fight-Magic", "text": "Magic"}, # {"event": "Fight-Items", "text": "Items"}, { "event": "Fight-Defend", "text": "Defend" }, { "event": "Fight-Flee", "text": "Flee" }, ] self.createVerticalButtons()
def __init__(self): frame = DirectFrame(frameSize=(base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop), frameColor=(0, 0, 0, 1.0)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [{ "event": "*", "text": "Text Display Time" }, { "event": "*", "text": "Sound Effects Volume Level" }, { "event": "*", "text": "Music Volume Level" }, { "event": "Back-Option", "text": "Back to Menu" }] self.menuHorizontalChoices = [{ "event": "Chara-Sub", "text": "*" }, { "event": "Chara-Add", "text": "*" }] self.statsSheet = None self.createVerticalButtons() self.addTitle() self.config_stats()
def __init__(self): frame = DirectFrame(frameSize=(base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop), frameColor=(0, 0, 0, 1.0)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [] self.updateSaveSlots() self.createVerticalButtons() self.addTitle() self.hasLoaded = True
def __init__(self): frame = DirectFrame(frameSize=(base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop), frameColor=(0, 0, 0, 1.0)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [ { "event": "Option-Items", "text": "Items" }, # {"event": "Option-Equip", "text": "Equip"}, # {"event": "Option-Magic", "text": "Magic"}, { "event": "Option-Save", "text": "Save" }, { "event": "Option-Config", "text": "Config" }, { "event": "Back-Field", "text": "Back to Game" }, { "event": "Option-Quit", "text": "Back to Start Menu" } ] self.menuHorizontalChoices = [{ "event": "Chara-Sub", "text": "*" }, { "event": "Chara-Add", "text": "*" }] self.characterSheetList = [] self.characterSheetIndex = 0 for hero in base.gameData.hero_party: self.characterSheetList.append(hero) self.createVerticalButtons() self.addTitle() self.charaName = None self.statsSheet = None self.displayCharacterSheet(self.characterSheetIndex)
def __init__(self, itemList): self.itemList = itemList frame = DirectFrame( frameColor=(0, 0, 0, 0.5), borderWidth=(10, 10), # (Left,Right,Bottom,Top) frameSize=(1, 1.7, -0.44, 0.8)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [] for item in self.itemList: index = self.itemList.index(item) self.menuVerticalChoicesList.append({ "event": "TextChoice-{}".format(index), "text": item["text"] }) self.createVerticalButtons()
def __init__(self, itemList): self.itemList = itemList frame = DirectFrame( frameColor=(0, 0, 0, 0.5), borderWidth=(10, 10), # (Left,Right,Bottom,Top) frameSize=(-2, 2, -1, -0.45)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [] for item in self.itemList: index = self.itemList.index(item) ItemInfo = y_helpers.find_by_id(item['id'], base.itemData.items) self.menuVerticalChoicesList.append({ "event": "Item-{}".format(index), "text": ItemInfo["name"] }) self.createVerticalButtons()
def __init__(self): frame = DirectFrame(frameSize=(base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop), frameColor=(0, 0, 0, 1.0)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [] self.menuHorizontalChoices = [{ "event": "Chara-Sub", "text": "*" }, { "event": "Chara-Add", "text": "*" }] self.characterSheetList = [] self.characterSheetIndex = 0 self.statsSheet = None for hero in base.gameData.hero_party: self.characterSheetList.append(hero) self.addTitle() self.characterSheet = None self.displayCharacterSheet(self.characterSheetIndex)
def __init__(self): frame = DirectFrame(frameSize=(base.a2dLeft, base.a2dRight, base.a2dBottom, base.a2dTop), frameColor=(0, 0, 0, 1.0)) IMenu.__init__(self, frame=frame) self.menuVerticalChoicesList = [{ "event": "Menu-Start", "text": "New game" }, { "event": "Menu-Load", "text": "Load game" }, { "event": "Menu-Website", "text": "Visit Wholetone Games" }, { "event": "Menu-Quit", "text": "Quit" }] self.isFetchingSite = False self.addTitle() self.createVerticalButtons()
def __init__(self, col_height, frame): self.COLUMN_HEIGHT = col_height IMenu.__init__(self, frame=frame)