示例#1
0
 void TextureChanged(object sender, TextureEventArgs e)
 {
     if (e.Name == "gui.png")
     {
         game.UpdateTexture(ref GuiTex, e.Name, e.Data, false);
     }
     else if (e.Name == "gui_classic.png")
     {
         game.UpdateTexture(ref GuiClassicTex, e.Name, e.Data, false);
     }
     else if (e.Name == "icons.png")
     {
         game.UpdateTexture(ref IconsTex, e.Name, e.Data, false);
     }
 }