Skip to content

Commit

Permalink
Form AI Driver editor Visuals [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
LIPtoH committed Jul 26, 2022
1 parent 742c76f commit 1fe8f66
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions TS SE Tool/Forms/FormAIDriverEditor.Designer.cs

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

8 changes: 4 additions & 4 deletions TS SE Tool/Forms/FormAIDriverEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ private void PrepareForm()
{
this.Icon = Properties.Resources.MainIco;

CreateProfilePanelControls();
FillFormProfileControls();

MainForm.HelpTranslateControl(this);
MainForm.HelpTranslateFormMethod(this);
MainForm.HelpTranslateFormMethod(this, toolTipAIDriverEditor);

labelDriverNameText.Text = driverData.driverNameTranslated;

CreateProfilePanelControls();
FillFormProfileControls();

//dialog result
buttonSave.DialogResult = DialogResult.OK;
buttonCancel.DialogResult = DialogResult.Cancel;
Expand Down
3 changes: 3 additions & 0 deletions TS SE Tool/Forms/FormAIDriverEditor.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTipAIDriverEditor.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
5 changes: 3 additions & 2 deletions TS SE Tool/Forms/MainTabs/FormMethodsCompanyTab.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ private void contextMenuStripCompanyDriversEdit_Click(object sender, EventArgs e
{
Driver selectedItem = (Driver)listBoxUserCompanyDrivers.SelectedItem;

if(selectedItem.state == Driver.driverState.Player)
if (selectedItem.state == Driver.driverState.Player)
tabControlMain.SelectedIndex = 0;
else
{
Expand All @@ -1370,10 +1370,11 @@ private void contextMenuStripCompanyDriversEdit_Click(object sender, EventArgs e
saveDriver.fragile = tmpDriver.fragile;
saveDriver.urgent = tmpDriver.urgent;
saveDriver.mechanical = tmpDriver.mechanical;

listBoxUserCompanyDrivers.Invalidate();
}

driverEditor.Dispose();
listBoxUserCompanyDrivers.Invalidate();
}
}

Expand Down

0 comments on commit 1fe8f66

Please sign in to comment.