Esempio n. 1
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            SectorProperty("Sector", "sector", default="", optional=False),
            StringProperty("SpawnPoint",
                           "spawnpoint",
                           default="",
                           optional=False),
            FloatProperty("Fly Speed", "flyspeed", default=64.0,
                          optional=True),
            FloatProperty("Track Range",
                          "track-range",
                          default=384.0,
                          optional=True),
            FloatProperty("Vanish Range",
                          "vanish-range",
                          default=512,
                          optional=True),
            StringProperty("Hit Script",
                           "hit-script",
                           default="",
                           optional=True),
            # ColorProperty("Color", "color"),
            InlinePosProperty(),
        ]
Esempio n. 2
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Name", "name", "main"),
            InlinePosProperty()
        ]
Esempio n. 3
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            BoolProperty("Linked", "linked", default=False),
            InlinePosProperty()
        ]
Esempio n. 4
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            BoolProperty("Portable", "portable", optional=True, default=True),
            InlinePosProperty()
        ]
Esempio n. 5
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            SpriteProperty("Sprite", "sprite"),
            InlinePosProperty()
        ]
Esempio n. 6
0
    def __init__(self, kind, sprite):
        super().__init__()

        self.label = kind
        self.identifier = kind
        self.sprite = sprite

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [InlinePosProperty()]
Esempio n. 7
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            FloatProperty("Radius", "radius", default=100.0, optional=True),
            FloatProperty("Speed", "speed", default=2.0, optional=True),
            InlinePosProperty(),
        ]
Esempio n. 8
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Script", "script", default=""),
            SpriteProperty("Sprite", "sprite", default="", optional=True),
            DirectionProperty("Direction", "direction", 0),
            InlinePosProperty(),
        ]
Esempio n. 9
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Sector", "sector"),
            StringProperty("SpawnPoint", "spawnpoint"),
            InlinePosProperty(),
        ]
        self.constraints = [GridConstraint(32, 32, 16, 16)]
Esempio n. 10
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Name", "name"),
            ZPosProperty(),
            BoolProperty("Visible", "visible", True),
            BoolProperty("Physics", "physic-enabled", False),
            BoolProperty("Solid", "solid", False),
            SpriteProperty("Sprite", "sprite"),
            InlinePosProperty(),
        ]
Esempio n. 11
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Message",
                           "message",
                           "",
                           optional=True,
                           translatable=True),
            InlinePosProperty()
        ]
        self.constraints = [GridConstraint(32, 32, 16, 16)]
Esempio n. 12
0
    def __init__(self, kind, sprite):
        super().__init__()

        self.label = kind
        self.identifier = kind
        self.sprite = sprite

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            SpriteProperty("Sprite", "sprite"),
            InlinePosProperty()
        ]
        self.constraints = [GridConstraint(32, 32, 16, 16)]
Esempio n. 13
0
    def __init__(self, kind, sprite_filename):
        super().__init__()

        self.label = kind
        self.identifier = kind
        self.sprite = sprite_filename
        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Dead Script",
                           "dead-script",
                           default="",
                           optional=True),
            DirectionProperty("Direction", "direction", 0),
            SpriteProperty("Sprite", "sprite", default="", optional=True),
            InlinePosProperty(),
        ]
Esempio n. 14
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            IntProperty("Cycle", "cycle", 2),
            EnumProperty("Type",
                         "type",
                         default=0,
                         optional=False,
                         values=["rocketlauncher", "cannon"]),
            BoolProperty("Random", "random", default=False, optional=True),
            BadGuyProperty("Badguy", "badguy", GameObj.factory),
            DirectionProperty("Direction", "direction", 0),
            InlinePosProperty(),
        ]
Esempio n. 15
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            BoolProperty("Disable Physics",
                         "disable-physics",
                         default=False,
                         optional=True),
            StringProperty("Script", "script", default="", optional=True),
            SpriteProperty("Sprite",
                           "sprite",
                           default=self.sprite,
                           optional=False),
            InlinePosProperty(),
        ]
        self.constraints = [GridConstraint(32, 32, 16, 16)]
Esempio n. 16
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            FloatProperty("Initial Delay",
                          "initial-delay",
                          default=0,
                          optional=False),
            FloatProperty("Fire Delay",
                          "fire-delay",
                          default=2.0,
                          optional=False),
            IntProperty("Ammo", "ammo", default=-1, optional=False),
            DirectionProperty("Direction", "direction", 0),
            InlinePosProperty(),
        ]
Esempio n. 17
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Name", "name", "", optional=True),
            BoolProperty("Burning", "burning", optional=True, default=True),
            BoolProperty("Flicker", "flicker", optional=True, default=True),
            SpriteProperty("Sprite",
                           "sprite",
                           default=self.sprite,
                           optional=True),
            ColorProperty("Color",
                          "color",
                          default=Colorf(1.0, 1.0, 1.0),
                          optional=True),
            InlinePosProperty(),
        ]
Esempio n. 18
0
    def __init__(self):
        super().__init__()

        self.objmap_object = make_sprite_object(self, self.sprite)
        self.signal_connect()

        self.properties = [
            StringProperty("Message",
                           "message",
                           default="",
                           optional=True,
                           translatable=True),
            StringProperty("Script", "script", default="", optional=False),
            IntProperty("Count", "count", default=1, optional=True),
            EnumProperty("Contents",
                         "contents",
                         default=0,
                         optional=True,
                         values=self.values),
            SpriteProperty("Sprite", "sprite", optional=True),
            InlinePosProperty()
        ]
        self.constraints = [GridConstraint(32, 32, 16, 16)]