Suggested fix for property tool.

  • Videogamer555
    23rd Dec 2011 Member 0 Permalink
    Currently if you wan to use property tool to adjust "type" variable for a block of material you must specify index number of the desired material type. It will not work if you specify name such as:
    NBLE
    "NBLE" (using quotes to make sure it knows it is string-data)
    tpt.el.nble.id (using the Lua command to get index number from name).

    I am forced to check the C source code for EVERY element to find the needed number! I have no other need for C code and it is wasting my harddrive space to store the C source code just as reference material. I'm not a C programmer so I have no need for source-code. Therefore I think that the Property Tool needs to recognize both numbers for those who wish to use them AND ALSO RECOGNIZE the string name for an element. In other words the programing for TPT should contain 2 overloads in the code that handles the "type" property in the property tool dialog box. One overload to handle numerical entry, and another to handle string entry so I could type either NBLE for noble gas or I could type the numerical index for the same element, and it would have the same effect.
  • SkinnySatinTiger
    23rd Dec 2011 Member 0 Permalink
    Edited once by SkinnySatinTiger. Last: 3rd Oct 2022
  • The-Fall
    23rd Dec 2011 Member 0 Permalink
    Agreed. I need this As well...
  • ads999
    23rd Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    You are the best!
  • Goulash
    23rd Dec 2011 Member 0 Permalink
    GENIAL!
  • MasterMind555
    23rd Dec 2011 Member 0 Permalink
    @Videogamer555 (View Post)
    Make a Lua script for that

  • jenn4
    23rd Dec 2011 Member 0 Permalink
    I agree that this would make things more easily, but you can delete every other parts of source or just look from github before this happens.
  • disturbed666
    23rd Dec 2011 Member 0 Permalink
    Totally agree with it
  • jacksonmj
    23rd Dec 2011 Developer 0 Permalink
    Simon has now added this, PROP tool will recognise element names in the next version.

    https://github.com/FacialTurd/The-Powder-Toy/commit/fcac7dbe09a2a55d268fa615888a1883d8468c99
  • OmegaSupreme
    23rd Dec 2011 Member 0 Permalink
    OMG! An Idea that made the Official in 7 Comments! I'm glad it will be added.