Jaztheman
Chairman of Selectors
has anyone done a scoreboard yet?
Punk Sk8r! said:Okay I havn't read the whole thread but say I or we wanted to make an editor which allows you to change kits while in-game (not in match jst in-game) would that be possible?
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtAnswer.Text = "0"
lbladd.Hide()
lblsubtract.Hide()
lbltimes.Hide()
lbldivide.Hide()
lblequals.Hide()
chkpoint.Checked = False
End Sub
Private Sub btn7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn7.Click
operationshowing()
If txtAnswer.Text = "0" Then
txtAnswer.Text = "7"
Else
txtAnswer.Text = txtAnswer.Text + "7"
End If
btnequals.Focus()
End Sub
Private Sub btnpoint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnpoint.Click
operationshowing()
If chkpoint.Checked = True Then
Exit Sub
Else
chkpoint.Checked = True
End If
If txtAnswer.Text = "0" Then
txtAnswer.Text = "0."
Else
txtAnswer.Text = txtAnswer.Text + "."
End If
btnequals.Focus()
End Sub
Private Sub btn0_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn0.Click
operationshowing()
If txtAnswer.Text = "0" Then
Else
txtAnswer.Text = txtAnswer.Text + "0"
End If
btnequals.Focus()
End Sub
Private Sub btnadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnadd.Click
lbldivide.Hide()
lbladd.Show()
lbltimes.Hide()
lblsubtract.Hide()
lblequals.Hide()
chkpoint.Checked = False
End Sub
Private Sub operationshowing()
If lbladd.Visible = True Or lblsubtract.Visible = True Or lbltimes.Visible = True Or lbldivide.Visible = True Or lblequals.Visible = True Then
If lbladd.Visible = True Then lstoperations.Items.Add("+")
If lblsubtract.Visible = True Then lstoperations.Items.Add("-")
If lbltimes.Visible = True Then lstoperations.Items.Add("x")
If lbldivide.Visible = True Then lstoperations.Items.Add("/")
If lblequals.Visible = True Then
txtAnswer.Text = "0"
Else
lstnumbers.Items.Add(txtAnswer.Text)
txtAnswer.Text = "0"
End If
lbladd.Hide()
lblsubtract.Hide()
lbltimes.Hide()
lbldivide.Hide()
lblequals.Hide()
End If
End Sub
Private Sub btnclear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnclear.Click
txtAnswer.Text = "0"
lbladd.Hide()
lblsubtract.Hide()
lbltimes.Hide()
lbldivide.Hide()
lblequals.Hide()
chkpoint.Checked = False
End Sub
Private Sub btnequals_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnequals.Click
lstnumbers.Items.Add(txtAnswer.Text)
Dim a As Integer = lstnumbers.Items.Count
Dim x As Integer
Dim tempanswer As Double
For x = 0 To a - 1
Dim num1 As Double = lstnumbers.Items(x)
If x = 0 Then
tempanswer = num1
Else
Dim operation As String = lstoperations.Items(x - 1)
Select Case operation
Case "+"
tempanswer = tempanswer + num1
Case "-"
tempanswer = tempanswer - num1
Case "x"
tempanswer = tempanswer * num1
Case "/"
tempanswer = tempanswer / num1
End Select
End If
Next
lblequals.Show()
txtAnswer.Text = tempanswer
lstoperations.Items.Clear()
lstnumbers.Items.Clear()
End Sub
For x = 0 To a ? 1
Next
If x = 0 Then
tempanswer = num1
Private Sub frmMain_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles MyBase.KeyPress
Select Case e.KeyChar
Case "0"
btn0_Click(Nothing, Nothing)
Case "1"
btn1_Click(Nothing, Nothing)
Case "2"
btn2_Click(Nothing, Nothing)
Case "3"
btn3_Click(Nothing, Nothing)
Case "4"
btn4_Click(Nothing, Nothing)
Case "5"
btn5_Click(Nothing, Nothing)
Case "6"
btn6_Click(Nothing, Nothing)
Case "7"
btn7_Click(Nothing, Nothing)
Case "8"
btn8_Click(Nothing, Nothing)
Case "9"
btn9_Click(Nothing, Nothing)
Case ""c
btndel_Click(Nothing, Nothing)
Case "+"
btnadd_Click(Nothing, Nothing)
Case "-"
btnsubtract_Click(Nothing, Nothing)
Case "x"
btntimes_Click(Nothing, Nothing)
Case "*"
btntimes_Click(Nothing, Nothing)
Case "/"
btndivide_Click(Nothing, Nothing)
Case "="
btnequals_Click(Nothing, Nothing)
Case "."
btnpoint_Click(Nothing, Nothing)
Case ""c
btnAC_Click(Nothing, Nothing)
End Select
End Sub
Private Sub btndel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btndel.Click
Dim a As Integer
a = Len(txtAnswer.Text)
If a = 1 Then
txtAnswer.Text = "0"
Exit Sub
End If
txtAnswer.Text = Strings.Left(txtAnswer.Text, a - 1)
btnequals.Focus()
End Sub
Private Sub btnMin_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMin.Click
lstmem.Items.Clear()
If txtAnswer.Text <> 0 Then
lstmem.Items.Add(txtAnswer.Text)
lblmem.Show()
Else
lstmem.Items.Clear()
lblmem.Hide()
lblequals.Hide()
btnequals.Focus()
Exit Sub
End If
lblequals.Show()
btnequals.Focus()
End Sub
Private Sub btnMR_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMR.Click
operationshowing()
txtAnswer.Text = lstmem.Items(0)
lblequals.Show()
btnequals.Focus()
End Sub
If a = 1 And lbltimes.Visible = True Then
lblequals.Show()
txtAnswer.Text = lstnumbers.Items(0) * lstnumbers.Items(0)
lstoperations.Items.Clear()
lstnumbers.Items.Clear()
Exit Sub
ElseIf a = 1 And lbldivide.Visible = True Then
lblequals.Show()
txtAnswer.Text = lstnumbers.Items(0) / lstnumbers.Items(0)
lstoperations.Items.Clear()
lstnumbers.Items.Clear()
Exit Sub
End If
what kind of scoreboard you are talking about?Jaztheman said:has anyone done a scoreboard yet?