I just found what defines a sign

  • Neospector
    28th Dec 2010 Member 0 Permalink
    Interface.c controls the signs and such, I want to know if there is another thing I can calculate other than pressure or temperature.
    What I mean is that I want to put something like {p} in a sign, but not have it register the pressure. What else is there?
  • PowerShroomsAttack
    28th Dec 2010 Member 0 Permalink
    What's interface?
  • yew101
    28th Dec 2010 Member 0 Permalink
    PowerShroomsAttack
    part f the powder toy source code
  • MiXih
    28th Dec 2010 Member 0 Permalink
    just some ifs...
  • Neospector
    28th Dec 2010 Member 0 Permalink
    Well is there? I might be able to make it display what element is on it, but Idk what you'd have to put. When I get off mobile I'll give you the snippet of code that controls it.
    Edit: Here it is:
    if(strcmp(signs[i].text, "{p}")==0)
    *w = textwidth("Pressure: -000.00");

    if(strcmp(signs[i].text, "{t}")==0)
    *w = textwidth("Temp: 0000.00");

    //Ususal width
    if(strcmp(signs[i].text, "{p}") && strcmp(signs[i].text, "{t}"))
    *w = textwidth(signs[i].text) + 5;
    *h = 14;
    *x0 = (signs[i].ju == 2) ? signs[i].x - *w :
    (signs[i].ju == 1) ? signs[i].x - *w/2 : signs[i].x;
    *y0 = (signs[i].y > 18) ? signs[i].y - 18 : signs[i].y + 4;
    }
    What else is there?
  • Merbo
    28th Dec 2010 Member 0 Permalink
    I have tried. I got a blank sign, of various sizes, with the same text, but different code.
  • Neospector
    28th Dec 2010 Member 0 Permalink
    @gamerboy8864
    Besides the necro, it may have moved and/or changed coding. Not sure how to do it now until I find the signs again.
    But even before that I need to fix a linker error, which pops up no matter where the files are.
  • Pilihp64
    28th Dec 2010 Developer 0 Permalink
    signs were not changed at all, lol
  • Neospector
    28th Dec 2010 Member 0 Permalink
    @cracker64
    Goodie cuz I nwasn't about to look through 4000 lines of code to find them. X|
  • Ace
    28th Dec 2010 Member 0 Permalink
    how come there is no {L} for life?