- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
if (curMenu != null)
{
depth = curMenu.Depth;
Menu menuG = null;
if (depth == 1)
{
menuG = curMenu;
}
if (depth == 2)
{
menuG = curMenu.Menu2;
}
if (depth == 3)
{
menuG = curMenu.Menu2.Menu2;
}
if (depth == 4)
{
menuG = curMenu.Menu2.Menu2.Menu2;
}
if (depth == 5)
{
menuG = curMenu.Menu2.Menu2.Menu2.Menu2;
}
if (depth == 6)
{
menuG = curMenu.Menu2.Menu2.Menu2.Menu2.Menu2;
}
if (depth == 7)
{
menuG = curMenu.Menu2.Menu2.Menu2.Menu2.Menu2.Menu2;
}
if (depth == 8)
{
menuG = curMenu.Menu2.Menu2.Menu2.Menu2.Menu2.Menu2.Menu2;
}
}
guest 19.04.2013 20:54 # 0
Lure Of Chaos 19.04.2013 22:54 # +1
LispGovno 20.04.2013 09:53 # +1
guest 20.04.2013 01:38 # 0
И все проблемы с меню остались бы позади.
vse_govno 21.04.2013 18:53 # −5
Badger badger badger badger
Badger badger badger badger
Mushroom, mushroom
Badger badger badger badger
Badger badger badger badger
Badger badger badger badger
Mushroom, mushroom
Badger badger badger badger
Badger badger badger badger
Badger badger badger badger
A mush- a, mushroom
Badger badger badger badger
Badger badger badger badger
Badger badger badger badger
Oh, snake! It's a snake!
Snaake! Snaaake! Oh, it's a snake
guest 30.04.2013 17:04 # 0
guest 30.04.2013 17:07 # 0
Равно как и switch.