Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

english for core classes with methods, attributes and (most) comments #54

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
78eb688
Core Elements English now
git0some Nov 22, 2022
d6869a8
base and core classes attributes and methodes in English. and some co…
git0some Nov 22, 2022
efce175
Classes, methods, attributes in english and most of the comments
git0some Nov 23, 2022
d2b2dd5
update to english for core classes with methods, attributes and (mos…
git0some Nov 24, 2022
2e8e65b
work in progress (Deutsch->english)
al3xander Nov 25, 2022
3f8ad42
work in progress (Deutsch->english)
al3xander Nov 25, 2022
37d72ec
work in progress (Deutsch->english)
al3xander Nov 25, 2022
27222a1
Merge remote-tracking branch 'origin/main'
al3xander Nov 25, 2022
97fb215
some more (Deutsch->english) and Correction for making a new colony w…
git0some Nov 27, 2022
37a3721
last step in the Deutsch->English translation for all not german classes
al3xander Dec 1, 2022
6afd997
found grün in commented source ModelManager.cs
al3xander Dec 1, 2022
bb77c2a
more german textes to translate found, some clean up regarding first …
al3xander Dec 2, 2022
596c642
Update VideoRecorderControl.cs (#1)
al3xander Dec 2, 2022
e7acf90
Several changes in SimulationCore English Deutsch and Simulation. To …
al3xander Dec 2, 2022
3ccd1f4
zustand -> state in SharedComponents\AntVideo\Block files
al3xander Dec 2, 2022
2df9fb7
English ants ran into a problem with initial amount=0 for fruits and …
al3xander Dec 4, 2022
08d3157
update in AntInfoBox constructor parameter description and little ada…
al3xander Dec 8, 2022
5234749
adding additional functionality to Insect.cs according to german Inse…
al3xander Dec 8, 2022
6e98867
Typo in currentEngergyCoreInsect => currentEnergyCoreInsect
al3xander Dec 8, 2022
801c2cf
CasteIndexCoreAnt broke the logic for chosing caste for new ants. Bac…
al3xander Dec 11, 2022
ee9631b
code thightening
al3xander Dec 12, 2022
4c3cf03
added AreaChanged check for null
al3xander Dec 12, 2022
ac810ac
rearrange rotation speed and speed to fit to german version
al3xander Dec 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
more german textes to translate found, some clean up regarding first …
…character uppercase and punctuation marks
  • Loading branch information
al3xander committed Dec 2, 2022
commit bb77c2a57439f8d6e0dccc104c66cfb0f6902e1b
36 changes: 18 additions & 18 deletions AntMe/Main.cs
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ public Main(string[] parameter)
InitializeComponent();
CreateHandle();

// check Language-buttons
// Check language buttons
switch (Thread.CurrentThread.CurrentUICulture.TwoLetterISOLanguageName)
{
case "de":
@@ -69,15 +69,15 @@ public Main(string[] parameter)
problems.ShowDialog(this);
}

// Set Window-Position
// Set window position
WindowState = Settings.Default.windowState;
Location = Settings.Default.windowPosition;
Size = Settings.Default.windowSize;

manager.SearchForPlugins();
timer.Enabled = true;

// Forward startparameter
// Forward start parameter
foreach (PluginItem plugin in manager.ProducerPlugins)
{
plugin.Producer.StartupParameter(parameter);
@@ -100,10 +100,10 @@ public Main(string[] parameter)

#endregion

#region Frontend- und Interaktionshandling
#region Frontend and interaction handling

/// <summary>
/// Make updates based on manager-settings
/// Make updates based on manager settings.
/// </summary>
private void updatePanel()
{
@@ -115,7 +115,7 @@ private void updatePanel()

ignoreTimerEvents = true;

// Controlling-Buttons
// Controlling buttons
startMenuItem.Enabled = manager.CanStart;
startToolItem.Enabled = manager.CanStart;
pauseToolItem.Enabled = manager.CanPause;
@@ -151,7 +151,7 @@ private void updatePanel()
speedDropDownToolItem.Text = Resource.MainSpeedMaximal;
}

// Producer List (Button-Based)
// Producer list (button based)
List<ToolStripItem> remove = new List<ToolStripItem>();
foreach (ToolStripItem item in producerButton.DropDownItems)
{
@@ -180,15 +180,15 @@ private void updatePanel()
}
}

// manage tabs
// Manage tabs
if (activeProducer != manager.ActiveProducerPlugin)
{
bool isSelected = tabControl.SelectedIndex == 1;

// Update Mode Display
producerButton.Text = (manager.ActiveProducerPlugin == null ? Resource.MainNoModeSelected : manager.ActiveProducerPlugin.Name);

// remove old tab
// Remove old tab
if (activeProducer != null)
{
if (activeProducer.Producer.Control != null)
@@ -198,7 +198,7 @@ private void updatePanel()
activeProducer = null;
}

// add new tab
// Add new tab
if (manager.ActiveProducerPlugin != null)
{
if (manager.ActiveProducerPlugin.Producer.Control != null)
@@ -217,7 +217,7 @@ private void updatePanel()
}
}

// synchronize Consumer
// Synchronize consumer
List<PluginItem> newActiveConsumers = new List<PluginItem>(manager.ActiveConsumerPlugins);
for (int i = activeConsumers.Count - 1; i >= 0; i--)
{
@@ -236,7 +236,7 @@ private void updatePanel()
//Create new, if needed
if (!activeConsumers.Contains(plugin))
{
// Create Tab and place control
// Create tab and place control
if (plugin.Consumer.Control != null)
{
tabControl.TabPages.Add(plugin.Guid.ToString(), plugin.Name);
@@ -255,7 +255,7 @@ private void updatePanel()
manager.Exceptions.Clear();
}

// StatusBar-information
// Status bar information
stateLabelBarItem.Text = string.Empty;
switch (manager.State)
{
@@ -302,7 +302,7 @@ private void updatePanel()

#endregion

#region Formularfunktionen
#region form functions

#region form

@@ -317,7 +317,7 @@ private void form_shown(object sender, EventArgs e)
manager.Exceptions.Clear();
}

// force a direkt start, if manager is ready
// force a direkt start, if manager is ready.
if (manager.CanStart && directstart)
{
start(sender, e);
@@ -331,11 +331,11 @@ private void form_close(object sender, FormClosingEventArgs e)
manager.Stop();
}

// Alle Plugin-Einstellungen absichern
// Save all plugin settings.
Settings.Default.Save();
manager.SaveSettings();

// show possible problems
// Show possible problems.
if (manager.Exceptions != null && manager.Exceptions.Count > 0)
{
ExceptionViewer form = new ExceptionViewer(manager.Exceptions);
@@ -529,7 +529,7 @@ private void timer_tick(object sender, EventArgs e)

#endregion

#region Managersteuerung
#region manager control

private void start(object sender, EventArgs e)
{
34 changes: 17 additions & 17 deletions AntMe/PluginItem.cs
Original file line number Diff line number Diff line change
@@ -19,11 +19,11 @@ internal sealed class PluginItem


/// <summary>
/// Creates an instance of Plugin-Item, based on a producer.
/// Creates an instance of plugin item, based on a producer.
/// </summary>
/// <param name="plugin">Producer-Plugin</param>
/// <param name="writeCustomStates">List of custom states for write-access</param>
/// <param name="readCustomStates">List of custom states for read-access</param>
/// <param name="plugin">Producer plugin</param>
/// <param name="writeCustomStates">List of custom states for write access</param>
/// <param name="readCustomStates">List of custom states for read access</param>
public PluginItem(IProducerPlugin plugin, CustomStateItem[] writeCustomStates, CustomStateItem[] readCustomStates)
: this(writeCustomStates, readCustomStates, plugin)
{
@@ -38,11 +38,11 @@ public PluginItem(IProducerPlugin plugin, CustomStateItem[] writeCustomStates, C
}

/// <summary>
/// Creates an instance of Plugin-Item, based on a producer.
/// Creates an instance of plugin item, based on a producer.
/// </summary>
/// <param name="plugin">Consumer-Plugin</param>
/// <param name="writeCustomStates">List of custom states for write-access</param>
/// <param name="readCustomStates">List of custom states for read-access</param>
/// <param name="plugin">Consumer plugin</param>
/// <param name="writeCustomStates">List of custom states for write access</param>
/// <param name="readCustomStates">List of custom states for read access</param>
public PluginItem(IConsumerPlugin plugin, CustomStateItem[] writeCustomStates, CustomStateItem[] readCustomStates)
: this(writeCustomStates, readCustomStates, plugin)
{
@@ -59,8 +59,8 @@ public PluginItem(IConsumerPlugin plugin, CustomStateItem[] writeCustomStates, C
/// Private constructor for a common way to handle attributes.
/// </summary>
/// <param name="plugin">Plugin</param>
/// <param name="writeCustomStates">List of custom states for write-access</param>
/// <param name="readCustomStates">List of custom states for read-access</param>
/// <param name="writeCustomStates">List of custom states for write access</param>
/// <param name="readCustomStates">List of custom states for read access</param>
private PluginItem(CustomStateItem[] writeCustomStates, CustomStateItem[] readCustomStates, IPlugin plugin)
{

@@ -95,55 +95,55 @@ private PluginItem(CustomStateItem[] writeCustomStates, CustomStateItem[] readCu
}

/// <summary>
/// Gets the consumer-plugin or null, if its a producer-plugin.
/// Gets the consumer plugin or null, if its a producer plugin.
/// </summary>
public IConsumerPlugin Consumer
{
get { return consumer; }
}

/// <summary>
/// Gets the producer-plugin or null, if its a consumer-plugin.
/// Gets the producer plugin or null, if its a consumer plugin.
/// </summary>
public IProducerPlugin Producer
{
get { return producer; }
}

/// <summary>
/// True, if its a consumer-plugin, false in case of a producer-plugin.
/// True, if its a consumer plugin, false in case of a producer plugin.
/// </summary>
public bool IsConsumer
{
get { return consumer != null; }
}

/// <summary>
/// Gets the name of the Plugin.
/// Gets the name of the plugin.
/// </summary>
public string Name
{
get { return name; }
}

/// <summary>
/// Gets a short description of this Plugin.
/// Gets a short description of this plugin.
/// </summary>
public string Description
{
get { return description; }
}

/// <summary>
/// Gets the plugin-version.
/// Gets the plugin version.
/// </summary>
public Version Version
{
get { return version; }
}

/// <summary>
/// Gets the plugin-<see cref="guid"/>.
/// Gets the plugin <see cref="guid"/>.
/// </summary>
public Guid Guid
{
Loading