Exemplo n.º 1
0
 virtual ~mitemslider()
 {
     DELETEA(text);
     DELETEA(valueexp);
     DELETEA(display);
     DELETEA(action);
 }
Exemplo n.º 2
0
 virtual ~mitemtext()
 {
     DELETEA(text);
     DELETEA(action);
     DELETEA(hoveraction);
     DELETEA(desc);
 }
Exemplo n.º 3
0
void resetgrassoffsets(int n)
{
    DELETEA(grassoffsets);
    DELETEA(grassanimoffsets);
    grassoffsets = new float[n];
    grassanimoffsets = new float[n];
    loopi(n) grassoffsets[i] = rnd(0x1000000)/float(0x1000000);
}
Exemplo n.º 4
0
 virtual ~mitemmapload()
 {
     DELETEA(filename);
     //DELETEA(maptitle);
     //DELETEA(mapstats);
     DELETEA(text);
     DELETEA(action);
 }
Exemplo n.º 5
0
 virtual ~mitemimage()
 {
     DELETEA(filename);
     DELETEA(text);
     DELETEA(action);
     DELETEA(hoveraction);
     DELETEA(desc);
 }
Exemplo n.º 6
0
void stopsound()
{
    if(nosound) return;
    DELETEA(musicfile);
    DELETEA(musicdonecmd);
    if(mod)
    {
        Mix_HaltMusic();
        Mix_FreeMusic(mod);
        mod = NULL;
    }
}
Exemplo n.º 7
0
 ~ziparchive()
 {
     DELETEA(name);
     if(data) {
         fclose(data);
         data = NULL;
     }
 }
Exemplo n.º 8
0
void menufont(void *menu, const char *usefont)
{
    gmenu &m = *(gmenu *)menu;
    if(usefont==NULL)
    {
        DELETEA(m.usefont);
        m.usefont = NULL;
    } else m.usefont = newstring(usefont);
}
Exemplo n.º 9
0
void mdltricollide(char *collide)
{
    checkmdl;
    DELETEA(loadingmodel->collidemodel);
    char *end = NULL;
    int val = strtol(collide, &end, 0);
    if(*end) { val = 1; loadingmodel->collidemodel = newstring(collide); }
    loadingmodel->collide = val ? COLLIDE_TRI : COLLIDE_NONE;
}
Exemplo n.º 10
0
void chmenumdl(char *menu, char *mdl, char *anim, int *rotspeed, int *scale)
{
    if(!menu || !menus.access(menu)) return;
    gmenu &m = menus[menu];
    DELETEA(m.mdl);
    if(!mdl ||!*mdl) return;
    m.mdl = newstring(mdl);
    m.anim = findanim(anim)|ANIM_LOOP;
    m.rotspeed = clamp(*rotspeed, 0, 100);
    m.scale = clamp(*scale, 0, 100);
}
Exemplo n.º 11
0
void musicdone()
{
    if(!musicdonecmd) return;
    if(mod) Mix_FreeMusic(mod);
    mod = NULL;
    DELETEA(musicfile);
    char *cmd = musicdonecmd;
    musicdonecmd = NULL;
    execute(cmd);
    delete[] cmd;
}
Exemplo n.º 12
0
 ~delayedupdate() { if(type == STRING || type == ACTION) DELETEA(val.s); }
Exemplo n.º 13
0
 ~soundsample() { DELETEA(name); }
Exemplo n.º 14
0
 virtual ~mitemtextvar()
 {
     DELETEA(textexp);
     DELETEA(action);
     DELETEA(hoveraction);
 }
Exemplo n.º 15
0
 ~mitemkeyinput()
 {
     DELETEA(text);
     DELETEA(bindcmd);
 }
Exemplo n.º 16
0
void resetgrasswedges(int n)
{
    DELETEA(grassws);
    grassws = new grasswedge[n];
    loopi(n) grassws[i].init(i, n);
}
Exemplo n.º 17
0
 ~zipfile()
 {
     DELETEA(name);
 }
Exemplo n.º 18
0
 ~mitemcheckbox()
 {
     DELETEA(text);
     DELETEA(valueexp);
     DELETEA(action);
 }
Exemplo n.º 19
0
 ~sample() { DELETEA(name); }
Exemplo n.º 20
0
 virtual void clear() 
 {
     DELETEA(onclear);
 }