.. | .. |
---|
964 | 964 | texturecount = 0; |
---|
965 | 965 | } |
---|
966 | 966 | |
---|
967 | | - if (path.length > 2 && path[2].toLowerCase().endsWith(".jpg")) |
---|
| 967 | + if (path.length > 2 && (path[2].toLowerCase().endsWith(".jpg") || path[2].toLowerCase().endsWith(".png"))) |
---|
968 | 968 | { |
---|
969 | 969 | //if (!added) |
---|
970 | 970 | { |
---|
.. | .. |
---|
973 | 973 | currenttab = (cGridBag)resourcecontainer.getComponentAt(resourcecontainer.indexOfTab(tabname)); |
---|
974 | 974 | } |
---|
975 | 975 | |
---|
976 | | - AddTextureButton(path[0], path[1], path[2], texturecount++, currenttab); |
---|
| 976 | + AddTextureButton(path[0], path[1], path[2], ++texturecount, currenttab); |
---|
977 | 977 | |
---|
978 | 978 | if (++colcount >= columns) |
---|
979 | 979 | { |
---|