Exemplo n.º 1
0
GAMEINFO_LINE = 'Game\t"BEE2"'

# We inject this line to recognise where our sounds start, so we can modify
# them.
EDITOR_SOUND_LINE = '// BEE2 SOUNDS BELOW'

# The name given to standard connections - regular input/outputs in editoritems.
CONN_NORM = 'CONNECTION_STANDARD'
CONN_FUNNEL = 'CONNECTION_TBEAM_POLARITY'

# The progress bars used when exporting data into a game
export_screen = loadScreen.LoadScreen(
    ('BACK', 'Backup Original Files'),
    (backup.AUTO_BACKUP_STAGE, 'Backup Puzzles'),
    ('EXP', 'Export Configuration'),
    ('COMP', 'Copy Compiler'),
    ('RES', 'Copy Resources'),
    ('MUS', 'Copy Music'),
    title_text='Exporting',
)

EXE_SUFFIX = (
    '.exe' if utils.WIN else
    '_osx' if utils.MAC else
    '_linux' if utils.LINUX else
    ''
)

# The systems we need to copy to ingame resources
res_system = FileSystemChain()
Exemplo n.º 2
0
    # The name of the current backup file
    'backup_path': None,

    # The backup zip file
    'backup_zip': None,
    # The currently-open file
    'unsaved_file': None,
}

# Variables associated with the heading text.
backup_name = tk.StringVar()
game_name = tk.StringVar()

# Loadscreens used as basic progress bars
copy_loader = loadScreen.LoadScreen(
    ('COPY', ''),
    title_text=_('Copying maps'),
)

reading_loader = loadScreen.LoadScreen(
    ('READ', ''),
    title_text=_('Loading maps'),
)

deleting_loader = loadScreen.LoadScreen(
    ('DELETE', ''),
    title_text=_('Deleting maps'),
)


class P2C:
    """A PeTI map."""
Exemplo n.º 3
0
INST_PATH = 'sdk_content/maps/instances/BEE2'

# The line we inject to add our BEE2 folder into the game search path.
# We always add ours such that it's the highest priority, other
# than '|gameinfo_path|.'
GAMEINFO_LINE = 'Game\t"BEE2"'

# We inject this line to recognise where our sounds start, so we can modify
# them.
EDITOR_SOUND_LINE = '// BEE2 SOUNDS BELOW'

# The progress bars used when exporting data into a game
export_screen = loadScreen.LoadScreen(
    ('BACK', 'Backup Original Files'),
    ('CONF', 'Generate Config Files'),
    ('COMP', 'Copy Compiler'),
    ('RES', 'Copy Resources'),
    title_text='Exporting',
)


def init_trans():
    """Load a copy of basemodui, used to translate item strings.

    Valve's items use special translation strings which would look ugly
    if we didn't convert them.
    """
    global trans_data
    try:
        with open('../basemodui.txt') as trans:
            trans_prop = Property.parse(trans, 'basemodui.txt')