1. Dashboard
  2. Articles
  3. Members
    1. Recent Activities
    2. Users Online
    3. Team
    4. Search Members
  4. Blog
    1. Articles
  5. Filebase
    1. Shop "Z"
  6. Forum
  7. Lexicon
    1. Documentation
  8. 🏷️Support
    1. FAQ
    2. Kuid's
  9. Gallery
    1. Albums
  • Login or register
  • Search
Scripting
  • Everywhere
  • Scripting
  • Articles
  • Pages
  • Blog Articles
  • Files
  • Forum
  • Lexicon
  • Tickets
  • FAQ
  • Gallery
  • More Options
  1. Wikiquik
  2. Lexicon

entries of the category „Scripting“

class client
C++
include "signalscripts.gs"
class scriptclient isclass Signal {};
Wikiquik
February 17, 2024 at 11:21 AM
0
Advanced signal settings
Wikiquik
February 8, 2024 at 1:05 AM
0
Trainz Object HTML Element

<trainz-object> tags define special browser objects which the user can interact with.

These include a graphic dial, a text entry box or a browser frame and a range of parameters can be applied.

Wikiquik
January 26, 2024 at 2:09 AM
0
GetPropertyHandler
Wikiquik
January 26, 2024 at 12:02 AM
0
SetPropertyHandler

handler = Handler to assign to this property object.

Wikiquik
January 26, 2024 at 12:01 AM
0
PropertyBrowserRefresh

browser = Reference to browser object displaying properties.

Wikiquik
January 26, 2024 at 12:00 AM
0
SetPropertyValue
C#
void SetPropertyValue(string propertyID, string value)
{
  if (propertyID == "forename")
  {
    m_foreName = value;
    return;
  }
  if (propertyID == "surname")
  {
    m_surName = value;
    return;
  }
  
  inherited(propertyID, value);
}
Display More
Wikiquik
January 25, 2024 at 11:59 PM
0
FilterPropertyElementList
C#
public bool FilterPropertyElementList(string propertyID, GSObject[] listObjects, string[] listNames)
{
  if (propertyID == "object-list")
  {
    bool bDidChangeAnything = false;
    // Remove any already added objects from the list
    int i;
    for (i = 0; i < listObjects.size(); )
    {
      if (IsAlreadyInList(cast<GameObject>(listObjects[i])))
      {
        listObjects[i,i+1] = null;
        listNames[i,i+1] = null;
        bDidChangeAnything  = true;
      }
      else
      {
        ++i;
      }
    }
    
    return bDidChangeAnything;
  }
  
  return inherited(propertyID, listObjects, listNames);
}
Display More
Wikiquik
January 25, 2024 at 11:57 PM
0
GetPropertyElementList
C#
public string[] GetPropertyElementList(string propertyID)
{
  if (propertyID == "mode")
  {
    StringTable strTable = GetAsset().GetStringTable();
    
    string[] result = new string[10];
    int i;
    for (i = 1; i < 10; ++i)
      result[i] = strTable.GetString("property_list_mode_" + i);
    
    return result;
  }
  
  return inherited(propertyID);
}
Display More
Wikiquik
January 25, 2024 at 11:56 PM
0
LinkPropertyValue
C#
void LinkPropertyValue(string propertyID)
{
  if (propertyID == "doors")
  {
    m_doorsOpen = !m_doorsOpen;
    SetMeshAnimationState("doors", m_doorsOpen);
    return;
  }
  
  inherited(propertyID);
}
Display More
Wikiquik
January 25, 2024 at 11:55 PM
0

Categories

  1. Default Category 50
  2. Scripting 18
  3. Configuration files 9

Tag Cloud

  • AŽD
  • HTML
  • Pictures
  • Sound
  • Vyhláška

Latest Edits

  • Označník

    Wikiquik April 13, 2025 at 11:16 AM
  • Dělič úsekový

    Wikiquik September 19, 2024 at 10:12 PM
  • Classification-signals

    Wikiquik February 24, 2024 at 4:41 PM
  • Image Based Lighting

    Wikiquik January 26, 2024 at 12:10 AM
  • Označovací štítky návěstidel

    Wikiquik January 26, 2024 at 12:08 AM

Most Viewed Entries

  • SBB

    Wikiquik December 1, 2019 at 5:39 PM
  • Složka o výší úrovni

    Wikiquik December 8, 2019 at 3:34 PM
  • SBB Signal: SP Type-L

    Wikiquik December 16, 2019 at 8:50 AM
  • SBB Signal: SA Type-L

    Wikiquik December 16, 2019 at 8:10 AM
  • ATB-EG

    Wikiquik December 22, 2019 at 12:57 PM

Most Active Authors

  • Wikiquik

    77 entries
  1. Privacy Policy
  2. Contact
  3. Legal Notice
Lexicon 7.1.12, developed by www.viecode.com
Powered by WoltLab Suite™ 6.0.22