It works. I'm using it now.
if (GUI.MenuItem[LevelTextureTheme].TextBox[0].SelectionHappened){
GUI.MenuItem[LevelTextureTheme].TextBox[0].SelectionHappened=false;
if ((GUI.MenuItem[LevelMeshLimbs].TextBox[0].CurLocY>-1)&&(GUI.MenuItem[LevelMeshLimbs].TextBox[0].CurLocY<int(LevelData.LevelMeshLimbList.size()))){
int L=GUI.MenuItem[LevelMeshLimbs].TextBox[0].CurLocY;
dbTextureLimb(LevelData.LevelMesh,L,TextureTheme[GUI.MenuItem[LevelTextureTheme].TextBox[0].CurLocY].BaseTexture,0);
dbTextureLimb(LevelData.LevelMesh,L,TextureTheme[GUI.MenuItem[LevelTextureTheme].TextBox[0].CurLocY].BumpTexture,1);
LevelData.LevelMeshLimbList[L]=GUI.MenuItem[LevelTextureTheme].TextBox[0].CurLocY;
GUI.MenuItem[LevelMeshLimbs].TextBox[0].oCY=GUI.MenuItem[LevelMeshLimbs].TextBox[0].CurLocY;
}
}
The fastest code is the code never written.