Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/origin/master' into gltf2
Browse files Browse the repository at this point in the history
  • Loading branch information
pzgulyas committed Oct 15, 2023
2 parents 7269d24 + f3e543f commit c59c788
Show file tree
Hide file tree
Showing 401 changed files with 16,489 additions and 15,015 deletions.
22 changes: 22 additions & 0 deletions .github/release.yml
@@ -0,0 +1,22 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- appveyor
- dependabot
- github-actions
categories:
- title: New Features
labels:
- enhancement
- title: Documentation and Localization
labels:
- documentation
- locales
- title: Bug Fixes
labels:
- bug
- title: Other Changes
labels:
- "*"
2 changes: 1 addition & 1 deletion Build.cmd
Expand Up @@ -163,7 +163,7 @@ IF "%Mode%" == "Stable" (
REM Create binary and source zips.
CALL :delete "OpenRails-%Mode%*.zip" || GOTO :error
PUSHD "Program" && 7za.exe a -r -tzip -x^^!*.xml "..\OpenRails-%Mode%.zip" . && POPD || GOTO :error
7za.exe a -r -tzip -x^^!.* -x^^!obj -x^^!lib -x^^!_build -x^^!*.bak -x^^!Website "OpenRails-%Mode%-Source.zip" "Source" || GOTO :error
7za.exe a -r -tzip -x^^!.* -x^^!obj -x^^!lib -x^^!_build -x^^!*.bak "OpenRails-%Mode%-Source.zip" "Source" || GOTO :error

ENDLOCAL
GOTO :EOF
Expand Down
12 changes: 10 additions & 2 deletions Docs/Contributing.md
Expand Up @@ -20,14 +20,22 @@ You are free to make any modifications to the Open Rails code that you like; tha

In most cases, you can get started immediately with making the changes and creating a pull request. We do ask for some additional steps to be taken for some bugs and all new features, but they can come before or after the pull request. Please feel free to share ideas and proposals as pull requests!

**Note:** You must start your work from the "master" branch and merged pull requests back into the "master" branch, unless we direct you otherwise.
**Note:** You must fork the Open Rails repository before you start working on it. We do not allow you to push branches to the official repository.

**Note:** You should do your work on separate branches; they must be created from the "master" branch and pull requests must merge back into the "master" branch, unless we direct you otherwise.

### Documentation and translations

If you'd like to improve the [documentation](./), [manual](../Source/Documentation/Manual), or [translations](../Source/Locales) you can get started immediately.

There are no requirements for the pull request.

### Contributed projects

If you'd like to improve the [contributed projects](../Source/Contrib) you can get started immediately.

There are no requirements for the pull request.

### Bug process

If you'd like to fix a bug, you can get started immediately. If the fix turns out to be very small, you do not even need a bug report. Otherwise, you will need to make sure it has been reported on [our bug tracker on Launchpad](https://bugs.launchpad.net/or). If it has not, you can report the bug *and* fix it!
Expand Down Expand Up @@ -154,7 +162,7 @@ When we start preparing for a new Stable Version, all code in the Testing Versio

### Submitting your code

When you're done writing code, you should make a pull request on GitHub. The title and description of the requests should concisely indicate what bug or feature you've implemented and you will need to include links to whichever of the following are appropriate:
When you're done writing code, you should make a pull request on GitHub from your fork's branch back to the official repository's "master" branch. The title and description of the requests should concisely indicate what bug or feature you've implemented and you will need to include links to whichever of the following are appropriate:

* Bug report
* Road-map card
Expand Down
41 changes: 41 additions & 0 deletions Docs/Policies.md
@@ -0,0 +1,41 @@
# Project Policies

This document records the policies currently in place under which the Project Team operates.

## License

The [GNU Public License](http://www.gnu.org/licenses/licenses.html) allows a user to use Open Rails in any way, except that you may not distribute software containing part of Open Rails without respecting the license terms.

## Liability

Open Rails is intended for entertainment purposes only and, to avoid liability, is not suitable for professional applications.

## Code Submissions

[Code contributions](https://github.com/openrails/openrails/blob/master/Docs/Contributing.md) to our repository must be in Microsoft's C# language. An authorised developer may not change content in the official version of Open Rails without approval from another authorised developer.

## Content Compatibility

Open Rails will continue to maintain compatibility with content from previous official versions of Open Rails.

## File Formats

New types of content will use the JavaScript Object Notation (JSON).
Existing types of content from previous official versions of Open Rails will continue to be loaded without change.

## Keyboard Assignments

New key assignments should obey the following rules where that is possible.

* Reserve digit keys for camera operations.
* Reserve Fn keys for pop-up windows.
* Reserve the Alt modifier for debug operations.
* Reserve modifier+space (e.g. Ctrl+space) for future expansion using sequences of keys.

Existing key assignments may not be changed without community discussion and approval of the Open Rails Management Team.

## Crashes and Derailments

Open Rails simulates emergency events which bring a train to a standstill, such as a derailment, and provides both a visual indication and a notification of the problem.

Open Rails does not show rolling stock leaving the track due to crashes or derailments. We have many members from the rail industry who have spent their working lives preventing incidents that cause injuries and loss of life and we respect that point of view.
3 changes: 2 additions & 1 deletion Docs/Readme.md
Expand Up @@ -19,9 +19,10 @@ Open Rails is a free train simulator supporting the world's largest range of dig
* [Join the community](http://www.openrails.org/share/community/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
* [Report bugs or offer suggestions](http://www.openrails.org/contribute/reporting-bugs/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
* [Create content](http://www.openrails.org/contribute/building-models/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
* [How to propose and submit work](Contributing.md)
* [Write code](http://www.openrails.org/contribute/developing-code/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
* [Join the team](http://www.openrails.org/contribute/joining-the-team/?utm_campaign=documentation&utm_source=readme&utm_medium=referral)
* [More details](Contributing.md)


## Build status

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

123 changes: 123 additions & 0 deletions Source/Contrib/ActivityEditor/ActivityEditor/Engine/SimpleTextEd.resx
@@ -0,0 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="bar.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
8 changes: 8 additions & 0 deletions Source/Contrib/TrackViewer/Drawing/DrawColors.cs
Expand Up @@ -46,6 +46,7 @@ static class DrawColors
public static ColorScheme colorsRoadsHotlight = new ColorScheme(HighlightType.Hotlight);
public static ColorScheme colorsPathMain = new ColorScheme();
public static ColorScheme colorsPathSiding = new ColorScheme();
public static ColorScheme colorsEvent = new ColorScheme();

static ColorsGroupTrack trackGroupFlat = new ColorsGroupTrack();
static ColorsGroupTrack roadTrackGroupFlat = new ColorsGroupTrack();
Expand Down Expand Up @@ -212,6 +213,11 @@ private static void SetItemColors(IPreferenceChanger preferenceChanger)
TrackViewer.catalog.GetString("Select speedpost color"));
itemColors.Speedpost = itemColor;

itemColor = new ColorWithHighlights(Color.DarkGray, 40);
itemColor.MakeIntoUserPreference(preferenceChanger, "event",
TrackViewer.catalog.GetString("Select event color"));
itemColors.Event = itemColor;

itemColor = new ColorWithHighlights(Color.Blue, 40);
itemColors.CandidateNode = itemColor;

Expand Down Expand Up @@ -321,6 +327,7 @@ class ColorsGroupBasic {
public ColorWithHighlights RoadCrossing { get; set; }
public ColorWithHighlights Speedpost { get; set; }
public ColorWithHighlights Siding { get; set; }
public ColorWithHighlights Event { get; set; }

public ColorWithHighlights Text { get; set; }
public ColorWithHighlights ClearWindowInset { get; set; }
Expand Down Expand Up @@ -362,6 +369,7 @@ class ColorScheme
public Color RoadCrossing { get { return TrackItemColors.RoadCrossing.Colors[highlightType]; } }
public Color Speedpost { get { return TrackItemColors.Speedpost.Colors[highlightType]; } }
public Color Siding { get { return TrackItemColors.Siding.Colors[highlightType]; } }
public Color Event { get { return TrackItemColors.Event.Colors[highlightType]; } }

public Color ActiveNode { get { return TrackItemColors.ActiveNode.Colors[highlightType]; } }
public Color CandidateNode { get { return TrackItemColors.CandidateNode.Colors[highlightType]; } }
Expand Down

0 comments on commit c59c788

Please sign in to comment.